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

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
/*

 Copyright Google LLC
 SPDX-License-Identifier: Apache-2.0
*/
/*


 Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
     http://www.apache.org/licenses/LICENSE-2.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
*/
/*

 Copyright Google LLC All Rights Reserved.

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

 Copyright 2017 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
/*
 SPDX-License-Identifier: Apache-2.0
*/
/*

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

 -----------------------------------------------------------------------------
 Ported from zlib, which is under the following license
 https://github.com/madler/zlib/blob/master/zlib.h

 zlib.h -- interface of the 'zlib' general purpose compression library
   version 1.2.8, April 28th, 2013
   Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler
   This software is provided 'as-is', without any express or implied
   warranty.  In no event will the authors be held liable for any damages
   arising from the use of this software.
   Permission is granted to anyone to use this software for any purpose,
   including commercial applications, and to alter it and redistribute it
   freely, subject to the following restrictions:
   1. The origin of this software must not be misrepresented; you must not
      claim that you wrote the original software. If you use this software
      in a product, an acknowledgment in the product documentation would be
      appreciated but is not required.
   2. Altered source versions must be plainly marked as such, and must not be
      misrepresented as being the original software.
   3. This notice may not be removed or altered from any source distribution.
   Jean-loup Gailly        Mark Adler
   jloup@gzip.org          madler@alumni.caltech.edu
   The data format used by the zlib library is described by RFCs (Request for
   Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950
   (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format).
*/
/*

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

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

 Copyright (c) Felix Böhm
 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 Redistributions of source code must retain the above copyright notice, this
 list of conditions and the following disclaimer.

 Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.

 THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

 The bulk of this code derives from https://github.com/dmoscrop/fold-case
 But in addition to case-folding, we also normalize whitespace.

 fold-case is Copyright Mathias Bynens <https://mathiasbynens.be/>

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

     * Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

     * Redistributions in binary form must reproduce the above
       copyright notice, this list of conditions and the following
       disclaimer in the documentation and/or other materials provided
       with the distribution.

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*

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

Math.uuid.js (v1.4)
http://www.broofa.com
mailto:robert@broofa.com
Copyright (c) 2010 Robert Kieffer
Dual licensed under the MIT and GPL licenses.
*/
/*

 Copyright 2015-present Dan Abramov
 SPDX-License-Identifier: MIT
*/
/*

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var mdd,isJ,Kv6,Wvd,LvG,AV9,i6,gGd,rVd,WJ,wd,uPd,hGd,oM,ns,pJ9,JVd,Ndv,b6,$G,Fv6,QMo,qd,nGv,sMG,HsP,jMP,Vov,Zsd,eG6,yVs,ddv,XJV,UdM,zGJ,Bds,Kl,wK,gK,mGJ,uS,hi,ilV,oF,so,KCF,WCF,Cl,VX,OlG,hBv,p2f,e0,DGv,t0v,FCd,RF,QFd,aPV,nkd,okG,blJ,B2,JiJ,MG,vkd,qoG,k4G,FE,CSf,V0o,tD,HlM,hD,IPG,jFG,xGf,X2d,Sov,RB9,UGM,zBs,sO,M0F,BKM,TKd,m6d,iPv,KDF,WDM,wu6,g5P,YO6,uEd,puf,FD9,a6d,Qsv,dz,o5d,qOd,eW,E5o,I6J,VW6,kGP,ZPf,CqP,x5,GG6,SW,Rs,UO,d6d,Bu,e6d,PqP,yDs,Kp,f6P,x6d,SOG,U6M,R66,z6d,l6M,BzV,TG,Tzd,ipd,Kuf,LuF,rx,
wNG,cCv,hC,uOG,JCP,Opd,Nx6,t4G,FuG,$IG,oo6,qed,HpV,I3d,k7d,Cgs,Pg6,yCP,xIJ,SeF,zCd,Bxo,M4v,mpf,Gp9,WbG,grM,hjs,Z3,Jtf,Dp9,tyG,S4,Re,z7,Gp,Wz,LZ,$p6,u9,qyf,IOd,kpd,C96,Vyo,Qe,ZZd,oO,nZ,vz,$r,P9o,ytP,ejd,fOG,xpd,Syd,Rjo,UpJ,zjF,B5v,Hz,Ey,My6,T5f,mjs,GFM,i6P,KKs,WKd,LKo,fZ,Xs,Sy,RO,zp,wEG,l9,O66,h_6,Mp,pEM,JUG,NDv,i$,DjG,thG,FKM,GF,oyP,WE,vyG,$jJ,L6,qi6,sbd,EyG,H6s,I1V,jbG,gD,kFd,C$d,Oi,Vho,Z6f,cE,Yy,rD,u$,djd,yU9,P$M,hU,f1v,xjf,XE9,JU,D1,tU,FJ,Qu,ab,SiP,R_G,z_s,l1G,MhM,m7M,TDF,iBv,GIM,Kif,WiJ,Lio,b$,
AIG,wt9,OBG,cIf,YRd,rIF,ubV,hLJ,ptG,Ei,HE,JI9,jh,ky,N$d,Fif,Q$G,a5d,n2d,bB6,v2M,E2o,HBd,I5G,j$6,kIs,Cr9,Va6,yId,dD,eLP,f56,x7s,SRs,U7v,Rb,l5o,B$6,Mad,it6,WXP,LXd,AOG,wgG,glP,cOd,a4f,old,nlF,$T9,sid,w$,qJG,I4v,CEG,VUv,ZtJ,dT6,PEs,yOJ,enV,f4G,XgP,SJJ,jio,RnV,UTd,zns,l4f,BMJ,MUd,TMM,m2d,iT6,LEd,KEP,gOM,A_d,w4d,YZF,r_f,ufG,OT9,p4V,c_J,N_P,o$,D2J,nB,vt,tJv,Q2V,aMo,bTd,CM6,$2V,vOG,qZs,HTJ,s2d,eRJ,d2P,fMF,x2d,X4J,SZd,RRd,zRG,U2d,lMo,B_M,MJd,T_M,ind,K3o,W3J,L36,wOJ,Awo,t1o,Ht,F39,a0d,oSP,nSd,bnG,vSs,sPG,
q8M,ESf,d$,Pt,Hnd,fB,Znd,Xb,PXd,Sa,xC6,S8d,GdJ,lr,L19,AHv,cHf,gD6,OLs,GH,YVv,rHV,hvd,pwM,JHd,N8J,DKf,tnd,F1d,a_f,OJ,oD9,cg,uE,$KG,NT,I_d,HLd,CxG,F6,QN,ZLd,dK9,Pxv,yHd,RvJ,SVF,nt,UK6,vg,zvG,l_J,B8d,T8P,iSV,mqG,G6G,Z4,g3o,yN,Jgd,uu9,NWP,SU,QRG,Ri,zH,aDo,o39,v3V,$qo,lE,qgd,sRo,ZS9,dqs,PsG,edv,SgG,UqV,zdo,lD6,BWf,TWG,mFd,GiG,KmF,Wmv,mE,Auv,W4,gzG,Oc9,cu6,rud,w$9,LmG,Yrd,GL,hDF,POs,Ju6,fCd,xF6,X$G,RDf,UFP,zDJ,lCo,uM,BCF,TCd,MNd,mkP,GbV,J_,Wyf,AaG,t_,QW,Ff,Ypd,cas,LyV,JaV,aGF,bCd,nNG,svG,bM,EN6,HCG,kbs,
CYV,q2,ZCd,H4,I2,yaf,xks,Spf,Rmf,lGd,BlF,M_d,TlV,jJ,iAd,GPG,KUM,WUJ,Abv,wlG,gTM,OAf,ZM,yW,rbd,uSs,hMd,NBP,D8G,tlF,vTJ,$86,oTf,qKd,ETf,HAs,lM,B4,M2,TL,CLd,Vlo,iX,ZAP,d8V,PLd,ybd,fe9,x8f,Xld,SKM,eMd,RM9,Ln,zMG,m$v,Aw,TB6,iJM,U8J,GqG,cO,Wad,La6,AjG,wHM,OJG,guM,cj6,uAs,YBd,hJs,FaG,awv,nuF,$$G,vuG,bJf,sQG,qBV,HJJ,jQ9,Iw6,kqG,FF,VDG,ZJd,d$v,PWF,yjf,fwf,eJP,x$J,XHd,lwJ,U$o,zJ9,MDf,TUo,mcd,GzP,iWv,KQG,WQF,AWP,gtf,YGG,uvG,rWv,e1,hHv,wks,Q7G,ots,ntG,bWJ,RP,$c6,qGo,IQF,Cdf,kzV,PdJ,yWG,eHP,fQP,Xk9,lQP,SGF,UcV,
zHV,B99,MOd,m_V,T9d,Gvo,iGf,Ww,KdG,Ld6,AM6,cMF,r8,ux,hH,Yvs,rMF,pL,pUf,FH,Qj,aG,t8P,oG,al6,vw,oRs,nRs,bGM,vRd,qK,$_G,sW9,qvM,HGs,jWv,V8v,d_G,Pw,Pw6,yMv,e9s,flf,x_M,XUv,SvJ,R9s,fL,lld,B6P,M8d,T6F,mgP,iro,Ghd,Koo,WoP,Lov,AKd,weo,gCV,Bw,Fo6,Qt9,MK,mf,is,a7s,oCG,nCd,brG,vCv,$gM,st6,jtd,khv,C06,VbP,Zrv,LS,wW,gW,Og,rW,us,hg,P0s,Jg,egF,Nq,f76,xgJ,DD,Xef,SMv,Rgo,GgG,WgG,OD6,uj6,r9v,Kg6,hOs,NTs,EeV,oes,C1J,bDM,joV,VwG,nS,dlJ,vG,y9s,eOd,xlG,XLv,SQG,UlM,Eg,lhd,BTs,MwP,TTd,myG,iN6,Gkd,zOd,L5v,A$d,w8M,IR,ums,
had,r$6,J$o,NnV,tAM,F5V,DyV,$yv,HNJ,jCP,fS,y$f,dyd,PKG,Sho,Uy9,zaV,lJG,BnG,MAG,Tnd,Mq,ggF,coJ,Aos,LrF,OzV,izv,rod,ogG,ppv,JoF,NqM,jLf,C_F,IgF,yos,HzV,mWf,P_V,hzf,agG,k$9,YTo,Kr9,G$f,WrP,wpF,Eg9,Ju,iQG,Kns,Wnd,Lnd,A3f,pRs,FnJ,QTP,sr,oAs,vAf,EAM,qnV,IEG,jTv,Ck6,VFv,ZQs,dBP,y3d,PkM,Vb,UB9,Rxf,Snf,MF6,zxv,THF,BHP,mao,imd,LFd,KFd,WFv,wYJ,OmG,cXM,uwG,h3f,pYJ,JXv,Dad,tqs,FFd,xz,akd,Xx,o1f,v1v,n1J,$ad,Hmv,IkG,CG9,ZmP,B$,MF,e3d,fkd,my,iY,xaV,Gb,KC,XYP,Wv,SUM,LC,R39,UaP,Op,z3s,lkG,BSF,MqG,TSd,iYJ,mPG,KNs,AAv,
LNM,wXG,gJF,GeG,OYf,rA9,Yao,WNo,u0s,hFf,ha,pXd,N19,JAd,DPF,tIs,QBd,FN6,abv,Ja,nJV,bYd,oJo,$Pd,sB6,qao,jBV,VIf,eFo,SaG,Nk,zFV,lbv,DG,B1G,av,ov,K9d,Fg,vv,W9J,L96,wod,gis,clf,rlG,u5s,h0J,pod,DE6,oi6,Q3F,NLs,nis,bgd,Ep,a8G,vid,j_,$Es,s3s,qAs,EiJ,kBP,HgJ,j3d,dEG,PAG,Xo9,xEd,UEd,mNd,iVG,KWo,LWG,AY6,gvd,OV6,cYd,rYd,uoJ,hTv,N3M,QS6,aSG,DNF,nvG,vvV,bVd,ovs,$Nf,q1o,EvM,HV6,ISG,jSJ,C7G,ksd,ZVV,fSF,P7d,dNP,XbP,S_,Rv,Up,S1G,RTP,UNP,zTf,GP,T3P,m3d,ibo,KA,Ab,Lzd,wWf,gZd,cz6,uN9,gB,OK,hVM,cl,NOG,D3F,tmG,uL,nZP,saV,
EZf,Hbv,ILd,k5J,CZP,Vms,PZP,pA,yz9,x39,Jb,XWf,zVd,N8,MmM,De,Q5,al,TOd,i_9,mz9,KPd,WPM,LPJ,Aso,GNP,YXG,rsd,hlV,Jsf,FPJ,tCP,Qwd,oWG,nWG,b_M,vWF,$zG,swd,qXv,IRF,EWJ,$T,kNf,sK,CBv,EK,Hl,VCG,Z_M,dzV,PBv,ys6,Il,elf,fRG,xzd,XZ6,RlV,Uz6,zld,lRM,Bid,TiG,MC9,jl,i2P,K7d,W7o,L7V,AZJ,O2s,YLf,dB,uMJ,p09,JZd,NvF,Dh6,tgP,F7d,Q99,azM,cZv,rZP,oKd,nKd,s9M,qLd,EKM,H2d,RAv,lz9,Bvs,MgG,zAG,Wp6,wFJ,Lpf,g4f,YYd,uY6,pFV,tiv,DtM,o4v,zP,n4s,b$M,lL,v46,Bl,$tG,sUv,qYv,H$P,E49,IWF,jUo,kUV,ChF,fWG,XFs,RrV,SYd,Phf,Z$V,zrP,BN9,GcM,
KHv,Apf,rps,hid,iW,pM6,Nb9,DAF,FHd,nYM,$As,EYF,HUV,IpM,jkP,dAP,kcP,fpV,xAV,XMV,Rio,LJ,UAP,lpG,BbP,MPd,Tbd,mVv,iKo,GjF,WIG,LIM,OB,A6f,wB6,OKs,Yu,gqJ,Y7d,pB6,hj,J6d,Npf,DVd,Qgd,ajG,tMP,nqG,sgd,q79,EqP,tj,HKV,Cud,VM6,oQ,PuM,ZKJ,dVv,fjP,xVV,XBd,S7f,IQ,ljP,CJ,Bps,MMd,Tp9,mQv,WjJ,w3d,Afv,Ljo,gVP,cfM,YbG,Jf9,rf6,NGd,tGs,DQG,b89,snM,EV9,Iqf,yfs,OG,fqd,Rb6,zbd,w9,Nc,iad,Lhs,WhJ,wq6,gP6,c4o,Oas,YHd,r4G,DQ,c9G,Gtd,A46,KhG,pW,pqs,J4d,NRF,DmM,sG,tdf,Fhd,QEd,adF,oPf,I7,nPo,$mF,qHF,EPM,Zad,PpF,y4G,eoF,xmG,XqG,eO,
Rov,Um6,zoo,ld9,BRd,Mdf,mRd,Gxs,W_M,L_d,YDJ,O5s,rxG,piJ,Jx9,Bk,NEd,DRJ,tp9,afs,n6P,o6d,v6v,sqo,iw,E6V,H56,qDv,Ifo,jqJ,Cmd,Z5M,VpM,dRf,kxP,Pmo,yxP,ehd,ffo,xRv,XiV,SDv,RhG,URJ,BE9,lfG,MpM,mSd,TEG,Gv,i96,Wsv,gjF,GMs,YWM,rSP,uao,hwd,NtG,njF,b9G,$SM,suM,pG,Ar9,crP,uBV,JM,N0v,hpv,pxd,Jrd,DUV,o86,FQ,n8G,bkV,$UG,sfG,qxP,E89,ITs,jfd,fTs,dUd,yrP,Xxs,xUf,Sxd,Rpo,zpV,B0f,T0o,ifM,Gwo,WMJ,hud,NIf,tSG,FMd,Q_F,aa6,oUf,bf6,vUF,q9F,EUv,Hf6,IaG,j_o,kwd,Cv6,VSP,PvG,faV,IW,j8,kR,xov,XrM,Zl,Rus,Gys,gmG,Aes,nmP,b4s,vmV,
zu6,i4o,MSG,sXd,qPd,Em6,H4s,Wq6,IBd,kyo,VLG,Pcd,yeV,Uv,lBd,ML9,mMV,i1V,Kt6,GQ9,A56,gfJ,pcd,uKV,c5J,hUd,YmM,J59,FtP,YC,rF,syd,b19,Efd,H1M,jy9,kQd,hK,CFJ,dMs,PFP,y5s,eUo,zUP,UMd,ot,i3J,sM,KLJ,WLd,LLG,A8o,who,gFF,O3G,c8v,Y3M,r8s,uTV,EM,hZd,phs,J8f,Nwf,DrJ,tE6,FLo,Qdv,It,aNJ,oFJ,nFv,b3G,vFG,$rG,sdV,q3J,EF9,H3M,INv,jd6,kEV,kC,VEG,drG,y8d,xrs,RZP,Urd,zZf,BwM,Twd,mOs,iu9,fr,Ahf,WTP,wfG,g$v,Oud,rhG,uZ9,hYJ,Jhd,i1,DOd,Th,FTs,Q4d,Gg,ayJ,o$o,n$G,buf,WL,qco,Hu9,Vu9,C3d,dOf,P3F,rT,yhV,eYd,xOV,Scs,RYd,zYV,lyG,
Xfv,B2f,GoG,A0f,w9f,u1,gbo,OMf,hSF,c09,r0G,uWd,FSG,J0M,Qhd,ob6,bMd,vbV,$bJ,shJ,qfv,EbG,I$d,jhG,kod,CoV,VRf,dbv,y0P,xbf,Ubv,BAo,TAF,GJd,Fj,K$f,W$f,L$G,A76,wyP,OOs,c7d,Y$M,r7P,u36,h$v,pys,J7d,NVF,DuP,tfd,QHP,F$6,nLV,vLv,oo,$uP,ELP,q$G,jHV,kJd,Ci9,du6,e$6,y7V,ZOF,Xyo,xud,l9d,S$P,HL,UuP,KeM,TVP,mHF,iwv,G8P,WeF,AJV,Leo,Io,jw,u7s,g9V,rJ9,Yld,Owd,cJJ,JJF,DHs,Fe6,tvV,QK6,bwM,n9d,$Hs,E99,II9,qlP,jKF,CQM,k8d,Zw9,yJv,dT,eNs,fIs,xHG,UHG,mxf,yz,GW9,W4o,Ro,wSo,L4J,ALM,Sw,Ytd,gIG,Oq6,rLd,htV,u2J,NQV,Dxv,F49,QYG,
axf,oI6,nIo,vI9,$xP,W8,qt9,IxG,jYF,gn,kWF,VKd,StG,uK,yLF,XSP,etG,fxP,lxf,zt6,m4J,BQd,ied,GTv,pN,KAd,WA9,LAJ,DJ,AyJ,J$,Oed,cyJ,YjJ,ryM,udJ,pDf,tYV,FAd,oHJ,nH6,vH9,qjP,$4d,sDV,EHP,IvP,jDG,kT9,C89,VY6,d4P,yy6,esf,x4f,fvV,XDd,Sjo,U46,zsF,WJv,GSd,w7d,gpd,hQ6,p7G,JN6,NoM,DnG,teJ,ats,opo,npG,bEF,$n9,scf,qFd,EpG,HEf,Itd,kSf,Ctf,P8,Ptv,dnv,ZEF,Ved,eQf,X7v,ftJ,RQo,UnP,lt9,Bos,Meo,ToV,mJ9,LlG,iRJ,GRM,KlV,Avf,wdF,ghJ,Wls,xE,Ywd,ulM,rvP,SA,h5f,JvJ,NyF,DJd,pdd,tXo,Fl6,QZP,aXM,oh9,bRd,vh9,$JV,sZ6,HRd,EhG,VXG,qws,
Uh,ZR6,IXF,CHP,PHf,yvv,e5M,fXG,xJ9,SwP,R5f,UJd,lXd,ByV,Tyd,ii6,AkG,WZG,LZ9,KZd,GuJ,w5v,Lz,g76,Ao,Oi6,ckf,p5d,NfV,Dfv,t2P,FZF,QzF,ar6,rq,u_,$fV,n7v,o7P,bio,P2s,V26,v7o,C2F,SEd,R2d,UfJ,z2G,lrG,TfM,ixd,KcP,Lcs,A1F,w_G,Y_d,c1M,r1d,hfM,j5,N7v,DXG,tcV,Fc9,Qpo,aY6,oQG,Cz,Vo,bxv,vQM,spo,Hxd,Zxf,fYP,efV,xXM,S_J,RfM,UXJ,zfV,lYP,B79,fz,McM,L0V,AFJ,GO9,iIs,W0F,K0d,YIF,rFs,u89,hKd,pKd,JFJ,t9P,DZM,NJV,s6G,vcv,qId,EcG,HIv,kOd,V9V,IZ9,j66,XKG,RKd,zK9,BJs,TJ9,iFo,L2G,AB9,wnG,cBd,OFM,gds,Yzd,rBd,urf,hc9,pn6,JBs,NeG,
D0d,t3M,F2J,aiG,odJ,ndG,bFf,vd9,$09,qzP,EdV,HFJ,Ii9,jAv,kK6,d09,PVd,ecf,x0M,fi6,XnM,G_,SzG,RcV,U0J,zcG,M36,Bev,Te9,mDP,iHV,GVd,Kwd,WwF,LwJ,Anf,w6s,gsv,OHd,cnG,YuP,rnd,uIP,p6G,h16,Jnv,Ngd,DDJ,ttd,Fwo,QjJ,auo,osV,rH,bHV,vsf,$DF,sjv,quf,HH9,IuM,jj6,kVP,CjG,Vtd,ZH9,Pjo,ynd,fuG,J3,Su6,Bgd,z1s,UDG,R1J,luF,m5f,ijM,GAv,KkV,LkM,A2d,wQd,OjV,g0P,c2o,YS9,r26,pQf,J2d,NcG,D5o,tVG,Fkf,o0V,n06,vR,qSd,E0P,Io9,CzJ,kAd,VVP,ZjP,$A,qB,Pzv,IT,jF,x5d,y29,eks,RkJ,U5J,zko,lof,msJ,GD9,KY6,WYP,LYG,ATJ,gwo,OoM,cTG,Y2v,rTf,uhP,
hyV,VH,pVG,JT6,dH,Na9,Dsf,tsG,FYM,Q5d,asJ,yH,eF,owf,nwd,fQ,boP,vwG,$sM,s5o,Ew9,Hov,j5d,dsf,ZoP,VsM,Pa6,yTG,Usv,xsP,XVF,S29,fsd,RyV,zyF,lss,MsM,Ta6,X9,GYF,Kxo,WxP,Lxd,ARG,gM6,cR9,ucM,NPG,pAs,SF,h7G,Q1d,oMP,RT,nMd,bdf,vMv,$i6,s1d,EMG,Hd6,j1V,kYf,Vzv,Zdd,e79,yRF,xiG,XAG,SqG,R7o,z7o,lmo,BPv,MzV,TPo,mYd,ihM,G2F,KVf,LVP,AqF,YCd,rqJ,utG,hW9,pPf,JqJ,iG,tQV,QrP,aHo,oBd,nBM,bhF,$Yf,srG,qCd,EBM,IHV,jrG,k2d,WY,ClF,VQJ,Pl9,yqF,Lm,AX,xY9,eWd,XPV,UYP,SCo,zWF,B4o,cY,MQd,T4G,mvf,K8d,L8G,Y1,wIF,gxs,O0V,cEd,Ykv,rEv,
u_s,h8G,pIG,t7v,F8o,nxd,QJd,oxP,b06,vx6,$vF,ExV,H0V,IcV,k3d,C4d,e8d,yEG,R8M,lcd,ox,BZP,M7s,QPv,nm,TZf,mwd,Gao,LRG,AcJ,uUd,h4f,paG,Jc9,NuM,Dwo,QVP,aKo,naf,vaG,oas,b7d,sVJ,$wf,Eas,jVF,H7f,kaV,CyJ,V6d,Z7o,dws,PyM,e4d,ycG,SN6,z4d,R4d,lKd,Buf,M6o,jq,TuF,mLG,Cm,G0f,ivF,KGs,LGF,WGV,Ovf,cm9,rmG,PY,hqP,psd,Jm6,Nms,FG6,aAd,bvf,nnF,vnG,$LM,s0d,IAP,fAs,VH6,Xsd,SsJ,ULG,zqd,Bmf,MHJ,Tmd,m96,iyd,GrF,L6G,AQV,w1v,gXo,Y6G,u49,hXd,rQo,JQF,p1d,QNM,aVG,oXP,nXM,byJ,vXf,$9f,q66,IVd,jNf,krJ,Zyv,VTM,yQF,fVG,x9f,X1d,S6o,RXd,
zXP,U9v,Bjo,GCG,LOo,WOG,APG,wmd,g_P,cP9,LY,rPP,g1,hEv,JPG,NhF,aUG,n_f,sIG,E_o,HXG,jIf,kC6,Cbs,ZXP,Pbo,yPf,fU9,S0d,Xms,x1o,u5,U1d,REV,zE9,lUd,BhP,M$J,ThV,mdo,is2,KvS,WvK,LvB,AV4,wJS,gGK,Osi,cVK,Ydo,rVo,hGo,pJ4,JVo,NdC,DdC,FvS,QM0,aF4,bsl,F0,IFo,vG0,k9i,VoC,ZsK,ddC,P6C,yVl,aB,zG2,Pg,oB,b5,lFX,Bdl,mG2,G4C,ili,$J,KCP,WCP,LCo,AiK;mdd=function(){var m,G;return typeof CSS!=="undefined"&&((G=(m=CSS).supports)==null?void 0:G.call(m,"selector(:has(*))"))};
isJ=function(m){return m.visibility!=="hidden"&&m.display!=="none"};
Kv6=function(m){if(mdd()||m.tagName!=="DETAILS"?!m.matches(G9d):m.querySelector("summary")!==null)return-1;m=m.getAttribute("tabindex")||"0";return Number(m)};
Wvd=function(m){return m.some(function(G){return Kv6(G)>0})};
LvG=function(m){if(m.textContent||m.ariaLabel)return!0;if(m instanceof HTMLInputElement){if(!m.labels)return!1;m=_.g(m.labels);for(var G=m.next();!G.done;G=m.next())if(G.value.textContent)return!0}return!1};
AV9=function(m){return m.sort(function(G,K){return Kv6(K)-Kv6(G)})};
_.wJ6=function(m){m=Array.from(m.querySelectorAll(G9d)).filter(function(G){return(isJ(G.style)?isJ(window.getComputedStyle(G)):!1)&&LvG(G)});
return Wvd(m)?AV9(m):m};
_.mv=function(m,G){if(Error.captureStackTrace)Error.captureStackTrace(this,_.mv);else{var K=Error().stack;K&&(this.stack=K)}m&&(this.message=String(m));G!==void 0&&(this.cause=G)};
i6=function(){throw Error("F");};
gGd=function(m,G){G=String.fromCharCode.apply(null,G);return m==null?G:m+G};
rVd=function(m){var G=!1;G=G===void 0?!1:G;if(OsV){if(G&&(cVd?!m.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(m)))throw Error("G");m=(Ydd||(Ydd=new TextEncoder)).encode(m)}else{for(var K=0,W=new Uint8Array(3*m.length),L=0;L<m.length;L++){var A=m.charCodeAt(L);if(A<128)W[K++]=A;else{if(A<2048)W[K++]=A>>6|192;else{if(A>=55296&&A<=57343){if(A<=56319&&L<m.length){var O=m.charCodeAt(++L);if(O>=56320&&O<=57343){A=(A-55296)*1024+O-56320+65536;W[K++]=A>>18|
240;W[K++]=A>>12&63|128;W[K++]=A>>6&63|128;W[K++]=A&63|128;continue}else L--}if(G)throw Error("G");A=65533}W[K++]=A>>12|224;W[K++]=A>>6&63|128}W[K++]=A&63|128}}m=K===W.length?W:W.subarray(0,K)}return m};
WJ=function(m){_.Ks.setTimeout(function(){throw m;},0)};
_.AV=function(m,G){return m.lastIndexOf(G,0)==0};
wd=function(m,G){var K=m.length-G.length;return K>=0&&m.indexOf(G,K)==K};
_.Od=function(m){return/^[\s\xa0]*$/.test(m)};
_.cJ=function(m,G){return m.indexOf(G)!=-1};
_.rd=function(m,G){return _.cJ(m.toLowerCase(),G.toLowerCase())};
_.hV=function(m,G){var K=0;m=u6(String(m)).split(".");G=u6(String(G)).split(".");for(var W=Math.max(m.length,G.length),L=0;K==0&&L<W;L++){var A=m[L]||"",O=G[L]||"";do{A=/(\d*)(\D*)(.*)/.exec(A)||["","","",""];O=/(\d*)(\D*)(.*)/.exec(O)||["","","",""];if(A[0].length==0&&O[0].length==0)break;K=uPd(A[1].length==0?0:parseInt(A[1],10),O[1].length==0?0:parseInt(O[1],10))||uPd(A[2].length==0,O[2].length==0)||uPd(A[2],O[2]);A=A[3];O=O[3]}while(K==0)}return K};
uPd=function(m,G){return m<G?-1:m>G?1:0};
_.Nd=function(){var m=_.Ks.navigator;return m&&(m=m.userAgent)?m:""};
hGd=function(m){if(!FP||!aM)return!1;for(var G=0;G<aM.brands.length;G++){var K=aM.brands[G].brand;if(K&&_.cJ(K,m))return!0}return!1};
oM=function(m){return _.cJ(_.Nd(),m)};
ns=function(){return FP?!!aM&&aM.brands.length>0:!1};
pJ9=function(){return ns()?!1:oM("Opera")};
JVd=function(){return ns()?!1:oM("Trident")||oM("MSIE")};
Ndv=function(){return ns()?hGd("Microsoft Edge"):oM("Edg/")};
b6=function(){return oM("Firefox")||oM("FxiOS")};
_.Ddv=function(){return oM("Safari")&&!($G()||(ns()?0:oM("Coast"))||pJ9()||(ns()?0:oM("Edge"))||Ndv()||(ns()?hGd("Opera"):oM("OPR"))||b6()||oM("Silk")||oM("Android"))};
$G=function(){return ns()?hGd("Chromium"):(oM("Chrome")||oM("CriOS"))&&!(ns()?0:oM("Edge"))||oM("Silk")};
_.toJ=function(){return oM("Android")&&!($G()||b6()||pJ9()||oM("Silk"))};
Fv6=function(m){var G={};m.forEach(function(K){G[K[0]]=K[1]});
return function(K){return G[K.find(function(W){return W in G})]||""}};
QMo=function(m){var G=_.Nd();if(m==="Internet Explorer"){if(JVd())if((m=/rv: *([\d\.]*)/.exec(G))&&m[1])G=m[1];else{m="";var K=/MSIE +([\d\.]+)/.exec(G);if(K&&K[1])if(G=/Trident\/(\d.\d)/.exec(G),K[1]=="7.0")if(G&&G[1])switch(G[1]){case "4.0":m="8.0";break;case "5.0":m="9.0";break;case "6.0":m="10.0";break;case "7.0":m="11.0"}else m="7.0";else m=K[1];G=m}else G="";return G}var W=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");K=[];for(var L;L=W.exec(G);)K.push([L[1],L[2],L[3]||void 0]);
G=Fv6(K);switch(m){case "Opera":if(pJ9())return G(["Version","Opera"]);if(ns()?hGd("Opera"):oM("OPR"))return G(["OPR"]);break;case "Microsoft Edge":if(ns()?0:oM("Edge"))return G(["Edge"]);if(Ndv())return G(["Edg"]);break;case "Chromium":if($G())return G(["Chrome","CriOS","HeadlessChrome"])}return m==="Firefox"&&b6()||m==="Safari"&&_.Ddv()||m==="Android Browser"&&_.toJ()||m==="Silk"&&oM("Silk")?(G=K[2])&&G[1]||"":""};
_.aF9=function(m){if(ns()&&m!=="Silk"){var G=aM.brands.find(function(K){return K.brand===m});
if(!G||!G.version)return NaN;G=G.version.split(".")}else{G=QMo(m);if(G==="")return NaN;G=G.split(".")}return G.length===0?NaN:Number(G[0])};
qd=function(){return FP?!!aM&&!!aM.platform:!1};
_.oGd=function(){return qd()?aM.platform==="Android":oM("Android")};
nGv=function(){return oM("iPhone")&&!oM("iPod")&&!oM("iPad")};
_.Ed=function(){return nGv()||oM("iPad")||oM("iPod")};
_.bss=function(){return qd()?aM.platform==="macOS":oM("Macintosh")};
_.vGo=function(){return qd()?aM.platform==="Windows":oM("Windows")};
_.$dG=function(){return qd()?aM.platform==="Chrome OS":oM("CrOS")};
_.HJ=function(m){return m[m.length-1]};
sMG=function(m){for(var G=_.IM,K=typeof m==="string"?m.split(""):m,W=m.length-1;W>=0;W--)if(W in K&&G.call(void 0,K[W],W,m))return W;return-1};
_.Vf=function(m,G){return _.Cs(m,G)>=0};
_.qdM=function(m,G){_.Vf(m,G)||m.push(G)};
_.PJ=function(m,G){G=_.Cs(m,G);var K;(K=G>=0)&&_.EGM(m,G);return K};
_.EGM=function(m,G){Array.prototype.splice.call(m,G,1)};
_.yf=function(m){var G=m.length;if(G>0){for(var K=Array(G),W=0;W<G;W++)K[W]=m[W];return K}return[]};
_.RM=function(m,G){for(var K=1;K<arguments.length;K++){var W=arguments[K];if(_.XP(W)){var L=m.length||0,A=W.length||0;m.length=L+A;for(var O=0;O<A;O++)m[L+O]=W[O]}else m.push(W)}};
_.IFd=function(m,G,K,W){Array.prototype.splice.apply(m,HsP(arguments,1))};
HsP=function(m,G,K){return arguments.length<=2?Array.prototype.slice.call(m,G):Array.prototype.slice.call(m,G,K)};
jMP=function(m,G){G=G||m;for(var K=0,W=0,L={};W<m.length;){var A=m[W++],O=_.Ud(A)?"o"+_.z9(A):(typeof A).charAt(0)+A;Object.prototype.hasOwnProperty.call(L,O)||(L[O]=!0,G[K++]=A)}G.length=K};
_.C6o=function(m,G,K){K=K||_.k9V;for(var W=0,L=m.length,A;W<L;){var O=W+(L-W>>>1);var c=K(G,m[O]);c>0?W=O+1:(L=O,A=!c)}return A?W:-W-1};
_.BJ=function(m,G,K){if(!_.XP(m)||!_.XP(G)||m.length!=G.length)return!1;var W=m.length;K=K||Vov;for(var L=0;L<W;L++)if(!K(m[L],G[L]))return!1;return!0};
_.k9V=function(m,G){return m>G?1:m<G?-1:0};
Vov=function(m,G){return m===G};
Zsd=function(m,G,K){G=Array.prototype.splice.call(m,G,1);Array.prototype.splice.call(m,K,0,G[0])};
_.Md=function(m,G){G===void 0&&(G=0);ddv();G=P6v[G];for(var K=Array(Math.floor(m.length/3)),W=G[64]||"",L=0,A=0;L<m.length-2;L+=3){var O=m[L],c=m[L+1],u=m[L+2],h=G[O>>2];O=G[(O&3)<<4|c>>4];c=G[(c&15)<<2|u>>6];u=G[u&63];K[A++]=h+O+c+u}h=0;u=W;switch(m.length-L){case 2:h=m[L+1],u=G[(h&15)<<2]||W;case 1:m=m[L],K[A]=G[m>>2]+G[(m&3)<<4|h>>4]+u+W}return K.join("")};
eG6=function(m){var G="";yVs(m,function(K){G+=String.fromCharCode(K)});
return G};
_.fFd=function(m){var G=[];yVs(m,function(K){G.push(K)});
return G};
_.T9=function(m){var G=m.length,K=G*3/4;K%3?K=Math.floor(K):_.cJ("=.",m[G-1])&&(K=_.cJ("=.",m[G-2])?K-2:K-1);var W=new Uint8Array(K),L=0;yVs(m,function(A){W[L++]=A});
return L!==K?W.subarray(0,L):W};
yVs=function(m,G){function K(u){for(;W<m.length;){var h=m.charAt(W++),J=mC[h];if(J!=null)return J;if(!_.Od(h))throw Error("I`"+h);}return u}
ddv();for(var W=0;;){var L=K(-1),A=K(0),O=K(64),c=K(64);if(c===64&&L===-1)break;G(L<<2|A>>4);O!=64&&(G(A<<4&240|O>>2),c!=64&&G(O<<6&192|c))}};
ddv=function(){if(!mC){mC={};for(var m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),G=["+/=","+/","-_=","-_.","-_"],K=0;K<5;K++){var W=m.concat(G[K].split(""));P6v[K]=W;for(var L=0;L<W.length;L++){var A=W[L];mC[A]===void 0&&(mC[A]=L)}}}};
XJV=function(m){return xdP[m]||""};
UdM=function(m){if(!Sdd)return _.T9(m);m=RGo.test(m)?m.replace(RGo,XJV):m;m=atob(m);for(var G=new Uint8Array(m.length),K=0;K<m.length;K++)G[K]=m.charCodeAt(K);return G};
zGJ=function(m,G){m.__closure__error__context__984382||(m.__closure__error__context__984382={});m.__closure__error__context__984382.severity=G};
_.G4=function(m){m=Error(m);zGJ(m,"warning");return m};
Bds=function(m,G){if(m!=null){var K;var W=(K=lFf)!=null?K:lFf={};K=W[m]||0;K>=G||(W[m]=K+1,m=Error(),zGJ(m,"incident"),WJ(m))}};
Kl=function(m,G,K){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(K===void 0?0:K)&&Symbol.for&&m?Symbol.for(m):m!=null?Symbol(m):Symbol():G};
wK=function(m,G){Ll||_.Ai in m||MoG(m,Tdf);m[_.Ai]|=G};
gK=function(m,G){Ll||_.Ai in m||MoG(m,Tdf);m[_.Ai]=G};
mGJ=function(m){if(4&m)return 512&m?512:1024&m?1024:0};
uS=function(m){wK(m,34);return m};
hi=function(m){wK(m,8192);return m};
ilV=function(m){wK(m,32);return m};
oF=function(){return typeof BigInt==="function"};
so=function(m,G){return G===void 0?m.copyOnWrite!==nl&&!!(2&(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ai]|0)):!!(2&G)&&m.copyOnWrite!==nl};
_.j0=function(m,G){if(m!=null)if(typeof m==="string")m=m?new qG(m,H2):_.IF();else if(m.constructor!==qG)if(G4v&&m!=null&&m instanceof Uint8Array)m=m.length?new qG(new Uint8Array(m),H2):_.IF();else{if(!G)throw Error();m=void 0}return m};
KCF=function(m,G){if(typeof G!=="number"||G<0||G>=m.length)throw Error();};
WCF=function(m,G,K){var W=G&128?0:-1,L=m.length,A;if(A=!!L)A=m[L-1],A=A!=null&&typeof A==="object"&&A.constructor===Object;var O=L+(A?-1:0);for(G=G&128?1:0;G<O;G++)K(G-W,m[G]);if(A){m=m[L-1];for(var c in m)!isNaN(c)&&K(+c,m[c])}};
Cl=function(m){return m&128?kk:void 0};
_.w2G=function(m){var G=LCd;if(!Aid(m)){var K,W;G=(W=(K=typeof G==="function"?G():G)==null?void 0:K.concat("\n"))!=null?W:"";throw Error("L`"+G+"`"+String(m));}};
VX=function(m){m.isGuard_doNotManuallySetPrettyPlease=!0;return m};
OlG=function(){var m=gkG;return VX(function(G){for(var K in m)if(G===m[K]&&!/^[0-9]+$/.test(K))return!0;return!1})};
_.ZP=function(m){var G=m;if(cio(G)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(G))throw Error(String(G));}else if(YoM(G)&&!Number.isSafeInteger(G))throw Error(String(G));return ri9?BigInt(m):m=uRd(m)?m?"1":"0":cio(m)?m.trim()||"0":String(m)};
hBv=function(m,G){if(m.length>G.length)return!1;if(m.length<G.length||m===G)return!0;for(var K=0;K<m.length;K++){var W=m[K],L=G[K];if(W>L)return!1;if(W<L)return!0}};
p2f=function(m){var G=m>>>0;P2=G;yX=(m-G)/4294967296>>>0};
e0=function(m){if(m<0){p2f(-m);var G=_.g(JiJ(P2,yX));m=G.next().value;G=G.next().value;P2=m>>>0;yX=G>>>0}else p2f(m)};
DGv=function(m){var G=NK6||(NK6=new DataView(new ArrayBuffer(8)));G.setFloat32(0,+m,!0);yX=0;P2=G.getUint32(0,!0)};
t0v=function(m,G){var K=G*4294967296+(m>>>0);return Number.isSafeInteger(K)?K:_.xk(m,G)};
FCd=function(m,G){return _.ZP(oF()?BigInt.asUintN(64,(BigInt(G>>>0)<<BigInt(32))+BigInt(m>>>0)):_.xk(m,G))};
RF=function(m,G){var K=G&2147483648;K&&(m=~m+1>>>0,G=~G>>>0,m==0&&(G=G+1>>>0));m=t0v(m,G);return typeof m==="number"?K?-m:m:K?"-"+m:m};
QFd=function(m,G){return oF()?_.ZP(BigInt.asIntN(64,(BigInt.asUintN(32,BigInt(G))<<BigInt(32))+BigInt.asUintN(32,BigInt(m)))):_.ZP(_.z4(m,G))};
aPV=function(m){var G=P2,K=yX,W=K>>31;K=(K<<1|G>>>31)^W;m(G<<1^W,K)};
nkd=function(m,G){return okG(m,G,RF)};
okG=function(m,G,K){var W=-(m&1);m=(m>>>1|G<<31)^W;G=G>>>1^W;return K(m,G)};
_.xk=function(m,G){G>>>=0;m>>>=0;if(G<=2097151)var K=""+(4294967296*G+m);else oF()?K=""+(BigInt(G)<<BigInt(32)|BigInt(m)):(K=(m>>>24|G<<8)&16777215,G=G>>16&65535,m=(m&16777215)+K*6777216+G*6710656,K+=G*8147497,G*=2,m>=1E7&&(K+=m/1E7>>>0,m%=1E7),K>=1E7&&(G+=K/1E7>>>0,K%=1E7),K=G+blJ(K)+blJ(m));return K};
blJ=function(m){m=String(m);return"0000000".slice(m.length)+m};
_.z4=function(m,G){G&2147483648?oF()?m=""+(BigInt(G|0)<<BigInt(32)|BigInt(m>>>0)):(G=_.g(JiJ(m,G)),m=G.next().value,G=G.next().value,m="-"+_.xk(m,G)):m=_.xk(m,G);return m};
B2=function(m){if(m.length<16)e0(Number(m));else if(oF())m=BigInt(m),P2=Number(m&BigInt(4294967295))>>>0,yX=Number(m>>BigInt(32)&BigInt(4294967295));else{var G=+(m[0]==="-");yX=P2=0;for(var K=m.length,W=G,L=(K-G)%6+G;L<=K;W=L,L+=6)W=Number(m.slice(W,L)),yX*=1E6,P2=P2*1E6+W,P2>=4294967296&&(yX+=Math.trunc(P2/4294967296),yX>>>=0,P2>>>=0);G&&(G=_.g(JiJ(P2,yX)),m=G.next().value,G=G.next().value,P2=m,yX=G)}};
JiJ=function(m,G){G=~G;m?m=~m+1:G+=1;return[m,G]};
MG=function(m){return Array.prototype.slice.call(m)};
_.GG=function(m,G){throw Error(G===void 0?"unexpected value "+m+"!":G);};
_.KP=function(m){if(m!=null&&typeof m!=="number")throw Error("M`"+typeof m+"`"+m);return m};
_.Wu=function(m){if(m==null||typeof m==="number")return m;if(m==="NaN"||m==="Infinity"||m==="-Infinity")return Number(m)};
vkd=function(m){if(m!=null&&typeof m!=="boolean")throw Error("N`"+_.LP(m)+"`"+m);return m};
_.$GF=function(m){if(m==null||typeof m==="boolean")return m;if(typeof m==="number")return!!m};
_.wz=function(m){switch(typeof m){case "bigint":return!0;case "number":return AD(m);case "string":return sFG.test(m);default:return!1}};
_.OO=function(m){if(!AD(m))throw _.G4("enum");return m|0};
_.Y5=function(m){return m==null?m:AD(m)?m|0:void 0};
qoG=function(m){if(typeof m!=="number")throw _.G4("int32");if(!AD(m))throw _.G4("int32");return m|0};
_.rz=function(m){return m==null?m:qoG(m)};
_.uq=function(m){if(m==null)return m;if(typeof m==="string"&&m)m=+m;else if(typeof m!=="number")return;return AD(m)?m|0:void 0};
_.Eks=function(m){if(m==null)return m;if(typeof m==="string"&&m)m=+m;else if(typeof m!=="number")return;return AD(m)?m>>>0:void 0};
k4G=function(m){var G=0;G=G===void 0?0:G;if(!_.wz(m))throw _.G4("int64");var K=typeof m;switch(G){case 512:switch(K){case "string":return hD(m);case "bigint":return String(pP(64,m));default:return HlM(m)}case 1024:switch(K){case "string":return IPG(m);case "bigint":return _.ZP(pP(64,m));default:return jFG(m)}case 0:switch(K){case "string":return hD(m);case "bigint":return _.ZP(pP(64,m));default:return tD(m)}default:return _.GG(G,"Unknown format requested type for int64")}};
FE=function(m){return m==null?m:k4G(m)};
CSf=function(m){var G=m.length;if(m[0]==="-"?G<20||G===20&&m<="-9223372036854775808":G<19||G===19&&m<="9223372036854775807")return m;B2(m);return _.z4(P2,yX)};
V0o=function(m){if(m[0]==="-")var G=!1;else G=m.length,G=G<20?!0:G===20&&m<="18446744073709551615";if(G)return m;B2(m);return _.xk(P2,yX)};
tD=function(m){m=as(m);nP(m)||(e0(m),m=RF(P2,yX));return m};
_.ZlV=function(m){m=as(m);m>=0&&nP(m)||(e0(m),m=t0v(P2,yX));return m};
HlM=function(m){m=as(m);nP(m)?m=String(m):(e0(m),m=_.z4(P2,yX));return m};
_.dGs=function(m){m=as(m);m>=0&&nP(m)?m=String(m):(e0(m),m=_.xk(P2,yX));return m};
hD=function(m){var G=as(Number(m));if(nP(G))return String(G);G=m.indexOf(".");G!==-1&&(m=m.substring(0,G));return CSf(m)};
IPG=function(m){var G=as(Number(m));if(nP(G))return _.ZP(G);G=m.indexOf(".");G!==-1&&(m=m.substring(0,G));return oF()?_.ZP(pP(64,BigInt(m))):_.ZP(CSf(m))};
jFG=function(m){return nP(m)?_.ZP(tD(m)):_.ZP(HlM(m))};
_.PSG=function(m){return nP(m)?_.ZP(_.ZlV(m)):_.ZP(_.dGs(m))};
_.yis=function(m){var G=as(Number(m));if(nP(G)&&G>=0)return String(G);G=m.indexOf(".");G!==-1&&(m=m.substring(0,G));return V0o(m)};
_.eBs=function(m){var G=as(Number(m));if(nP(G)&&G>=0)return _.ZP(G);G=m.indexOf(".");G!==-1&&(m=m.substring(0,G));return oF()?_.ZP((0,_.bq)(64,BigInt(m))):_.ZP(V0o(m))};
xGf=function(m){if(m==null)return m;if(typeof m==="bigint")return fPG(m)?m=Number(m):(m=pP(64,m),m=fPG(m)?Number(m):String(m)),m;if(_.wz(m))return typeof m==="number"?tD(m):hD(m)};
X2d=function(m,G){G=G===void 0?!1:G;var K=typeof m;if(m==null)return m;if(K==="bigint")return String(pP(64,m));if(_.wz(m))return K==="string"?hD(m):G?HlM(m):tD(m)};
Sov=function(m){var G=typeof m;if(m==null)return m;if(G==="bigint")return _.ZP(pP(64,m));if(_.wz(m))return G==="string"?IPG(m):jFG(m)};
RB9=function(m){var G=typeof m;if(m==null)return m;if(G==="bigint")return _.ZP((0,_.bq)(64,m));if(_.wz(m))return G==="string"?_.eBs(m):_.PSG(m)};
UGM=function(m){if(m==null)return m;var G=typeof m;if(G==="bigint")return String(pP(64,m));if(_.wz(m)){if(G==="string")return hD(m);if(G==="number")return tD(m)}};
zBs=function(m){if(m==null)return m;var G=typeof m;if(G==="bigint")return String((0,_.bq)(64,m));if(_.wz(m)){if(G==="string")return _.yis(m);if(G==="number")return _.ZlV(m)}};
_.vu=function(m){if(typeof m!=="string")throw Error();return m};
sO=function(m){if(m!=null&&typeof m!=="string")throw Error();return m};
_.q6=function(m){return m==null||typeof m==="string"?m:void 0};
M0F=function(m,G,K,W){if(m!=null&&m[Hu]===jW)return m;if(!Array.isArray(m))return K?W&2?G[lPM]||(G[lPM]=BKM(G)):new G:void 0;K=m[_.Ai]|0;W=K|W&32|W&2;W!==K&&gK(m,W);return new G(m)};
BKM=function(m){m=new m;uS(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return m};
TKd=function(m,G,K){m=G?qoG(m):_.uq(m);return m==null?K?0:void 0:m|0};
m6d=function(m){return m};
iPv=function(m){return m};
KDF=function(m,G,K,W,L,A){m=M0F(m,W,K,A);L&&(m=GG6(m));return m};
WDM=function(m){return[m,this.get(m)]};
wu6=function(){return LDJ||(LDJ=new k5(uS([]),void 0,void 0,void 0,ADM))};
g5P=function(m){var G=Vi(Z6);return G?m[G]:void 0};
YO6=function(m,G){var K=K===void 0?!1:K;if(Vi(OPG)&&Vi(Z6)&&void 0===OPG){var W=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=W[Z6];if(!L)return;if(L=L.reviveUnknownFields)try{L(W,G,cDd);return}catch(A){WJ(A)}}K&&(m=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(K=Vi(Z6))&&K in m&&(m=m[K])&&delete m[G])};
uEd=function(m,G){var K=Vi(Z6),W;Ll&&K&&((W=m[K])==null?void 0:W[G])!=null&&Bds(rDJ,3)};
puf=function(m,G){G<100||Bds(h66,1)};
FD9=function(m,G,K,W){var L=W!==void 0;W=!!W;var A=Vi(Z6),O;!L&&Ll&&A&&(O=m[A])&&JDo(O,puf);A=[];var c=m.length;O=4294967295;var u=!1,h=!!(G&64),J=h?G&128?0:-1:void 0;if(!(G&1)){var N=c&&m[c-1];N!=null&&typeof N==="object"&&N.constructor===Object?(c--,O=c):N=void 0;if(h&&!(G&128)&&!L){u=!0;var D;O=((D=Nzd)!=null?D:m6d)(O-J,J,m,N,void 0)+J}}G=void 0;for(D=0;D<c;D++){var t=m[D];if(t!=null&&(t=K(t,W))!=null)if(h&&D>=O){var a=D-J,v=void 0;((v=G)!=null?v:G={})[a]=t}else A[D]=t}if(N)for(var I in N)c=N[I],
c!=null&&(c=K(c,W))!=null&&(D=+I,t=void 0,h&&!Number.isNaN(D)&&(t=D+J)<O?A[t]=c:(D=void 0,((D=G)!=null?D:G={})[I]=c));G&&(u?A.push(G):A[O]=G);L&&Vi(Z6)&&(m=g5P(m))&&m instanceof D66&&(A[Z6]=tWd(m));return A};
a6d=function(m){m[0]=Qsv(m[0]);m[1]=Qsv(m[1]);return m};
Qsv=function(m){switch(typeof m){case "number":return Number.isFinite(m)?m:""+m;case "bigint":return fPG(m)?Number(m):""+m;case "boolean":return m?1:0;case "object":if(Array.isArray(m)){var G=m[_.Ai]|0;return m.length===0&&G&1?void 0:FD9(m,G,Qsv)}if(m!=null&&m[Hu]===jW)return o5d(m);if(m instanceof qG){G=m.JSC$9127_value_;if(G==null)m="";else if(typeof G==="string")m=G;else{if(Sdd){for(var K="",W=0,L=G.length-10240;W<L;)K+=String.fromCharCode.apply(null,G.subarray(W,W+=10240));K+=String.fromCharCode.apply(null,
W?G.subarray(W):G);G=btoa(K)}else G=_.Md(G);m=m.JSC$9127_value_=G}return m}if(m instanceof k5)return m=m.size!==0?n5f(m,a6d):void 0,m;return}return m};
dz=function(m,G){if(G){Nzd=G==null||G===m6d||G[bPv]!==v5d?m6d:G;try{return o5d(m)}finally{Nzd=void 0}}return o5d(m)};
o5d=function(m){m=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return FD9(m,m[_.Ai]|0,Qsv)};
qOd=function(m){switch(typeof m){case "boolean":return $6P||($6P=[0,void 0,!0]);case "number":return m>0?void 0:m===0?ssM||(ssM=[0,void 0]):[-m,void 0];case "string":return[0,m];case "object":return m}};
eW=function(m,G){return E5o(m,G[0],G[1])};
_.fP=function(m,G,K){return E5o(m,G,K,2048)};
E5o=function(m,G,K,W){W=W===void 0?0:W;if(m==null){var L=32;K?(m=[K],L|=128):m=[];G&&(L=L&-16760833|(G&1023)<<14)}else{if(!Array.isArray(m))throw Error("P");L=m[_.Ai]|0;if(HP9&&1&L)throw Error("Q");2048&L&&!(2&L)&&I6J();if(L&256)throw Error("R");if(L&64)return(L|W)!==L&&gK(m,L|W),m;if(K&&(L|=128,K!==m[0]))throw Error("S");a:{K=m;L|=64;var A=K.length;if(A){var O=A-1,c=K[O];if(c!=null&&typeof c==="object"&&c.constructor===Object){G=L&128?0:-1;O-=G;if(O>=1024)throw Error("U");for(var u in c)A=+u,A<O&&
(K[A+G]=c[u],delete c[u]);L=L&-16760833|(O&1023)<<14;break a}}if(G){u=Math.max(G,A-(L&128?0:-1));if(u>1024)throw Error("V");L=L&-16760833|(u&1023)<<14}}}gK(m,L|64|W);return m};
I6J=function(){if(HP9)throw Error("T");Bds(jsJ,5)};
VW6=function(m,G){if(typeof m!=="object")return m;if(Array.isArray(m)){var K=m[_.Ai]|0;return m.length===0&&K&1?void 0:kGP(m,K,G)}if(m!=null&&m[Hu]===jW)return CqP(m);if(m instanceof k5){G=m.arrayState;if(G&2)return m;if(!m.size)return;K=uS(n5f(m));if(m.valueCtor)for(m=0;m<K.length;m++){var W=K[m],L=W[1];L==null||typeof L!=="object"?L=void 0:L!=null&&L[Hu]===jW?L=CqP(L):Array.isArray(L)?L=kGP(L,L[_.Ai]|0,!!(G&32)):L=void 0;W[1]=L}return K}if(m instanceof qG)return m};
kGP=function(m,G,K){if(G&2)return m;!K||4096&G||16&G?m=x5(m,G,!1,K&&!(G&16)):(wK(m,34),G&4&&Object.freeze(m));return m};
ZPf=function(m,G,K){m=new m.constructor(G);K&&(m.copyOnWrite=nl);m.noLegacyNull=nl;return m};
CqP=function(m){var G=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=G[_.Ai]|0;return so(m,K)?m:d6d(m,G,K)?ZPf(m,G):x5(G,K)};
x5=function(m,G,K,W){W!=null||(W=!!(34&G));m=FD9(m,G,VW6,W);W=32;K&&(W|=2);G=G&16769217|W;gK(m,G);return m};
GG6=function(m){var G=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=G[_.Ai]|0;return so(m,K)?d6d(m,G,K)?ZPf(m,G,!0):new m.constructor(x5(G,K,!1)):m};
SW=function(m){if(m.copyOnWrite!==nl)return!1;var G=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;G=x5(G,G[_.Ai]|0);wK(G,2048);m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=G;m.copyOnWrite=void 0;m.noLegacyNull=void 0;return!0};
Rs=function(m){if(!SW(m)&&so(m,m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Ai]|0))throw Error();};
UO=function(m,G){G===void 0&&(G=m[_.Ai]|0);G&32&&!(G&4096)&&gK(m,G|4096)};
d6d=function(m,G,K){return K&2?!0:K&32&&!(K&4096)?(gK(G,K|2),m.copyOnWrite=nl,!0):!1};
Bu=function(m,G,K,W,L){var A=K+(L?0:-1),O=m.length-1;if(O>=1+(L?0:-1)&&A>=O){var c=m[O];if(c!=null&&typeof c==="object"&&c.constructor===Object)return c[K]=W,G}if(A<=O)return m[A]=W,G;if(W!==void 0){var u;O=((u=G)!=null?u:G=m[_.Ai]|0)>>14&1023||536870912;K>=O?W!=null&&(A={},m[O+(L?0:-1)]=(A[K]=W,A)):m[A]=W}return G};
_.mu=function(m,G,K,W,L){var A=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=A[_.Ai]|0;W=so(m,O)?1:W;L=!!L||W===3;W===2&&SW(m)&&(A=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=A[_.Ai]|0);m=PqP(A,G);var c=m===M6?7:m[_.Ai]|0,u=yDs(c,O);var h=4&u?!1:!0;if(h){4&u&&(m=MG(m),c=0,u=TG(u,O),O=Bu(A,O,G,m));for(var J=0,N=0;J<m.length;J++){var D=K(m[J]);D!=null&&(m[N++]=D)}N<J&&(m.length=N);K=(u|4)&-513;u=K&=-1025;u&=-4097}u!==c&&(gK(m,u),2&u&&Object.freeze(m));return m=e6d(m,u,A,
O,G,W,h,L)};
e6d=function(m,G,K,W,L,A,O,c){var u=G;A===1||(A!==4?0:2&G||!(16&G)&&32&W)?Kp(G)||(G|=!m.length||O&&!(4096&G)||32&W&&!(4096&G||16&G)?2:256,G!==u&&gK(m,G),Object.freeze(m)):(A===2&&Kp(G)&&(m=MG(m),u=0,G=TG(G,W),W=Bu(K,W,L,m)),Kp(G)||(c||(G|=16),G!==u&&gK(m,G)));2&G||!(4096&G||16&G)||UO(K,W);return m};
PqP=function(m,G,K){m=WN(m,G,K);return Array.isArray(m)?m:M6};
yDs=function(m,G){2&G&&(m|=2);return m|1};
Kp=function(m){return!!(2&m)&&!!(4&m)||!!(256&m)};
f6P=function(m){return _.j0(m,!0)};
x6d=function(m){m=MG(m);for(var G=0;G<m.length;G++){var K=m[G]=MG(m[G]);Array.isArray(K[1])&&(K[1]=uS(K[1]))}return hi(m)};
_.Xuf=function(m,G,K,W,L){var A=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=A[_.Ai]|0;var c=so(m,O);a:{!c&&SW(m)&&(A=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=A[_.Ai]|0);var u=WN(A,G);m=!1;if(u==null){if(c){G=wu6();break a}u=[]}else if(u.constructor===k5)if(u.arrayState&2&&!c)u=n5f(u);else{G=u;break a}else Array.isArray(u)?m=!!((u[_.Ai]|0)&2):u=[];if(c){if(!u.length){G=wu6();break a}m||(m=!0,uS(u))}else m&&(m=!1,hi(u),u=x6d(u));!m&&O&32&&ilV(u);W=new k5(u,K,W,L);O=
Bu(A,O,G,W);m||UO(A,O);G=W}!c&&K&&(G.callToMutableOnAccess=!0);return G};
_.Lp=function(m,G,K,W){Rs(m);var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=L[_.Ai]|0;if(K==null)return Bu(L,A,G),m;var O=K===M6?7:K[_.Ai]|0,c=O,u=Kp(O),h=u||Object.isFrozen(K);u||(O=0);h||(K=MG(K),c=0,O=TG(O,A),h=!1);O|=5;var J;u=(J=mGJ(O))!=null?J:0;for(J=0;J<K.length;J++){var N=K[J],D=W(N,u);Object.is(N,D)||(h&&(K=MG(K),c=0,O=TG(O,A),h=!1),K[J]=D)}O!==c&&(h&&(K=MG(K),O=TG(O,A)),gK(K,O));Bu(L,A,G,K);return m};
_.AC=function(m,G,K,W,L){Rs(m);var A=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bu(A,A[_.Ai]|0,G,(W==="0"?Number(K)===0:K===W)?void 0:K,L);return m};
_.wx=function(m,G,K){if(G&2)throw Error();var W=Cl(G),L=PqP(m,K,W),A=L===M6?7:L[_.Ai]|0,O=yDs(A,G);if(2&O||Kp(O)||16&O)O===A||Kp(O)||gK(L,O),L=MG(L),A=0,O=TG(O,G),Bu(m,G,K,L,W);O&=-13;O!==A&&gK(L,O);return L};
SOG=function(m){if(Ll){var G;return(G=m[cN])!=null?G:m[cN]=new Map}if(cN in m)return m[cN];G=new Map;Object.defineProperty(m,cN,{value:G});return G};
U6M=function(m,G,K,W,L){var A=SOG(m),O=R66(A,m,G,K,L);O!==W&&(O&&(G=Bu(m,G,O,void 0,L)),A.set(K,W));return G};
R66=function(m,G,K,W,L){var A=m.get(W);if(A!=null)return A;for(var O=A=0;O<W.length;O++){var c=W[O];WN(G,c,L)!=null&&(A!==0&&(K=Bu(G,K,A,void 0,L)),A=c)}m.set(W,A);return A};
z6d=function(m,G,K,W,L){var A=!1;W=WN(m,W,L,function(O){var c=M0F(O,K,!1,G);A=c!==O&&c!=null;return c});
if(W!=null)return A&&!so(W)&&UO(m,G),W};
l6M=function(m,G,K,W,L,A,O,c){var u=so(m,K);A=u?1:A;O=!!O||A===3;u=c&&!u;(A===2||u)&&SW(m)&&(G=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=G[_.Ai]|0);m=PqP(G,L);var h=m===M6?7:m[_.Ai]|0,J=yDs(h,K);if(c=!(4&J)){var N=m,D=K,t=!!(2&J);t&&(D|=2);for(var a=!t,v=!0,I=0,Z=0;I<N.length;I++){var k=M0F(N[I],W,!1,D);if(k instanceof W){if(!t){var z=so(k);a&&(a=!z);v&&(v=z)}N[Z++]=k}}Z<I&&(N.length=Z);J|=4;J=v?J&-4097:J|4096;J=a?J|8:J&-9}J!==h&&(gK(m,J),2&J&&Object.freeze(m));if(u&&!(8&J||!m.length&&
(A===1||(A!==4?0:2&J||!(16&J)&&32&K)))){Kp(J)&&(m=MG(m),J=TG(J,K),K=Bu(G,K,L,m));W=m;u=J;for(h=0;h<W.length;h++)N=W[h],J=GG6(N),N!==J&&(W[h]=J);u|=8;J=u=W.length?u|4096:u&-4097;gK(m,J)}return m=e6d(m,J,G,K,L,A,c,O)};
BzV=function(m){m==null&&(m=void 0);return m};
TG=function(m,G){return m=(2&G?m|2:m&-3)&-273};
_.MWd=function(m,G,K,W,L){Rs(m);G=_.mu(m,G,L,2,!0);var A;L=(A=mGJ(G===M6?7:G[_.Ai]|0))!=null?A:0;G.push(K(W,L));return m};
Tzd=function(m,G,K,W,L,A,O){Rs(m);var c=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;m=l6M(m,c,c[_.Ai]|0,K,G,2,!0);if(A&&O)L!=null||(L=m.length-1),KCF(m,L),m.splice(L,A),m.length||(m[_.Ai]&=-4097);else{if(A){if(typeof L!=="number"||L<0||L>m.length)throw Error();}else W=W!=null?W:new K;L!=void 0?m.splice(L,A,W):m.push(W);L=K=m===M6?7:m[_.Ai]|0;(W=so(W))?(K&=-9,m.length===1&&(K&=-4097)):K|=4096;K!==L&&gK(m,K);W||UO(c)}};
ipd=function(m,G){if(typeof m==="string")return new Yo(UdM(m),G);if(Array.isArray(m))return new Yo(new Uint8Array(m),G);if(m.constructor===Uint8Array)return new Yo(m,!1);if(m.constructor===ArrayBuffer)return m=new Uint8Array(m),new Yo(m,!1);if(m.constructor===qG)return G=mI9(m)||new Uint8Array(0),new Yo(G,!0,m);if(m instanceof Uint8Array)return m=m.constructor===Uint8Array?m:new Uint8Array(m.buffer,m.byteOffset,m.byteLength),new Yo(m,!1);throw Error();};
Kuf=function(m){switch(typeof m){case "string":G7o(m)}};
LuF=function(m){switch(typeof m){case "string":WuJ(m)}};
rx=function(){var m=function(){throw Error();};
Object.setPrototypeOf(m,m.prototype);return m};
wNG=function(m,G){var K=K===void 0?ACo:K;return new ug(m,G,K)};
cCv=function(m,G,K,W,L){goP(m,K,Opd(G,W),L)};
hC=function(m,G,K,W){var L=W[m];if(L)return L;L={};L.binaryFields=W;L.messageMetadata=qOd(W[0]);var A=W[1],O=1;A&&A.constructor===Object&&(L.extensions=A,A=W[++O],typeof A==="function"&&(L.isMessageSet=!0,YeV!=null||(YeV=A),rCv!=null||(rCv=W[O+1]),A=W[O+=2]));for(var c={};A&&uOG(A);){for(var u=0;u<A.length;u++)c[A[u]]=A;A=W[++O]}for(u=1;A!==void 0;){typeof A==="number"&&(u+=A,A=W[++O]);var h=void 0;if(A instanceof ug)var J=A;else J=hC6,O--;A=void 0;if((A=J)==null?0:A.$$isMsg){A=W[++O];h=W;var N=O;
typeof A==="function"&&(A=A(),h[N]=A);h=A}A=W[++O];N=u+1;typeof A==="number"&&A<0&&(N-=A,A=W[++O]);for(;u<N;u++){var D=c[u];h?K(L,u,J,h,D):G(L,u,J,D)}}return W[m]=L};
uOG=function(m){return Array.isArray(m)&&!!m.length&&typeof m[0]==="number"&&m[0]>0};
JCP=function(m){return Array.isArray(m)?m[0]instanceof ug?m:[pNs,m]:[m,void 0]};
Opd=function(m,G){if(m instanceof _.pp)return m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(m))return eW(m,G)};
Nx6=function(m,G,K,W){var L=K.$$binaryReaderFn;m[G]=W?function(A,O,c){return L(A,O,c,W)}:L};
t4G=function(m,G,K,W,L){var A=K.$$binaryReaderFn,O,c;m[G]=function(u,h,J){return A(u,h,J,c||(c=hC(DIF,Nx6,t4G,W).messageMetadata),O||(O=FuG(W)),L)}};
FuG=function(m){var G=m[Qed];if(G!=null)return G;var K=hC(DIF,Nx6,t4G,m);G=K.isMessageSet?function(W,L){return YeV(W,L,K)}:function(W,L){for(;a3d(L)&&L.nextWireType_!=4;){var A=L.nextField_,O=K[A];
if(O==null){var c=K.extensions;c&&(c=c[A])&&(c=oo6(c),c!=null&&(O=K[A]=c))}if(O==null||!O(L,W,A)){c=L;O=c.fieldCursor_;nod(c);if(c.discardUnknownFields)var u=void 0;else{var h=c.decoder_.cursor_-O;c.decoder_.cursor_=O;u=bpG(c.decoder_,h)}h=c=O=void 0;var J=W;u&&((O=(c=(h=J[Z6])!=null?h:J[Z6]=new D66)[A])!=null?O:c[A]=[]).push(u)}}if(W=g5P(W))W.reviveUnknownFields=K.binaryFields[vof];return!0};
m[Qed]=G;m[vof]=$IG.bind(m);return G};
$IG=function(m,G,K,W){var L=this[DIF],A=this[Qed],O=eW(void 0,L.messageMetadata),c=g5P(m);if(c){var u=!1,h=L.extensions;if(h){L=function(a,v,I){if(I.length!==0)if(h[v])for(a=_.g(I),v=a.next();!v.done;v=a.next()){v=seF(v.value);try{u=!0,A(O,v)}finally{v.free()}}else W==null||W(m,v,I)};
if(G==null)JDo(c,L);else if(c!=null){var J=c[G];J&&L(c,G,J)}if(u){var N=m[_.Ai]|0;if(N&2&&N&2048&&(K==null||!K.reviveIntoImmutable))throw Error();var D=Cl(N),t=function(a,v){if(WN(m,a,D)!=null)switch(K==null?void 0:K.resolutionBehavior){case 1:return;default:throw Error();}v!=null&&(N=Bu(m,N,a,v,D));delete c[a]};
G==null?WCF(O,O[_.Ai]|0,function(a,v){t(a,v)}):t(G,WN(O,G,D))}}}};
oo6=function(m){m=JCP(m);var G=m[0].$$binaryReaderFn;if(m=m[1]){var K=FuG(m),W=hC(DIF,Nx6,t4G,m).messageMetadata;return function(L,A,O){return G(L,A,O,W,K)}}return G};
qed=function(m,G,K){m[G]=K.$$binaryWriterFn};
HpV=function(m,G,K,W){var L,A,O=K.$$binaryWriterFn;m[G]=function(c,u,h){return O(c,u,h,A||(A=hC(Eod,qed,HpV,W).messageMetadata),L||(L=I3d(W)))}};
I3d=function(m){var G=m[je6];if(!G){var K=hC(Eod,qed,HpV,m);G=function(W,L){return k7d(W,L,K)};
m[je6]=G}return G};
k7d=function(m,G,K){WCF(m,m[_.Ai]|0,function(W,L){if(L!=null){var A=Cgs(K,W);A?A(G,L,W):W<500||Bds(V4d,3)}});
(m=g5P(m))&&JDo(m,function(W,L,A){NI(G,G.encoder_.end());for(W=0;W<A.length;W++)NI(G,mI9(A[W])||new Uint8Array(0))})};
Cgs=function(m,G){var K=m[G];if(K)return K;if(K=m.extensions)if(K=K[G]){K=JCP(K);var W=K[0].$$binaryWriterFn;if(K=K[1]){var L=I3d(K),A=hC(Eod,qed,HpV,K).messageMetadata;K=m.isMessageSet?rCv(A,L):function(O,c,u){return W(O,c,u,A,L)}}else K=W;
return m[G]=K}};
_.Zps=function(m,G,K){if(Array.isArray(G)){var W=G[_.Ai]|0;if(W&4)return G;for(var L=0,A=0;L<G.length;L++){var O=m(G[L]);O!=null&&(G[A++]=O)}A<L&&(G.length=A);m=W|1;K&&(m=(m|4)&-1537);m!==W&&gK(G,m);K&&m&2&&Object.freeze(G);return G}};
_.D3=function(m,G,K){return new ug(m,G,K)};
_.dI6=function(m,G,K){return new ug(m,G,K)};
_.tC=function(m,G,K){Bu(m,m[_.Ai]|0,G,K,Cl(m[_.Ai]|0))};
Pg6=function(m,G,K){G=_.Wu(G);G!=null&&(_.FO(m,K,1),m=m.encoder_,K=NK6||(NK6=new DataView(new ArrayBuffer(8))),K.setFloat64(0,+G,!0),P2=K.getUint32(0,!0),yX=K.getUint32(4,!0),_.QG(m,P2),_.QG(m,yX))};
yCP=function(m,G,K){G=_.Wu(G);G!=null&&(_.FO(m,K,5),m=m.encoder_,DGv(G),_.QG(m,P2))};
_.oe=function(m,G,K){G=UGM(G);if(G!=null&&(Kuf(G),G!=null))switch(_.FO(m,K,0),typeof G){case "number":m=m.encoder_;e0(G);ae(m,P2,yX);break;case "bigint":K=BigInt.asUintN(64,G);K=new eCo(Number(K&BigInt(4294967295)),Number(K>>BigInt(32)));ae(m.encoder_,K.JSC$9170_lo,K.JSC$9170_hi);break;default:K=G7o(G),ae(m.encoder_,K.JSC$9170_lo,K.JSC$9170_hi)}};
xIJ=function(m,G,K){G=zBs(G);if(G!=null&&(LuF(G),G!=null))switch(_.FO(m,K,0),typeof G){case "number":m=m.encoder_;e0(G);ae(m,P2,yX);break;case "bigint":K=f3d(G);ae(m.encoder_,K.JSC$9168_lo,K.JSC$9168_hi);break;default:K=WuJ(G),ae(m.encoder_,K.JSC$9168_lo,K.JSC$9168_hi)}};
SeF=function(m,G,K){G=_.uq(G);G!=null&&G!=null&&(_.FO(m,K,0),_.XNV(m.encoder_,G))};
_.UIJ=function(m,G,K){RCo(m,K,zBs(G))};
zCd=function(m,G,K){G=_.$GF(G);G!=null&&(_.FO(m,K,0),m.encoder_.JSC$9172_buffer_.push(G?1:0))};
Bxo=function(m,G,K){G=_.q6(G);G!=null&&l3G(m,K,rVd(G))};
M4v=function(m,G,K,W,L){goP(m,K,Opd(G,W),L)};
_.Txs=function(m,G,K){G=G==null||typeof G=="string"||G instanceof qG?G:void 0;G!=null&&l3G(m,K,ipd(G,!0).buffer)};
mpf=function(m,G,K){G=_.Eks(G);G!=null&&G!=null&&(_.FO(m,K,0),np(m.encoder_,G))};
_.iZ6=function(m,G,K){G=_.uq(G);G!=null&&(G=parseInt(G,10),_.FO(m,K,0),_.XNV(m.encoder_,G))};
Gp9=function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,QFd));return!0};
_.Kbd=function(m,G,K,W){if(m.nextWireType_!==0)return!1;_.$o(G,K,W,_.bg(m.decoder_,QFd));return!0};
WbG=function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,FCd));return!0};
_.AtG=function(m,G,K){if(m.nextWireType_!==1)return!1;_.tC(G,K,Lbd(m.decoder_));return!0};
_.se=function(m,G){return function(K,W){var L={treatNewDataAsImmutable:!0};W&&Object.assign(L,W);K=seF(K,void 0,void 0,L);try{var A=new m,O=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;FuG(G)(O,K);var c=A}finally{K.free()}return c}};
_.qI=function(m){return function(G){return wzd(G,m)}};
grM=function(m){return function(){return wzd(this,m)}};
_.OZf=function(m){return VX(function(G){return G instanceof m&&!so(G)})};
_.HN=function(m){return function(G){return ctJ(m,G)}};
hjs=function(m,G){return Yyd({child:m,origin:G||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:rto,getPayloadCase:function(K){return K.getPayloadCase()},
createInitMessage:function(K){var W=new j4,L=new usv;K=_.ko(L,1,K);return _.Cp(W,5,VG,K)}})};
Z3=function(m){return{valueOf:m}.valueOf()};
Jtf=function(){var m=null;if(!pzP)return m;try{var G=function(K){return K};
m=pzP.createPolicy("goog#html",{createHTML:G,createScript:G,createScriptURL:G})}catch(K){}return m};
Dp9=function(){N5M===void 0&&(N5M=Jtf());return N5M};
_.PN=function(m){var G=Dp9();m=G?G.createScriptURL(m):m;return new dx(m)};
_.yG=function(m){if(m instanceof dx)return m.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("$");};
_.e4=function(m){return Object.isFrozen(m)&&Object.isFrozen(m.raw)};
tyG=function(m){return m.toString().indexOf("`")===-1};
S4=function(m){return new _.fp(Fb9,m)};
Re=function(m){return m instanceof _.fp};
_.Ue=function(m){if(Re(m))return m.privateDoNotAccessOrElseWrappedUrl;throw Error("$");};
z7=function(m){return new QO6(function(G){return G.substr(0,m.length+1).toLowerCase()===m+":"})};
_.lg=function(m,G){G=G===void 0?aOF:G;if(Re(m))return m;for(var K=0;K<G.length;++K){var W=G[K];if(W instanceof QO6&&W.isValid(m))return S4(m)}};
_.MI=function(m,G){G=G===void 0?aOF:G;return _.lg(m,G)||BN};
_.T7=function(m){var G=window;if(typeof MediaSource!=="undefined"&&m instanceof MediaSource||typeof G.ManagedMediaSource!=="undefined"&&m instanceof G.ManagedMediaSource)return S4(URL.createObjectURL(m));G=m.type;G.toLowerCase()==="application/octet-stream"?G=!0:(G=G.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),G=(G==null?void 0:G.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(G[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(G[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(G[1])||/^font\/[\w-]+$/i.test(G[1])));if(!G)throw Error("$");return S4(URL.createObjectURL(m))};
_.ord=function(m){for(var G=_.mb.apply(1,arguments),K=[m[0]],W=0;W<G.length;W++)K.push(String(G[W])),K.push(m[W+1]);return S4(K.join(""))};
_.bZd=function(m){if(!nrM){a:{var G=document.createElement("a");try{G.href=m}catch(K){m=void 0;break a}m=G.protocol;m=m===":"||m===""?"https:":m}return m}try{G=new URL(m)}catch(K){return"https:"}return G.protocol};
_.i9=function(m){m instanceof _.fp?m=_.Ue(m):m=vrv.test(m)?m:void 0;return m};
Gp=function(m,G){G=_.i9(G);G!==void 0&&(m.href=G)};
Wz=function(m){var G=Dp9();m=G?G.createHTML(m):m;return new KZ(m)};
LZ=function(m){if(m instanceof KZ)return m.privateDoNotAccessOrElseWrappedHtml;throw Error("$");};
_.w5=function(m,G){m.src=_.yG(G).toString()};
$p6=function(m,G){m.setAttribute("sandbox","");for(var K=0;K<G.length;K++)m.sandbox.supports&&!m.sandbox.supports(G[K])||m.sandbox.add(G[K])};
_.g5=function(m,G,K){m.removeAttribute("srcdoc");switch(G){case 0:if(K instanceof dx)throw new sOG("TrustedResourceUrl",0);$p6(m,[]);G=_.i9(K);G!==void 0&&(m.src=G);break;case 1:if(!(K instanceof dx))throw new sOG(typeof K,1);$p6(m,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.w5(m,K);break;case 2:if(K instanceof dx)throw new sOG("TrustedResourceUrl",2);$p6(m,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
G=_.i9(K);G!==void 0&&(m.src=G);break;default:_.GG(G)}};
_.Oy=function(m,G,K,W){G=_.i9(G);return G!==void 0?m.open(G,K,W):null};
_.cz=function(m){m=m===void 0?document:m;var G,K;m=(K=(G=m).querySelector)==null?void 0:K.call(G,"script[nonce]");return m==null?"":m.nonce||m.getAttribute("nonce")||""};
_.r5=function(m){var G=Dp9();m=G?G.createScript(m):m;return new _.Yr(m)};
u9=function(m){if(m instanceof _.Yr)return m.privateDoNotAccessOrElseWrappedScript;throw Error("$");};
qyf=function(m){var G=_.cz(m.ownerDocument);G&&m.setAttribute("nonce",G)};
_.pZ=function(m,G){m.textContent=u9(G);qyf(m)};
_.Jt=function(m,G){m.src=_.yG(G);qyf(m)};
_.Np=function(m,G){if(m.nodeType===1&&/^(script|style)$/i.test(m.tagName))throw Error("$");m.innerHTML=LZ(G)};
_.DO=function(m,G,K,W){if(m.length===0)throw Error("$");m=m.map(function(A){if(A instanceof ErV)A=A.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("$");return A});
var L=K.toLowerCase();if(m.every(function(A){return L.indexOf(A)!==0}))throw Error("ba`"+K);
G.setAttribute(K,W)};
_.tt=function(m,G,K){if(G instanceof dx)m.href=_.yG(G).toString(),m.rel=K;else{if(HZP.indexOf(K)===-1)throw Error("ca`"+K);G=_.i9(G);G!==void 0&&(m.href=G,m.rel=K)}};
IOd=function(m){if(m instanceof Fs)return m.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("$");};
_.jOV=function(m,G){G=_.i9(G);G!==void 0&&(m.href=G)};
kpd=function(m){return new Worker(_.yG(m),void 0)};
C96=function(m){return _.PN(m)};
Vyo=function(m,G){m&&(G=m.indexOf(G),0<=G&&m.splice(G,1))};
Qe=function(m){return typeof m==="function"};
ZZd=function(m){return m instanceof aO||m&&"closed"in m&&Qe(m.remove)&&Qe(m.add)&&Qe(m.unsubscribe)};
oO=function(){};
nZ=function(m){dpf(function(){throw m;})};
vz=function(m){return m};
$r=function(){return P9o(_.mb.apply(0,arguments))};
P9o=function(m){return m.length===0?vz:m.length===1?m[0]:function(G){return m.reduce(function(K,W){return W(K)},G)}};
ytP=function(m){var G;return(G=m!=null?m:void 0)!=null?G:Promise};
ejd=function(m,G){return new sy(function(K){var W=0;return G.schedule(function(){W===m.length?K.complete():(K.next(m[W++]),K.closed||this.schedule())})})};
fOG=function(m,G){if(!m)throw Error("da");return new sy(function(K){var W=new aO;W.add(G.schedule(function(){var L=m[Symbol.asyncIterator]();W.add(G.schedule(function(){var A=this;L.next().then(function(O){O.done?K.complete():(K.next(O.value),A.schedule())})}))}));
return W})};
xpd=function(m,G,K){G=G.schedule(function(){try{K.call(this)}catch(W){m.error(W)}},0);
m.add(G)};
Syd=function(m,G){return new sy(function(K){var W;K.add(G.schedule(function(){W=m[XzP]();xpd(K,G,function(){var L=W.next(),A=L.value;L.done?K.complete():(K.next(A),this.schedule())})}));
return function(){var L;return Qe((L=W)==null?void 0:L.return)&&W.return()}})};
Rjo=function(m,G){return new sy(function(K){var W=new aO;W.add(G.schedule(function(){var L=m[qp]();W.add(L.subscribe({next:function(A){W.add(G.schedule(function(){return K.next(A)}))},
error:function(A){W.add(G.schedule(function(){return K.error(A)}))},
complete:function(){W.add(G.schedule(function(){return K.complete()}))}}))}));
return W})};
UpJ=function(m,G){return new sy(function(K){return G.schedule(function(){return m.then(function(W){K.add(G.schedule(function(){K.next(W);K.add(G.schedule(function(){return K.complete()}))}))},function(W){K.add(G.schedule(function(){return K.error(W)}))})})})};
zjF=function(m){return new TypeError("ea`"+(m!==null&&typeof m==="object"?"an invalid object":"'"+m+"'"))};
B5v=function(m,G){if(m!=null){if(Qe(m[qp]))return Rjo(m,G);if(lOG(m))return ejd(m,G);if(Qe(m==null?void 0:m.then))return UpJ(m,G);if(Symbol.asyncIterator&&Qe(m==null?void 0:m[Symbol.asyncIterator]))return fOG(m,G);if(Qe(m==null?void 0:m[XzP]))return Syd(m,G)}throw zjF(m);};
Hz=function(m,G){return G?B5v(m,G):Ey(m)};
Ey=function(m){if(m instanceof sy)return m;if(m!=null){if(Qe(m[qp]))return My6(m);if(lOG(m))return T5f(m);if(Qe(m==null?void 0:m.then))return mjs(m);if(Symbol.asyncIterator&&Qe(m==null?void 0:m[Symbol.asyncIterator]))return i6P(m);if(Qe(m==null?void 0:m[XzP]))return GFM(m)}throw zjF(m);};
My6=function(m){return new sy(function(G){var K=m[qp]();if(Qe(K.subscribe))return K.subscribe(G);throw new TypeError("fa");})};
T5f=function(m){return new sy(function(G){for(var K=0;K<m.length&&!G.closed;K++)G.next(m[K]);G.complete()})};
mjs=function(m){return new sy(function(G){m.then(function(K){G.closed||(G.next(K),G.complete())},function(K){return G.error(K)}).then(null,nZ)})};
GFM=function(m){return new sy(function(G){for(var K=m[XzP]();!G.closed;){var W=K.next(),L=W.value;W.done?G.complete():G.next(L)}return function(){return Qe(K==null?void 0:K.return)&&K.return()}})};
i6P=function(m){return new sy(function(G){KKs(m,G).catch(function(K){return G.error(K)})})};
KKs=function(m,G){var K,W,L,A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:_.IO(u,2,3),A=_.kr(m);case 5:return u.yield(A.next(),8);case 8:W=u.yieldResult;if(W.done){u.jumpTo(3);break}O=W.value;G.next(O);u.jumpTo(5);break;case 3:_.CZ(u);_.Ve(u,9);if(!W||W.done||!(L=A.return)){u.jumpTo(9);break}return u.yield(L.call(A),9);case 9:_.CZ(u,0,0,1);if(K)throw K.error;_.ZO(u,10,1);break;case 10:_.ZO(u,4);break;case 2:c=_.ye(u);K={error:c};u.jumpTo(3);break;case 4:G.complete(),_.ey(u)}})};
WKd=function(m,G){return G?ejd(m,G):T5f(m)};
LKo=function(m){return Qe(m[m.length-1])?m.pop():void 0};
fZ=function(m){var G=m[m.length-1];return G&&Qe(G.schedule)?m.pop():void 0};
Xs=function(){var m=_.mb.apply(0,arguments),G=fZ(m);return G?ejd(m,G):WKd(m)};
Sy=function(m){var G=Qe(m)?m:function(){return m};
return new sy(function(K){return K.error(G())})};
RO=function(m){return function(G){if(Qe(G==null?void 0:G.lift))return G.lift(function(K){try{return m(K,this)}catch(W){this.error(W)}});
throw new TypeError("ga");}};
zp=function(){return RO(function(m,G){var K=null;m._refCount++;var W=new Uy(G,void 0,void 0,void 0,function(){if(!m||m._refCount<=0||0<--m._refCount)K=null;else{var L=m._connection,A=K;K=null;!L||A&&L!==A||L.unsubscribe();G.unsubscribe()}});
m.subscribe(W);W.closed||(K=m.connect())})};
wEG=function(){var m=AUG;var G=G===void 0?0:G;return RO(function(K,W){W.add(m.schedule(function(){return K.subscribe(W)},G))})};
l9=function(m){return RO(function(G,K){var W=0;G.subscribe(new Uy(K,function(L){K.next(m.call(void 0,L,W++))}))})};
O66=function(m){return l9(function(G){return gyF(G)?m.apply(null,_.Bz(G)):m(G)})};
h_6=function(m){if(m.length===1){var G=m[0];if(cU9(G))return{args:G,keys:null};if(G&&typeof G==="object"&&Yif(G)===rU6)return m=uJd(G),{args:m.map(function(K){return G[K]}),
keys:m}}return{args:m,keys:null}};
Mp=function(){var m=_.mb.apply(0,arguments),G=fZ(m),K=LKo(m);m=h_6(m);var W=m.args,L=m.keys;if(W.length===0)return Hz([],G);G=new sy(pEM(W,G,L?function(A){for(var O={},c=0;c<A.length;c++)O[L[c]]=A[c];return O}:vz));
return K?G.pipe(O66(K)):G};
pEM=function(m,G,K){K=K===void 0?vz:K;return function(W){JUG(G,function(){for(var L=m.length,A=Array(L),O=L,c=m.map(function(){return!1}),u=!0,h={i$jscomp$220:0};h.i$jscomp$220<L;h={i$jscomp$220:h.i$jscomp$220},h.i$jscomp$220++)JUG(G,function(J){return function(){Hz(m[J.i$jscomp$220],G).subscribe(new Tp(W,function(N){A[J.i$jscomp$220]=N;
u&&(c[J.i$jscomp$220]=!0,u=!c.every(vz));u||W.next(K(A.slice()))},function(){return--O===0}))}}(h),W)},W)}};
JUG=function(m,G,K){m?K.add(m.schedule(G)):G()};
NDv=function(m,G,K,W){var L=[],A=0,O=0,c=!1,u=function(h){A++;Ey(K(h,O++)).subscribe(new Uy(G,function(J){G.next(J)},void 0,function(){A--;
for(var J={};L.length&&A<W;J={bufferedValue:void 0})J.bufferedValue=L.shift(),u(J.bufferedValue);!c||L.length||A||G.complete()}))};
m.subscribe(new Uy(G,function(h){return A<W?u(h):L.push(h)},void 0,function(){c=!0;
!c||L.length||A||G.complete()}));
return function(){L=null}};
i$=function(m,G){var K=K===void 0?Infinity:K;if(Qe(G))return i$(function(W,L){return l9(function(A,O){return G(W,A,L,O)})(Ey(m(W,L)))},K);
typeof G==="number"&&(K=G);return RO(function(W,L){return NDv(W,L,m,K)})};
DjG=function(m){m=m===void 0?Infinity:m;return i$(vz,m)};
thG=function(){var m=_.mb.apply(0,arguments);return DjG(1)(WKd(m,fZ(m)))};
FKM=function(m){return new sy(function(G){Ey(m()).subscribe(G)})};
GF=function(m,G,K){if(Qe(K)){var W=K;K=void 0}if(W)return GF(m,G,K).pipe(O66(W));W=_.g(Qe(m.addEventListener)&&Qe(m.removeEventListener)?Qbd.map(function(O){return function(c){return m[O](G,c,K)}}):Qe(m.addListener)&&Qe(m.removeListener)?a1o.map(oyP(m,G)):Qe(m.on)&&Qe(m.off)?nyd.map(oyP(m,G)):[]);
var L=W.next().value,A=W.next().value;return!L&&lOG(m)?i$(function(O){return GF(O,G,K)})(WKd(m)):new sy(function(O){if(!L)throw new TypeError("ha");
var c=function(){var u=_.mb.apply(0,arguments);return O.next(1<u.length?u:u[0])};
L(c);return function(){return A(c)}})};
oyP=function(m,G){return function(K){return function(W){return m[K](G,W)}}};
WE=function(){var m=_.mb.apply(0,arguments),G=fZ(m);var K=typeof m[m.length-1]==="number"?m.pop():Infinity;return m.length?m.length===1?Ey(m[0]):DjG(K)(WKd(m,G)):K6};
vyG=function(m){return m.length===1&&b6J(m[0])?m[0]:m};
$jJ=function(){var m=vyG(_.mb.apply(0,arguments));return RO(function(G,K){var W=[G].concat(_.Bz(m)),L=function(){if(!K.closed)if(W.length>0){try{var A=Ey(W.shift())}catch(c){L();return}var O=new Uy(K,void 0,oO,oO);K.add(A.subscribe(O));O.add(L)}else K.complete()};
L()})};
L6=function(m){return RO(function(G,K){var W=0;G.subscribe(new Uy(K,function(L){return m.call(void 0,L,W++)&&K.next(L)}))})};
qi6=function(){var m=_.mb.apply(0,arguments);m=vyG(m);return m.length===1?Ey(m[0]):new sy(sbd(m))};
sbd=function(m){return function(G){for(var K=[],W={i$jscomp$223:0};K&&!G.closed&&W.i$jscomp$223<m.length;W={i$jscomp$223:W.i$jscomp$223},W.i$jscomp$223++)K.push(Ey(m[W.i$jscomp$223]).subscribe(new Uy(G,function(L){return function(A){if(K){for(var O=0;O<K.length;O++)O!==L.i$jscomp$223&&K[O].unsubscribe();K=null}G.next(A)}}(W))))}};
EyG=function(){var m=_.mb.apply(0,arguments),G=LKo(m),K=vyG(m);return K.length?new sy(function(W){var L=K.map(function(){return[]}),A=K.map(function(){return!1});
W.add(function(){L=A=null});
for(var O={sourceIndex$jscomp$1:0};!W.closed&&O.sourceIndex$jscomp$1<K.length;O={sourceIndex$jscomp$1:O.sourceIndex$jscomp$1},O.sourceIndex$jscomp$1++)Ey(K[O.sourceIndex$jscomp$1]).subscribe(new Uy(W,function(c){return function(u){L[c.sourceIndex$jscomp$1].push(u);L.every(function(h){return h.length})&&(u=L.map(function(h){return h.shift()}),W.next(G?G.apply(null,_.Bz(u)):u),L.some(function(h,J){return!h.length&&A[J]})&&W.complete())}}(O),void 0,function(c){return function(){A[c.sourceIndex$jscomp$1]=
!0;
!L[c.sourceIndex$jscomp$1].length&&W.complete()}}(O)));
return function(){L=A=null}}):K6};
H6s=function(m){var G,K,W;return!!m&&typeof m.active==="boolean"&&typeof((G=m.clock)==null?void 0:G.now)==="function"&&((K=m.clock)==null?void 0:K.timeline)!==void 0&&!((W=m.lastMeasurement)==null||!W.timestamp)&&typeof m.equivalentTo==="function"&&typeof m.extrapolateToNow==="function"&&typeof m.extrapolateToTime==="function"&&typeof m.map==="function"&&typeof m.joinWith==="function"};
I1V=function(m){function G(K){return typeof K==="boolean"||typeof K==="string"||typeof K==="number"||K===void 0||K===null}
return G(m)?!0:Array.isArray(m)?m.every(G):typeof m==="object"?Object.keys(m).every(function(K){return typeof K==="string"})&&Object.values(m).every(function(K){return Array.isArray(K)?K.every(G):G(K)}):!1};
jbG=function(m){if(I1V(m))return m;if(H6s(m))return{lastMeasurement:{value:jbG(m.lastMeasurement.value),timestamp:AU(m.lastMeasurement.timestamp,new wD(0,m.lastMeasurement.timestamp.timeline))},active:m.active};try{return JSON.parse(JSON.stringify(m))}catch(G){}return String(m)};
gD=function(m,G){return function(K){return new sy(function(W){return K.subscribe(function(L){m.timeExecution(G,function(){W.next(L)})()},function(L){m.timeExecution(G,function(){W.error(L)})()},function(){m.timeExecution(G,function(){W.complete()})()})})}};
kFd=function(m,G){var K=!1;return new sy(function(W){var L=m.setTimeout(function(){K=!0;W.next(!0);W.complete()},G);
return function(){K||m.clearTimeout(L)}})};
C$d=function(m){m=m.global;if(m.fetchLater)return m.fetchLater.bind(m)};
Oi=function(m){return RO(function(G,K){var W=null,L=!1,A;W=G.subscribe(new Uy(K,void 0,function(O){A=Ey(m(O,Oi(m)(G)));W?(W.unsubscribe(),W=null,A.subscribe(K)):L=!0}));
L&&(W.unsubscribe(),W=null,A.subscribe(K))})};
Vho=function(m,G,K){return function(W,L){var A=K,O=G,c=0;W.subscribe(new Uy(L,function(u){var h=c++;O=A?m(O,u,h):(A=!0,u);L.next(O)},void 0,void 0))}};
Z6f=function(m){m=m===void 0?null:m;return RO(function(G,K){var W=!1;G.subscribe(new Uy(K,function(L){W=!0;K.next(L)},void 0,function(){W||K.next(m);
K.complete()}))})};
cE=function(){return RO(function(m,G){m.subscribe(new Uy(G,oO))})};
Yy=function(m){return RO(function(G,K){G.subscribe(new Uy(K,function(){return K.next(m)}))})};
rD=function(m){return m<=0?function(){return K6}:RO(function(G,K){var W=0;
G.subscribe(new Uy(K,function(L){++W<=m&&(K.next(L),m<=W&&K.complete())}))})};
u$=function(m){var G=G===void 0?vz:G;var K;m=(K=m)!=null?K:djd;return RO(function(W,L){var A,O=!0;W.subscribe(new Uy(L,function(c){var u=G(c);if(O||!m(A,u))O=!1,A=u,L.next(c)}))})};
djd=function(m,G){return m===G};
yU9=function(m){m=m===void 0?P$M:m;return RO(function(G,K){var W=!1;G.subscribe(new Uy(K,function(L){W=!0;K.next(L)},void 0,function(){return W?K.complete():K.error(m())}))})};
P$M=function(){return new e_d};
hU=function(){var m=_.mb.apply(0,arguments);return function(G){return thG(G,Xs.apply(null,_.Bz(m)))}};
f1v=function(m){return RO(function(G,K){var W=0;G.subscribe(new Uy(K,function(L){m.call(void 0,L,W++,G)||(K.next(!1),K.complete())},void 0,function(){K.next(!0);
K.complete()}))})};
xjf=function(){return RO(function(m,G){var K=[];m.subscribe(new Uy(G,function(W){K.push(W);1<K.length&&K.shift()},void 0,function(){for(var W=_.g(K),L=W.next();!L.done;L=W.next())G.next(L.value);
G.complete()},function(){K=null}))})};
XE9=function(m,G){var K=arguments.length>=2;return function(W){return W.pipe(m?L6(function(L,A){return m(L,A,W)}):vz,xjf(),K?Z6f(G):yU9(function(){return new e_d}))}};
JU=function(m){var G=Qe(m)?m:function(){return m};
return Qe()?RO(function(K,W){var L=G();(void 0)(L).subscribe(W).add(K.subscribe(L))}):function(K){var W=new p6(K,G);
Qe(K==null?void 0:K.lift)&&(W.lift=K.lift);W.source=K;W.subjectFactory=G;return W}};
D1=function(m){var G=new Nj(m,void 0,void 0);return function(K){return JU(function(){return G})(K)}};
tU=function(m,G){return RO(Vho(m,G,arguments.length>=2))};
FJ=function(){var m=_.mb.apply(0,arguments),G=fZ(m);return RO(function(K,W){(G?thG(m,K,G):thG(m,K)).subscribe(W)})};
Qu=function(m){return RO(function(G,K){var W=null,L=0,A=!1;G.subscribe(new Uy(K,function(O){var c;(c=W)==null||c.unsubscribe();c=L++;Ey(m(O,c)).subscribe(W=new Uy(K,function(u){return K.next(u)},void 0,function(){W=null;
A&&!W&&K.complete()}))},void 0,function(){(A=!0,!W)&&K.complete()}))})};
ab=function(m,G){G=G===void 0?!1:G;return RO(function(K,W){var L=0;K.subscribe(new Uy(W,function(A){var O=m(A,L++);(O||G)&&W.next(A);!O&&W.complete()}))})};
SiP=function(m,G,K){var W=Qe(m)||G||K?{next:m,error:G,complete:K}:m;return W?RO(function(L,A){L.subscribe(new Uy(A,function(O){var c;(c=W.next)==null||c.call(W,O);A.next(O)},function(O){var c;
(c=W.error)==null||c.call(W,O);A.error(O)},function(){var O;
(O=W.complete)==null||O.call(W);A.complete()}))}):vz};
R_G=function(){var m=_.mb.apply(0,arguments),G=LKo(m);return RO(function(K,W){for(var L=m.length,A=Array(L),O=m.map(function(){return!1}),c=!1,u={i$jscomp$233:0};u.i$jscomp$233<L;u={i$jscomp$233:u.i$jscomp$233},u.i$jscomp$233++)Ey(m[u.i$jscomp$233]).subscribe(new Uy(W,function(h){return function(J){A[h.i$jscomp$233]=J;
c||O[h.i$jscomp$233]||(O[h.i$jscomp$233]=!0,(c=O.every(vz))&&(O=null))}}(u),void 0,oO));
K.subscribe(new Uy(W,function(h){c&&(h=[h].concat(_.Bz(A)),W.next(G?G.apply(null,_.Bz(h)):h))}))})};
z_s=function(m){var G=Ujd;if(G)for(var K in G)Object.prototype.hasOwnProperty.call(G,K)&&m(G[K],K,G)};
l1G=function(){var m=[];z_s(function(G){m.push(G)});
return m};
MhM=function(m){try{return!!m&&m.location.href!=null&&BDf(m,"foo")}catch(G){return!1}};
m7M=function(){return FP&&aM?aM.mobile:!TDF()&&(oM("iPod")||oM("iPhone")||oM("Android")||oM("IEMobile"))};
TDF=function(){return FP&&aM?!aM.mobile&&(oM("iPad")||oM("Android")||oM("Silk")):oM("iPad")||oM("Android")&&!oM("Mobile")||oM("Silk")};
_.ob=function(m){return new ErV(m[0].toLowerCase())};
iBv=function(m){for(var G=_.mb.apply(1,arguments),K=m[0],W=0;W<m.length-1;W++)K+=String(G[W]),K+=m[W+1];G=document.implementation.createHTMLDocument("");W=G.createElement("style");G.head.appendChild(W);G=W.sheet;G.insertRule(K,0);if(G.cssRules.length===1&&(K=G.cssRules[0],K instanceof CSSStyleRule))return new Fs(K.cssText.replace(/</g,"\\3C "))};
GIM=function(m){try{return new URL(m,window.document.baseURI)}catch(G){return new URL("about:invalid")}};
Kif=function(m,G){var K=G.createRange();K.selectNode(G.body);m=Wz(m);return K.createContextualFragment(LZ(m))};
WiJ=function(m){m=m.nodeName;return typeof m==="string"?m:"FORM"};
Lio=function(m){m=m.nodeType;return m===1||typeof m!=="number"};
b$=function(m,G,K){m.setAttribute(G,K)};
AIG=function(m){return m.parts.map(function(G){var K=G.descriptor;return""+G.url+(K?" "+K:"")}).join(" , ")};
_.vE=function(m){var G=_.mb.apply(1,arguments);if(G.length===0)return _.PN(m[0]);for(var K=m[0],W=0;W<G.length;W++)K+=encodeURIComponent(G[W])+m[W+1];return _.PN(K)};
_.$y=function(m,G){m=_.yG(m).toString();var K=m.split(/[?#]/),W=/[?]/.test(m)?"?"+K[1]:"";return wt9(K[0],W,/[#]/.test(m)?"#"+(W?K[2]:K[1]):"",G)};
wt9=function(m,G,K,W){function L(O,c){O!=null&&(Array.isArray(O)?O.forEach(function(u){return L(u,c)}):(G+=A+encodeURIComponent(c)+"="+encodeURIComponent(O),A="&"))}
var A=G.length?"&":"?";W.constructor===Object&&(W=Object.entries(W));Array.isArray(W)?W.forEach(function(O){return L(O[1],O[0])}):W.forEach(L);
return _.PN(m+G+K)};
OBG=function(){var m=u9(g2f).toString();return _.PN(URL.createObjectURL(new Blob([m],{type:"text/javascript"})))};
_.si=function(m,G){this.x=m!==void 0?m:0;this.y=G!==void 0?G:0};
_.qj=function(m,G){this.width=m;this.height=G};
cIf=function(m){var G=[],K=0,W;for(W in m)G[K++]=W;return G};
YRd=function(m,G){for(var K in m)if(m[K]==G)return!0;return!1};
rIF=function(m,G,K){for(var W in m)if(G.call(K,m[W],W,m))return W};
ubV=function(m){if(!m||typeof m!=="object")return m;if(typeof m.clone==="function")return m.clone();if(typeof Map!=="undefined"&&m instanceof Map)return new Map(m);if(typeof Set!=="undefined"&&m instanceof Set)return new Set(m);if(m instanceof Date)return new Date(m.getTime());var G=Array.isArray(m)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(m)||m instanceof DataView?{}:new m.constructor(m.length),K;for(K in m)G[K]=ubV(m[K]);return G};
hLJ=function(m){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return hLJ.apply(null,arguments[0]);if(G%2)throw Error("na");for(var K={},W=0;W<G;W+=2)K[arguments[W]]=arguments[W+1];return K};
ptG=function(m){var G=arguments.length;if(G==1&&Array.isArray(arguments[0]))return ptG.apply(null,arguments[0]);for(var K={},W=0;W<G;W++)K[arguments[W]]=!0;return K};
Ei=function(m,G,K,W){this.top=m;this.right=G;this.bottom=K;this.left=W};
HE=function(m,G,K,W){this.left=m;this.top=G;this.width=K;this.height=W};
JI9=function(m){m=m.global;if(m.PendingGetBeacon)return m.PendingGetBeacon};
jh=function(m){return function(G){return G.pipe(N$d(m,JU(new Ib)))}};
ky=function(m){return function(G){return G.pipe(N$d(m,D1(1)))}};
N$d=function(m,G){function K(W){return new sy(function(L){return W.subscribe(function(A){Vu(m,function(){return void L.next(A)},3)},function(A){Vu(m,function(){return void L.error(A)},3)},function(){Vu(m,function(){return void L.complete()},3)})})}
return $r(K,wEG(),G,zp(),K)};
Fif=function(m){var G=D7d(m);return G===null?new Z1(null):G.pipe(l9(function(K){K=K.serialize();if(taM)K=_.Ks.btoa(K);else{for(var W=[],L=0,A=0;A<K.length;A++){var O=K.charCodeAt(A);O>255&&(W[L++]=O&255,O>>=8);W[L++]=O}K=_.Md(W)}return K}),rD(1),ky(m.queue))};
Q$G=function(m){var G=G===void 0?{}:G;if(typeof Event==="function")return new Event(m,G);if(typeof document!=="undefined"){var K=document.createEvent("CustomEvent");K.initCustomEvent(m,G.bubbles||!1,G.cancelable||!1,G.detail);return K}throw Error();};
a5d=function(m){return typeof m==="string"?document.getElementById(m):m};
n2d=function(m){var G=!1;G=G===void 0?!1:G;if(m.tagName==="IMG"){if(m.complete&&(!m.naturalWidth||!m.naturalHeight))return!0;var K;if(G&&((K=m.style)==null?void 0:K.display)==="none")return!0}var W,L;return o2f.test((W=m.getAttribute("width"))!=null?W:"")&&o2f.test((L=m.getAttribute("height"))!=null?L:"")};
bB6=function(m,G){if(m.tagName==="IMG")return m.naturalWidth&&m.naturalHeight?!0:!1;try{if(m.readyState)var K=m.readyState;else{var W,L;K=(W=m.contentWindow)==null?void 0:(L=W.document)==null?void 0:L.readyState}return K==="complete"}catch(A){return G===void 0?!1:G}};
v2M=function(m){m||(m=function(G,K,W){G.addEventListener(K,W)});
return m};
E2o=function(m,G){var K=$7d();K=K===void 0?new s$G:K;if(m=a5d(m)){var W=v2M(W);for(var L=!1,A=function(I){L||(L=!0,G(I))},O,c=2,u=0;u<qRd.length;++u)if(qRd[u]===m.tagName){c=3;
O=[m];break}O||(O=m.querySelectorAll(qRd.join(",")));var h=0,J=0,N=!0,D=m=!1;u={};for(var t=0;t<O.length;u={isImg:void 0},t++){var a=O[t];if(!n2d(a))if(u.isImg=a.tagName==="IMG",bB6(a,K.crossDomainLoadedDefault))m=!0,u.isImg&&(N=!0);else{h++;var v=function(I){return function(Z){h--;!h&&N&&A(c);I.isImg&&(Z=Z&&Z.type==="error",J--,Z||(N=!0),!J&&D&&N&&A(c))}}(u);
W(a,"load",v);u.isImg&&(J++,W(a,"error",v))}}J===0&&(N=!0);O=null;O=_.Ks.document.readyState==="complete";if(h===0&&!m&&O)c=5;else if(h||!m){W(_.Ks,"load",function(){!K.pendingImagesBlockLoad||!J&&N?A(4):D=!0});
return}A(c)}};
HBd=function(m,G,K){if(m)for(var W=0;m!=null&&W<500&&!K(m);++W)m=G(m)};
I5G=function(m,G){HBd(m,function(K){try{return K===K.parent?null:K.parent}catch(W){}return null},G)};
j$6=function(m,G){if(m.tagName=="IFRAME")G(m);else{m=m.querySelectorAll("IFRAME");for(var K=0;K<m.length&&!G(m[K]);++K);}};
kIs=function(m){return(m=m.ownerDocument)&&(m.parentWindow||m.defaultView)||null};
Cr9=function(m,G,K){try{var W=JSON.parse(K.data)}catch(O){}if(typeof W==="object"&&W&&W.type==="creativeLoad"){var L=kIs(m);if(K.source&&L){var A;I5G(K.source,function(O){try{if(O.parent===L)return A=O,!0}catch(c){}});
A&&j$6(m,function(O){if(O.contentWindow===A)return G(W),!0})}}};
Va6=function(m){return typeof m==="string"?document.getElementById(m):m};
yId=function(){var m={};return m[0]=_.vE(ZBf,"current"),m[1]=_.vE(d76),m[2]=_.vE(PrV),m};
dD=function(m,G){return m.left===G.left&&m.top===G.top&&m.width===G.width&&m.height===G.height};
eLP=function(m,G){return{left:Math.max(m.left,G.left),top:Math.max(m.top,G.top),width:Math.max(0,Math.min(m.left+m.width,G.left+G.width)-Math.max(m.left,G.left)),height:Math.max(0,Math.min(m.top+m.height,G.top+G.height)-Math.max(m.top,G.top))}};
f56=function(m,G){return{left:Math.round(m.left+G.x),top:Math.round(m.top+G.y),width:m.width,height:m.height}};
x7s=function(m,G,K,W,L,A,O){var c="";m&&(c+=m+":");K&&(c+="//",G&&(c+=G+"@"),c+=K,W&&(c+=":"+W));L&&(c+=L);A&&(c+="?"+A);O&&(c+="#"+O);return c};
_.PE=function(m){return m.match(Xto)};
_.yu=function(m,G){return m?G?decodeURI(m):decodeURIComponent(m):m};
SRs=function(m){m=_.PE(m)[1]||null;!m&&_.Ks.self&&_.Ks.self.location&&(m=_.Ks.self.location.protocol.slice(0,-1));return m?m.toLowerCase():""};
_.eh=function(m){return _.yu(_.PE(m)[3]||null,!0)};
_.f6=function(m){return _.yu(_.PE(m)[5]||null,!0)};
_.RLs=function(m){var G=m.indexOf("#");return G<0?null:m.slice(G+1)};
U7v=function(m){m=_.PE(m);return x7s(m[1],m[2],m[3],m[4])};
_.zLJ=function(m){m=_.PE(m);return x7s(m[1],null,m[3],m[4])};
_.XJ=function(m){m=_.PE(m);return x7s(null,null,null,null,m[5],m[6],m[7])};
_.Sh=function(m){var G=m.indexOf("#");return G<0?m:m.slice(0,G)};
Rb=function(m,G){m=_.PE(m);G=_.PE(G);return m[3]==G[3]&&m[1]==G[1]&&m[4]==G[4]};
l5o=function(m,G){if(m){m=m.split("&");for(var K=0;K<m.length;K++){var W=m[K].indexOf("="),L=null;if(W>=0){var A=m[K].substring(0,W);L=m[K].substring(W+1)}else A=m[K];G(A,L?Ui(L):"")}}};
B$6=function(m){var G=m.indexOf("#");G<0&&(G=m.length);var K=m.indexOf("?");if(K<0||K>G){K=G;var W=""}else W=m.substring(K+1,G);return[m.slice(0,K),W,m.slice(G)]};
Mad=function(m,G){return G?m?m+"&"+G:G:m};
_.T$9=function(m,G){if(!G)return m;m=B$6(m);m[1]=Mad(m[1],G);return m[0]+(m[1]?"?"+m[1]:"")+m[2]};
_.mTM=function(m,G,K){if(Array.isArray(G))for(var W=0;W<G.length;W++)_.mTM(m,String(G[W]),K);else G!=null&&K.push(m+(G===""?"":"="+_.zF(G)))};
_.l$=function(m){var G=[],K;for(K in m)_.mTM(K,m[K],G);return G.join("&")};
_.BE=function(m,G){G=_.l$(G);return _.T$9(m,G)};
_.Mj=function(m,G,K){K=K!=null?"="+_.zF(K):"";return _.T$9(m,G+K)};
it6=function(m,G,K,W){for(var L=K.length;(G=m.indexOf(K,G))>=0&&G<W;){var A=m.charCodeAt(G-1);if(A==38||A==63)if(A=m.charCodeAt(G+L),!A||A==61||A==38||A==35)return G;G+=L+1}return-1};
_.TF=function(m,G){var K=m.search(GHs),W=it6(m,0,G,K);if(W<0)return null;var L=m.indexOf("&",W);if(L<0||L>K)L=K;W+=G.length+1;return Ui(m.slice(W,L!==-1?L:0))};
_.mi=function(m,G){for(var K=m.search(GHs),W=0,L,A=[];(L=it6(m,W,G,K))>=0;)A.push(m.substring(W,L)),W=Math.min(m.indexOf("&",L)+1||K,K);A.push(m.slice(W));return A.join("").replace(KXJ,"$1")};
_.ir=function(m,G,K){return _.Mj(_.mi(m,G),G,K)};
WXP=function(m){var G=B$6(window.location.href),K=G[1],W=[];K&&K.split("&").forEach(function(L){var A=L.indexOf("=");A=A>=0?L.slice(0,A):L;m.hasOwnProperty(A)||W.push(L)});
G[1]=Mad(W.join("&"),_.l$(m));return G[0]+(G[1]?"?"+G[1]:"")+G[2]};
LXd=function(m,G,K){if(m&&G!==null&&G!=G.top){if(!G.top)return new _.qj(-12245933,-12245933);G=G.top}try{return(K===void 0?0:K)?(new _.qj(G.innerWidth,G.innerHeight)).round():_.GI(G).round()}catch(W){return new _.qj(-12245933,-12245933)}};
AOG=function(m,G,K){try{if(m){if(!G.top)return new Ei(-12245933,-12245933,-12245933,-12245933);G=G.top}var W=LXd(m,G,K),L=W.height,A=W.width;if(A===-12245933)return new Ei(A,A,A,A);var O=KB(Wt(G.document)),c=O.x,u=O.y;return new Ei(u,c+A,u+L,c)}catch(h){return new Ei(-12245933,-12245933,-12245933,-12245933)}};
wgG=function(m){var G;return(G=m.google_tag_data)!=null?G:m.google_tag_data={}};
glP=function(m){var G,K;return typeof((G=m.navigator)==null?void 0:(K=G.userAgentData)==null?void 0:K.getHighEntropyValues)==="function"};
cOd=function(m){if(!glP(m))return null;var G=wgG(m);if(G.uach_promise)return G.uach_promise;m=m.navigator.userAgentData.getHighEntropyValues(Otd).then(function(K){G.uach!=null||(G.uach=K);return K});
return G.uach_promise=m};
a4f=function(m){var G;return YJ9(rOP(u6v(hno(pgM(JOd(NMo(DTG(tUP(new FXG,m.architecture||""),m.bitness||""),m.mobile||!1),m.model||""),m.platform||""),m.platformVersion||""),m.uaFullVersion||""),((G=m.fullVersionList)==null?void 0:G.map(function(K){var W=new QiG;W=_.LB(W,1,K.brand);return _.LB(W,2,K.version)}))||[]),m.wow64||!1)};
old=function(m){var G,K;return(K=(G=cOd(m))==null?void 0:G.then(function(W){return a4f(W)}))!=null?K:null};
nlF=function(m,G){return new sy(function(K){var W=!1,L=Array(G.length);L.fill(void 0);var A=new Set,O=new Set,c=function(N,D){m.running?(L[D]=N,A.add(D),W||(W=!0,Vu(m,function(){W=!1;K.next(_.yf(L))},1))):K.error(new AI(D))},u=function(N,D){O.add(D);
A.add(D);Vu(m,function(){K.error(N)},1)},h=function(N){O.add(N);
Vu(m,function(){O.size===G.length&&K.complete()},1)},J=G.map(function(N,D){return N.subscribe(function(t){return void c(t,D)},function(t){return void u(t,D)},function(){return void h(D)})});
return function(){J.forEach(function(N){return void N.unsubscribe()})}})};
$T9=function(m,G,K){function W(){if(G.debugChannel){var I=G.debugChannel,Z=I.next;var k={creativeId:G.debugNames.getName(K),requiredSignals:L,signals:Object.assign({},A),hasPrematurelyCompleted:O,errorMessage:c,erroredSignalKey:u};k={specMajor:2,specMinor:0,specPatch:0,timestamp:AU(G.timeProvider.now(),new wD(0,G.timeProvider.timeline)),instanceId:G.debugNames.getName(G.symbol),creativeState:k};Z.call(I,k)}}
for(var L=Object.keys(m),A={},O=!1,c=null,u=null,h={},J=new Set,N=[],D=[],t=_.g(L),a=t.next(),v={};!a.done;v={key$jscomp$396:void 0},a=t.next())v.key$jscomp$396=a.value,a=m[v.key$jscomp$396],a instanceof Z1?(h[v.key$jscomp$396]=a.value,J.add(v.key$jscomp$396),G.debugChannel&&(A[String(v.key$jscomp$396)]=jbG(a.value))):(a=a.pipe(u$(function(I,Z){return H6s(I)||H6s(Z)?!1:I===Z}),l9(function(I){return function(Z){G.debugChannel&&(A[String(I.key$jscomp$396)]=jbG(Z),W());
var k={};return k[I.key$jscomp$396]=Z,k}}(v)),Oi(function(I){return function(Z){if(Z instanceof AI)throw new btv(String(I.key$jscomp$396));
throw Z;}}(v)),SiP(function(I){return function(){J.add(I.key$jscomp$396)}}(v),function(I){return function(Z){u=String(I.key$jscomp$396);
c=String(Z);W()}}(v),function(I){return function(){J.has(I.key$jscomp$396)||(O=!0,W())}}(v))),D.push(v.key$jscomp$396),N.push(a));
(m=Object.keys(A).length>0)&&W();t=nlF(G.queue,N).pipe(Oi(function(I){if(I instanceof AI)throw new vld(String(D[I.inputObservableIndex]));throw I;}),l9(function(I){return Object.freeze(Object.assign.apply(Object,[{},
h].concat(_.Bz(I))))}));
return(N=N.length>0)&&m?WE(Xs(Object.freeze(h)),t):N?t:Xs(Object.freeze(h))};
sid=function(m,G,K,W,L){return m.performanceMonitor.timeExecution.bind(m.performanceMonitor)(733,function(){var A={};try{return G.pipe(Oi(function(O){W(Object.assign({},A,{error:O}));return K6}),i$(function(O){try{var c=K(m,O)}catch(h){return W(Object.assign({},A,{error:h instanceof Error?h:String(h)})),K6}var u={};
return $T9(c,m,O.symbol).pipe(SiP(function(h){u=h}),D1(1),zp()).pipe(L,Oi(function(h){W(Object.assign({},u,{error:h}));
return K6}),hU(void 0),l9(function(){return!0}))})).pipe(tU(function(O){return O+1},0),Oi(function(O){W(Object.assign({},A,{error:O}));
return K6}))}catch(O){return W(Object.assign({},A,{error:O})),K6}})()};
w$=function(m){var G=new Map;if(typeof m!=="object"||m===null)return G;Object.values(m).forEach(function(K){K&&typeof K.extrapolateToNow==="function"&&(G.has(K.clock.timeline)||G.set(K.clock.timeline,K.clock.now()))});
return G};
qJG=function(m,G){return typeof m==="string"?encodeURIComponent(m):typeof m==="number"?String(m):Array.isArray(m)?m.map(function(K){return qJG(K,G)}).join(","):m instanceof wD?m.toString():m&&typeof m.extrapolateToNow==="function"?qJG(m.extrapolateUsingTimestampMap(G).value,G):m===!0?"1":m===!1?"0":m===void 0||m===null?null:m instanceof ElV?Hto(m):[m.top,
m.left,m.top+m.height,m.left+m.width].join()};
I4v=function(m,G){m=Object.entries(m).map(function(K){var W=_.g(K);K=W.next().value;W=W.next().value;W=qJG(W,G);return W===null?"":K+"="+W}).filter(function(K){return K!==""});
return m.length?m.join("&"):""};
CEG=function(m,G){var K=jio,W=kHd;G=G===void 0?.01:G;return function(L){G>0&&Math.random()<=G&&(m.global.HTMLFencedFrameElement&&m.global.fence&&typeof m.global.fence.reportEvent==="function"&&m.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),L=Object.assign({},L,{errorMessage:L.error instanceof Error&&L.error.message?L.error.message:String(L.error),errorStack:L.error instanceof Error&&L.error.stack?String(L.error.stack):null,errorName:L.error instanceof
Error&&L.error.name?String(L.error.name):null,errorContext:String(m.performanceMonitor.timedFunctionContext),errorEscapedQueryId:L.escapedQueryId}),K(Object.assign({},L,{payloadMapper:function(){return function(A){try{return W(Object.assign({},A))}catch(O){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),w$(L)).forEach(function(A){m.beaconFactory.makeBeacon(A).sendNow()}))}};
VUv=function(){var m=_.mb.apply(0,arguments);return function(G){var K=G.pipe(D1(1),zp());G=m.map(function(W){return K.pipe(W,hU(!0))});
return Mp(G).pipe(rD(1),cE())}};
ZtJ=function(){var m=_.mb.apply(0,arguments);return function(G){var K=G.pipe(D1(1),zp());G=m.map(function(W){return K.pipe(W,hU(!0))});
return WE.apply(null,_.Bz(G)).pipe(rD(1),cE())}};
dT6=function(m,G){return function(K){var W=K.pipe(D1(1),zp());K=W.pipe(m,hU(!0));W=W.pipe($r(G,D1(),zp()),hU(!0));K=Mp([K,W]);return qi6(K,W).pipe(rD(1),cE())}};
PEs=function(m,G,K){K(!0)};
yOJ=function(m,G){return $r(Qu(function(K){var W=m(K),L=G(K),A={};return W&&L&&A?new sy(function(O){L(W,A,function(c){O.next(Object.assign({},K,{canEmit:c}));O.complete()});
return function(){}}):g$}),L6(function(K){return K.canEmit}))};
enV=function(m){var G={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(K){return K.pipe(Qu(function(W){return new sy(function(L){function A(){c.disconnect();u.unsubscribe()}
var O=m.MutationObserver;if(O&&W.ref!==void 0){var c=new O(function(h){L.next(h)});
c.observe(W.ref,G);var u=W.JSC$9667_released.subscribe(A);return A}})}))}};
f4G=function(m){if(m.measurementDeferralState===3)return null;if(m.timeOnScreenReason!==void 0){var G=m.creativeFound===!1?"n":null;if(G!==null)return G}return m.geometricMeasurementErrors instanceof OR?"msf":m.contextValidationErrors instanceof ct?"c":m.contextVisibilityKnown===!1?"pv":m.geometricMeasurementErrors||m.contextValidationErrors?"x":null};
XgP=function(m,G){return m.replace(xTd,function(K,W){try{var L=_.Y2.get(G,W);if(L==null||L.toString()==null)return K;L=L.toString();if(L==""||!_.Od(L==null?"":String(L)))return encodeURIComponent(L).replace(/%2C/g,",")}catch(A){}return K})};
SJJ=function(m,G){var K=Object.assign({},m),W=m.userAgentClientHints;K=(delete K.userAgentClientHints,K);K=m.payloadMapper(K);var L=I4v(K,G);return _.r$(m.urlPrefixes,function(A){var O="";typeof W==="string"&&(O="&"+I4v({uach:W},G));var c={};return XgP(A,(c.VIEWABILITY=L,c))+O})};
jio=function(m,G){var K=m.payloadMapper(m),W=I4v(K,G);return W?_.r$(m.urlPrefixes,function(L){L=L.indexOf("?")>=0?L:L+"?";L="?&".indexOf(L.slice(-1))>=0?L:L+"&";return L+W}):m.urlPrefixes};
RnV=function(){return $r(L6(function(m){return m!==void 0}),l9(function(m){return m}))};
UTd=function(m){return $r(l9(function(){return!0}),FJ(!1),ky(m))};
zns=function(m){return m.length<=0?K6:Mp(m.map(function(G){var K=0;return G.pipe(l9(function(W){return{index:K++,value:W}}))})).pipe(L6(function(G){return G.every(function(K){return K.index===G[0].index})}),l9(function(G){return G.map(function(K){return K.value})}))};
l4f=function(m,G){m.currentState&&(m.previousState=m.currentState);m.currentState=G;m.previousState&&m.previousState.value?(G=Math.max(0,AU(G.timestamp,m.previousState.timestamp)),m.totalTime+=G,m.consecutiveTime+=G):m.consecutiveTime=0;return m};
BMJ=function(){return $r(tU(l4f,{totalTime:0,consecutiveTime:0}),l9(function(m){return m.totalTime}))};
MUd=function(){return $r(tU(l4f,{totalTime:0,consecutiveTime:0}),l9(function(m){return m.consecutiveTime}))};
TMM=function(m,G){return function(K){return zns(G.map(function(W){return K.pipe(m(W))}))}};
m2d=function(){var m;return $r(SiP(function(G){return void(m=G.timestamp)}),MUd(),l9(function(G){return{timestamp:m,
value:Math.round(G)}}))};
iT6=function(m,G){return dD(m.topWindowViewportExternalGeometry,G.topWindowViewportExternalGeometry)&&dD(m.elementGeometry,G.elementGeometry)&&dD(m.exposedViewportLocalGeometry,G.exposedViewportLocalGeometry)&&dD(m.intersectionGeometry,G.intersectionGeometry)&&m.elementGeometrySourceName===G.elementGeometrySourceName&&m.measurementRequests===G.measurementRequests&&m.viewportGeometrySourceName===G.viewportGeometrySourceName&&m.viewportLocalAppOffset.x===G.viewportLocalAppOffset.x&&m.viewportLocalAppOffset.y===
G.viewportLocalAppOffset.y};
LEd=function(m,G){return function(K){return function(W){var L=W.pipe(JU(new Ib),zp());W=K.element.pipe(u$());L=L.pipe(l9(function(A){return A.value}));
return Mp([W,L,G]).pipe(l9(function(A){var O=_.g(A);A=O.next().value;var c=O.next().value;O=O.next().value;if(A.ref===void 0)var u={top:0,left:0,width:0,height:0};else{u=A.ref.getBoundingClientRect();var h=A.ref,J=m.global,N=new _.si(0,0),D=ur(_.hI(h));if(BDf(D,"parent")){do{if(D==J)var t=_.pB(h);else t=GLs(h),t=new _.si(t.left,t.top);N.x+=t.x;N.y+=t.y}while(D&&D!=J&&D!=D.parent&&(h=D.frameElement)&&(D=D.parent))}u={top:N.y,left:N.x,width:u.width,height:u.height}}u=f56(u,c.viewportLocalAppOffset);
J=eLP(u,c.exposedViewportLocalGeometry);N=m.timeProvider.now();D=Object;h=D.assign;if(O!==2||m.inCrossDomainIframe||J.width<=0||J.height<=0)var a=!1;else try{var v=m.document.elementFromPoint(J.left+J.width/2,J.top+J.height/2);a=v?!KEP(v,A):!1}catch(I){a=!1}return{timestamp:N,value:h.call(D,{},c,{elementGeometrySourceName:"geo",intersectionGeometry:a?WEd.intersectionGeometry:J,elementGeometry:u})}}),jh(m.queue))}}};
KEP=function(m,G,K){K=K===void 0?0:K;return m.ref===void 0||G.ref===void 0?!1:m.ref===G.ref||_.N7(G.ref,function(W){return W===m.ref})?!0:G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView===G.ref.ownerDocument.defaultView.top?!1:K<10&&G.ref.ownerDocument&&G.ref.ownerDocument.defaultView&&G.ref.ownerDocument.defaultView.frameElement?KEP(m,new D5(G.ref.ownerDocument.defaultView.frameElement),K+1):!0};
gOM=function(m){return function(G){return G.pipe(m.ResizeObserver?A_d(m):w4d(m),D1(1),zp())}};
A_d=function(m){return function(G){return G.pipe(Qu(function(K){var W=m.ResizeObserver;if(!W||K.ref===void 0)return Xs(WEd.elementGeometry);var L=(new sy(function(A){function O(){K.ref!==void 0&&c.unobserve(K.ref);c.disconnect();u.unsubscribe()}
if(K.ref===void 0)return A.complete(),function(){};
var c=new W(function(h){h.forEach(function(J){A.next(J)})});
c.observe(K.ref);var u=K.JSC$9667_released.subscribe(O);return O})).pipe(gD(m.performanceMonitor,736),l9(function(A){return A.contentRect}));
return WE(Xs(K.ref.getBoundingClientRect()),L)}),u$(dD))}};
w4d=function(m){return function(G){var K=G.pipe(enV(m)),W=m.onResize;K=WE(G.pipe(l9(function(){return Q$G("resize")})),K,W);
return Mp(G,K).pipe(gD(m.performanceMonitor,737),l9(function(L){L=_.g(L).next().value;return L.ref===void 0?void 0:L.ref.getBoundingClientRect()}),RnV(),u$(dD))}};
YZF=function(m,G){var K=OT9(m,G).pipe(D1(1),zp());return function(W){return function(L){L=L.pipe(Qu(function(A){return A.element}),u$());
return Mp([K,L]).pipe(Qu(function(A){var O=_.g(A);A=O.next().value;O=O.next().value;return c_J(m,A.intersectionObserver,gOM(m),A.observations,W,A.flushRecords,O)}),jh(m.queue))}}};
r_f=function(m){return l9(function(G){return G.value.viewportGeometrySourceName!=="nio"?G:Object.assign({},G,{value:Object.assign({},G.value,{exposedViewportLocalGeometry:tI(m,!0),topWindowViewportExternalGeometry:tI(m,!0)})})})};
ufG=function(m,G){return Xs(G).pipe(m,l9(function(){return G}))};
OT9=function(m,G){return m.timeProvider.timeline!==hRf?Sy(new OR(2)):m.MutationObserver?typeof IntersectionObserver==="undefined"?Sy(new OR(0)):(new sy(function(K){var W=new Ib,L=new Fb(W.next.bind(W),{threshold:[].concat(_.Bz(G))});K.next({observations:W.pipe(gD(m.performanceMonitor,735)),intersectionObserver:L,flushRecords:function(A){A=L.takeRecords(A);A.length>0&&W.next(A)}})})).pipe(rD(1),D1(1),zp()):Sy(new OR(1))};
p4V=function(m){return B5v(m.sort(function(G,K){return G.time-K.time}),AUG)};
c_J=function(m,G,K,W,L,A,O){return new sy(function(c){function u(){a||(a=!0,O.ref!==void 0&&G.unobserve(L,O.ref),J.unsubscribe(),t.unsubscribe(),D.unsubscribe(),v.unsubscribe())}
if(O.ref!==void 0){J_G(G,L);G.observe(L,O.ref);var h=new Qp({timestamp:m.timeProvider.now(),value:Object.assign({},WEd,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),J=W.pipe(i$(function(I){return p4V(I)}),L6(function(I){return I.target===O.ref}),l9(function(I){return{timestamp:new wD(I.time,hRf),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:I.rootBounds||a$,topWindowViewportExternalGeometry:I.rootBounds||tI(m,!0),measurementRequests:N,elementGeometrySourceName:"nio",intersectionGeometry:I.intersectionRect,elementGeometry:I.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:I.isIntersecting,isV2Visible:I.isVisible}}}),JU(h),zp()).subscribe(c),N=new Ib,D=N.subscribe(function(){A(L);
c.next({timestamp:m.timeProvider.now(),value:h.value.value});O.ref!==void 0&&(G.unobserve(L,O.ref),G.observe(L,O.ref))}),t=ufG(K,O).subscribe(function(){N.next()}),a=!1,v=O.JSC$9667_released.subscribe(function(){return u()});
return u}})};
N_P=function(m,G){var K=m.getOnBackgrounded().pipe(l9(function(){return"b"}));
return qi6(G,K).pipe(rD(1),ky(m.queue))};
o$=function(m){return function(G){var K;return G.pipe(SiP(function(W){return void(K=W.timestamp)}),l9(function(W){return W.value}),m,l9(function(W){return{timestamp:K,
value:W}}))}};
D2J=function(m){return m.intersectionGeometry.width*m.intersectionGeometry.height/(m.elementGeometry.width*m.elementGeometry.height)};
nB=function(m,G,K){K=K===void 0?function(W,L){return W===L}:K;
return m.timestamp.equals(G.timestamp)&&K(m.value,G.value)};
vt=function(m,G){return G.pipe(l9(function(K){return new br(m.timeProvider,{timestamp:m.timeProvider.now(),value:K})}))};
tJv=function(m){return function(G){return G.pipe(R_G(m),l9(function(K){var W=_.g(K);K=W.next().value;W=W.next().value;var L=K.value;return{timestamp:K.timestamp,value:L>=1?!0:L<=0?!1:L>=W}}))}};
Q2V=function(){return $r(L6(function(m,G){return G>0}),FEJ,FJ(-1),u$())};
aMo=function(m,G,K){return m?Mp([G,K]).pipe(L6(function(W){var L=_.g(W);W=L.next().value;L=L.next().value;return W.timestamp.equals(L.timestamp)}),l9(function(W){var L=_.g(W);
W=L.next().value;L=L.next().value;return W.value>L.value?W:L})):G};
bTd=function(m){return function(G){var K=G.pipe(oO6),W=G.pipe(nOG);return m instanceof sy?m.pipe(Qu(function(L){return aMo(L,K,W)})):aMo(m.value,K,W)}};
CM6=function(m,G,K,W){var L=W.geometryIsOccluded,A=W.exposureThreshold,O=W.wasLargeAdAtRender,c=W.allowLargeAdThreshold,u=W.largeAdExposureThreshold,h=W.mayUseViewportShareExposure,J=W.hasMeasurementStarted;W=W.useIntersectionObserverV2;G=vOG(m,K,G);K=$2V(m,K);W=s2d(G,W);var N=qZs(m,L,h,G),D=N.pipe(l9(function(f){return f.value}),u$(),ky(m),tU(function(f,U){return Math.max(f,U)},0)),t=N.pipe(l9(function(f){return f.value}),Q2V(),ky(m)),a=G.pipe(EOP,l9(function(f){return f.value}),rD(2),u$(),ky(m));
O=HTJ(m,G,O,c);var v=O.pipe(FJ(!1),u$(),l9(function(f){return f?u:A}));
c=N.pipe(tJv(v),u$(),ky(m));var I=Mp([c,G]).pipe(L6(function(f){var U=_.g(f);f=U.next().value;U=U.next().value;return f.timestamp.equals(U.timestamp)}),l9(function(f){var U=_.g(f);
f=U.next().value;U=U.next().value;return{visible:f.value,geometry:U.value.elementGeometry}}),tU(function(f,U){return!U.visible&&f.visible?f:U},{visible:!1,
geometry:a$}),l9(function(f){return f.geometry}),FJ(a$),ky(m),u$(dD));
h=h instanceof sy?h.pipe(u$(),Yy()):g$;v=Mp([h,v]).pipe(Yy());var Z=G.pipe(L6(function(f){return f.value.viewportGeometrySourceName!=="ns"&&f.value.elementGeometrySourceName!=="ns"}),tU(function(f){return f+1},0),FJ(0),ky(m)),k=K.pipe(Yy(!0),FJ(!1),ky(m));
k=Mp([J,k]).pipe(l9(function(f){var U=_.g(f);f=U.next().value;U=U.next().value;return f&&!U}),ky(m));
var z=G.pipe(IMG,u$()),X=z.pipe(l9(function(f){return f.value}),tU(function(f,U){return Math.max(f,U)},0),u$(),ky(m));
m=z.pipe(l9(function(f){return f.value}),Q2V(),ky(m));
return{shouldResetExposureSignals:h,shouldResetViewabilitySignals:v,geometrySignals:{readyGeometryWithDefault:G,measurementStrategy:G.pipe(j2J),creativePosition:I.pipe(u$(dD)),visible:c.pipe(u$(nB)),timestampedExposure:N.pipe(u$(nB)),maximumExposure:D,minimumExposure:t,browserSize:G.pipe(kLM,u$(_.BJ)),timestampedScreenShare:z,maxScreenShare:X,minScreenShare:m,geometricMeasurementErrors:K,measurementRequests:G.pipe(l9(function(f){return f.value.measurementRequests})),
isLargeAd:O,geometryIsOccluded:L,hasMeasurementStarted:J,geometryMeasurable:k,validMeasurementCount:Z,loadTimeExposure:a,v2VisibilityBitVector:W}}};
$2V=function(m,G){return G.pipe(L6(function(){return!1}),l9(function(K){return K}),Oi(function(K){return $2(new Z1(K),m)}))};
vOG=function(m,G,K){return G.pipe($jJ(g$),ky(m)).pipe(u$(function(W,L){return nB(W,L,iT6)}),FJ({timestamp:K.now(),
value:WEd}),ky(m))};
qZs=function(m,G,K,W){K=W.pipe(bTd(K),o$(l9(function(L){return Math.round(L*100)/100})),ky(m));
return G instanceof Z1?K:Mp([K,G]).pipe(l9(function(L){var A=_.g(L);L=A.next().value;A=A.next().value;return{timestamp:A.timestamp.maximum(L.timestamp),value:A.value?0:L.value}}),u$(nB),ky(m))};
HTJ=function(m,G,K,W){G=[G.pipe(l9(function(L){return L.value.elementGeometry.width*L.value.elementGeometry.height>=242500}))];
K instanceof sy&&G.push(K.pipe(l9(function(L){return!!L})));
K=Mp(G);return W?K.pipe(l9(function(L){return L.some(function(A){return A})}),FJ(!1),u$(),ky(m)):$2(new Z1(!1),m)};
s2d=function(m,G){m=Mp([m,G]).pipe(l9(function(L){var A=_.g(L);L=A.next().value;if(A.next().value&&L.value.isIntersecting)return L.value.isV2Visible}),u$());
var K=m.pipe(l9(function(L){return L===void 0?!0:L}),tU(function(L,A){return L||!A},!1)),W=m.pipe(tU(function(L,A){return A===void 0?L:A?!1:L!=null?L:!0},void 0),l9(function(L){return!!L}));
return Mp([G,EyG(m,K,W)]).pipe(l9(function(L){var A=_.g(L);L=A.next().value;var O=_.g(A.next().value);A=O.next().value;var c=O.next().value;O=O.next().value;var u=0;if(!L)return 0;if(A===void 0)return 16;A&&(u|=1);A||(u|=2);c&&(u|=4);O&&(u|=8);return u}))};
eRJ=function(m,G,K,W,L){var A=VJd.timeThresholdMs;var O=O===void 0?new ZTo(G,W):O;return(new sy(function(c){var u=K.pipe(FJ(void 0),Qu(function(){return d2P(L)})).pipe(l9(function(h){var J=h.value;
h=h.timestamp;var N=J.visible;J=J.consecutiveViewTime;var D=J>=A;D||!N?PMf(O):(h=Math.max(0,AU(G.now(),h)),y_d(O,Math.max(0,A-J-h)));return D}),tU(function(h,J){return J||h},!1),u$()).subscribe(c);
return function(){O.dispose();u.unsubscribe()}})).pipe(ab(function(c){return!c},!0),ky(m))};
d2P=function(m){return zns([m,m.pipe(m2d())]).pipe(l9(function(G){var K=_.g(G);G=K.next().value;K=K.next().value;return{timestamp:G.timestamp,value:{visible:G.value,consecutiveViewTime:K.value}}}),u$(function(G,K){return nB(G,K,function(W,L){return W.consecutiveViewTime===L.consecutiveViewTime&&W.visible===L.visible})}))};
fMF=function(){return $r(MUd(),tU(function(m,G){return Math.max(m,G)},0),l9(function(m){return Math.round(m)}))};
x2d=function(m){return $r(tJv(Xs(m)),fMF())};
X4J=function(m,G){return G instanceof sy?G.pipe(Qu(function(K){return(K=K?15:null)?Sy(new OR(K)):m})):(G=G.value?15:null)?Sy(new OR(G)):m};
SZd=function(m){var G=new OR(13);if(m.length<1)return{chain:K6,capturedErrors:K6};var K=new Ib,W=m[0];return{chain:m.slice(1).reduce(function(L,A){return L.pipe(Oi(function(O){K.next(O);return A}))},W).pipe(Oi(function(L){K.next(L);
return Sy(G)}),JU(new Ib),zp()),
capturedErrors:K}};
RRd=function(m,G){var K=m.pipe(JU(new Ib),zp());return Qu(function(W){return K.pipe(G(W))})};
zRG=function(m,G){if(m.inCrossDomainIframe)return Sy(new OR(6));var K=new Ib;return WE(Xs({}),G,K).pipe(l9(function(){return{timestamp:m.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:U2d(m),topWindowViewportExternalGeometry:tI(m,!0),measurementRequests:K,viewportLocalAppOffset:{x:0,y:0}}}}),jh(m.queue))};
U2d=function(m){var G=tI(m,!1);if(!m.inIframe||!MhM(m.global.parent)||m.global.parent===m.global)return G;var K=new q7(m.global.parent,m.debugChannel);K.beaconFactory=m.beaconFactory;K=U2d(K);m=m.global.frameElement.getBoundingClientRect();return eLP(f56(eLP(K,m),{x:G.left-m.left,y:G.top-m.top}),G)};
lMo=function(m){if(m.prerendering)return 3;var G;return(G={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[m.visibilityState||m.webkitVisibilityState||m.mozVisibilityState||""])!=null?G:0};
B_M=function(m){return m.document.JSC$9678_onVisibilityChange.pipe(l9(function(G){return G==="visible"}),u$(),ky(m.queue))};
MJd=function(m,G,K){var W;return G.pipe(u$(),Qu(function(L){return K.pipe(l9(function(){if(!W){W=!0;try{L.next()}finally{W=!1}}return!0}))}),FJ(!1),ky(m.queue))};
T_M=function(m){return $r(o$(l9(function(G){return G>=1?!0:G<=0?!1:G>=m})),BMJ(),l9(function(G){return Math.round(G)}))};
ind=function(m,G,K,W,L){var A=mCd;if(A.length>1)for(var O=0;O<A.length-1;O++)if(A[O]<A[O+1])throw Error();O=L.pipe(FJ(void 0),Qu(function(){return K.pipe(m2d())}),u$(),ky(m));
L=L.pipe(FJ(void 0),Qu(function(){return K.pipe(fMF())}),u$(),ky(m));
return{totalMeasurementTime:W.pipe(FJ(void 0),Qu(function(){return G.pipe(l9(function(c){return{timestamp:c.timestamp,value:!0}}),BMJ())}),u$(),ky(m)),
totalUnviewedTime:W.pipe(FJ(void 0),Qu(function(){return G.pipe(l9(function(c){return{timestamp:c.timestamp,value:c.value===0}}),BMJ())}),u$(),ky(m)),
maxTimeOnScreen:W.pipe(FJ(void 0),Qu(function(){return G.pipe(TMM(x2d,A))}),u$(_.BJ),ky(m)),
timeOnScreen:W.pipe(FJ(void 0),Qu(function(){return G.pipe(TMM(T_M,A),l9(function(c){return c.map(function(u,h){return h>0?u-c[h-1]:u})}))}),u$(_.BJ),ky(m)),
maxConsecutiveViewTime:L,consecutiveViewTime:O.pipe(u$(nB),ky(m))}};
K3o=function(m){var G=!0;G=G===void 0?!1:G;return $r(Qu(function(K){return Gfo(m.document,K,G)}),ky(m.queue))};
W3J=function(m,G,K){var W=K.pipe(l9(function(L){return{value:L,timestamp:m.timeProvider.now()}}),u$(nB));
return G instanceof sy?G.pipe(u$(),Qu(function(L){return L?$2(new Z1({value:!1,timestamp:m.timeProvider.now()}),m.queue):W})):G.value===!1?W:new Z1(!1)};
L36=function(m,G,K,W,L,A,O){var c=VJd;G=G instanceof sy?G.pipe(FJ(!1),u$()):G;var u=!m.isMobile();K=W3J(m,K,W);m=O.measurableCreative.pipe(UTd(m.queue));return Object.assign({},c,{geometryIsOccluded:K,wasLargeAdAtRender:L,allowLargeAdThreshold:u,mayUseViewportShareExposure:G,hasMeasurementStarted:m,useIntersectionObserverV2:A})};
wOJ=function(m,G,K,W,L,A){var O=1;A=A===void 0?!0:A;O=O===void 0?.01:O;var c=c===void 0?m.timeProvider.intervalObservable(100).pipe(ky(m.queue)):c;return m.performanceMonitor.timeExecution(916,function(){return Awo(m,G.pipe(jh(m.queue)),K.pipe(jh(m.queue)),W,L,A,O,c)})()};
Awo=function(m,G,K,W,L,A,O,c){var u=B_M(m).pipe(l9(function(J){return!J})),h=new gSd(m,[new Ons(m,mCd),
new cwJ(m,c)]);c=VUv(Y8G,rwM);return sid(m,G,function(J,N){var D=$2(new Z1(N.element),J.queue).pipe(K3o(J),ky(J.queue)),t={loadedElement:D,shouldMeasure:D.pipe(Yy(!0)),measurableCreative:D.pipe(l9(function(f){var U=U===void 0?Symbol():U;return Object.freeze({symbol:U,element:$2(new Z1(f),J.queue)})})),
creativeSearchResult:$2(new Z1("mue"),J.queue)},a=new Z1(!1),v=new Z1(!1),I=new Z1(17),Z=new Z1(!1),k=new Z1(!1),z=$2(ER,J.queue);a=h.buildGeometrySource(t,{inApp:a,useV2:!1,requestSource:$2(I,J.queue)}).geometrySource;t=L36(J,Z,v,u,k,z,t);v=CM6(J.queue,J.timeProvider,a,t);t=v.geometrySignals;Z=v.shouldResetViewabilitySignals;v=ind(J.queue,t.timestampedExposure,t.visible,v.shouldResetExposureSignals,Z);Z=eRJ(J.queue,J.timeProvider,Z,t.measurementRequests,t.visible);k=K.pipe(L6(function(f){return f===
N.element.ref}),l9(function(){return"ur"}));
z=kFd(J.timeProvider,L).pipe(Yy("t"));k=N_P(J,WE(k,z));z=MJd(J,t.measurementRequests,k.pipe(L6(function(f){return f!==null})));
a=k.pipe(L6(function(f){return f!==null}),l9(function(){return lMo(J.global.document)===1}));
var X=uFG(J.document);return Object.assign({},{beaconFactory:new Z1(J.beaconFactory),context:new Z1(J),inferredPingId:new Z1("lidar2"),timeOnScreenPingId:new Z1("lidartos"),binaryContext:new Z1(17),binaryVersion:new Z1(W),requestSource:I,contextValidationErrors:new Z1(J.validate()?null:new ct),contextVisibilityKnown:new Z1(X),payloadMapper:new Z1(kHd),endOfSessionReason:k,timeOnScreenReason:k,requestMeasurementOnEndOfSession:z,hasImpressionFired:hI6,crossDomainIframeState:new Z1(J.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:ER,inFetchLaterBeaconExperiment:ER,isTurtlex:ER,turtlexReportEventData:new Z1(""),reportFencedFrameEvent:g$,isViewableAttributionEnabled:ER,inViewableAttributionExperiment:new Z1(0),fetchBeaconFactory:g$,supportsPendingBeacon:ER,supportsFetchLater:ER,emit:new Z1(PEs),beginToRenderEvent:new Z1(Symbol()),activeViewUnmeasurableEvent:new Z1(Symbol()),activeViewViewableEvent:new Z1(Symbol()),creativeFound:hI6,immediateUrlPrefixes:new Z1(N.immediateUrls),timeOnScreenUrlPrefixes:new Z1(N.timeOnScreenUrls),
cpmavUrls:g$,viewableRelayUrls:g$,measurementDeferralState:new Z1(2),urlSerializer:new Z1(SJJ),viewUrlSerializer:new Z1(pOd),isCreativeLoaded:D.pipe(UTd(J.queue)),pageVisible:u.pipe(l9(function(f){return!f})),
eosPageVisible:a,timestampedExposureHistory:t.timestampedExposure.pipe(tU(function(f,U){f.push(U);return f},[]))},t,{viewable:vt(J,Z),
maxTimeOnScreen:vt(J,v.maxTimeOnScreen),timeOnScreen:vt(J,v.timeOnScreen),maxConsecutiveViewTime:vt(J,v.maxConsecutiveViewTime),consecutiveViewTime:v.consecutiveViewTime.pipe(l9(function(f){return new br(J.timeProvider,f)})),
totalMeasurementTime:vt(J,v.totalMeasurementTime),totalUnviewedTime:vt(J,v.totalUnviewedTime),userAgentClientHints:Fif(J),clientOrderPingCounter:new Z1(new ElV)})},CEG(m,O),ZtJ(A?dT6(c,Jwd):dT6(c,Ns9),DCP))};
t1o=function(m){var G=_.mb.apply(1,arguments).filter(Boolean).join("&");if(!G)return m;var K=m.match(/[?&]adurl=/);return K?m.slice(0,K.index+1)+G+"&"+m.slice(K.index+1):m+(m.indexOf("?")<0?"?":"&")+G};
Ht=function(m,G){return G?"&"+m+"="+encodeURIComponent(G):""};
F39=function(){try{var m,G;return!!((m=window)==null?0:(G=m.top)==null?0:G.location.href)&&!1}catch(K){return!0}};
_.I$=function(m){m&&typeof m.dispose=="function"&&m.dispose()};
_.ja=function(m){for(var G=0,K=arguments.length;G<K;++G){var W=arguments[G];_.XP(W)?_.ja.apply(null,W):_.I$(W)}};
a0d=function(){var m=QPv();m=m===void 0?"bevasrsg":m;return new Promise(function(G){var K=window===window.top?window:F39()?window:window.top,W=K[m],L;((L=W)==null?0:L.bevasrs)?G(new k2(W.bevasrs)):(W||(W={},W=(W.nqfbel=[],W),K[m]=W),W.nqfbel.push(function(A){G(new k2(A))}))})};
oSP=function(m){var G={c:m.kW,e:m.u83,mc:m.uL6,me:m.qjP};m.ou&&(G.co={c:m.ou.pAp,a:m.ou.mG3,s:m.ou.ySi});return G};
nSd=function(m){var G,K,W={kW:m.c,u83:m.e,uL6:(G=m.mc)!=null?G:!1,qjP:(K=m.me)!=null?K:!1};m.co&&(W.ou={pAp:m.co.c,mG3:m.co.a,ySi:m.co.s});return W};
bnG=function(m){return function(){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m(),2);G=K.yieldResult;return K.return({f:function(){return G.l8M()},
c:function(W){return G.rMx(W)},
m:function(W){return G.pN(nSd(W))},
mws:function(W){return G.p2P(nSd(W))}})})}};
vSs=function(m,G){var K=QPv();K=K===void 0?"bevasrsg":K;G={s:function(A){var O;return m.snapshot(Object.assign({},A.c&&{kW:A.c},A.s&&{tLP:A.s},{t5M:(O=A.p)!=null?O:!0}))},
e:function(A){var O;return void((O=m.qQP)==null?void 0:O.call(m,A))},
c:function(A,O){return m.uzP(A,O)},
p:m.bgc,l:function(){return m.l2P()},
wpc:G?bnG(G):void 0};var W=window===window.top?window:F39()?window:window.top,L=W[K];if(L){L.bevasrs=G;if(L.nqfbel!==void 0)for(K=_.g(L.nqfbel),W=K.next();!W.done;W=K.next())W=W.value,W(G);L.nqfbel=void 0}else L={},L=(L.bevasrs=G,L.nqfbel=void 0,L),W[K]=L};
sPG=function(m){var G=G===void 0?52:G;var K=[];_.CB(m,$CV,6,_.Vp()).forEach(function(W){_.Z5(W,2)<=G&&K.push(_.Z5(W,1))});
return K};
q8M=function(m){var G=G===void 0?52:G;var K=[];_.CB(m,$CV,6,_.Vp()).forEach(function(W){_.Z5(W,2)>G&&K.push(_.Z5(W,1))});
return K};
ESf=function(m){m.then(function(){},function(){})};
d$=function(m){return{fieldType:1,fieldName:m}};
Pt=function(m){return{fieldType:2,fieldName:m}};
_.ea=function(m){return{fieldType:3,fieldName:m}};
Hnd=function(){function m(){L[0]=1732584193;L[1]=4023233417;L[2]=2562383102;L[3]=271733878;L[4]=3285377520;J=h=0}
function G(N){for(var D=O,t=0;t<64;t+=4)D[t/4]=N[t]<<24|N[t+1]<<16|N[t+2]<<8|N[t+3];for(t=16;t<80;t++)N=D[t-3]^D[t-8]^D[t-14]^D[t-16],D[t]=(N<<1|N>>>31)&4294967295;N=L[0];var a=L[1],v=L[2],I=L[3],Z=L[4];for(t=0;t<80;t++){if(t<40)if(t<20){var k=I^a&(v^I);var z=1518500249}else k=a^v^I,z=1859775393;else t<60?(k=a&v|I&(a|v),z=2400959708):(k=a^v^I,z=3395469782);k=((N<<5|N>>>27)&4294967295)+k+Z+z+D[t]&4294967295;Z=I;I=v;v=(a<<30|a>>>2)&4294967295;a=N;N=k}L[0]=L[0]+N&4294967295;L[1]=L[1]+a&4294967295;L[2]=
L[2]+v&4294967295;L[3]=L[3]+I&4294967295;L[4]=L[4]+Z&4294967295}
function K(N,D){if(typeof N==="string"){N=unescape(encodeURIComponent(N));for(var t=[],a=0,v=N.length;a<v;++a)t.push(N.charCodeAt(a));N=t}D||(D=N.length);t=0;if(h==0)for(;t+64<D;)G(N.slice(t,t+64)),t+=64,J+=64;for(;t<D;)if(A[h++]=N[t++],J++,h==64)for(h=0,G(A);t+64<D;)G(N.slice(t,t+64)),t+=64,J+=64}
function W(){var N=[],D=J*8;h<56?K(c,56-h):K(c,64-(h-56));for(var t=63;t>=56;t--)A[t]=D&255,D>>>=8;G(A);for(t=D=0;t<5;t++)for(var a=24;a>=0;a-=8)N[D++]=L[t]>>a&255;return N}
for(var L=[],A=[],O=[],c=[128],u=1;u<64;++u)c[u]=0;var h,J;m();return{reset:m,update:K,digest:W,digestString:function(){for(var N=W(),D="",t=0;t<N.length;t++)D+="0123456789ABCDEF".charAt(Math.floor(N[t]/16))+"0123456789ABCDEF".charAt(N[t]%16);return D}}};
fB=function(m){this.JSC$9925_document_=m||{cookie:""}};
Znd=function(m,G){G=G===void 0?I0o:G;if(!jPM){var K;m=(K=m.navigator)==null?void 0:K.userAgentData;if(!m||typeof m.getHighEntropyValues!=="function"||m.brands&&typeof m.brands.map!=="function")return Promise.reject(Error("va"));kfd((m.brands||[]).map(function(L){var A=new CXP;A=_.LB(A,1,L.brand);return _.LB(A,2,L.version)}));
typeof m.mobile==="boolean"&&_.x2(V1o,2,m.mobile);jPM=m.getHighEntropyValues(G)}var W=new Set(G);return jPM.then(function(L){var A=V1o.clone();W.has("platform")&&_.LB(A,3,L.platform);W.has("platformVersion")&&_.LB(A,4,L.platformVersion);W.has("architecture")&&_.LB(A,5,L.architecture);W.has("model")&&_.LB(A,6,L.model);W.has("uaFullVersion")&&_.LB(A,7,L.uaFullVersion);return A.serialize()}).catch(function(){return V1o.serialize()})};
Xb=function(m,G,K,W){this.initialValue_=m;this.maxValue_=G;this.currBaseValue_=this.currValue_=m;this.randomFactor_=K||0;this.backoffFactor_=W||2};
PXd=function(m,G,K,W,L){this.listener=m;this.proxy=null;this.src=G;this.type=K;this.capture=!!W;this.handler=L;this.key=++dCM;this.removed=this.callOnce=!1};
Sa=function(m){this.src=m;this.listeners={};this.typeCount_=0};
xC6=function(){for(var m;m=ywv.remove();){try{m.fn.call(m.scope)}catch(G){WJ(G)}eIs.put(m)}f0G=!1};
_.XO9=function(m){switch(m){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}};
S8d=function(m){switch(m){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""}};
_.RIG=function(){};
GdJ=function(m,G,K,W){m=UCs(zId(l0P(new _.R$(1828,"0"),m),new Bss)).disableWithCredentials();G.length&&M19(m,Tss(new mKG,G));W!==void 0&&(m.destinationUrl=W);var L=new iL6(1828,"","",!1,"",m.build());_.UR(L,m);var A=new zI({flush:function(O){try{L.flush(O)}catch(c){K(c)}}});
A.addOnDisposeCallback(function(){setTimeout(function(){try{A.snapshotAndFlush()}finally{L.dispose()}})});
A.invocationLimit=1E5;A.flushInterval=3E4;A.JSC$10094_flushTimer.setInterval(3E4);return A};
lr=function(){var m,G,K;return(K=(m=globalThis.performance)==null?void 0:(G=m.now)==null?void 0:G.call(m))!=null?K:Date.now()};
L19=function(m,G){if(m.disable)return new K1o;G=G?sPG(G):[];m={km:m.km,grh:m.eKJ,yAx:m.dTg,destinationUrl:m.destinationUrl,l0t:m.l0t,vRD:m.vRD};G=G===void 0?[]:G;return new W1V(m,G)};
AHv=function(m){if(!m)return null;m=_.Bt(m,2);return m===null||m===void 0?null:Wz(m)};
_.wwv=function(m){if(!m)return null;m=_.Bt(m,4);return m===null||m===void 0?null:_.PN(m)};
cHf=function(m,G){return G?gD6(G):m?OLs(m):Promise.resolve()};
gD6=function(m){return new Promise(function(G,K){var W=_.M7("SCRIPT"),L=_.wwv(m);_.Jt(W,L);W.onload=function(){_.mX(W);G()};
W.onerror=function(){_.mX(W);K(Error("Ga"))};
(iE("HEAD")[0]||document.documentElement).appendChild(W)})};
OLs=function(m){return new Promise(function(G){var K=_.M7("SCRIPT");if(m){var W=_.Bt(m,6);W=W===null||W===void 0?null:_.r5(W)}else W=null;_.pZ(K,W);(iE("HEAD")[0]||document.documentElement).appendChild(K);_.mX(K);G()})};
GH=function(m,G,K){var W,L=new Promise(function(A){W=setTimeout(A,G)});
return Promise.race([m.finally(function(){return void clearTimeout(W)}),
L.then(K)])};
YVv=function(m,G){try{return globalThis.sessionStorage.setItem(m,G),!0}catch(K){return!1}};
rHV=function(m,G,K,W){G=G===void 0?0:G;K=K===void 0?m.length:K;var L=0;for(W&&(L=rHV(W));G<K;G++)W=typeof m==="string"?m.charCodeAt(G):m[G],L=uHG(31,L)+W|0;return L};
hvd=function(m,G){return[rHV(m,0,m.length>>1,G),rHV(m,m.length>>1)]};
pwM=function(m){var G=_.g(hvd(m,Kt));m=G.next().value;G=G.next().value;return m.toString(16)+G.toString(16)};
JHd=function(m,G){var K=hvd(G);m=new Uint32Array(m.buffer);G=m[0];var W=_.g(K);K=W.next().value;W=W.next().value;for(var L=1;L<m.length;L+=2){for(var A=G,O=L,c=K,u=W,h=0;h<22;h++)O=O>>>8|O<<24,O+=A|0,O^=c+38293,A=A<<3|A>>>29,A^=O,u=u>>>8|u<<24,u+=c|0,u^=h+38293,c=c<<3|c>>>29,c^=u;A=[A,O];m[L]^=A[0];L+1<m.length&&(m[L+1]^=A[1])}};
N8J=function(m,G,K,W,L){var A=(4-(Kt.length+K.length)%4)%4,O=new Uint8Array(4+A+Kt.length+4+K.length),c=new DataView(O.buffer),u=0;c.setUint32(u,Math.random()*4294967295);u=u+4+A;O.set(Kt,u);u+=Kt.length;c.setUint32(u,L);O.set(K,u+4);JHd(O,W);return m.insert(G,function(h){return void globalThis.sessionStorage.removeItem(h)})?YVv(G,_.Md(O))?"s":"t":"i"};
DKf=function(m,G){var K=globalThis.sessionStorage.getItem(m);if(!K)return["m"];try{var W=_.T9(K);JHd(W,G)}catch(L){return globalThis.sessionStorage.removeItem(m),["c"]}for(G=4;G<7&&W[G]===0;)G++;for(K=0;K<Kt.length;K++)if(W[G++]!==Kt[K])return globalThis.sessionStorage.removeItem(m),["d"];K=(new DataView(W.buffer)).getUint32(G);return Math.floor(Date.now()/1E3)>=K?(globalThis.sessionStorage.removeItem(m),["e"]):["a",new Uint8Array(W.buffer,G+4)]};
tnd=function(m){return globalThis.TextEncoder?(new TextEncoder).encode(m):_.Wg(m)};
F1d=function(m){var G=m,K;return function(){if(G){var W=G;G=void 0;K=W.apply(this,arguments)}return K}};
a_f=function(m){return VX(function(G){if(G instanceof m)return!0;var K,W,L=G==null?void 0:(K=G.ownerDocument)==null?void 0:(W=K.defaultView)==null?void 0:W[m.name];return QGJ(L)&&G instanceof L})};
_.wM=function(m,G,K){_.Lt.call(this);this.JSC$10308_listener_=m;this.JSC$10308_interval_=G||0;this.handler_=K;this.callback_=(0,_.AO)(this.JSC$10310_doAction_,this)};
_.gM=function(m){_.Lt.call(this);this.handler_=m;this.JSC$10311_keys_={}};
OJ=function(){_.Lt.call(this);this.services_={}};
oD9=function(){for(var m=10,G="";m-- >0;)G+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(Math.random()*62));return G};
cg=function(m){_.Lt.call(this);this.JSC$10331_domHelper_=m||Wt()};
uE=function(m,G,K,W,L){cg.call(this,K);this.JSC$10334_channel_=m;this.protocolVersion_=L||2;this.peerHostname_=G||"*";this.JSC$10334_eventHandler_=new _.gM(this);this.maybeAttemptToConnectTimer_=new _.Yl(100,this.getWindow());this.oneSidedHandshake_=!!W;this.setupAckReceived_=new rM;this.setupAckSent_=new rM;this.JSC$10334_connected_=new rM;this.endpointId_=oD9();this.peerEndpointId_=null;this.oneSidedHandshake_?nDf(this.JSC$10334_channel_)==1?bLv(this.JSC$10334_connected_,this.setupAckReceived_):
bLv(this.JSC$10334_connected_,this.setupAckSent_):(bLv(this.JSC$10334_connected_,this.setupAckReceived_),this.protocolVersion_==2&&bLv(this.JSC$10334_connected_,this.setupAckSent_));vDF(this.JSC$10334_connected_,this.notifyConnected_,this);this.JSC$10334_connected_.callback(!0);this.JSC$10334_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.hO=function(m){m=$KG(m);return _.PN(m)};
$KG=function(m){return m===null?"null":m===void 0?"undefined":m};
NT=function(m,G){OJ.call(this);for(var K=0,W;W=sGV[K];K++)if(W in m&&!/^https?:\/\//.test(m[W]))throw Error("Sa`"+m[W]+"`"+W);this.cfg_=m;this.name=this.cfg_.cn||oD9();this.JSC$10335_domHelper_=G||Wt();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.gM(this);m.lpu=m.lpu||U7v(this.JSC$10335_domHelper_.getWindow().location.href)+"/robots.txt";m.ppu=m.ppu||U7v(m.pu||"")+"/robots.txt";pt[this.name]=this;qVJ(window,"unload",EDf)||JO(window,"unload",EDf)};
I_d=function(m){if(m&&m.focus)if(m!==document.activeElement)m.focus();else return HLd(function(){return _.Y(function(G){document.activeElement&&document.activeElement.blur();return G.return(HLd(function(){m.focus()}))})})};
_.jGJ=function(m){var G=G===void 0?5:G;setTimeout(function(){var K;return _.Y(function(W){W.nextAddress==1&&(K=document.activeElement);if(W.nextAddress!=5)return(document.activeElement===K||document.activeElement===document.body)&&G>=0&&m?W.yield(I_d(m),5):W.jumpTo(0);if(document.activeElement===m)return W.return();m=m.parentElement;--G;return W.jumpTo(2)})},15)};
HLd=function(m){return new Promise(function(G){requestAnimationFrame(function(){G(m())})})};
CxG=function(m){if(_.D4)m(_.D4);else{var G;((G=kdo)!=null?G:kdo=[]).push(m)}};
F6=function(){!_.D4&&_.tO&&_.Vnd(_.tO());return _.D4};
_.Vnd=function(m){_.D4=m;var G;(G=kdo)==null||G.forEach(CxG);kdo=void 0};
QN=function(m){return fPG(m)?Number(m):String(m)};
ZLd=function(m){this.action=m;this.wfv=!1};
dK9=function(){};
Pxv=function(m,G){ZLd.call(this,"set-drive-options");this.appId=m;this.appOrigin=G};
yHd=function(m){ZLd.call(this,"visibility");this.visible=m};
RvJ=function(m,G){var K=evs++,W={measureTask:{id:K,fn:m.measure,context:G},mutateTask:{id:K,fn:m.mutate,context:G},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(W.args||(W.args=[]),W.args.length=0,W.args.push.apply(W.args,arguments),W.args.push(W.state)):W.args&&W.args.length!=0?(W.args[0]=W.state,W.args.length=1):W.args=[W.state];W.isScheduled||(W.isScheduled=!0,f_6[xKF].push(W));Xwo||(Xwo=!0,window.requestAnimationFrame(SVF))}};
SVF=function(){Xwo=!1;var m=f_6[xKF],G=m.length;xKF=(xKF+1)%2;for(var K,W=0;W<G;++W){K=m[W];var L=K.measureTask;K.isScheduled=!1;L.fn&&L.fn.apply(L.context,K.args)}for(W=0;W<G;++W)K=m[W],L=K.mutateTask,K.isScheduled=!1,L.fn&&L.fn.apply(L.context,K.args),K.state={};m.length=0};
nt=function(m){_.ai.call(this);this.JSC$10467_element_=m;this.listenKeyIn_=_.oi(this.JSC$10467_element_,"focus",this,!0);this.listenKeyOut_=_.oi(this.JSC$10467_element_,"blur",this,!0)};
UK6=function(m,G){this.JSC$10470_element_=m;this.JSC$10470_dom_=G};
vg=function(m,G){bE.call(this,G);this.useIframeMask_=!!m;this.lastFocus_=null;this.resizeBackgroundTask_=RvJ({mutate:this.resizeBackground_},this);RvJ({mutate:this.updateModalAndBackground_},this)};
zvG=function(m,G,K){$l.call(this,m,G,K)};
l_J=function(m){sJ.call(this,m)};
B8d=function(m){m=m&&m.getWindow()||window;return m.gadgets&&m.gadgets.rpc};
T8P=function(m,G){var K=G&&G.getWindow()||window;if(B8d(G))m();else if(MnP)MnP.push(m);else var W=MnP=[m],L=K.setInterval(function(){if(B8d(G)){K.clearInterval(L);for(var A=0;A<W.length;A++)W[A]();MnP=null}},100)};
iSV=function(m,G){var K=new qT(m);_.UR(G,K);var W={passive:!1};G.listen(K,"mousewheel",function(L){return void mqG(m,L)},W).listen(m,"scroll",function(L){return void mqG(m,L)},W)};
mqG=function(m,G){var K;a:{for(K=G.target;K;){if(K.nodeType==1){var W=_.EJ(K,"overflowY");if(W=="auto"||W=="scroll")break a}K=K.parentNode}K=null}if(!K||!_.Hg(m,K)||K.scrollHeight==K.clientHeight||G.deltaY>0&&Math.abs(K.scrollTop-(K.scrollHeight-K.clientHeight))<=1||G.deltaY<0&&K.scrollTop==0)G.preventDefault(),G.stopPropagation()};
G6G=function(){var m;if(m=m===void 0?window:m)return m!==m.parent&&m.hasOwnProperty("pangolinIframeGlobals");var G=Error("gb");setTimeout(function(){throw G;},1);
return!1};
Z4=function(m,G,K,W,L,A,O,c,u,h){c=c===void 0?!1:c;u=u===void 0?!1:u;h=h===void 0?!1:h;$l.call(this,void 0,void 0,void 0);$l.call(this,A?A+" picker modal-dialog":"picker modal-dialog",!0,K);_.TF(m,"protocol");this.iframeManager_=new KfG;this.targetId_=Ii();this.rpcToken_=Ii();m=_.jU(m);_.kl(m,"hostId");this.useGapi_=!u&&!G6G();c&&_.Ct(m,"fv2","true");this.setUrl(m.toString());this.preferredDialogWidth_=W;this.preferredDialogHeight_=L;W!==void 0||L!==void 0?W=!0:(W=_.kl(_.jU(m.toString()),"hostId"),
Wfv||(Wfv=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),W=!Wfv.has(W));this.autoSizeDialog_=W;this.JSC$10498_gadgetsDomHelper_=O||this.JSC$10449_dom_;this.JSC$10498_enablePopover_=h;G&&(O=this.JSC$10498_gadgetsDomHelper_,G=_.kl(_.jU(this.JSC$10500_url_),"grugl")=="true"?Lf6:AgM,B8d(O)||(O=O||Wt(document),h=O.createElement("SCRIPT"),_.Jt(h,G),h.type="text/javascript",O.JSC$9633_document_.body.appendChild(h)));
m=m.toString();G=null;O=m.indexOf("/picker?");O>-1?G=m.substring(0,O+8-1):wd(m,"/picker")&&(G=m);G&&this.setRelayUrl(G+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(m=this.buttons_,m.JSC$10483_element_=this.buttonEl_,m.render()):_.Np(this.buttonEl_,wGF),_.VN(this.buttonEl_,!!this.buttons_))};
g3o=function(m,G){_.dM.call(this,m.type,G);this.event_=m};
_.rgo=function(m){var G=G===void 0?OSd:G;var K=_.z9(m),W=function(A){A=_.g(A);A.next();A=Pg(A);return G(K,A)},L=function(A){var O=_.g(A);
A=O.next().value;O=Pg(O);return m.apply(A,O)};
return function(){var A=_.mb.apply(0,arguments),O=this||_.Ks,c=cgP.get(O);c||(c={},cgP.set(O,c));return Ygf(c,[this].concat(_.Bz(A)),L,W)}};
yN=function(m){var G={};m=m.replace(/\r/g,"").split("\n");for(var K=0;K<m.length;K++){var W=m[K],L=W.indexOf(":");L<0||(G[W.substring(0,L)]=W.substring(L+2,W.length))}return G};
Jgd=function(m,G){G.id||(G.id="ow"+_.z9(G));m.setAttribute("jsowner",G.id);m.__owner=G;var K=_.N7(G,uu9);K&&(hdF.has(K)||hdF.set(K,[]),hdF.get(K).push(m));(K=pGF.get(G))||pGF.set(G,K=[]);K.includes(m)||K.push(m);G.setAttribute("__IS_OWNER",!0)};
uu9=function(m){return _.eU(m)?m.getAttribute("jsname")==="coFSxe":!1};
NWP=function(m,G,K){K=K===void 0?function(){}:K;
return m?G():K()};
_.trM=function(m){var G;return((G=DqM.documentOverride)!=null?G:m).__wizdispatcher};
SU=function(m){var G=ft;ft=m;return G};
QRG=function(m){return m===FfM||(m==null?void 0:m.name)==="\u0275NotFound"};
Ri=function(m,G){var K;if((K=m)==null?0:K.isDisposed)throw Error("lb`"+String(m.debugName));for(;m!==void 0;){K=m;if(K.retrieve)return K.retrieve(G,{optional:!0});m=m.parent}return FfM};
zH=function(m){return{"\u0275prov":{providedIn:"root",token:Symbol(m),factory:void 0,value:void 0}}};
aDo=function(m){var G=ft;if(!G){switch(m===void 0?3:m){case 0:m=Error("kb");break;case 1:m=Error("mb");break;case 2:m=Error("nb");break;default:m=Error("ob")}throw m;}return G};
o39=function(m){var G=SU(m);m={};return m[Symbol.dispose]=function(){SU(G)},m};
v3V=function(){var m=aDo(1);m=Ri(m,n3G);if(!(QRG(m)||m[bSv]&&!m.__hasBeenSet))return m.value};
$qo=function(m,G){m.disposables||(m.disposables=[]);m.disposables.push(G)};
lE=function(m){var G=ft;G&&!G.isDisposed&&($qo(G,m),m.parent=G)};
qgd=function(m){if(m.disposables){for(var G=_.g(m.disposables),K=G.next();!K.done;K=G.next())K=K.value,typeof K==="function"?K():sRo(K);m.disposables.length=0}};
sRo=function(m){if(!m.isDisposed){m.isDisposed=!0;var G;(G=m[Symbol.dispose])==null||G.call(m);delete m.parent;qgd(m)}};
ZS9=function(m){var G={retrieve:function(K){switch(K.\u0275prov.token){case E3s.\u0275prov.token:var W=m.asyncDeps;break;case n3G.\u0275prov.token:W=m.rootElement;break;case HSM.\u0275prov.token:W=m.modelRootElement;break;case IDP.\u0275prov.token:W=m.appContext;break;case jRJ.\u0275prov.token:W=m.rendererData;break;case k6d.\u0275prov.token:W=m.injectingConstructor;break;case CsM.\u0275prov.token:W=m.dispatcher}if(W)K=W;else a:{for(W=G.parent;W;){var L=W;if(L.retrieve){K=L.retrieve(K);break a}W=
W.parent}W=K.\u0275prov.token;L=Vrv[W];L!==void 0?K=L:(L=K.\u0275prov.providedIn,K.\u0275prov.factory?(K=K.\u0275prov.factory(),W&&L==="root"&&(Vrv[W]=K)):K=FfM)}return K}};
lE(G);return G};
dqs=function(){var m=aDo(1),G=Ri(m,IDP);if(!QRG(G))return G;m=Ri(m,CsM);if(!QRG(m))return m.getOptionalAppContext()};
PsG=function(m){if(typeof document!=="undefined"&&document&&document.getElementById&&(m=document.getElementById(m))){var G=m.tagName.toUpperCase();if(G=="SCRIPT"||G=="LINK")return m}return null};
edv=function(m,G){if((m=m===void 0?"":m)&&G)throw Error("ub");var K="";var W=_.Ks._F_jsUrl;(m=G||PsG(m))&&(K=m.src?m.src:m.getAttribute("href"));if(W&&K){if(W!=K)throw Error("vb`"+W+"`"+K);K=W}else K=W||K;if(!ygd(K))throw Error("wb");return K};
SgG=function(){if(!fDd){fDd=!0;try{var m=edv(_.Ks._F_jsUrl?"":"base-js")}catch(W){return}var G=xqV(XGo(m)),K=Object.keys(G);K.length!==0&&CxG(function(W){for(var L=_.g(K),A=L.next();!A.done;A=L.next()){A=A.value;for(var O=_.g(Object.keys(G[A])),c=O.next();!c.done;c=O.next())W.addExtraEdge(A,c.value)}})}};
UqV=function(){var m=Object.assign({},Rd9);Object.getOwnPropertyNames(Rd9).forEach(function(G){Bg[G]!==void 0&&(m[G]=Bg[G])});
return m};
zdo=function(m,G){if(Bg.enablePerformanceTiming){var K,W;(W=(K=performance).mark)==null||W.call(K,m+"Start__"+G)}};
lD6=function(m,G){if(Bg.enablePerformanceTiming){var K,W;(W=(K=performance).measure)==null||W.call(K,m+"__"+G,m+"Start__"+G)}};
BWf=function(m,G,K){var W;return m&&G?m+"__"+G:(W=m!=null?m:G)!=null?W:K};
TWG=function(m){var G=Object.create(Mrd);G.debugName=m;!ft||lE(G);return G};
mFd=function(m,G){var K=TWG(G);G=SU(K);try{m(K)}finally{SU(G)}return function(){return void sRo(K)}};
GiG=function(m){return MT(m)&&icd in m};
KmF=function(m){for(m=m===void 0?ft:m;m;){if(GiG(m))return m;var G=void 0;m=(G=m.parent)!=null?G:null}return null};
Wmv=function(m,G){return Object.is(m,G)};
mE=function(m){var G=TH;TH=m;return G};
Auv=function(m){if(iM)throw Error("$");if(TH!==null){var G=TH.producersTail;if(G===void 0||G.producer!==m){var K=void 0,W=TH.recomputing;if(W&&(K=G!==void 0?G.nextProducer:TH.producers,K!==void 0&&K.producer===m)){TH.producersTail=K;K.lastReadVersion=m.version;return}var L=m.consumersTail,A;if(!(A=L===void 0||L.consumer!==TH)){if(W){a:{A=TH;W=A.producersTail;if(W!==void 0){A=A.producers;do{if(A===L){W=!0;break a}if(A===W)break;A=A.nextProducer}while(A!==void 0)}W=!1}W=!W}A=W}A&&(W=GL(TH),K={producer:m,
consumer:TH,nextProducer:K,prevConsumer:L,lastReadVersion:m.version,nextConsumer:void 0},TH.producersTail=K,G!==void 0?G.nextProducer=K:TH.producers=K,W&&LmG(m,K))}}};
W4=function(m){if(!GL(m)||m.dirty)if(m.dirty||m.lastCleanEpoch!==KT)(m.producerMustRecompute(m)||w$9(m))&&m.producerRecomputeValue(m),m.dirty=!1,m.lastCleanEpoch=KT};
gzG=function(m){if(m.consumers!==void 0){var G=iM;iM=!0;try{for(var K=m.consumers;K!==void 0;K=K.nextConsumer){var W=K.consumer;W.dirty||(m=void 0,W.dirty=!0,gzG(W),(m=W.consumerMarkedDirty)==null||m.call(W,W))}}finally{iM=G}}};
Oc9=function(){var m;return((m=TH)==null?void 0:m.consumerAllowSignalWrites)!==!1};
cu6=function(m){m&&(m.producersTail=void 0,m.recomputing=!0);return mE(m)};
rud=function(m){m.recomputing=!1;var G=m.producersTail,K=G!==void 0?G.nextProducer:m.producers;if(K!==void 0){if(GL(m)){do K=Yrd(K);while(K!==void 0)}G!==void 0?G.nextProducer=void 0:m.producers=void 0}};
w$9=function(m){for(m=m.producers;m!==void 0;m=m.nextProducer){var G=m.producer,K=m.lastReadVersion;if(K!==G.version)return!0;W4(G);if(K!==G.version)return!0}return!1};
LmG=function(m,G){var K=m.consumersTail,W=GL(m);K!==void 0?(G.nextConsumer=K.nextConsumer,K.nextConsumer=G):(G.nextConsumer=void 0,m.consumers=G);G.prevConsumer=K;m.consumersTail=G;if(!W)for(m=m.producers;m!==void 0;m=m.nextProducer)LmG(m.producer,m)};
Yrd=function(m){var G=m.producer,K=m.nextProducer,W=m.nextConsumer,L=m.prevConsumer;m.nextConsumer=void 0;m.prevConsumer=void 0;W!==void 0?W.prevConsumer=L:G.consumersTail=L;if(L!==void 0)L.nextConsumer=W;else if(G.consumers=W,!GL(G))for(m=G.producers;m!==void 0;)m=Yrd(m);return K};
GL=function(m){return m.consumerIsAlwaysLive||m.consumers!==void 0};
hDF=function(m){var G=Object.create(uxM);G.computation=m;m=function(){W4(G);Auv(G);if(G.value===LT)throw G.error;return G.value};
m[A_]=G;return m};
POs=function(m,G){var K=Object.create(p$o);K.value=m;G!==void 0&&(K.equal=G);m=function(){Auv(K);return K.value};
m[A_]=K;return[m,function(W){return Ju6(K,W)},
function(W){Oc9()||dFf(K);Ju6(K,W(K.value))}]};
Ju6=function(m,G){Oc9()||dFf(m);if(!m.equal(m.value,G)){m.value=G;m.version++;KT++;gzG(m);var K;(K=yuV)==null||K(m)}};
fCd=function(m,G,K){var W=Object.create(eD9);W.source=m;W.computation=G;K!=void 0&&(W.equal=K);m=function(){W4(W);Auv(W);if(W.value===LT)throw W.error;return W.value};
m[A_]=W;return m};
_.w_=function(m){var G=mE(null);try{return m()}finally{mE(G)}};
xF6=function(m,G){zdo("signalSet",G.debugName);try{m()}finally{lD6("signalSet",G.debugName)}};
X$G=function(m,G,K){m=POs(m,G.equals);var W=m[0],L=W[A_];L.debugName=BWf(G.debugName,K,"[signal]");if(!Bg.enablePerformanceTiming)return m;var A=m[1],O=m[2];return[W,function(c){xF6(function(){return void A(c)},L)},
function(c){xF6(function(){return void O(c)},L)}]};
_.g_=function(m,G,K){return X$G(m,G!=null?G:{},K===void 0?"":K)};
RDf=function(m,G){var K=_.g(_.g_(m,void 0,"cPpJzc"));m=K.next().value;K=K.next().value;m[Srv]=K;m[YO]=G;return m};
UFP=function(m){return!!m&&typeof m==="object"&&Object.getPrototypeOf(m)===Object.prototype};
zDJ=function(m){return typeof m==="function"&&Srv in m&&typeof m[Srv]==="function"};
lCo=function(m,G){Object.defineProperty(m,YO,{get:function(){return G}})};
uM=function(m,G){if(r_(m)){var K=m.map(function(A){return uM(A,G)});
lCo(K,G);return K}if(UFP(m)){K={};m=_.g(Object.entries(m));for(var W=m.next();!W.done;W=m.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;K[W]=uM(L,G)}lCo(K,G);return K}return RDf(m,G)};
BCF=function(m){if(r_(m))return m.map(function(L){return BCF(L)});
if(UFP(m)){var G={};m=_.g(Object.entries(m));for(var K=m.next();!K.done;K=m.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;G[K]=BCF(W)}return G}return zDJ(m)?m():m};
TCd=function(){var m={height:0,width:0};if(!UFP(m))throw Error("Lb");var G=Symbol("Mb");return[uM(m,G),function(K,W){if(K[YO]===G)if(typeof W==="function"){var L=[].concat(_.Bz(BCF(K)));W=W(L)||L;MNd(K,[].concat(_.Bz(W)))}else MNd(K,W);else throw Error("Nb");}]};
MNd=function(m,G){if(zDJ(m))m[Srv](G);else if(r_(m)&&r_(G))G=uM(G,m[YO]),m.length=0,m.push.apply(m,_.Bz(G));else if((UFP(m)||r_(m))&&(r_(G)||typeof G==="object"&&G!==null)){G=_.g(Object.entries(G));for(var K=G.next();!K.done;K=G.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;var L=m,A=L[K];Object.hasOwn(m,K)?MNd(A,W):L[K]=uM(W,m[YO])}}else throw Error("Ob");};
mkP=function(m){return Object.create(Object.assign({},h_,m))};
GbV=function(){var m;return(m=iCd)!=null?m:iCd=mkP({consumerAllowSignalWrites:!0})};
_.pT=function(m,G,K){K=K===void 0?"":K;m=hDF(m);var W=m[A_];W.debugName=BWf(G==null?void 0:G.debugName,K,"[computed]");(G==null?void 0:G.equals)!=null&&(W.equal=G.equals);return m};
J_=function(m){var G=mE(Kyd);try{m()}finally{mE(G)}};
Wyf=function(m){return MT(m)&&m.name!==void 0&&m.isReactive!==void 0&&m.parent!==void 0};
AaG=function(m,G,K){var W=LyV(m);N2={name:K?W+" ("+K+")":W,isReactive:m.componentType!==DM,parent:N2};m=G();N2=N2.parent;return m};
t_=function(){var m=N2;return m?m.isReactive:!1};
QW=function(m,G,K){var W=N2;G&&(N2=G);try{return K==null?m():m.call(K)}catch(A){m=A;Ff(m,N2);if(m!==wvP){gNd=N2;G=[];for(K=ft;K;){var L=void 0;G.push((L=K.debugName)!=null?L:"[context]");L=void 0;K=(L=K.parent)!=null?L:null}OCG=G.reverse()}wvP=m;throw m;}finally{N2=W}};
Ff=function(m,G){try{var K=cas(G);if(K&&!m.componentStack&&(m.componentStack=K,Bg.enableComponentStacksInErrorMessages)){var W=m.message+"\n\nComponent stack: "+K;m.stack&&(m.stack=m.stack.replace(m.message,W));m.message=W}}catch(L){}};
Ypd=function(m){for(var G=0,K="";G<20&&m;)K+="$$XID:"+m.name+"$$ > ",m=m.parent,G++;return K.slice(0,-3)};
cas=function(m){return Wyf(m)||m===null?Ypd(m):Bg.enableContextBasedComponentStacks?KmF(m).getComponentStack().slice(0,20).map(function(G){return"$$XID:"+G+"$$"}).join(" > "):""};
LyV=function(m){return m.debugName||m.name||"[component]"};
JaV=function(m){switch(m.onInitType){case rao:ugG.schedule(m);break;case hmv:Bg.enableQueueEffectAndOnInitInitialRuns?pvd.enqueue(m):pvd.schedule(m);break;default:_.GG(m.onInitType)}};
aGF=function(m){if(!m.isDisposed)switch(m.effectType){case a2:NlP.schedule(m);break;case DkJ:t_P.schedule(m);break;case FyP:Bg.enableQueueEffectAndOnInitInitialRuns||m.version!==0?QvV.enqueue(m):QvV.schedule(m);break;default:_.GG(m.effectType)}};
bCd=function(){if(o2>0)Bg.flushRenderEffectsDuringRender&&NlP.flush();else{for(var m=_.g(oNd),G=m.next();!G.done;G=m.next())G.value.flush();nNG()}};
nNG=function(){_.Y(function(m){if(m.nextAddress==1)return m.yield(Promise.resolve(),2);for(var G=_.g(vNs),K=G.next();!K.done;K=G.next())K.value.flush();_.ey(m)})};
svG=function(m){nT=!0;try{for(var G=_.g(m),K=G.next();!K.done;K=G.next()){for(var W=K.value,L=[W],A=W;A.parent!==void 0;)A=A.parent,$k9(A)&&m.has(A)&&L.push(A);for(;L.length>0;){var O=L.pop();m.delete(O);O.run()}}}finally{nT=!1}};
bM=function(m){o2--;if(m){m=_.g(qpM);for(var G=m.next();!G.done;G=m.next())G.value.clear()}else o2>0||nT&&!Bg.flushRenderEffectsDuringRender||bCd()};
EN6=function(m,G,K){m=Object.create(m);G&&(m.fn=G);K&&(m.debugName=K);lE(m);m.componentStack=N2;return m};
HCG=function(m){if(!m.isDisposed){if(iM)throw Error("Sb");var G=SU(m);zdo("effectRun",m.debugName);try{QW(function(){m.dirty=!1;if(!(m.version>0)||w$9(m)){m.version++;var K=cu6(m);try{m.cleanup(),m.fn()}finally{mE(K),m&&rud(m)}}},m.componentStack,m)}catch(K){throw Bg.enableContextBasedComponentStacks&&Ff(K),K;
}finally{lD6("effectRun",m.debugName),SU(G)}}};
_.v4=function(m,G){m=EN6(IGd,m,G);aGF(m)};
_.$O=function(m,G){m=EN6(jvG,m,G);aGF(m)};
kbs=function(m){return m};
CYV=function(m,G,K){function W(){return L()}
K=K===void 0?"":K;var L=typeof m==="function"?fCd(m,kbs,G==null?void 0:G.equals):fCd(m.source,m.computation,G==null?void 0:G.equals);var A=L[A_];A.debugName=BWf(G==null?void 0:G.debugName,K,"[linkedSignal]");W[A_]=A;return[W,function(O){xF6(function(){W4(A);Ju6(A,O);A.dirty=!1;A.lastCleanEpoch=KT},A)},
function(O){xF6(function(){W4(A);Oc9()||dFf(A);Ju6(A,O(A.value));A.dirty=!1;A.lastCleanEpoch=KT},A)}]};
_.sZ=function(m){var G=ft;if(G){var K=N2;$qo(G,function(){var W=mE(GbV());try{QW(function(){return void m()},K)}catch(L){throw Bg.enableContextBasedComponentStacks&&Ff(L),L;
}finally{mE(W)}})}};
q2=function(m,G){var K={};(G===void 0||G)&&lE(K);G=SU(K);try{m(K)}finally{SU(G)}return function(){return void sRo(K)}};
_.EZ=function(m){return typeof m==="function"?m():(m==null?0:m[V_G])?m.get():m};
ZCd=function(m){if(ft)throw Error("pb");q2(m,!1)};
H4=function(m,G){m=SU(m);try{return _.w_(G)}finally{SU(m)}};
I2=function(m,G){var K=cas(gNd),W,L;var A=(L=(W=OCG)==null?void 0:W.slice())!=null?L:[];G={componentStack:K,contextTrace:A,errorSeverity:3,featureFlags:UqV(),tagName:G};return[m,G]};
yaf=function(m,G,K){if(Object.hasOwnProperty.call(dks,m)&&(m=dks[m],Object.hasOwnProperty.call(m,G)&&(m=m[G],m instanceof Array))){for(var W=null,L=!1,A=0,O=m.length;A<O;++A){var c=m[A],u=c.contingentAttribute;if(!u)return c.contract;W===null&&(W={});u=Object.hasOwnProperty.call(W,u)?W[u]:W[u]=K(u);if(u===c.requiredValue)return c.contract;u==null&&(L=!0)}if(L)return null}G=PYo[G];return typeof G==="number"?G:null};
xks=function(m,G,K){var W=null;(m=emv[m])&&(W=m[G]);return typeof W!=="number"&&((m=emv["*"])&&(W=m[G]),typeof W!=="number")?!1:!0===fGv[W][String(K).toLowerCase()]};
Spf=function(m,G){G=yaf(m.toLowerCase(),G,function(){var W;(W=Bg.handleError)==null||W.call.apply(W,[Bg].concat(_.Bz(I2(Error("Vb"),m.toLowerCase()))))});
if(G===null)return null;var K;return(K=XvG[G])!=null?K:null};
Rmf=function(m,G,K){if(K===null||K===void 0)return K;G=G.toLowerCase();m=Spf(m,G);return m===null?K:m(G,K)};
lGd=function(m){var G=Ukd,K=m,W="",L="",A=1;m<0&&(m=-m);if(m===Infinity)m=(Infinity*Math.sign(K)).toString();else{for(var O=0;O<zmd.length;O++){var c=zmd[O];A=G[c];if(m>=A||A<=1&&m>.1*A){W=c;break}}W?(W+="B",L=" "):A=1;m=Math.round(K/A*10)/10+L+W}return m};
BlF=function(){};
M_d=function(m,G){for(;m.length>G;)m.pop()};
TlV=function(m){m=Array(m);M_d(m,0);return m};
jJ=function(m,G,K){if(K==null)m.removeAttribute(G);else{var W;(W=G.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":G.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?m.setAttributeNS(W,G,K):m.setAttribute(G,K)}};
iAd=function(m,G,K){m=m.style;if(typeof K==="string")m.cssText=K;else{m.cssText="";for(var W in K)if(m8s.call(K,W)){G=m;var L=W,A=K[W];L.indexOf("-")>=0?G.setProperty(L,A):G[L]=A}}};
GPG=function(m,G,K){var W=typeof K;W==="object"||W==="function"?m[G]=K:jJ(m,G,K)};
KUM=function(){var m=new BlF;m[kO.default]=GPG;m.style=iAd;return m};
WUJ=function(m,G,K,W){(W[G]||W[kO.default])(m,G,K)};
Abv=function(m,G,K){G=new LUd(G,K);return m.__incrementalDOMData=G};
wlG=function(m,G){if(m.__incrementalDOMData)return m.__incrementalDOMData;var K=m.nodeType===1?m.localName:m.nodeName,W=m.nodeType===1?m.getAttribute("key"):null;G=Abv(m,K,m.nodeType===1?W||G:null);if(m.nodeType===1&&(m=m.attributes,K=m.length)){W=G._attrsArr||(G._attrsArr=TlV(K*2));for(var L=0,A=0;L<K;L+=1,A+=2){var O=m[L],c=O.value;W[A]=O.name;W[A+1]=c}}return G};
gTM=function(m,G,K,W,L){return G==K&&W==L};
OAf=function(m){for(var G=CT,K=ZM();K!==m;){var W=K.nextSibling;G.removeChild(K);d_.deleted.push(K);K=W}};
ZM=function(){return P4?P4.nextSibling:CT.firstChild};
yW=function(){P4=ZM()};
rbd=function(m,G){yW();var K;a:{if(K=P4){do{var W=K,L=m,A=G,O=wlG(W,A);if(cbJ(W,L,O.nameOrCtor,A,O.key))break a}while(G&&(K=K.nextSibling))}K=null}K||(m==="#text"?(m=eJ.createTextNode(""),Abv(m,"#text",null)):(K=eJ,W=CT,typeof m==="function"?K=new m:K=(W=m==="svg"?"http://www.w3.org/2000/svg":m==="math"?"http://www.w3.org/1998/Math/MathML":W==null||wlG(W).nameOrCtor==="foreignObject"?null:W.namespaceURI)?K.createElementNS(W,m):K.createElement(m),Abv(K,m,G),m=K),d_.created.push(m),K=m);m=K;if(m!==
P4){if(YKf.indexOf(m)>=0)for(G=CT,K=m.nextSibling,W=P4;W!==null&&W!==m;)L=W.nextSibling,G.insertBefore(W,K),W=L;else CT.insertBefore(m,P4);P4=m}};
uSs=function(m,G){rbd(m,G);CT=P4;P4=null;return CT};
hMd=function(){OAf(null);P4=CT;CT=CT.parentNode};
NBP=function(m,G){G=G===void 0?{}:G;var K=G.matches===void 0?gTM:G.matches;return function(W,L,A){var O=d_,c=eJ,u=YKf,h=fT,J=P4,N=CT,D=cbJ;eJ=W.ownerDocument;d_=new pld(W);cbJ=K;fT=[];P4=null;var t=CT=W.parentNode,a,v=Jb6.call(W);if((a=v.nodeType===11||v.nodeType===9?v.activeElement:null)&&W.contains(a)){for(v=[];a!==t;)v.push(a),a=a.parentNode||(t?a.host:null);t=v}else t=[];YKf=t;try{return m(W,L,A)}finally{W=d_,xO&&W.deleted.length>0&&xO(W.deleted),eJ=c,d_=O,cbJ=D,fT=h,P4=J,CT=N,YKf=u}}};
D8G=function(m,G,K,W){Xf.push(WUJ);Xf.push(m);Xf.push(G);Xf.push(K);Xf.push(W)};
tlF=function(m){rbd("#text",null);var G=P4;var K=wlG(G);if(K.text!==m){K=K.text=m;for(var W=1;W<arguments.length;W+=1)K=(0,arguments[W])(K);G.data!==K&&(G.data=K)}};
vTJ=function(m,G,K){if(K===!1&&FUf.has(G))jJ(m,G,null);else if(G!=="idomKey"&&G!=="skip"&&G!=="skipchildren"&&G!=="children"&&G!=="el")if(G.startsWith("on")){if(G[2]!==":")throw Error("Ub`"+G);if(K===void 0||K===null){var W;(W=Bg.handleError)==null||W.call.apply(W,[Bg].concat(_.Bz(I2(Error("Zb`"+G),m.tagName))));m[G]=void 0}else{var L=G.slice(3);W=t_();if(L==="jsaction"){K=Array.isArray(K)?K:[K];K=_.g(K);for(var A=K.next();!A.done;A=K.next()){A=A.value;if(typeof A!=="object"||A===null||typeof A.selfReg!==
"function")throw Error("bc`"+G);A.selfReg(0,m,W?_.sZ:function(){})}}else{if(typeof K!=="object"||K===null)throw Error("$b`"+G+"`"+typeof K);
if(typeof K.getFn!=="function")throw Error("ac`"+G+"`"+Object.keys(K));if(K.selfReg)K.selfReg(0,m,L,W?_.sZ:function(){});
else if(W&&m["on"+L]===void 0){var O=K.getFn(0);m.addEventListener(L,O);_.sZ(function(){return void m.removeEventListener(L,O)})}else if(W||!Qld.includes(L))m["on"+L]=K.getFn(0)}}}else{if(G.startsWith("data-")&&typeof K==="string")try{K=aeP(K)}catch(c){K="zSoyz"}typeof K!=="function"||m._disposeEffects!=null?((W=G.startsWith("prop:"))&&(G=G.slice(5)),Bg.enableAttributeSanitization&&(W&&oTf(m.tagName)||(K=Rmf(m.tagName,G,K))),G==="style"?("function"==typeof _.SJ&&K instanceof _.SJ&&(K=K.toString()),
nTd(m,G,K)):W?m[G]=K:bAM(m,G,K)):(m._signalProps||(m._signalProps=[]),m._signalValues||(m._signalValues=[]),m._signalProps.push(G))}};
$86=function(m,G,K){K=(K===void 0?{}:K).isReactive;if(G==null?0:G.el){var W=G.el,L;(L=W.onRender)==null||L.call(W,m);m._disposeRef||(m._disposeRef=function(){var A;(A=W.onUnmount)==null||A.call(W);delete m._disposeRef},K&&_.sZ(function(){var A;
(A=m._disposeRef)==null||A.call(m)}))}};
oTf=function(m){return m.length>0&&m.includes("-")&&!slG.includes(m.toLowerCase())};
qKd=function(m){return MT(m)&&R2 in m};
ETf=function(m){return qKd(m)?m[R2].flattened:m};
HAs=function(m,G){var K=_.mb.apply(2,arguments),W;G=(W=G)!=null?W:{};W={};return W.type=m,W.props=G,W.children=K,W[UZ]=!0,W};
_.zL=function(m){return m.children};
lM=function(m){var G=Ied!==HAs;Ied=m?jls:HAs;return G};
B4=function(m){return _.Ud(m)?"nodeType"in m:!1};
M2=function(){return document.createTextNode("")};
TL=function(m){m=document.createTextNode(String(m));m._isSignalTextNode=!0;return m};
CLd=function(m){return m!=null&&m.contentKind===m3||m instanceof KZ||kPd(m)};
Vlo=function(m){var G=document.createElement("div");if(kPd(m)&&AHv(m))_.Np(G,AHv(m));else if(m instanceof KZ)_.Np(G,m);else if(m!=null&&m.contentKind===m3){if(m.contentKind!==m3)throw Error("Yb");m=Wz(m.toString());_.Np(G,m)}m=_.g(G.childNodes);for(var K=m.next();!K.done;K=m.next())K.value._isSafeOrSanitizedHtmlNode=!0;return G};
iX=function(m){m=typeof m;return m==="string"||m==="number"||m==="boolean"};
ZAP=function(m){return m instanceof dx||Re(m)||m instanceof Fs||"function"==typeof _.SJ&&m instanceof _.SJ};
d8V=function(m,G){var K=m.parentElement;if(!K)return G;K.replaceChild(G,m);return G};
PLd=function(m,G){var K=m[0].parentElement;if(K)if(m[0].previousSibling||m[m.length-1].nextSibling){K.insertBefore(G,m[0]);for(var W=m.length-1;W>=0;W--)K.removeChild(m[W])}else K.textContent="",K.appendChild(G);return G};
ybd=function(m,G){if(m[0].parentElement)for(var K=m[0].parentElement,W=G.length,L=m.length,A=W,O=0,c=0,u=m[L-1].nextSibling,h=null;O<L||c<A;)if(m[O]===G[c])O++,c++;else{for(;m[L-1]===G[A-1];)L--,A--;if(L===O)for(var J=A<W?c?G[c-1].nextSibling:G[A-c]:u;c<A;){var N=G[c++];K.insertBefore(N,J)}else if(A===c)for(;O<L;)J=m[O],h&&h.has(J)||K.removeChild(J),O++;else if(m[O]===G[A-1]&&G[c]===m[L-1])J=m[--L].nextSibling,K.insertBefore(G[c++],m[O++].nextSibling),K.insertBefore(G[--A],J),m[L]=G[A];else{if(!h)for(h=
new Map,J=c;J<A;)h.set(G[J],J++);J=h.get(m[O]);if(J==null)K.removeChild(m[O]),O++;else if(c<J&&J<A){N=O;for(var D=1,t=void 0;++N<L&&N<A&&(t=h.get(m[N]))!=null&&t===J+D;)D++;if(D>J-c)for(N=m[O];c<J;)K.insertBefore(G[c++],N);else K.replaceChild(G[c++],m[O++])}else O++}}return G};
fe9=function(m){if(Array.isArray(m)){if(m.length>1)throw Error("lc`"+m.length+"`"+m.map(eMd).join(", "));m=m[0]}if(m==null)return null;if(!(m instanceof _.Yr)){var G,K;if((G=window)==null?0:(K=G.trustedTypes)==null?0:K.isScript(m))throw Error("kc");if(String(m).trim().length===0)return null;throw Error("mc`"+eMd(m));}return m};
x8f=function(m,G){G=fe9(G);G!==null&&_.pZ(m,G)};
Xld=function(m){if(Array.isArray(m)){if(m.length>1)throw Error("nc`"+m.length+"`"+m.map(eMd).join(", "));m=m[0]}if(m==null)return null;if(!(m instanceof Fs)){if(String(m).trim().length===0)return null;throw Error("oc`"+eMd(m));}return m};
SKM=function(m,G){G=Xld(G);G!==null&&(m.textContent=IOd(G))};
eMd=function(m){return"("+typeof m+") "+(m!=null&&typeof m==="object"?m.constructor.name:typeof m)+" "+m};
RM9=function(){};
Ln=function(m,G){G=G===void 0?{}:G;var K=U8J(),W=!0,L,A=!!Bg.legacyTriggerSoyRendererEvents;A&&(L=dqs());_.v4(function(){var O=!W&&G.isControlFlowComponent&&A,c=O?K[R2].flattened[0].parentElement:void 0;W=!1;Kn.setUp();G.isControlFlowComponent&&o2++;var u=K[0],h=K[R2].flattened,J=lM(!0);try{var N=m(),D=zMG(u,N,K);Array.isArray(D)||(K[R2].flattened=[D]);var t=K[R2].flattened;if(h&&(!Array.isArray(h)||h.length!==0)){var a=Array.isArray(h)?h[0]:h,v=a[WO],I=a._disposeEffects;a._disposeEffects=void 0;
a=Array.isArray(t)?t[0]:t;a[WO]=v;a[WO]&&(a[WO].numNodes=a===t?1:t.length);a._disposeEffects=I}K[0]=D;G.isControlFlowComponent&&bM(!1)}catch(Z){throw G.isControlFlowComponent&&bM(!0),Z;}finally{lM(J),Kn.tearDown()}O&&(O=L,O!=null||(O=_.trM(document).getAppContext()),O.get(lev).JSC$30102_getEventTarget().dispatchEvent(new BBs(MlP,c,m3)))},G.debugName);
return K};
zMG=function(m,G,K){for(;typeof G==="function";)G=G();if(G!=null&&G[UZ]){var W,L,A;(A=Bg.handleError)==null||A.call.apply(A,[Bg].concat(_.Bz(I2(Error("pc`"+((W=G.type)==null?void 0:W.TAG_NAME)),(L=G.type)==null?void 0:L.TAG_NAME))))}if(m==null)return G==null?M2():iX(G)?TL(G):ZAP(G)?TL(G.toString()):B4(G)?G:G.length===0?M2():TB6(G,K);if(B4(m)){if(G==null)return d8V(m,M2());if(iX(G))return m$v(m,G);if(ZAP(G))return m$v(m,G.toString());if(B4(G))return d8V(m,G);if(G.length===0)return d8V(m,M2());G=TB6(G,
K);ybd([m],K[R2].flattened);return G}m=Aw(m);if(G==null)return PLd(m,M2());if(iX(G))return PLd(m,TL(G));if(ZAP(G))return PLd(m,TL(G.toString()));if(B4(G))return ybd(m,[G])[0];if(G.length===0)return PLd(m,M2());G=TB6(G,K);ybd(m,K[R2].flattened);return G};
m$v=function(m,G){m.nodeType===Node.TEXT_NODE?m.textContent!==String(G)&&(m.textContent=String(G)):m=d8V(m,TL(G));return m};
Aw=function(m,G,K){return iJM(m,G!=null?G:[],K===void 0?!1:K)};
TB6=function(m,G){var K=Aw(m,void 0,!0);if(K.length===0)return M2();G[R2].flattened=K;return m};
iJM=function(m,G,K,W,L){G=G===void 0?[]:G;K=K===void 0?!1:K;L=L===void 0?-1:L;if(m==null)return G;if(m instanceof ws){var A=m.render();return iJM(A,G,K,W,L)}if(B4(G)&&G.nodeType===Node.ELEMENT_NODE)switch(G.tagName){case "SCRIPT":x8f(G,m);return;case "STYLE":SKM(G,m);return}iX(m)&&(m=TL(m),W&&K&&(W[L]=m));if(CLd(m)){K=Vlo(m);K=Array.from(K.childNodes);K=_.g(K);for(A=K.next();!A.done;A=K.next())GqG(G,A.value);return G}ZAP(m)&&(m=TL(m.toString()),W&&K&&(W[L]=m));if(B4(m))return GqG(G,m);if(Array.isArray(m)){for(A=
0;A<m.length;A++)iJM(m[A],G,K,m,A);return G}if(typeof m==="function"){A=Ln(function(){var c=m();return c!=null&&!iX(c)&&CLd(c)?(c=Vlo(c),Array.from(c.childNodes)):c},{debugName:"qmF2ne",
debugFn:m})[0];if(Array.isArray(A)){K=_.g(A);for(A=K.next();!A.done;A=K.next())GqG(G,A.value);return G}W&&K&&(W[L]=A);return GqG(G,A)}if(m!=null&&m[UZ]){W=m;L=lM(!0);var O=Ied;try{A=O.apply(null,[W.type,W.props].concat(_.Bz(W.children)))}finally{lM(L)}return iJM(A,G,K)}(O=Bg.handleError)==null||O.call.apply(O,[Bg].concat(_.Bz(I2(Error("qc")))));return G};
U8J=function(m){var G={};G=Object.assign([],(G[R2]={flattened:[]},G));if(!m)return G;G[0]=TB6(m,G);return G};
GqG=function(m,G){Array.isArray(m)?m.push(G):m.appendChild(G);return m};
cO=function(m){if(!Bg.enableLazyTsx)return m;if(Array.isArray(m)){for(var G=0;G<m.length;G++)m[G]=cO(m[G]);return m}return m instanceof ws?(m=m.render(),cO(m)):m};
Wad=function(m,G){var K,W,L=LyV(m),A=function(t){W=t;t=lM(!0);var a=mE(YS);zdo("render",L);try{K=cO(m(G))}finally{lD6("render",L),mE(a),lM(t)}};
A=Bg.enableContextPerComponent?mFd(A,L):q2(A,Bg.alwaysTrackContexts||!!ft);GiG(W);if(!G.renderedFromIdom){var O=SU(W);try{return KaG(m,G,K),K}finally{SU(O)}}!qKd(K)&&Array.isArray(K)&&(K=U8J(K));var c=ETf(K);O=Array.isArray(c)?c[0]:c;var u=!1;if(O){var h,J=(h=G==null?void 0:G.idomKey)!=null?h:m;h=c!==O;O._disposeEffects=A;var N=O[WO]||{},D=qKd(K)?K:N.sourceDynamicRange;Object.assign(N,{key:J,numNodes:h?c.length:1,context:W,higherOrder:!!O[WO],sourceDynamicRange:D});O[WO]=N}else u=!0;(function(){var t=
SU(W);try{KaG(m,G,c)}finally{SU(t)}})();
u&&A();return K};
La6=function(m){var G={},K;for(K in m)G={prev$jscomp$24:void 0,next$jscomp$33:void 0},G.prev$jscomp$24=rs[K],G.next$jscomp$33=m[K],rs[K]=function(W){return function(){var L=_.mb.apply(0,arguments);W.prev$jscomp$24.apply(null,_.Bz(L));W.next$jscomp$33.apply(null,_.Bz(L))}}(G)};
AjG=function(){if(t_())throw Error("rc");return uX};
wHM=function(m,G){if(!m.__unmounted&&G){m.__unmounted=!0;try{m.didUnmount()}catch(L){var K,W;(W=Bg.handleError)==null||W.call.apply(W,[Bg].concat(_.Bz(I2(L,(K=m.__type)==null?void 0:K.TAG_NAME))))}rs.didUnmount(m);m.el=null;G.__instance&&delete G.__instance}};
OJG=function(m,G,K){m._signalProps!=null&&m._disposeEffects==null&&((K===void 0?0:K)?m._disposeEffects=q2(function(){return void guM(m,G)},Bg.alwaysTrackContexts||!!ft):guM(m,G))};
guM=function(m,G){_.v4(function(){for(var K=m._signalProps,W=m._signalValues,L=0;L<K.length;L++){var A=K[L],O=G[A]();W[L]!==O&&(W[L]=O,vTJ(m,A,O))}},"e3YVbb")};
cj6=function(m,G,K){var W,L=[];m._disposeEffects=q2(function(){_.v4(function(){var A=K();if(A===null||A===void 0)A="";if(iX(A)||A===null)W!=null||(W=document.createTextNode("")),W.parentNode!==m&&(W._isSignalTextNode=!0,m.insertBefore(W,G)),W.textContent=String(A);else if(CLd(A)){for(var O=L.length>0?L[L.length-1].nextSibling:G,c=_.g(L),u=c.next();!u.done;u=c.next())m.removeChild(u.value);A=Vlo(A);L=Array.from(A.childNodes);A=_.g(L);for(c=A.next();!c.done;c=A.next())m.insertBefore(c.value,O)}else throw u=
(c=(O=N2)==null?void 0:O.name)!=null?c:"unknown",Error("gc`"+u+"`"+typeof A);},"VvDgC")},Bg.alwaysTrackContexts||!!ft)};
uAs=function(m,G){var K=_.mb.apply(2,arguments);G!=null||(G={});return!Bg.enableLazyTsx||N2!=null&&!t_()?YBd(m,G,K):new rjf(m,G,K)};
YBd=function(m,G,K){if(m===_.zL)return K;if(typeof m==="function")return N2&&!t_()&&(G.renderedFromIdom=!0),AaG(m,function(){K.length>0&&(G.children=K.length===1?K[0]:K);if(m.componentType===DM){var A;mFd(function(){var O=G;if(m.componentType!==DM)A=!1;else{O||(O={});var c=new hw(O,m),u=mE(YS);try{var h=c.render(O)}finally{mE(u)}h instanceof HTMLElement?(h.__instance=c,c.el=h,c.__type=m,m.TAG_NAME=h.tagName.toLowerCase(),rs.didPatch(c),A=h):A=h}},m.name);
if(A)return A}return Wad(m,G)},G.debugInstance);
var W=hJs(m,G),L;for(L in G)vTJ(W,L,G[L]);OJG(W,G);Aw(K,W);$86(W,G,{isReactive:!0});pHd(W,G);return W};
hJs=function(m,G){m=(JjG.has(m.toLowerCase())?0:NUo.has(m.startsWith("svg:")?m.replace("svg:",""):m))?document.createElementNS("http://www.w3.org/2000/svg",m.startsWith("svg:")?m.replace("svg:",""):m):D$d(m,G)||document.createElement(m);m[tDG]=!0;return m};
FaG=function(m){if(m){var G;(G=m._disposeRef)==null||G.call(m);var K;(K=m._disposeEffects)==null||K.call(m);m.__instance&&m.__instance instanceof pn&&(G=m.__instance,wHM(G,m),G instanceof hw&&G.disposeEffects());for(G=0;G<m.childNodes.length;G++)FaG(m.childNodes[G])}};
awv=function(m){QQV.push(m)===1&&requestAnimationFrame(function(){setTimeout(function(){var G=[].concat(_.Bz(QQV));QQV=[];G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;try{for(var W=0;W<K.length;W++)FaG(K[W])}catch(L){W=K=void 0,(W=(K=Bg).handleError)==null||W.call.apply(W,[K].concat(_.Bz(I2(L))))}}})})};
_.r=function(m,G){return Ied.apply(null,[m,G].concat(_.Bz(_.mb.apply(2,arguments))))};
_.Jw=function(m){return m};
_.NC=function(m){return{isDefault:!0,children:m.children}};
_.p=function(m){var G=m.cond;if(G===void 0)return m.else&&m.else();var K=_.pT(function(){return!!G()},void 0,"JHVi8"),W=function(){var A=G();
if(!A){var O;(O=Bg.handleError)==null||O.call.apply(O,[Bg].concat(_.Bz(I2(ouG.nonNullableCondIsNull()))))}return A},L;
return Ln(function(){var A=K(),O;q2(function(){var c=mE(YS);try{O=cO(A?m.then(W):m.else&&m.else())}finally{mE(c)}},!0);
return O},{debugName:(L=m.debugInstance)!=null?L:"RlDudd",
debugFn:m.then,isControlFlowComponent:!0})};
nuF=function(m){return _.p(m)};
_.D0=function(m){return m.keyBy==="INDEX"?bJf(m):vuG(m)};
$$G=function(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next()){var K=void 0;(K=G.value)==null||K()}};
vuG=function(m){var G=m.keyBy===void 0||m.keyBy==="REFERENCE",K=G?function(N){return N}:m.keyBy,W=[],L=[],A=[],O=[],c=[],u=[],h=!0;
_.sZ(function(){$$G(O)});
var J;return Ln(function(){var N=sQG(m),D=N.length;if(D===0){if(W.length===0&&!h)return A;$$G(O);W=N;L=[];for(N=0;N<W.length;N++)L.push(K(W[N]));A=[];O=[];c=[];u=[];m.fallback&&(O[0]=qBV(function(){A[0]=cO(m.fallback())}));
h=!1;return A}for(var t=new Eus,a=W.length-1;a>=0;a--)t.push(L[a],a);a=Array(D);for(var v=Array(D),I=Array(D),Z=Array(D),k=Array(G?0:D),z={i$jscomp$453:0};z.i$jscomp$453<D;z={i$jscomp$453:z.i$jscomp$453,item$jscomp$104:void 0,key$jscomp$565:void 0},z.i$jscomp$453++){z.item$jscomp$104=N[z.i$jscomp$453];z.key$jscomp$565=K(z.item$jscomp$104);var X=t.pop(z.key$jscomp$565);X!=null?(I[z.i$jscomp$453]=A[X],v[z.i$jscomp$453]=L[X],a[z.i$jscomp$453]=O[X],Z[z.i$jscomp$453]=c[X],G||(k[z.i$jscomp$453]=u[X]),J_(function(f){return function(){Z[f.i$jscomp$453](f.i$jscomp$453);
if(!G)k[f.i$jscomp$453](f.item$jscomp$104)}}(z)),delete O[X]):a[z.i$jscomp$453]=qBV(function(f){return function(){var U=_.g(_.g_(f.i$jscomp$453,void 0,"Fqk1zd")),l=U.next().value;
U=U.next().value;Z[f.i$jscomp$453]=U;v[f.i$jscomp$453]=f.key$jscomp$565;if(G)I[f.i$jscomp$453]=cO(m.children(f.item$jscomp$104,l));else{var Ls=_.g(_.g_(f.item$jscomp$104,void 0,"GBj5de"));U=Ls.next().value;Ls=Ls.next().value;k[f.i$jscomp$453]=Ls;I[f.i$jscomp$453]=cO(m.children(U,l))}}}(z))}$$G(O);
W=N;L=v;A=I;O=a;c=Z;u=k;h=!1;return I},{debugName:(J=m.debugInstance)!=null?J:"nsTGHd",
debugFn:m.each,isControlFlowComponent:!0})};
bJf=function(m){var G=[],K=[],W=[],L=[],A=!1;_.sZ(function(){$$G(L)});
var O;return Ln(function(){var c=sQG(m);A&&c.length>0&&(L.pop()(),G.pop(),A=!1);for(var u=Array(c.length),h={i$jscomp$454:0};h.i$jscomp$454<c.length;h={i$jscomp$454:h.i$jscomp$454},h.i$jscomp$454++)if(h.i$jscomp$454<G.length)G[h.i$jscomp$454]!==c[h.i$jscomp$454]&&(J_(function(N){return function(){return void K[N.i$jscomp$454](c[N.i$jscomp$454])}}(h)),G[h.i$jscomp$454]=c[h.i$jscomp$454]),u[h.i$jscomp$454]=W[h.i$jscomp$454];
else{var J=qBV(function(N){return function(){G[N.i$jscomp$454]=c[N.i$jscomp$454];var D=_.g(_.g_(c[N.i$jscomp$454],void 0,"JMMLmd")),t=D.next().value;D=D.next().value;K[N.i$jscomp$454]=D;u[N.i$jscomp$454]=cO(m.children(t,N.i$jscomp$454))}}(h));
L[h.i$jscomp$454]=J}for(;G.length>c.length;)G.pop(),L.pop()(),K.pop();c.length===0&&!A&&m.fallback&&(h=qBV(function(){u[0]=cO(m.fallback())}),L[0]=h,A=!0);
return W=u},{debugName:(O=m.debugInstance)!=null?O:"nsTGHd",
isControlFlowComponent:!0})};
sQG=function(m){m=m.each();return Array.isArray(m)?m:Array.from(m)};
qBV=function(m){var G=ft;return q2(function(K){var W=mE(YS);try{K.parent=G,m(K)}finally{mE(W)}},!1)};
_.tw=function(m){var G=HJJ(m),K=_.pT(function(){return Iw6(G)},void 0,"F1PF4"),W;
return Ln(function(){var L=K(),A;q2(function(){var O=mE(YS);try{A=cO(L())}finally{mE(O)}});
return A},{debugName:(W=m.debugInstance)!=null?W:"vI1rtf",
isControlFlowComponent:!0})};
HJJ=function(m){m=m.children;return Array.isArray(m)?m:[m]};
jQ9=function(m){var G=m.props;m=m.getChildren()[0];return G.when?{when:G.when,children:m}:{isDefault:!0,children:m}};
Iw6=function(m){var G=function(){return null};
m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K!=null&&K[UZ]&&(K=K.type===_.NC?{isDefault:!0,children:K.children[0]}:{when:K.props.when,children:K.children[0]}),K instanceof ws&&(K=jQ9(K)),K.isDefault)G=K.children;else if(K.when())return K.children;return G};
kqG=function(m){var G=null,K,W={get value(){var A,O;(O=(A=L).validateGetValue)==null||O.call(A);return L.__value},set value(A){var O,c;(c=(O=L).validateSetValue)==null||c.call(O,A);L.__value=A;L.__hasBeenSet=!0}},L=(W.__value=null,W.__hasBeenSet=!1,W.__hasErrored=!1,W.onRender=function(A){if(K&&A!==K){K._disposeRef=void 0;var O;(O=G)==null||O()}K=A;G=m(A)||null},W.onUnmount=function(){var A;
(A=G)==null||A();G=L.value=null},W[bSv]=!0,W);
return L};
FF=function(m){return typeof m==="symbol"};
VDG=function(m){var G=AjG();if(G==null)throw CWV.PRIMITIVE_INVALID_HOOK_CALL();var K=G.hookCounter++;G.hooks||(G.hooks=[]);var W=G.hooks;W[K]||(W[K]={key:m,host:G});if(m!==W[K].key){if(G.__type){var L;m=(L=G.__type)==null?void 0:L.name}else m=G instanceof hw?LyV(G.functionComponent):"<"+G.el.tagName.toLowerCase()+">";throw CWV.OUT_OF_ORDER_HOOK_CALL(m);}return W[K]};
ZJd=function(m,G){return!m||m.length!==(G==null?void 0:G.length)||m.some(function(K,W){return K!==G[W]})};
d$v=function(m,G){if(t_())return m();var K=VDG("useMemoInternal");ZJd(K.deps,G)&&(K.deps=G,K.value=m());return K.value};
PWF=function(m,G){return d$v(m,G)};
_.Q3=function(m,G){return yjf(m,!1,G)};
_.aP=function(m,G){return yjf(m,!0,G)};
yjf=function(m,G,K){return t_()?eJP(m,G,K):fwf(m,G,K)};
fwf=function(m,G,K){return d$v(function(){return eJP(m,G,K)},[])};
eJP=function(m,G,K){var W=kqG(function(L){W.value=L;var A=function(){var O=mE(null);try{return K==null?void 0:K(L)}finally{mE(O)}}();
return function(){A==null||A()}});
W.__expectedTagName=m;W.__optional=G;W.isIdom=!t_();return W};
x$J=function(m,G){var K;G=q2(function(){var W=lM(!0);o2++;try{K=Aw(m()),bM(!1)}catch(L){throw bM(!0),L;}finally{lM(W)}},G===void 0?!1:G);
return[K,G]};
_.oP=function(m,G,K){K!=null||(K={});K=K.appContext;var W=!!Bg.legacyTriggerSoyRendererEvents;Kn.setUp();try{var L=XHd(m,G,K);W&&(G=K,G!=null||(G=_.trM(document).getAppContext()),G.get(lev).JSC$30102_getEventTarget().dispatchEvent(new BBs(SBG,m,m3)));Kn.log(m);return L}finally{Kn.tearDown()}};
XHd=function(m,G,K){var W=QW(function(){var L=mE(YS);try{return q2(function(){var A=_.trM(_.hI(m)),O;var c=ZS9({rootElement:{value:m},appContext:K||(A==null?void 0:(O=A.getOptionalAppContext)==null?void 0:O.call(A)),dispatcher:A});A=SU(c);c=lM(!0);o2++;try{Aw(G(),m),bM(!1)}catch(u){throw bM(!0),u;}finally{lM(c),SU(A)}},!1)}catch(A){throw Bg.enableContextBasedComponentStacks&&Ff(A),A;
}finally{mE(L)}});
m[RJM]=!0;return function(){m.textContent="";W();m[RJM]=!1}};
_.nn=function(m){if($k9(TH)){var G;(G=Bg.handleError)==null||G.call.apply(G,[Bg].concat(_.Bz(I2(Error("fc")))))}var K=ft,W=N2;JaV({onInitType:hmv,run:function(){if(K&&!K.isDisposed){var L=SU(K);try{QW(function(){return void m()},W)}catch(A){throw Bg.enableContextBasedComponentStacks&&Ff(A),A;
}finally{SU(L)}}}})};
lwJ=function(m){var G=aDo(2),K=new Set;_.sZ(function(){return void K.forEach(function(W){return void W()})});
return function(W){var L=SU(G);try{var A=U$o(zJ9(m),W);K.add(A);return function(){A();K.delete(A)}}finally{SU(L)}}};
_.BUd=function(m){var G=m.children;var K=m.root;_.nn(function(){var W=lwJ(K)(G);_.sZ(W)});
return document.createTextNode("")};
U$o=function(m,G){var K=MDf(m);(m=v3V())&&Jgd(K,m);Kn.setUp();G=_.g(x$J(G,!0));m=G.next().value;var W=G.next().value;G=_.g(m);for(m=G.next();!m.done;m=G.next())K.appendChild(m.value);Kn.log(K);Kn.tearDown();return function(){W();K.remove()}};
zJ9=function(m){if(typeof m==="string")return m=document.querySelector(m),_.w2G(m),m;if(B4(m)&&m.nodeType===Node.ELEMENT_NODE)return m;if(!m.__value&&!m.__optional){var G=CWV.USE_ELEMENT_NOT_ASSIGNED(m.__expectedTagName);m.__hasErrored=!0;throw G;}return m.value};
MDf=function(m){var G=document.createElementNS(m.namespaceURI,m.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");return m.appendChild(G)};
TUo=function(m,G){var K=VDG("onChange"),W=AjG();ZJd(K.deps,G)&&(K.deps=G,K.pendingEffect=m,W.__syncEffects||(W.__syncEffects=[]),W.__syncEffects.push(K))};
mcd=function(m,G){TUo(function(){return _.w_(m)},G)};
_.bX=function(m){t_()?_.nn(function(){_.w_(m)}):TUo(function(){return _.w_(m)},[])};
GzP=function(m){var G=[].concat(_.Bz(m));m.length=0;m=_.g(G);for(G=m.next();!G.done;G=m.next()){G=G.value;iWv(G);var K=G.pendingEffect;G.pendingEffect=null;if(K=K==null?void 0:K())G.pendingCleanup=K}};
iWv=function(m){var G=m.pendingCleanup;m.pendingCleanup=null;G==null||G()};
KQG=function(m){return d$v(function(){return{value:m}},[])};
_.vO=function(m,G){if(!m)return null;m=Object.keys(m);m=_.g(m);for(var K=m.next();!K.done;K=m.next()){K=K.value;var W=K.toLowerCase();if(W.indexOf(G,W.length-G.length)>-1)return K}return null};
_.qC=function(){var m=arguments,G=_.s8;m.length>1?G[m[0]]=m[1]:m.length===1&&Object.assign(G,m[0])};
_.E8=function(m,G){return m in _.s8?_.s8[m]:G};
_.IP=function(m,G){return!!_.E8(m,G)};
WQF=function(m){var G=_.s8.EXPERIMENT_FLAGS;return G?G[m]:void 0};
AWP=function(m){LQG.forEach(function(G){return G(m)})};
_.kS=function(m){return m&&window.yterr?function(){try{return m.apply(this,arguments)}catch(G){_.j1(G)}}:m};
_.j1=function(m){var G=_.Cn("yt.logging.errors.log");G?G(m,"ERROR",void 0,void 0,void 0,void 0,void 0):(G=_.E8("ERRORS",[]),G.push([m,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.qC("ERRORS",G));AWP(m)};
_.V3=function(m,G,K,W,L){var A=_.Cn("yt.logging.errors.log");A?A(m,"WARNING",G,K,W,void 0,L):(A=_.E8("ERRORS",[]),A.push([m,"WARNING",G,K,W,void 0,L]),_.qC("ERRORS",A))};
gtf=function(m,G){G=m.split(G);for(var K={},W=0,L=G.length;W<L;W++){var A=G[W].split("=");if(A.length===1&&A[0]||A.length===2)try{var O=wks(A[0]||""),c=wks(A[1]||"");if(O in K){var u=K[O];Array.isArray(u)?_.RM(u,c):K[O]=[u,c]}else K[O]=c}catch(D){var h=D,J=A[0],N=String(gtf);h.args=[{key:J,value:A[1],query:m,method:OWs===N?"unchanged":N}];cWf.hasOwnProperty(J)||_.V3(h)}}return K};
YGG=function(m){var G=[];_.Y2.forEach(m,function(K,W){var L=_.zF(W);K=Array.isArray(K)?K:[K];_.Z0(K,function(A){A==""?G.push(L):G.push(L+"="+_.zF(A))})});
return G.join("&")};
_.ds=function(m){m.charAt(0)==="?"&&(m=m.substring(1));return gtf(m,"&")};
_.PO=function(m){return m.indexOf("?")!==-1?(m=(m||"").split("#")[0],m=m.split("?",2),_.ds(m.length>1?m[1]:m[0])):{}};
_.y3=function(m,G){return rWv(m,G||{},!0)};
uvG=function(m,G){return rWv(m,G||{},!1)};
rWv=function(m,G,K){var W=m.split("#",2);m=W[0];W=W.length>1?"#"+W[1]:"";var L=m.split("?",2);m=L[0];L=_.ds(L[1]||"");for(var A in G)if(K||!_.Y2.containsKey(L,A))L[A]=G[A];return _.BE(m,L)+W};
e1=function(m){if(!G)var G=window.location.href;var K=_.PE(m)[1]||null,W=_.eh(m);return K&&W?Rb(m,G):W?_.eh(G)===W&&(Number(_.PE(G)[4]||null)||null)===(Number(_.PE(m)[4]||null)||null):!0};
_.pkP=function(m){m=hHv(m);return m===null?!1:m[0]==="com"&&m[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
hHv=function(m){m=_.eh(m);return m!==null?m.split(".").reverse():null};
wks=function(m){return m&&m.match(JWd)?m:Ui(m)};
_.fn=function(m){return new N9M(m)};
_.xS=function(){DcF||(DcF=new tOJ);return DcF};
Q7G=function(){var m=FQ9;return function(){var G=_.xS();if(!G.resolve(_.fn(m))){var K={};G.addProvider((K.provide=m,K.useClass=m,K[XF]=void 0,K))}return G.resolve(m)}};
ots=function(m){var G=_.S1,K,W;_.Y(function(L){K=_.xS();return(W=K.resolve(_.fn(G)))?(m(W),L.return(Promise.resolve(W))):L.return(K.resolve(new aQv(G)).then(function(A){m(A);return A}))})};
_.F=function(m){m=RP(m);return typeof m==="string"&&m==="false"?!1:!!m};
_.U8=function(m,G){m=RP(m);return m===void 0&&G!==void 0?G:Number(m||0)};
ntG=function(m){m=RP(m);return Array.isArray(m)?_.r$(m,function(G){return Number(G||0)}):[Number(m||0)]};
_.zf=function(m){m=RP(m);return m!==void 0?String(m):""};
_.lX=function(m){m=RP(m);return Array.isArray(m)?_.r$(m,function(G){return String(G||"")}):[String(m||"")]};
bWJ=function(){return _.E8("EXPERIMENTS_TOKEN","")};
RP=function(m){if(m!==vtM)return _.E8("EXPERIMENT_FLAGS",{})[m]};
$c6=function(){for(var m=[],G=_.E8("EXPERIMENTS_FORCED_FLAGS",{}),K=_.g(Object.keys(G)),W=K.next();!W.done;W=K.next())W=W.value,m.push({key:W,value:String(G[W])});K=_.E8("EXPERIMENT_FLAGS",{});W=_.g(Object.keys(K));for(var L=W.next();!L.done;L=W.next())L=L.value,L.startsWith("force_")&&G[L]===void 0&&m.push({key:L,value:String(K[L])});return m};
qGo=function(){if(!s7d)return null;var m=s7d();return"open"in m?m:null};
_.Etf=function(m){switch(_.BO(m)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.BO=function(m){return m&&"status"in m?m.status:-1};
_.MC=function(m,G){typeof m==="function"&&(m=_.kS(m));return window.setTimeout(m,G)};
_.Tf=function(m,G){typeof m==="function"&&(m=_.kS(m));return window.setInterval(m,G)};
_.m1=function(m){window.clearTimeout(m)};
IQF=function(m){m=_.PO(m);for(var G=_.g(HWs),K=G.next();!K.done;K=G.next())if(m[K.value]!==void 0)return!0;return!1};
Cdf=function(m,G,K,W,L,A,O,c,u){K=K===void 0?"GET":K;W=W===void 0?"":W;c=c===void 0?!1:c;var h=qGo();if(!h)return null;var J=function(){(h&&"readyState"in h?h.readyState:0)===4&&G&&_.kS(G)(h)};
"onloadend"in h?h.addEventListener("loadend",J,!1):h.onreadystatechange=J;_.F("debug_forward_web_query_parameters")&&(m=j7f(m,window.location.search));h.open(K,m,!0);A&&(h.responseType=A);O&&(h.withCredentials=!0);K=K==="POST"&&(window.FormData===void 0||!(W instanceof FormData));if(L=kzV(m,L))for(var N in L)h.setRequestHeader(N,L[N]),"content-type"===N.toLowerCase()&&(K=!1);K&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded");u&&"onprogress"in h&&(h.onprogress=function(){u(h.responseText)});
if(c&&"setAttributionReporting"in XMLHttpRequest.prototype){m={eventSourceEligible:!0,triggerEligible:!1};try{h.setAttributionReporting(m)}catch(D){_.V3(D)}}h.send(W);return h};
kzV=function(m,G){G=G===void 0?{}:G;var K=e1(m),W=_.E8("INNERTUBE_CLIENT_NAME"),L=_.F("web_ajax_ignore_global_headers_if_set"),A;for(A in VOd){var O=_.E8(VOd[A]),c=A==="X-Goog-AuthUser"||A==="X-Goog-PageId";A!=="X-Goog-Visitor-Id"||O||(O=_.E8("VISITOR_DATA"));var u;if(!(u=!O)){if(!(u=K||(_.eh(m)?!1:!0))){u=m;var h;if(h=_.F("add_auth_headers_to_remarketing_google_dot_com_ping")&&A==="Authorization"&&(W==="TVHTML5"||W==="TVHTML5_UNPLUGGED"||W==="TVHTML5_SIMPLY"))h=hHv(u),h=h===null?!1:h[1]==="google"?
!0:h[2]==="google"?h[0]==="au"&&h[1]==="com"?!0:h[0]==="uk"&&h[1]==="co"?!0:!1:!1;h&&(u=_.f6(u)||"",u=u.split("/"),u="/"+(u.length>1?u[1]:""),h=u==="/pagead");u=h?!0:!1}u=!u}u||L&&G[A]!==void 0||W==="TVHTML5_UNPLUGGED"&&c||(G[A]=O)}"X-Goog-EOM-Visitor-Id"in G&&"X-Goog-Visitor-Id"in G&&delete G["X-Goog-Visitor-Id"];if(K||!_.eh(m))G["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(K||!_.eh(m)){try{var J=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(N){}J&&(G["X-YouTube-Time-Zone"]=
J)}document.location.hostname.endsWith("youtubeeducation.com")||!K&&_.eh(m)||(G["X-YouTube-Ad-Signals"]=YGG(ZWv()));return G};
_.dcs=function(m,G){var K=_.eh(m);_.F("debug_handle_relative_url_for_query_forward_killswitch")||!K&&e1(m)&&(K=document.location.hostname);var W=_.f6(m);W=(K=K&&(K.endsWith("youtube.com")||K.endsWith("youtube-nocookie.com")))&&W&&W.startsWith("/api/");if(!K||W)return m;var L=_.ds(G),A={};_.Z0(HWs,function(O){L[O]&&(A[O]=L[O])});
return uvG(m,A)};
PdJ=function(m,G){G.method="POST";G.postParams||(G.postParams={});return _.ix(m,G)};
yWG=function(m,G){var K=_.E8("XSRF_FIELD_NAME"),W;G.headers&&(W=G.headers["Content-Type"]);return!G.excludeXsrf&&(!_.eh(m)||G.withCredentials||_.eh(m)===document.location.hostname)&&G.method==="POST"&&(!W||W==="application/x-www-form-urlencoded")&&!(G.postParams&&G.postParams[K])};
_.ix=function(m,G){var K=G.format||"JSON";m=eHP(m,G);var W=fQP(m,G),L=!1,A=xc9(m,function(u){if(!L){L=!0;c&&_.m1(c);var h=_.Etf(u),J=null,N=400<=u.status&&u.status<500,D=500<=u.status&&u.status<600;if(h||N||D)J=Xk9(m,K,u,G.convertToSafeHtml);h&&(h=SGF(K,u,J));J=J||{};N=G.context||_.Ks;h?G.onSuccess&&G.onSuccess.call(N,u,J):G.onError&&G.onError.call(N,u,J);G.onFinish&&G.onFinish.call(N,u,J)}},G.method,W,G.headers,G.responseType,G.withCredentials,!1,G.onProgress);
W=G.timeout||0;if(G.onTimeout&&W>0){var O=G.onTimeout;var c=_.MC(function(){L||(L=!0,A.abort(),_.m1(c),O.call(G.context||_.Ks,A))},W)}return A};
eHP=function(m,G){G.includeDomain&&(m=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+m);var K=_.E8("XSRF_FIELD_NAME");if(G=G.urlParams)G[K]&&delete G[K],m=_.y3(m,G);return m};
fQP=function(m,G){var K=_.E8("XSRF_FIELD_NAME"),W=_.E8("XSRF_TOKEN"),L=G.postBody||"",A=G.postParams;yWG(m,G)&&(A||(A={}),A[K]=W);(_.F("ajax_parse_query_data_only_when_filled")&&A&&Object.keys(A).length>0||A)&&typeof L==="string"&&(L=_.ds(L),_.Y2.extend(L,A),L=G.postBodyFormat&&G.postBodyFormat==="JSON"?JSON.stringify(L):_.l$(L));A=L||A&&!_.Y2.isEmpty(A);!RHV&&A&&G.method!=="POST"&&(RHV=!0,_.j1(Error("Mc")));return L};
Xk9=function(m,G,K,W){var L=null;switch(G){case "JSON":try{var A=K.responseText}catch(O){throw W=Error("Nc"),W.params=m,_.V3(W),O;}m=K.getResponseHeader("Content-Type")||"";A&&m.indexOf("json")>=0&&(A.substring(0,5)===")]}'\n"&&(A=A.substring(5)),L=JSON.parse(A));break;case "XML":if(m=(m=K.responseXML)?UcV(m):null)L={},_.Z0(m.getElementsByTagName("*"),function(O){L[O.tagName]=zHV(O)})}W&&lQP(L);
return L};
lQP=function(m){if(_.Ud(m))for(var G in m)G==="html_content"||wd(G,"_html")?m[G]=Wz(m[G]):lQP(m[G])};
SGF=function(m,G,K){if(G&&G.status===204)return!0;switch(m){case "JSON":return!!K;case "XML":return Number(K&&K.return_code)===0;case "RAW":return!0;default:return!!K}};
UcV=function(m){return m?(m=("responseXML"in m?m.responseXML:m).getElementsByTagName("root"))&&m.length>0?m[0]:null:null};
zHV=function(m){var G="";_.Z0(m.childNodes,function(K){G+=K.nodeValue});
return G};
B99=function(m){if(m.name==="JavaException")return!0;m=m.stack;return m.includes("chrome://")||m.includes("-extension://")||m.includes("webkit-masked-url://")};
MOd=function(m){if(!m.stack)return!0;var G=!m.stack.includes("\n");return G&&m.stack.includes("ErrorType: ")||G&&m.stack.includes("Anonymous function (Unknown script")||m.stack.toLowerCase()==="not available"||m.fileName==="user-script"||m.fileName.startsWith("user-script:")?!0:!1};
_.Gd=function(m){_.Lt.call(this);this.JSC$10833_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!m};
m_V=function(m,G){var K=m.length,W=0,L=function(){return m.charCodeAt(W++)};
do{var A=T9d(L);if(A===Infinity)break;var O=A>>3;switch(A&7){case 0:A=T9d(L);if(O===G)return A;break;case 1:if(O===G)return;W+=8;break;case 2:A=T9d(L);if(O===G)return m.substr(W,A);W+=A;break;case 5:if(O===G)return;W+=4;break;default:return}}while(W<K)};
T9d=function(m){var G=m(),K=G&127;if(G<128)return K;G=m();K|=(G&127)<<7;if(G<128)return K;G=m();K|=(G&127)<<14;if(G<128)return K;G=m();return G<128?K|(G&127)<<21:Infinity};
Gvo=function(m,G,K,W){if(m)if(Array.isArray(m)){var L=W;for(W=0;W<m.length&&!(m[W]&&(L+=iGf(W,m[W],G,K),L>500));W++);W=L}else if(typeof m==="object")for(L in m){if(m[L]){var A=L;var O=m[L],c=G,u=K;A=typeof O!=="string"||A!=="clickTrackingParams"&&A!=="trackingParams"?0:(O=m_V(atob(O.replace(/-/g,"+").replace(/_/g,"/")),2))?iGf(A+".ve",O,c,u):0;W+=A;W+=iGf(L,m[L],G,K);if(W>500)break}}else K[G]=Ww(m),W+=K[G].length;else K[G]=Ww(m),W+=K[G].length;return W};
iGf=function(m,G,K,W){K+="."+m;m=Ww(G);W[K]=m;return K.length+m.length};
Ww=function(m){try{return(typeof m==="string"?m:String(JSON.stringify(m))).substr(0,500)}catch(G){return"unable to serialize "+typeof m+" ("+G.message+")"}};
KdG=function(m){switch(m){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}};
_.AH=function(m,G,K,W,L){_.LL.set(m,G,{maxAge:K,path:"/",domain:W===void 0?"youtube.com":W,secure:L===void 0?!1:L})};
_.WdV=function(m,G,K){_.LL.remove(m,G===void 0?"/":G,K===void 0?"youtube.com":K)};
_.w8=function(){if(_.F("embeds_web_enable_cookie_detection_fix")){if(!_.Ks.navigator.cookieEnabled)return!1}else if(!_.LL.isEnabled())return!1;if(!_.LL.isEmpty())return!0;_.F("embeds_web_enable_cookie_detection_fix")?_.LL.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.LL.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.LL.get("TESTCOOKIESENABLED")!=="1")return!1;_.LL.remove("TESTCOOKIESENABLED");return!0};
Ld6=function(){var m=_.Ks.navigator;return m?m.connection:void 0};
AM6=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}};
_.gR9=function(){var m=Ld6();if(m){var G=wUG[m.type||"unknown"]||"CONN_UNKNOWN";m=wUG[m.effectiveType||"unknown"]||"CONN_UNKNOWN";G==="CONN_CELLULAR_UNKNOWN"&&m!=="CONN_UNKNOWN"&&(G=m);if(G!=="CONN_UNKNOWN")return G;if(m!=="CONN_UNKNOWN")return m}};
cMF=function(){var m=Ld6();if(m!=null&&m.effectiveType)return OG6.hasOwnProperty(m.effectiveType)?OG6[m.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.OV=function(){try{return _.g8(),!0}catch(m){return!1}};
_.g8=function(m){if(_.E8("DATASYNC_ID")!==void 0)return _.E8("DATASYNC_ID");throw new _.cw("Datasync ID not set",m===void 0?"unknown":m);};
_.YD=function(m){this.mechanism=m};
r8=function(m){this.mechanism=m};
ux=function(m){this.mechanism=m};
hH=function(m){this.storage_=m;this.cachedIsStorageAvailable_=null};
Yvs=function(){var m=null;try{m=_.Ks.localStorage||null}catch(G){}hH.call(this,m)};
rMF=function(){var m=null;try{m=_.Ks.sessionStorage||null}catch(G){}hH.call(this,m)};
pL=function(m,G){this.mechanism_=m;this.JSC$10935_prefix_=G+"::"};
_.JH=function(m){var G=new Yvs;return G.isAvailable()?m?new pL(G,m):G:null};
_.uQP=function(m){var G=new rMF;return G.isAvailable()?m?new pL(G,m):G:null};
pUf=function(){var m;return(m=h9G())==null?void 0:m.get("LAST_RESULT_ENTRY_KEY",!0)};
_.tH=function(m){JMG||(_.NK?_.NK.logError(m):(_.D_.push({type:"ERROR",payload:m}),_.D_.length>10&&_.D_.shift()))};
FH=function(m,G){JMG||(_.NK?_.NK.logEvent(m,G):(_.D_.push({type:"EVENT",eventType:m,payload:G}),_.D_.length>10&&_.D_.shift()))};
Qj=function(m){if(m.indexOf(":")>=0)throw Error("Uc");};
aG=function(m){return m.substr(0,m.indexOf(":"))||m};
t8P=function(){return(N6d||D_d)&&oG("applewebkit")&&!oG("version")&&(!oG("safari")||oG("gsa/"))};
oG=function(m){var G=_.Nd();return G?G.toLowerCase().indexOf(m)>=0:!1};
al6=function(m,G,K,W){G=aG(G);var L=m instanceof Error?m:Error("Vc`"+m);if(L instanceof nL)return L;m={objectStoreNames:K,dbName:G,dbVersion:W};if(L.name==="QuotaExceededError")return new nL("QUOTA_EXCEEDED",m);if(_.bx&&L.name==="UnknownError")return new nL("QUOTA_MAYBE_EXCEEDED",m);if(L instanceof FdJ)return new nL("MISSING_INDEX",Object.assign({},m,{objectStore:L.objectStore,index:L.index}));if(L.name==="InvalidStateError"&&QWG.some(function(A){return L.message.includes(A)}))return new nL("EXECUTE_TRANSACTION_ON_CLOSED_DB",
m);
if(L.name==="AbortError")return new nL("UNKNOWN_ABORT",m,L.message);L.args=[Object.assign({},m,{name:"IdbError",originalName:L.name})];L.level="WARNING";return L};
vw=function(m,G,K){var W=pUf();return new nL("IDB_NOT_SUPPORTED",{context:{caller:m,publicName:G,version:K,hasSucceededOnce:W==null?void 0:W.hasSucceededOnce}})};
oRs=function(m){if(!m)throw Error();throw m;};
nRs=function(m){return m};
bGM=function(m,G,K){var W=function(){try{m.removeEventListener("success",L),m.removeEventListener("error",A)}catch(O){}},L=function(){G(m.result);
W()},A=function(){K(m.error);
W()};
m.addEventListener("success",L);m.addEventListener("error",A)};
vRd=function(m){return new Promise(function(G,K){bGM(m,G,K)})};
qK=function(m){return new $D(new sV(function(G,K){bGM(m,G,K)}))};
$_G=function(m,G){return new $D(new sV(function(K,W){var L=function(){var A=m?G(m):null;A?A.then(function(O){m=O;L()},W):K()};
L()}))};
sW9=function(m,G,K){return new Promise(function(W,L){var A=G!==void 0?self.indexedDB.open(m,G):self.indexedDB.open(m);var O=K.blocked,c=K.blocking,u=K.terminated,h=K.upgrade,J=K.closed,N,D=function(){N||(N=new EV(A.result,{closed:J}));return N};
A.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("$c");if(A.transaction===null)throw Error("ad");t.dataLoss&&t.dataLoss!=="none"&&FH("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:aG(m)});var a=D(),v=new Hw(A.transaction);h&&h(a,function(I){return t.oldVersion<I&&t.newVersion>=I},v);
v.done.catch(function(I){L(I)})}catch(I){L(I)}});
A.addEventListener("success",function(){var t=A.result;c&&t.addEventListener("versionchange",function(){c(D())});
t.addEventListener("close",function(){FH("IDB_UNEXPECTEDLY_CLOSED",{dbName:aG(m),dbVersion:t.version});u&&u()});
W(D())});
A.addEventListener("error",function(){L(A.error)});
O&&A.addEventListener("blocked",function(){O()})})};
qvM=function(m,G,K){K=K===void 0?{}:K;return sW9(m,G,K)};
_.jn=function(m,G){G=G===void 0?{}:G;var K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return _.IO(O,2),K=self.indexedDB.deleteDatabase(m),W=G,(L=W.blocked)&&K.addEventListener("blocked",function(){L()}),O.yield(vRd(K),4);
if(O.nextAddress!=2)return _.IG(O,0);A=_.ye(O);throw al6(A,m,"",-1);})};
HGs=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.kD(ERv,G),2);K=W.yieldResult;return W.return(_.CL(K,["databases"],{enableRetries:!0,mode:"readwrite"},function(L){var A=L.objectStore("databases");return A.get(m.actualName).then(function(O){if(O?m.actualName!==O.actualName||m.publicName!==O.publicName||m.userIdentifier!==O.userIdentifier:1)return A.put(m).then(function(){})})}))})};
_.Vj=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)return m?W.yield(_.kD(ERv,G),2):W.return();K=W.yieldResult;return W.return(K.delete("databases",m))})};
_.Ilf=function(m,G){var K,W;return _.Y(function(L){return L.nextAddress==1?(K=[],L.yield(_.kD(ERv,G),2)):L.nextAddress!=3?(W=L.yieldResult,L.yield(_.CL(W,["databases"],{enableRetries:!0,mode:"readonly"},function(A){K.length=0;return Z_(A.objectStore("databases"),{},function(O){m(O.getValue())&&K.push(O.getValue());return O.continue()})}),3)):L.return(K)})};
jWv=function(m,G){return _.Ilf(function(K){return K.publicName===m&&K.userIdentifier!==void 0},G)};
V8v=function(){var m,G,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:m=pUf();if((G=m)==null?0:G.hasSucceededOnce)return L.return(!0);var A;if(A=kvG)A=/WebKit\/([0-9]+)/.exec(_.Nd()),A=!!(A&&parseInt(A[1],10)>=600);A&&(A=/WebKit\/([0-9]+)/.exec(_.Nd()),A=!(A&&parseInt(A[1],10)>=602));if(A||d8)return L.return(!1);try{if(K=self,!(K.indexedDB&&K.IDBIndex&&K.IDBKeyRange&&K.IDBObjectStore))return L.return(!1)}catch(O){return L.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return L.return(!1);
_.IO(L,2);W={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return L.yield(HGs(W,Cwo),4);case 4:return L.yield(_.Vj("yt-idb-test-do-not-use",Cwo),5);case 5:return L.return(!0);case 2:return _.ye(L),L.return(!1)}})};
d_G=function(){if(ZGJ!==void 0)return ZGJ;JMG=!0;return ZGJ=V8v().then(function(m){JMG=!1;var G;if((G=h9G())!=null&&G.hasLocalStorage()){var K;G={hasSucceededOnce:((K=pUf())==null?void 0:K.hasSucceededOnce)||m};var W;(W=h9G())==null||W.set("LAST_RESULT_ENTRY_KEY",G,2592E3,!0)}return m})};
Pw=function(){return _.Cn("ytglobal.idbToken_")||void 0};
_.en=function(){var m=Pw();return m?Promise.resolve(m):d_G().then(function(G){(G=G?Cwo:void 0)&&_.yj("ytglobal.idbToken_",G);return G})};
Pw6=function(m){if(!_.OV())throw m=new nL("AUTH_INVALID",{dbName:m}),_.tH(m),m;var G=_.g8();return{actualName:m+":"+G,publicName:m,userIdentifier:G}};
yMv=function(m,G,K,W){var L,A,O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:return A=(L=Error().stack)!=null?L:"",J.yield(_.en(),2);case 2:O=J.yieldResult;if(!O)throw c=vw("openDbImpl",m,G),_.F("ytidb_async_stack_killswitch")||(c.stack=c.stack+"\n"+A.substring(A.indexOf("\n")+1)),_.tH(c),c;Qj(m);u=K?{actualName:m,publicName:m,userIdentifier:void 0}:Pw6(m);_.IO(J,3);return J.yield(HGs(u,O),5);case 5:return J.yield(qvM(u.actualName,G,W),6);case 6:return J.return(J.yieldResult);case 3:return h=
_.ye(J),_.IO(J,7),J.yield(_.Vj(u.actualName,O),9);case 9:_.IG(J,8);break;case 7:_.ye(J);case 8:throw h;}})};
e9s=function(m,G,K){K=K===void 0?{}:K;return yMv(m,G,!1,K)};
flf=function(m,G,K){K=K===void 0?{}:K;return yMv(m,G,!0,K)};
x_M=function(m,G){G=G===void 0?{}:G;var K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(_.en(),2);if(L.nextAddress!=3){K=L.yieldResult;if(!K)return L.return();Qj(m);W=Pw6(m);return L.yield(_.jn(W.actualName,G),3)}return L.yield(_.Vj(W.actualName,K),0)})};
XUv=function(m,G,K){m=m.map(function(W){return _.Y(function(L){return L.nextAddress==1?L.yield(_.jn(W.actualName,G),2):L.yield(_.Vj(W.actualName,K),0)})});
return Promise.all(m).then(function(){})};
SvJ=function(m){var G=G===void 0?{}:G;var K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(_.en(),2);if(L.nextAddress!=3){K=L.yieldResult;if(!K)return L.return();Qj(m);return L.yield(jWv(m,K),3)}W=L.yieldResult;return L.yield(XUv(W,G,K),0)})};
R9s=function(m,G){G=G===void 0?{}:G;var K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.en(),2);if(W.nextAddress!=3){K=W.yieldResult;if(!K)return W.return();Qj(m);return W.yield(_.jn(m,G),3)}return W.yield(_.Vj(m,K),0)})};
fL=function(m,G){return U_6(m,G)};
lld=function(m){return _.kD(z9P(),m)};
B6P=function(m,G,K,W){var L,A,O;return _.Y(function(c){switch(c.nextAddress){case 1:return L={config:m,hashData:G,timestamp:W!==void 0?W:(0,_.xD)()},c.yield(lld(K),2);case 2:return A=c.yieldResult,c.yield(A.clear("hotConfigStore"),3);case 3:return c.yield(A.put("hotConfigStore",L),4);case 4:return O=c.yieldResult,c.return(O)}})};
M8d=function(m,G,K,W,L){var A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:return A={config:m,hashData:G,configData:K,timestamp:L!==void 0?L:(0,_.xD)()},u.yield(lld(W),2);case 2:return O=u.yieldResult,u.yield(O.clear("coldConfigStore"),3);case 3:return u.yield(O.put("coldConfigStore",A),4);case 4:return c=u.yieldResult,u.return(c)}})};
T6F=function(m){var G,K;return _.Y(function(W){return W.nextAddress==1?W.yield(lld(m),2):W.nextAddress!=3?(G=W.yieldResult,K=void 0,W.yield(_.CL(G,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.XH(L.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(A){K=A.getValue()})}),3)):W.return(K)})};
mgP=function(m){var G,K;return _.Y(function(W){return W.nextAddress==1?W.yield(lld(m),2):W.nextAddress!=3?(G=W.yieldResult,K=void 0,W.yield(_.CL(G,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.XH(L.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(A){K=A.getValue()})}),3)):W.return(K)})};
iro=function(){return _.Y(function(m){return m.yield(SvJ("ytGcfConfig"),0)})};
Ghd=function(){return"INNERTUBE_API_KEY"in _.s8&&"INNERTUBE_API_VERSION"in _.s8};
_.Sn=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:_.IP("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.IP("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.E8("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Or6=function(m){var G={client:{hl:m.innertubeContextHostLanguage,gl:m.innertubeContextGeoLocation,clientName:m.innertubeContextClientName,clientVersion:m.innertubeContextClientVersion,configInfo:m.innertubeContextClientConfigInfo}};navigator.userAgent&&(G.client.userAgent=String(navigator.userAgent));var K=_.Ks.devicePixelRatio;K&&K!=1&&(G.client.screenDensityFloat=String(K));K=bWJ();K!==""&&(G.client.experimentsToken=K);K=$c6();K.length>0&&(G.request={internalExperimentFlags:K});Koo(m,void 0,G);
WoP(void 0,G);Lov(void 0,G);AKd(m,void 0,G);weo(void 0,G);_.F("start_client_gcf")&&gCV(void 0,G);_.E8("DELEGATED_SESSION_ID")&&!_.F("pageid_as_header_web")&&(G.user={onBehalfOfUser:_.E8("DELEGATED_SESSION_ID")});!_.F("fill_delegate_context_in_gel_killswitch")&&(m=_.E8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(G.user=Object.assign({},G.user,{serializedDelegationContext:m}));m=_.E8("INNERTUBE_CONTEXT");var W;if(_.F("enable_persistent_device_token")&&(m==null?0:(W=m.client)==null?0:W.rolloutToken)){var L;
G.client.rolloutToken=m==null?void 0:(L=m.client)==null?void 0:L.rolloutToken}W=Object;L=W.assign;m=G.client;K={};for(var A=_.g(Object.entries(_.ds(_.E8("DEVICE","")))),O=A.next();!O.done;O=A.next()){var c=_.g(O.value);O=c.next().value;c=c.next().value;O==="cbrand"?K.deviceMake=c:O==="cmodel"?K.deviceModel=c:O==="cbr"?K.browserName=c:O==="cbrver"?K.browserVersion=c:O==="cos"?K.osName=c:O==="cosver"?K.osVersion=c:O==="cplatform"&&(K.platform=c)}G.client=L.call(W,m,K);return G};
Koo=function(m,G,K){m=m.innertubeContextClientName;if(m==="WEB"||m==="MWEB"||m===1||m===2)if(G){K=_.RG(G,cKG,96)||new cKG;var W=YM6();W=Object.keys(rKd).indexOf(W);W=W===-1?null:W;W!==null&&_.UV(K,3,W);_.ko(G,96,K)}else K&&(K.client.mainAppWebInfo=(W=K.client.mainAppWebInfo)!=null?W:{},K.client.mainAppWebInfo.webDisplayMode=YM6())};
WoP=function(m,G){var K=_.Cn("yt.embedded_player.embed_url");K&&(m?(G=_.RG(m,uCv,7)||new uCv,_.LB(G,4,K),_.ko(m,7,G)):G&&(G.thirdParty={embedUrl:K}))};
Lov=function(m,G){var K;if(_.F("web_log_memory_total_kbytes")&&((K=_.Ks.navigator)==null?0:K.deviceMemory)){var W;K=(W=_.Ks.navigator)==null?void 0:W.deviceMemory;m?_.zd(m,95,FE(K*1E6)):G&&(G.client.memoryTotalKbytes=""+K*1E6)}};
AKd=function(m,G,K){if(m.appInstallData)if(G){var W;K=(W=_.RG(G,lx,62))!=null?W:new lx;_.LB(K,6,m.appInstallData);_.ko(G,62,K)}else K&&(K.client.configInfo=K.client.configInfo||{},K.client.configInfo.appInstallData=m.appInstallData)};
weo=function(m,G){var K=_.gR9();K&&(m?_.UV(m,61,hgv[K]):G&&(G.client.connectionType=K));_.F("web_log_effective_connection_type")&&(K=cMF())&&(m?_.UV(m,94,peo[K]):G&&(G.client.effectiveConnectionType=K))};
_.DgM=function(m,G,K){K=K===void 0?{}:K;var W={};_.E8("EOM_VISITOR_DATA")?W={"X-Goog-EOM-Visitor-Id":_.E8("EOM_VISITOR_DATA")}:W={"X-Goog-Visitor-Id":K.visitorData||_.E8("VISITOR_DATA","")};if(G&&G.includes("www.youtube-nocookie.com"))return W;G=K.authorization||_.E8("AUTHORIZATION");G||(m?G="Bearer "+_.Cn("gapi.auth.getToken")().access_token:(JKf.instance||(JKf.instance=new JKf),m=NFo(),_.F("pageid_as_header_web")||delete m["X-Goog-PageId"],W=Object.assign({},W,m)));G&&(W.Authorization=G);return W};
gCV=function(m,G){var K=tbJ();if(K){var W=K.coldConfigData,L=K.coldHashData;K=K.hotHashData;if(m){var A;G=(A=_.RG(m,lx,62))!=null?A:new lx;W=_.LB(G,1,W);_.LB(W,3,L).setHotHashData(K);_.ko(m,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},W&&(G.client.configInfo.coldConfigData=W),L&&(G.client.configInfo.coldHashData=L),K&&(G.client.configInfo.hotHashData=K))}};
Bw=function(m){for(var G=m.length;--G>=0;)m[G]=0};
Fo6=function(m,G,K,W,L){this.static_tree=m;this.extra_bits=G;this.extra_base=K;this.elems=W;this.max_length=L;this.has_stree=m&&m.length};
Qt9=function(m,G){this.dyn_tree=m;this.max_code=0;this.stat_desc=G};
MK=function(m,G){m.pending_buf[m.pending++]=G&255;m.pending_buf[m.pending++]=G>>>8&255};
mf=function(m,G,K){m.bi_valid>16-K?(m.bi_buf|=G<<m.bi_valid&65535,MK(m,m.bi_buf),m.bi_buf=G>>16-m.bi_valid,m.bi_valid+=K-16):(m.bi_buf|=G<<m.bi_valid&65535,m.bi_valid+=K)};
is=function(m,G,K){mf(m,K[G*2],K[G*2+1])};
a7s=function(m,G){var K=0;do K|=m&1,m>>>=1,K<<=1;while(--G>0);return K>>>1};
oCG=function(m,G,K){var W=Array(16),L=0,A;for(A=1;A<=15;A++)W[A]=L=L+K[A-1]<<1;for(K=0;K<=G;K++)L=m[K*2+1],L!==0&&(m[K*2]=a7s(W[L]++,L))};
nCd=function(m){var G;for(G=0;G<286;G++)m.dyn_ltree[G*2]=0;for(G=0;G<30;G++)m.dyn_dtree[G*2]=0;for(G=0;G<19;G++)m.bl_tree[G*2]=0;m.dyn_ltree[512]=1;m.opt_len=m.static_len=0;m.last_lit=m.matches=0};
brG=function(m){m.bi_valid>8?MK(m,m.bi_buf):m.bi_valid>0&&(m.pending_buf[m.pending++]=m.bi_buf);m.bi_buf=0;m.bi_valid=0};
vCv=function(m,G,K){brG(m);MK(m,K);MK(m,~K);G6.arraySet(m.pending_buf,m.window,G,K,m.pending);m.pending+=K};
$gM=function(m,G,K,W){var L=G*2,A=K*2;return m[L]<m[A]||m[L]===m[A]&&W[G]<=W[K]};
st6=function(m,G,K){for(var W=m.heap[K],L=K<<1;L<=m.heap_len;){L<m.heap_len&&$gM(G,m.heap[L+1],m.heap[L],m.depth)&&L++;if($gM(G,W,m.heap[L],m.depth))break;m.heap[K]=m.heap[L];K=L;L<<=1}m.heap[K]=W};
jtd=function(m,G,K){var W=0;if(m.last_lit!==0){do{var L=m.pending_buf[m.d_buf+W*2]<<8|m.pending_buf[m.d_buf+W*2+1];var A=m.pending_buf[m.l_buf+W];W++;if(L===0)is(m,A,G);else{var O=KS[A];is(m,O+256+1,G);var c=qMG[O];c!==0&&(A-=EC6[O],mf(m,A,c));L--;O=L<256?WG[L]:WG[256+(L>>>7)];is(m,O,K);c=Hrf[O];c!==0&&(L-=I7G[O],mf(m,L,c))}}while(W<m.last_lit)}is(m,256,G)};
khv=function(m,G){var K=G.dyn_tree,W=G.stat_desc.static_tree,L=G.stat_desc.has_stree,A=G.stat_desc.elems,O,c=-1;m.heap_len=0;m.heap_max=573;for(O=0;O<A;O++)K[O*2]!==0?(m.heap[++m.heap_len]=c=O,m.depth[O]=0):K[O*2+1]=0;for(;m.heap_len<2;){var u=m.heap[++m.heap_len]=c<2?++c:0;K[u*2]=1;m.depth[u]=0;m.opt_len--;L&&(m.static_len-=W[u*2+1])}G.max_code=c;for(O=m.heap_len>>1;O>=1;O--)st6(m,K,O);u=A;do O=m.heap[1],m.heap[1]=m.heap[m.heap_len--],st6(m,K,1),W=m.heap[1],m.heap[--m.heap_max]=O,m.heap[--m.heap_max]=
W,K[u*2]=K[O*2]+K[W*2],m.depth[u]=(m.depth[O]>=m.depth[W]?m.depth[O]:m.depth[W])+1,K[O*2+1]=K[W*2+1]=u,m.heap[1]=u++,st6(m,K,1);while(m.heap_len>=2);m.heap[--m.heap_max]=m.heap[1];O=G.dyn_tree;u=G.max_code;W=G.stat_desc.static_tree;L=G.stat_desc.has_stree;A=G.stat_desc.extra_bits;var h=G.stat_desc.extra_base,J=G.stat_desc.max_length,N,D=0;for(N=0;N<=15;N++)m.bl_count[N]=0;O[m.heap[m.heap_max]*2+1]=0;for(G=m.heap_max+1;G<573;G++){var t=m.heap[G];N=O[O[t*2+1]*2+1]+1;N>J&&(N=J,D++);O[t*2+1]=N;if(!(t>
u)){m.bl_count[N]++;var a=0;t>=h&&(a=A[t-h]);var v=O[t*2];m.opt_len+=v*(N+a);L&&(m.static_len+=v*(W[t*2+1]+a))}}if(D!==0){do{for(N=J-1;m.bl_count[N]===0;)N--;m.bl_count[N]--;m.bl_count[N+1]+=2;m.bl_count[J]--;D-=2}while(D>0);for(N=J;N!==0;N--)for(t=m.bl_count[N];t!==0;)W=m.heap[--G],W>u||(O[W*2+1]!==N&&(m.opt_len+=(N-O[W*2+1])*O[W*2],O[W*2+1]=N),t--)}oCG(K,c,m.bl_count)};
C06=function(m,G,K){var W,L=-1,A=G[1],O=0,c=7,u=4;A===0&&(c=138,u=3);G[(K+1)*2+1]=65535;for(W=0;W<=K;W++){var h=A;A=G[(W+1)*2+1];++O<c&&h===A||(O<u?m.bl_tree[h*2]+=O:h!==0?(h!==L&&m.bl_tree[h*2]++,m.bl_tree[32]++):O<=10?m.bl_tree[34]++:m.bl_tree[36]++,O=0,L=h,A===0?(c=138,u=3):h===A?(c=6,u=3):(c=7,u=4))}};
VbP=function(m,G,K){var W,L=-1,A=G[1],O=0,c=7,u=4;A===0&&(c=138,u=3);for(W=0;W<=K;W++){var h=A;A=G[(W+1)*2+1];if(!(++O<c&&h===A)){if(O<u){do is(m,h,m.bl_tree);while(--O!==0)}else h!==0?(h!==L&&(is(m,h,m.bl_tree),O--),is(m,16,m.bl_tree),mf(m,O-3,2)):O<=10?(is(m,17,m.bl_tree),mf(m,O-3,3)):(is(m,18,m.bl_tree),mf(m,O-11,7));O=0;L=h;A===0?(c=138,u=3):h===A?(c=6,u=3):(c=7,u=4)}}};
Zrv=function(m){var G=4093624447,K;for(K=0;K<=31;K++,G>>>=1)if(G&1&&m.dyn_ltree[K*2]!==0)return 0;if(m.dyn_ltree[18]!==0||m.dyn_ltree[20]!==0||m.dyn_ltree[26]!==0)return 1;for(K=32;K<256;K++)if(m.dyn_ltree[K*2]!==0)return 1;return 0};
LS=function(m,G,K){m.pending_buf[m.d_buf+m.last_lit*2]=G>>>8&255;m.pending_buf[m.d_buf+m.last_lit*2+1]=G&255;m.pending_buf[m.l_buf+m.last_lit]=K&255;m.last_lit++;G===0?m.dyn_ltree[K*2]++:(m.matches++,G--,m.dyn_ltree[(KS[K]+256+1)*2]++,m.dyn_dtree[(G<256?WG[G]:WG[256+(G>>>7)])*2]++);return m.last_lit===m.lit_bufsize-1};
wW=function(m,G){m.msg=Ag[G];return G};
gW=function(m){for(var G=m.length;--G>=0;)m[G]=0};
Og=function(m){var G=m.state,K=G.pending;K>m.avail_out&&(K=m.avail_out);K!==0&&(G6.arraySet(m.output,G.pending_buf,G.pending_out,K,m.next_out),m.next_out+=K,G.pending_out+=K,m.total_out+=K,m.avail_out-=K,G.pending-=K,G.pending===0&&(G.pending_out=0))};
rW=function(m,G){var K=m.block_start>=0?m.block_start:-1,W=m.strstart-m.block_start,L=0;if(m.level>0){m.strm.data_type===2&&(m.strm.data_type=Zrv(m));khv(m,m.l_desc);khv(m,m.d_desc);C06(m,m.dyn_ltree,m.l_desc.max_code);C06(m,m.dyn_dtree,m.d_desc.max_code);khv(m,m.bl_desc);for(L=18;L>=3&&m.bl_tree[dgd[L]*2+1]===0;L--);m.opt_len+=3*(L+1)+5+5+4;var A=m.opt_len+3+7>>>3;var O=m.static_len+3+7>>>3;O<=A&&(A=O)}else A=O=W+5;if(W+4<=A&&K!==-1)mf(m,G?1:0,3),vCv(m,K,W);else if(m.strategy===4||O===A)mf(m,2+(G?
1:0),3),jtd(m,cG,Y3);else{mf(m,4+(G?1:0),3);K=m.l_desc.max_code+1;W=m.d_desc.max_code+1;L+=1;mf(m,K-257,5);mf(m,W-1,5);mf(m,L-4,4);for(A=0;A<L;A++)mf(m,m.bl_tree[dgd[A]*2+1],3);VbP(m,m.dyn_ltree,K-1);VbP(m,m.dyn_dtree,W-1);jtd(m,m.dyn_ltree,m.dyn_dtree)}nCd(m);G&&brG(m);m.block_start=m.strstart;Og(m.strm)};
us=function(m,G){m.pending_buf[m.pending++]=G};
hg=function(m,G){m.pending_buf[m.pending++]=G>>>8&255;m.pending_buf[m.pending++]=G&255};
P0s=function(m,G){var K=m.max_chain_length,W=m.strstart,L=m.prev_length,A=m.nice_match,O=m.strstart>m.w_size-262?m.strstart-(m.w_size-262):0,c=m.window,u=m.w_mask,h=m.prev,J=m.strstart+258,N=c[W+L-1],D=c[W+L];m.prev_length>=m.good_match&&(K>>=2);A>m.lookahead&&(A=m.lookahead);do{var t=G;if(c[t+L]===D&&c[t+L-1]===N&&c[t]===c[W]&&c[++t]===c[W+1]){W+=2;for(t++;c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&c[++W]===c[++t]&&W<J;);
t=258-(J-W);W=J-258;if(t>L){m.match_start=G;L=t;if(t>=A)break;N=c[W+L-1];D=c[W+L]}}}while((G=h[G&u])>O&&--K!==0);return L<=m.lookahead?L:m.lookahead};
Jg=function(m){var G=m.w_size,K;do{var W=m.window_size-m.lookahead-m.strstart;if(m.strstart>=G+(G-262)){G6.arraySet(m.window,m.window,G,G,0);m.match_start-=G;m.strstart-=G;m.block_start-=G;var L=K=m.hash_size;do{var A=m.head[--L];m.head[L]=A>=G?A-G:0}while(--K);L=K=G;do A=m.prev[--L],m.prev[L]=A>=G?A-G:0;while(--K);W+=G}if(m.strm.avail_in===0)break;L=m.strm;K=m.window;A=m.strstart+m.lookahead;var O=L.avail_in;O>W&&(O=W);O===0?K=0:(L.avail_in-=O,G6.arraySet(K,L.input,L.next_in,O,A),L.state.wrap===
1?L.adler=yKM(L.adler,K,O,A):L.state.wrap===2&&(L.adler=pS(L.adler,K,O,A)),L.next_in+=O,L.total_in+=O,K=O);m.lookahead+=K;if(m.lookahead+m.insert>=3)for(W=m.strstart-m.insert,m.ins_h=m.window[W],m.ins_h=(m.ins_h<<m.hash_shift^m.window[W+1])&m.hash_mask;m.insert&&!(m.ins_h=(m.ins_h<<m.hash_shift^m.window[W+3-1])&m.hash_mask,m.prev[W&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=W,W++,m.insert--,m.lookahead+m.insert<3););}while(m.lookahead<262&&m.strm.avail_in!==0)};
egF=function(m,G){for(var K;;){if(m.lookahead<262){Jg(m);if(m.lookahead<262&&G===0)return 1;if(m.lookahead===0)break}K=0;m.lookahead>=3&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+3-1])&m.hash_mask,K=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart);K!==0&&m.strstart-K<=m.w_size-262&&(m.match_length=P0s(m,K));if(m.match_length>=3)if(K=LS(m,m.strstart-m.match_start,m.match_length-3),m.lookahead-=m.match_length,m.match_length<=m.max_lazy_match&&m.lookahead>=3){m.match_length--;
do m.strstart++,m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+3-1])&m.hash_mask,m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart;while(--m.match_length!==0);m.strstart++}else m.strstart+=m.match_length,m.match_length=0,m.ins_h=m.window[m.strstart],m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+1])&m.hash_mask;else K=LS(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++;if(K&&(rW(m,!1),m.strm.avail_out===0))return 1}m.insert=m.strstart<2?m.strstart:2;return G===4?(rW(m,
!0),m.strm.avail_out===0?3:4):m.last_lit&&(rW(m,!1),m.strm.avail_out===0)?1:2};
Nq=function(m,G){for(var K,W;;){if(m.lookahead<262){Jg(m);if(m.lookahead<262&&G===0)return 1;if(m.lookahead===0)break}K=0;m.lookahead>=3&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+3-1])&m.hash_mask,K=m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart);m.prev_length=m.match_length;m.prev_match=m.match_start;m.match_length=2;K!==0&&m.prev_length<m.max_lazy_match&&m.strstart-K<=m.w_size-262&&(m.match_length=P0s(m,K),m.match_length<=5&&(m.strategy===1||m.match_length===3&&
m.strstart-m.match_start>4096)&&(m.match_length=2));if(m.prev_length>=3&&m.match_length<=m.prev_length){W=m.strstart+m.lookahead-3;K=LS(m,m.strstart-1-m.prev_match,m.prev_length-3);m.lookahead-=m.prev_length-1;m.prev_length-=2;do++m.strstart<=W&&(m.ins_h=(m.ins_h<<m.hash_shift^m.window[m.strstart+3-1])&m.hash_mask,m.prev[m.strstart&m.w_mask]=m.head[m.ins_h],m.head[m.ins_h]=m.strstart);while(--m.prev_length!==0);m.match_available=0;m.match_length=2;m.strstart++;if(K&&(rW(m,!1),m.strm.avail_out===0))return 1}else if(m.match_available){if((K=
LS(m,0,m.window[m.strstart-1]))&&rW(m,!1),m.strstart++,m.lookahead--,m.strm.avail_out===0)return 1}else m.match_available=1,m.strstart++,m.lookahead--}m.match_available&&(LS(m,0,m.window[m.strstart-1]),m.match_available=0);m.insert=m.strstart<2?m.strstart:2;return G===4?(rW(m,!0),m.strm.avail_out===0?3:4):m.last_lit&&(rW(m,!1),m.strm.avail_out===0)?1:2};
f76=function(m,G){for(var K,W,L,A=m.window;;){if(m.lookahead<=258){Jg(m);if(m.lookahead<=258&&G===0)return 1;if(m.lookahead===0)break}m.match_length=0;if(m.lookahead>=3&&m.strstart>0&&(W=m.strstart-1,K=A[W],K===A[++W]&&K===A[++W]&&K===A[++W])){for(L=m.strstart+258;K===A[++W]&&K===A[++W]&&K===A[++W]&&K===A[++W]&&K===A[++W]&&K===A[++W]&&K===A[++W]&&K===A[++W]&&W<L;);m.match_length=258-(L-W);m.match_length>m.lookahead&&(m.match_length=m.lookahead)}m.match_length>=3?(K=LS(m,1,m.match_length-3),m.lookahead-=
m.match_length,m.strstart+=m.match_length,m.match_length=0):(K=LS(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++);if(K&&(rW(m,!1),m.strm.avail_out===0))return 1}m.insert=0;return G===4?(rW(m,!0),m.strm.avail_out===0?3:4):m.last_lit&&(rW(m,!1),m.strm.avail_out===0)?1:2};
xgJ=function(m,G){for(var K;;){if(m.lookahead===0&&(Jg(m),m.lookahead===0)){if(G===0)return 1;break}m.match_length=0;K=LS(m,0,m.window[m.strstart]);m.lookahead--;m.strstart++;if(K&&(rW(m,!1),m.strm.avail_out===0))return 1}m.insert=0;return G===4?(rW(m,!0),m.strm.avail_out===0?3:4):m.last_lit&&(rW(m,!1),m.strm.avail_out===0)?1:2};
DD=function(m,G,K,W,L){this.good_length=m;this.max_lazy=G;this.nice_length=K;this.max_chain=W;this.func=L};
Xef=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 G6.Buf16(1146);this.dyn_dtree=new G6.Buf16(122);this.bl_tree=new G6.Buf16(78);gW(this.dyn_ltree);gW(this.dyn_dtree);gW(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new G6.Buf16(16);this.heap=new G6.Buf16(573);gW(this.heap);this.heap_max=this.heap_len=0;this.depth=new G6.Buf16(573);gW(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};
SMv=function(m,G){if(!m||!m.state||G>5||G<0)return m?wW(m,-2):-2;var K=m.state;if(!m.output||!m.input&&m.avail_in!==0||K.status===666&&G!==4)return wW(m,m.avail_out===0?-5:-2);K.strm=m;var W=K.last_flush;K.last_flush=G;if(K.status===42)if(K.wrap===2)m.adler=0,us(K,31),us(K,139),us(K,8),K.gzhead?(us(K,(K.gzhead.text?1:0)+(K.gzhead.hcrc?2:0)+(K.gzhead.extra?4:0)+(K.gzhead.name?8:0)+(K.gzhead.comment?16:0)),us(K,K.gzhead.time&255),us(K,K.gzhead.time>>8&255),us(K,K.gzhead.time>>16&255),us(K,K.gzhead.time>>
24&255),us(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),us(K,K.gzhead.os&255),K.gzhead.extra&&K.gzhead.extra.length&&(us(K,K.gzhead.extra.length&255),us(K,K.gzhead.extra.length>>8&255)),K.gzhead.hcrc&&(m.adler=pS(m.adler,K.pending_buf,K.pending,0)),K.gzindex=0,K.status=69):(us(K,0),us(K,0),us(K,0),us(K,0),us(K,0),us(K,K.level===9?2:K.strategy>=2||K.level<2?4:0),us(K,3),K.status=113);else{var L=8+(K.w_bits-8<<4)<<8;L|=(K.strategy>=2||K.level<2?0:K.level<6?1:K.level===6?2:3)<<6;K.strstart!==0&&(L|=
32);K.status=113;hg(K,L+(31-L%31));K.strstart!==0&&(hg(K,m.adler>>>16),hg(K,m.adler&65535));m.adler=1}if(K.status===69)if(K.gzhead.extra){for(L=K.pending;K.gzindex<(K.gzhead.extra.length&65535)&&(K.pending!==K.pending_buf_size||(K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L)),Og(m),L=K.pending,K.pending!==K.pending_buf_size));)us(K,K.gzhead.extra[K.gzindex]&255),K.gzindex++;K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L));K.gzindex===K.gzhead.extra.length&&
(K.gzindex=0,K.status=73)}else K.status=73;if(K.status===73)if(K.gzhead.name){L=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L)),Og(m),L=K.pending,K.pending===K.pending_buf_size)){var A=1;break}A=K.gzindex<K.gzhead.name.length?K.gzhead.name.charCodeAt(K.gzindex++)&255:0;us(K,A)}while(A!==0);K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L));A===0&&(K.gzindex=0,K.status=91)}else K.status=91;if(K.status===
91)if(K.gzhead.comment){L=K.pending;do{if(K.pending===K.pending_buf_size&&(K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L)),Og(m),L=K.pending,K.pending===K.pending_buf_size)){A=1;break}A=K.gzindex<K.gzhead.comment.length?K.gzhead.comment.charCodeAt(K.gzindex++)&255:0;us(K,A)}while(A!==0);K.gzhead.hcrc&&K.pending>L&&(m.adler=pS(m.adler,K.pending_buf,K.pending-L,L));A===0&&(K.status=103)}else K.status=103;K.status===103&&(K.gzhead.hcrc?(K.pending+2>K.pending_buf_size&&Og(m),
K.pending+2<=K.pending_buf_size&&(us(K,m.adler&255),us(K,m.adler>>8&255),m.adler=0,K.status=113)):K.status=113);if(K.pending!==0){if(Og(m),m.avail_out===0)return K.last_flush=-1,0}else if(m.avail_in===0&&(G<<1)-(G>4?9:0)<=(W<<1)-(W>4?9:0)&&G!==4)return wW(m,-5);if(K.status===666&&m.avail_in!==0)return wW(m,-5);if(m.avail_in!==0||K.lookahead!==0||G!==0&&K.status!==666){W=K.strategy===2?xgJ(K,G):K.strategy===3?f76(K,G):tg[K.level].func(K,G);if(W===3||W===4)K.status=666;if(W===1||W===3)return m.avail_out===
0&&(K.last_flush=-1),0;if(W===2&&(G===1?(mf(K,2,3),is(K,256,cG),K.bi_valid===16?(MK(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):K.bi_valid>=8&&(K.pending_buf[K.pending++]=K.bi_buf&255,K.bi_buf>>=8,K.bi_valid-=8)):G!==5&&(mf(K,0,3),vCv(K,0,0),G===3&&(gW(K.head),K.lookahead===0&&(K.strstart=0,K.block_start=0,K.insert=0))),Og(m),m.avail_out===0))return K.last_flush=-1,0}if(G!==4)return 0;if(K.wrap<=0)return 1;K.wrap===2?(us(K,m.adler&255),us(K,m.adler>>8&255),us(K,m.adler>>16&255),us(K,m.adler>>24&255),us(K,
m.total_in&255),us(K,m.total_in>>8&255),us(K,m.total_in>>16&255),us(K,m.total_in>>24&255)):(hg(K,m.adler>>>16),hg(K,m.adler&65535));Og(m);K.wrap>0&&(K.wrap=-K.wrap);return K.pending!==0?0:1};
Rgo=function(m){if(!(this instanceof Rgo))return new Rgo(m);m=this.options=G6.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},m||{});m.raw&&m.windowBits>0?m.windowBits=-m.windowBits:m.gzip&&m.windowBits>0&&m.windowBits<16&&(m.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new UgG;this.strm.avail_out=0;var G=this.strm;var K=m.level,W=m.method,L=m.windowBits,A=m.memLevel,O=m.strategy;if(G){var c=1;K===-1&&(K=6);L<0?(c=0,L=-L):L>15&&
(c=2,L-=16);if(A<1||A>9||W!==8||L<8||L>15||K<0||K>9||O<0||O>4)G=wW(G,-2);else{L===8&&(L=9);var u=new Xef;G.state=u;u.strm=G;u.wrap=c;u.gzhead=null;u.w_bits=L;u.w_size=1<<u.w_bits;u.w_mask=u.w_size-1;u.hash_bits=A+7;u.hash_size=1<<u.hash_bits;u.hash_mask=u.hash_size-1;u.hash_shift=~~((u.hash_bits+3-1)/3);u.window=new G6.Buf8(u.w_size*2);u.head=new G6.Buf16(u.hash_size);u.prev=new G6.Buf16(u.w_size);u.lit_bufsize=1<<A+6;u.pending_buf_size=u.lit_bufsize*4;u.pending_buf=new G6.Buf8(u.pending_buf_size);
u.d_buf=u.lit_bufsize;u.l_buf=3*u.lit_bufsize;u.level=K;u.strategy=O;u.method=W;if(G&&G.state){G.total_in=G.total_out=0;G.data_type=2;K=G.state;K.pending=0;K.pending_out=0;K.wrap<0&&(K.wrap=-K.wrap);K.status=K.wrap?42:113;G.adler=K.wrap===2?0:1;K.last_flush=0;if(!zgG){W=Array(16);for(A=O=0;A<28;A++)for(EC6[A]=O,L=0;L<1<<qMG[A];L++)KS[O++]=A;KS[O-1]=A;for(A=O=0;A<16;A++)for(I7G[A]=O,L=0;L<1<<Hrf[A];L++)WG[O++]=A;for(O>>=7;A<30;A++)for(I7G[A]=O<<7,L=0;L<1<<Hrf[A]-7;L++)WG[256+O++]=A;for(L=0;L<=15;L++)W[L]=
0;for(L=0;L<=143;)cG[L*2+1]=8,L++,W[8]++;for(;L<=255;)cG[L*2+1]=9,L++,W[9]++;for(;L<=279;)cG[L*2+1]=7,L++,W[7]++;for(;L<=287;)cG[L*2+1]=8,L++,W[8]++;oCG(cG,287,W);for(L=0;L<30;L++)Y3[L*2+1]=5,Y3[L*2]=a7s(L,5);l7d=new Fo6(cG,qMG,257,286,15);BFs=new Fo6(Y3,Hrf,0,30,15);Mbo=new Fo6([],TFd,0,19,7);zgG=!0}K.l_desc=new Qt9(K.dyn_ltree,l7d);K.d_desc=new Qt9(K.dyn_dtree,BFs);K.bl_desc=new Qt9(K.bl_tree,Mbo);K.bi_buf=0;K.bi_valid=0;nCd(K);K=0}else K=wW(G,-2);K===0&&(G=G.state,G.window_size=2*G.w_size,gW(G.head),
G.max_lazy_match=tg[G.level].max_lazy,G.good_match=tg[G.level].good_length,G.nice_match=tg[G.level].nice_length,G.max_chain_length=tg[G.level].max_chain,G.strstart=0,G.block_start=0,G.lookahead=0,G.insert=0,G.match_length=G.prev_length=2,G.match_available=0,G.ins_h=0);G=K}}else G=-2;if(G!==0)throw Error(Ag[G]);m.header&&(G=this.strm)&&G.state&&G.state.wrap===2&&(G.state.gzhead=m.header);if(m.dictionary){var h;typeof m.dictionary==="string"?h=mld(m.dictionary):iDv.call(m.dictionary)==="[object ArrayBuffer]"?
h=new Uint8Array(m.dictionary):h=m.dictionary;m=this.strm;A=h;O=A.length;if(m&&m.state)if(h=m.state,G=h.wrap,G===2||G===1&&h.status!==42||h.lookahead)G=-2;else{G===1&&(m.adler=yKM(m.adler,A,O,0));h.wrap=0;O>=h.w_size&&(G===0&&(gW(h.head),h.strstart=0,h.block_start=0,h.insert=0),K=new G6.Buf8(h.w_size),G6.arraySet(K,A,O-h.w_size,h.w_size,0),A=K,O=h.w_size);K=m.avail_in;W=m.next_in;L=m.input;m.avail_in=O;m.next_in=0;m.input=A;for(Jg(h);h.lookahead>=3;){A=h.strstart;O=h.lookahead-2;do h.ins_h=(h.ins_h<<
h.hash_shift^h.window[A+3-1])&h.hash_mask,h.prev[A&h.w_mask]=h.head[h.ins_h],h.head[h.ins_h]=A,A++;while(--O);h.strstart=A;h.lookahead=2;Jg(h)}h.strstart+=h.lookahead;h.block_start=h.strstart;h.insert=h.lookahead;h.lookahead=0;h.match_length=h.prev_length=2;h.match_available=0;m.next_in=W;m.input=L;m.avail_in=K;h.wrap=G;G=0}else G=-2;if(G!==0)throw Error(Ag[G]);this._dict_set=!0}};
GgG=function(m,G){G=G||{};G.gzip=!0;G=new Rgo(G);G.push(m,!0);if(G.err)throw G.msg||Ag[G.err];return G.result};
WgG=function(m,G){var K=Kg6();K&&K.publish.call(K,m.toString(),m,G)};
OD6=function(m,G,K){var W=Kg6();if(!W)return 0;var L=W.subscribe(m.toString(),function(A,O){var c=_.Cn("ytPubsub2Pubsub2SkipSubKey");c&&c==L||(c=function(){if(Lgd[L])try{if(O&&m instanceof A9v&&m!=A)try{var u=m.dataClass,h=O;if(!h.args||!h.version)throw Error("cd");try{if(!u.version_){var J=new u;u.version_=J.version}var N=u.version_}catch(D){}if(!N||h.version!=N)throw Error("dd");try{O=Reflect.construct(u,_.yf(h.args))}catch(D){throw D.message="yt.pubsub2.Data.deserialize(): "+D.message,D;}}catch(D){throw D.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+m.toString()+": "+D.message,D;}G.call(K||window,O)}catch(D){_.j1(D)}},wLo[m.toString()]?_.Cn("yt.scheduler.instance")?_.Fu.addLowPriorityJob(c):_.MC(c,0):c())});
Lgd[L]=!0;geP[m.toString()]||(geP[m.toString()]=[]);geP[m.toString()].push(L);return L};
uj6=function(){var m=c9G,G=OD6(YQf,function(K){m.apply(void 0,arguments);r9v(G)});
return G};
r9v=function(m){var G=Kg6();G&&(typeof m==="number"&&(m=[m]),_.Z0(m,function(K){G.unsubscribeByKey(K);delete Lgd[K]}))};
Kg6=function(){return _.Cn("ytPubsub2Pubsub2Instance")};
hOs=function(m,G,K){K=K===void 0?{sampleRate:.1}:K;Math.random()<Math.min(.02,K.sampleRate/100)&&WgG("meta_logging_csi_event",{timerName:m,timelineData:G})};
_.pLf=function(m){return m?(m=m.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.r5(m):null:null};
_.Ql=function(m){return m?(m=m.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.PN(m):null:null};
NTs=function(){J99||(J99=_.Ql(_.E8("WORKER_SERIALIZATION_URL")));return J99||void 0};
_.twG=function(){var m=NTs();Dlo||m===void 0||(Dlo=kpd(m));return Dlo};
_.Fg9=function(){return typeof Worker==="function"&&NTs()?!0:!1};
_.nev=function(){if(_.Fg9()&&!QoG){var m=function(K){K=K.data;if(K.op==="gzippedGelBatch"){var W=ahG.get(K.key);W&&(oes(K.gzippedBatch,W.latencyPayload,W.url,W.options,W.sendFn),ahG.delete(K.key))}},G=_.twG();
G&&(G.addEventListener("message",m),G.onerror=function(){ahG.clear()},QoG=!0)}};
EeV=function(m,G,K,W,L){L=L===void 0?!1:L;var A={startTime:(0,_.xD)(),ticks:{},infos:{}};if(aR)try{var O=bDM(G);if(O!=null&&(O>ved||O<$lf))W(m,K);else{if(_.F("gzip_gel_with_worker")){QoG||_.nev();var c=_.twG();if(c&&!L){ahG.set(so9,{latencyPayload:A,url:m,options:K,sendFn:W});c.postMessage({op:"gelBatchToGzip",serializedBatch:G,key:so9});so9++;return}}var u=GgG(qQf(G));oes(u,A,m,K,W)}}catch(h){_.V3(h),W(m,K)}else W(m,K)};
oes=function(m,G,K,W,L){var A=(0,_.xD)();G.ticks.gelc=A;oR++;_.F("disable_compression_due_to_performance_degredation")&&A-G.startTime>=HDP&&(Ihv++,aR=!1);joV(G);W.headers||(W.headers={});W.headers["Content-Encoding"]="gzip";W.postBody=m;W.postParams=void 0;L(K,W)};
C1J=function(m){var G=G===void 0?!1:G;var K=K===void 0?!1:K;var W=(0,_.xD)(),L={startTime:W,ticks:{},infos:{}},A=G?_.Cn("yt.logging.gzipForFetch",!1):!0;if(aR&&A){if(!m.body)return m;try{var O=K?m.body:typeof m.body==="string"?m.body:JSON.stringify(m.body);A=O;if(!K&&typeof O==="string"){var c=bDM(O);if(c!=null&&(c>ved||c<$lf))return m;K=G?{level:1}:void 0;A=GgG(qQf(O),K);var u=(0,_.xD)();L.ticks.gelc=u;if(G){oR++;if((_.F("disable_compression_due_to_performance_degredation")||_.F("disable_compression_due_to_performance_degradation_lr"))&&
u-W>=HDP)if(Ihv++,_.F("abandon_compression_after_N_slow_zips_lr")){G=Ihv/oR;var h=kg9/_.U8("compression_disable_point");oR>0&&oR%_.U8("compression_disable_point")===0&&G>=h&&(aR=!1)}else aR=!1;joV(L)}}m.headers=Object.assign({},{"Content-Encoding":"gzip"},m.headers||{});m.body=A;return m}catch(J){return _.V3(J),m}}else return m};
bDM=function(m){try{return(new Blob(m.split(""))).size}catch(G){return _.V3(G),null}};
joV=function(m){_.F("gel_compression_csi_killswitch")||!_.F("log_gel_compression_latency")&&!_.F("log_gel_compression_latency_lr")||hOs("gel_compression",m,{sampleRate:.1})};
VwG=function(){this.blockSize=-1};
nS=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var m=1;m<this.blockSize;++m)this.pad_[m]=0;this.total_=this.inbuf_=0;this.reset()};
dlJ=function(m){m=Object.assign({},m);delete m.Authorization;var G=_.ZDG();if(G){var K=new nS;K.update(_.E8("INNERTUBE_API_KEY"));K.update(G);m.hash=_.Md(K.digest(),3)}return m};
vG=function(){P16||(P16=new _.bs("yt.innertube"));return P16};
y9s=function(m,G,K,W){if(W)return null;W=vG().get("nextId",!0)||1;var L=vG().get("requests",!0)||{};L[W]={method:m,request:G,authState:dlJ(K),requestTime:Math.round((0,_.xD)())};vG().set("nextId",W+1,86400,!0);vG().set("requests",L,86400,!0);return W};
eOd=function(m){var G=vG().get("requests",!0)||{};delete G[m];vG().set("requests",G,86400,!0)};
xlG=function(m){var G=vG().get("requests",!0);if(G){for(var K in G){var W=G[K];if(!(Math.round((0,_.xD)())-W.requestTime<6E4)){var L=W.authState,A=dlJ(_.DgM(!1));_.Y2.equals(L,A)&&(L=W.request,"requestTimeMs"in L&&(L.requestTimeMs=Math.round((0,_.xD)())),fhJ(m,W.method,L,{}));delete G[K]}}vG().set("requests",G,86400,!0)}};
XLv=function(m){var G;return(m=m==null?void 0:(G=m.error)==null?void 0:G.code)&&m>=400&&m<=599?!1:!0};
SQG=function(m){var G;m=m==null?void 0:(G=m.error)==null?void 0:G.code;return!(m!==400&&m!==415)};
UlM=function(){if(ROF)return ROF();var m={};ROF=fL("LogsDatabaseV2",{objectStores:(m.LogsRequestsStore={addedAtVersion:2},m),shared:!1,upgrade:function(G,K,W){K(2)&&sg(G,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});K(3);K(5)&&(W=W.objectStore("LogsRequestsStore"),W.JSC$10994_wrapped.indexNames.contains("newRequest")&&W.JSC$10994_wrapped.deleteIndex("newRequest"),qq(W,"newRequestV2",["status","interface","timestamp"]));K(7)&&G.JSC$10979_wrapped.objectStoreNames.contains("sapisid")&&G.JSC$10979_wrapped.deleteObjectStore("sapisid");
K(9)&&G.JSC$10979_wrapped.objectStoreNames.contains("SWHealthLog")&&G.JSC$10979_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return ROF()};
Eg=function(m){return _.kD(UlM(),m)};
lhd=function(m,G){var K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K={startTime:(0,_.xD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},O.yield(Eg(G),2);if(O.nextAddress!=3)return W=O.yieldResult,L=Object.assign({},m,{options:JSON.parse(JSON.stringify(m.options)),interface:_.E8("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),O.yield(W.put("LogsRequestsStore",L),3);A=O.yieldResult;K.ticks.tc=(0,_.xD)();zOd(K);return O.return(A)})};
BTs=function(m,G){var K,W,L,A,O,c,u,h,J;return _.Y(function(N){if(N.nextAddress==1)return K={startTime:(0,_.xD)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},N.yield(Eg(G),2);if(N.nextAddress!=3)return W=N.yieldResult,L=_.E8("INNERTUBE_CONTEXT_CLIENT_NAME",0),A=[m,L,0],O=[m,L,(0,_.xD)()],c=IDBKeyRange.bound(A,O),u="prev",_.F("use_fifo_for_networkless")&&(u="next"),h=void 0,J=m==="NEW"?"readwrite":"readonly",_.F("use_readonly_for_get_most_recent_by_status_killswitch")&&(J="readwrite"),
N.yield(_.CL(W,["LogsRequestsStore"],{mode:J,enableRetries:!0},function(D){return _.XH(D.objectStore("LogsRequestsStore").index("newRequestV2"),{query:c,direction:u},function(t){t.getValue()&&(h=t.getValue(),m==="NEW"&&(h.status="QUEUED",t.update(h)))})}),3);
K.ticks.tc=(0,_.xD)();zOd(K);return N.return(h)})};
MwP=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(Eg(G),2);K=W.yieldResult;return W.return(_.CL(K,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){var A=L.objectStore("LogsRequestsStore");return A.get(m).then(function(O){if(O)return O.status="QUEUED",A.put(O).then(function(){return O})})}))})};
TTd=function(m,G,K,W){K=K===void 0?!0:K;var L;return _.Y(function(A){if(A.nextAddress==1)return A.yield(Eg(G),2);L=A.yieldResult;return A.return(_.CL(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(O){var c=O.objectStore("LogsRequestsStore");return c.get(m).then(function(u){return u?(u.status="NEW",K&&(u.sendCount+=1),W!==void 0&&(u.options.compress=W),c.put(u).then(function(){return u})):$D.resolve(void 0)})}))})};
myG=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(Eg(G),2);K=W.yieldResult;return W.return(K.delete("LogsRequestsStore",m))})};
iN6=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(Eg(m),2);G=W.yieldResult;K=(0,_.xD)()-2592E6;return W.yield(_.CL(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){return Z_(L.objectStore("LogsRequestsStore"),{},function(A){if(A.getValue().timestamp<=K)return A.delete().then(function(){return A.continue()})})}),0)})};
Gkd=function(){_.Y(function(m){return m.yield(SvJ("LogsDatabaseV2"),0)})};
zOd=function(m){_.F("nwl_csi_killswitch")||hOs("networkless_performance",m,{sampleRate:1})};
_.W5F=function(m){return _.kD(K5o(),m)};
L5v=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(_.W5F(m),2);G=W.yieldResult;K=(0,_.xD)()-2592E6;return W.yield(_.CL(G,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){return Z_(L.objectStore("SWHealthLog"),{},function(A){if(A.getValue().timestamp<=K)return A.delete().then(function(){return A.continue()})})}),0)})};
A$d=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(_.W5F(m),2);G=K.yieldResult;return K.yield(G.clear("SWHealthLog"),0)})};
_.HG=function(m,G,K,W,L,A,O){L=L===void 0?"":L;A=A===void 0?!1:A;O=O===void 0?!1:O;if(m)if(K&&!oG("cobalt"))_.V3(new _.cw("Legacy referrer-scrubbed ping detected")),m&&w8M(m,void 0,{scrubReferrer:!0});else if(L)Cdf(m,G,"POST",L,W);else if(_.E8("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||W||O)Cdf(m,G,"GET","",W,void 0,A,O);else{b:{try{c:{var c=new gEd({url:m});if(c.urlParamValues_.dsh==="1")var u=null;else{var h=c.urlParamValues_.ae;if(h==="1"){var J=c.urlParamValues_.adurl;if(J)try{u={version:3,directUrl:decodeURIComponent(J),
asyncUrl:t1o(c.JSC$9783_url_,"act=1","ri=1",ONo(c))};break c}catch(a){}}u=h==="2"?{version:4,directUrl:t1o(c.JSC$9783_url_,"dct=1","suid="+c.suid_,"ri=1"),asyncUrl:t1o(c.JSC$9783_url_,"act=1","ri=1","suid="+c.suid_)}:null}}if(u){var N=_.f6(m);var D=!(!N||!N.endsWith("/aclk")||_.TF(m,"ri")!=="1");break b}}catch(a){}D=!1}if(D){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(m,"")){var t=!0;break b}}catch(a){}t=!1}t?(G&&G(),K=!0):K=!1}else K=!1;K||w8M(m,G)}};
w8M=function(m,G,K){K=K===void 0?{}:K;var W=new Image,L=""+c$s++;Yhd[L]=W;W.onload=W.onerror=function(){G&&Yhd[L]&&G();delete Yhd[L]};
K.scrubReferrer&&(W.referrerPolicy="no-referrer");W.src=m};
IR=function(m,G){r$6(m,G==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
ums=function(m){var G;return((G=document.featurePolicy)==null?0:G.allowedFeatures().includes("attribution-reporting"))?m+"&nis=6":m+"&nis=5"};
had=function(m){if(!m)return!1;try{var G;if(((G=_.ds(m))==null?void 0:G.asm)==="4")return!0}catch(K){_.j1(K)}return!1};
r$6=function(m,G){G?(m=ums(m),_.HG(m,void 0,void 0,void 0,"",!0,!0)):_.HG(m)};
J$o=function(){p8d||(p8d=new _.bs("yt.offline"));return p8d};
NnV=function(m){if(_.F("offline_error_handling")){var G=J$o().get("errors",!0)||{};G[m.message]={name:m.name,stack:m.stack};m.level&&(G[m.message].level=m.level);J$o().set("errors",G,2592E3,!0)}};
tAM=function(m,G,K,W){W=W===void 0?!1:W;G=_.F("web_fp_via_jspb")?Object.assign({},G):G;_.F("use_cfr_monitor")&&DyV(m,G);if(_.F("use_request_time_ms_header"))G.headers&&e1(m)&&(G.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.xD)())));else{var L;if((L=G.postParams)==null?0:L.requestTimeMs)G.postParams.requestTimeMs=Math.round((0,_.xD)())}K&&Object.keys(G).length===0?_.HG(m):G.compress?G.postBody?(typeof G.postBody!=="string"&&(G.postBody=JSON.stringify(G.postBody)),EeV(m,G.postBody,
G,_.ix,W)):EeV(m,JSON.stringify(G.postParams),G,PdJ,W):_.ix(m,G)};
F5V=function(m,G){_.F("use_event_time_ms_header")&&e1(m)&&(G.headers||(G.headers={}),G.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.xD)())));return G};
_.aJd=function(){QCd||(QCd=new _.k3({logOfflineErrors:!0,enablePolling:!0}));return QCd};
DyV=function(m,G){var K=G.onError?G.onError:function(){};
G.onError=function(L,A){CS().requestComplete(m,!1);K(L,A)};
var W=G.onSuccess?G.onSuccess:function(){};
G.onSuccess=function(L,A){CS().requestComplete(m,!0);W(L,A)}};
_.oEV=function(){return _.eh(document.location.toString())!=="www.youtube-nocookie.com"};
_.vEP=function(){return _.Cn("ytNetworklessLoggingInitializationOptions")?_.nEd.isNwlInitialized:_.bNo};
$yv=function(m,G){if(_.F("polymer_on_demand_shady_dom")){var K;var W=(K=m.__shady_native_firstElementChild)!=null?K:m.firstElementChild}else W=m.firstElementChild;for(;W;){if(m=G(W)?W:$yv(W,G))return m;W=W.nextElementSibling}return null};
_.qhv=function(){var m=document;if("visibilityState"in m)return m.visibilityState;var G=sCP+"VisibilityState";if(G in m)return m[G]};
_.EEJ=function(m,G){var K;Vl(m,function(W){K=G[W];return!!K});
return K};
_.dW=function(m){var G=HNJ(m);G?G.focus(void 0):_.ZD(m)};
HNJ=function(m){return(m=$yv(m,function(G){return _.eU(G)?IJo(G)&&!!G.offsetParent:!1}))?m:null};
_.ZD=function(m,G){m.hasAttribute("tabindex")||m.setAttribute("tabindex","-1");m.focus(G)};
jCP=function(m,G,K,W){W=W===void 0?{}:W;m.addEventListener&&(G!="mouseenter"||"onmouseenter"in document?G!="mouseleave"||"onmouseenter"in document?G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"):G="mouseout":G="mouseover");return _.Y2.findKey(PG,function(L){var A=typeof L[4]==="boolean"&&L[4]==!!W,O=_.Ud(L[4])&&_.Ud(W)&&_.Y2.equals(L[4],W);return!!L.length&&L[0]==m&&L[1]==G&&L[2]==K&&(A||O)})};
_.er=function(m,G,K,W){W=W===void 0?{}:W;if(!m||!m.addEventListener&&!m.attachEvent)return"";var L=jCP(m,G,K,W);if(L)return L;L=++kkd.count+"";var A=!(G!="mouseenter"&&G!="mouseleave"||!m.addEventListener||"onmouseenter"in document);var O=A?function(c){c=new yl(c);if(!_.N7(c.relatedTarget,function(u){return u==m},!0))return c.currentTarget=m,c.type=G,K.call(m,c)}:function(c){c=new yl(c);
c.currentTarget=m;return K.call(m,c)};
O=_.kS(O);m.addEventListener?(G=="mouseenter"&&A?G="mouseover":G=="mouseleave"&&A?G="mouseout":G=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(G="MozMousePixelScroll"),CKo()||typeof W==="boolean"?m.addEventListener(G,O,W):m.addEventListener(G,O,!!W.capture)):m.attachEvent("on"+G,O);PG[L]=[m,G,K,O,W];return L};
_.ZNo=function(m,G,K){var W=W===void 0?{}:W;var L=_.er(m,G,function(){_.VAv(L);K.apply(m,arguments)},W)};
_.VAv=function(m){m&&(typeof m=="string"&&(m=[m]),_.Z0(m,function(G){if(G in PG){var K=PG[G],W=K[0],L=K[1],A=K[3];K=K[4];W.removeEventListener?CKo()||typeof K==="boolean"?W.removeEventListener(L,A,K):W.removeEventListener(L,A,!!K.capture):W.detachEvent&&W.detachEvent("on"+L,A);delete PG[G]}}))};
fS=function(m){this.callback_=m;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(m=0;m<4;m++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.er(window,"mousemove",(0,_.AO)(this.onMouseMove_,this));this.timerId_=_.Tf((0,_.AO)(this.checkPosition_,this),25)};
y$f=function(){var m={};var G=m.preferMobileEvents===void 0?!1:m.preferMobileEvents;m=m.enableScrollEventListener===void 0?!0:m.enableScrollEventListener;if(_.Cn("_lact",window)==null){var K=parseInt(_.E8("LACT"),10);K=isFinite(K)?Date.now()-Math.max(K,0):-1;_.yj("_lact",K,window);_.yj("_fact",K,window);K==-1&&_.x3();dyd(window,G,m);new fS(function(){PKG("mouse",100)})}};
dyd=function(m,G,K){G=G===void 0?!1:G;K=K===void 0?!0:K;_.er(m.document,"keydown",_.x3);_.er(m.document,"keyup",_.x3);_.er(m.document,"mousedown",_.x3);_.er(m.document,"mouseup",_.x3);G?_.er(m,"touchmove",function(){PKG("touchmove",200)},{passive:!0}):(_.er(m,"resize",function(){PKG("resize",200)}),K&&_.er(m,"scroll",function(){PKG("scroll",200)}));
_.er(m.document,"touchstart",_.x3,{passive:!0});_.er(m.document,"touchend",_.x3,{passive:!0})};
PKG=function(m,G){eao[m]||(eao[m]=!0,_.Fu.addLowPriorityJob(function(){_.x3();eao[m]=!1},G))};
_.x3=function(){_.Cn("_lact",window)==null&&y$f();var m=Date.now();_.yj("_lact",m,window);_.Cn("_fact",window)==-1&&_.yj("_fact",m,window);(m=_.Cn("ytglobal.ytUtilActivityCallback_"))&&m()};
_.Xu=function(){var m=_.Cn("_lact",window);return m==null?-1:Math.max(Date.now()-m,0)};
_.z6=function(m,G,K){var W=_.Sr();if(W&&G){var L=W.subscribe(m,function(){var A=arguments,O=function(){RR[L]&&G.apply&&typeof G.apply=="function"&&G.apply(K||window,A)};
try{_.fJo[m]?O():_.MC(O,0)}catch(c){_.j1(c)}},K);
RR[L]=!0;Ug[m]||(Ug[m]=[]);Ug[m].push(L);return L}return 0};
_.xyM=function(m){var G=_.Sr();G&&(typeof m==="number"?m=[m]:typeof m==="string"&&(m=[parseInt(m,10)]),_.Z0(m,function(K){G.unsubscribeByKey(K);delete RR[K]}))};
_.X8G=function(m,G){var K=_.Sr();K&&K.publish.apply(K,arguments)};
_.Rav=function(m){var G=_.Sr();if(G)if(G.clear(m),m)Sho(m);else for(var K in Ug)Sho(K)};
_.Sr=function(){return _.Ks.ytPubsubPubsubInstance};
Sho=function(m){Ug[m]&&(m=Ug[m],_.Z0(m,function(G){RR[G]&&delete RR[G]}),m.length=0)};
Uy9=function(){var m,G;return"h5vcc"in ls&&((m=ls.h5vcc.traceEvent)==null?0:m.traceBegin)&&((G=ls.h5vcc.traceEvent)==null?0:G.traceEnd)?1:"performance"in ls&&ls.performance.mark&&ls.performance.measure?2:0};
zaV=function(m){var G=Uy9();switch(G){case 1:ls.h5vcc.traceEvent.traceBegin("YTLR",m);break;case 2:ls.performance.mark(m+"-start");break;case 0:break;default:_.GG(G,"unknown trace type")}};
lJG=function(m){var G=Uy9();switch(G){case 1:ls.h5vcc.traceEvent.traceEnd("YTLR",m);break;case 2:G=m+"-start";var K=m+"-end";ls.performance.mark(K);ls.performance.measure(m,G,K);break;case 0:break;default:_.GG(G,"unknown trace type")}};
BnG=function(m){var G,K;(K=(G=window).onerror)==null||K.call(G,m.message,"",0,0,m)};
MAG=function(m){if(_.F("web_lifecycle_error_handling_killswitch"))return m();try{return m()}catch(G){BnG(G)}};
Tnd=function(m){return[m.auth===void 0?"undefined":m.auth,m.isJspb===void 0?"undefined":m.isJspb,m.cttAuthInfo===void 0?"undefined":m.cttAuthInfo,m.tier===void 0?"undefined":m.tier].join("/")};
_.Q=function(m,G){if(m)return m[G.name]};
Mq=function(){var m=_.Cn("yt.logging.ims");m||(m=new BG,_.yj("yt.logging.ims",m));return m};
ggF=function(m,G){if(m.endpoint==="log_event"){mWf(m);var K=izv(m),W=G$f(m.payload)||"",L=Kr9(W),A=200;if(L){if(L.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;A=WrP(L.tier);if(A===400){LrF(m,G);return}}T6[K]=!0;K={cttAuthInfo:K,isJspb:!1,tier:A};Mq().storePayload(K,m.payload);Aos(G,!1,K,wpF(W))}};
coJ=function(m,G,K){if(G.endpoint==="log_event"){mWf(void 0,G);var W=izv(G,!0),L=Kr9(m),A=200;if(L){if(L.enabled===!1&&!_.F("web_payload_policy_disabled_killswitch"))return;A=WrP(L.tier);if(A===400){OzV(m,G,K);return}}T6[W]=!0;W={cttAuthInfo:W,isJspb:!0,tier:A};Mq().storePayload(W,dz(G.payload));Aos(K,!0,W,wpF(m))}};
Aos=function(m,G,K,W){G=G===void 0?!1:G;W=W===void 0?!1:W;m&&(mm=new m);m=_.U8("tvhtml5_logging_max_batch_ads_fork")||_.U8("tvhtml5_logging_max_batch")||_.U8("web_logging_max_batch")||100;var L=(0,_.xD)(),A=YTo(G,K.tier),O=A.lastDebounceQueueFromLogTimeMs;W&&(A.useVideoStatsEndPoint=!0);W=0;K&&(W=Mq().getSequenceCount(K));var c=function(){rod({writeThenSend:!0},G,K.tier)};
W>=1E3?c():W>=m?ukP||(ukP=hzf(function(){c();ukP=void 0},0)):L-O>=10&&(ppv(G,K.tier),A.lastDebounceQueueFromLogTimeMs=L)};
LrF=function(m,G){if(m.endpoint==="log_event"){_.F("more_accurate_gel_parser")&&Mq().storePayload({isJspb:!1},m.payload);mWf(m);var K=izv(m),W=new Map;W.set(K,[m.payload]);var L=G$f(m.payload)||"";G&&(mm=new G);return new _.iO(function(A,O){mm&&mm.isReady()?JoF(W,mm,A,O,{bypassNetworkless:!0},!0,wpF(L)):A()})}};
OzV=function(m,G,K){if(G.endpoint==="log_event"){mWf(void 0,G);var W=izv(G,!0),L=new Map;L.set(W,[dz(G.payload)]);K&&(mm=new K);return new _.iO(function(A){mm&&mm.isReady()?NqM(L,mm,A,{bypassNetworkless:!0},!0,wpF(m)):A()})}};
izv=function(m,G){var K="";if(m.dangerousLogToVisitorSession)K="visitorOnlyApprovedKey";else if(m.cttAuthInfo){if(G===void 0?0:G){G=m.cttAuthInfo.token;K=m.cttAuthInfo;var W=new DW9;K.videoId?W.setVideoId(K.videoId):K.playlistId&&Gi(W,2,t5d,sO(K.playlistId));FrG[G]=W}else G=m.cttAuthInfo,K={},G.videoId?K.videoId=G.videoId:G.playlistId&&(K.playlistId=G.playlistId),QLV[m.cttAuthInfo.token]=K;K=m.cttAuthInfo.token}return K};
rod=function(m,G,K){m=m===void 0?{}:m;G=G===void 0?!1:G;new _.iO(function(W,L){var A=YTo(G,K),O=A.useVideoStatsEndPoint;A.useVideoStatsEndPoint=!1;agG(A.queueTimer);agG(A.queueMaxTimer);A.queueMaxTimer=0;mm&&mm.isReady()?K===void 0&&_.F("enable_web_tiered_gel")?ogG(W,L,m,G,300,O):ogG(W,L,m,G,K,O):(ppv(G,K),W())})};
ogG=function(m,G,K,W,L,A){var O=mm;K=K===void 0?{}:K;W=W===void 0?!1:W;L=L===void 0?200:L;A=A===void 0?!1:A;var c=new Map,u=new Map,h={isJspb:W,cttAuthInfo:void 0,tier:L},J={isJspb:W,cttAuthInfo:void 0};if(W){G=_.g(Object.keys(T6));for(L=G.next();!L.done;L=G.next())L=L.value,u=_.F("enable_web_tiered_gel")?Mq().smartExtractMatchingEntries({keys:[h,J],sizeLimit:1E3}):Mq().extractMatchingEntries({isJspb:!0,cttAuthInfo:L}),u.length>0&&c.set(L,u),(_.F("web_fp_via_jspb_and_json")&&K.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&
delete T6[L];NqM(c,O,m,K,!1,A)}else{c=_.g(Object.keys(T6));for(h=c.next();!h.done;h=c.next())h=h.value,J=_.F("enable_web_tiered_gel")?Mq().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:h,tier:L},{isJspb:!1,cttAuthInfo:h}],sizeLimit:1E3}):Mq().extractMatchingEntries({isJspb:!1,cttAuthInfo:h}),J.length>0&&u.set(h,J),(_.F("web_fp_via_jspb_and_json")&&K.writeThenSend||!_.F("web_fp_via_jspb_and_json"))&&delete T6[h];JoF(u,O,m,G,K,!1,A)}};
ppv=function(m,G){m=m===void 0?!1:m;G=G===void 0?200:G;var K=function(){rod({writeThenSend:!0},m,G)},W=YTo(m,G),L=W===ngP||W===bzs?5E3:vgd;
_.F("web_gel_timeout_cap")&&!W.queueMaxTimer&&(L=hzf(function(){K()},L),W.queueMaxTimer=L);
agG(W.queueTimer);L=_.E8("LOGGING_BATCH_TIMEOUT",_.U8("web_gel_debounce_ms",1E4));_.F("shorten_initial_gel_batch_timeout")&&$WF&&(L=sL9);L=hzf(function(){_.U8("gel_min_batch_size")>0?Mq().getSequenceCount({cttAuthInfo:void 0,isJspb:m,tier:G})>=qTv&&K():K()},L);
W.queueTimer=L};
JoF=function(m,G,K,W,L,A,O){L=L===void 0?{}:L;var c=Math.round((0,_.xD)()),u=m.size,h=Eg9(O);m=_.g(m);var J=m.next();for(O={};!J.done;O={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},J=m.next()){var N=_.g(J.value);J=N.next().value;N=N.next().value;O.batchRequest=_.Y2.unsafeClone({context:_.Or6(G.config_||_.Sn())});if(!_.XP(N)&&!_.F("throw_err_when_logevent_malformed_killswitch")){W();break}O.batchRequest.events=N;
(N=QLV[J])&&HzV(O.batchRequest,J,N);delete QLV[J];O.dangerousLogToVisitorSession=J==="visitorOnlyApprovedKey";IgF(O.batchRequest,c,O.dangerousLogToVisitorSession);jLf(L);O.onSuccess$jscomp$3=function(D){_.F("start_client_gcf")&&_.Fu.addLowPriorityJob(function(){return _.Y(function(t){return t.yield(k$9(D),0)})});
u--;u||K()};
O.networkFailures=0;O.onError$jscomp$5=function(D){return function(){D.networkFailures++;if(L.bypassNetworkless&&D.networkFailures===1)try{fhJ(G,h,D.batchRequest,C_F({writeThenSend:!0},D.dangerousLogToVisitorSession,D.onSuccess$jscomp$3,D.onError$jscomp$5,A)),$WF=!1}catch(t){_.j1(t),W()}u--;u||K()}}(O);
try{fhJ(G,h,O.batchRequest,C_F(L,O.dangerousLogToVisitorSession,O.onSuccess$jscomp$3,O.onError$jscomp$5,A)),$WF=!1}catch(D){_.j1(D),W()}}};
NqM=function(m,G,K,W,L,A){W=W===void 0?{}:W;var O=Math.round((0,_.xD)()),c={value:m.size},u=new Map([].concat(_.Bz(m)));u=_.g(u);for(var h=u.next();!h.done;h=u.next()){var J=_.g(h.value).next().value,N=m.get(J);h=new Kc;var D=G.config_||_.Sn(),t=new W$,a=new V5P;_.LB(a,1,D.innertubeContextHostLanguage);_.LB(a,2,D.innertubeContextGeoLocation);_.UV(a,16,D.innertubeContextClientNameFieldNumber);_.LB(a,17,D.innertubeContextClientVersion);if(D.innertubeContextClientConfigInfo){var v=D.innertubeContextClientConfigInfo,
I=new lx;v.coldConfigData&&_.LB(I,1,v.coldConfigData);v.appInstallData&&_.LB(I,6,v.appInstallData);v.coldHashData&&_.LB(I,3,v.coldHashData);v.hotHashData&&I.setHotHashData(v.hotHashData);_.ko(a,62,I)}(v=_.Ks.devicePixelRatio)&&v!=1&&_.zd(a,65,_.KP(v));v=bWJ();v!==""&&_.LB(a,54,v);v=$c6();if(v.length>0){I=new Zzd;for(var Z=0;Z<v.length;Z++){var k=new Lc;k.setKey(v[Z].key);Gi(k,2,dWG,sO(v[Z].value));Au(I,15,Lc,k)}_.ko(t,5,I)}Koo(D,a);WoP(t);Lov(a);AKd(D,a);weo(a);_.F("start_client_gcf")&&gCV(a);_.E8("DELEGATED_SESSION_ID")&&
!_.F("pageid_as_header_web")&&(D=new wC,_.LB(D,3,_.E8("DELEGATED_SESSION_ID")));!_.F("fill_delegate_context_in_gel_killswitch")&&(v=_.E8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(I=_.RG(t,wC,3)||new wC,D=t,v=_.LB(I,18,v),_.ko(D,3,v));D=a;v=_.g(Object.entries(_.ds(_.E8("DEVICE",""))));for(I=v.next();!I.done;I=v.next())Z=_.g(I.value),I=Z.next().value,Z=Z.next().value,I==="cbrand"?_.LB(D,12,Z):I==="cmodel"?_.LB(D,13,Z):I==="cbr"?_.LB(D,87,Z):I==="cbrver"?_.LB(D,88,Z):I==="cos"?_.LB(D,18,
Z):I==="cosver"?_.LB(D,19,Z):I==="cplatform"&&_.UV(D,42,KdG(Z));t.setClient(a);_.ko(h,1,t);if(a=FrG[J])a:{if(_.Bt(a,gC(a,t5d,1)))t=1;else if(a.getPlaylistId())t=2;else break a;_.ko(h,4,a);a=h.getContext()||new W$;D=_.RG(a,wC,3)||new wC;v=new Or;v.setToken(J);_.UV(v,1,t);Au(D,12,Or,v);_.ko(a,3,D)}delete FrG[J];J=J==="visitorOnlyApprovedKey";P_V()||_.c$(h,2,O);!J&&(t=_.E8("EVENT_ID"))&&(a=yos(),D=new ezd,_.LB(D,1,t),_.c$(D,2,a),_.ko(h,5,D));jLf(W);if(_.F("jspb_serialize_with_worker")&&(t=_.twG())&&
W.writeThenSend){_.fgJ.set(xWd,{client:G,resolve:K,networklessOptions:W,isIsolated:L,useVSSEndpoint:A,dangerousLogToVisitorSession:J,requestsOutstanding:c});t.postMessage({op:"gelBatchToSerialize",batchRequest:dz(h),clientEvents:N,key:xWd});xWd++;break}if(N){t=[];for(a=0;a<N.length;a++)try{t.push(new Yz(N[a]))}catch(z){_.j1(new _.cw("Transport failed to deserialize "+String(N[a])))}N=t}else N=[];N=_.g(N);for(t=N.next();!t.done;t=N.next())Au(h,3,Yz,t.value);N={startTime:(0,_.xD)(),ticks:{},infos:{}};
h=h.serialize();N.ticks.geljspc=(0,_.xD)();_.F("log_jspb_serialize_latency")&&hOs("gel_jspb_serialize",N,{sampleRate:.1});_.XpP(h,G,K,W,L,A,J,c)}};
_.XpP=function(m,G,K,W,L,A,O,c){W=W===void 0?{}:W;c=c===void 0?{value:0}:c;A=Eg9(A);W=C_F(W,O,function(u){_.F("start_client_gcf")&&_.Fu.addLowPriorityJob(function(){return _.Y(function(h){return h.yield(k$9(u),0)})});
c.value--;c.value||K()},function(){c.value--;
c.value||K()},L);
W.headers["Content-Type"]="application/json+protobuf";W.postBodyFormat="JSPB";W.postBody=m;fhJ(G,A,"",W);$WF=!1};
jLf=function(m){_.F("always_send_and_write")&&(m.writeThenSend=!1)};
C_F=function(m,G,K,W,L){m={retry:!0,onSuccess:K,onError:W,networklessOptions:m,dangerousLogToVisitorSession:G,bypassMonitoring:!!L,headers:{},postBodyFormat:"",postBody:"",compress:_.F("compress_gel")||_.F("compress_gel_lr")};P_V()&&(m.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.xD)())));return m};
IgF=function(m,G,K){P_V()||(m.requestTimeMs=String(G));_.F("unsplit_gel_payloads_in_logs")&&(m.unsplitGelPayloadsInLogs=!0);!K&&(G=_.E8("EVENT_ID"))&&(K=yos(),m.serializedClientEventId={serializedEventId:G,clientCounter:String(K)})};
yos=function(){var m=_.E8("BATCH_CLIENT_COUNTER")||0;m||(m=Math.floor(Math.random()*65535/2));m++;m>65535&&(m=1);_.qC("BATCH_CLIENT_COUNTER",m);return m};
HzV=function(m,G,K){if(K.videoId)var W="VIDEO";else if(K.playlistId)W="PLAYLIST";else return;m.credentialTransferTokenTargetId=K;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:G,scope:W}]};
mWf=function(m,G){var K=_.zf("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Cn("yt.logging.transport.enableScrapingForTest"))if(K)STd=[],_.yj("yt.logging.transport.enableScrapingForTest",!0),_.yj("yt.logging.transport.scrapedPayloadsForTesting",STd),_.yj("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.yj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.yj("yt.logging.transport.scrapeClientEvent",!0);else return;K=_.Cn("yt.logging.transport.scrapedPayloadsForTesting");var W=_.Cn("yt.logging.transport.payloadToScrape");G&&(G=_.Cn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(G.payload)())&&K.push(G);G=_.Cn("yt.logging.transport.scrapeClientEvent");if(W&&W.length>=1)for(var L=0;L<W.length;L++)if(m&&m.payload[W[L]])if(G)K.push(m.payload);else{var A=void 0;K.push(((A=m)==null?void 0:A.payload)[W[L]])}_.yj("yt.logging.transport.scrapedPayloadsForTesting",
K)};
P_V=function(){return _.F("use_request_time_ms_header")||_.F("lr_use_request_time_ms_header")};
hzf=function(m,G){return _.F("transport_use_scheduler")===!1?_.MC(m,G):_.F("logging_avoid_blocking_during_navigation")||_.F("lr_logging_avoid_blocking_during_navigation")?_.rC(_.Fu,function(){if(_.Rzd().currentState==="none")m();else{var K={};_.Rzd().install((K.none={callback:m},K))}},G):_.rC(_.Fu,m,G)};
agG=function(m){_.F("transport_use_scheduler")?_.Fu.cancelJob(m):_.m1(m)};
k$9=function(m){var G,K,W,L,A,O,c,u,h,J;return _.Y(function(N){return N.nextAddress==1?(W=(G=m)==null?void 0:(K=G.responseContext)==null?void 0:K.globalConfigGroup,L=_.Q(W,UWP),O=(A=W)==null?void 0:A.hotHashData,c=_.Q(W,zzV),h=(u=W)==null?void 0:u.coldHashData,(J=_.xS().resolve(_.fn(uO)))?O?L?N.yield(lg9(J,O,L),2):N.yield(lg9(J,O),2):N.jumpTo(2):N.return()):h?c?N.yield(Bqd(J,h,c),0):N.yield(Bqd(J,h),0):N.jumpTo(0)})};
YTo=function(m,G){G=G===void 0?200:G;return m?G===300?ngP:M5d:G===300?bzs:TqJ};
Kr9=function(m){if(_.F("enable_web_tiered_gel")){m=mB9[m||""];var G,K,W,L=_.xS().resolve(_.fn(uO))==null?void 0:(G=hu())==null?void 0:(K=G.loggingHotConfig)==null?void 0:(W=K.eventLoggingConfig)==null?void 0:W.payloadPolicies;if(L)for(G=0;G<L.length;G++)if(L[G].payloadNumber===m)return L[G]}};
G$f=function(m){m=Object.keys(m);m=_.g(m);for(var G=m.next();!G.done;G=m.next())if(G=G.value,mB9[G])return G};
WrP=function(m){switch(m){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}};
wpF=function(m){return m==="gelDebuggingEvent"};
Eg9=function(m){return(m===void 0?0:m)&&_.F("vss_through_gel_video_stats")?"video_stats":"log_event"};
Ju=function(m,G,K,W){W=W===void 0?{}:W;var L={},A=Math.round(W.timestamp||(0,_.xD)());L.eventTimeMs=A<Number.MAX_SAFE_INTEGER?A:0;L[m]=G;m=_.Xu();L.context={lastActivityMs:String(W.timestamp||!isFinite(m)?-1:m)};W.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")&&(m=L.context,G=W.sequenceGroup,G={index:iQG(G),groupKey:G},m.sequence=G,W.endOfSequence&&delete pc[W.sequenceGroup]);_.F("web_tag_automated_log_events")&&(L.context.automatedLogEventSource=W.automatedLogEventSource);(W.sendIsolatedPayload?
LrF:ggF)({endpoint:"log_event",payload:L,cttAuthInfo:W.cttAuthInfo,dangerousLogToVisitorSession:W.dangerousLogToVisitorSession},K)};
iQG=function(m){pc[m]=m in pc?pc[m]+1:0;return pc[m]};
_.Fx=function(m,G,K){K=K===void 0?{}:K;var W=tu;_.IP("ytLoggingEventsDefaultDisabled",!1)&&tu===tu&&(W=null);Ju(m,G,W,K)};
_.Qb=function(){if(_.F("web_fp_via_jspb")){var m=!0;m=m===void 0?!1:m;var G=G_d;G_d=[];if(G){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,m?Ju(K.payloadName,K.payload,tu,K.options):_.Fx(K.payloadName,K.payload,K.options)}rod(void 0,!0);if(!_.F("web_fp_via_jspb_and_json"))return}rod(void 0,!1)};
Kns=function(m,G){var K;if((K=G)==null?0:K.componentStack)return G;if(m=m.componentStack)G||(G={}),G.componentStack=m;return G};
Wnd=function(){_.Z0(_.E8("ERRORS")||[],function(m){_.am.apply(null,m)});
_.qC("ERRORS",[])};
_.om=function(m){_.am(m)};
_.nc=function(m){_.am(m,"WARNING")};
Lnd=function(m){m instanceof Error?_.am(m):(m=_.Ud(m)?JSON.stringify(m):String(m),m=new _.cw(m),m.name="RejectedPromiseError",_.nc(m))};
A3f=function(m,G,K,W,L,A){G=G===void 0?"Unknown file":G;K=K===void 0?0:K;var O=!1,c=WQF("log_window_onerror_fraction");if(c&&Math.random()<c)O=!0;else{c=document.getElementsByTagName("script");for(var u=0,h=c.length;u<h;u++)if(c[u].src.indexOf("/debug-")>0){O=!0;break}}O&&(O=!1,L?O=!0:(typeof m==="string"?c=m:ErrorEvent&&m instanceof ErrorEvent?(O=!0,c=m.message,G=m.filename,K=m.lineno,W=m.colno):(c="Unknown error",G="Unknown file",K=0),L=new _.cw(c),L.name="UnhandledWindowError",L.message=c,L.fileName=
G,L.lineNumber=K,isNaN(W)?delete L.columnNumber:L.columnNumber=W),_.F("wiz_enable_component_stack_propagation_killswitch")||(A=Kns(L,A)),A&&_.bO(L,A),O?_.am(L):_.nc(L))};
_.am=function(m,G,K,W,L,A,O,c){A=A===void 0?{}:A;A.name=K||_.E8("INNERTUBE_CONTEXT_CLIENT_NAME",1);A.version=W||_.E8("INNERTUBE_CONTEXT_CLIENT_VERSION");K=A;G=G===void 0?"ERROR":G;O=O===void 0?!1:O;G=G===void 0?"ERROR":G;O=O===void 0?!1:O;if(m&&(m.hasOwnProperty("level")&&m.level&&(G=m.level),_.F("console_log_js_exceptions")&&(W=[],W.push("Name: "+m.name),W.push("Message: "+m.message),m.hasOwnProperty("params")&&W.push("Error Params: "+JSON.stringify(m.params)),m.hasOwnProperty("args")&&W.push("Error args: "+
JSON.stringify(m.args)),W.push("File name: "+m.fileName),W.push("Stacktrace: "+m.stack),W=W.join("\n"),window.console.log(W,m)),!(wRG>=5))){W=[];L=_.g(gAd);for(A=L.next();!A.done;A=L.next()){A=A.value;try{A()&&W.push(A())}catch(I){}}W=[].concat(_.Bz(OQM),_.Bz(W));var u=c3P(m);L=u.message||"Unknown Error";A=u.name||"UnknownError";var h=u.stack||m.stacktrace||"Not available";if(h.startsWith(A+": "+L)){var J=h.split("\n");J.shift();h=J.join("\n")}J=u.lineNumber||"Not available";u=u.fileName||"Not available";
var N=0;if(m.hasOwnProperty("args")&&m.args&&m.args.length)for(var D=0;D<m.args.length&&!(N=Gvo(m.args[D],"params."+D,K,N),N>=500);D++);else if(m.hasOwnProperty("params")&&m.params){var t=m.params;if(typeof m.params==="object")for(D in t){if(t[D]){var a="params."+D,v=Ww(t[D]);K[a]=v;N+=a.length+v.length;if(N>500)break}}else K.params=Ww(t)}if(W.length)for(D=0;D<W.length&&!(N=Gvo(W[D],"params.context."+D,K,N),N>=500);D++);navigator.vendor&&!K.hasOwnProperty("vendor")&&(K["device.vendor"]=navigator.vendor);
D={message:L,name:A,lineNumber:J,fileName:u,stack:h,params:K,sampleWeight:1};K=Number(m.columnNumber);isNaN(K)||(D.lineNumber=D.lineNumber+":"+K);if(m.level==="IGNORED")m=0;else a:{m=YnG();K=_.g(m.messageWeights);for(W=K.next();!W.done;W=K.next())if(W=W.value,D.message&&D.message.match(W.messageRegExp)){m=W.weight;break a}m=_.g(m.callbackWeights);for(K=m.next();!K.done;K=m.next())if(K=K.value,K.callback(D)){m=K.weight;break a}m=1}D.sampleWeight=m;m=_.g(r3J);for(K=m.next();!K.done;K=m.next())if(K=
K.value,K.patternsForType[D.name])for(L=_.g(K.patternsForType[D.name]),W=L.next();!W.done;W=L.next())if(A=W.value,W=D.message.match(A.regexp)){D.params["params.error.original"]=W[0];L=A.groups;A={};for(J=0;J<L.length;J++)A[L[J]]=W[J+1],D.params["params.error."+L[J]]=W[J+1];D.message=K.messageFn(A);break}D.params||(D.params={});m=YnG();D.params["params.errorServiceSignature"]="msg="+m.messageWeights.length+"&cb="+m.callbackWeights.length;D.params["params.serviceWorker"]="false";_.Ks.document&&_.Ks.document.querySelectorAll&&
(D.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new v$(u9o,"sample")).constructor!==v$&&(D.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(D);if(D.sampleWeight!==0&&!hxd.has(D.message)){if(O)pRs(G===void 0?"ERROR":G,D);else{G=G===void 0?"ERROR":G;G==="ERROR"?($z.publish("handleError",D),_.F("record_app_crashed_web")&&J3V===0&&D.sampleWeight===1&&(J3V++,O={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},_.F("report_client_error_with_app_crash_ks")||
(O.systemHealth={crashData:{clientError:{logMessage:{message:D.message}}}}),_.Fx("appCrashed",O)),NHM++):G==="WARNING"&&$z.publish("handleWarning",D);if(_.F("kevlar_gel_error_routing")){O=G;c=c===void 0?{}:c;b:{m=_.g(DBd);for(K=m.next();!K.done;K=m.next())if(oG(K.value.toLowerCase())){m=!0;break b}m=!1}if(m)c=void 0;else{K={stackTrace:D.stack};D.fileName&&(K.filename=D.fileName);m=D.lineNumber&&D.lineNumber.split?D.lineNumber.split(":"):[];m.length!==0&&(m.length!==1||isNaN(Number(m[0]))?m.length!==
2||isNaN(Number(m[0]))||isNaN(Number(m[1]))||(K.lineNumber=Number(m[0]),K.columnNumber=Number(m[1])):K.lineNumber=Number(m[0]));m={level:"ERROR_LEVEL_UNKNOWN",message:D.message,errorClassName:D.name,sampleWeight:D.sampleWeight};O==="ERROR"?m.level="ERROR_LEVEL_ERROR":O==="WARNING"&&(m.level="ERROR_LEVEL_WARNNING");K={isObfuscated:!0,browserStackInfo:K};c.pageUrl=window.location.href;c.kvPairs=[];_.E8("FEXP_EXPERIMENTS")&&(c.experimentIds=_.E8("FEXP_EXPERIMENTS"));W=_.E8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");
if(!WQF("web_disable_gel_stp_ecatcher_killswitch")&&W)for(L=_.g(Object.keys(W)),A=L.next();!A.done;A=L.next())A=A.value,c.kvPairs.push({key:A,value:String(W[A])});if(W=D.params)for(L=_.g(Object.keys(W)),A=L.next();!A.done;A=L.next())A=A.value,c.kvPairs.push({key:"client."+A,value:String(W[A])});W=_.E8("SERVER_NAME");L=_.E8("SERVER_VERSION");W&&L&&(c.kvPairs.push({key:"server.name",value:W}),c.kvPairs.push({key:"server.version",value:L}));c={errorMetadata:c,stackTrace:K,logMessage:m}}c&&(_.Fx("clientError",
c),(O==="ERROR"||_.F("errors_flush_gel_always_killswitch"))&&_.Qb())}_.F("suppress_error_204_logging")||pRs(G,D)}try{hxd.add(D.message)}catch(I){}wRG++}}};
pRs=function(m,G){var K=G.params||{};m={urlParams:{a:"logerror",t:"jserror",type:G.name,msg:G.message.substr(0,250),line:G.lineNumber,level:m,"client.name":K.name},postParams:{url:_.E8("PAGE_NAME",window.location.href),file:G.fileName},method:"POST"};K.version&&(m["client.version"]=K.version);if(m.postParams){G.stack&&(m.postParams.stack=G.stack);G=_.g(Object.keys(K));for(var W=G.next();!W.done;W=G.next())W=W.value,m.postParams["client."+W]=K[W];if(K=_.E8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(G=
_.g(Object.keys(K)),W=G.next();!W.done;W=G.next())W=W.value,m.postParams[W]=K[W];(K=_.E8("LAVA_VERSION"))&&(m.postParams["lava.version"]=K);K=_.E8("SERVER_NAME");G=_.E8("SERVER_VERSION");K&&G&&(m.postParams["server.name"]=K,m.postParams["server.version"]=G)}_.ix(_.E8("ECATCHER_REPORT_HOST","")+"/error_204",m)};
_.tF6=function(m,G){G=G===void 0?"ERROR":G;var K=K===void 0?{}:K;var W=_.Cn("ytbin.polymer.shared.lib.tampering.info");W&&(W=W())&&(K["params.tamperingInfo"]=W.sort().join(","));_.am(m,G,void 0,void 0,!0,K)};
_.bO=function(m){var G=_.mb.apply(1,arguments);m.args||(m.args=[]);Array.isArray(m.args)&&m.args.push.apply(m.args,_.Bz(G))};
FnJ=function(m){m.level="IGNORED"};
QTP=function(m,G){OQM.push(m);G();OQM.pop()};
sr=function(m,G){for(var K in G)G.hasOwnProperty(K)&&(m=_.ir(m,K,G[K]));return m};
_.aEd=function(m,G,K){K=K===void 0?!1:K;if(!m)return null;if(m.adInfoDialogEndpoint||m.backstageImageUploadEndpoint||m.confirmDialogEndpoint||m.clientActionEndpoint||m.createBackstagePostDialogEndpoint||m.createCommentReplyDialogEndpoint||m.flowEndpoint||m.guideBuilderEndpoint||m.liveChatDialogEndpoint||m.modalEndpoint||m.openPopupAction||m.shareEndpoint||m.shareEntityEndpoint||m.showLiveChatItemEndpoint||m.subscriptionManagerEndpoint||m.unlimitedCreateFamilyEndpoint||m.unlimitedFamilyFlowEndpoint||
m.updateCommentDialogEndpoint||m.updateCommentReplyDialogEndpoint||m.userFeedbackEndpoint||m.videoEditorEndpoint||m.ypcCancelSurveyEndpoint)return G=_.U8("polymer_report_client_url_requested_rate"),!K&&Math.random()<G&&_.nc(new _.cw("urlForEndpoint used on client endpoint",m)),null;var W=_.U8("polymer_report_missing_web_navigation_endpoint_rate");if(m.liveChatEndpoint||m.liveChatReplayEndpoint)W=0;if(!m.commandMetadata&&!m.clickTrackingParams&&Math.random()<W){var L={},A;for(A in m)L[A]="1";_.nc(new _.cw("Missing navigation data",
L))}L="";if(m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.url)L=m.commandMetadata.webCommandMetadata.url;else if(m.searchEndpoint)Math.random()<W&&_.nc(new _.cw("Should not manually handle search",m)),L="/results?search_query="+encodeURIComponent(m.searchEndpoint.query).replace(/%20/g,"+"),m.searchEndpoint.params&&(L+="&sp="+m.searchEndpoint.params);else if(m.watchEndpoint)Math.random()<W&&_.nc(new _.cw("Should not manually handle watch",m)),L="/watch?v="+
m.watchEndpoint.videoId,m.watchEndpoint.playlistId&&(L+="&list="+m.watchEndpoint.playlistId),m.watchEndpoint.index&&(L+="&index="+m.watchEndpoint.index),m.watchEndpoint.startTimeSeconds&&(L+="&t="+m.watchEndpoint.startTimeSeconds);else if(m.browseEndpoint)W=m.browseEndpoint.browseId,(A=m.browseEndpoint.canonicalBaseUrl)?L=A:W&&(L=W.substr(0,2),L=L==="FE"?W==="FEwhat_to_watch"?"/":W==="FEmy_videos"?"/my_videos":"/feed/"+W.substr(2):L==="VL"?"/playlist?list="+W.substr(2):"/channel/"+W),L&&m.browseEndpoint.query&&
(L=sr(L+"/search",{query:m.browseEndpoint.query})),L&&m.browseEndpoint.params&&(L=sr(L,{params:m.browseEndpoint.params}));else{if(m.urlEndpoint)return m.urlEndpoint.url;m.signInEndpoint?(L="https://accounts.google.com/ServiceLogin",W={},_.Y2.extend(W,G||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),G=W):m.uploadEndpoint?L="//www.youtube.com/upload":m.liveChatEndpoint?(L=m.liveChatEndpoint,W=_.Y2.clone(L),_.Ud(L.continuation)&&(A=Object.keys(L.continuation)[0],
W.continuation=L.continuation[A].continuation),L=sr("/youtubei/v1/live_chat/get_live_chat",W)):m.liveChatReplayEndpoint?(L=_.Y2.clone(m.liveChatReplayEndpoint),L.currentPlayerState&&(_.Y2.extend(L,L.currentPlayerState),delete L.currentPlayerState),L=sr("/youtubei/v1/live_chat/get_live_chat_replay",L)):m.liveChatItemContextMenuEndpoint?L=sr("/youtubei/v1/live_chat/get_item_context_menu",m.liveChatItemContextMenuEndpoint):m.liveChatPurchaseMessageEndpoint?L=sr("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
m.liveChatPurchaseMessageEndpoint):m.openSuperStickerBuyFlowCommand?L=sr("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",m.openSuperStickerBuyFlowCommand):m.videoEditEndpoint?L=sr("/edit",{video_id:m.videoEditEndpoint.videoId}):m.liveDashboardEndpoint?L=m.liveDashboardEndpoint.videoId?sr("/live_dashboard",{v:m.liveDashboardEndpoint.videoId}):"/live_dashboard":m.signalNavigationEndpoint&&m.signalNavigationEndpoint.signal&&m.signalNavigationEndpoint.signal==="WEBCAM"?L="/webcam":m.getPdgBuyFlowCommand&&
(L=sr(m.getPdgBuyFlowCommand.buyflowApiPath,{params:m.getPdgBuyFlowCommand.params}))}return L||K?sr(L,G||{}):(_.nc(new _.cw("Error: Can't construct url for endpoint","keys:"+Object.keys(m).sort().join(","),m)),null)};
oAs=function(m){if(m){if(m.browseEndpoint)return!!m.browseEndpoint.nofollow;if(m.watchEndpoint)return!!m.watchEndpoint.nofollow;if(m.urlEndpoint)return!!m.urlEndpoint.nofollow}return!1};
_.bQd=function(m,G){var K=G+m,W=nA6.get(K);if(W)return W;m=G+"-"+m.replace(/([A-Z])/g,"-$1").toLowerCase();nA6.set(K,m);return m};
vAf=function(m){var G=_.vO(m,"action")||_.vO(m,"command")||_.vO(m,"endpoint");if(!G)return null;G=_.bQd(G,"yt");_.Q(m,_.qF)&&(G+="-"+_.Q(m,_.qF).signal.toLowerCase().replace(/_/g,"-"));return G};
EAM=function(m){try{var G=Object.keys(m)}catch(L){return[]}for(var K=0;K<G.length;K++){var W=G[K];if($BV.test(W)||sT9.test(W))return qnV(m[W])}return[]};
qnV=function(m){return m.command?[m.command]:m.onExecutionAction?[m.onExecutionAction]:m.onResponseReceivedCommand?[m.onResponseReceivedCommand]:m.updateFlowCommand?[m.updateFlowCommand]:m.clientActions?m.clientActions:m.action?[m.action]:m.actions||m.commands||m.onResponseReceivedActions||m.onResponseReceivedCommands||m.onResponseReceivedEndpoints||[]};
IEG=function(m,G){G=G===void 0?!1:G;var K=_.xS().resolve(_.fn(Er));K||(K=new HQd,_.xS().addProvider({provide:Er,useValue:K}));return K&&m&&!_.Y2.isEmpty(m)?K.getUrl(m,G):""};
jTv=function(m,G,K){K=K===void 0?"":K;if(G){m.data=G;var W=IEG(G);W?(Gp(m,W),oAs(G)||!e1(W)?m.rel="nofollow":m.removeAttribute("rel"),_.Q(G,_.H$)&&_.Q(G,_.H$).target==="TARGET_NEW_WINDOW"?m.target="_blank":K?m.target=K:m.removeAttribute("target")):(m.removeAttribute("href"),m.removeAttribute("rel"),m.removeAttribute("target"))}};
_.Cc=function(m,G){var K=ft;if(t_())k_V(m,function(){var A=_.mb.apply(0,arguments);H4(K,function(){G.apply(null,_.Bz(A))})});
else{var W=_.Im.getInstance(),L=KQG(G);TUo(function(){L.value=G});
_.bX(function(){var A={},O=_.jN(W,(A[m]=function(){var c=_.mb.apply(0,arguments);H4(K,function(){L.value.apply(L,_.Bz(c))})},A));
return function(){var c={};_.kz(W,(c[m]="",c),O)}})}};
Ck6=function(m){var G=ft,K=N2;return{getFn:function(){return function(W){if(!G.isDisposed){var L=function(){return m(W)};
QW(function(){return _.w_(L)},K)!==!0&&W.stopPropagation()}}}}};
VFv=function(m){if(typeof m.children==="function")return m.children(),null;m=_.g(m.children);for(var G=m.next();!G.done;G=m.next())G=G.value,G();return null};
ZQs=function(m){var G;return((G=m.prototype)==null?void 0:G.render)===void 0};
dBP=function(m){var G=Array.isArray(m.items)?m.items:Array.from(m.items);m=m.children;return(Array.isArray(G)?G:Array.from(G)).map(m)};
y3d=function(m,G,K){K=K===void 0?!1:K;QW(function(){return PkM(m,G,K)})};
PkM=function(m,G,K){var W=null;o2++;K=(K===void 0?0:K)?ex6:fEv;try{W=K(m,function(){Vb(G)}),bM(!1)}catch(L){throw bM(!0),L;
}return W===null?m:W};
Vb=function(m){if(m!==void 0&&m!==null)if(m instanceof ws)for(var G=CT;ZM()!=null&&tDG in ZM()&&G.contains(ZM());)yW();else if(Array.isArray(m))for(G=_.g(m),m=G.next();!m.done;m=G.next())Vb(m.value);else if(m instanceof dx||m instanceof Fs||"function"==typeof _.SJ&&m instanceof _.SJ)tlF(m.toString());else if(B4(m)){if(ZM()!==m){var K,W;G=(W=(K=N2)==null?void 0:K.name)!=null?W:"unknown";throw Error("jc`"+m.tagName+"`"+G);}yW()}else if(m!=null&&m.contentKind===m3||m instanceof KZ||kPd(m))for(G=Vlo(m),
G=Array.from(G.childNodes),G=_.g(G),m=G.next();!m.done;m=G.next())CT.appendChild(m.value),yW();else if(Re(m)&&(m=m.toString()),K=typeof m,K==="boolean"||K==="number"||K==="string")tlF(m);else if(typeof m==="function"){G=CT;var L=ZM();L&&(L._isSignalTextNode||L._isSafeOrSanitizedHtmlNode)||cj6(G,L,m);yW()}else if(m.type===dBP)Vb(m.type(Object.assign({},m.props,{children:m.children[0]})));else{if(typeof m.type==="string"){a:{m.__open||uSs(m.type,m.props.idomKey);L=CT;for(var A in m.props)if(m.props[A]!==
xBP){var O=m.props[A];K=fT;K.push(A);K.push(O)}A=Bg.attributes;A=A===void 0?ZC:A;O=CT;W=wlG(O);K=A;A=fT;W=W._attrsArr||(W._attrsArr=TlV(A.length));for(var c=!W.length||!1,u=0;u<A.length;u+=2){var h=A[u];if(c)W[u]=h;else if(W[u]!==h)break;var J=A[u+1];if(c||W[u+1]!==J)W[u+1]=J,D8G(O,h,J,K)}if(u<A.length||u<W.length){for(u=c=u;u<W.length;u+=2)dC[W[u]]=W[u+1];for(u=c;u<A.length;u+=2)c=A[u],h=A[u+1],dC[c]!==h&&D8G(O,c,h,K),W[u]=c,W[u+1]=h,delete dC[c];M_d(W,A.length);for(G in dC)D8G(O,G,void 0,K),delete dC[G]}G=
XRv;XRv=O=Xf.length;for(K=G;K<O;K+=5)(0,Xf[K])(Xf[K+1],Xf[K+2],Xf[K+3],Xf[K+4]);XRv=G;M_d(Xf,G);M_d(A,0);OJG(L,m.props,!0);if((m.props.skip||m.props.skipchildren)&&CT.hasChildNodes())P4=CT.lastChild;else{if(m.type==="style"&&Xld(m.children)===null){P4=CT.lastChild;G=void 0;break a}Vb(m.children)}hMd();m.__open&&(m.__open=!1);$86(L,m.props);G=L}return G}if(m.type===_.zL)Vb(m.children);else if(!Snf(m)){G=m;try{Rxf(G)}catch(N){m=N,(O=Bg.handleError)==null||O.call.apply(O,[Bg].concat(_.Bz(I2(m,(L=G.type)==
null?void 0:L.TAG_NAME))))}G.__open&&(hMd(),G.__open=!1)}}};
UB9=function(m,G){var K;ZQs(m)?K=new hw(G,m):K=new m(G);K.__type=m;K.__updateContext={nextState:K.state,isForced:!1};return K};
Rxf=function(m){var G=m.type,K=G.TAG_NAME;if(G===VFv)m.props.children=m.children,G(m.props);else{m.children.length>0&&(m.props.children=m.children);var W;(W=m.props).idomKey||(W.idomKey=G);if(K){var L=uSs(K,m.props.idomKey);m.__open=!0;var A=L.__instance}A||(A=UB9(G,m.props),A.props=null,L&&(L.__instance=A,A.el=L));var O;K=((O=A.__updateContext)!=null?O:{nextState:A.state,isForced:!1}).nextState;A.__updateContext=void 0;G.getDerivedStateFromProps&&(K=G.getDerivedStateFromProps(m.props,K));A.props=
m.props;A.state=K;O=function(){var c=A;rs.beforeRender(c);var u=c.render(c.props);u?(c.props.idomKey&&(u.props.idomKey=c.props.idomKey),c=u):c=void 0;if(u=c)if(u.__open=m.__open,c=Vb(u),m.__open=u.__open,!G.TAG_NAME)if(c)G.TAG_NAME=c.tagName.toLowerCase(),c.__instance=A,A.el=c;else{var h;if((h=A.hooks)==null?0:h.length){var J;(J=Bg.handleError)==null||J.call.apply(J,[Bg].concat(_.Bz(I2(Error("qd")))))}}A.didPatch();rs.didPatch(A)};
(K=A.functionComponent)?AaG(K,O,A.props.debugInstance):O()}};
Snf=function(m){var G=m.type;if(!ZQs(G)||G===VFv||G.componentType===DM)return!1;m.props.children=m.children.length>1?m.children:m.children[0];var K,W=(K=m.props.idomKey)!=null?K:m.type,L;if(ZM()&&((L=ZM()[WO])==null?void 0:L.key)===W){var A=ZM(),O=A[WO];if(!O)throw Error("ic`"+A.tagName);var c;(c=O.updateSignalsFromIdomProps)==null||c.call(O,m.props);zxv(O);return!0}if(lE9.has(G.name))throw c=G.name,G=(O=(A=N2)==null?void 0:A.name)!=null?O:"unknown",Error("hc`"+c+"`"+G);m.props.renderedFromIdom=!0;
(c=AaG(m.type,function(){return Wad(m.type,m.props)},m.props.debugInstance))&&BHP(c);
return!0};
MF6=function(m){for(var G=0;G<Aw(m).length;G++)yW()};
zxv=function(m){var G=THF();if(G)MF6(G);else for(var K=0;K<m.numNodes;K++)(G=THF())?MF6(G):yW()};
THF=function(){var m;return(m=ZM()[WO])==null?void 0:m.sourceDynamicRange};
BHP=function(m){m=ETf(m);m=Array.isArray(m)?m:[m];m=_.g(m);for(var G=m.next();!G.done;G=m.next())CT.insertBefore(G.value,ZM()),yW()};
mao=function(){var m=AjG(),G=d$v(function(){return{value:0}},[]);
return[G.value,function(K){if(uX!==null){var W;(W=Bg.handleError)==null||W.call.apply(W,[Bg].concat(_.Bz(I2(Error("rd")))))}G.value=typeof K==="function"?K(G.value):K;m.__updateContext={nextState:m.state,isForced:!0};K=SU(m.effectContext);W=lM(!1);try{if(m.el){var L,A={},O=(A.props=m.props,A.type=m.__type,A.children=(L=m.props.children)!=null?L:[],A[UZ]=!0,A);try{y3d(m.el,O,!0)}catch(h){var c,u;(u=Bg.handleError)==null||u.call.apply(u,[Bg].concat(_.Bz(I2(h,(c=m.__type)==null?void 0:c.TAG_NAME))))}}}finally{lM(W),
SU(K)}}]};
_.P$=function(m,G){var K=ft,W=function(L){H4(K,function(){G(L)})};
window.addEventListener(m,W,void 0);_.sZ(function(){window.removeEventListener(m,W,void 0)})};
_.eN=function(m){var G=ft;return function(K){var W,L=(W=m.observer)!=null?W:_.xS().resolve(yb);W=imd(K);var A=[];m.showOption&&A.push(L.observe(K,function(){H4(G,function(){m.visibilityCallback(!0,K)})},m.showOption));
m.hideOption&&A.push(L.observe(K,function(){H4(G,function(){m.visibilityCallback(!1,K)})},m.hideOption));
m.prescanOption&&m.prescanCallback&&A.push(L.observe(K,function(){H4(G,function(){m.prescanCallback()})},m.prescanOption));
var O;W.visibilityMonitorKeys=((O=W.visibilityMonitorKeys)!=null?O:[]).concat(A)}};
imd=function(m){var G;return(G=m.polymerController)!=null?G:m};
LFd=function(m,G){var K=Gnd;return _.r(_.zL,null,NWP(Bg.enableLazyTsx,function(){return _.r(KFd,{id:K,value:m,children:G})},function(){var W=WFv(K,m);
lE(W);W=SU(W);try{return G()}finally{SU(W)}}))};
KFd=function(m){var G=m.children;m=WFv(m.id,m.value);lE(m);m=SU(m);try{return _.r(_.zL,null,cO(G()))}finally{SU(m)}};
WFv=function(m,G){return Object.assign(Object.create(AX6),{id:m,contextValue:G})};
wYJ=function(m){var G,K=ft;_.v4(function(){var W=SU(K),L=lM(!G);try{if(G)y3d(G,m.children(),!0);else if(G=cO(m.children()),!(G instanceof Element))throw Error("sd");}finally{lM(L),SU(W)}},"i");
return G};
OmG=function(m){var G=new g1F;G.abort(m);return G.signal};
cXM=function(){if(this.aborted){var m;throw(m=this.reason)!=null?m:new DOMException("signal is aborted without reason","AbortError");}};
uwG=function(m){var G=new g1F;m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.aborted){G.abort(K.reason);break}else YUf.set(G.signal,G),rXM.add(K,G.signal);return G.signal};
h3f=function(){for(var m=_.g(rXM.get(this)),G=m.next();!G.done;G=m.next())YUf.get(G.value).abort(this.reason)};
pYJ=function(m){var G=new g1F;setTimeout(function(){G.abort(new DOMException("signal timed out","TimeoutError"))},m);
return G.signal};
JXv=function(){var m,G;return{promise:new Promise(function(K,W){m=K;G=W}),
resolve:m,reject:G}};
Dad=function(m){var G=JXv(),K=G.promise;NSG.set(m,{promise:K,resolve:G.resolve,reject:G.reject});fc||(fc=[],queueMicrotask(function(){var W=[].concat(_.Bz(fc));fc=null;var L=F6().loadMultiple(W);W=_.g(W);for(var A=W.next();!A.done;A=W.next())A=A.value,L[A].then(NSG.get(A).resolve,NSG.get(A).reject)}));
fc.push(m);return K};
tqs=function(){_.Lt.call(this)};
FFd=function(m,G){this.fn_=m;this.handler_=G};
xz=function(m,G){_.Lt.call(this);this.deps_=m;this.JSC$11355_id_=G;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
akd=function(m){m=m.buf.charCodeAt(m.pos++);return QxG[m]};
Xx=function(m){var G=0,K=0;do{var W=akd(m);G|=(W&31)<<K;K+=5}while(W&32);return G<0?G+4294967296:G};
o1f=function(m,G,K,W){var L=!0;L=L===void 0?!1:L;G=G===void 0?!1:G;W=W===void 0?{}:W;var A=W.cssRowKey||"",O=W.combinedSignature||"";!A&&window&&window._F_cssRowKey&&(A=window._F_cssRowKey,!O&&window._F_combinedSignature&&(O=window._F_combinedSignature));if(A&&typeof window._F_installCss!=="function")throw Error("Cd");var c=W.loaderClass||_.SN;m=PsG(m===void 0?"base-js":m);G=new c(C96(edv("",m)),A,O,L,G);L=W.useCors||m&&m.hasAttribute("crossorigin");m=W.corsMode||m&&m.getAttribute("crossorigin");
L&&(G.useCors_=L);m&&(G.corsMode_=m);W.urlMaxLength&&(G.urlMaxLength=W.urlMaxLength);K&&(G.insertPos=K);W.fetchPriority&&(G.fetchPriority=W.fetchPriority);var u=F6();u.JSC$10361_loader_=G;u.setBatchModeEnabled(!0);_.Rm=W.batchingStrategy==="BATCH"?Dad:function(h){return Promise.resolve(u.load(h))}};
v1v=function(m,G,K){n1J(m,G);m[G][bmP].unshift(K)};
n1J=function(m,G){if(!m[G]||!m[G][bmP]){var K=m[G],W=K?[K]:[];m[G]=function(){for(var L=_.g(W),A=L.next();!A.done;A=L.next())A.value.apply(this,arguments)};
m[G][bmP]=W}};
$ad=function(m){if(!m)return[];var G=[];m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,Array.isArray(K)?G.push.apply(G,_.Bz($ad(K))):G.push(K);return G};
_.zi=function(m,G){if(m&&sxd.test(m)||m==="//")return m;if(qU6===void 0){qU6=!1;try{var K=new URL("b","http://a");K.pathname="c%20d";qU6=K.href==="http://a/c%20d"}catch(W){}}G||(G=document.baseURI||window.location.href);if(qU6)try{return(new URL(m,G)).href}catch(W){return m}Ur||(Ur=document.implementation.createHTMLDocument("temp"),Ur.base=Ur.createElement("base"),Ur.head.appendChild(Ur.base),Ur.anchor=Ur.createElement("a"),Ur.body.appendChild(Ur.anchor));Ur.base.href=G;Ur.anchor.href=m;return Ur.anchor.href||
m};
Hmv=function(m,G){return m.replace(E1f,function(K,W,L,A){return W+"'"+_.zi(L.replace(/["']/g,""),G)+"'"+A})};
IkG=function(m){return m.substring(0,m.lastIndexOf("/")+1)};
CG9=function(){jxv=!1;for(var m=lO.length,G=0;G<m;G++){var K=lO[G];if(K)try{K()}catch(W){setTimeout(function(){throw W;})}}lO.splice(0,m);
knd+=m};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(m){console.log("["+m.is+"]: registered")};
ZmP=function(m){VqG.push(m)};
B$=function(m){return das[m]||(das[m]=m.indexOf("-")<0?m:m.replace(PG6,function(G){return G[1].toUpperCase()}))};
MF=function(m){return das[m]||(das[m]=m.replace(yXG,"-$1").toLowerCase())};
e3d=function(m,G){var K=G.parentInfo&&e3d(m,G.parentInfo);if(K)for(m=K.firstChild,K=0;m;m=m.nextSibling){if(G.parentIndex===K++)return m}else return m};
fkd=function(m,G){m=m._methodHost||m;return function(K){if(m[G])m[G](K,K.detail);else console.warn("listener method `"+G+"` not defined")}};
my=function(m){return m.indexOf(".")>=0};
iY=function(m){var G=m.indexOf(".");return G===-1?m:m.slice(0,G)};
xaV=function(m,G){return m.indexOf(G+".")===0};
Gb=function(m,G){return G.indexOf(m+".")===0};
KC=function(m,G,K){return G+K.slice(m.length)};
XYP=function(m,G){return m===G||xaV(m,G)||Gb(m,G)};
Wv=function(m){if(Array.isArray(m)){for(var G=[],K=0;K<m.length;K++)for(var W=m[K].toString().split("."),L=0;L<W.length;L++)G.push(W[L]);return G.join(".")}return m};
SUM=function(m){return Array.isArray(m)?Wv(m).split("."):m.toString().split(".")};
LC=function(m,G,K){G=SUM(G);for(var W=0;W<G.length;W++){if(!m)return;m=m[G[W]]}K&&(K.path=G.join("."));return m};
R39=function(m,G,K){var W=SUM(G),L=W[W.length-1];if(W.length>1){for(G=0;G<W.length-1;G++)if(m=m[W[G]],!m)return;m[L]=K}else m[G]=K;return W.join(".")};
UaP=function(m,G,K){var W=m[G];if(!W)W=m[G]={};else if(!m.hasOwnProperty(G)&&(W=m[G]=Object.create(m[G]),K))for(var L in W)for(m=W[L],G=W[L]=Array(m.length),K=0;K<m.length;K++)G[K]=m[K];return W};
Op=function(m,G,K,W,L,A){if(G){var O=!1,c=gl++,u;for(u in K){var h=L?iY(u):u;if(h=G[h])for(var J=0,N=h.length,D=void 0;J<N&&(D=h[J]);J++)D.info&&D.info.lastRun===c||L&&!z3s(u,D.trigger)||(D.info&&(D.info.lastRun=c),D.fn(m,u,K,W,D.info,L,A),O=!0)}return O}return!1};
z3s=function(m,G){if(G){var K=G.name;return K==m||!(!G.structured||!xaV(K,m))||!(!G.wildcard||!Gb(K,m))}return!0};
lkG=function(m,G,K,W,L){G=typeof L.method==="string"?m[L.method]:L.method;K=L.property;G?G.call(m,m.__data[K],W[K]):L.dynamicFn||console.warn("observer method `"+L.method+"` not defined")};
BSF=function(m,G,K,W){K={value:K,queueProperty:!0};W&&(K.path=W);(0,_.cv)(m).dispatchEvent(new CustomEvent(G,{detail:K}))};
MqG=function(m,G,K,W,L,A){A=(W=(A?iY(G):G)!=G?G:null)?LC(m,W):m.__data[G];W&&A===void 0&&(A=K[G]);BSF(m,L.eventName,A,W)};
TSd=function(m,G,K,W,L){K=m.__data[G];YN&&(K=YN(K,L.attrName,"attribute",m));m._propertyToAttribute(G,L.attrName,K)};
iYJ=function(m){var G=m.constructor.__orderedComputedDeps;if(!G){G=new Map;for(var K=m.__computeEffects,W=mPG(m),L=W.counts,A=W.ready,O=W.total;W=A.shift();)G.set(W,G.size),(W=K[W])&&W.forEach(function(c){c=c.info.methodInfo;--O;--L[c]===0&&A.push(c)});
O!==0&&console.warn("Computed graph for "+m.localName+" incomplete; circular?");m.constructor.__orderedComputedDeps=G}return G};
mPG=function(m){var G=m.__computeInfo,K={};m=m.__computeEffects;var W=[],L=0,A;for(A in G){var O=G[A];L+=K[A]=O.args.filter(function(u){return!u.literal}).length+(O.dynamicFn?1:0)}for(var c in m)G[c]||W.push(c);
return{counts:K,ready:W,total:L}};
KNs=function(m,G,K,W,L){G=GeG(m,G,K,W,L);if(G===rl)return!1;L=L.methodInfo;if(m.__dataHasAccessor&&m.__dataHasAccessor[L])return m._setPendingProperty(L,G,!0);m[L]=G;return!1};
AAv=function(m,G,K,W,L,A,O){K.bindings=K.bindings||[];W={kind:W,target:L,parts:A,literal:O,isCompound:A.length!==1};K.bindings.push(W);W.target&&W.kind!="attribute"&&W.kind!="text"&&!W.isCompound&&W.parts[0].mode==="{"&&(K=W.parts[0],A=K.negate,W.listenerEvent=K.event||MF(L)+"-changed",W.listenerNegate=A);L=G.nodeInfoList.length;for(K=0;K<W.parts.length;K++){var c=W.parts[K];c.compoundIndex=K;A=m;O=G;var u=W,h=c,J=L;if(!h.literal)if(u.kind==="attribute"&&u.target[0]==="-")console.warn("Cannot set attribute "+
u.target+' because "-" is not a valid attribute starting character');else for(c=h.dependencies,u={index:J,binding:u,part:h,evaluator:A},h=0;h<c.length;h++)J=c[h],typeof J=="string"&&(J=WNo(J),J.wildcard=!0),A._addTemplatePropertyEffect(O,J.rootProperty,{fn:LNM,info:u,trigger:J})}};
LNM=function(m,G,K,W,L,A,O){O=O[L.index];var c=L.binding,u=L.part;A&&u.source&&G.length>u.source.length&&c.kind=="property"&&!c.isCompound&&O.__isPropertyEffectsClient&&O.__dataHasAccessor&&O.__dataHasAccessor[c.target]?(K=K[G],G=KC(u.source,c.target,G),O._setPendingPropertyOrPath(G,K,!1,!0)&&m._enqueueClient(O)):(G=L.evaluator._evaluateBinding(m,u,G,K,W,A),G!==rl&&(c.isCompound&&(K=O.__dataCompoundStorage[c.target],K[u.compoundIndex]=G,G=K.join("")),c.kind==="attribute"||c.target!=="textContent"&&
(c.target!=="value"||O.localName!=="input"&&O.localName!=="textarea")||(G=G==void 0?"":G),u=G,YN&&(u=YN(u,c.target,c.kind,O)),c.kind=="attribute"?m._valueToNodeAttribute(O,u,c.target):(c=c.target,O.__isPropertyEffectsClient&&O.__dataHasAccessor&&O.__dataHasAccessor[c]?O.__readOnly&&O.__readOnly[c]||O._setPendingProperty(c,u)&&m._enqueueClient(O):m._setUnmanagedPropertyToNode(O,c,u))))};
wXG=function(m,G,K){if(K.listenerEvent){var W=K.parts[0];m.addEventListener(K.listenerEvent,function(L){var A=K.target,O=W.source,c=W.negate,u=L.detail,h=u&&u.path;h?(O=KC(A,O,h),L=u&&u.value):L=L.currentTarget[A];G.__readOnly&&G.__readOnly[O]||!G._setPendingPropertyOrPath(O,c?!L:L,!0,!!h)||u&&u.queueProperty||G._invalidateProperties()})}};
gJF=function(m,G,K,W,L,A){A=G.static||A&&(typeof A!=="object"||A[G.methodName]);L={methodName:G.methodName,args:G.args,methodInfo:L,dynamicFn:A};for(var O=0,c=void 0;O<G.args.length&&(c=G.args[O]);O++)c.literal||m._addPropertyEffect(c.rootProperty,K,{fn:W,info:L,trigger:c});A&&m._addPropertyEffect(G.methodName,K,{fn:W,info:L});return L};
GeG=function(m,G,K,W,L){W=m._methodHost||m;var A=W[L.methodName];if(A)return m=m._marshalArgs(L.args,G,K),m===rl?rl:A.apply(W,m);L.dynamicFn||console.warn("method `"+L.methodName+"` not defined")};
OYf=function(m){for(var G="",K=0;K<m.length;K++)G+=m[K].literal||"";return G};
rA9=function(m){if(m=m.match(/([^\s]+?)\(([\s\S]*)\)/)){var G={methodName:m[1],static:!0,args:cAo};return m[2].trim()?Yao(m[2].replace(/\\,/g,"&comma;").split(","),G):G}return null};
Yao=function(m,G){G.args=m.map(function(K){K=WNo(K);K.literal||(G.static=!1);return K},this);
return G};
WNo=function(m){m=m.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var G={name:m,value:"",literal:!1},K=m[0];K==="-"&&(K=m[1]);K>="0"&&K<="9"&&(K="#");switch(K){case "'":case '"':G.value=m.slice(1,-1);G.literal=!0;break;case "#":G.value=Number(m),G.literal=!0}G.literal||(G.rootProperty=iY(m),G.structured=my(m),G.structured&&(G.wildcard=m.slice(-2)==".*",G.wildcard&&(G.name=m.slice(0,-2))));return G};
u0s=function(m,G,K){m=LC(m,K);m===void 0&&(m=G[K]);return m};
hFf=function(m,G,K,W){W={indexSplices:W};uY&&!m._overrideLegacyUndefined&&(G.splices=W);m.notifyPath(K+".splices",W);m.notifyPath(K+".length",G.length);uY&&!m._overrideLegacyUndefined&&(W.indexSplices=[])};
ha=function(m,G,K,W,L,A){hFf(m,G,K,[{index:W,addedCount:L,removed:A,object:G,type:"splice"}])};
pXd=function(m){m=Hmv((m.body?m.body:m).textContent,m.baseURI);var G=document.createElement("style");G.textContent=m;return G};
N19=function(m){m=m.trim().split(/\s+/);for(var G=[],K=0;K<m.length;K++)G.push.apply(G,_.Bz(JAd(m[K])));return G};
JAd=function(m){var G=pC.import(m);if(!G)return console.warn("Could not find style data in module named",m),[];if(G._styles===void 0){m=[];m.push.apply(m,_.Bz(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G)));var K=G.querySelector("template");K&&m.push.apply(m,_.Bz(DPF(K,G.assetpath)));G._styles=m}return G._styles};
DPF=function(m,G){if(!m._styles){for(var K=[],W=m.content.querySelectorAll("style"),L=0;L<W.length;L++){var A=W[L],O=A.getAttribute("include");O&&K.push.apply(K,_.Bz(N19(O).filter(function(c,u,h){return h.indexOf(c)===u})));
G&&(A.textContent=Hmv(A.textContent,G));K.push(A)}m._styles=K}return m._styles};
tIs=function(m){return(m=pC.import(m))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(m):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(m){var G=[];m=m.querySelectorAll("link[rel=import][type~=css]");for(var K=0;K<m.length;K++){var W=m[K];if(W.import){var L=W.import;if((W=W.hasAttribute("shady-unscoped"))&&!L._unscopedStyle){var A=pXd(L);A.setAttribute("shady-unscoped","");L._unscopedStyle=A}else L._style||(L._style=pXd(L));G.push(W?L._unscopedStyle:L._style)}}return G};
QBd=function(m){m=m.trim().split(/\s+/);for(var G="",K=0;K<m.length;K++)G+=FN6(m[K]);return G};
FN6=function(m){var G=pC.import(m);if(G&&G._cssText===void 0){var K=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(G),W=G.querySelector("template");W&&(K+=abv(W,G.assetpath));G._cssText=K||null}G||console.warn("Could not find style data in module named",m);return G&&G._cssText||""};
abv=function(m,G){var K="";m=DPF(m,G);for(G=0;G<m.length;G++){var W=m[G];W.parentNode&&W.parentNode.removeChild(W);K+=W.textContent}return K};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(m){var G="";m=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(m);for(var K=0;K<m.length;K++)G+=m[K].textContent;return G};
Ja=function(m,G){return{index:m,removed:[],addedCount:G}};
nJV=function(m,G,K,W){var L=0,A=0,O=0,c=0,u=Math.min(G-L,W-A);if(L==0&&A==0)a:{for(O=0;O<u;O++)if(m[O]!==K[O])break a;O=u}if(G==m.length&&W==K.length){c=m.length;for(var h=K.length,J=0;J<u-O&&oJo(m[--c],K[--h]);)J++;c=J}L+=O;A+=O;G-=c;W-=c;if(G-L==0&&W-A==0)return[];if(L==G){for(G=Ja(L,0);A<W;)G.removed.push(K[A++]);return[G]}if(A==W)return[Ja(L,G-L)];u=L;O=A;W=W-O+1;c=G-u+1;G=Array(W);for(h=0;h<W;h++)G[h]=Array(c),G[h][0]=h;for(h=0;h<c;h++)G[0][h]=h;for(h=1;h<W;h++)for(J=1;J<c;J++)if(m[u+J-1]===
K[O+h-1])G[h][J]=G[h-1][J-1];else{var N=G[h-1][J]+1,D=G[h][J-1]+1;G[h][J]=N<D?N:D}u=G.length-1;O=G[0].length-1;W=G[u][O];for(m=[];u>0||O>0;)u==0?(m.push(2),O--):O==0?(m.push(3),u--):(c=G[u-1][O-1],h=G[u-1][O],J=G[u][O-1],N=h<J?h<c?h:c:J<c?J:c,N==c?(c==W?m.push(0):(m.push(1),W=c),u--,O--):N==h?(m.push(3),u--,W=h):(m.push(2),O--,W=J));m.reverse();G=void 0;u=[];for(O=0;O<m.length;O++)switch(m[O]){case 0:G&&(u.push(G),G=void 0);L++;A++;break;case 1:G||(G=Ja(L,0));G.addedCount++;L++;G.removed.push(K[A]);
A++;break;case 2:G||(G=Ja(L,0));G.addedCount++;L++;break;case 3:G||(G=Ja(L,0)),G.removed.push(K[A]),A++}G&&u.push(G);return u};
bYd=function(m,G){return nJV(m,m.length,G,G.length)};
oJo=function(m,G){return m===G};
$Pd=function(m){if(m instanceof vJM)return m.value;throw Error("Kd`"+m);};
sB6=function(m,G){for(var K in G)K===null?m.style.removeProperty(K):m.style.setProperty(K,G[K])};
qao=function(m,G){return(m=window.getComputedStyle(m).getPropertyValue(G))?m.trim():""};
jBV=function(m){requestAnimationFrame(function(){EJG?EJG(m):(HY6||(HY6=new Promise(function(G){Ibs=G}),document.readyState==="complete"?Ibs():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Ibs()})),HY6.then(function(){m&&m()}))})};
VIf=function(m){ke6=m&&m.shimcssproperties?!1:C5d||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
eFo=function(m){if(!(ZYM.indexOf(m)>-1)&&m!=="touchend"&&dP6&&P56&&yAF)return{passive:!0}};
SaG=function(m){for(var G=fbd?["click"]:ZYM,K=0,W;K<G.length;K++)W=G[K],m?(xPG.length=0,document.addEventListener(W,XXP,!0)):document.removeEventListener(W,XXP,!0)};
Nk=function(m){var G=m.type;return ZYM.indexOf(G)>-1?G==="mousemove"?(G=m.buttons===void 0?1:m.buttons,m instanceof window.MouseEvent&&!RFG&&(G=UPJ[m.which]||0),!!(G&1)):(m.button===void 0?0:m.button)===0:!1};
zFV=function(m){if(m.type==="click"){if(m.detail===0)return!0;var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m);if(!G.nodeType||G.nodeType!==Node.ELEMENT_NODE)return!0;G=G.getBoundingClientRect();var K=m.pageX;m=m.pageY;return!(K>=G.left&&K<=G.right&&m>=G.top&&m<=G.bottom)}return!1};
lbv=function(m,G,K){m.movefn=G;m.upfn=K;document.addEventListener("mousemove",G);document.addEventListener("mouseup",K)};
DG=function(m){document.removeEventListener("mousemove",m.movefn);document.removeEventListener("mouseup",m.upfn);m.movefn=null;m.upfn=null};
B1G=function(m,G){for(var K=document.elementFromPoint(m,G),W=K;W&&W.shadowRoot&&!window.ShadyDOM;){var L=W;W=W.shadowRoot.elementFromPoint(m,G);if(L===W)break;W&&(K=W)}return K};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m){var G=MI6(m);return G.length>0?G[0]:m.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m){var G=m.type,K=m.currentTarget.__polymerGestures;if(K&&(K=K[G])){if(!m.__polymerGesturesHandled&&(m.__polymerGesturesHandled={},G.slice(0,5)==="touch")){var W=m.changedTouches[0];G==="touchstart"&&m.touches.length===1&&(T1J=W.identifier);if(T1J!==W.identifier)return;dP6||(G==="touchstart"||G==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m)}W=
m.__polymerGesturesHandled;if(!W.skip){for(var L=0,A;L<ta.length;L++)A=ta[L],K[A.name]&&!W[A.name]&&A.flow&&A.flow.start.indexOf(m.type)>-1&&A.reset&&A.reset();for(L=0;L<ta.length;L++)A=ta[L],K[A.name]&&!W[A.name]&&(W[A.name]=!0,A[G](m))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m){var G=m.changedTouches[0],K=m.type;if(K==="touchstart")mEd=G.clientX,igs=G.clientY,GB9=!1;else if(K==="touchmove"&&!GB9){GB9=!0;K="auto";for(var W=MI6(m),L=0,A;L<W.length;L++)if(A=W[L],A.__polymerGesturesTouchAction){K=A.__polymerGesturesTouchAction;break}W=!1;L=Math.abs(mEd-G.clientX);G=Math.abs(igs-G.clientY);m.cancelable&&(K==="none"?W=!0:K==="pan-x"?W=G>L:K==="pan-y"&&(W=L>G));W?m.preventDefault():
Fg("track")}};
av=function(m,G,K){return Q1[G]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m,G,K),!0):!1};
ov=function(m,G,K){return Q1[G]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m,G,K),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m,G,K){var W=Q1[G],L=W.deps,A=W.name,O=m.__polymerGestures;O||(m.__polymerGestures=O={});for(var c=0,u,h;c<L.length;c++)u=L[c],fbd&&ZYM.indexOf(u)>-1&&u!=="click"||((h=O[u])||(O[u]=h={_count:0}),h._count===0&&m.addEventListener(u,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eFo(u)),h[A]=(h[A]||0)+1,h._count=(h._count||0)+1);m.addEventListener(G,K);W.touchAction&&_.nC(m,W.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m,G,K){var W=Q1[G],L=W.deps;W=W.name;var A=m.__polymerGestures;if(A)for(var O=0,c,u;O<L.length;O++)c=L[O],(u=A[c])&&u[W]&&(u[W]=(u[W]||1)-1,u._count=(u._count||1)-1,u._count===0&&m.removeEventListener(c,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eFo(c)));m.removeEventListener(G,K)};
K9d=function(m){ta.push(m);for(var G=0;G<m.emits.length;G++)Q1[m.emits[G]]=m};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m){for(var G=0,K;G<ta.length;G++){K=ta[G];for(var W=0,L;W<K.emits.length;W++)if(L=K.emits[W],L===m)return K}return null};
_.nC=function(m,G){dP6&&m instanceof HTMLElement&&bY.run(function(){m.style.touchAction=G});
m.__polymerGesturesTouchAction=G};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(m,G,K){G=new Event(G,{bubbles:!0,cancelable:!0,composed:!0});G.detail=K;(0,_.cv)(m).dispatchEvent(G);G.defaultPrevented&&(m=K.preventer||K.sourceEvent)&&m.preventDefault&&m.preventDefault()};
Fg=function(m){m=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m);m.info&&(m.info.prevent=!0)};
vv=function(m,G,K,W){G&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,m,{x:K.clientX,y:K.clientY,sourceEvent:K,preventer:W,prevent:function(L){return Fg(L)}})};
W9J=function(m,G,K){if(m.prevent)return!1;if(m.started)return!0;K=Math.abs(m.y-K);return Math.abs(m.x-G)>=5||K>=5};
L96=function(m,G,K){if(G){var W=m.moves[m.moves.length-2],L=m.moves[m.moves.length-1],A=L.x-m.x,O=L.y-m.y,c=0;if(W){var u=L.x-W.x;c=L.y-W.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G,"track",{state:m.state,x:K.clientX,y:K.clientY,dx:A,dy:O,ddx:u,ddy:c,sourceEvent:K,hover:function(){return B1G(K.clientX,K.clientY)}})}};
wod=function(m,G,K){var W=Math.abs(G.clientX-m.x),L=Math.abs(G.clientY-m.y),A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(K||G);!A||AlJ[A.localName]&&A.hasAttribute("disabled")||!(isNaN(W)||isNaN(L)||W<=25&&L<=25||zFV(G))||m.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"tap",{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:K})};
gis=function(m,G,K,W,L){var A;L&&(A=typeof K==="object"&&K!==null)&&(W=m.__dataTemp[G]);W=W!==K&&(W===W||K===K);A&&W&&(m.__dataTemp[G]=K);return W};
clf=function(){if($N&&!sp){if(!OgG){OgG=!0;var m=document.createElement("style");m.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(m)}return!0}return!1};
rlG=function(){return YAF};
u5s=function(m,G){YAF=m;Object.setPrototypeOf(m,G.prototype);new G;YAF=null};
h0J=function(m,G){for(var K=0;K<G.length;K++){var W=G[K];if(!!m!=!!W.__hideTemplateChildren__)if(W.nodeType===Node.TEXT_NODE)m?(W.__polymerTextContent__=W.textContent,W.textContent=""):W.textContent=W.__polymerTextContent__;else if(W.localName==="slot")if(m)W.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.cv)((0,_.cv)(W).parentNode).replaceChild(W.__polymerReplaced__,W);else{var L=W.__polymerReplaced__;L&&(0,_.cv)((0,_.cv)(L).parentNode).replaceChild(W,L)}else W.style&&(m?(W.__polymerDisplay__=
W.style.display,W.style.display="none"):W.style.display=W.__polymerDisplay__);W.__hideTemplateChildren__=m;W._showHideChildren&&W._showHideChildren(m)}};
pod=function(m){return(m=m.__dataHost)&&m._methodHost||m};
DE6=function(m,G,K){var W=K.mutableData?JlM:qk;Ep.mixin&&(W=Ep.mixin(W));var L=function(){return W.apply(this,arguments)||this};
_.n(L,W);L.prototype.__templatizeOptions=K;L.prototype._bindTemplate(m);NLs(L,m,G,K);return L};
oi6=function(m,G,K,W){var L=K.forwardHostProp;if(L&&G.hasHostProps){var A=m.localName=="template",O=G.templatizeTemplateClass;if(!O){if(A){var c=K.mutableData?tZG:F9o;O=function(){return c.apply(this,arguments)||this};
_.n(O,c);O=G.templatizeTemplateClass=O}else{var u=m.constructor;O=function(){return u.apply(this,arguments)||this};
_.n(O,u);O=G.templatizeTemplateClass=O}var h=G.hostProps,J;for(J in h)O.prototype._addPropertyEffect("_host_"+J,O.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Q3F(L)}),O.prototype._createNotifyingProperty("_host_"+J);Hv&&W&&a8G(G,K,W)}m.__dataProto&&Object.assign(m.__data,m.__dataProto);if(A)u5s(m,O),m.__dataTemp={},m.__dataPending=null,m.__dataOld=null,m._enableProperties();else{Object.setPrototypeOf(m,O.prototype);G=G.hostProps;for(var N in G)N="_host_"+N,N in m&&(G=m[N],delete m[N],m.__data[N]=
G)}}};
Q3F=function(m){return function(G,K,W){m.call(G.__templatizeOwner,K.substring(6),W[K])}};
NLs=function(m,G,K,W){var L=K.hostProps||{},A;for(A in W.instanceProps){delete L[A];var O=W.notifyInstanceProp;O&&m.prototype._addPropertyEffect(A,m.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:nis(O)})}if(W.forwardHostProp&&G.__dataHost)for(var c in L)K.hasHostProps||(K.hasHostProps=!0),m.prototype._addPropertyEffect(c,m.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bgd()})};
nis=function(m){return function(G,K,W){m.call(G.__templatizeOwner,G,K,W[K])}};
bgd=function(){return function(m,G,K){m.__dataHost._setPendingPropertyOrPath("_host_"+G,K[G],!0,!0)}};
Ep=function(m,G,K){if(Iv&&!pod(m))throw Error("Qd");K=K||{};if(m.__templatizeOwner)throw Error("Rd");m.__templatizeOwner=G;var W=(G?G.constructor:qk)._parseTemplate(m),L=W.templatizeInstanceClass;L||(L=DE6(m,W,K),W.templatizeInstanceClass=L);var A=pod(m);oi6(m,W,K,A);K=function(){return L.apply(this,arguments)||this};
_.n(K,L);K.prototype._methodHost=A;K.prototype.__dataHost=m;K.prototype.__templatizeOwner=G;K.prototype.__hostProps=W.hostProps;return K};
a8G=function(m,G,K){K=K.constructor._properties;m=m.propertyEffects;G=G.instanceProps;for(var W in m)if(!(K[W]||G&&G[W]))for(var L=m[W],A=0;A<L.length;A++){var O=L[A].info.part;if(!O.signature||!O.signature.static){console.warn("Property '"+W+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
vid=function(m,G){for(var K;G;)if(K=G.__dataHost?G:G.__templatizeInstance)if(K.__dataHost!=m)G=K.__dataHost;else return K;else G=(0,_.cv)(G).parentNode;return null};
j_=function(m){return m.localName==="slot"};
$Es=function(){for(var m=kN.prototype,G="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),K={},W=0;W<G.length;K={method$jscomp$33:void 0},W++)K.method$jscomp$33=G[W],m[K.method$jscomp$33]=function(L){return function(){return this.node[L.method$jscomp$33].apply(this.node,arguments)}}(K)};
s3s=function(m,G){for(var K={},W=0;W<G.length;K={name$jscomp$450:void 0},W++)K.name$jscomp$450=G[W],Object.defineProperty(m,K.name$jscomp$450,{get:function(L){return function(){return this.node[L.name$jscomp$450]}}(K),
configurable:!0})};
qAs=function(){for(var m=kN.prototype,G=["textContent","innerHTML","className"],K={},W=0;W<G.length;K={name$jscomp$451:void 0},W++)K.name$jscomp$451=G[W],Object.defineProperty(m,K.name$jscomp$451,{get:function(L){return function(){return this.node[L.name$jscomp$451]}}(K),
set:function(L){return function(A){this.node[L.name$jscomp$451]=A}}(K),
configurable:!0})};
EiJ=function(){CC=document.documentElement.getAttribute("dir");CC=document.documentElement.getAttribute("dir");for(var m=0;m<V1.length;m++){var G=V1[m];G.__autoDirOptOut||G.setAttribute("dir",CC)}};
kBP=function(){ZG=!0;requestAnimationFrame(function(){ZG=!1;HgJ(I8f);setTimeout(function(){for(var m=0,G=dl.length;m<G;m++)j3d(dl.shift())})})};
HgJ=function(m){for(;m.length;)j3d(m.shift())};
j3d=function(m){var G=m[0],K=m[1];m=m[2];try{K.apply(G,m)}catch(W){setTimeout(function(){throw W;})}};
_.CA9=function(m,G,K){ZG||kBP();I8f.push([m,G,K])};
_.Pv=function(m,G,K){ZG||kBP();dl.push([m,G,K])};
dEG=function(m,G){G=G===void 0?!1:G;if(!VZV||!ZgG||!VZV.handlesDynamicScoping)return null;var K=ZgG.ScopingShim;if(!K)return null;var W=K.scopeForNode(m),L=(0,_.cv)(m).getRootNode(),A=function(O){if((0,_.cv)(O).getRootNode()===L){var c=Array.from(VZV.nativeMethods.querySelectorAll.call(O,"*"));c.push(O);for(O=0;O<c.length;O++){var u=c[O];if((0,_.cv)(u).getRootNode()===L){var h=K.currentScopeForNode(u);h!==W&&(h!==""&&K.unscopeNode(u,h),K.scopeNode(u,W))}}}};
A(m);return G?(G=new MutationObserver(function(O){for(var c=0;c<O.length;c++)for(var u=O[c],h=0;h<u.addedNodes.length;h++){var J=u.addedNodes[h];J.nodeType===Node.ELEMENT_NODE&&A(J)}}),G.observe(m,{childList:!0,
subtree:!0}),G):null};
PAG=function(){document.body.removeAttribute("unresolved")};
Xo9=function(m){var G=m=m.replace(ylV,"").replace(e0M,""),K=new f8M;K.start=0;K.end=G.length;for(var W=K,L=0,A=G.length;L<A;L++)if(G[L]==="{"){W.rules||(W.rules=[]);var O=W,c=O.rules[O.rules.length-1]||null;W=new f8M;W.start=L+1;W.parent=O;W.previous=c;O.rules.push(W)}else G[L]==="}"&&(W.end=L+1,W=W.parent||K);return xEd(K,m)};
xEd=function(m,G){var K=G.substring(m.start,m.end-1);m.parsedCssText=m.cssText=K.trim();m.parent&&(K=G.substring(m.previous?m.previous.end:m.parent.start,m.start-1),K=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(K),K=K.replace(SAF," "),K=K.substring(K.lastIndexOf(";")+1),K=m.parsedSelector=m.selector=K.trim(),m.atRule=K.indexOf("@")===0,m.atRule?K.indexOf("@media")===0?m.type=4:K.match(R0d)&&(m.type=7,m.keyframesName=m.selector.split(SAF).pop()):K.indexOf("--")===
0?m.type=1E3:m.type=1);if(K=m.rules)for(var W=0,L=K.length,A=void 0;W<L&&(A=K[W]);W++)xEd(A,G);return m};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(m){return m.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var G=arguments[1],K=6-G.length;K--;)G="0"+G;return"\\"+G})};
UEd=function(m,G,K){K=K===void 0?"":K;var W="";if(m.cssText||m.rules){var L=m.rules;if(L&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(L))for(var A=0,O=L.length,c=void 0;A<O&&(c=L[A]);A++)W=UEd(c,G,W);else G?G=m.cssText:(G=m.cssText,G=G.replace(z0d,"").replace(l8s,""),G=G.replace(BLJ,"").replace(MZF,"")),(W=G.trim())&&(W="  "+W+"\n")}W&&(m.selector&&(K+=m.selector+" {\n"),K+=W,m.selector&&(K+="}\n\n"));return K};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(m){m=m[0];return!!m&&!!m.selector&&m.selector.indexOf("--")===0};
mNd=function(m){if(m=TLd[m])m._applyShimCurrentVersion=m._applyShimCurrentVersion||0,m._applyShimValidatingVersion=m._applyShimValidatingVersion||0,m._applyShimNextVersion=(m._applyShimNextVersion||0)+1};
iVG=function(m){return m._applyShimCurrentVersion===m._applyShimNextVersion};
KWo=function(m){m._applyShimValidatingVersion=m._applyShimNextVersion;m._validating||(m._validating=!0,Gso.then(function(){m._applyShimCurrentVersion=m._applyShimNextVersion;m._validating=!1}))};
LWG=function(m){if(!m)return"";typeof m==="string"&&(m=Xo9(m));return UEd(m,WWd)};
AY6=function(m){!m.__cssRules&&m.textContent&&(m.__cssRules=Xo9(m.textContent));return m.__cssRules||null};
gvd=function(m,G,K,W){if(m){var L=!1,A=m.type;if(W&&A===4){var O=m.selector.match(wbv);O&&(window.matchMedia(O[1]).matches||(L=!0))}A===1?G(m):K&&A===7?K(m):A===1E3&&(L=!0);if((m=m.rules)&&!L)for(L=0,A=m.length,O=void 0;L<A&&(O=m[L]);L++)gvd(O,G,K,W)}};
OV6=function(m,G){var K=m.indexOf("var(");if(K===-1)return G(m,"","","");a:{var W=0;var L=K+3;for(var A=m.length;L<A;L++)if(m[L]==="(")W++;else if(m[L]===")"&&--W===0)break a;L=-1}W=m.substring(K+4,L);K=m.substring(0,K);m=OV6(m.substring(L+1),G);A=W.indexOf(",");if(A===-1)return G(K,W.trim(),"",m);L=W.substring(0,A).trim();W=W.substring(A+1).trim();return G(K,L,W,m)};
cYd=function(m){if(y1!==void 0)return y1;if(m.__cssBuild===void 0){var G=m.getAttribute("css-build");if(G)m.__cssBuild=G;else{a:{G=m.localName==="template"?m.content.firstChild:m.firstChild;if(G instanceof Comment&&(G=G.textContent.trim().split(":"),G[0]==="css-build")){G=G[1];break a}G=""}if(G!==""){var K=m.localName==="template"?m.content.firstChild:m.firstChild;K.parentNode.removeChild(K)}m.__cssBuild=G}}return m.__cssBuild||""};
rYd=function(m,G,K,W){for(var L=G._noAccessors,A=Object.getOwnPropertyNames(G),O=0;O<A.length;O++){var c=A[O];if(!(c in W))if(L)m[c]=G[c];else{var u=Object.getOwnPropertyDescriptor(G,c);u&&(u.configurable=!0,Object.defineProperty(m,c,u))}}for(var h in Y1o)G[h]&&(K[h]=K[h]||[],K[h].push(G[h]))};
uoJ=function(m,G,K){G=G||[];for(var W=m.length-1;W>=0;W--){var L=m[W];L?Array.isArray(L)?uoJ(L,G):G.indexOf(L)<0&&(!K||K.indexOf(L)<0)&&G.unshift(L):console.warn("behavior is null, check for missing or 404 import")}return G};
hTv=function(m,G){for(var K in G){var W=m[K],L=G[K];m[K]=!("value"in L)&&W&&"value"in W?Object.assign({value:W.value},L):L}};
N3M=function(m,G,K){var W={},L=function(){return G.apply(this,arguments)||this};
_.n(L,G);L._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(O)for(var u=0,h;u<O.length;u++)h=O[u],h.properties&&this.createProperties(h.properties),h.observers&&this.createObservers(h.observers,h.properties);m.properties&&this.createProperties(m.properties);m.observers&&this.createObservers(m.observers,m.properties);this._prepareTemplate()}else G._finalizeClass.call(this)};
L.prototype.created=function(){G.prototype.created.call(this);var u=W.created;if(u)for(var h=0;h<u.length;h++)u[h].call(this)};
L.prototype._registered=function(){var u=L.prototype;if(!u.hasOwnProperty("__hasRegisterFinished")){u.__hasRegisterFinished=!0;G.prototype._registered.call(this);$N&&c(u);u=Object.getPrototypeOf(this);var h=W.beforeRegister;if(h)for(var J=0;J<h.length;J++)h[J].call(u);if(h=W.registered)for(J=0;J<h.length;J++)h[J].call(u)}};
L.prototype._applyListeners=function(){G.prototype._applyListeners.call(this);var u=W.listeners;if(u)for(var h=0;h<u.length;h++){var J=u[h];if(J)for(var N in J)this._addMethodEventListenerToNode(this,N,J[N])}};
L.prototype._ensureAttributes=function(){var u=W.hostAttributes;if(u)for(var h=u.length-1;h>=0;h--){var J=u[h],N;for(N in J)this._ensureAttribute(N,J[N])}G.prototype._ensureAttributes.call(this)};
L.prototype.ready=function(){G.prototype.ready.call(this);var u=W.ready;if(u)for(var h=0;h<u.length;h++)u[h].call(this)};
L.prototype.attached=function(){G.prototype.attached.call(this);var u=W.attached;if(u)for(var h=0;h<u.length;h++)u[h].call(this)};
L.prototype.detached=function(){G.prototype.detached.call(this);var u=W.detached;if(u)for(var h=0;h<u.length;h++)u[h].call(this)};
L.prototype.attributeChanged=function(u,h,J){G.prototype.attributeChanged.call(this);var N=W.attributeChanged;if(N)for(var D=0;D<N.length;D++)N[D].call(this,u,h,J)};
_.e_.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){var u={};if(O)for(var h=0;h<O.length;h++)hTv(u,O[h].properties);hTv(u,m.properties);return u}},
observers:{configurable:!0,enumerable:!0,get:function(){var u=[];if(O)for(var h=0,J;h<O.length;h++)J=O[h],J.observers&&(u=u.concat(J.observers));m.observers&&(u=u.concat(m.observers));return u}}});
if(K){Array.isArray(K)||(K=[K]);var A=G.prototype.behaviors;var O=uoJ(K,null,A);L.prototype.behaviors=A?A.concat(K):O}var c=function(u){if(O)for(var h=O,J=0;J<h.length;J++)rYd(u,h[J],W,pbG);rYd(u,m,W,JY9)};
$N||c(L.prototype);L.generatedFrom=m;return L};
QS6=function(m){var G=typeof m!=="string"?m:{is:m,notifyObserversOnUndefined:!0};G.fastInit===void 0&&(G.fastInit=!0);return function(K){if(!G.disableInheritanceCheck&&Object.getPrototypeOf(K.prototype).constructor!==_.fC)throw Error("Vd");var W=K.prototype;W.is=G.is;v1v(W,"created",function(){this.hostElement=this;this.polymerController=this});
DNF(W,K,G.fastInit);G.notifyObserversOnUndefined&&(W._overrideLegacyUndefined=!0);if(tkF)for(var L=_.g(Object.getOwnPropertyNames(W)),A=L.next();!A.done;A=L.next()){A=A.value;var O=Object.getOwnPropertyDescriptor(W,A);O.enumerable===!1&&(O.enumerable=!0,Object.defineProperty(W,A,O))}if("template"in K)var c=function(){return K.template};
else G.template!==void 0&&(c=G.template);if(c!==void 0){var u;Object.defineProperty(W,"_template",{get:function(){u===void 0&&(u=c());return u},
set:function(h){u=h},
configurable:!0,enumerable:!0})}Polymer(W);K[FWJ]=W}};
aSG=function(m){m=m===void 0?{}:m;m.fastInit===void 0&&(m.fastInit=!0);return function(G){if(!m.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==xN)throw Error("Wd");DNF(G.prototype,G,m.fastInit)}};
DNF=function(m,G,K){K=K===void 0?!1:K;ovs(G);K?v1v(m,"created",function(){this.disableEnforceFastDefaultValuesCheck||nvG(G,this)}):v1v(m,"ready",function(){for(var W={},L=_.g($ad(this.behaviors)),A=L.next();!A.done;A=L.next())A=A.value,A.properties&&Object.assign(W,bVd(this,A.properties));
Object.assign(W,bVd(this,this.properties));nvG(G,this);L=_.g(Object.keys(W));for(A=L.next();!A.done;A=L.next())A=A.value,this[A]=W[A]})};
nvG=function(m,G){if(tkF){m=new m;for(var K=_.g(Object.getOwnPropertyNames(m)),W=K.next();!W.done;W=K.next())W=W.value,G[W]=m[W];for(K=G;K&&K!==Object.prototype;K=Object.getPrototypeOf(K)){W=_.g(Object.getOwnPropertyNames(K));for(var L=W.next();!L.done;L=W.next())L=L.value,m.hasOwnProperty(L)||Object.defineProperty(m,L,vvV(G,L))}}else m.apply(G)};
vvV=function(m,G){return{get:function(){var K=m[G];return K instanceof Function?K.bind(m):K},
set:function(K){m[G]=K}}};
bVd=function(m,G){if(!G)return{};for(var K={},W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next())if(L=L.value,!G[L].readOnly){var A=m[L];A!==void 0&&(K[L]=A)}return K};
ovs=function(m){var G=new m;m=m.prototype.properties||{};for(var K=_.g(Object.keys(m)),W=K.next();!W.done;W=K.next())if(W=W.value,G.hasOwnProperty(W)){var L=m[W];typeof L==="function"&&(m[W]=L={type:L});G[W]!=null&&L.type===Object&&(L.type=$Nf(G[W].constructor))}};
$Nf=function(m){for(var G=_.g(sSd),K=G.next();!K.done;K=G.next())if(K=K.value,m===K)return K;return Object};
q1o=function(m){return function(G,K){G.behaviors=G.behaviors||[];G.behaviors.push(m||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",G,K).prototype:void 0));Object.defineProperty(G,K,{get:function(){return this},
enumerable:!0,configurable:!0})}};
EvM=function(m){m=m===void 0?{}:m;return function(G,K){G.properties=G.properties||{};m.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?m.type=$Nf(Reflect.getMetadata("design:type",G,K)):m.type=String);var W=m,L=G.properties[K];G.properties[K]=L?Object.assign({},L,W):W}};
HV6=function(m){return function(G,K){G.listeners=G.listeners||{};G.listeners[m]=K}};
ISG=function(){var m=_.mb.apply(0,arguments);if(m.length===0)throw Error("Xd");return function(G,K){G.observers=G.observers||[];G.observers.push(K+"("+m.join(",")+")")}};
jSJ=function(){var m=_.mb.apply(0,arguments);return function(G,K,W){var L=Object.getOwnPropertyDescriptor(G,K).get,A="__compute__"+K;Object.defineProperty(G,A,{value:L,enumerable:!0});G.properties=G.properties||{};L=G.properties[K];L||(L={},G.properties[K]=L);L.computed=A+"("+m.join(",")+")";W.get=void 0}};
_.Xg=function(m,G,K){_.Lt.call(this);this.JSC$11624_id_=null;this.usingListeners_=!1;this.JSC$11624_listener_=m;this.handler_=K;this.JSC$11624_win_=G||window;this.callback_=(0,_.AO)(this.JSC$11626_doAction_,this)};
C7G=function(m){var G=ksd(m);if(!G)throw Error("Yd`"+m);return G};
ksd=function(m){var G={};m=String(m);var K=m.charAt(0)=="#"?m:"#"+m;if(Vkd.test(K))return G.hex=ZVV(K),G.type="hex",G;K=dNP(m);return K.length?(G.hex=P7d(K[0],K[1],K[2]),G.type="rgb",G):yYF&&(m=yYF[m.toLowerCase()])?(G.hex=m,G.type="named",G):null};
ZVV=function(m){if(!Vkd.test(m))throw Error("$d`"+m);m.length==4&&(m=m.replace(eTP,"#$1$1$2$2$3$3"));return m.toLowerCase()};
fSF=function(m){m=ZVV(m);m=parseInt(m.slice(1),16);return[m>>16,m>>8&255,m&255]};
P7d=function(m,G,K){m=Number(m);G=Number(G);K=Number(K);if(m!=(m&255)||G!=(G&255)||K!=(K&255))throw Error("ae`"+m+"`"+G+"`"+K);G=m<<16|G<<8|K;return m<16?"#"+(16777216|G).toString(16).slice(1):"#"+G.toString(16)};
dNP=function(m){var G=m.match(xNs);if(G){m=Number(G[1]);var K=Number(G[2]);G=Number(G[3]);if(m>=0&&m<=255&&K>=0&&K<=255&&G>=0&&G<=255)return[m,K,G]}return[]};
XbP=function(){};
S_=function(m){this.range_=m};
Rv=function(m){this.range_=m};
Up=function(m){this.range_=m};
S1G=function(m){return _.zb?new Up(m):_.lY?new Rv(m):new S_(m)};
RTP=function(){var m=Wt().JSC$9633_document_;return!!(m.webkitIsFullScreen||m.mozFullScreen||m.msFullscreenElement||m.fullscreenElement)};
_.Bv=function(){var m=window.getSelection();return m&&UNP(m)};
UNP=function(m){var G=!1;if(m.createRange)try{var K=m.createRange()}catch(L){return null}else if(m.rangeCount){if(m.rangeCount>1){K=new Mk;G=m.rangeCount;for(var W=0;W<G;W++)K.browserRanges_.push(m.getRangeAt(W));return K}K=m.getRangeAt(0);G=zTf(m.anchorNode,m.anchorOffset,m.focusNode,m.focusOffset)}else return null;return lSV(S1G(K),G)};
_.mU=function(m,G){return _.Tb(m,G,m,G)};
_.iL=function(m,G,K,W){return _.Tb(m,G,K,W)};
zTf=function(m,G,K,W){if(m==K)return W<G;var L;if(m.nodeType==1&&G)if(L=m.childNodes[G])m=L,G=0;else if(_.Hg(m,K))return!0;if(K.nodeType==1&&W)if(L=K.childNodes[W])K=L,W=0;else if(_.Hg(K,m))return!1;return(B36(m,K)||G-W)>0};
GP=function(m,G,K){_.Lt.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=m;this.scrollTimer_=new _.Yl(50);this.JSC$11703_eventHandler_=new _.gM(this);this.scrollDelta_=new _.si;this.containerIsActuallyContent_=m.tagName==="BODY"||m.tagName==="HTML";this.containerBounds_=MkG(m);this.containerIsActuallyContent_&&(m=_.GI(),this.containerBounds_.height=m.height,this.containerBounds_.width=m.width);this.margin_=G||0;if(G){if(G=this.containerBounds_.clone(),m=this.margin_){var W=
Math.min(m,G.height*.25);G.top+=W;G.height-=2*W;m=Math.min(m,G.width*.25);G.left+=m;G.width-=2*m}}else G=this.containerBounds_;this.scrollBounds_=G;K||this.JSC$11703_eventHandler_.listen(_.hI(this.containerNode_),"mousemove",this.JSC$11705_onMouseMove);this.JSC$11703_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11705_onTick_)};
T3P=function(){};
m3d=function(m){return m%10==1&&m%100!=11?"one":m%10==2&&m%100!=12?"two":m%10==3&&m%100!=13?"few":"other"};
ibo=function(m,G,K,W,L,A,O,c){this.x0=m;this.y0=G;this.x1=K;this.y1=W;this.x2=L;this.y2=A;this.x3=O;this.y3=c};
KA=function(){_.ai.call(this);this.JSC$11788_name_="closure_frame"+G5P++;this.iframesForDisposal_=[];KzM[this.JSC$11788_name_]=this};
_.Wl=function(m){this.errorMessage_=null;this.result_=[];this.JSC$11792_buffer_="";this.stack_=[];this.JSC$11792_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!m||!m.deliverMessageAsRawString)};
_.LA=function(m){this.mechanism=m};
Ab=function(m,G){this.JSC$11799_key_=m;this.JSC$11799_value_=G};
_.wB=function(m,G){this.JSC$11805_map_={};this.JSC$11805_keys_=[];this.version_=this.size=0;var K=arguments.length;if(K>1){if(K%2)throw Error("na");for(var W=0;W<K;W+=2)this.set(arguments[W],arguments[W+1])}else m&&this.addAll(m)};
Lzd=function(){this.JSC$11808_map_=new _.wB;this.JSC$11808_head_=new Wz9("");this.JSC$11808_head_.next=this.JSC$11808_head_.prev=this.JSC$11808_head_};
wWf=function(m){if(m>=55296&&m<=57343||m>1114111)return"\ufffd";m in Azv&&(m=Azv[m]);var G="";m>65535&&(m-=65536,G+=String.fromCharCode(m>>>10&1023|55296),m=56320|m&1023);return G+=String.fromCharCode(m)};
gZd=function(m,G){return m<G?1:-1};
cz6=function(){return function(m){return m.charAt(1)==="#"?m.charAt(2)==="X"||m.charAt(2)==="x"?wWf(parseInt(m.substr(3),16)):wWf(parseInt(m.substr(2),10)):ObF[m.slice(1,-1)]}};
uN9=function(m){return m.slice(1,m.length-1).trim().replace(Y5J,function(G){return rzd[G]||" "})};
gB=function(m){return m===32||m===9};
OK=function(m,G){return G<m.length?m.charCodeAt(G):-1};
hVM=function(m){for(;m;){if(m._lastLineBlank)return!0;var G=m.type;if(G==="list"||G==="item")m=m._lastChild;else break}return!1};
cl=function(m){if(pWG.test(m)){var G=1,K=0,W=0;for(m[K]=="|"&&K++;K<m.length;){switch(m[K]){case "|":W=1;break;case " ":break;case "\t":break;default:W&&(W=0,G++)}K++}return JzM.test(m)?-G:G}return 0};
NOG=function(m){return m=="table"||m=="row"||m=="cell"};
D3F=function(){return new rB("document",[[1,1],[0,0]])};
tmG=function(){};
uL=function(){var m={safe:!1};m=m||{};m.softbreak=m.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=m};
nZP=function(m,G){var K="";if(m)if(m=m.toLowerCase(),m===" "||Fzd.test(m))K="space";else if(Qa6.test(m))K="esc";else if(m.length==1){if(!G||aLv.test(m))K=m}else K=oZP.test(m)?m.replace("arrow",""):m=="multiply"?"*":m;return K};
saV=function(m,G){var K=m.hasModifiers;if(G.key)K=nZP(G.key,K);else if(G.detail&&G.detail.key)K=nZP(G.detail.key,K);else{K=G.keyIdentifier;var W="";K&&(K in bbJ?W=bbJ[K]:vZG.test(K)?(K=parseInt(K.replace("U+","0x"),16),W=String.fromCharCode(K).toLowerCase()):W=K.toLowerCase());(K=W)||(K=G.keyCode,W="",Number(K)&&(K>=65&&K<=90?W=String.fromCharCode(32+K):K>=112&&K<=123?W="f"+(K-112+1):K>=48&&K<=57?W=String(K-48):K>=96&&K<=105?W=String(K-96):W=$36[K]),K=W);K=K||""}return K===m.key&&(!m.hasModifiers||
!!G.shiftKey===!!m.shiftKey&&!!G.ctrlKey===!!m.ctrlKey&&!!G.altKey===!!m.altKey&&!!G.metaKey===!!m.metaKey)};
EZf=function(m){return m.length===1?{combo:m,key:m,event:"keydown"}:m.split("+").reduce(function(G,K){var W=K.split(":");K=W[0];W=W[1];K in q5F?(G[q5F[K]]=!0,G.hasModifiers=!0):(G.key=K,G.event=W||"keydown");return G},{combo:m.split(":").shift()})};
Hbv=function(m){return m.trim().split(" ").map(function(G){return EZf(G)})};
ILd=function(m,G){if(m&&m.fn){var K=m.fn;m.fn=function(){try{K.apply(this,arguments)}catch(W){if(W instanceof hb)console.warn("Argument '"+W.arg+"'"+(G?" for method '"+G+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw W;}}}return m};
k5J=function(){var m=[],G;var K=K||_.jaF.length;for(G=0;G<8;G++)m[G]=_.jaF[0|Math.random()*K];return m.join("")};
CZP=function(){var m=_.mb.apply(0,arguments);return m.length===0?function(G){return G}:m.length===1?m[0]:m.reduce(function(G,K){return function(){return G(K.apply(null,_.Bz(_.mb.apply(0,arguments))))}})};
Vms=function(){var m=_.mb.apply(0,arguments);return function(G){return function(K,W){K=G(K,W);var L=function(){throw Error("He");},A={getState:K.getState,
dispatch:function(O){return L.apply(null,[O].concat(_.Bz(_.mb.apply(1,arguments))))}};
W=m.map(function(O){return O(A)});
L=CZP.apply(null,_.Bz(W))(K.dispatch);return Object.assign({},K,{dispatch:L})}}};
PZP=function(m){Object.keys(m).forEach(function(G){var K=m[G];if(typeof K(void 0,{type:ZbP})==="undefined")throw Error("Ie`"+G);if(typeof K(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+d3f()})==="undefined")throw Error("Je`"+G+"`"+ZbP);})};
pA=function(m){for(var G=Object.keys(m),K={},W=0;W<G.length;W++){var L=G[W];typeof m[L]==="function"&&(K[L]=m[L])}var A=Object.keys(K);try{PZP(K)}catch(c){var O=c}return function(c,u){c=c===void 0?{}:c;if(O)throw O;for(var h=!1,J={},N=0;N<A.length;N++){var D=A[N],t=c[D],a=(0,K[D])(t,u);if(typeof a==="undefined")throw c=u&&u.type,Error("Ke`"+(c?'"'+String(c)+'"':"(unknown type)")+"`"+D);J[D]=a;h=h||a!==t}return(h=h||A.length!==Object.keys(c).length)?J:c}};
yz9=function(m,G,K){function W(){if(J)throw Error("Le");return c}
function L(t){if(typeof t!=="function")throw Error("Me`"+typeof t);if(J)throw Error("Ne");var a=!0;h===u&&(h=u.slice());h.push(t);return function(){if(a){if(J)throw Error("Oe");a=!1;h===u&&(h=u.slice());var v=h.indexOf(t);h.splice(v,1);u=null}}}
function A(t){if(typeof t!=="object"||t===null)var a=!1;else{for(a=t;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);a=Object.getPrototypeOf(t)===a}if(!a)throw Error("Pe`"+typeof t);if(typeof t.type==="undefined")throw Error("Qe");if(J)throw Error("Re");try{J=!0,c=O(c,t)}finally{J=!1}a=u=h;for(var v=0;v<a.length;v++)(0,a[v])();return t}
if(typeof G==="function"&&typeof K==="function"||typeof K==="function"&&typeof arguments[3]==="function")throw Error("Se");typeof G==="function"&&typeof K==="undefined"&&(K=G,G=void 0);if(typeof K!=="undefined"){if(typeof K!=="function")throw Error("Te`"+typeof K);return K(yz9)(m,G)}if(typeof m!=="function")throw Error("Ue`"+typeof m);var O=m,c=G,u=[],h=u,J=!1;A({type:ZbP});var N={},D=(N.dispatch=A,N.subscribe=L,N.getState=W,N.replaceReducer=function(t){if(typeof t!=="function")throw Error("Ve`"+
typeof t);O=t;A({type:eVo});return D},N[fLG]=function(){var t={};
return t.subscribe=function(a){function v(){a.next&&a.next(W())}
if(typeof a!=="object"||a===null)throw new TypeError("We`"+typeof a);v();return{unsubscribe:L(v)}},t[fLG]=function(){return this},t},N);
return D};
x39=function(m){function G(){L&&(L=!1,m());A&&W()}
function K(){requestAnimationFrame(G)}
function W(){var c=Date.now();if(L){if(c-O<2)return;A=!0}else L=!0,A=!1,setTimeout(K,20);O=c}
var L=!1,A=!1,O=0;return W};
Jb=function(m){return typeof m==="number"?m:parseFloat(m)||0};
XWf=function(m){return _.mb.apply(1,arguments).reduce(function(G,K){return G+Jb(m["border-"+K+"-width"])},0)};
zVd=function(m){if(S5G[m])return S5G[m];var G=globalThis[m],K=G.prototype,W=m in RVv?RVv[m]:void 0;W=!(!W||!W.every(function(u){var h,J;return!!((h=Object.getOwnPropertyDescriptor(K,u))==null?0:(J=h.get)==null?0:J.toString().includes("[native code]"))}));
var L=m in U3s?U3s[m]:void 0;L=!(!L||!L.every(function(u){var h;return typeof K[u]==="function"&&((h=K[u])==null?void 0:h.toString().includes("[native code]"))}));
if(W&&L&&!globalThis.Zone)return S5G[m]=G.prototype;try{var A=document.createElement("iframe");document.body.appendChild(A);var O=A.contentWindow;if(!O)return G.prototype;var c=O[m].prototype;document.body.removeChild(A);return c?S5G[m]=c:K}catch(u){return K}};
N8=function(m,G,K){var W=m+"."+String(K);if(lLP[W])return lLP[W].call(G);m=zVd(m);var L;m=(L=Object.getOwnPropertyDescriptor(m,K))==null?void 0:L.get;if(!m)return G[K];lLP[W]=m;return m.call(G)};
MmM=function(m,G){var K="Node."+String(G);if(BOd[K])return BOd[K].bind(m);var W=zVd("Node")[G];if(typeof W!=="function")return m[G];BOd[K]=W;return W.bind(m)};
De=function(m,G,K){try{if(!(G in m))return function(){};
var W=m[G],L=K(W);typeof L==="function"&&(L.prototype=L.prototype||{},Object.defineProperties(L,{__rrweb_original__:{enumerable:!1,value:W}}));m[G]=L;return function(){m[G]=W}}catch(A){return function(){}}};
Q5=function(m){var G=m&&"host"in m&&"mode"in m&&tb(m)||null;return!!(G&&"shadowRoot"in G&&FS(G)===m)};
al=function(m){return Object.prototype.toString.call(m)==="[object ShadowRoot]"};
TOd=function(m){m.includes(" background-clip: text;")&&!m.includes(" -webkit-background-clip: text;")&&(m=m.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return m};
i_9=function(m){try{var G=m.rules||m.cssRules;if(!G)return null;var K=m.href;!K&&m.ownerNode&&(K=m.ownerNode.baseURI);var W=Array.from(G,function(L){return mz9(L,K)}).join("");
return TOd(W)}catch(L){return null}};
mz9=function(m,G){if("styleSheet"in m){try{var K;if(!(K=i_9(m.styleSheet))){var W=m.cssText;if(W.split('"').length<3)K=W;else{var L=["@import","url("+JSON.stringify(m.href)+")"];m.layerName===""?L.push("layer"):m.layerName&&L.push("layer("+m.layerName+")");m.supportsText&&L.push("supports("+m.supportsText+")");m.media.length&&L.push(m.media.mediaText);K=L.join(" ")+";"}}var A=K}catch(O){A=m.cssText}return m.styleSheet.href?GNP(A,m.styleSheet.href):A}A=m.cssText;"selectorText"in m&&m.selectorText.includes(":")&&
(A=A.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return G?GNP(A,G):A};
KPd=function(m){var G=m.element;var K=m.maskInputOptions;var W=m.tagName;var L=m.type;var A=m.value;m=m.maskInputFn;A=A||"";L=L&&L.toLowerCase();if(K[W.toLowerCase()]||L&&K[L])A=m?m(A,G):"*".repeat(A.length);return A};
WPM=function(m){var G=m.getContext("2d");if(!G)return!0;for(var K=0;K<m.width;K+=50)for(var W=0;W<m.height;W+=50){var L=G.getImageData;if((new Uint32Array(("__rrweb_original__"in L?L.__rrweb_original__:L).call(G,K,W,Math.min(50,m.width-K),Math.min(50,m.height-W)).data.buffer)).some(function(A){return A!==0}))return!1}return!0};
LPJ=function(m){var G=m.type;return m.hasAttribute("data-rr-is-password")?"password":G?G.toLowerCase():null};
Aso=function(m){try{var G=new URL(m,window.location.href)}catch(L){return null}var K,W;return(W=(K=G.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:K[1])!=null?W:null};
GNP=function(m,G){return(m||"").replace(wZM,function(K,W,L,A,O,c){L=L||O||c;W=W||A||"";if(!L)return K;if(gWs.test(L)||O_d.test(L)||csd.test(L))return"url("+W+L+W+")";if(L[0]==="/")return K=G.indexOf("//")>-1?G.split("/").slice(0,3).join("/"):G.split("/")[0],K=K.split("?")[0],"url("+W+(K+L)+W+")";K=G.split("/");A=L.split("/");K.pop();A=_.g(A);for(L=A.next();!L.done;L=A.next())L=L.value,L!=="."&&(L===".."?K.pop():K.push(L));return"url("+W+K.join("/")+W+")"})};
YXG=function(m,G){return(G=G===void 0?!1:G)?m.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):m.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
rsd=function(m,G){var K=K===void 0?!1:K;G=Array.from(G.childNodes);var W=[],L=0;if(G.length>1&&m&&typeof m==="string")for(var A=YXG(m,K),O=A.length/m.length,c=1;c<G.length;c++)if(G[c].textContent&&typeof G[c].textContent==="string"){for(var u=YXG(G[c].textContent,K),h=3;h<u.length&&(u[h].match(/[a-zA-Z0-9]/)||u.indexOf(u.substring(0,h),1)!==-1);h++);for(;h<u.length;h++){var J=u.substring(0,h),N=A.split(J),D=-1;if(N.length===2)D=N[0].length;else if(N.length>2&&N[0]===""&&G[c-1].textContent!=="")D=
A.indexOf(J,1);else if(N.length===1){J=J.substring(0,J.length-1);N=A.split(J);if(N.length<=1)return W.push(m),W;h=101}else h===u.length-1&&(D=A.indexOf(J));if(N.length>=2&&h>100){var t=G[c-1].textContent;t&&typeof t==="string"&&(D=A.indexOf(J,YXG(t).length));D===-1&&(D=N[0].length)}if(D!==-1){for(u=Math.floor(D/O);u>0&&u<m.length;){L+=1;if(L>50*G.length)return W.push(m),W;h=YXG(m.substring(0,u),K);if(h.length===D){W.push(m.substring(0,u));m=m.substring(u);A=A.substring(D);break}else u=h.length<D?
u+Math.max(1,Math.floor((D-h.length)/O)):u-Math.max(1,Math.floor((h.length-D)*O))}break}}}W.push(m);return W};
hlV=function(){return uX9++};
Jsf=function(m){if(m instanceof HTMLFormElement)return"form";m=m.tagName.toLowerCase();return pZd.test(m)?"div":m};
FPJ=function(m,G){function K(h){return(h=h.exec(G.substring(W)))?(h=h[0],W+=h.length,h):""}
if(G.trim()==="")return G;for(var W=0,L=[];;){K(Niv);if(W>=G.length)break;var A=K(DzF);if(A.slice(-1)===",")A=tCP(m,A.substring(0,A.length-1)),L.push(A);else{var O="";A=tCP(m,A);for(var c=!1;;){var u=G.charAt(W);if(u===""){L.push((A+O).trim());break}else if(c)u===")"&&(c=!1);else if(u===","){W+=1;L.push((A+O).trim());break}else u==="("&&(c=!0);O+=u;W+=1}}}return L.join(", ")};
tCP=function(m,G){return G&&G.trim()!==""?Qwd(m,G):G};
Qwd=function(m,G){var K=aRv.get(m);K||(K=m.createElement("a"),aRv.set(m,K));if(!G)G="";else if(G.startsWith("blob:")||G.startsWith("data:"))return G;Gp(K,G);return K.href};
oWG=function(m,G,K,W){return W?K==="src"||K==="href"&&(G!=="use"||W[0]!=="#")||K==="xlink:href"&&W[0]!=="#"||K==="background"&&(G==="table"||G==="td"||G==="th")?tCP(m,W):K==="srcset"?FPJ(m,W):K==="style"?GNP(W,Qwd(m)):G==="object"&&K==="data"?tCP(m,W):W:W};
nWG=function(m,G){return(m==="video"||m==="audio")&&G==="autoplay"};
b_M=function(m,G,K){try{if(typeof G==="string"){if(m.classList.contains(G))return!0}else for(var W=m.classList.length;W--;)if(G.test(m.classList[W]))return!0;if(K)return m.matches(K)}catch(L){}return!1};
vWF=function(m,G,K){if(!m)return!1;if(m.nodeType!==m.ELEMENT_NODE)return K?vWF(ol(m),G,K):!1;for(var W=m.classList.length;W--;)if(G.test(m.classList[W]))return!0;return K?vWF(ol(m),G,K):!1};
$zG=function(m,G,K,W){if(m.nodeType===m.ELEMENT_NODE){if(!nA(m).length)return!1}else{if(bL(m)===null)return!1;m=bL(m)}try{if(typeof G==="string")if(W){if(m.closest("."+G))return!0}else{if(m.classList.contains(G))return!0}else if(vWF(m,G,W))return!0;if(K)if(W){if(m.closest(K))return!0}else if(m.matches(K))return!0}catch(L){}return!1};
swd=function(m,G,K){var W=m.contentWindow;if(W){var L=!1;try{var A=W.document.readyState}catch(c){return}if(A!=="complete"){var O=setTimeout(function(){L||(G(),L=!0)},K);
m.addEventListener("load",function(){clearTimeout(O);L=!0;G()})}else W.location.href==="about:blank"&&m.src!=="about:blank"&&m.src!==""||setTimeout(G,0),m.addEventListener("load",G)}};
qXv=function(m,G,K){var W=!1;try{var L=m.sheet}catch(O){return}if(!L){var A=setTimeout(function(){W||(G(),W=!0)},K);
m.addEventListener("load",function(){clearTimeout(A);W=!0;G()})}};
IRF=function(m,G){var K=G.doc,W=G.blockClass,L=G.blockSelector,A=G.needsMask,O=G.inlineStylesheet,c=G.maskInputOptions===void 0?{}:G.maskInputOptions,u=G.maskTextFn,h=G.maskInputFn,J=G.dataURLOptions===void 0?{}:G.dataURLOptions,N=G.inlineImages,D=G.recordCanvas,t=G.keepIframeSrcFn,a=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,v=G.cssCaptured===void 0?!1:G.cssCaptured;G=G.mirror;G.nodeMetaMap.has(K)?(G=G.getId(K),G=G===1?void 0:G):G=void 0;switch(m.nodeType){case m.DOCUMENT_NODE:return m.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:m.compatMode}:{type:0,childNodes:[]};case m.DOCUMENT_TYPE_NODE:return{type:1,name:m.name,publicId:m.publicId,systemId:m.systemId,rootId:G};case m.ELEMENT_NODE:return EWJ(m,{doc:K,blockClass:W,blockSelector:L,inlineStylesheet:O,maskInputOptions:c,maskInputFn:h,dataURLOptions:J,inlineImages:N,recordCanvas:D,keepIframeSrcFn:t,newlyAddedElement:a,rootId:G});case m.TEXT_NODE:return O=(W=ol(m))&&W.tagName,W="",L=O==="STYLE"?!0:void 0,(O=O==="SCRIPT"?!0:void 0)?
W="SCRIPT_PLACEHOLDER":v||(W=H_o(m),L&&W&&(W=GNP(W,Qwd(K)))),!L&&!O&&W&&A&&(W=u?u(W,bL(m)):W.replace(/[\S]/g,"*")),{type:3,textContent:W||"",rootId:G};case m.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:G};case m.COMMENT_NODE:return{type:5,textContent:H_o(m)||"",rootId:G};default:return!1}};
EWJ=function(m,G){var K=G.doc,W=G.inlineStylesheet,L=G.maskInputOptions===void 0?{}:G.maskInputOptions,A=G.maskInputFn,O=G.dataURLOptions===void 0?{}:G.dataURLOptions,c=G.inlineImages,u=G.recordCanvas,h=G.keepIframeSrcFn,J=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,N=G.rootId;G=b_M(m,G.blockClass,G.blockSelector);for(var D=Jsf(m),t={},a=m.attributes.length,v=0;v<a;v++){var I=m.attributes[v];nWG(D,I.name)||(t[I.name]=oWG(K,D,I.name.toLowerCase(),I.value))}D==="link"&&W&&(W=Array.from(K.styleSheets).find(function(f){return f.href===
m.href}),a=null,W&&(a=i_9(W)),a&&(delete t.rel,delete t.href,t._cssText=a));
D==="style"&&m.sheet&&(W=i_9(m.sheet))&&(m.childNodes.length>1&&(W=rsd(W,m).join("/* rr_split */")),t._cssText=W);if(D==="input"||D==="textarea"||D==="select")W=m.value,a=m.checked,t.type!=="radio"&&t.type!=="checkbox"&&t.type!=="submit"&&t.type!=="button"&&W?t.value=KPd({element:m,type:LPJ(m),tagName:D,value:W,maskInputOptions:L,maskInputFn:A}):a&&(t.checked=a);D==="option"&&(m.selected&&!L.select?t.selected=!0:delete t.selected);D==="dialog"&&m.open&&(t.rr_open_mode=m.matches("dialog:modal")?"modal":
"non-modal");D==="canvas"&&u&&(m.__context==="2d"?WPM(m)||(t.rr_dataURL=m.toDataURL(O.type,O.quality)):"__context"in m||(L=m.toDataURL(O.type,O.quality),A=K.createElement("canvas"),A.width=m.width,A.height=m.height,A=A.toDataURL(O.type,O.quality),L!==A&&(t.rr_dataURL=L)));if(D==="img"&&c){vl||(vl=K.createElement("canvas"),jwf=vl.getContext("2d"));var Z=m.currentSrc||m.getAttribute("src")||"<unknown-src>",k=m.crossOrigin,z=function(){m.removeEventListener("load",z);try{vl.width=m.naturalWidth,vl.height=
m.naturalHeight,jwf.drawImage(m,0,0),t.rr_dataURL=vl.toDataURL(O.type,O.quality)}catch(f){if(m.crossOrigin!=="anonymous"){m.crossOrigin="anonymous";m.complete&&m.naturalWidth!==0?z():m.addEventListener("load",z);return}console.warn("Cannot inline img src="+Z+"! Error: "+f)}m.crossOrigin==="anonymous"&&(k?t.crossOrigin=k:m.removeAttribute("crossorigin"))};
m.complete&&m.naturalWidth!==0?z():m.addEventListener("load",z)}if(D==="audio"||D==="video")K=t,K.rr_mediaState=m.paused?"paused":"played",K.rr_mediaCurrentTime=m.currentTime,K.rr_mediaPlaybackRate=m.playbackRate,K.rr_mediaMuted=m.muted,K.rr_mediaLoop=m.loop,K.rr_mediaVolume=m.volume;J||(m.scrollLeft&&(t.rr_scrollLeft=m.scrollLeft),m.scrollTop&&(t.rr_scrollTop=m.scrollTop));G&&(J=m.getBoundingClientRect(),t={class:t.class,rr_width:J.width+"px",rr_height:J.height+"px"});D!=="iframe"||h(t.src)||(m.contentDocument||
(t.rr_src=t.src),delete t.src);var X;try{customElements.get(D)&&(X=!0)}catch(f){}return{type:2,tagName:D,attributes:t,childNodes:[],isSVG:!(m.tagName!=="svg"&&!m.ownerSVGElement)||void 0,needBlock:G,rootId:N,isCustom:X}};
$T=function(m){return m===void 0||m===null?"":m.toLowerCase()};
kNf=function(m,G){return G.comment&&m.type===5||m.type===2&&(G.script&&(m.tagName==="script"||m.tagName==="link"&&(m.attributes.rel==="preload"&&m.attributes.as==="script"||m.attributes.rel==="modulepreload")||m.tagName==="link"&&m.attributes.rel==="prefetch"&&typeof m.attributes.href==="string"&&Aso(m.attributes.href)==="js")||G.headFavicon&&(m.tagName==="link"&&m.attributes.rel==="shortcut icon"||m.tagName==="meta"&&($T(m.attributes.name).match(/^msapplication-tile(image|color)$/)||$T(m.attributes.name)===
"application-name"||$T(m.attributes.rel)==="icon"||$T(m.attributes.rel)==="apple-touch-icon"||$T(m.attributes.rel)==="shortcut icon"))||m.tagName==="meta"&&(G.headMetaDescKeywords&&$T(m.attributes.name).match(/^description|keywords$/)||G.headMetaSocial&&($T(m.attributes.property).match(/^(og|twitter|fb):/)||$T(m.attributes.name).match(/^(og|twitter):/)||$T(m.attributes.name)==="pinterest")||G.headMetaRobots&&($T(m.attributes.name)==="robots"||$T(m.attributes.name)==="googlebot"||$T(m.attributes.name)===
"bingbot")||G.headMetaHttpEquiv&&m.attributes["http-equiv"]!==void 0||G.headMetaAuthorship&&($T(m.attributes.name)==="author"||$T(m.attributes.name)==="generator"||$T(m.attributes.name)==="framework"||$T(m.attributes.name)==="publisher"||$T(m.attributes.name)==="progid"||$T(m.attributes.property).match(/^article:/)||$T(m.attributes.property).match(/^product:/))||G.headMetaVerification&&($T(m.attributes.name)==="google-site-verification"||$T(m.attributes.name)==="yandex-verification"||$T(m.attributes.name)===
"csrf-token"||$T(m.attributes.name)==="p:domain_verify"||$T(m.attributes.name)==="verify-v1"||$T(m.attributes.name)==="verification"||$T(m.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
sK=function(m,G){var K=G.doc,W=G.mirror,L=G.blockClass,A=G.blockSelector,O=G.maskTextClass,c=G.maskTextSelector,u=G.skipChild===void 0?!1:G.skipChild,h=G.inlineStylesheet===void 0?!0:G.inlineStylesheet,J=G.maskInputOptions===void 0?{}:G.maskInputOptions,N=G.maskTextFn,D=G.maskInputFn,t=G.slimDOMOptions,a=G.dataURLOptions===void 0?{}:G.dataURLOptions,v=G.inlineImages===void 0?!1:G.inlineImages,I=G.recordCanvas===void 0?!1:G.recordCanvas,Z=G.onSerialize,k=G.onIframeLoad,z=G.iframeLoadTimeout===void 0?
5E3:G.iframeLoadTimeout,X=G.onStylesheetLoad,f=G.stylesheetLoadTimeout===void 0?5E3:G.stylesheetLoadTimeout,U=G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,l=G.newlyAddedElement===void 0?!1:G.newlyAddedElement,Ls=G.cssCaptured===void 0?!1:G.cssCaptured,gd=G.needsMask,Qf=G.preserveWhiteSpace===void 0?!0:G.preserveWhiteSpace;
gd||(gd=$zG(m,O,c,gd===void 0));var JV=IRF(m,{doc:K,mirror:W,blockClass:L,blockSelector:A,needsMask:gd,inlineStylesheet:h,maskInputOptions:J,maskTextFn:N,maskInputFn:D,dataURLOptions:a,inlineImages:v,recordCanvas:I,keepIframeSrcFn:U,newlyAddedElement:l,cssCaptured:Ls});if(!JV)return console.warn(m,"not serialized"),null;l=W.nodeMetaMap.has(m)?W.getId(m):kNf(JV,t)||!Qf&&JV.type===3&&!JV.textContent.replace(/^\s+|\s+$/gm,"").length?-2:uX9++;G=Object.assign(JV,{id:l});W.add(m,G);if(l===-2)return null;
Z&&Z(m);l=!u;G.type===2&&(l=l&&!G.needBlock,delete G.needBlock,(Ls=FS(m))&&al(Ls)&&(G.isShadowHost=!0));if((G.type===0||G.type===2)&&l){t.headWhitespace&&G.type===2&&G.tagName==="head"&&(Qf=!1);u={doc:K,mirror:W,blockClass:L,blockSelector:A,needsMask:gd,maskTextClass:O,maskTextSelector:c,skipChild:u,inlineStylesheet:h,maskInputOptions:J,maskTextFn:N,maskInputFn:D,slimDOMOptions:t,dataURLOptions:a,inlineImages:v,recordCanvas:I,preserveWhiteSpace:Qf,onSerialize:Z,onIframeLoad:k,iframeLoadTimeout:z,
onStylesheetLoad:X,stylesheetLoadTimeout:f,keepIframeSrcFn:U,cssCaptured:!1};if(G.type!==2||G.tagName!=="textarea"||G.attributes.value===void 0)for(G.type===2&&G.attributes._cssText!==void 0&&typeof G.attributes._cssText==="string"&&(u.cssCaptured=!0),l=_.g(Array.from(nA(m))),Ls=l.next();!Ls.done;Ls=l.next())(Ls=sK(Ls.value,u))&&G.childNodes.push(Ls);l=null;if(m.nodeType===m.ELEMENT_NODE&&(l=FS(m))){Ls=_.g(Array.from(nA(l)));for(var DF=Ls.next();!DF.done;DF=Ls.next())if(DF=sK(DF.value,u))al(l)&&(DF.isShadow=
!0),G.childNodes.push(DF)}}(u=ol(m))&&Q5(u)&&al(u)&&(G.isShadow=!0);G.type===2&&G.tagName==="iframe"&&swd(m,function(){var kG=m.contentDocument;kG&&k&&(kG=sK(kG,{doc:kG,mirror:W,blockClass:L,blockSelector:A,needsMask:gd,maskTextClass:O,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:J,maskTextFn:N,maskInputFn:D,slimDOMOptions:t,dataURLOptions:a,inlineImages:v,recordCanvas:I,preserveWhiteSpace:Qf,onSerialize:Z,onIframeLoad:k,iframeLoadTimeout:z,onStylesheetLoad:X,stylesheetLoadTimeout:f,
keepIframeSrcFn:U}))&&k(m,kG)},z);
G.type===2&&G.tagName==="link"&&typeof G.attributes.rel==="string"&&(G.attributes.rel==="stylesheet"||G.attributes.rel==="preload"&&typeof G.attributes.href==="string"&&Aso(G.attributes.href)==="css")&&qXv(m,function(){if(X){var kG=sK(m,{doc:K,mirror:W,blockClass:L,blockSelector:A,needsMask:gd,maskTextClass:O,maskTextSelector:c,skipChild:!1,inlineStylesheet:h,maskInputOptions:J,maskTextFn:N,maskInputFn:D,slimDOMOptions:t,dataURLOptions:a,inlineImages:v,recordCanvas:I,preserveWhiteSpace:Qf,onSerialize:Z,
onIframeLoad:k,iframeLoadTimeout:z,onStylesheetLoad:X,stylesheetLoadTimeout:f,keepIframeSrcFn:U});kG&&X(m,kG)}},f);
return G};
CBv=function(m){var G=document;m=m||{};var K=m.maskAllInputs===void 0?!1:m.maskAllInputs,W=m.slimDOM===void 0?!1:m.slimDOM;return sK(G,{doc:G,mirror:m.mirror===void 0?new q8:m.mirror,blockClass:m.blockClass===void 0?"rr-block":m.blockClass,blockSelector:m.blockSelector===void 0?null:m.blockSelector,maskTextClass:m.maskTextClass===void 0?"rr-mask":m.maskTextClass,maskTextSelector:m.maskTextSelector===void 0?null:m.maskTextSelector,skipChild:!1,inlineStylesheet:m.inlineStylesheet===void 0?!0:m.inlineStylesheet,
maskInputOptions:K===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:K===!1?{password:!0}:K,maskTextFn:m.maskTextFn,maskInputFn:m.maskInputFn,slimDOMOptions:W===!0||W==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:W==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:W===!1?{}:W,dataURLOptions:m.dataURLOptions,
inlineImages:m.inlineImages===void 0?!1:m.inlineImages,recordCanvas:m.recordCanvas===void 0?!1:m.recordCanvas,preserveWhiteSpace:m.preserveWhiteSpace,onSerialize:m.onSerialize,onIframeLoad:m.onIframeLoad,iframeLoadTimeout:m.iframeLoadTimeout,onStylesheetLoad:m.onStylesheetLoad,stylesheetLoadTimeout:m.stylesheetLoadTimeout,keepIframeSrcFn:m.keepIframeSrcFn===void 0?function(){return!1}:m.keepIframeSrcFn,
newlyAddedElement:!1})};
EK=function(m,G,K){K=K===void 0?document:K;var W={capture:!0,passive:!0};K.addEventListener(m,G,W);return function(){return K.removeEventListener(m,G,W)}};
Hl=function(m,G,K){K=K===void 0?{}:K;var W=null,L=0;return function(){var A=_.mb.apply(0,arguments),O=Date.now();L||K.leading!==!1||(L=O);var c=G-(O-L),u=this;c<=0||c>G?(W&&(clearTimeout(W),W=null),L=O,m.apply(u,A)):W||K.trailing===!1||(W=setTimeout(function(){L=K.leading===!1?0:Date.now();W=null;m.apply(u,A)},c))}};
VCG=function(m,G,K,W,L){L=L===void 0?window:L;var A=L.Object.getOwnPropertyDescriptor(m,G);L.Object.defineProperty(m,G,W?K:{set:function(O){var c=this;setTimeout(function(){K.set.call(c,O)},0);
A&&A.set&&A.set.call(this,O)}});
return function(){return VCG(m,G,A||{},!0)}};
Z_M=function(m){var G=m.document,K,W,L,A;return{left:G.scrollingElement?G.scrollingElement.scrollLeft:m.pageXOffset!==void 0?m.pageXOffset:G.documentElement.scrollLeft||(G==null?void 0:G.body)&&((K=bL(G.body))==null?void 0:K.scrollLeft)||(G==null?void 0:(W=G.body)==null?void 0:W.scrollLeft)||0,top:G.scrollingElement?G.scrollingElement.scrollTop:m.pageYOffset!==void 0?m.pageYOffset:(G==null?void 0:G.documentElement.scrollTop)||(G==null?void 0:G.body)&&((L=bL(G.body))==null?void 0:L.scrollTop)||(G==
null?void 0:(A=G.body)==null?void 0:A.scrollTop)||0}};
dzV=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
PBv=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
ys6=function(m){return m?m.nodeType===m.ELEMENT_NODE?m:bL(m):null};
Il=function(m,G,K,W){if(!m)return!1;m=ys6(m);if(!m)return!1;try{if(typeof G==="string"){if(m.classList.contains(G)||W&&m.closest("."+G)!==null)return!0}else if(vWF(m,G,W))return!0}catch(L){}return K&&(m.matches(K)||W&&m.closest(K)!==null)?!0:!1};
elf=function(m,G,K){return m.tagName==="TITLE"&&K.headTitleMutations?!0:G.getId(m)===-2};
fRG=function(m,G){if(Q5(m))return!1;var K=G.getId(m);return G.has(K)?(K=ol(m))&&K.nodeType===m.DOCUMENT_NODE?!1:K?fRG(K,G):!0:!0};
xzd=function(){var m=m===void 0?window:m;"NodeList"in m&&!m.NodeList.prototype.forEach&&(m.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in m&&!m.DOMTokenList.prototype.forEach&&(m.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
XZ6=function(m,G){return!(m.nodeName!=="LINK"||m.nodeType!==m.ELEMENT_NODE||!m.getAttribute||m.getAttribute("rel")!=="stylesheet"||!G.nodeMetaMap.get(m))};
RlV=function(m){var G=null,K;"getRootNode"in m&&((K=SXd(m))==null?void 0:K.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&tb(SXd(m))&&(G=tb(SXd(m)));return G};
Uz6=function(m){var G=m.ownerDocument;if(G){if(!(G=MmM(G,"contains")(m)))if(G=m.ownerDocument){for(var K;K=RlV(m);)m=K;G=MmM(G,"contains")(m)}else G=!1}else G=!1;return G};
zld=function(m,G){m.delete(G);nA(G).forEach(function(K){return zld(m,K)})};
lRM=function(m,G){for(var K=[m];K.length;)m=K.pop(),G.has(m)||(G.add(m),nA(m).forEach(function(W){return K.push(W)}))};
Bid=function(m,G){m.size===0?m=!1:m=(G=ol(G))?m.has(G):!1;return m};
TiG=function(m,G){return m.size===0?!1:MC9(m,G)};
MC9=function(m,G){return(G=ol(G))?m.has(G)?!0:MC9(m,G):!1};
jl=function(m){try{if("composedPath"in m){var G=m.composedPath();if(G.length)return G[0]}else if("path"in m&&m.path.length)return m.path[0]}catch(K){}return m&&m.target};
i2P=function(m,G){var K=new mhd;CA.push(K);K.init(m);m=new (zVd("MutationObserver").constructor)(V5(K.processMutations.bind(K)));m.observe(G,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return m};
K7d=function(m){var G=m.mousemoveCb;var K=m.sampling;var W=m.doc;var L=m.mirror;if(K.mousemove===!1)return function(){};
var A=[],O,c=Hl(V5(function(h){var J=Date.now()-O;G(A.map(function(N){N.timeOffset-=J;return N}),h);
A=[];O=null}),typeof K.mousemoveCallback==="number"?K.mousemoveCallback:500);
m=V5(Hl(V5(function(h){var J=jl(h),N=h.changedTouches?h.changedTouches[0]:h,D=N.clientX;N=N.clientY;O||(O=G1v());A.push({x:D,y:N,id:L.getId(J),timeOffset:G1v()-O});c(typeof DragEvent!=="undefined"&&h instanceof DragEvent?12:h instanceof MouseEvent?1:6)}),typeof K.mousemove==="number"?K.mousemove:50,{trailing:!1}));
var u=[EK("mousemove",m,W),EK("touchmove",m,W),EK("drag",m,W)];return V5(function(){u.forEach(function(h){return h()})})};
W7o=function(m){var G=m.mouseInteractionCb;var K=m.doc;var W=m.mirror;var L=m.blockClass;var A=m.blockSelector;m=m.sampling;if(m.mouseInteraction===!1)return function(){};
var O=m.mouseInteraction===!0||m.mouseInteraction===void 0?{}:m.mouseInteraction,c=[],u=null,h=function(J){return function(N){var D=jl(N);if(!Il(D,L,A,!0)){var t=null,a=J;if("pointerType"in N){switch(N.pointerType){case "mouse":t=0;break;case "touch":t=2;break;case "pen":t=1}t===2&&(Ze[J]===1?a="TouchStart":Ze[J]===0&&(a="TouchEnd"))}else N.changedTouches&&(t=2);if(t!==null){if(u=t,a.startsWith("Touch")&&t===2||a.startsWith("Mouse")&&t===0)t=null}else Ze[J]===2&&(t=u,u=null);if(N=N.changedTouches?
N.changedTouches[0]:N)D=W.getId(D),V5(G)(Object.assign({},{type:Ze[a],id:D,x:N.clientX,y:N.clientY},t!==null&&{pointerType:t}))}}};
Object.keys(Ze).filter(function(J){return Number.isNaN(Number(J))&&!J.endsWith("_Departed")&&O[J]!==!1}).forEach(function(J){var N=J.toLowerCase(),D=h(J);
if(window.PointerEvent)switch(Ze[J]){case 1:case 0:N=N.replace("mouse","pointer");break;case 7:case 9:return}c.push(EK(N,D,K))});
return V5(function(){c.forEach(function(J){return J()})})};
L7V=function(m){var G=m.scrollCb;var K=m.doc;var W=m.mirror;var L=m.blockClass;var A=m.blockSelector;return EK("scroll",V5(Hl(V5(function(O){var c=jl(O);c&&!Il(c,L,A,!0)&&(O=W.getId(c),c===K&&K.defaultView?(c=Z_M(K.defaultView),G({id:O,x:c.left,y:c.top})):G({id:O,x:c.scrollLeft,y:c.scrollTop}))}),m.sampling.scroll||100)),K)};
AZJ=function(m,G){var K=m.viewportResizeCb;var W=-1,L=-1;return EK("resize",V5(Hl(V5(function(){var A=dzV(),O=PBv();if(W!==A||L!==O)K({width:Number(O),height:Number(A)}),W=A,L=O}),200)),G.win)};
O2s=function(m){function G(I){var Z=jl(I),k=I.isTrusted,z=Z&&Z.tagName;Z&&z==="OPTION"&&(Z=bL(Z));if(!(!Z||!z||w09.indexOf(z)<0||Il(Z,O,c,!0)||Z.classList.contains(u)||h&&Z.matches(h))){var X=Z.value,f=!1;I=LPJ(Z)||"";if(I==="radio"||I==="checkbox")f=Z.checked;else if(J[z.toLowerCase()]||J[I])X=KPd({element:Z,maskInputOptions:J,tagName:z,type:I,value:X,maskInputFn:N});K(Z,t?{text:X,isChecked:f,userTriggered:k}:{text:X,isChecked:f});k=Z.name;I==="radio"&&k&&f&&L.querySelectorAll('input[type="radio"][name="'+
k+'"]').forEach(function(U){if(U!==Z){var l=U.value;K(U,t?{text:l,isChecked:!f,userTriggered:!1}:{text:l,isChecked:!f})}})}}
function K(I,Z){var k=gKs.get(I);k&&k.text===Z.text&&k.isChecked===Z.isChecked||(gKs.set(I,Z),I=A.getId(I),V5(W)(Object.assign({},Z,{id:I})))}
var W=m.inputCb;var L=m.doc;var A=m.mirror;var O=m.blockClass;var c=m.blockSelector;var u=m.ignoreClass;var h=m.ignoreSelector;var J=m.maskInputOptions;var N=m.maskInputFn;var D=m.sampling;var t=m.userTriggeredOnInput;var a=(D.input==="last"?["change"]:["input","change"]).map(function(I){return EK(I,V5(G),L)}),v=L.defaultView;
if(!v)return function(){a.forEach(function(I){return I()})};
m=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value");D=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]];m&&m.set&&a.push.apply(a,_.Bz(D.map(function(I){return VCG(I[0],I[1],{set:function(){V5(G)({target:this,isTrusted:!1})}},!1,v)})));
return V5(function(){a.forEach(function(I){return I()})})};
YLf=function(m){var G=[],K,W,L,A;cZv("CSSGroupingRule")&&((K=m.parentRule)==null?void 0:(W=K.constructor)==null?void 0:W.name)==="CSSGroupingRule"||cZv("CSSMediaRule")&&m.parentRule instanceof CSSMediaRule||cZv("CSSSupportsRule")&&m.parentRule instanceof CSSSupportsRule||cZv("CSSConditionRule")&&((L=m.parentRule)==null?void 0:(A=L.constructor)==null?void 0:A.name)==="CSSConditionRule"?(m=Array.from(m.parentRule.cssRules).indexOf(m),G.unshift(m)):m.parentStyleSheet&&(m=Array.from(m.parentStyleSheet.cssRules).indexOf(m),
G.unshift(m));return G};
dB=function(m,G,K){var W,L;if(!m)return{};m.ownerNode?W=G.getId(m.ownerNode):L=K.getId(m);return{styleId:L,id:W}};
uMJ=function(m,G){var K=m.styleSheetRuleCb;var W=m.mirror;var L=m.stylesheetManager;var A=G.win;if(!A.CSSStyleSheet||!A.CSSStyleSheet.prototype)return function(){};
var O=A.CSSStyleSheet.prototype.insertRule;A.CSSStyleSheet.prototype.insertRule=new Pl(O,{apply:V5(function(D,t,a){var v=_.g(a),I=v.next().value;v=v.next().value;var Z=dB(t,W,L.styleMirror),k=Z.id;Z=Z.styleId;(k&&k!==-1||Z&&Z!==-1)&&K({id:k,styleId:Z,adds:[{rule:I,index:v}]});return D.apply(t,a)})});
A.CSSStyleSheet.prototype.addRule=function(D,t,a){a=a===void 0?this.cssRules.length:a;return A.CSSStyleSheet.prototype.insertRule.apply(this,[D+" { "+t+" }",a])};
var c=A.CSSStyleSheet.prototype.deleteRule;A.CSSStyleSheet.prototype.deleteRule=new Pl(c,{apply:V5(function(D,t,a){var v=_.g(a).next().value,I=dB(t,W,L.styleMirror),Z=I.id;I=I.styleId;(Z&&Z!==-1||I&&I!==-1)&&K({id:Z,styleId:I,removes:[{index:v}]});return D.apply(t,a)})});
A.CSSStyleSheet.prototype.removeRule=function(D){return A.CSSStyleSheet.prototype.deleteRule.apply(this,[D])};
if(A.CSSStyleSheet.prototype.replace){var u=A.CSSStyleSheet.prototype.replace;A.CSSStyleSheet.prototype.replace=new Pl(u,{apply:V5(function(D,t,a){var v=_.g(a).next().value,I=dB(t,W,L.styleMirror),Z=I.id;I=I.styleId;(Z&&Z!==-1||I&&I!==-1)&&K({id:Z,styleId:I,replace:v});return D.apply(t,a)})})}if(A.CSSStyleSheet.prototype.replaceSync){var h=A.CSSStyleSheet.prototype.replaceSync;
A.CSSStyleSheet.prototype.replaceSync=new Pl(h,{apply:V5(function(D,t,a){var v=_.g(a).next().value,I=dB(t,W,L.styleMirror),Z=I.id;I=I.styleId;(Z&&Z!==-1||I&&I!==-1)&&K({id:Z,styleId:I,replaceSync:v});return D.apply(t,a)})})}var J={};
rZP("CSSGroupingRule")?J.CSSGroupingRule=A.CSSGroupingRule:(rZP("CSSMediaRule")&&(J.CSSMediaRule=A.CSSMediaRule),rZP("CSSConditionRule")&&(J.CSSConditionRule=A.CSSConditionRule),rZP("CSSSupportsRule")&&(J.CSSSupportsRule=A.CSSSupportsRule));var N={};Object.entries(J).forEach(function(D){var t=_.g(D);D=t.next().value;t=t.next().value;N[D]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule};t.prototype.insertRule=new Pl(N[D].insertRule,{apply:V5(function(a,v,I){var Z=_.g(I),k=Z.next().value;
Z=Z.next().value;var z=dB(v.parentStyleSheet,W,L.styleMirror),X=z.id;z=z.styleId;(X&&X!==-1||z&&z!==-1)&&K({id:X,styleId:z,adds:[{rule:k,index:[].concat(_.Bz(YLf(v)),[Z||0])}]});return a.apply(v,I)})});
t.prototype.deleteRule=new Pl(N[D].deleteRule,{apply:V5(function(a,v,I){var Z=_.g(I).next().value,k=dB(v.parentStyleSheet,W,L.styleMirror),z=k.id;k=k.styleId;(z&&z!==-1||k&&k!==-1)&&K({id:z,styleId:k,removes:[{index:[].concat(_.Bz(YLf(v)),[Z])}]});return a.apply(v,I)})})});
return V5(function(){A.CSSStyleSheet.prototype.insertRule=O;A.CSSStyleSheet.prototype.deleteRule=c;u&&(A.CSSStyleSheet.prototype.replace=u);h&&(A.CSSStyleSheet.prototype.replaceSync=h);Object.entries(J).forEach(function(D){var t=_.g(D);D=t.next().value;t=t.next().value;t.prototype.insertRule=N[D].insertRule;t.prototype.deleteRule=N[D].deleteRule})})};
p09=function(m,G){var K=m.mirror;var W=m.stylesheetManager;var L=null;L=G.nodeName==="#document"?K.getId(G):K.getId(tb(G));var A,O,c;m=G.nodeName==="#document"?(A=G.defaultView)==null?void 0:A.Document:(O=G.ownerDocument)==null?void 0:(c=O.defaultView)==null?void 0:c.ShadowRoot;var u=(m==null?0:m.prototype)?Object.getOwnPropertyDescriptor(m==null?void 0:m.prototype,"adoptedStyleSheets"):void 0;if(L===null||L===-1||!m||!u)return function(){};
Object.defineProperty(G,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:function(){var h;return(h=u.get)==null?void 0:h.call(this)},
set:function(h){var J,N=(J=u.set)==null?void 0:J.call(this,h);if(L!==null&&L!==-1)try{hAd(W,h,L)}catch(D){}return N}});
return V5(function(){Object.defineProperty(G,"adoptedStyleSheets",{configurable:u.configurable,enumerable:u.enumerable,get:u.get,set:u.set})})};
JZd=function(m,G){var K=m.styleDeclarationCb;var W=m.mirror;var L=m.ignoreCSSAttributes;var A=m.stylesheetManager;var O=G.win;var c=O.CSSStyleDeclaration.prototype.setProperty;O.CSSStyleDeclaration.prototype.setProperty=new Pl(c,{apply:V5(function(h,J,N){var D=_.g(N),t=D.next().value,a=D.next().value;D=D.next().value;if(L.has(t))return c.apply(J,[t,a,D]);var v,I=dB((v=J.parentRule)==null?void 0:v.parentStyleSheet,W,A.styleMirror);v=I.id;I=I.styleId;(v&&v!==-1||I&&I!==-1)&&K({id:v,styleId:I,set:{property:t,
value:a,priority:D},index:YLf(J.parentRule)});return h.apply(J,N)})});
var u=O.CSSStyleDeclaration.prototype.removeProperty;O.CSSStyleDeclaration.prototype.removeProperty=new Pl(u,{apply:V5(function(h,J,N){var D=_.g(N).next().value;if(L.has(D))return u.apply(J,[D]);var t,a=dB((t=J.parentRule)==null?void 0:t.parentStyleSheet,W,A.styleMirror);t=a.id;a=a.styleId;(t&&t!==-1||a&&a!==-1)&&K({id:t,styleId:a,remove:{property:D},index:YLf(J.parentRule)});return h.apply(J,N)})});
return V5(function(){O.CSSStyleDeclaration.prototype.setProperty=c;O.CSSStyleDeclaration.prototype.removeProperty=u})};
NvF=function(m){var G=m.mediaInteractionCb;var K=m.blockClass;var W=m.blockSelector;var L=m.mirror;var A=m.sampling;m=m.doc;var O=V5(function(u){return Hl(V5(function(h){if((h=jl(h))&&!Il(h,K,W,!0)){var J=h.currentTime,N=h.volume,D=h.muted,t=h.playbackRate,a=h.loop;G({type:u,id:L.getId(h),currentTime:J,volume:N,muted:D,playbackRate:t,loop:a})}}),A.media||500)}),c=[EK("play",O(0),m),
EK("pause",O(1),m),EK("seeked",O(2),m),EK("volumechange",O(3),m),EK("ratechange",O(4),m)];return V5(function(){c.forEach(function(u){return u()})})};
Dh6=function(m){var G=m.fontCb;m=m.doc;var K=m.defaultView;if(!K)return function(){};
var W=[],L=new WeakMap,A=K.FontFace;K.FontFace=function(O,c,u){var h=new A(O,c,u);L.set(h,{family:O,buffer:typeof c!=="string",descriptors:u,fontSource:typeof c==="string"?c:JSON.stringify(Array.from(new Uint8Array(c)))});return h};
m=De(m.fonts,"add",function(O){return function(c){setTimeout(V5(function(){var u=L.get(c);u&&(G(u),L.delete(c))}),0);
return O.apply(this,[c])}});
W.push(function(){K.FontFace=A});
W.push(m);return V5(function(){W.forEach(function(O){return O()})})};
tgP=function(m){var G=m.doc,K=m.mirror,W=m.blockClass,L=m.blockSelector,A=m.selectionCb,O=!0;m=V5(function(){var c=G.getSelection();if(c&&!(O&&(c==null?0:c.isCollapsed))){O=c.isCollapsed||!1;for(var u=[],h=c.rangeCount||0,J=0;J<h;J++){var N=c.getRangeAt(J),D=N.startContainer,t=N.startOffset,a=N.endContainer;N=N.endOffset;Il(D,W,L,!0)||Il(a,W,L,!0)||u.push({start:K.getId(D),startOffset:t,end:K.getId(a),endOffset:N})}A({ranges:u})}});
m();return EK("selectionchange",m)};
F7d=function(m){var G=m.doc;var K=m.customElementCb;return(m=G.defaultView)&&m.customElements?De(m.customElements,"define",function(W){return function(L,A,O){try{K({define:{name:L}})}catch(c){console.warn("Custom element callback failed for "+L)}return W.apply(this,[L,A,O])}}):function(){}};
Q99=function(m,G){var K=m.mutationCb,W=m.mousemoveCb,L=m.mouseInteractionCb,A=m.scrollCb,O=m.viewportResizeCb,c=m.inputCb,u=m.mediaInteractionCb,h=m.styleSheetRuleCb,J=m.styleDeclarationCb,N=m.canvasMutationCb,D=m.fontCb,t=m.selectionCb,a=m.customElementCb;m.mutationCb=function(){var v=_.mb.apply(0,arguments);G.mutation&&G.mutation.apply(G,_.Bz(v));K.apply(null,_.Bz(v))};
m.mousemoveCb=function(){var v=_.mb.apply(0,arguments);G.mousemove&&G.mousemove.apply(G,_.Bz(v));W.apply(null,_.Bz(v))};
m.mouseInteractionCb=function(){var v=_.mb.apply(0,arguments);G.mouseInteraction&&G.mouseInteraction.apply(G,_.Bz(v));L.apply(null,_.Bz(v))};
m.scrollCb=function(){var v=_.mb.apply(0,arguments);G.scroll&&G.scroll.apply(G,_.Bz(v));A.apply(null,_.Bz(v))};
m.viewportResizeCb=function(){var v=_.mb.apply(0,arguments);G.viewportResize&&G.viewportResize.apply(G,_.Bz(v));O.apply(null,_.Bz(v))};
m.inputCb=function(){var v=_.mb.apply(0,arguments);G.input&&G.input.apply(G,_.Bz(v));c.apply(null,_.Bz(v))};
m.mediaInteractionCb=function(){var v=_.mb.apply(0,arguments);G.mediaInteaction&&G.mediaInteaction.apply(G,_.Bz(v));u.apply(null,_.Bz(v))};
m.styleSheetRuleCb=function(){var v=_.mb.apply(0,arguments);G.styleSheetRule&&G.styleSheetRule.apply(G,_.Bz(v));h.apply(null,_.Bz(v))};
m.styleDeclarationCb=function(){var v=_.mb.apply(0,arguments);G.styleDeclaration&&G.styleDeclaration.apply(G,_.Bz(v));J.apply(null,_.Bz(v))};
m.canvasMutationCb=function(){var v=_.mb.apply(0,arguments);G.canvasMutation&&G.canvasMutation.apply(G,_.Bz(v));N.apply(null,_.Bz(v))};
m.fontCb=function(){var v=_.mb.apply(0,arguments);G.font&&G.font.apply(G,_.Bz(v));D.apply(null,_.Bz(v))};
m.selectionCb=function(){var v=_.mb.apply(0,arguments);G.selection&&G.selection.apply(G,_.Bz(v));t.apply(null,_.Bz(v))};
m.customElementCb=function(){var v=_.mb.apply(0,arguments);G.customElement&&G.customElement.apply(G,_.Bz(v));a.apply(null,_.Bz(v))}};
azM=function(m,G){G=G===void 0?{}:G;var K=m.doc.defaultView;if(!K)return function(){};
Q99(m,G);var W;m.recordDOM&&(W=i2P(m,m.doc));var L=K7d(m),A=W7o(m),O=L7V(m),c=AZJ(m,{win:K}),u=O2s(m),h=NvF(m),J=function(){},N=function(){},D=function(){},t=function(){};
m.recordDOM&&(J=uMJ(m,{win:K}),N=p09(m,m.doc),D=JZd(m,{win:K}),m.collectFonts&&(t=Dh6(m)));var a=tgP(m),v=F7d(m),I=[];m=_.g(m.plugins);for(G=m.next();!G.done;G=m.next())G=G.value,I.push(G.observer(G.callback,K,G.options));return V5(function(){CA.forEach(function(k){return k.reset()});
var Z;(Z=W)==null||Z.disconnect();L();A();O();c();u();h();J();N();D();t();a();v();I.forEach(function(k){return k()})})};
cZv=function(m){return typeof window[m]!=="undefined"};
rZP=function(m){return!!(typeof window[m]!=="undefined"&&window[m].prototype&&"insertRule"in window[m].prototype&&"deleteRule"in window[m].prototype)};
oKd=function(m){m=new Uint8Array(m);for(var G="",K=0;K<m.byteLength;K++)G+=String.fromCharCode(m[K]);return btoa(G)};
nKd=function(m,G,K){if(m instanceof Array)return m.map(function(L){return nKd(L,G,K)});
if(m!==null){if(m instanceof Float32Array||m instanceof Float64Array||m instanceof Int32Array||m instanceof Uint32Array||m instanceof Uint8Array||m instanceof Uint16Array||m instanceof Int16Array||m instanceof Int8Array||m instanceof Uint8ClampedArray)return{rr_type:m.constructor.name,args:[Object.values(m)]};if(m instanceof ArrayBuffer){var W=m.constructor.name;m=oKd(m);return{rr_type:W,base64:m}}if(m instanceof DataView)return{rr_type:m.constructor.name,args:[nKd(m.buffer,G,K),m.byteOffset,m.byteLength]};
if(m instanceof HTMLImageElement)return{rr_type:m.constructor.name,src:m.src};if(m instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:m.toDataURL()};if(m instanceof ImageData)return{rr_type:m.constructor.name,args:[nKd(m.data,G,K),m.width,m.height]};if(b2V(m,G)||typeof m==="object")return W=m.constructor.name,m=vK9(m,G,K),{rr_type:W,index:m}}return m};
s9M=function(m,G,K,W){for(var L=[],A=_.g(Object.getOwnPropertyNames(G.CanvasRenderingContext2D.prototype)),O=A.next(),c={};!O.done;c={prop$jscomp$58:void 0},O=A.next()){c.prop$jscomp$58=O.value;try{if(typeof G.CanvasRenderingContext2D.prototype[c.prop$jscomp$58]==="function"){var u=De(G.CanvasRenderingContext2D.prototype,c.prop$jscomp$58,function(h){return function(J){return function(){var N=_.mb.apply(0,arguments),D=this;Il(this.canvas,K,W,!0)||setTimeout(function(){var t=$hP(N,G,D);m(D.canvas,{type:y5["2D"],
property:h.prop$jscomp$58,args:t})},0);
return J.apply(this,N)}}}(c));
L.push(u)}}catch(h){O=VCG(G.CanvasRenderingContext2D.prototype,c.prop$jscomp$58,{set:function(J){return function(N){m(this.canvas,{type:y5["2D"],property:J.prop$jscomp$58,args:[N],setter:!0})}}(c)}),L.push(O)}}return function(){L.forEach(function(h){return h()})}};
qLd=function(m,G,K,W){var L=[];try{var A=De(m.HTMLCanvasElement.prototype,"getContext",function(O){return function(c){var u=_.mb.apply(1,arguments);if(!Il(this,G,K,!0)){var h=c==="experimental-webgl"?"webgl":c;"__context"in this||(this.__context=h);W&&["webgl","webgl2"].includes(h)&&(u[0]&&typeof u[0]==="object"?(h=u[0],h.preserveDrawingBuffer||(h.preserveDrawingBuffer=!0)):u.splice(0,1,{preserveDrawingBuffer:!0}))}return O.apply(this,[c].concat(_.Bz(u)))}});
L.push(A)}catch(O){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){L.forEach(function(O){return O()})}};
EKM=function(m,G,K,W,L,A){for(var O=[],c=_.g(Object.getOwnPropertyNames(m)),u=c.next(),h={};!u.done;h={prop$jscomp$59:void 0},u=c.next())if(h.prop$jscomp$59=u.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(h.prop$jscomp$59))try{if(typeof m[h.prop$jscomp$59]==="function"){var J=De(m,h.prop$jscomp$59,function(N){return function(D){return function(){var t=_.mb.apply(0,arguments),a=D.apply(this,t);vK9(a,A,this);"tagName"in this.canvas&&!Il(this.canvas,W,L,!0)&&(t=
$hP(t,A,this),K(this.canvas,{type:G,property:N.prop$jscomp$59,args:t}));return a}}}(h));
O.push(J)}}catch(N){u=VCG(m,h.prop$jscomp$59,{set:function(D){return function(t){K(this.canvas,{type:G,property:D.prop$jscomp$59,args:[t],setter:!0})}}(h)}),O.push(u)}return O};
H2d=function(m,G,K,W){var L=[];L.push.apply(L,_.Bz(EKM(G.WebGLRenderingContext.prototype,1,m,K,W,G)));typeof G.WebGL2RenderingContext!=="undefined"&&L.push.apply(L,_.Bz(EKM(G.WebGL2RenderingContext.prototype,2,m,K,W,G)));return function(){L.forEach(function(A){return A()})}};
RAv=function(m){var G=m=m===void 0?{}:m,K=G.emit,W=G.checkoutEveryNms,L=G.checkoutEveryNth,A=G.blockClass===void 0?"rr-block":G.blockClass,O=G.blockSelector===void 0?null:G.blockSelector,c=G.ignoreClass===void 0?"rr-ignore":G.ignoreClass,u=G.ignoreSelector===void 0?null:G.ignoreSelector,h=G.maskTextClass===void 0?"rr-mask":G.maskTextClass,J=G.maskTextSelector===void 0?null:G.maskTextSelector,N=G.inlineStylesheet===void 0?!0:G.inlineStylesheet,D=G.maskAllInputs,t=G.maskInputOptions,a=G.slimDOMOptions,
v=G.maskInputFn,I=G.maskTextFn,Z=G.hooks,k=G.packFn,z=G.sampling===void 0?{}:G.sampling,X=G.dataURLOptions===void 0?{}:G.dataURLOptions,f=G.mousemoveWait,U=G.recordDOM===void 0?!0:G.recordDOM,l=G.recordCanvas===void 0?!1:G.recordCanvas,Ls=G.recordCrossOriginIframes===void 0?!1:G.recordCrossOriginIframes,gd=G.recordAfter===void 0?m.recordAfter==="DOMContentLoaded"?m.recordAfter:"load":G.recordAfter,Qf=G.userTriggeredOnInput===void 0?!1:G.userTriggeredOnInput,JV=G.collectFonts===void 0?!1:G.collectFonts,
DF=G.inlineImages===void 0?!1:G.inlineImages,kG=G.plugins,eo=G.keepIframeSrcFn===void 0?function(){return!1}:G.keepIframeSrcFn,xG=G.ignoreCSSAttributes===void 0?new Set([]):G.ignoreCSSAttributes;
el=G.errorHandler;var Ji=Ls?window.parent===window:!0,rK=!1;if(!Ji)try{window.parent.document&&(rK=!1)}catch(S0){rK=!0}if(Ji&&!K)throw Error("bf");if(!Ji&&!rK)return function(){};
f!==void 0&&z.mousemove===void 0&&(z.mousemove=f);fA.reset();var So=D===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:t!==void 0?t:{password:!0},ti=a===!0||a==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:a==="all",headMetaDescKeywords:a==="all",headTitleMutations:a==="all"}:
a?a:{};xzd();var bS,NG=0,EO=function(S0){for(var zG=_.g(kG||[]),c2=zG.next();!c2.done;c2=zG.next())c2=c2.value,c2.eventProcessor&&(S0=c2.eventProcessor(S0));k&&!rK&&(S0=k(S0));return S0};
xT=function(S0,zG){S0.timestamp=G1v();var c2;((c2=CA[0])==null?0:c2.isFrozen())&&S0.type!==2&&(S0.type!==3||S0.data.source!==0)&&CA.forEach(function(N6){return N6.unfreeze()});
Ji?K==null||K(EO(S0),zG):rK&&(zG={type:"rrweb",event:EO(S0),origin:window.location.origin,isCheckout:zG},window.parent.postMessage(zG,"*"));S0.type===2?(bS=S0,NG=0):S0.type!==3||S0.data.source===0&&S0.data.isAttachIframe||(NG++,S0=W&&S0.timestamp-bS.timestamp>W,(L&&NG>=L||S0)&&Iz9(!0))};
var gz=function(S0){xT({type:3,data:Object.assign({},{source:0},S0)})},ps=function(S0){return xT({type:3,
data:Object.assign({},{source:3},S0)})},ZF=function(S0){return xT({type:3,
data:Object.assign({},{source:9},S0)})},DP=new j9M({mutationCb:gz,
adoptedStyleSheetCb:function(S0){return xT({type:3,data:Object.assign({},{source:15},S0)})}}),lS=new k1V({mirror:fA,
mutationCb:gz,stylesheetManager:DP,recordCrossOriginIframes:Ls,wrappedEmit:xT});m=_.g(kG||[]);for(G=m.next();!G.done;G=m.next())G=G.value,G.getMirror&&G.getMirror({nodeMirror:fA,crossOriginIframeMirror:lS.crossOriginIframeMirror,crossOriginIframeStyleMirror:lS.crossOriginIframeStyleMirror});var Eo=new CDd;Vgd=new Z2d({recordCanvas:l,mutationCb:ZF,win:window,blockClass:A,blockSelector:O,mirror:fA,sampling:z.canvas,dataURLOptions:X});var iq=new dhJ({mutationCb:gz,scrollCb:ps,bypassOptions:{blockClass:A,
blockSelector:O,maskTextClass:h,maskTextSelector:J,inlineStylesheet:N,maskInputOptions:So,dataURLOptions:X,maskTextFn:I,maskInputFn:v,recordCanvas:l,inlineImages:DF,sampling:z,slimDOMOptions:ti,iframeManager:lS,stylesheetManager:DP,canvasManager:Vgd,keepIframeSrcFn:eo,processedNodeManager:Eo},mirror:fA});Iz9=function(S0){S0=S0===void 0?!1:S0;if(U){xT({type:4,data:{href:window.location.href,width:PBv(),height:dzV()}},S0);DP.reset();iq.init();CA.forEach(function(c2){return c2.lock()});
var zG=CBv({mirror:fA,blockClass:A,blockSelector:O,maskTextClass:h,maskTextSelector:J,inlineStylesheet:N,maskAllInputs:So,maskTextFn:I,maskInputFn:v,slimDOM:ti,dataURLOptions:X,recordCanvas:l,inlineImages:DF,onSerialize:function(c2){c2.nodeName==="IFRAME"&&fA.nodeMetaMap.get(c2)&&PDd(lS,c2);XZ6(c2,fA)&&yZP(DP,c2);c2&&FS(c2)&&eAJ(iq,FS(c2),document)},
onIframeLoad:function(c2,N6){fzM(lS,c2,N6);c2.contentWindow&&c2.contentDocument&&xh9(iq,c2.contentWindow.Element,c2.contentDocument)},
onStylesheetLoad:function(c2,N6){X0s(DP,c2,N6)},
keepIframeSrcFn:eo});zG?(xT({type:2,data:{node:zG,initialOffset:Z_M(window)}},S0),CA.forEach(function(c2){return c2.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&hAd(DP,document.adoptedStyleSheets,fA.getId(document))):console.warn("Failed to snapshot the document")}};
try{var jy=[],T4=function(S0){var zG;return V5(azM)({mutationCb:gz,mousemoveCb:function(c2,N6){return xT({type:3,data:{source:N6,positions:c2}})},
mouseInteractionCb:function(c2){return xT({type:3,data:Object.assign({},{source:2},c2)})},
scrollCb:ps,viewportResizeCb:function(c2){return xT({type:3,data:Object.assign({},{source:4},c2)})},
inputCb:function(c2){return xT({type:3,data:Object.assign({},{source:5},c2)})},
mediaInteractionCb:function(c2){return xT({type:3,data:Object.assign({},{source:7},c2)})},
styleSheetRuleCb:function(c2){return xT({type:3,data:Object.assign({},{source:8},c2)})},
styleDeclarationCb:function(c2){return xT({type:3,data:Object.assign({},{source:13},c2)})},
canvasMutationCb:ZF,fontCb:function(c2){return xT({type:3,data:Object.assign({},{source:10},c2)})},
selectionCb:function(c2){xT({type:3,data:Object.assign({},{source:14},c2)})},
customElementCb:function(c2){xT({type:3,data:Object.assign({},{source:16},c2)})},
blockClass:A,ignoreClass:c,ignoreSelector:u,maskTextClass:h,maskTextSelector:J,maskInputOptions:So,inlineStylesheet:N,sampling:z,recordDOM:U,recordCanvas:l,inlineImages:DF,userTriggeredOnInput:Qf,collectFonts:JV,doc:S0,maskInputFn:v,maskTextFn:I,keepIframeSrcFn:eo,blockSelector:O,slimDOMOptions:ti,dataURLOptions:X,mirror:fA,iframeManager:lS,stylesheetManager:DP,shadowDomManager:iq,processedNodeManager:Eo,canvasManager:Vgd,ignoreCSSAttributes:xG,plugins:(kG==null?void 0:(zG=kG.filter(function(c2){return c2.observer}))==
null?void 0:zG.map(function(c2){return{observer:c2.observer,
options:c2.options,callback:function(N6){return xT({type:6,data:{plugin:c2.name,payload:N6}})}}}))||[]},Z)};
SLf(lS,function(S0){try{jy.push(T4(S0.contentDocument))}catch(zG){console.warn(zG)}});
var JD=function(){Iz9();jy.push(T4(document))};
document.readyState==="interactive"||document.readyState==="complete"?JD():(jy.push(EK("DOMContentLoaded",function(){xT({type:0,data:{}});gd==="DOMContentLoaded"&&JD()})),jy.push(EK("load",function(){xT({type:1,
data:{}});gd==="load"&&JD()},window)));
return function(){jy.forEach(function(S0){try{S0()}catch(zG){String(zG).toLowerCase().includes("cross-origin")||console.warn(zG)}});
Eo.destroy();el=void 0}}catch(S0){console.warn(S0)}};
_.b=function(m,G){G=LZ(Wz(G));m.innerHTML=G};
lz9=function(m){var G=Uhf;G||(G=zAG(),G=Uhf=_.Y2.transpose(G));G=G[m];return typeof G==="string"?G:_.XS(m)};
Bvs=function(m){m=String(m).toLowerCase();var G=zAG()[m];return typeof G==="string"?G:_.Sl(m)};
MgG=function(m){m=m.toLowerCase();m=zAG()[m];return typeof m==="string"?m:null};
zAG=function(){if(!Tv6){for(var m=Object.assign({},mt6),G=_.g(i$v),K=G.next();!K.done;K=G.next())K=K.value,m[K.toLowerCase()]=K;Tv6=m}return Tv6};
Wp6=function(m,G){var K=window.customElements;return K&&K.get(m)||GUF[m]===!0?2:G.name==="HTMLUnknownElement"?1:G.name==="HTMLElement"&&KpV.test(m)?3:0};
wFJ=function(m,G){switch(G){case "innerHTML":return Lpf(m)===1?2:null;case "textContent":return m=Lpf(m),m===1||m===6?1:null;default:var K,W;return(W=(K=Ado[m.localName])==null?void 0:K[G])!=null?W:null}};
Lpf=function(m){var G=m.localName,K=Wp6(G,m.constructor);switch(K){case 0:case 1:return g4f(G,m);case 3:case 2:return 1;default:_.GG(K,"got an unknown element classification")}};
g4f=function(m,G){var K=Object.hasOwnProperty.call(O$d,m)?O$d[m]:null;return K!==null?K:Object.hasOwnProperty.call(cd6,m)&&G instanceof SVGElement?cd6[m]:null};
YYd=function(m,G){return G};
uY6=function(m){return(m=m.split(rdd,2))?{url:m[0],metadata:m[1]}:null};
pFV=function(m){var G=String(m.url).replace(hrG,encodeURIComponent);if(m=m.metadata){hrG.lastIndex=0;if(hrG.test(m))return null;G+=" "+m}return G};
tiv=function(m){function G(h){var J=h.localName;if(!h.getAttribute("is")&&Wp6(J,h.constructor)===2){var N;return(N=u)!=null?N:u=document.createElement("polyresinuncustomized")}(h=c[J])||(h=c[J]=document.createElement(J));return h}
var K=m.reportHandler||void 0,W=m.safeTypesBridge||Jd9,L=/^$/;if(m=m.allowedIdentifierPrefixes){m=_.g(m);for(var A=m.next();!A.done;A=m.next())L=new RegExp(L.source+"|^"+_.NNd(A.value))}K&&K(!1,"initResin",null);var O=DtM(L,W,K),c={},u=null;return function(h,J,N){var D=h.nodeType;if(D!==Node.ELEMENT_NODE){if(D===Node.TEXT_NODE){J=h.parentElement;N=!J;if(J&&J.nodeType===Node.ELEMENT_NODE){D=J.localName;var t=Wp6(D,J.constructor);switch(t){case 0:case 1:J=g4f(D,J);N=J===1||J===6;break;case 3:case 2:N=
!0;break;default:_.GG(t,"got an unknown element classification")}}if(N)return function(Z){return""+W(Z,"STRING",Z)}}return function(Z){if(!Z&&Z!==document.all)return Z;
K&&K(!0,"Failed to sanitize "+(h.parentElement&&h.parentElement.nodeName)+" #text node to value "+Z,h.parentElement);return Rl}}var a=h.localName;
D=G(h);var v=null;switch(N){case "attribute":if(Bvs(J)in D)break;return function(Z){return Z};
case "property":if(J in D){v=wFJ(D,J);break}if((t=MgG(J))&&t in D)break;return function(Z){return Z};
default:_.GG(N,"got an unknown resin type, expected either 'property' or 'attribute'")}var I=N==="attribute"?J.toLowerCase():lz9(J);v||(v=yaf(a,I,function(Z){var k=h.getAttribute(Z);return!k||/[\[\{]/.test(Z)?null:k}));
return function(Z){var k=UK,z=null;if(!Z&&Z!==document.all)return Z;if(v!=null){var X=O[v],f=X.safeType;z=X.safeReplacement;f&&(k=W(Z,f,UK));k===UK&&(X.filterString?(k=String(W(Z,"STRING",Z)),k=X.filterString(a,I,k)):X.filterRaw&&(k=X.filterRaw(a,I,Z,h)),k===z&&(k=UK))}k===UK&&(k=z||Rl,K&&K(!0,"Failed to sanitize attribute of <"+a+">: <"+a+" "+I+'="'+Z+'">',h));return k}}};
DtM=function(m,G,K){return[,{filterRaw:function(W,L,A){return A},
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:FpP,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:FpP,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Rl,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:QUJ,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(W,L,A){A=
String(A).toLowerCase();return xks(W,L,A)?A:Rl},
safeReplacement:Rl,safeType:void 0},,{filterRaw:void 0,filterString:function(W,L,A){return m.test(A)?A:Rl},
safeReplacement:Rl,safeType:"CONSTANT"},{filterRaw:function(W,L,A,O){if(typeof A==="string")var c=(c=A.match(aWd))?c.map(uY6).filter(Boolean):[];else if(Array.isArray(A))c=A;else return FpP;var u=c;c=[];var h=[],J={};if(Array.isArray(u))for(var N=0,D=u.length;N<D;++N){var t=u[N],a=t&&t.url;if(a){var v=G(a,"URL",J);if(v){var I=v!==J;(I?c:h).push({url:I?v:a,metadata:t.metadata})}}}else h.push(u);u=h.length?JSON.stringify(h):null;h=UK;if(c.length){if(!Array.isArray(c))throw Error();h=c.map(pFV).filter(Boolean).join(" , ")||
UK}u&&K&&K(!0,"Failed to sanitize attribute value of <"+W+">: <"+W+" "+L+'="'+A+'">: '+u,O);return h===UK?FpP:h},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
o4v=function(m){var G=tiv(m);return function(K,W,L,A){return A||A===document.all?G(K,W,L)(A):A}};
zP=function(m,G){function K(){function L(c,u,h){for(u=Reflect.getMetadata("parameters",c)||[];u.length<=h;)u.push(null);u[h]=u[h]||[];u[h].push(O);Reflect.defineMetadata(u,c);return c}
var A=_.mb.apply(0,arguments);if(this instanceof K)return W.apply(this,A),this;var O=new (Function.prototype.bind.apply(K,[null].concat(_.Bz(A))));L.annotation=O;return L}
var W=n4s(G);K.prototype.toString=function(){return"@"+m};
return K.annotationCls=K};
n4s=function(m){return function(){var G=_.mb.apply(0,arguments),K=this;m.forEach(function(W,L){L=G[L];if(Array.isArray(W))K[W[0]]=L&&L!==void 0?L:W[1];else for(var A in W)K[A]=L&&L[A]!==void 0?L[A]:W[A]})}};
b$M=function(m){return m!==void 0&&m!==null};
lL=function(m){if(typeof m==="string")return m;if(m===void 0||m===null)return""+m;if(m.overriddenName)return m.overriddenName;if(m.name)return m.name;m=m.toString();var G=m.indexOf("\n");return G===-1?m:m.substring(0,G)};
v46=function(m){m.__forward_ref__=v46;m.toString=function(){return lL(this())};
return m};
Bl=function(m){return typeof m==="function"&&m.hasOwnProperty("__forward_ref__")&&m.__forward_ref__===v46?m():m};
$tG=function(m){return m?m.map(function(G){return new (Function.prototype.bind.apply(G.type.annotationCls,[null].concat(_.Bz(G.args?G.args:[]))))}):[]};
sUv=function(m){for(var G=[],K=0;K<m.length;++K){if(G.indexOf(m[K])>-1){G.push(m[K]);break}G.push(m[K])}return G};
qYv=function(m){return m.length>1?" ("+sUv(m.slice().reverse()).map(function(G){return lL(G.token)}).join(" -> ")+")":""};
H$P=function(m,G,K,W){if(W){var L=Error("ef``"+(W instanceof Error?W.message:W));L.ngOriginalError=W}else L=Error();L.addKey=E49;L.keys=[G];L.injectors=[m];L.constructResolvingMessage=K;L.message=L.constructResolvingMessage();L.ngOriginalError=W;return L};
E49=function(m,G){this.injectors.push(m);this.keys.push(G);this.message=this.constructResolvingMessage()};
IWF=function(m,G){return H$P(m,G,function(){return"No provider for "+lL(this.keys[0].token)+"!"+qYv(this.keys)})};
jUo=function(m,G){return H$P(m,G,function(){return"Cannot instantiate cyclic dependency!"+qYv(this.keys)})};
kUV=function(m,G,K){return H$P(m,K,function(){var W=lL(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+W+"!"+qYv(this.keys)+"."},G)};
ChF=function(m,G){for(var K=[],W=0,L=G.length;W<L;W++){var A=G[W];A&&A.length!=0?K.push(A.map(lL).join(" ")):K.push("?")}return Error("jf`"+lL(m)+"`"+K.join(", ")+"`"+lL(m))};
fWG=function(m){var G=void 0,K=void 0;if(m&&m.useClass!==void 0){G=m.useClass;var W=Bl(m.useClass);var L=Vi9.factory(W);W=Z$V(W)}else m&&m.useExisting!==void 0?(L=function(A){return A},W=[dtF(M8.get(Bl(m.useExisting)))]):m&&m.useFactory!==void 0?(L=m.useFactory,W=Phf(m.useFactory,m.deps)):(K=m.useValue,L=function(){return m.useValue},W=yd9);
return new erF(L,W,G,K)};
XFs=function(m){return new xtG(M8.get(Bl(m.provide)),[fWG(m)],m.multi)};
RrV=function(m){m=SYd(m,[]).map(XFs);for(var G=new Map,K=0;K<m.length;K++){var W=m[K],L=G.get(W.key.id);if(L){if(W.multiProvider!==L.multiProvider)throw Error("lf`"+L+"`"+W);if(W.multiProvider)for(var A=0;A<W.resolvedFactories.length;A++)L.resolvedFactories.push(W.resolvedFactories[A]);else G.set(W.key.id,W)}else L=void 0,W.multiProvider?L=new xtG(W.key,W.resolvedFactories.slice(),W.multiProvider):L=W,G.set(W.key.id,L)}return Array.from(G.values())};
SYd=function(m,G){m.forEach(function(K){if(K instanceof UtG)G.push({provide:K,useClass:K});else if(K&&typeof K=="object"&&K.provide!==void 0)G.push(K);else if(K instanceof Array)SYd(K,G);else throw Error("hf`"+K);});
return G};
Phf=function(m,G){if(G){var K=G.map(function(W){return[W]});
return G.map(function(W){return zrP(m,W,K)})}return Z$V(m)};
Z$V=function(m){var G=Vi9.parameters(m);if(!G)return[];if(G.some(function(K){return K==null}))throw ChF(m,G);
return G.map(function(K){return zrP(m,K,G)})};
zrP=function(m,G,K){var W=null,L=!1;if(!Array.isArray(G))return G instanceof lWs?BN9(G.token,L,null):BN9(G,L,null);for(var A=null,O=0;O<G.length;++O){var c=G[O];if(c instanceof UtG)W=c;else if(c instanceof lWs)W=c.token;else if(c instanceof Mid)L=!0;else if(c instanceof TNM||c instanceof mAv)A=c}W=Bl(W);if(W!=null)return BN9(W,L,A);throw ChF(m,K);};
BN9=function(m,G,K){return new iUs(M8.get(Bl(m)),G,K)};
GcM=function(m,G){for(var K=Array(m.providers.length),W=0;W<m.providers.length;++W){var L=W;if(W<0||W>=m.providers.length)throw Error("kf`"+W);K[L]=G(m.providers[W])}return K};
KHv=function(m){return typeof m==="function"&&Vi9.parameters(m).every(function(G){return!!G})};
Apf=function(m){var G=WHv;LHd.get(m)||LHd.set(m,new G);return LHd.get(m)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(m)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(m)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m,G){var K,W;if(m.contains(G))return!0;m=_.TP(m).querySelectorAll("content,slot");for(K=0;K<m.length;++K){var L=_.TP(m[K]).getDistributedNodes();for(W=0;W<L.length;++W)if(L[W].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L[W],G))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m){m.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m)&&m.preventDefault();m.targetTouches&&(m=m.targetTouches[0],wMv=m.pageX,gYJ=m.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 m=0,G=ma.length;m<G;m++)document.addEventListener(ma[m],_._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 m=0,G=ma.length;m<G;m++)document.removeEventListener(ma[m],_._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(m){var G=_.TP(m).rootTarget;m.type!=="touchmove"&&OUP!==G&&(OUP=G,cps=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.TP(m).path));if(!cps.length)return!0;if(m.type==="touchstart")return!1;m=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(m);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(cps,m.deltaX,m.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m){for(var G=[],K=m.indexOf(Y4M),W=0;W<=K;W++)if(m[W].nodeType===Node.ELEMENT_NODE){var L=m[W],A=L.style;A.overflow!=="scroll"&&A.overflow!=="auto"&&(A=window.getComputedStyle(L));A.overflow!=="scroll"&&A.overflow!=="auto"||G.push(L)}return G};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m,G,K){if(G||K)for(var W=Math.abs(K)>=Math.abs(G),L=0;L<m.length;L++){var A=m[L];if(W?K<0?A.scrollTop>0:A.scrollTop<A.scrollHeight-A.clientHeight:G<0?A.scrollLeft>0:A.scrollLeft<A.scrollWidth-A.clientWidth)return A}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(m){var G={deltaX:m.deltaX,deltaY:m.deltaY};"deltaX"in m||("wheelDeltaX"in m&&"wheelDeltaY"in m?(G.deltaX=-m.wheelDeltaX,G.deltaY=-m.wheelDeltaY):"wheelDelta"in m?(G.deltaX=0,G.deltaY=-m.wheelDelta):"axis"in m?(G.deltaX=m.axis===1?m.detail:0,G.deltaY=m.axis===2?m.detail:0):m.targetTouches&&(m=m.targetTouches[0],G.deltaX=wMv-m.pageX,G.deltaY=gYJ-m.pageY));return G};
rps=function(m){this.element=m;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
hid=function(m){this.element=m;this.color=window.getComputedStyle(m).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");_.TP(this.waveContainer).appendChild(this.wave);uVd(this)};
iW=function(m,G){for(var K in m)if(K.toLowerCase()===G.toLowerCase())return m[K]};
pM6=function(m,G){for(var K in m)if(K.toLowerCase()===G.toLowerCase()){delete m[K];break}};
Nb9=function(m){m=_.Y2.clone(m);for(var G=0;G<Jpo.length;++G){var K=Jpo[G],W=iW(m,K);W&&(m["X-Goog-Upload-Header-"+K]=W,pM6(m,K))}return m};
DAF=function(m){m=_.Y2.clone(m);pM6(m,"X-Goog-Upload-Status")};
FHd=function(m){return tPo.some(function(G){return G.test(m)})};
nYM=function(m,G){var K;var W=(K=m.formContent)==null?void 0:K.locale;K=W==null?void 0:W.split("-")[0];W=W&&Qk9.includes(W)?W:K&&Qk9.includes(K)?K:void 0;W=(W!=null?W:"en").replaceAll("-","_").toLowerCase();var L;m=((L=m.initializationData)==null?0:L.useNightlyRelease)?"nightly":"live";var A;return(G==null?0:(A=G.getEnableAlohaBinarySplit)==null?0:A.call(G))?_.vE(ap6,m):_.vE(oYG,m,W)};
$As=function(m,G,K,W){if(bUo&&vYf===G)return bUo;vYf=G;var L=nYM(m,W);return bUo=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(A,O){var c=_.M7("SCRIPT");_.Jt(c,L);c.onload=function(){G.feedbackV2GlobalObject?A(G.feedbackV2GlobalObject):O(Error("of"))};
c.onerror=function(){O(Error("pf`"+L.toString()))};
K.body.appendChild(c)})};
EYF=function(m,G,K,W){if(skd&&q4d===G)return skd;q4d=G;var L=nYM(m,W);return skd=G.feedbackV2GlobalObject?Promise.resolve(G.feedbackV2GlobalObject):new Promise(function(A,O){var c=_.M7("SCRIPT");_.Jt(c,L);c.onload=function(){G.feedbackV2GlobalObject?A(G.feedbackV2GlobalObject):O(Error("of"))};
c.onerror=function(){O(Error("pf`"+L.toString()))};
K.body.appendChild(c)})};
HUV=function(m,G,K,W,L){L=L===void 0?!0:L;var A,O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:return A=Date.now(),J.yield($As(m,K,W,G),2);case 2:O=J.yieldResult;if(!(L||((u=m.initializationData)==null?0:u.useNightlyRelease)||((h=m.initializationData)==null?0:h.isLocalServer))){c=O.initializeFeedbackClient(m,A,G);J.jumpTo(3);break}return J.yield(O.initializeFeedbackClientAsync(m,A,G),4);case 4:c=J.yieldResult;case 3:return c.initiateAloha(),J.return(c)}})};
IpM=function(m,G,K,W){var L,A,O;return _.Y(function(c){if(c.nextAddress==1)return L=Date.now(),c.yield(EYF(m,K,W.document,G),2);if(c.nextAddress!=3)return A=c.yieldResult,c.yield(A.initializeFeedbackClientAsync(m,L,G,W),3);O=c.yieldResult;O.initiateAloha();return c.return(O)})};
jkP=function(m,G,K){var W=!0;W=W===void 0?!0:W;var L,A,O,c,u,h,J,N;return _.Y(function(D){L=K||_.Ks;if((A=G)==null?0:(c=(O=A).getEnableAlohaBinarySplit)==null?0:c.call(O)){u=L;if(u.isFormOpened)throw new Gq;u.isFormOpened=!0;m.callbacks=m.callbacks||{};h=m.callbacks.onClose||function(){};
m.callbacks.onClose=function(t){u.isFormOpened=!1;h(t)};
try{return D.return(IpM(m,G,u,L))}catch(t){throw u.isFormOpened=!1,t;}}else{J=L;if(J.isFormOpened)throw new Gq;J.isFormOpened=!0;m.callbacks=m.callbacks||{};N=m.callbacks.onClose||function(){};
m.callbacks.onClose=function(t){J.isFormOpened=!1;N(t)};
try{return D.return(HUV(m,G,J,L.document,W))}catch(t){throw J.isFormOpened=!1,t;}}_.ey(D)})};
dAP=function(m,G){return _.Y(function(K){return K.return(new Promise(function(W,L){Number.isInteger(Number(m))&&Number(m)>0?(L=kcP(G!=null?G:"")+"/aloha_form_properties?productId="+m,CN6(L,function(A){A=A.target;var O=null;try{var c=JSON,u=c.stringify;if(A.JSC$10103_xhr_){var h=A.JSC$10103_xhr_.responseText;h.indexOf(")]}'\n")==0&&(h=h.substring(5));var J=_.KJ(h)}else J=void 0;O=ctJ(VPo,u.call(c,J))}catch(N){u=new VPo,J=ZUd(),J=_.WH(J,13,!1),J=_.WH(J,14,!0),J=_.WH(J,15,!0),J=_.WH(J,20,!1),O=_.ko(u,
1,J)}W(O)},"GET","",{},2E3,!0)):L(Error("qf`"+m))}))})};
kcP=function(m){return FHd(m)?m:"https://www.google.com/tools/feedback"};
fpV=function(m){m=m.match(new RegExp(PNo,"gi"))||[];m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;a:{var K=_.g(yp9);for(var W=K.next();!W.done;W=K.next())if(W.value.test(G)){K=!1;break a}K=!0}if(!K)a:{K=_.g(eis);for(W=K.next();!W.done;W=K.next())if(W.value.test(G)){K=!0;break a}K=!1}if(K)return!0}return!1};
xAV=function(m,G){var K={},W=Object.keys(m);W=_.g(W);for(var L=W.next();!L.done;L=W.next())L=L.value,K[L]=G(L,m[L]);return K};
XMV=function(m){switch(m){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"}};
Rio=function(m){if(window.crypto&&window.crypto.getRandomValues)try{var G=Array(m),K=new Uint8Array(m);window.crypto.getRandomValues(K);for(var W=0;W<G.length;W++)G[W]=K[W];return G}catch(A){}G=Array(m);for(K=0;K<m;K++){W=Date.now();for(var L=0;L<W%23;L++)G[K]=Math.random();G[K]=Math.floor(Math.random()*256)}if(S4M)for(K=1,W=0;W<S4M.length;W++)G[K%m]^=G[(K-1)%m]/4^S4M.charCodeAt(W),K++;return G};
LJ=function(m){m=Rio(m);for(var G=[],K=0;K<m.length;K++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(m[K]&63));return G.join("")};
UAP=function(){var m=_.Ks.ytLoggingDocDocumentNonce_;m||(m=LJ(16),_.yj("ytLoggingDocDocumentNonce_",m));return m};
lpG=function(m){m&&_.Fx("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:ziM,clientScreenNonce:m})};
BbP=function(m){return _.E8("client-screen-nonce-store",{})[m===void 0?0:m]};
MPd=function(m,G){G=G===void 0?0:G;var K=_.E8("client-screen-nonce-store");K||(K={},_.qC("client-screen-nonce-store",K));K[G]=m};
Tbd=function(m){m=m===void 0?0:m;return m===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+m};
mVv=function(m){return _.E8(Tbd(m===void 0?0:m))};
_.wU=function(m){return(m=mVv(m===void 0?0:m))?new _.Aj({veType:m,youtubeData:void 0,jspbYoutubeData:void 0}):null};
iKo=function(){var m=_.E8("csn-to-ctt-auth-info");m||(m={},_.qC("csn-to-ctt-auth-info",m));return m};
GjF=function(){return Object.values(_.E8("client-screen-nonce-store",{})).filter(function(m){return m!==void 0})};
_.gU=function(m){m=BbP(m===void 0?0:m);if(!m&&!_.IP("USE_CSN_FALLBACK",!0))return null;m||(m="UNDEFINED_CSN");return m?m:null};
WIG=function(m){for(var G=_.g(Object.values(KIF)),K=G.next();!K.done;K=G.next())if(_.gU(K.value)===m)return!0;return!1};
LIM=function(m,G,K){var W=iKo();(K=_.gU(K))&&delete W[K];G&&(W[m]=G)};
OB=function(m){return iKo()[m]};
_.cH=function(m,G,K,W){K=K===void 0?0:K;if(m!==BbP(K)||G!==_.E8(Tbd(K)))if(LIM(m,W,K),MPd(m,K),_.qC(Tbd(K),G),G=function(){setTimeout(function(){lpG(m)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(G)}catch(L){G()}else G()};
A6f=function(m,G){G=G===void 0?"":G;var K=[],W;for(W in m)if(m.hasOwnProperty(W)){var L=G!==""?G+"."+W:W;typeof m[W]==="object"?K.push.apply(K,_.Bz(A6f(m[W],L))):K.push([L,m[W]])}K.sort();return K};
_.rU=function(m){var G=_.mb.apply(1,arguments);if(!Yu(m)||G.some(function(W){return!Yu(W)}))throw Error("rf");
G=_.g(G);for(var K=G.next();!K.done;K=G.next())wB6(m,K.value)};
wB6=function(m,G){for(var K in G)if(Yu(G[K])){if(K in m&&!Yu(m[K]))throw Error("sf");K in m||(m[K]={});wB6(m[K],G[K])}else if(gqJ(G[K])){if(K in m&&!gqJ(m[K]))throw Error("tf");K in m||(m[K]=[]);OKs(m[K],G[K])}else m[K]=G[K];return m};
OKs=function(m,G){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,Yu(K)?m.push(wB6({},K)):gqJ(K)?m.push(OKs([],K)):m.push(K);return m};
Yu=function(m){return typeof m==="object"&&!Array.isArray(m)};
gqJ=function(m){return typeof m==="object"&&Array.isArray(m)};
Y7d=function(m){for(var G=_.g(Object.entries(c6J)),K=G.next();!K.done;K=G.next())if(K=_.g(K.value),K.next(),K=K.next().value,K==="SLI_STATUS_"+m)return K;return"SLI_STATUS_UNKNOWN"};
_.uW=function(m,G,K,W){return r6d(m,G,function(){return new _.u$d(m,G,K,W)})};
_.hPf=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
pB6=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
hj=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
J6d=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Npf=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
DVd=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Qgd=function(m){m&&(m.dataset?m.dataset[tMP()]="true":_.DO([_.ob(FIF)],m,"data-loaded","true".toString()))};
ajG=function(m){return m?m.dataset?m.dataset[tMP()]:m.getAttribute("data-loaded"):null};
tMP=function(){return oqF.loaded||(oqF.loaded="loaded".replace(/\-([a-z])/g,function(m,G){return G.toUpperCase()}))};
_.pJ=function(m,G,K){nqG(m,G,K===void 0?null:K)};
_.vqs=function(m,G){m&&G&&(m=""+_.z9(G),(m=bKJ[m])&&_.xyM(m))};
nqG=function(m,G,K){K=K===void 0?null:K;var W=_.$VG(typeof m==="string"?m:m.toString()),L=document.getElementById(W),A=L&&ajG(L),O=L&&!A;A?G&&G():(G&&(A=_.z6(W,G),G=""+_.z9(G),bKJ[G]=A),O||(L=sgd(m,W,function(){ajG(L)||(Qgd(L),_.X8G(W),_.MC(function(){_.Rav(W)},0))},K)))};
sgd=function(m,G,K,W){W=W===void 0?null:W;var L=_.M7("SCRIPT");L.id=G;L.onload=function(){K&&setTimeout(K,0)};
L.onreadystatechange=function(){switch(L.readyState){case "loaded":case "complete":L.onload()}};
W&&L.setAttribute("nonce",W);_.Jt(L,typeof m==="string"?_.hO(m):m);m=document.getElementsByTagName("head")[0]||document.body;m.insertBefore(L,m.firstChild);return L};
_.$VG=function(m){var G=document.createElement("a");Gp(G,m);return"js-"+Jj(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
q79=function(m){var G=_.E8("INNERTUBE_HOST_OVERRIDE");G&&(m=String(G)+String(_.XJ(m)));return m};
EqP=function(m){var G={};_.F("json_condensed_response")&&(G.prettyPrint="false");return m=uvG(m,G)};
_.N$=function(m){return e1(m)?"same-origin":"include"};
_.Dw=function(m){return e1(m)?"same-origin":"cors"};
tj=function(m,G,K){K=K===void 0?{}:K;m={method:G===void 0?"POST":G,mode:_.Dw(m),credentials:_.N$(m)};G={};for(var W=_.g(Object.keys(K)),L=W.next();!L.done;L=W.next())L=L.value,K[L]&&(G[L]=K[L]);Object.keys(G).length>0&&(m.headers=G);return m};
_.FA=function(m,G){G=G===void 0?{}:G;return"service:"+m+"/"+Object.keys(G).sort().map(function(K){return K+":"+G[K]}).join("/")};
HKV=function(m){var G,K,W,L;m=(G=_.Q(m,_.QQ))==null?void 0:(K=G.watchEndpointSupportedOnesieConfig)==null?void 0:(W=K.html5PlaybackOnesieConfig)==null?void 0:(L=W.commonConfig)==null?void 0:L.url;if(!m)return[];G=new _.aQ(m);return G.JSC$10339_domain_?["https://"+G.JSC$10339_domain_+"/generate_204"]:[]};
_.kjG=function(){return IjV()||t8P()||jgP&&oG("version/")?!0:_.E8("EOM_VISITOR_DATA")?!1:!0};
Cud=function(m){var G=m.docid||m.video_id||m.videoId||m.id;if(G)return G;G=m.raw_player_response;G||(m=m.player_response)&&(G=JSON.parse(m));return G&&G.videoDetails&&G.videoDetails.videoId||null};
VM6=function(m){return m.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
oQ=function(m){return!isNaN(Number(m))&&!_.Od(m)};
_.nJ=function(m,G,K,W){W=W===void 0?!0:W;var L=_.E8("VALID_SESSION_TEMPDATA_DOMAINS",[]),A=_.eh(window.location.href);A&&L.push(A);A=_.eh(m);if(_.Vf(L,A)||!A&&_.AV(m,"/"))if(L=document.createElement("a"),Gp(L,m),m=L.href)if(m=_.XJ(m),m=_.Sh(m))W&&!G.csn&&(G.itct||G.ved)&&(G=Object.assign({csn:_.gU()},G)),K?(K=parseInt(K,10),isFinite(K)&&K>0&&ZKJ(m,G,K)):ZKJ(m,G)};
PuM=function(m){var G=_.E8("VALID_SESSION_TEMPDATA_DOMAINS",[]),K=_.eh(window.location.href);K&&G.push(K);K=_.eh(m);if(!(_.Vf(G,K)||!K&&_.AV(m,"/")))return null;m=_.XJ(m);(m=_.Sh(m))?(m=dVv(m),m=(m=_.LL.get(m,void 0)||null)?_.ds(m):{}):m=null;return m};
ZKJ=function(m,G,K){m=dVv(m);G=G?_.l$(G):"";K=K||5;_.kjG()&&_.AH(m,G,K)};
dVv=function(m){for(var G=_.g(y6J),K=G.next();!K.done;K=G.next())m=_.mi(m,K.value);return"ST-"+Jj(m).toString(36)};
_.ePd=function(m){if(m.requestFullscreen)m=m.requestFullscreen(void 0);else if(m.webkitRequestFullscreen)m=m.webkitRequestFullscreen();else if(m.mozRequestFullScreen)m=m.mozRequestFullScreen();else if(m.msRequestFullscreen)m=m.msRequestFullscreen();else if(m.webkitEnterFullscreen)m=m.webkitEnterFullscreen();else return Promise.reject(Error("Cf"));return m instanceof Promise?m:Promise.resolve()};
_.sB=function(m){var G;_.EEJ(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.$u()==m&&(G=document):G=m;if(G&&(m=_.EEJ(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],G))){m.call(G)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.$u=function(){var m=m===void 0?!1:m;var G=_.EEJ(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(m)for(;G&&G.shadowRoot;)G=G.shadowRoot.fullscreenElement;return G?G:null};
_.q$=function(m,G){G=G===void 0?!0:G;m.addEventListener("wheel",fjP);m.overscrollConfig={cooldown:G}};
_.EB=function(m){m.overscrollConfig=void 0;m.removeEventListener("wheel",fjP)};
fjP=function(m){var G=m.deltaY,K=m.target,W=null;if(window.Polymer&&window.Polymer.Element){if(K=m.path||m.composedPath&&m.composedPath()){K=_.g(K);for(var L=K.next();!L.done&&(L=L.value,!xVV(L,G));L=K.next())if(L.overscrollConfig){W=L;break}}}else for(;K&&!xVV(K,G);){if(K.overscrollConfig){W=K;break}K=K.parentElement}W&&(G=W.overscrollConfig,G.cooldown?(W=m.deltaY,K=G.lastDeltaY||0,G.lastDeltaY=W,L=G.lastStopped||0,K&&L&&K>0==W>0?Math.abs(K)>=Math.abs(W)?(W=L+1200,K=!1):(W=L+600,K=!0):(W=Date.now()+
600,K=!0),W>Date.now()&&(m.preventDefault(),K&&(G.lastStopped=Date.now()))):m.preventDefault())};
xVV=function(m,G){return G<0&&m.scrollTop>0||G>0&&m.scrollTop<m.scrollHeight-m.clientHeight-1?(m=getComputedStyle(m).overflowY,m=="auto"||m=="scroll"):!1};
XBd=function(m){HH.initialized=!0;HH.sessionId=m.sessionId||"";HH.enabledSpans=m.enabledSpans;m.shouldSampleFn!=null&&(HH.shouldSampleFn=m.shouldSampleFn)};
S7f=function(m){HH.processors.push(m)};
IQ=function(m){return HH.initialized?HH.enabledSpans?HH.enabledSpans[m]:!0:!1};
ljP=function(m,G,K){return IQ(m)&&HH.shouldSampleFn(m,G,RPV)?new UVM(m,G,K):zPo};
CJ=function(m,G,K){if(typeof K==="function"){var W=K;K=void 0}var L=ljP(m,G,K),A;if(((A=K)==null?void 0:A.endTime)!=null)return W&&_.nc(Error("Ef")),L;var O;L!==zPo&&((O=K)==null?void 0:O.active)!==!1&&HH.stack.push(L);if(!W)return L;if(L===zPo)return W(L);try{var c=W(L);if(c instanceof Promise)return c.then(function(u){L.end();return u},function(u){L.end("SPAN_STATUS_ERROR");
throw u;});
L.end();return c}catch(u){throw L.end("SPAN_STATUS_ERROR"),u;}};
Bps=function(){$z.subscribe("handleError",function(m){try{for(var G in VQ)try{var K=VQ[G];typeof VQ[G]==="function"&&(K=K());m.params[G]=typeof VQ[G]==="object"?JSON.stringify(K):String(K)}catch(W){_.nc(W)}}catch(W){_.nc(W)}})};
MMd=function(){};
Tp9=function(m){var G=m.nodeName;if(m.id)return G+="#"+m.id;if(m.classList)for(var K=_.g(m.classList),W=K.next();!W.done;W=K.next())G+="."+W.value;m.parentElement&&(G=Tp9(m.parentElement)+" > "+G);return G};
_.Zw=function(m,G,K,W){W||(W={bubbles:!0,cancelable:!1,composed:!0});K!==null&&K!==void 0&&(W.detail=K);var L=new CustomEvent(G,W);_.F("untrack_fire_custom_event_killswitch")?m.dispatchEvent(L):_.w_(function(){return void m.dispatchEvent(L)});
return L};
mQv=function(m){var G=window,K=function(W){G.removeEventListener("yt-navigate-start",K);return m.call(G,W)};
G.addEventListener("yt-navigate-start",K,void 0)};
_.dU=function(m,G,K,W){W=W===void 0?!1:W;return CJ("ytAction",{name:G,nodepath:Tp9(m)},function(){var L=new i8o(G,!!W,K);_.Zw(m,"yt-action",L);return L.returnValue})};
_.PH=function(m,G,K){return _.dU(m,G,K,!0)};
_.eD=function(m,G,K,W){G&&G.length&&G.forEach(function(L){var A=vAf(L);A&&(_.F("handle_service_request_actions")&&L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.sendPost?_.yQ(K?K:m,[L]):_.PH(m,A,[L,K,W]))})};
_.yQ=function(m,G){var K=[m];G&&K.push.apply(K,G);G=_.dU(m,"yt-service-request",K);return G.length>0&&(G=G[0],_.Zw(m,"yt-service-request-sent",G),G&&G.ajaxPromise)?(G.ajaxPromise.then(function(W){_.Zw(m,"yt-service-request-completed",W)},function(W){_.Zw(m,"yt-service-request-error",{error:W,
params:K})},m),G.ajaxPromise):_.fJ()};
_.XA=function(m,G){if(_.F("handle_service_request_actions"))_.eD(G,m,G);else{m=_.g(m);for(var K=m.next();!K.done;K=m.next()){K=K.value;var W=void 0;((W=_.Q(K,_.xu))==null?0:W.commands)?_.XA(_.Q(K,_.xu).commands,G):(W=void 0,((W=_.Q(K,_.SD))==null?0:W.actions)?_.XA(_.Q(K,_.SD).actions,G):(W=void 0,((W=_.Q(K.commandMetadata,_.RQ))==null?0:W.sendPost)?_.yQ(G,[K]):_.eD(G,[K],G)))}}};
_.Kjd=function(m,G,K){G=G===void 0?{}:G;typeof G==="function"&&(G={callback:G});K||G._c&&G._c.jsl&&G._c.jsl.h||_.Y2.extend(G,{_c:{jsl:{h:_.E8("GAPI_HINT_PARAMS")}}});(G.gapiHintOverride||_.E8("GAPI_HINT_OVERRIDE"))&&(K=_.PO(document.location.href).gapi_jsh)&&_.Y2.extend(G,{_c:{jsl:{h:K}}});GXo(m,G)};
_.zq=function(m,G,K){G=G===void 0?{}:G;m=(m=m in UB?UB[m]:K)||"";K={};for(var W in G){K={key$jscomp$855:K.key$jscomp$855};K.key$jscomp$855=W;var L=function(A){return function(){return String(G[A.key$jscomp$855])}}(K);
m=m.replace(new RegExp("\\$\\{"+K.key$jscomp$855+"\\}","gi"),L);m=m.replace(new RegExp("\\$"+K.key$jscomp$855,"gi"),L)}return m};
_.lW=function(m,G){return WjJ(m in UB?UB[m]:{},G)};
WjJ=function(m,G){var K=_.E8("I18N_PLURAL_RULES");K||(K=function(W){return W==1?"one":"other"});
return(m=m["case"+G]||m[K(G)])?m.replace("#",G.toString()):G+""};
w3d=function(m){var G=Ljo(m),K=document.getElementById(G),W=K&&ajG(K);W||K&&!W||(K=Afv(m,G,function(){if(!ajG(K)){Qgd(K);_.X8G(G);var L=_.BH(_.Rav,G);_.MC(L,0)}}))};
Afv=function(m,G,K){var W=document.createElement("link");W.id=G;W.onload=function(){K&&setTimeout(K,0)};
m=_.hO(m);_.tt(W,m,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(W);return W};
Ljo=function(m){var G=_.M7("A");Gp(G,S4(m));return"css-"+Jj(G.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.O8G=function(m){var G=gVP();m!==G&&(G=_.M$(),!_.F("web_autonav_allow_off_by_default")&&m||_.Tq(0,141,!0),_.Tq(0,140,!m),G.save())};
gVP=function(){var m=_.M$();return _.F("web_autonav_allow_off_by_default")&&!m.getFlag(141)&&_.E8("AUTONAV_OFF_BY_DEFAULT")?!1:!m.getFlag(140)};
cfM=function(m,G){var K,W;m=((K=m.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(W=K.videoAuthorizationToken)==null?void 0:W.credentialTransferTokens)||[];for(K=0;K<m.length;++K)if(m[K].scope===G)return m[K].token||void 0};
YbG=function(m){for(var G=0,K=0;K<m.length;K++)G=G*31+m.charCodeAt(K),K<m.length-1&&(G%=0x800000000000);return G%1E5};
_.mQ=function(m){return _.Cn("ytcsi."+(m||"")+"data_")||rf6(m)};
_.uif=function(m){m=_.mQ(m);m.metadata||(m.metadata={});return m.metadata};
_.hbf=function(m){m=_.mQ(m);m.tick||(m.tick={});return m.tick};
_.id=function(m){m=_.mQ(m);if(m.gel){var G=m.gel;G.gelInfos||(G.gelInfos={});G.gelTicks||(G.gelTicks={})}else m.gel={gelTicks:{},gelInfos:{}};return m.gel};
_.p3G=function(m){m=_.id(m);m.gelInfos||(m.gelInfos={});return m.gelInfos};
Jf9=function(m){var G=_.mQ(m).nonce;G||(G=LJ(16),_.mQ(m).nonce=G);return G};
rf6=function(m){var G={tick:{},info:{}};_.yj("ytcsi."+(m||"")+"data_",G);return G};
NGd=function(){var m=_.Cn("ytcsi.debug");m||(m=[],_.yj("ytcsi.debug",m),_.yj("ytcsi.reference",{}));return m};
_.Gz=function(m){m=m||"";var G=DQG();if(G[m])return G[m];var K=NGd(),W={timerName:m,info:{},tick:{},span:{},jspbInfo:[]};K.push(W);return G[m]=W};
tGs=function(m){m=m||"";var G=DQG();G[m]&&delete G[m];var K=NGd(),W={timerName:m,info:{},tick:{},span:{},jspbInfo:[]};K.push(W);G[m]=W};
DQG=function(){var m=_.Cn("ytcsi.reference");if(m)return m;NGd();return _.Cn("ytcsi.reference")};
_.QnP=function(m){return Fjf[m]||"LATENCY_ACTION_UNKNOWN"};
b89=function(m,G,K){K=K===void 0?{}:K;var W=!1;_.IP("ytLoggingEventsDefaultDisabled",!1)&&(W=!0);W=W?null:tu;K=K===void 0?{}:K;var L=Math.round(K.timestamp||(0,_.xD)());_.c$(G,1,L<Number.MAX_SAFE_INTEGER?L:0);L=new aqG;if(K.lact)_.c$(L,1,isFinite(K.lact)?K.lact:-1);else if(K.timestamp)_.c$(L,1,-1);else{var A=_.Xu();_.c$(L,1,isFinite(A)?A:-1)}if(K.sequenceGroup&&!_.F("web_gel_sequence_info_killswitch")){A=K.sequenceGroup;var O=iQG(A),c=new oVG;_.c$(c,2,O);_.LB(c,1,A);_.ko(L,3,c);K.endOfSequence&&delete nVd[K.sequenceGroup]}_.ko(G,
33,L);(K.sendIsolatedPayload?OzV:coJ)(m,{endpoint:"log_event",payload:G,cttAuthInfo:K.cttAuthInfo,dangerousLogToVisitorSession:K.dangerousLogToVisitorSession},W)};
_.vVG=function(m,G){_.KW("_start",m,G)};
_.Wk=function(m,G){if(!_.F("web_csi_action_sampling_enabled")||!_.mQ(G).actionDisabled){var K=_.Gz(G||"");_.rU(K.info,m);m.loadType&&(K=m.loadType,_.uif(G).loadType=K);_.rU(_.p3G(G),m);K=Jf9(G);G=_.mQ(G).cttAuthInfo;$Q6().info(m,K,G)}};
snM=function(){var m,G,K,W;return((W=_.xS().resolve(_.fn(uO))==null?void 0:(m=hu())==null?void 0:(G=m.loggingHotConfig)==null?void 0:(K=G.csiConfig)==null?void 0:K.debugTicks)!=null?W:[]).map(function(L){return Object.values(L)[0]})};
_.KW=function(m,G,K){if(!_.F("web_csi_action_sampling_enabled")||!_.mQ(K).actionDisabled){var W=Jf9(K),L;if(L=_.F("web_csi_debug_sample_enabled")&&W){(_.xS().resolve(_.fn(uO))==null?0:hu())&&!qbM&&(qbM=!0,_.KW("gcfl",(0,_.xD)(),K));var A,O,c;L=(_.xS().resolve(_.fn(uO))==null?void 0:(A=hu())==null?void 0:(O=A.loggingHotConfig)==null?void 0:(c=O.csiConfig)==null?void 0:c.debugSampleWeight)||0;if(A=L!==0)b:{A=snM();if(A.length>0)for(O=0;O<A.length;O++)if(m===A[O]){A=!0;break b}A=!1}A?(L=YbG(W)%L!==0,
_.mQ(K).debugTicksExcludedLogged||(A={},A.debugTicksExcluded=L,_.Wk(A,K)),_.mQ(K).debugTicksExcludedLogged=!0):L=!1}if(!L){m[0]!=="_"&&EV9(m,K,G);L=_.Gz(K||"");L.tick[m]=G||(0,_.xD)();if(L.callback&&L.callback[m])for(L=_.g(L.callback[m]),A=L.next();!A.done;A=L.next())A=A.value,A();L=_.id(K);L.gelTicks&&(L.gelTicks[m]=!0);A=_.hbf(K);L=G||(0,_.xD)();A[m]=L;A=_.mQ(K).cttAuthInfo;m==="_start"?$Q6().baseline(W,G,A):$Q6().tick(m,W,G,A);_.H8d(K);return L}}};
EV9=function(m,G,K){if(_.LW.mark)if(m.startsWith("mark_")||(m="mark_"+m),G&&(m+=" ("+G+")"),K===void 0||_.F("web_csi_disable_alt_time_performance_mark"))_.LW.mark(m);else{K=_.F("csi_use_performance_navigation_timing")?K-_.LW.timeOrigin:K-(_.LW.timeOrigin||_.LW.timing.navigationStart);try{_.LW.mark(m,{startTime:K})}catch(W){}}};
Iqf=function(){var m,G=(m=_.LW.getEntriesByType)==null?void 0:m.call(_.LW,"mark");G&&G.forEach(function(K){if(K.name.startsWith("mark_")){var W;(W=_.LW.clearMarks)==null||W.call(_.LW,K.name)}})};
_.jnd=function(m){var G={},K=function(A,O,c){O=O.match("_rid")?O.split("_rid")[0]:O;typeof c==="number"&&(c=JSON.stringify(c));A.requestIds?A.requestIds.push({endpoint:O,id:c}):A.requestIds=[{endpoint:O,id:c}]};
m=_.g(Object.entries(m));for(var W=m.next();!W.done;W=m.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;switch(W){case "GetBrowse_rid":K(G,W,L);break;case "GetGuide_rid":K(G,W,L);break;case "GetHome_rid":K(G,W,L);break;case "GetPlayer_rid":K(G,W,L);break;case "GetSearch_rid":K(G,W,L);break;case "GetSettings_rid":K(G,W,L);break;case "GetTrending_rid":K(G,W,L);break;case "GetWatchNext_rid":K(G,W,L);break;case "yt_red":G.isRedSubscriber=!!L;break;case "yt_ad":G.isMonetized=!!L}}return G};
_.kXJ=function(m){var G=_.AW("aft",m);if(G)return G;G=_.E8((m||"")+"TIMING_AFT_KEYS",["ol"]);for(var K=G.length,W=0;W<K;W++){var L=_.AW(G[W],m);if(L)return L}return NaN};
_.CJV=function(m,G){_.yj("ytglobal.timing"+(G||"")+"ready_",m)};
_.AW=function(m,G){if(m=_.hbf(G)[m])return typeof m==="number"?m:m[m.length-1]};
_.H8d=function(m){var G=_.AW("_start",m),K=_.kXJ(m),W=!VGP;G&&K&&W&&(WgG(Z8F,new dQJ(Math.round(K-G),m)),VGP=!0)};
yfs=function(m){rf6(m);PJG();Iqf();m||(_.E8("TIMING_ACTION")&&_.qC("PREVIOUS_ACTION",_.E8("TIMING_ACTION")),_.qC("TIMING_ACTION",""))};
_.ebd=function(m){m=m===void 0?{}:m;_.kS(function(){w9();tGs();yfs();_.CJV(!1);m.cttAuthInfo&&(_.mQ().cttAuthInfo=m.cttAuthInfo);_.qC("TIMING_AFT_KEYS",[]);m.isHot?_.g9({loadType:"hot"}):_.g9({loadType:"warm"});_.qC("TIMING_ACTION","");delete _.E8("TIMING_INFO",{}).yt_lt;_.kS(_.vVG)(m.startTime,void 0)})()};
_.ck=function(m,G,K,W){G=G===void 0?{}:G;_.kS(function(){var L=K?K:m;OG(L);var A=G.sampleRate;if(!_.F("web_csi_action_sampling_enabled")||A===void 0||A<=1)A=!1;else{var O=Jf9(L);A=YbG(O)%A!==0}A&&(_.mQ(L).actionDisabled=!0);_.Gz(L||"").info.actionType=m;G.cttAuthInfo&&(_.mQ(L).cttAuthInfo=G.cttAuthInfo);_.qC(L+"TIMING_ACTION",m);_.kS(_.vVG)(G.startTime,L);A={actionType:W||_.QnP(m)};G.logPreviousAction&&(A.previousAction=_.QnP(_.E8("TIMING_ACTION")));(O=_.gU())&&O!=="UNDEFINED_CSN"&&(A.clientScreenNonce=
O);_.g9(A,L);_.CJV(!0,L)})()};
OG=function(m){_.kS(function(){w9(m);tGs(m);yfs(m)})()};
fqd=function(){_.kS(function(){var m=[],G;for(G in _.Cn("ytcsi.".slice(0,-1)))G.endsWith("data_")&&m.push(G.slice(0,-5));m=_.g(m);for(G=m.next();!G.done;G=m.next())OG(G.value);w9()})()};
_.X3v=function(m){return _.kS(function(){return _.xQd("_start",m)})()};
_.g9=function(m,G,K){_.kS(_.Wk)(m,G,K===void 0?!1:K)};
_.Yt=function(m,G,K){return _.kS(_.KW)(m,G,K)};
_.xQd=function(m,G){return _.kS(function(){var K=_.hbf(G);return m in K})()};
Rb6=function(m){if(!_.F("universal_csi_network_ticks"))return"";m=_.f6(m)||"";for(var G=Object.keys(SbF),K=0;K<G.length;K++){var W=G[K];if(m.includes(W))return W}return""};
zbd=function(m){if(!_.F("universal_csi_network_ticks"))return function(){};
var G=SbF[m];return G?(_.r9(G),function(){var K=_.F("universal_csi_network_ticks")?(K=UQd[m])?_.r9(K):!1:!1;return K}):function(){}};
_.r9=function(m,G,K){return _.kS(function(){if(_.xQd(m,K))return!1;_.Yt(m,G,K);return!0})()};
_.ud=function(m,G,K){_.kS(function(){if(!_.X3v(K)||_.xQd(m,K))return!1;_.Yt(m,G,K);return!0})()};
_.hW=function(m){return _.kS(_.AW)(m,void 0)};
w9=function(m){_.X3v(m)&&_.Yt("aa",void 0,m)};
_.mmo=function(m,G,K,W,L,A,O,c,u,h){var J=lqs();A=new _.Aj({veType:G,youtubeData:A,jspbYoutubeData:c});h=pW({automatedLogEventSource:h},J);L&&(h.cttAuthInfo=L);L={csn:J,pageVe:A.getAsJson()};_.F("expectation_logging")&&u&&u.screenCreatedLoggingExpectations&&(L.screenCreatedLoggingExpectations=u.screenCreatedLoggingExpectations);K&&K.visualElement?(L.implicitGesture={parentCsn:K.clientScreenNonce,gesturedVe:K.visualElement.getAsJson()},O&&(L.implicitGesture.gestureType=O)):K&&_.nc(new _.cw("newScreen() parent element does not have a VE - rootVe",
G));W&&(L.cloneCsn=W);m?Ju("screenCreated",L,m,h):_.Fx("screenCreated",L,h);WgG(YQf,new BGG(J));JW.clear();MGv.clear();TGP.clear();return J};
Nc=function(m,G,K,W,L,A){A=A===void 0?{}:A;iad(m,G,K,[W],L===void 0?!1:L,A)};
iad=function(m,G,K,W,L,A){L=L===void 0?!1:L;A=A===void 0?{}:A;Object.assign(A,pW({cttAuthInfo:OB(G)||void 0},G));for(var O=_.g(W),c=O.next();!c.done;c=O.next()){c=c.value;var u=c.getAsJson();(_.Y2.isEmpty(u)||!u.trackingParams&&!u.veType)&&_.nc(Error("Gf"));if(_.F("no_client_ve_attach_unless_shown")){var h=Gtd(c,G);if(u.veType&&!MGv.has(h)&&!TGP.has(h)&&!L){if(!_.F("il_attach_cache_limit")||JW.size<1E3){JW.set(h,[m,G,K,c]);return}_.F("il_attach_cache_limit")&&JW.size>1E3&&_.nc(new _.cw("IL Attach cache exceeded limit"))}c=
Gtd(K,G);JW.has(c)?KhG(K,G):TGP.set(c,!0)}}W=W.filter(function(J){J.csn!==G?(J.csn=G,J=!0):J=!1;return J});
K={csn:G,parentVe:K.getAsJson(),childVes:_.r$(W,function(J){return J.getAsJson()})};
G==="UNDEFINED_CSN"?DQ("visualElementAttached",A,K):m?Ju("visualElementAttached",K,m,A):_.Fx("visualElementAttached",K,A)};
Lhs=function(m,G,K,W,L,A,O){WhJ(m,G,K,L,O)};
WhJ=function(m,G,K,W,L){A46(K,G);L=pW({cttAuthInfo:OB(G)||void 0,automatedLogEventSource:L},G);K={csn:G,ve:K.getAsJson(),eventType:1};W&&(K.clientData=W);G==="UNDEFINED_CSN"?DQ("visualElementShown",L,K):m?Ju("visualElementShown",K,m,L):_.Fx("visualElementShown",K,L)};
wq6=function(m,G,K,W){A46(K,G);var L=pW({cttAuthInfo:OB(G)||void 0,automatedLogEventSource:void 0},G);K={csn:G,ve:K.getAsJson(),eventType:4};W&&(K.clientData=W);G==="UNDEFINED_CSN"?DQ("visualElementShown",L,K):m?Ju("visualElementShown",K,m,L):_.Fx("visualElementShown",K,L)};
gP6=function(m,G,K,W,L,A){var O=(W=W===void 0?!1:W)?16:8;W=pW({cttAuthInfo:OB(G)||void 0,endOfSequence:W,automatedLogEventSource:A},G);K={csn:G,ve:K.getAsJson(),eventType:O};L&&(K.clientData=L);G==="UNDEFINED_CSN"?DQ("visualElementHidden",W,K):m?Ju("visualElementHidden",K,m,W):_.Fx("visualElementHidden",K,W)};
c4o=function(m,G,K,W,L,A){Oas(m,G,K,void 0,W,L,A)};
Oas=function(m,G,K,W,L,A,O){A46(K,G);W=W||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";A=pW({cttAuthInfo:OB(G)||void 0,automatedLogEventSource:O},G);K={csn:G,ve:K.getAsJson(),gestureType:W};L&&(K.clientData=L);G==="UNDEFINED_CSN"?DQ("visualElementGestured",A,K):m?Ju("visualElementGestured",K,m,A):_.Fx("visualElementGestured",K,A)};
YHd=function(m,G,K,W){var L=pW({cttAuthInfo:OB(G)||void 0},G);K={csn:G,ve:K.getAsJson(),clientData:W};G==="UNDEFINED_CSN"?DQ("visualElementStateChanged",L,K):m?Ju("visualElementStateChanged",K,m,L):_.Fx("visualElementStateChanged",K,L)};
r4G=function(){var m=Rio(16);for(var G=[],K=0;K<m.length;K++)G.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(m[K]&63));return G.join("")};
DQ=function(m,G,K){ueM.push({payloadName:m,payload:K,jspbPayload:void 0,options:G});ho9||(ho9=uj6())};
c9G=function(m){if(ueM){for(var G=_.g(ueM),K=G.next();!K.done;K=G.next())K=K.value,K.payload&&(K.payload.csn=m.csn,_.Fx(K.payloadName,K.payload,K.options));ueM.length=0}ho9=0};
Gtd=function(m,G){return""+m.getAsJson().veType+m.getAsJson().veCounter+G};
A46=function(m,G){if(_.F("no_client_ve_attach_unless_shown")){var K=Gtd(m,G);MGv.set(K,!0);KhG(m,G)}};
KhG=function(m,G){m=Gtd(m,G);JW.has(m)&&(G=JW.get(m)||[],Nc(G[0],G[1],G[2],G[3],!0),JW.delete(m))};
pW=function(m,G){_.F("log_sequence_info_on_gel_web")&&(m.sequenceGroup=G);return m};
_.tW=function(m,G,K){_.kS(Nc)(void 0,m,G,K)};
_.Fv=function(m,G,K){_.kS(iad)(void 0,m,G,K)};
_.Qx=function(m,G){_.kS(Lhs)(void 0,m,G,void 0,void 0,void 0)};
_.a7=function(m,G,K){_.kS(function(){_.Z0(G,function(W){wq6(void 0,m,W,K)})})()};
_.o7=function(m,G,K,W){_.kS(function(){_.Z0(G,function(L){gP6(void 0,m,L,K,W)})})()};
_.nW=function(m,G,K){_.kS(c4o)(void 0,m,G,K,void 0)};
_.bd=function(m,G,K,W){_.kS(Oas)(void 0,m,G,K,W,void 0)};
_.vk=function(m,G,K){_.kS(YHd)(void 0,m,G,K,void 0)};
pqs=function(m,G){$t.set(m,G)};
J4d=function(m,G){var K=Object.keys(m);m=new _.cw("[Command Handler] "+G,{filteredCommandNames:K,originalCommand:m});_.am(m)};
NRF=function(m,G){J4d(m,G+" was called but not set")};
DmM=function(m){return function(){return new m}};
sG=function(m){return function(){return _.xS().resolve(m)}};
tdf=function(m,G){var K=_.Q(m,_.qF);if(K&&(K=G[K.signal]))return K();m=_.g(Object.keys(m));for(K=m.next();!K.done;K=m.next())if(K=K.value,G[K]&&(K=G[K]))return K()};
_.qc=function(m,G,K,W){return{browseEndpoint:{browseId:m},commandMetadata:{webCommandMetadata:{url:G,rootVe:K,webPageType:W===void 0?"WEB_PAGE_TYPE_BROWSE":W}}}};
Fhd=function(m,G,K){var W=G=G===void 0?0:G;K=K===void 0?0:K;var L=K-W;return _.EG(m,"PPSV",void 0,void 0,(L>600?0:L<60||K<=0||W/K>.9)?0:G)};
_.EG=function(m,G,K,W,L){var A="/watch?v="+m;m={videoId:m};G&&(m.playlistId=G,A+="&list="+G);W&&(A+="&pp="+W);L&&(m.startTimeSeconds=L,A+="&t="+L+"s");G={watchEndpoint:m,commandMetadata:{webCommandMetadata:{url:A,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};K&&(G.clickTrackingParams=K);W&&(_.Q(G,_.QQ).playerParams=W);return G};
QEd=function(m){return{browseEndpoint:{browseId:"VL"+m},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+m,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
adF=function(m){if(m){var G;if(m){var K=(G=_.Q(m.commandMetadata,_.RQ))==null?void 0:G.url;G=!(!K||K==="/service_ajax")}else G=!1;if(G)return m;var W;if(m=(W=_.Q(m,_.xu))==null?void 0:W.commands)for(W=_.g(m),m=W.next();!m.done;m=W.next())if(m=adF(m.value))return m}};
_.Hk=function(m){return{runs:[{text:m}]}};
oPf=function(m,G){return m&&G?{runs:[{text:m,navigationEndpoint:G}]}:void 0};
I7=function(m){return m?_.Hk(m):void 0};
_.jO=function(m){return m?{simpleText:m}:void 0};
_.kt=function(m){var G=m.type;m=m.payload;G={type:G};m!==void 0&&(G.payload=m);return G};
nPo=function(m,G,K){for(var W=Object.assign({},m),L=_.g(Object.keys(G)),A=L.next();!A.done;A=L.next()){A=A.value;var O=m[A],c=G[A];if(c===void 0)delete W[A];else if(O===void 0)W[A]=c;else if(Array.isArray(c)&&Array.isArray(O))W[A]=K?[].concat(_.Bz(O),_.Bz(c)):c;else if(!Array.isArray(c)&&_.Ud(c)&&!Array.isArray(O)&&_.Ud(O))W[A]=nPo(O,c,K);else if(typeof c===typeof O)W[A]=c;else return G=new _.cw("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:A,originalValue:O,updateValue:c}),
_.am(G),m}return W};
$mF=function(m){if(!m.length)return"";try{if(bav)return bav.decode(m);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(m)}catch(O){}for(var G=0,K=[],W=m.length;G<W;){for(var L=0;L<1024&&G<W;){var A=m[G++];if(A<128)vPf[L++]=A;else{if(A<224)A=(A&31)<<6|m[G++]&63;else if(A<240)A=(A&15)<<12|(m[G++]&63)<<6|m[G++]&63;else{if(L+1===1024){--G;break}A=(A&7)<<18|(m[G++]&63)<<12|(m[G++]&63)<<6|m[G++]&63;A-=65536;vPf[L++]=55296|A>>10;A=56320|A&1023}vPf[L++]=A}}A=String.fromCharCode.apply(String,
vPf);L<1024&&(A=A.substring(0,L));K.push(A)}return K.join("")};
qHF=function(m,G){var K;if((K=sEJ)==null?0:K.encodeInto)return G=sEJ.encodeInto(m,G),G.read<m.length?m.length*4:G.written;for(var W=K=0;W<m.length;W++){var L=m.charCodeAt(W);L<128?G[K++]=L:(L<2048?G[K++]=L>>6|192:((L&64512)===55296&&W+1<m.length&&(m.charCodeAt(W+1)&64512)===56320?(L=65536+((L&1023)<<10)+(m.charCodeAt(++W)&1023),G[K++]=L>>18|240,G[K++]=L>>12&63|128):G[K++]=L>>12|224,G[K++]=L>>6&63|128),G[K++]=L&63|128)}return K};
EPM=function(m,G,K){if(G&&K&&K.buffer===G.exports.memory.buffer){var W=G.realloc(K.byteOffset,m);if(W)return new Uint8Array(G.exports.memory.buffer,W,m)}m=G?new Uint8Array(G.exports.memory.buffer,G.malloc(m),m):new Uint8Array(m);K&&m.set(K);return m};
_.Vx=function(m){m=new Ha6(new IdG([_.T9(decodeURIComponent(m))]));if(jEs(m,2)){var G=CW(m);var K=m.pos;var W=m.arrayView;K=K===void 0?0:K;var L=G===void 0?-1:G;K=K===void 0?0:K;L=L===void 0?-1:L;if(W.totalLength&&L){L<0&&(L=W.totalLength-K);W.focus(K);if(!(K-W.arrayPos+L<=W.arrays[W.arrayIdx].length)){var A=W.arrayIdx,O=W.arrayPos;W.focus(K+L-1);O=new Uint8Array(W.arrayPos+W.arrays[W.arrayIdx].length-O);for(var c=0,u=A;u<=W.arrayIdx;u++)O.set(W.arrays[u],c),c+=W.arrays[u].length;W.arrays.splice(A,
W.arrayIdx-A+1,O);W.arrayIdx=0;W.arrayPos=0;W.focus(K)}A=W.arrays[W.arrayIdx];W=new DataView(A.buffer,A.byteOffset+K-W.arrayPos,L)}else W=new DataView(new ArrayBuffer(0));W=new Uint8Array(W.buffer,W.byteOffset,W.byteLength);m.pos+=G;G=W}else G=void 0;G=G?$mF(G):void 0;m=jEs(m,4)?CW(m):void 0;W=kto[m];if(typeof W==="undefined")throw m=new _.cw("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:m}),_.am(m),m;return{entityTypeFieldNumber:m,entityType:W,entityId:G}};
_.Pk=function(m,G,K){K=K===void 0?0:K;var W=new CpG;if(sEJ)m=sEJ.encode(m);else{var L=new Uint8Array(Math.ceil(m.length*1.2)),A=qHF(m,L);L.length<A&&(L=new Uint8Array(A),A=qHF(m,L));L.length>A&&(L=L.subarray(0,A));m=L}m!==void 0&&(ZQ(W,18),L=m.length,ZQ(W,L),d9(W,L),W.buf.set(m,W.pos),W.pos+=L);m=Vds[G];if(typeof m==="undefined")throw K=new _.cw("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:G}),_.am(K),K;m!==void 0&&(ZQ(W,32),ZQ(W,m));ZQ(W,40);ZQ(W,1);G=new Uint8Array(W.buf.buffer,
W.buf.byteOffset,W.pos);return encodeURIComponent(_.Md(G,K))};
Zad=function(m){m=m.key||m.id;if(!m)throw Error("Jf");return m};
PpF=function(m,G){m=m===void 0?{}:m;return dmP(m,G)};
y4G=function(m,G,K,W){if(W===void 0)return W=Object.assign({},m[G]||{}),K=(delete W[K],W),W={},Object.assign({},m,(W[G]=K,W));var L={},A={};return Object.assign({},m,(A[G]=Object.assign({},m[G],(L[K]=W,L)),A))};
eoF=function(m,G,K,W,L){var A=m[G];if(A==null||!A[K])return m;W=nPo(A[K],W,L==="REPEATED_FIELDS_MERGE_OPTION_APPEND");L={};A={};return Object.assign({},m,(A[G]=Object.assign({},m[G],(L[K]=W,L)),A))};
_.yx=function(m,G,K){return m[G]?m[G][K]||null:null};
xmG=function(){if(fd9)return fd9();var m={};fd9=fL("PersistentEntityStoreDb",{objectStores:(m.EntityStore={addedAtVersion:1},m.EntityAssociationStore={addedAtVersion:2},m),shared:!1,upgrade:function(G,K){K(1)&&qq(sg(G,"EntityStore",{keyPath:"key"}),"entityType","entityType");K(2)&&(G=sg(G,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),qq(G,"byParentEntityKey","parentEntityKey"),qq(G,"byChildEntityKey","childEntityKey"))},
version:3});return fd9()};
XqG=function(m){return _.kD(xmG(),m)};
eO=function(m){return window.Int32Array?new Int32Array(m):Array(m)};
Rov=function(m){return _.kD(SHd(),m)};
Um6=function(m){return new Xv("WRONG_DATA_TYPE",{encoderVersion:m})};
zoo=function(m){return m instanceof Error?new Xv("UNKNOWN_ENCODE_ERROR",{originalMessage:m.message}):new Xv("UNKNOWN_ENCODE_ERROR")};
ld9=function(m){return m instanceof Error?new Xv("UNKNOWN_DECODE_ERROR",{originalMessage:m.message}):new Xv("UNKNOWN_DECODE_ERROR")};
BRd=function(m,G){m=m instanceof Xv?m:G(m);_.am(m);throw m;};
Mdf=function(m){m=(new TextEncoder).encode(m).subarray(0,16);var G=new Uint8Array(16);G.set(m);return G};
mRd=function(m){var G=TRs[m];if(G)return G;_.nc(new _.cw("Entity model not found.",{entityType:m}))};
_.SO=function(){i5P||(i5P=Gxs());return i5P};
Gxs=function(){var m,G,K;return _.Y(function(W){if(W.nextAddress==1)return _.IO(W,2),W.yield(_.en(),4);if(W.nextAddress!=2){m=W.yieldResult;if(!m||!_.OV()||typeof _.Ks.BroadcastChannel==="undefined")return W.return();G=new K_G;return W.return(new R7(m,G))}K=_.ye(W);K instanceof Error&&_.am(K);return W.return()})};
_.UG=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1){K=m.mutations;if(!K||K.length<=0)return W.return();G&&G.dispatch(_.kt({type:"ENTITY_LOADED",payload:K}));return W.yield(W_M(K),2)}K.length=0;_.ey(W)})};
W_M=function(m){var G;return _.Y(function(K){return K.nextAddress==1?K.yield(_.SO(),2):(G=K.yieldResult)?K.yield(_.zz(G,"readwrite",function(W){for(var L={},A=_.g(m),O=A.next(),c={};!O.done;c={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},O=A.next())c.mutation$jscomp$8=O.value,c.mutation$jscomp$8.entityKey&&L_d(c.mutation$jscomp$8)&&(c.mutationEntityType$jscomp$3=(0,_.Y2.getAnyKey)(c.mutation$jscomp$8.payload),O=void 0,c.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(O=function(u){return function(){return _.Axo(W,
u.mutation$jscomp$8.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(c)),c.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(O=function(u){return function(){return wiG(W,u.mutation$jscomp$8.entityKey)}}(c)),c.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(O=function(u){return function(){return g6o(W,u.mutation$jscomp$8.entityKey,u.mutation$jscomp$8.payload[u.mutationEntityType$jscomp$3],u.mutationEntityType$jscomp$3)}}(c)),O&&(L[c.mutation$jscomp$8.entityKey]=
L[c.mutation$jscomp$8.entityKey]?L[c.mutation$jscomp$8.entityKey].then(O):O()));
return $D.all(Object.values(L))}),0):K.return()})};
L_d=function(m){var G;m=(G=m.options)==null?void 0:G.persistenceOption;return m==="ENTITY_PERSISTENCE_OPTION_PERSIST"||m==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
YDJ=function(m,G){var K,W;_.Y(function(L){if(L.nextAddress==1)return L.yield(_.SO(),2);if(L.nextAddress!=3)return(K=L.yieldResult)?L.yield(_.zz(K,"readonly",function(A){var O={},c=Object.keys(G).map(function(u){var h=G[u]?[].concat(_.Bz(G[u])):[];return O5s(A,u,h,O)});
return $D.all(c).then(function(){return O})}),3):L.return();
W=L.yieldResult;Object.keys(W).length>0&&m.dispatch(cxG(W));_.ey(L)})};
O5s=function(m,G,K,W){return ld(m,G,K).then(function(L){W[G]=rxG(K,L)})};
rxG=function(m,G){if(G.length!==m.length)throw Error("Mf");return G.reduce(function(K,W,L){K[m[L]]=W;return K},{})};
piJ=function(m){var G=m.filter(function(L){var A;return(L==null?void 0:(A=L.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_COMPLETE"}).length,K=m.filter(function(L){var A;
return(L==null?void 0:(A=L.transferEntity)==null?void 0:A.transferState)==="TRANSFER_STATE_FAILED"}).length,W=m.filter(function(L){var A;
return(L==null?void 0:(A=L.transferEntity)==null?void 0:A.transferState)&&uqs.includes(L.transferEntity.transferState)});
if(!(G||W!=null&&W.length))return 0;G=_.hh9(W)+G;m=m.length-K;return m===0?0:Math.round(G*100/m)/100};
_.hh9=function(m){var G=[];G=G.concat.apply(G,_.Bz(m.filter(function(A){return A.streamEntity}).map(function(A){var O=Object.assign({},A.streamEntity),c,u=(c=A.transferEntity)==null?void 0:c.transferState;
O.streamsProgress=O.streamsProgress||[];O.streamsProgress=O.streamsProgress.map(function(h){var J=Object.assign({},h);J.numBytesDownloaded=u==="TRANSFER_STATE_COMPLETE"?h.numTotalBytes:h.numBytesDownloaded;return J});
return O}).map(function(A){return A.streamsProgress})));
var K=m=0;G=_.g(G);for(var W=G.next();!W.done;W=G.next()){var L=W.value;W=Number(L.numBytesDownloaded);L=Number(L.numTotalBytes);K+=isNaN(W)?0:W;m+=isNaN(L)?0:L}return m===0?0:Math.round(K*100/m)/100};
Jx9=function(m){if(!m||!m.expirationTimestamp||!m.action)return!1;var G=(0,_.xD)()/1E3;return Number(m.expirationTimestamp)>=G};
Bk=function(m){return m&&m.expirationTimestamp&&m.action?Jx9(m)&&m.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Mc=function(m){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(m||"TRANSFER_STATE_UNKNOWN")};
NEd=function(m){var G=new CpG;if(m!==void 0){var K=Math.ceil(Math.log2(m.length*4+2)/7);K=K===void 0?2:K;ZQ(G,10);G.submessagePosStack.push(G.pos);G.submessagePosStack.push(K);G.pos+=K;d9(G,m.length*1.2);K=qHF(m,G.buf.subarray(G.pos));G.pos+K>G.buf.length&&(d9(G,K),K=qHF(m,G.buf.subarray(G.pos)));G.pos+=K;m=G.submessagePosStack.pop();K=G.submessagePosStack.pop();for(var W=G.pos-K-m;m--;){var L=m?128:0;G.view.setUint8(K++,W&127|L);W>>=7}}G=new Uint8Array(G.buf.buffer,G.buf.byteOffset,G.pos);return(new TextDecoder("utf-8")).decode(G)};
_.Tz=function(m){var G=0;m=_.g(m);for(var K=m.next(),W={};!K.done;W={transferState$jscomp$3:void 0},K=m.next()){var L=K.value,A=void 0;K=(A=L.streamEntity)!=null?A:{};A=void 0;W.transferState$jscomp$3=(A=L.transferEntity)==null?void 0:A.transferState;A=L=void 0;((L=K)==null?0:(A=L.streamsProgress)==null?0:A.length)&&K.streamsProgress.forEach(function(O){return function(c){c=Number(O.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?c.numTotalBytes:c.numBytesDownloaded);isFinite(c)&&(G+=c)}}(W))}return G};
DRJ=function(m){return m.some(function(G){var K;if(!(G==null?0:(K=G.transferEntity)==null?0:K.transferState)){var W;return!(G==null?0:(W=G.policyEntity)==null?0:W.action)||G.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return uqs.includes(G.transferEntity.transferState)})};
tp9=function(m,G){if(!G)return!1;if(_.F("of_pb_en_po_ks"))return!0;var K;m=(K=_.yx(m,"offlineVideoPolicy",_.Pk(G,"offlineVideoPolicy")))!=null?K:void 0;return!!m&&Bk(m)};
_.QqG=function(m){var G=["TRANSFER_STATE_COMPLETE"];G=G===void 0?F_o:G;return m.filter(function(K){var W,L;return G.includes((L=(W=K.transferEntity)==null?void 0:W.transferState)!=null?L:"TRANSFER_STATE_UNKNOWN")})};
afs=function(m,G){if(G){var K,W=(K=_.yx(m,"playbackData",_.Pk(G,"playbackData")))!=null?K:null,L;K=(L=_.yx(m,"transfer",_.Pk(G,"transfer")))!=null?L:null;var A;L=(A=_.yx(m,"offlineVideoStreams",_.Pk(G,"offlineVideoStreams")))!=null?A:null;var O;m=(O=_.yx(m,"offlineVideoPolicy",_.Pk(G,"offlineVideoPolicy")))!=null?O:null;if(W||K||L||m)return{playbackDataEntity:W,transferEntity:K,streamEntity:L,policyEntity:m}}};
_.md=function(m){var G=m.playbackData;if(!G)return[];var K=[];G=_.g(Object.keys(G));for(var W=G.next();!W.done;W=G.next()){var L=W.value;if(!o6d(m,_.Vx(L).entityId)&&(W=afs(m,_.Vx(L).entityId))){var A=void 0,O=void 0;L=(O=Number((A=_.yx(m,"playbackData",L))==null?void 0:A.streamDownloadTimestampSeconds))!=null?O:(0,_.xD)();K.push({entity:W,streamDownloadTimestamp:L})}}return K.sort(function(c,u){var h=c.streamDownloadTimestamp,J=u.streamDownloadTimestamp;return J===h?c.entity.streamEntity&&!u.entity.streamEntity?
1:-1:J-h}).map(function(c){return c.entity})};
n6P=function(m){return _.QqG(_.md(m))};
_.b5s=function(m){return _.md(m).filter(function(G){var K;if(((K=G.policyEntity)==null?0:K.action)&&G.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var W;if((W=G.transferEntity)==null?0:W.transferState){var L;return uqs.includes((L=G.transferEntity)==null?void 0:L.transferState)}return!0})};
o6d=function(m,G){var K;return((K=_.yx(m,"downloadStatusEntity",_.Pk(G,"downloadStatusEntity")))==null?void 0:K.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
v6v=function(m){var G;if(m==null?0:(G=m.playbackDataEntity)==null?0:G.key)return _.Vx(m.playbackDataEntity.key).entityId;var K;if(m==null?0:(K=m.transferEntity)==null?0:K.key)return _.Vx(m.transferEntity.key).entityId;var W;if(m==null?0:(W=m.streamEntity)==null?0:W.key)return _.Vx(m.streamEntity.key).entityId;var L;if(m==null?0:(L=m.policyEntity)==null?0:L.key)return _.Vx(m.policyEntity.key).entityId};
sqo=function(m){var G=new Set,K;m=(K=m.mainDownloadsListEntity)==null?void 0:K[$RV];var W;if(!(m==null?0:(W=m.downloads)==null?0:W.length))return G;var L;m==null||(L=m.downloads)==null||L.forEach(function(A){(A==null?0:A.videoItem)&&G.add(A.videoItem)});
return G};
iw=function(m,G){if(G){var K=_.yx(m,"mainVideoEntity",_.Pk(G,"mainVideoEntity")),W=_.yx(m,"downloadStatusEntity",_.Pk(G,"downloadStatusEntity")),L=_.yx(m,"ytMainChannelEntity",_.Pk(G,"ytMainChannelEntity")),A={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};m=afs(m,G);W=(W==null?void 0:W.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.F("woffle_render_failed_download_state_ks")&&(W==null?void 0:W.downloadState)==="DOWNLOAD_STATE_FAILED";!m&&W&&(m=A);if(m&&K&&
L)return Object.assign({},{videoEntity:K,channelEntity:L},m)}};
E6V=function(m,G){return qDv(m,G)==="TRANSFER_STATE_COMPLETE"&&tp9(m,G)};
H56=function(m,G){if(!G)return!1;var K;m=(K=_.yx(m,"playbackData",_.Pk(G,"playbackData")))!=null?K:void 0;return!!m&&!!m.playerResponseJson};
qDv=function(m,G){if(!G)return"TRANSFER_STATE_UNKNOWN";var K=_.yx(m,"transfer",_.Pk(G,"transfer"));if(K){var W;return(W=K.transferState)!=null?W:"TRANSFER_STATE_UNKNOWN"}K=_.yx(m,"offlineOrchestrationActionWrapperEntity",_.Pk(G,"offlineOrchestrationActionWrapperEntity"));m=_.yx(m,"mainVideoEntity",_.Pk(G,"mainVideoEntity"));return K||m?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Ifo=function(m,G){if(!G)return"TRANSFER_STATE_UNKNOWN";if(m=_.yx(m,"transfer",_.Pk(G,"transfer"))){var K;return(K=m.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
jqJ=function(m,G){return G&&(m=_.yx(m,"videoPlaybackPositionEntity",_.Pk(G,"videoPlaybackPositionEntity")),m==null?0:m.lastPlaybackPositionSeconds)?Number(m.lastPlaybackPositionSeconds):0};
Cmd=function(m,G){return kxP(m).some(function(K){var W;return(K==null?void 0:(W=K.mainPlaylistEntity)==null?void 0:W.playlistId)===G})};
Z5M=function(m,G,K){var W=VpM(m,G);if(!W.length)return[];G=[];W=_.g(W);for(var L=W.next();!L.done;L=W.next()){L=L.value;var A=iw(m,L);K&&qDv(m,L)!=="TRANSFER_STATE_COMPLETE"||A&&G.push(A)}return G};
VpM=function(m,G){if(!G)return[];var K=_.Pk(G,"mainPlaylistEntity"),W;G=(W=m.mainPlaylistEntity)==null?void 0:W[K];W=[];if(G==null||!G.videos)return W;G=_.g(G.videos);for(K=G.next();!K.done;K=G.next()){K=K.value;var L=void 0,A=void 0,O=void 0,c=(L=m)==null?void 0:(A=L.mainPlaylistVideoEntity)==null?void 0:(O=A[K])==null?void 0:O.video;c&&(K=_.Vx(c).entityId)&&W.push(K)}return W};
dRf=function(m,G){if(G){var K=_.yx(m,"mainPlaylistEntity",_.Pk(G,"mainPlaylistEntity")),W=_.yx(m,"mainPlaylistDownloadStateEntity",_.Pk(G,"mainPlaylistDownloadStateEntity"));m=_.yx(m,"ytMainChannelEntity",_.Pk(G,"ytMainChannelEntity"));if(W&&K)return Object.assign({},{mainPlaylistEntity:K,mainPlaylistDownloadStateEntity:W},!!m&&{channelEntity:m})}};
kxP=function(m){return Pmo(m).sort(function(G,K){return K.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedPlaylistEntities})};
Pmo=function(m){var G=m.mainPlaylistDownloadStateEntity,K=[];if(!G)return K;for(var W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next()){var A=L.value;L=dRf(m,_.Vx(A).entityId);var O=void 0;A=Number((O=G[A])==null?void 0:O.addedTimestampMillis);O=isNaN(A)?(0,_.xD)():A;L!==void 0&&K.push({downloadedPlaylistEntities:L,addedTimestampMillis:O})}return K};
yxP=function(m){var G,K=(G=m.mainPlaylistVideoEntity)!=null?G:{};return new Set(kxP(m).reduce(function(W,L){W=W===void 0?[]:W;var A,O;L==null||(A=L.mainPlaylistEntity)==null||(O=A.videos)==null||O.forEach(function(c){var u;(c=(u=K[c])==null?void 0:u.video)&&W.push(c)});
return W},[]))};
ehd=function(m){return"downloadedMusicPlaylistEntities"in m};
ffo=function(m){return"mainPlaylistEntity"in m&&"mainPlaylistDownloadStateEntity"in m};
xRv=function(m){return"videoEntity"in m&&"channelEntity"in m};
XiV=function(m){var G=m.musicPlaylistDownloadMetadataEntity,K=[];if(!G)return K;for(var W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next()){L=L.value;a:{var A=m,O=_.Vx(L).entityId;if(O){var c=_.yx(A,"musicPlaylist",_.Pk(O,"musicPlaylist"));A=_.yx(A,"musicPlaylistDownloadMetadataEntity",_.Pk(O,"musicPlaylistDownloadMetadataEntity"));if(c&&A){c={musicPlaylistEntity:c,musicPlaylistDownloadStateEntity:A};break a}}c=void 0}A=void 0;L=Number((A=G[L])==null?void 0:A.addedTimestampMillis);L=isNaN(L)?(0,_.xD)():
L;c!==void 0&&K.push({downloadedMusicPlaylistEntities:c,addedTimestampMillis:L})}return K};
SDv=function(m){var G=new Set;m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,"musicPlaylistEntity"in K&&"musicPlaylistDownloadStateEntity"in K){K=_.g(K.musicPlaylistEntity.tracks);for(var W=K.next();!W.done;W=K.next())G.add(W.value)}return G};
RhG=function(m,G){if(G){var K=_.yx(m,"musicTrack",_.Pk(G,"musicTrack")),W=_.yx(m,"musicArtist",_.Pk(G,"musicArtist"))||{};if((m=afs(m,G))&&K&&W)return Object.assign({},{musicTrackEntity:K,musicArtistEntity:W},m)}};
URJ=function(m){var G=m.musicTrackDownloadMetadataEntity,K=[];if(!G)return[];G=_.g(Object.keys(G));for(var W=G.next();!W.done;W=G.next()){var L=W.value;W=RhG(m,_.Vx(L).entityId);var A=void 0;L=Number((A=_.yx(m,"musicTrackDownloadMetadataEntity",L))==null?void 0:A.addedTimestampMillis);A=isNaN(L)?(0,_.xD)():L;W!==void 0&&K.push({downloadedMusicEntities:W,addedTimestampMillis:A})}return K};
BE9=function(m,G){if(!G)return[];if(Object.values(zhV).includes(G))return lfG(m,G);G=_.Pk(G,"musicPlaylist");var K;m=(K=m.musicPlaylist)==null?void 0:K[G];K=[];if(m==null||!m.tracks)return K;m=_.g(m.tracks);for(G=m.next();!G.done;G=m.next())(G=_.Vx(G.value).entityId)&&K.push(G);return K};
lfG=function(m,G){var K=new Set,W=XiV(m).map(function(A){return A.downloadedMusicPlaylistEntities});
W=SDv(W);W=_.g(W);for(var L=W.next();!L.done;L=W.next())(L=_.Vx(L.value).entityId)&&K.add(L);return MpM(m).downloadedMusicEntities.filter(function(A){var O;if((O=A.musicTrackEntity)!=null&&O.videoId){A=A.musicTrackEntity;if(O=G==="PPOM"?!0:!K.has(A.videoId))b:switch(A=A.musicVideoType,G){case "PPSE":O=A==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:O=A!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}A=O}else A=!1;return A}).map(function(A){var O;
return(O=A.musicTrackEntity)==null?void 0:O.videoId})};
MpM=function(m){var G=URJ(m).sort(function(K,W){return W.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return"downloadedMusicEntities"in K?K.downloadedMusicEntities:ehd(K)?K.downloadedMusicPlaylistEntities:{}});
m=XiV(m).sort(function(K,W){return W.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return"downloadedMusicEntities"in K?K.downloadedMusicEntities:ehd(K)?K.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:G,downloadedMusicPlaylistEntities:m}};
mSd=function(m,G){G=_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?BE9(m,G):VpM(m,G);if(!G.length)return"TRANSFER_STATE_UNKNOWN";G=G.map(function(K){return Ifo(m,K)});
return TEG(G)};
TEG=function(m){var G=new Set(m);if(G.has("TRANSFER_STATE_FAILED")&&G.size===1)return"TRANSFER_STATE_FAILED";G.delete("TRANSFER_STATE_FAILED");if(G.has("TRANSFER_STATE_UNKNOWN")&&G.size===1)return"TRANSFER_STATE_PRE_TRANSFER";G.delete("TRANSFER_STATE_UNKNOWN");if(G.has("TRANSFER_STATE_PRE_TRANSFER")&&G.size===1||G.size===0)return"TRANSFER_STATE_PRE_TRANSFER";m=G.has("TRANSFER_STATE_TRANSFERRING");G=G.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return m||G?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Gv=function(m){var G=m.mainVideoDownloadStateEntity,K=[];if(!G)return[];G=_.g(Object.keys(G));for(var W=G.next();!W.done;W=G.next()){var L=W.value;if(!o6d(m,_.Vx(L).entityId)){W=iw(m,_.Vx(L).entityId);var A=void 0,O=void 0;L=(O=Number((A=_.yx(m,"mainVideoDownloadStateEntity",L))==null?void 0:A.addedTimestampMillis))!=null?O:(0,_.xD)();W!==void 0&&K.push({downloadedVideoEntities:W,addedTimestampMillis:L})}}return K};
i96=function(m){return Gv(m).sort(function(G,K){return K.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities})};
_.Ks9=function(m){var G=yxP(m),K=_.KG(m),W=sqo(m),L=Gv(m).filter(function(O){var c,u;if((O==null?void 0:(c=O.downloadedVideoEntities)==null?void 0:(u=c.transferEntity)==null?void 0:u.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var h,J;O=O==null?void 0:(h=O.downloadedVideoEntities)==null?void 0:(J=h.videoEntity)==null?void 0:J.key;return _.F("kevlar_use_library_entity")?O&&(W.has(O)||K[O]):O&&!G.has(O)}),A=Pmo(m).filter(function(O){return mSd(m,O.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Bz(L),_.Bz(A)).sort(function(O,c){return c.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return GMs(O)})};
Wsv=function(m,G){if(G&&tp9(m,G)){var K,W,L=(W=(K=_.yx(m,"playbackData",_.Pk(G,"playbackData")))!=null?K:void 0)==null?void 0:W.playerResponseJson;if(L){try{var A=JSON.parse(L);var O=_.yx(m,"transfer",_.Pk(G,"transfer")),c=jqJ(m,G);c&&(A=Object.assign({},A,{playerConfig:Object.assign({},A.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+c*1E3}}})}));A.cotn=O==null?void 0:O.cotn}catch(u){}return A}}};
_.AS6=function(m){var G,K,W;m=(W=(K=((G=m.downloadsPageViewConfigurationEntity)!=null?G:{})[_.WU])==null?void 0:K.smartDownloadsOptInBannerVisibility)!=null?W:{};var L;return(L=_.Q(m,LsP))!=null?L:{}};
_.KG=function(m){var G,K,W;m=(W=(K=((G=m.mainDownloadsListEntity)!=null?G:{})[_.wT6])==null?void 0:K.downloads)!=null?W:[];G={};K=_.g(m);for(W=K.next();!W.done;W=K.next())m=void 0,G[(m=W.value.videoItem)!=null?m:""]=!0;return G};
gjF=function(m){var G=_.KG(m);if(Object.keys(G).length===0)return!1;var K=m.mainVideoEntity;if(!K)return!0;K=_.g(Object.keys(K));for(var W=K.next();!W.done;W=K.next()){W=W.value;var L=_.Vx(W).entityId;if(G[W]&&!o6d(m,L))return!1}return!0};
_.LG=function(m){var G=_.KG(m);return Gv(m).sort(function(K,W){return K.addedTimestampMillis-W.addedTimestampMillis}).map(function(K){return K.downloadedVideoEntities}).filter(function(K){var W;
return(K=K==null?void 0:(W=K.videoEntity)==null?void 0:W.key)&&!!G[K]})};
_.cSG=function(m){var G,K,W;m=(W=(K=((G=m.downloadsPageViewConfigurationEntity)!=null?G:{})[_.WU])==null?void 0:K.downloadsUpsellBannerVisibility)!=null?W:{};var L;return(L=_.Q(m,O9f))!=null?L:{}};
GMs=function(m){return"downloadedVideoEntities"in m?m.downloadedVideoEntities:"downloadedPlaylistEntities"in m?m.downloadedPlaylistEntities:{}};
YWM=function(m){var G=_.KG(m),K=yxP(m),W=Gv(m).filter(function(L){var A,O;return(L=L==null?void 0:(A=L.downloadedVideoEntities)==null?void 0:(O=A.videoEntity)==null?void 0:O.key)&&!G[L]&&!K.has(L)});
m=Pmo(m);return[].concat(_.Bz(W),_.Bz(m)).sort(function(L,A){return A.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return GMs(L)})};
_.AM=function(m){if(!_.F("kevlar_use_library_entity"))return YWM(m);var G=Gv(m).filter(function(W){var L,A;if(L=W=W==null?void 0:(L=W.downloadedVideoEntities)==null?void 0:(A=L.videoEntity)==null?void 0:A.key){var O,c,u;L=((c=(O=m.mainDownloadsListEntity)==null?void 0:O[$RV])==null?0:(u=c.downloads)==null?0:u.length)?sqo(m).has(W):!1}return L}),K=Pmo(m);
return[].concat(_.Bz(G),_.Bz(K)).sort(function(W,L){return L.addedTimestampMillis-W.addedTimestampMillis}).map(function(W){return GMs(W)})};
rSP=function(m){var G=_.KG(m),K=yxP(m);return i96(m).filter(function(W){var L;return(W=W==null?void 0:(L=W.videoEntity)==null?void 0:L.key)&&!G[W]&&!K.has(W)})};
uao=function(m){if(!_.F("kevlar_use_library_entity"))return rSP(m);var G=_.KG(m),K=sqo(m);return i96(m).filter(function(W){var L;return(W=W==null?void 0:(L=W.videoEntity)==null?void 0:L.key)&&!G[W]&&K.has(W)})};
hwd=function(m,G){G=_.Pk(G,"settingEntity");var K,W,L;return!!((L=(W=((K=m.settingEntity)!=null?K:{})[G])==null?void 0:W.settingOptionValue)!=null?L:{}).boolValue};
_.w6=function(m){var G=_.LG(m);if(DRJ(G))return 0;var K=[];G=_.g(G);for(var W=G.next();!W.done;W=G.next()){W=W.value;var L=void 0,A=void 0;if((L=W)==null?0:(A=L.videoEntity)==null?0:A.key)L=_.Vx(W.videoEntity.key).entityId,W=m,L=_.Pk(L,"mainVideoDownloadStateEntity"),W=_.yx(W,"mainVideoDownloadStateEntity",L),(W=Number(W==null?void 0:W.addedTimestampMillis))&&K.push(W)}return Math.max.apply(Math,_.Bz(K))};
_.g6=function(m){return m.ui.richGridMiniMode};
_.Ov=function(m){return m.ui.richGridItemsPerRow};
_.pTP=function(m){return m.ui.richGridSlimItemsPerRow};
_.JSd=function(m){return m.ui.guideIsExpanded};
_.cU=function(m){return m.ui.miniplayerIsActive};
NtG=function(m){return m.ui.singleOptionSurveyIsActive};
_.YR=function(m){var G;return((G=m.ui)==null?void 0:G.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.DSd=function(m){return _.YR(m)==="WEB_PAGE_TYPE_WATCH"};
_.tBd=function(m){return _.YR(m)==="WEB_PAGE_TYPE_SHORTS"};
_.FsP=function(m){return m.ui.inlinePreviewIsActive};
_.Quf=function(m){return m.ui.inlinePreviewIsEnabled};
_.and=function(m){return m.ui.miniplayerPlaybackState};
_.r6=function(m){return m.ui.isOnline};
_.ojd=function(m){return m.ui.frostedGlassMode};
_.uw=function(m,G){return qDv(m.entities,G)};
_.hM=function(m,G){return mSd(m.entities,G)};
njF=function(m,G){var K;if(G){var W;m=(W=_.yx(m.entities,"offlineVideoPolicy",_.Pk(G,"offlineVideoPolicy")))==null?void 0:W.action}else m=void 0;return(K=m)!=null?K:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
b9G=function(m,G){var K;G?(m=_.yx(m.entities,"offlineVideoPolicy",_.Pk(G,"offlineVideoPolicy")),m=Number(m==null?void 0:m.expirationTimestamp)):m=void 0;return(K=m)!=null?K:0};
_.vjd=function(m){return _.md(m.entities).length};
$SM=function(m,G){return iw(m.entities,G)};
suM=function(m,G){return dRf(m.entities,G)};
pG=function(m,G){return(m=iw(m.entities,G))?_.hh9([m]):0};
_.qWo=function(m,G){var K=_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(K){var W=m.entities;var L=BE9(W,G);if(L.length){var A=[];L=_.g(L);for(var O=L.next();!O.done;O=L.next())(O=RhG(W,O.value))&&A.push(O);W=A}else W=[]}else W=Z5M(m.entities,G);var c;if(K){var u=m.entities;G?(G=_.Pk(G,"musicPlaylist"),u=(c=u.musicPlaylist)==null?void 0:c[G],c=u!=null&&u.tracks?u.tracks.length:0):c=0}else c=m.entities,G?(G=_.Pk(G,"mainPlaylistEntity"),c=(u=c.mainPlaylistEntity)==null?void 0:u[G],c=c!=null&&c.videos?
c.videos.length:0):c=0;return W.length!==c?0:W?piJ(W):0};
_.EjJ=function(m){return m.download.isLeaderTab};
_.LBo=function(m,G,K){if(!G&&K){var W=m.entities;if(K){var L=NEd(K),A,O;G=(O=(A=_.yx(W,"offlineabilityEntity",_.Pk(L,"offlineabilityEntity")))==null?void 0:A.addToOfflineButtonState)!=null?O:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else A=m.entities,G?(O=NEd(G),G=(L=(W=_.yx(A,"offlineabilityEntity",_.Pk(O,"offlineabilityEntity")))==null?void 0:W.addToOfflineButtonState)!=null?L:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):G="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return G};
Ar9=function(m,G){m=m.entities;if(G){G=NEd(G);var K,W;G=(W=(K=_.yx(m,"offlineabilityEntity",_.Pk(G,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?W:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else G="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return G};
_.wxJ=function(m){var G=m.entities;m=_.r6(m);var K=hwd(G,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.F("kevlar_modern_downloads_page")&&K)var W=!1;else{var L,A;G=(A=(L=((W=G.downloadsPageViewConfigurationEntity)!=null?W:{})[_.WU])==null?void 0:L.smartDownloadsOptInBannerVisibility)!=null?A:{};W=m?!!G.visibleWithConnection:!!G.visibleWithoutConnection}return W};
_.g8o=function(m){return hwd(m.entities,"SMART_DOWNLOADS_ENABLED")};
_.Oko=function(m){return gjF(m.entities)};
crP=function(m){return _.LG(m.entities).every(function(G){var K;return(G==null?void 0:(K=G.transferEntity)==null?void 0:K.transferState)&&!uqs.includes(G.transferEntity.transferState)})};
_.Yxd=function(m){var G,K,W,L=(W=(K=((G=m.entities.downloadsPageViewConfigurationEntity)!=null?G:{})[_.WU])==null?void 0:K.downloadsUpsellBannerVisibility)!=null?W:{};return _.r6(m)?!!L.visibleWithConnection:!!L.visibleWithoutConnection};
_.rrJ=function(m,G){return o6d(m.entities,G)};
uBV=function(m,G){if(G){var K,W;m=(W=(K=_.yx(m.entities,"downloadStatusEntity",_.Pk(G,"downloadStatusEntity")))==null?void 0:K.downloadState)!=null?W:"DOWNLOAD_STATE_UNKNOWN"}else m="DOWNLOAD_STATE_UNKNOWN";return m};
JM=function(m,G){return jqJ(m.entities,G)};
N0v=function(m){m=hpv(m);var G=m.hours===void 0?0:m.hours,K=m.minutes===void 0?0:m.minutes,W=m.seconds===void 0?0:m.seconds,L=G>0;m=[];L&&(G=pxd(G),m.push(G));G=L;G=G===void 0?!1:G;K=(["af","be","lt"].includes(N_)||G)&&K<10?Jrd().format(K):(new Intl.NumberFormat("en-u-nu-latn")).format(K);m.push(K);K=Jrd().format(W);m.push(K);K=":";"da fi id si sr sr-Latn".split(" ").includes(N_)&&(K=".");return m.join(K)};
_.txf=function(m){m=hpv(m);var G=m.hours===void 0?0:m.hours,K=m.minutes===void 0?0:m.minutes,W=m.seconds===void 0?0:m.seconds;m=[];if(G>0){var L=DUV().format({hours:G});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(N_)||G>9999)L=L.replace(G.toString(),pxd(G)),N_==="km"&&(L=L.replace(".",","));m.push(L)}K>0&&m.push(DUV().format({minutes:K}));W>0&&m.push(DUV().format({seconds:W}));G="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");K=N_=="am"?"{0}\u1363 ":N_=="fa"?"{0}\u060c\u200f ":
N_=="my"?"{0} - ":N_=="th"?"{0} ":N_=="ur"?"{0}\u060c ":N_=="ar"||N_=="ar-XB"?"{0} \u0648":N_=="ja"||N_=="zh-CN"||N_=="zh-HK"||N_=="zh-TW"?"{0}\u3001":"{0}, ";W=N_=="am"?"\u1363 ":N_=="fa"?"\u060c\u200f ":N_=="my"?" - ":N_=="th"?" ":N_=="ur"?"\u060c ":N_=="ar"||N_=="ar-XB"?" \u0648":N_=="ja"||N_=="zh-CN"||N_=="zh-HK"||N_=="zh-TW"?"\u3001":", ";L=N_=="am"?" \u12a5\u1293 {0}":N_=="as"?" \u0986\u09f0\u09c1 {0}":N_=="az"?" v\u0259 {0}":N_=="bn"?" \u098f\u09ac\u0982 {0}":N_=="cs"?" a\u00a0{0}":N_=="de"?
" und {0}":N_=="el"?" \u03ba\u03b1\u03b9 {0}":N_=="eu"?" eta {0}":N_=="fa"?"\u060c \u0648 {0}":N_=="fil"?", at {0}":N_=="gu"?" \u0a85\u0aa8\u0ac7 {0}":N_=="hi"?", \u0914\u0930 {0}":N_=="hu"?" \u00e9s {0}":N_=="hy"?" \u0587 {0}":N_=="id"?", dan {0}":N_=="iw"?" \u05d5-{0}":N_=="ja"?"\u3001{0}":N_=="ka"?" \u10d3\u10d0 {0}":N_=="km"?" \u1793\u17b7\u1784 {0}":N_=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":N_=="ko"?" \ubc0f {0}":N_=="ky"?" \u0436\u0430\u043d\u0430 {0}":N_=="lt"?" ir {0}":N_=="lv"?" un {0}":
N_=="mr"?" \u0906\u0923\u093f {0}":N_=="ms"?" dan {0}":N_=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":N_=="ne"?" \u0930 {0}":N_=="or"?", \u0b13 {0}":N_=="pa"?" \u0a05\u0a24\u0a47 {0}":N_=="ro"?" \u0219i {0}":N_=="si"?", \u0dc3\u0dc4 {0}":N_=="sk"?" a {0}":N_=="sl"?" in {0}":N_=="sq"?" dhe {0}":N_=="sv"?" och {0}":N_=="sw"?" na {0}":N_=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":N_=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":N_=="th"?" \u0e41\u0e25\u0e30{0}":N_=="tr"?" ve {0}":N_=="ur"?
"\u060c \u0627\u0648\u0631 {0}":N_=="uz"?" va {0}":N_=="vi"?" v\u00e0 {0}":N_=="zh-HK"?"\u53ca{0}":N_=="zu"?", ne-{0}":N_=="af"||N_=="nl"?" en {0}":N_=="ar"||N_=="ar-XB"?" \u0648{0}":N_=="be"||N_=="uk"?" \u0456 {0}":N_=="en-GB"||N_=="en-IN"?" and {0}":N_=="en"||N_=="en-XA"?", and {0}":N_=="et"||N_=="fi"?" ja {0}":N_=="fr"||N_=="fr-CA"?" et {0}":N_=="zh-CN"||N_=="zh-TW"?"\u548c{0}":N_=="da"||N_=="is"||N_=="no"?" og {0}":N_=="es"||N_=="es-419"||N_=="es-US"?" y {0}":N_=="bg"||N_=="mk"||N_=="ru"||N_==
"sr"?" \u0438 {0}":N_=="gl"||N_=="it"||N_=="pt-BR"||N_=="pt-PT"?" e {0}":N_=="kk"||N_=="lo"||N_=="ml"||N_=="mn"?", {0}":" i {0}";var A=N_=="am"?"{0} \u12a5\u1293 {1}":N_=="as"?"{0} \u0986\u09f0\u09c1 {1}":N_=="az"?"{0} v\u0259 {1}":N_=="bn"?"{0} \u098f\u09ac\u0982 {1}":N_=="de"?"{0} und {1}":N_=="el"?"{0} \u03ba\u03b1\u03b9 {1}":N_=="eu"?"{0} eta {1}":N_=="fa"?"{0} \u0648 {1}":N_=="fil"?"{0} at {1}":N_=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":N_=="hi"?"{0} \u0914\u0930 {1}":N_=="hu"?"{0} \u00e9s {1}":N_==
"hy"?"{0} \u0587 {1}":N_=="iw"?"{0} \u05d5-{1}":N_=="ja"?"{0}\u3001{1}":N_=="ka"?"{0} \u10d3\u10d0 {1}":N_=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":N_=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":N_=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":N_=="ko"?"{0} \ubc0f {1}":N_=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":N_=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":N_=="lt"?"{0} ir {1}":N_=="lv"?"{0} un {1}":N_=="mr"?"{0} \u0906\u0923\u093f {1}":N_=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":N_=="ne"?"{0} \u0930 {1}":
N_=="or"?"{0} \u0b13 {1}":N_=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":N_=="ro"?"{0} \u0219i {1}":N_=="si"?"{0} \u0dc3\u0dc4 {1}":N_=="sl"?"{0} in {1}":N_=="sq"?"{0} dhe {1}":N_=="sv"?"{0} och {1}":N_=="sw"?"{0} na {1}":N_=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":N_=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":N_=="th"?"{0}\u0e41\u0e25\u0e30{1}":N_=="tr"?"{0} ve {1}":N_=="ur"?"{0} \u0627\u0648\u0631 {1}":N_=="uz"?"{0} va {1}":N_=="vi"?"{0} v\u00e0 {1}":N_=="zh-HK"?"{0}\u53ca{1}":N_==
"zu"?"{0} ne-{1}":N_=="af"||N_=="nl"?"{0} en {1}":N_=="ar"||N_=="ar-XB"?"{0} \u0648{1}":N_=="be"||N_=="uk"?"{0} \u0456 {1}":N_=="cs"||N_=="sk"?"{0} a\u00a0{1}":N_=="et"||N_=="fi"?"{0} ja {1}":N_=="fr"||N_=="fr-CA"?"{0} et {1}":N_=="id"||N_=="ms"?"{0} dan {1}":N_=="ml"||N_=="mn"?"{0}, {1}":N_=="zh-CN"||N_=="zh-TW"?"{0}\u548c{1}":N_=="da"||N_=="is"||N_=="no"?"{0} og {1}":N_=="es"||N_=="es-419"||N_=="es-US"?"{0} y {1}":N_=="bg"||N_=="mk"||N_=="ru"||N_=="sr"?"{0} \u0438 {1}":N_=="en"||N_=="en-GB"||N_==
"en-IN"||N_=="en-XA"?"{0} and {1}":N_=="gl"||N_=="it"||N_=="pt-BR"||N_=="pt-PT"?"{0} e {1}":"{0} i {1}";N_==="sq"?(L=L.replace("dhe","e"),A=A.replace("dhe","e")):N_==="th"?(W=W.replace("{0}"," {0}"),A=A.replace("{0}","{0} "),A=A.replace("{1}"," {1}")):N_==="ne"?W=",":N_==="zh-CN"?W="":G.includes(N_)&&(W=" ");return m.length<2?m.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(N_)?
m.length===2?A.replace("{0}",m[0]).replace("{1}",m[1]):K.replace("{0}",m[0])+m.slice(1,-1).join(W)+L.replace("{0}",m[m.length-1]):m.join(W)};
hpv=function(m){var G=m.hours||0,K=m.minutes||0,W=m.seconds||0;G=W+K*60+G*3600+(m.days||0)*86400+(m.weeks||0)*604800+(m.months||0)*2629800+(m.years||0)*31557600;if(G<=0)return{hours:0,minutes:0,seconds:0};m=G;G=Math.floor(m/3600);m%=3600;K=Math.floor(m/60);W=Math.floor(m%60);return{hours:G,minutes:K,seconds:W}};
pxd=function(m){m=(new Intl.NumberFormat("en-u-nu-latn")).format(m);var G=["fr"],K="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(N_)?m.replace(",","\u00a0"):G.includes(N_)?m.replace(",","\u202f"):K.includes(N_)?m.replace(",","."):m};
Jrd=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
DUV=function(){FBo||(Dl=QfF,FBo=new aTG);return FBo};
o86=function(m){try{return(new _.tM(5)).format(m)}catch(G){}};
FQ=function(m){return{thumbnailOverlayDownloadingRenderer:{state:m}}};
n8G=function(){var m=_.zq("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Hk(m),icon:{iconType:"PLAY_ALL"}}}};
bkV=function(m){m=_.QY(m,2);return N_!=="ru"&&N_!=="es_419"&&N_!=="es-419"&&N_!=="es"&&N_!=="es_US"&&N_!=="es-US"&&N_!=="fr"&&N_!=="pl"&&N_!=="it"&&N_!=="nl"&&N_!=="uk"&&N_!=="fr_CA"&&N_!=="fr-CA"||m===""?m:m[0].toLocaleUpperCase()+m.substring(1)};
$UG=function(m){return function(G){var K=m(),W=_.QY(G,K.dateFormat);G=_.QY(G,K.timeFormat);var L=v8J.DATETIMEFORMATS[K.joinerStyle];L=L.replace(/'(?!')/g,"");L=L.replace("{0}",G);L=L.replace("{1}",W);return K.capitalize(L)}};
sfG=function(m){return m?typeof m.seconds==="string"&&(m.nanos===void 0||typeof m.nanos==="number"):!1};
qxP=function(m){return new Date(Number(m.seconds)*1E3+(m.nanos||0)*1E-6)};
_.QY=function(m,G){if(typeof m.getTime==="function")m={date:m};else if(sfG(m))m={date:qxP(m)};else if(typeof sfG(m.timestamp)&&typeof m.i18nInternalSecondsEastOfUtc==="number")m={date:qxP(m.timestamp),timeZone:aW(-m.i18nInternalSecondsEastOfUtc/60)};else throw Error("Nf`"+JSON.stringify(m));var K=m;m=K.date;K=K.timeZone;G=E89(G).format(m,K);N_==="zh-TW"&&(m=K?Number(E89("H").format(m,K)):m.getHours(),G=m<5?G.replace("\u4e0a\u5348","\u51cc\u6668"):m<8?G.replace("\u4e0a\u5348","\u65e9\u4e0a"):m<12?
G.replace("\u4e0a\u5348","\u4e0a\u5348"):m<13?G.replace("\u4e0b\u5348","\u4e2d\u5348"):m<19?G.replace("\u4e0b\u5348","\u4e0b\u5348"):G.replace("\u4e0b\u5348","\u665a\u4e0a"));return G};
E89=function(m){if(HkM.has(m))return HkM.get(m);var G=ITs(m);G=jfd(G);kl9!==!0&&(kl9=!0);CCG=!0;CCG=!1;G=new oW(G,v8J);HkM.set(m,G);return G};
ITs=function(m){return(new oW(m,v8J)).patternParts_.map(function(G){return G.type===0?"'"+G.text+"'":G.text}).join("")};
jfd=function(m){return N_==="en"||N_==="es_US"||N_==="es-US"?m:m.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(G,K,W){return"H".repeat(K.length)+W})};
fTs=function(m,G){Vx9||(Dl=QfF,Vx9=new Zk9);var K=Vx9;a:if(m=dUd(m),G=dUd(G||new Date),m>G)K=m.getTime()-G.getTime()>6048E5?_.QY(m,1):PCG(m);else{for(var W=0;yrP(m,12*(W+1))<G;)++W;if(W>0)K=K.format(-W,0);else{for(W=0;yrP(m,W+1)<G;)++W;if(W>0)K=K.format(-W,2);else{m=G.getTime()-m.getTime();G=_.g(epJ);for(W=G.next();!W.done;W=G.next()){W=W.value;var L=W.unit,A=Math.floor(m/W.unitDuration);if(A>=(W.threshold===void 0?1:W.threshold)){K=K.format(-A,L);break a}}K=K.format(-0,7)}}}return K};
dUd=function(m){if(typeof m.getTime==="function")return m;if(sfG(m))return qxP(m);throw Error("Of`"+JSON.stringify(m));};
yrP=function(m,G){for(var K=0,W;;++K)if(W=new Date(m.getFullYear(),m.getMonth()+G,m.getDate()-K,m.getHours(),m.getMinutes(),m.getSeconds()),W.getMonth()===(m.getMonth()+G)%12)return W};
_.nG=function(m){return{runs:[{text:m}]}};
_.bw=function(m){if(m&&m.simpleText)return m.simpleText;var G="";if(m&&m.runs)for(var K=0;K<m.runs.length;K++)m.runs[K].text&&(G+=m.runs[K].text);return G};
Xxs=function(m,G,K,W){return m.videoEntity&&!m.policyEntity&&K!=="DOWNLOAD_STATE_FAILED"?[FQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Bk(m.policyEntity)&&G!=="TRANSFER_STATE_FAILED"&&G!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?G==="TRANSFER_STATE_PAUSED_BY_USER"?[FQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Mc(G)?[FQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:m.videoEntity.lengthSeconds?xUf(m.videoEntity.lengthSeconds,W):[]:
[FQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
xUf=function(m,G){var K=[{thumbnailOverlayTimeStatusRenderer:{text:_.Hk(N0v({seconds:m})),style:"DEFAULT"}}];G&&(m=G<=0||m<=0?0:G>=m?100:Math.ceil(G*100/m),m>0&&K.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:m}}));return K};
Sxd=function(m,G,K,W,L){if(G==="TRANSFER_STATE_UNKNOWN"||!m)return{};if(_.Mc(G)||G==="TRANSFER_STATE_PRE_TRANSFER")var A=[FQ("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var O,c;if(G==="TRANSFER_STATE_COMPLETE"&&((O=m.mainPlaylistEntity)==null?0:(c=O.videos)==null?0:c.length)){var u;m=(A=m.mainPlaylistEntity)==null?void 0:(u=A.videos)==null?void 0:u.length;A=(A=o86(m))?{thumbnailOverlayBottomPanelRenderer:{text:_.Hk(A),icon:{iconType:"PLAYLISTS"}}}:void 0;A=[n8G(),Object.assign({},
A!=null?A:{})]}else A=[]}a:if(G==="TRANSFER_STATE_PRE_TRANSFER")K=I7(_.zq("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE")K=I7(_.zq("WAITING_TO_DOWNLOAD"));else if(_.Mc(G))K=Math.floor(K*100).toString(),K=I7(_.zq("DOWNLOADING_PERCENT",{percent:K},"Downloading... "+K+"%"));else{if(W&&(_.F("playlist_is_offline_selector_killswitch")&&(L=_.xS().resolve(_.k3).isNetworkAvailable()),L)){K=oPf(_.zq("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
QEd(W));break a}K=void 0}G=G==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.zq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},A.length?{thumbnailOverlays:A}:{},K?{viewPlaylistText:K}:{viewPlaylistText:_.nG("")},G.length?{badges:G}:{})};
Rpo=function(m,G,K,W,L,A){if(G==="TRANSFER_STATE_UNKNOWN"||!m)return{};if(W==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var O=Xxs(m,G,W);if(m.videoEntity&&!m.policyEntity&&W!=="DOWNLOAD_STATE_FAILED"){var c=_.zq("WAITING_TO_DOWNLOAD");if(c)return{shortViewCountText:_.nG(c),publishedTimeText:void 0,thumbnailOverlays:O}}if(!Bk(m.policyEntity)){A=m.policyEntity&&!Jx9(m.policyEntity)?_.zq("DOWNLOAD_EXPIRED",{},"Download expired"):
_.zq("TRANSFER_FAILED",{},"Download failed");var u;if((u=m.policyEntity)==null?0:u.shortMessageForDisabledAction)A=m.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:I7(A),publishedTimeText:void 0,thumbnailOverlays:O}}if(G==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.nG(_.zq("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:O};if(G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.nG(_.zq("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:O};if(G==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(u=_.zq("WAITING_TO_DOWNLOAD"),W==="DOWNLOAD_STATE_PAUSED"&&(u=_.zq("DOWNLOAD_PAUSED",{},"Download paused")),u))return{shortViewCountText:_.nG(u),publishedTimeText:void 0,thumbnailOverlays:O};if(_.Mc(G))return m=Math.floor(K*100).toString(),{shortViewCountText:_.nG(_.zq("DOWNLOADING_PERCENT",{percent:m},"Downloading... "+m+"%")),publishedTimeText:void 0,thumbnailOverlays:O};G=void 0;m.videoEntity.publishedTimestampMillis&&
(G=new Date,L&&(G=new Date(L)),G=I7(fTs(new Date(Number(m.videoEntity.publishedTimestampMillis)),G)));L=[];_.F("kevlar_woffle_badge_killswitch")||(L=[{metadataBadgeRenderer:{label:_.zq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var h;m=I7((h=m.videoEntity.localizedStrings)==null?void 0:h.viewCount);return Object.assign({},A?{shortViewCountText:void 0}:{shortViewCountText:m},A?{}:{publishedTimeText:G},{badges:L,thumbnailOverlays:O})};
zpV=function(m,G){m=m===void 0?UU9:m;switch(G.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:G.payload.playlistId,inviteLinkURL:G.payload.inviteLinkUrl};default:return m}};
B0f=function(m,G){m=m===void 0?lTf:m;switch(G.type){case "SET_CURRENT_FORM_ID":return G=G.payload.formId,m.currentFormId===G?m:{currentFormId:G,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var K=G.payload;G=K.groupId;K=K.command;if(m.currentFormId){var W=Object.assign({},m.commandsMap);W[G]=K;m=Object.assign({},m,{commandsMap:W})}return m;case "RESET_COMMAND_MAP":return Object.assign({},m,{commandsMap:{}});default:return m}};
T0o=function(m,G){m=m===void 0?Mxv:m;switch(G.type){case "UPDATE_CANVAS_MODE":return Object.assign({},m,{currentMode:G.payload.currentMode});default:return m}};
ifM=function(m,G){m=m===void 0?moM:m;switch(G.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},m,{guideIsExpanded:G.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},m,{scrollAtTop:G.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},m,{guideIsVisibleButNotPersistent:G.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},m,{miniplayerIsActive:G.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},m,{singleOptionSurveyIsActive:G.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},m,{slimlineSurveyRatingSelectedIndex:G.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},m,{richGridMiniMode:G.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},m,{richGridItemsPerRow:G.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},m,{richGridSlimItemsPerRow:G.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},m,{richGridContainerWidth:G.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},m,{richGridStyle:G.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},m,{currentPageType:G.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},m,{inlinePreviewIsActive:G.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},m,{inlinePreviewIsEnabled:G.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},m,{darkModeIsEnabled:G.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
m,{miniplayerPlaybackState:G.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},m,{tabGesturesIsActive:G.payload});case "SET_ONLINE_STATUS":return Object.assign({},m,{isOnline:G.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},m,{chipBarIsSticky:G.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},m,{frostedGlassMode:G.payload});default:return m}};
Gwo=function(){return _.F("kevlar_disable_theater_mode_persistence")?!1:_.IP("START_IN_THEATER_MODE")};
WMJ=function(m,G){m=m===void 0?KMd:m;switch(G.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},m,{transcription:G.payload});case "SET_OVERLAY_STATE":return Object.assign({},m,{overlay:G.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return m}};
hud=function(){return pA(Object.assign({},{continuation:LMd,download:AGP,canvas:T0o,reportChannelAbuse:wrv,share:gUd,talkToRecs:Ofs,ui:ifM,voiceSearch:WMJ,watch:cGG,ypc:Y9v,shorts:rGG,radioButtonGroup:B0f,collabInviteLink:zpV},uno))};
NIf=function(){return _.F("web_player_entities_middleware")?new vU(hud(),[pro,JG6]):new vU(hud(),[pro])};
_.$R=function(){DoG||(DoG=NIf());return DoG};
tSG=function(m,G,K){if(m.length)return{titleText:_.Hk(G!=null?G:_.zq("DOWNLOADS",void 0,"Downloads")),contents:m.map(function(W){var L=W.videoEntity;W={videoId:L.videoId,title:I7(L.title),shortBylineText:I7(W.channelEntity.title),thumbnail:L.thumbnail};var A=L.videoId?JM(_.$R().getState(),L.videoId):0;L.videoId&&K?W.navigationEndpoint=_.EG(L.videoId,K,void 0,void 0,A):L.videoId&&(W.navigationEndpoint=Fhd(L.videoId,A,L.lengthSeconds));L.lengthSeconds&&(W.thumbnailOverlays=xUf(L.lengthSeconds,A));return{playlistPanelVideoRenderer:W}}),
totalVideos:m.length}};
FMd=function(m){return(m=(0,_.Y2.getValueByKeys)(m,"playlistId"))?{playlistId:m}:null};
Q_F=function(){return{}};
aa6=function(m,G){return new _.iO(function(K,W){m.then(function(L){if(L){if(L=G(L))return K(L);W()}},W)})};
oUf=function(m){var G,K,W,L=(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.autoplay)==null?void 0:W.autoplay,A,O,c;G=(A=m.contents)==null?void 0:(O=A.twoColumnWatchNextResults)==null?void 0:(c=O.playlist)==null?void 0:c.playlist;return L&&G&&G.playlistId?{rawResponse:m,autoplayRenderer:L,playlistPanelRenderer:G,playlistId:G.playlistId}:null};
bf6=function(m){var G=G===void 0?"UNKNOWN_INTERFACE":G;if(m.length===1)return m[0];var K=nUd[G];if(K){K=new RegExp(K);for(var W=_.g(m),L=W.next();!L.done;L=W.next())if(L=L.value,K.exec(L))return L}var A=[];Object.entries(nUd).forEach(function(O){var c=_.g(O);O=c.next().value;c=c.next().value;G!==O&&A.push(c)});
K=new RegExp(A.join("|"));m.sort(function(O,c){return O.length-c.length});
W=_.g(m);for(L=W.next();!L.done;L=W.next())if(L=L.value,!K.exec(L))return L;return m[0]};
_.sv=function(m){return"/youtubei/v1/"+bf6(m)};
_.q_=function(m,G){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:m}}},G!==void 0?{durationHintMs:G}:{})}};
_.Ev=function(m,G){return _.q_(_.nG(m),G)};
vUF=function(m,G){var K={mode:"NORMAL"};m&&(K.autoplayVideo=m.navigationEndpoint,K.nextButtonVideo=m.navigationEndpoint);G&&(K.previousButtonVideo=G.navigationEndpoint);return K};
q9F=function(m,G,K){if(!K||!K.sets)return{sets:[vUF(m,G)]};var W=K.sets.find(function(O){return O.mode==="NORMAL"}),L=(0,_.Y2.unsafeClone)(K);
if(!W)return L.sets.push(vUF(m,G)),L;if(!m)return K;W=_.Y2.getValueByKeys.apply(null,[W].concat(_.Bz($os)));var A=_.Y2.getValueByKeys.apply(null,[m].concat(_.Bz(s_G)));if(W===A)return K;L.sets=L.sets.filter(function(O){return O.mode!=="NORMAL"});
L.sets.push(vUF(m,G));return L};
EUv=function(m){return!!m.playlistPanelVideoRenderer&&!m.playlistPanelVideoRenderer.unplayableText};
Hf6=function(m){return!!m.playlistPanelVideoRenderer&&!!m.playlistPanelVideoRenderer.title};
IaG=function(m,G){if(G.contents&&!(m>=G.contents.length)&&(m=G.contents.slice(m).find(EUv)))return m.playlistPanelVideoRenderer};
j_o=function(m,G){if(G.contents)return(G=G.contents.find(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId===m}))?G.playlistPanelVideoRenderer:void 0};
kwd=function(m,G){return G.contents?G.contents.findIndex(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId===m}):-1};
Cv6=function(m,G){return G.contents?G.contents.findIndex(function(K){return!!K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.playlistSetVideoId===m}):-1};
VSP=function(m,G){m.contents&&G!==-1&&m.contents.splice(G,1).length===1&&m.totalVideos!==void 0&&(--m.totalVideos,delete m.videoCountText)};
_.Zfd=function(m){var G=[];if(!m||!m.contents)return G;m=_.g(m.contents);for(var K=m.next();!K.done;K=m.next())K=K.value,K.playlistPanelVideoRenderer&&K.playlistPanelVideoRenderer.videoId&&G.push(K.playlistPanelVideoRenderer.videoId);return G};
_.do9=function(m){if(m&&m.contents)return(m=m.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&!!G.playlistPanelVideoRenderer.selected})||m.contents[m.currentIndex])?m.playlistPanelVideoRenderer:void 0};
PvG=function(m,G,K,W,L,A,O){L=L===void 0?!1:L;A=A===void 0?!1:A;O=O===void 0?!1:O;if(m.contents&&m.contents.length!==0){W&&(m.contents=m.contents.filter(W));W=m.contents.length;for(var c=0;c<W;c++){var u=m.contents[c].playlistPanelVideoRenderer;u&&(c===G?(A&&delete u.menu,u.indexText=_.nG("\u25b6")):L||m.isInfinite||u.indexText===void 0?delete u.indexText:u.indexText=_.nG((c+1+K).toString()))}m.currentIndex=G+K;O&&(delete m.videoCountText,m.totalVideos=W)}};
_.HU=function(m){m=eG6(m);if(m){var G=m.length;var K=-75%G;K<0&&(K=G+K);m=m.slice(G-K)+m.slice(0,G-K)}else m="";K="";for(G=0;G<m.length&&m[G]!==yGM;G++)K+=m[G];return K};
_.euG=function(m,G){var K=document.body;G=G===void 0?function(c){return c}:G;
var W,L=null;m=_.g(m);for(W=m.next();!W.done;W=m.next()){var A=W.value;W="div";A[2]&&(W=G(A[2]));W=document.createElement(W);L||(L=W);var O=A[0];A=A[1];O&&(W.id=G(O));if(A)for(A=_.g(A),O=A.next();!O.done;O=A.next())W.classList.add(G(O.value));K.appendChild(W);K=W}return[L,K]};
faV=function(m,G){for(var K="",W=0;W<G;W++)K+=m.charAt(Math.floor(Math.random()*m.length));return K};
IW=function(m){return faV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",m)};
j8=function(m){return faV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",m)};
kR=function(m){return faV("0123456789",m)};
xov=function(){var m=performance.now(),G=new Date;var K="2."+G.getFullYear()+String(G.getMonth()+1).padStart(2,"0")+String(G.getDate()).padStart(2,"0");for(var W,L=Math.floor(Math.random()*11)+15,A=[],O=0;O<L;O++)A.push(Math.floor(Math.random()*26476865)+24547720);W=A.join(",");var c=IW(10),u=IW(100),h=IW(102),J=IW(106),N=IW(108),D=IW(11),t=IW(1140),a=IW(123),v=IW(14),I=IW(16),Z=IW(1900),k=IW(23),z=IW(26),X=IW(34),f=IW(397),U=IW(44),l=IW(5),Ls=IW(72),gd=IW(74),Qf=IW(75),JV=IW(88),DF=IW(91),kG="rr3---sn-q4fl6nsy rr3---sn-q4flrney rr4---sn-q4fl6n6d rr1---sn-q4fl6nlz rr5---sn-hgn7rn7r rr4---sn-q4fl6nd6 rr2---sn-q4fl6nss rr5---sn-q4flrnlz rr3---sn-q4flrnlz rr4---sn-ntq7yney rr4---sn-q4fl6nsy rr2---sn-q4fl6nsy rr1---sn-q4flrnsk rr4---sn-ntq7yns7 rr4---sn-q4fl6ndl rr3---sn-q4fl6ndl rr3---sn-q4fl6nsd rr2---sn-4g5lznez rr3---sn-q4fzenee rr5---sn-ntqe6nel".split(" ");
var eo=kG[Math.floor(Math.random()*kG.length)];var xG=(new Date("2010-01-01")).getTime();var Ji=(new Date(xG+Math.random()*((new Date).getTime()-xG))).toISOString().split("T")[0];for(var rK,So=[],ti=0;ti<4;ti++)So.push(Math.floor(Math.random()*100));rK=So.join(".");var bS=Number(kR(5)),NG=Number(kR(6)),EO=Number(kR(7)),gz=Number(kR(9)),ps=kR(1),ZF=kR(10),DP=kR(16),lS=kR(19),Eo=kR(2),iq=kR(20),jy=kR(21),T4=kR(3),JD=kR(4),S0=kR(5),zG=kR(6),c2=kR(7),N6=kR(8),pl=kR(9);var Uo=faV("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var dK=[j8(5),j8(5),j8(5)].join("%2C"),cu=[kR(3),kR(5),kR(5)].join("%2C"),xo=j8(0),fl=j8(1),Qi=j8(10),ig=j8(108),gx=j8(11),xl=j8(12),xr=j8(13),Gf=j8(14),X6=j8(15),ht=j8(16),Td=j8(17),sd=j8(18),dd=j8(19),l6=j8(2),QX=j8(20),$5=j8(22),Ee=j8(23),Is=j8(24),$k=j8(266),v2=j8(3),XE=j8(30),Oe=j8(34),FR=j8(35),C6=j8(36),yp=j8(4),XO=j8(40),JI=j8(43),KL=j8(47),$S=j8(5),TI=j8(6),bW=j8(7),Rn=j8(75),$3=j8(8),K$=j8(80),vH=j8(9),b9="https://www."+j8(12)+".com",RS={},b1={},vL={},i_={},RB={},U1={},WF={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:W}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:K},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+j8(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:K},{key:"client.name",value:"WEB"},{key:"client.fexp",value:W}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:jy+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+j8(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:XO,ypcGetOfflineUpsellEndpoint:{params:K$}},trackingParams:FR+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&cnr="+Eo+"&ratebypass=yes&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&c=WEB&txp="+c2+"&n="+I+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:NG,width:640,height:360,lastModified:DP,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:c2,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+cu+"&mn="+
dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&cnr="+Eo+"&ratebypass=yes&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&c=WEB&txp="+c2+"&n="+I+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+ig+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:NG,width:1280,
height:720,lastModified:DP,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:c2,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+dK+"&ms="+
dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:EO,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:EO,approxDurationMs:c2},{itag:248,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+dK+"&ms="+dK+"&mv="+
fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:EO,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:EO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:399,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:EO,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:EO,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:136,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:EO,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NG,approxDurationMs:c2},{itag:247,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+
dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/webm; codecs="vp9"',bitrate:EO,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:398,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+pl+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:EO,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:pl,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:135,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:NG,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NG,approxDurationMs:c2},{itag:244,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+
dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+ig+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:NG,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:397,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:NG,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:134,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:NG,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NG,highReplication:!0,approxDurationMs:c2},{itag:243,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/webm; codecs="vp9"',bitrate:NG,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:396,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:NG,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:133,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:NG,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NG,approxDurationMs:c2},{itag:242,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+
dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/webm; codecs="vp9"',bitrate:NG,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:395,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:NG,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:NG,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:160,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:NG,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bS,approxDurationMs:c2},{itag:278,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+cu+"&mn="+
dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&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="+N,mimeType:'video/webm; codecs="vp9"',bitrate:NG,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bS,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:394,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&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="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=video%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:bS,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:bS,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:c2},{itag:140,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=audio%2Fmp4&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:NG,
initRange:{start:"0",end:"631"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:NG,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:c2,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+
Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=audio%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+c2+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'audio/webm; codecs="opus"',bitrate:bS,initRange:{start:"0",end:"265"},indexRange:{start:T4,
end:JD},lastModified:DP,contentLength:c2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bS,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:c2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=audio%2Fwebm&ns="+
Is+"&gir="+v2+"&clen="+c2+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+J+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'audio/webm; codecs="opus"',bitrate:bS,initRange:{start:"0",end:"265"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:c2,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:bS,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:c2,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+eo+".googlevideo.com/videoplayback?expire="+ZF+"&ei="+k+"&ip="+rK+"&id=o-AF"+JI+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+cu+"&mn="+dK+"&ms="+dK+"&mv="+fl+"&mvi="+ps+"&pl="+Eo+"&initcwndbps="+c2+"&siu="+ps+"&spc="+U+"&vprv="+ps+"&svpuc="+ps+"&mime=audio%2Fwebm&ns="+Is+"&gir="+v2+"&clen="+N6+"&dur="+N6+"&lmt="+DP+"&mt="+ZF+"&fvip=3&keepalive="+v2+"&c=WEB&txp="+
c2+"&n="+ht+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+u+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+N,mimeType:'audio/webm; codecs="opus"',bitrate:NG,initRange:{start:"0",end:"265"},indexRange:{start:T4,end:JD},lastModified:DP,contentLength:N6,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:NG,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:c2,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="+pl+"&docid="+D+"&ei="+k+"&feature="+c+"&fexp="+xo+"&ns="+l6+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+fl+"&el="+Qi+"&len="+JD+"&of="+$5+
"&uga="+Eo+"&vm="+$k},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+pl+"&docid="+D+"&ei="+k+"&feature="+c+"&fexp="+xo+"&ns="+l6+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+fl+"&el="+Qi+"&len="+JD+"&of="+$5+"&uga="+Eo+"&vm="+$k},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+pl+"&docid="+D+"&ei="+k+"&feature="+c+"&fexp="+xo+"&ns="+l6+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
fl+"&el="+Qi+"&len="+JD+"&of="+$5+"&uga="+Eo+"&vm="+$k},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+k+"&m="+JV+"&oid="+$5+"&plid="+I+"&pltype="+bW+"&ptchn="+$5+"&ptk="+v+"&video_id="+D},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+pl+"&docid="+D+"&ei="+k+"&event="+Gf+"&feature="+c+"&fexp="+xo+"&ns="+l6+"&plid="+I+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+fl},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
ht+"&ver=2&cmt=1."+T4+"&fmt="+T4+"&fs=0&rt="+S0+"&euri&lact="+T4+"&cl="+pl+"&mos="+ps+"&volume=100&cbrand="+$S+"&cbr="+TI+"&cbrver="+rK+"&c=WEB&cver="+K+"&cplayer=UNIPLAYER&cos="+vH+"&cosver="+c2+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Eo+"&len="+N6+"&fexp="+dK+"&feature=g-high-rec&afmt="+T4+"&muted=0&conn=1&docid="+D+"&ei="+k+"&plid="+I+"&vm="+j8(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
D+"&caps="+v2+"&opi="+pl+"&xoaf="+ps+"&hl="+l6+"&ip="+rK+"&ipbits="+ps+"&expire="+ZF+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+rK+"&key="+v2+"&lang="+l,name:{simpleText:$3},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+D+"&caps="+v2+"&opi="+pl+"&xoaf="+ps+"&hl="+l6+"&ip="+rK+"&ipbits="+ps+"&expire="+ZF+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+rK+"&key="+v2+"&kind="+v2+"&lang="+l6,name:{simpleText:QX},
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:gx,title:xl,lengthSeconds:"1155",keywords:[vH,ht,sd,xl],channelId:Is,isOwnerViewing:!1,shortDescription:TI,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+Oe,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+
"G&rs="+Oe,width:196,height:110},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+X,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+X,width:336,height:188},{url:"https://i.ytimg.com/vi/"+D+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:c2,author:xr,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:c2,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
$5+"/featured_channel.jpg?v="+$3,width:40,height:40}]},trackingParams:FR+"=",navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"/channel/"+Is,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Is}},channelName:xr,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:QX}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Is,showPreferences:!1,subscribedButtonText:{runs:[{text:Td}]},unsubscribedButtonText:{runs:[{text:$3}]},
trackingParams:FR+"=",unsubscribeButtonText:{runs:[{text:xl}]},serviceEndpoints:[{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Is],params:$3}},{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:XO,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FR+"=",dialogMessages:[{runs:[{text:gx},
{text:bW},{text:$3}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Td}]},serviceEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Is],params:$3}},accessibility:{label:xr},trackingParams:FR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:X6}]},accessibility:{label:Td},
trackingParams:FR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bW}},unsubscribeAccessibility:{accessibilityData:{label:TI}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:N6},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Is],
params:$3}},unsubscribeCommand:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Is],params:$3}},addToWatchLaterCommand:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:gx,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:gx}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+D+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+C6+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+gx,width:1280,
height:720},title:{simpleText:ht},description:{simpleText:Td},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+xr,externalChannelId:Is,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:c2,category:"Travel & Events",publishDate:Ji,ownerChannelName:xr,uploadDate:Ji}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:$3},trackingParams:FR+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:XO,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:FR+"="}}],headerText:{simpleText:ht},icon:{infoCardIconRenderer:{trackingParams:FR+"="}},closeButton:{infoCardIconRenderer:{trackingParams:FR+"="}},trackingParams:FR+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:FR+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+gx+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Uo,interpreterSafeUrl:(RS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+XE+".js",RS),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:$S},{text:Td,bold:!0}]},endpoint:{clickTrackingParams:XO,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:FR+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:$3}]},actionButton:{buttonRenderer:{text:{runs:[{text:xr}]},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+D,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
D,target:"TARGET_NEW_WINDOW"}},trackingParams:FR+"="}},trackingParams:FR+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ls+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Ls+"=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:c2,endMs:c2,title:{accessibility:{accessibilityData:{label:$3}},simpleText:QX},metadata:{simpleText:Td},callToAction:{simpleText:ht},dismiss:{simpleText:ht},endpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"/channel/"+Is,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:Is}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:TI}]},subscribed:!1,enabled:!0,type:"FREE",channelId:Is,showPreferences:!1,
subscribedButtonText:{runs:[{text:yp}]},unsubscribedButtonText:{runs:[{text:xr}]},trackingParams:FR+"=",unsubscribeButtonText:{runs:[{text:dd}]},serviceEndpoints:[{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[Is],params:$3}},{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:XO,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:FR+
"=",dialogMessages:[{runs:[{text:QX},{text:dd},{text:bW}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:sd}]},serviceEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[Is],params:$3}},accessibility:{label:Gf},trackingParams:FR+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:vH}]},
accessibility:{label:xl},trackingParams:FR+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:QX}},unsubscribeAccessibility:{accessibilityData:{label:xr}}}},trackingParams:FR+"=",isSubscribe:!0,id:iq}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+X,width:168,height:94},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+Oe,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+X,width:246,height:138},{url:"https://i.ytimg.com/vi/"+D+"/hqdefault.jpg?sqp=-oaymwE"+C6+"G&rs="+X,width:336,height:188},{url:"https://i.ytimg.com/vi/"+D+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:c2,endMs:c2,title:{accessibility:{accessibilityData:{label:yp}},simpleText:$3},metadata:{simpleText:ht},endpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
gx,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:gx,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+eo+".googlevideo.com/videoplayback?source=youtube&oeis="+ps+"&c=WEB&oad="+JD+"&ovd="+JD+"&oaad="+S0+"&oavd="+S0+"&ocs="+T4+"&oewis="+ps+"&oputc="+ps+"&ofpcc="+ps+"&siu="+ps+"&msp="+ps+"&odepv="+ps+
"&id=o-AF"+JI+"&ip="+rK+"&initcwndbps="+c2+"&mt="+ZF+"&oweuc="+xo}}}}},trackingParams:FR+"=",id:iq,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:TI}},simpleText:Qi},style:"DEFAULT"}}]}}],startMs:c2,trackingParams:FR+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:ps,offsetEndMilliseconds:S0},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";ord="+ZF+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+T4+";dc_sk="+ps+";dc_ctype="+Eo+";dc_ref=http://www.youtube.com/video/"+gx+";dc_pubid="+ps+";dc_btype=23?gclid="+DF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ps+"&ns="+ps+"&event="+ps+"&device="+ps+"&content_v="+D+"&el="+Qi+"&ei="+k+"&devicever="+K+"&bti="+c2+"&format="+zG+"&break_type="+ps+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ps+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+rK+"&slot_pos="+ps+"&slot_len="+ps+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+cu+"&ad_len="+S0+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
gx+"&aqi="+k+"&ad_rmp="+ps+"&sli="+ps}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+
";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+c2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&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"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&ctype="+T4+"&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"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_engaged_view&ctype="+T4+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+lS+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+h+"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&dc_pubid="+ps+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+h+"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ps},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&avm="+ps+"&dc_pubid="+ps+"&dc_exteid="+
iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&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="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
h+"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ps},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&dc_pubid="+ps+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:XO,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+
T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:FR+"="},trackingParams:FR+
"=",templatedCountdown:{templatedAdText:{text:X6,isTemplated:!0,trackingParams:FR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:xl,isTemplated:!1,trackingParams:FR+"="},trackingParams:FR+"="}},trackingParams:FR+"=",skipOffsetMilliseconds:5E3}},trackingParams:FR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Qi},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ht,isTemplated:!1,trackingParams:FR+"="},trackingParams:FR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:yp,isTemplated:!0,trackingParams:FR+"="}},trackingParams:FR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:XO,openPopupAction:{popup:{aboutThisAdRenderer:{url:(b1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Z+"&hl="+l6+"&origin=www.youtube.com&ata_theme="+yp,b1),trackingParams:FR+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:FR+"="}},hoverText:{runs:[{text:xr}]},trackingParams:FR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FR+"="},headline:{text:Gf,isTemplated:!1,trackingParams:FR+"="},description:{text:gx,
trackingParams:FR+"="},actionButton:{buttonRenderer:{text:{simpleText:vH},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"="}},startMs:ps,trackingParams:FR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$3},elementId:Qi}},elementId:Gf,trackingParams:FR+"=",legacyInfoCardVastExtension:ht,sodarExtensionData:{siub:$S,bgub:ht,scs:xr,bgp:$S},externalVideoId:gx,adLayoutLoggingData:{serializedAdServingDataEntry:vH},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KL+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FR+"="},
headline:{text:yp,isTemplated:!1,trackingParams:FR+"="},description:{text:bW,isTemplated:!1,trackingParams:FR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:TI},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+
iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+
ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FR+"="}},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+
pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FR+"="},abandonCommands:{commands:[{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&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="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+
ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:XO,commandExecutorCommand:{commands:[{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:X6,isTemplated:!1,trackingParams:FR+
"="},trackingParams:FR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:yp},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+c2+";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="+pl+";dc_trk_cid="+pl+";ord="+ZF+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+T4+";dc_sk="+ps+";dc_ctype="+Eo+";dc_ref=http://www.youtube.com/video/"+gx+";dc_pubid="+ps+";dc_btype=23?gclid="+DF+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ps+"&ns="+ps+"&event="+ps+"&device="+ps+"&content_v="+D+"&el="+Qi+"&ei="+k+"&devicever="+K+"&bti="+c2+"&format="+zG+"&break_type="+ps+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ps+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+rK+"&slot_pos="+ps+"&slot_len="+ps+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
cu+"&ad_len="+S0+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+gx+"&aqi="+k+"&ad_rmp="+ps+"&sli="+ps}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+
z+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+c2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&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"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&ctype="+T4+"&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"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_engaged_view&ctype="+T4+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+h+"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+
TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&dc_pubid="+ps+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+h+
"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ps},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&avm="+ps+"&dc_pubid="+ps+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&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="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+h+"&sig="+Ee+"&ad_cpn=[AD_CPN]&id="+TI+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ps},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+TI+"&dc_pubid="+ps+"&dc_exteid="+iq+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+zG+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+
T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+D+"/mqdefault.jpg",width:320,height:180}]},trackingParams:FR+"="},trackingParams:FR+"=",templatedCountdown:{templatedAdText:{text:Gf,isTemplated:!0,trackingParams:FR+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:bW,isTemplated:!1,trackingParams:FR+"="},trackingParams:FR+"="}},
trackingParams:FR+"=",skipOffsetMilliseconds:5E3}},trackingParams:FR+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:QX},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:QX,isTemplated:!1,trackingParams:FR+"="},trackingParams:FR+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:TI,
isTemplated:!0,trackingParams:FR+"="}},trackingParams:FR+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:XO,openPopupAction:{popup:{aboutThisAdRenderer:{url:(vL.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Z+"&hl="+l6+"&origin=www.youtube.com&ata_theme="+yp,vL),trackingParams:FR+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:FR+"="}},hoverText:{runs:[{text:vH}]},trackingParams:FR+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gd+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FR+"="},headline:{text:Td,isTemplated:!1,trackingParams:FR+"="},description:{text:xr,trackingParams:FR+"="},actionButton:{buttonRenderer:{text:{simpleText:QX},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"="}},startMs:ps,trackingParams:FR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:xl},elementId:vH}},elementId:yp,trackingParams:FR+"=",legacyInfoCardVastExtension:xr,sodarExtensionData:{siub:X6,bgub:X6,scs:Gf,bgp:bW},externalVideoId:gx,adLayoutLoggingData:{serializedAdServingDataEntry:Td},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gd+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:FR+"="},headline:{text:gx,
isTemplated:!1,trackingParams:FR+"="},description:{text:gx,isTemplated:!1,trackingParams:FR+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:X6},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:FR+"="}},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+
ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:FR+"="},abandonCommands:{commands:[{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&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="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+Eo+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:XO,commandExecutorCommand:{commands:[{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:sd,isTemplated:!1,trackingParams:FR+"="},trackingParams:FR+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$S},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ps+";dc_exteid="+iq+";met="+ps+";ecn"+ps+"="+ps+";etm1="+ps+";eid1="+
c2+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:Gf}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gf}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:S0,offsetEndMilliseconds:zG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+Eo+"&token=ALHj"+f+"&index="+ps+"&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="+K+"&m_pos_ms="+S0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$S}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:zG,offsetEndMilliseconds:zG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+T4+"&token=ALHj"+f+"&index="+ps+"&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="+
K+"&m_pos_ms="+zG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zG,offsetEndMilliseconds:zG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+T4+"&token=ALHj"+f+"&index="+ps+"&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="+
K+"&m_pos_ms="+zG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ht}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zG,offsetEndMilliseconds:zG},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+T4+"&token=ALHj"+f+"&index="+ps+"&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="+
K+"&m_pos_ms="+zG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$S}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:zG,offsetEndMilliseconds:Eo},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+T4+"&token=ALHj"+f+"&index="+ps+"&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="+
K+"&m_pos_ms="+zG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vH}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Eo,offsetEndMilliseconds:Eo},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+k+"&m_pos="+Eo+"&token=ALHj"+f+"&index="+ps+"&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="+
K+"&m_pos_ms="+Eo}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yp,isTemplated:!1,trackingParams:FR+"="},description:{text:QX,isTemplated:!1,trackingParams:FR+"="},actionButton:{buttonRenderer:{text:{simpleText:ht},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KL+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:FR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FR+"="},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+
";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:XO,openPopupAction:{popup:{aboutThisAdRenderer:{url:(i_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Z+"&hl="+l6+"&origin=www.youtube.com&ata_theme="+yp,i_),trackingParams:FR+"="}},popupType:"DIALOG"}},trackingParams:FR+"="}},hoverText:{runs:[{text:dd}]},trackingParams:FR+"="}},adVideoId:gx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:gx},associatedCompositePlayerBytesLayoutId:ht}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:$3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:yp,isTemplated:!1,trackingParams:FR+"="},description:{text:yp,isTemplated:!1,trackingParams:FR+"="},actionButton:{buttonRenderer:{text:{simpleText:bW},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+
a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+gd+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rn+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FR+"="},navigationEndpoint:{clickTrackingParams:XO,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+
ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:XO,openPopupAction:{popup:{aboutThisAdRenderer:{url:(RB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Z+"&hl="+l6+"&origin=www.youtube.com&ata_theme="+yp,RB),trackingParams:FR+"="}},popupType:"DIALOG"}},trackingParams:FR+"="}},
hoverText:{runs:[{text:bW}]},trackingParams:FR+"="}},adVideoId:gx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+gx+"&cid="+z+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:dd},associatedCompositePlayerBytesLayoutId:ht}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$S}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qi,
isTemplated:!1,trackingParams:FR+"="},description:{text:sd,isTemplated:!1,trackingParams:FR+"="},actionButton:{buttonRenderer:{text:{simpleText:dd},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+
Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+
X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:FR+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+KL+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:FR+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qf+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:FR+
"="},navigationEndpoint:{clickTrackingParams:XO,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+pl+";dc_trk_cid="+pl+";dc_dbm_token="+N+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ps+";ord="+pl+";dc_rui="+ps+";dc_exteid="+iq+";dc_av="+ps+";dc_sk="+ps+";dc_ctype="+Eo+";dc_pubid="+ps+";dc_btype=3?gclid="+DF+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+t+"____________"+a+"AxAA&ase=2&num="+ps+"&cid="+z+"&ad_cpn=%5BAD_CPN%5D&sig="+X+"&adurl="+b9+"&label=video_click_to_advertiser_site&ctype="+T4+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:FR+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:XO,openPopupAction:{popup:{aboutThisAdRenderer:{url:(U1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+Z+"&hl="+l6+"&origin=www.youtube.com&ata_theme="+yp,U1),trackingParams:FR+"="}},popupType:"DIALOG"}},trackingParams:FR+
"="}},hoverText:{runs:[{text:yp}]},trackingParams:FR+"="}},adVideoId:gx,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+t+"____________"+a+"AxAA&sigh="+D+"&cid="+z+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bW},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:ht}},adSlotLoggingData:{serializedSlotAdServingDataEntry:gx}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:XE,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:XE,command:{innertubeCommand:{clickTrackingParams:XO,ypcGetOfflineUpsellEndpoint:{params:K$}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:FR+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:ZF,nanos:gz}}}},Ti=JSON.stringify(WF),Ua=performance.now()-m;return{objectRepresentation:WF,jsonRepresentation:Ti,generationTime:Ua}};
XrM=function(m,G){if(m===G)return!0;if(!m||!G||typeof m!==typeof G)return!1;if(m instanceof Array&&G instanceof Array){if(m.length!==G.length)return!1;for(var K=0;K<m.length;K++)if(!XrM(m[K],G[K]))return!1;return!0}if(typeof m==="object"&&typeof G==="object"&&m&&G){for(K in m)if(!(K in G&&XrM(m[K],G[K])))return!1;for(var W in G)if(!(W in m))return!1;return!0}return!1};
_.VY=function(){if(!CG){CG=new zI(new S99);var m=_.U8("client_streamz_web_flush_count",-1);m!==-1&&(CG.invocationLimit=m)}return CG};
Zl=function(m,G,K,W){if(m===G)return!0;if(Array.isArray(m)&&Array.isArray(G)){if(m.length!==G.length)return!1;for(var L=0;L<m.length;L++)if(!Zl(m[L],G[L],K,W))return!1;return!0}if(m instanceof Set||G instanceof Set){if(m instanceof Set&&G instanceof Set){if(m.size!==G.size)return!1;W=_.g(m.values());for(L=W.next();!L.done;L=W.next())if(!G.has(L.value))return!1;return!0}return!1}if(m instanceof Function){if(W)return!0;m.name===""&&_.am(Error("Sf"),"ERROR");return!1}if(m instanceof Date&&G instanceof
Date)return m.getTime()===G.getTime();if(m instanceof Object&&G instanceof Object){if(Rus(m)&&Rus(G))try{return m.equals(G)}catch(O){_.am(Error("Tf`"+O),"ERROR")}L=Object.getOwnPropertyNames(m).filter(function(O){return K?m[O]!==void 0:!0});
var A=Object.getOwnPropertyNames(G).filter(function(O){return K?G[O]!==void 0:!0});
if(L.length!==A.length)return!1;L=_.g(L);for(A=L.next();!A.done;A=L.next())if(A=A.value,!Zl(m[A],G[A],K,W))return!1;return!0}return!1};
Rus=function(m){m=Object.getPrototypeOf(m).equals;return m instanceof Function&&m.length===1};
_.lav=function(){return _.Y(function(m){if(m.nextAddress==1)return Uod!==2?m.jumpTo(2):m.yield(zu6(),3);m.nextAddress!=2&&(Uod=m.yieldResult);return m.return(Uod)})};
_.TIP=function(){return _.Y(function(m){if(m.nextAddress==1)return _.F("ab_pl_man")?BIf!==2?m.jumpTo(2):m.yield(MSG(),3):m.return(1);m.nextAddress!=2&&(BIf=m.yieldResult);return m.return(BIf)})};
Gys=function(){return _.Y(function(m){if(m.nextAddress==1)return _.F("ab_fk_sk_cl")?meo!==2?m.jumpTo(2):m.yield(i4o(),3):m.return(1);m.nextAddress!=2&&(meo=m.yieldResult);return m.return(meo)})};
_.LqM=function(){return _.Y(function(m){if(m.nextAddress==1)return _.F("ab_det_apb_b")?Kqd!==2?m.jumpTo(2):m.yield(Wq6(),3):m.return(1);m.nextAddress!=2&&(Kqd=m.yieldResult);return m.return(Kqd)})};
gmG=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(Promise.all([_.lav(),_.LqM(),_.TIP(),Gys()]),2);if(G.nextAddress!=3)return Aes()?G.return(!0):G.yield(_.wjG(),3);m=G.yieldResult;return G.return(m===0)})};
Aes=function(){var m=!1,G=function(K,W){O4M.increment(W,K);K===0&&(m=!0)};
G(_.ce9(),"j.s_");G(Uod,"f.i_");G(Kqd,"a.b_");G(BIf,"p.m_");G(meo,"i.f_");YPG===2&&(YPG=_.rev(upG));G(YPG,"e.h_");_.F("ks_det_gpbl")||G(_.heM(),"p.i_");_.F("ks_get_o_pp")||G(_.pjJ(),"g.o_");_.F("ab_deg_unex_thr")||G(_.JeF(),"a.o_");G(NrP,"s.t_");_.F("ab_det_sc_inj_enf")&&G(_.De9(),"s.i_");G(tL6,"d.p_");G(_.FqG(_.d6),"o.p_");G(_.QXv()===0?0:_.aBv(),"o.a_");return _.F("debug_sk_em_precheck")?!0:m};
nmP=function(){var m=[].concat(_.Bz(omG));try{var G=xov();m.push({jsonRepresentation:G.jsonRepresentation,objectRepresentation:G.objectRepresentation})}catch(K){m=[].concat(_.Bz(omG))}return m};
b4s=function(){var m=["adPlacements","adSlots"];try{return m.filter(function(){return!0}).length!==m.length?0:1}catch(G){return 0}};
_.pjJ=function(){if(b4s()===0)return 0;var m=xov(),G=m.objectRepresentation,K=(0,_.Y2.unsafeClone)(G),W=[];if(G&&typeof G==="object")for(var L in G)W.push(L);else return 4;m=m.objectRepresentation.adPlacements;if(!(m&&m.length>0))return 4;try{if(!XrM(W,Object.getOwnPropertyNames(G)))return 0}catch(A){return 0}return XrM(K,G)?1:0};
_.FqG=function(m){if(!m||!m.length||typeof m==="string")return 0;for(var G=Object.getOwnPropertyNames(Object.prototype),K=0;K<m.length;K++)for(var W=_.HU(m[K]),L=_.g(G),A=L.next();!A.done;A=L.next())if(W===A.value)return 0;return 1};
vmV=function(m){var G=_.HU(m[1]);if(m[0]===null)return G;m=m[0];for(var K={},W=0;W<m.length;W++){var L=_.HU(m[W]);if(W===0)K[L]=G;else{var A={};A[L]=K;K=A}}return K};
_.QXv=function(){for(var m=_.PU,G=0;G<m.length;G++){var K=vmV(m[G]),W=[];W.push(K);if(W.length===0)return 0}return 1};
_.aBv=function(){for(var m=_.PU,G={},K=0;K<m.length;G={iml:void 0},K++){var W=[vmV(m[K])];G.iml=[];W.forEach(function(L){return function(A){L.iml[L.iml.length]=A}}(G));
if(G.iml.length===0)return 0}return 1};
_.ce9=function(){for(var m=_.g(nmP()),G=m.next();!G.done;G=m.next()){var K=G.value;G=K.jsonRepresentation;K=K.objectRepresentation;try{var W=JSON.parse(G);if(!Zl(W,K,!1,!1))return 0}catch(L){return 0}}return 1};
_.De9=function(){try{var m=_.lX("ab_det_sc_inj_val");m.length===1&&m[0]===""&&(m=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var G=document.querySelectorAll("script"),K=_.g(G),W=K.next();!W.done;W=K.next())for(var L=W.value,A=_.g(m),O=A.next();!O.done;O=A.next()){var c=O.value;G=void 0;if((G=L.textContent)==null?0:G.includes(c))return 0}}catch(u){return 4}return 1};
_.wjG=function(){var m,G,K,W,L,A,O;return _.Y(function(c){switch(c.nextAddress){case 1:_.IO(c,2),m=_.g(omG),G=m.next();case 4:if(G.done)return c.return(1);W=K=G.value;L=W.jsonRepresentation;A=W.objectRepresentation;return c.yield((new Response(L,{status:200})).json(),7);case 7:O=c.yieldResult;if(!Zl(O,A,!1,!1))return c.return(0);G=m.next();c.jumpTo(4);break;case 2:return _.ye(c),c.return(4)}})};
_.JeF=function(){try{btoa("abc")}catch(m){return 0}return 1};
zu6=function(){var m,G,K,W,L,A,O,c,u,h,J;return _.Y(function(N){switch(N.nextAddress){case 1:_.IO(N,2),m=_.g(nmP()),G=m.next();case 4:if(G.done)return N.return(1);W=K=G.value;L=W.jsonRepresentation;A=W.objectRepresentation;O=btoa(L);c="data:application/json;base64,"+O;u=new Request(c);Object.defineProperty(u,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(u,"method",{get:function(){return"POST"}});
Object.defineProperty(u,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(u,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(u,"body",{get:function(){return new ReadableStream}});
return N.yield(fetch(u),7);case 7:return h=N.yieldResult,N.yield(h.json(),8);case 8:J=N.yieldResult;if(!Zl(J,A,!1,!1))return N.return(0);G=m.next();N.jumpTo(4);break;case 2:return _.ye(N),N.return(4)}})};
_.rev=function(m){if(!m||!m.length||typeof m==="string")return 0;for(var G=function(L){return _.HU(L)},K=2,W=0;W<m.length&&(K=_.$eo(_.euG(m[W],G)),K!==0);W++);
return K};
_.$eo=function(m){var G=_.g(m);m=G.next().value;G=G.next().value;try{var K=document.createElement("div");document.body.appendChild(K);var W=getComputedStyle(K).display;document.body.removeChild(K);if(W==="none")return 4;var L=getComputedStyle(G).display==="none"?0:1;document.body.removeChild(m);return L}catch(A){return 4}};
i4o=function(){var m,G,K;return _.Y(function(W){m=new _.yY;G=document.createElement("button");G.classList.add("ytp-ad-skip-button");G.style.opacity="0";G.style.height="0px";G.style.width="0px";G.style.padding="0px";G.style.border="none";K=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.onclick=function(){m.resolve(0);K()};
document.body.appendChild(G);setTimeout(function(){K();m.resolve(1)},50);
return W.return(m.promise)})};
MSG=function(){var m,G,K,W,L,A,O;return _.Y(function(c){m=new _.yY;G=document.createElement("ytd-player");try{document.body.prepend(G)}catch(u){return c.return(4)}K=function(){G.parentElement&&G.parentElement.removeChild(G)};
G.getElementsByTagName("div").length>0?W=G.getElementsByTagName("div")[0]:(W=document.createElement("div"),G.appendChild(W));L=document.createElement("div");W.appendChild(L);A=document.createElement("video");O=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"});A.src=_.Ue(_.T7(O));A.ontimeupdate=function(){K();m.resolve(0)};
L.appendChild(A);A.classList.add("html5-main-video");setTimeout(function(){L.classList.add("ad-interrupting")},200);
setTimeout(function(){K();m.resolve(1)},5E3);
return c.return(m.promise)})};
sXd=function(m){var G=xov().objectRepresentation.playbackTracking;if(G){var K=[],W;K.push(G==null?void 0:(W=G.videostatsPlaybackUrl)==null?void 0:W.baseUrl);var L;K.push(G==null?void 0:(L=G.videostatsDelayplayUrl)==null?void 0:L.baseUrl);var A;K.push(G==null?void 0:(A=G.videostatsWatchtimeUrl)==null?void 0:A.baseUrl);var O;K.push(G==null?void 0:(O=G.ptrackingUrl)==null?void 0:O.baseUrl);var c;K.push(G==null?void 0:(c=G.qoeUrl)==null?void 0:c.baseUrl);var u;K.push(G==null?void 0:(u=G.atrUrl)==null?
void 0:u.baseUrl);G=_.g(K);for(K=G.next();!K.done;K=G.next())if((K=K.value)&&m.test(K))return K.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
qPd=function(m,G){var K,W;return _.Y(function(L){switch(L.nextAddress){case 1:K=[],W=0;case 2:if(!(W<3)){L.jumpTo(4);break}return L.yield(fetch(m,{cache:"no-store",method:G}).then(function(A){K.push(A.status)}).catch(function(){K.push(-1)}),3);
case 3:W++;L.jumpTo(2);break;case 4:return L.return(K)}})};
Em6=function(m){return m.domainLookupStart===0&&m.domainLookupEnd===0&&m.connectStart===0&&m.connectEnd===0||m.duration===0};
H4s=function(m,G,K){K=K===void 0?"GET":K;var W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){if(t.nextAddress==1)return t.yield(Promise.all([qPd(m,K),qPd(G,K)]),2);W=t.yieldResult;L=_.g(W);A=L.next().value;O=L.next().value;c=A;u=O;if(Math.min.apply(Math,_.Bz(u))!==Math.max.apply(Math,_.Bz(u))||Math.min.apply(Math,_.Bz(c))!==Math.max.apply(Math,_.Bz(c)))return t.return(2);if(Math.min.apply(Math,_.Bz(u))===Math.min.apply(Math,_.Bz(c)))return t.return(1);J=(h=performance.getEntriesByName(m))==null?void 0:
h[0];D=(N=performance.getEntriesByName(G))==null?void 0:N[0];return J&&D?Em6(D)?t.return(1):Em6(J)?t.return(0):t.return(1):t.return(2)})};
Wq6=function(){var m;return _.Y(function(G){var K=[];var W;var L,A,O;(L=W=(L=xov().objectRepresentation.streamingData)==null?void 0:(A=L.formats)==null?void 0:(O=A[0])==null?void 0:O.url)&&L&&!W.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(L=L.replace("initcwndbps","ctier=L&initcwndbps"),L=L.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),W={testUrl:L,baseUrl:W,method:"GET"}):W=void 0;W&&K.push(W);_.F("ab_net_tp_e")&&K.push({testUrl:_.Ks.location.origin+"/ad_companion",baseUrl:_.Ks.location.origin+
"/generate_204",method:"OPTIONS"});_.F("ab_fix_creator_view_cnt")&&(K.length=0,(W=sXd(/api\/stats\/atr/))&&K.push({testUrl:_.Ks.location.origin+W,baseUrl:_.Ks.location.origin+"/generate_204",method:"POST"}));_.F("ad_net_pb_pbp")&&(W=sXd(/api\/stats\/qoe/))&&K.push({testUrl:_.Ks.location.origin+W,baseUrl:_.Ks.location.origin+"/feed/download",method:"GET"});K=K.length!==0?K[Math.floor(Math.random()*K.length)]:void 0;return(m=K)?G.return(H4s(m.testUrl,m.baseUrl,m.method)):G.return(4)})};
_.heM=function(){if(_.Ks.eDU===void 0||_.Ks.eDU===null||typeof _.Ks.eDU!=="function")return 2;try{return _.Ks.eDU()===!0?0:1}catch(m){return 0}};
IBd=function(m){switch(m){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.GG(m,"unknown result type")}};
_.jXM=function(m,G){var K=Number(_.E8("CATSTAT",0));if(G.pGG===void 0)return K;G=G.pGG;m=IBd(m);return K&~(3<<G)|m<<G};
kyo=function(m){var G,K;if((m=(G=m.auxiliaryUi)==null?void 0:(K=G.messageRenderers)==null?void 0:K.bkaEnforcementMessageViewModel)&&m.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return m};
VLG=function(){for(var m=_.g(Object.values(_.CcP)),G=m.next();!G.done;G=m.next())G=G.value,G.smF&&G.pGG&&_.qC("CATSTAT",_.jXM(2,G))};
_.xR=function(m,G){m=_.e8("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",m);(G===void 0?0:G)?_.Z46(m,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.fG().logFlowEvent(m,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Pcd=function(){if(!de6){if(Polymer.Base){var m=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{m.apply(this,arguments)}catch(N){_.j1(N)}};
var G=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{G.apply(this,arguments)}catch(N){_.j1(N)}};
var K=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{K.apply(this,arguments)}catch(N){_.j1(N)}};
var W=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{W.apply(this,arguments)}catch(N){_.j1(N)}};
var L=Polymer.Base._listen,A=new WeakMap;Polymer.Base._listen=function(N,D,t){var a=function(){try{t.apply(this,arguments)}catch(v){_.j1(v)}};
A.set(t,a);L.call(this,N,D,a)};
var O=Polymer.Base._unlisten;Polymer.Base._unlisten=function(N,D,t){O.call(this,N,D,A.get(t))}}if(Polymer.Async){var c=Polymer.Async,u=c._atEndOfMicrotask;
c._atEndOfMicrotask=function(){try{u.apply(c,arguments)}catch(N){_.j1(N)}}}if(Polymer.RenderStatus){var h=Polymer.RenderStatus,J=h.afterNextRender;
h.afterNextRender=function(N,D,t){J.call(h,N,function(){try{D.apply(this,arguments)}catch(a){_.j1(a)}},t)}}de6=!0}};
_.eeM=function(m){var G=m?_.f6(m):"";if(G){if(G.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(G.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(G.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(G.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(G.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(G.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";G=G.toLowerCase();if(G==="/")return"home";if(G==="/channel_memberships")return"channel-memberships-shopfront";if(G.indexOf("/feed/trending")===0)return"trending";if(G.indexOf("/feed/explore")===0)return"explore";if(G.indexOf("/live")===0)return"live";if(G.indexOf("/results")===0)return"search";if(G.indexOf("/sports")===0)return"sports";if(G.indexOf("/fashion")===0||G.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(G))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(G))return _.F("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(G.indexOf("/channel/")===0||G.indexOf("/user/")===0||G.indexOf("/gaming")===0||G.indexOf("/post/")===0)return"channel";if(yeV(m))return"show";if(G==="/playlist"||G.indexOf("/playlist/")===0||G==="/view_play_list"||G.indexOf("/view_play_list/")===0||G.indexOf("/show/")===0)return"playlist";if(G==="/companion_canvas")return"companion-canvas";if(G==="/feed/history"||
G.indexOf("/feed/history/")===0)return"history";if(G==="/new")return"labs";if(G==="/feed/subscriptions")return"subscriptions";if(G.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(G==="/history_controls")return"standalone";if(G.indexOf("/account")===0||G==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(G.indexOf("/paid_memberships")===0||G.indexOf("/refund")===0||G.indexOf("/purchases")===0||G.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(G.indexOf("/product")===
0)return"yts-products";if(G.indexOf("/premium")===0||G.indexOf("/musicpremium")===0)return G.indexOf("/premium/offers")===0||G.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(G==="/cart/checkout"||G==="/cart")return"ypc-checkout";if(G.indexOf("/reporthistory")===0)return _.F("enable_new_page_subtypes_for_ai_companion")?"report-history":"browse";if(G.indexOf("/feed/downloads")===0||G.indexOf("/redeem")===0)return"browse";if(G.indexOf("/hashtag")===0)return"hashtag-landing-page";if(G.indexOf("/handle")===
0)return"handle";if(G.indexOf("/source")===0)return"audio-pivot";if(G.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(G.indexOf("/playables")===0)return"playables";if(G.indexOf("/create/live/join")===0)return"open-in-app";if(G.indexOf("/shorts")===0)return"shorts";if(G.indexOf("/feed/channels")===0)return"subscriptions-channels";var K=m?_.f6(m):"";K&&K.indexOf("/watch")===0&&_.F("web_watch_enable_learning_journey")?(m=_.PO(m),m=!!m.list&&m.list.indexOf("LJPP")===0):m=!1;if(m)return"learning_journey_watch";
if(_.F("enable_new_page_subtypes_for_ai_companion")&&G==="/feed/courses")return"your-courses"}};
_.XQ=function(m){var G,K;(m=(K=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:K.url)&&(G=_.eeM(m));return G};
yeV=function(m){var G=m?_.f6(m):"";if(!G)return!1;G=G.toLowerCase();return G.indexOf("/show/")===0||G.indexOf("/playlist")===0&&(m=_.PO(m),m.list&&m.list.indexOf("EL")===0)?!0:!1};
Uv=function(m){var G="unknown",K;var W=((K=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:K.webPageType)||"";W?(K=W.toLowerCase(),K.startsWith("web_page_type_")&&(K=K.slice(14))):K=W;K&&fBo[K.toUpperCase()]?G=fBo[K.toUpperCase()]:_.Q(m,_.S8)||_.Q(m,xed)?G="browse":_.Q(m,_.RW)?G="search":_.Q(m,_.QQ)&&(G="watch");G==="watch"&&_.XQ(m||null)==="learning_journey_watch"&&(G="learning_journey_watch");G==="unknown"&&_.nc(Error("Vf`"+JSON.stringify({clickTrackingParams:m==null?void 0:m.clickTrackingParams,
commandMetadata:m==null?void 0:m.commandMetadata,allEndpointKeys:Object.keys(m||[])})));return G};
_.zv=function(m){if(!_.Xj6||m)_.Xj6=_.GI();return _.Xj6};
_.SPG=function(m){return!!_.Q(m,_.QQ)||!!_.Q(m,_.lw)&&_.F("kevlar_enable_shorts_prefetch")};
_.ReP=function(m,G){m=_.Q(m,_.QQ)||_.Q(m,_.lw);return"v"+m.videoId+(m.playlistId?"-pl"+m.playlistId:"")+(G?"-an1":"")+(m.params?"-pr"+m.params:"")};
_.Uef=function(m){var G=new BU(_.E8("ONE_PICK_URL",""));G.urlParamMap_.set("hostId",m);(m=_.E8("GAPI_LOCALE"))&&G.urlParamMap_.set("hl",m);(m=_.E8("SESSION_INDEX"))&&G.urlParamMap_.set("authuser",m);(m=_.E8("DELEGATED_SESSION_ID"))&&G.urlParamMap_.set("groupId",m);return G};
lBd=function(){var m=_.xS(),G=m.resolve(_.M_);m=m.resolve(_.Tv);return new ze6(G,m)};
ML9=function(m){if(window.IntersectionObserver)return new BrP(m,400);throw new TypeError("Xf");};
mMV=function(){var m=Hammer.TouchAction,G=m.prototype.preventDefaults;m.prototype.preventDefaults=function(K){var W=this.actions.indexOf("pan-down")>-1;if(!W)return G.call(this,K);if(!Trd){var L=K.srcEvent;K=K.direction;var A;if((A=this.manager)==null?0:A.session.prevented)L.preventDefault();else if(W&&K&Hammer.DIRECTION_DOWN)return this.preventSrc(L)}}};
i1V=function(m){if(!m||m.size===0)return Hammer.DIRECTION_ALL;if(m.size===2){if(m.has("up")&&m.has("down"))return Hammer.DIRECTION_VERTICAL;if(m.has("right")&&m.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(m.size===1){if(m.has("up"))return Hammer.DIRECTION_UP;if(m.has("down"))return Hammer.DIRECTION_DOWN;if(m.has("right"))return Hammer.DIRECTION_RIGHT;if(m.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.i0=function(m,G,K){var W=K&&K>0?K:0;K=W?Date.now()+W*1E3:0;if((W=W?_.mo.getLocalStorage():_.mo.getSessionStorage())&&window.JSON){typeof G!=="string"&&(G=JSON.stringify(G,void 0));try{W.set(m,G,K)}catch(L){W.remove(m)}}};
_.Gh=function(m){var G=_.mo.getSessionStorage(),K=_.mo.getLocalStorage();if(!G&&!K||!window.JSON)return null;try{var W=G.get(m)}catch(L){}if(typeof W!=="string")try{W=K.get(m)}catch(L){}if(typeof W!=="string")return null;try{W=JSON.parse(W,void 0)}catch(L){}return W};
_.Kr=function(m){try{var G=_.mo.getSessionStorage(),K=_.mo.getLocalStorage();G&&G.remove(m);K&&K.remove(m)}catch(W){}};
Kt6=function(m){var G=GQ9(),K;return _.Y(function(W){switch(W.nextAddress){case 1:return _.IO(W,2),W.yield(m.match(G,{cacheName:"yt-appshell-assets"}),4);case 4:K=W.yieldResult;_.IG(W,3);break;case 2:_.ye(W);case 3:return W.return(K)}})};
GQ9=function(){var m=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Wtd.registration.scope:Ltd;m.endsWith("/")&&(m=m.slice(0,-1));return m+"/app_shell_home"};
A56=function(m){m.map(function(G){return G.source}).join("|")};
_.wcM=function(m){return _.Y(function(G){return G.return(Kt6(m))})};
gfJ=function(){var m=window.caches,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(_.wcM(m),2);G=K.yieldResult;return K.return(!!G)})};
pcd=function(){_.Y(function(m){if(m.nextAddress==1){if(O1V)return m.jumpTo(0);O1V=!0;if(_.F("enable_system_health_primes_monitoring"))return _.Tf(c5J,3E4),YmM(),m.return();if(!(Math.random()<_.U8("web_system_health_fraction")))return m.jumpTo(0);r56={heightPixels:screen.height,widthPixels:screen.width};We&&!isNaN(We.jsHeapSizeLimit)&&(r56.memoryTotalKbytes=String(Math.round(We.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(r56.devicePixelRatio=window.devicePixelRatio);return m.yield(uKV(),4)}_.Tf(c5J,
3E4);return m.yield(hUd(),0)})};
uKV=function(){return _.Y(function(m){if(m.nextAddress==1)return Lr.intersectionObserverPresent="IntersectionObserver"in window,Lr.serviceWorkerPresent="serviceWorker"in navigator,Lr.webSharePresent="share"in navigator,Lr.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Lr.cacheStoragePresent="caches"in window,Lr.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Lr.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Lr.webkitTemporaryStoragePresent="webkitTemporaryStorage"in AK&&AK.webkitTemporaryStorage&&"queryUsageAndQuota"in AK.webkitTemporaryStorage,Lr.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",m.yield(d_G(),2);Lr.indexedDbPresent=m.yieldResult;Lr.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Lr.broadcastChannelPresent="BroadcastChannel"in window;Lr.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Lr.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Lr.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.ey(m)})};
c5J=function(){var m=9E4+Math.random()*2E3;_.Xu()>m||(_.F("enable_system_health_primes_monitoring")?YmM():hUd())};
hUd=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(J59(),2);m=G.yieldResult;_.Fx("systemHealthCaptured",m);_.ey(G)})};
YmM=function(){var m={metric:{}},G=NYG();G.networkEvents.length&&(m.metric.networkEvents=DMd(G));_.Fx("systemHealthCaptured",m)};
J59=function(){var m,G,K,W,L,A,O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:m={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)};G=window.screen;_.F("enable_is_extended_monitoring")&&G&&"isExtended"in G&&(m.isExtended=!!G.isExtended);K={metric:{staticContext:r56,dynamicContext:m,webMetric:tjo,webApiSupport:Lr}};
if(W=_.gU())K.csn=W;We&&(K.metric.webMetric.currentHeapKbytes=Math.round(We.usedJSHeapSize/1E3));window.matchMedia&&(K.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,K.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,K.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in AK&&typeof AK.getBattery==="function")){J.jumpTo(2);break}return J.yield(AK.getBattery(),3);case 3:if(L=
J.yieldResult)K.metric.dynamicContext.chargingStatus=L.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(K.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Lr.storageEstimatePresent)return J.yield(navigator.storage.estimate(),8);if(!Lr.webkitTemporaryStoragePresent){J.jumpTo(5);break}return J.yield(FtP(),7);case 7:A=J.yieldResult;J.jumpTo(5);break;case 8:A=J.yieldResult;case 5:return K.metric.dynamicContext.deviceStorageQuotaMbytes=((O=A)==null?0:O.quota)?String(Math.round(A.quota/
1048576/10)*10):"-1",K.metric.dynamicContext.deviceStorageUsageMbytes=((c=A)==null?0:c.usage)?String(Math.round(A.usage/1048576/10)*10):"-1",u=K.metric.dynamicContext,J.yield(gfJ(),9);case 9:return u.hasAppShell=J.yieldResult,h=NYG(),h.networkEvents.length&&(K.metric.networkEvents=DMd(h)),J.return(K)}})};
FtP=function(){return new Promise(function(m){var G;Lr.webkitTemporaryStoragePresent&&(G=AK.webkitTemporaryStorage)!=null&&G.queryUsageAndQuota?AK.webkitTemporaryStorage.queryUsageAndQuota(function(K,W){m({usage:K,quota:W})}):m(void 0)})};
_.OM=function(m){m&=16777215;m=[(m&16711680)>>16,(m&65280)>>8,m&255];return P7d(m[0],m[1],m[2])};
_.ce=function(m){m=[(m&16711680)>>>16,(m&65280)>>>8,m&255,(m&4278190080)>>>24];if(!_.Qyo(m,function(G){return G===(G&255)}))throw Error("Yf`"+m.join(","));
return"rgba("+m[0]+","+m[1]+","+m[2]+","+(m[3]/255).toFixed(3)+")"};
_.a2G=function(m){return[(m&16711680)>>>16,(m&65280)>>>8,m&255]};
_.ofv=function(m){m=m.map(function(G){G/=255;return G<=.03928?G/12.92:Math.pow((G+.05)/1.05,2.4)});
return m[0]*.2126+m[1]*.7152+m[2]*.0722};
YC=function(m,G){m=_.a2G(m);return"rgba("+m[0]+", "+m[1]+", "+m[2]+", "+G+")"};
rF=function(m){return(m&4278190080)>>>24===0?YC(m,"1"):_.ce(m)};
_.nf6=function(){try{return!!self.localStorage}catch(m){return!1}};
syd=function(){if(b19())_.nc(Error("Zf"));else{var m=document.createElement("iframe");m.style.display="none";var G=G===void 0?window.location.href:G;var K=_.Ql(_.E8("PERSIST_IDENTITY_IFRAME_URL"));G=K?K:(new URL(G)).host.indexOf("studio")===0?_.vE(vfs,"persist_identity"):_.vE($M9,"persist_identity");_.g5(m,1,G);m.id="persist_identity";var W;(W=document.body)==null||W.appendChild(m)}};
b19=function(){var m=qmf;m||(m=document.querySelector("#persist_identity"));return m};
Efd=function(){var m=!1;try{m=!!window.sessionStorage.getItem("session_logininfo")}catch(G){m=!0}return(_.E8("INNERTUBE_CLIENT_NAME")==="WEB"||_.E8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&m};
H1M=function(m,G){if(!Efd())return!1;G||(G=_.E8("LOGIN_INFO"));return G?(m.session_logininfo=G,!0):!1};
jy9=function(m,G){m=m===void 0?!1:m;if((G===void 0||!G)&&I2J!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.IP("LOG_STICKINESS",!1)){G=_.gU();var K=_.wU(),W={identityStickinessData:{initialState:I2J}};G&&K&&_.vk(G,K,W)}if(G=b19())if(K=G.src?(new URL(G.src)).origin:"*",m){var L;(L=G.contentWindow)==null||L.postMessage({action:"clear"},K)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(m=window.sessionStorage.getItem("session_logininfo"))){var A;(A=G.contentWindow)==null||A.postMessage({loginInfo:m},K)}};
_.u0=function(m){m=m===void 0?!0:m;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.qC("LOGIN_INFO",""),m&&window.sessionStorage.setItem("from_switch_account","1"),jy9(!0,m)}catch(G){}};
kQd=function(m){m&&(m.startsWith("https://accounts.google.com/AddSession")?_.u0():m.startsWith("https://accounts.google.com/ServiceLogin")?_.u0():m.startsWith("https://myaccount.google.com")&&_.jU(m).getPath().endsWith("/youtubeoptions")&&_.u0())};
hK=function(m,G){kQd(m);if(_.IP("LOGGED_IN",!0)&&Efd()){var K=PuM(m);K==null&&(K={});H1M(K,G)&&_.nJ(m,K)}};
CFJ=function(){function m(G){for(G=G.target;G&&G.nodeName!=="A";)if(G=G.parentNode,!(G&&G instanceof HTMLElement))return;if(G&&!G.hasAttribute("download")&&G.getAttribute("rel")!=="external"&&G.href)return G.href}
document.addEventListener("mousedown",function(G){G.button!==0&&(G=m(G))&&hK(G)});
document.addEventListener("click",function(G){(G=m(G))&&hK(G)})};
dMs=function(){var m=new Vjs;try{if(_.IP("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(c){m.increment(5,!1);return}if(_.E8("LOGIN_INFO")){var G=Z1f?Z1f:window.location;_.E8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&syd();var K=PuM(G.href);K==null&&(K={});var W=K.session_logininfo,L=Number(window.sessionStorage.getItem("stickiness_reload")),A=W===_.E8("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
L>=2||A)L>=2?m.increment(2,A):A?m.increment(7,A):window.sessionStorage.getItem("session_logininfo")||(m.increment(3,A),I2J="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"))m.increment(4,A),window.sessionStorage.removeItem("stickiness_reload");
else if(L<2){window.sessionStorage.setItem("stickiness_reload",String(L+1));var O=G.href;O=_.mi(O,"sttick");hK(O,window.sessionStorage.getItem("session_logininfo"));O=_.y3(O,{sttick:L});m.increment(L,A);_.jOV(G,O)}}else m.increment(6,!1)}else _.u0(!1)}catch(c){}};
_.pr=function(m,G,K,W,L){G=G===void 0?{}:G;K=K===void 0?"":K;W=W===void 0?window:W;m=_.BE(m,G);hK(m);K=_.MI(m+K,L);_.jOV(W.location,K)};
PFP=function(m){if(m.urlEndpoint){if(m=_.PO(m.urlEndpoint.url),m.adurl)return Ui(m.adurl)}else if(m.watchEndpoint)return"//www.youtube.com/watch?v="+m.watchEndpoint.videoId;return null};
y5s=function(m){if(!m||!m.reportingPings)return null;var G={};m.reportingPings.forEach(function(K){K.pingType in G?G[K.pingType].push(K.url):G[K.pingType]=[K.url]});
return{adpings:YGG(G)}};
_.Ng=function(m){m=m===void 0?!1:m;var G=_.M$(),K="USER_INTERFACE_THEME_LIGHT";G.getFlag(165)?K="USER_INTERFACE_THEME_DARK":G.getFlag(174)?K="USER_INTERFACE_THEME_LIGHT":_.JK()&&(K="USER_INTERFACE_THEME_DARK");return m?K:eUo()||K};
_.f2f=function(){return!_.F("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.JK=function(){return _.f2f()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.D7=function(){var m=_.M$();return _.f2f()&&!m.getFlag(165)&&!m.getFlag(174)};
eUo=function(){var m=m===void 0?window.location.href:m;if(_.F("kevlar_disable_theme_param"))return null;var G=_.f6(m);if(_.xMo(G))return"USER_INTERFACE_THEME_DARK";try{var K=_.PO(m).theme;return XcG.get(K)||null}catch(W){}return null};
_.xMo=function(m){return _.F("enable_dark_theme_only_on_shorts")?!(m==null||!m.startsWith("/shorts/")):!1};
_.QL=function(m,G,K,W,L){G=G===void 0?!1:G;K=K===void 0?!1:K;var A=_.E8("INNERTUBE_CONTEXT");if(!A)return _.am(Error("cg")),{};A=(0,_.Y2.unsafeClone)(A);_.F("web_no_tracking_params_in_shell_killswitch")||delete A.clickTracking;A.client||(A.client={});var O=A.client;O.clientName==="MWEB"&&O.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(O.clientFormFactor=_.E8("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");O.screenWidthPoints=window.innerWidth;O.screenHeightPoints=window.innerHeight;O.screenPixelDensity=
Math.round(window.devicePixelRatio||1);O.screenDensityFloat=window.devicePixelRatio||1;O.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());O.userInterfaceTheme=_.Ng();if(!G){var c=_.gR9();c&&(O.connectionType=c);_.F("web_log_effective_connection_type")&&(c=cMF())&&(A.client.effectiveConnectionType=c)}var u;if(_.F("web_log_memory_total_kbytes")&&((u=_.Ks.navigator)==null?0:u.deviceMemory)){var h;u=(h=_.Ks.navigator)==null?void 0:h.deviceMemory;A.client.memoryTotalKbytes=""+u*1E6}G&&W&&!_.F("web_it_context_set_original_url_ks")&&
(O.originalUrl=SmG(_.Ks.location.href,W).toString());_.F("web_gcf_hashes_innertube")&&(c=tbJ())&&(h=c.coldConfigData,u=c.coldHashData,c=c.hotHashData,A.client.configInfo=A.client.configInfo||{},h&&(A.client.configInfo.coldConfigData=h),u&&(A.client.configInfo.coldHashData=u),c&&(A.client.configInfo.hotHashData=c));h=_.PO(_.Ks.location.href);!_.F("web_populate_internal_geo_killswitch")&&h.internalcountrycode&&(O.internalGeo=h.internalcountrycode);!_.F("web_populate_client_screen_killswitch")&&L&&(O.clientScreen=
L);O.clientName==="MWEB"||O.clientName==="WEB"?(O.mainAppWebInfo||(O.mainAppWebInfo={}),O.mainAppWebInfo.graftUrl=W||_.Ks.location.href,_.F("kevlar_woffle")&&_.tK.instance&&(W=_.tK.instance,O.mainAppWebInfo.pwaInstallabilityStatus=!W.appInstalledEventFired&&W.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),O.mainAppWebInfo.webDisplayMode=YM6(),O.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):O.clientName==="TVHTML5"&&
(!_.F("web_lr_app_quality_killswitch")&&(W=_.E8("LIVING_ROOM_APP_QUALITY"))&&(O.tvAppInfo=Object.assign(O.tvAppInfo||{},{appQuality:W})),W=_.E8("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(O.tvAppInfo=Object.assign(O.tvAppInfo||{},{certificationScope:W}));!_.F("web_populate_time_zone_itc_killswitch")&&(W=AM6())&&(O.timeZone=W);(W=bWJ())?O.experimentsToken=W:delete O.experimentsToken;O=$c6();W=_.RUV();W=(0,_.Y2.getValues)(W.tokenJars);A.request=Object.assign({},A.request,{internalExperimentFlags:O,consistencyTokenJars:W});
!_.F("web_prequest_context_killswitch")&&(O=_.E8("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(A.request.externalPrequestContext=O);W=_.M$();O=W.getFlag(58);W=W.get("gsml","");A.user=Object.assign({},A.user);O&&(A.user.enableSafetyMode=O);W&&(A.user.lockedSafetyMode=!0);_.F("warm_op_csn_cleanup")?K&&(G=_.gU())&&(A.clientScreenNonce=G):!G&&(G=_.gU())&&(A.clientScreenNonce=G);m&&(A.clickTracking={clickTrackingParams:m});if(m=_.Cn("yt.mdx.remote.remoteClient_"))A.remoteClient=m;_.FC.getInstance().setLocationOnInnerTubeContext(A);
try{var J=ZWv(),N=J.bid;delete J.bid;A.adSignalsInfo={params:[],bid:N};for(var D=_.g(Object.entries(J)),t=D.next();!t.done;t=D.next()){var a=_.g(t.value),v=a.next().value,I=a.next().value;J=v;N=I;m=void 0;(m=A.adSignalsInfo.params)==null||m.push({key:J,value:""+N})}var Z,k;if(((Z=A.client)==null?void 0:Z.clientName)==="TVHTML5"||((k=A.client)==null?void 0:k.clientName)==="TVHTML5_UNPLUGGED"){var z=_.E8("INNERTUBE_CONTEXT");z.adSignalsInfo&&(A.adSignalsInfo.advertisingId=z.adSignalsInfo.advertisingId,
A.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",A.adSignalsInfo.limitAdTracking=z.adSignalsInfo.limitAdTracking)}}catch(X){_.am(X)}return A};
_.at=function(){return{isShellLoad:_.IP("IS_SHELL_LOAD",!1)}};
zUP=function(){navigator.serviceWorker.getRegistrations().then(function(m){m.forEach(UMd)})};
UMd=function(m){m&&_.l2f(BYd,m.scope)};
_.l2f=function(m,G){G={scope:G||_.zf("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.yG(m),G)};
ot=function(m,G,K,W){if(G&&G.serializedYpcCujLoggingParams){if(K){var L={};L.transactionErrorType=K;W&&(L.errorMessage=W);G.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:L}}}K={};K.ypcCujContext=G;m=_.e8("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",m,K);_.fG().logFlowEvent(m,"FLOW_TYPE_YPC_ACQUISITION")}};
_.MjJ=function(m,G,K,W){var L={};L.serializedTransactionFlowLoggingParams=G;K&&(L.errorType=K);W&&(L.errorMessage=W);_.Fx(m,L);_.Qb()};
_.TYV=function(m){m&&_.MjJ("transactionFlowStarted",m)};
_.mrf=function(m){m&&_.MjJ("transactionFlowCancelled",m)};
_.nr=function(m,G,K){G&&_.MjJ("transactionFlowFailed",G,m,K)};
i3J=function(m){var G=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");G&&(G.inert=m)};
_.b0=function(){this.megabloxUrl_=null};
_.ve=function(m){try{var G=GEG==null?void 0:GEG.composedPath(m)}catch(K){G=m.composedPath?m.composedPath():[]}return G&&G.length>0?G:m.composedPath?m.composedPath():[]};
_.$C=function(m){return _.ve(m)[0]};
sM=function(m){return m instanceof ShadowRoot?ShadowRoot:m instanceof DocumentFragment?DocumentFragment:m instanceof Document?Document:HTMLElement};
KLJ=function(m){if(m instanceof Element)return Element.prototype;if(m instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("gg`"+m);};
WLd=function(m,G){return _.F("sunnydom_native_scoped_query_selectors")?KLJ(m).querySelector.call(m,G):sM(m).prototype.querySelector.call(m,G)};
LLG=function(m,G){return _.F("sunnydom_native_scoped_query_selectors")?KLJ(m).querySelectorAll.call(m,G):sM(m).prototype.querySelectorAll.call(m,G)};
A8o=function(m){var G,K,W;return(W=(K=(G=m.parentElement)!=null?G:m.__shady_native_parentElement)!=null?K:m.__shady_parentElement)!=null?W:null};
who=function(m){var G,K,W;return(W=(K=(G=m.parentNode)!=null?G:m.__shady_native_parentNode)!=null?K:m.__shady_parentNode)!=null?W:null};
gFF=function(m){var G,K,W;return(W=(K=(G=m.nextSibling)!=null?G:m.__shady_native_nextSibling)!=null?K:m.__shady_nextSibling)!=null?W:null};
O3G=function(m){var G,K,W;return(W=(K=(G=m.previousSibling)!=null?G:m.__shady_native_previousSibling)!=null?K:m.__shady_previousSibling)!=null?W:null};
c8v=function(m){var G,K,W;return(W=(K=(G=m.nextElementSibling)!=null?G:m.__shady_native_nextElementSibling)!=null?K:m.__shady_nextElementSibling)!=null?W:null};
Y3M=function(m){var G,K,W;return(W=(K=(G=m.previousElementSibling)!=null?G:m.__shady_native_previousElementSibling)!=null?K:m.__shady_previousElementSibling)!=null?W:null};
r8s=function(m){var G,K,W;return new Set([].concat(_.Bz((G=m.children)!=null?G:[]),_.Bz((K=m.__shady_native_children)!=null?K:[]),_.Bz((W=m.__shady_children)!=null?W:[])))};
uTV=function(m){var G,K,W;return new Set([].concat(_.Bz((G=m.childNodes)!=null?G:[]),_.Bz((K=m.__shady_native_childNodes)!=null?K:[]),_.Bz((W=m.__shady_childNodes)!=null?W:[])))};
_.qg=function(m){if(!(m instanceof Element))return null;m=m.classList?Array.from(m.classList):void 0;if(!m)return null;var G=m.indexOf("style-scope");return G>-1&&G+1<m.length?m[G+1]:null};
EM=function(m){if(!(m instanceof HTMLElement))return null;var G=m&&(m.$$||m.polymerController)?m.tagName.toLowerCase():null;return G?G:_.qg(m)};
hZd=function(m,G){return _.F("sunnydom_native_scoped_query_selectors")?m+".style-scope."+G:m.replace(/[^a-z]*[^\s]+/g,function(K){return K+".style-scope."+G})};
phs=function(m,G){return G?m.split(",").map(function(K){return hZd(K.trim(),G)}).join(", "):m};
_.He=function(m){var G,K,W,L;return(L=(W=(K=(G=m.root)!=null?G:m.shadowRoot)!=null?K:m.__shady_native_shadowRoot)!=null?W:m.__shady_shadowRoot)!=null?L:m};
J8f=function(m){var G,K,W;return(W=(K=(G=m.__shady_parentNode)!=null?G:m.__shady_native_parentNode)!=null?K:m.parentNode)!=null?W:null};
Nwf=function(m){var G,K;return(K=(G=who(m))!=null?G:m.host)!=null?K:null};
DrJ=function(m){for(;m&&!(m instanceof HTMLElement);)m=Nwf(m);return m};
tE6=function(m){var G=DrJ(m);return m===G?_.qg(m):G?EM(G):null};
FLo=function(m){return(m=DrJ(m))?EM(m):null};
Qdv=function(m){if(m instanceof Comment)return!1;if(m instanceof Text){var G,K;if(((K=(G=m.textContent)==null?void 0:G.trim())!=null?K:"")==="")return!1}return!0};
It=function(m,G,K){var W=G(m);for(K=K===void 0?FLo(m):K;W&&(tE6(W)!==K||!Qdv(W));)m=W,W=G(m);return W};
aNJ=function(m,G,K){if(!G)return null;m=FLo(m);return tE6(G)===m&&Qdv(G)?G:It(G,K,m)};
oFJ=function(m){return It(m,J8f,_.qg(m))};
nFv=function(m){return It(m,c8v)};
b3G=function(m){return It(m,gFF)};
vFG=function(m){return It(m,Y3M)};
$rG=function(m){return It(m,O3G)};
sdV=function(m){return aNJ(m,m.firstChild||null,gFF)};
q3J=function(m){var G,K,W;var L=(W=(K=(G=m.firstElementChild)!=null?G:m.__shady_native_firstElementChild)!=null?K:m.__shady_firstElementChild)!=null?W:null;return aNJ(m,L,c8v)};
EF9=function(m){var G,K,W;var L=(W=(K=(G=m.lastChild)!=null?G:m.__shady_native_lastChild)!=null?K:m.__shady_lastChild)!=null?W:null;return aNJ(m,L,O3G)};
H3M=function(m){var G,K,W;var L=(W=(K=(G=m.lastElementChild)!=null?G:m.__shady_native_lastElementChild)!=null?K:m.__shady_lastElementChild)!=null?W:null;return aNJ(m,L,Y3M)};
INv=function(m){var G=FLo(m);return Array.from(uTV(m)).filter(function(K){return tE6(K)===G})};
jd6=function(m){var G=EM(m);return Array.from(r8s(m)).filter(function(K){return _.qg(K)===G})};
kEV=function(m){if(!m)return null;var G=_.qg(m);if(!G){var K;return(K=Node.prototype.getRootNode)==null?void 0:K.call(m)}G=G.toUpperCase();for(m=A8o(m);m&&m.tagName!==G;)m=A8o(m);return m?_.He(m):null};
_.jb=function(m,G,K){if(m instanceof HTMLElement&&_.qg(m)===K){var W=Array.from(m.classList).indexOf("style-scope");if(W===-1)m.classList.add("style-scope"),m.classList.add(G);else if(!(W+1>=m.classList.length)){W=m.classList[W+1];var L,A;m==null||(L=m.classList)==null||(A=L.replace)==null||A.call(L,W,G)}}if(m instanceof HTMLElement||m instanceof DocumentFragment)for(L=_.g(r8s(m)),A=L.next();!A.done;A=L.next())_.jb(A.value,G,K);return m};
kC=function(m,G){if(m instanceof HTMLElement&&_.qg(m)===G){var K=Array.from(m.classList).indexOf("style-scope");K===-1||K+1>=m.classList.length||m.classList.remove("style-scope",m.classList[K+1])}if(m instanceof HTMLElement||m instanceof DocumentFragment){K=_.g(m.children);for(var W=K.next();!W.done;W=K.next())kC(W.value,G)}return m};
_.CPd=function(m,G){return sM(m).prototype.appendChild.call(m,G)};
VEG=function(m,G){if(m===G)return!0;m=uTV(m);return Array.from(m).some(function(K){return VEG(K,G)})};
_.VL=function(m,G){if(m instanceof Cr)return m;(G==null?0:G.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(m,"ownerDocument")&&Object.defineProperty(m,"ownerDocument",{get:function(){return window.document}});
return new Cr(m)};
drG=function(){var m=Cr.prototype,G=[].concat(_.Bz(Z3V?[]:["getRootNode"]),["setAttribute","removeAttribute"]);G=_.g(G);for(var K=G.next(),W={};!K.done;W={method$jscomp$53:void 0},K=G.next())W.method$jscomp$53=K.value,m[W.method$jscomp$53]=function(L){return function(){return this.host[L.method$jscomp$53].apply(this.host,arguments)}}(W)};
y8d=function(){var m=Cr.prototype,G=[].concat(_.Bz(Z3V?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Bz(PPF?[]:["querySelector","querySelectorAll"]));G=_.g(G);for(var K=G.next(),W={};!K.done;W={method$jscomp$54:void 0},K=G.next())W.method$jscomp$54=K.value,m[W.method$jscomp$54]=function(L){return function(){return this.root[L.method$jscomp$54].apply(this.root,arguments)}}(W)};
xrs=function(){var m=Cr.prototype,G=[].concat(_.Bz(eZs?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Bz(fNG?[]:["parentNode"]));G=_.g(G);for(var K=G.next(),W={};!K.done;W={prop$jscomp$67:void 0},K=G.next())W.prop$jscomp$67=K.value,Object.defineProperty(m,W.prop$jscomp$67,{get:function(L){return function(){return this.host[L.prop$jscomp$67]}}(W),
configurable:!0})};
RZP=function(){var m=Cr.prototype,G=["activeElement"].concat(_.Bz(eZs?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Bz(Xhv?[]:["children"]),_.Bz(S3F?[]:["lastChild"]));G=_.g(G);for(var K=G.next(),W={};!K.done;W={prop$jscomp$68:void 0},K=G.next())W.prop$jscomp$68=K.value,Object.defineProperty(m,W.prop$jscomp$68,{get:function(L){return function(){return this.root[L.prop$jscomp$68]}}(W),
configurable:!0})};
Urd=function(){for(var m=Cr.prototype,G=_.g(["innerHTML","textContent"]),K=G.next(),W={};!K.done;W={prop$jscomp$69:void 0},K=G.next())W.prop$jscomp$69=K.value,Object.defineProperty(m,W.prop$jscomp$69,{get:function(L){return function(){return this.root[L.prop$jscomp$69]}}(W),
set:function(L){return function(A){this.root[L.prop$jscomp$69]=A}}(W),
configurable:!0})};
zZf=function(m){var G=Cr.prototype;m=_.g(Object.entries(m));for(var K=m.next(),W={};!K.done;W={fn$jscomp$401:void 0},K=m.next()){var L=_.g(K.value);K=L.next().value;L=L.next().value;W.fn$jscomp$401=L;G[K]=function(A){return function(){return A.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.Bz(arguments)))}}(W)}};
BwM=function(){for(var m=Cr.prototype,G=_.g(Object.entries(lN6)),K=G.next(),W={};!K.done;W={fn$jscomp$402:void 0},K=G.next()){var L=_.g(K.value);K=L.next().value;L=L.next().value;W.fn$jscomp$402=L;Object.defineProperty(m,K,{get:function(A){return function(){return A.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.Bz(arguments)))}}(W),
configurable:!0})}};
_.Z7=function(m){return m instanceof MEd||m instanceof Document?m:new MEd(m)};
Twd=function(){for(var m=MEd.prototype,G=_.g("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),K=G.next(),W={};!K.done;W={method$jscomp$55:void 0},K=G.next())W.method$jscomp$55=K.value,m[W.method$jscomp$55]=function(L){return function(){return HTMLElement.prototype[L.method$jscomp$55].call.apply(HTMLElement.prototype[L.method$jscomp$55],[this.node].concat(_.Bz(arguments)))}}(W)};
mOs=function(){for(var m=MEd.prototype,G=_.g("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),K=G.next(),W={};!K.done;W={prop$jscomp$70:void 0},K=G.next())W.prop$jscomp$70=K.value,Object.defineProperty(m,W.prop$jscomp$70,{get:function(L){return function(){var A;return(A=this.node["__shady_native_"+L.prop$jscomp$70])!=null?A:this.node[L.prop$jscomp$70]}}(W),
configurable:!0})};
_.dF=function(m,G,K){K===void 0&&(K=!m.classList.contains(G));K?m.classList.add(G):m.classList.remove(G)};
_.Pe=function(m,G,K){K===void 0&&(K=!m.hasAttribute(G));if(G==="class")throw Error("hg");K?_.Z7(m).setAttribute(G,""):_.Z7(m).removeAttribute(G)};
iu9=function(m){return(m.localName!=="slot"?[]:(0,_.yL)(m).assignedNodes({flatten:!0})).filter(function(G){return G.nodeType===Node.ELEMENT_NODE})};
_.Gmf=function(m){return(m=_.VL(m).querySelector("slot"))&&m.localName==="slot"?iu9(m):[]};
_.eb=function(m,G){window.ShadyCSS&&window.ShadyCSS.styleSubtree(m,G)};
fr=function(m,G){var K=G.bind(m);return function(W){K(W,W.detail)}};
_.xC=function(m,G){var K=KTd.get(m);K||(K=new WeakMap,KTd.set(m,K));if(K.has(G))return K.get(G);if(_.F("web_fi_listen_disable_bound_fn_helper")){var W=G.bind(m);m=function(L){W(L,L==null?void 0:L.detail)}}else m=fr(m,G);
K.set(G,m);return m};
Ahf=function(m,G){WTP(m);m.created[LT9].push(G)};
WTP=function(m){if(!m.created||!m.created[LT9]){var G=m.created,K=G?[G]:[];m.created=function(){for(var W=_.g(K),L=W.next();!L.done;L=W.next())L.value.apply(this)};
m.created[LT9]=K}};
wfG=function(m){return function(){var G=_.mb.apply(0,arguments);return function(K,W,L){m.apply(null,_.Bz(G))(K,W,L)}}};
g$v=function(){return function(){var m=_.mb.apply(0,arguments);return function(G,K,W){q1o.apply(null,_.Bz(m))(G,K,W)}}};
_.q=function(m){return g$v()(m)};
_.E=function(){return wfG(jSJ).apply(null,_.Bz(_.mb.apply(0,arguments)))};
_.XC=function(m){return _.F("pbcm_fi_listen_decorators")?Oud(m):wfG(HV6)(m)};
Oud=function(m){return function(G,K){Ahf(G,function(){var W=this[K],L=_.F("web_fi_listen_disable_bound_fn_helper")?function(A){W(A,A.detail)}.bind(this):fr(this,W);
chV.has(m)?av(this.hostElement,m,L):this.hostElement.addEventListener(m,L)})}};
_.Sb=function(){return wfG(ISG).apply(null,_.Bz(_.mb.apply(0,arguments)))};
_.V=function(m){m=m===void 0?{}:m;return wfG(EvM)(m)};
_.Rt=function(m){if(m.hostElement&&m!==m.hostElement){var G=_.TP(m.hostElement);G=m.renderIdom?G:G.shadowRoot}G||(m=m.root,G=m instanceof Node?_.TP(m):null);return G};
_.UM=function(m){return YcF?rhG(m):function(G,K){Object.defineProperty(G,K,{get:function(){var W;return(W=_.Rt(this))==null?void 0:W.querySelector(m)},
enumerable:!0,configurable:!0})}};
rhG=function(m){return function(G,K){Object.defineProperty(G,K,{get:function(){var W,L=(W=_.VL(this.hostElement))==null?void 0:W.querySelector(m);if(L)return L;var A;return(A=_.Rt(this))==null?void 0:A.querySelector(m)},
enumerable:!0,configurable:!0})}};
_.zh=function(m){return YcF?uZ9(m):function(G,K){Object.defineProperty(G,K,{get:function(){var W;return(W=_.Rt(this))==null?void 0:W.querySelectorAll(m)},
enumerable:!0,configurable:!0})}};
uZ9=function(m){return function(G,K){Object.defineProperty(G,K,{get:function(){var W,L=(W=_.VL(this.hostElement))==null?void 0:W.querySelectorAll(m);if(L==null?0:L.length)return L;var A;return(A=_.Rt(this))==null?void 0:A.querySelectorAll(m)},
enumerable:!0,configurable:!0})}};
hYJ=function(m){return function(G){if(![_.fC,_.d].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("ig");QS6(Object.assign({},typeof m!=="string"?m:{is:m,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(G)}};
_.Be=function(){var m=m===void 0?{}:m;return function(G){if(![xN,_.l0].includes(Object.getPrototypeOf(G.prototype).constructor))throw Error("jg");aSG(Object.assign({},m,{disableInheritanceCheck:!0}))(G)}};
Jhd=function(m,G){pfM[m]!=null||(pfM[m]=new Set);pfM[m].add(G)};
_.Mg=function(){var m=_.Sb.apply(null,_.Bz(_.mb.apply(0,arguments)));return function(G,K){Jhd(G.is,K);m(G,K)}};
i1=function(m,G,K){if(Th(m)&&!N2v.has(G)){G=G.replace(/^JSC\$[\d]+_/,"");G=G.replace(/\.\d+(\.|$)/g,function(A,O){return".#"+O});
mg[m]!=null||(mg[m]={});var W,L;(W=mg[m])[L=G]!=null||(W[L]=new Set);mg[m][G].has(K)||(mg[m][G].add(K),_.Fx("polymerPropertyAccessEvent",{componentName:m,propertyName:G,accessType:K}))}};
DOd=function(){return _.F("polymer_property_access_logging_debug")||_.F("polymer_enable_property_access_logging")};
Th=function(m){if(_.F("polymer_property_access_logging_debug"))return!0;if(!_.F("polymer_enable_property_access_logging"))return!1;tuF||(tuF=Date.now());return(Jj(m)+tuF)%100<_.U8("polymer_property_access_logging_percent")};
FTs=function(m,G){return Th(G)&&m.hostElement.loggingStatus?new Proxy(m,{get:function(K,W,L){if(K.hostElement.loggingStatus.bypassProxyController)return K[W];K.hostElement.loggingStatus.isExternalGet=!0;var A=K[W];K.hostElement.loggingStatus.isExternalGet=!1;if(A instanceof Function)return function(){var O=_.mb.apply(0,arguments);try{return K.hostElement.loggingStatus.currentExternalCall=W,i1(G,W,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),A.apply(this===L?K:this,O)}finally{K.hostElement.loggingStatus.currentExternalCall=
void 0}};
i1(G,W,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return A},
set:function(K,W,L){if(K.hostElement.loggingStatus.bypassProxyController)return K[W]=L,!0;K.hostElement.loggingStatus.isRendererStamper?i1(G,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):K.hostElement.loggingStatus.isDeclarativeExternal||i1(G,W,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{K.hostElement.loggingStatus.currentExternalSet=W,K[W]=L}finally{K.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):m};
Q4d=function(m,G){m&&m.loggingStatus&&!m.loggingStatus.isDeclarativeExternal&&!m.loggingStatus.isExternalGet&&m.loggingStatus.currentExternalSet!==G&&i1(m.tagName.toLowerCase(),G,"PROPERTY_ACCESS_GET_INTERNAL")};
Gg=function(m,G,K){m&&(K||m.loggingStatus&&!m.loggingStatus.isInitializing&&!m.loggingStatus.isDefiningPropertyAccessor&&m.loggingStatus.currentExternalSet!==G)&&i1(m.tagName.toLowerCase(),G,"PROPERTY_ACCESS_SET_INTERNAL")};
ayJ=function(){return{_definePropertyAccessor:function(m,G){var K=this,W=K.hostElement.loggingStatus;W&&(W.isDefiningPropertyAccessor=!0);var L=K[m];L!==void 0&&(K.__data?K._setPendingProperty(m,L):(K.__dataProto!=null||(K.__dataProto={}),K.__dataProto[m]=L));W&&(W.isDefiningPropertyAccessor=!1);Object.defineProperty(this,m,{get:function(){Q4d(K.hostElement,m);return this.__data[m]},
set:function(A){G||this._setPendingProperty(m,A,!0)&&this._invalidateProperties()}})},
created:function(){var m=this._setPendingProperty.bind(this);this._setPendingProperty=function(G,K,W){Gg(this.hostElement,G);return m.apply(this,[G,K,W])}}}};
o$o=function(m){DOd()&&_.q(KD.prototype)(m.prototype,"__templateBindingLoggingBehavior")};
n$G=function(m,G){if(G.resolvedFactories.length!==m.resolvedFactories.length)return!0;G=_.g(G.resolvedFactories.entries());for(var K=G.next();!K.done;K=G.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;if(W.providerClass){if(W.providerClass!==m.resolvedFactories[K].providerClass)return!0}else if(W.providerValue){if(W.providerValue!==m.resolvedFactories[K].providerValue)return!0}else if(W.factory!==m.resolvedFactories[K].factory)return!0}return!1};
buf=function(m,G){m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.constructor===Array)buf(K,G);else{var W=G;W.has(K)||(K.inject&&W.add(K),K.behaviors&&buf(K.behaviors,W))}};
WL=function(m,G){var K=m[G];m[G]=function(){var W=_.mb.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(K)return K.apply(this,W)}};
qco=function(){_.LD.Class=function(K,W){K=v$P(K,W);WL(K.prototype,"created");return K};
WL(A9.prototype,"_initializeProperties");WL(_.wT.prototype,"_initializeProperties");if($OJ)WL(s4s,"created");else{var m=function(){WL(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))m();else{var G=customElements.define;customElements.define=function(K,W,L){G.call(customElements,K,W,L);K==="tp-yt-iron-list"&&(m(),customElements.define=G)}}}};
Hu9=function(m,G){m.prototype.behaviors=m.prototype.behaviors||[];m.prototype.behaviors.unshift(E$G.InjectBehavior);m.prototype.provide=G};
_.cL=function(m){return function(G){if(!m.disableElementRegistration){m.noInjection||Hu9(G,m.providers);var K=G.prototype;K.__templateHelpers||q1o(gT.prototype)(K,"__templateHelpers");K=m.is;Iyd||(Iyd=Date.now());(Jj(K)+Iyd)%100<_.U8("polymer_log_prop_change_observer_percent")&&q1o(OQ.prototype)(G.prototype,"__propertyObserverObserver");G.prototype.behaviors=G.prototype.behaviors||[];G.prototype.behaviors.unshift(_.j4J.YtHostElementBehavior);o$o(G);hYJ({is:m.is,notifyObserversOnUndefined:m.notifyObserversOnUndefined!==
!1,fastInit:m.fastInit,template:m.template,disableEnforceFastDefaultValuesCheck:!0})(G)}}};
_.Ye=function(m){return _.cL({is:m.is,template:m.template,disableElementRegistration:m.disableElementRegistration,cssBuildOptOut:m.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Vu9=function(m,G){if(kmf){m=new m;for(var K=_.g(Object.getOwnPropertyNames(m)),W=K.next();!W.done;W=K.next())W=W.value,G[W]=m[W];for(K=G;K&&K!==Object.prototype;K=Object.getPrototypeOf(K)){W=_.g(Object.getOwnPropertyNames(K));for(var L=W.next();!L.done;L=W.next())L=L.value,m.hasOwnProperty(L)||Object.defineProperty(m,L,C3d(G,L))}}else m.apply(G)};
C3d=function(m,G){return{get:function(){var K=m[G];return K instanceof Function?K.bind(m):K},
set:function(K){m[G]=K}}};
dOf=function(m,G){for(var K=m._noAccessors,W=_.g(Object.getOwnPropertyNames(m)),L=W.next();!L.done;L=W.next())if(L=L.value,!Zus.has(L))if(K)G[L]=m[L];else{var A=Object.getOwnPropertyDescriptor(m,L);A&&(A.configurable=!0,Object.defineProperty(G,L,A))}};
P3F=function(m,G,K){return function(W){if(K){var L=K();W.model=L}if(m[G])m[G](W,W.detail)}};
rT=function(m){var G=[];if(typeof m==="string")m.length>0&&G.push.apply(G,_.Bz(m.split(".")));else{m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,typeof K==="string"?G.push.apply(G,_.Bz(K.split("."))):G.push(K)}return G};
yhV=function(m,G){if(G[G.length-1]!=="*"&&G[G.length-1]!=="splices"){for(var K=0;K<G.length;K++){if(!m)return;m=m[G[K]]}return m}};
eYd=function(m,G){if(m.length>G.length)return!1;for(var K=0;K<m.length;K++)if(m[K]!==G[K])return!1;return!0};
xOV=function(m,G,K){if(G.type==="compute"){var W=G.getter.bind(K);var L=G.args}else W=function(){return K[G.method.methodName].apply(K,_.Bz(_.mb.apply(0,arguments)))},L=G.method.args;
fyo(m,G.propertyKey,W,L,G.value)};
Scs=function(m,G){if(G.readOnly){var K=Object.getOwnPropertyDescriptor(m.model,G.propertyKey);Object.defineProperty(m.model,G.propertyKey,{get:K.get,set:function(){}});
m.model[Xfv(G.propertyKey)]=K.set}};
RYd=function(m,G,K){if(K){var W=G.propertyKey,L=G.selector;G=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Bz(G.selectorArgs.map(function(A){return{type:"path",path:A}})));
fyo(m,W,function(A){var O=_.mb.apply(1,arguments);return L.apply(null,[K.getState()].concat(_.Bz(O)))},G)}};
zYV=function(m,G,K){var W=_.XS(G.propertyKey)+"-changed";UOV(m,function(L){var A={value:L.value,queueProperty:!0};L.path.split(".").length>1&&(A.path=L.path);K.dispatchEvent(new CustomEvent(W,{detail:A}))},[{type:"wildcard",
path:G.propertyKey}])};
lyG=function(m,G,K){UOV(m,function(){K[G.method.methodName].apply(K,_.Bz(_.mb.apply(0,arguments)))},G.method.args)};
Xfv=function(m){return"_set"+(m.charAt(0).toUpperCase()+m.slice(1))};
B2f=function(){var m,G=q2(function(K){m=K},!1);
return[m,G]};
GoG=function(m){m=m.trim().replace(MuM,",").replace(T2d,"$1");var G=m[0];G==="-"&&(G=m[1]);if(G>="0"&&G<="9")return{type:"literal",value:Number(m)};if(G==="'"||G==='"')return{type:"literal",value:m.slice(1,-1)};if(G=m.match(mbG)){G=G[1];var K=iM6[G];if(K)return{type:K,path:m.slice(0,-(G.length+1))}}return{type:"path",path:m}};
A0f=function(m){var G=m.match(KSF);if(G)return m={methodName:G[1],args:WSM},G[2].trim()&&(G=G[2].replace(LSF,"&comma;").split(","),m.args=G.map(GoG)),m};
w9f=function(m,G,K,W){W=W===void 0?!1:W;G=_.XS(G);var L=YN;L&&(K=L(K,G,"attribute",m));u1(m,K,G,W)};
u1=function(m,G,K,W){G=gbo(G,W===void 0?!1:W);G===void 0?m.removeAttribute(K):m.setAttribute(K,G)};
gbo=function(m,G){switch(typeof m){case "object":case "function":if(m instanceof Date)return m.toString();if(m){if((G===void 0?0:G)&&!_.F("polymer_reflect_objects_as_boolean_killswitch"))return m?"":void 0;G=window.trustedTypes?window.trustedTypes.isHTML(m)||window.trustedTypes.isScript(m)||window.trustedTypes.isScriptURL(m):void 0;if(G)return m;try{return JSON.stringify(m)}catch(K){_.nc(Error("Fg`"+m))}}break;case "boolean":return m?"":void 0;default:return m!==null&&m!==void 0?m.toString():void 0}};
OMf=function(m){if(m===void 0)throw Error("Gg");return m};
hSF=function(m,G,K,W){var L=c09(W);if(L.length){W=K;var A="property";YfV.test(K)?A="attribute":K[K.length-1]==="$"&&(K=K.slice(0,-1),A="attribute");var O=r0G(L);O&&A==="attribute"&&(K==="class"&&m.hasAttribute("class")&&(O+=" "+m.getAttribute(K)),u1(m,O,K));A==="attribute"&&W==="disable-upgrade$"&&m.setAttribute("disable-upgrade","");m.localName==="input"&&W==="value"&&m.setAttribute("value","");m.removeAttribute(W);A==="property"&&(K=_.Sl(K));G=OMf(G);uWd(G,A,K,L);return!0}return K.slice(0,3)===
"on-"?(m.removeAttribute(K),(A=G).events!=null||(A.events=[]),G.events.push({name:K.slice(3),value:W}),!0):K==="id"?(G.id=W,!0):!1};
c09=function(m){for(var G=[],K=0,W;(W=p96.exec(m))!==null;){W.index>K&&G.push({type:"literal",value:m.slice(K,W.index)});var L=W[1][0];K=!!W[2];W=W[3].trim();if(L==="{")throw Error("Hg");(L=A0f(W))?G.push({type:"method",negate:K,signature:L}):G.push({type:"path",negate:K,path:W});K=p96.lastIndex}K&&K<m.length&&(m=m.substring(K))&&G.push({type:"literal",value:m});return G};
r0G=function(m){for(var G="",K=0;K<m.length;K++){var W=m[K];W.type==="literal"&&(G+=W.value)}return G};
uWd=function(m,G,K,W){m.bindings!=null||(m.bindings=[]);m.bindings.push({kind:G,target:K,parts:W})};
FSG=function(m,G,K){var W=!1;if(m.localName==="template"){W=K;var L=G.stripWhitespace;L=J0M(m,L===void 0?!1:L);var A=m.content.ownerDocument.createDocumentFragment();L.content=A;A.appendChild(m.content);W&&(W.templateInfo=L);W=!0}else m.localName==="slot"&&(G.hasInsertionPoint=!0);if(m.firstChild&&(L=K,m.localName!=="script"&&m.localName!=="style")){A=0;for(var O=m.firstChild;O;){var c=O;if(c.localName==="template"){var u=c.getAttribute("is");if((O=u==="dom-if")||u==="dom-repeat"){c.removeAttribute("is");
u=c.ownerDocument.createElement("ps-"+u);c.parentNode.replaceChild(u,c);u.appendChild(c);var h=Array.from(c.attributes);h=_.g(h);for(var J=h.next();!J.done;J=h.next())J=J.value,O?NAG.has(J.name)&&u1(u,J.value,J.name):Dbf.has(J.name)?u1(u,J.value,J.name):tR9.has(J.name),c.removeAttribute(J.name);O=u}else O=c}if(O.nodeType===Node.TEXT_NODE){c=void 0;u=m;for(h=O;((c=h.nextSibling)==null?void 0:c.nodeType)===Node.TEXT_NODE;)J=void 0,(J=h).textContent!=null||(J.textContent=""),h.nextSibling.textContent&&
(h.textContent+=h.nextSibling.textContent),u.removeChild(h.nextSibling);if(G.stripWhitespace&&O.textContent&&!O.textContent.trim()){m.removeChild(O);O=O.nextSibling;continue}}FSG(O,G,{parentIndex:A,parentInfo:L});O.parentNode&&A++;O=O.nextSibling}}var N;if((N=m.hasAttributes)==null?0:N.call(m)){N=K=OMf(K);L=!1;A=Array.from(m.attributes);A=_.g(A);for(c=A.next();!c.done;c=A.next())c=c.value,L=hSF(m,N,c.name,c.value)||L;W=L||W}m.nodeType===Node.TEXT_NODE&&(N=c09(m.textContent),N.length&&(m.textContent=
r0G(N)||" ",K=OMf(K),uWd(K,"text","textContent",N),W=!0));K&&W&&(K.infoIndex=G.nodeInfoList.push(K)-1)};
J0M=function(m,G){G={nodeInfoList:[],stripWhitespace:(G===void 0?!1:G)||m.hasAttribute("strip-whitespace")};FSG(m.content,G);return G};
Qhd=function(m){Object.assign(m,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
ob6=function(m,G,K){G.signalCache!=null||(G.signalCache={});var W=G.signalCache[K];if(!W){var L=K.split(".");W=!a$d(m,L[0]);if(L.length>1&&W){var A=m.getPathMutationSignal(L);W=function(){var O=H4(m.owner,function(){return m.getWithPath([L[0]])}),c,u=(c=A())==null?void 0:c.value;
return{rootWasDefined:O!==void 0,value:u}}}else W=function(){var O=m.getWithPath(L);
return{rootWasDefined:O!==void 0,value:O}};
G.signalCache[K]=W}return W()};
bMd=function(m,G,K,W,L){G=G.parts.map(function(O,c){if(O.type==="literal"){K.partWasDefined!=null||(K.partWasDefined=[]);var u;(u=K.partWasDefined)[c]||(u[c]=O.value!==void 0);return O.value}var h;if(O.type==="method"){var J,N=(J=(h=K.partWasDefined)==null?void 0:h[c])!=null?J:!1;N||(N=O.signature.args.every(function(a){return a.type==="literal"}));
var D=!1,t=!0;h=O.signature.args.map(function(a){if(a.type==="literal")return a.value;if(a.type!=="path")throw Error("Ig`"+a.type);var v=ob6(m,K,a.path);a=v.value;v=v.rootWasDefined;D||(D=v);t&&(t=v);return a});
N||(N=L===1?t:D);K.partWasDefined!=null||(K.partWasDefined={});K.partWasDefined[c]=N;if(!N)return;h=(c=ob6(m,K,O.signature.methodName).value)&&typeof c==="function"?c.apply(W,h):void 0}else J=ob6(m,K,O.path),h=J.value,K.partWasDefined!=null||(K.partWasDefined={}),(N=K.partWasDefined)[c]||(N[c]=h!==void 0||J.rootWasDefined);O.negate&&(h=!h);return h});
if(G.length===1){var A;return((A=K.partWasDefined)==null?0:A[0])?G[0]:nb6}return G.join("")};
vbV=function(m){return typeof m==="object"&&!!m&&"notifyPath"in m&&"canNotifyPath"in m};
$bJ=function(m){return typeof m==="object"&&!!m&&"notifyPath"in m};
shJ=function(m){return"polymerController"in m};
qfv=function(m,G){G=""+rT(G)[0];if(vbV(m))return m.canNotifyPath(G);if(shJ(m)&&vbV(m.polymerController))return m.polymerController.canNotifyPath(G);if($bJ(m)){var K;return!((K=m.properties)==null||!K[G])}if(shJ(m)&&$bJ(m.polymerController)){var W;return!((W=m.polymerController.properties)==null||!W[G])}return!1};
EbG=function(m,G,K){vbV(m)||$bJ(m)?m.notifyPath(G,K):shJ(m)&&(vbV(m.polymerController)||$bJ(m.polymerController))&&m.polymerController.notifyPath(G,K)};
I$d=function(m,G,K){if(K!==nb6){m.kind==="attribute"||m.target!=="textContent"&&(m.target!=="value"||G.localName!=="input"&&G.localName!=="textarea")||(K=K===void 0?"":K);var W,L=(W=HMs.Polymer)==null?void 0:W.sanitizeDOMValue;L&&(K=L(K,m.target,m.kind,G));if(m.kind==="attribute"){m=m.target;if(m==="class"||m==="name"||m==="slot")G=(0,_.yL)(G);u1(G,K,m)}else if(m=m.target,K!==G[m]||typeof K==="object")G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!0,i1(G.localName,m,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
G[m]=K,G.loggingStatus&&(G.loggingStatus.isDeclarativeExternal=!1)}};
jhG=function(m,G,K,W){var L=G.parts[0];if(G.parts.length!==1||L.type!=="path"||!qfv(K,G.target))return!1;var A=_.g(L.path.split(".")),O=A.next().value,c=Pg(A);if(a$d(m,O))return!1;W.signalCache!=null||(W.signalCache={});A=W.signalCache[L.path];var u;A=(u=A)==null?void 0:u().value;if((A==null?void 0:A.path)!==void 0){W=rT(A.path);var h=rT(L.path);W=[G.target].concat(_.Bz(W.slice(h.length-1)));EbG(K,W,L.negate?!A.value:A.value);return!0}var J=h9(m,O);var N=J.getChangeRecordSignal(c),D=!1;A=function(){if(!D){var a=
H4(m.owner,function(){return J.getWithPath([])});
D||(D=a!==void 0)}return{value:N(),rootWasDefined:D}};
W.signalCache[L.path]=A;W.partWasDefined!=null||(W.partWasDefined={});A=A();(h=W.partWasDefined)[0]||(h[0]=A.rootWasDefined);var t=H4(m.owner,function(){return J.getWithPath(c)});
W.partWasDefined[0]&&H4(m.owner,function(){return void I$d(G,K,L.negate?!t:t)});
return!0};
kod=function(m,G,K,W,L,A){if(!jhG(m,G,K,W)){var O=bMd(m,G,W,L,A);H4(m.owner,function(){return void I$d(G,K,O)})}};
CoV=function(m,G,K,W,L,A){K=_.g(K);for(var O=K.next(),c={};!O.done;c={infoIndex:void 0},O=K.next()){O=O.value;var u=O.bindings;c.infoIndex=O.infoIndex;O=O.parentInfo;if(u){u=_.g(u);for(var h=u.next(),J={};!h.done;J={b$jscomp$257:void 0,bindingCtx$jscomp$4:void 0},h=u.next()){J.b$jscomp$257=h.value;if(c.infoIndex===void 0)throw Error("Jg");J.bindingCtx$jscomp$4={};m.effect(function(N,D){return function(){L&&!L()||kod(m,N.b$jscomp$257,G[D.infoIndex],N.bindingCtx$jscomp$4,W,A)}}(J,c))}}O&&CoV(m,G,[O],
W,L,A)}};
VRf=function(m,G){m=(G.parentInfo?VRf(m,G.parentInfo):m).firstChild;for(var K=0;m;m=m.nextSibling)if(G.parentIndex===K++)return m;throw Error("Kg");};
dbv=function(m,G,K,W){m=document.importNode(m.content,!0);m.__noInsertionPoint=!(W==null?0:W.hasInsertionPoint);for(var L=Array(G.length),A={},O=0;O<G.length;O++){var c=G[O],u=VRf(m,c);L[O]=u;c.id&&(A[c.id]=u);if(c.templateInfo){var h=u.parentElement;h&&(h.templateInfo=c.templateInfo,h.parentSignalProxy=K,h.eventListenerHost=W.eventListenerHost,h.stampingEnabled=W.enabledSignal)}h=void 0;if((h=c.events)==null?0:h.length)for(h=0;h<c.events.length;h++){var J=c.events[h];ZMf(W.eventListenerHost,u,J.name,
J.value,W.getModel)}}CoV(K,L,G,W.thisCtx,W.enabledSignal,W.methodInvocationRequirement);return{root:m,nodes:L,nodesById:A}};
y0P=function(m,G){m=m();var K;(K=PoP.ShadyCSS)==null||K.prepareTemplate(m,G);G=J0M(m);return{template:m,nodeInfoList:G.nodeInfoList,hasInsertionPoint:G.hasInsertionPoint}};
xbf=function(){eSf=!1;for(var m=pD.length,G=0;G<m;G++){var K=pD[G];if(K)try{K()}catch(W){Promise.resolve().then(function(){throw W;})}}pD.splice(0,m);
f$d+=m};
Ubv=function(m){eSf||(eSf=!0,X9o.textContent=(Sff++).toString());pD.push(m);return RSM++};
_.Dh=function(m,G,K){J9++;m=G?new zSG(J9,m,G,K):new l$o(J9,m);Nl.set(J9,m);return J9};
BAo=function(m){(m=Nl.get(m))&&m.cancel()};
TAF=function(m,G){m=MRs.get(m);return m?(G=m.get(G))?G:null:null};
_.t9=function(m,G,K,W){var L=TAF(m,G);if(!L){L=new muM;var A=MRs.get(m);A||(A=new Map,MRs.set(m,A));A.set(G,L)}m=K.bind(m);L.run(m,W,void 0)};
_.iOF=function(m,G){var K;(K=TAF(m,G))==null||K.cancel()};
GJd=function(m){var G;(G=TAF(m,"doRender"))==null||G.flush()};
Fj=function(m){var G;return(G=m.hostElement)!=null?G:m};
K$f=function(m){var G=m.indexOf(".");return G===-1?m:m.slice(0,G)};
W$f=function(m,G,K,W,L,A){A=(L=(W=A?K$f(G):G)?G:null)?m.get(L):m.__data[G];L&&A===void 0&&(A=K[G]);_.Zw(m.hostElement,VM6(W)+"-changed",{value:A,queueProperty:!0,path:L!=null?L:void 0},{bubbles:!1,composed:!1})};
L$G=function(m,G){m.__isReflecting=!0;w9f(m.hostElement,G,m.__data[G]);m.__isReflecting=!1};
A76=function(m){if(m._onIronRequestResizeNotifications){var G=m._onIronRequestResizeNotifications.bind(m);m._onIronRequestResizeNotifications=function(K){_.$C(K)!==m.hostElement&&G(K)}}m._ariaActiveAttributeChanged&&(m._ariaActiveAttributeChanged=m._ariaActiveAttributeChanged.bind(m.hostElement));
m._activeChanged&&(m._activeChanged=function(K){m.toggles?u1(m.hostElement,K?"true":"false",m.ariaActiveAttribute):m.hostElement.removeAttribute(m.ariaActiveAttribute);m._changedButtonState()});
m._asyncClick&&(m._asyncClick=function(){_.Dh(function(){m.hostElement.click()},1)});
!m.keyEventTarget||m.keyEventTarget instanceof EventTarget||(m.keyEventTarget=Fj(m.keyEventTarget));m._disabledChanged&&(m._disabledChanged=m._disabledChanged.bind(m.hostElement));m._observeItems&&(m._observeItems=function(K){var W=Fj(K);return _.TP(W).observeNodes(function(L){m._updateItems();m._updateSelected();_.Zw(W,"iron-items-changed",L,{bubbles:!1,cancelable:!1})})});
m._updateItems&&m._updateItems===_.Qz._updateItems&&(m._updateItems=function(){var K=_.TP(m.hostElement).queryDistributedElements(m.selectable||"*");K=Array.prototype.filter.call(K,m._bindFilterItem);m._setItems(K)});
m._computeKeyboardClass&&(m._computeKeyboardClass=function(K){_.dF(m.hostElement,"keyboard-focus",K)});
m.ensureRipple&&(m.ensureRipple=function(K){if(m.hasRipple&&!m.hasRipple()){if(!m._createRipple)return;m._ripple=m._createRipple();m._ripple.noink=m.noink;var W=m._rippleContainer||m.hostElement;W&&_.VL(W).appendChild(m._ripple)}var L;if(K&&((L=m._ripple)==null?0:L.uiDownAction)){W=_.VL(m._rippleContainer||m.hostElement);var A;L=(A=K.composedPath())==null?void 0:A[0];W.contains(L)&&m._ripple.uiDownAction(K)}});
m._updateMultiselectable&&(m._updateMultiselectable=function(K){K?m.hostElement.setAttribute("aria-multiselectable","true"):m.hostElement.removeAttribute("aria-multiselectable")})};
wyP=function(m,G,K){K=_.g(K);for(var W=K.next();!W.done;W=K.next())Vu9(W.value.constructor,m);Vu9(G.constructor,m)};
OOs=function(m,G){m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.type==="signal"){var W=K.propertyKey;if(G.hasOwnProperty(W)&&G[W]!=null&&K.attributeType===Object){a:{W=G[W].constructor;for(var L=_.g(gLJ),A=L.next();!A.done;A=L.next())if(A=A.value,W===A){W=A;break a}W=Object}K.attributeType=W}}};
c7d=function(){};
Y$M=function(m){var G;return(G=m.hostElement)!=null?G:m};
r7P=function(){throw Error("Og");};
u36=function(m,G){m.constructor.prototype.useSignals=!0;var K=new m.constructor;wyP(K,m,G.behaviors);OOs(G.reactiveSchemas,K);K={};for(var W=_.g(G.reactiveSchemas),L=W.next();!L.done;L=W.next())L=L.value,L.type==="signal"&&(K[L.propertyKey]=L.attributeType);var A={copyPropertiesToProto:r7P,didRegister:!1,typesForSignals:K},O=["disable-upgrade"].concat(_.Bz(G.observedAttributes)),c=function(u){ao.call(this,m,G,A,u)};
_.n(c,ao);_.e_.Object.defineProperties(c,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O}}});
A.copyPropertiesToProto=function(){for(var u=0;u<G.behaviors.length;u++)dOf(G.behaviors[u],c.prototype);dOf(m,c.prototype)};
G.legacyOptimizations||A.copyPropertiesToProto();c.prototype.is=m.is;return c};
h$v=function(m,G){if(Object.getPrototypeOf(G.prototype).constructor!==_.d)throw Error("Pg");G.prototype.is=m.is;return u36(G.prototype,m)};
pys=function(m){return m.type==="compute"||m.type==="computeWithMethod"};
J7d=function(m){for(var G=m.reactiveSchemas.filter(pys),K=new Map,W=new Map,L=new Map,A=_.g(G),O=A.next();!O.done;O=A.next())O=O.value,K.set(O.propertyKey,O),W.set(O.propertyKey,[]),L.set(O.propertyKey,0);A=0;G=_.g(G);for(O=G.next();!O.done;O=G.next()){O=O.value;for(var c=_.g(O.type==="computeWithMethod"?O.method.args:O.args),u=c.next();!u.done;u=c.next())u=u.value,u.type!=="literal"&&(u=u.path.split(".")[0],W.has(u)&&(W.get(u).push(O.propertyKey),L.set(O.propertyKey,L.get(O.propertyKey)+1),A++))}O=
[].concat(_.Bz(W.keys())).filter(function(h){return L.get(h)===0});
for(G=[];O.length;)for(c=O.shift(),G.push(K.get(c)),c=_.g(W.get(c)),u=c.next();!u.done;u=c.next())u=u.value,L.set(u,L.get(u)-1),A--,L.get(u)===0&&O.push(u);K=m.reactiveSchemas.filter(function(h){return!pys(h)});
m.reactiveSchemas=[].concat(_.Bz(K),_.Bz(G))};
NVF=function(m,G){if(G.properties)for(var K=_.g(Object.entries(G.properties)),W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;m.properties[W]=typeof L==="function"?{type:L}:L}G.observers&&m.observers.push.apply(m.observers,_.Bz(G.observers));G.disabledPolySiReactions&&m.disabledPolySiReactions.push.apply(m.disabledPolySiReactions,_.Bz(G.disabledPolySiReactions))};
DuP=function(m,G){for(var K=G.length-1;K>=0;K--){var W=G[K];Array.isArray(W)?DuP(m,W):m.indexOf(W)<0&&m.unshift(W)}};
tfd=function(m,G){m.reactiveSchemas=m.reactiveSchemas.filter(function(K){return K.type==="observe"&&G.includes(K.method.methodName)||pys(K)&&G.includes(K.propertyKey)?!1:!0})};
QHP=function(m,G){var K=G.prototype,W,L,A={is:m.is,reactiveSchemas:[],observedAttributes:[],behaviors:[E$G.InjectBehavior,gT.prototype],disableElementRegistration:m.disableElementRegistration,provide:(W=m.providers)!=null?W:[],reactivityMode:m.reactivityMode,signalProperties:(L=K.signalProperties)!=null?L:[]};"template"in G?A.templateGetter=function(){return G.template}:m.getTemplate&&(A.templateGetter=m.getTemplate);
K.behaviors&&DuP(A.behaviors,K.behaviors);F$6(A,G);return A};
F$6=function(m,G){for(var K=G.prototype,W={properties:{},observers:[],disabledPolySiReactions:[]},L=_.g(m.behaviors),A=L.next();!A.done;A=L.next())NVF(W,A.value);NVF(W,K);if(m.signalProperties)for(K=_.g(m.signalProperties),L=K.next();!L.done;L=K.next())delete W.properties[L.value];K=_.g(Object.entries(W.properties));for(L=K.next();!L.done;L=K.next()){A=_.g(L.value);L=A.next().value;A=A.next().value;var O=void 0;if((O=m.signalProperties)==null||!O.includes(L)){O=void 0;var c=m,u=A.type;if(!u)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{u=Reflect.getMetadata("design:type",G,L);for(var h=_.g(a9d),J=h.next();!J.done;J=h.next())if(J=J.value,u===J){u=J;break a}u=Object}else u=String;A.computed||A.selector||(c.reactiveSchemas.push({type:"signal",propertyKey:L,value:A.value,attributeType:u,readOnly:A.readOnly}),c.observedAttributes.push(_.XS(L)));A.reflectToAttribute&&c.reactiveSchemas.push({type:"reflect",propertyKey:L});if(A.computed){u=A0f(A.computed);if(!u)throw Error("Qg");c.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:L,method:u,value:A.value})}A.observer&&c.reactiveSchemas.push({type:"observe",method:{methodName:A.observer,args:[{type:"path",path:L}]}});A.notify&&c.reactiveSchemas.push({type:"notify",propertyKey:L});A.selector&&c.reactiveSchemas.push({type:"redux",propertyKey:L,selector:A.selector,selectorArgs:(O=A.selectorArgs)!=null?O:[]})}}oLM&&J7d(m);G=_.g(W.observers);for(L=G.next();!L.done;L=G.next())K=m,L=L.value,(A=A0f(L))?K.reactiveSchemas.push({type:"observe",method:A}):console.log('Warning: unable to parse observe declaration: "'+
L+'"');tfd(m,W.disabledPolySiReactions)};
nLV=function(m,G){for(var K=0;K<G.length;K++){var W=G[K],L=void 0;(L=W).showHideApi!=null||(L.showHideApi={});L=void 0;!!m!==!((L=W.showHideApi)==null||!L.hideTemplateChildren)&&(W.nodeType===Node.TEXT_NODE?m?(W.showHideApi.polymerTextContent=W.textContent,W.textContent=""):(L=void 0,W.textContent=(L=W.showHideApi.polymerTextContent)!=null?L:null):W instanceof Element&&W.localName==="slot"?m?(W.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.yL)((0,_.yL)(W).parentNode).replaceChild(W.showHideApi.polymerReplaced,
W)):(L=W.showHideApi.polymerReplaced)&&(0,_.yL)((0,_.yL)(L).parentNode).replaceChild(W,L):W instanceof HTMLElement&&W.style&&(m?(W.showHideApi.polymerDisplay=W.style.display,W.style.display="none"):W.style.display=W.showHideApi.polymerDisplay));W.showHideApi.hideTemplateChildren=m;W.showHideChildren&&W.showHideChildren(m)}};
vLv=function(){if(!bOM){var m=document.createElement("style");m.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(m);bOM=!0}};
oo=function(){return _.F("disable_hidden_dom_if_using_stamper")};
$uP=function(m,G){var K=_.nD().getState();return G?m.apply(null,[K].concat(_.Bz(G))):m(K)};
ELP=function(){if(sHP)return sHP;var m=_.g(_.g_(0,void 0,"MB1Hb")),G=m.next().value;m.next();var K=m.next().value;_.nD().subscribe(function(){q$G(K)});
return sHP=G};
q$G=function(m){HOd||(HOd=!0,Promise.resolve().then(function(){m(function(G){return G+1});
HOd=!1}))};
_.nD=function(){return I9G.getAppStore()};
jHV=function(m,G){return I9G.getSelectFn()(m,G)};
_.$e=function(m){I9G.getDispatchFn()(m)};
kJd=function(m,G){var K={},W;for(W in m)K[W]=G(m[W],W);return K};
_.sQ=function(m,G){return function(){var K;return(K=_.EZ(m))!=null?K:G}};
_.ql=function(m,G){var K=Object.assign({},m),W;for(W in G)G.hasOwnProperty(W)&&(K[W]=_.sQ(m[W],G[W]));return K};
Ci9=function(m,G,K,W){m instanceof Element&&(K.debugName||(K.debugName="<"+m.tagName.toLowerCase()+(m.tagName.includes("-")?">":"."+m.className+">")),_.F("ytwiz_enable_debug_component_props")&&(m.debugProps||(m.debugProps=kJd(G,function(L){return function(){return L()}})),G.data===void 0||"data"in m&&!m.isWebComponentWrapper||Object.defineProperty(m.debugProps,"data",{get:function(){return _.EZ(G.data)},
set:function(L){var A;W==null||(A=W.data)==null||A.call(W,L)},
enumerable:!0,configurable:!0})))};
_.EQ=function(m,G){if(m.length===0&&(G==null||!G.initial))return CYV(m,{debugName:G==null?void 0:G.debugName},"l");var K=_.g(CYV({source:function(){return m()},
computation:function(A,O){return(O==null?0:O.value)?m(O.value):(G==null?0:G.initial)?m(G.initial):A}},{debugName:G==null?void 0:G.debugName},"m")),W=K.next().value,L=K.next().value;
K=K.next().value;return[W,L,K]};
_.P=function(m,G){var K=function(W){return CJ("ytComponent",{},function(L){var A=VfV={};var O;if(((O=K)==null?0:O.idomCompat)&&W.renderedFromIdom){var c;O=typeof K.idomCompat==="object"?(c=K)==null?void 0:c.idomCompat.callbacks:{};O=_.g(ZOF(W,O));c=O.next().value;var u=O.next().value;O=O.next().value;var h=du6(m,c);A.privateValue=h;VfV=void 0;Ci9(h,c,K,u);L.addAttributes({debugName:K.debugName});L=ETf(h);L=Array.isArray(L)?L[0]:L;L[WO]||(L[WO]={});L[WO].updateSignalsFromIdomProps=O;PiF(c,h);return h}O=
kJd(W,y7V);c=du6(m,O);Ci9(c,O,K);A.privateValue=c;VfV=void 0;L.addAttributes({debugName:K.debugName});PiF(O,c);return c})};
K.debugName=G===void 0?"":G;return K};
du6=function(m,G){m=m(G);return cO(m)};
e$6=function(m,G){m[G]||(m=new _.cw("IDOM interop setter undefined. Key:",G),_.am(m))};
y7V=function(m,G){return G==="children"||G==="ref"||typeof m==="function"||m===void 0?m:function(){return _.EZ(m)}};
ZOF=function(m,G){var K={},W={},L={},A={},O;for(O in m){A={key$jscomp$954:A.key$jscomp$954};A.key$jscomp$954=O;var c=m[A.key$jscomp$954];if(A.key$jscomp$954==="children"||A.key$jscomp$954==="ref")K[A.key$jscomp$954]=c;else if(typeof c==="function")if(A.key$jscomp$954 in G||c.length>0)L[A.key$jscomp$954]=c,K[A.key$jscomp$954]=function(h){return function(){return L[h.key$jscomp$954].apply(L,_.Bz(_.mb.apply(0,arguments)))}}(A);
else if(A.key$jscomp$954==="data"){var u=_.g(_.EQ(c,{debugName:A.key$jscomp$954+":cwis"}));c=u.next().value;u=u.next().value;K[A.key$jscomp$954]=c;W[A.key$jscomp$954]=u}else K[A.key$jscomp$954]=c;else m[A.key$jscomp$954]===void 0&&A.key$jscomp$954 in G||(u=_.g(_.g_(m[A.key$jscomp$954],{debugName:A.key$jscomp$954+":cwis"},"HQMSk")),c=u.next().value,u=u.next().value,K[A.key$jscomp$954]=c,W[A.key$jscomp$954]=u)}return[K,W,function(h){var J={},N;for(N in h)J={key$jscomp$953:J.key$jscomp$953,val$jscomp$122:void 0},
J.key$jscomp$953=N,J.val$jscomp$122=h[J.key$jscomp$953],J.key$jscomp$953!=="children"&&J.key$jscomp$953!=="ref"&&(typeof J.val$jscomp$122==="function"?J.key$jscomp$953 in G?L[J.key$jscomp$953]=J.val$jscomp$122:J.val$jscomp$122.length>0&&(L[J.key$jscomp$953]=J.val$jscomp$122,_.nc(new _.cw("Callback detected that was not set in the idomCompat callbacks map. Key:",J.key$jscomp$953))):J.key$jscomp$953 in G&&J.val$jscomp$122===void 0||(e$6(W,J.key$jscomp$953),J_(function(D){return function(){W[D.key$jscomp$953](D.val$jscomp$122)}}(J))))}]};
Xyo=function(m,G,K){var W=N3M(m.prototype,f9V,m.prototype.behaviors);W.prototype.is=G;W.prototype.localName=G;K&&xud(W,K);return function(L){L&&(W.prototype.hostElement=L);var A=new W;A.root=A;A.hostElement=L;return A}};
xud=function(m,G){var K;Object.defineProperty(m.prototype,"_template",{get:function(){K===void 0&&(K=G());return K},
set:function(W){K=W},
configurable:!0,enumerable:!0})};
l9d=function(m,G,K,W){function L(){if(!t){for(var a=new Set,v=_.g(J),I=v.next();!I.done;I=v.next()){I=I.value;for(var Z=_.g(Object.getOwnPropertyNames(I)),k=Z.next();!k.done;k=Z.next()){k=k.value;var z=void 0,X=(z=Object.getOwnPropertyDescriptor(I,k))==null?void 0:z.value;X&&X instanceof Function&&!HL(k)&&(!c[k]||_.F("polymer_forward_method_killswitch"))&&a.add(k)}}v=_.g(Object.entries(Object.getOwnPropertyDescriptors(m.prototype)));for(I=v.next();!I.done;I=v.next())Z=_.g(I.value),I=Z.next().value,
Z=Z.next().value,Z.value instanceof Function&&!HL(I)&&a.add(I);t=a}return t}
S$P(m,G,W==null?void 0:W.providers);DNF(m.prototype,m,!0);var A=Xyo(m,G,K),O,c=(O=m.prototype.properties)!=null?O:{},u,h,J=(h=(u=m.prototype.behaviors)==null?void 0:u.flat(Infinity))!=null?h:[];K=_.g(J);for(O=K.next();!O.done;O=K.next())c=Object.assign({},O.value.properties,c);var N=[].concat(_.Bz(R$M),_.Bz(Object.keys(c).map(function(a){return _.XS(a)}))),D=!1,t;
return{ctor:function(a,v){var I=A(a),Z,k;a=[].concat(_.Bz((Z=W==null?void 0:W.allowedProps)!=null?Z:[]),_.Bz((k=W==null?void 0:W.allowedPropsFromBehaviors)!=null?k:[]));I.allowedProps=a.length>0?a:void 0;Z={};k=_.g(N);for(a=k.next();!a.done;a=k.next())a=a.value,Z[a]=_.Sl(a);I.__dataAttributes=Z;var z=I.ready.bind(I);I.ready=function(){v.beforeReady();z();if(Th(G)&&!D){var X=I.__templateInfo;if(X==null?0:X.hostProps){X=_.g(Object.keys(X.hostProps));for(var f=X.next();!f.done;f=X.next())i1(G,f.value,
"PROPERTY_ACCESS_GET_INTERNAL")}D=!0}};
I._overrideLegacyUndefined=!0;return I},
props:c,observedAttributes:N,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var a=[],v=new Set,I=_.g(Object.keys(c)),Z=I.next();!Z.done;Z=I.next())Z=Z.value,a.push([Z,c[Z].readOnly]),v.add(Z);I=L();Z=_.g(Object.keys(Object.getOwnPropertyDescriptors(m.prototype)));for(var k=Z.next();!k.done;k=Z.next())k=k.value,!UuP(k)||I.has(k)||v.has(k)||(a.push([k,!1]),v.add(k));v=_.g(z$v);for(I=v.next();!I.done;I=v.next())a.push([I.value,!0]);return a},
getPropsToForwardBeforeReady:function(a){for(var v=[],I=_.g(Object.entries(a)),Z=I.next();!Z.done;Z=I.next()){var k=_.g(Z.value);Z=k.next().value;k=k.next().value;if(UuP(Z)&&!(k instanceof Function)&&(v.push([Z,!1]),Th(G))){var z=k=void 0;(z=(k=a)._createPropertyAccessor)==null||z.call(k,Z)}}return v},
shouldForwardProp:UuP,shouldLog:Th}};
S$P=function(m,G,K){Hu9(m,K);m.prototype.behaviors.unshift(BVo);if(DOd()){if(Th(G)){var W;(W=m.prototype).behaviors!=null||(W.behaviors=[]);m.prototype.behaviors.unshift(ayJ())}o$o(m)}_.q(gT.prototype)(m.prototype,"__templateHelpers")};
HL=function(m){return Mfd.has(m)||m.startsWith("__compute__")};
UuP=function(m){return!HL(m)&&!m.startsWith("_")&&!m.endsWith("_")};
KeM=function(m,G){function K(){var D=u();D=_.g(D);for(var t=D.next();!t.done;t=D.next()){var a=_.g(t.value);t=a.next().value;a=a.next().value;TVP(N.prototype,t,a)}W=!0}
var W=!1,L=m.ctor,A=m.getInitialMethods,O=m.observedAttributes,c=m.getPropsToForwardBeforeReady,u=m.getPropsToForwardBeforeRegister,h=m.shouldForwardProp,J=m.shouldLog,N=function(){var D=HTMLElement.call(this)||this;D.didForwardDynamicProps=!1;D.loggingStatus={};W||K();D.inst=L(D,{beforeReady:function(){D.didForwardDynamicProps||(D.forwardDynamicProps(),D.didForwardDynamicProps=!0)}});
D.controllerProxy=FTs(D.inst,G);D.forwardMethods();return D};
_.n(N,HTMLElement);N.prototype.forwardMethods=function(){for(var D=this,t=_.g(this.inst.getExtraMethodsToForward()),a=t.next(),v={};!a.done;v={method$jscomp$65:void 0},a=t.next()){var I=_.g(a.value);a=I.next().value;I=I.next().value;v.method$jscomp$65=I;this[a]=function(Z){return function(){return Z.method$jscomp$65.call.apply(Z.method$jscomp$65,[D.inst].concat(_.Bz(_.mb.apply(0,arguments))))}}(v)}t=_.g(A());
for(v=t.next();!v.done;v=t.next())v=v.value,h(v)&&mHF(this,v),J(G)&&!HL(v)&&iwv(this.inst,v)};
N.prototype.forwardDynamicProps=function(){var D=c(this.inst);D=_.g(D);for(var t=D.next();!t.done;t=D.next()){var a=_.g(t.value);t=a.next().value;a=a.next().value;TVP(this,t,a);J(G)&&!HL(t)&&G8P(this.inst,t)}};
N.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
N.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
N.prototype.attributeChangedCallback=function(D,t,a){this.inst.attributeChangedCallbackWrapper(D,t,a)};
_.e_.Object.defineProperties(N.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return G}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.e_.Object.defineProperties(N,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return O}}});
customElements.define(G,N)};
TVP=function(m,G,K){m.hasOwnProperty(G)||Object.defineProperty(m,G,{get:function(){var W,L=((W=m.is)!=null?W:m.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||i1(L,G,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,W=this.polymerController[G],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,W},
set:function(W){if(!K){var L,A=((L=m.is)!=null?L:m.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||i1(A,G,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=G,this.loggingStatus.bypassProxyController=!0,this.polymerController[G]!==W&&(L={},this.polymerController.setProperties((L[G]=W,L)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
mHF=function(m,G,K){var W=m.polymerController;m[G]=function(){var L=_.mb.apply(0,arguments);m.loggingStatus.currentExternalCall=G;m.loggingStatus.bypassProxyController=!0;var A,O=((A=m.is)!=null?A:m.tagName).toLowerCase();i1(O,G,"PROPERTY_ACCESS_CALL_EXTERNAL");var c;A=(c=K!=null?K:W[G])==null?void 0:c.call.apply(c,[W].concat(_.Bz(L)));m.loggingStatus.currentExternalCall=void 0;m.loggingStatus.bypassProxyController=!1;return A}};
iwv=function(m,G){var K=m.hostElement,W=m[G];m[G]=function(){var L=_.mb.apply(0,arguments);if(K.loggingStatus.currentExternalCall!==G){var A,O=((A=K.is)!=null?A:K.tagName).toLowerCase();i1(O,G,"PROPERTY_ACCESS_CALL_INTERNAL")}return W==null?void 0:W.apply(m,L)}};
G8P=function(m,G){var K=Object.getOwnPropertyDescriptor(m,G);K&&!K.get&&Object.defineProperty(m,G,{get:function(){Q4d(m.hostElement,G);return K.value},
set:function(W){Gg(m.hostElement,G);K.value=W}})};
WeF=function(m){return _.F("poly_si_dom_repeat_detached_fix_killswitch")||m.tagName!=="PS-DOM-REPEAT"?m.tagName==="DOM-REPEAT":!0};
AJV=function(m,G){var K=Leo(m);m instanceof Element&&K.unshift(m);m=_.g(K.filter(WeF));for(var W=m.next();!W.done;W=m.next()){var L=void 0;W=_.g((L=W.value.__instances)!=null?L:[]);for(L=W.next();!L.done;L=W.next())if(L=L.value,L.root){L=Array.from(L.root.children);L=_.g(L);for(var A=L.next();!A.done;A=L.next())K.push.apply(K,_.Bz(AJV(A.value,G)))}}return K.filter(function(O){return O.usePatchedLifecycles&&O.lifecycleIsConnected===G})};
Leo=function(m){var G=null;m instanceof Element?G=Element.prototype.querySelectorAll:m instanceof DocumentFragment&&(G=DocumentFragment.prototype.querySelectorAll);return G?Array.from(G.call(m,"*")):[]};
Io=function(m){_.w_(function(){for(var G=_.g(AJV(m,!1)),K=G.next();!K.done;K=G.next()){K=K.value;K.lifecycleIsConnected=!0;try{var W=void 0,L=void 0,A=void 0,O=void 0;(W=(O=K.polymerController)!=null?O:K)==null||(A=(L=W).connectedCallback)==null||A.call(L)}catch(c){_.am(c)}}})};
jw=function(m){_.w_(function(){for(var G=_.g(AJV(m,!0)),K=G.next();!K.done;K=G.next()){K=K.value;K.lifecycleIsConnected=!1;try{var W=void 0,L=void 0,A=void 0,O=void 0;(W=(O=K.polymerController)!=null?O:K)==null||(A=(L=W).disconnectedCallback)==null||A.call(L)}catch(c){_.am(c)}}})};
u7s=function(){if(!wCV){wCV=!0;var m=[Node];ke&&m.push(ke.Wrapper);var G=Node.prototype.insertBefore,K=Node.prototype.removeChild;m=_.g(m);for(var W=m.next(),L={};!W.done;L={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},W=m.next())W=W.value,L.nativeInsertBefore=W.prototype.insertBefore,W.prototype.insertBefore=function(O){return function(c,u){if(c instanceof DocumentFragment){var h=Array.from(c.children);c=O.nativeInsertBefore.call(this,c,u);
if(this.isConnected&&O.nativeInsertBefore===G)for(u=_.g(h),h=u.next();!h.done;h=u.next())Io(h.value);return c}h=c instanceof Element&&c.isConnected;u=O.nativeInsertBefore.call(this,c,u);h&&jw(c);this.isConnected&&Io(c);return u}}(L),L.nativeAppendChild=W.prototype.appendChild,W.prototype.appendChild=function(O){return function(c){if(c instanceof DocumentFragment){var u=Array.from(c.children);
c=O.nativeAppendChild.call(this,c);if(this.isConnected){u=_.g(u);for(var h=u.next();!h.done;h=u.next())Io(h.value)}return c}u=c instanceof Element&&c.isConnected;h=O.nativeAppendChild.call(this,c);u&&jw(c);this.isConnected&&Io(c);return h}}(L),L.nativeRemoveChild=W.prototype.removeChild,W.prototype.removeChild=function(O){return function(c){var u=c instanceof Element&&c.isConnected,h=O.nativeRemoveChild.call(this,c);
u&&K===O.nativeRemoveChild&&jw(c);return h}}(L),L.nativeReplaceChild=W.prototype.replaceChild,W.prototype.replaceChild=function(O){return function(c,u){if(c instanceof DocumentFragment){var h=Array.from(c.children);
c=O.nativeReplaceChild.call(this,c,u);if(this.isConnected)for(jw(u),u=_.g(h),h=u.next();!h.done;h=u.next())Io(h.value);return c}h=c instanceof Element&&c.isConnected;var J=this.isConnected,N=O.nativeReplaceChild.call(this,c,u);J&&jw(u);h&&jw(c);J&&Io(c);return N}}(L);
m=[Element];ke&&m.push(ke.Wrapper);m=_.g(m);W=m.next();for(L={};!W.done;L={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},W=m.next())W=W.value,W.prototype.before=g9V(W.prototype.before),W.prototype.after=g9V(W.prototype.after),L.nativeReplaceWith=W.prototype.replaceWith,W.prototype.replaceWith=function(O){return function(){var c=_.mb.apply(0,arguments),u=_.g(Owd(c)),h=u.next().value,
J=u.next().value;u=this.isConnected;O.nativeReplaceWith.apply(this,c);c=_.g(J);for(J=c.next();!J.done;J=c.next())jw(J.value);if(u)for(jw(this),h=_.g(h),u=h.next();!u.done;u=h.next())u=u.value,u instanceof Element&&Io(u)}}(L),L.nativeRemove=W.prototype.remove,W.prototype.remove=function(O){return function(){var c=this.isConnected;
O.nativeRemove.call(this);c&&jw(this)}}(L),L.nativeInsertAdjacentElement=W.prototype.insertAdjacentElement,W.prototype.insertAdjacentElement=function(O){return function(c,u){var h=u.isConnected;
c=O.nativeInsertAdjacentElement.call(this,c,u);h&&jw(u);c.isConnected&&Io(c);return c}}(L),L.nativeSetAttribute=W.prototype.setAttribute,W.prototype.setAttribute=function(O){return function(c,u){var h=cJJ(this);
if(!h.usePatchedLifecycles)return O.nativeSetAttribute.call(this,c,u);var J=this.getAttribute(c);O.nativeSetAttribute.call(this,c,u);u=this.getAttribute(c);Yld(h,c,J,u)}}(L),L.nativeRemoveAttribute=W.prototype.removeAttribute,W.prototype.removeAttribute=function(O){return function(c){var u=cJJ(this);
if(!u.usePatchedLifecycles)return O.nativeRemoveAttribute.call(this,c);var h=this.getAttribute(c);O.nativeRemoveAttribute.call(this,c);h!==null&&Yld(u,c,h,null)}}(L),L.nativeToggleAttribute=W.prototype.toggleAttribute,W.prototype.toggleAttribute=function(O){return function(c,u){var h=cJJ(this);
if(!this.usePatchedLifecycles)return O.nativeToggleAttribute.call(this,c,u);var J=this.getAttribute(c),N=J!==null;u=O.nativeToggleAttribute.call(this,c,u);u!==N&&Yld(h,c,J,u?"":null);return u}}(L);
m=[Document,DocumentFragment,Element,ShadowRoot];ke&&m.push(ke.Wrapper);m=_.g(m);for(L=m.next();!L.done;L=m.next())L=L.value,L.prototype.prepend=g9V(L.prototype.prepend),L.prototype.append=g9V(L.prototype.append);(ke==null?void 0:ke.noPatch)===!0&&rJ9();document.readyState==="complete"?Io(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Io(document.body)});
var A=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");A&&A.get&&A.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:A.enumerable,configurable:!0,get:A.get,set:function(O){O||jw(this);A.set.call(this,O);return O}})}};
g9V=function(m){return function(){var G=_.mb.apply(0,arguments),K=_.g(Owd(G)),W=K.next().value;K=K.next().value;m.apply(this,G);G=_.g(K);for(K=G.next();!K.done;K=G.next())jw(K.value);if(this.isConnected)for(W=_.g(W),G=W.next();!G.done;G=W.next())G=G.value,G instanceof Element&&Io(G)}};
rJ9=function(){for(var m=_.g(hNs),G=m.next();!G.done;G=m.next()){G=G.value.prototype;for(var K=_.g(pC9),W=K.next();!W.done;W=K.next()){W=W.value;var L=Object.getOwnPropertyDescriptor(G,W);L&&Object.defineProperty(G,"__shady_native_"+W,L)}}};
Yld=function(m,G,K,W){var L,A;if((L=m.polymerController)==null?0:(A=L.observedAttributes)==null?0:A.includes(G))if(m=m.polymerController,m.attributeChangedCallbackWrapper)m.attributeChangedCallbackWrapper.call(m,G,K,W);else{var O;(O=m.attributeChangedCallback)==null||O.call(m,G,K,W)}};
Owd=function(m){var G=[],K=[];m=_.g(m);for(var W=m.next();!W.done;W=m.next())W=W.value,W instanceof Element&&W.isConnected&&K.push(W),W instanceof DocumentFragment?G.push.apply(G,_.Bz(Array.from(W.children))):G.push(W);return[G,K]};
cJJ=function(m){return!(m instanceof Element)&&m.node instanceof Element?m.node:m};
JJF=function(m,G){var K=G?["children"].concat(_.Bz(G)):["children"];G=[];K=_.g(K);for(var W=K.next();!W.done;W=K.next()){var L=W.value;if(m.hasOwnProperty(L)){W=m[L];W=typeof W==="function"?W():W;W=Array.isArray(W)?W:[W];W=cO(W).flat();if(L!=="children"){L=VM6(L);for(var A=_.g(W),O=A.next();!O.done;O=A.next())O=O.value,O instanceof Element&&O.setAttribute("slot",L)}G.push(W)}}G.length===0?m=[]:(m=cO(_.r("div",null,G)),m=Array.from(m.childNodes));return m};
DHs=function(m,G,K){var W={};_.v4(function(){var L={},A;for(A in G)if(G.hasOwnProperty(A)){var O=void 0,c=void 0;if(!(((O=K.slotProps)==null?0:O.includes(A))||A==="children"||((c=K.callbackProps)==null?0:c.includes(A))||A==="ref")&&(O=_.EZ(G[A]),W[A]!==O)){W[A]=O;c=void 0;var u=(c=m.hostElement)!=null?c:m;!K.skipHostForwardedProps&&Nkv.has(A)&&(u[A]=O);L[A]=O}}J_(function(){if(m.setProperties)m.setProperties(L);else for(var h=_.g(Object.entries(L)),J=h.next();!J.done;J=h.next()){var N=_.g(J.value);
J=N.next().value;N=N.next().value;m[J]=N}})},"n")};
Fe6=function(m,G,K,W){var L=JJF(K,W.slotProps),A=(0,_.yL)(m);L=_.g(L);for(var O=L.next();!O.done;O=L.next())A.appendChild(O.value);DHs(G,K,W);W=_.g(W.callbackProps||[]);L=W.next();for(A={};!L.done;A={kebabEventName:void 0,eventListener:void 0},L=W.next())O=L=L.value,String(L).substring(0,2)==="on"&&K[O]?(A.kebabEventName=VM6(String(L).substring(2)),A.eventListener=K[O],m.addEventListener(A.kebabEventName,A.eventListener),_.sZ(function(J){return function(){m.removeEventListener(J.kebabEventName,J.eventListener)}}(A))):
G[O]=K[O];
if(K.ref){K=_.g(tvV(K.ref));var c=K.next().value,u=K.next().value,h=G.attached.bind(G);G.attached=function(){c(m);h()};
_.sZ(function(){u()})}};
tvV=function(m){if(typeof m==="function"){var G;return[function(K){G=m(K)},
function(){var K;(K=G)==null||K()}]}if(!m.onRender||!m.onUnmount)throw Error("Ug");
return[m.onRender,m.onUnmount]};
QK6=function(m,G){G=G===void 0?{}:G;var K=function(W){var L=document.createElement(m),A;var O=(A=L.polymerController)!=null?A:L;Fe6(L,O,W,G);return L};
K.debugName=m;return K};
bwM=function(m,G,K,W,L){W=W===void 0?{}:W;var A=aIJ,O=!1;A?(O=!0,aIJ=void 0):(o9f=G,A=document.createElement(G),o9f=void 0);var c=A;c.usePatchedLifecycles=!0;c.lifecycleIsConnected=!1;A.loggingStatus={};var u=n9d(m,G,A,W,L);_.sZ(function(){c.lifecycleIsConnected&&(c.lifecycleIsConnected=!1,u.disconnectedCallback())});
O||(A.__noInsertionPoint=!0,Fe6(A,u,K,W));return A};
n9d=function(m,G,K,W,L){L=L===void 0?l9d:L;v9G[G]!=null||(v9G[G]=L(m,G,W==null?void 0:W.getTemplate,W));var A=v9G[G],O=A.ctor;L=A.getInitialMethods;var c=A.getPropsToForwardBeforeReady;m=A.getPropsToForwardBeforeRegister;W=A.shouldForwardProp;var u=A.observedAttributes,h=A.shouldLog,J=O(K,{beforeReady:function(){var N=J;N._takeAttributes?N._takeAttributes():N.setPropertiesFromInitialAttributeValues&&N.setPropertiesFromInitialAttributeValues();N=_.g(c(K.polymerController));for(var D=N.next();!D.done;D=
N.next()){var t=_.g(D.value);D=t.next().value;t=t.next().value;TVP(K,D,t);h(G)&&!HL(D)&&G8P(K.polymerController,D)}K.polymerController=FTs(J,G)}});
K.polymerController=J;K.polymerController.observedAttributes=u;A=_.g(J.getExtraMethodsToForward());for(O=A.next();!O.done;O=A.next())u=_.g(O.value),O=u.next().value,u=u.next().value,mHF(K,O,u);L=_.g(L());for(A=L.next();!A.done;A=L.next())A=A.value,W(A)&&mHF(K,A),h(G)&&!HL(A)&&iwv(J,A);m=_.g(m());for(W=m.next();!W.done;W=m.next())L=_.g(W.value),W=L.next().value,L=L.next().value,TVP(K,W,L);return J};
$Hs=function(m){var G=CD;CD=m;return G};
E99=function(m){if(sKV.has(m)&&CD&&qlP(CD)===m){var G;(G=CD)._numRenders!=null||(G._numRenders=0);CD._numRenders++;if(CD._numRenders>1)throw Error("Vg");return CD}};
II9=function(m){var G=qlP(m);CD!==m&&G.includes("-")&&Hw9.set(m,!0)};
qlP=function(m){var G;return(G=m==null?void 0:m.tagName.toLowerCase())!=null?G:""};
jKF=function(m,G){if(m.componentType===DM)throw Error("Wg");sKV.add(G);var K=function(){var W=HTMLElement.call(this)||this;W.is=G;if(o9f===G)return W.isInert=!0,W;W.createElement();return W};
_.n(K,HTMLElement);K.prototype.createElement=function(){if(!this.isInert){aIJ=this;var W=_.g(x$J(function(){return _.r(m,null)})).next().value;
aIJ=void 0;Qhd(this);return W}};
customElements.define(G,K)};
CQM=function(m,G,K,W,L){m.prototype.is=G;(W==null?0:W.useSink)?k8d(m,G,K,W,L):(K=l9d(m,G,K,W),KeM(K,G));return m};
k8d=function(m,G,K,W,L){u7s();var A=_.P(function(O){return bwM(m,G,O,Object.assign({},W,{getTemplate:K}),L)},"o");
A.debugName=G;jKF(A,G);return A};
Zw9=function(m){return!Vvs.has(m)};
yJv=function(m,G,K,W){function L(){if(!N){for(var D=new Set(dHf),t=_.g(A.behaviors),a=t.next();!a.done;a=t.next()){a=a.value;for(var v=_.g(Object.getOwnPropertyNames(a)),I=v.next();!I.done;I=v.next()){I=I.value;var Z=void 0,k=(Z=Object.getOwnPropertyDescriptor(a,I))==null?void 0:Z.value;k&&k instanceof Function&&(!h[I]||_.F("polymer_forward_method_killswitch"))&&D.add(I)}}t=_.g(Object.entries(Object.getOwnPropertyDescriptors(m.prototype)));for(a=t.next();!a.done;a=t.next())v=_.g(a.value),a=v.next().value,
v=v.next().value,v.value instanceof Function&&D.add(a);N=D}return N}
var A=QHP({is:G,disableElementRegistration:!1,getTemplate:K,providers:W==null?void 0:W.providers,reactivityMode:W==null?void 0:W.reactivityMode},m);if((W==null?0:W.allowedProps)||(W==null?0:W.allowedPropsFromBehaviors)){var O,c;A.allowedProps=[].concat(_.Bz((O=W.allowedProps)!=null?O:[]),_.Bz((c=W.allowedPropsFromBehaviors)!=null?c:[]))}var u=h$v(A,m);G=u.observedAttributes;var h={};K=_.g(A.reactiveSchemas);for(W=K.next();!W.done;W=K.next())if(W=W.value,W.type==="signal")h[W.propertyKey]={readOnly:W.readOnly},
W.readOnly&&(h[Xfv(W.propertyKey)]={readOnly:!0});else if(W.type==="compute"||W.type==="computeWithMethod"||W.type==="redux")h[W.propertyKey]={readOnly:!0};var J=A.reactiveSchemas.length,N;return{ctor:function(D,t){D=new u(D);D.beforeReady=t.beforeReady;return D},
props:h,observedAttributes:G,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var D=[],t=new Set,a=_.g(PQd),v=a.next();!v.done;v=a.next())v=v.value,D.push([v,v!=="observers"&&v!=="properties"]),t.add(v);a=_.g(Object.keys(h));for(v=a.next();!v.done;v=a.next())v=v.value,D.push([v,h[v].readOnly]),t.add(v);a=L();v=_.g(Object.keys(Object.getOwnPropertyDescriptors(m.prototype)));for(var I=v.next();!I.done;I=v.next())I=I.value,!Zw9(I)||a.has(I)||t.has(I)||(D.push([I,!1]),t.add(I));D.push(["allowedProps",
!0]);return D},
getPropsToForwardBeforeReady:function(D){var t=[];D=_.g(Object.keys(D));for(var a=D.next();!a.done;a=D.next()){a=a.value;var v=L();Zw9(a)&&!v.has(a)&&t.push([a,!1])}D=_.g(A.reactiveSchemas.slice(J));for(a=D.next();!a.done;a=D.next())a=a.value,a.type!=="compute"&&a.type!=="computeWithMethod"&&a.type!=="redux"&&a.type!=="signal"||t.push([a.propertyKey,a.type==="signal"?a.readOnly:!0]);return t},
shouldForwardProp:Zw9,shouldLog:Th}};
_.y=function(m,G,K,W){var L,A,O=(A=(L=W)==null?void 0:L.mode)!=null?A:0;W!=null||(W={});var c;(c=W).reactivityMode!=null||(c.reactivityMode=0);return O===1?CQM(m,G,K,Object.assign({},W,{useSink:!0}),yJv):CQM(m,G,K,Object.assign({},W,{useSink:O===2}))};
_.Vz=function(){return function(m,G,K,W){var L,A,O=(A=(L=W)==null?void 0:L.mode)!=null?A:2;W!=null||(W={});var c;(c=W).reactivityMode!=null||(c.reactivityMode=0);if(O===0)throw Error("Xg`"+O);return k8d(m,G,K,W,O===1?yJv:void 0)}};
_.Zh=function(m){return _.F("force_all_poly_si_batches")&&m||document.documentElement.hasAttribute("use-signals")?!0:!m||_.F(m+"_holdback_enabled")&&_.F("kevlar_polysi_holdback")?!1:_.F(m)};
dT=function(m){return m?m.icon?m.icon.iconType.toLowerCase():m.customThumbnail?"member":"":""};
eNs=function(m){if(!m)return"";m=_.g(m);for(var G=m.next();!G.done;G=m.next())if((G=G.value)&&G.liveChatAuthorBadgeRenderer&&(G=dT(G.liveChatAuthorBadgeRenderer))&&G!=="verified")return G;return""};
fIs=function(m,G){if(!m)return null;var K;return((K=m.find(function(W){return W&&W.liveChatAuthorBadgeRenderer?dT(W.liveChatAuthorBadgeRenderer)===G:!1}))==null?void 0:K.liveChatAuthorBadgeRenderer)||null};
_.SlG=function(m){var G=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;m=C7G(m);G=C7G(G);var K=fSF(m.hex);G=fSF(G.hex);var W=G[0]/255;var L=G[1]/255,A=G[2]/255,O=Math.max(W,L,A),c=Math.min(W,L,A),u=0,h=0,J=.5*(O+c);O!=c&&(O==W?u=60*(L-A)/(O-c):O==L?u=60*(A-W)/(O-c)+120:O==A&&(u=60*(W-L)/(O-c)+240),h=0<J&&J<=.5?(O-c)/(2*J):(O-c)/(2-2*J));W=[Math.round(u+360)%360,h,J];K=xHG(K,G);for(m=XCv(m.hex);K<4.5;){m=W[2]>=.5?m.darker((4.5-K)/2):m.brighter((4.5-K)/2);K=m.toString();
L=dNP(K);if(!L.length)throw Error("Zd`"+K);K=L;K=xHG(K,G)}return m.hex()};
xHG=function(m,G){m=_.ofv(m);G=_.ofv(G);return(Math.max(m,G)+.05)/(Math.min(m,G)+.05)};
_.PL=function(m){return"#"+("000000"+(m&16777215).toString(16)).slice(-6)};
_.RN9=function(m){for(var G=0,K=0;K<m.length;K++)G=m.charCodeAt(K)+((G<<5)-G);m="#";for(K=0;K<3;K++)m+=("00"+(G>>K*8&255).toString(16)).slice(-2);return m};
UHG=function(m){m=(m||"").split(":");m.length===1&&m.unshift("yt-icons");m[1]=m[1].toLowerCase();return m};
mxf=function(m,G){var K=(G=G===void 0?!1:G)?zN9:lI9,W=G?Bkd:Mvv;m.getIconNames().forEach(function(L){L=G?L:L.substring(L.indexOf(":")+1);m.name==="yt-icons"?Tkd.add(L):L.includes("-filled")?K.add(L):W.add(L)})};
yz=function(m,G,K,W){K=K===void 0?!1:K;W=W===void 0?!1:W;var L,A,O;return _.Y(function(c){if(c.nextAddress==1)return c.yield(iqs,2);if(W)return c.return(Tkd.has(m));L=K?zN9:lI9;A=K?Bkd:Mvv;return G?(O=m.includes("-filled")?m:m.concat("-filled"),c.return(L.has(O))):c.return(A.has(m))})};
_.ew=function(m){if(GW9(m))return m.toString();var G=K4V.get(m);if(G)return G;G=m.toLowerCase();var K="yt-icons",W=G.replace(/_/g,"-");switch(m){case "MY_CHANNEL":G="account_circle";break;case "ADD_TO_LIBRARY":G="add";break;case "ALERT_WARN_RED":G="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":G="person_music";break;case "BLOCK_USER":G="block";break;case "CAPTIONS":G="closed_caption";break;case "CLOSED_CAPTION":K="av";G="closed-caption";break;case "COLLECTION":K="maps";G="layers";break;case "CONTACT":K=
"icons";G="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":K="yt-studio-system-icons";G=W.split("creator-studio-")[1];break;case "DISMISSAL":G="close";break;case "DO_NOT_DISTURB":G="block";break;case "DOGFOOD":K="icons";G="pets";break;case "DRAFT":G="paper_corner_folded";
break;case "EMPTY_LIKE":G="like_outline";break;case "EXIT_APP":G="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":G=W;break;case "GAMES":K="ytg";G="my-games";break;case "GO_TO_PAGE":G="arrow-forward";break;case "GROUP":K="social";break;case "HIDE":G="not_interested";break;case "INPUT_COMPONENT":K="icons";G="settings-input-component";break;case "KIDS_BLOCK":G="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":K="ytg";G="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":K=
"ytg";G="membership-post-purchase";break;case "MULTIVIEW":G="screen_multi_view";break;case "MY_LOCATION":K="maps";G=W;break;case "NOTIFICATIONS_INBOX":G="NOTIFICATIONS";break;case "NEXT":G="chevron_right";break;case "OFFLINE":G="power-settings-new";break;case "PAUSE":K="miniplayer";break;case "PAYMENT":K="icons";break;case "PHONE_DOWNLOAD":G="phone_download";break;case "PREMIUM_STANDALONE":K="yt-logos";G="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":K="yt-logos";G="premium_standalone_cairo";
break;case "QUESTION_ANSWER":G="question_answer";break;case "REDEEM":K="icons";G="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":G="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":G="library_add";break;case "SCHOOL":K="yt-sys-icons";G="creator_academy";break;case "SETTINGS_LIGHT":G="settings_applications";break;case "SETTINGS_MATERIAL":G="settings";break;case "SEARCH_HISTORY":G="watch_history";break;case "SHOPPING_BAG":G="bag";break;case "SOCIAL":case "PEOPLE":K=
"yt-icons";G="people";break;case "STAFF_PICK":K="ytg";G="spotlight";break;case "START_DVR":G="add";break;case "STOP_DVR":K="av";G="stop";break;case "TAB_LIKED":G="like";break;case "TAB_INBOX":G="mail";break;case "TERMS_OF_SERVICE":K="icons";G="description";break;case "TRENDING":G="fire";break;case "UNBLOCK_USER":G="remove";break;case "UNPLUGGED_DARK_THEME":K="image";G="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":G="live";break;case "UNPLUGGED_SPORTS":K="ytu";G="visibility-off";break;
case "VIDEOS":K="av";G="play-circle-filled";break;case "YOUTUBE":K="yt-logos";G="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":K="yt-logos-ext";G="yt-logo-red-updated";break;case "YOUTUBE_LOGO":K="yt-logos-ext";G="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":K="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":K="shorts";G=W;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":K="yt-sys-icons";G="youtube_improve_tv";break;case "OUTLINE_BAG":K=
"yt-sys-icons";G="bag";break;case "QUEUE_PLAY_LAST":K="yt-sys-icons";G="list_queue_last";break;case "SLASH_CIRCLE_LEFT":G="slash_circle_left";break;case "SPEED_1_POINT_2X":G="1_point_2x";break;case "SPEED_1_POINT_5X":G="1_point_5x";break;case "SPEED_1_POINT_8X":G="1_point_8x";break;case "SPEED_POINT_2X":G="point_2x";break;case "SPEED_POINT_5X":G="point_5x";break;case "SPEED_POINT_8X":G="point_8x";break;case "SPEED_1X":G="1x";break;case "SPEED_2X":G="2x";break;case "TAB_BOOKMARK":G="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":K="yt-sys-icons";G="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":K="yt-sys-icons";G="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":K="yt-sys-icons",G="tic_tac_toe"}G=K+":"+G;K4V.set(m,G);return G};
GW9=function(m){var G;_.F("kevlar_use_wil_icons")?G=!!_.xS().resolve(_.fD).resolveIcon({iconName:m.toString()}):G=!1;return G};
_.Xj=function(m,G,K,W){K=K===void 0?{}:K;W=W===void 0?!1:W;K===null&&(K={});var L=_.lX("kevlar_command_handler_command_banlist");L=_.g(L);for(var A=L.next();!A.done;A=L.next())if(A=m?m.hasOwnProperty(A.value):void 0,A)return!1;L=_.Q(m.commandMetadata,_.RQ);return W&&L!=null&&L.url?!1:!G.disableCommandHandlerOverride&&_.xe.instance?(W=_.xe.instance,K.form||(K.form={element:G}),K.form.element||(K.form.element=G),!K.clickedVisualElement&&G.visualElement&&(K.clickedVisualElement=G.visualElement),W.resolveCommand(m,
K),!0):!1};
W4o=function(m,G){m=Sw(m);for(var K=_.g(m.visibilityMonitorKeys||[]),W=K.next();!W.done;W=K.next())G.unobserveByKey(W.value);m.visibilityMonitorKeys=void 0};
Ro=function(m,G){if(_.gU()){if(_.F("kevlar_vimio_use_shared_monitor"))L4J(m,G.data);else if(!L4J(m,G.data))return;var K=G.data,W=ALM(K);if(_.F("enable_client_ve_spec_logging"))W4o(m,G.observer);else{var L=Sw(m);L.trackedParams&&L.trackedParams!==W&&W4o(m,G.observer)}L=Sw(m);!K||L.data&&L.data===K||(L.data=K);wSo(m,G);L.trackedParams=W}};
wSo=function(m,G){var K=G.observer;if(!K&&_.F("web_skip_missing_vimio_observer")){var W,L;_.nc(new _.cw("VisibilityObserver is not defined.",m.tagName,m.trackedParams,(W=G.data)==null?void 0:W.trackingParams,(L=G.data)==null?void 0:L.loggingDirectives))}else{var A=G.layer,O=G.visibilityCallback||function(){},c=G.prescanCallback,u=Sw(m);
W=[];G.showOption&&W.push(K.observe(m,function(){G.skipLogging&&G.skipLogging()||_.UQ().reportShown(u,void 0,A,7);O(!0)},G.showOption));
G.hideOption&&W.push(K.observe(m,function(){_.UQ().reportHidden(u,void 0,A,7);O(!1)},G.hideOption));
G.prescanOption&&c&&W.push(K.observe(m,function(){c()},G.prescanOption));
u.visibilityMonitorKeys=W}};
L4J=function(m,G){m=Sw(m);if(m.visualElement&&!G)return!0;if(!G)return!1;var K=!1;if(_.F("enable_client_ve_spec_logging")){var W,L;K=!!((W=G.loggingDirectives)==null?0:(L=W.clientVeSpec)==null?0:L.uiType)}W=ALM(G);if(!W&&!K)return!1;_.F("mweb_component_visibility_logging")&&(m.veContainer||(m.veContainer={}),m.veContainer.trackingParams=W);if(m.trackedParams&&m.trackedParams===W)return!1;var A;if(_.F("enable_client_ve_spec_logging")&&((A=m.visualElement)==null?0:A.isClientVe())){var O;A=(O=m.visualElement)==
null?void 0:O.getAsJspb();var c,u,h,J;if(_.Z5(A,2)===((c=G.loggingDirectives)==null?void 0:(u=c.clientVeSpec)==null?void 0:u.uiType)&&_.Z5(A,3,-1)===((h=G.loggingDirectives)==null?void 0:(J=h.clientVeSpec)==null?void 0:J.elementIndex))return!1}if(_.F("enable_client_ve_spec_logging")){var N,D;!m.visualElement&&((N=G.loggingDirectives)==null?0:(D=N.clientVeSpec)==null?0:D.uiType)&&(c=G.loggingDirectives.clientVeSpec,G=c.uiType,O=c.elementIndex,c=c.clientYoutubeData,m.visualElement=_.zg(_.l1(),{veType:G,
elementIndex:O,clientYouTubeData:c}))}return!0};
ALM=function(m){if(m==null?0:m.rendererContext){var G=_.Q(m.rendererContext,_.BL);if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams}return(m==null?0:m.loggingDirectives)?m.loggingDirectives.trackingParams:m==null?void 0:m.trackingParams};
Sw=function(m){var G;return(G=m.polymerController)!=null?G:m};
Ytd=function(m){_.UQ();if(_.kS(Ml().JSC$13053_elementShouldLogGesture).bind(Ml())(m,4)){gIG(m);var G=Oq6(m);cLd.set(m,G)}};
gIG=function(m){cLd.has(m)&&(cLd.get(m).cancel("untrack hover element"),cLd.delete(m))};
Oq6=function(m){var G,K=[],W=!1,L=new _.iO(function(A,O){JO(m,"mouseenter",_.kS(function(){var c,u,h;return _.Y(function(J){if(J.nextAddress==1)return G=(0,_.xD)(),c=rLd(m),K.push(c),u=u2J(m,function(){W=!0;O(Error("Yg"))}),J.yield(c,2);
if(J.nextAddress!=3)return u&&Tg(u),h=htV(m),K.push(h),J.yield(h,3);A();_.ey(J)})}))});
L.then(function(){var A=(0,_.xD)()-G;A=Math.round(A);if(!(500>A||6E5<=A)){var O=m.getScreenLayer?m.getScreenLayer():void 0;O=_.gU(O)||"";var c=pSv(_.UQ(),m);_.bd(O,m.visualElement?m.visualElement:_.m5(c),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:A}})}Ytd(m)},function(){iK&&(iK(),iK=null);
W&&(gIG(m),Ytd(m))});
return L};
rLd=function(m){var G;return(new _.iO(function(K,W){iK=function(){W(Error("Zg"))};
G=_.Fu.debounce(_.kS(function(){Tg(L);K()}),1,100);
var L=_.oi(m,"mousemove",G)})).thenCatch(function(){var K=_.Fu.cancelDebouncedJobMap.get(G);
K&&_.Fu.cancelJob(K)})};
htV=function(m){var G;return(new _.iO(function(K,W){iK=function(){W(Error("$g"))};
G=JO(m,"mouseleave",_.kS(function(){K()}))})).thenCatch(function(){Tg(G)})};
u2J=function(m,G){return JO(m,"mouseleave",_.kS(G))};
NQV=function(m){JLd&&_.Gk.cancel(JLd);JLd=_.Gk.run(function(){_.Zw(m,"yt-visibility-refresh");JLd=0})};
Dxv=function(m){m=Number(m);return"rgba("+[m>>16&255,m>>8&255,m&255,(m>>24&255)/255].join()+")"};
F49=function(m){if(!m)return!1;if(_.Q(m,_.tKG))return!0;var G;if(m=(G=_.Q(m,_.xu))==null?void 0:G.commands)for(G=_.g(m),m=G.next();!m.done;m=G.next())if(_.Q(m.value,_.tKG))return!0;return!1};
QYG=function(m){var G=!0;G=G===void 0?!0:G;if(!m.useSignals&&!m.experimentalPropertiesChanged||_.F("experimental_templating_behavior_nopatch_killswitch")){var K=m._propertiesChanged;m._propertiesChanged=function(W,L,A){G?m.debounceRender():m.doRender();K&&K.call(m,W,L,A)}}};
axf=function(m,G){if(m.useSignals||m.experimentalPropertiesChanged)if(_.F("experimental_templating_behavior_nopatch_killswitch"))m.experimentalPropertiesChanged=function(){};
else return;var K=new Set,W=[m].concat(_.Bz(m.behaviors));W=_.g(W);for(var L=W.next();!L.done;L=W.next()){L=L.value;for(var A in L.properties)K.has(A)||(m._addPropertyEffect(A,"function",G),K.add(A))}};
oI6=function(){var m=Polymer.Element,G=m._prepareTemplate;m._prepareTemplate=function(){G.call(this);var K=this.prototype;if(K.experimentalTemplatingInUse&&K.experimentalTemplatingInUse()&&K.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.am(Error("ah"));else{K=this.template.content.childNodes;for(var W=K.length-1;W>=0;W--){var L=K[W];L.nodeName!=="STYLE"&&L.nodeName!=="LINK"&&L.nodeName!=="SCRIPT"&&L.nodeName!=="#comment"&&L.remove()}}}};
nIo=function(m){var G=!0;G=G===void 0?!0:G;oI6();var K=m.ready;m.ready=function(){this._template=null;K.call(this)};
axf(m,G?m.debounceRender:m.doRender)};
vI9=function(m,G,K){if(K===null||K===void 0)return K;var W=yaf(m.tagName.toLowerCase(),G,function(){throw Error("Vb");});
if(W===null)return K;W=bqo[W];var L;if((L=W.isUnwrappable)==null?0:L.call(W,K)){if(W.unwrap)return W.unwrap(K);throw Error("dh");}return W.filterString?W.filterString(m.tagName,G,String(K)):K};
$xP=function(m,G,K){var W=G[G.length-1]!=="$";K=vI9(m,G,K);W?m[G]=K:(W=K==null?null:String(K),jJ(m,G.slice(0,-1),W))};
W8=function(m){_.F("mweb_after_render_to_scheduler")?_.Fu.addJob(function(){try{m()}catch(G){_.KN(G)}},8):(sYo.length===0&&requestAnimationFrame(function(){setTimeout(function(){var G=sYo.slice();
sYo.length=0;G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;try{K()}catch(W){_.KN(W)}}})}),sYo.push(m))};
qt9=function(m){if(m){var G=m.component;if(G){var K;G==null||(K=G.events)==null||K.publish("DISCONNECTED");var W;G==null||(W=G.onDisconnected)==null||W.call(G)}var L,A;(L=m.__spec)==null||(A=L.didUnmount)==null||A.call(L);for(G=0;G<m.childNodes.length;G++)qt9(m.childNodes[G])}};
_.LN=function(m,G,K){K===void 0?delete m[G.name]:m[G.name]=K};
_.A$=function(m){var G={androidIncludeFontPadding:!1},K=0,W=[],L=[],A=[];if(m.simpleText)return G.content=m.simpleText,G;if(m.runs===void 0)return G.content="",G;m=_.g(m.runs);for(var O=m.next();!O.done;O=m.next()){O=O.value;var c=O.text,u=void 0,h=(u=c)==null?void 0:u.length;if(c&&h){W.push(c);if(O.bold||O.italics||O.strikethrough||O.underline||O.textColor!=null&&O.textColor!==0||O.deemphasize){c=L;u=c.push;var J={startIndex:K,length:h};O.bold&&(J.weightLabel="FONT_WEIGHT_MEDIUM");O.italics&&(J.italic=
!0);O.strikethrough&&(J.strikethrough="LINE_STYLE_SINGLE");O.underline&&(J.underline="LINE_STYLE_SINGLE");O.textColor!=null&&O.textColor!==0?document.documentElement.hasAttribute("dark")?J.fontColor=O.darkModeTextColor||O.textColor:J.fontColor=O.textColor:O.deemphasize&&(document.documentElement.hasAttribute("dark")?J.fontColor=parseInt("ff"+ZVV("#aaa").substring(1),16):J.fontColor=parseInt("ff"+ZVV("#606060").substring(1),16));u.call(c,J)}O.navigationEndpoint&&(c=A,u=c.push,J={startIndex:K,length:h,
onTap:{innertubeCommand:O.navigationEndpoint}},O.loggingDirectives&&_.LN(J,EId,O.loggingDirectives),u.call(c,J));K+=h}}G.content=W.join("");G.styleRuns=L.length?L:void 0;G.commandRuns=A.length?A:void 0;return G};
IxG=function(m){if(m==null||!m.runs)return!0;m=_.g(m.runs);for(var G=m.next();!G.done;G=m.next())if(G=G.value,G.bracket||G.errorUnderline||G.deemphasize||_.Q(G,wn)||_.Q(G,HqP))return!1;return!0};
jYF=function(m,G){return function(K){var W=G.unit;if(W!==K)throw Error("gh`"+m+"`"+W+"`"+K);return G}};
gn=function(m){if(!((m==null?0:m.value)&&(m==null?0:m.unit)))return"";switch(m.unit){case "DIMENSION_UNIT_FRACTION":var G="%";break;default:G="px"}m=m.value;G==="%"&&(m*=100);return""+m+G};
kWF=function(m){try{return m()}catch(G){_.nc(G)}};
_.c8=function(m){var G=_.Q(m,_.Oh);if(G)return G;if((G=_.Q(m,CIJ))&&G.commands)return VKd(G.commands);if((G=_.Q(m,Zqv))&&G.commands)return VKd(G.commands);if((m=_.Q(m,dxd))&&m.identifier&&m.command&&(PIM||(PIM=[]),!PIM.includes(m.identifier)))return PIM.push(m.identifier),_.Q(m.command,_.Oh)};
VKd=function(m){if(m.length!==0){var G=[];m=_.g(m);for(var K=m.next();!K.done;K=m.next())(K=_.c8(K.value))&&G.push(K);return{commandExecutorCommand:{commands:G}}}};
_.rn=function(m){var G=m.defaultTarget,K=m.elementConfig,W=m.elementsCommand,L=m.skipOnClick,A=m.forceNewState,O=m.additionalCommandArgs,c=m.innertubeCommand||_.c8(W);if(c){m={};var u=yLF(c);W=u.navigatingCommand;u=u.href;W&&u?(m.href$=u,etG(m,W,u,G),_.F("web_atagconfig_pointerdown")&&fxP(m,W),A&&(m["force-new-state$"]=!0)):(m.role$="button",m.href$="javascript:void(0);");_.Q(c,xxf)&&(m["aria-haspopup$"]=!0);L||(m.onclick=function(h){var J={};if(XSP(h)){var N=(O==null?void 0:O.clickedVisualElement)||
(O==null?void 0:O.getClickedVisualElement)&&O.getClickedVisualElement();N&&(J={clickedVisualElement:N});J=Object.assign({},{form:{element:h.target,event:h,createScreenConfig:J}},O);h.preventDefault();_.YE(c,J)}});
return Object.assign({},K,m)}};
StG=function(m){if(m.length){if(m.length===1)return m[0];var G={};_.LN(G,_.xu,{commands:m});return G}};
uK=function(m){return m&&m.href$!=="javascript:void(0);"};
yLF=function(m){var G,K=((G=_.Q(m,_.xu))==null?void 0:G.commands)||[m];m=_.g(K);for(G=m.next();!G.done;G=m.next()){G=G.value;var W=void 0,L=void 0;K=(L=_.Q((W=G)==null?void 0:W.commandMetadata,_.RQ))==null?void 0:L.url;_.F("web_remove_web_navigation_endpoint_data")||(W=void 0,K=K||((W=_.Q(G,RtP))==null?void 0:W.url));if(K&&K!=="/service_ajax"){if(W=_.lg(K,Uxf))return m=_.Ue(W),{navigatingCommand:G,href:m};_.nc(new _.cw("AttributedString URL could not be sanitized",K))}}return{}};
XSP=function(m){return m.button!==void 0?m.button===0&&!(m.shiftKey||m.altKey||m.metaKey||m.ctrlKey):!(m.shiftKey||m.altKey||m.metaKey||m.ctrlKey)};
etG=function(m,G,K,W){K=!e1(K);var L,A,O;if((L=_.Q(G,_.S8))!=null&&L.nofollow||(A=_.Q(G,_.QQ))!=null&&A.nofollow||(O=_.Q(G,_.H$))!=null&&O.nofollow||K)m.rel$="nofollow";var c;G=((c=_.Q(G,_.H$))==null?void 0:c.target)==="TARGET_NEW_WINDOW"?"_blank":W===void 0?"":W;m.target$=G};
fxP=function(m,G){G.clickTrackingParams&&(m.params={itct:G.clickTrackingParams});m.onpointerdown=function(K){zt6(K)};
m._data=G};
lxf=function(m){(m.loggingUrls||[]).forEach(function(G){IR(G.baseUrl,G.attributionSrcMode)})};
zt6=function(m){var G=m.currentTarget;m=kWF(function(){return G.href});
var K=G.params;m&&_.nJ(m,K||{},8,!0)};
_.h$=function(m,G){(m=_.c8(m))&&_.YE(m,G)};
_.YE=function(m,G){ots(function(K){G?K.resolveCommand(m,G):K.resolveCommand(m)})};
m4J=function(m,G){var K=["yt-core-attributed-string__link"];G!=null&&G.noLinkColor||((G==null?0:G.isOverlay)?K.push("yt-core-attributed-string__link--overlay-call-to-action-color"):K.push("yt-core-attributed-string__link--call-to-action-color"),(G==null?0:G.linkInheritColor)&&K.push("yt-core-attributed-string--link-inherit-color"));K={className:K.join(" "),tabindex$:"0"};var W=m.onTap||m.onLongPress;if(!W)return K;var L=BQd(m);L&&(K["aria-label$"]=L);G=_.rn({elementsCommand:W,elementConfig:K,skipOnClick:!(G==
null||!G.skipOnClick),forceNewState:!0});m.onLongPress&&(W=new MKf(function(){var A=_.c8(m.onLongPress);A&&_.xS().resolve(_.S1).resolveCommand(A)}),G&&TQG(W,G));
return G||K};
BQd=function(m){var G,K;return(G=m.onTapOptions)==null?void 0:(K=G.accessibilityInfo)==null?void 0:K.accessibilityLabel};
ied=function(m){var G=m;m<=16777215&&(G+=parseInt("ff000000",16));return _.ce(G)};
GTv=function(m){var G=m.isDarkTheme;var K=m.extension;m=m.runColor;var W=void 0;if(K=K==null?void 0:K.colorMap){G=G?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";K=_.g(K);for(var L=K.next();!L.done;L=K.next())if(L=L.value,G===L.key){W=L.value;break}}W==null&&m&&(W=m);if(W)return ied(W)};
pN=function(m){var G=m.config;var K=m.image;var W=m.imageConfig;var L=m.imageWrapperConfig;var A=m.run;var O=m.tag;var c=m.textLength;var u=m.startIndex===void 0?0:m.startIndex;m=m.length;u===void 0&&(u=0);A={run:A,startIndex:u,endIndex:m!==void 0?u+m:c,tag:O};K&&(A.image=K);W&&(A.imageConfig=W);L&&(A.imageWrapperConfig=L);G&&(A.config=G);return A};
KAd=function(m,G){if(m.weight)return m.weight;switch(m.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 G?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
WA9=function(m){switch(m){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"}};
LAJ=function(m){switch(m){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"}};
DJ=function(m,G,K){var W=G;m.content&&K&&(K=m.content.indexOf("\n"),K!==-1&&(W=Math.min(G,K)));if(!m.content||m.content.length<=W)G=m;else if(m.attachmentRuns||m.commandRuns||m.decorationRuns||m.styleRuns||m.paragraphStyleRuns){G=J$(m.content,W);K=W;var L=m.attachmentRuns;if(L){var A=[];L=_.g(L);for(var O=L.next();!O.done;O=L.next())O=Object.assign({},O.value),O.startIndex===void 0||O.startIndex>=K||(O.length||(O.length=0),O.length+O.startIndex>K&&(O.length=K-O.startIndex),A.push(O));K=A}else K=void 0;
A=AyJ(W,m.commandRuns);L=W;var c=m.decorationRuns;if(c){O=[];c=_.g(c);for(var u=c.next();!u.done;u=c.next()){u=u.value;var h=_.Q(u.textDecorator,Ny);if(h&&h.startIndex!==void 0&&!(h.startIndex>=L)){u=Object.assign({},u,{textDecorator:{highlightTextDecorator:Object.assign({},h)}});h=_.Q(u.textDecorator,Ny);if(!h.length||h.length+h.startIndex>L)h.length=L-h.startIndex;O.push(u)}}L=O}else L=void 0;O=AyJ(W,m.styleRuns);if(c=m.paragraphStyleRuns)for(m=[],c=_.g(c),u=c.next();!u.done;u=c.next()){var J=u.value;
u=Object.assign({},J);if(!(u.startIndex===void 0||u.startIndex>=W)){if(!u.length||u.length+u.startIndex>W)u.length=W-u.startIndex;h=[];var N=void 0,D=void 0;if((N=J)==null?0:(D=N.listGroup)==null?0:D.listItems)for(J=_.g(J.listGroup.listItems),N=J.next();!N.done;N=J.next())if(N=Object.assign({},N.value),!(N.startIndex===void 0||N.startIndex>=W)){if(!N.length||N.length+N.startIndex>W)N.length=W-N.startIndex;h.push(N)}h.length>0&&(u.listGroup||(u.listGroup={}),u.listGroup=Object.assign({},u.listGroup,
{listItems:h}));m.push(u)}}else m=void 0;G={content:G,attachmentRuns:K,commandRuns:A,decorationRuns:L,styleRuns:O,paragraphStyleRuns:m}}else G=Object.assign({},m,{content:J$(m.content,W)});return G};
AyJ=function(m,G){if(G){var K=[];G=_.g(G);for(var W=G.next();!W.done;W=G.next())if(W=Object.assign({},W.value),!(W.startIndex===void 0||W.startIndex>=m)){if(!W.length||W.length+W.startIndex>m)W.length=m-W.startIndex;K.push(W)}return K}};
J$=function(m,G){var K=G,W;if(W=K>0)W=m.charCodeAt(K-1),W=W>=55296&&W<=56319;W&&(K=m.charCodeAt(K),W=K>=56320&&K<=57343);W&&--G;return m.substring(0,G)};
_.t$=function(m){return(m==null?void 0:m.content)!==void 0};
Oed=function(m){return function(G){var K=m.run;(K.onTap!==void 0||K.onLongPress!==void 0)&&_.Q(K,EId)&&Ro(G,{data:{loggingDirectives:_.Q(K,EId)},observer:_.xS().resolve(yb),hideOption:wDd,showOption:gHs,layer:G.layer})}};
cyJ=function(m){return function(G){for(var K in m)(ZC[K]||ZC[kO["default"]])(G,K,m[K])}};
YjJ=function(m,G,K,W){for(var L=_.g(m.parts),A=L.next();!A.done;A=L.next()){A=A.value;if(typeof A==="string")throw Error("ih");if(A.start<=G&&K<=A.end){YjJ(A,G,K,W);return}}m.parts.push({data:W,parts:[],start:G,end:K})};
ryM=function(m,G){for(var K=G.parts.length;K>=0;K--){var W=G.parts[K],L=G.parts[K-1],A=K===G.parts.length?G.end:W.start;L=K===0?G.start:L.end;A!==L&&G.parts.splice(K,0,m.slice(L,A));W&&ryM(m,W)}};
udJ=function(m){m.sort(function(G,K){if(G.startIndex<K.startIndex)return-1;if(K.startIndex<G.startIndex)return 1;G=G.endIndex-G.startIndex;K=K.endIndex-K.startIndex;return G>K?-1:K>G?1:0})};
_.hsd=function(m){var G=m.thumbnails;if(G){m={sources:[]};G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W={};W.url=K.url;W.width=K.width;W.height=K.height;m.sources.push(W)}return m}};
pDf=function(m,G,K,W){if(!G)return m.length>=1?m[m.length-1]:null;if(W)for(var L=_.g(m),A=L.next();!A.done;A=L.next()){A=A.value;var O=void 0,c=(O=A.url)==null?void 0:O.indexOf(W);if(c!==void 0&&c>=0)return A}W=_.g(m);for(L=W.next();!L.done;L=W.next())if(L=L.value,L.width&&L.height&&(K&&L.width>=G||!K&&L.height>=G))return L;for(G=m.length-1;G>=0;G--)if(K&&m[G].width||!K&&m[G].height)return m[G];return m[0]};
_.Jyd=function(m){var G;return(m=(G=m.sources)==null?void 0:G[0])?m.width/m.height:0};
_.NXP=function(m){if(m.sources){m=_.g(m.sources);for(var G=m.next();!G.done;G=m.next()){G=G.value;var K=void 0;if((K=G.clientResource)==null?0:K.imageName)return G}}};
tYV=function(m){var G={};m=_.Q(m.processor,D4V);var K=(m=m==null?void 0:(K=m.imageTint)==null?void 0:K.color)?_.ce(m):void 0;K&&(G.color=K);return G};
FAd=function(m){var G;if((G=m.clientResource)!=null&&G.imageColor)return _.ce(m.clientResource.imageColor)};
_.avJ=function(m,G,K,W,L,A,O){if(!G||G.length===0||G[0].clientResource)return null;if(K&&G[0].url)return G[0].url;W===void 0&&(W=!0);if(W){var c;m=QDv*(L||(m==null?void 0:(c=m.getBoundingClientRect())==null?void 0:c.width)||0)}else{var u;m=QDv*(A||(m==null?void 0:(u=m.getBoundingClientRect())==null?void 0:u.height)||0)}G=pDf(G,m,W,O);return(G==null?0:G.url)?G.url:(G==null?0:G.imageData)?G.imageData:null};
oHJ=function(m,G,K){K=K?[K]:[];m.opacity&&K.push("opacity: "+m.opacity+";");G&&m.placeholderColor?(m=_.ce(m.placeholderColor),K.push("background-color: "+m+";")):K.push("background-color: transparent;");return K.join(" ")};
nH6=function(m,G,K,W,L){var A=["ytCoreImageHost"];G&&A.push(G);K||A.push("ytCoreImageFillParentHeight");W||A.push("ytCoreImageFillParentWidth");switch(m.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":A.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":A.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":A.push("ytCoreImageContentModeCenter");break;default:A.push("ytCoreImageContentModeScaleToFill")}m.flipForRtlLayout&&A.push("ytCoreImageFlipRtl");
switch(L){case "TOP_START":var O;A.push(((O=document.body)==null?void 0:O.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return A.join(" ")};
vH9=function(m){var G;if(m==null?0:(G=m.clientResource)==null?0:G.imageName){var K;m=(K=m.clientResource)==null?void 0:K.imageName;a:{switch(m){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":K="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":K="yt-logos-ext:yt-logo-updated";break a}K=void 0}return K||bed.get(m)||m}};
qjP=function(m){return _.F("mweb_wiz_skip_render")?$4d(m):sDV(m)};
$4d=function(m){return function(G){var K=uSs("wink-root");P4=CT.lastChild;hMd();y3d(K,_.r(m,G))}};
sDV=function(m){var G=G===void 0?!1:G;return function(K){if(!G||!_.F("mweb_skip_keto_to_c3_if_no_data")||K.data!==void 0){var W=lM(!1);try{var L=K.children;_.F("mweb_render_outside_patch_killswitch")||CT?L?Vb(_.r(m,K,L)):Vb(_.r(m,K)):_.nc(new _.cw("ketoToC3 called outside of a patch",{tagName:m.TAG_NAME}))}finally{lM(W)}}}};
EHP=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
IvP=function(m,G){m.onViewportEntered=G;Heo.observe(m)};
jDG=function(){var m={rootMargin:"10%",threshold:.01};_.F("mweb_enable_set_io_root_to_null_safari")?m.root=null:_.F("mweb_enable_set_io_root_to_body_safari")&&(m.root=document.body);return new IntersectionObserver(function(G,K){G.filter(function(W){return W.intersectionRect.height>0}).forEach(function(W){W=W.target;
if(!_.F("mweb_enable_only_update_image_when_connected")||W.isConnected!==!1){var L;(L=W.onViewportEntered)==null||L.call(W);K.unobserve(W)}})},m)};
kT9=function(m,G,K,W,L){function A(){if(W){var c=W.loadedClass,u=W.notifyOnUnloaded;c&&_.Fm(m,c);u&&m.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function O(){var c=K(G,m);c&&m.getAttribute("src")!==c&&(_.F("mweb_enable_only_update_image_when_connected")&&m.isConnected===!1||c===m.src||(m.src=c),A())}
L=L===void 0?!0:L;m.removeAttribute("src");A();G&&(L?IvP(m,O):O())};
C89=function(m,G,K){if(!G)return!1;G=K(G,m);K=m.getAttribute("src");return G&&G===K&&m.complete};
VY6=function(m,G){for(var K in G)K==="className"?m.className=G[K]:(ZC[K]||ZC[kO.default])(m,K,G[K])};
d4P=function(m,G,K){K=K===void 0?!1:K;var W=m.sources!==void 0?m:_.hsd(m);if(W){var L=G.onload;G.onload=function(h){var J=h.target;K&&J.naturalWidth===120||_.QO(J,"ytCoreImageLoaded");G.notifyOnLoaded&&J.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));L==null||L(h)};
G.targetWidth&&G.preserveWidth&&(G.width=G.targetWidth);G.targetHeight&&G.preserveHeight&&(G.height=G.targetHeight);var A=_.NXP(W),O=A&&vH9(A),c=tYV(W);if(O)return(m=FAd(A)||c.color)&&(G.color=m),{type:"icon",iconName:O,config:Object.assign({},G,G.alt?{}:{"aria-hidden$":"true"},{"aria-label$":G.alt,role:"img"})};if(m.sources===void 0){G.alt=m.accessibility&&m.accessibility.accessibilityData&&m.accessibility.accessibilityData.label||G.alt;G.style$=oHJ(m,G.shouldShowPlaceholder,G.style$);var u;G.isPreloaded=
!((u=_.Q(m,Zed))==null||!u.isPreloaded)}G.contentMode&&!W.contentMode&&(W.contentMode=G.contentMode);G.className=nH6(W,G.className,G.preserveHeight,G.preserveWidth,G.objectPosition);G.loadedClass="ytCoreImageLoaded";return{type:"image",image:W,config:G}}};
_.aC=function(){var m=_.mb.apply(0,arguments);return _.aP(P8d,function(G){var K=m.map(function(W){return W==null?void 0:W(G)});
return function(){return void K.forEach(function(W){return void(W==null?void 0:W())})}})};
yy6=function(m,G){var K=G==null?void 0:G.initial;return _.pT(function(){_.EZ(!0);return K=m(K)},{equals:G==null?void 0:G.isEqual},"rSlKsc")};
esf=function(m,G){if(m===G)return!0;if(m===void 0||G===void 0)return!1;var K,W,L,A,O,c,u,h;return m.content===G.content&&((K=m.styleRuns)==null?void 0:K.length)===((W=G.styleRuns)==null?void 0:W.length)&&((L=m.commandRuns)==null?void 0:L.length)===((A=G.commandRuns)==null?void 0:A.length)&&((O=m.attachmentRuns)==null?void 0:O.length)===((c=G.attachmentRuns)==null?void 0:c.length)&&((u=m.decorationRuns)==null?void 0:u.length)===((h=G.decorationRuns)==null?void 0:h.length)};
x4f=function(m){return m.parts.map(fvV)};
fvV=function(m){if(typeof m==="string")return m;var G=m.data;m=G.image!==void 0&&G.imageConfig!==void 0?_.r("span",{el:_.aC(cyJ(m.data.imageWrapperConfig))},_.r(_.oC,Object.assign({},{data:m.data.image},m.data.imageConfig))):_.r(m.data.tag,{el:_.aC(Oed(m.data),cyJ(m.data.config))},m.parts.map(fvV));return cO(m)};
XDd=function(m,G){return m===G?!0:m===void 0||G===void 0?!1:m.noStyleRuns===G.noStyleRuns&&m.noLinkColor===G.noLinkColor&&m.noEndpoints===G.noEndpoints&&m.headerRuns===G.headerRuns&&m.isOverlay===G.isOverlay&&m.linkInheritColor===G.linkInheritColor&&m.userInput===G.userInput&&m.isHeadline===G.isHeadline};
Sjo=function(m){return function(){var G,K,W,L,A,O,c,u,h,J,N,D,t,a;return{ariaLabel:(G=m.ariaLabel)==null?void 0:G.call(m),className:(K=m.className)==null?void 0:K.call(m),ellipsisTruncate:(W=m.ellipsisTruncate)==null?void 0:W.call(m),isOverlay:(L=m.isOverlay)==null?void 0:L.call(m),linkInheritColor:(A=m.linkInheritColor)==null?void 0:A.call(m),noEndpoints:(O=m.noEndpoints)==null?void 0:O.call(m),noStyleRuns:(c=m.noStyleRuns)==null?void 0:c.call(m),noLinkColor:(u=m.noLinkColor)==null?void 0:u.call(m),
noPreWrap:(h=m.noPreWrap)==null?void 0:h.call(m),noWrap:(J=m.noWrap)==null?void 0:J.call(m),skipOnClick:(N=m.skipOnClick)==null?void 0:N.call(m),userInput:(D=m.userInput)==null?void 0:D.call(m),headerRuns:(t=m.headerRuns)==null?void 0:t.call(m),isHeadline:(a=m.isHeadline)==null?void 0:a.call(m)}}};
U46=function(m,G){m=new Rs6(m,G);_.am(m);throw m;};
zsF=function(m,G,K){var W=$Hs(m);m._numRenders=0;try{var L=x$J(function(){return _.r(G,Object.assign({},K))})}catch(O){var A=function(c){c.args||(c.args=[]);
c.args.push("Error in web component wrapper");c.args.push(m.tagName.toLowerCase());return c};
_.om(O instanceof Error?A(O):new Rs6("Wiz rendering error",m.tagName.toLowerCase()));throw O;}finally{$Hs(W)}return L};
_.sh=function(m,G,K){function W(J){var N={};J=_.g(J);for(var D=J.next();!D.done;D=J.next()){D=D.value;var t=void 0,a=void 0,v=void 0,I=_.Sl((v=(a=(t=D).getAttribute)==null?void 0:a.call(t,"slot"))!=null?v:"children");if(t=N[I])t.push(D);else if(I in A||I==="children")N[I]=[D]}J=_.g(Object.keys(N));I=J.next();for(D={};!I.done;D={content$jscomp$62:void 0},I=J.next())I=I.value,I!=="children"&&(D.content$jscomp$62=N[I],N[I]=function(Z){return function(){return Z.content$jscomp$62}}(D));
return N}
K=K===void 0?{}:K;m.debugName=G+" (CoW)";var L,A=(L=K.props)!=null?L:{};sKV.add(G);var O=lvd();L=function(){var J=O.apply(this,arguments)||this;J.rawProps={};J.queuingRender=!1;J.dispose=function(){};
J.isWebComponentWrapper=!0;J.isReparenting=!1;J.hasRendered=!1;return J};
_.n(L,O);L.prototype.render=function(){this.hasRendered=!0;for(var J=_.g([].concat(_.Bz(this.attributes))),N=J.next();!N.done;N=J.next())N=N.value,N.name!=="slot"&&N.name!=="hidden"&&this.removeAttribute(N.name);J=Object.assign({},this.componentProps,this.slotProps);N=_.g(zsF(this,m,J));J=N.next().value;N=N.next().value;!(J[0]instanceof Element)||J.length>1?U46("Wrapped Wiz components must return a single root element.",G):(J=J[0].tagName.toLowerCase(),J!==G&&U46("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(J+" !== '"+G),G),this.dispose=N)};
L.prototype.setUpProps=function(){for(var J=this.rawProps,N=this.attributes,D=_.g(Object.keys(A)),t=D.next();!t.done;t=D.next()){t=t.value;var a=void 0;((a=this)==null?0:a[t])&&this[t]!==BXs&&J[t]===void 0&&(J[t]=this[t],(a=Object.getOwnPropertyDescriptor(this.constructor.prototype,t))&&Object.defineProperty(this,t,a))}D=_.g(N);for(t=D.next();!t.done;t=D.next()){a=t.value;t=_.Sl(a.name);var v=t==="class"&&!N.getNamedItem("class-name");if(t in A||v)a=a.value===""||a.value==="true"?!0:a.value==="false"?
!1:isNaN(Number(a.value))?a.value:Number(a.value),t!=="class"||J.className?J[t]=a:J.className=a}N={};for(var I in A)A[I]!==_.nN&&A[I]!==MYG&&(J[I]instanceof Function&&U46("Function props must be configured as STATIC, not SIGNAL.",G),t=_.g(_.g_(J[I],void 0,"thC4wf")),D=t.next().value,t=t.next().value,N[I]=t,J[I]=D);J=_.g([J,N]);this.componentProps=J.next().value;this.setters=J.next().value;this.slotProps=W(this.childNodes)};
L.prototype.connectedCallback=function(){Hw9.has(this)||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in A&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
L.prototype.disconnectedCallback=function(){if(!Hw9.has(this)){var J;a:{if(_.bK)for(J=this;J;){if(_.$E.has(J)){J=!0;break a}J=J.parentElement}J=!1}if(J)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){J=_.g([].concat(_.Bz(this.attributes)));for(var N=J.next();!N.done;N=J.next()){N=N.value;var D=void 0;N.name==="slot"||N.name==="hidden"&&((D=K.unsafeExternallySettableAttributes)==null?0:D.has("hidden"))||this.removeAttribute(N.name)}}this.innerText="";Qhd(this)}}};
L.prototype._setPendingPropertyOrPath=function(){};
L.prototype.notifyPath=function(){};
_.e_.Object.defineProperties(L.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var c=_.g(Object.keys(A)),u=c.next(),h={};!u.done;h={prop$jscomp$109:void 0},u=c.next())h.prop$jscomp$109=u.value,u=void 0,((u=K.legacyPolymer)==null?0:u.forwardHostProps)&&Nkv.has(h.prop$jscomp$109)||Object.defineProperty(L.prototype,h.prop$jscomp$109,{set:function(J){return function(N){var D=this;Hw9.has(this)||(this.setters?J_(function(){var t,a;return void((a=(t=D.setters)[J.prop$jscomp$109])==null?void 0:a.call(t,N))}):(this.rawProps[J.prop$jscomp$109]=N,this.queuingRender&&J.prop$jscomp$109===
"data"&&N!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(h),
get:TXG.has(h.prop$jscomp$109)?void 0:function(){return BXs}});
customElements.define(G,L)};
_.mnP=function(m,G){return(m=_.qy(m,G))?_.Ue(_.MI(m)):null};
_.Eh=function(m){if(m=_.qy(m,Number.MAX_VALUE,void 0,"width"))return _.MI(m)};
_.qy=function(m,G,K,W){W=W===void 0?"width":W;if(!m||!m.length)return null;if(_.F("kevlar_tuner_should_always_use_device_pixel_ratio")){var L=window.devicePixelRatio;_.F("kevlar_tuner_should_clamp_device_pixel_ratio")?L=Math.min(L,_.U8("kevlar_tuner_clamp_device_pixel_ratio")):_.F("kevlar_tuner_should_use_thumbnail_factor")&&(L=_.U8("kevlar_tuner_thumbnail_factor"));iEM=L}else iEM||(iEM=window.devicePixelRatio);L=iEM;_.F("kevlar_tuner_should_always_use_device_pixel_ratio")?G*=L:L>1&&(G*=L);if(_.F("kevlar_tuner_min_thumbnail_quality"))return m[0].url||
null;L=m.length;if(_.F("kevlar_tuner_max_thumbnail_quality"))return m[L-1].url||null;if(K)for(var A=0;A<L;A++)if(m[A].url.indexOf(K)>=0)return m[A].url||null;for(K=0;K<L;K++)if(m[K][W]>=G)return m[K].url||null;for(G=L-1;G>0;G--)if(m[G][W])return m[G].url||null;return m[0].url||null};
WJv=function(){H8.size?setTimeout(function(){IC(GSd)},0):KJ6=0};
GSd=function(){var m=(0,_.xD)(),G=null,K=!1;H8.forEach(function(L){L.loaded=!0;L.loadTime=m;L.pendingPaint=!1;var A=LJG.get(L);A&&A.resolve(m);G=L;K||!L.ftlEligible&&L.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(K=!0)});
var W;((W=G)==null?0:W.markDirty)&&G.markDirty();H8.clear();KJ6=0;K&&ANM(m)};
w7d=function(m){H8.add(m);m.pendingPaint=!0;KJ6||(KJ6=_.jA(_.Fu,WJv))};
gpd=function(m){m.loaded=!1;m.loadTime=Infinity;var G=LJG.get(m);G&&(G.reject(Error("oh")),LJG.delete(m));m.pendingPaint&&(H8.delete(m),m.pendingPaint=!1)};
_.OEd=function(m){var G=m.indexOf(":");return G===-1?{originalName:m}:{originalName:m.substring(0,G),datasyncId:m.substring(G+1)}};
_.YFo=function(){return _.Y(function(m){if(cN9!==void 0)return m.return(cN9);cN9=new Promise(function(G){var K;return _.Y(function(W){switch(W.nextAddress){case 1:return _.IO(W,2),W.yield(_.kE.open("test-only"),4);case 4:return W.yield(_.kE.delete("test-only"),5);case 5:_.IG(W,3);break;case 2:if(K=_.ye(W),K instanceof Error&&K.name==="SecurityError")return G(!1),W.return();case 3:G("caches"in window),_.ey(W)}})});
return m.return(cN9)})};
hQ6=function(){return _.Y(function(m){if(m.nextAddress==1)return m.yield(_.YFo(),2);if(!m.yieldResult)return m.return(void 0);rN6||(rN6=new uyd);return m.return(rN6)})};
p7G=function(m){var G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return A.yield(hQ6(),2);case 2:G=A.yieldResult;if(!G)throw Error("qh");return A.yield(G.open("yt-player-local-img"),3);case 3:return K=A.yieldResult,A.yield(K.match(m),4);case 4:W=A.yieldResult;if(!W)throw Error("rh");return A.yield(W.blob(),5);case 5:return L=A.yieldResult,A.return(L)}})};
JN6=function(m,G){for(var K in m)if(m.hasOwnProperty(K)&&G[K])return K;return null};
NoM=function(m){return"stamp"+m.replace("-","_")+"_"};
DnG=function(m){var G=m.match(/\[\[([\w\.]+)\]\]/);if(G&&G.length>1)return G[1];_.am(Error("th`"+m));return null};
teJ=function(m){return m===void 0?_.IP("REUSE_COMPONENTS",!1):m||!1};
ats=function(m,G,K){K&&(G.is?(FJd.has(G)&&(m=FJd.get(G),K=m.listener,delete G[m.property],K.type==="element"&&G.removeEventListener(K.eventName,K.handler),FJd.delete(G)),Qc9(G)):G.__proto__==HTMLElement.prototype&&(G=new _.cw("Rendererstamper removed a non custom element","Stamper: "+m+" element: "+(G&&G.nodeName)),_.nc(G)))};
opo=function(m,G,K,W){var L=G.node?G.node:G;_.VL(K).parentNode===L&&(G.removeChild(K),ats(m,K,W));if(m=CN.get(K))CN.delete(K),_.Fu.cancelJob(m);K.hidden=!1};
npG=function(m,G,K,W){var L,A=(L=G.polymerController)!=null?L:G;L=G.loggingStatus;try{L&&(L.isRendererStamper=!0);if(typeof K!=="string"){for(var O in K.attributes)K.attributes[O]===!0?G.setAttribute(O,""):K.attributes[O]===!1?G.removeAttribute(O):G.setAttribute(O,K.attributes[O]);for(var c in K.params)A[c]=K.params[c],G!==A&&i1(G.localName,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(var u in K.properties){var h=K.properties[u];if(h){var J=DnG(h);A[u]=m.get(J);G!==A&&i1(G.localName,u,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");
if(u==="on-tap"||u==="on-click"){var N=m.get(J);G.addEventListener("click",N);FJd.set(G,{property:u,listener:{type:"element",eventName:"click",handler:N}})}}else _.om(new _.cw("Undefined property binding",u))}}K.classListBinding&&K.classListBinding.split(" ").forEach(function(D){D=D.trim();if(D.startsWith("[[")){if(D=DnG(D))D=m.get(D),(Array.isArray(D)?D:(D!=null?D:"").split(" ")).forEach(function(t){t&&_.dF(G,t,!0)})}else D&&_.dF(G,D,!0)});
A.data=W}finally{L&&(L.isRendererStamper=!1)}if(K=CN.get(G))G.hidden=!1,CN.delete(G),_.Fu.cancelJob(K)};
bEF=function(m,G,K,W){if(G&&G.children&&(K=G.children[K]))if(_.IP("DEFERRED_DETACH"))for(;K&&!CN.has(K);){var L=m,A=G,O=K,c=W;O.hidden=!0;L=_.rC(_.Fu,opo.bind(null,L,A,O,c),0);CN.set(O,L);K=K.nextElementSibling}else for(;(O=G.lastElementChild)&&(G.removeChild(O),ats(m,O,W),O!=K););};
_.VO=function(){for(var m=_.mb.apply(0,arguments),G=!0,K=_.g(m),W=K.next();!W.done;W=K.next())if(typeof W.value!=="string"){G=!1;break}return G?m.join(" ").trim()||void 0:function(){for(var L="",A=_.g(m),O=A.next();!O.done;O=A.next())if(O=O.value,typeof O==="function"&&(O=O()),O)if(typeof O==="string")L+=" "+O;else for(var c in O)if(O.hasOwnProperty(c)){var u=O[c];typeof u==="function"&&(u=u());u&&(L+=" "+c)}L=L.trim()||void 0;return _.EZ(L)}};
_.vpf=function(m,G){return _.yx(m.entities,"markersEngagementPanelSyncEntity",G)};
_.ZJ=function(m,G){return _.yx(m.entities,"playerStateEntity",G)};
$n9=function(m,G){return _.yx(m.entities,"fantasyWinProbabilityEntity",G)};
scf=function(m,G){return _.yx(m.entities,"fantasyTeamEntity",G)};
qFd=function(m,G){return _.yx(m.entities,"fantasyPlayerEntity",G)};
EpG=function(m,G){return _.yx(m.entities,"booleanEntity",G)};
HEf=function(m,G){return _.yx(m.entities,"qrCodeEntity",G)};
Itd=function(m){return _.yx(m.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
kSf=function(m){var G;return(G=jcV[m])!=null?G:"EVENT_SPAN_TYPE_UNKNOWN"};
Ctf=function(m){return function(G){var K=kSf(G.type);return K==="EVENT_SPAN_TYPE_UNKNOWN"?m(G):CJ("event",{type:K,nodepath:G.target instanceof Element?Tp9(G.target):void 0},function(){return m(G)})}};
_.dn=function(m){m&&IQ("event")&&(m=Ctf(m));return Ck6(function(G){var K,W=(K=m)==null?void 0:K(G);return typeof W==="boolean"?W:!0})};
P8=function(m){return function(){return m()?m():void 0}};
Ptv=function(m){var G=_.Q3("animated-rolling-character"),K=KQG(),W=oQ(m.character)||oQ(m.previousCharacter),L=_.g(mao()),A=L.next().value,O=L.next().value;_.bX(function(){if(window.ResizeObserver&&_.F("web_fix_rolling_numbers_zoom_safari")){var c=new _.yO(function(){var h,J,N=Math.round(((J=(h=G.value.querySelector("div"))==null?void 0:h.getBoundingClientRect().height)!=null?J:0)*100)/100;N&&O(N)},500),u=new ResizeObserver(function(){c.fire()});
u.observe(G.value);return function(){u.disconnect();c.dispose()}}});
TUo(function(){var c=_.F("web_fix_rolling_numbers_zoom_safari")?A:m.marginMultiplier;if(c){var u;(u=K.value)==null||u.cancel();W?(u=m.previousCharacter?Number(m.previousCharacter)+10:m.rollUp?0:30,m.shouldAnimate||(u-=Ved(m,u))):(u=m.rollUp?0:2,m.shouldAnimate||(u-=m.rollUp?-1:1));G.value.style.marginTop="-"+u*c+"px";m.shouldAnimate?K.value=ZEF(G.value,m,u,W,c):G.value.style.display=m.character?"":"none"}});
return _.r("animated-rolling-character",{el:G,class:"animatedRollingCharacterHost"},NWP(W,function(){for(var c=[],u=1;u<30;u++)c.push(_.r("div",null,u%10));return _.r(_.zL,null,_.r("div",null,"\u00a0"),c,_.r("div",null,"\u00a0"))},function(){return dnv(m.character)}))};
dnv=function(m){return _.r(_.zL,null,_.r("div",null,"\u00a0"),_.r(_.zL,null,NWP(!m||_.Od(m),function(){return _.r("div",null,"\u00a0")},function(){return _.r("div",null,m)})),_.r("div",null,"\u00a0"))};
ZEF=function(m,G,K,W,L){K=new Animation(new KeyframeEffect(m,[{transform:"translateY(0px)"},{transform:"translateY("+(W?Ved(G,K):G.rollUp?-1:1)*L+"px)"}],yNo),document.timeline);G.character?(m.style.display="",K.onfinish=null):K.onfinish=function(){m.style.display="none"};
K.play();return K};
Ved=function(m,G){var K=Number(m.character)+10;if(m.previousCharacter)if(m.character){var W=Number(m.character),L=Number(m.previousCharacter);m=m.rollUp?L<W?K:K+10:L<W?K-10:K}else m=m.rollUp?30:0;else m=m.character==="0"?K:m.rollUp?K-10:K+10;return G-m};
eQf=function(m){return function(G){var K={},W;for(W in G){var L=void 0,A=void 0;((L=void 0)==null?0:(A=L.callbacks)==null?0:A[W])||(K[W]=G[W])}return _.r(wYJ,null,function(){for(var O in K)G[O]=_.EZ(K[O]);G.disableReactiveLogging=!0;return _.r(m,Object.assign({},G))})}};
X7v=function(m,G,K,W,L,A,O){K=new Animation(new KeyframeEffect(m,[{transform:"translateY(0px)"},{transform:"translateY("+(A?ftJ(G,K,W,L):W?-1:1)*O+"px)"}],xnf),document.timeline);G?(m.style.display="",K.onfinish=null):K.onfinish=function(){m.style.display="none"};
K.play();return K};
ftJ=function(m,G,K,W){var L=Number(m)+10;G?m?(m=Number(m),G=Number(G),K=K?G<m?L:L+10:G<m?L-10:L):K=K?30:0:K=m==="0"?L:K?L-10:L+10;return W-K};
RQo=function(m){var G=KQG(),K=KQG();mcd(function(){G.value=m.numberText;K.value=m.numberValue},[m.numberText]);
var W=m.fontSizeMultiplier?m.heightPx*m.fontSizeMultiplier:m.heightPx,L=PWF(function(){if(m.numberText){var O=m.numberText;var c=m.forceRollUp||!K.value||!m.numberValue||K.value<m.numberValue;var u=!!m.shouldAnimate,h=G.value,J=[],N=0,D=0,t=(h?h.replace(/\D/g,"").length:0)-(O?O.replace(/\D/g,"").length:0);h=h?h.split(/(\d)/).filter(Boolean):[];for(O=O.split(/(\d)/).filter(Boolean);t<0;){var a=O[D];J.push({character:a,rollUp:c,marginMultiplier:W,shouldAnimate:u});D++;oQ(a)&&t++}for(;N<t;)a=h[N],J.push({previousCharacter:a,
rollUp:c,marginMultiplier:W,shouldAnimate:u}),N++,oQ(a)||t++;for(;D<O.length;)t=O[D],a=h[N],oQ(t)===oQ(a)?(D++,N++):oQ(t)?(N++,t=void 0):oQ(a)&&(D++,a=void 0),J.push({character:t,previousCharacter:a,rollUp:c,marginMultiplier:W,shouldAnimate:u});c=J}else c=[];return c},[m.numberText]),A=m.numberText?["height: "+W+"px;",
"line-height: "+m.heightPx+"px;"].join(" "):"";return _.r("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:A,dir:"ltr","aria-hidden":"true"},L.map(function(O){return _.r(SFF,Object.assign({},O))}))};
UnP=function(m){switch(m){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
_.zQv=function(m,G){if(!m&&!G)return"medium";m=Math.max(m||0,G||0);return m>=256?"large":m>=96?"medium":"small"};
lt9=function(m){switch(m){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Bos=function(m){return new KeyframeEffect(m,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Meo=function(m){return new KeyframeEffect(m,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.eA=function(m){return function(){var G="",K;for(K in m){for(var W=m[K];typeof W==="function";)W=W();W!==void 0&&W!==null&&(G+="; "+K+": "+W)}return G.length>0?_.EZ(G.slice(2)):_.EZ()}};
ToV=function(m){switch(m){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"}};
mJ9=function(m,G){if(G)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(m)switch(m){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
LlG=function(m,G,K,W,L,A,O){var c=iRJ(m),u=c.disabled,h=c.iconPosition,J=c.style,N=c.focused,D=function(){return!!v()&&h()==="icon-only"},t=function(){return!!v()&&h()==="icon-only-40"},a=function(){return!!v()&&h()==="icon-with-label"},v=function(){return!!G||!(W==null||!W())};
return{type:function(){return J()==="call-to-action-inverse"?"text":J()==="overlay-dark"&&m().type!=="filled"&&m().type!=="tonal"?"tonal":m().type},
shouldFocus:function(){return(N()||(A==null?void 0:A()))&&!u()},
hasIconLeading:function(){return!!v()&&h()==="leading"},
hasIconTrailing:function(){return!!v()&&h()==="trailing"},
hasIconLeadingTrailing:function(){return!!v()&&!!(K||L!=null&&L())&&h()==="leading-trailing"},
hasIconOnly:D,hasIconOnly40:t,hasIconWithLabel:a,iconButton:function(){return D()||t()||a()},
visiblyDisabled:function(){return(u()?"disabled":m().state)==="disabled"||u()},
overrideSmallSizeIcon:function(){return!m().ignoreIconSizeOverride&&GRM(m(),v())},
iconToRender:G?G:function(){return _.r(_.fN,{icon:W,gradientColor:function(){var I;return(I=m().customColors)==null?void 0:I.iconGradientColor},
size:function(){return KlV(m(),!0,m().ignoreIconSizeOverride)},
active:function(){return m().toggled},
iconFilter:function(){return Wls(m())},
animateIcon:O})},
secondaryIconToRender:K?K:function(){return _.r(_.fN,{icon:L,size:function(){return KlV(m(),!0,m().ignoreIconSizeOverride)},
active:function(){return m().toggled},
iconFilter:function(){return Wls(m())}})}}};
iRJ=function(m){return{size:function(){return m().size},
style:function(){return m().style},
focused:function(){return m().focused},
disabled:function(){return m().disabled},
onTap:function(G){var K,W;return(W=(K=m()).onTap)==null?void 0:W.call(K,G)},
alignByText:function(){return m().alignByText},
aTagConfig:function(){return m().aTagConfig},
customColors:function(){return m().customColors},
segmentedPosition:function(){return m().segmentedPosition},
toggled:function(){return m().toggled},
toggleable:function(){return m().toggleable},
accessibilityLabel:function(){return m().accessibilityLabel},
onToggle:function(G){var K,W;return(W=(K=m()).onToggle)==null?void 0:W.call(K,G)},
iconPosition:function(){return m().iconPosition},
oneOffCustomTextWrap:function(){return m().oneOffCustomTextWrap},
disableTextEllipsis:function(){return m().disableTextEllipsis},
disableBackdropFilter:function(){return m().disableBackdropFilter},
tooltipText:function(){return m().tooltipText},
tooltipShape:function(){return m().tooltipShape},
ariaHidden:function(){return m().ariaHidden},
tabIndex:function(){return m().tabIndex},
buttonText:function(){return m().buttonText},
formattedButtonText:function(){return m().formattedButtonText},
animatedTextProps:function(){return m().animatedTextProps},
onClickRateLimitMs:function(){return m().onClickRateLimitMs}}};
GRM=function(m,G){G=(m.iconPosition==="icon-only"||m.iconPosition==="icon-only-40"||m.iconPosition==="icon-with-label")&&G;return!m.segmentedPosition&&G&&m.size==="S"};
KlV=function(m,G,K){switch(m.size){case "XS":return 16;case "S":return!K&&GRM(m,G)?24:16;default:return 24}};
Avf=function(m){switch(m){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"}};
wdF=function(m){switch(m){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"}};
ghJ=function(m){switch(m){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"}};
Wls=function(m){if(m.style==="overlay-dark"&&m.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
xE=function(m){return m&&m.endsWith("px")?Number(m.slice(0,-2)):0};
Ywd=function(m,G){var K=_.g(_.EQ(function(){var L,A;return(A=m())!=null?A:G==null?void 0:(L=G())==null?void 0:L.text})),W=K.next().value;
return[function(L){var A=_.pT(function(){var u;return Object.assign({},{location:"bottom",offset:16,delay:1},G==null?void 0:G(),{text:(u=W())!=null?u:""})},void 0,"IJU38d");
_.$O(function(){var u=A();_.w_(function(){_.Fu.addJob(function(){Xm.notify(L,u)},4)})},"WlsgZc");
var O=function(){ORo(L,A())},c=function(){cvP()};
L.addEventListener("mouseenter",O);L.addEventListener("focus",O);L.addEventListener("mouseleave",c);L.addEventListener("blur",c);L.addEventListener("tap",c);_.sZ(function(){L.removeEventListener("mouseenter",O);L.removeEventListener("mouseleave",c);L.removeEventListener("focus",O);L.removeEventListener("blur",c);L.removeEventListener("tap",c);cvP()})},
K.next().value]};
ulM=function(m,G){if(!ft){var K;ZCd(function(){return K=LFd(m,G)});
return K}m.parent=rvP();return LFd(m,G)};
rvP=function(){var m=Ri(ft||void 0,Gnd);return QRG(m)?void 0:m};
SA=function(m,G){_.YE(m,Object.assign({},G,{forceClickLogging:!0}))};
h5f=function(m){switch(m){case "TOOLTIP_VIEW_MODEL_PLACEMENT_BOTTOM":return"bottom";case "TOOLTIP_VIEW_MODEL_PLACEMENT_TOP":return"top";case "TOOLTIP_VIEW_MODEL_PLACEMENT_LEFT":return"left";case "TOOLTIP_VIEW_MODEL_PLACEMENT_RIGHT":return"right";default:return"bottom"}};
JvJ=function(m,G){var K=_.c8(m==null?void 0:m.onTap),W={};K&&(W.getClickedVisualElement=function(){var L;return pdd(m,K,G==null?void 0:(L=G.value)==null?void 0:L.visualElement)});
W=_.rn({elementsCommand:m.onTap,forceNewState:!0,additionalCommandArgs:W});return uK(W)?W:void 0};
NyF=function(m,G,K,W){SA(m,Object.assign({},{form:{element:G,event:K}},W))};
DJd=function(m,G,K,W,L){var A=void 0;return function(O){var c=_.c8(K?m==null?void 0:m.onDisabledTap:m==null?void 0:m.onTap);if(c){var u;A=(u=A)!=null?u:G==null?void 0:G.value;if(c)if(_.F("web_button_vm_click_client_ve_killswitch"))NyF(c,A,O);else{var h;u=pdd(m,c,(h=A)==null?void 0:h.visualElement);if(L){NyF(c,L,O,{clickedVisualElement:u,form:{element:L}});return}NyF(c,A,O,{clickedVisualElement:u})}}W&&W(O)}};
pdd=function(m,G,K){G=G==null?void 0:G.clickTrackingParams;var W,L;m=m==null?void 0:(W=m.loggingDirectives)==null?void 0:(L=W.clientVeSpec)==null?void 0:L.uiType;if(K&&m&&!G)return K};
tXo=function(m){switch(m){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"}};
Fl6=function(m){switch(m){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"}};
QZP=function(m){switch(m){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"}};
aXM=function(m){switch(m){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"}};
_.RC=function(m){return _.pT(function(){ELP()();return jHV(m)},{debugName:"d8B62c"},"DEXkhd")};
oh9=function(m,G){return _.yx(m.entities,"engagementToolbarStateEntityPayload",G)};
bRd=function(m){(m=_.m5(m))&&_.nho(m)};
_.nho=function(m){var G=_.gU();G&&_.Qx(G,m)};
vh9=function(m,G,K){_.dU(m,"yt-open-popup-action",[G,K||m])};
$JV=function(m,G){var K=_.vO(m,"endpoint"),W=_.vO(m,"action");return(K=W?W:K)&&G&&(K=G.navigationEndpointPopupMap[K])&&(m=_.Cn(K,m),(K=_.vO(m,"renderer"))&&G.supportedPopups.hasOwnProperty(K))?{openPopupAction:{popupType:G.popupTypeMap[K],popup:m}}:null};
sZ6=function(m,G,K,W){if(W){var L;K=K==null?void 0:(L=K.data)==null?void 0:L.contents;(L=K instanceof Array&&K.length?K[0]:K)&&(K=_.vO(L,"renderer"))&&W.supportedPopups.hasOwnProperty(K)&&(G.stopPropagation(),vh9(m,{openPopupAction:{popupType:W.popupTypeMap[K],popup:L}}))}};
HRd=function(m,G,K,W){W=W===void 0?!1:W;var L=qws(G);if(L){L.href&&hK(L.href);var A=G.button;A=A!==void 0?A===0&&!Uh(G):!Uh(G);L.data&&A&&EhG(m,L,G,K,W)}};
EhG=function(m,G,K,W,L){L=L===void 0?!1:L;var A=_.U8("pbj_navigate_limit",-1)===0;IXF(G);_.xS().resolve(_.fn(Er));var O=G.data;if(Object.keys(O).length!==0)if(!_.F("unplugged_web_disable_actions_for_cec_endpoint")&&_.Q(O,_.xu))_.F("endpoint_behavior_command_executor_fix_killswitch")||(K.preventDefault(),K.stopPropagation()),_.eD(m,[O],m);else if(W=$JV(O,W))O.loggingUrls&&O.loggingUrls.forEach(function(u){u.baseUrl&&_.HG(u.baseUrl)}),K.preventDefault(),K.stopPropagation(),vh9(m,W,G);
else{var c=jZf(0,G.data,K);if(m=G.getForm)m=m(),c.tempData=c.tempData||{},c.tempData=Object.assign({},c.tempData,m);m=_.ve(K);if(W=m.find(function(u){return!!u.visualElement}))c.createScreenConfig=c.createScreenConfig||{},c.createScreenConfig.clickedVisualElement=W.visualElement;
if(!A)if(K.preventDefault(),K.stopPropagation(),_.Q(O,_.kRv)&&!L&&_.xe.instance)_.xe.instance.resolveCommand(O,c);else if(_.F("kevlar_command_handler_formatted_string")&&!L&&_.xe.instance&&CHP(O))L=m.find(function(u){return!!u.is})||K.target,K={form:Object.assign({},c,{event:K,
element:L,originatingNode:G})},_.xe.instance.resolveCommand(O,K);else{O=_.ve(K);K=[];for(L=0;L<O.length;L++)(A=O[L].is)&&K.push(A);QTP({parents:K.join(","),text:G.innerText},function(){_.Zw(G,"yt-navigate",c)})}}};
VXG=function(m){if(m=qws(m))IXF(m),kQd(m.href)};
qws=function(m){m=_.ve(m);for(var G,K=0;K<m.length;K++)if(G=m[K],G.tagName==="A"&&G.classList.contains("yt-simple-endpoint")){if(!G.data)break;return G}return null};
Uh=function(m){return m.shiftKey||m.altKey||m.metaKey||m.ctrlKey};
ZR6=function(m,G){var K={itct:G.clickTrackingParams};_.F("kevlar_client_side_screens")&&(!_.Q(G,_.lw)||_.F("kevlar_exclude_endpoint_killswitch"))&&(K.endpoint=JSON.stringify(G));_.F("enable_unknown_lact_fix_on_html5")&&_.xS().resolve(_.fn(_.zk))&&(K.lact=_.Xu());H1M(K);_.nJ(m,K)};
IXF=function(m){m.href&&Object.keys(m.data).length!==0&&ZR6(m.href,m.data)};
CHP=function(m){for(var G=_.g(dJo),K=G.next();!K.done;K=G.next())if(m[K.value])return!1;return!0};
PHf=function(){if(lK)return lK;if(window.lottie)return lK=Promise.resolve(window.lottie);var m=_.Ql(_.E8("LOTTIE_URL"));return m?lK=new Promise(function(G,K){var W=document.createElement("script");W.addEventListener("load",function(){G(lottie)});
W.addEventListener("error",function(L){var A="Lottie library failed to load.";L?L.message&&(A+=" Original description: "+L.message,_.bO(L,A)):L=Error(A);_.nc(L);K(L)});
W.setAttribute("async","");_.Jt(W,m);document.head.appendChild(W)}):Promise.reject(Error("uh"))};
yvv=function(){return lK?lK:PHf()};
e5M=function(m){if(m)switch(m){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.F("kevlar_use_wil_icons"))return m=(m=Itd(_.$R().getState()))&&m.animationLightUrl&&m.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:m.animationLightUrl,pathDarkTheme:m.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,m?m:B8.get("LIKE");break;case "LIKE_DELHI_PLAYER":return B8.get("LIKE_DELHI_PLAYER")}};
fXG=function(m){var G=e5M(m);if(G)return G;switch(m){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return B8.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return B8.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return B8.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return B8.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return B8.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return B8.get("NOTIFICATION_BELL")}};
xJ9=function(m,G){if(!m.closest)return!1;G=!!e5M(G);return _.E8("ID_TOKEN")&&G?!!m.closest("segmented-like-dislike-button-view-model")||!!m.closest("yt-player-quick-action-buttons"):!1};
SwP=function(m,G){if(!m||XdG)G=!1;else{var K;if(!(K=xJ9(m,G)))if(m.closest)if(K=!_.E8("ID_TOKEN"),m=m.closest("ytd-subscription-notification-toggle-button-renderer-next"),K||!m)K=!1;else{var W;K=((W=m.data)==null?void 0:W.targetId)==="notification-bell"&&G!=="EXPAND_MORE"}else K=!1;G=K}return G};
R5f=function(m){var G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return _.IO(W,2),W.yield(fetch(m),4);case 4:return G=W.yieldResult,W.yield(G.json(),5);case 5:return W.return(W.yieldResult);case 2:K=_.ye(W),_.nc(K),_.ey(W)}})};
UJd=function(m,G){var K,W,L;return _.Y(function(A){if(A.nextAddress==1)return(K=G?m.pathDarkTheme:m.path)?A.yield(Promise.all([R5f(K),PHf()]),2):A.return();W=A.yieldResult;L=W[0];My.set(K,L);_.ey(A)})};
lXd=function(m,G,K,W){function L(O,c){if(G.value===c&&!G.cancelled){for(;m.firstChild;)m.removeChild(m.firstChild);m.classList.add("ytSpecIconShapeHost");O(m,W)}}
var A=_.z5G(_.xS().resolve(_.fD),K);typeof A==="function"?(G.value=null,L(A,null)):(G.value=A,A.then(function(O){L(O,A)}))};
ByV=function(m,G){var K=document.createElement("div"),W=_.oP(K,function(){return _.r(_.p,{cond:m,then:function(L){return _.r(_.Tk,{data:L,options:G})}})},"ea");
return[K,W]};
_.mr=function(m,G){if(G){var K={};MXv.forEach(function(W){W=Tyd(G,W,"--yt-lightsource-");Object.assign(K,W)});
mfv.forEach(function(W){W=Tyd(G,W,"--yt-basic-");Object.assign(K,W)});
_.eb(m,K)}};
Tyd=function(m,G,K){var W={};W[K+_.XS(G)]=m&&m[G]?_.ce(m[G]):"";return W};
_.Kz=function(m,G,K){G$[m]||(G$[m]={});G$[m][G]=K};
_.Wp=function(m){G$[m]||(G$[m]={});return G$[m]};
ii6=function(m){if(!m)return{};var G=m.foregroundTitleColor,K=m.backgroundColor;m=m.borderColor;var W="text";m?W="outline":K&&(W="filled");return{type:W,customColors:{color:G?_.ce(G):void 0,backgroundColor:K?_.ce(K):void 0,borderColor:m?_.ce(m):void 0}}};
AkG=function(m){var G=m.renderer;var K=m.element;var W=m.commandController;var L=m.onTapCallback;var A=m.skipCommandHandling;var O=m.overrides;var c=m.forceIcon;var u=m.forceModernIconButton;var h=m.forceDisabled;var J=m.isSubscribe===void 0?!1:m.isSubscribe;var N=m.isPressed===void 0?!1:m.isPressed;var D=m.useButtonSize===void 0?!1:m.useButtonSize;m=GuJ(G);J&&(m.style="mono",m.type="filled");c=!G.icon||!c&&G.text?G.icon?G.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:u?"icon-only":"icon-only-40";c==="icon-only-40"&&(m.type="text");var t;u=Object;J=u.assign;D=KZd(G,D);N=!!G.isSelected||!_.F("web_propagate_is_pressed_killswitch")&&!!N;var a=G.isSelected!==void 0;h=h===void 0?G.isDisabled:h;var v=G.text?_.A$(G.text):void 0;var I,Z,k,z=((I=G.accessibilityData)==null?void 0:(Z=I.accessibilityData)==null?void 0:Z.label)||((k=G.accessibility)==null?void 0:k.label);I=z?z:_.bw(G.text);K=WZG(G,K,W,L,A);W=LZ9(G);W!=null&&W.length?(W=_.rn({innertubeCommand:StG(W),
forceNewState:!0}),W=uK(W)?W:void 0):W=void 0;return J.call(u,{},m,D,{iconPosition:c},O,{focused:!1,toggled:N,toggleable:a,disabled:h,formattedButtonText:v,accessibilityLabel:I,onTap:K,aTagConfig:W},ii6((t=G.colorData)==null?void 0:t.basicColorPaletteData),{oneOffCustomTextWrap:G.oneOffCustomTextWrap})};
WZG=function(m,G,K,W,L){return function(A){var O=LZ9(m);W(O,A);if(!L){O=_.g(O);for(var c=O.next();!c.done;c=O.next())SA(c.value,{form:{element:G,event:A},commandController:K})}}};
LZ9=function(m){var G=[];m.command&&G.push(m.command);m.serviceEndpoint&&G.push(m.serviceEndpoint);m.navigationEndpoint&&G.push(m.navigationEndpoint);return G};
KZd=function(m,G){if(G)switch(m.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(m.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
GuJ=function(m){switch(m.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
w5v=function(m,G){return typeof m!=="object"||m===null?!1:Object.keys(G).every(function(K){return K in m})};
Lz=function(m){return Object.fromEntries(Object.keys(m).map(function(G){return[G,G]}))};
g76=function(m,G,K){return xAV(K,function(W,L){return function(A){var O=_.mb.apply(1,arguments);return w5v(A,m)?L.apply(null,[A[G]].concat(_.Bz(O))):L.apply(null,[A].concat(_.Bz(O)))}})};
Ao=function(m){return function(G,K){return g76(m,G,K)}};
Oi6=function(m,G){var K;return(K=_.yx(m,"playlistLoopStateEntity",G))!=null?K:void 0};
ckf=function(m,G){var K;return(K=_.yx(m,"toggleMenuServiceItemEntity",G))!=null?K:void 0};
_.wq=function(m){return m!=null&&m.watch?m.watch.isTheaterMode:!1};
_.gq=function(m){return m!=null&&m.watch?m.watch.isWatchFullscreen:!1};
_.OT=function(m){if(_.YEf(m))return!0;m=_.rkf(m);return _.F("web_watch_enable_single_column_grid_view")?m:!1};
_.YEf=function(m){return m!=null&&m.watch?m.watch.isSwatcherooActive:!1};
_.rkf=function(m){return m.watch.isWatchNarrowWidth};
_.u1d=function(m){return _.wq(m)||_.gq(m)||_.rkf(m)};
_.h2v=function(m){return m.watch.openEngagementPanels};
_.cp=function(m,G){return _.yx(m.entities,"likeStatusEntity",G)};
p5d=function(m,G){return _.yx(m.entities,"likeCountEntity",G)};
_.JkM=function(m,G){return _.yx(m.entities,"stringEntity",G)};
NfV=function(m,G){return _.yx(m.entities,"dataFreshnessEntity",G)};
Dfv=function(m,G){if(!m)return!1;var K,W=(K=_.Q(m,_.SD))==null?void 0:K.signal;if(W&&G.signalEndpointMap)return!!G.signalEndpointMap[W];var L;if((K=(L=_.Q(m,_.Yg))==null?void 0:L.request)&&G.continuationEndpointMap)return!!G.continuationEndpointMap[K];for(var A in m)if(G.commandEndpointMap[A])return!0;return!1};
t2P=function(m,G){if(G.streamingEndpointMap)for(var K in m)if(G.streamingEndpointMap[K]&&(m=G.streamingEndpointMap[K]))return m()};
FZF=function(m,G){var K,W=(K=_.Q(m,_.SD))==null?void 0:K.signal;if(W&&G.signalEndpointMap&&(K=G.signalEndpointMap[W]))return K();var L;if((K=(L=_.Q(m,_.Yg))==null?void 0:L.request)&&G.continuationEndpointMap&&(L=G.continuationEndpointMap[K]))return L();for(var A in m)if(G.commandEndpointMap[A]&&(m=G.commandEndpointMap[A]))return m()};
QzF=function(m){var G={"Content-Type":"application/json"};_.E8("EOM_VISITOR_DATA")?G["X-Goog-EOM-Visitor-Id"]=_.E8("EOM_VISITOR_DATA"):_.E8("VISITOR_DATA")&&(G["X-Goog-Visitor-Id"]=_.E8("VISITOR_DATA"));G["X-Youtube-Bootstrap-Logged-In"]=_.E8("LOGGED_IN",!1);_.E8("DEBUG_SETTINGS_METADATA")&&(G["X-Debug-Settings-Metadata"]=_.E8("DEBUG_SETTINGS_METADATA"));m!=="cors"&&((m=_.E8("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(G["X-Youtube-Client-Name"]=m),(m=_.E8("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(G["X-Youtube-Client-Version"]=
m),(m=_.E8("CHROME_CONNECTED_HEADER"))&&(G["X-Youtube-Chrome-Connected"]=m),(m=_.E8("DOMAIN_ADMIN_STATE"))&&(G["X-Youtube-Domain-Admin-State"]=m));(m=_.E8("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(G["X-YouTube-Lava-Device-Context"]=m);return G};
ar6=function(m,G){G.watchNextResponse||G.reelItemWatchResponse?G.watchNextResponse?m.content=G.watchNextResponse:m.content=G.reelItemWatchResponse:G.playerResponse?m.player=G.playerResponse:G.reelWatchSequenceResponse&&(m.reelSequence=G.reelWatchSequenceResponse)};
rq=function(m){return function(){return new m}};
u_=function(m){var G=_.xS();return function(){return G.resolve(m)}};
_.ho=function(m){if(!m)return null;for(var G=[],K=0;K<m.textSegments.length;K++){var W=m.textSegments[K];W.text?G.push(W):W.emojiId&&G.push({emoji_id:W.emojiId})}return{text_segments:G}};
$fV=function(m,G,K,W,L,A,O){A=A===void 0?[]:A;var c=new _.pz;c.endpoint=K;if(!K)return _.om(new _.cw("handle undefined endpoint",G.tagName)),c;var u=EAM(K);u.length&&(_.eD(m,u,G,W),c.actions=u);K.loggingUrls&&K.loggingUrls.forEach(function(J){J.baseUrl&&IR(J.baseUrl,J.attributionSrcMode)});
u=!_.F("web_skip_impression_click_killswitch")&&W&&W.impression;if(K.clickTrackingParams&&!o7P(K)&&!n7v(G)&&!u&&(u=_.l1(),!_.Jo(u,G))){var h=G.getScreenLayer&&G.getScreenLayer();h?u.clickCommand(K,null,h):u.clickCommand(K,null)}u=!1;for(h=0;h<A.length;h++)if((0,A[h])(G,K,W)){u=!0;break}!u&&bio(K)&&(c.ajaxPromise=v7o(m,G,K,W,L,O));return c};
n7v=function(m){var G;return(m=(G=m.data)==null?void 0:G.navigationEndpoint)&&!!m.clickTrackingParams};
o7P=function(m){var G=_.Q(m,_.SD);if(G&&(G=G.signal)&&szv.indexOf(G)>=0)return!0;for(var K in m)if(qE6.indexOf(K)>=0)return!0;return!1};
bio=function(m){var G;if(((G=_.Q(m,_.SD))==null?void 0:G.signal)==="CLIENT_SIGNAL")return!1;for(var K in m)if(E7M.indexOf(K)>=0)return!1;m=Object.keys(m);return m.length===1&&m[0]==="loggingUrls"?!1:!0};
P2s=function(m,G,K,W,L,A,O){var c=_.NW.instance;if(c&&_.Dg(c,W))var u=_.to(c,W,L).then(function(J){return(J==null?0:J.data)?J:{data:J}});
else u=m.requestDataForServiceEndpoint(W,L),_.Q(W,Hid)||_.Q(W,Ir9)||_.Q(W,_.jzJ)||_.Q(W,ku6)||_.nc(new _.cw("No RequestBuilder for endpoint",W));var h=_.Qo();h.promise.thenCatch(function(){var J=_.vO(W,"action")||_.vO(W,"command")||_.vO(W,"endpoint");J&&(J=W[J],J.hasOwnProperty("onFailureAction")?_.eD(G,[J.onFailureAction],K):J.hasOwnProperty("onFailureCommand")&&_.eD(G,J.onFailureCommand,K));u.cancel("Resolver promise rejected")});
u.then(function(J){if(J){var N=J.error;if(N){if(A&&A.onServerError)A.onServerError(W,J);h.reject(new _.cw("Response error",W,N))}else if(J=J.data)if(N=J.error){if(A&&A.onServerError)A.onServerError(W,J);h.reject(new _.cw("Returned error",W,N))}else{C2F(G,K,J,W);V26(J);if(N=qnV(J))for(var D=_.g(N),t=D.next();!t.done;t=D.next()){t=t.value;var a=_.xS().resolve(_.fn(Zi6))||dfG;if(!_.NW.instance||!a.some(function(I){return!!_.Q(W,I)})||_.F("kevlar_response_processor_allowlist_killswitch")){var v=a=void 0;
((v=_.Q((a=t)==null?void 0:a.commandMetadata,_.RQ))==null?0:v.sendPost)?_.yQ(G,[t]):_.eD(G,[t],K)}}(D=_.Q(J==null?void 0:J.frameworkUpdates,aL))&&O&&O(D);if(A&&A.onSuccess)A.onSuccess(W,J);h.resolve(new _.oL(J,N))}}else h.reject(new _.cw("Invalid service endpoint provided",W))},function(J){h.reject(J)});
return h.promise};
V26=function(m){var G;(m=(G=_.Q(m==null?void 0:m.onResponseReceivedCommand,ykd))==null?void 0:G.continuationItems)&&(m==null?void 0:m.length)===1&&_.Q(m[0],e26)&&_.Yt("so_r",void 0,"search_overview_answer")};
v7o=function(m,G,K,W,L,A){var O;return(O=G.getNetworkManager&&G.getNetworkManager()?G.getNetworkManager():_.xS().resolve(_.fn(_.M_)))?P2s(O,m,G,K,W,L,A):_.KN("No network manager.")};
C2F=function(m,G,K,W){if(K=K.trackingParams||K.loggingDirectives&&K.loggingDirectives.trackingParams){var L;(_.Q(W,_.nz)||_.Q(W,frM)||_.Q(W,xfv))&&W.clickTrackingParams&&(L=_.m5(W.clickTrackingParams));var A;W=(A=G.getScreenLayer)==null?void 0:A.call(G);G=_.l1().graftServerVe(K,L,W);_.PH(m,"yt-store-grafted-ve-action",[G])}};
_.X5P=function(m){var G=new Image;return new _.iO(function(K,W){G.addEventListener("load",function(){K()});
G.addEventListener("error",function(){W()});
G.src=m})};
SEd=function(m){return!!m};
R2d=function(m){return!!m};
UfJ=function(m,G,K){var W=m.rowIndex;W!==void 0&&_.PH(m.hostElement,"yt-section-reactive-dismissal",[W,G,K])};
_.b_=function(m,G,K){m=_.g(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;if(W===G)break;for(var L=_.g(K),A=L.next();!A.done;A=L.next())if(A=A.value,W.tagName===A||!_.F("web_event_button_role_check_killswitch")&&W.role==="button"&&A==="BUTTON")return!0}return!1};
_.vp=function(m,G,K){m=_.g(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;if(W===G)break;for(var L=_.g(K),A=L.next();!A.done;A=L.next())if(W.id===A.value)return!0}return!1};
_.qW=function(){var m=_.xS().resolve(_.fn(_.$g));return m?(m=m.getCurrentPage())?_.sT(m):null:null};
_.ET=function(){var m=_.qW();if(!m){var G=_.xS().resolve(_.fn(_.$g)),K=G?typeof G:"no page manager";G=G?G.getCurrentPage():null;K=new _.cw("Player is missing when requested.",K,G?G.tagName:"no page");_.am(K)}return m};
_.sT=function(m){return m&&m.getPlayer?m.getPlayer():null};
z2G=function(m,G){m={args:{raw_player_response:m}};G&&(m.args=Object.assign({},m.args,G));return m};
lrG=function(m){if(m.args){if(m.args.raw_player_response)return m.args.raw_player_response;if(m.args.player_response)return JSON.parse(m.args.player_response)}};
_.BfG=function(m,G){var K={url:"/watch?v="+m.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};m.playlistId&&(K.url+="&list="+m.playlistId);m.playerParams&&(K.url+="&pp="+m.playerParams);m={watchEndpoint:m,commandMetadata:{webCommandMetadata:K}};G&&(m.clickTrackingParams=G);return m};
TfM=function(){return M2v||!!_.Cn("yt.player.Application")};
ixd=function(){return mX9||!!document.querySelector("link#player-css")};
KcP=function(){function m(){M2v=!0;GZ6.resolve()}
var G,K;return _.Y(function(W){GZ6||(GZ6=new _.yY,TfM()?m():(G=document.createElement("script"),G.addEventListener("load",m),K=_.hO(_.E8("PLAYER_JS_URL")),_.Jt(G,K),document.head.appendChild(G)));return W.return(GZ6.promise)})};
Lcs=function(){function m(){mX9=!0;Wcd.resolve()}
if(!Wcd)if(Wcd=new _.yY,ixd())m();else{var G=document.createElement("link");G.id="player-css";G.addEventListener("load",m);var K=_.hO(_.E8("PLAYER_CSS_URL"));_.tt(G,K,"stylesheet");document.head.appendChild(G)}return Wcd.promise};
A1F=function(){return TfM()&&ixd()?Promise.resolve([]):Promise.all([KcP(),Lcs()])};
w_G=function(m,G,K){var W={args:{}};m&&(W.args.raw_player_response=m);G&&(W.args.raw_watch_next_response=G);K&&(W.args=Object.assign({},W.args,K));return W};
Y_d=function(m,G,K){var W=!1;W=W===void 0?!0:W;m=typeof m==="string"?_.Hp(document,m):m;var L=gQd+"_"+_.z9(m),A=Ox9[L];if(A&&W)return c1M(G,K)?A.api.loadVideoByPlayerVars(G.args||null):A.loadNewVideoConfig(G),A.api;A=new IL(m,L,G,K,void 0);Ox9[L]=A;A.addOnDisposeCallback(function(){delete Ox9[A.getId()]});
return A.api};
c1M=function(m,G){return G&&G.serializedExperimentFlags?G.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):m&&m.args&&m.args.fflags?m.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
r1d=function(){var m=new _.yY;m.resolved=!1;var G=m.resolve;m.resolve=function(K){m.resolved=!0;G(K)};
return m};
hfM=function(m){var G={};uz6().install((G.document_disposed={callback:m},G))};
j5=function(m,G){if(!m&&Math.random()<=_.U8("kevlar_unified_player_logging_threshold")){m=Error("wh`"+(G?G:"Unspecified error"));if(_.F("kevlar_unified_player_throw_errors"))throw m;_.nc(m)}};
_.p_d=function(){var m=_.Cn("ytDebugData.callbacks");m||(m={},_.yj("ytDebugData.callbacks",m));return m};
N7v=function(m,G){var K=_.p_d();if(_.F("web_dd_iu")||J1J.includes(m))K[m]=G};
DXG=function(){return _.Y(function(m){return m.return({isLeader:_.EjJ(_.$R().getState()),c:_.E8("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.E8("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
tcV=function(){var m;_.Y(function(G){if(G.nextAddress==1)return N7v("APP_STATE",DXG),G.yield(_.xS().resolve(_.kg),2);m=G.yieldResult;N7v("PI",function(){return _.Y(function(K){return K.return(m.getVideoStats())})});
_.ey(G)})};
Fc9=function(m){return!!m&&m.length>0&&m[0].loggingUrls!=null&&m[0].loggingUrls.length>0};
Qpo=function(){var m=_.E8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(m==null?void 0:m.length)===2?m[1]:null};
aY6=function(m){if(!m)return[];var G=[];m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.loggingUrls){K=_.g(K.loggingUrls);for(var W=K.next();!W.done;W=K.next())W=W.value,W.baseUrl&&G.push(W.baseUrl)}return G};
oQG=function(m){var G=_.Sh(_.XJ(_.Ks.location.href));m=_.Sh(_.XJ(m));return _.F("kevlar_clear_non_displayable_url_params")?G==Cz(m):Cz(G)==Cz(m)};
Cz=function(m){var G=_.RLs(m);m=m.slice(0);var K=["frags"];_.F("kevlar_hide_pp_url_param")&&K.push("pp");_.F("kevlar_hide_time_continue_url_param")&&K.push("time_continue");K=_.g(K);for(var W=K.next();!W.done;W=K.next())W=W.value,m=_.mi(_.Sh(m),W);return _.Sh(m)+(G?"#"+G:"")};
Vo=function(m,G){var K=K===void 0?!0:K;G=Number(G)*1E3;var W=Math.round((0,_.xD)()),L=W.toString();m={innertubeResponse:m,serverDateTimestampMs:L,lastModifiedTimestampMs:L,expireTimestampMs:(W+G).toString(),isProcessed:K};if(K=_.E8("INNERTUBE_CONTEXT_CLIENT_NAME"))m.clientName=K;return m};
bxv=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++nQd};
vQM=function(m){return!isNaN(m)&&m>0};
spo=function(){_.F("web_adaptive_repeat_ase")&&$XF&&_.Fx("applicationStarted",$XF)};
_.q_G=function(){var m=_.wU(),G=_.gU();G&&m&&_.o7(G,[m],!0)};
Hxd=function(m){return m&&EQG.some(function(G){return m.includes(G)})};
Zxf=function(m){var G=_.Q(m,_.H$);if(!G)return!1;var K=G.url,W=G.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!K)return _.am(Error("Bh")),!1;if(G.target==="TARGET_NEW_WINDOW"){G={};_.F("resolve_url_parent_tracking_params")&&(!_.eh(K)||Rb(window.location.href,K))&&(G={endpoint:m,itct:m.clickTrackingParams});H1M(G);m=null;try{if(W){a:{var L=K,A=G;W=W===void 0?!1:W;A&&_.nJ(L,A);var O=_.MI(L),c=_.Ue(O);L!=c&&_.V3(Error("$f`"+L));L=c;try{if(W){c=L;c=ums(c);hK(c);m=_.Oy(window,c,"_blank",
"attributionsrc");break a}}catch(D){_.j1(D)}hK(L);m=_.Oy(window,O,"_blank")}IYV(_.xS().resolve(jpV),m,K);return!0}}catch(D){_.am(D)}_.nJ(K,G);G={target:"_blank",noopener:!1};O=window;c=Re(K)?K:_.MI(typeof K.href!="undefined"?K.href:String(K));W=self.crossOriginIsolated!==void 0;m="strict-origin-when-cross-origin";window.Request&&(m=(new Request("/")).referrerPolicy);L=G.noreferrer;if(W&&L&&m==="unsafe-url")throw Error("xe");m=L&&!W;L=G.target||K.target;A=[];var u=[],h=!1;for(N in G){var J=G[N];switch(N){case "width":case "height":case "top":case "left":A.push(N+
"="+J);break;case "target":break;case "noopener":case "noreferrer":J?u.push(N):(h=!0,u.push(N+"=false"));break;case "attributionsrc":A.push(N+(J?"="+J:""));break;default:A.push(N+"="+(J?1:0))}}var N=L!==void 0&&!["_blank","_self","_top","_parent",""].includes(L);N=b6()&&N;kZf&&W&&A.length===0&&u.length>0&&!N&&!h?(u.length===2&&(u=["noreferrer"]),_.Oy(O,c,L,u[0]),m=CTd()):(N=A.join(","),_.Ed()&&O.navigator&&O.navigator.standalone&&L&&L!="_self"?(N=_.M7("A"),Gp(N,c),N.target=L,m&&(N.rel="noreferrer"),
((G=G.attributionsrc)||G==="")&&N.setAttribute("attributionsrc",G),G=document.createEvent("MouseEvent"),G.initMouseEvent("click",!0,!0,O,1),N.dispatchEvent(G),N=CTd()):m?(N=_.Oy(O,"",L,N),O=_.Ue(c),N&&(N.opener=null,O===""&&(O="javascript:''"),O='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Zg(O)+'">',O=Wz(O),(G=N.document)&&G.write&&(G.write(LZ(O)),G.close()))):((N=_.Oy(O,c,L,N))&&G.noopener&&(N.opener=null),N&&G.noreferrer&&(N.opener=null)),m=N);IYV(_.xS().resolve(jpV),
m,K);return!0}N=_.f6(K);N=Hxd(N)||K==="https://studio.youtube.com/";if(_.eh(K)&&!Rb(window.location.href,K)||N)hK(K),w9(),_.pr(K,void 0,void 0,window.top,VcF);else return _.nc(new _.cw("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",m)),!1;return!0};
_.y1P=function(m,G){G=G===void 0?0:G;if(!(_.Q(m,dXG)||_.Q(m,PT6)||_.Q(m,_.H$)&&_.Q(m,_.H$).url))return!1;var K,W=(K=_.Q(m,_.H$))==null?void 0:K.url;K=W?{externalLinkData:{url:W}}:null;return _.l1().clickCommand(m,K,G)};
fYP=function(m,G,K,W,L){L=L===void 0?{}:L;return function(A){var O,c;var u=((O=m.loggingDirectives)==null?0:(c=O.clientVeSpec)==null?0:c.uiType)?_.dq(m.loggingDirectives.clientVeSpec.uiType):void 0;L.clickedVisualElement||(L.clickedVisualElement=u);u=efV(m,G);K(u,A);u=_.g(u);for(O=u.next();!O.done;O=u.next()){O=O.value;c=W;var h=A,J=L;J.form?J.form.event=h:J.form={element:c,event:h};SA(O,J)}}};
efV=function(m,G){var K=[];G?(m.toggledCommand&&K.push(m.toggledCommand),m.toggledServiceEndpoint&&K.push(m.toggledServiceEndpoint)):(m.defaultCommand&&K.push(m.defaultCommand),m.defaultServiceEndpoint&&K.push(m.defaultServiceEndpoint),m.defaultNavigationEndpoint&&K.push(m.defaultNavigationEndpoint));return K};
xXM=function(m,G){var K=m.toggledStyle||m.style,W;switch((W=G?K:m.style)==null?void 0:W.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"}}};
_.Pp=function(){return _.Y(function(m){return m.nextAddress==1?m.yield(_.xS().resolve(_.kg),2):m.return(_.xS().resolve(X_v)())})};
_.yo=function(){return _.xS().resolve(X_v)()};
_.e5=function(){return{lottieEl:void 0}};
S_J=function(m,G){return m.startsWith(G.uniqueId)};
RfM=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(_.Pp(),2);G=W.yieldResult;if((K=G)==null||!K.addEventListener)return fz(),W.return();G.addEventListener("onCueRangeEnter",m);_.ey(W)})};
UXJ=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(_.Pp(),2);G=W.yieldResult;if((K=G)==null||!K.removeEventListener)return fz(),W.return();G.removeEventListener("onCueRangeEnter",m);_.ey(W)})};
zfV=function(m){var G,K,W,L,A;_.Y(function(O){if(O.nextAddress==1)return O.yield(_.Pp(),2);G=O.yieldResult;if((K=G)==null||!K.addCueRange)return fz(),O.return();W=_.g(m.timings);for(L=W.next();!L.done;L=W.next())A=L.value,G.addCueRange(m.uniqueId+"-"+A,A/1E3,(A+100)/1E3);_.ey(O)})};
lYP=function(m){var G,K,W,L,A;_.Y(function(O){if(O.nextAddress==1)return O.yield(_.Pp(),2);G=O.yieldResult;if((K=G)==null||!K.removeCueRange)return fz(),O.return();W=_.g(m.timings);for(L=W.next();!L.done;L=W.next())A=L.value,G.removeCueRange(m.uniqueId+"-"+A);_.ey(O)})};
B79=function(){var m,G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.Pp(),2);m=W.yieldResult;if((G=m)==null||!G.getPlayerState)return fz(),W.return();K=m.getPlayerState();return W.return(K===2)})};
fz=function(){_.nc(new _.cw("Smartimation player does not exist or is corrupted"))};
McM=function(){try{var m;return(m=window.CSS)!=null&&m.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(G){return _.nc(new _.cw("Smartimation CSS.supports threw an error")),!1}};
L0V=function(m,G,K,W,L){var A=m.playlistId?T79:mZ9;G=G();K=K();L=!!m.videoId&&L()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Mc(G))return iIs({data:m,actionType:A,disabled:L},K);if(m.videoId&&W())return GO9({data:m,actionType:A,disabled:L});switch(G){case "TRANSFER_STATE_UNKNOWN":return GO9({data:m,actionType:A,disabled:L});case "TRANSFER_STATE_FAILED":return m.videoId?K0d({data:m,actionType:A,disabled:L}):W0F({data:m,actionType:A,disabled:L});case "TRANSFER_STATE_COMPLETE":return W0F({data:m,
actionType:A,disabled:L});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return iIs({data:m,actionType:A,disabled:L},K);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return m.videoId?K0d({data:m,actionType:A,disabled:L}):GO9({data:m,actionType:A,disabled:L});default:return GO9({data:m,actionType:A,disabled:L})}};
AFJ=function(m,G){var K=m.onTapCommand,W=_.c8(K);if(m.videoId&&_.Q(W,_.xg))return _.Q(W,_.xg).action=G,K;m.playlistId&&_.Q(W,_.Xk)&&(_.Q(W,_.Xk).action=G);return K};
GO9=function(m){var G=m.data;var K=m.actionType;m=m.disabled;return{text:wKf,iconType:"OFFLINE_DOWNLOAD",onTap:AFJ(G,K.ACTION_ADD),disabled:m}};
iIs=function(m,G){var K=m.data;var W=m.actionType;m=m.disabled;var L="OFFLINE_DOWNLOAD";G>=0&&G<=.1?L="OFFLINE_DOWNLOADING_ZERO":G>.1&&G<=.3?L="OFFLINE_DOWNLOADING_TWENTY":G>.3&&G<=.5?L="OFFLINE_DOWNLOADING_FORTY":G>.5&&G<=.7?L="OFFLINE_DOWNLOADING_SIXTY":G>.7&&G<1?L="OFFLINE_DOWNLOADING_EIGHTY":G===1&&(L="OFFLINE_PIN");return{text:gcs,iconType:L,onTap:AFJ(K,W.ACTION_REMOVE_WITH_PROMPT),disabled:m}};
W0F=function(m){var G=m.data;var K=m.actionType;m=m.disabled;return{text:OIf,iconType:"OFFLINE_PIN",onTap:AFJ(G,K.ACTION_REMOVE_WITH_PROMPT),disabled:m}};
K0d=function(m){var G=m.data;var K=m.actionType;m=m.disabled;return{text:cFJ,iconType:"OFFLINE_DOWNLOAD",onTap:AFJ(G,K.ACTION_RETRY),disabled:m}};
_.S5=function(m,G){var K=ELP();return _.pT(function(){K();return jHV(m,[_.EZ(G)||""])},{debugName:"LUZslf"},"Z105t")};
YIF=function(m){var G=_.S5(_.uw,function(){return m().videoId}),K=_.S5(_.hM,function(){return m().playlistId});
return function(){return m().videoId?G:m().playlistId?K:_.g(_.g_("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
rFs=function(m){var G=_.S5(pG,function(){return m().videoId}),K=_.S5(_.qWo,function(){return m().playlistId});
return function(){return m().videoId?G:m().playlistId?K:_.g(_.g_(0,void 0,"K4tgOc")).next().value}};
u89=function(m){var G=_.S5(_.rrJ,function(){return m().videoId});
return function(){return m().videoId?G:_.g(_.g_(!1,void 0,"Oaxwcf")).next().value}};
hKd=function(m){var G=_.S5(Ar9,function(){return m().videoId});
return function(){return m().videoId?G:_.g(_.g_("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
pKd=function(){return{}};
_.F0G=function(m,G,K){return{submitForm:function(){var W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){W=JFJ(m());if(!W)return c.return();if(W.onSubmit)return NJV(G),W.onSubmit(),NJV(K),c.return();if(!W.submitConfig||!W.formData)return c.jumpTo(0);W.disableDuringSubmission&&DZM(m(),!0);NJV(G);return c.yield(t9P(W.submitConfig,W.formData()),3)}L=c.yieldResult;NJV(K);if(((A=L)==null?0:A.submitResult)&&((O=W)==null?0:O.onSubmitResult))W.onSubmitResult(L.submitResult);W.disableDuringSubmission&&DZM(m(),
!1);return c.return()})},
isValid:function(){var W=JFJ(m());if(W){var L;return!((L=W.isValid)==null||!L.call(W))}return!0},
isSubmitting:function(){var W,L;return!!((W=JFJ(m()))==null?0:(L=W.isSubmitting)==null?0:L.call(W))}}};
_.RL=function(){if(!Q6v){var m=_.g(_.g_(new Map,void 0,"Y1XnBc"));Q6v=m.next().value;aZ6=m.next().value}return Q6v};
_.oco=function(m){aZ6(new Map(m))};
JFJ=function(m){if(m)return _.RL()().get(m)};
t9P=function(m,G){var K;return _.Y(function(W){return W.nextAddress==1?G?(K=_.xS().resolve(_.fn(ncf)))&&m.submitId?W.yield(K.submitForm(m.submitId,G,bIo,m.params,m.clickTrackingParams),2):W.return(Promise.reject(Error("Dh"))):W.return(Promise.reject(Error("Ch"))):W.return(W.yieldResult)})};
DZM=function(m,G){if(m){var K=_.RL();K().set(m,Object.assign({},K().get(m),{isSubmitting:function(){return G}}));
_.oco(K())}};
NJV=function(m){if(m){var G=_.xS().resolve(_.S1);G&&(m=_.c8(m()))&&G.resolveCommand(m)}};
s6G=function(m,G){G=G===void 0?{shouldPersist:!0}:G;return{useUpdatableData:function(K,W){var L=_.pT(function(){return m(K())},void 0,"Gmrblb"),A=vcv(K,L,W,G);
_.$O(function(){if(L()!=null){$ZG.set(L(),A);var O=L();_.sZ(function(){$ZG.delete(O)})}},"j4hx9b");
return A},
getData:function(K){var W;return(W=$ZG.get(m(K)))==null?void 0:W[0]()},
updateData:function(K,W){K=m(K);K=$ZG.get(K);if(!K)return!1;var L=_.g(K);K=L.next().value;L=L.next().value;W=W(K());L(W);return!0}}};
vcv=function(m,G,K,W){W=W===void 0?{}:W;var L=_.g(_.EQ(function(){var c=m(),u=G();return qId(c,u,K,W)})),A=L.next().value,O=L.next().value;
return[A,function(c){O(c);var u=G();if(W.shouldPersist&&u!=null){var h,J=(h=K==null?void 0:K.map(function(N){return N()}))!=null?h:[];
_.UT.set(u,[c,J])}}]};
qId=function(m,G,K,W){W=W===void 0?{}:W;if(G==null||!W.shouldPersist)return m;W=_.UT.get(G);if(!W)return m;var L=_.g(W);W=L.next().value;var A=L.next().value,O;L=(O=K==null?void 0:K.map(function(c){return c()}))!=null?O:[];
if((A==null?0:A.length)&&(K==null?0:K.length)&&L.some(function(c,u){return c!==A[u]}))return _.UT.remove(G),m;
(K==null?0:K.length)&&_.UT.set(G,[W,L]);return W};
EcG=function(m){var G=_.g(_.g_(!0,void 0,"bKtO6d")),K=G.next().value;G.next();return function(){var W=cO(m.children());return _.r(_.p,{cond:K,then:function(){return W},
else:m.fallback})}()};
_.z$=function(m){var G=HIv(m),K=G.data,W=G.mapping,L=G.wrapper;G=G.pendingFallback;var A=function(){return IZ9(_.EZ(K))},O=function(){var c=A(),u=[];
c=_.g(c);for(var h=c.next();!h.done;h=c.next()){var J=void 0;h=h.value;var N=void 0;for(J in h)if(!(!h).hasOwnProperty(J)){N=J;break}(J=N)&&u.push(J)}return u};
return m.data?_.r(EcG,{fallback:G},function(){return _.r(_.D0,{each:O},function(c,u){var h=L?function(a){return L(function(){return W[c](a,u)},J,u)}:function(a){return W[c](a,u)};
h.debugName||(h.debugName=String(c));if(!W[String(c)])return document.createComment("");h.componentType!==DM&&j66(String(c));var J=kOd(A,c,u);if(_.F("web_add_microtask_to_stamper")&&!CRV.has(String(c))){var N=_.g(_.g_(!1,void 0,"afb1md")),D=N.next().value,t=N.next().value;Promise.resolve().then(function(){CRV.add(String(c));t(!0)});
return _.r(_.p,{cond:D,then:function(){return _.r(h,{data:J})}})}return _.r(h,{data:J})})}):_.r(_.zL,null)};
HIv=function(m){var G=m.targetId||V9V(m.children);if(!m.data||!G)return Object.assign({},m,{mapping:m.children});var K="stamper-"+ZIJ++,W=function(){var c;return(c=typeof m.targetId==="function"?m.targetId(K):m.targetId)!=null?c:K};
G=_.g(dZF(function(){var c=IZ9(m.data());c.targetId=W;return c})).next().value;
var L=Object.assign({},(_.xS().resolve(_.fn(PR9))||{}).replaceableMapping,m.children);if(m.replacementWrapper){var A=L.notificationTextRenderer,O=L.notificationMultiActionRenderer;A&&(L.notificationTextRenderer=function(c,u){return m.replacementWrapper(A({data:c.data},u))});
O&&(L.notificationMultiActionRenderer=function(c,u){return m.replacementWrapper(O({data:c.data},u))})}return Object.assign({},m,{data:G,
mapping:L,wrapper:function(c,u,h){return ulM({targetId:W,stamperIndex:h},m.wrapper?function(){return m.wrapper(c,u,h)}:c)}})};
kOd=function(m,G,K){var W;return _.pT(function(){var L=m()[K()];if(L)W=L[G];else return _.nc(new _.cw("Stamper failed to find "+String(G)+" at index "+K()+" of data array of length "+(m().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),W;return L[G]},void 0,"Su9U8")};
V9V=function(m){m=_.g(Object.keys(m));for(var G=m.next();!G.done;G=m.next())if(G=G.value,yFJ.includes(G)||eKG.includes(G)||fZ9.includes(G))return!0;return!1};
IZ9=function(m){return m?Array.isArray(m)&&m instanceof Array?m:[m]:[]};
j66=function(m){if(_.F("web_enable_renderer_logger")){var G;(G=_.xS().resolve(_.fn(xZf)))!=null&&G.loggingEnabled&&!G.ids.has(m)&&G.ids.add(m)}};
XKG=function(){var m,G;return(G=(m=_.xS().resolve(_.fn(_.l_)))==null?void 0:m())!=null?G:!1};
RKd=function(m,G){m=m===void 0?SIJ:m;switch(G.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},m,{isOpen:G.payload});default:return m}};
zK9=function(m,G){m=m===void 0?UZM:m;switch(G.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},m,{isAllowed:G.payload});default:return m}};
BJs=function(m,G){m=m===void 0?lZV:m;switch(G.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},m,{errorMessage:G.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},m,{title:G.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},m,{privacy:G.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},m,{isDisabled:G.payload});default:return m}};
TJ9=function(m,G){m=m===void 0?M99:m;switch(G.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},m,{isOpen:G.payload});default:return m}};
iFo=function(m,G){m=m===void 0?m0G:m;switch(G.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},m,{isFullscreen:G.payload});case "SET_NAVIGATION_BUTTON":var K=G.payload.targetId,W=Object.assign({},m.navigationButtons);W[K]=G.payload.button;return Object.assign({},m,{navigationButtons:W});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},m,{topPanelId:G.payload});case "SET_SECONDARY_HEADER":return K=G.payload.panelId,W=Object.assign({},m.secondaryHeader),W[K]=G.payload.secondaryHeader,
Object.assign({},m,{secondaryHeader:W});default:return m}};
L2G=function(){return pA(Object.assign({},{voiceSearch:WMJ,engagementPanel:iFo,bottomSheet:RKd,cinematicSetting:zK9,shorts:rGG,drawerLayout:TJ9,createPlaylist:BJs,locationCollection:GKs,reportChannel:K2o,reportForm:W2d},uno))};
AB9=function(m,G){_.Fu.addLowPriorityJob(function(){var K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return _.IO(A,2),A.yield(PHf(),4);case 4:return A.yield(fetch(m),5);case 5:return K=A.yieldResult,A.yield(K.json(),6);case 6:W=A.yieldResult;My.set(m,W);requestAnimationFrame(function(){G(W)});
_.IG(A,0);break;case 2:L=_.ye(A),_.nc(L),_.ey(A)}})})};
wnG=function(m){var G={animationConfig:{},listeners:{}},K=function(){m(!0)};
G.listeners.data_failed=K;G.listeners.error=K;G.listeners.data_ready=function(){m(!1)};
return G};
cBd=function(m){var G=m.model;var K=m.subscribed;var W=m.isOverlay;var L=m.element;var A=m.commandController;var O=m.notificationState;if(K){var c,u;var h=(G==null?void 0:(c=G.buttonStyle)==null?void 0:c.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:G==null?void 0:(u=G.unsubscribeButtonContent)==null?void 0:u.buttonText}else{var J;h=G==null?void 0:(J=G.subscribeButtonContent)==null?void 0:J.buttonText}a:{var N;switch(G==null?void 0:(N=G.buttonStyle)==
null?void 0:N.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":c="S";break a;default:c="M"}}a:if(W)W="overlay";else switch(G.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":W="overlay";break a;default:W="mono"}a:if(K)var D="tonal";else switch((D=G.buttonStyle)==null?void 0:D.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":D=
"tonal";break a;default:D="filled"}return{style:W,type:D,state:G.disableSubscribeButton?"disabled":"active",size:c,focused:m.focused,toggled:K,accessibilityLabel:gds(G,K,O),buttonText:h,iconPosition:G.disableNotificationBell?"none":"leading-trailing",onTap:OFM(G,K,L,A),disableTextEllipsis:!!m.disableTextEllipsis}};
OFM=function(m,G,K,W){return function(L){if(G){var A;var O=m.disableNotificationBell?_.c8(m==null?void 0:(A=m.unsubscribeButtonContent)==null?void 0:A.onTapCommand):_.c8(m==null?void 0:m.onShowSubscriptionOptions)}else{var c;O=_.c8(m==null?void 0:(c=m.subscribeButtonContent)==null?void 0:c.onTapCommand)}O&&SA(O,{form:{element:K==null?void 0:K.value},commandController:W});L.stopPropagation()}};
gds=function(m,G,K){if(G){if(m==null?0:m.disableNotificationBell){var W;return m==null?void 0:(W=m.unsubscribeButtonContent)==null?void 0:W.accessibilityText}switch(K){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var L;return m==null?void 0:(L=m.bellAccessibilityData)==null?void 0:L.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var A;return m==null?void 0:(A=m.bellAccessibilityData)==null?void 0:A.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var O;return m==null?void 0:(O=
m.bellAccessibilityData)==null?void 0:O.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var c;return m==null?void 0:(c=m.bellAccessibilityData)==null?void 0:c.disabledLabel;default:var u;return m==null?void 0:(u=m.unsubscribeButtonContent)==null?void 0:u.accessibilityText}}else{var h;return m==null?void 0:(h=m.subscribeButtonContent)==null?void 0:h.accessibilityText}};
Yzd=function(m,G){return _.yx(m.entities,"subscriptionStateEntity",G)};
rBd=function(m,G){return _.yx(m.entities,"subscriptionNotificationStateEntity",G)};
urf=function(m,G){return _.yx(m.entities,"upcomingEventReminderStateEntity",G)};
hc9=function(m,G){return _.yx(m.entities,"commentEntityPayload",G)};
pn6=function(m,G){return _.yx(m.entities,"engagementToolbarSurfaceEntityPayload",G)};
JBs=function(m,G){return _.yx(m.entities,"triStateButtonStateEntityPayload",G)};
NeG=function(m,G){return _.yx(m.entities,"commerceCartCheckoutButtonEntity",G)};
D0d=function(m,G){return _.yx(m.entities,"commandEntity",G)};
t3M=function(m){if(m){switch(m){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":m="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":m="NOTIFICATIONS_OFF";break;default:m="NOTIFICATIONS_NONE"}return m}};
F2J=function(m,G,K){K.subscribed!==G&&((K=K.key)&&_.$e(_.Bp("subscriptionStateEntity",K,{key:K,subscribed:G})),m.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:G})),G||_.dU(m,"yt-unsubscribe-action"))};
aiG=function(m){m=_.Q(_.c8(m),_.MW);var G,K,W,L;return(L=_.Q(m==null?void 0:(G=m.panelLoadingStrategy)==null?void 0:(K=G.inlineContent)==null?void 0:(W=K.sheetViewModel)==null?void 0:W.content,QAo))==null?void 0:L.listItems};
odJ=function(m,G){if(m.onShowSubscriptionOptions&&G&&(m=aiG(m.onShowSubscriptionOptions),m!=null&&m.length)){var K=t3M(G);m.forEach(function(W){W=_.Q(W,_.T$);var L,A,O,c,u=W==null?void 0:(L=W.leadingImage)==null?void 0:(A=L.sources)==null?void 0:(O=A[0])==null?void 0:(c=O.clientResource)==null?void 0:c.imageName;W&&u&&(W.isSelected=u===K)})}};
ndG=function(m,G,K,W){G&&K?m.style.width=K+"px":!G&&W&&(m.style.width=W+"px")};
bFf=function(m,G,K){var W;(W=m.lottieEl)==null||W.goToAndPlay(0);var L;(L=G.lottieEl)==null||L.goToAndPlay(0);_.mn(_.Fu,function(){var A;(A=K.lottieEl)==null||A.goToAndPlay(0)},300)};
vd9=function(m){return!(m==null||!m.iconName||(m==null?0:m.title))};
$09=function(m,G,K,W){K&&_.Fu.cancelJob(K);K=_.Fu.addLowPriorityJob(function(){W(void 0)},5E3);
W(K);G&&m!==(G.likeStatus==="LIKE")&&G.key&&_.$e(_.Bp("likeStatusEntity",G.key,{key:G.key,likeStatus:m?"LIKE":"INDIFFERENT",hadUserInteraction:m}))};
_.sAF=function(m,G){return _.yx(m.entities,"accountLinkStatusEntity",G)};
qzP=function(m,G){return _.yx(m.entities,"hatsSurveyEntity",G)};
EdV=function(m,G){return _.yx(m.entities,"hatsSurveyStateEntity",G)};
HFJ=function(m,G){return _.yx(m.entities,"quantityIncrementerEntity",G)};
Ii9=function(m){switch(m){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_LIVE_NOW":return 11;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
jAv=function(m){switch(m){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}};
kK6=function(m){switch(m){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.V3f=function(m){var G=_.U8("web_generic_client_event_wait_period ",0);G||(G=3E5);var K=CVJ.get(m);!_.F("enable_web_client_experiment_event_timeout_killswitch")&&K&&(0,_.xD)()-K<G||(CVJ.set(m,(0,_.xD)()),_.Fx("genericClientExperimentEvent",{eventType:m}))};
_.ZFs=function(m,G){var K,W,L,A;a:{var O=m.style;if(O===void 0)O=17;else switch(O){case "LIVE":O=18;break a;default:O=17}}return{type:O,text:G?N0v({seconds:G}):_.bw(m.text),accessibilityText:(K=m.text)==null?void 0:(W=K.accessibility)==null?void 0:(L=W.accessibilityData)==null?void 0:L.label,icon:(A=m.icon)==null?void 0:A.iconType}};
d09=function(m){switch(m){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
PVd=function(m){if(!m)return"";var G,K=(G=_.xS().resolve(_.fn(_.l_)))==null?void 0:G(),W;if(!K&&((W=m.vibrantColorPalette)==null?0:W.iconInactiveColor))return YC(m.vibrantColorPalette.iconInactiveColor,"1");var L;return K&&((L=m.darkColorPalette)==null?0:L.iconInactiveColor)?YC(m.darkColorPalette.iconInactiveColor,"1"):m.color?YC(m.color,"1"):m.sampledThumbnailColor?(m=m.sampledThumbnailColor,"rgba("+m.red+","+m.green+","+m.blue+");"):""};
_.ik=function(m,G){if(!m.includes("DATE_PLACEHOLDER"))return m;var K=new Date(0);K.setUTCSeconds(G);return m.replace("DATE_PLACEHOLDER",yBf(K))};
ecf=function(m,G,K){return function(W){var L=m.command;L&&(SA(L,{form:{element:K}}),G([L],W))}};
x0M=function(m,G,K,W,L){return function(A){var O=fi6(m,G);O&&SA(O,{form:{element:K},commandController:W});L&&A.stopPropagation()}};
fi6=function(m,G){if(m.signInEndpoint&&!_.F("web_subscribe_sign_in_endpoint_killswitch"))return m.signInEndpoint;if(G){if(m.serviceEndpoints)return m.serviceEndpoints[1];if(m.onUnsubscribeEndpoints)return m.onUnsubscribeEndpoints[0]}else{if(m.serviceEndpoints)return m.serviceEndpoints[0];if(m.onSubscribeEndpoints)return m.onSubscribeEndpoints[0]}};
XnM=function(m,G){var K,W,L,A;G=G&&((K=m.unsubscribeAccessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)||((L=m.subscribeAccessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label);return m.longSubscriberCountText?[G,_.bw(m.longSubscriberCountText)].filter(function(O){return O}).join(" "):G};
G_=function(m,G){return G||(m==null?0:m.isChannelDelegate)?"disabled":"active"};
SzG=function(m,G){var K;switch((K=m.style)==null?void 0:K.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:G_(m)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:G_(m)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:G_(m,!0)};case "OVERLAY":return G?{style:"overlay",type:"tonal",state:G_(m)}:{style:"overlay",type:"filled",state:G_(m)};default:return G?{style:"mono",type:"tonal",state:G_(m)}:{style:"mono",type:"filled",state:G_(m)}}};
_.KQ=function(){for(var m=[],G=_.g(_.mb.apply(0,arguments)),K=G.next();!K.done;K=G.next())if(K=K.value)if(typeof K==="string")m.push(K);else{K=_.g(Object.entries(K));for(var W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;(L=L.next().value)&&m.push(W)}}return m.join(" ")};
RcV=function(m){switch(m){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
U0J=function(m){switch(m){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
zcG=function(m,G){var K=m.map(function(W){return W.toString()});
return _.dn(function(W){if(K.includes(W.key)){G&&W.preventDefault();var L;(L=W.currentTarget)==null||L.click()}})};
_.WR=function(){return zcG(["Enter"])};
_.liJ=function(){return zcG(["Enter"," "],!0)};
_.LQ=function(m){if(m.composedPath)return m.composedPath();if(!m.__composedPath){for(var G=[],K=m.target;K;)G.push(K),K=K.parentNode;G.push(window);m.__composedPath=G}return m.__composedPath};
_.A3=function(m,G,K){m=_.g(m);for(var W=m.next();!W.done;W=m.next()){W=W.value;if(W===G)break;for(var L=_.g(K),A=L.next();!A.done;A=L.next())if(A=A.value,W.tagName===A||W.role==="button"&&A==="BUTTON")return!0}return!1};
M36=function(m,G){var K,W=(K=G.observer)!=null?K:_.xS().resolve(yb);if(m){K=Bev(m);var L=[];G.showOption&&L.push(W.observe(m,function(){G.visibilityCallback(!0,m)},G.showOption));
G.hideOption&&L.push(W.observe(m,function(){G.visibilityCallback(!1,m)},G.hideOption));
G.prescanOption&&G.prescanCallback&&L.push(W.observe(m,function(){G.prescanCallback()},G.prescanOption));
var A;K.visibilityMonitorKeys=((A=K.visibilityMonitorKeys)!=null?A:[]).concat(L)}};
Bev=function(m){var G;return(G=m.polymerController)!=null?G:m};
_.gH=function(m){return!!_.wH(m)};
_.On=function(m,G,K,W,L){return function(A){var O=rvP();_.$O(function(){if(A){Te9(A,m(),L);var c=mDP(A,m(),G,K,W,O);_.sZ(c)}},"lrewVd")}};
Te9=function(m,G,K){var W=iHV(G),L=GVd(G),A=W&&gHs,O=L&&wDd;(W||L)&&M36(m,{visibilityCallback:function(c){var u=_.xS().resolve(_.S1);c&&W?(u.resolveCommand(W,{form:{element:K?m:void 0},disableClickTracking:!0}),W=iHV(G)):!c&&L&&(u.resolveCommand(L,{form:{element:K?m:void 0},disableClickTracking:!0}),L=GVd(G))},
showOption:A,hideOption:O})};
mDP=function(m,G,K,W,L,A){var O=new Map;if(G=_.wH(G)){var c;m=(W==null?void 0:(c=W.onTap)==null?void 0:c.value)||m;K=Kwd(G,m,K==null?void 0:K.onTap,L,A);m.addEventListener("click",K);O.set("click",K)}return function(){for(var u=_.g(O),h=u.next();!h.done;h=u.next()){var J=_.g(h.value);h=J.next().value;J=J.next().value;m.removeEventListener(h,J)}}};
_.wH=function(m){var G;return(m=(G=_.Q(m,_.cR))==null?void 0:G.onTap)&&_.c8(m)};
iHV=function(m){var G;return(m=(G=_.Q(m,_.cR))==null?void 0:G.onVisible)&&_.c8(m)};
GVd=function(m){var G;return(m=(G=_.Q(m,_.cR))==null?void 0:G.onHidden)&&_.c8(m)};
Kwd=function(m,G,K,W,L){var A=function(c){_.xS().resolve(_.S1).resolveCommand(m,c)},O=function(c){W&&_.A3(_.LQ(c),G,W)||A(c.target?{form:{element:c.target,
sourceData:m,mutationContext:L}}:void 0)};
K&&(O=function(c){K(c,A)});
return O};
WwF=function(m){switch(m){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}};
LwJ=function(m){var G=m.numAvatarsInCluster;switch(m.clusterSize){case "small":return G===2?22:18;case "40":return G===2?24:22;default:return G===2?24:20}};
Anf=function(m,G){return function(K){var W=Object.keys(G);_.$O(function(){if(m!=null&&m()){for(var L=_.g(W),A=L.next();!A.done;A=L.next())A=A.value,K.addEventListener(A,G[A]);_.sZ(function(){for(var O=_.g(W),c=O.next();!c.done;c=O.next())c=c.value,K.removeEventListener(c,G[c])})}},"bXZGfe")}};
w6s=function(m){switch(LwJ(m)){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""}};
gsv=function(m){switch(m){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""}};
OHd=function(m){switch(LwJ(m)){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""}};
cnG=function(m){switch(m){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""}};
YuP=function(m){switch(m){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}};
rnd=function(m){return m==="medium"||m==="48"||m==="large"||m==="extra-large"||m==="extra-extra-large"||m==="giant"};
uIP=function(m){return!!((m==null?0:m.includes(3))||(m==null?0:m.includes(5)))};
p6G=function(m){var G=m.data;return{size:h16(G.avatarImageSize),type:G.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:m.onTap,decorations:m.decorations||[],badgeText:m.badgeText,accessibilityText:m.accessibilityText,avatarButtonCustomClassName:m.avatarButtonCustomClassName,clusterLayoutConfig:m.clusterLayoutConfig}};
h16=function(m){switch(m){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"}};
Jnv=function(m){switch(m){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}};
Ngd=function(m){switch(m){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
DDJ=function(m){var G=m.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",K,W=m.avatars&&m.avatars.length>0?(K=_.Q(m.avatars[0],_.YA))==null?void 0:K.avatarImageSize:"AVATAR_SIZE_UNKNOWN";K=Jnv(W)||0;if(G){var L,A=(L=m.avatarClusterSize)!=null?L:"AVATAR_SIZE_M";G=Jnv(A);var O,c,u=Math.min((c=(O=m.avatars)==null?void 0:O.length)!=null?c:0,4),h;return{avatars:((h=m.avatars)==null?void 0:h.slice(0,4))||[],avatarSizeInPx:K,avatarStackStyle:{width:G+"px",height:G+"px",position:"relative"},avatarStyle:function(N){var D=
LwJ({clusterSize:h16(A),numAvatarsInCluster:u,avatarIndex:N});var t=Jnv(A);u===3&&N===2?(t=(t-D)/2,t=(_.E8("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*t):t=void 0;return{position:"absolute",top:u===2&&N===1||u===3&&N===2||u===4&&N>=2?"0":void 0,bottom:u===2&&N===0||u>2&&N<2?"0":void 0,left:u===2&&N===1||u>2&&(N===1||N===3)?"0":void 0,right:u<=3&&N===0||u===4&&(N===0||N===2)?"0":void 0,transform:t?"translateX("+t+"px)":void 0,width:D+"px",height:D+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(N){return{clusterSize:h16(m.avatarClusterSize),numAvatarsInCluster:u,avatarIndex:N}},
avatarButtonCustomClassName:void 0}}var J;return{avatars:((J=m.avatars)==null?void 0:J.slice())||[],avatarSizeInPx:K,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:Ngd(W),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
ttd=function(m,G,K){return function(){SA(m,{form:{element:G},commandController:K})}};
Fwo=function(m){switch(m){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
QjJ=function(m){switch(m){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
auo=function(m){if("accessibilityText"in m)return m.accessibilityText||"";if("title"in m){var G,K,W;return((G=m.title)==null?void 0:(K=G.accessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)||""}if("accessibility"in m){var L,A;return((L=m.accessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label)||""}return""};
osV=function(m){return"inlinePlayerData"in m};
rH=function(m){return new ns9(m)};
bHV=function(m){switch(m){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"}};
vsf=function(m){switch(m){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;case "BADGE_MEDIA":return 1;case "BADGE_TIMELY":return 5;default:return 0}};
$DF=function(m){switch(m){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}};
sjv=function(m){return function(G){m&&(m.thumbnailElRef=G.thumbnailElRef,m.thumbnail=G.thumbnail,m.thumbnailOverlays=G.thumbnailOverlays,m.thumbnailSize=G.thumbnailSize)}};
quf=function(m){switch(m){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
HH9=function(m){var G=_.g(_.g_(!1,void 0,"E6wDDe")),K=G.next().value,W=G.next().value;_.bX(function(){var L=m==null?void 0:m();if(L){var A=_.xS().resolve(_.fn(EsJ));if(A){var O={triggeringElement:L,onDwellTriggeredFn:function(){W(!0)},
onDwellEndFn:function(){W(!1)}};
A.registerElement(O);_.sZ(function(){_.uk(A,O)})}}});
return K};
IuM=function(m){if(m.querySelector("img")){var G=m.querySelector("img");G.addEventListener("error",function(){p7G(G.src).then(function(K){(K=_.T7(K).toString())?G.src=K:G.removeAttribute("src")}).catch(function(){G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
jj6=function(m,G,K){K?K(G):_.h$(G,m.target?{form:{element:m.target}}:void 0)};
_.h3=function(m,G,K,W){return function(L){_.$O(function(){function A(J){J=J.composedPath();J=_.g(J);for(var N=J.next();!N.done;N=J.next()){N=N.value;if(N===L)break;if(N.className.indexOf("HostIsClickableAdComponent")>=0||N.tagName==="A".toString()||N.tagName==="BUTTON".toString())return!0}return!1}
var O=new Map,c,u=(c=m())==null?void 0:c.onTap;if(u){c=function(J){A(J)||jj6(J,u,G)};
var h=function(J){A(J)||J.key!=="Enter"||jj6(J,u,G)};
(K==null?0:K())||_.F("enable_web_home_top_landscape_image_layout_level_click")?(L.addEventListener("tap",c),O.set("tap",c)):(L.addEventListener("click",c),O.set("click",c));if(W==null?0:W())L.addEventListener("keydown",h),O.set("keydown",h)}_.sZ(function(){for(var J=_.g(O),N=J.next();!N.done;N=J.next()){var D=_.g(N.value);N=D.next().value;D=D.next().value;L.removeEventListener(N,D)}})},"D7XqOc")}};
kVP=function(m,G){var K,W=(K=m.interaction)==null?void 0:K.onTap;if(m=_.rn({elementsCommand:W,forceNewState:!0,skipOnClick:!0}))return m.onclick=function(L){XSP(L)&&(L.preventDefault(),W&&jj6(L,W,G))},uK(m)?m:void 0};
CjG=function(m){switch(m){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
Vtd=function(m){switch(m){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"}};
ZH9=function(m){switch(m){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"}};
_.dD9=function(m){return _.F("rich_grid_enable_dynamic_offset")&&m?Math.max((m-_.U8("rich_grid_dynamic_offset_anchor_width",1300))/100*_.U8("rich_grid_dynamic_offset_offset_per_100",10),_.U8("rich_grid_dynamic_offset_lower_bound",-60)):0};
Pjo=function(m,G){switch(G){case 4:return 16;case 1:return m<528?16:m<1024?32:48;case 2:return(m>=528?16:8)/2;case 3:return(m<528?16:m<1024?32:48)+(m>=528?16:8)/2;default:return 0}};
ynd=function(m){var G=m.originalContainerWidth;var K=m.sizing;var W=m.standardUnit;if(m.isCompactList&&G<528)return 1;switch(K){case "STANDARD":return W;case "COMPACT":return W+1;case "EXTRA_COMPACT":return _.F("web_responsive_extra_compact_2x")?W*2:_.F("web_responsive_current")?W===1?2:W%2===0?W/2*3:W+2:W<4?W*2:Math.ceil(W*3/2);case "MINI":return W>1?W*2:3;default:return W}};
fuG=function(m){var G=m.containerWidth;var K=m.peek;var W=m.gutter;var L=m.numItems;m=m.ignoreMaxWidthLimit;G=K?Math.max((G-K-W*L)/L,0):Math.max((G-W*(L-1))/L,0);return m?G:Math.min(G,e1M)};
_.pQ=function(m){var G=m.containerWidth;var K=m.hasPeek;var W=m.sizing;var L=m.marginSettings;var A=m.isCompactList;var O=m.enableFullBleedForSingleCol;var c=m.standardUnitMinWidth;W=W||"STANDARD";K=!!K;m=G>=528?16:8;var u=K?G>=528?48:24:0;L=Pjo(G,L);var h=Math.max(G-L*2,0);c=_.F("kevlar_disable_min_width_override")?void 0:c;c=Math.min(Math.max(Math.floor((h-u+m)/((c!=null?c:xDJ)+_.dD9(G)+m)),1),6);var J=(O=!!O&&c===1)||c===1&&W!=="STANDARD";K=K||J?h:Math.min(h,(e1M+m)*c-m);W=ynd({originalContainerWidth:G,
sizing:W,standardUnit:c,isCompactList:A});return{itemWidth:fuG({containerWidth:K,peek:u,gutter:m,numItems:W,ignoreMaxWidthLimit:J}),gutter:m,maxContainerWidth:K,numItems:W,margin:O?0:L,contentMargin:Pjo(G,1),typographyBump:fuG({containerWidth:K,peek:u,gutter:m,numItems:c,ignoreMaxWidthLimit:J})>400&&!(A&&G<528),standardUnit:c}};
J3=function(m){switch(m){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.X6G=function(m){if(m){var G;if((G=m.responsiveContainerConfiguration)==null?0:G.responsiveSize)return J3(m.responsiveContainerConfiguration.responsiveSize);if(m.layoutSizing)switch(m.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"}}};
Su6=function(m){if(m.fullbleed)return 1;switch(m.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
Bgd=function(m,G,K,W,L,A,O,c,u){a:if(m===4&&W==="LOCKUP_CONTENT_TYPE_SOURCE")var h=1;else switch(m){case 3:h=1;break a;default:h=0}var J=R1J(m,W);a:switch(m){case 4:A=!!(A&&A<100);break a;default:A=!1}a:switch(m){case 3:case 4:var N=W==="LOCKUP_CONTENT_TYPE_CHANNEL"||W==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:N=!1}return{metadataOnThumbnail:J,isOverlay:c||J,isCard:UDG(W,O),sizing:G!=null?G:"STANDARD",typographyBump:K!=null?K:!1,isTiny:A,isCentered:N,isCollection:z1s(W),arrangement:h,addMarginForFullbleed:m===
1&&W!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:m===1&&W==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:luF(W,L,u),disableRounding:m===5||UDG(W,O)||m===1&&W==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:z1s(W)?2:0,useLegacyTypography:!(u==null||!u.useLegacyTypography),useRichGridLegacyTypography:!(u==null||!u.useRichGridLegacyTypography)&&!_.F("web_enable_typography_bump"),compactMetadata:h===0&&W==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:u==null?void 0:u.onFocusEffect,titleMaxLines:W==="LOCKUP_CONTENT_TYPE_AI_CARD"?
1:void 0}};
z1s=function(m){switch(m){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":case "LOCKUP_CONTENT_TYPE_MIX":case "LOCKUP_CONTENT_TYPE_STATION":return!0;default:return!1}};
UDG=function(m,G){if(G&&m==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(m){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
R1J=function(m,G){if(G==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(m){case 5:return!0;case 4:return!1;default:return!1}};
luF=function(m,G,K){if(G&&(K==null||!K.alwaysRespectPodcastShowAspectRatio||m!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(m){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}};
_.NB=function(m){if(m){var G;return((G=_.xS().resolve(_.fn(_.l_)))==null?0:G())?m.darkThemeImage:m.image}};
m5f=function(m,G,K,W,L,A){if(L&&A&&G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:L,height:A};if(!K)return{};L=K.size;K=K.allowFullWidth;if(G==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&K)return{fullWidth:!0};if(L===void 0)return{};switch(m){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:L,height:L};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:L,height:1/MtF*L};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:L*
TgV,height:L};default:return(W==null?0:W.height)&&(W==null?0:W.width)?W.width/W.height>1?{maxWidth:L*TgV}:{maxWidth:L}:{maxWidth:L}}};
ijM=function(m){var G;return m&&((G=_.NB(m.themedImage))!=null?G:m.image)};
GAv=function(m){var G;return m==null?void 0:(G=m.sources)==null?void 0:G[0]};
KkV=function(m){switch(m){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.Wks=function(m){if(m)return"content-id-"+m};
LkM=function(m){switch(m.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"}}};
A2d=function(m){var G=_.DE.currentPageSubTypeSelector(_.nD().getState())||"";return m?m+G:""};
wQd=function(m){switch(m){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
OjV=function(m){var G=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],K=_.g(_.g_(void 0,void 0,"JrqNsb")),W=K.next().value,L=K.next().value,A=_.g(_.g_(void 0,void 0,"rWytse"));K=A.next().value;var O=A.next().value;A=_.g(_.g_(void 0,void 0,"DHRqxe"));var c=A.next().value,u=A.next().value;return{touchFeedbackEvents:{pointerUpEvent:W,pointerDownEvent:K,pointerLeaveEvent:c},touchFeedbackOnPointerUp:_.dn(function(h){g0P(_.LQ(h),G)||(L(h),O(void 0),u(void 0))}),
touchFeedbackOnPointerDown:_.dn(function(h){m==null||m(h);g0P(_.LQ(h),G)||(O(h),L(void 0),u(void 0))}),
touchFeedbackOnPointerLeave:_.dn(function(h){g0P(_.LQ(h),G)||(u(h),O(void 0),L(void 0))})}};
g0P=function(m,G){G=G===void 0?[]:G;G=[].concat(_.Bz(G),["BUTTON".toString()]);m=_.g(m);for(var K=m.next();!K.done;K=m.next()){K=K.value;for(var W=_.g(G),L=W.next();!L.done;L=W.next())if(K.tagName===L.value)return!0}return!1};
c2o=function(m){switch(m){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"}};
YS9=function(m){return m.scrollHeight-m.offsetHeight>1};
r26=function(m,G){var K;return DJ(m,((K=m.content)==null?void 0:K.length)||0,!G)};
pQf=function(m,G,K,W,L,A){if(!G||uLG){var O;return DJ(m,((O=m.content)==null?void 0:O.length)||0,!0)}G=W.value;if(!K.value||!G||!m.content)return m;K=0;W=m.content.length;O=0;hkG||(hkG=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var c=hkG;for(L=L*A*c;K<=W;)A=Math.floor(K+(W-K)/2),c=DJ(m,A)||m,G.firstChild&&(G.firstChild.textContent=c.content),G.scrollHeight>L?W=A-1:(O=A,K=A+1);return DJ(m,O)};
J2d=function(m,G){var K,W;return(((K=m.content)==null?void 0:K.length)||0)>(((W=G.content)==null?void 0:W.length)||0)};
NcG=function(m,G,K,W,L,A){var O=_.Q3("truncated-text-content"),c=_.Q3("truncated-text-content"),u=_.Q3("button"),h=_.Q3("button"),J=_.Q3("button"),N=_.xS().resolve(_.t3),D=_.g(_.EQ(function(){return r26(m(),L())})),t=D.next().value,a=D.next().value;
D=_.g(_.EQ(function(){return J2d(m(),t())}));
var v=D.next().value,I=D.next().value,Z=null;_.$O(function(){function k(){if(O.value&&u.value&&J.value){var f=A()?m():pQf(m(),L(),O,c,G(),K());a(f);requestAnimationFrame(function(){if(O.value&&u.value&&J.value){var U=YS9(O.value)||J2d(m(),f);I(U);if(!W()){var l=YS9(O.value),Ls=K(),gd=O.value,Qf=u.value,JV=J.value,DF=N==="rtl";if(gd&&Qf){var kG=Qf.offsetLeft;DF&&(kG=gd.offsetWidth-Qf.offsetWidth-Qf.offsetLeft);if(U){U=Qf.offsetWidth;Qf=gd.offsetWidth;var eo=l?Qf-U-70:kG-70;Ls="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Ls+"rem,\n      #000 "+Ls+"rem,\n      #000 100%), linear-gradient(\n      to "+((DF?"left":"right")+",\n      #000 0px,\n      #000 "+eo+"px,\n      transparent "+(l?Qf-U:eo+70)+"px)");gd.style.setProperty("-webkit-mask-image",Ls);gd.style.setProperty("mask-image",Ls)}else gd.style.setProperty("-webkit-mask-image",""),gd.style.setProperty("mask-image","");l?DF?(JV.style.setProperty("left","0"),JV.style.setProperty("right","unset")):(JV.style.setProperty("left",""),JV.style.setProperty("right","0")):
DF?(JV.style.setProperty("left","unset"),JV.style.setProperty("right",kG+"px")):(JV.style.setProperty("left",kG+"px"),JV.style.setProperty("right","unset"))}}}})}}
var z,X;(z=Z)==null||(X=z.stop)==null||X.call(z);z=new _.yO(k,17);k();Z=z},"KjwIxd");
_.bX(function(){a(r26(m(),L()));I(J2d(m(),t()));var k=function(){hkG=void 0;var X,f;(X=Z)==null||(f=X.fire)==null||f.call(X)};
if(window.ResizeObserver){var z=new ResizeObserver(k);z.observe(O.value);_.sZ(function(){var X,f;(X=Z)==null||(f=X.stop)==null||f.call(X);z.disconnect()})}else window.addEventListener("resize",k),_.sZ(function(){var X,f;
(X=Z)==null||(f=X.stop)==null||f.call(X);window.removeEventListener("resize",k)})});
return{isTruncated:v,displayText:t,contentRef:O,hiddenRef:c,placeholderTruncationTextRef:u,hiddenTruncationTextRef:h,truncationTextRef:J}};
D5o=function(m){return{content:m!=null?m:""}};
tVG=function(m){return _.c8(m.onTap)||_.wH(m.rendererContext)};
Fkf=function(m){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:m.overflowMenuA11yLabel,onTap:function(G){G.preventDefault();G.stopPropagation();if(m.overflowMenuOnTap){var K=_.rn({elementsCommand:m.overflowMenuOnTap,forceNewState:!0});if(K==null?0:K.onclick)K.onclick(G)}}}};
_.F9=function(m,G,K,W,L){W=W===void 0?{}:W;if(!L||Math.random()<5E-4){G=G||null;K=K||null;m=m instanceof Error?m:new _.cw(m);if(m.args)for(var A=_.g(m.args),O=A.next();!O.done;O=A.next())O=O.value,O instanceof Object&&(W=Object.assign({},O,W));W.category="H5 Ads Control Flow";G&&(W.slot=G?"slot:  "+G.slotType:"");K&&(W.layout=K?"layout:  "+K.layoutType:"",W.layoutId=K.layoutId);L&&(W.known_error_aggressively_sampled=!0);m.args=[W];_.nc(m)}};
_.Q86=function(m,G){G=_.q_(G);_.dU(m,"yt-open-popup-action",[G,m])};
_.QH=function(m,G){_.Q86(m,_.nG(G))};
o0V=function(m){if(!m)return"";if(aoo[m])return aoo[m];aT||(aT=_.M7("A"));aT.href!==m&&Gp(aT,m);var G=aT.pathname;aoo[m]=G.startsWith("/")?G:"/"+G;return aoo[m]};
n06=function(){var m=o0V(window.location.href);if(m==="/")return"home";if(m.startsWith("/results"))return"search";if(m.startsWith("/watch"))return"watch";if(m.startsWith("/shorts"))return"shorts";if(m.startsWith("/hashtag"))return"hashtag";if(m.startsWith("/create_channel"))return"create_channel";if(m.startsWith("/@")||m.startsWith("/user/")||m.startsWith("/channel/"))return"channel";if(m.startsWith("/experiments"))return"experiments";if(m.startsWith("/sponsor_channel"))return"sponsorship";if(m.startsWith("/select_site"))return"settings";
if(m.startsWith("/locate"))return"locate";if(m.startsWith("/redeem"))return"redeem";if(m.startsWith("/musicpremium")||m.startsWith("/premium")||m.startsWith("/red"))return"premium";if(m.startsWith("/paid_memberships"))return"paid_memberships";if(m.startsWith("/oops"))return"oops";if(m.startsWith("/clip"))return"clip";var G;return(oT==null?void 0:(G=oT.response)==null?void 0:G.page)==="404"?"404":m.startsWith("/feed/history")?"history":m.startsWith("/feed/library")?"library":m.startsWith("/feed/subscriptions")?
"subscriptions":m.startsWith("/feed/trending")?"trending":m.startsWith("/feed/news_destination")?"news":m.startsWith("/playlist")?"playlist":m.startsWith("/minor_moment")?"minor_moment":m.startsWith("/playable/")||m.match("^/playables/(?!saved).")?"mini_app":m.startsWith("/playables")?"playables":m.startsWith("/create/live/join")?"open_in_app":m.startsWith("/feed/explore")?"explore":"browse"};
_.bk=function(){var m=oT==null?void 0:oT.response,G=m==null?void 0:m.endpoint;if(!G)return(m==null?void 0:m.page)==="watch"?"watch":n06();var K;m=(K=_.Q(G==null?void 0:G.commandMetadata,_.RQ))==null?void 0:K.webPageType;K=!1;if(m&&!bjd.includes(m))switch(m){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 W;return((W=_.Q(G==null?void 0:G.commandMetadata,_.RQ))==null?0:W.url)&&o0V(_.Q(G.commandMetadata,_.RQ).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var L;return(G=(L=_.Q(G,_.S8))==null?void 0:L.browseId)?v0F[G]||"browse":"browse";default:K=!0}if(_.Q(G,_.nQ)||_.Q(G,$5d))return"sponsorship";L=o0V(window.location.href);if(L.startsWith("/experiments"))return"experiments";if(L.startsWith("/create_channel"))return"create_channel";
if(_.Q(G,_.H$)&&L.startsWith("/shorts"))return"shorts";if(_.Q(G,_.H$)&&L.startsWith("/watch"))return"watch";K&&(G=new _.cw("Unsupported mWeb page type",{pathname:L,webPageType:m}),_.am(G));return"browse"};
vR=function(m,G,K,W){return m&&G?m!==K||G!==W?(_.F9(Error("Mh"),void 0,void 0,{"stored-slot":m,"stored-layout":G,"latest-slot":K,"latest-layout":W}),!1):!0:!1};
qSd=function(m,G,K){return m({targetId:G},function(W){return K.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},W,{contents:[K.continuationItems?_.Q(K.continuationItems[0],s8d):{}]}):K.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},W,{header:K.continuationItems?K.continuationItems[0]:void 0}):Object.assign({},W,{contents:K.continuationItems?K.continuationItems:[]})})};
E0P=function(m,G,K,W){if(G=G.trackingParams){var L,A=(L=K.getScreenLayer)==null?void 0:L.call(K);K=_.gU(A);L=_.wU(A);if(K&&L){var O=_.m5(G);_.F("combine_ve_grafts")?m.graftServerVe(G,L,A):_.tW(K,L,O);W==null||W(O)}}};
Io9=function(m){var G;return((G=HjV.get(m))==null?void 0:G.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
CzJ=function(m,G){var K={type:G.slotType,controlFlowManagerLayer:j8G.get(G.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};G.slotEntryTrigger&&(K.entryTriggerType=G.slotEntryTrigger.triggerType);G.slotPhysicalPosition!==1&&(K.slotPhysicalPosition=G.slotPhysicalPosition);if(m){K.debugData={slotId:G.slotId};if(m=G.slotEntryTrigger)K.debugData.slotEntryTriggerData=kAd(m);m=G.slotFulfillmentTriggers;K.debugData.fulfillmentTriggerData=[];m=_.g(m);for(var W=m.next();!W.done;W=m.next())K.debugData.fulfillmentTriggerData.push(kAd(W.value));
G=G.slotExpirationTriggers;K.debugData.expirationTriggerData=[];G=_.g(G);for(m=G.next();!m.done;m=G.next())K.debugData.expirationTriggerData.push(kAd(m.value))}return K};
kAd=function(m,G){var K={type:m.triggerType};G!=null&&(K.category=G);m.triggeringSlotId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedSlotId=m.triggeringSlotId);m.triggeringLayoutId!=null&&(K.triggerSourceData||(K.triggerSourceData={}),K.triggerSourceData.associatedLayoutId=m.triggeringLayoutId);return K};
VVP=function(m,G,K,W){G={opportunityType:G};m&&(W||K)&&(W=_.r$(W||[],function(L){return CzJ(m,L)}),G.debugData=Object.assign({},K&&K.length>0?{associatedSlotId:K}:{},W.length>0?{slots:W}:{}));
return G};
ZjP=function(m){return $A(m.opportunityAdapterMap).concat($A(m.triggerAdapterMap)).concat($A(m.fulfillmentAdapterFactoryMap)).concat($A(m.slotAdapterFactoryMap)).concat($A(m.layoutRenderingAdapterFactoryMap))};
$A=function(m){var G=[];m=_.g(m.values());for(var K=m.next();!K.done;K=m.next())K=K.value,K.isAdsControlFlowEventListener&&G.push(K);return G};
qB=function(m){var G=m.slotId,K=m.slotType,W=m.slotPhysicalPosition;return G===void 0?new sn("Cannot construct a slot due to the missing id.",{adSlotMetadata:m}):K===void 0?new sn("Cannot construct a slot due to the missing type.",{adSlotMetadata:m}):W===void 0?new sn("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:m}):{slotId:G,slotType:K,slotPhysicalPosition:W,managerLayer:"external",adSlotLoggingData:m.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new d5d}};
Pzv=function(m){var G=m.layoutId,K=m.layoutType;return G===void 0?new En("Cannot construct a layout due to the missing id.",{adLayoutMetadata:m}):K===void 0?new En("Cannot construct a layout due to the missing type.",{adLayoutMetadata:m}):{layoutId:G,layoutType:K,managerLayer:"external",adLayoutLoggingData:m.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new d5d,interactionLoggingAdsClientData:{}}};
IT=function(m,G){if(G&&(y29(G.viewableCommand)||y29(G.endOfSessionCommand))){var K=eks(G==null?void 0:G.viewableCommand);G=eks(G==null?void 0:G.endOfSessionCommand);if(!HR){var W=_.U8("custom_active_view_tos_timeout_ms");HR=W>0&&W!==36E5?new foV(x5d(),W):new foV(x5d())}XQ6(HR,m);SSP(HR,m,K,G)}};
jF=function(m){HR&&XQ6(HR,m)};
x5d=function(){var m=_.E8("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(m==null?void 0:m.length)===2?m[1]:null};
y29=function(m){m=_.c8(m);return!(m==null||!m.loggingUrls)&&m.loggingUrls.length>0};
eks=function(m){if(!m)return[];var G=[],K,W;((W=(K=_.c8(m))==null?void 0:K.loggingUrls)!=null?W:[]).forEach(function(L){L.baseUrl&&G.push(L.baseUrl)});
return G};
RkJ=function(m){if(_.F("stop_av_measurement_on_detach"))return function(){jF(m)}};
U5J=function(m){return function(){_.F("stop_av_measurement_on_detach")&&jF(m)}};
zko=function(m){if(_.F("stop_av_measurement_on_detach"))return function(){jF(m)}};
lof=function(m){return m.shorts.isDesktopSmallWidth};
_.BcF=function(m){return m.shorts.isShortsActive};
_.MVP=function(m){return m.shorts.isWatchWhileMode};
_.kA=function(m){return m.shorts.isFullscreen};
_.CQ=function(m){return m.shorts.isShortsPipActive};
msJ=function(m){var G,K;if(m=(G=_.Q(m.reelsAdCardButtoned,TcV))==null?void 0:(K=G.animatedRenderingConfig)==null?void 0:K.easeOutSeconds)return m+"s"};
GD9=function(m,G,K){return _.Y(function(W){return W.return(new Promise(function(L){var A=new Image;A.onload=function(){L(new ioG(m,G,K,A.naturalWidth,A.naturalHeight))};
A.src=K.toString()}))})};
KY6=function(m,G){return Math.round(m/1E-5)===Math.round(G/1E-5)};
WYP=function(m,G){return Math.round(m/1E-5)===Math.round(G/1E-5)};
LYG=function(m,G){return m.year===G.year&&m.month===G.month&&m.day===G.day};
ATJ=function(m,G){return m.year!==G.year?m.year<G.year:m.month!==G.month?m.month<G.month:m.day<G.day};
gwo=function(m){return m.day===wVJ(m.year,m.month)?m.month===11?{year:m.year+1,month:0,day:1}:{year:m.year,month:m.month+1,day:1}:{year:m.year,month:m.month,day:m.day+1}};
OoM=function(){var m=new Date,G={year:m.getFullYear(),month:m.getMonth(),day:m.getDate()};return{start:G,end:{year:m.getFullYear()+2,month:m.getMonth(),day:m.getDate()},selectedDate:gwo(G)}};
cTG=function(m){return(new oW(2)).format(new Date(m.year,m.month,m.day))};
Y2v=function(m){return{year:m.getFullYear(),month:m.getMonth(),day:m.getDate()}};
rTf=function(m,G){m=(m+(Number(G.utcOffsetSec)+(new Date(m*1E3)).getTimezoneOffset()*60))*1E3;G=Y2v(new Date(m));return{date:G,secondsSinceMidnight:Math.floor((m-(new Date(G.year,G.month,G.day)).getTime())/1E3)}};
uhP=function(m,G){G=G.months.findIndex(function(K){return K.year===m.year&&K.month===m.month});
return G>=0?G:void 0};
hyV=function(m){if(!m)return!1;try{if(m.host&&m.host.tagName==="YT-FORMATTED-STRING"&&m.host.id==="contenteditable-textarea"||m.nodeType===Node.ELEMENT_NODE&&m.tagName==="YTD-COMMENTBOX")return!0}catch(G){return!1}return hyV(m.parentNode)};
VH=function(m){return m?!(m.tagName!=="A"||!m.href||!m.classList.contains("yt-simple-endpoint")):!1};
pVG=function(m){return m?m.tagName==="IMG"&&m.classList.contains("emoji"):!1};
JT6=function(m,G,K){if(!m)return null;var W=VH(m);if(W&&K)return G=m.pathname.substring(m.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(W&&!K)return document.createTextNode("");if(pVG(m))return K=m.alt,m=m.dataset.emojiId,!m&&G&&(G=_.ZE(G,K))&&G.isCustomEmoji&&(m=G.emojiId),m?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+m+">"):document.createTextNode(K);W=m.cloneNode(!1);for(var L=0;L<m.childNodes.length;++L){var A=JT6(m.childNodes[L],G,K);A&&W.appendChild(A)}return W};
dH=function(m){return m?VH(m)?m:dH(m.lastChild):null};
Na9=function(m){return m?VH(m)?m:Na9(m.firstChild):null};
Dsf=function(m){if(!m)return null;for(var G=m.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=dH(G))?m=G:m=(m=m.parentNode)?dH(m.previousElementSibling):null;return m};
tsG=function(m){if(!m)return null;for(var G=m.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=Na9(G))?G:tsG(m.parentNode)};
FYM=function(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();if(!hyV(K.parentNode))return null;G=G.JSC$11657_getStartOffset();if(K.nodeType===Node.TEXT_NODE){var W=_.N7(K,VH);if(W){if(m&&G===0||!m&&G===K.length)return W}else{if(m&&G===K.length)return!K||K.nodeName==="BR"||K.nextElementSibling&&_.PR(K.nextElementSibling,"display")==="block"?null:Na9(K.nextElementSibling);if(!m&&G===0)return K?dH(K.previousElementSibling):null}}if(K.nodeType===Node.ELEMENT_NODE)if(m){if(0<=G&&G<K.childNodes.length)return Na9(K.childNodes[G])}else if(0<
G&&G<=K.childNodes.length)return dH(K.childNodes[G-1]);return null};
Q5d=function(m,G,K){if(!m)return null;if(m.nodeType===Node.TEXT_NODE)if(K){var W=Dsf(m);if(W&&!/^\s+\S/.test(m.wholeText.substr(0,G)))return W}else if((W=tsG(m))&&!/\S\s+/.test(m.wholeText.substr(G,m.wholeText.length)))return W;return m.nodeType===Node.ELEMENT_NODE?K?Dsf(m.childNodes[G]):tsG(m.childNodes[G]):Q5d(m.parentNode,G,K)};
asJ=function(m){if(m.hasChildNodes())switch(m.tagName){case "DIV":case "A":case "SPAN":var G="";for(m=m.firstChild;m;m=m.nextSibling)G+=asJ(m);return G;default:return""}else switch(m.nodeType){case 3:return m.textContent;default:return""}};
yH=function(m,G){return m.year===G.year&&m.month===G.month&&m.day===G.day};
eF=function(m,G){return m.year!==G.year?m.year<G.year:m.month!==G.month?m.month<G.month:m.day<G.day};
owf=function(m){return{year:m.getFullYear(),month:m.getMonth(),day:m.getDate()}};
nwd=function(m){var G=bkV;G=G===void 0?bkV:G;G(new Date(m.year,m.month,m.day))};
fQ=function(m){return owf(new Date(Number(m.seconds)*1E3))};
boP=function(m){return m.year!==void 0&&m.month!==void 0&&m.day!==void 0};
vwG=function(m){return m.start!==void 0&&m.end!==void 0};
$sM=function(m){return vwG(m)?m.start:m};
s5o=function(m){return vwG(m)?m.end:void 0};
Ew9=function(m,G){for(var K=[],W=new Date(m.start.year,m.start.month);W.getFullYear()<m.end.year||W.getFullYear()===m.end.year&&W.getMonth()<=m.end.month;){var L=K,A=L.push,O=W.getFullYear(),c=W.getMonth(),u=m,h=G,J=void 0,N=[],D=Object.freeze({extraCssClass:"invisible"}),t=new Date(O,c),a=owf(t);t=t.getDay();for(var v=owf(new Date);a.month===c;){t!==q2M&&J||(J=Array.from({length:7}).fill(D),N.push(J));var I={date:{year:O,month:c,day:a.day},extraCssClass:"",debugClass:""};I.extraCssClass=h(I.date,
a,v,u).trim();J[(t-q2M+7)%7]=I;a=a.day===wVJ(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};t=(t+1)%7}A.call(L,{weeks:N,monthLabel:xA.SHORTMONTHS[c]+" "+O,year:O,month:c,monthLabelExtraCssClass:N[0][2]===D?"shift-down-label":""});W.setMonth(W.getMonth()+1)}return K};
Hov=function(m,G){G=G.months.findIndex(function(K){return K.year===m.year&&K.month===m.month});
return G>=0?G:void 0};
j5d=function(m,G){a:{var K=K===void 0?[2,3]:K;K=_.g(K);for(var W=K.next();!W.done;W=K.next()){var L=new Date;if((new Isd(W.value)).parse(G,L,{validate:!0})){L.setHours(0,0,0,0);G=L;break a}}G=null}if(!G)return{isValid:!1,value:void 0};G=owf(G);K=m.end;return eF(G,m.start)||eF(K,G)?{isValid:!1,value:void 0}:{isValid:!0,value:G}};
dsf=function(m){var G=kDd;G=G===void 0?Cao:G;var K=m.columnsToShow||[],W=VsM(m.columnDimensions,m.columnsToShow,m.leftFloatingColumns,G);return K.map(function(L,A){var O=m.columns[L];if(O===void 0)throw Error("Sh");var c=W?W[A]:"";var u=m.getCustomTooltip?m.getCustomTooltip(L,O.headerTooltipParagraphs):O.headerTooltipParagraphs;var h=ZoP(m,L);return{type:L,index:A,style:c,classes:h,headerName:O.headerName||"",headerIcon:O.headerIcon,headerTooltipParagraphs:u||[],headerTooltipHelpContext:O.headerTooltipHelpContext,
sortOrders:O.sortOrders||[],selectionState:O.isSelectionCheckbox?m.selectionState:void 0}})};
ZoP=function(m,G){var K=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],W=m.columns[G];if(W===void 0)return"";var L=K.includes("DEFAULTS")&&W.cssClass?[W.cssClass]:[];if(K.includes("SORTING")){W.sortOrders&&W.sortOrders.length&&L.push("sortable");if(m.sorting&&m.sorting.columnType===G)a:switch(m.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var A="column-sorted";break a;default:A=""}else A="";A&&L.push(A)}K.includes("FLOATING")&&(G=m.columnsToShow.indexOf(G),m.leftFloatingColumns&&G<m.leftFloatingColumns&&
L.push("floating-column"),m.leftFloatingColumns&&G===m.leftFloatingColumns-1&&L.push("last-floating-column"));K.includes("RIGHT_ALIGN")&&W.rightAlignHeader&&L.push("right-align");return L.filter(function(O){return O}).join(" ")};
VsM=function(m,G,K,W){K=K===void 0?0:K;W=W===void 0?Cao:W;if(m){var L=[],A=0;Pa6(m,G,W).forEach(function(O,c){var u="min-width:"+O.minWidth+"px;padding-left:"+O.paddingLeft+"px;padding-right:"+O.paddingRight+"px;flex:"+O.flexGrow+" 0 "+O.minWidth+"px;";O.maxWidth!==Infinity&&(u=[u,"max-width:"+O.maxWidth+"px;"].join(""));A>0&&c<K&&(u=[u,"left:"+A+"px;"].join(""));L.push(u);A+=O.minWidth+O.paddingLeft+O.paddingRight});
return L}};
Pa6=function(m,G,K){K=K===void 0?Cao:K;return G.map(function(W,L){W=m&&m[W]||{};var A=L===0?K.paddingLeftFirstColumn:K.padding;W.paddingLeft!==void 0&&(A=W.paddingLeft);L=L===G.length-1?K.paddingRightLastColumn:K.padding;W.paddingRight!==void 0&&(L=W.paddingRight);return{paddingLeft:A,paddingRight:L,minWidth:W.minWidth!==void 0?W.minWidth:K.minWidth,maxWidth:W.maxWidth!==void 0?W.maxWidth:K.maxWidth,flexGrow:W.flexGrow!==void 0?W.flexGrow:K.flexGrow}})};
yTG=function(m){var G=m.reduce(function(W,L){var A=L.columnId,O={};L.headerText&&(O.headerName=_.bw(L.headerText));L.rightAlignHeader&&(O.rightAlignHeader=L.rightAlignHeader);var c;if((c=L.headerIcon)==null?0:c.iconType)O.headerIcon=_.ew(L.headerIcon.iconType);W[A]=O;return W},{}),K=m.filter(function(W){return!W.hideColumn}).map(function(W){return W.columnId});
m=m.filter(function(W){return!!W.dimensions}).reduce(function(W,L){W[L.columnId]=L.dimensions;
return W},{});
return{columns:G,columnsToShow:K,columnDimensions:m}};
_.eyf=function(m){return m?m.simpleText?m.simpleText:m.runs?m.runs.map(function(G){return G.text}).join(""):"":""};
Usv=function(m){var G=m.data;var K=m.onTap;var W=m.isSelected;var L=m.onFocusIn;if(!G)return{};m=fsd(G);W===void 0&&(W=G==null?void 0:G.isSelected);var A;return{text:xsP(G,m),startIcon:(A=G.icon)==null?void 0:A.iconType,state:W?0:2,type:0,style:XVF(G),onTap:S29(G,K),accessibilityLabel:RyV(G,m),onFocusIn:function(){return L==null?void 0:L()}}};
xsP=function(m,G){if(!G)return m.text?_.eyf(m.text):void 0};
XVF=function(m){var G;switch((G=m.style)==null?void 0:G.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
S29=function(m,G){return function(K){G==null||G(K,m)}};
fsd=function(m){m=m.style&&m.style.styleType;return!uLG&&m==="STYLE_EXPLORE_LAUNCHER_CHIP"};
RyV=function(m,G){if(G){var K,W,L;return(L=(K=m.accessibilityData)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)!=null?L:xsP(m,!1)}};
zyF=function(){var m;return[function(G,K,W){return _.Zw(m,G,K,W)},
function(G){m=G}]};
lss=function(m,G){return _.yx(m.entities,"chipEntity",G)};
MsM=function(m,G,K,W){return function(){var L=Bad.has(m.displayType)&&m.selected,A=L&&m.deselectCommand?m.deselectCommand:m.tapCommand;!A||L&&W||_.h$(A,{form:{element:G==null?void 0:G.value}});K==null||K()}};
Ta6=function(m,G){G=G==null?void 0:G.stepStates;if(m&&G){var K,W;return(K=G[m])==null?void 0:(W=K.userQuery)==null?void 0:W.userQuery}};
X9=function(m){return{signalAction:{signal:m}}};
GYF=function(){return _.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?miF:_.ids};
Kxo=function(m,G){m=m===void 0?"SOFT_RELOAD_PAGE":m;G=G===void 0?49504:G;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Hk(_.zq("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:G}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:m}}]}}}};
WxP=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Hk(_.zq("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:GYF()}};
Lxd=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:GYF()}};
ARG=function(m,G){var K=_.Hk(_.zq("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),W=_.Hk(_.zq("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),L={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Hk(_.zq("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};L.serviceEndpoint=m?m:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[X9("SOFT_RELOAD_PAGE")]}};return{title:K,bodyText:W,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:L},
style:{value:G!=null?G:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
gM6=function(m){m=m===void 0?{}:m;return{title:_.Hk(m.localizedZeroStateTitleText===void 0?"":m.localizedZeroStateTitleText),bodyText:_.Hk(m.localizedZeroStateMessage===void 0?"":m.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hk(m.localizedZeroStateButtonText===void 0?"":m.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[wAd]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
cR9=function(m){m=m===void 0?{}:m;return{title:_.Hk(m.localizedOptInBannerTitleText===void 0?"":m.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Hk(m.localizedOptInMessage===void 0?"":m.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hk(_.zq("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:_.Hk(_.zq("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:[OdF]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
ucM=function(m,G){var K=G=G===void 0?{}:G;G=K.offlineTitleText===void 0?"":K.offlineTitleText;var W=K.offlineDescriptionText===void 0?"":K.offlineDescriptionText,L=K.formattedSupplementalText,A=K.actionButtonText===void 0?"":K.actionButtonText,O=K.titleText===void 0?"":K.titleText;K=K.descriptionText===void 0?"":K.descriptionText;var c={title:A,accessibilityText:A,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};m||(O=G,K=W,c={title:A,accessibilityText:A,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.Hk(O),titleLength:O.length,overrideTitleMaxFontSize:30,subtitle:_.Hk(K),supplementalText:L,primaryButton:{buttonViewModel:c},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[Yqf]},darkTileImage:{thumbnails:[rRV]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.JRF=function(m,G,K,W,L,A,O,c,u,h,J){L=L===void 0?!1:L;A=A===void 0?!1:A;O=O===void 0?0:O;c=c===void 0?-Infinity:c;u=u===void 0?!1:u;h=h===void 0?!1:h;J=J===void 0?!1:J;var N=[],D=_.Hk(_.zq("SMART_DOWNLOADS",void 0,"Smart downloads")),t=_.Hk(h7G(O,c,m.length));c=O=void 0;h?O={statementBannerRenderer:ucM(J,W)}:L?m.length>0?c=pAs(m,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.F("kevlar_manual_downloads_above"),D,t):u?c={alertBannerViewModel:{heading:{content:K.localizedOptInBannerTitleText===
void 0?"":K.localizedOptInBannerTitleText},body:{content:K.localizedPromptMessage===void 0?"":K.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zq("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.zq("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:_.wT6}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:A&&(c={backgroundPromoRenderer:{bodyText:_.Hk(_.zq("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"}}}):
A&&(c={alertBannerViewModel:{heading:{content:K.localizedOptInBannerTitleText===void 0?"":K.localizedOptInBannerTitleText},body:{content:K.localizedOptInMessage===void 0?"":K.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.zq("TURN_ON",void 0,"Turn on"),accessibilityText:_.zq("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}}}}}});K=_.Hk(_.zq("YOUR_DOWNLOADS",void 0,"Your downloads"));W=void 0;G.length>0?(W=void 0,_.F("kevlar_display_downloads_numbers")&&(W=_.Hk(_.lW("VIDEO_COUNT",G.length))),W=pAs(G,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,K,W)):L||m.length||
h||(W={backgroundPromoRenderer:{bodyText:_.Hk(_.zq("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}}}});O?N.push({richSectionRenderer:{content:O}}):c&&!_.F("kevlar_manual_downloads_above")&&N.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
W&&N.push({richSectionRenderer:{content:W,loggingDirectives:{clientVeSpec:{uiType:51721}}}});c&&_.F("kevlar_manual_downloads_above")&&N.push({richSectionRenderer:{content:c,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(G.length>0||L&&m.length>0&&!h)&&N.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Hk(_.zq("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:N}};
_.Di6=function(m){return NPG(m,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.tzs=function(m){return NPG(m,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
NPG=function(m,G){var K=[];m=pAs(m,G,!0);K.push({richSectionRenderer:{content:m}});return{contents:K}};
pAs=function(m,G,K,W,L){K=K===void 0?!1:K;var A="RESPONSIVE_SIZE_STANDARD";_.F("kevlar_standard_rich_grid_on_offline_home")&&G==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?A="RESPONSIVE_SIZE_STANDARD":_.F("kevlar_modern_downloads_compact")?A="RESPONSIVE_SIZE_COMPACT":_.F("kevlar_modern_downloads_extra_compact")?A="RESPONSIVE_SIZE_EXTRA_COMPACT":_.F("kevlar_modern_downloads_tiny")&&(A="RESPONSIVE_SIZE_TINY");m={isExpanded:K,contents:SF(m),entitySelectorType:G,responsiveContainerConfiguration:{responsiveSize:A}};
W&&(m.title=W);L&&(m.subtitle=L);K||(_.F("kevlar_smart_downloads_show_more_button")?(m.showMoreButton={buttonRenderer:{accessibility:{label:_.zq("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Hk(_.zq("SHOW_MORE",void 0,"Show more"))}},m.showLessButton={buttonRenderer:{accessibility:{label:_.zq("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.Hk(_.zq("SHOW_LESS",void 0,"Show less"))}}):(m.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.zq("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}}}},m.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.zq("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}}}},m.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.zq("VIEW_ALL",void 0,"View all"),accessibilityText:_.zq("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:_.qc("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:m}};
SF=function(m){var G=[];m=_.g(m);for(var K=m.next();!K.done;K=m.next())if(K=K.value,xRv(K)){var W=G,L=W.push;var A=void 0;if(K==null?0:(A=K.videoEntity)==null?0:A.videoId){A=JM(_.$R().getState(),K.videoEntity.videoId);var O=_.$R().getState();var c=_.Pk(K.videoEntity.videoId,"mainVideoEntity");O=!!_.KG(O.entities)[c];O={videoId:K.videoEntity.videoId,title:I7(K.videoEntity.title),shortBylineText:I7(K.channelEntity.title),thumbnail:K.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:O&&_.F("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:Fhd(K.videoEntity.videoId,A,K.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.zq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};K.videoEntity.lengthSeconds&&(O.thumbnailOverlays=xUf(K.videoEntity.lengthSeconds,A));O.isWatched=A>0;_.F("kevlar_modern_downloads_page")&&(O.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:K.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.zq("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},O.badges=void 0);K=O}else K={};L.call(W,{richItemRenderer:{content:{videoRenderer:K},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(ffo(K)){W=G;L=W.push;var u=c=A=void 0,h=void 0,J=void 0,N=void 0,D=void 0,t=void 0,a=void 0,v=void 0,I=void 0,Z=void 0;O=K.mainPlaylistEntity.playlistId;var k=K==null?void 0:(Z=K.mainPlaylistEntity)==null?void 0:(I=Z.thumbnailStyleData)==null?void 0:(v=I[0])==null?void 0:(a=v.value)==null?void 0:(t=a.collageThumbnail)==
null?void 0:t.coverThumbnail;if(O&&k){t=QEd(O);!_.F("enable_offline_playlist_page")&&(K==null?0:(D=K.mainPlaylistEntity)==null?0:D.videos)&&(D=K==null?void 0:(N=K.mainPlaylistEntity)==null?void 0:(J=N.videos)==null?void 0:J[0],J=_.Vx(D).entityId,J=JSON.parse(J).videoId,J!==void 0&&(t=JM(_.$R().getState(),J),t=_.EG(J,O,void 0,void 0,t)));J=[];if(K==null?0:(h=K.mainPlaylistEntity)==null?0:(u=h.videos)==null?0:u.length)u=n8G(),h=Object,J=h.assign,N=(N=o86(K==null?void 0:K.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.Hk(N),icon:{iconType:"PLAYLISTS"}}}:void 0,J=[u,J.call(h,{},(c=N)!=null?c:{})];K={playlistId:O,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:k}},navigationEndpoint:t,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:J,title:I7(K.mainPlaylistEntity.title),shortBylineText:I7(K==null?void 0:(A=K.channelEntity)==null?void 0:A.title),badges:[{metadataBadgeRenderer:{label:_.zq("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.F("kevlar_modern_downloads_page")&&(K.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:FxF,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:O,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},K.badges=void 0)}else K=void 0;L.call(W,{richItemRenderer:{content:{playlistRenderer:K},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return G};
h7G=function(m,G,K){m=m?lGd(m):"";G!==void 0&&isFinite(G)?G===0?G=_.zq("UPDATING",void 0,"Updating..."):(G=fTs(new Date(G),new Date),G=_.zq("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var W="";m&&G&&(W=" \u2022 ");if(K&&_.F("kevlar_display_downloads_numbers")){K=_.lW("VIDEO_COUNT",K);if(m||G)W=" \u2022 ";return K+W+m+W+G}return m+W+G};
Q1d=function(m){return kxP(m.entities).length};
_.amd=function(m,G,K){var W=J3(m.responsiveSize),L;m=!((L=m.responsiveMap)==null||!L.some(function(A){return A.containerSize==="CONTAINER_SIZE_NARROW"&&A.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:K,containerWidth:G,sizing:W,enableFullBleedForSingleCol:!1,isCompactList:W==="COMPACT"&&m}};
oMP=function(m,G){return _.yx(m.entities,"votingEntity",G)};
RT=function(m){if(m){var G;return((G=_.xS().resolve(_.fn(_.l_)))==null?0:G())?m.darkTheme:m.lightTheme}};
nMd=function(m,G){if(m.simpleText)return Object.assign({},m,{simpleText:J$(m.simpleText,G)});if(!m.runs)return m;for(var K=Object.assign({},m,{runs:[]}),W=0,L=_.g(m.runs),A=L.next();!A.done;A=L.next())if(A=A.value,A.text)if(W+A.text.length<=G)K.runs.push(A),W+=A.text.length;else return K.runs.push(Object.assign({},A,{text:J$(A.text,G-W)})),K;return m};
bdf=function(m,G){return _.yx(m.entities,"chipBarStateEntity",G)};
vMv=function(m){switch(m){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
$i6=function(m,G){return{triggeringElement:m,onDwellTriggeredFn:function(){var K={triggeringElement:m,loadVideoPreviewEventData:G},W=document.querySelector(".video-preview");W&&W.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:K}))},
onDwellEndFn:function(){var K=document.querySelector(".video-preview");K&&K.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
s1d=function(m){var G=_.xS().resolve(_.fn(EsJ));return function(K){var W=function(){var L=m(K);return G&&L?$i6(K,L):null};
_.$O(function(){var L=W();G&&L&&Promise.resolve().then(function(){G.registerElement(L)});
_.sZ(function(){G&&L&&Promise.resolve().then(function(){_.uk(G,L)})})},"p0smCb")}};
EMG=function(m){var G=m.dataset.resizeObserverId;if(G)return G;G=""+qqJ++;return m.dataset.resizeObserverId=G};
Hd6=function(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var K=EMG(G.target),W=Object.assign({},{target:G.target},Un.get(K));if(W!=null&&W.contentRect?W.contentRect.width!==G.contentRect.width||W.contentRect.height!==G.contentRect.height:1)for(Un.set(K,{borderBoxSize:G.borderBoxSize,contentBoxSize:G.contentBoxSize,contentRect:G.contentRect,devicePixelContentBoxSize:G.devicePixelContentBoxSize}),K=_.g(z_.get(K)||[]),W=K.next();!W.done;W=K.next())W=W.value,W(G)}};
j1V=function(m,G){var K=EMG(m);z_.has(K)||z_.set(K,new Set);z_.get(K).add(G);Un.has(K)&&G(Object.assign({},{target:m},Un.get(K)));lk||(lk=new Imd(Hd6));G=lk;G.observe(m)};
kYf=function(m,G){var K=EMG(m);z_.has(K)&&(z_.get(K).delete(G),z_.get(K).size===0&&(z_.delete(K),Un.delete(K),lk.unobserve(m),delete m.dataset.resizeObserverId));z_.size===0&&lk&&(lk.disconnect(),lk=void 0)};
Vzv=function(m,G){var K=_.xS().resolve(yb);return Ceo.map(function(W){return K.observe(m,G,W)})};
Zdd=function(m){var G=_.xS().resolve(yb);m.forEach(function(K){G.unobserveByKey(K)})};
_.BR=function(m){var G=_.g(TCd()),K=G.next().value,W=G.next().value,L=Object.assign({},dio,m),A=PeG(function(O){var c=O.contentRect.height;if((O=O.contentRect.width)||c||L.canHaveZeroSize)K.width()===O&&K.height()===c||W(K,{height:c,width:O})},L.throttleMs);
return[K,function(O){var c=[];L.useVisibilityObserver&&(c=Vzv(O,function(u,h){requestAnimationFrame(function(){h==="visible"?j1V(O,A):kYf(O,A)})}));
c.length||j1V(O,A);return function(){c.length&&(Zdd(c),c.length=0);kYf(O,A)}}]};
e79=function(m,G,K,W,L){m=G?m.switchOffCommand:m.switchOnCommand;if(W&&L)yRF(m,K,L);else{var A,O;(A=_.rn({elementsCommand:m}))==null||(O=A.onclick)==null||O.call(A,K)}};
yRF=function(m,G,K){m=_.rn({elementsCommand:m,additionalCommandArgs:{commandController:{onSuccess:function(){K(!1)},
onServerError:function(){K(!1)}}}});
if(m==null?0:m.onclick)m.onclick(G),K(!0)};
xiG=function(m){if(m)return _.Q(m,fm6)};
XAG=function(m){if(m)switch(m){case "LIST_ITEM_ICON_ACCESSORY_SIZE_XSMALL":return 16;case "LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL":return 18;case "LIST_ITEM_ICON_ACCESSORY_SIZE_STANDARD":return 24;case "LIST_ITEM_ICON_ACCESSORY_SIZE_LARGE":return 36;case "LIST_ITEM_ICON_ACCESSORY_SIZE_XLARGE":return 48;default:return 24}};
SqG=function(m,G){if(!((m==null?0:m.entitySelectorType)&&(m==null?0:m.entityKey)))return{};switch(m.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":var K,W=(K=_.yo())==null?void 0:K.getOption("captions","track"),L,A=typeof(W==null?void 0:W.translationLanguage)==="object"&&((L=W.translationLanguage)==null?void 0:L.languageName)||(W==null?void 0:W.displayName)||"";return{data:Object.assign({},!!A&&{selectionText:{content:A}},!!A&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},
{isDisabled:typeof W==="undefined"})};case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.F("web_shorts_audio_track_picker")){var O;L=((O=_.yo())==null?void 0:O.getAudioTrack())||void 0;K=L==null?void 0:(A=L.getLanguageInfo())==null?void 0:A.getName();L={data:Object.assign({},{selectionText:{content:K}},K&&!(L==null?0:(W=L.getLanguageInfo())==null?0:W.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else L={};return L;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return W=
m!=null&&m.entityKey?(W=_.ZJ(G,m.entityKey))?{isHidden:(W==null?void 0:W.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},W;default:return{}}};
R7o=function(m,G){return function(K){var W=function(L){_.A3(_.LQ(L),K,G)||m(L)};
K.addEventListener("click",W);return function(){K.removeEventListener("click",W)}}};
_.Uid=function(m){return function(){return _.Q(m(),_.MB)}};
z7o=function(m){switch(m){case "LINEAR_LAYOUT_SPACE_S1":return 4;case "LINEAR_LAYOUT_SPACE_S2":return 8;case "LINEAR_LAYOUT_SPACE_S3":return 12;case "LINEAR_LAYOUT_SPACE_S4":return 16;case "LINEAR_LAYOUT_SPACE_S5":return 20;case "LINEAR_LAYOUT_SPACE_S6":return 24;case "LINEAR_LAYOUT_SPACE_S7":return 28;case "LINEAR_LAYOUT_SPACE_S8":return 32;case "LINEAR_LAYOUT_SPACE_S9":return 36;case "LINEAR_LAYOUT_SPACE_S10":return 40;case "LINEAR_LAYOUT_SPACE_S11":return 44;case "LINEAR_LAYOUT_SPACE_S12":return 48;
default:return 0}};
lmo=function(m){return z7o(m==null?void 0:m.all)};
BPv=function(m){var G={};(m=m==null?void 0:m.padding)&&(G.padding=z7o(m.vertical)+"px "+z7o(m.horizontal)+"px");return G};
MzV=function(m){switch(m){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
TPo=function(m){switch(m){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
mYd=function(m){switch(m){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
ihM=function(m,G){if(G)return{containerStyles:BPv(G),itemStyles:function(K,W){var L={flex:"1"},A=G==null?void 0:G.flexDirection;b:switch(A){case "FLEX_DIRECTION_ROW_REVERSE":case "FLEX_DIRECTION_COLUMN_REVERSE":K=!!K;break b;default:K=!!W}K||(K=_.E8("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",A==="FLEX_DIRECTION_ROW"||A==="FLEX_DIRECTION_ROW_REVERSE"?(A=lmo(G==null?void 0:G.gap)+"px",K?L["margin-left"]=A:L["margin-right"]=A):L["margin-bottom"]=lmo(G==null?void 0:G.gap)+"px",L.flex=
"1");return L},
containerLayoutConfig:{responsiveSize:"RESPONSIVE_SIZE_STANDARD",containerSize:"CONTAINER_SIZE_UNSPECIFIED",containerType:(G==null?void 0:G.flexDirection)==="FLEX_DIRECTION_ROW"||(G==null?void 0:G.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?"CONTAINER_TYPE_HORIZONTAL_LIST":"CONTAINER_TYPE_VERTICAL_LIST",contentPreviewWidth:"33%"}}};
G2F=function(m){return m<528?"CONTAINER_SIZE_NARROW":m<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE"};
KVf=function(m,G){m=_.g(m.responsiveMap||[]);for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.containerSize===G)return K.containerType};
_.WVd=function(m,G){if(G){var K=G.responsiveSize;m=G2F(m);var W=KVf(G,m);if(W&&K){a:{if(W==="CONTAINER_TYPE_VERTICAL_LIST")if(K==="RESPONSIVE_SIZE_STANDARD"){if(m!=="CONTAINER_SIZE_NARROW"){var L="50%";break a}}else{L=m==="CONTAINER_SIZE_NARROW"?"50%":"33.3%";break a}L=void 0}return{responsiveSize:K,containerSize:m,containerType:W,force16By9ThumbnailAspectRatio:!G.enableContentSpecificAspectRatio,contentPreviewWidth:L,fullbleed:(W==="CONTAINER_TYPE_VERTICAL_LIST"||W==="CONTAINER_TYPE_GRID")&&m===
"CONTAINER_SIZE_NARROW"&&!1}}}};
LVP=function(m,G){var K={};switch(G){case "CONTAINER_TYPE_VERTICAL_LIST":K["flex-direction"]="column";K.padding="0 "+m.margin+"px";break;case "CONTAINER_TYPE_GRID":K["flex-direction"]="row";K.flex="none";K["flex-wrap"]="wrap";K.width=m.maxContainerWidth?m.maxContainerWidth+m.gutter+"px":void 0;K.padding="0 "+(m.margin-m.gutter/2)+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":K["flex-direction"]="row",K.flex="none",K["overflow-x"]="auto",K.width=m.maxContainerWidth?m.maxContainerWidth+"px":void 0,
K.padding="0 "+m.margin+"px"}return K};
AqF=function(m,G){if(G){var K=KVf(G,G2F(m));a:switch(K){case "CONTAINER_TYPE_GRID":var W=3;break a;default:W=1}W=_.amd(G,m,W);var L=_.pQ(W);return{containerLayoutConfig:_.WVd(m,G),containerStyles:LVP(L,K),itemStyles:function(A,O){A={};switch(K){case "CONTAINER_TYPE_VERTICAL_LIST":O||(A["margin-bottom"]="16px");break;case "CONTAINER_TYPE_GRID":A.width=L.itemWidth+"px";A["margin-right"]=L.gutter/2+"px";A["margin-left"]=L.gutter/2+"px";break;case "CONTAINER_TYPE_HORIZONTAL_LIST":A.width=L.itemWidth+
"px",A.flex="none",O||(A["margin-right"]=L.gutter+"px")}return A}}}};
YCd=function(m,G,K){if(G)return[wPF];switch(m){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[T_];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return K?[T_]:[gBd,T_];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ohd,T_];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[cq6,T_];default:return[wPF]}};
rqJ=function(m,G,K,W){return YCd(m,G,W).map(function(L){var A=L.text,O=L.iconType,c=L.videoAction;L=L.playlistAction;A=A?{content:A}:void 0;O=O&&{sources:[{clientResource:{imageName:O}}]};var u=(0,_.Y2.unsafeClone)(K);if(u){var h=_.Q(u,_.xg),J=_.Q(u,_.Xk);h&&c?h.action=c:J&&L&&(J.action=L)}return{title:A,leadingImage:O,rendererContext:u&&{commandContext:{onTap:{innertubeCommand:u}}}}})};
utG=function(m){m=_.wH(m.rendererContext);var G;return(G=_.Q(m,_.Xk))==null?void 0:G.playlistId};
hW9=function(m){var G;return(G=m.listItems)==null?void 0:G.some(function(K){var W;return _.gH((W=_.Q(K,_.T$))==null?void 0:W.rendererContext)})};
pPf=function(m,G){var K;(K=m[(G+1)%m.length])==null||K.focus()};
JqJ=function(m,G){var K=m.length,W;(W=m[G===-1?K-1:(G-1+K)%K])==null||W.focus()};
_.mF=function(m){var G=_.xS().resolve(_.fn(_.l_));return G!=null&&G()?m.darkThemeColorPalette:m.lightThemeColorPalette};
_.Gn=function(m){return{primaryTextColor:iG(m,0),secondaryTextColor:iG(m,1),optionColor:iG(m,2),backgroundColor:iG(m,3),videoBackgroundColor:iG(m,4)}};
iG=function(m,G){if(m){switch(G){case 0:m=m.primaryTitleColor;break;case 1:m=m.secondaryTitleColor;break;case 2:m=m.surgeColor;break;case 3:m=m.section2Color;break;case 4:m=m.section3Color;break;default:return}if(m)return _.OM(m)}};
tQV=function(m){var G=m.element;var K=m.veType;var W=m.storedVisualElement===void 0?null:m.storedVisualElement;var L=m.elementIndex===void 0?0:m.elementIndex;m=m.clientYouTubeData;var A=_.gU();A!==N4P&&(DYd.clear(),N4P=A);if(G.visualElement&&DYd.has(G.visualElement))return null;if(W&&DYd.has(W))return G.visualElement=W,null;K=_.zg(_.l1(),{veType:K,elementIndex:L,clientYouTubeData:m});if(!K)return null;G.visualElement=K;DYd.add(K);return K};
_.Km=function(m,G,K,W){K=K===void 0?null:K;W=W===void 0?FVo:W;var L=L===void 0?null:L;W8(function(){if(G){K instanceof Function&&(K=K());var A=tQV({element:G,veType:m,storedVisualElement:K,clientYouTubeData:void 0});A&&(Ro(G,{data:L,observer:_.xS().resolve(yb),hideOption:wDd,showOption:gHs,layer:G.layer}),W(A))}})};
QrP=function(m){return m?_.ce(m):""};
aHo=function(m){return(m==null?void 0:m.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
oBd=function(m,G){return _.yx(m.entities,"videoOverviewAsyncDataEntity",G)};
nBM=function(m,G){var K;return"linear-gradient(to bottom, "+((K=G==null?void 0:G.map(function(W){var L=m?W.darkThemeColor:W.lightThemeColor;return L?_.ce(L)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"}))==null?void 0:K.join(", "))+")"};
bhF=function(m,G,K,W,L){if(!((W==null?0:W.height)&&(W==null?0:W.width)))return{size:0};var A=W.width;W=W.height;if(L)return G==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&A>W?{size:312/TgV}:G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(K!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||m!==1&&m!==2||G!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&G!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&G!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(G==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||G==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||W===A)switch(m){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(G==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||W>A)switch(m){case 1:case 3:return{size:240*MtF};default:return{size:360*MtF}}switch(m){case 1:case 2:return{size:1/TgV*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.vBG=function(m){if(!("matchMedia"in window))return _.V3(Error("Th")),function(){return!1};
var G=window.matchMedia(m);m=_.g(_.g_(G.matches,void 0,"waIHpe"));var K=m.next().value,W=m.next().value,L=function(A){W(A.matches)};
G.addEventListener?(G.addEventListener("change",L),_.sZ(function(){G.removeEventListener("change",L)})):G.addListener&&(G.addListener(L),_.sZ(function(){G.removeListener(L)}));
return K};
$Yf=function(m){return m==="IMAGE_BANNER_STYLE_INSET"||m==="IMAGE_BANNER_STYLE_UNKNOWN"};
srG=function(){if(!("matchMedia"in window))return _.V3(Error("Th")),function(){return 0};
var m=window.matchMedia("(max-width: 527.9px)"),G=window.matchMedia("(min-width: 528px) and (max-width: 839.9px)"),K=window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)"),W=window.matchMedia("(min-width: 1024px)"),L=_.g(_.g_(m.matches,void 0,"TmIKcb")),A=L.next().value,O=L.next().value;L=_.g(_.g_(G.matches,void 0,"Z0fTKd"));var c=L.next().value,u=L.next().value;L=_.g(_.g_(K.matches,void 0,"w4xy7b"));var h=L.next().value,J=L.next().value;L=_.g(_.g_(W.matches,void 0,"DrbNC"));var N=L.next().value,
D=L.next().value,t=function(Z){O(Z.matches)},a=function(Z){u(Z.matches)},v=function(Z){J(Z.matches)},I=function(Z){D(Z.matches)};
_.bX(function(){m.addEventListener?(m.addEventListener("change",t),G.addEventListener("change",a),K.addEventListener("change",v),W.addEventListener("change",I)):m.addListener&&(m.addListener(t),G.addListener(a),K.addListener(v),W.addListener(I));_.sZ(function(){m.removeEventListener?(m.removeEventListener("change",t),G.removeEventListener("change",a),K.removeEventListener("change",v),W.removeEventListener("change",I)):m.removeListener&&(m.removeListener(t),G.removeListener(a),K.removeListener(v),
W.removeListener(I))})});
return function(){return A()?1:c()?2:h()?3:N()?4:0}};
qCd=function(m){var G=0;m=_.g([m.title,m.metadata,m.actions,m.description,m.attribution]);for(var K=m.next();!K.done;K=m.next())K.value&&G++;return G};
EBM=function(m){return m===1||m===2?1:0};
IHV=function(m){m=(new Hhd).parse(m);return(new uL).render(m).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(G){var K=G.split(":").map(Number),W=0,L=0;if(K.length===3)K=_.g(K),W=K.next().value,L=K.next().value,K=K.next().value;else if(K.length===2)K=_.g(K),L=K.next().value,K=K.next().value;else if(K.length===1)K=_.g(K).next().value;else throw Error("Uh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(W*3600+L*60+K)+'" role="button">'+G+"</span>"})};
jrG=function(m){m=_.g(m.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var G=m.next(),K={};!G.done;K={clickHandler$jscomp$5:void 0},G=m.next()){G=G.value;K.clickHandler$jscomp$5=function(L){L=Number(L.target.getAttribute("data-time"));if(isNaN(L))throw Error("Vh");var A;(A=_.yo())==null||A.seekTo(L,!0)};
var W=function(L){return function(A){A.key!=="Enter"&&A.key!=="Space"||(0,L.clickHandler$jscomp$5)(A)}}(K);
G.setAttribute("tabindex","0");G.removeEventListener("click",K.clickHandler$jscomp$5);G.removeEventListener("keydown",W);G.addEventListener("click",K.clickHandler$jscomp$5);G.addEventListener("keydown",W)}};
k2d=function(){return _.r("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.r(WY,{percentWidth:100}),_.r(WY,{animationDelay:200}),_.r(WY,{animationDelay:400}),_.r(WY,{animationDelay:600}),_.r(WY,{animationDelay:800,percentWidth:60}),_.r("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.r(WY,{percentWidth:100}),_.r(WY,{animationDelay:200}),_.r(WY,{animationDelay:400}),_.r(WY,{animationDelay:600,percentWidth:50}))};
WY=function(m){return _.r("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(m.percentWidth===void 0?100:m.percentWidth)+"%"},_.r("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(m.animationDelay===void 0?0:m.animationDelay)+"ms"}))};
ClF=function(){var m=_.g(_.g_(function(){return""},void 0,"dXJHWc")),G=m.next().value;
return[function(){return G()()},
m.next().value]};
VQJ=function(m,G){m=m?lGd(m):"";G!==void 0&&isFinite(G)?G===0?G=_.zq("UPDATING",void 0,"Updating..."):(G=fTs(new Date(G),new Date),G=_.zq("UPDATED_TIME",{relative_time:G},"Updated "+G)):G="";var K="";m&&G&&(K=" \u2022 ");return _.Hk(m+K+G)};
Pl9=function(m,G,K,W,L,A){G=G===void 0?0:G;var O=Zhs[G],c=O.title,u=O.iconType,h=O.topButtonRenderer,J=O.sectionClientVE;O=O.videoClientVE;var N;if(G!==1||m.length){K=[];m=_.g(m);for(W=m.next();!W.done;W=m.next()){var D=W.value;if(xRv(D))K.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:D.videoEntity.videoId,title:I7(D.videoEntity.title),shortBylineText:I7(D.channelEntity.title),thumbnail:D.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:D.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.zq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:O}}}}}});else if(ffo(D)){W=K;var t=W.push;var a=void 0,v=void 0,I=void 0,Z=void 0,k=void 0,z=void 0,X=void 0,f=void 0,U=D.mainPlaylistEntity.playlistId,l=D==null?void 0:(f=D.mainPlaylistEntity)==null?void 0:(X=f.thumbnailStyleData)==null?void 0:(z=X[0])==null?void 0:(k=z.value)==null?void 0:(Z=k.collageThumbnail)==null?void 0:Z.coverThumbnail;Z=QEd(U);if(!_.F("enable_offline_playlist_page")&&
(D==null?0:(I=D.mainPlaylistEntity)==null?0:I.videos)){b:{I=D==null?void 0:(v=D.mainPlaylistEntity)==null?void 0:v.videos;v=_.$R().getState().entities;if(I!=null&&I.length&&v)for(I=_.g(I),k=I.next();!k.done;k=I.next())if(k=_.Vx(k.value).entityId,(k=JSON.parse(k).videoId)&&Ifo(v,k)==="TRANSFER_STATE_COMPLETE"){v=k;break b}v=""}v!==void 0&&(Z=JM(_.$R().getState(),v),Z=_.EG(v,U,void 0,void 0,Z))}v=oPf(_.zq("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),QEd(U));D=U&&l&&v?{playlistId:U,navigationEndpoint:Z,
viewPlaylistText:v,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:l}},title:I7(D.mainPlaylistEntity.title),shortBylineText:I7(D==null?void 0:(a=D.channelEntity)==null?void 0:a.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:dYG,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:U,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.zq("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:O}}}:
void 0;t.call(W,{gridPlaylistRenderer:D})}}O={gridRenderer:{items:K}};G===1&&(N=VQJ(L,A))}else if(W){var Ls=_.Hk((t=K==null?void 0:K.localizedPromptMessage)!=null?t:"");O={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hk(_.zq("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.wT6}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Hk(_.zq("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};N=VQJ(L,A)}else Ls=_.Hk(_.zq("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
O={};return{contents:[{shelfRenderer:{title:c,titleAnnotation:N,icon:{iconType:u},subtitle:Ls,content:O,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:h}]}}}}],loggingDirectives:{clientVeSpec:{uiType:J}}}};
yqF=function(m,G,K,W,L,A,O,c,u,h,J){K=K===void 0?{}:K;W=W===void 0?{}:W;L=L===void 0?!1:L;A=A===void 0?!1:A;O=O===void 0?!1:O;c=c===void 0?!1:c;u=u===void 0?!1:u;h=h===void 0?0:h;J=J===void 0?-Infinity:J;if(!(G.length||m.length||L||c))return A?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:gM6(K)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Hk(_.zq("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 N=[];m.length&&N.push(Pl9(m,0));c?N.push({contents:[{statementBannerRenderer:ucM(u,W)}]}):L?N.push(Pl9(G,1,K,O,h,J)):A&&N.push({contents:[{statementBannerRenderer:cR9(K)}]});(L&&G.length||m.length)&&N.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Hk(_.zq("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 N.map(function(D){return{itemSectionRenderer:D}})};
Lm=function(m,G){if(typeof m!=="object")return null;m=_.g(Object.entries(m));for(var K=m.next();!K.done;K=m.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;if(K===G)return K;if(W=Lm(W,G))return K+"."+W}return null};
AX=function(m){var G=m.content;return(m=m.styleRuns)&&G?{runs:m.map(function(K){var W={text:G.slice(K.startIndex,K.startIndex+K.length)};K.fontColor&&(W.textColor=K.fontColor);return W})}:{simpleText:G}};
xY9=function(m,G,K,W){var L=eWd;W&&(m.quantity=W);if(!m.quantity||!m.maxQuantity)return{};W=m.minusButton;var A=m.plusButton,O,c,u,h;return{value:m.quantity,maxValue:m.maxQuantity,onChangeCallback:function(J){L(m,J)},
minusLabel:(O=_.Q(W,fH9))==null?void 0:O.label,minimumReachedLabel:(c=_.Q(W,fH9))==null?void 0:c.limitReachedLabel,plusLabel:(u=_.Q(A,fH9))==null?void 0:u.label,maximumReachedLabel:(h=_.Q(A,fH9))==null?void 0:h.limitReachedLabel,disabled:G,onRemoveCommand:K}};
eWd=function(m,G){var K=m.quantityIncrementerEntityKey;if(K){var W={};W.quantity=G;_.$e(_.wS("quantityIncrementerEntity",K,W));m.onChangeCommand&&_.h$(m.onChangeCommand)}};
XPV=function(m){if(m)return m===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(m).overflowY)?m:XPV(m.parentElement)};
UYP=function(m,G){(m=SCo(m))&&((_.F("enable_mini_app_command_handler_mweb_fix")?0:G)?RWd.push({command:m,sourceData:{},commandContext:void 0}):_.xS().resolve(_.S1).resolveCommand(m))};
SCo=function(m){return _.Q(m,_.Oh)};
zWF=function(){var m=window.performance.timeOrigin+window.performance.now(),G=(new _.gS).setSeconds(m/1E9);return _.AC(G,2,_.rz(m%1E9),0)};
B4o=function(m,G){var K;m=(K=_.Q(_.Q(m,_.Oh),lHP))==null?void 0:K.methodName;var W,L;(K=window.youtubewebview||((W=window.webkit)==null?void 0:(L=W.messageHandlers)==null?void 0:L.youtubewebview))&&m&&(W=new OU,m=_.LB(W,1,m),m=_.Md(m.JSC$12861_serializeBinary()),G=_.Md(G),K.postMessage(m+","+G))};
cY=function(m,G){var K=_.Q(_.Q(m,_.Oh),lHP);K&&(G&&(K.serializedAdditionalMetadata=_.Md(G)),UYP(m,!0))};
MQd=function(m,G,K){setTimeout(function(){_.w5(m,G)},K)};
T4G=function(m){switch(m){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"}};
mvf=function(){return!!_.E8("ID_TOKEN")};
K8d=function(m){return m instanceof Error&&m.cause instanceof i09&&m.cause.rpcErrorCode!==void 0?!G3M.includes(m.cause.rpcErrorCode):!0};
L8G=function(){return _.BE(W8d,{authuser:""+(_.E8("SESSION_INDEX")||0)})};
Y1=function(m,G,K,W){K=K===void 0?"MINI_APP_SDK_API_UNSPECIFIED":K;W=W===void 0?"":W;var L=new _.cw;K={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:W,sdkApi:K};m instanceof Error&&(L.message=m.message,L.name=m.name,m.cause instanceof i09&&m.cause.rpcErrorCode!==void 0&&(K.rpcErrorCode=m.cause.rpcErrorCode));var A;(A=G.onError)==null||A.call(G,{loggingError:L,metadata:K})};
wIF=function(m,G,K,W){switch(m){case "MINI_APP_SOURCE_GAMESNACKS":return new rS(G,K,W);default:return new AEd(G,K,W)}};
gxs=function(m){switch(m){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"}};
O0V=function(m){switch(m){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"}};
cEd=function(m){switch(m){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";case 15:return"MINI_APP_SDK_API_OPEN_CONTENT";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
Ykv=function(){return Math.floor(Math.random()*4)+1};
rEv=function(m,G,K,W){m=_.g(Object.entries(m));for(var L=m.next(),A={};!L.done;A={message$jscomp$995:void 0},L=m.next()){var O=_.g(L.value);L=O.next().value;O=O.next().value;A.message$jscomp$995=O;G.push(setTimeout(function(c){return function(){W(!1);K(c.message$jscomp$995.text)}}(A),A.message$jscomp$995.delayMs));
Number(L)>0&&G.push(setTimeout(function(){W(!0)},A.message$jscomp$995.delayMs-400))}};
u_s=function(m,G,K){K=K===void 0?FVo:K;if(m){var W=_.xS().resolve(yb);W||_.F("mweb_no_observer_killswitch")?Ro(m,{data:G,observer:W,visibilityCallback:K,hideOption:wDd,showOption:gHs,layer:m.layer}):_.nc(new _.cw("Warning: monitorVisibility called with null observer",m.tagName,G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams))}else _.nc(new _.cw("Warning: monitorVisibility called with null element",G==null?void 0:G.loggingDirectives,G==null?void 0:G.trackingParams,G==null?void 0:
G.rendererContext))};
h8G=function(m,G){var K=K===void 0?FVo:K;_.F("mweb_fix_monitor_visibility_after_render")?m&&W8(function(){u_s(m,G,K)}):W8(function(){u_s(m,G,K)})};
pIG=function(m,G){var K=document.createElement("ytd-engagement-panel-section-list-renderer");K.data=m;var W=G!=null?G:{};m=W.isPersistentPanel;G=W.hideDelayMs;W=W.overscrollContain;m=Object.assign({},m&&{isPersistentPanel:m},G&&{hideDelayMs:G},W&&{overscrollContain:W});Object.assign(K,m);return K};
t7v=function(m){JE9||(JE9=NZV(new _.tM(1,void 0,void 0,DvV),0));var G=JE9.format(Math.floor(m));G=N_==="be"||N_==="bg"||N_==="es"||N_==="et"||N_==="hu"||N_==="ka"||N_==="lv"||N_==="pl"||N_==="pt-PT"||N_==="sq"?G.replace(new RegExp("^(\\d)"+DvV.GROUP_SEP.replace(".","\\.")+"(\\d+("+DvV.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):G;return m>=1E3&&m<=9999&&G[1]==="."&&(N_==="sl"||N_==="it")?G.replace(".",""):G};
_.acM=function(m,G,K){return window.spf&&!_.F("web_disable_spfjs_client")?F8o(m,G,K):QJd(m,G)};
F8o=function(m,G,K){var W=null,L=(new _.iO(function(A,O){var c={};if(G){c.method=G.method;var u=G.postParams||{};yWG(m,G)&&(u[_.E8("XSRF_FIELD_NAME")]=_.E8("XSRF_TOKEN"));c.postData=_.l$(u);G.type&&(c.type=G.type);u=G.headers}c.headers=kzV(m,u);_.F("debug_forward_web_query_parameters")&&(m=_.dcs(m,window.location.search));c.experimental_headers=c.headers;c.onError=function(h){h.err&&h.xhr&&(h.err.params={url:h.xhr.responseURL,response:h.xhr.responseText.substr(0,64)});O(h.err)};
c.onPartDone=function(h){K&&K.call(null,h.part)};
c.onDone=function(h){var J=oxP(h.response,"xsrf_token");Rb(window.location.href,m)&&J&&_.qC("XSRF_TOKEN",J);if(J=oxP(h.response,"service_worker_killswitch"))_.qC("SERVICE_WORKER_KILLSWITCH",J),zUP();A(h.response)};
W=spf.request(m,c)})).then(nxd);
L.thenCatch(function(A){var O=A instanceof _.uG,c=A&&A.hasOwnProperty("params")&&A.params.response?A.params.response:"";A instanceof Error&&(c?O?FnJ(A):c===')]}\'\n{"reload":"now"}'?FnJ(A):(b06(A,m,c),vx6(A,c)?_.nc(A):_.am(A)):FnJ(A));W&&W.abort()});
return L};
nxd=function(m){if(m.type==="multipart"){var G=m.timing;m=m.parts.reduce(function(K,W){Object.assign(K,W);return K},{});
m.timing=m.timing||{};Object.assign(m.timing,G);m.type="reduced"}return m};
QJd=function(m,G){G=G===void 0?{}:G;var K=null,W=new _.iO(function(L,A){G.onFinish=function(O){if(O.readyState===XMLHttpRequest.DONE)if(O.status===200){if(O.responseType!=="json"){var c=O.response;c.substring(0,5)===")]}'\n"&&(c=c.substring(5));try{var u=JSON.parse(c)}catch(h){u=h}}else u=O.response;u instanceof Error?A(u):(c=oxP(u,"xsrf_token"),Rb(window.location.href,m)&&c&&_.qC("XSRF_TOKEN",c),O=O.responseURL,window.performance&&window.performance.getEntriesByName?(c=window.performance.getEntriesByName(O).pop())?
O={responseStart:(0,_.xD)()-(c.responseEnd-c.responseStart)}:(Math.random()<.01&&(c=Error("hi"),c.params=O,_.nc(c)),O={responseStart:-1}):O={responseStart:0},u.timing=u.timing||{},Object.assign(u.timing,O),L(u))}else A(Error("gi`"+O.status))};
(K=_.ix(m,G))||A(Error("gi`"+K.status))});
W.thenCatch(function(L){L instanceof Error&&(b06(L,m),vx6(L)&&(L.level="WARNING"))});
_.F("cancel_pending_navs")&&W.thenCatch(function(){K.abort()});
return W};
oxP=function(m,G){var K=m[G],W=m.parts;m.type==="multipart"&&W&&(K=(m=W.find(function(L){return G in L}))&&m[G]);
return K};
b06=function(m,G,K){var W=m.message||"";G={original:W,url:G};if(K)if(W=W.match(/position:?\s*(\d+)/)){W=W&&Number(W[1])?Number(W[1]):0;var L=Math.max(W-25,0);G.position=W;G.response=K.substring(L,W+25)}else G.response=K.substring(0,50);_.bO(m,G);try{m.message="JSON parse error"}catch(A){}};
vx6=function(m,G){m=m.message||"";m=!!(m.indexOf("<")>=0||m.indexOf("end of ")>=0||m.indexOf("Unterminated string")>=0||m.indexOf("Unexpected EOF"));if(!m&&G)for(var K=G.length,W=!1,L=0;L<K;L++)if(W&&G[L]==="\\")L++;else if(G[L]==='"')W=!W;else if(G[L]==="<"&&!W){m=!0;break}return m};
$vF=function(){return document.documentElement.hasAttribute("dark")};
_.sJP=function(m,G){if(m!=="GFEEDBACK"&&m!=="GUIDED_HELP")_.j1(Error("ii`"+m));else{var K=_.xS().resolve(_.fn(_.$g));if(K&&(K=K.getCurrentPage())&&K.getServiceTrackingParams&&(K=K.getServiceTrackingParams()))for(var W=0,L;L=K[W++];)if(L.service===m){if(m=L.params)for(K=0;W=m[K++];)G[W.key]=W.value;break}}};
_.qkd=function(m){var G=_.qW();G&&(G=G.getPlayer())&&(G.pauseVideo(),m.playback_id=G.getVideoData().cpn,m.eid=G.getVideoData().eventId,Object.assign(m,G.getFeedbackProductData()))};
ExV=function(){var m={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.E8("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(m.enableAnonymousFeedback=!0);_.E8("SESSION_INDEX")&&(m.authuser=String(_.E8("SESSION_INDEX")));_.F("enable_pageid_for_feedback")&&_.E8("DELEGATED_SESSION_ID")&&(m.pageId=String(_.E8("DELEGATED_SESSION_ID")));return m};
_.hX=function(m){_.F("enable_ypc_spinners")&&_.dU(m,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},m])};
_.pm=function(m){_.F("enable_ypc_spinners")&&_.dU(m,"yt-close-popup-action",["yt-loading-renderer"])};
H0V=function(m){return new Promise(function(G,K){_.YE({verifyCommand:{recaptchaToken:m.recaptchaResponse}},{commandController:{onSuccess:function(W,L){L||K("ChallengeService did not return a response.");var A;G({challengeCompleted:(A=L.verified)!=null?A:!1})},
onServerError:function(W,L){K(L)}}})})};
IcV=function(m,G,K,W){G({recaptchaResponse:W}).then(function(L){L.challengeCompleted?_.w8()?(K(3),_.xS().resolve(_.S1).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:m}})):K(2):K(4)},function(){K(4)})};
k3d=function(m,G,K){_.pJ(_.vE(jJJ,_.E8("HL")),function(){var W;(W=window.grecaptcha)==null||W.ready(function(){var L=window.grecaptcha;L?(K(L.render(m,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:IcV.bind(null,m,H0V,G)})),G(1)):G(4)})})};
C4d=function(m,G){return function(){switch(G()){case 0:return m().captchaLoadingMessage;case 1:return m().challengeReason;case 3:return m().captchaSuccessfulMessage;case 2:return m().captchaCookieSetFailureMessage;case 4:return m().captchaFailedMessage;default:return m().challengeReason}}()};
_.Fw=function(){if(!V7v){var m=document.querySelector("#player.skeleton");m&&(_.mX(m),V7v=!0)}};
_.dvd=function(){return Z0d=Aes()};
e8d=function(){return _.Y(function(m){return P4G!==void 0?m.return():m.yield(yEG(),0)})};
yEG=function(){return _.Y(function(m){if(m.nextAddress==1)return m.yield(gmG(),2);Z0d=m.yieldResult;P4G=_.Fu.addLowPriorityJob(yEG,5E3);_.ey(m)})};
R8M=function(m){var G=G===void 0?fcs:G;var K,W,L=(K=m.responseContext)==null?void 0:(W=K.mainAppWebResponseContext)==null?void 0:W.trackingParam;if(!L){G.increment("MISSING");var A,O,c,u,h,J;_.nc(new _.cw("282054944_a",{aOJ:!!((A=m.responseContext)==null?0:(O=A.mainAppWebResponseContext)==null?0:O.loggedOut),sP1:((c=m.responseContext)==null?void 0:c.mainAppWebResponseContext)===void 0,quc:m.responseContext===void 0,cp:(u=m.playabilityStatus)==null?void 0:u.contextParams,lrO:(((h=m.streamingData)==
null?void 0:h.formats)||[]).length>0,pHj:(((J=m.streamingData)==null?void 0:J.adaptiveFormats)||[]).length>0,os:!!m.offlineState,cotn:m.cotn}));return 2}K="";try{K=xvo(L)}catch(t){return G.increment("C_ERROR"),_.am(t),2}try{var N=_.fFd(K);var D=XIJ(N)}catch(t){return G.increment("P_ERROR"),_.am(t),2}D=_.CB(D,Sks,1,_.Vp());L=[];D=_.g(D);for(N=D.next();!N.done;N=D.next())W=N.value,N=W.getPath(),K=(0,_.Y2.getValueByKeys)(m,N.split(".")),K=String(K===void 0||K===null?"":K),W=W.getValue()||"",A=/[+\-\/_]/g,
K.replace(A,"")!==W.replace(A,"")&&(G.increment("MISMATCH"),_.F("ab_mis_log_err")&&(K=new _.cw("282054944_p",{ocm:N,g:String(K),e:String(W)}),_.am(K)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(N)||(N.match(/enforcementMessageViewModel/i)?L.push(3):L.push(2)));if(L.length>0)return Math.max.apply(Math,_.Bz(L));G.increment("SUCCESS");return 1};
lcd=function(m){var G=new QM;if(m.interpreterJavascript){var K=_.pLf(m.interpreterJavascript);K=u9(K).toString();var W=new UvG;_.LB(W,6,K);_.ko(G,1,W,kk)}else m.interpreterUrl&&(K=_.Ql(m.interpreterUrl),K=_.yG(K).toString(),W=new _.z8G,_.LB(W,4,K),_.ko(G,2,W,kk));m.interpreterHash&&_.ax(G,3,m.interpreterHash,kk);m.program&&_.ax(G,4,m.program,kk);m.globalName&&_.ax(G,5,m.globalName,kk);m.clientExperimentsStateBlob&&_.ax(G,7,m.clientExperimentsStateBlob,kk);return G};
ox=function(m){var G={};m=_.g(m.split("&"));for(var K=m.next();!K.done;K=m.next())K=K.value.split("="),K.length===2&&(G[K[0]]=K[1]);return G};
BZP=function(m){return Number(m.t)||7200};
M7s=function(){var m=m===void 0?window:m;var G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(a0d(),2);G=m;K=G.bgevmc;if(!K)throw Error("mi");return W.return({pause:function(){K.p()},
resume:function(){K.r()},
checkForRefresh:function(){return K.cr()}})})};
QPv=function(){if(_.F("bg_st_hr"))return"havuokmhhs-0";var m,G=((m=globalThis.performance)==null?void 0:m.timeOrigin)||0;return"havuokmhhs-"+Math.floor(G)};
nm=function(m){window.bgens=m};
TZf=function(){return new Promise(function(m){var G=window;G.ntpevasrs!==void 0?m(new bG(G.ntpevasrs)):(G.ntpqfbel===void 0&&(G.ntpqfbel=[]),G.ntpqfbel.push(function(K){m(new bG(K))}))})};
mwd=function(m){if(_.F("attmusi")&&_.F("attmusi_ue")){m={s:m.vEt.bind(m),ir:m.qZM.bind(m)};var G=window;G.attmp=m;if(G.attmq!==void 0)for(var K=_.g(G.attmq),W=K.next();!W.done;W=K.next())W=W.value,W(m);G.attmq=void 0}else G=m.vEt.bind(m),_.yj("yt.aba.att",G),m=m.qZM.bind(m),_.yj("yt.aba.att2",m)};
Gao=function(m){switch(_.f6(m.input)){case _.sv(i7M):var G={};return G.encryptedVideoId=m.innerTubeRequest.externalVideoId,G}return{}};
LRG=function(m){switch(_.f6(m.input)){case _.sv(i7M):if(_.F("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.sv(KRM):if(_.F("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.sv(vY):if(_.F("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&m.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.sv(WR6):var G,K;if(_.F("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((K=_.Q((G=m.config)==null?void 0:G.command,_.nz))==null?0:K.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.wav=function(m){var G;if(m.playlistVideoRenderer&&((G=m.playlistVideoRenderer)==null?0:G.engagementBar))return AcJ(m.playlistVideoRenderer.engagementBar);if(_.Q(m,$1)){var K;if(m=(K=_.Q(m,$1))==null?void 0:K.engagementBar)return AcJ(m)}return""};
AcJ=function(m){if(!m)return"";m=_.Q(m,_.gaG);if(m==null||!m.actions)return"";m=_.g(m.actions);for(m=m.next();!m.done;m=m.next()){m=_.Q(m.value,_.O7F);var G=void 0;if((G=m)==null||!G.itemId)break;return m.itemId}return""};
_.ccJ=function(m){var G;if(m.playlistVideoRenderer&&((G=m.playlistVideoRenderer)==null?0:G.videoId))return m.playlistVideoRenderer.videoId;if(_.Q(m,$1)){var K,W;if(m=(K=_.Q(m,$1))==null?void 0:(W=K.playlistItemData)==null?void 0:W.videoId)return m}return""};
_.YNJ=function(m){var G;if(m.playlistVideoRenderer&&((G=m.playlistVideoRenderer)==null?0:G.voteCount))return m.playlistVideoRenderer.voteCount;if(_.Q(m,$1)){var K,W;if(m=(K=_.Q(m,$1))==null?void 0:(W=K.playlistItemData)==null?void 0:W.voteCount)return m}return 0};
_.sU=function(m,G){return _.yx(m.entities,"flowStateEntity",G)};
uUd=function(m,G,K,W){var L=void 0;m=_.g(m[G.iconName]||[]);for(var A=m.next();!A.done;A=m.next()){A=A.value;var O=G.iconSize;var c=G.iconStyle;O=!O||O===A[2];var u=rcG[A[0]];W&&W!==A[1]||!O||c&&c!==u?c=!1:L?(c=rcG[A[0]],c=!!G.iconStyle||c==="youtube_outline",O=L.version<=A[1],c=(!!G.iconSize||A[2]===24)&&c&&O):c=!0;c&&(L={name:G.iconName,style:rcG[A[0]],size:A[2],version:A[1],allowMirroring:!!A[3],url:K(G.iconName,A)})}return L};
h4f=function(m,G,K,W){return m+(""+rcG[K[0]]+((W===void 0?0:W)?"_experimental":"")+"/"+G+"/v"+K[1]+"/")+(K[2]+"px.svg")};
paG=function(m){return _.E8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.E8("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":m};
Jc9=function(m,G){return h4f("https://fonts.gstatic.com/s/i/",m,G)};
NuM=function(m,G){return h4f("https://fonts.gstatic.com/s/i/",m,G,!0)};
Dwo=function(m,G){return h4f("https://www.gstatic.com/youtube/img/icons/web/",m,G)};
QVP=function(m){var G=m.enabled;var K=m.itemPlaybackModel;var W=m.thumbnailElRef;var L=m.containerElRef;var A=m.options;var O;_.$O(function(){var c=L==null?void 0:L.value;var u,h=(u=W())==null?void 0:u.value,J=K();u=A();if(G&&J&&c&&h&&(u==null?0:u.thumbnail)){var N={data:J,hostElement:c},D,t,a=[].concat(_.Bz((D=u.thumbnailOverlays)!=null?D:[]),_.Bz((t=J.overlays)!=null?t:[]));t=J.itemPlaybackOptions;D=(t==null?void 0:t.enableRoundedPlayer)||u.enableRounding;t=t==null?void 0:t.disableTimeStatusOverlay;
var v,I,Z=(v=J.inlinePlayerData)==null?void 0:v.onVisible,k=(I=J.inlinePlayerData)==null?void 0:I.onSelect;I=u.thumbnail;v=u.accessibilityText||"";J=(J=_.Q(Z,t6M))&&J.playerDescriptors?J.playerDescriptors:void 0;if(J){Z=[];for(k=0;k<J.length;k++){var z=void 0;Z.push({inlinePlaybackEndpoint:J[k].inlinePlaybackEndpoint,navigationEndpoint:J[k].navigationEndpoint,thumbnail:(z=J[k].thumbnail)!=null?z:I,thumbnailOverlays:J[k].thumbnailOverlays?J[k].thumbnailOverlays:a,accessibilityText:v})}a=Z}else a={inlinePlaybackEndpoint:_.c8(Z),
navigationEndpoint:_.c8(k),thumbnail:I,thumbnailOverlays:a,accessibilityText:v};c={mediaRenderer:N,lockupElement:c,thumbnailElement:h,videoPreviewOpts:{videoPreviewData:a,thumbnailSize:u.thumbnailSize,enableRounding:D,mouseleaveCallback:u.mouseleaveCallback,hideTimeDisplay:t}}}else c=void 0;if(c){var X;(X=O)==null||qa(X);O=rH(c);var f,U;((f=K())==null?0:(U=f.inlinePlayerData)==null?0:U.forceImpAutoplay)&&FRd(O)}},"mM6F9");
_.sZ(function(){var c;(c=O)==null||qa(c)})};
aKo=function(m){m=atob(m);for(var G=[],K=0;K<m.length;K++)G.push(m.charCodeAt(K));return new Blob([new Uint8Array(G)],{type:"image/png"})};
naf=function(m,G,K,W){W=W===void 0?"INSERTION_POSITION_UNSPECIFIED":W;return m({targetId:G},function(L){var A,O=(A=L.contents)!=null?A:[];A=K!=null?K:[];var c=oas(O);switch(W){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},L,{contents:[].concat(_.Bz(O.slice(0,c)),_.Bz(A),_.Bz(O.slice(c+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},L,{contents:[].concat(_.Bz(A),_.Bz(O))});case "INSERTION_POSITION_LAST":return Object.assign({},L,{contents:[].concat(_.Bz(O),_.Bz(A))});
default:return L}})};
vaG=function(m,G,K,W,L){L=L===void 0?"RELATIVE_INSERTION_POSITION_AFTER":L;return m({targetId:G},function(A){var O,c=(O=A.contents)!=null?O:[];O=b7d(c,K);if(O<0)return A;O=L==="RELATIVE_INSERTION_POSITION_BEFORE"?O:O+1;return Object.assign({},A,{contents:[].concat(_.Bz(c.slice(0,O)),_.Bz(W),_.Bz(c.slice(O)))})})};
oas=function(m){var G=m.findIndex(function(K){return _.Q(K,_.EU)});
return G>=0?G:m.length};
b7d=function(m,G){return m.findIndex(function(K){a:{K=_.g(Object.values(K));for(var W=K.next();!W.done;W=K.next())if((W=W.value)&&W.targetId){K=W.targetId;break a}K=""}return K===G})};
sVJ=function(m,G,K){return m({targetId:G},function(W){var L,A=(L=W.contents)!=null?L:[];return Object.assign({},W,{contents:$wf(A,K)})})};
$wf=function(m,G){return m.filter(function(K){var W=G.includes;a:{K=_.g(Object.values(K));for(var L=K.next();!L.done;L=K.next())if((L=L.value)&&L.targetId){K=L.targetId;break a}K=""}return!W.call(G,K||"")})};
_.qNJ=function(m,G){return{engagementPanelSectionListRenderer:{panelIdentifier:m,identifier:G,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
Eas=function(m,G){m=m.getAvailableAudioTracks();if(m.length)return m==null?void 0:m.find(function(K){var W;return(K==null?void 0:(W=K.getLanguageInfo())==null?void 0:W.getId())===G})};
_.IKG=function(m){var G,K=(G=m.getOption("captions","tracklist",{includeAsr:!0}))!=null?G:[];return K=H7f(K,m)};
jVF=function(m){return m.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
H7f=function(m,G){G=jVF(G);if(G==null||!G.length)return m;var K=G.filter(function(O){return O});
G=m.filter(function(O){return O.languageCode.startsWith("en")});
K=_.g(K);for(var W=K.next();!W.done;W=K.next())if(W=W.value,G.length){var L=G[0],A=Object.assign({},L);L.languageCode!==W.languageCode&&(A.displayName=L.languageName+" >> "+W.languageName,A.translationLanguage=W,m.push(A))}return m};
kaV=function(m,G,K){m=_.IKG(m);if(m.length)return K?m.find(function(W){if(typeof(W==null?void 0:W.translationLanguage)==="object"){var L;return((L=W.translationLanguage)==null?void 0:L.languageCode)===G}return!1}):m==null?void 0:m.find(function(W){return W.languageCode===G})};
CyJ=function(m){return m.getOption("captions","tracklist",{includeAsr:!0})};
V6d=function(m){var G=m.getAvailableAudioTracks();if(G!=null&&G.length){var K=m.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Bz(G.map(function(W){return{listItemViewModel:{title:{content:W.getLanguageInfo().getName()},isSelected:W.getLanguageInfo().getId()===(K==null?void 0:K.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:W.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
Z7o=function(m){return m.getOption("captions","tracklist",{includeAsr:!0})};
dws=function(m){var G=Z7o(m);if(G==null?0:G.length)return G;m.loadModule("captions");return Z7o(m)};
PyM=function(m){var G=m.getOption("captions","track");if(G)return G;m.loadModule("captions");return m.getOption("captions","track")};
e4d=function(m){var G=dws(m);if(G!=null&&G.length){var K=PyM(m),W;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.zq("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(K==null?0:K.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Bz(G.map(function(L){return{listItemViewModel:{title:{content:L.displayName},
isSelected:L.displayName===(K==null?void 0:K.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:L.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.zq("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!K.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!K.translationLanguage&&{selectionText:{content:(K==null?void 0:(W=K.translationLanguage)==null?void 0:W.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[ycG(m)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
ycG=function(m){var G=jVF(m);if(G==null||!G.length)throw Error("Ii");var K=PyM(m);m=G.filter(function(W){return!W.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Bz(m.map(function(W){var L;return{listItemViewModel:{title:{content:W.languageName},isSelected:W.languageName===(K==null?void 0:(L=K.translationLanguage)==null?void 0:L.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:W.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
SN6=function(m){return new Promise(function(G,K){if(m===void 0)_.am(Error("Mi"),"ERROR"),K(Error("Mi"));else{K=new _.fKd;var W=_.xwG();K=K.init();var L=_.Xav(_.E8("YPC_MB_URL"),!0);Promise.all([K,L]).then(function(){var A=_.HY.payments.business.integration.ClientTokenFactory.createClientToken(m,W);G(A)})}})};
z4d=function(m,G,K,W,L,A,O){var c=_.Qo();K=K.replace(/-/g,"+").replace(/_/g,"/");var u=_.M$().get("hl"),h=_.Ix(_.b0),J=G==null?void 0:G.element;J&&_.hX(J);R4d(G,!0);_.Uw9(h,K,c.resolve,function(){J&&_.pm(J)},function(N){J&&_.pm(J);
c.reject(N)},u,W?function(N){W&&_.to(m,W,{backend_analytics:N})}:void 0,c.resolve,L,A,O);
return c.promise};
R4d=function(m,G){!(m=m==null?void 0:m.element)||m.tagName!=="YT-BUTTON-RENDERER"&&m.tagName!=="YTD-BUTTON-RENDERER"||(m.disabled=G)};
lKd=function(){var m=_.zq("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Hk(m),actionButton:{buttonRenderer:Lxd()}}},popupType:"TOAST"}};
Buf=function(){var m=_.zq("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Hk(m),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
M6o=function(m){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:m}]}}};
jq=function(m,G,K,W){var L;return _.Y(function(A){if(A.nextAddress==1)return _.IO(A,2),A.yield(m,4);if(A.nextAddress!=2)return(L=_.md(G.getState().entities).length>0)?A.return({title:_.Hk(_.zq("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Hk(_.zq("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:WxP()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
A.return(ARG(K,W));_.ye(A);return A.return(ARG(K,W))})};
TuF=function(m,G){return G?G==="PPSV"||Cmd(m,G):!1};
mLG=function(m){m.responseContext||(m.responseContext={});m.responseContext.maxAgeSeconds=0;return m};
Cm=function(m){var G;return _.Y(function(K){return K.nextAddress==1?K.yield(ivF(m,"service:topbar:fallback"),2):(G=K.yieldResult)&&_.k1(G)?K.return(mLG(_.k1(G))):K.return()})};
G0f=function(m){var G;return _.Y(function(K){return K.nextAddress==1?K.yield(ivF(m,"service:downloads_settings:fallback"),2):(G=K.yieldResult)&&_.k1(G)?K.return(G):K.return()})};
ivF=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)return m?W.yield(m.get(G),2):W.return();K=W.yieldResult;return!K||!_.k1(K)||!isNaN(Number(K.data.expireTimestampMs))&&K.isExpired()?W.return():W.return(K)})};
KGs=function(m){var G=_.xS().resolve(VM).getState().entities;return m.playlistId?TuF(G,m.playlistId):!1};
LGF=function(m){var G=_.U8("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;if(!_.Q(m,_.lw))return G&&_.nc(Error("fj")),!1;var K;return _.F("shorts_controller_retrieve_seedless_sequence_v2")&&((K=_.Q(m,_.lw))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:WGV(m)?!0:(G&&_.nc(Error("gj")),!1)};
WGV=function(m){var G=(_.Q(m,_.QQ)||_.Q(m,_.lw)).videoId;if(!G||!Ams.test(G))return!1;var K;return(m=(K=_.Q(m.commandMetadata,_.RQ))==null?void 0:K.url)&&(m.includes(G)||m.startsWith("/clip"))?!0:!1};
_.Zk=function(m){var G=_.F(m);VQ["counterfactuals."+m]=String(G);return G};
_.gnJ=function(){var m=_.M$();return m.getFlag(192)?m.getFlag(190):!(_.Zk("web_watch_cinematics_disabled_by_default")||_.Zk("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&wsV())};
_.dS=function(m,G,K){var W={};W.currentUrl=G;W.vis=m.vis!==void 0?m.vis:0;W.splay=!1;G=_.M$();W.autoCaptionsDefaultOn=G.getFlag(66);G.getFlag(141)?G.getFlag(140)?W.autonavState="STATE_OFF":W.autonavState="STATE_ON":W.autonavState="STATE_NONE";W.html5Preference="HTML5_PREF_WANTS";isNaN(_.E8("STS"))||(W.signatureTimestamp=_.E8("STS"));m.autonav&&(W.autoplay=!0,W.autonav=!0);m.mutedAutoplay&&(W.autoplay=!0,W.mutedAutoplay=!0);m.inlinePlayback&&(W.autoplay=!0,W.autonav=!1,W.isInlineUnmutedPlayback=!!m.inlineUnmuted);
W.referer=K;W.lactMilliseconds=m.lact!==void 0?m.lact.toString():"-1";_.F("enable_unknown_lact_fix_on_html5")&&W.lactMilliseconds==="-1"&&_.nc(new _.cw("Unknown LACT is set in playbackContext.",{"lact in tempData":m.lact||"undefined",autonav:m.autonav||"undefined"}));m={};G.getFlag(194)&&(m.hasShownAmbientMode=!0);G.getFlag(192)&&(m.hasToggledOffAmbientMode=!0);_.gnJ()&&(m.watchAmbientModeEnabled=!0);W.watchAmbientModeContext=m;return W};
Ovf=function(m){var G={},K=m.pbis||0;K&&(G.playbackBeginsInSeconds=K);m.prefetch_reason&&m.prefetch_reason==="hc_pbis"&&(G.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return G};
cm9=function(m,G){var K;if(G==null?0:(K=G.requestTemplate)==null?0:K.panelId)m.panelId=G.requestTemplate.panelId;var W;if(G==null?0:(W=G.requestTemplate)==null?0:W.params)m.params=G.requestTemplate.params};
rmG=function(){if(YsG)return YsG();var m=!_.F("idb_response_store_auth_killswitch"),G={};YsG=fL("yt-it-response-store",{objectStores:(G.ResponseStore={addedAtVersion:1},G),shared:!m,upgrade:function(K,W){W(1)&&(K=sg(K,"ResponseStore",{keyPath:["key","clientName"]}),qq(K,"byExpiration","expireTimestampMs"),qq(K,"byInterface","clientName"))},
version:1});return YsG()};
PY=function(m){return _.kD(rmG(),m)};
hqP=function(m,G){var K;return _.Y(function(W){return W.nextAddress==1?W.yield(_.en(),2):(K=W.yieldResult)?W.return(new uG9(m,G,K)):W.return()})};
psd=function(m){var G=Object.keys(m)[0];if(G)return m.screenExit&&(G=G+";"+m.screenExit.screen),G};
Jm6=function(m){var G=new Map;m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,K!=null&&(G.has(K.taskType)||G.set(K.taskType,[]),G.get(K.taskType).push(K));return G};
Nms=function(m){m=[].concat(_.Bz(m)).sort(function(K,W){return K-W});
var G=Math.floor(m.length/2);return m.length%2?m[G]:(m[G-1]+m[G])/2};
FG6=function(m,G){m=m===void 0?A3f:m;G=G===void 0?{}:G;_.yj("yt.logging.errors.log",_.am);Wnd();DL9(YnG(),G);window.onerror=m;tHP=Lnd;window.addEventListener("unhandledrejection",function(K){if(K.reason instanceof Error){var W=K.reason;_.bO(W,{source:"unhandledrejection"});W.name==="AbortError"&&(W.level="WARNING")}Lnd(K.reason);K.preventDefault()})};
_.Q0v=function(m){var G,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji,rK,So,ti,bS,NG,EO,gz,ps;return _.Y(function(ZF){if(ZF.nextAddress==1)return ZF.yield(_.zz(m,{mode:"readonly",enableRetries:!0},function(DP){return ld(DP,"playbackData").then(function(lS){var Eo=lS.map(function(JD){return JD.transfer}).filter(function(JD){return!!JD}),iq=lS.map(function(JD){return JD.offlineVideoPolicy}).filter(function(JD){return!!JD}),jy=lS.filter(function(JD){return!!JD.key}).map(function(JD){return _.Pk(_.Vx(JD.key).entityId,
"downloadStatusEntity")});
Eo=ld(DP,"transfer",Eo);iq=ld(DP,"offlineVideoPolicy",iq);jy=ld(DP,"downloadStatusEntity",jy);var T4=Eo.then(function(JD){JD=JD.reduce(function(S0,zG){(zG==null?0:zG.offlineVideoStreams)&&S0.push.apply(S0,_.Bz(zG.offlineVideoStreams));return S0},[]).filter(function(S0){return!!S0});
return ld(DP,"offlineVideoStreams",JD)});
return $D.all([Eo,iq,T4,jy]).then(function(JD){var S0=_.g(JD);JD=S0.next().value;var zG=S0.next().value;var c2=S0.next().value;S0=S0.next().value;return[lS,JD,zG,c2,S0]})})}),2);
if(ZF.nextAddress!=3)return G=ZF.yieldResult,ZF.yield(_.zz(m,{mode:"readonly",enableRetries:!0},function(DP){return ld(DP,"mainDownloadsListEntity").then(function(lS){var Eo,iq;return(iq=(Eo=lS[0])==null?void 0:Eo.downloads)!=null?iq:[]})}),3);
K=ZF.yieldResult;W=_.g(G);L=W.next().value;A=W.next().value;O=W.next().value;c=W.next().value;u=W.next().value;h=L;J=A;N=O;D=c;t=u;a={};v={};I={};Z={};k={};z=[];X=_.g(J);for(f=X.next();!f.done;f=X.next())(U=f.value)&&(a[U.key]=U);l=_.g(N);for(Ls=l.next();!Ls.done;Ls=l.next())(gd=Ls.value)&&(v[gd.key]=gd);Qf=_.g(t);for(JV=Qf.next();!JV.done;JV=Qf.next())(DF=JV.value)&&(I[DF.key]=DF);kG=_.g(D);for(eo=kG.next();!eo.done;eo=kG.next())(xG=eo.value)&&(Z[xG.key]=xG);Ji=_.g(K);for(rK=Ji.next();!rK.done;rK=
Ji.next())So=rK.value,ti=void 0,k[(ti=So.videoItem)!=null?ti:""]=!0,So.videoItem&&(NG=bS=void 0,EO=(NG=(bS=_.Vx(So.videoItem))==null?void 0:bS.entityId)!=null?NG:"",z.push({externalVideoId:EO}));gz=h.filter(function(DP){if(!DP||!DP.key||!DP.offlineVideoPolicy)return!1;DP=_.Vx(DP.key).entityId;DP=_.Pk(DP,"downloadStatusEntity");var lS;return!(DP&&((lS=I[DP])==null?void 0:lS.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
ps=gz.map(function(DP){var lS=a[DP.transfer],Eo=[];if(lS==null?0:lS.offlineVideoStreams)for(var iq=_.g(lS.offlineVideoStreams),jy=iq.next();!jy.done;jy=iq.next())(jy=Z[jy.value])&&Eo.push(jy);iq=v[DP.offlineVideoPolicy];jy=k;var T4=DP==null?void 0:DP.playerResponseTimestamp,JD=_.Vx(iq.key).entityId;DP=_.Pk(JD,"mainVideoEntity");if(iq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var S0="OFFLINE_VIDEO_STATE_DISABLED";iq.expirationTimestamp&&Number(iq.expirationTimestamp)<Date.now()/1E3&&(S0="OFFLINE_VIDEO_STATE_EXPIRED")}else if(iq.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")S0="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(lS==null?void 0:lS.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":S0="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":S0="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":S0="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":S0="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":S0="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":S0="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:S0="OFFLINE_VIDEO_STATE_UNKNOWN"}if(S0==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(lS==null?void 0:lS.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":S0="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":S0="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":S0=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}JD={id:JD,videoState:S0};if(lS==null?0:lS.cotn)JD.cotn=lS.cotn;if(lS==null?0:lS.maximumDownloadQuality)JD.selectedVideoQuality=lS==null?void 0:lS.maximumDownloadQuality;if(lS==null?0:lS.lastProgressTimeMs)JD.lastProgressTimeMs=lS.lastProgressTimeMs;T4&&(JD.playerResponseSavedTimeMs=String(Number(T4)*1E3));lS=String;T4=0;Eo=_.g(Eo);for(S0=Eo.next();!S0.done;S0=Eo.next())if(S0=S0.value,S0.streamsProgress){S0=_.g(S0.streamsProgress);for(var zG=S0.next();!zG.done;zG=
S0.next()){var c2=void 0;T4+=Number((c2=zG.value.numBytesDownloaded)!=null?c2:0)}}JD.downloadedBytes=lS(T4);JD.selectedOfflineMode=jy[DP]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";iq.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(JD.offlinePlaybackDisabledReason=iq.offlinePlaybackDisabledReason);return JD});
return ZF.return({offlineVideos:ps,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:z}}})})};
aAd=function(){var m;return _.Y(function(G){return G.nextAddress==1?G.yield(_.SO(),2):(m=G.yieldResult)?G.return(_.Q0v(m)):G.return({state:"PES Unavailable"})})};
bvf=function(){var m,G,K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(_.SO(),2);if(L.nextAddress!=3)return(m=L.yieldResult)?L.yield(ond(m),3):L.return({state:"PES Unavailable"});G=L.yieldResult;K={};W=G.reduce(function(A,O){A[O.key]=O;return A},K);
return L.return(nnF(W))})};
nnF=function(m){for(var G={},K=[],W=_.g(Object.keys(m)),L=W.next();!L.done;L=W.next()){var A=L.value;L=m[A];var O=void 0;if(((O=L)==null?void 0:O.entityType)==="mainVideoEntity"){delete m[A];var c=L.data;L={};if(c){var u=void 0;O=(u=c.videoId)!=null?u:"vid-"+A;A=m;L.video=c;delete L.video.formattedDescription;delete L.video.thumbnail;c.owner&&(u=A[c.owner],u==null?0:u.data)&&(delete A[u.key],L.video.owner=u.data,delete L.video.owner.avatar);if(c=c.downloadState)if(u=A[c],u==null?0:u.data)if(delete A[c],
c=u.data.playbackData)if(u=A[c],u!=null&&u.data){delete A[c];c=u.data;delete c.playerResponseJson;L.playbackData=c;if(c.transfer&&(u=A[c.transfer],u==null?0:u.data)){delete A[u.key];var h=u.data;L.transfer=h;u=[];h=_.g(h.offlineVideoStreams||[]);for(var J=h.next();!J.done;J=h.next())if(J=A[J.value])delete A[J.key],u.push(J.data);u&&(L.streams=u)}(c=c.offlineVideoPolicy)&&(c=A[c])&&c.data&&(delete A[c.key],L.offlineVideoPolicy=c.data)}G[O]=L}}else L&&L.entityType==="offlineOrchestrationActionWrapperEntity"&&
L.data&&(delete m[L.key],O=L.data,A=void 0,K.push({id:O.rootActionId,type:((A=O.actionProto)==null?void 0:A.actionType)||"",entity:L}))}G.wrapperEntities=K;Object.keys(m).length>0&&(G.unknownKeys=m);return G};
vnG=function(){var m,G,K,W,L,A,O,c,u;return _.Y(function(h){if(h.nextAddress==1)return m=(new _.bs("")).hasLocalStorage(),W=!!((G=_.Ks.crypto)==null?0:(K=G.subtle)==null?0:K.importKey),L=!!_.Ks.BroadcastChannel,A=!!_.Ks.navigator.locks,h.yield(d_G(),2);O=h.yieldResult;c=m&&W&&L&&A&&O;u={isSupported:c};if(c)return h.return(u);u.missingBrowserFeatures=[];O||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");m||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
W||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");L||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");A||u.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return h.return(u)})};
$LM=function(m,G,K,W){var L=!1,A={contentId:void 0,contentType:"video"};G=_.g(Object.entries(G));for(var O=G.next();!O.done;O=G.next()){var c=_.g(O.value);O=c.next().value;c=c.next().value;m.includes(O)&&!K.has(c)?(A.contentId=c,K.add(c),L=!0):O==="contentType"?c==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(A.contentType="playlist"):typeof c==="object"&&c!==null&&$LM(m,c,K,W)}L&&W.push(A)};
s0d=function(){var m;return!((m=yM?yM:null)==null||!m.window)};
_.HvF=function(m){if(_.qso()){var G=_.EnG().mediaSession;try{G.setActionHandler("enterpictureinpicture",function(K){m(K)})}catch(K){}}};
_.qso=function(){return!(!yM||!yM)&&$G()&&_.aF9("Chromium")>=120};
IAP=function(m){for(var G=[],K=_.g(document.styleSheets),W=K.next(),L={};!W.done;L={node$jscomp$778:void 0},W=K.next())L.node$jscomp$778=W.value.ownerNode,L.node$jscomp$778&&(L.node$jscomp$778 instanceof HTMLStyleElement||L.node$jscomp$778 instanceof HTMLLinkElement)&&G.push(new Promise(function(A){return function(O){var c=A.node$jscomp$778.cloneNode(!0);c.onload=function(){O()};
c.onerror=function(){_.nc(Error("xj"));O()};
m.document.head.appendChild(c)}}(L)));
return Promise.all(G)};
fAs=function(m){var G=[_.ob(j06),_.ob(k0f),_.ob(CUG)];VH6(window.document.documentElement,m.document.documentElement,[_.ob(ZvP),_.ob(dLV),_.ob(PUV),_.ob(ymd),_.ob(eqF)]);VH6(window.document.body,m.document.body,G)};
VH6=function(m,G,K){m=_.g(m.attributes);for(var W=m.next();!W.done;W=m.next())if(W=W.value)try{_.DO(K,G,W.name,W.value)}catch(L){}};
Xsd=function(m,G){m=new _.eq(m.document.documentElement);m.start(xLs,G);return m};
SsJ=function(m){var G=m.document.documentElement;G.addEventListener("click",function(K){HRd(G,K)});
G.addEventListener("touchstart",function(K){VXG(K)});
G.addEventListener("mousedown",function(K){VXG(K)})};
ULG=function(m,G,K,W){W=W===void 0?!1:W;G=new RqG(G||m,K||m);return{x:m.x+((W===void 0?0:W)?G.lengthX*-1:G.lengthX)*.2,y:m.y+((W===void 0?0:W)?G.lengthY*-1:G.lengthY)*.2}};
zqd=function(m){if(!m)return!1;var G=m.status==="OK"||m.status==="LIVE_STREAM_OFFLINE",K,W,L,A=(L=(K=m.errorScreen)==null?void 0:K.playerLegacyDesktopYpcTrailerRenderer)!=null?L:(W=m.errorScreen)==null?void 0:W.ypcTrailerRenderer;return!!G||!!A};
_.lAs=function(m,G){if(!m)return!1;var K,W=(K=m.errorScreen)==null?void 0:K.playerLegacyDesktopYpcOfferRenderer,L;G=!!(G==null?0:(L=G.playerOverlayRenderer)==null?0:L.gatedActionsOverlayRenderer);return!!zqd(m)||!!W||!!G};
Bmf=function(m){return it6(m,0,"gclid",m.search(GHs))>=0||it6(m,0,"gad_source",m.search(GHs))>=0};
MHJ=function(m){var G=[],K=0;return{clear:function(){K=G.length=0},
push:function(W){G[K]=W;K=(K+1)%m},
iterate:function(){return function L(){var A,O,c,u;return _.fm(L,function(h){switch(h.nextAddress){case 1:_.Ve(h,2),A=G.length,O=0;case 4:if(!(O<A)){h.jumpTo(2);break}c=K+O;u=_.x1;return h.yield(G[c%A],7);case 7:u(h.yieldResult);O++;h.jumpTo(4);break;case 2:_.CZ(h),_.ZO(h,0)}})}()}}};
Tmd=function(m){m.eventsToIgnore||(m.eventsToIgnore=[]);var G=m.eventsToIgnore.map(kSf),K=new Set(G),W=MHJ(m.bufferSize);return{flush:function(){var L=Array.from(W.iterate());W.clear();L=L.map(function(A){return{name:A.name,timestamp:A.startTime,attributes:A.attributes}});
return JSON.stringify(L)},
onSpanStart:function(L){L.name==="event"&&K.has(L.attributes.type)||W.push(L)}}};
m96=function(m){m=Tmd(m);var G=m.flush;S7f({onSpanStart:m.onSpanStart});$z.subscribe("handleError",function(K){try{K.params.breadcrumbs=G()}catch(W){_.am(W,"WARNING")}})};
iyd=function(){OG("web_tracing_action");_.ck("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
GrF=function(){OG("web_tracing_action");_.ck("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
L6G=function(m,G,K,W){if(G===void 0){K6P||(GrF(),setInterval(GrF,6E5),K6P=!0);var L="web_tracing_action"}else L=G;var A,O=((A=m.endTime)!=null?A:m.startTime)-m.startTime;A={};K=W6s(m.name,O,m.startTime,{webTracing:(A[m.name]=m.attributes,A)},K,L,{spanStatus:m.status,rootSpanNonce:void 0});if(m.children)for(m=_.g(m.children),L=m.next();!L.done;L=m.next())L6G(L.value,G,K,W||K)};
AQV=function(m){var G=MMd.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(K){K.data&&typeof K.data==="object"&&(K=K.data,K.from==="extension"&&K.app==="yt.telemetry"&&(G("Received message from extension",K),m.onMessage(K)))});
return function(K,W){K={app:"yt.telemetry",from:"app",key:K,payload:W};G("Sending message to extension",K);window.postMessage(K,"*")}};
w1v=function(){var m=m===void 0?3E3:m;var G=AQV({onMessage:function(){}}),K=[];
return{onSpanEnd:function(W){W.parentId==null&&K.push(W)===1&&setTimeout(function(){var L=[].concat(_.Bz(K));K.length=0;G("spansReported",{spans:L})},m)}}};
gXo=function(m){m=m===void 0?400:m;var G=[],K=[];return{start:function(){return RAv({checkoutEveryNth:m,emit:function(W,L){L&&(G=K,K=[]);K.push(W)}})},
getRecording:function(){return[].concat(_.Bz(G),_.Bz(K))}}};
Y6G=function(){(new OyJ({sessionReplayEvents:_.U8("web_tracing_session_replay",0)})).subscribe(function(m){if(m.sessionReplayEvents>0)try{var G=gXo(m.sessionReplayEvents);G.start();if(_.F("web_tracing_session_replay_demo")){var K=console.log;window.exportSessionReplay=function(){var W=JSON.stringify(G.getRecording(),null,2);W=cQP(new Blob([W],{type:"text/plain"}));var L=document.createElement("a");L.download="session_replay.json";L.dataset.downloadurl=["application/json",L.download,L.href].join(":");
L.style.display="none";L.href=W;L.click();URL.revokeObjectURL(W);K("View replay at go/yt-session-replay-viewer")}}}catch(W){_.nc(Error("zj"))}})};
u49=function(){var m=window.fetch;window.fetch=function(){var G=_.mb.apply(0,arguments),K=_.g(G),W=K.next().value;K=K.next().value;var L=CJ("httpEvent",{method:(K===void 0?{}:K).method||"GET",path:rQo(W),type:"fetch"},{active:!1});return m.apply(null,_.Bz(G)).then(function(A){L.addAttributes({statusCode:A.status,statusText:A.statusText});L.end();return A}).catch(function(A){L.end("SPAN_STATUS_ERROR");
throw A;})}};
hXd=function(){var m=XMLHttpRequest.prototype.open,G=XMLHttpRequest.prototype.send;XMLHttpRequest.prototype.open=function(K,W,L,A,O){var c=this;L=L===void 0?!0:L;this._requestData={method:K,url:W.toString()};this.addEventListener("load",function(){var u=c._span;u==null||u.addAttributes({statusCode:c.status,responseContentLength:c.responseText.length});u==null||u.end()});
this.addEventListener("error",function(){var u=c._span;u==null||u.addAttributes({statusCode:c.status,statusText:c.statusText});u==null||u.end("SPAN_STATUS_ERROR")});
this.addEventListener("abort",function(){var u=c._span;u==null||u.addAttributes({statusCode:c.status,aborted:!0});u==null||u.end()});
m.apply(this,[K,W,L,A,O])};
XMLHttpRequest.prototype.send=function(K){var W=this._requestData||{method:"N/A",url:"N/A"};this._span=CJ("httpEvent",{method:W.method,path:rQo(W.url),type:"xhr"},{active:!1});G.apply(this,[K])}};
rQo=function(m){try{if(m instanceof URL)return m.pathname;m instanceof Request&&(m=m.url);return(new URL(m,"https://youtube.com")).pathname}catch(G){return"<unable to parse path>"}};
JQF=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var m=window.performance.getEntriesByType("navigation");if(m.length>0){var G=m[0],K=window.performance.timeOrigin;CJ("pageLoad",{navigationType:p1d(G.type),unloadEventStart:Math.round(G.unloadEventStart),unloadEventEnd:Math.round(G.unloadEventEnd),domInteractive:Math.round(G.domInteractive),domContentLoadedEventStart:Math.round(G.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(G.domContentLoadedEventEnd),
domComplete:Math.round(G.domComplete),loadEventStart:Math.round(G.loadEventStart),loadEventEnd:Math.round(G.loadEventEnd),redirectCount:G.redirectCount},{active:!1,startTime:K+G.startTime,endTime:K+G.loadEventEnd})}}catch(W){}})};
p1d=function(m){switch(m){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
QNM=function(){for(var m=Njs.value,G={},K=_.g(m.enabledSpansArray),W=K.next();!W.done;W=K.next())G[W.value]=!0;XBd({sessionId:UAP(),enabledSpans:G,shouldSampleFn:function(L,A,O){if(D9d){var c;return L==="shortToShort"||(O==null?void 0:(c=O.rootSpan())==null?void 0:c.name)==="shortToShort"}return!0}});
Bps();IQ("pageLoad")&&JQF();IQ("httpEvent")&&(u49(),hXd());m.exportToCsi&&S7f(tTd);m.exportToDevTools&&S7f(w1v());m.maxBreadcrumbs>0&&m96({eventsToIgnore:F6P,bufferSize:m.maxBreadcrumbs})};
aVG=function(m){return new Promise(function(G){window.setTimeout(G,m)})};
oXP=function(m){var G={bicf:function(A){m.sn2=A},
blc:function(){return m.getLatestChallengeResponse()},
bcr:function(A){m.r6F.push(A)}},K=window;
K.ntpevasrs=G;if(K.ntpqfbel!==void 0)for(var W=_.g(K.ntpqfbel),L=W.next();!L.done;L=W.next())L=L.value,L(G);K.ntpqfbel=void 0};
nXM=function(m){return _.Y(function(G){if(G.nextAddress==1)return _.IO(G,2),G.yield(m.l8M(),4);if(G.nextAddress!=2)return _.IG(G,0);_.ye(G);_.ey(G)})};
byJ=function(m){var G,K;(G=m.ytcsi)==null||(K=G.tick)==null||K.call(G,"pot_ist")};
vXf=function(m){if(m instanceof Error){var G=_.Cn("yt.logging.errors.log");G&&G(m,"WARNING")}};
$9f=function(m){try{var G=JSON.parse(m);if(G.bgChallenge)return G}catch(K){}};
q66=function(){var m=window,G={networkStatusManagerPromise:_.xS().resolve(new aQv(_.k3)),initialChallengeSli:_.F("wpo_att_sli")?new _.u$d("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};m=m===void 0?window:m;var K=m.ytAtR,W;G==null||(W=G.initialChallengeSli)==null||_.Xw(W);if(K){if(K=$9f(K)){var L;G==null||(L=G.initialChallengeSli)==null||_.Sq(L,"SUCCESS");sNJ(K,G)}m.ytAtR=void 0}else m.ytAtRC=function(A){if(A=$9f(A)){var O;G==null||(O=G.initialChallengeSli)==null||
_.Sq(O,"SUCCESS");sNJ(A,G);m.ytAtRC=void 0}}};
IVd=function(){if(EXP)return EXP;try{var m=_.M7("IFRAME");_.w5(m,_.vE(Hyo));m.sandbox.add("allow-same-origin");m.style.display="none";document.body.appendChild(m);return EXP=m}catch(G){m=new _.cw("Failed to create sandbox iframe"),_.am(m)}};
jNf=function(){return function(m,G){_.E8("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[m]=G}};
krJ=function(){return function(m,G){var K={};K[m]=G;m=_.kS(_.jnd)(K);Object.keys(m).length>0&&_.g9(m)}};
Zyv=function(){if(_.qhv()==="hidden")var m="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else _.qhv()==="visible"&&(m="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",CfF=null);m&&VTM(m)};
VTM=function(m){if(m==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||m==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(d9s===m)return;d9s=m}var G=9E4+Math.random()*2E3;if(m!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Xu()>G)&&_.qhv()==="visible"){G=-1;CfF&&(G=Math.round((0,_.xD)()-CfF));var K=String;var W=_.Cn("_fact",window);W=W==null||W==-1?-1:Math.max(Date.now()-W,0);_.Fx("foregroundHeartbeat",{firstActivityMs:K(W),clientDocumentNonce:ziM,index:String(PfG),lastEventDeltaMs:String(G),trigger:m});
_.yj("_fact",-1,window);PfG++;CfF=(0,_.xD)()}};
yQF=function(m,G,K,W,L,A){G=new Uint8Array(G);if(m.length===0)return G;var O=0;L=L!=null?L:m.length-1;for(var c=K;c<=L;c++){var u=m[c],h=c===K?W:0,J=void 0,N=c===L?(J=A)!=null?J:u.length:u.length;u=u.subarray(h,N);G.set(u,O);O+=u.length}return G};
_.eXJ=function(){try{return!!self.sessionStorage}catch(m){return!1}};
fVG=function(){var m=navigator;return new Promise(function(G,K){var W;(W=m.webkitTemporaryStorage)!=null&&W.queryUsageAndQuota?m.webkitTemporaryStorage.queryUsageAndQuota(function(L,A){G({usage:L,quota:A})},function(L){K(L)}):K(Error("Ij"))})};
x9f=function(m,G){var K={errorSeverity:G.errorSeverity.toString(),wizFeatureFlags:Object.entries(G.featureFlags).join("\n")};Kns(G,K);G=G.errorSeverity;G===3?_.am(m,"ERROR",void 0,void 0,void 0,K):G===2&&_.am(m,"WARNING",void 0,void 0,void 0,K);_.F("cow_if_errors_in_popup")&&G===3&&m.message.indexOf("<If>")!==-1&&window.alert(m.message)};
X1d=function(m,G){var K=$t.get(m)||{layerNode:G};K.layerNode=G;pqs(m,K);m.getScreenLayer=function(){return Rx(K.layerNode)}};
S6o=function(m){var G;m=m.parentNode;for(var K;m&&((G=$t.get(m))==null||!G.isRenderer)&&!((K=m.polymerController)!=null?K:m).isRenderer_;)m=m.parentNode||m.host;if(G=m)return $t.get(G)};
RXd=function(m){if(m){$t.delete(m);var G=_.xS().resolve(yb);W4o(m,G)}};
zXP=function(m,G,K){if(K===void 0?0:K){if(K=m.getAttribute("client-ve-type"),G.data&&!G.disableReactiveLogging||K)_.v4(function(){U9v(m,_.EZ(G.data))},"Gg"),_.sZ(function(){return void RXd(m)})}else typeof G.data!=="function"&&U9v(m,G.data)};
U9v=function(m,G){lVd++;Bjo(m,G)&&_.Fu.addJob(function(){_.UU(_.Fu,function(){if(Bjo(m,G)&&m.ownerDocument.documentElement===document.documentElement&&m){var K;if(m.getAttribute("layer")){var W=K=Number(m.getAttribute("layer")),L=$t.get(m);L?L.layerNode.layer=W:X1d(m,new MT6(W));(W=S6o(m))&&(L=$t.get(m))!=null&&(L.layerNode.parent=W.layerNode)}else if(K=$t.get(m))K=Rx(K.layerNode);else{K=Rx;W=new MT6;if(L=S6o(m))W.parent=L.layerNode;X1d(m,W);K=K(W)}K!=null||(K=0);W=m.getAttribute("client-ve-type");
L=Number(W);var A=!1;W=!1;var O=$t.get(m),c;if((c=O)&&!(c=O[TjM]!==G)&&(c=L)){var u;c=((u=$t.get(m))==null?void 0:u.clientVeType)===void 0}c&&(O[TjM]=G,A=W=O.isRenderer=!0);$t.has(m)&&($t.get(m).clientVeType=L);m.visualElement&&(W=!0);if(_.F("wiz_next_ld_fix_client_ve_spec")){var h;u=((h=_.Q(G==null?void 0:G.rendererContext,_.BL))==null?void 0:h.loggingDirectives)||(G==null?void 0:G.loggingDirectives)}else u=G==null?void 0:G.loggingDirectives;u&&u.clientVeSpec&&(h=m1o(_.UQ(),m),h=_.iXv(_.l1(),u,h||
void 0,K))&&(m.visualElement=h);!m.visualElement&&L&&A&&(m.veType=L,h=void 0,_.F("wiz_next_client_ve_parent_fix")&&(h=m1o(_.UQ(),m)),h=_.zg(_.l1(),m,h,K),m.visualElement=h);W&&(h=_.xS().resolve(yb),Ro(m,{data:G,observer:h,layer:K,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
Bjo=function(m,G){return(G==null?0:G.trackingParams)||(G==null?0:G.loggingDirectives)||_.Q(G==null?void 0:G.rendererContext,_.BL)||m.getAttribute("client-ve-type")?!0:!1};
GCG=function(m,G,K){m.componentType!==DM&&K instanceof HTMLElement&&G&&!_.F("cow_logging_in_component_wrapper")&&zXP(K,G,!0)};
LOo=function(){if(!KOJ){KOJ=!0;var m=_.F("enable_wiz_context_per_component")||!1;m=Object.assign({},{flushRenderEffectsDuringRender:!0,enableQueueEffectAndOnInitInitialRuns:_.F("enable_wiz_queue_effect_and_on_init_initial_runs"),enableContextPerComponent:m,enableContextBasedComponentStacks:m},{handleError:x9f,enableComponentStacksInErrorMessages:!1});Object.assign(Bg,m);WOG();D$d=E99;pHd=II9}};
WOG=function(){_.F("cow_logging_in_component_wrapper")?(PiF=function(m,G){G instanceof HTMLElement&&zXP(G,m,!0)},KaG=function(){}):(PiF=function(){},KaG=GCG)};
APG=function(m,G,K){G=G===void 0?{}:G;var W,L=(W=_.Q(m.commandMetadata,_.RQ))==null?void 0:W.url;W=G.form||{};!K||W.element||W.skipDefaultElement||(G.form=G.form||{},G.form.element=K);if(L&&L!=="/service_ajax")return{type:0,command:m,form:G.form};if(_.F("kevlar_service_command_check")){if(_.Dg(_.xS().resolve(_.Tv),m))return Object.assign({},{type:1,command:m},G)}else{var A;if((A=_.Q(m.commandMetadata,_.RQ))==null?0:A.apiUrl)return Object.assign({},{type:1,command:m},G)}return{type:2,command:m,form:G.form}};
wmd=function(m){if(m.form){var G=m.form,K=Object.assign({},G);G=G.element;K=(delete K.element,K);if(G)return[_.yQ(G,[m.command,K,m.commandController])]}return[]};
g_P=function(m){if(m.form){var G=m.form,K=Object.assign({},G);G=G.element;K=(delete K.element,K);G&&_.eD(G,[m.command],G,K)}};
cP9=function(m,G,K){var W=new OXG(m,G),L=new zn(m,G,K);m={"/youtubei/v1/browse":new lG(m,G,K),"/youtubei/v1/player":W,"/youtubei/v1/navigation/resolve_url":new BY,"/youtubei/v1/next":L,"/youtubei/v1/guide":new Ma(K),"/youtubei/v1/search":new Tn(m,G,K),"/youtubei/v1/reel/reel_item_watch":new mN(m,G,K),"/youtubei/v1/get_watch":new i5(W,L)};m["/youtubei/v1/account/account_menu"]=new Ge;m["/youtubei/v1/notification/get_notification_menu"]=new KY;return m};
LY=function(){var m=_.xS().resolve(_.WX);return Promise.resolve(Y0o(m,_.Ks.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
rPP=function(m){return m&&(m=_.yu(_.RLs(m)))?(new URLSearchParams(m)).get("service"):null};
g1=function(m,G){_.jA(_.AA(),function(){_.Yt("adl")});
_.xS().resolve(uD6)(G);m=m.root;m.loadData&&m.loadData(G);(G==null?0:G.response)?_.Sq(J6d(),"SUCCESS"):_.nc(new _.cw("Lifecycle: No response in data",_.IP("IS_SHELL_LOAD"),G?G.page:"NO_PAGE",G?G.endpoint:"NO_ENDPOINT"));m.polymerController.$["page-manager"].lazyPrepareCriticalPages((G==null?void 0:G.page)||"",G.endpoint);var K,W;((W=_.Q(G==null?void 0:(K=G.endpoint)==null?void 0:K.commandMetadata,_.RQ))==null?0:W.webPageType)&&_.$R().dispatch(_.w1(_.Q(G.endpoint.commandMetadata,_.RQ).webPageType))};
hEv=function(){var m,G;return _.Y(function(K){switch(K.nextAddress){case 1:m=window;if(!m.getDataPromise){K.jumpTo(2);break}_.IO(K,3);return K.yield(m.getDataPromise(),5);case 5:return K.return(K.yieldResult);case 3:return _.ye(K),K.yield(LY(),6);case 6:return K.return(K.yieldResult);case 2:if(m.getInitialData)return G=m.getInitialData(),m.getInitialData=void 0,K.return(G);throw Error("Kj`"+_.Ks.location.href);}})};
JPG=function(){_.qC("CSI_SERVICE_NAME","youtube");_.g9({loadType:"cold"});_.F("kevlar_log_lcp")&&pmP(function(m){_.Yt("lcp",m.value)})};
NhF=function(){var m=_.TF(document.location.href,"enable");m&&m.indexOf("scraper")>-1&&_.qC("ADD_SCRAPER_ATTRIBUTES",!0)};
aUG=function(m){var G=m.root;m=[D1s,t$9,_.Oa];_.F("web_feedback_endpoint_autolog_allowlist_killswitch")&&m.push(_.cX,FOs);QIv(function(K,W){return APG(K,W,G)},function(K){if(!K.command)return[];
var W;((W=K.form)==null?0:W.element)?K.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},K.form,{endpoint:K.command})})):G.handleNavigate(K);return[]},m);
_.xS().addProvider({provide:_.S1,useValue:_.xe.instance})};
n_f=function(){var m={},G={},K;for(K in o_P){var W=_.g(_.g_(o_P[K],void 0,"e17Ccb"));m[K]=W.next().value;G[K]=W.next().value}return[m,function(L){for(var A in L){var O=void 0;(O=G[A])==null||O(L[A])}}]};
_.$1M=function(m,G){var K=!1;K=K===void 0?!1:K;var W=_.Y2.getValueByKeys(m,"contents","twoColumnWatchNextResults","results","results","contents"),L=_.Y2.getValueByKeys(m,"contents","twoColumnWatchNextResults","playlist","playlist")||null;K&&(L=null);var A=K=null;if(L)K=_.Y2.getValueByKeys(L,"titleText"),A=_.Y2.unsafeClone(_.Y2.getValueByKeys(L,"longBylineText")),W="",A&&(W=_.bw(A)),A=_.nG(W);else if(W){W=_.g(W);for(var O=W.next();!O.done;O=W.next())O=O.value,O.videoPrimaryInfoRenderer&&(K=_.Y2.getValueByKeys.apply(_.Y2,
[O].concat(_.Bz(bXs)))),O.videoSecondaryInfoRenderer&&(A=_.Y2.getValueByKeys.apply(_.Y2,[O].concat(_.Bz(v_F))))}else _.V3(Error("Pj"));var c;m.currentVideoEndpoint?c=m.currentVideoEndpoint:_.V3(Error("Qj"));var u;G&&(u=_.Y2.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));m={miniplayerTitle:K,miniplayerSubtitle:A,watchEndpoint:c,playlistData:L};u&&(m.miniplayerRenderer=u);return m};
sIG=function(m){if(m)return _.A$(m)};
_.q09=function(){return{isFullscreen:function(){throw Error("Rj");},
toggleFullscreen:function(){throw Error("Sj");},
exitFullscreen:function(){throw Error("Tj");},
isAutonavEnabled:function(){throw Error("Uj");},
setAutonavEnabled:function(){throw Error("Vj");},
isAutoplaySetExplicitly:function(){throw Error("Wj");}}};
E_o=function(m){return m.videoDuration?m.numTaps>1&&m.tapDirection!==0?_.YJ(m.draggedTime/m.videoDuration,0,1):_.YJ((m.playedTime||0)/m.videoDuration,0,1):0};
HXG=function(m){return m.videoDuration?m.isDragging||m.numTaps>1&&m.tapDirection!==0?_.YJ(m.draggedTime/m.videoDuration,0,1):_.YJ((m.playedTime||0)/m.videoDuration,0,1):0};
jIf=function(m){var G,K,W;return _.Q(m==null?void 0:(G=m.markersMap)==null?void 0:(K=G.find(function(L){return L.key==="HEATSEEKER"}))==null?void 0:(W=K.value)==null?void 0:W.heatmap,IUd)};
kC6=function(m){var G,K;return(K=(G=jIf(m))==null?void 0:G.heatMarkersDecorations)!=null?K:[]};
Cbs=function(m){if(_.F("mweb_supported_chapters_killswitch"))return!0;var G;return!!(m==null?0:(G=m.markersMap)==null?0:G.find(function(K){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(K.key)}))};
_.V$f=function(m){var G=Object,K=G.assign,W;m={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(W=m==null?void 0:m.getPlayerState())!=null?W:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return K.call(G,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,lastTapTime:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},m,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ZXP=function(m){return function(G){var K=m(),W,L=(W=K.playerApi)==null?void 0:W.getPlayerState();G&&G!==K.playerState&&(G===1||G===2)&&K.setState({playerState:L})}};
Pbo=function(m){return function(G){var K=m(),W=K.playerApi;W&&(G==null?void 0:G.type)==="newdata"&&(d1G&&(clearTimeout(d1G),d1G=void 0),_.F("web_shorts_use_progress_state_for_gapless")?(G=W==null?void 0:W.getProgressState(G==null?void 0:G.playertype),G=G.seekableEnd-G.seekableStart):G=W==null?void 0:W.getDuration(G==null?void 0:G.playertype),K.setState({playedTime:0,videoDuration:G}))}};
yPf=function(m){return function(G){var K=m(),W=K.playerApi;if(W){var L=W.getPresentingPlayerType();_.F("web_shorts_use_progress_state_for_gapless")?(W=W.getProgressState(L),W=W.seekableEnd-W.seekableStart):W=W.getDuration(L);K.setState({playedTime:G,videoDuration:W})}}};
fU9=function(m){_.Km(112394,m,function(){return eEd},function(G){eEd=G})};
S0d=function(m,G){if(!m)return[];var K,W,L;m=((K=m.markersMap)==null?void 0:(W=K.find(function(A){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(A.key)}))==null?void 0:(L=W.value)==null?void 0:L.chapters)||[];
!x1o(m)||(G==null?0:G.ignoreStub)||(m=[Xms()].concat(_.Bz(m)));return m};
Xms=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
x1o=function(m){if(m.length===0)return!1;var G;return((G=_.Q(m[0],r1))==null?void 0:G.timeRangeStartMillis)!==0};
u5=function(m){return m?m.timeRangeStartMillis||0:0};
U1d=function(m,G){if(m.isDragging&&G)return m=REV(m,G),m===-1?Xms():S0d(G)[m]};
REV=function(m,G){return m.isDragging&&G?S0d(G,{ignoreStub:!0}).findIndex(function(K,W,L){K=zE9(m);return lUd(K,L,W).scrubberHovering}):-1};
zE9=function(m){return Object.assign({},m,{videoDuration:m.videoDuration*1E3,playedTime:m.playedTime*1E3,draggedTime:m.draggedTime*1E3})};
lUd=function(m,G,K){var W=u5(_.Q(G[K],r1));G=u5(_.Q(G[K+1],r1))||m.videoDuration;K=m.isDragging;var L;if(L=m.isDragging)L=m.draggedTime,L=L!==null&&L>=W&&L<G;var A=m.playedTime;return A!==null&&A>=W&&A<G?{videoPosition:"active",isScrubbing:K,scrubberHovering:L}:m.playedTime<W?{videoPosition:"pending",isScrubbing:K,scrubberHovering:L}:{videoPosition:"seen",isScrubbing:K,scrubberHovering:L}};
BhP=function(m,G){return m.videoPosition==="seen"||(G===void 0?0:G)>0};
M$J=function(m,G,K){G=m/G.storyboardInterval;var W=S0d(K);if(!W.length)return-G*72;K=0;W=_.g(W);for(var L=W.next();!L.done;L=W.next())if(u5(_.Q(L.value,r1))/1E3<m)K++;else break;return-(G*72)-K*56};
ThV=function(m){return m?m.width/m.columns:0};
mdo=function(m){return m.isHovering?m.hoveredTime:m.draggedTime};
is2=function(m,G){m=m.draggedTime*1E3;return m>=G.visibleTimeRangeStartMillis&&m<=G.visibleTimeRangeEndMillis};
_.G9o=function(m){if(m===void 0||Number.isNaN(m))return"--:--";var G=Math.abs(Math.floor(m)),K=Math.floor(G/86400),W=Math.floor(G%86400/3600),L=Math.floor(G%3600/60);G=Math.floor(G%60);var A="";K>0&&(A+=K+":",W<10&&(A+="0"));if(K>0||W>0)A+=W+":",L<10&&(A+="0");A+=L+":";G<10&&(A+="0");A+=G;return m>=0?A:"-"+A};
KvS=function(m,G){return function(){var K=mdo(m());var W=G();var L=m().playerApi;if(L&&L.getNumberOfStoryboardLevels()!==0){var A=L.getStoryboardFrameIndex(K,1);A!==-1?W=L.getStoryboardFrame(A,1):(K=L.getStoryboardFrameIndex(K,0),L=L.getStoryboardFrame(K,0),W&&L&&(L.height*=3,L.width*=3),W=L)}else W=null;if(!W)return null;G()&&(W.width=90*W.columns,W.height=160*W.rows);return W}};
_.hA=function(m){if(!m||m.getVideoData)return m};
WvK=function(){var m;return{playerApi:(m=_.yo())!=null?m:void 0}};
LvB=function(m){var G;_.Y(function(K){if(K.nextAddress==1)return K.yield(_.Pp(),2);if(G=K.yieldResult)G.unMute(!0),G.setVolume(m,!0);_.ey(K)})};
AV4=function(m,G){m&&(m.value=""+G,m.style.setProperty("--gradient-percent",G+"%"))};
wJS=function(m){var G;return(G=m==null?void 0:m.value)!=null?G:0};
gGK=function(){var m;_.Y(function(G){if(G.nextAddress==1)return G.yield(_.Pp(),2);m=G.yieldResult;if(!m)return G.return();m.isMuted()?m.unMute(!0):m.mute(!0);_.ey(G)})};
Osi=function(m){var G=_.xS().resolve(_.pY).getPlayerElement();G&&m&&(m===1?G.pause():G.play())};
cVK=function(m){return!!_.Q(m,_.JA)||!!_.Q(m,_.NP)};
Ydo=function(m){_.PH(m,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
rVo=function(m){_.PH(m,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
hGo=function(m){return _.oP(m.document.body,function(){return _.r(uPK,null)},"qh")};
pJ4=function(){var m;return(m=navigator.userActivation)==null?void 0:m.isActive};
JVo=function(){var m=window.performance.getEntriesByType("navigation");return m?m.map(function(G){return G.type}).includes("reload"):!1};
NdC=function(m,G){G=G===void 0?!1:G;var K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return G||!_.F("kevlar_shorts_seedless_retry_initial_load")||(K=window,W=!(!K.getDataPromise&&!K.getInitialData),W)?O.yield(hEv(),2):(setTimeout(NdC.bind(window,m,!0),1E3),O.return());if(O.nextAddress!=3)return L=O.yieldResult,O.yield(DdC(L),3);A=O.yieldResult;g1(m,A);_.ey(O)})};
DdC=function(m){var G;if((G=m.response)==null||!G.replacementEndpoint)return _.fJ(m);G=_.xS().resolve(_.WX);m=m.response;_.Q(m.replacementEndpoint,_.lw)&&m.sequenceContinuation&&(_.Q(m.replacementEndpoint,_.lw).sequenceParams=m.sequenceContinuation);return Db(G,m.replacementEndpoint,{},_.Ks.location.href,"shorts",function(){},function(){return!1})};
FvS=function(m){var G=_.xS().resolve(to2);m.playerResponse&&G.handleResponse(m.playerResponse);m.response&&G.handleResponse(m.response)};
QM0=function(m){var G=_.$R(),K,W=_.Q((K=m.response)==null?void 0:K.frameworkUpdates,aL),L;K=_.Q((L=m.playerResponse)==null?void 0:L.frameworkUpdates,aL);var A;m=_.Q((A=m.reelWatchSequenceResponse)==null?void 0:A.frameworkUpdates,aL);W&&_.UG(W,G);K&&_.UG(K,G);m&&_.UG(m,G)};
aF4=function(m){var G;_.F("enable_redirect_linking_for_desktop_web_client")&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&m.url&&(m.url=m.url.toString()+window.location.hash)};
bsl=function(m){var G=_.xS(),K=G.resolve(_.WX);G=G.resolve(_.oGo);m.endpoint&&(K=nGC(K,m.endpoint),K.content&&m.response&&_.tA(G,m.response,K.content),K.player&&m.playerResponse&&_.tA(G,m.playerResponse,K.player),K.reelSequence&&m.reelWatchSequenceResponse&&_.tA(G,m.reelWatchSequenceResponse,K.reelSequence))};
F0=function(m,G){_.F("web_enable_chunk_prediction")&&vG0(G);FvS(G);QM0(G);var K;(G==null?0:G.url)&&((K=window.location.hash)==null?0:K.includes("redirect_state"))&&(aF4(G),(K=rPP(G.url))&&_.dU(m.root,"yt-initialize-third-party",[K,G]));bsl(G);K=_.xS();var W=K.resolve($dk);G.playerResponse&&K.resolve(sMk).handleResponse(G.playerResponse);if(G.playerResponse){K=void 0;if(_.F("ab_v_vid_sig")&&G.endpoint){var L,A=(L=_.Q(G.endpoint,_.QQ))!=null?L:_.Q(G.endpoint,_.lw);A&&(K=A.videoId)}qdF(W,G.playerResponse,
K)}G.playerResponse&&kyo(G.playerResponse)&&_.F("web_enable_ab_rsp_cl")?e8d().then(function(){EGF(W,G.playerResponse);g1(m,G)}):g1(m,G)};
IFo=function(m){if(m=m.root.data){var G=_.xS().resolve(HsR);m.endpoint&&(m.response&&G.handleResponse(m.response,void 0,document.querySelector("ytd-app")),m.playerResponse&&G.handleResponse(m.playerResponse),m.reelWatchSequenceResponse&&G.handleResponse(m.reelWatchSequenceResponse))}};
vG0=function(m){m.response&&_.xS().resolve(jMR).handleResponse(m.response)};
k9i=function(m){var G,K,W,L,A,O;return _.Y(function(c){switch(c.nextAddress){case 1:G=window;if(!G.getDataPromise){c.jumpTo(2);break}_.IO(c,3);return c.yield(G.getDataPromise(),5);case 5:K=c.yieldResult;F0(m,K);_.IG(c,4);break;case 3:return _.ye(c),c.yield(LY(),6);case 6:W=c.yieldResult,_.F("web_enable_chunk_prediction")&&vG0(W),g1(m,W);case 4:return c.return();case 2:if(!_.F("sw_nav_preload_pbj")){c.jumpTo(7);break}G.fetchInitialData=function(){var u;return _.Y(function(h){if(h.nextAddress==1)return h.yield(LY(),
2);u=h.yieldResult;_.F("web_enable_chunk_prediction")&&vG0(u);g1(m,u);_.ey(h)})};
if(G.getInitialData){G.loadInitialData=function(u){F0(m,u)};
L=G.getInitialData();G.getInitialData=void 0;F0(m,L);c.jumpTo(8);break}G.fetchInitialData=void 0;return c.yield(LY(),9);case 9:A=c.yieldResult,_.F("web_enable_chunk_prediction")&&vG0(A),g1(m,A);case 8:return c.return();case 7:G.getInitialData?(O=G.getInitialData(),G.getInitialData=void 0,F0(m,O)):G.loadInitialData=function(u){F0(m,u)},_.ey(c)}})};
VoC=function(){var m=new C60;_.Vnd(m);m.registerInitializationCallback(function(){o1f(void 0,void 0,void 0,{batchingStrategy:"BATCH"})});
m.registerCallback("error",function(G,K,W){_.j1(Error("$j`"+K+"`"+W))})};
ZsK=typeof Object.create=="function"?Object.create:function(m){var G=function(){};
G.prototype=m;return new G};
ddC=typeof Object.defineProperties=="function"?Object.defineProperty:function(m,G,K){if(m==Array.prototype||m==Object.prototype)return m;m[G]=K.value;return m};
P6C=function(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var G=0;G<m.length;++G){var K=m[G];if(K&&K.Math==Math)return K}throw Error("a");};
_.e_=P6C(this);yVl="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.e_.BigInt64Array&&(yVl.push("BigInt64"),yVl.push("BigUint64"));var fFG=function(m,G){if(G)for(var K=0;K<yVl.length;K++)eGS(yVl[K]+"Array.prototype."+m,G)},QP=function(m,G){G&&eGS(m,G)},eGS=function(m,G){var K=_.e_;
m=m.split(".");for(var W=0;W<m.length-1;W++){var L=m[W];if(!(L in K))return;K=K[L]}m=m[m.length-1];W=K[m];G=G(W);G!=W&&G!=null&&ddC(K,m,{configurable:!0,writable:!0,value:G})},xdR=function(){function m(){function K(){}
new K;Reflect.construct(K,[],function(){});
return new K instanceof K}
if(typeof Reflect!="undefined"&&Reflect.construct){if(m())return Reflect.construct;var G=Reflect.construct;return function(K,W,L){K=G(K,W);L&&Reflect.setPrototypeOf(K,L.prototype);return K}}return function(K,W,L){L===void 0&&(L=K);
L=ZsK(L.prototype||Object.prototype);return Function.prototype.apply.call(K,L,W)||L}}(),XJi;
if(typeof Object.setPrototypeOf=="function")XJi=Object.setPrototypeOf;else{var SdK;a:{var RG0={a:!0},UdF={};try{UdF.__proto__=RG0;SdK=UdF.a;break a}catch(m){}SdK=!1}XJi=SdK?function(m,G){m.__proto__=G;if(m.__proto__!==G)throw new TypeError("b`"+m);return m}:null}aB=XJi;
_.n=function(m,G){m.prototype=ZsK(G.prototype);m.prototype.constructor=m;if(aB)aB(m,G);else for(var K in G)if(K!="prototype")if(Object.defineProperties){var W=Object.getOwnPropertyDescriptor(G,K);W&&Object.defineProperty(m,K,W)}else m[K]=G[K];m.superClass_=G.prototype};
zG2=function(m){var G=0;return function(){return G<m.length?{done:!1,value:m[G++]}:{done:!0}}};
_.g=function(m){var G=typeof Symbol!="undefined"&&Symbol.iterator&&m[Symbol.iterator];if(G)return G.call(m);if(typeof m.length=="number")return{next:zG2(m)};throw Error("c`"+String(m));};
Pg=function(m){for(var G,K=[];!(G=m.next()).done;)K.push(G.value);return K};
_.Bz=function(m){return m instanceof Array?m:Pg(_.g(m))};
_.nY=function(m){return oB(m,m)};
oB=function(m,G){m.raw=G;Object.freeze&&(Object.freeze(m),Object.freeze(G));return m};
b5=function(m,G){return Object.prototype.hasOwnProperty.call(m,G)};
lFX=function(m){if(m==null)throw new TypeError("d");return Object(m)};
Bdl=typeof Object.assign=="function"?Object.assign:function(m,G){m=lFX(m);for(var K=1;K<arguments.length;K++){var W=arguments[K];if(W)for(var L in W)b5(W,L)&&(m[L]=W[L])}return m};
QP("Object.assign",function(m){return m||Bdl});
var vX=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},MoB=function(m){if(m.isRunning_)throw new TypeError("f");
m.isRunning_=!0};
vX.prototype.JSC$9019_next_=function(m){this.yieldResult=m};
var TdX=function(m,G){m.abruptCompletion_={exception:G,isException:!0};m.nextAddress=m.catchAddress_||m.finallyAddress_};
vX.prototype.return=function(m){this.abruptCompletion_={return:m};this.nextAddress=this.finallyAddress_};
vX.prototype.yield=function(m,G){this.nextAddress=G;return{value:m}};
vX.prototype.jumpTo=function(m){this.nextAddress=m};
_.ey=function(m){m.nextAddress=0};
_.IO=function(m,G,K){m.catchAddress_=G;K!=void 0&&(m.finallyAddress_=K)};
_.Ve=function(m,G){m.catchAddress_=0;m.finallyAddress_=G||0};
_.IG=function(m,G,K){m.nextAddress=G;m.catchAddress_=K||0};
_.ye=function(m,G){m.catchAddress_=G||0;G=m.abruptCompletion_.exception;m.abruptCompletion_=null;return G};
_.CZ=function(m,G,K,W){W?m.finallyContexts_[W]=m.abruptCompletion_:m.finallyContexts_=[m.abruptCompletion_];m.catchAddress_=G||0;m.finallyAddress_=K||0};
_.ZO=function(m,G,K){K=m.finallyContexts_.splice(K||0)[0];(K=m.abruptCompletion_=m.abruptCompletion_||K)?K.isException?m.nextAddress=m.catchAddress_||m.finallyAddress_:K.jumpTo!=void 0&&m.finallyAddress_<K.jumpTo?(m.nextAddress=K.jumpTo,m.abruptCompletion_=null):m.nextAddress=m.finallyAddress_:m.nextAddress=G};
mG2=function(m){this.JSC$9024_context_=new vX;this.program_=m};
G4C=function(m,G){MoB(m.JSC$9024_context_);var K=m.JSC$9024_context_.yieldAllIterator_;if(K)return ili(m,"return"in K?K["return"]:function(W){return{value:W,done:!0}},G,m.JSC$9024_context_.return);
m.JSC$9024_context_.return(G);return $J(m)};
ili=function(m,G,K,W){try{var L=G.call(m.JSC$9024_context_.yieldAllIterator_,K);if(!(L instanceof Object))throw new TypeError("e`"+L);if(!L.done)return m.JSC$9024_context_.isRunning_=!1,L;var A=L.value}catch(O){return m.JSC$9024_context_.yieldAllIterator_=null,TdX(m.JSC$9024_context_,O),$J(m)}m.JSC$9024_context_.yieldAllIterator_=null;W.call(m.JSC$9024_context_,A);return $J(m)};
$J=function(m){for(;m.JSC$9024_context_.nextAddress;)try{var G=m.program_(m.JSC$9024_context_);if(G)return m.JSC$9024_context_.isRunning_=!1,{value:G.value,done:!1}}catch(K){m.JSC$9024_context_.yieldResult=void 0,TdX(m.JSC$9024_context_,K)}m.JSC$9024_context_.isRunning_=!1;if(m.JSC$9024_context_.abruptCompletion_){G=m.JSC$9024_context_.abruptCompletion_;m.JSC$9024_context_.abruptCompletion_=null;if(G.isException)throw G.exception;return{value:G.return,done:!0}}return{value:void 0,done:!0}};
KCP=function(m){this.next=function(G){MoB(m.JSC$9024_context_);m.JSC$9024_context_.yieldAllIterator_?G=ili(m,m.JSC$9024_context_.yieldAllIterator_.next,G,m.JSC$9024_context_.JSC$9019_next_):(m.JSC$9024_context_.JSC$9019_next_(G),G=$J(m));return G};
this.throw=function(G){MoB(m.JSC$9024_context_);m.JSC$9024_context_.yieldAllIterator_?G=ili(m,m.JSC$9024_context_.yieldAllIterator_["throw"],G,m.JSC$9024_context_.JSC$9019_next_):(TdX(m.JSC$9024_context_,G),G=$J(m));return G};
this.return=function(G){return G4C(m,G)};
this[Symbol.iterator]=function(){return this}};
_.fm=function(m,G){G=new KCP(new mG2(G));aB&&m.prototype&&aB(G,m.prototype);return G};
WCP=function(m){function G(W){return m.next(W)}
function K(W){return m.throw(W)}
return new Promise(function(W,L){function A(O){O.done?W(O.value):Promise.resolve(O.value).then(G,K).then(A,L)}
A(m.next())})};
_.Y=function(m){return WCP(new KCP(new mG2(m)))};
QP("Symbol",function(m){if(m)return m;var G=function(A,O){this.$jscomp$symbol$id_=A;ddC(this,"description",{configurable:!0,writable:!0,value:O})};
G.prototype.toString=function(){return this.$jscomp$symbol$id_};
var K="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",W=0,L=function(A){if(this instanceof L)throw new TypeError("g");return new G(K+(A||"")+"_"+W++,A)};
return L});
QP("Symbol.iterator",function(m){if(m)return m;m=Symbol("h");ddC(Array.prototype,m,{configurable:!0,writable:!0,value:function(){return LCo(zG2(this))}});
return m});
QP("Symbol.asyncIterator",function(m){return m?m:Symbol("i")});
LCo=function(m){m={next:m};m[Symbol.iterator]=function(){return this};
return m};
_.kr=function(m){var G=m[Symbol.asyncIterator];return G!==void 0?G.call(m):new AiK(_.g(m))};
AiK=function(m){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return m};
this.next=function(G){return Promise.resolve(m.next(G))};
this["throw"]=function(G){return new Promise(function(K,W){var L=m["throw"];L!==void 0?K(L.call(m,G)):(K=m["return"],K!==void 0&&K.call(m),W(new TypeError("j")))})};
m["return"]!==void 0&&(this["return"]=function(G){return Promise.resolve(m["return"](G))})};
_.mb=function(){for(var m=Number(this),G=[],K=m;K<arguments.length;K++)G[K-m]=arguments[K];return G};
_.x1=function(m){return m};
QP("globalThis",function(m){return m||_.e_});
QP("Reflect",function(m){return m?m:{}});
QP("Reflect.construct",function(){return xdR});
QP("Reflect.setPrototypeOf",function(m){return m?m:aB?function(G,K){try{return aB(G,K),!0}catch(W){return!1}}:null});
QP("Promise",function(m){function G(){this.batch_=null}
function K(O){return O instanceof L?O:new L(function(c){c(O)})}
if(m&&(typeof _.e_.PromiseRejectionEvent!=="undefined"||!_.e_.Promise||_.e_.Promise.toString().indexOf("[native code]")===-1))return m;G.prototype.asyncExecute=function(O){if(this.batch_==null){this.batch_=[];var c=this;this.asyncExecuteFunction(function(){c.executeBatch_()})}this.batch_.push(O)};
var W=_.e_.setTimeout;G.prototype.asyncExecuteFunction=function(O){W(O,0)};
G.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var O=this.batch_;this.batch_=[];for(var c=0;c<O.length;++c){var u=O[c];O[c]=null;try{u()}catch(h){this.asyncThrow_(h)}}}this.batch_=null};
G.prototype.asyncThrow_=function(O){this.asyncExecuteFunction(function(){throw O;})};
var L=function(O){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var c=this.createResolveAndReject_();try{O(c.resolve,c.reject)}catch(u){c.reject(u)}};
L.prototype.createResolveAndReject_=function(){function O(h){return function(J){u||(u=!0,h.call(c,J))}}
var c=this,u=!1;return{resolve:O(this.resolveTo_),reject:O(this.JSC$9056_reject_)}};
L.prototype.resolveTo_=function(O){if(O===this)this.JSC$9056_reject_(new TypeError("n"));else if(O instanceof L)this.settleSameAsPromise_(O);else{a:switch(typeof O){case "object":var c=O!=null;break a;case "function":c=!0;break a;default:c=!1}c?this.resolveToNonPromiseObj_(O):this.fulfill_(O)}};
L.prototype.resolveToNonPromiseObj_=function(O){var c=void 0;try{c=O.then}catch(u){this.JSC$9056_reject_(u);return}typeof c=="function"?this.settleSameAsThenable_(c,O):this.fulfill_(O)};
L.prototype.JSC$9056_reject_=function(O){this.settle_(2,O)};
L.prototype.fulfill_=function(O){this.settle_(1,O)};
L.prototype.settle_=function(O,c){if(this.state_!=0)throw Error("o`"+O+"`"+c+"`"+this.state_);this.state_=O;this.result_=c;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
L.prototype.scheduleUnhandledRejectionCheck_=function(){var O=this;W(function(){if(O.notifyUnhandledRejection_()){var c=_.e_.console;typeof c!=="undefined"&&c.error(O.result_)}},1)};
L.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var O=_.e_.CustomEvent,c=_.e_.Event,u=_.e_.dispatchEvent;if(typeof u==="undefined")return!0;typeof O==="function"?O=new O("unhandledrejection",{cancelable:!0}):typeof c==="function"?O=new c("unhandledrejection",{cancelable:!0}):(O=_.e_.document.createEvent("CustomEvent"),O.initCustomEvent("unhandledrejection",!1,!0,O));O.promise=this;O.reason=this.result_;return u(O)};
L.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var O=0;O<this.onSettledCallbacks_.length;++O)A.asyncExecute(this.onSettledCallbacks_[O]);this.onSettledCallbacks_=null}};
var A=new G;L.prototype.settleSameAsPromise_=function(O){var c=this.createResolveAndReject_();O.callWhenSettled_(c.resolve,c.reject)};
L.prototype.settleSameAsThenable_=function(O,c){var u=this.createResolveAndReject_();try{O.call(c,u.resolve,u.reject)}catch(h){u.reject(h)}};
L.prototype.then=function(O,c){function u(D,t){return typeof D=="function"?function(a){try{h(D(a))}catch(v){J(v)}}:t}
var h,J,N=new L(function(D,t){h=D;J=t});
this.callWhenSettled_(u(O,h),u(c,J));return N};
L.prototype.catch=function(O){return this.then(void 0,O)};
L.prototype.callWhenSettled_=function(O,c){function u(){switch(h.state_){case 1:O(h.result_);break;case 2:c(h.result_);break;default:throw Error("p`"+h.state_);}}
var h=this;this.onSettledCallbacks_==null?A.asyncExecute(u):this.onSettledCallbacks_.push(u);this.isRejectionHandled_=!0};
L.resolve=K;L.reject=function(O){return new L(function(c,u){u(O)})};
L.race=function(O){return new L(function(c,u){for(var h=_.g(O),J=h.next();!J.done;J=h.next())K(J.value).callWhenSettled_(c,u)})};
L.all=function(O){var c=_.g(O),u=c.next();return u.done?K([]):new L(function(h,J){function N(a){return function(v){D[a]=v;t--;t==0&&h(D)}}
var D=[],t=0;do D.push(void 0),t++,K(u.value).callWhenSettled_(N(D.length-1),J),u=c.next();while(!u.done)})};
return L});
var sa=function(m,G,K){if(m==null)throw new TypeError("q`"+K);if(G instanceof RegExp)throw new TypeError("r`"+K);return m+""};
QP("String.prototype.startsWith",function(m){return m?m:function(G,K){var W=sa(this,G,"startsWith"),L=W.length,A=G.length;K=Math.max(0,Math.min(K|0,W.length));for(var O=0;O<A&&K<L;)if(W[K++]!=G[O++])return!1;return O>=A}});
QP("Object.setPrototypeOf",function(m){return m||aB});
QP("Symbol.dispose",function(m){return m?m:Symbol("s")});
QP("SuppressedError",function(m){function G(K,W,L){if(!(this instanceof G))return new G(K,W,L);L=Error(L);"stack"in L&&(this.stack=L.stack);this.message=L.message;this.error=K;this.suppressed=W}
if(m)return m;_.n(G,Error);G.prototype.name="SuppressedError";return G});
QP("Array.from",function(m){return m?m:function(G,K,W){K=K!=null?K:function(c){return c};
var L=[],A=typeof Symbol!="undefined"&&Symbol.iterator&&G[Symbol.iterator];if(typeof A=="function"){G=A.call(G);for(var O=0;!(A=G.next()).done;)L.push(K.call(W,A.value,O++))}else for(A=G.length,O=0;O<A;O++)L.push(K.call(W,G[O],O));return L}});
var w2k=function(m,G,K){m instanceof String&&(m=String(m));for(var W=m.length,L=0;L<W;L++){var A=m[L];if(G.call(K,A,L,m))return{i:L,v:A}}return{i:-1,v:void 0}};
QP("Array.prototype.find",function(m){return m?m:function(G,K){return w2k(this,G,K).v}});
QP("WeakMap",function(m){function G(){}
function K(u){var h=typeof u;return h==="object"&&u!==null||h==="function"}
function W(u){if(!b5(u,A)){var h=new G;ddC(u,A,{value:h})}}
function L(u){var h=Object[u];h&&(Object[u]=function(J){if(J instanceof G)return J;Object.isExtensible(J)&&W(J);return h(J)})}
if(function(){if(!m||!Object.seal)return!1;try{var u=Object.seal({}),h=Object.seal({}),J=new m([[u,2],[h,3]]);if(J.get(u)!=2||J.get(h)!=3)return!1;J.delete(u);J.set(h,4);return!J.has(u)&&J.get(h)==4}catch(N){return!1}}())return m;
var A="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var O=0,c=function(u){this.JSC$9064_id_=(O+=Math.random()+1).toString();if(u){u=_.g(u);for(var h;!(h=u.next()).done;)h=h.value,this.set(h[0],h[1])}};
c.prototype.set=function(u,h){if(!K(u))throw Error("t");W(u);if(!b5(u,A))throw Error("u`"+u);u[A][this.JSC$9064_id_]=h;return this};
c.prototype.get=function(u){return K(u)&&b5(u,A)?u[A][this.JSC$9064_id_]:void 0};
c.prototype.has=function(u){return K(u)&&b5(u,A)&&b5(u[A],this.JSC$9064_id_)};
c.prototype.delete=function(u){return K(u)&&b5(u,A)&&b5(u[A],this.JSC$9064_id_)?delete u[A][this.JSC$9064_id_]:!1};
return c});
QP("Map",function(m){if(function(){if(!m||typeof m!="function"||!m.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),u=new m(_.g([[c,"s"]]));if(u.get(c)!="s"||u.size!=1||u.get({x:4})||u.set({x:4},"t")!=u||u.size!=2)return!1;var h=u.entries(),J=h.next();if(J.done||J.value[0]!=c||J.value[1]!="s")return!1;J=h.next();return J.done||J.value[0].x!=4||J.value[1]!="t"||!h.next().done?!1:!0}catch(N){return!1}}())return m;
var G=new WeakMap,K=function(c){this[0]={};this[1]=A();this.size=0;if(c){c=_.g(c);for(var u;!(u=c.next()).done;)u=u.value,this.set(u[0],u[1])}};
K.prototype.set=function(c,u){c=c===0?0:c;var h=W(this,c);h.list||(h.list=this[0][h.id]=[]);h.entry?h.entry.value=u:(h.entry={next:this[1],previous:this[1].previous,head:this[1],key:c,value:u},h.list.push(h.entry),this[1].previous.next=h.entry,this[1].previous=h.entry,this.size++);return this};
K.prototype.delete=function(c){c=W(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this[0][c.id],c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};
K.prototype.clear=function(){this[0]={};this[1]=this[1].previous=A();this.size=0};
K.prototype.has=function(c){return!!W(this,c).entry};
K.prototype.get=function(c){return(c=W(this,c).entry)&&c.value};
K.prototype.entries=function(){return L(this,function(c){return[c.key,c.value]})};
K.prototype.keys=function(){return L(this,function(c){return c.key})};
K.prototype.values=function(){return L(this,function(c){return c.value})};
K.prototype.forEach=function(c,u){for(var h=this.entries(),J;!(J=h.next()).done;)J=J.value,c.call(u,J[1],J[0],this)};
K.prototype[Symbol.iterator]=K.prototype.entries;var W=function(c,u){var h=u&&typeof u;h=="object"||h=="function"?G.has(u)?h=G.get(u):(h=""+ ++O,G.set(u,h)):h="p_"+u;var J=c[0][h];if(J&&b5(c[0],h))for(c=0;c<J.length;c++){var N=J[c];if(u!==u&&N.key!==N.key||u===N.key)return{id:h,list:J,index:c,entry:N}}return{id:h,list:J,index:-1,entry:void 0}},L=function(c,u){var h=c[1];
return LCo(function(){if(h){for(;h.head!=c[1];)h=h.previous;for(;h.next!=h.head;)return h=h.next,{done:!1,value:u(h)};h=null}return{done:!0,value:void 0}})},A=function(){var c={};
return c.previous=c.next=c.head=c},O=0;
return K});
QP("Set",function(m){if(function(){if(!m||typeof m!="function"||!m.prototype.entries||typeof Object.seal!="function")return!1;try{var K=Object.seal({x:4}),W=new m(_.g([K]));if(!W.has(K)||W.size!=1||W.add(K)!=W||W.size!=1||W.add({x:4})!=W||W.size!=2)return!1;var L=W.entries(),A=L.next();if(A.done||A.value[0]!=K||A.value[1]!=K)return!1;A=L.next();return A.done||A.value[0]==K||A.value[0].x!=4||A.value[1]!=A.value[0]?!1:L.next().done}catch(O){return!1}}())return m;
var G=function(K){this.JSC$9078_map_=new Map;if(K){K=_.g(K);for(var W;!(W=K.next()).done;)this.add(W.value)}this.size=this.JSC$9078_map_.size};
G.prototype.add=function(K){K=K===0?0:K;this.JSC$9078_map_.set(K,K);this.size=this.JSC$9078_map_.size;return this};
G.prototype.delete=function(K){K=this.JSC$9078_map_.delete(K);this.size=this.JSC$9078_map_.size;return K};
G.prototype.clear=function(){this.JSC$9078_map_.clear();this.size=0};
G.prototype.has=function(K){return this.JSC$9078_map_.has(K)};
G.prototype.entries=function(){return this.JSC$9078_map_.entries()};
G.prototype.values=function(){return this.JSC$9078_map_.values()};
G.prototype.keys=G.prototype.values;G.prototype[Symbol.iterator]=G.prototype.values;G.prototype.forEach=function(K,W){var L=this;this.JSC$9078_map_.forEach(function(A){return K.call(W,A,A,L)})};
return G});
QP("Math.log2",function(m){return m?m:function(G){return Math.log(G)/Math.LN2}});
QP("Object.values",function(m){return m?m:function(G){var K=[],W;for(W in G)b5(G,W)&&K.push(G[W]);return K}});
QP("Object.is",function(m){return m?m:function(G,K){return G===K?G!==0||1/G===1/K:G!==G&&K!==K}});
QP("Array.prototype.includes",function(m){return m?m:function(G,K){var W=this;W instanceof String&&(W=String(W));var L=W.length;K=K||0;for(K<0&&(K=Math.max(K+L,0));K<L;K++){var A=W[K];if(A===G||Object.is(A,G))return!0}return!1}});
QP("String.prototype.includes",function(m){return m?m:function(G,K){return sa(this,G,"includes").indexOf(G,K||0)!==-1}});
QP("Object.entries",function(m){return m?m:function(G){var K=[],W;for(W in G)b5(G,W)&&K.push([W,G[W]]);return K}});
QP("Number.isFinite",function(m){return m?m:function(G){return typeof G!=="number"?!1:!isNaN(G)&&G!==Infinity&&G!==-Infinity}});
QP("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
QP("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
QP("Number.isInteger",function(m){return m?m:function(G){return Number.isFinite(G)?G===Math.floor(G):!1}});
QP("Number.isSafeInteger",function(m){return m?m:function(G){return Number.isInteger(G)&&Math.abs(G)<=Number.MAX_SAFE_INTEGER}});
QP("String.prototype.endsWith",function(m){return m?m:function(G,K){var W=sa(this,G,"endsWith");K===void 0&&(K=W.length);K=Math.max(0,Math.min(K|0,W.length));for(var L=G.length;L>0&&K>0;)if(W[--K]!=G[--L])return!1;return L<=0}});
var gkB=function(m,G){m instanceof String&&(m+="");var K=0,W=!1,L={next:function(){if(!W&&K<m.length){var A=K++;return{value:G(A,m[A]),done:!1}}W=!0;return{done:!0,value:void 0}}};
L[Symbol.iterator]=function(){return L};
return L};
QP("Array.prototype.entries",function(m){return m?m:function(){return gkB(this,function(G,K){return[G,K]})}});
QP("Math.trunc",function(m){return m?m:function(G){G=Number(G);if(isNaN(G)||G===Infinity||G===-Infinity||G===0)return G;var K=Math.floor(Math.abs(G));return G<0?-K:K}});
QP("Number.isNaN",function(m){return m?m:function(G){return typeof G==="number"&&isNaN(G)}});
QP("Array.prototype.keys",function(m){return m?m:function(){return gkB(this,function(G){return G})}});
QP("Array.prototype.values",function(m){return m?m:function(){return gkB(this,function(G,K){return K})}});
QP("Array.prototype.fill",function(m){return m?m:function(G,K,W){var L=this.length||0;K<0&&(K=Math.max(0,L+K));if(W==null||W>L)W=L;W=Number(W);W<0&&(W=Math.max(0,L+W));for(K=Number(K||0);K<W;K++)this[K]=G;return this}});
fFG("fill",function(m){return m?m:Array.prototype.fill});
QP("Object.fromEntries",function(m){return m?m:function(G){var K={};if(!(Symbol.iterator in G))throw new TypeError("v`"+G);G=G[Symbol.iterator].call(G);for(var W=G.next();!W.done;W=G.next()){W=W.value;if(Object(W)!==W)throw new TypeError("w");K[W[0]]=W[1]}return K}});
QP("String.prototype.replaceAll",function(m){return m?m:function(G,K){if(G instanceof RegExp&&!G.global)throw new TypeError("x");return G instanceof RegExp?this.replace(G,K):this.replace(new RegExp(String(G).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),K)}});
QP("Object.getOwnPropertySymbols",function(m){return m?m:function(){return[]}});
QP("String.prototype.repeat",function(m){return m?m:function(G){var K=sa(this,null,"repeat");if(G<0||G>1342177279)throw new RangeError("y");G|=0;for(var W="";G;)if(G&1&&(W+=K),G>>>=1)K+=K;return W}});
QP("Array.prototype.findIndex",function(m){return m?m:function(G,K){return w2k(this,G,K).i}});
QP("Array.prototype.flatMap",function(m){return m?m:function(G,K){var W=[];Array.prototype.forEach.call(this,function(L,A){L=G.call(K,L,A,this);Array.isArray(L)?W.push.apply(W,L):W.push(L)});
return W}});
QP("String.prototype.codePointAt",function(m){return m?m:function(G){var K=sa(this,null,"codePointAt"),W=K.length;G=Number(G)||0;if(G>=0&&G<W){G|=0;var L=K.charCodeAt(G);if(L<55296||L>56319||G+1===W)return L;G=K.charCodeAt(G+1);return G<56320||G>57343?L:(L-55296)*1024+G+9216}}});
QP("String.fromCodePoint",function(m){return m?m:function(G){for(var K="",W=0;W<arguments.length;W++){var L=Number(arguments[W]);if(L<0||L>1114111||L!==Math.floor(L))throw new RangeError("z`"+L);L<=65535?K+=String.fromCharCode(L):(L-=65536,K+=String.fromCharCode(L>>>10&1023|55296),K+=String.fromCharCode(L&1023|56320))}return K}});
QP("String.prototype.trimLeft",function(m){function G(){return this.replace(/^[\s\xa0]+/,"")}
return m||G});
QP("String.prototype.trimStart",function(m){return m||String.prototype.trimLeft});
QP("String.prototype.padStart",function(m){return m?m:function(G,K){var W=sa(this,null,"padStart");G-=W.length;K=K!==void 0?String(K):" ";return(G>0&&K?K.repeat(Math.ceil(G/K.length)).substring(0,G):"")+W}});
QP("Promise.prototype.finally",function(m){return m?m:function(G){return this.then(function(K){return Promise.resolve(G()).then(function(){return K})},function(K){return Promise.resolve(G()).then(function(){throw K;
})})}});
QP("Math.imul",function(m){return m?m:function(G,K){G=Number(G);K=Number(K);var W=G&65535,L=K&65535;return W*L+((G>>>16&65535)*L+W*(K>>>16&65535)<<16>>>0)|0}});
QP("Object.hasOwn",function(m){return m?m:function(G,K){return Object.prototype.hasOwnProperty.call(G,K)}});
var OlB=function(m){m=Math.trunc(m)||0;m<0&&(m+=this.length);if(!(m<0||m>=this.length))return this[m]};
QP("Array.prototype.at",function(m){return m?m:OlB});
fFG("at",function(m){return m?m:OlB});
QP("String.prototype.at",function(m){return m?m:OlB});
QP("Math.sign",function(m){return m?m:function(G){G=Number(G);return G===0||isNaN(G)?G:G>0?1:-1}});
QP("Array.prototype.flat",function(m){return m?m:function(G){G=G===void 0?1:G;var K=[];Array.prototype.forEach.call(this,function(W){Array.isArray(W)&&G>0?(W=Array.prototype.flat.call(W,G-1),K.push.apply(K,W)):K.push(W)});
return K}});
QP("String.raw",function(m){return m?m:function(G,K){G=lFX(G);for(var W=G.raw,L=W.length,A="",O=0;O<L;++O)A+=W[O],O+1<L&&O+1<arguments.length&&(A+=String(arguments[O+1]));return A}});
QP("WeakSet",function(m){if(function(){if(!m||!Object.seal)return!1;try{var K=Object.seal({}),W=Object.seal({}),L=new m([K]);if(!L.has(K)||L.has(W))return!1;L.delete(K);L.add(W);return!L.has(K)&&L.has(W)}catch(A){return!1}}())return m;
var G=function(K){this.JSC$9093_map_=new WeakMap;if(K){K=_.g(K);for(var W;!(W=K.next()).done;)this.add(W.value)}};
G.prototype.add=function(K){this.JSC$9093_map_.set(K,!0);return this};
G.prototype.has=function(K){return this.JSC$9093_map_.has(K)};
G.prototype.delete=function(K){return this.JSC$9093_map_.delete(K)};
return G});
QP("Reflect.ownKeys",function(m){return m?m:function(G){var K=[],W=Object.getOwnPropertyNames(G);G=Object.getOwnPropertySymbols(G);for(var L=0;L<W.length;L++)(W[L].substring(0,14)=="jscomp_symbol_"?G:K).push(W[L]);return K.concat(G)}});
QP("Object.getOwnPropertyDescriptors",function(m){return m?m:function(G){for(var K={},W=Reflect.ownKeys(G),L=0;L<W.length;L++)K[W[L]]=Object.getOwnPropertyDescriptor(G,W[L]);return K}});
QP("Promise.allSettled",function(m){function G(W){return{status:"fulfilled",value:W}}
function K(W){return{status:"rejected",reason:W}}
return m?m:function(W){var L=this;W=Array.from(W,function(A){return L.resolve(A).then(G,K)});
return L.all(W)}});
QP("Number.parseInt",function(m){return m||parseInt});
var ci0=function(m,G,K){m instanceof String&&(m=String(m));for(var W=m.length-1;W>=0;W--){var L=m[W];if(G.call(K,L,W,m))return{i:W,v:L}}return{i:-1,v:void 0}};
QP("Array.prototype.findLastIndex",function(m){return m?m:function(G,K){return ci0(this,G,K).i}});
fFG("findLastIndex",function(m){return m?m:function(G,K){return ci0(this,G,K).i}});
_._DumpException=window._DumpException||function(m){throw m;};
window._DumpException=_._DumpException;var YoF=window.ytcsi;YoF&&typeof YoF.tick==="function"&&YoF.tick("rses_dpj");var ri4,qP,Ea,HX,uRK,hBC,p2X,Ji2,Vi,NKS;ri4=ri4||{};_.Ks=this||self;_.yj=function(m,G,K){m=m.split(".");K=K||_.Ks;for(var W;m.length&&(W=m.shift());)m.length||G===void 0?K[W]&&K[W]!==Object.prototype[W]?K=K[W]:K=K[W]={}:K[W]=G};
qP=function(m,G){var K=_.Cn("WIZ_global_data.oxN3nb");m=K&&K[m];return m!=null?m:G};
Ea=_.Ks._F_toggles_default_kevlar_base||[];HX=function(){};
HX.get=function(){return null};
_.Rm=null;_.Cn=function(m,G){m=m.split(".");G=G||_.Ks;for(var K=0;K<m.length;K++)if(G=G[m[K]],G==null)return null;return G};
_.IB=function(m){m.instance_=void 0;m.getInstance=function(){return m.instance_?m.instance_:m.instance_=new m}};
_.LP=function(m){var G=typeof m;return G!="object"?G:m?Array.isArray(m)?"array":G:"null"};
_.XP=function(m){var G=_.LP(m);return G=="array"||G=="object"&&typeof m.length=="number"};
_.Ud=function(m){var G=typeof m;return G=="object"&&m!=null||G=="function"};
_.z9=function(m){return Object.prototype.hasOwnProperty.call(m,uRK)&&m[uRK]||(m[uRK]=++hBC)};
uRK="closure_uid_"+(Math.random()*1E9>>>0);hBC=0;p2X=function(m,G,K){return m.call.apply(m.bind,arguments)};
Ji2=function(m,G,K){if(!m)throw Error();if(arguments.length>2){var W=Array.prototype.slice.call(arguments,2);return function(){var L=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(L,W);return m.apply(G,L)}}return function(){return m.apply(G,arguments)}};
_.AO=function(m,G,K){_.AO=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?p2X:Ji2;return _.AO.apply(null,arguments)};
_.BH=function(m,G){var K=Array.prototype.slice.call(arguments,1);return function(){var W=K.slice();W.push.apply(W,arguments);return m.apply(this,W)}};
_.jI=function(){return Date.now()};
Vi=function(m){return m};
_.kJ=function(m,G){function K(){}
K.prototype=G.prototype;m.superClass_=G.prototype;m.prototype=new K;m.prototype.constructor=m;m.base=function(W,L,A){for(var O=Array(arguments.length-2),c=2;c<arguments.length;c++)O[c-2]=arguments[c];return G.prototype[L].apply(W,O)}};
NKS=function(m){return m};var DGC,t0C;_.x=function(m,G,K,W){var L=arguments.length,A=L<3?G:W===null?W=Object.getOwnPropertyDescriptor(G,K):W,O;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")A=Reflect.decorate(m,G,K,W);else for(var c=m.length-1;c>=0;c--)if(O=m[c])A=(L<3?O(A):L>3?O(G,K,A):O(G,K))||A;L>3&&A&&Object.defineProperty(G,K,A)};
_.S=function(m,G){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(m,G)};
DGC=function(m,G){if(G!==null&&G!==void 0){if(typeof G!=="object"&&typeof G!=="function")throw new TypeError("B");if(K===void 0){if(!Symbol.dispose)throw new TypeError("D");var K=G[Symbol.dispose]}if(typeof K!=="function")throw new TypeError("E");m.stack.push({value:G,dispose:K,async:!1})}return G};
t0C=function(m){function G(A){m.error=m.hasError?new SuppressedError(A,m.error,"An error was suppressed during disposal."):A;m.hasError=!0}
function K(){for(;W=m.stack.pop();)try{if(!W.async&&L===1)return L=0,m.stack.push(W),Promise.resolve().then(K);if(W.dispose){var A=W.dispose.call(W.value);if(W.async)return L|=2,Promise.resolve(A).then(K,function(O){G(O);return K()})}else L|=1}catch(O){G(O)}if(L===1)return m.hasError?Promise.reject(m.error):Promise.resolve();
if(m.hasError)throw m.error;}
var W,L=0;K()};var FCG="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");mdd()&&FCG.push("details:not(:has(summary))");var G9d=FCG.join(",");_.kJ(_.mv,Error);_.mv.prototype.name="CustomError";var QFo;var aPi=void 0,okk,nkK=typeof TextDecoder!=="undefined",Ydd,cVd=typeof String.prototype.isWellFormed==="function",OsV=typeof TextEncoder!=="undefined";var bl2;_.Wg=function(m){for(var G=[],K=0,W=0;W<m.length;W++){var L=m.charCodeAt(W);L<128?G[K++]=L:(L<2048?G[K++]=L>>6|192:((L&64512)==55296&&W+1<m.length&&(m.charCodeAt(W+1)&64512)==56320?(L=65536+((L&1023)<<10)+(m.charCodeAt(++W)&1023),G[K++]=L>>18|240,G[K++]=L>>12&63|128):G[K++]=L>>12|224,G[K++]=L>>6&63|128),G[K++]=L&63|128)}return G};
bl2=function(m){for(var G=[],K=0,W=0;K<m.length;){var L=m[K++];if(L<128)G[W++]=String.fromCharCode(L);else if(L>191&&L<224){var A=m[K++];G[W++]=String.fromCharCode((L&31)<<6|A&63)}else if(L>239&&L<365){A=m[K++];var O=m[K++],c=m[K++];L=((L&7)<<18|(A&63)<<12|(O&63)<<6|c&63)-65536;G[W++]=String.fromCharCode(55296+(L>>10));G[W++]=String.fromCharCode(56320+(L&1023))}else A=m[K++],O=m[K++],G[W++]=String.fromCharCode((L&15)<<12|(A&63)<<6|O&63)}return G.join("")};var u6=String.prototype.trim?function(m){return m.trim()}:function(m){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(m)[1]},vko=/&/g,$GP=/</g,sFB=/>/g,qok=/"/g,Ekl=/'/g,HlF=/\x00/g,IPk=/[\x00&<>"']/;var CY=!!(Ea[0]>>17&1),jFB=!!(Ea[0]&4096),k4k=!!(Ea[0]>>18&1),CSX=!!(Ea[0]&8),V00=!!(Ea[0]&2),Zli=!!(Ea[0]&4),dGl=!!(Ea[0]&16),PSk=!!(Ea[0]&256),yil=!!(Ea[0]&32),eBl=!!(Ea[0]&1024);var fPB,FP,xGX,X2K,SoC,kZf,HP9,RB4;fPB=qP(1,!0);FP=CY?k4k:qP(610401301,!1);xGX=CY?jFB||!CSX:qP(772657768,fPB);X2K=CY?V00:qP(513659523,!1);SoC=CY?jFB||!Zli:qP(568333945,!0);kZf=CY?dGl:qP(1331761403,!1);HP9=CY?jFB||!PSk:qP(748402147,!0);_.VP=CY?jFB||!yil:qP(824648567,fPB);RB4=CY?eBl:qP(824656860,!1);var aM,UGF=_.Ks.navigator;aM=UGF?UGF.userAgentData||null:null;var Vl;_.Cs=function(m,G){return Array.prototype.indexOf.call(m,G,void 0)};
_.Z0=function(m,G,K){Array.prototype.forEach.call(m,G,K)};
_.Zb=function(m,G,K){return Array.prototype.filter.call(m,G,K)};
_.r$=function(m,G,K){return Array.prototype.map.call(m,G,K)};
Vl=function(m,G,K){return Array.prototype.some.call(m,G,K)};
_.Qyo=function(m,G,K){return Array.prototype.every.call(m,G,K)};var d1=function(m){d1[" "](m);return m};
d1[" "]=function(){};
var BDf=function(m,G){try{return d1(m[G]),!0}catch(K){}return!1},Ygf=function(m,G,K,W){W=W?W(G):G;
return Object.prototype.hasOwnProperty.call(m,W)?m[W]:m[W]=K(G)};var zBl,d8,lPF,BKF,TKo,m6o,jgP,iPC,GGS,KDP,uLG,LD2,ADF,cDo,YOS,rD2;_.EnG=function(){return _.Ks.navigator||null};
zBl=pJ9();_.PX=JVd();d8=oM("Edge");lPF=d8||_.PX;_.lY=oM("Gecko")&&!(_.rd(_.Nd(),"WebKit")&&!oM("Edge"))&&!(oM("Trident")||oM("MSIE"))&&!oM("Edge");_.zb=_.rd(_.Nd(),"WebKit")&&!oM("Edge");BKF=_.zb&&oM("Mobile");_.M0P=_.bss();TKo=_.vGo();m6o=(qd()?aM.platform==="Linux":oM("Linux"))||_.$dG();jgP=_.oGd();iPC=nGv();GGS=oM("iPad");KDP=oM("iPod");_.WDF=_.Ed();uLG=_.rd(_.Nd(),"KaiOS");LD2=function(){var m=_.Ks.document;return m?m.documentMode:void 0};
a:{var wuS="",g5R=function(){var m=_.Nd();if(_.lY)return/rv:([^\);]+)(\)|;)/.exec(m);if(d8)return/Edge\/([\d\.]+)/.exec(m);if(_.PX)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(m);if(_.zb)return/WebKit\/(\S+)/.exec(m);if(zBl)return/(?:Version)[ \/]?(\S+)/.exec(m)}();
g5R&&(wuS=g5R?g5R[1]:"");if(_.PX){var OPk=LD2();if(OPk!=null&&OPk>parseFloat(wuS)){ADF=String(OPk);break a}}ADF=wuS}cDo=ADF;YOS={};_.yP=function(m){return Ygf(YOS,m,function(){return _.hV(cDo,m)>=0})};
if(_.Ks.document&&_.PX){var uEo=LD2();rD2=uEo?uEo:parseInt(cDo,10)||void 0}else rD2=void 0;_.h6S=rD2;var N6d,D_d,puX;_.eI=b6();N6d=nGv()||oM("iPod");D_d=oM("iPad");puX=_.toJ();_.fY=$G();_.bx=_.Ddv()&&!_.Ed();var P6v={},mC=null,taM=_.lY||_.zb||typeof _.Ks.btoa=="function";var G4v=typeof Uint8Array!=="undefined",Sdd=!_.PX&&typeof btoa==="function",RGo=/[-_.]/g,xdP={"-":"+",_:"/",".":"="},H2={};var qG,NzK;qG=function(m,G){if(G!==H2)throw Error("K");this.JSC$9127_value_=m;if(m!=null&&m.length===0)throw Error("J");};
_.IF=function(){return JD0||(JD0=new qG(null,H2))};
NzK=function(m){return new Uint8Array(mI9(m)||0)};
qG.prototype.isEmpty=function(){return this.JSC$9127_value_==null};
qG.prototype.sizeBytes=function(){var m=mI9(this);return m?m.length:0};
var mI9=function(m){if(H2!==H2)throw Error("K");var G=m.JSC$9127_value_;G==null||G4v&&G!=null&&G instanceof Uint8Array||(typeof G==="string"?G=UdM(G):(_.LP(G),G=null));return G==null?G:m.JSC$9127_value_=G},JD0;var lFf=void 0;var Ll=typeof Symbol==="function"&&typeof Symbol()==="symbol",D6S=Kl("jas",void 0,!0),lPM=Kl(void 0,"0di"),cN=Kl(void 0,"1oa"),Z6=Kl(void 0,Symbol()),rDJ=Kl(void 0,"0ub"),h66=Kl(void 0,"0ubs"),V4d=Kl(void 0,"0ubsb"),jsJ=Kl(void 0,"0actk"),Hu=Kl("m_m","messagePrototypeMarker",!0),bPv=Kl(void 0,"vps"),OPG=Kl();var Tdf,MoG,M6,tWo;Tdf={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};MoG=Object.defineProperties;_.Ai=Ll?D6S:"internalArrayState";tWo=[];gK(tWo,7);M6=Object.freeze(tWo);var jW={},nl={},FD4=function(m,G,K){this.iterable=m;this.mapper=G;this.thisArg=K};
FD4.prototype.next=function(){var m=this.iterable.next();m.done||(m.value=this.mapper.call(this.thisArg,m.value));return m};
FD4.prototype[Symbol.iterator]=function(){return this};
var QsC=Object.freeze({}),kk={};var LCd=void 0,Aid=VX(function(m){return m!==null&&m!==void 0});var YoM=VX(function(m){return typeof m==="number"}),cio=VX(function(m){return typeof m==="string"}),uRd=VX(function(m){return typeof m==="boolean"}),a6o=VX(function(m){return m!=null&&typeof m==="object"&&typeof m.then==="function"}),QGJ=VX(function(m){return typeof m==="function"}),MT=VX(function(m){return!!m&&(typeof m==="object"||typeof m==="function")});var ri9=typeof _.Ks.BigInt==="function"&&typeof _.Ks.BigInt(0)==="bigint";var fPG=VX(function(m){return ri9?m>=o5o&&m<=n5X:m[0]==="-"?hBv(m,bPC):hBv(m,v5G)}),bPC=Number.MIN_SAFE_INTEGER.toString(),o5o=ri9?BigInt(Number.MIN_SAFE_INTEGER):void 0,v5G=Number.MAX_SAFE_INTEGER.toString(),n5X=ri9?BigInt(Number.MAX_SAFE_INTEGER):void 0;var $6R=typeof Uint8Array.prototype.slice==="function",P2=0,yX=0,NK6;var pP,nP,AD,as,sFG;pP=typeof BigInt==="function"?BigInt.asIntN:void 0;_.bq=typeof BigInt==="function"?BigInt.asUintN:void 0;nP=Number.isSafeInteger;AD=Number.isFinite;as=Math.trunc;sFG=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var v5d={};var ADM={},ssF=function(){try{var m=function(){return xdR(Map,[],this.constructor)};
_.n(m,Map);d1(new m);return!1}catch(G){return!0}}(),xJ=function(){this.JSC$9146_map_=new Map};
_.w=xJ.prototype;_.w.get=function(m){return this.JSC$9146_map_.get(m)};
_.w.set=function(m,G){this.JSC$9146_map_.set(m,G);this.size=this.JSC$9146_map_.size;return this};
_.w.delete=function(m){m=this.JSC$9146_map_.delete(m);this.size=this.JSC$9146_map_.size;return m};
_.w.clear=function(){this.JSC$9146_map_.clear();this.size=this.JSC$9146_map_.size};
_.w.has=function(m){return this.JSC$9146_map_.has(m)};
_.w.entries=function(){return this.JSC$9146_map_.entries()};
_.w.keys=function(){return this.JSC$9146_map_.keys()};
_.w.values=function(){return this.JSC$9146_map_.values()};
_.w.forEach=function(m,G){return this.JSC$9146_map_.forEach(m,G)};
xJ.prototype[Symbol.iterator]=function(){return this.entries()};
var X0=function(){if(ssF)return Object.setPrototypeOf(xJ.prototype,Map.prototype),Object.defineProperties(xJ.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),xJ;var m=function(){return xdR(Map,[],this.constructor)};
_.n(m,Map);return m}(),k5=function(m,G,K,W){K=K===void 0?iPv:K;
W=W===void 0?iPv:W;var L=X0.call(this)||this;L.arrayState=m[_.Ai]|0;L.valueCtor=G;L.keyToApi=K;L.valueToApi=L.valueCtor?KDF:W;for(var A=0;A<m.length;A++){var O=m[A],c=K(O[0],!1,!0),u=O[1];G?u===void 0&&(u=null):u=W(O[1],!1,!0,void 0,void 0,L.arrayState);X0.prototype.set.call(L,c,u)}return L};
_.n(k5,X0);var qOG=function(m){if(m.arrayState&2)throw Error("O");},n5f=function(m,G){return hi(Array.from(X0.prototype.entries.call(m),G))};
_.w=k5.prototype;_.w.clear=function(){qOG(this);X0.prototype.clear.call(this)};
_.w.delete=function(m){qOG(this);return X0.prototype.delete.call(this,this.keyToApi(m,!0,!1))};
_.w.entries=function(){if(this.valueCtor){var m=X0.prototype.keys.call(this);m=new FD4(m,WDM,this)}else m=X0.prototype.entries.call(this);return m};
_.w.values=function(){if(this.valueCtor){var m=X0.prototype.keys.call(this);m=new FD4(m,k5.prototype.get,this)}else m=X0.prototype.values.call(this);return m};
_.w.forEach=function(m,G){this.valueCtor?X0.prototype.forEach.call(this,function(K,W,L){m.call(G,L.get(W),W,L)}):X0.prototype.forEach.call(this,m,G)};
_.w.set=function(m,G){qOG(this);m=this.keyToApi(m,!0,!1);return m==null?this:G==null?(X0.prototype.delete.call(this,m),this):X0.prototype.set.call(this,m,this.valueToApi(G,!0,!0,this.valueCtor,!1,this.arrayState))};
_.w.has=function(m){return X0.prototype.has.call(this,this.keyToApi(m,!1,!1))};
_.w.get=function(m){m=this.keyToApi(m,!1,!1);var G=X0.prototype.get.call(this,m);if(G!==void 0){var K=this.valueCtor;return K?(K=this.valueToApi(G,!1,!0,K,this.callToMutableOnAccess,this.arrayState),K!==G&&X0.prototype.set.call(this,m,K),K):G}};
k5.prototype[Symbol.iterator]=function(){return this.entries()};
k5.prototype.toJSON=void 0;var LDJ;var D66=function(){},JDo=function(m,G){for(var K in m)!isNaN(K)&&G(m,+K,m[K])},tWd=function(m){var G=new D66;
JDo(m,function(K,W,L){G[W]=MG(L)});
G.reviveUnknownFields=m.reviveUnknownFields;return G},cDd={reviveIntoImmutable:!0};var Nzd;var $6P,ssM;var E50,WN,Gi,gC,HP4,m9,Au,I62,kGR,Lg,CqR,Al,OA,co;E50=_.ZP(0);_.SI={};_.ze=function(m,G,K,W,L){G=WN(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,K,L);if(G!==null||W&&m.noLegacyNull!==nl)return G};
WN=function(m,G,K,W){if(G===-1)return null;var L=G+(K?0:-1),A=m.length-1;if(!(A<1+(K?0:-1))){if(L>=A){var O=m[A];if(O!=null&&typeof O==="object"&&O.constructor===Object){K=O[G];var c=!0}else if(L===A)K=O;else return}else K=m[L];if(W&&K!=null){W=W(K);if(W==null)return W;if(!Object.is(W,K))return c?O[G]=W:m[L]=W,W}return K}};
_.zd=function(m,G,K,W){Rs(m);var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Bu(L,L[_.Ai]|0,G,K,W);return m};
_.l5=function(m,G,K){m=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return z6d(m,m[_.Ai]|0,G,K)!==void 0};
_.BX=function(m,G,K,W){var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return z6d(L,L[_.Ai]|0,G,gC(m,W,K))!==void 0};
_.Vp=function(m){return m===QsC?2:4};
_.MP=function(m,G){m=_.ze(m,G,void 0,void 0,f6P);return m==null?_.IF():m};
Gi=function(m,G,K,W){Rs(m);var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=L[_.Ai]|0;if(W==null){var O=SOG(L);if(R66(O,L,A,K)===G)O.set(K,0);else return m}else A=U6M(L,A,K,G);Bu(L,A,G,W);return m};
_.$o=function(m,G,K,W){var L=m[_.Ai]|0,A=Cl(L);L=U6M(m,L,K,G,A);Bu(m,L,G,W,A)};
gC=function(m,G,K){return _.Te(m,G)===K?K:-1};
_.Te=function(m,G){m=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return R66(SOG(m),m,void 0,G,void 0)};
HP4=function(m,G,K){var W=m[_.Ai]|0,L=Cl(W),A=WN(m,K,L);if(A!=null&&A[Hu]===jW){if(!so(A))return SW(A),A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var O=A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(A)&&(O=A);if(O){var c=O[_.Ai]|0;c&2&&(O=x5(O,c))}O=eW(O,G);O!==A&&Bu(m,W,K,O,L);return O};
_.RG=function(m,G,K,W){var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=L[_.Ai]|0;G=z6d(L,A,G,K,W);if(G==null)return G;A=L[_.Ai]|0;if(!so(m,A)){var O=GG6(G);O!==G&&(SW(m)&&(L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=L[_.Ai]|0),G=O,A=Bu(L,A,K,G,W),UO(L,A))}return G};
_.CB=function(m,G,K,W){var L=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return l6M(m,L,L[_.Ai]|0,G,K,W,!1,!0)};
_.ko=function(m,G,K,W){K=BzV(K);_.zd(m,G,K,W);K&&!so(K)&&UO(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return m};
_.Cp=function(m,G,K,W){W=BzV(W);Gi(m,G,K,W);W&&!so(W)&&UO(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return m};
m9=function(m,G,K){Rs(m);var W=m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=W[_.Ai]|0;if(K==null)return Bu(W,L,G),m;for(var A=K===M6?7:K[_.Ai]|0,O=A,c=Kp(A),u=c||Object.isFrozen(K),h=!0,J=!0,N=0;N<K.length;N++){var D=K[N];c||(D=so(D),h&&(h=!D),J&&(J=D))}c||(A=h?13:5,A=J?A&-4097:A|4096);u&&A===O||(K=MG(K),O=0,A=TG(A,L));A!==O&&gK(K,A);L=Bu(W,L,G,K);2&A||!(4096&A||16&A)||UO(W,L);return m};
Au=function(m,G,K,W){Tzd(m,G,K,W);return m};
I62=function(m,G,K){Tzd(m,G,iA,void 0,K,1,!0);return m};
_.js2=function(m,G){return RB4?xGf(_.ze(m,G,void 0,void 0,Sov)):xGf(_.ze(m,G))};
_.GB=function(m,G,K){return RB4?_.ze(m,G,void 0,K,Sov):Sov(_.ze(m,G,void 0,K))};
_.Kg=function(m,G,K){return RB4?_.ze(m,G,void 0,K,RB9):RB9(_.ze(m,G,void 0,K))};
_.Wo=function(m,G){var K=K===void 0?!1:K;var W;return(W=_.$GF(_.ze(m,G)))!=null?W:K};
_.Z5=function(m,G,K){K=K===void 0?0:K;var W;return(W=_.uq(_.ze(m,G)))!=null?W:K};
kGR=function(m,G){var K=K===void 0?0:K;m=_.Eks(_.ze(m,G));return m!=null?m:K};
Lg=function(m,G,K){K=K===void 0?E50:K;var W;return(W=_.GB(m,G))!=null?W:K};
CqR=function(m){var G=G===void 0?E50:G;var K;return(K=_.Kg(m,23))!=null?K:G};
Al=function(m,G){var K=K===void 0?0:K;var W;return(W=_.ze(m,G,void 0,void 0,_.Wu))!=null?W:K};
_.wL=function(m,G,K,W){K=K===void 0?"":K;var L;return(L=_.q6(_.ze(m,G,W)))!=null?L:K};
_.gL=function(m,G){var K=K===void 0?0:K;var W;return(W=_.Y5(_.ze(m,G)))!=null?W:K};
OA=function(m,G){var K=K===void 0?"0":K;m=RB4?X2d(_.ze(m,G,void 0,void 0,Sov)):X2d(_.ze(m,G),!0);return m!=null?m:K};
_.VWS=function(m,G,K){m=_.mu(m,G,_.q6,3,!0);KCF(m,K);return m[K]};
co=function(m,G,K){return _.wL(m,gC(m,K,G))};
_.Yi=function(m,G,K,W){return _.RG(m,G,gC(m,W,K),void 0)};
_.Bt=function(m,G){return _.q6(_.ze(m,G,void 0,_.SI))};
_.x2=function(m,G,K){return _.zd(m,G,vkd(K))};
_.WH=function(m,G,K){return _.AC(m,G,vkd(K),!1)};
_.rL=function(m,G,K){return _.zd(m,G,_.rz(K))};
_.c$=function(m,G,K){return _.zd(m,G,FE(K))};
_.LB=function(m,G,K){return _.zd(m,G,sO(K))};
_.ax=function(m,G,K,W){return _.AC(m,G,sO(K),"",W)};
_.UV=function(m,G,K){return _.zd(m,G,K==null?K:_.OO(K))};
_.uA=function(m,G,K){return _.AC(m,G,K==null?K:_.OO(K),0)};var Yo=function(m,G,K){this.buffer=m;if(K&&!G)throw Error();this.JSC$9158_isImmutable=G};var ZPX=function(m,G,K,W){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9161_start_=0;this.init(m,G,K,W)},PqR,hl,yDl,Lbd,e6G,f6R,x6o,XuX,bpG,d6K;
_.w=ZPX.prototype;_.w.init=function(m,G,K,W){var L=W===void 0?{}:W;W=L.aliasBytesFields===void 0?!1:L.aliasBytesFields;L=L.treatNewDataAsImmutable===void 0?!1:L.treatNewDataAsImmutable;this.aliasBytesFields=W;this.treatNewDataAsImmutable=L;m&&(m=ipd(m,this.treatNewDataAsImmutable),this.bytes_=m.buffer,this.bytesAreImmutable_=m.JSC$9158_isImmutable,this.JSC$9161_start_=G||0,this.end_=K!==void 0?this.JSC$9161_start_+K:this.bytes_.length,this.cursor_=this.JSC$9161_start_)};
_.w.free=function(){this.clear();d6K.length<100&&d6K.push(this)};
_.w.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$9161_start_=0;this.aliasBytesFields=!1};
_.w.reset=function(){this.cursor_=this.JSC$9161_start_};
_.w.atEnd=function(){return this.cursor_==this.end_};
_.bg=function(m,G){var K=0,W=0,L=0,A=m.bytes_,O=m.cursor_;do{var c=A[O++];K|=(c&127)<<L;L+=7}while(L<32&&c&128);if(L>32)for(W|=(c&127)>>4,L=3;L<32&&c&128;L+=7)c=A[O++],W|=(c&127)<<L;hl(m,O);if(!(c&128))return G(K>>>0,W>>>0);throw Error();};
PqR=function(m){return _.bg(m,function(G,K){return okG(G,K,QFd)})};
hl=function(m,G){m.cursor_=G;if(G>m.end_)throw Error();};
_.Jl=function(m){var G=m.bytes_,K=m.cursor_,W=G[K++],L=W&127;if(W&128&&(W=G[K++],L|=(W&127)<<7,W&128&&(W=G[K++],L|=(W&127)<<14,W&128&&(W=G[K++],L|=(W&127)<<21,W&128&&(W=G[K++],L|=W<<28,W&128&&G[K++]&128&&G[K++]&128&&G[K++]&128&&G[K++]&128&&G[K++]&128)))))throw Error();hl(m,K);return L};
_.NE=function(m){var G=m.bytes_,K=m.cursor_,W=G[K],L=G[K+1],A=G[K+2];G=G[K+3];hl(m,m.cursor_+4);return(W<<0|L<<8|A<<16|G<<24)>>>0};
yDl=function(m){var G=_.NE(m);m=_.NE(m);return t0v(G,m)};
Lbd=function(m){var G=_.NE(m);m=_.NE(m);return FCd(G,m)};
e6G=function(m){var G=_.NE(m);m=(G>>31)*2+1;var K=G>>>23&255;G&=8388607;return K==255?G?NaN:m*Infinity:K==0?m*1.401298464324817E-45*G:m*Math.pow(2,K-150)*(G+8388608)};
f6R=function(m){var G=_.NE(m),K=_.NE(m);m=(K>>31)*2+1;var W=K>>>20&2047;G=4294967296*(K&1048575)+G;return W==2047?G?NaN:m*Infinity:W==0?m*4.9E-324*G:m*Math.pow(2,W-1075)*(G+4503599627370496)};
x6o=function(m){for(var G=0,K=m.cursor_,W=K+10,L=m.bytes_;K<W;){var A=L[K++];G|=A;if((A&128)===0)return hl(m,K),!!(G&127)}throw Error();};
XuX=function(m,G){if(G<0)throw Error();var K=m.cursor_;G=K+G;if(G>m.end_)throw Error();m.cursor_=G;return K};
bpG=function(m,G){if(G==0)return _.IF();var K=XuX(m,G);m.aliasBytesFields&&m.bytesAreImmutable_?K=m.bytes_.subarray(K,K+G):(m=m.bytes_,G=K+G,K=K===G?new Uint8Array(0):$6R?m.slice(K,G):new Uint8Array(m.subarray(K,G)));return K.length==0?_.IF():new qG(K,H2)};
d6K=[];var R6S=function(m,G,K,W){if(d6K.length){var L=d6K.pop();L.init(m,G,K,W);m=L}else m=new ZPX(m,G,K,W);this.decoder_=m;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;SOk(this,W)},SOk=function(m,G){G=G===void 0?{}:G;
m.discardUnknownFields=G.discardUnknownFields===void 0?!1:G.discardUnknownFields},seF=function(m,G,K,W){if(U6F.length){var L=U6F.pop();
SOk(L,W);L.decoder_.init(m,G,K,W);return L}return new R6S(m,G,K,W)},a3d,nod,D8,z6o,U6F;
R6S.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;U6F.length<100&&U6F.push(this)};
R6S.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
a3d=function(m){if(m.decoder_.atEnd())return!1;m.fieldCursor_=m.decoder_.cursor_;var G=_.Jl(m.decoder_)>>>0,K=G>>>3;G&=7;if(!(G>=0&&G<=5))throw Error();if(K<1)throw Error();m.nextField_=K;m.nextWireType_=G;return!0};
nod=function(m){switch(m.nextWireType_){case 0:m.nextWireType_!=0?nod(m):x6o(m.decoder_);break;case 1:m=m.decoder_;hl(m,m.cursor_+8);break;case 2:if(m.nextWireType_!=2)nod(m);else{var G=_.Jl(m.decoder_)>>>0;m=m.decoder_;hl(m,m.cursor_+G)}break;case 5:m=m.decoder_;hl(m,m.cursor_+4);break;case 3:G=m.nextField_;do{if(!a3d(m))throw Error();if(m.nextWireType_==4){if(m.nextField_!=G)throw Error();break}nod(m)}while(1);break;default:throw Error();}};
D8=function(m,G,K){var W=m.decoder_.end_,L=_.Jl(m.decoder_)>>>0;L=m.decoder_.cursor_+L;var A=L-W;A<=0&&(m.decoder_.end_=L,K(G,m,void 0,void 0,void 0),A=L-m.decoder_.cursor_);if(A)throw Error();m.decoder_.cursor_=L;m.decoder_.end_=W;return G};
z6o=function(m){var G=_.Jl(m.decoder_)>>>0;m=m.decoder_;var K=XuX(m,G);m=m.bytes_;if(nkK){var W=m,L;(L=okk)||(L=okk=new TextDecoder("utf-8",{fatal:!0}));G=K+G;W=K===0&&G===W.length?W:W.subarray(K,G);try{var A=L.decode(W)}catch(h){if(aPi===void 0){try{L.decode(new Uint8Array([128]))}catch(J){}try{L.decode(new Uint8Array([97])),aPi=!0}catch(J){aPi=!1}}!aPi&&(okk=void 0);throw h;}}else{A=K;G=A+G;K=[];for(var O=null,c,u;A<G;)c=m[A++],c<128?K.push(c):c<224?A>=G?i6():(u=m[A++],c<194||(u&192)!==128?(A--,
i6()):K.push((c&31)<<6|u&63)):c<240?A>=G-1?i6():(u=m[A++],(u&192)!==128||c===224&&u<160||c===237&&u>=160||((L=m[A++])&192)!==128?(A--,i6()):K.push((c&15)<<12|(u&63)<<6|L&63)):c<=244?A>=G-2?i6():(u=m[A++],(u&192)!==128||(c<<28)+(u-144)>>30!==0||((L=m[A++])&192)!==128||((W=m[A++])&192)!==128?(A--,i6()):(c=(c&7)<<18|(u&63)<<12|(L&63)<<6|W&63,c-=65536,K.push((c>>10&1023)+55296,(c&1023)+56320))):i6(),K.length>=8192&&(O=gGd(O,K),K.length=0);A=gGd(O,K)}return A};
_.l6F=function(m){var G=_.Jl(m.decoder_)>>>0;return bpG(m.decoder_,G)};
_.Bzi=function(m,G,K){var W=_.Jl(m.decoder_)>>>0;for(W=m.decoder_.cursor_+W;m.decoder_.cursor_<W;)K.push(G(m.decoder_))};
U6F=[];var MWo=function(m,G){this.JSC$9168_lo=m>>>0;this.JSC$9168_hi=G>>>0},f3d=function(m){m=BigInt.asUintN(64,m);
return new MWo(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)))},WuJ=function(m){if(!m)return TzK||(TzK=new MWo(0,0));
if(!/^\d+$/.test(m))return null;B2(m);return new MWo(P2,yX)},TzK,eCo=function(m,G){this.JSC$9170_lo=m>>>0;
this.JSC$9170_hi=G>>>0},G7o=function(m){if(!m)return mI4||(mI4=new eCo(0,0));
if(!/^-?\d+$/.test(m))return null;B2(m);return new eCo(P2,yX)},mI4;var tl=function(){this.JSC$9172_buffer_=[]},ae,np,ipK;
tl.prototype.length=function(){return this.JSC$9172_buffer_.length};
tl.prototype.end=function(){var m=this.JSC$9172_buffer_;this.JSC$9172_buffer_=[];return m};
ae=function(m,G,K){for(;K>0||G>127;)m.JSC$9172_buffer_.push(G&127|128),G=(G>>>7|K<<25)>>>0,K>>>=7;m.JSC$9172_buffer_.push(G)};
np=function(m,G){for(;G>127;)m.JSC$9172_buffer_.push(G&127|128),G>>>=7;m.JSC$9172_buffer_.push(G)};
_.XNV=function(m,G){if(G>=0)np(m,G);else{for(var K=0;K<9;K++)m.JSC$9172_buffer_.push(G&127|128),G>>=7;m.JSC$9172_buffer_.push(1)}};
ipK=function(m,G){B2(G);aPV(function(K,W){ae(m,K>>>0,W>>>0)})};
tl.prototype.writeUint8=function(m){this.JSC$9172_buffer_.push(m>>>0&255)};
_.QG=function(m,G){m.JSC$9172_buffer_.push(G>>>0&255);m.JSC$9172_buffer_.push(G>>>8&255);m.JSC$9172_buffer_.push(G>>>16&255);m.JSC$9172_buffer_.push(G>>>24&255)};
tl.prototype.writeInt8=function(m){this.JSC$9172_buffer_.push(m>>>0&255)};var G70,NI,RCo,l3G,goP;G70=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new tl};
NI=function(m,G){G.length!==0&&(m.blocks_.push(G),m.totalLength_+=G.length)};
_.KuX=function(m,G){_.FO(m,G,2);G=m.encoder_.end();NI(m,G);G.push(m.totalLength_);return G};
_.Wu2=function(m,G){var K=G.pop();for(K=m.totalLength_+m.encoder_.length()-K;K>127;)G.push(K&127|128),K>>>=7,m.totalLength_++;G.push(K);m.totalLength_++};
_.FO=function(m,G,K){np(m.encoder_,G*8+K)};
RCo=function(m,G,K){if(K!=null)switch(LuF(K),_.FO(m,G,1),typeof K){case "number":m=m.encoder_;p2f(K);_.QG(m,P2);_.QG(m,yX);break;case "bigint":K=f3d(K);m=m.encoder_;G=K.JSC$9168_hi;_.QG(m,K.JSC$9168_lo);_.QG(m,G);break;default:K=WuJ(K),m=m.encoder_,G=K.JSC$9168_hi,_.QG(m,K.JSC$9168_lo),_.QG(m,G)}};
l3G=function(m,G,K){_.FO(m,G,2);np(m.encoder_,K.length);NI(m,m.encoder_.end());NI(m,K)};
goP=function(m,G,K,W){K!=null&&(G=_.KuX(m,G),W(K,m),_.Wu2(m,G))};var ACo,LuP,AC0,wNk,goR,cCC,Yei,uOk,hCS;ACo=rx();LuP=rx();AC0=rx();wNk=rx();goR=rx();_.OpG=rx();_.F5=rx();cCC=rx();Yei=rx();_.rCC=rx();uOk=rx();hCS=rx();_.pNl=rx();_.JCR=rx();_.pp=function(m,G,K){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,G,K)};
_.pp.prototype.toJSON=function(){return dz(this)};
_.pp.prototype.serialize=function(m){return JSON.stringify(dz(this,m))};
var ctJ=function(m,G){if(G==null||G=="")return new m;G=JSON.parse(G);if(!Array.isArray(G))throw Error("W");return new m(ilV(G))};
_.pp.prototype.getExtension=function(m){uEd(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,m.fieldIndex);YO6(this,m.fieldIndex);return m.ctor?m.isRepeated?m.getExtensionFn(this,m.ctor,m.fieldIndex,_.Vp(),m.JSC$9183_hasMessageId):m.getExtensionFn(this,m.ctor,m.fieldIndex,m.JSC$9183_hasMessageId):m.isRepeated?m.getExtensionFn(this,m.fieldIndex,_.Vp(),m.JSC$9183_hasMessageId):m.getExtensionFn(this,m.fieldIndex,m.defaultValue,m.JSC$9183_hasMessageId)};
_.pp.prototype.clone=function(){var m=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=m[_.Ai]|0;return d6d(this,m,G)?ZPf(this,m,!0):new this.constructor(x5(m,G,!1))};
_.pp.prototype[Hu]=jW;_.pp.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ug=function(m,G,K){this.$$binaryReaderFn=m;this.$$binaryWriterFn=G;m=Vi(ACo);this.$$isMsg=!!m&&K===m||!1},hC6=wNG(function(m,G,K,W,L){if(m.nextWireType_!==2)return!1;
D8(m,HP4(G,W,K),L);return!0},cCv),pNs=wNG(function(m,G,K,W,L){if(m.nextWireType_!==2)return!1;
D8(m,HP4(G,W,K),L);return!0},cCv),Eod=Symbol(),DIF=Symbol(),Qed=Symbol(),je6=Symbol(),vof=Symbol(),YeV,rCv;var NxS,wzd,DIP,QI,t4B,FuB,QeG,a3o,o3,noK,bpB,voX,$IB,seP,EoG,Hpi,I3K,jeS,k7K,Cgl;NxS=_.ZP(0);wzd=function(m,G){var K=new G70;k7d(m.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K,hC(Eod,qed,HpV,G));NI(K,K.encoder_.end());m=new Uint8Array(K.totalLength_);G=K.blocks_;for(var W=G.length,L=0,A=0;A<W;A++){var O=G[A];m.set(O,L);L+=O.length}K.blocks_=[m];return m};
DIP=wNG(function(m,G,K,W,L){if(m.nextWireType_!==2)return!1;m=D8(m,eW([void 0,void 0],W),L);m=MG(m);W=G[_.Ai]|0;L=Cl(W);if(W&2)throw Error();var A=WN(G,K,L);if(A instanceof k5)(A.arrayState&2)!=0?(A=n5f(A),A.push(m),Bu(G,W,K,A,L)):(G=A,K=G.keyToApi(m[0],!1,!0),m=m[1],m=G.valueCtor?m===void 0?null:m:G.valueToApi(m,!1,!0,void 0,!1,G.arrayState),X0.prototype.set.call(G,K,m));else if(Array.isArray(A)){var O=A[_.Ai]|0;O&8192||gK(A,O|=8192);O&2&&(A=x6d(A),Bu(G,W,K,A,L));A.push(m)}else Bu(G,W,K,hi([m]),
L);return!0},function(m,G,K,W,L){if(G instanceof k5)G.forEach(function(c,u){goP(m,K,eW([u,
c],W),L)});
else if(Array.isArray(G)){for(var A=0;A<G.length;A++){var O=G[A];Array.isArray(O)&&goP(m,K,eW(O,W),L)}hi(G)}});
QI=_.D3(function(m,G,K){if(m.nextWireType_!==1)return!1;_.tC(G,K,f6R(m.decoder_));return!0},Pg6,hCS);
t4B=_.D3(function(m,G,K,W){if(m.nextWireType_!==1)return!1;_.$o(G,K,W,f6R(m.decoder_));return!0},Pg6,hCS);
FuB=_.D3(function(m,G,K){if(m.nextWireType_!==5)return!1;_.tC(G,K,e6G(m.decoder_));return!0},yCP,uOk);
QeG=_.dI6(function(m,G,K){if(m.nextWireType_!==5&&m.nextWireType_!==2)return!1;G=_.wx(G,G[_.Ai]|0,K);m.nextWireType_==2?_.Bzi(m,e6G,G):G.push(e6G(m.decoder_));return!0},function(m,G,K){G=_.Zps(_.Wu,G,!0);
if(G!=null&&G.length)for(_.FO(m,K,2),np(m.encoder_,G.length*4),K=0;K<G.length;K++){var W=m.encoder_;DGv(G[K]);_.QG(W,P2)}},uOk);
a3o=_.D3(function(m,G,K,W){if(m.nextWireType_!==5)return!1;_.$o(G,K,W,e6G(m.decoder_));return!0},yCP,uOk);
_.ooS=_.D3(function(m,G,K){if(_.VP)return Gp9(m,G,K);if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,_.z4));return!0},_.oe,_.F5);
_.a3=_.D3(function(m,G,K){if(_.VP)return Gp9(m,G,K);if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,RF));return!0},_.oe,_.F5);
o3=_.D3(function(m,G,K){if(_.VP)return m.nextWireType_!==0?G=!1:(m=_.bg(m.decoder_,QFd),_.tC(G,K,m===NxS?void 0:m),G=!0),G;if(m.nextWireType_!==0)return!1;m=_.bg(m.decoder_,RF);_.tC(G,K,m===0?void 0:m);return!0},_.oe,_.F5);
noK=_.D3(function(m,G,K,W){if(_.VP)return _.Kbd(m,G,K,W);if(m.nextWireType_!==0)return!1;_.$o(G,K,W,_.bg(m.decoder_,RF));return!0},_.oe,_.F5);
bpB=_.D3(function(m,G,K){if(_.VP)return WbG(m,G,K);if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,_.xk));return!0},xIJ,cCC);
_.ng=_.D3(function(m,G,K){if(_.VP)return WbG(m,G,K);if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,t0v));return!0},xIJ,cCC);
_.bA=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,_.Jl(m.decoder_));return!0},SeF,wNk);
voX=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;m=_.Jl(m.decoder_);_.tC(G,K,m===0?void 0:m);return!0},SeF,wNk);
$IB=_.D3(function(m,G,K,W){if(m.nextWireType_!==0)return!1;_.$o(G,K,W,_.Jl(m.decoder_));return!0},SeF,wNk);
seP=_.D3(function(m,G,K){if(_.VP)return _.AtG(m,G,K);if(m.nextWireType_!==1)return!1;_.tC(G,K,yDl(m.decoder_));return!0},_.UIJ,_.rCC);
_.qeG=_.dI6(function(m,G,K){if(_.VP)return m.nextWireType_!==1&&m.nextWireType_!==2?m=!1:(G=_.wx(G,G[_.Ai]|0,K),m.nextWireType_==2?_.Bzi(m,Lbd,G):G.push(Lbd(m.decoder_)),m=!0),m;if(m.nextWireType_!==1&&m.nextWireType_!==2)return!1;G=_.wx(G,G[_.Ai]|0,K);m.nextWireType_==2?_.Bzi(m,yDl,G):G.push(yDl(m.decoder_));return!0},function(m,G,K){G=_.Zps(zBs,G,!1);
if(G!=null)for(var W=0;W<G.length;W++)RCo(m,K,G[W])},_.rCC);
_.vo=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,x6o(m.decoder_));return!0},zCd,LuP);
_.$i=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;m=x6o(m.decoder_);_.tC(G,K,m===!1?void 0:m);return!0},zCd,LuP);
EoG=_.D3(function(m,G,K,W){if(m.nextWireType_!==0)return!1;_.$o(G,K,W,x6o(m.decoder_));return!0},zCd,LuP);
_.sA=_.D3(function(m,G,K){if(m.nextWireType_!==2)return!1;_.tC(G,K,z6o(m));return!0},Bxo,AC0);
_.qE=_.D3(function(m,G,K){if(m.nextWireType_!==2)return!1;m=z6o(m);_.tC(G,K,m===""?void 0:m);return!0},Bxo,AC0);
_.EA=_.D3(function(m,G,K,W){if(m.nextWireType_!==2)return!1;_.$o(G,K,W,z6o(m));return!0},Bxo,AC0);
Hpi=_.dI6(function(m,G,K){if(m.nextWireType_!==2)return!1;m=z6o(m);_.wx(G,G[_.Ai]|0,K).push(m);return!0},function(m,G,K){G=_.Zps(_.q6,G,!0);
if(G!=null)for(var W=0;W<G.length;W++){var L=m,A=K,O=G[W];O!=null&&l3G(L,A,rVd(O))}},AC0);
I3K=void 0;I3K=I3K===void 0?ACo:I3K;_.Ho=new ug(function(m,G,K,W,L){if(m.nextWireType_!==2)return!1;W=eW(void 0,W);_.wx(G,G[_.Ai]|0,K).push(W);D8(m,W,L);return!0},function(m,G,K,W,L){if(Array.isArray(G)){for(var A=0;A<G.length;A++)M4v(m,G[A],K,W,L);
m=G[_.Ai]|0;m&1||gK(G,m|1)}},I3K);
_.I3=wNG(function(m,G,K,W,L,A){if(m.nextWireType_!==2)return!1;var O=G[_.Ai]|0;U6M(G,O,A,K,Cl(O));G=HP4(G,W,K);D8(m,G,L);return!0},M4v);
_.jZ=_.D3(function(m,G,K){if(m.nextWireType_!==2)return!1;_.tC(G,K,_.l6F(m));return!0},_.Txs,_.pNl);
jeS=_.D3(function(m,G,K,W){if(m.nextWireType_!==2)return!1;_.$o(G,K,W,_.l6F(m));return!0},_.Txs,_.pNl);
_.ki=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,_.Jl(m.decoder_)>>>0);return!0},mpf,goR);
k7K=_.D3(function(m,G,K,W){if(m.nextWireType_!==0)return!1;_.$o(G,K,W,_.Jl(m.decoder_)>>>0);return!0},mpf,goR);
_.Cg=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;_.tC(G,K,_.Jl(m.decoder_));return!0},_.iZ6,_.JCR);
_.VI=_.D3(function(m,G,K){if(m.nextWireType_!==0)return!1;m=_.Jl(m.decoder_);_.tC(G,K,m===0?void 0:m);return!0},_.iZ6,_.JCR);
Cgl=_.D3(function(m,G,K){if(_.VP)return m.nextWireType_!==0?m=!1:(_.tC(G,K,PqR(m.decoder_)),m=!0),m;if(m.nextWireType_!==0)return!1;_.tC(G,K,_.bg(m.decoder_,nkd));return!0},function(m,G,K){G=UGM(G);
if(G!=null&&(Kuf(G),G!=null))switch(_.FO(m,K,0),typeof G){case "number":m=m.encoder_;K=G;G=K<0;K=Math.abs(K)*2;p2f(K);K=P2;var W=yX;G&&(K==0?W==0?W=K=4294967295:(W--,K=4294967295):K--);P2=K;yX=W;ae(m,P2,yX);break;case "bigint":m=m.encoder_;G=G<<BigInt(1)^G>>BigInt(63);P2=Number(BigInt.asUintN(32,G));yX=Number(BigInt.asUintN(32,G>>BigInt(32)));ae(m,P2,yX);break;default:ipK(m.encoder_,G)}},Yei);var dIS=function(){var m=V4G,G=Zpl;this.fieldIndex=175237375;this.ctor=G;this.isRepeated=0;this.getExtensionFn=_.RG;this.defaultValue=void 0;this.JSC$9183_hasMessageId=m.messageId!=null?kk:void 0};
dIS.prototype.register=function(){d1(this)};var PgS=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(PgS,_.pp);var yCR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(yCR,_.pp);var usv=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(usv,_.pp);var eC0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(eC0,_.pp);var f3o=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(f3o,_.pp);var xI2=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(xI2,_.pp);var XNi=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(XNi,_.pp);XNi.prototype.getData=function(){return _.MP(this,2)};var SeP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(SeP,_.pp);var RC0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(RC0,_.pp);RC0.prototype.getStyle=function(){return _.RG(this,PgS,1)};var j4=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(j4,_.pp);j4.prototype.getPayloadCase=function(){return _.Te(this,VG)};
j4.prototype.getStyle=function(){return _.Yi(this,RC0,6,VG)};
var UI2=function(){var m=new j4,G=new f3o;return _.Cp(m,7,VG,G)},zCo=function(){var m=new j4,G=new xI2;
return _.Cp(m,8,VG,G)},VG=[1,
2,3,4,5,6,7,8];var l3k=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(l3k,_.pp);var Bx0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Bx0,_.pp);var M4C=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(M4C,_.pp);var Txl=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Txl,_.pp);var mpX=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(mpX,_.pp);var iZS=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(iZS,_.pp);var Gp4=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Gp4,_.pp);var Kbo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Kbo,_.pp);Kbo.prototype.getData=function(){return _.MP(this,2)};var WbB=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(WbB,_.pp);var rto=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(rto,_.pp);rto.prototype.getPayloadCase=function(){return _.Te(this,Z8)};
var Z8=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var dL=function(m,G){m=Error.call(this,m);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.code=G===void 0?2:G};
_.n(dL,Error);var Lbo=Promise;var AtB=function(m){this.channelPromise=m};
AtB.prototype.send=function(m,G,K){this.channelPromise.then(function(W){W.send(m,G,K)})};var wzK=function(m,G){this.data=m;this.channel=G};
wzK.prototype.reply=function(m,G,K){this.channel.send(m,G,K)};var grF=function(m){this.JSC$9249_port_=m};
grF.prototype.send=function(m,G,K){K=K===void 0?[]:K;var W=new MessageChannel;OZX(W.port1,G);this.JSC$9249_port_.postMessage(m,[W.port2].concat(K))};
var ct2=function(m,G){OZX(m,G);return new grF(m)},OZX=function(m,G){G&&(m.onmessage=function(K){G(new wzK(K.data,ct2(K.ports[0])))})};var YyG=function(m){this.verifier_=m};
YyG.prototype.verify=function(m){return this.verifier_(m)};
var rt0=function(m){var G=Object.create(null);(typeof m==="string"?[m]:m).forEach(function(K){if(K==="null")throw Error("Y");G[K]=!0});
return function(K){return G[K]===!0}};_.usC=function(){if(!_.Ks.addEventListener||!Object.defineProperty)return!1;var m=!1,G=Object.defineProperty({},"passive",{get:function(){m=!0}});
try{var K=function(){};
_.Ks.addEventListener("test",K,G);_.Ks.removeEventListener("test",K,G)}catch(W){}return m}();var hjl;_.Po=function(m){var G=m.destination;var K=m.iframe;var W=m.origin;var L=m.channelName===void 0?"ZNWN1d":m.channelName;var A=m.onMessage===void 0?void 0:m.onMessage;m=m.onEstablished===void 0?void 0:m.onEstablished;return hjl({destination:G,getSource:function(){return K.contentWindow},
originVerifier:W instanceof YyG?W:typeof W==="function"?new YyG(W):new YyG(rt0(W)),channelName:L,onMessage:A,onEstablished:m})};
hjl=function(m){var G=m.destination;var K=m.getSource;var W=m.originVerifier;var L=m.token===void 0?void 0:m.token;var A=m.channelName;var O=m.onMessage===void 0?void 0:m.onMessage;var c=m.onEstablished===void 0?void 0:m.onEstablished;return new AtB(new Lbo(function(u,h){var J=function(N){N.source&&N.source===K()&&W.verify(N.origin)&&(N.data.n||N.data)===A&&(G.removeEventListener("message",J,!1),L&&N.data.t!==L?h(Error("Z`"+A+"`"+L+"`"+N.data.t)):(u(ct2(N.ports[0],O)),c&&c(N)))};
G.addEventListener("message",J,!1)}))};var pzR=function(m){try{m()}catch(G){WJ(G)}};var N5F=function(m){var G=this;var K=m.getMessageType;var W=m.onUnregisteredMessage===void 0?function(){}:m.onUnregisteredMessage;
var L=m.onBeforeRegisteredMessage===void 0?function(){}:m.onBeforeRegisteredMessage;
m=m.onAfterRegisteredMessage===void 0?function(){}:m.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=K;this.onUnregisteredMessage_=W;this.onBeforeRegisteredMessage_=L;this.onAfterRegisteredMessage_=m;this.onMessage=function(A){return JtX(G,A)}};
N5F.prototype.register=function(m,G){this.registry_.set(m,G);return this};
var JtX=function(m,G){var K=m.getMessageType_(G.data),W=m.registry_.get(K);W?(pzR(function(){return m.onBeforeRegisteredMessage_(G,K)}),pzR(function(){return W(G)}),pzR(function(){return m.onAfterRegisteredMessage_(G,K)})):pzR(function(){return m.onUnregisteredMessage_(G,K)})};var Dp4=function(m){this.JSC$9266_channel_=m},Fb4,QOS;
Dp4.prototype.send=function(m,G,K){this.JSC$9266_channel_.send(dz(m),G,K)};
_.tyk=function(m,G){return function(K){var W=new m(K.data);return G(new wzK(W,K.channel))}};
Fb4=function(m){return function(G){return m(new wzK(G.data,new Dp4(G.channel)))}};
QOS=function(m,G){return Fb4(_.tyk(m,G))};var aOP=function(m,G,K,W){this.registry=m;this.delegate=G;this.receiveMessageConstructor=K;this.createInitMessage=W;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},Yyd=function(m){var G=new N5F({getMessageType:m.getPayloadCase});
return new aOP(G,new Dp4(_.Po({iframe:m.child,destination:window,origin:m.origin,channelName:m.channelName,onMessage:QOS(m.receiveMessageConstructor,G.onMessage)})),m.receiveMessageConstructor,m.createInitMessage)},orK=function(m,G){m.createInitMessage=G};
aOP.prototype.send=function(m){if(!this.initialised)throw new dL("Attempted to send a message before initialisation.");this.delegate.send(m)};
var nrF=function(m,G){return _.Y(function(K){if(!m.initialised)throw new dL("Attempted to send a message before initialisation.");return K.return(new Promise(function(W){m.delegate.send(G,QOS(m.receiveMessageConstructor,W))}))})};
aOP.prototype.init=function(){var m=this;return _.Y(function(G){if(m.initialised)throw new dL("Attempted to initialise twice. The SDK can only be initialised once.");if(m.createInitMessage!==void 0){var K=m.delegate,W=K.send,L=m.createInitMessage;var A=new yCR;var O=[].concat(_.Bz(m.features));A=_.Lp(A,1,O,_.OO);W.call(K,L.call(m,A))}m.initialised=!0;_.ey(G)})};
var yI=function(m,G){if(m.initialised)throw new dL('Attempted to set up API "'+G+'" after initialisation. All APIs must be set up before initialising the SDK.');m.features.add(G);return m.registry};
_.e_.Object.defineProperties(aOP.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var bZo=function(m){this.channel=m;this.registered=!1};
bZo.prototype.update=function(m){if(this.channel.isInitialised){if(!this.registered)throw new dL("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var G=new j4;var K=new eC0;K=_.x2(K,1,m);G=_.Cp(G,2,VG,K);this.channel.send(G)}else this.register();this.JSC$9280_audioEnabled=m};
bZo.prototype.register=function(){yI(this.channel,1);this.registered=!0};
bZo.prototype.isAudioEnabled=function(){return this.JSC$9280_audioEnabled};var vrC=function(m){this.channel=m};
_.w=vrC.prototype;_.w.onFirstFrameReady=function(m){yI(this.channel,2).register(11,function(G){G=_.Yi(G.data,l3k,11,Z8);if(!G)throw new dL("Unexpectedly nonexistent GameFirstFrameReadyEvent");m(_.wL(G,1))})};
_.w.onReady=function(m){yI(this.channel,2).register(4,function(G){G=_.Yi(G.data,M4C,4,Z8);if(!G)throw new dL("Unexpectedly nonexistent GameReadyEvent");m(_.wL(G,1))})};
_.w.onLevelComplete=function(m){yI(this.channel,2).register(5,function(G){G=_.Yi(G.data,Txl,5,Z8);if(!G)throw new dL("Unexpectedly nonexistent LevelCompleteEvent");m(_.wL(G,1),_.Z5(G,2))})};
_.w.onGameOver=function(m){yI(this.channel,2).register(6,function(G){G=_.Yi(G.data,Bx0,6,Z8);if(!G)throw new dL("Unexpectedly nonexistent GameOverEvent");m(_.wL(G,1))})};
_.w.pause=function(){var m=this;if(!this.channel.isInitialised)return yI(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new dL("Using unregistered Game Feature: pause.");var G=UI2();return new Promise(function(K){return _.Y(function(W){if(W.nextAddress==1)return W.yield(nrF(m.channel,G),2);K();_.ey(W)})})};
_.w.resume=function(){var m=this;if(!this.channel.isInitialised)return yI(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new dL("Using unregistered Game Feature: resume.");var G=zCo();return new Promise(function(K){return _.Y(function(W){if(W.nextAddress==1)return W.yield(nrF(m.channel,G),2);K();_.ey(W)})})};var $pS=function(m){this.channel=m};
$pS.prototype.onReady=function(m){yI(this.channel,5).register(8,function(G){if(!_.Yi(G.data,mpX,8,Z8))throw new dL("Unexpectedly nonexistent PageReadyEvent");m()})};var sOB=function(m){this.channel=m};
sOB.prototype.onChange=function(m){yI(this.channel,3).register(7,function(G){G=_.Yi(G.data,iZS,7,Z8);if(!G)throw new dL("Unexpectedly nonexistent ScoreEvent");m(_.wL(G,1),_.Z5(G,2))})};var qyX={load:function(){throw new dL("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new dL("Storage used, but storage.onSave() listener not set!");}},Eri=function(m){this.channel=m;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},HZR=function(m){yI(m.channel,4).register(2,qyX.load).register(3,qyX.save);
m.initialSetupDone=!0};
Eri.prototype.onLoad=function(m){this.initialSetupDone||HZR(this);this.loadRegistered||(this.loadRegistered=!0,yI(this.channel,4).register(2,function(G){var K,W,L;return _.Y(function(A){if(A.nextAddress==1){K=_.Yi(G.data,Gp4,2,Z8);if(!K)throw new dL("Unexpectedly nonexistent StorageLoad");W=_.wL(K,1);return A.yield(m(W),2)}L=A.yieldResult;var O=G.reply,c=new j4;var u=new XNi;u=_.LB(u,1,W);u=_.zd(u,2,_.j0(L,!1));c=_.Cp(c,3,VG,u);O.call(G,c);_.ey(A)})}))};
Eri.prototype.onSave=function(m){this.initialSetupDone||HZR(this);this.saveRegistered||(this.saveRegistered=!0,yI(this.channel,4).register(3,function(G){var K,W,L;return _.Y(function(A){if(A.nextAddress==1){K=_.Yi(G.data,Kbo,3,Z8);if(!K)throw new dL("Unexpectedly nonexistent StorageSave");W=_.wL(K,1);L=NzK(K.getData());return A.yield(m(W,L),2)}var O=G.reply,c=new j4;var u=new SeP;u=_.LB(u,1,W);c=_.Cp(c,4,VG,u);O.call(G,c);_.ey(A)})}))};var IOo=function(m){this.channel=m};
IOo.prototype.update=function(m){if(!this.channel.features.has(6))throw new dL("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var G=new j4,K=new RC0;m=_.ko(K,1,m);G=_.Cp(G,6,VG,m);this.channel.send(G)};
IOo.prototype.register=function(){yI(this.channel,6)};var jOi=function(m){this.channel=m;this.userActivityLoggingIntervalMs=0};
jOi.prototype.onUserActivity=function(m,G){this.userActivityLoggingIntervalMs=G;yI(this.channel,7).register(9,function(K){if(!_.Yi(K.data,WbB,9,Z8))throw new dL("Unexpectedly nonexistent ClickEvent");m()})};var kpG=function(m){var G=this;this.channel=m;this.init=this.channel.init.bind(this.channel);this.page=new $pS(this.channel);this.game=new vrC(this.channel);this.audio=new bZo(this.channel);this.score=new sOB(this.channel);this.storage=new Eri(this.channel);this.style=new IOo(this.channel);this.userActivity=new jOi(this.channel);orK(this.channel,function(K){var W=new usv;K=_.ko(W,1,K);K=_.rL(K,3,G.userActivity.userActivityLoggingIntervalMs);W=G.audio.isAudioEnabled();W!==void 0&&_.x2(K,2,W);W=new j4;
return _.Cp(W,5,VG,K)})};var C9S=function(){this.timedFunctionContext=0};
C9S.prototype.timeExecution=function(m,G){var K=this;return function(){var W=_.mb.apply(0,arguments);K.timedFunctionContext=m;return G.apply(null,_.Bz(W))}};var Vy0=function(){var m={};this.priorityTasks=(m[3]=[],m[2]=[],m[1]=[],m);this.isFlushing=!1},Vu=function(m,G,K){var W=ZZK(m,K);
m.priorityTasks[K].push(G);W&&m.priorityTasks[K].length===1&&m.flush()},ZZK=function(m,G){return Object.keys(m.priorityTasks).map(function(K){return Number(K)}).filter(function(K){return!isNaN(K)&&K>G}).every(function(K){return m.priorityTasks[K].length===0})};
Vy0.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(m){return m.length>0});)dpX(this,3),dpX(this,2),dpX(this,1)}catch(m){throw Object.values(this.priorityTasks).forEach(function(G){return void G.splice(0,G.length)}),m;
}finally{this.isFlushing=!1}}};
var dpX=function(m,G){for(;ZZK(m,G)&&m.priorityTasks[G].length>0;)m.priorityTasks[G][0](),m.priorityTasks[G].shift()};
_.e_.Object.defineProperties(Vy0.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(m){return m.length>0})}}});var Fb9={};var P90=globalThis.trustedTypes,pzP=P90,N5M;var dx=function(m){this.privateDoNotAccessOrElseWrappedResourceUrl=m};
dx.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var ytR,ejo,fOk,xpo,XzR,SyK,Rj0,Up2;ytR=_.nY([""]);ejo=oB(["\x00"],["\\0"]);fOk=oB(["\n"],["\\n"]);xpo=oB(["\x00"],["\\u0000"]);XzR=_.nY([""]);SyK=oB(["\x00"],["\\0"]);Rj0=oB(["\n"],["\\n"]);Up2=oB(["\x00"],["\\u0000"]);_.zjP=tyG(function(m){return m(ytR)})||tyG(function(m){return m(ejo)})||tyG(function(m){return m(fOk)})||tyG(function(m){return m(xpo)});
_.lOB=_.e4(XzR)&&_.e4(SyK)&&_.e4(Rj0)&&_.e4(Up2);var BN;_.fp=function(m,G){this.privateDoNotAccessOrElseWrappedUrl=G};
_.fp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.B5C=S4("about:blank");BN=S4("about:invalid#zClosurez");var QO6=function(m){this.isValid=m},MyS=new QO6(function(m){return/^[^:]*([/?#]|$)/.test(m)}),T5X=z7("data"),mjl=z7("http"),i6R=z7("https"),GFF=z7("ftp"),KKl=z7("mailto"),WKo=z7("intent"),LK0=z7("vnd.youtube"),aOF=[T5X,
mjl,i6R,KKl,GFF,MyS],nrM=Z3(function(){return typeof URL==="function"}),AUk=["data:",
"http:","https:","mailto:","ftp:"],vrv=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var KZ=function(m){this.privateDoNotAccessOrElseWrappedHtml=m};
KZ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var wGF=Z3(function(){return new KZ(P90?P90.emptyHTML:"")});var wEB={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"},sOG=function(m,G){var K=Error.call(this,m+" cannot be used with intent "+wEB[G]);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.type=m;this.intent=G;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.n(sOG,Error);_.Yr=function(m){this.privateDoNotAccessOrElseWrappedScript=m};
_.Yr.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ErV=function(m){this.privateDoNotAccessOrElseWrappedAttributePrefix=m};
ErV.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var HZP="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Fs=function(m){this.privateDoNotAccessOrElseWrappedStyleSheet=m};
Fs.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var c3P=function(m){var G=_.Cn("window.location.href");m==null&&(m='Unknown Error of type "null/undefined"');if(typeof m==="string")return{message:m,name:"Unknown error",lineNumber:"Not available",fileName:G,stack:"Not available"};var K=!1;try{var W=m.lineNumber||m.line||"Not available"}catch(O){W="Not available",K=!0}try{var L=m.fileName||m.filename||m.sourceURL||_.Ks.$googDebugFname||G}catch(O){L="Not available",K=!0}G=gyP(m);if(!(!K&&m.lineNumber&&m.fileName&&m.stack&&m.message&&m.name)){K=m.message;
if(K==null){if(m.constructor&&m.constructor instanceof Function){if(m.constructor.name)K=m.constructor.name;else if(K=m.constructor,eZ[K])K=eZ[K];else{K=String(K);if(!eZ[K]){var A=/function\s+([^\(]+)/m.exec(K);eZ[K]=A?A[1]:"[Anonymous]"}K=eZ[K]}K='Unknown Error of type "'+K+'"'}else K="Unknown Error of unknown type";typeof m.toString==="function"&&Object.prototype.toString!==m.toString&&(K+=": "+m.toString())}return{message:K,name:m.name||"UnknownError",lineNumber:W,fileName:L,stack:G||"Not available"}}return{message:m.message,
name:m.name,lineNumber:m.lineNumber,fileName:m.fileName,stack:G}},gyP=function(m,G){G||(G={});
G[O6S(m)]=!0;var K=m.stack||"",W=m.cause;W&&!G[O6S(W)]&&(K+="\nCaused by: ",W.stack&&W.stack.indexOf(W.toString())==0||(K+=typeof W==="string"?W:W.message+"\n"),K+=gyP(W,G));m=m.errors;if(Array.isArray(m)){W=1;var L;for(L=0;L<m.length&&!(W>4);L++)G[O6S(m[L])]||(K+="\nInner error "+W++ +": ",m[L].stack&&m[L].stack.indexOf(m[L].toString())==0||(K+=typeof m[L]==="string"?m[L]:m[L].message+"\n"),K+=gyP(m[L],G));L<m.length&&(K+="\n... "+(m.length-L)+" more inner errors")}return K},O6S=function(m){var G=
"";
typeof m.toString==="function"&&(G=""+m);return G+m.stack},eZ={};var cU4,Ui,Zg,YiX,rUS,h_S,Ii,Jj,JUB;cU4=function(m,G){for(var K=m.split("%s"),W="",L=Array.prototype.slice.call(arguments,1);L.length&&K.length>1;)W+=K.shift()+L.shift();return W+K.join("%s")};
_.zF=function(m){return encodeURIComponent(String(m))};
Ui=function(m){return decodeURIComponent(m.replace(/\+/g," "))};
Zg=function(m){IPk.test(m)&&(m.indexOf("&")!=-1&&(m=m.replace(vko,"&amp;")),m.indexOf("<")!=-1&&(m=m.replace($GP,"&lt;")),m.indexOf(">")!=-1&&(m=m.replace(sFB,"&gt;")),m.indexOf('"')!=-1&&(m=m.replace(qok,"&quot;")),m.indexOf("'")!=-1&&(m=m.replace(Ekl,"&#39;")),m.indexOf("\x00")!=-1&&(m=m.replace(HlF,"&#0;")));return m};
_.uJK=function(m){return _.cJ(m,"&")?"document"in _.Ks?YiX(m):rUS(m):m};
YiX=function(m){var G={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var K=_.Ks.document.createElement("div");return m.replace(h_S,function(W,L){var A=G[W];if(A)return A;L.charAt(0)=="#"&&(L=Number("0"+L.slice(1)),isNaN(L)||(A=String.fromCharCode(L)));A||(_.Np(K,Wz(W+" ")),A=K.firstChild.nodeValue.slice(0,-1));return G[W]=A})};
rUS=function(m){return m.replace(/&([^;]+);/g,function(G,K){switch(K){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return K.charAt(0)!="#"||(K=Number("0"+K.slice(1)),isNaN(K))?G:String.fromCharCode(K)}})};
h_S=/&([^;\s<&]+);?/g;_.NNd=function(m){return String(m).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.pEF=String.prototype.repeat?function(m,G){return m.repeat(G)}:function(m,G){return Array(G+1).join(m)};
_.fg=function(m,G){if(!Number.isFinite(m))return String(m);m=String(m);var K=m.indexOf(".");K===-1&&(K=m.length);var W=m[0]==="-"?"-":"";W&&(m=m.substring(1));return W+(0,_.pEF)("0",Math.max(0,G-K))+m};
Ii=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.jI()).toString(36)};
Jj=function(m){for(var G=0,K=0;K<m.length;++K)G=31*G+m.charCodeAt(K)>>>0;return G};
_.Sl=function(m){return String(m).replace(/\-([a-z])/g,function(G,K){return K.toUpperCase()})};
_.XS=function(m){return String(m).replace(/([A-Z])/g,"-$1").toLowerCase()};
JUB=function(m){return m.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(G,K,W){return K+W.toUpperCase()})};var NDC=function(){this.names=new Map};
NDC.prototype.getName=function(m){var G=this.names.get(m);if(G)return G;var K;G=(K=m.description)!=null?K:Ii();this.names.set(m,G);return G};var Djk=function(m){var G=Error.call(this,m?m.length+" errors occurred during unsubscription:\n"+m.map(function(K,W){return W+1+") "+K.toString()}).join("\n  "):"");
this.message=G.message;"stack"in G&&(this.stack=G.stack);this.errors=m;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.n(Djk,Error);var aO=function(m){this.initialTeardown=m;this.closed=!1;this._teardowns=this._parentage=null};
_.w=aO.prototype;
_.w.unsubscribe=function(){if(!this.closed){this.closed=!0;var m=this._parentage;if(Array.isArray(m))for(var G=_.g(m),K=G.next();!K.done;K=G.next())K.value.remove(this);else m==null||m.remove(this);G=this.initialTeardown;if(Qe(G))try{G()}catch(A){var W=A instanceof Djk?A.errors:[A]}var L=this._teardowns;if(L)for(this._teardowns=null,G=_.g(L),K=G.next();!K.done;K=G.next()){K=K.value;try{Qe(K)?K():K.unsubscribe()}catch(A){K=void 0,W=(K=W)!=null?K:[],A instanceof Djk?W=[].concat(_.Bz(W),_.Bz(A.errors)):
W.push(A)}}if(W)throw new Djk(W);}};
_.w.add=function(m){if(m&&m!==this)if(this.closed)Qe(m)?m():m.unsubscribe();else{if(m instanceof aO){if(m.closed||m._hasParent(this))return;m._addParent(this)}var G;(this._teardowns=(G=this._teardowns)!=null?G:[]).push(m)}};
_.w._hasParent=function(m){var G=this._parentage;return G===m||Array.isArray(G)&&G.includes(m)};
_.w._addParent=function(m){var G=this._parentage;this._parentage=Array.isArray(G)?(G.push(m),G):G?[G,m]:m};
_.w._removeParent=function(m){var G=this._parentage;G===m?this._parentage=null:Array.isArray(G)&&Vyo(G,m)};
_.w.remove=function(m){var G=this._teardowns;G&&Vyo(G,m);m instanceof aO&&m._removeParent(this)};
var thB=new aO;thB.closed=!0;aO.JSC$9376_EMPTY=thB;var dpf=function(){setTimeout.apply(null,_.Bz(_.mb.apply(0,arguments)))};var xi=function(m){aO.call(this);this.JSC$9381_isStopped=!1;this.destination=m instanceof xi?m:new X5(!m||Qe(m)?{next:m!=null?m:void 0}:m);ZZd(m)&&m.add(this)};
_.n(xi,aO);xi.JSC$9376_EMPTY=aO.JSC$9376_EMPTY;xi.create=function(m,G,K){return new SZ(m,G,K)};
_.w=xi.prototype;_.w.next=function(m){this.JSC$9381_isStopped||this._next(m)};
_.w.error=function(m){this.JSC$9381_isStopped||(this.JSC$9381_isStopped=!0,this._error(m))};
_.w.complete=function(){this.JSC$9381_isStopped||(this.JSC$9381_isStopped=!0,this._complete())};
_.w.unsubscribe=function(){this.closed||(this.JSC$9381_isStopped=!0,aO.prototype.unsubscribe.call(this))};
_.w._next=function(m){this.destination.next(m)};
_.w._error=function(m){this.destination.error(m);this.unsubscribe()};
_.w._complete=function(){this.destination.complete();this.unsubscribe()};
var X5=function(m){this.partialObserver=m};
X5.prototype.next=function(m){var G=this.partialObserver;if(G.next)try{G.next(m)}catch(K){nZ(K)}};
X5.prototype.error=function(m){var G=this.partialObserver;if(G.error)try{G.error(m)}catch(K){nZ(K)}else nZ(m)};
X5.prototype.complete=function(){var m=this.partialObserver;if(m.complete)try{m.complete()}catch(G){nZ(G)}};
var SZ=function(m,G,K){xi.call(this);var W;Qe(m)||!m?W={next:m!=null?m:void 0,error:G!=null?G:void 0,complete:K!=null?K:void 0}:W=m;this.destination=new X5(W)};
_.n(SZ,xi);SZ.JSC$9376_EMPTY=xi.JSC$9376_EMPTY;SZ.create=xi.create;var qp=typeof Symbol==="function"&&Symbol.observable||"@@observable";var sy=function(m){m&&(this._subscribe=m)};
_.w=sy.prototype;_.w.lift=function(m){var G=new sy;G.source=this;G.operator=m;return G};
_.w.subscribe=function(m,G,K){m=m&&m instanceof xi||m&&Qe(m.next)&&Qe(m.error)&&Qe(m.complete)&&ZZd(m)?m:new SZ(m,G,K);G=this.operator;K=this.source;m.add(G?G.call(m,K):K?this._subscribe(m):this._trySubscribe(m));return m};
_.w._trySubscribe=function(m){try{return this._subscribe(m)}catch(G){m.error(G)}};
_.w.forEach=function(m,G){var K=this;G=ytP(G);return new G(function(W,L){var A=K.subscribe(function(O){try{m(O)}catch(c){L(c),A==null||A.unsubscribe()}},L,W)})};
_.w._subscribe=function(m){var G;return(G=this.source)==null?void 0:G.subscribe(m)};
sy.prototype[qp]=function(){return this};
sy.prototype.pipe=function(){var m=_.mb.apply(0,arguments);return m.length?P9o(m)(this):this};
sy.create=function(m){return new sy(m)};var FKF=function(){var m=Error.call(this,"object unsubscribed");this.message=m.message;"stack"in m&&(this.stack=m.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.n(FKF,Error);var Ib=function(){this.observers=[];this.hasError=this.JSC$9397_isStopped=this.closed=!1;this.thrownError=null};
_.n(Ib,sy);_.w=Ib.prototype;_.w.lift=function(m){var G=new R3(this,this);G.operator=m;return G};
_.w._throwIfClosed=function(){if(this.closed)throw new FKF;};
_.w.next=function(m){this._throwIfClosed();if(!this.JSC$9397_isStopped){var G=this.observers.slice();G=_.g(G);for(var K=G.next();!K.done;K=G.next())K.value.next(m)}};
_.w.error=function(m){this._throwIfClosed();if(!this.JSC$9397_isStopped){this.hasError=this.JSC$9397_isStopped=!0;this.thrownError=m;for(var G=this.observers;G.length;)G.shift().error(m)}};
_.w.complete=function(){this._throwIfClosed();if(!this.JSC$9397_isStopped){this.JSC$9397_isStopped=!0;for(var m=this.observers;m.length;)m.shift().complete()}};
_.w.unsubscribe=function(){this.JSC$9397_isStopped=this.closed=!0;this.observers=null};
_.w._trySubscribe=function(m){this._throwIfClosed();return sy.prototype._trySubscribe.call(this,m)};
_.w._subscribe=function(m){this._throwIfClosed();this._checkFinalizedStatuses(m);return this._innerSubscribe(m)};
_.w._innerSubscribe=function(m){var G=this,K=this.JSC$9397_isStopped,W=this.observers;return this.hasError||K?aO.JSC$9376_EMPTY:(W.push(m),new aO(function(){return Vyo(G.observers,m)}))};
_.w._checkFinalizedStatuses=function(m){var G=this.thrownError,K=this.JSC$9397_isStopped;this.hasError?m.error(G):K&&m.complete()};
Ib.create=function(m,G){return new R3(m,G)};
var R3=function(m,G){Ib.call(this);this.destination=m;this.source=G};
_.n(R3,Ib);R3.create=Ib.create;R3.prototype.next=function(m){var G,K;(G=this.destination)==null||(K=G.next)==null||K.call(G,m)};
R3.prototype.error=function(m){var G,K;(G=this.destination)==null||(K=G.error)==null||K.call(G,m)};
R3.prototype.complete=function(){var m,G;(m=this.destination)==null||(G=m.complete)==null||G.call(m)};
R3.prototype._subscribe=function(m){var G,K;return(K=(G=this.source)==null?void 0:G.subscribe(m))!=null?K:aO.JSC$9376_EMPTY};var Qp=function(m){Ib.call(this);this._value=m};
_.n(Qp,Ib);Qp.create=Ib.create;Qp.prototype._subscribe=function(m){var G=Ib.prototype._subscribe.call(this,m);!G.closed&&m.next(this._value);return G};
Qp.prototype.getValue=function(){var m=this.thrownError,G=this._value;if(this.hasError)throw m;this._throwIfClosed();return G};
Qp.prototype.next=function(m){Ib.prototype.next.call(this,this._value=m)};
_.e_.Object.defineProperties(Qp.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var K6=new sy(function(m){return m.complete()});var XzP=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var lOG=function(m){return m&&typeof m.length==="number"&&typeof m!=="function"};var Qbo={now:function(){return(Qbo.delegate||Date).now()},
delegate:void 0};var Nj=function(m,G,K){m=m===void 0?Infinity:m;G=G===void 0?Infinity:G;K=K===void 0?Qbo:K;Ib.call(this);this.bufferSize=m;this.windowTime=G;this.timestampProvider=K;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=G===Infinity;this.bufferSize=Math.max(1,m);this.windowTime=Math.max(1,G)};
_.n(Nj,Ib);Nj.create=Ib.create;Nj.prototype.next=function(m){var G=this.buffer,K=this.infiniteTimeWindow,W=this.timestampProvider,L=this.windowTime;this.JSC$9397_isStopped||(G.push(m),!K&&G.push(W.now()+L));a10(this);Ib.prototype.next.call(this,m)};
Nj.prototype._subscribe=function(m){this._throwIfClosed();a10(this);for(var G=this._innerSubscribe(m),K=this.infiniteTimeWindow,W=this.buffer.slice(),L=0;L<W.length&&!m.closed;L+=K?1:2)m.next(W[L]);this._checkFinalizedStatuses(m);return G};
var a10=function(m){var G=m.bufferSize,K=m.timestampProvider,W=m.buffer;m=m.infiniteTimeWindow;var L=(m?1:2)*G;G<Infinity&&L<W.length&&W.splice(0,W.length-L);if(!m){G=K.now();K=0;for(m=1;m<W.length&&W[m]<=G;m+=2)K=m;K&&W.splice(0,K+1)}};var nyo=function(m,G){G=G===void 0?oyR:G;this.schedulerActionCtor=m;this.now=G};
nyo.prototype.schedule=function(m,G,K){G=G===void 0?0:G;return(new this.schedulerActionCtor(this,m)).schedule(K,G)};
var oyR=Qbo.now;var e_d=function(){var m=Error.call(this,"no elements in sequence");this.message=m.message;"stack"in m&&(this.stack=m.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.n(e_d,Error);var Uy=function(m,G,K,W,L){xi.call(this,m);this.onUnsubscribe=L;G&&(this._next=function(A){try{G(A)}catch(O){this.destination.error(O)}});
K&&(this._error=function(A){try{K(A)}catch(O){this.destination.error(O)}this.unsubscribe()});
W&&(this._complete=function(){try{W()}catch(A){this.destination.error(A)}this.unsubscribe()})};
_.n(Uy,xi);Uy.JSC$9376_EMPTY=xi.JSC$9376_EMPTY;Uy.create=xi.create;Uy.prototype.unsubscribe=function(){var m;this.closed||(m=this.onUnsubscribe)!=null&&m.call(this);xi.prototype.unsubscribe.call(this)};var p6=function(m,G){this.source=m;this.subjectFactory=G;this._subject=null;this._refCount=0;this._connection=null};
_.n(p6,sy);p6.create=sy.create;p6.prototype._subscribe=function(m){return b62(this).subscribe(m)};
var b62=function(m){var G=m._subject;if(!G||G.JSC$9397_isStopped)m._subject=m.subjectFactory();return m._subject};
p6.prototype._teardown=function(){this._refCount=0;var m=this._connection;this._subject=this._connection=null;m==null||m.unsubscribe()};
p6.prototype.connect=function(){var m=this,G=this._connection;if(!G){G=this._connection=new aO;var K=b62(this);G.add(this.source.subscribe(new Uy(K,void 0,function(W){m._teardown();K.error(W)},function(){m._teardown();
K.complete()},function(){return m._teardown()})));
G.closed&&(this._connection=null,G=aO.JSC$9376_EMPTY)}return G};var gyF=Array.isArray;var cU9=Array.isArray,vyB=Object,Yif=vyB.getPrototypeOf,rU6=vyB.prototype,uJd=vyB.keys;var Tp=function(m,G,K){xi.call(this,m);this._next=G;this.shouldComplete=K};
_.n(Tp,xi);Tp.JSC$9376_EMPTY=xi.JSC$9376_EMPTY;Tp.create=xi.create;Tp.prototype._complete=function(){this.shouldComplete()?xi.prototype._complete.call(this):this.unsubscribe()};var a1o=["addListener","removeListener"],Qbd=["addEventListener","removeEventListener"],nyd=["on","off"];var UA=function(){aO.call(this)};
_.n(UA,aO);UA.JSC$9376_EMPTY=aO.JSC$9376_EMPTY;UA.prototype.schedule=function(){return this};var $j2=function(m,G){return setInterval.apply(null,[m,G].concat(_.Bz(_.mb.apply(2,arguments))))};var zB=function(m,G){aO.call(this);this.scheduler=m;this.work=G;this.pending=!1};
_.n(zB,UA);zB.JSC$9376_EMPTY=UA.JSC$9376_EMPTY;zB.prototype.schedule=function(m,G){G=G===void 0?0:G;if(this.closed)return this;this.state=m;m=this.id;var K=this.scheduler;m!=null&&(this.id=sbK(this,m,G));this.pending=!0;this.delay=G;this.id=this.id||this.requestAsyncId(K,this.id,G);return this};
zB.prototype.requestAsyncId=function(m,G,K){K=K===void 0?0:K;return $j2(m.flush.bind(m,this),K)};
var sbK=function(m,G,K){K=K===void 0?0:K;if(K!=null&&m.delay===K&&m.pending===!1)return G;clearInterval(G)};
zB.prototype.execute=function(m,G){if(this.closed)return Error("ia");this.pending=!1;if(m=this._execute(m,G))return m;this.pending===!1&&this.id!=null&&(this.id=sbK(this,this.id,null))};
zB.prototype._execute=function(m){var G=!1;try{this.work(m)}catch(W){G=!0;var K=!!W&&W||Error(W)}if(G)return this.unsubscribe(),K};
zB.prototype.unsubscribe=function(){if(!this.closed){var m=this.id,G=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Vyo(G,this);m!=null&&(this.id=sbK(this,m,null));this.delay=null;UA.prototype.unsubscribe.call(this)}};var qiS=function(m,G){G=G===void 0?oyR:G;nyo.call(this,m,G);this.actions=[];this.active=!1;this.scheduled=void 0};
_.n(qiS,nyo);qiS.prototype.flush=function(m){var G=this.actions;if(this.active)G.push(m);else{var K;this.active=!0;do if(K=m.execute(m.state,m.delay))break;while(m=G.shift());this.active=!1;if(K){for(;m=G.shift();)m.unsubscribe();throw K;}}};var g$=new sy(oO);var b6J=Array.isArray;var lA=function(m,G){zB.call(this,m,G);this.scheduler=m;this.work=G};
_.n(lA,zB);lA.JSC$9376_EMPTY=zB.JSC$9376_EMPTY;lA.prototype.schedule=function(m,G){G=G===void 0?0:G;if(G>0)return zB.prototype.schedule.call(this,m,G);this.delay=G;this.state=m;this.scheduler.flush(this);return this};
lA.prototype.execute=function(m,G){return G>0||this.closed?zB.prototype.execute.call(this,m,G):this._execute(m,G)};
lA.prototype.requestAsyncId=function(m,G,K){K=K===void 0?0:K;return K!=null&&K>0||K==null&&this.delay>0?zB.prototype.requestAsyncId.call(this,m,G,K):m.flush(this)};var Eyk=function(){qiS.apply(this,arguments)};
_.n(Eyk,qiS);var AUG=new Eyk(lA);var H6l=function(){this.performanceMonitor=new C9S;this.queue=new Vy0;this.internalSymbol=Symbol();this.debugNames=new NDC};
H6l.prototype.getOnBackgrounded=function(){return g$};
_.e_.Object.defineProperties(H6l.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var Bo=function(m,G){G=Error.call(this,G?m+": "+G:String(m));this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=m;this.__proto__=Bo.prototype;this.name=String(m)};
_.n(Bo,Error);var OR=function(m){Bo.call(this,1E3,'sfr:"'+m+'"');this.measurementStrategyFailureReason=m;this.__proto__=OR.prototype};
_.n(OR,Bo);var ct=function(){Bo.call(this,1003);this.__proto__=ct.prototype};
_.n(ct,Bo);var ME=function(){Bo.call(this,1009);this.__proto__=ME.prototype};
_.n(ME,Bo);var I1i=function(){Bo.call(this,1011);this.__proto__=I1i.prototype};
_.n(I1i,Bo);var jbk=function(){Bo.call(this,1007);this.__proto__=ct.prototype};
_.n(jbk,Bo);var AI=function(m){Bo.call(this,1004,String(m));this.inputObservableIndex=m;this.__proto__=AI.prototype};
_.n(AI,Bo);var btv=function(m){Bo.call(this,1010,m);this.__proto__=vld.prototype};
_.n(btv,Bo);var vld=function(m){Bo.call(this,1005,m);this.__proto__=vld.prototype};
_.n(vld,Bo);var kFo=function(m){var G=_.mb.apply(1,arguments),K=this;this.orderedFactories=[];this.orderedFactories.push(m);G.forEach(function(W){K.orderedFactories.push(W)})};
kFo.prototype.isSupported=function(m){return this.orderedFactories.some(function(G){return G.isSupported(m)})};
kFo.prototype.makeBeacon=function(m,G){for(var K=0;K<this.orderedFactories.length;K++)if(this.orderedFactories[K].isSupported(G))return this.orderedFactories[K].makeBeacon(m,G);throw new ME;};var hRf=Symbol("ja"),C$o=Symbol("ka"),wD=function(m,G){this.value=m;this.timeline=G},AU=function(m,G){if(G.timeline!==m.timeline)throw new jbk;
return m.value-G.value};
_.w=wD.prototype;_.w.equals=function(m){return AU(this,m)===0};
_.w.maximum=function(m){if(m.timeline!==this.timeline)throw new jbk;return this.value>=m.value?this:m};
_.w.round=function(){return new wD(Math.round(this.value),this.timeline)};
_.w.add=function(m){return new wD(this.value+m,this.timeline)};
_.w.toString=function(){return String(this.value)};var TB=function(m,G){this.context=m;this.JSC$9503_pinger=G};
TB.prototype.isSupported=function(m){return this.JSC$9503_pinger.isSupported(m)};
TB.prototype.makeBeacon=function(m,G){if(!this.isSupported(G))throw new ME;return new mW(this.context,this.JSC$9503_pinger,G!=null?G:void 0,m)};
var mW=function(m,G,K,W){var L=this;this.JSC$9509_pinger=G;this.properties=K;this.url=W;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var A;this.method=(A=K==null?void 0:K.beaconMethod)!=null?A:"GET";this.backgroundedSubscription=m.getOnBackgrounded().subscribe(function(){L.sendNow()})};
mW.prototype.deactivate=function(){this.internalIsPending=!1};
mW.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9509_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var m,G;this.JSC$9509_pinger.pingWithHeadersAndBody((m=this.properties)!=null?m:{},this.customHeaders,(G=this.body)!=null?G:"",this.url)}else this.JSC$9509_pinger.ping(this.url);this.internalIsPending=!1}catch(K){}else this.internalIsPending=!1};
mW.prototype.setHeader=function(m,G){this.customHeaders.set(m,G)};
_.e_.Object.defineProperties(mW.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Z6X=function(){for(var m=_.g(_.mb.apply(0,arguments)),G=m.next();!G.done;G=m.next())if(G=G.value,G.available()){this.timeProvider=G;return}this.timeProvider=new Vh0};
_.w=Z6X.prototype;_.w.available=function(){return this.timeProvider.available()};
_.w.now=function(){return this.timeProvider.now()};
_.w.setTimeout=function(m,G){return this.timeProvider.setTimeout(m,G)};
_.w.clearTimeout=function(m){this.timeProvider.clearTimeout(m)};
_.w.interval=function(m,G){var K=this.intervalObservable(m).subscribe(G);return function(){return void K.unsubscribe()}};
_.w.intervalObservable=function(m){return this.timeProvider.intervalObservable(m)};
_.e_.Object.defineProperties(Z6X.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Vh0=function(){this.timeline=Symbol()};
_.w=Vh0.prototype;_.w.available=function(){return!1};
_.w.now=function(){return new wD(0,this.timeline)};
_.w.setTimeout=function(){return 0};
_.w.clearTimeout=function(){};
_.w.interval=function(){return function(){}};
_.w.intervalObservable=function(){return g$};var i7=function(m,G){this.intrinsicFunctionNamespace=m;this.performanceMonitor=G};
_.w=i7.prototype;_.w.setTimeout=function(m,G){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,m),G)};
_.w.clearTimeout=function(m){this.intrinsicFunctionNamespace.clearTimeout(m)};
_.w.interval=function(m,G){var K=this.intervalObservable(m).subscribe(G);return function(){return void K.unsubscribe()}};
_.w.intervalObservable=function(m){var G=this;return new sy(function(K){var W=0,L=G.intrinsicFunctionNamespace.setInterval(function(){K.next(W++)},m);
return function(){G.intrinsicFunctionNamespace.clearInterval(L)}})};
_.w.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var djK=function(m,G){i7.call(this,m,G);this.timeline=C$o};
_.n(djK,i7);djK.prototype.now=function(){return new wD(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
djK.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&i7.prototype.available.call(this)};var P$F=function(m,G){i7.call(this,m,G);this.timeline=hRf};
_.n(P$F,i7);P$F.prototype.now=function(){return new wD(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
P$F.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&i7.prototype.available.call(this)};var e_o=function(m){this.context=m;if(yU4===void 0)a:{var G,K,W=(G=m.global)==null?void 0:(K=G.document)==null?void 0:K.createElement("meta");if(W)try{W.httpEquiv="origin-trial";W.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";m.global.document.head.append(W);yU4=W;break a}catch(L){}yU4=void 0}},
yU4;
e_o.prototype.isSupported=function(m){return C$d(this.context)!==void 0&&!(m==null||!m.endOfSession)&&!Gs(this.context)&&!(m==null?0:m.attributionEnabled)&&!(m==null?0:m.customHeaders)&&!(m==null?0:m.customBody)};
e_o.prototype.makeBeacon=function(m,G){if(!this.isSupported(G))throw new ME;return new KV(this.context,m,G)};
var KV=function(m,G,K){this.context=m;this.properties=K;this.JSC$9536_urlWithoutToken=G;var W;this.beaconMethod=(W=K==null?void 0:K.beaconMethod)!=null?W:"GET";m=C$d(this.context);if(m===void 0)throw Error();this.fetchLater=m;f1C(this,xjX(this))},f1C=function(m,G){m.beaconResult&&m.beaconResult.activated||(m.beaconAbort=new AbortController,m.beaconResult=m.fetchLater(G,{method:m.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:m.beaconAbort.signal,activateAfter:96E4}))},xjX=function(m){m=m.JSC$9536_urlWithoutToken;
return(m.slice(-1)[0]==="&"?m:m+"&")+"flapi=1"};
KV.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
KV.prototype.sendNow=function(){};
KV.prototype.setHeader=function(){};
_.e_.Object.defineProperties(KV.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9536_urlWithoutToken},
set:function(m){this.JSC$9536_urlWithoutToken=m;m=xjX(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);f1C(this,m)}},
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 XE4=function(m){this.context=m};
XE4.prototype.isSupported=function(){return!Gs(this.context)&&!!this.context.global.fetch};
XE4.prototype.ping=function(){var m=this;return WE.apply(null,_.Bz(_.mb.apply(0,arguments).map(function(G){return Hz(m.context.global.fetch(G,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(l9(function(K){return K.status===200}))}))).pipe(f1v(function(G){return G}),XE9())};
XE4.prototype.pingWithHeadersAndBody=function(m,G,K){for(var W=_.mb.apply(3,arguments),L=this,A=new Headers,O=_.g(G.entries()),c=O.next();!c.done;c=O.next()){var u=_.g(c.value);c=u.next().value;u=u.next().value;A.set(c,u)}var h,J=(h=m.keepAlive)!=null?h:!1;WE.apply(null,_.Bz(W.map(function(N){return Hz(L.context.global.fetch(N,Object.assign({},{method:String(m.beaconMethod),cache:"no-cache"},J?{keepalive:!0}:{},{mode:"no-cors",headers:A,body:K}))).pipe(l9(function(D){return D.status===200}))}))).pipe(f1v(function(N){return N}),
XE9())};var SiR,PeG,R_B;_.Wb=function(){};
_.IM=function(m){return m};
SiR=function(m){var G=G||0;return function(){return m.apply(this,Array.prototype.slice.call(arguments,0,G))}};
_.LV=function(m){var G=!1,K;return function(){G||(K=m(),G=!0);return K}};
_.AY=function(m,G){var K=0;return function(W){_.Ks.clearTimeout(K);var L=arguments;K=_.Ks.setTimeout(function(){m.apply(void 0,L)},G)}};
PeG=function(m,G){var K=0,W=!1,L=[],A=function(){K=0;W&&(W=!1,O())},O=function(){K=_.Ks.setTimeout(A,G);
var c=L;L=[];m.apply(void 0,c)};
return function(c){L=arguments;K?W=!0:O()}};
R_B=function(m,G){var K=0,W=function(){K=0};
return function(L){K||(K=_.Ks.setTimeout(W,G),m.apply(void 0,arguments))}};var w3=function(m,G,K,W,L){this.allowedElements=m;this.elementPolicies=G;this.allowedGlobalAttributes=K;this.globalAttributePolicies=W;this.globallyAllowedAttributePrefixes=L},Ujo=function(m,G,K){K=m.elementPolicies.get(K);
return(K==null?0:K.has(G))?K.get(G):m.allowedGlobalAttributes.has(G)?{policyAction:1}:(K=m.globalAttributePolicies.get(G))?K:m.globallyAllowedAttributePrefixes&&[].concat(_.Bz(m.globallyAllowedAttributePrefixes)).some(function(W){return G.indexOf(W)===0})?{policyAction:1}:{policyAction:0}};var z_l="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(" "),
l1k=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],BDX="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(" "),
MhF=[["dir",{policyAction:3,conditions:Z3(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Z3(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Z3(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Z3(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],TDP=new w3(new Set(z_l),new Map(l1k),new Set(BDX),new Map(MhF)),m7F=new w3(new Set(z_l.concat(["BUTTON",
"INPUT"])),new Map(l1k),new Set(Z3(function(){return BDX.concat(["class","id","name"])})),new Map(Z3(function(){return MhF.concat([["style",
{policyAction:1}]])})));var iBC,GIF,Wi2;iBC=function(m,G,K,W,L){this.JSC$9593_sanitizerTable=m;this.styleElementSanitizer=G;this.styleAttributeSanitizer=K;this.JSC$9593_resourceUrlPolicy=W;this.JSC$9593_navigationUrlPolicy=L;this.changes=[]};
_.KiX=function(m,G){var K=document.implementation.createHTMLDocument("");m=GIF(m,G,K);K=K.body;K.appendChild(m);K=(new XMLSerializer).serializeToString(K);K=K.slice(K.indexOf(">")+1,K.lastIndexOf("</"));return Wz(K)};
GIF=function(m,G,K){G=Kif(G,K);G=document.createTreeWalker(G,5,function(c){if(c.nodeType===3)c=1;else if(Lio(c))if(c=WiJ(c),c===null)c=2;else{var u=m.JSC$9593_sanitizerTable;c=c!=="FORM"&&(u.allowedElements.has(c)||u.elementPolicies.has(c))?1:2}else c=2;return c});
for(var W=G.nextNode(),L=K.createDocumentFragment(),A=L;W!==null;){var O=void 0;if(W.nodeType===3)m.styleElementSanitizer&&A.nodeName==="STYLE"?(W=m.styleElementSanitizer(W.data),O=m.createTextNode(W)):O=m.createTextNode(W.data);else if(Lio(W))O=Wi2(m,W,K);else throw Error("$");A.appendChild(O);if(W=G.firstChild())A=O;else for(;!(W=G.nextSibling())&&(W=G.parentNode());)A=A.parentNode}return L};
iBC.prototype.createTextNode=function(m){return document.createTextNode(m)};
Wi2=function(m,G,K){var W,L=WiJ(G);K=K.createElement(L);G=G.attributes;for(var A=_.g(G),O=A.next();!O.done;O=A.next()){var c=O.value;O=c.name;c=c.value;var u=Ujo(m.JSC$9593_sanitizerTable,O,L);a:{if(W=u.conditions){W=_.g(W);for(var h=W.next();!h.done;h=W.next()){var J=_.g(h.value);h=J.next().value;J=J.next().value;var N=void 0;if((h=(N=G.getNamedItem(h))==null?void 0:N.value)&&!J.has(h)){W=!1;break a}}}W=!0}if(W)switch(u.policyAction){case 1:b$(K,O,c);break;case 2:throw Error();case 3:b$(K,O,c.toLowerCase());
break;case 4:m.styleAttributeSanitizer?(c=m.styleAttributeSanitizer(c),b$(K,O,c)):b$(K,O,c);break;case 5:m.JSC$9593_resourceUrlPolicy?(u={type:2,attributeName:O,elementName:L},c=GIM(c),(c=m.JSC$9593_resourceUrlPolicy(c,u))&&b$(K,O,c.toString())):b$(K,O,c);break;case 6:if(m.JSC$9593_resourceUrlPolicy){u={type:2,attributeName:O,elementName:L};W=[];c=_.g(c.split(","));for(h=c.next();!h.done;h=c.next())J=_.g(h.value.trim().split(/\s+/,2)),h=J.next().value,J=J.next().value,W.push({url:h,descriptor:J});
c={parts:[]};W=_.g(W);for(h=W.next();!h.done;h=W.next())h=h.value,J=GIM(h.url),(J=m.JSC$9593_resourceUrlPolicy(J,u))&&c.parts.push({url:J.toString(),descriptor:h.descriptor});b$(K,O,AIG(c))}else b$(K,O,c);break;case 7:u=c;if(m.JSC$9593_navigationUrlPolicy){u={type:2,attributeName:O,elementName:L};c=GIM(c);c=m.JSC$9593_navigationUrlPolicy(c,u);if(c===null)break;u=c.toString()}c=u;u=_.bZd(c);u=u!==void 0&&AUk.indexOf(u.toLowerCase())!==-1?c:"about:invalid#zClosurez";b$(K,O,u)}}return K};
_.Li0=Z3(function(){return new iBC(TDP)});
_.AIB=Z3(function(){return new iBC(m7F)});var wt4=function(){this.calledBuild=!1;this.JSC$9605_sanitizerTable=TDP},g2X=function(){wt4.apply(this,arguments)};
_.n(g2X,wt4);g2X.prototype.build=function(){if(this.calledBuild)throw Error("ma");this.calledBuild=!0;return new iBC(this.JSC$9605_sanitizerTable,void 0,void 0,this.JSC$9605_resourceUrlPolicy,this.JSC$9605_navigationUrlPolicy)};var OBB=/[^#]*/;var Ujd={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"},cIX=_.LV(function(){return l1G()}),
rIP=function(){var m=YRo("IFRAME"),G={};
_.Z0(cIX(),function(K){m.sandbox&&m.sandbox.supports&&m.sandbox.supports(K)&&(G[K]=!0)});
return G},YRo=function(m,G){G=G===void 0?document:G;
return G.createElement(String(m).toLowerCase())};var g3;_.YJ=function(m,G,K){return Math.min(Math.max(m,G),K)};
g3=function(m,G,K){return m+K*(G-m)};_.w=_.si.prototype;_.w.clone=function(){return new _.si(this.x,this.y)};
_.w.equals=function(m){return m instanceof _.si&&(this==m?!0:this&&m?this.x==m.x&&this.y==m.y:!1)};
_.w.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.w.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.w.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.w.translate=function(m,G){m instanceof _.si?(this.x+=m.x,this.y+=m.y):(this.x+=Number(m),typeof G==="number"&&(this.y+=G));return this};
_.w.scale=function(m,G){this.x*=m;this.y*=typeof G==="number"?G:m;return this};_.w=_.qj.prototype;_.w.clone=function(){return new _.qj(this.width,this.height)};
_.w.area=function(){return this.width*this.height};
_.w.aspectRatio=function(){return this.width/this.height};
_.w.isEmpty=function(){return!this.area()};
_.w.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.w.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.w.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.w.scale=function(m,G){this.width*=m;this.height*=typeof G==="number"?G:m;return this};var ubi;_.Y2={};ubi="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Y2.add=function(m,G,K){if(m!==null&&G in m)throw Error("oa`"+G);m[G]=K};
_.Y2.clear=function(m){for(var G in m)delete m[G]};
_.Y2.clone=function(m){var G={},K;for(K in m)G[K]=m[K];return G};
_.Y2.contains=function(m,G){return YRd(m,G)};
_.Y2.containsKey=function(m,G){return m!==null&&G in m};
_.Y2.containsValue=YRd;_.Y2.create=hLJ;_.Y2.createImmutableView=function(m){var G=m;Object.isFrozen&&!Object.isFrozen(m)&&(G=Object.create(m),Object.freeze(G));return G};
_.Y2.createSet=ptG;_.Y2.equals=function(m,G){for(var K in m)if(!(K in G)||m[K]!==G[K])return!1;for(var W in G)if(!(W in m))return!1;return!0};
_.Y2.every=function(m,G,K){for(var W in m)if(!G.call(K,m[W],W,m))return!1;return!0};
_.Y2.extend=function(m,G){for(var K,W,L=1;L<arguments.length;L++){W=arguments[L];for(K in W)m[K]=W[K];for(var A=0;A<ubi.length;A++)K=ubi[A],Object.prototype.hasOwnProperty.call(W,K)&&(m[K]=W[K])}};
_.Y2.filter=function(m,G,K){var W={},L;for(L in m)G.call(K,m[L],L,m)&&(W[L]=m[L]);return W};
_.Y2.findKey=rIF;_.Y2.findValue=function(m,G,K){return(G=rIF(m,G,K))&&m[G]};
_.Y2.forEach=function(m,G,K){for(var W in m)G.call(K,m[W],W,m)};
_.Y2.get=function(m,G,K){return m!==null&&G in m?m[G]:K};
_.Y2.getAllPropertyNames=function(m,G,K){if(!m)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return cIf(m);for(var W={};m&&(m!==Object.prototype||G)&&(m!==Function.prototype||K);){for(var L=Object.getOwnPropertyNames(m),A=0;A<L.length;A++)W[L[A]]=!0;m=Object.getPrototypeOf(m)}return cIf(W)};
_.Y2.getAnyKey=function(m){for(var G in m)return G};
_.Y2.getAnyValue=function(m){for(var G in m)return m[G]};
_.Y2.getCount=function(m){var G=0,K;for(K in m)G++;return G};
_.Y2.getKeys=cIf;_.Y2.getSuperClass=function(m){return(m=Object.getPrototypeOf(m.prototype))&&m.constructor};
_.Y2.getValueByKeys=function(m,G){var K=_.XP(G),W=K?G:arguments;for(K=K?0:1;K<W.length;K++){if(m==null)return;m=m[W[K]]}return m};
_.Y2.getValues=function(m){var G=[],K=0,W;for(W in m)G[K++]=m[W];return G};
_.Y2.isEmpty=function(m){for(var G in m)return!1;return!0};
_.Y2.isImmutableView=function(m){return!!Object.isFrozen&&Object.isFrozen(m)};
_.Y2.map=function(m,G,K){var W={},L;for(L in m)W[L]=G.call(K,m[L],L,m);return W};
_.Y2.remove=function(m,G){var K;(K=G in m)&&delete m[G];return K};
_.Y2.set=function(m,G,K){m[G]=K};
_.Y2.setIfUndefined=function(m,G,K){return G in m?m[G]:m[G]=K};
_.Y2.setWithReturnValueIfNotSet=function(m,G,K){if(G in m)return m[G];K=K();return m[G]=K};
_.Y2.some=function(m,G,K){for(var W in m)if(G.call(K,m[W],W,m))return!0;return!1};
_.Y2.transpose=function(m){var G={},K;for(K in m)G[m[K]]=K;return G};
_.Y2.unsafeClone=ubV;var v$=function(m,G){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=m===u9o&&G||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=hL2};
v$.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var ptk=function(m){return m instanceof v$&&m.constructor===v$&&m.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===hL2?m.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},hL2={},u9o={};
new v$(u9o,"");var Wt,iE,cb,JI4,taF,D7G,ur,Q$k,o2X,a5K,hY,n2o,B36,E20,qRK,HBo,I5k,j$S,kIl,IJo,Cr4,ZBX,d7S,VaS,O1;Wt=function(m){return m?new O1(_.hI(m)):QFo||(QFo=new O1)};
_.Hp=function(m,G){return typeof G==="string"?m.getElementById(G):G};
iE=function(m,G){return(G||document).getElementsByTagName(String(m))};
_.N$o=function(m){return JI4("yt-formatted-string","paper-input-input",m)};
cb=function(m,G,K,W){m=W||m;return(G=G&&G!="*"?String(G).toUpperCase():"")||K?m.querySelectorAll(G+(K?"."+K:"")):m.getElementsByTagName("*")};
JI4=function(m,G,K){var W=document,L=m&&m!="*"?String(m).toUpperCase():"";return L||G?(K||W).querySelector(L+(G?"."+G:"")):cb(W,m,G,K)[0]||null};
taF=function(m,G){_.Y2.forEach(G,function(K,W){W=="style"?m.style.cssText=K:W=="class"?m.className=K:W=="for"?m.htmlFor=K:D7G.hasOwnProperty(W)?m.setAttribute(D7G[W],K):_.AV(W,"aria-")||_.AV(W,"data-")?m.setAttribute(W,K):m[W]=K})};
D7G={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"};_.GI=function(m){m=(m||window).document;m=m.compatMode=="CSS1Compat"?m.documentElement:m.body;return new _.qj(m.clientWidth,m.clientHeight)};
_.FiX=function(m){var G=_.Yv(m);m=m.defaultView;return new _.si((m==null?void 0:m.pageXOffset)||G.scrollLeft,(m==null?void 0:m.pageYOffset)||G.scrollTop)};
_.Yv=function(m){return m.scrollingElement?m.scrollingElement:_.zb||m.compatMode!="CSS1Compat"?m.body||m.documentElement:m.documentElement};
ur=function(m){return m?m.defaultView:window};
_.r3=function(m,G,K){return Q$k(document,arguments)};
Q$k=function(m,G){var K=G[1],W=a5K(m,String(G[0]));K&&(typeof K==="string"?W.className=K:Array.isArray(K)?W.className=K.join(" "):taF(W,K));G.length>2&&o2X(m,W,G,2);return W};
o2X=function(m,G,K,W){function L(c){c&&G.appendChild(typeof c==="string"?m.createTextNode(c):c)}
for(;W<K.length;W++){var A=K[W];if(!_.XP(A)||_.Ud(A)&&A.nodeType>0)L(A);else{a:{if(A&&typeof A.length=="number"){if(_.Ud(A)){var O=typeof A.item=="function"||typeof A.item=="string";break a}if(typeof A==="function"){O=typeof A.item=="function";break a}}O=!1}_.Z0(O?_.yf(A):A,L)}}};
_.M7=function(m){return a5K(document,m)};
a5K=function(m,G){G=String(G);m.contentType==="application/xhtml+xml"&&(G=G.toLowerCase());return m.createElement(G)};
_.u7=function(){return document.createTextNode("\n")};
hY=function(m){if(m.nodeType!=1)return!1;switch(m.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};
n2o=function(m,G){o2X(_.hI(m),m,arguments,1)};
_.pV=function(m){for(var G;G=m.firstChild;)m.removeChild(G)};
_.JY=function(m,G){G.parentNode&&G.parentNode.insertBefore(m,G)};
_.NN=function(m,G){G.parentNode&&G.parentNode.insertBefore(m,G.nextSibling)};
_.mX=function(m){return m&&m.parentNode?m.parentNode.removeChild(m):null};
_.bBS=function(m,G){var K=G.parentNode;K&&K.replaceChild(m,G)};
_.v2F=function(m){var G,K=m.parentNode;if(K&&K.nodeType!=11)if(m.removeNode)m.removeNode(!1);else{for(;G=m.firstChild;)K.insertBefore(G,m);_.mX(m)}};
_.DS=function(m){return m.children!=void 0?m.children:Array.prototype.filter.call(m.childNodes,function(G){return G.nodeType==1})};
_.s$k=function(m){return m.nextElementSibling!==void 0?m.nextElementSibling:_.$7G(m.nextSibling,!0)};
_.$7G=function(m,G){for(;m&&m.nodeType!=1;)m=G?m.nextSibling:m.previousSibling;return m};
_.eU=function(m){return _.Ud(m)&&m.nodeType==1};
_.Hg=function(m,G){if(!m||!G)return!1;if(m.contains&&G.nodeType==1)return m==G||m.contains(G);if(typeof m.compareDocumentPosition!="undefined")return m==G||!!(m.compareDocumentPosition(G)&16);for(;G&&m!=G;)G=G.parentNode;return G==m};
B36=function(m,G){if(m==G)return 0;if(m.compareDocumentPosition)return m.compareDocumentPosition(G)&2?1:-1;if("sourceIndex"in m||m.parentNode&&"sourceIndex"in m.parentNode){var K=m.nodeType==1,W=G.nodeType==1;if(K&&W)return m.sourceIndex-G.sourceIndex;var L=m.parentNode,A=G.parentNode;return L==A?qRK(m,G):!K&&_.Hg(L,G)?-1*E20(m,G):!W&&_.Hg(A,m)?E20(G,m):(K?m.sourceIndex:L.sourceIndex)-(W?G.sourceIndex:A.sourceIndex)}W=_.hI(m);K=W.createRange();K.selectNode(m);K.collapse(!0);m=W.createRange();m.selectNode(G);
m.collapse(!0);return K.compareBoundaryPoints(_.Ks.Range.START_TO_END,m)};
E20=function(m,G){var K=m.parentNode;if(K==G)return-1;for(;G.parentNode!=K;)G=G.parentNode;return qRK(G,m)};
qRK=function(m,G){for(;G=G.previousSibling;)if(G==m)return-1;return 1};
HBo=function(m){var G,K=arguments.length;if(!K)return null;if(K==1)return arguments[0];var W=[],L=Infinity;for(G=0;G<K;G++){for(var A=[],O=arguments[G];O;)A.unshift(O),O=O.parentNode;W.push(A);L=Math.min(L,A.length)}A=null;for(G=0;G<L;G++){O=W[0][G];for(var c=1;c<K;c++)if(O!=W[c][G])return A;A=O}return A};
_.hI=function(m){return m.nodeType==9?m:m.ownerDocument||m.document};
I5k=function(m){return m.contentDocument||m.contentWindow.document};
_.tY=function(m,G){if("textContent"in m)m.textContent=G;else if(m.nodeType==3)m.data=String(G);else if(m.firstChild&&m.firstChild.nodeType==3){for(;m.lastChild!=m.firstChild;)m.removeChild(m.lastChild);m.firstChild.data=String(G)}else _.pV(m),m.appendChild(_.hI(m).createTextNode(String(G)))};
j$S={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};kIl={IMG:" ",BR:"\n"};IJo=function(m){var G;m.tagName=="A"&&m.hasAttribute("href")||m.tagName=="INPUT"||m.tagName=="TEXTAREA"||m.tagName=="SELECT"||m.tagName=="BUTTON"?G=!m.disabled&&(!m.hasAttribute("tabindex")||Cr4(m)):G=m.hasAttribute("tabindex")&&Cr4(m);return G};
Cr4=function(m){m=m.tabIndex;return typeof m==="number"&&m>=0&&m<32768};
ZBX=function(m){var G=[];VaS(m,G,!0);m=G.join("");m=m.replace(/ \xAD /g," ").replace(/\xAD/g,"");m=m.replace(/\u200B/g,"");m=m.replace(/ +/g," ");m!=" "&&(m=m.replace(/^\s*/,""));return m};
d7S=function(m){var G=[];VaS(m,G,!1);return G.join("")};
VaS=function(m,G,K){if(!(m.nodeName in j$S))if(m.nodeType==3)K?G.push(String(m.nodeValue).replace(/(\r\n|\r|\n)/g,"")):G.push(m.nodeValue);else if(m.nodeName in kIl)G.push(kIl[m.nodeName]);else for(m=m.firstChild;m;)VaS(m,G,K),m=m.nextSibling};
_.Pri=function(m,G,K){if(!G&&!K)return null;var W=G?String(G).toUpperCase():null;return _.N7(m,function(L){return(!W||L.nodeName==W)&&(!K||typeof L.className==="string"&&_.Vf(L.className.split(/\s+/),K))},!0)};
_.N7=function(m,G,K){m&&!K&&(m=m.parentNode);for(K=0;m;){if(G(m))return m;m=m.parentNode;K++}return null};
O1=function(m){this.JSC$9633_document_=m||_.Ks.document||document};
_.w=O1.prototype;_.w.getElement=function(m){return _.Hp(this.JSC$9633_document_,m)};
_.w.$=O1.prototype.getElement;_.w.getElementsByTagName=function(m,G){return(G||this.JSC$9633_document_).getElementsByTagName(String(m))};
_.w.getElementsByTagNameAndClass=function(m,G,K){return cb(this.JSC$9633_document_,m,G,K)};
_.w.$$=O1.prototype.getElementsByTagNameAndClass;_.w.setProperties=taF;_.w.JSC$9635_createDom=function(m,G,K){return Q$k(this.JSC$9633_document_,arguments)};
_.w.createElement=function(m){return a5K(this.JSC$9633_document_,m)};
_.w.createTextNode=function(m){return this.JSC$9633_document_.createTextNode(String(m))};
_.w.getWindow=function(){return this.JSC$9633_document_.defaultView};
var KB=function(m){return _.FiX(m.JSC$9633_document_)};
_.w=O1.prototype;_.w.appendChild=function(m,G){m.appendChild(G)};
_.w.append=n2o;_.w.canHaveChildren=hY;_.w.removeNode=_.mX;_.w.getChildren=_.DS;_.w.contains=_.Hg;_.w.isFocusable=IJo;_.w=Ei.prototype;_.w.getWidth=function(){return this.right-this.left};
_.w.getHeight=function(){return this.bottom-this.top};
_.w.clone=function(){return new Ei(this.top,this.right,this.bottom,this.left)};
_.w.contains=function(m){return this&&m?m instanceof Ei?m.left>=this.left&&m.right<=this.right&&m.top>=this.top&&m.bottom<=this.bottom:m.x>=this.left&&m.x<=this.right&&m.y>=this.top&&m.y<=this.bottom:!1};
_.w.expand=function(m,G,K,W){_.Ud(m)?(this.top-=m.top,this.right+=m.right,this.bottom+=m.bottom,this.left-=m.left):(this.top-=m,this.right+=Number(G),this.bottom+=Number(K),this.left-=Number(W));return this};
_.w.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};
_.w.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};
_.w.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};
_.w.translate=function(m,G){m instanceof _.si?(this.left+=m.x,this.right+=m.x,this.top+=m.y,this.bottom+=m.y):(this.left+=m,this.right+=m,typeof G==="number"&&(this.top+=G,this.bottom+=G));return this};
_.w.scale=function(m,G){G=typeof G==="number"?G:m;this.left*=m;this.right*=m;this.top*=G;this.bottom*=G;return this};_.w=HE.prototype;_.w.clone=function(){return new HE(this.left,this.top,this.width,this.height)};
_.w.boundingRect=function(m){var G=Math.max(this.left+this.width,m.left+m.width),K=Math.max(this.top+this.height,m.top+m.height);this.left=Math.min(this.left,m.left);this.top=Math.min(this.top,m.top);this.width=G-this.left;this.height=K-this.top};
_.w.contains=function(m){return m instanceof _.si?m.x>=this.left&&m.x<=this.left+this.width&&m.y>=this.top&&m.y<=this.top+this.height:this.left<=m.left&&this.left+this.width>=m.left+m.width&&this.top<=m.top&&this.top+this.height>=m.top+m.height};
_.w.distance=function(m){var G=m.x<this.left?this.left-m.x:Math.max(m.x-(this.left+this.width),0);m=m.y<this.top?this.top-m.y:Math.max(m.y-(this.top+this.height),0);return Math.sqrt(G*G+m*m)};
_.w.getSize=function(){return new _.qj(this.width,this.height)};
_.w.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};
_.w.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};
_.w.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};
_.w.translate=function(m,G){m instanceof _.si?(this.left+=m.x,this.top+=m.y):(this.left+=m,typeof G==="number"&&(this.top+=G));return this};
_.w.scale=function(m,G){G=typeof G==="number"?G:m;this.left*=m;this.width*=m;this.top*=G;this.height*=G;return this};var eLR,aS,GLs,Qn,SRl,Xt0,RLl,MkG,U7C,l50;_.Fo=function(m,G,K){if(typeof G==="string")(G=_.yIK(m,G))&&(m.style[G]=K);else for(var W in G){K=m;var L=G[W],A=_.yIK(K,W);A&&(K.style[A]=L)}};
eLR={};_.yIK=function(m,G){var K=eLR[G];if(!K){var W=_.Sl(G);K=W;m.style[W]===void 0&&(W=(_.zb?"Webkit":_.lY?"Moz":null)+JUB(W),m.style[W]!==void 0&&(K=W));eLR[G]=K}return K};
_.PR=function(m,G){var K=_.hI(m);return K.defaultView&&K.defaultView.getComputedStyle&&(m=K.defaultView.getComputedStyle(m,null))?m[G]||m.getPropertyValue(G)||"":""};
_.EJ=function(m,G){return _.PR(m,G)||(m.currentStyle?m.currentStyle[G]:null)||m.style&&m.style[G]};
_.f5S=function(m){return _.EJ(m,"position")};
aS=function(m,G,K){if(G instanceof _.si){var W=G.x;G=G.y}else W=G,G=K;m.style.left=Qn(W,!1);m.style.top=Qn(G,!1)};
GLs=function(m){try{return m.getBoundingClientRect()}catch(G){return{left:0,top:0,right:0,bottom:0}}};
_.pB=function(m){var G=_.hI(m),K=new _.si(0,0);if(m==(G?_.hI(G):document).documentElement)return K;m=GLs(m);G=KB(Wt(G));K.x=m.left+G.x;K.y=m.top+G.y;return K};
_.x7l=function(m,G,K){if(G instanceof _.qj)K=G.height,G=G.width;else if(K==void 0)throw Error("pa");m.style.width=Qn(G,!0);m.style.height=Qn(K,!0)};
Qn=function(m,G){typeof m=="number"&&(m=(G?Math.round(m):m)+"px");return m};
SRl=function(m){return Xt0(m)};
Xt0=function(m){var G=RLl;if(_.EJ(m,"display")!="none")return G(m);var K=m.style,W=K.display,L=K.visibility,A=K.position;K.visibility="hidden";K.position="absolute";K.display="inline";m=G(m);K.display=W;K.position=A;K.visibility=L;return m};
RLl=function(m){var G=m.offsetWidth,K=m.offsetHeight,W=_.zb&&!G&&!K;return(G===void 0||W)&&m.getBoundingClientRect?(m=GLs(m),new _.qj(m.right-m.left,m.bottom-m.top)):new _.qj(G,K)};
MkG=function(m){var G=_.pB(m);m=Xt0(m);return new HE(G.x,G.y,m.width,m.height)};
U7C=function(m,G){m=m.style;"opacity"in m?m.opacity=G:"MozOpacity"in m?m.MozOpacity=G:"filter"in m&&(m.filter=G===""?"":"alpha(opacity="+Number(G)*100+")")};
_.VN=function(m,G){m.style.display=G?"":"none"};
_.zL2=function(m){return"rtl"==_.EJ(m,"direction")};
l50=function(m){var G=_.PR(m,"marginLeft"),K=_.PR(m,"marginRight"),W=_.PR(m,"marginTop");m=_.PR(m,"marginBottom");return new Ei(parseFloat(W),parseFloat(K),parseFloat(m),parseFloat(G))};
_.B$S=function(m){var G=_.PR(m,"borderLeftWidth"),K=_.PR(m,"borderRightWidth"),W=_.PR(m,"borderTopWidth");m=_.PR(m,"borderBottomWidth");return new Ei(parseFloat(W),parseFloat(K),parseFloat(m),parseFloat(G))};var oS=function(m){this.context=m};
oS.prototype.isSupported=function(m){return(m==null?0:m.attributionEnabled)||(m==null?void 0:m.beaconMethod)==="POST"||(m==null?0:m.customHeaders)||(m==null?0:m.customBody)||(m==null?0:m.keepAlive)?!1:!Gs(this.context)};
oS.prototype.ping=function(){var m=this;return Xs(_.mb.apply(0,arguments).map(function(G){try{var K=m.context.global,W=!1;W=W===void 0?!1:W;K.google_image_requests||(K.google_image_requests=[]);var L=YRo("IMG",K.document);W&&(L.attributionSrc="");L.src=G;K.google_image_requests.push(L);return!0}catch(A){return!1}}).every(function(G){return G}))};
oS.prototype.pingWithHeadersAndBody=function(m,G,K){this.ping.apply(this,_.Bz(_.mb.apply(3,arguments)))};var Mao=function(m){this.context=m};
Mao.prototype.isSupported=function(m){return T$4&&!Gs(this.context)&&JI9(this.context)!==void 0&&!(m==null?0:m.attributionEnabled)&&(m==null?void 0:m.beaconMethod)!=="POST"&&!(m==null?0:m.customHeaders)&&!(m==null?0:m.customBody)};
Mao.prototype.makeBeacon=function(m,G){if(!this.isSupported(G))throw new ME;return new nV(this.context,m)};
var T$4=!1,nV=function(m,G){this.context=m;this.JSC$9654_urlWithoutToken=G;m=JI9(this.context);if(m===void 0)throw Error();this.wrappedBeacon=new m(mTF(this),{})},mTF=function(m){m=m.JSC$9654_urlWithoutToken;
return(m.slice(-1)[0]==="&"?m:m+"&")+"pbapi=1"};
nV.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
nV.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
nV.prototype.setHeader=function(){};
_.e_.Object.defineProperties(nV.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9654_urlWithoutToken},
set:function(m){this.JSC$9654_urlWithoutToken=m;this.wrappedBeacon.setURL(mTF(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(m){if(m!=="GET")throw new ME;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var itS=function(m){this.context=m};
itS.prototype.isSupported=function(m){if((m==null?0:m.attributionEnabled)||(m==null?void 0:m.beaconMethod)==="GET"||(m==null?0:m.customHeaders)||(m==null?0:m.customBody)||(m==null?0:m.keepAlive))return!1;var G;return!Gs(this.context)&&((G=this.context.global.navigator)==null?void 0:G.sendBeacon)!==void 0};
itS.prototype.ping=function(){var m=this;return Xs(_.mb.apply(0,arguments).map(function(G){var K;return(K=m.context.global.navigator)==null?void 0:K.sendBeacon(G)}).every(function(G){return G}))};
itS.prototype.pingWithHeadersAndBody=function(m,G,K){this.ping.apply(this,_.Bz(_.mb.apply(3,arguments)))};var Z1=function(m){this.value=m},$2=function(m,G){return Xs(m.value).pipe(ky(G))},ER=new Z1(!1),hI6=new Z1(!0);var D5=function(m){this.value=m;this.releasedSubject=new Ib};
D5.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.e_.Object.defineProperties(D5.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9667_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var qRd=["FRAME","IMG","IFRAME"],o2f=/^[01](px)?$/,s$G=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},$7d=function(){var m=new s$G;
m.crossDomainLoadedDefault=!0;m.pendingImagesBlockLoad=!0;return m};var GHl=function(m,G){var K=Va6(m);if(K)if(K.onCreativeLoad)K.onCreativeLoad(G);else{var W=G?[G]:[],L=function(A){for(var O=0;O<W.length;++O)try{W[O](1,A)}catch(c){}W={push:function(c){c(1,A)}}};
K.onCreativeLoad=function(A){W.push(A)};
K.setAttribute("data-creative-load-listener","");K.addEventListener("creativeLoad",function(A){L(A.detail)});
_.Ks.addEventListener("message",function(A){Cr9(K,L,A)})}};var b7=function(m,G){var K=this;this.global=m;this.parentContext=G;this.JSC$9678_onVisibilityChange=this.document?WE(Xs(!0),GF(this.document,"visibilitychange")).pipe(gD(this.parentContext.performanceMonitor,748),l9(function(){return K.getVisibilityState()}),u$()):Xs("visible");
this.document?GF(this.document,"DOMContentLoaded").pipe(gD(this.parentContext.performanceMonitor,739),rD(1)):Xs(Q$G("DOMContentLoaded"))},uFG=function(m){return m.document!==null&&m.document.visibilityState!==void 0};
b7.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
b7.prototype.querySelector=function(m){return this.document?this.document.querySelector(m):null};
b7.prototype.querySelectorAll=function(m){return this.document?_.yf(this.document.querySelectorAll(m)):[]};
b7.prototype.elementFromPoint=function(m,G){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;m=this.document.elementFromPoint(m,G);return m===null?null:new D5(m)};
var Gfo=function(m,G,K){K=K===void 0?!1:K;if(G.ref===void 0||!m.document)return Xs(G).pipe(gD(m.parentContext.performanceMonitor,749));var W=new Nj(1),L=function(){W.next(G)};
K||GHl(G.ref,L);E2o(G.ref,L);return W.pipe(gD(m.parentContext.performanceMonitor,749),rD(1))};
_.e_.Object.defineProperties(b7.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return BDf(this.global,"document")?this.global.document||null:null}}});var ZBf=_.nY(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),d76=_.nY(["./reach_worklet.js"]),PrV=_.nY(["./reach_worklet.js"]),KX2=_.nY(["./reach_worklet.html"]),WXR=_.nY(["./reach_worklet.js"]),LXK=_.nY(["./reach_worklet.js"]);_.vE(KX2);_.vE(WXR);_.vE(LXK);var a$={left:0,top:0,width:0,height:0};var Xto=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),GHs=/#|$/,KXJ=/[?&]($|#)/;var QiG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(QiG,_.pp);var FXG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(FXG,_.pp);var hno=function(m,G){return _.LB(m,2,G)},tUP=function(m,G){return _.LB(m,3,G)};
FXG.prototype.getModel=function(){return _.wL(this,4)};
var JOd=function(m,G){return _.LB(m,4,G)},u6v=function(m,G){return _.LB(m,5,G)},DTG=function(m,G){return _.LB(m,9,G)},rOP=function(m,G){return m9(m,10,G)},YJ9=function(m,G){return _.x2(m,11,G)},pgM=function(m,G){return _.LB(m,1,G)},NMo=function(m,G){return _.x2(m,7,G)};var Otd="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var q7=function(m,G,K,W){m=m===void 0?window:m;G=G===void 0?null:G;K=K===void 0?new C9S:K;W=W===void 0?yId():W;H6l.call(this);var L=this;this.global=m;this.debugChannel=G;this.performanceMonitor=K;this.onPageHide=FKM(function(){return GF(L.global,"pagehide")}).pipe(gD(this.performanceMonitor,941));
this.onLoad=FKM(function(){return GF(L.global,"load")}).pipe(gD(this.performanceMonitor,738),rD(1));
this.onResize=FKM(function(){return GF(L.global,"resize")}).pipe(gD(this.performanceMonitor,741));
this.onMessage=FKM(function(){return GF(L.global,"message")}).pipe(gD(this.performanceMonitor,740));
this.document=new b7(this.global,this);this.timeProvider=new Z6X(new P$F(this.intrinsicFunctionNamespace,this.performanceMonitor),new djK(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new kFo(new e_o(this),new Mao(this),new TB(this,new XE4(this)),new TB(this,new itS(this)),new TB(this,new oS(this)))};
_.n(q7,H6l);q7.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(m){return m}};
var Gs=function(m){var G=m.global;return!!m.global.HTMLFencedFrameElement&&!!G.fence&&typeof G.fence.reportEvent==="function"};
_.w=q7.prototype;_.w.reportFencedFrameEvent=function(m){Gs(this)&&this.global.fence.reportEvent(m)};
_.w.getOnBackgrounded=function(){return this.onPageHide.pipe(gD(this.performanceMonitor,942),ky(this.queue),l9(function(){}))};
_.w.postMessage=function(m,G,K){K=K===void 0?[]:K;this.global.postMessage(m,G,K)};
_.w.getWidth=function(){return MhM(this.global)?this.global.width:0};
_.w.getHeight=function(){return MhM(this.global)?this.global.height:0};
_.w.isMobile=function(){return TDF()||m7M()};
var tI=function(m,G){try{var K=AOG(G,m.global,m.isMobile());return{left:K.left,top:K.top,width:K.getWidth(),height:K.getHeight()}}catch(W){return a$}};
q7.prototype.validate=function(){var m=this.beaconFactory.isSupported()||Gs(this);return this.global&&this.timeProvider.available()&&m};
var D7d=function(m){return(m=old(m.global))?Hz(m):null};
_.e_.Object.defineProperties(q7.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(m){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(m){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!MhM(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}}});_.AOB=!_.PX&&!_.Ddv();var pOd=function(m){return m};var Ns9=function(m){return m.pipe(L6(function(G){var K=G.endOfSessionReason;var W;return((W=G.viewable)==null?void 0:W.extrapolateToNow().value)||K!=void 0}),rD(1),cE())};var ElV=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},Hto=function(m){var G=m.sequenceNumber.toString(10).padStart(2,"0");
G=""+m.startTime+G;m.sequenceNumber<99&&m.sequenceNumber++;return G};var rwM=$r(ab(function(m){return m.endOfSessionReason===void 0}),l9(function(m){return Object.assign({},m,{timestamps:w$(m)})}),L6(function(m){var G=m.viewable;
m=m.timestamps;var K;return(K=G==null?void 0:G.extrapolateUsingTimestampMap(m).value)!=null?K:!1}),l9(function(m){var G=m.beaconFactory;
var K=m.timestampedExposureHistory;var W=m.timeOnScreen;var L=m.binaryContext;m=m.timestamps;if(G===void 0||K===void 0||W===void 0||L===void 0)return!1;if(W.extrapolateUsingTimestampMap(m).value.every(function(A){return A>=0}))return!0;
K=K.map(function(A){return A.timestamp+":"+A.value}).join(",");
W=I4v({bin:L,tos:W},m);G.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+W+("&eh="+K)).sendNow();return!0}),ab(function(m){return!m}),cE());var kHd=function(m){return{id:m.pingId,mcvt:m.maxConsecutiveViewTime,p:m.creativePosition,asp:m.adSpeedPosition,tm:m.totalMeasurementTime,tu:m.totalUnviewedTime,mtos:m.maxTimeOnScreen,tos:m.timeOnScreen,v:m.binaryVersion,bin:m.binaryContext,avms:m.measurementStrategy,bs:m.browserSize,mc:m.maximumExposure,"if":m.crossDomainIframeState,vu:m.delayedImpressionJsState,app:m.inApp,mse:m.mraidError,mtop:m.mraidSituation,itpl:m.injectedTemplateId,adk:m.adKey,exk:m.awbidKey,rs:m.requestSource,la:m.isLargeAd,
cr:m.isContentRecommendationAd,uach:m.userAgentClientHints,vs:m.viewState,r:m.reasonCode,pay:m.hasCpmavUrl,co:m.clientPingOrderCounter,rst:m.adRenderStartTime,rpt:m.adRenderPeriodTime,isd:m.initialScrollDepth,lsd:m.loadedScrollDepth,context:m.errorContext,msg:m.errorMessage,stack:m.errorStack,name:m.errorName,ec:m.hasElementChanged,sfr:m.strategyFailureReasons,met:m.creativeSearchResult,wmsd:m.webMeasurementStartDiagnostic,pv:m.pageVisible,epv:m.eosPageVisible,pbe:m.inStatefulBeaconExperiment,fle:m.inFetchLaterBeaconExperiment,
vae:m.inViewableAttributionExperiment,spb:m.supportsPendingBeacon,sfl:m.supportsFetchLater,ffslot:m.isFencedFrameSlotTurtlex,reach:m.sharedStorageReachMode,io2:m.v2VisibilityBitVector,rxdbg:m.rxDebugger,omida:m.omidAppId,omidp:m.omidPartner,omidpv:m.omidPartnerVersion,omidor:m.omidOcclusionReasons,omidv:m.omidVersion,omids:m.omidSessionType,omidam:m.omidAccessMode,omidct:m.omidCreativeType,omidia:m.omidInApp,omiddc:m.omidDeviceCategory,omidlat:m.omidLastActivity,omiddit:m.omidDeviceIdleTime,qid:m.errorEscapedQueryId}};var Jwd=function(m){var G=[];return m.pipe(l9(function(K){var W=K.beaconFactory,L=K.fetchBeaconFactory,A=K.timeOnScreen,O=K.timeOnScreenUrlPrefixes,c=K.payloadMapper,u=K.timeOnScreenPingId,h=K.timeOnScreenReason,J=K.urlSerializer,N=K.viewable,D=K.hasImpressionFired,t=K.inStatefulBeaconExperiment,a=K.supportsPendingBeacon,v=K.supportsFetchLater,I=K.turtlexReportEventData;if(!K.geometryMeasurable||!D||K.maxTimeOnScreen===void 0||A===void 0||O===void 0||c===void 0||u===void 0||J===void 0||W===void 0)return!1;
if(K.isTurtlex){if(h===void 0)return!1;O=K.reportFencedFrameEvent;if(!O)return!1;O({eventType:"active-view-time-on-screen",eventData:I!=null?I:"",destination:["buyer"]});return!0}if(!(t||v||h))return!1;I=w$(K);var Z;N=(Z=N==null?void 0:N.extrapolateUsingTimestampMap(I).value)!=null?Z:!1;Z=J(Object.assign({},K,{pingId:u,viewState:N?4:3,reasonCode:h!=null?h:"u",payloadMapper:c,urlPrefixes:O}),I);if(t){for(;G.length>O.length;)K=void 0,(K=G.shift())==null||K.deactivate();Z.forEach(function(z,X){X>=G.length?
G.push(W.makeBeacon(z)):G[X].url=z});
return a&&L&&h!==void 0?(Z.forEach(function(z){L.makeBeacon(z).sendNow()}),!0):h!==void 0}if(a&&L&&h!==void 0)return Z.forEach(function(z){L.makeBeacon(z).sendNow()}),!0;
if(v&&L){for(;G.length>O.length;)a=void 0,(a=G.shift())==null||a.deactivate();var k=J(Object.assign({},K,{pingId:u,viewState:N?4:3,reasonCode:h!=null?h:"u",payloadMapper:c,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),I)[0];Z.forEach(function(z,X){X>=G.length?G.push(W.makeBeacon(k,{endOfSession:!0})):G[X].url=k});
return h!==void 0?(Z.forEach(function(z){L.makeBeacon(z).sendNow()}),!0):h!==void 0}return h!==void 0?(Z.forEach(function(z){W.makeBeacon(z).sendNow()}),!0):!1}),ab(function(K){return!K}),cE())};var DCP=$r(L6(function(m){return m.immediateUrlPrefixes!==void 0&&m.payloadMapper!==void 0&&m.urlSerializer!==void 0&&m.inferredPingId!==void 0&&m.beaconFactory!==void 0}),L6(function(m){return f4G(m)!==null}),yOJ(function(m){return m.activeViewUnmeasurableEvent},function(m){return m.emit}),l9(function(m){if(m.isTurtlex){var G=m.reportFencedFrameEvent;
if(G){var K;G({eventType:"active-view-unmeasurable",eventData:(K=m.turtlexReportEventData)!=null?K:"",destination:["buyer"]})}}else{K=void 0;var W=f4G(m);if(W==="x"){var L,A=(L=m.geometricMeasurementErrors)!=null?L:m.contextValidationErrors;A&&(G=A.stack,K=A.message)}m.urlSerializer(Object.assign({},m,{urlPrefixes:m.immediateUrlPrefixes,payloadMapper:m.payloadMapper,pingId:m.inferredPingId,viewState:2,reasonCode:W,errorMessage:K,errorStack:G}),w$(m)).forEach(function(O){m.beaconFactory.makeBeacon(O).sendNow()})}}),
rD(1),cE());var xTd=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Y8G=$r(L6(function(m){return m.payloadMapper!==void 0&&m.immediateUrlPrefixes!==void 0&&m.urlSerializer!==void 0&&m.inferredPingId!==void 0&&m.beaconFactory!==void 0}),l9(function(m){return Object.assign({},m,{timestamps:w$(m)})}),L6(function(m){var G=m.viewable;
var K=m.hasImpressionFired;m=m.timestamps;var W;return!!K&&((W=G==null?void 0:G.extrapolateUsingTimestampMap(m).value)!=null?W:!1)}),yOJ(function(m){return m.activeViewViewableEvent},function(m){return m.emit}),l9(function(m){var G=m.beaconFactory,K=m.turtlexReportEventData;
if(m.isTurtlex){var W=m.reportFencedFrameEvent;if(!W)return!1;W({eventType:"active-view-viewable",eventData:K!=null?K:"",destination:["buyer"]});return!0}K=m.urlSerializer(Object.assign({},m,{urlPrefixes:m.immediateUrlPrefixes,payloadMapper:m.payloadMapper,pingId:m.inferredPingId,viewState:4,reasonCode:"v"}),m.timestamps);(W=m.cpmavUrls)&&W.length>0&&m.viewUrlSerializer&&m.viewUrlSerializer(W,m).forEach(function(L){G.makeBeacon(L).sendNow()});
(W=m.viewableRelayUrls)&&W.length>0&&m.viewUrlSerializer&&m.viewUrlSerializer(W,m).forEach(function(L){G.makeBeacon(L).sendNow()});
K.forEach(function(L){G.makeBeacon(L,{attributionEnabled:m.isViewableAttributionEnabled}).sendNow()});
return!0}),ab(function(m){return!m}),cE());var kLM=l9(function(m){return[m.value.topWindowViewportExternalGeometry.width,m.value.topWindowViewportExternalGeometry.height]});var Fb=function(m,G){this.callback=m;this.options=G;this.intersectionObserverV2=this.intersectionObserverV1=null},J_G=function(m,G){G?m.intersectionObserverV2||(G=Object.assign({},m.options,{delay:100,
trackVisibility:!0}),m.intersectionObserverV2=new IntersectionObserver(m.callback,G)):m.intersectionObserverV1||(m.intersectionObserverV1=new IntersectionObserver(m.callback,m.options))},wgB=function(m,G){m=G?m.intersectionObserverV2:m.intersectionObserverV1;
if(!m)throw new I1i;return m};
Fb.prototype.observe=function(m,G){wgB(this,m).observe(G)};
Fb.prototype.unobserve=function(m,G){wgB(this,m).unobserve(G)};
Fb.prototype.disconnect=function(m){wgB(this,m).disconnect()};
Fb.prototype.takeRecords=function(m){return wgB(this,m).takeRecords()};var WEd={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:a$,topWindowViewportExternalGeometry:a$,measurementRequests:new Ib,elementGeometrySourceName:"ns",elementGeometry:a$,intersectionGeometry:a$,viewportLocalAppOffset:{x:0,y:0}};var oO6=o$($r(l9(function(m){var G;return(G=m.exposureOverride)!=null?G:D2J(m)}),l9(function(m){return isFinite(m)?m:0}))),EOP=o$($r(l9(function(m){var G;
return(G=m.exposureOverride)!=null?G:D2J(m)}),l9(function(m){return isFinite(m)?m:-1})));var vb=function(m,G){this.a=m;this.b=G;if(m.clock.timeline!==G.clock.timeline)throw Error();};
vb.prototype.equivalentTo=function(m){return m instanceof vb?this.a.equivalentTo(m.a)&&this.b.equivalentTo(m.b):!1};
vb.prototype.extrapolateToTime=function(m){var G=this.a.extrapolateToTime(m).value,K=this.b.extrapolateToTime(m).value;return{timestamp:m,value:[G,K]}};
_.e_.Object.defineProperties(vb.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 m=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),G=this.a.lastMeasurement.timestamp.equals(m)?this.a.lastMeasurement.value:this.a.extrapolateToTime(m).value,K=this.b.lastMeasurement.timestamp.equals(m)?this.b.lastMeasurement.value:this.b.extrapolateToTime(m).value;return{timestamp:m,value:[G,K]}}}});var $v=function(m,G){this.input=m;this.mapFunction=G;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
$v.prototype.equivalentTo=function(m){return m instanceof $v?this.input.equivalentTo(m.input)&&this.mapFunction===m.mapFunction:!1};
$v.prototype.extrapolateToTime=function(m){m=this.input.extrapolateToTime(m);return{timestamp:m.timestamp,value:this.mapFunction(m.value)}};
_.e_.Object.defineProperties($v.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var s1=function(){};
s1.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
s1.prototype.extrapolateUsingTimestampMap=function(m){var G=this.clock.timeline,K,W=(K=m.get(G))!=null?K:this.clock.now();m.set(G,W);return this.extrapolateToTime(W)};
s1.prototype.map=function(m){return new glR(this,m)};
s1.prototype.joinWith=function(m){return new OtG(this,m)};
var OtG=function(){vb.apply(this,arguments);this.map=s1.prototype.map;this.joinWith=s1.prototype.joinWith;this.extrapolateToNow=s1.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=s1.prototype.extrapolateUsingTimestampMap};
_.n(OtG,vb);var glR=function(){$v.apply(this,arguments);this.map=s1.prototype.map;this.joinWith=s1.prototype.joinWith;this.extrapolateToNow=s1.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=s1.prototype.extrapolateUsingTimestampMap};
_.n(glR,$v);var br=function(m,G){this.lastMeasurement=G;this.extrapolateToNow=s1.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=s1.prototype.extrapolateUsingTimestampMap;this.map=s1.prototype.map;this.joinWith=s1.prototype.joinWith;this.clock=m};
br.prototype.equivalentTo=function(m){return m.active};
br.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.e_.Object.defineProperties(br.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var j2J=l9(function(m){if(m.value.viewportGeometrySourceName==="omid"){if(m.value.elementGeometrySourceName==="nio")return"omio";if(m.value.elementGeometrySourceName==="geo")return"omgeo"}return m.value.elementGeometrySourceName==="geo"||m.value.elementGeometrySourceName==="nio"?m.value.viewportGeometrySourceName:m.value.elementGeometrySourceName});var FEJ=$r(L6(function(m){return!isNaN(m)}),tU(function(m,G){return isNaN(m)?G:Math.min(m,G)},NaN),u$());var nOG=o$($r(l9(function(m){return m.intersectionGeometry.width*m.intersectionGeometry.height/(m.exposedViewportLocalGeometry.width*m.exposedViewportLocalGeometry.height)}),l9(function(m){return isFinite(m)?Math.min(1,m):0})));var IMG=$r(o$(l9(function(m){m=m.exposureOverride?m.elementGeometry.width*m.elementGeometry.height*m.exposureOverride/(m.topWindowViewportExternalGeometry.width*m.topWindowViewportExternalGeometry.height):m.intersectionGeometry.width*m.intersectionGeometry.height/(m.topWindowViewportExternalGeometry.width*m.topWindowViewportExternalGeometry.height);return isFinite(m)?m:0})));var ZTo=function(m,G){var K=this;this.timeProvider=m;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=G.pipe(u$()).subscribe(function(W){PMf(K);K.measurementRequestObserver=W})},y_d=function(m,G){PMf(m);
m.lastMeasurementRequest=m.timeProvider.setTimeout(function(){var K;return void((K=m.measurementRequestObserver)==null?void 0:K.next())},G)},PMf=function(m){m.lastMeasurementRequest!==null&&m.timeProvider.clearTimeout(m.lastMeasurementRequest);
m.lastMeasurementRequest=null};
ZTo.prototype.dispose=function(){PMf(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var cOo=function(){};var gSd=function(m,G){this.context=m;this.strategies=G};
_.n(gSd,cOo);gSd.prototype.buildGeometrySource=function(m,G){var K=this.strategies.map(function(A){return A.buildGeometrySource(m,G)}),W=SZd(K.map(function(A){return A.geometrySource})),L=W.capturedErrors.pipe(YJ4());
return{geometrySource:W.chain.pipe(ky(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:L,strategyErrors:W.capturedErrors}].concat(_.Bz(K.map(function(A){return A.additionalOutputs}))))}};
var YJ4=function(){return tU(function(m,G){G instanceof OR?m.push(G.measurementStrategyFailureReason):m.push(-1);return m},[])};var cwJ=function(m,G){this.context=m;this.poller=G};
_.n(cwJ,cOo);cwJ.prototype.buildGeometrySource=function(m,G){var K=RRd(zRG(this.context,this.poller),LEd(this.context,G.requestSource));return{geometrySource:X4J(m.measurableCreative.pipe(K),G.inApp),additionalOutputs:{}}};var Ons=function(m,G,K){K=K===void 0?YZF(m,G):K;this.context=m;this.intersectionObserverStrategy=K};
_.n(Ons,cOo);Ons.prototype.buildGeometrySource=function(m,G){var K=this.intersectionObserverStrategy(G.useV2);return{geometrySource:X4J(m.measurableCreative.pipe(K,r_f(this.context)),G.inApp),additionalOutputs:{}}};var rOR=function(m,G,K){var W=W===void 0?Symbol():W;this.element=m;this.immediateUrls=G;this.timeOnScreenUrls=K;this.symbol=W};var VJd=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),mCd=Object.freeze([1,.75,VJd.exposureThreshold,VJd.largeAdExposureThreshold,0]);var foV=function(m,G){G=G===void 0?36E5:G;var K=K===void 0?!0:K;this.creatives=new Ib;this.elementsToUnregister=new Ib;this.elementMap=new Map;var W=new q7(window,null);W.beaconFactory=new TB(W,new oS(W));wOJ(W,this.creatives,this.elementsToUnregister,m,G,K).subscribe()},SSP=function(m,G,K,W){if(!m.elementMap.has(G)){var L=new D5(G);
m.elementMap.set(G,L);m.creatives.next(new rOR(L,K,W))}},XQ6=function(m,G){m.elementsToUnregister.next(G);
var K=m.elementMap.get(G);K!==void 0&&(K.release(),m.elementMap.delete(G))};var gEd=function(m){var G=m.url;m=m.uaDataValues;this.JSC$9783_url_=G;this.uaDataValues_=m;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var K=/[?&]([^&=]+)=([^&]*)/g;m=K.exec(G);)this.urlParamValues_[m[1]]=m[2]},ONo=function(m){m=m.uaDataValues_;
if(!m)return"";var G=Ht("uap",m.platform)+Ht("uapv",m.platformVersion)+Ht("uafv",m.uaFullVersion)+Ht("uaa",m.architecture)+Ht("uam",m.model)+Ht("uab",m.bitness);m.fullVersionList&&(G+="&uafvl="+encodeURIComponent(m.fullVersionList.map(function(K){return encodeURIComponent(K.brand)+";"+encodeURIComponent(K.version)}).join("|")));
m.wow64!=null&&(G+="&uaw="+Number(m.wow64));return G.slice(1)};var u6C=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(u6C,_.pp);u6C.prototype.getId=function(){return _.wL(this,1)};var qN=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(qN,_.pp);qN.prototype.getSeconds=function(){return Lg(this,1)};
qN.prototype.setSeconds=function(m){return _.AC(this,1,FE(m),"0")};_.gS=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(_.gS,_.pp);_.gS.prototype.getSeconds=function(){return Lg(this,1)};
_.gS.prototype.setSeconds=function(m){return _.AC(this,1,FE(m),"0")};
_.hn0=function(m){var G=Number(OA(m,1));m=_.Z5(m,2);return new Date(G*1E3+m/1E6)};var E1=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(E1,_.pp);E1.prototype.getUrl=function(){return _.wL(this,1)};
E1.prototype.setUrl=function(m){return _.ax(this,1,m)};
E1.prototype.getHeight=function(){return _.Z5(this,2)};
E1.prototype.getWidth=function(){return _.Z5(this,3)};var Hb=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Hb,_.pp);Hb.prototype.getAspectRatio=function(){return Al(this,1)};
Hb.prototype.getDuration=function(){return _.RG(this,qN,2)};var pgF=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(pgF,_.pp);var JOo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(JOo,_.pp);var NM0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(NM0,_.pp);var DTk=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(DTk,_.pp);var tUR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(tUR,_.pp);var FXk=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(FXk,_.pp);var Qik=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Qik,_.pp);var a4X=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(a4X,_.pp);var olo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(olo,_.pp);var IS=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(IS,_.pp);var jk=[2,4,5,6,7];var nlP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(nlP,_.pp);var iA=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(iA,_.pp);_.w=iA.prototype;_.w.getId=function(){return _.RG(this,u6C,1)};
_.w.getName=function(){return _.wL(this,2)};
_.w.setDescription=function(m){return _.ax(this,3,m)};
_.w.getUrl=function(){return _.wL(this,8)};
_.w.setUrl=function(m){return _.ax(this,8,m)};
var kv=function(m){return _.CB(m,E1,10,_.Vp())};
iA.prototype.getOwner=function(m){return _.VWS(this,40,m)};
var CV=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(CV,_.pp);_.Vn=[0,o3,voX];_.ZS=[0,o3,voX];var btC=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(btC,_.pp);var d3=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(d3,_.pp);d3.prototype.getStatus=function(){return _.gL(this,1)};
d3.prototype.removeItem=function(m){return I62(this,2,m)};var vlK=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(vlK,_.pp);vlK.prototype.getName=function(){return _.wL(this,8)};var Pb=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Pb,_.pp);Pb.prototype.getCommand=function(){return _.gL(this,1)};
Pb.prototype.getSource=function(){return _.RG(this,vlK,2)};
Pb.prototype.setVisible=function(m){return _.WH(this,5,m)};
Pb.prototype.removeItem=function(m){return I62(this,7,m)};var $T4=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n($T4,_.pp);$T4.prototype.getCommand=function(){return _.gL(this,1)};
$T4.prototype.removeItem=function(m){return I62(this,4,m)};
var siK=_.HN($T4);var yn=function(m,G,K){K=K===void 0?Error():K;var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=m;G+=":";K instanceof Error?(this.message=G+K.message,this.stack=K.stack||""):(this.message=G+String(K),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(yn,Error);_.Lt=function(){this.JSC$9841_disposed_=this.JSC$9841_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.Lt.prototype.JSC$9841_disposed_=!1;_.Lt.prototype.isDisposed=function(){return this.JSC$9841_disposed_};
_.Lt.prototype.dispose=function(){this.JSC$9841_disposed_||(this.JSC$9841_disposed_=!0,this.disposeInternal())};
_.Lt.prototype[Symbol.dispose]=function(){this.dispose()};
_.UR=function(m,G){m.addOnDisposeCallback(_.BH(_.I$,G))};
_.Lt.prototype.addOnDisposeCallback=function(m,G){this.JSC$9841_disposed_?G!==void 0?m.call(G):m():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),G&&(m=m.bind(G)),this.onDisposeCallbacks_.push(m))};
_.Lt.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var ek=function(m){_.Lt.call(this);this.wpc=m};
_.n(ek,_.Lt);ek.prototype.l8M=function(){return this.wpc.f()};
ek.prototype.rMx=function(m){return this.wpc.c(m)};
ek.prototype.pN=function(m){return this.wpc.m(oSP(m))};
ek.prototype.p2P=function(m){return this.wpc.mws(oSP(m))};
var k2=function(m){_.Lt.call(this);var G=this;this.vm=m;this.lRO="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.pw2=void 0;this.bgc=this.vm.p;this.suO=this.qQP.bind(this);this.addOnDisposeCallback(function(){return void qJk(G)})};
_.n(k2,_.Lt);var Eli=function(m){var G;return _.Y(function(K){if(K.nextAddress==1){if(!m.vm.wpc)throw new yn(30,"NWA");return m.dBt?K.return(m.dBt):K.yield(m.vm.wpc(),2)}G=K.yieldResult;m.dBt=new ek(G);return K.return(m.dBt)})};
k2.prototype.snapshot=function(m){return this.vm.s(Object.assign({},m.kW&&{c:m.kW},m.tLP&&{s:m.tLP},m.k53!==void 0&&{p:m.k53}))};
k2.prototype.qQP=function(m){this.vm.e(m)};
k2.prototype.uzP=function(m,G){return this.vm.c(m,G,!1)};
var qJk=function(m){m.pw2!==void 0&&(m.lRO.forEach(function(G){var K;(K=m.pw2)==null||K.removeEventListener(G,m.suO)}),m.pw2=void 0)};
k2.prototype.l2P=function(){return this.vm.l()};var fV=function(){_.Lt.apply(this,arguments);this.dfv=1};
_.n(fV,_.Lt);fV.prototype.share=function(){if(this.isDisposed())throw Error("qa");this.dfv++;return this};
fV.prototype.dispose=function(){--this.dfv||_.Lt.prototype.dispose.call(this)};var Ht0=function(m){this.yzh=m;m.addNewEventMetric("/client_streamz/bg/frs",_.ea("mk"))};
Ht0.prototype.record=function(m,G){this.yzh.record("/client_streamz/bg/frs",m,G)};
var I4C=function(m){this.mO6=m;m.addNewEventMetric("/client_streamz/bg/wrl",_.ea("mn"),Pt("ac"),Pt("sc"),_.ea("rk"),_.ea("mk"))};
I4C.prototype.record=function(m,G,K,W,L,A){this.mO6.record("/client_streamz/bg/wrl",m,G,K,W,L,A)};
var ji0=function(m){this.hD3=m;m.addNewCounter("/client_streamz/bg/ec",_.ea("en"),_.ea("mk"))};
ji0.prototype.increment=function(m,G){this.hD3.JSC$10094_incrementCounter("/client_streamz/bg/ec",m,G)};
var kHK=function(m){this.tl3=m;m.addNewEventMetric("/client_streamz/bg/el",_.ea("en"),_.ea("mk"))};
kHK.prototype.record=function(m,G,K){this.tl3.record("/client_streamz/bg/el",m,G,K)};
var CEB=function(m){this.eDh=m;m.addNewCounter("/client_streamz/bg/cec",Pt("ec"),_.ea("mk"))};
CEB.prototype.increment=function(m,G){this.eDh.JSC$10094_incrementCounter("/client_streamz/bg/cec",m,G)};
var VUC=function(m){this.oEp=m;m.addNewCounter("/client_streamz/bg/po/csc",Pt("cs"),_.ea("mk"))};
VUC.prototype.increment=function(m,G){this.oEp.JSC$10094_incrementCounter("/client_streamz/bg/po/csc",m,G)};
var Zt2=function(m){this.se3=m;m.addNewCounter("/client_streamz/bg/po/ctav",_.ea("av"),_.ea("mk"))};
Zt2.prototype.increment=function(m,G){this.se3.JSC$10094_incrementCounter("/client_streamz/bg/po/ctav",m,G)};
var dTS=function(m){this.bcw=m;m.addNewCounter("/client_streamz/bg/po/cwsc",_.ea("su"),_.ea("mk"))};
dTS.prototype.increment=function(m,G){this.bcw.JSC$10094_incrementCounter("/client_streamz/bg/po/cwsc",m,G)};var mKG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(mKG,_.pp);var Tss=function(m,G){return _.Lp(m,3,G,qoG)};var PEl=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(PEl,_.pp);var yO2=[1,2,3];var eni=[0,yO2,_.EA,$IB,EoG];var f4k=[0,_.Ho,[0,QI,_.a3]];var xTK=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(xTK,_.pp);var XgR=[1,2,3];var SJ2=[0,XgR,noK,t4B,_.I3,f4k];var Rni=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Rni,_.pp);var UTo=[0,_.Ho,eni,SJ2];var znl=[0,_.sA];var l4X=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(l4X,_.pp);var BM2=[0,_.sA,-1,_.vo];var MUG=[0,_.sA,-1,_.bA,_.vo];var TMF=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(TMF,_.pp);var m2G=[1,2,3];var iTS=[0,m2G,_.I3,BM2,_.I3,MUG,_.I3,znl];var GLl=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(GLl,_.pp);GLl.prototype.JSC$9914_serializeBinary=grM([0,_.sA,iTS,Hpi,_.Ho,UTo,seP,_.qeG]);var KER=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(KER,_.pp);var A_K=function(m){var G=new GLl;G=_.LB(G,1,m.JSC$10030_metricName);var K=WEG(m);G=_.Lp(G,3,K,_.vu);K=[];for(var W=[],L=_.g(m.cellMap.keys()),A=L.next();!A.done;A=L.next())W.push(A.value.split(","));for(L=0;L<W.length;L++){A=W[L];for(var O=m.cellType,c=m.getCells(A)||[],u=[],h=0;h<c.length;h++){var J=c[h],N=J&&J.cellValue;J=new xTK;switch(O){case 3:N=Number(N);Number.isFinite(N)&&Gi(J,1,XgR,FE(N));break;case 2:Gi(J,2,XgR,_.KP(Number(N)))}u.push(J)}O=u;for(c=0;c<O.length;c++){u=O[c];h=new Rni;u=_.ko(h,
2,u);h=[];J=LEK(m);for(N=0;N<J.length;N++){var D=J[N],t=A[N],a=new PEl;switch(D){case 3:Gi(a,1,yO2,sO(String(t)));break;case 2:D=Number(t);Number.isFinite(D)&&Gi(a,2,yO2,_.rz(D));break;case 1:Gi(a,3,yO2,vkd(t==="true"))}h.push(a)}m9(u,1,h);K.push(u)}}m9(G,4,K);return G};var w4K=function(m){if(!m)return"";if(/^about:(?:blank|srcdoc)$/.test(m))return window.origin||"";m.indexOf("blob:")===0&&(m=m.substring(5));m=m.split("#")[0].split("?")[0];m=m.toLowerCase();m.indexOf("//")==0&&(m=window.location.protocol+m);/^[\w\-]*:\/\//.test(m)||(m=window.location.href);var G=m.substring(m.indexOf("://")+3),K=G.indexOf("/");K!=-1&&(G=G.substring(0,K));K=m.substring(0,m.indexOf("://"));if(!K)throw Error("ra`"+m);if(K!=="http"&&K!=="https"&&K!=="chrome-extension"&&K!=="moz-extension"&&
K!=="file"&&K!=="android-app"&&K!=="chrome-search"&&K!=="chrome-untrusted"&&K!=="chrome"&&K!=="app"&&K!=="devtools")throw Error("sa`"+K);m="";var W=G.indexOf(":");if(W!=-1){var L=G.substring(W+1);G=G.substring(0,W);if(K==="http"&&L!=="80"||K==="https"&&L!=="443")m=":"+L}return K+"://"+G+m};var OT4=function(m,G,K){var W=String(_.Ks.location.href);return W&&m&&G?[G,gOF(w4K(W),m,K||null)].join(" "):null},gOF=function(m,G,K){var W=[],L=[];
if((Array.isArray(K)?2:1)==1)return L=[G,m],_.Z0(W,function(c){L.push(c)}),c_2(L.join(" "));
var A=[],O=[];_.Z0(K,function(c){O.push(c.key);A.push(c.value)});
K=Math.floor((new Date).getTime()/1E3);L=A.length==0?[K,G,m]:[A.join(":"),K,G,m];_.Z0(W,function(c){L.push(c)});
m=c_2(L.join(" "));m=[K,m];O.length==0||m.push(O.join(""));return m.join("_")},c_2=function(m){var G=Hnd();
G.update(m);return G.digestString().toLowerCase()};var YZP;_.w=fB.prototype;_.w.isEnabled=function(){if(!_.Ks.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};
_.w.set=function(m,G,K){var W=!1;if(typeof K==="object"){var L=K.sameSite;W=K.secure||!1;var A=K.domain||void 0;var O=K.path||void 0;var c=K.maxAge}if(/[;=\s]/.test(m))throw Error("ta`"+m);if(/[;\r\n]/.test(G))throw Error("ua`"+G);c===void 0&&(c=-1);K=A?";domain="+A:"";O=O?";path="+O:"";W=W?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+c*1E3)).toUTCString();this.JSC$9925_document_.cookie=m+"="+G+K+O+c+W+(L!=null?";samesite="+L:"")};
_.w.get=function(m,G){for(var K=m+"=",W=(this.JSC$9925_document_.cookie||"").split(";"),L=0,A;L<W.length;L++){A=u6(W[L]);if(A.lastIndexOf(K,0)==0)return A.slice(K.length);if(A==m)return""}return G};
_.w.remove=function(m,G,K){var W=this.containsKey(m);this.set(m,"",{maxAge:0,path:G,domain:K});return W};
_.w.getKeys=function(){return YZP(this).keys};
_.w.getValues=function(){return YZP(this).values};
_.w.isEmpty=function(){return!this.JSC$9925_document_.cookie};
_.w.getCount=function(){return this.JSC$9925_document_.cookie?(this.JSC$9925_document_.cookie||"").split(";").length:0};
_.w.containsKey=function(m){return this.get(m)!==void 0};
_.w.containsValue=function(m){for(var G=YZP(this).values,K=0;K<G.length;K++)if(G[K]==m)return!0;return!1};
_.w.clear=function(){for(var m=YZP(this).keys,G=m.length-1;G>=0;G--)this.remove(m[G])};
YZP=function(m){m=(m.JSC$9925_document_.cookie||"").split(";");for(var G=[],K=[],W,L,A=0;A<m.length;A++)L=u6(m[A]),W=L.indexOf("="),W==-1?(G.push(""),K.push(L)):(G.push(L.substring(0,W)),K.push(L.substring(W+1)));return{keys:G,values:K}};
_.LL=new fB(typeof document=="undefined"?null:document);var IjV,r_X;IjV=function(){var m=_.Ks.__SAPISID||_.Ks.__APISID||_.Ks.__3PSAPISID||_.Ks.__1PSAPISID||_.Ks.__OVERRIDE_SID;if(m)return!0;typeof document!=="undefined"&&(m=new fB(document),m=m.get("SAPISID")||m.get("APISID")||m.get("__Secure-3PAPISID")||m.get("__Secure-1PAPISID"));return!!m};
r_X=function(m,G,K,W){(m=_.Ks[m])||typeof document==="undefined"||(m=(new fB(document)).get(G));return m?OT4(m,K,W):null};
_.ZDG=function(m){var G=w4K(_.Ks==null?void 0:_.Ks.location.href),K=[];if(IjV()){G=G.indexOf("https:")==0||G.indexOf("chrome-extension:")==0||G.indexOf("chrome-untrusted://new-tab-page")==0||G.indexOf("moz-extension:")==0;var W=G?_.Ks.__SAPISID:_.Ks.__APISID;W||typeof document==="undefined"||(W=new fB(document),W=W.get(G?"SAPISID":"APISID")||W.get("__Secure-3PAPISID"));(W=W?OT4(W,G?"SAPISIDHASH":"APISIDHASH",m):null)&&K.push(W);G&&((G=r_X("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",m))&&K.push(G),
(m=r_X("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",m))&&K.push(m))}return K.length==0?null:K.join(" ")};var ufB=function(){this.minSize=1024};
ufB.prototype.compress=function(m){var G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return G=new CompressionStream("gzip"),K=(new Response(G.readable)).arrayBuffer(),W=G.writable.getWriter(),A.yield(W.write((new TextEncoder).encode(m)),2);case 2:return A.yield(W.close(),3);case 3:return L=Uint8Array,A.yield(K,4);case 4:return A.return(new L(A.yieldResult))}})};
ufB.prototype.isSupported=function(m){return m<this.minSize?!1:typeof CompressionStream!=="undefined"};var hRX=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(hRX,_.pp);var xv=function(m,G){this.intervalMs=m;this.callback=G;this.enabled=!1;this.nowFn=function(){return _.jI()};
this.lastTimeMs=this.nowFn()};
xv.prototype.setInterval=function(m){this.intervalMs=m;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
xv.prototype.start=function(){var m=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){m.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
xv.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
xv.prototype.tick=function(){var m=this;if(this.enabled){var G=Math.max(this.nowFn()-this.lastTimeMs,0);G<this.intervalMs*.8?this.timer=setTimeout(function(){m.tick()},this.intervalMs-G):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var p4i=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(p4i,_.pp);var J_k=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(J_k,_.pp);var N_R=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(N_R,_.pp);N_R.prototype.getTransmissionType=function(){return _.gL(this,1)};
N_R.prototype.getRetryCount=function(){return _.Z5(this,3)};var CXP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(CXP,_.pp);var Xo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Xo,_.pp);var kfd=function(m){m9(V1o,1,m)};
Xo.prototype.getModel=function(){return _.wL(this,6)};
var D22=_.HN(Xo);var tJC=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(tJC,_.pp);var I0o=["platform","platformVersion","architecture","model","uaFullVersion"],V1o=new Xo,jPM=null;var Sk=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Sk,_.pp);var FE2=function(m){return _.UV(m,1,1)};var Q2i=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,4)};
_.n(Q2i,_.pp);_.zs=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,36)};
_.n(_.zs,_.pp);_.zs.prototype.getExperimentIds=function(){return _.RG(this,hRX,16)};var aM0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,19)};
_.n(aM0,_.pp);aM0.prototype.setLogSource=function(m){return _.UV(this,2,m)};
aM0.prototype.setScheduler=function(m){return _.UV(this,10,m)};var nOB=function(m,G){this.isServiceWorkerScope=G=G===void 0?!1:G;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new aM0;Number.isInteger(m)&&this.logRequest.setLogSource(m);G||(this.locale=document.documentElement.getAttribute("lang"));oOS(this,new Sk)};
nOB.prototype.setLogSource=function(m){this.logRequest.setLogSource(m);return this};
var oOS=function(m,G){_.ko(m.logRequest,1,G);_.gL(G,1)||FE2(G);m.isServiceWorkerScope||(G=l7(m),_.wL(G,5)||_.LB(G,5,m.locale));m.uach&&(G=l7(m),_.RG(G,Xo,9)||_.ko(G,9,m.uach))},bTo=function(m,G){m.transmissionType=G},vOk=function(m){var G=G===void 0?I0o:G;
var K=m.isServiceWorkerScope?void 0:ur();K?Znd(K,G).then(function(W){m.uach=D22(W!=null?W:"[]");W=l7(m);_.ko(W,9,m.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},l7=function(m){var G=_.RG(m.logRequest,Sk,1);
G||(G=new Sk,oOS(m,G));m=G;G=_.RG(m,tJC,11);G||(G=new tJC,_.ko(m,11,G));return G};
nOB.prototype.build=function(m,G,K,W,L,A){G=G===void 0?0:G;K=K===void 0?0:K;W=W===void 0?null:W;L=L===void 0?0:L;A=A===void 0?0:A;if(!this.isServiceWorkerScope){var O=l7(this);var c=new N_R;c=_.UV(c,1,this.transmissionType);c=_.x2(c,2,this.isFinal);K=_.rL(c,3,K>0?K:void 0);K=_.rL(K,4,L>0?L:void 0);K=_.rL(K,5,A>0?A:void 0);L=K.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=L[_.Ai]|0;K=so(K,A)?K:d6d(K,L,A)?ZPf(K,L):new K.constructor(x5(L,A,!0));_.ko(O,10,K)}O=this.logRequest.clone();K=Date.now().toString();
O=_.zd(O,4,FE(K));m=m.slice();m=m9(O,3,m);W&&(O=new p4i,W=_.rL(O,13,W),O=new J_k,W=_.ko(O,2,W),O=new Q2i,W=_.ko(O,1,W),W=_.UV(W,2,9),_.ko(m,18,W));G&&_.c$(m,14,G);return m};Xb.prototype.currBackoffCount_=0;Xb.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Xb.prototype.getValue=function(){return this.currValue_};
var $2i=function(m){m.currBaseValue_=Math.min(m.maxValue_,m.currBaseValue_*m.backoffFactor_);m.currValue_=Math.min(m.maxValue_,m.currBaseValue_+(m.randomFactor_?Math.round(m.randomFactor_*(Math.random()-.5)*2*m.currBaseValue_):0));m.currBackoffCount_++};var V4G=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,8)};
_.n(V4G,_.pp);var s2o=_.HN(V4G);var Zpl=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Zpl,_.pp);var Bb;Bb=new dIS;var MN=function(m){_.Lt.call(this);var G=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$10003_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$10003_sendBeaconApiEnabled=!1;this.logSource=m.logSource;this.getAuthHeaderValue=
m.getAuthHeaderValue||function(){};
this.logRequestBuilder=new nOB(m.logSource,m.isServiceWorkerScope);this.network=m.network||null;this.productID=m.productID||null;this.bufferSize=1E3;this.clearcutUrl=m.urlOverride||null;this.sessionIndex=m.sessionIndex||null;this.disableAutomaticFlush=m.disableAutomaticFlush||!1;this.withCredentials=!m.disableWithCredentials;this.isServiceWorkerScope=m.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!ur()&&!!ur().navigator&&ur().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(qZl())).searchParams&&!!(new URL(qZl())).searchParams.set;var K=FE2(new Sk);oOS(this.logRequestBuilder,K);this.flushBackoff=new Xb(1E4,3E5,.1);m=EOR(this,m.backgroundJobDeferrer);this.JSC$10003_flushTimer=new xv(this.flushBackoff.getValue(),m);this.backupTimer=new xv(6E5,m);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){HT2(G);
var W;(W=G.metalogService)==null||W.flush()}}),document.addEventListener("pagehide",function(){HT2(G);
var W;(W=G.metalogService)==null||W.flush()}))};
_.n(MN,_.Lt);var EOR=function(m,G){return m.isBrowserSupported?G?function(){G().then(function(){m.flush()})}:function(){m.flush()}:function(){}};
MN.prototype.disposeInternal=function(){HT2(this);this.JSC$10003_flushTimer.stop();this.backupTimer.stop();_.Lt.prototype.disposeInternal.call(this)};
var IMk=function(m){m.clearcutUrl||(m.clearcutUrl=qZl());try{return(new URL(m.clearcutUrl)).toString()}catch(G){return(new URL(m.clearcutUrl,ur().location.origin)).toString()}};
MN.prototype.dispatch=function(m){if(m instanceof _.zs)this.log(m);else try{var G=new _.zs,K=m.serialize();var W=_.LB(G,8,K);this.log(W)}catch(L){Ts(this,4,1)}};
var Ts=function(m,G,K){m.metalogService&&m.metalogService.increment(G,K)};
MN.prototype.log=function(m){Ts(this,2,1);if(this.isBrowserSupported){m=m.clone();var G=this.sequencePosition++;m=_.c$(m,21,G);this.componentId&&_.LB(m,26,this.componentId);G=m;if(X2d(_.ze(G,1))==null){var K=Date.now();K=Number.isFinite(K)?K.toString():"0";_.zd(G,1,FE(K))}_.js2(G,15)!=null||_.c$(G,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(K=this.experimentIds.clone(),_.ko(G,16,K));Ts(this,1,1);G=this.pendingEvents.length-this.bufferSize+1;G>0&&(this.pendingEvents.splice(0,G),this.numLogsDroppedSinceLastFlush+=
G,Ts(this,3,G));this.pendingEvents.push(m);this.disableAutomaticFlush||this.JSC$10003_flushTimer.enabled||this.JSC$10003_flushTimer.start()}};
MN.prototype.flush=function(m,G){var K=this;if(this.pendingEvents.length===0)m&&m();else if(this.JSC$10003_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,j22(this);else{var W=Date.now();if(this.noFlushUntilMs>W&&this.startWaitingMs<W)G&&G("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?bTo(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var L=this.pendingEvents.length,
A=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),O=this.getAuthHeaderValue();if(O&&this.lastFailedAuth===O)G&&G("stale-auth-token");else{this.pendingEvents=[];this.JSC$10003_flushTimer.enabled&&this.JSC$10003_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;W=A.serialize();var c;this.JSC$10003_compressor&&this.JSC$10003_compressor.isSupported(W.length)&&
(c=this.JSC$10003_compressor.compress(W));var u=kLF(this,W,O),h=function(D){K.flushBackoff.reset();K.JSC$10003_flushTimer.setInterval(K.flushBackoff.getValue());if(D){var t=null;try{var a=JSON.stringify(JSON.parse(D.replace(")]}'\n","")));t=s2o(a)}catch(v){}t&&(D=Number(Lg(t,1,_.ZP("-1"))),D>0&&(K.startWaitingMs=Date.now(),K.noFlushUntilMs=K.startWaitingMs+D),uEd(t.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Bb.fieldIndex),YO6(t,Bb.fieldIndex),t=Bb.ctor?Bb.getExtensionFn(t,Bb.ctor,Bb.fieldIndex,
Bb.JSC$9183_hasMessageId):Bb.getExtensionFn(t,Bb.fieldIndex,null,Bb.JSC$9183_hasMessageId),t=t===null?void 0:t)&&(t=_.Z5(t,1,-1),t!==-1&&(K.flushBackoff=new Xb(t<1?1:t,3E5,.1),K.JSC$10003_flushTimer.setInterval(K.flushBackoff.getValue())))}m&&m();K.numRetriesSinceLastSuccessfulFlush=0},J=function(D,t){var a=_.CB(A,_.zs,3,_.Vp());
var v=Number(Lg(A,14));$2i(K.flushBackoff);K.JSC$10003_flushTimer.setInterval(K.flushBackoff.getValue());D===401&&O&&(K.lastFailedAuth=O);v&&(K.numLogsDroppedSinceLastFlush+=v);t===void 0&&(t=K.isRetryable(D));t&&(K.pendingEvents=a.concat(K.pendingEvents),K.disableAutomaticFlush||K.JSC$10003_flushTimer.enabled||K.JSC$10003_flushTimer.start());Ts(K,7,1);G&&G("net-send-failed",D);++K.numRetriesSinceLastSuccessfulFlush},N=function(){K.network&&K.network.send(u,h,J)};
c?c.then(function(D){Ts(K,5,L);u.requestHeaders["Content-Encoding"]="gzip";u.requestHeaders["Content-Type"]="application/binary";u.body=D;u.bodyType=2;N()},function(){Ts(K,6,L);
N()}):N()}}}};
var kLF=function(m,G,K){K=K===void 0?null:K;var W=W===void 0?m.withCredentials:W;var L={},A=new URL(IMk(m));K&&(L.Authorization=K);m.sessionIndex&&(L["X-Goog-AuthUser"]=m.sessionIndex,A.searchParams.set("authuser",m.sessionIndex));m.pageId&&(Object.defineProperty(L,"X-Goog-PageId",{value:m.pageId}),A.searchParams.set("pageId",m.pageId));return{url:A.toString(),body:G,bodyType:1,requestHeaders:L,requestType:"POST",withCredentials:W,timeoutMillis:m.timeoutMillis}},HT2=function(m){m.logRequestBuilder.isFinal=
!0;
m.flush();m.logRequestBuilder.isFinal=!1},j22=function(m){CMS(m,function(G,K){G=new URL(G);
G.searchParams.set("format","json");var W=!1;try{W=ur().navigator.sendBeacon(G.toString(),K.serialize())}catch(L){}W||(m.isSendBeaconSupported=!1);return W})},CMS=function(m,G){if(m.pendingEvents.length!==0){var K=new URL(IMk(m));
K.searchParams.delete("format");var W=m.getAuthHeaderValue();W&&K.searchParams.set("auth",W);K.searchParams.set("authuser",m.sessionIndex||"0");for(W=0;W<10&&m.pendingEvents.length;++W){var L=m.pendingEvents.slice(0,32),A=m.logRequestBuilder.build(L,m.numLogsDroppedSinceLastFlush,m.numRetriesSinceLastSuccessfulFlush,m.productID,m.persistedLogRecoveredCount,m.persistedLogExpiredCount);if(!G(K.toString(),A)){++m.numRetriesSinceLastSuccessfulFlush;break}m.numLogsDroppedSinceLastFlush=0;m.numRetriesSinceLastSuccessfulFlush=
0;m.persistedLogRecoveredCount=0;m.persistedLogExpiredCount=0;m.pendingEvents=m.pendingEvents.slice(L.length)}m.JSC$10003_flushTimer.enabled&&m.JSC$10003_flushTimer.stop()}};
MN.prototype.isRetryable=function(m){return 500<=m&&m<600||m===401||m===0};
var qZl=function(){return"https://play.google.com/log?format=json&hasfast=true"};var VJG=function(){this.abortSupported=typeof AbortController!=="undefined"};
VJG.prototype.send=function(m,G,K){var W=this,L,A,O,c,u,h,J,N,D,t;return _.Y(function(a){switch(a.nextAddress){case 1:return A=(L=W.abortSupported?new AbortController:void 0)?setTimeout(function(){L.abort()},m.timeoutMillis):void 0,_.IO(a,2,3),O=Object.assign({},{method:m.requestType,
headers:Object.assign({},m.requestHeaders)},m.body&&{body:m.body},m.withCredentials&&{credentials:"include"},{signal:m.timeoutMillis&&L?L.signal:null}),a.yield(fetch(m.url,O),5);case 5:c=a.yieldResult;if(c.status!==200){(u=K)==null||u(c.status);a.jumpTo(3);break}if((h=G)==null){a.jumpTo(7);break}return a.yield(c.text(),8);case 8:h(a.yieldResult);case 7:case 3:_.CZ(a);clearTimeout(A);_.ZO(a,0);break;case 2:J=_.ye(a);switch((N=J)==null?void 0:N.name){case "AbortError":(D=K)==null||D(408);break;default:(t=
K)==null||t(400)}a.jumpTo(3)}})};
VJG.prototype.getTransmissionType=function(){return 4};_.R$=function(m,G){G=G===void 0?"0":G;_.Lt.call(this);this.logSource=m;this.sessionIndex=G;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$10021_clearExperimentIds=this.productID=null;this.JSC$10021_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.n(_.R$,_.Lt);var l0P=function(m,G){m.buildLabel=G;return m},zId=function(m,G){m.network=G;
return m},M19=function(m,G){m.JSC$10021_clearExperimentIds=G},UCs=function(m){m.JSC$10021_sendBeaconApiEnabled=!0;
return m};
_.R$.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.R$.prototype.build=function(){this.network||(this.network=new VJG);var m=new MN({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.ZDG,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.UR(this,m);if(this.buildLabel){var G=this.buildLabel,K=
l7(m.logRequestBuilder);_.LB(K,7,G)}m.JSC$10003_compressor=new ufB;this.componentId&&(m.componentId=this.componentId);this.productID&&(m.productID=this.productID);this.pageId&&(m.pageId=this.pageId);this.JSC$10021_clearExperimentIds&&((K=this.JSC$10021_clearExperimentIds)?(m.experimentIds||(m.experimentIds=new hRX),G=m.experimentIds,K=K.serialize(),_.LB(G,4,K)):m.experimentIds&&_.zd(m.experimentIds,4));this.JSC$10021_sendBeaconApiEnabled&&(m.JSC$10003_sendBeaconApiEnabled=m.isSendBeaconSupported);
vOk(m.logRequestBuilder);this.bufferSize&&(m.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(m);return m};var iL6=function(m,G,K,W,L,A,O){m=m===void 0?-1:m;G=G===void 0?"":G;K=K===void 0?"":K;W=W===void 0?!1:W;L=L===void 0?"":L;_.Lt.call(this);this.logSource=m;this.componentId=G;A?G=A:(m=new _.R$(m,"0"),m.componentId=G,_.UR(this,m),K!==""&&(m.destinationUrl=K),W&&(m.serviceWorkerScopeEnabled=!0),L&&l0P(m,L),O&&zId(m,O),G=m.build());this.JSC$10025_transport=G};
_.n(iL6,_.Lt);iL6.prototype.flush=function(m){m=m||[];if(m.length){for(var G=new KER,K=[],W=0;W<m.length;W++){var L=m[W],A=A_K(L);K.push(A);L.clear()}m9(G,1,K);this.JSC$10025_transport.dispatch(G);this.JSC$10025_transport.flush()}};var ZT0=function(m){this.cellValue=m};var mz=function(m,G,K){this.JSC$10030_metricName=m;this.cellType=G;this.fields=K||[];this.cellMap=new Map},LEK=function(m){return m.fields.map(function(G){return G.fieldType})},WEG=function(m){return m.fields.map(function(G){return G.fieldName})};
_.w=mz.prototype;_.w.addCell=function(m){var G=_.mb.apply(1,arguments),K=this.getCells(G);K?K.push(new ZT0(m)):this.JSC$10030_setCell(m,G)};
_.w.JSC$10030_setCell=function(m){var G=this.JSC$10030_getKey(_.mb.apply(1,arguments));this.cellMap.set(G,[new ZT0(m)])};
_.w.getCells=function(){var m=this.JSC$10030_getKey(_.mb.apply(0,arguments));return this.cellMap.has(m)?this.cellMap.get(m):void 0};
_.w.getCell=function(){var m=this.getCells(_.mb.apply(0,arguments));return m&&m.length?m[0]:void 0};
_.w.clear=function(){this.cellMap.clear()};
_.w.JSC$10030_getKey=function(){var m=_.mb.apply(0,arguments);return m?m.join(","):"key"};var d2R=function(m,G){mz.call(this,m,3,G)};
_.n(d2R,mz);d2R.prototype.JSC$10033_incrementCounterBy=function(m){var G=_.mb.apply(1,arguments),K=0,W=this.getCell(G);W&&(K=W.cellValue);this.JSC$10030_setCell(K+m,G)};var PMX=function(m,G){mz.call(this,m,2,G)};
_.n(PMX,mz);PMX.prototype.record=function(m){this.addCell(m,_.mb.apply(1,arguments))};_.iZ=function(m){this.id=m};
_.iZ.prototype.toString=function(){return this.id};_.dM=function(m,G){this.type=m instanceof _.iZ?String(m):m;this.currentTarget=this.target=G;this.defaultPrevented=this.propagationStopped_=!1};
_.dM.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.dM.prototype.preventDefault=function(){this.defaultPrevented=!0};_.G5=function(m,G){_.dM.call(this,m?m.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;m&&this.init(m,G)};
_.kJ(_.G5,_.dM);
_.G5.prototype.init=function(m,G){var K=this.type=m.type,W=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;this.target=m.target||m.srcElement;this.currentTarget=G;G=m.relatedTarget;G||(K=="mouseover"?G=m.fromElement:K=="mouseout"&&(G=m.toElement));this.relatedTarget=G;W?(this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0):(this.offsetX=_.zb||m.offsetX!==void 0?m.offsetX:m.layerX,
this.offsetY=_.zb||m.offsetY!==void 0?m.offsetY:m.layerY,this.clientX=m.clientX!==void 0?m.clientX:m.pageX,this.clientY=m.clientY!==void 0?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0);this.button=m.button;this.keyCode=m.keyCode||0;this.key=m.key||"";this.charCode=m.charCode||(K=="keypress"?m.keyCode:0);this.ctrlKey=m.ctrlKey;this.altKey=m.altKey;this.shiftKey=m.shiftKey;this.metaKey=m.metaKey;this.pointerId=m.pointerId||0;this.pointerType=m.pointerType;this.state=m.state;
this.timeStamp=m.timeStamp;this.event_=m;m.defaultPrevented&&_.G5.superClass_.preventDefault.call(this)};
_.G5.prototype.isButton=function(m){return this.event_.button==m};
_.G5.prototype.stopPropagation=function(){_.G5.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.G5.prototype.preventDefault=function(){_.G5.superClass_.preventDefault.call(this);var m=this.event_;m.preventDefault?m.preventDefault():m.returnValue=!1};var y_K="closure_listenable_"+(Math.random()*1E6|0),Kb=function(m){return!(!m||!m[y_K])};var dCM=0;var eR2=function(m){m.removed=!0;m.listener=null;m.proxy=null;m.src=null;m.handler=null};Sa.prototype.add=function(m,G,K,W,L){var A=m.toString();m=this.listeners[A];m||(m=this.listeners[A]=[],this.typeCount_++);var O=fMP(m,G,W,L);O>-1?(G=m[O],K||(G.callOnce=!1)):(G=new PXd(G,this.src,A,!!W,L),G.callOnce=K,m.push(G));return G};
Sa.prototype.remove=function(m,G,K,W){m=m.toString();if(!(m in this.listeners))return!1;var L=this.listeners[m];G=fMP(L,G,K,W);return G>-1?(eR2(L[G]),_.EGM(L,G),L.length==0&&(delete this.listeners[m],this.typeCount_--),!0):!1};
var x2o=function(m,G){var K=G.type;if(!(K in m.listeners))return!1;var W=_.PJ(m.listeners[K],G);W&&(eR2(G),m.listeners[K].length==0&&(delete m.listeners[K],m.typeCount_--));return W};
Sa.prototype.removeAll=function(m){m=m&&m.toString();var G=0,K;for(K in this.listeners)if(!m||K==m){for(var W=this.listeners[K],L=0;L<W.length;L++)++G,eR2(W[L]);delete this.listeners[K];this.typeCount_--}return G};
Sa.prototype.getListener=function(m,G,K,W){m=this.listeners[m.toString()];var L=-1;m&&(L=fMP(m,G,K,W));return L>-1?m[L]:null};
Sa.prototype.hasListener=function(m,G){var K=m!==void 0,W=K?m.toString():"",L=G!==void 0;return _.Y2.some(this.listeners,function(A){for(var O=0;O<A.length;++O)if(!(K&&A[O].type!=W||L&&A[O].capture!=G))return!0;return!1})};
var fMP=function(m,G,K,W){for(var L=0;L<m.length;++L){var A=m[L];if(!A.removed&&A.listener==G&&A.capture==!!K&&A.handler==W)return L}return-1};var X42,SZo,RRK,zRk,lM0,JO,Tg,qVJ,B_F,MJG,WW,T_F,U2G;X42="closure_lm_"+(Math.random()*1E6|0);SZo={};RRK=0;_.oi=function(m,G,K,W,L){if(W&&W.once)return JO(m,G,K,W,L);if(Array.isArray(G)){for(var A=0;A<G.length;A++)_.oi(m,G[A],K,W,L);return null}K=U2G(K);return Kb(m)?m.listen(G,K,_.Ud(W)?!!W.capture:!!W,L):zRk(m,G,K,!1,W,L)};
zRk=function(m,G,K,W,L,A){if(!G)throw Error("wa");var O=_.Ud(L)?!!L.capture:!!L,c=WW(m);c||(m[X42]=c=new Sa(m));K=c.add(G,K,W,O,A);if(K.proxy)return K;W=lM0();K.proxy=W;W.src=m;W.listener=K;if(m.addEventListener)_.usC||(L=O),L===void 0&&(L=!1),m.addEventListener(G.toString(),W,L);else if(m.attachEvent)m.attachEvent(B_F(G.toString()),W);else if(m.addListener&&m.removeListener)m.addListener(W);else throw Error("xa");RRK++;return K};
lM0=function(){var m=MJG,G=function(K){return m.call(G.src,G.listener,K)};
return G};
JO=function(m,G,K,W,L){if(Array.isArray(G)){for(var A=0;A<G.length;A++)JO(m,G[A],K,W,L);return null}K=U2G(K);return Kb(m)?m.listenOnce(G,K,_.Ud(W)?!!W.capture:!!W,L):zRk(m,G,K,!0,W,L)};
_.Lb=function(m,G,K,W,L){if(Array.isArray(G))for(var A=0;A<G.length;A++)_.Lb(m,G[A],K,W,L);else W=_.Ud(W)?!!W.capture:!!W,K=U2G(K),Kb(m)?m.unlisten(G,K,W,L):m&&(m=WW(m))&&(G=m.getListener(G,K,W,L))&&Tg(G)};
Tg=function(m){if(typeof m==="number"||!m||m.removed)return!1;var G=m.src;if(Kb(G))return x2o(G.eventTargetListeners_,m);var K=m.type,W=m.proxy;G.removeEventListener?G.removeEventListener(K,W,m.capture):G.detachEvent?G.detachEvent(B_F(K),W):G.addListener&&G.removeListener&&G.removeListener(W);RRK--;(K=WW(G))?(x2o(K,m),K.typeCount_==0&&(K.src=null,G[X42]=null)):eR2(m);return!0};
qVJ=function(m,G,K,W,L){K=U2G(K);W=!!W;return Kb(m)?m.getListener(G,K,W,L):m?(m=WW(m))?m.getListener(G,K,W,L):null:null};
B_F=function(m){return m in SZo?SZo[m]:SZo[m]="on"+m};
MJG=function(m,G){if(m.removed)m=!0;else{G=new _.G5(G,this);var K=m.listener,W=m.handler||m.src;m.callOnce&&Tg(m);m=K.call(W,G)}return m};
WW=function(m){m=m[X42];return m instanceof Sa?m:null};
T_F="__closure_events_fn_"+(Math.random()*1E9>>>0);U2G=function(m){if(typeof m==="function")return m;m[T_F]||(m[T_F]=function(G){return m.handleEvent(G)});
return m[T_F]};_.ai=function(){_.Lt.call(this);this.eventTargetListeners_=new Sa(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.kJ(_.ai,_.Lt);_.ai.prototype[y_K]=!0;_.w=_.ai.prototype;_.w.setParentEventTarget=function(m){this.parentEventTarget_=m};
_.w.addEventListener=function(m,G,K,W){_.oi(this,m,G,K,W)};
_.w.removeEventListener=function(m,G,K,W){_.Lb(this,m,G,K,W)};
_.w.dispatchEvent=function(m){var G,K=this.parentEventTarget_;if(K)for(G=[];K;K=K.parentEventTarget_)G.push(K);K=this.actualEventTarget_;var W=m.type||m;if(typeof m==="string")m=new _.dM(m,K);else if(m instanceof _.dM)m.target=m.target||K;else{var L=m;m=new _.dM(W,K);_.Y2.extend(m,L)}L=!0;var A;if(G)for(A=G.length-1;!m.propagationStopped_&&A>=0;A--){var O=m.currentTarget=G[A];L=mCG(O,W,!0,m)&&L}m.propagationStopped_||(O=m.currentTarget=K,L=mCG(O,W,!0,m)&&L,m.propagationStopped_||(L=mCG(O,W,!1,m)&&
L));if(G)for(A=0;!m.propagationStopped_&&A<G.length;A++)O=m.currentTarget=G[A],L=mCG(O,W,!1,m)&&L;return L};
_.w.disposeInternal=function(){_.ai.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.w.listen=function(m,G,K,W){return this.eventTargetListeners_.add(String(m),G,!1,K,W)};
_.w.listenOnce=function(m,G,K,W){return this.eventTargetListeners_.add(String(m),G,!0,K,W)};
_.w.unlisten=function(m,G,K,W){return this.eventTargetListeners_.remove(String(m),G,K,W)};
_.w.removeAllListeners=function(m){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(m):0};
var mCG=function(m,G,K,W){G=m.eventTargetListeners_.listeners[String(G)];if(!G)return!0;G=G.concat();for(var L=!0,A=0;A<G.length;++A){var O=G[A];if(O&&!O.removed&&O.capture==K){var c=O.listener,u=O.handler||O.src;O.callOnce&&x2o(m.eventTargetListeners_,O);L=c.call(u,W)!==!1&&L}}return L&&!W.defaultPrevented};
_.ai.prototype.getListener=function(m,G,K,W){return this.eventTargetListeners_.getListener(String(m),G,K,W)};
_.ai.prototype.hasListener=function(m,G){return this.eventTargetListeners_.hasListener(m!==void 0?String(m):void 0,G)};var Az=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(m){return m&&AsyncContext.Snapshot.wrap(m)}:function(m){return m};var ino=function(m,G){this.create_=m;this.reset_=G;this.occupants_=0;this.JSC$10065_head_=null};
ino.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var m=this.JSC$10065_head_;this.JSC$10065_head_=m.next;m.next=null}else m=this.create_();return m};
ino.prototype.put=function(m){this.reset_(m);this.occupants_<100&&(this.occupants_++,m.next=this.JSC$10065_head_,this.JSC$10065_head_=m)};var Gf0=function(){this.workTail_=this.workHead_=null};
Gf0.prototype.add=function(m,G){var K=eIs.get();K.set(m,G);this.workTail_?this.workTail_.next=K:this.workHead_=K;this.workTail_=K};
Gf0.prototype.remove=function(){var m=null;this.workHead_&&(m=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),m.next=null);return m};
var eIs=new ino(function(){return new K30},function(m){return m.reset()}),K30=function(){this.next=this.scope=this.fn=null};
K30.prototype.set=function(m,G){this.fn=m;this.scope=G;this.next=null};
K30.prototype.reset=function(){this.next=this.scope=this.fn=null};var W32,f0G,ywv,L3S;f0G=!1;ywv=new Gf0;_.wO=function(m,G){W32||L3S();f0G||(W32(),f0G=!0);ywv.add(m,G)};
L3S=function(){var m=Promise.resolve(void 0);W32=function(){m.then(xC6)}};var Aw0=function(m){m.prototype.$goog_Thenable=!0},wO2=function(m){if(!m)return!1;
try{return!!m.$goog_Thenable}catch(G){return!1}};var gSo,Onl,cw2,rwF,uFk,hIS,DCR,QPC,bnk,oSR,tHP;_.iO=function(m,G){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(m!=_.Wb)try{var K=this;m.call(G,function(W){K.resolve_(2,W)},function(W){K.resolve_(3,W)})}catch(W){this.resolve_(3,W)}};
gSo=function(){this.next=this.context=this.JSC$10076_onRejected=this.JSC$10076_onFulfilled=this.child=null;this.always=!1};
gSo.prototype.reset=function(){this.context=this.JSC$10076_onRejected=this.JSC$10076_onFulfilled=this.child=null;this.always=!1};
Onl=new ino(function(){return new gSo},function(m){m.reset()});
cw2=function(m,G,K){var W=Onl.get();W.JSC$10076_onFulfilled=m;W.JSC$10076_onRejected=G;W.context=K;return W};
_.fJ=function(m){if(m instanceof _.iO)return m;var G=new _.iO(_.Wb);G.resolve_(2,m);return G};
_.KN=function(m){return new _.iO(function(G,K){K(m)})};
rwF=function(m,G,K){Y8k(m,G,K,null)||_.wO(_.BH(G,m))};
_.gO=function(m){return new _.iO(function(G,K){var W=m.length,L=[];if(W)for(var A=function(h,J){W--;L[h]=J;W==0&&G(L)},O=function(h){K(h)},c,u=0;u<m.length;u++)c=m[u],rwF(c,_.BH(A,u),O);
else G(L)})};
uFk=function(m){return new _.iO(function(G){var K=m.length,W=[];if(K)for(var L=function(c,u,h){K--;W[c]=u?{fulfilled:!0,value:h}:{fulfilled:!1,reason:h};K==0&&G(W)},A,O=0;O<m.length;O++)A=m[O],rwF(A,_.BH(L,O,!0),_.BH(L,O,!1));
else G(W)})};
hIS=function(m){return new _.iO(function(G,K){var W=m.length,L=[];if(W)for(var A=function(h){G(h)},O=function(h,J){W--;
L[h]=J;W==0&&K(L)},c,u=0;u<m.length;u++)c=m[u],rwF(c,A,_.BH(O,u));
else G(void 0)})};
_.Qo=function(){var m,G,K=new _.iO(function(W,L){m=W;G=L});
return new pOG(K,m,G)};
_.iO.prototype.then=function(m,G,K){return JwG(this,Az(typeof m==="function"?m:null),Az(typeof G==="function"?G:null),K)};
Aw0(_.iO);DCR=function(m,G,K,W){Ns4(m,cw2(G||_.Wb,K||null,W))};
_.O5=function(m,G){G=Az(G);G=cw2(G,G);G.always=!0;Ns4(m,G);return m};
_.iO.prototype.finally=function(m){var G=this;m=Az(m);return new _.iO(function(K,W){DCR(G,function(L){m();K(L)},function(L){m();
W(L)})})};
_.iO.prototype.thenCatch=function(m,G){return JwG(this,null,Az(m),G)};
_.iO.prototype.catch=_.iO.prototype.thenCatch;_.iO.prototype.cancel=function(m){if(this.state_==0){var G=new _.uG(m);_.wO(function(){t10(this,G)},this)}};
var t10=function(m,G){if(m.state_==0)if(m.parent_){var K=m.parent_;if(K.callbackEntries_){for(var W=0,L=null,A=null,O=K.callbackEntries_;O&&(O.always||(W++,O.child==m&&(L=O),!(L&&W>1)));O=O.next)L||(A=O);L&&(K.state_==0&&W==1?t10(K,G):(A?(W=A,W.next==K.callbackEntriesTail_&&(K.callbackEntriesTail_=W),W.next=W.next.next):F34(K),QPC(K,L,3,G)))}m.parent_=null}else m.resolve_(3,G)},Ns4=function(m,G){m.callbackEntries_||m.state_!=2&&m.state_!=3||a0o(m);
m.callbackEntriesTail_?m.callbackEntriesTail_.next=G:m.callbackEntries_=G;m.callbackEntriesTail_=G},JwG=function(m,G,K,W){var L=cw2(null,null,null);
L.child=new _.iO(function(A,O){L.JSC$10076_onFulfilled=G?function(c){try{var u=G.call(W,c);A(u)}catch(h){O(h)}}:A;
L.JSC$10076_onRejected=K?function(c){try{var u=K.call(W,c);u===void 0&&c instanceof _.uG?O(c):A(u)}catch(h){O(h)}}:O});
L.child.parent_=m;Ns4(m,L);return L.child};
_.iO.prototype.unblockAndFulfill_=function(m){this.state_=0;this.resolve_(2,m)};
_.iO.prototype.unblockAndReject_=function(m){this.state_=0;this.resolve_(3,m)};
_.iO.prototype.resolve_=function(m,G){this.state_==0&&(this===G&&(m=3,G=new TypeError("ya")),this.state_=1,Y8k(G,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=G,this.state_=m,this.parent_=null,a0o(this),m!=3||G instanceof _.uG||oSR(this,G)))};
var Y8k=function(m,G,K,W){if(m instanceof _.iO)return DCR(m,G,K,W),!0;if(wO2(m))return m.then(G,K,W),!0;if(_.Ud(m))try{var L=m.then;if(typeof L==="function")return nSK(m,L,G,K,W),!0}catch(A){return K.call(W,A),!0}return!1},nSK=function(m,G,K,W,L){var A=!1,O=function(u){A||(A=!0,K.call(L,u))},c=function(u){A||(A=!0,W.call(L,u))};
try{G.call(m,O,c)}catch(u){c(u)}},a0o=function(m){m.executing_||(m.executing_=!0,_.wO(m.executeCallbacks_,m))},F34=function(m){var G=null;
m.callbackEntries_&&(G=m.callbackEntries_,m.callbackEntries_=G.next,G.next=null);m.callbackEntries_||(m.callbackEntriesTail_=null);return G};
_.iO.prototype.executeCallbacks_=function(){for(var m;m=F34(this);)QPC(this,m,this.state_,this.result_);this.executing_=!1};
QPC=function(m,G,K,W){if(K==3&&G.JSC$10076_onRejected&&!G.always)for(;m&&m.hadUnhandledRejection_;m=m.parent_)m.hadUnhandledRejection_=!1;if(G.child)G.child.parent_=null,bnk(G,K,W);else try{G.always?G.JSC$10076_onFulfilled.call(G.context):bnk(G,K,W)}catch(L){tHP.call(null,L)}Onl.put(G)};
bnk=function(m,G,K){G==2?m.JSC$10076_onFulfilled.call(m.context,K):m.JSC$10076_onRejected&&m.JSC$10076_onRejected.call(m.context,K)};
oSR=function(m,G){m.hadUnhandledRejection_=!0;_.wO(function(){m.hadUnhandledRejection_&&tHP.call(null,G)})};
tHP=WJ;_.uG=function(m){_.mv.call(this,m)};
_.kJ(_.uG,_.mv);_.uG.prototype.name="cancel";var pOG=function(m,G,K){this.promise=m;this.resolve=G;this.reject=K};var cW;_.Yl=function(m,G){_.ai.call(this);this.JSC$10088_interval_=m||1;this.timerObject_=G||_.Ks;this.boundTick_=(0,_.AO)(this.tick_,this);this.last_=_.jI()};
_.kJ(_.Yl,_.ai);_.w=_.Yl.prototype;_.w.enabled=!1;_.w.JSC$10090_timer_=null;_.w.setInterval=function(m){this.JSC$10088_interval_=m;this.JSC$10090_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$10090_timer_&&this.stop()};
_.w.tick_=function(){if(this.enabled){var m=_.jI()-this.last_;m>0&&m<this.JSC$10088_interval_*.8?this.JSC$10090_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10088_interval_-m):(this.JSC$10090_timer_&&(this.timerObject_.clearTimeout(this.JSC$10090_timer_),this.JSC$10090_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.w.start=function(){this.enabled=!0;this.JSC$10090_timer_||(this.JSC$10090_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$10088_interval_),this.last_=_.jI())};
_.w.stop=function(){this.enabled=!1;this.JSC$10090_timer_&&(this.timerObject_.clearTimeout(this.JSC$10090_timer_),this.JSC$10090_timer_=null)};
_.w.disposeInternal=function(){_.Yl.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
cW=function(m,G,K){if(typeof m==="function")K&&(m=(0,_.AO)(m,K));else if(m&&typeof m.handleEvent=="function")m=(0,_.AO)(m.handleEvent,m);else throw Error("za");return Number(G)>2147483647?-1:_.Ks.setTimeout(m,G||0)};
_.vSl=function(m){var G=null;return(new _.iO(function(K,W){G=cW(function(){K(void 0)},m);
G==-1&&W(Error("Aa"))})).thenCatch(function(K){_.Ks.clearTimeout(G);
throw K;})};var zI=function(m){_.Lt.call(this);this.streamzLogger=m;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$10094_flushTimer=new _.Yl(this.flushInterval);this.JSC$10094_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.UR(this,this.JSC$10094_flushTimer)};
_.n(zI,_.Lt);zI.prototype.sendIsolatedPayload=function(m){this.shouldSendIsolatedPayload=m;this.invocationLimit=1};
var $Ci=function(m){m.JSC$10094_flushTimer.enabled||m.JSC$10094_flushTimer.start();m.invocationCount++;m.invocationCount>=m.invocationLimit&&m.snapshotAndFlush()};
zI.prototype.snapshotAndFlush=function(){var m=this.metricMap.values();m=[].concat(_.Bz(m)).filter(function(G){return G.cellMap.size});
m.length&&this.streamzLogger.flush(m,this.shouldSendIsolatedPayload);sPk(m);this.invocationCount=0;this.JSC$10094_flushTimer.enabled&&this.JSC$10094_flushTimer.stop()};
zI.prototype.addNewCounter=function(m){var G=_.mb.apply(1,arguments);this.metricMap.has(m)||this.metricMap.set(m,new d2R(m,G))};
zI.prototype.addNewEventMetric=function(m){var G=_.mb.apply(1,arguments);this.metricMap.has(m)||this.metricMap.set(m,new PMX(m,G))};
var q8F=function(m,G){return m.disabledMetrics.has(G)?void 0:m.metricMap.get(G)};
zI.prototype.JSC$10094_incrementCounter=function(m){this.JSC$10094_incrementCounterBy(m,1,_.mb.apply(1,arguments))};
zI.prototype.JSC$10094_incrementCounterBy=function(m,G){var K=_.mb.apply(2,arguments),W=q8F(this,m);W&&W instanceof d2R&&(W.JSC$10033_incrementCounterBy(G,K),$Ci(this))};
zI.prototype.record=function(m,G){var K=_.mb.apply(2,arguments),W=q8F(this,m);W&&W instanceof PMX&&(W.record(G,K),$Ci(this))};
var sPk=function(m){for(var G=0;G<m.length;G++)m[G].clear()};_.YZ=function(m,G,K){K=K===void 0?{}:K;G=Error.call(this,G);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.code=m;this.metadata=K;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(_.YZ,Error);_.YZ.prototype.toString=function(){var m="RpcError("+(S8d(this.code)||String(this.code))+")";this.message&&(m+=": "+this.message);return m};_.ESX=_.Ks.JSON.parse;_.rO=_.Ks.JSON.stringify;_.KJ=_.Ks.JSON.parse;_.HnK=function(m){switch(m){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 I00=function(m){switch(m){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var jPF,kfo=function(){};
_.kJ(kfo,_.RIG);kfo.prototype.createInstance=function(){return new XMLHttpRequest};
jPF=new kfo;_.uZ=function(m){_.ai.call(this);this.headers=new Map;this.JSC$10103_xmlHttpFactory_=m||null;this.JSC$10103_active_=!1;this.JSC$10103_xhr_=null;this.JSC$10103_lastUri_="";this.JSC$10103_lastErrorCode_=0;this.JSC$10103_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$10103_timeoutId_=null;this.responseType_="";this.JSC$10103_withCredentials_=!1};
_.kJ(_.uZ,_.ai);var CXR=/^https?$/i,V10=["POST","PUT"],ZnG=[],CN6=function(m,G,K,W,L,A,O){var c=new _.uZ;ZnG.push(c);G&&c.listen("complete",G);c.listenOnce("ready",c.cleanupSend_);A&&(c.timeoutInterval_=Math.max(0,A));O&&(c.JSC$10103_withCredentials_=O);c.send(m,K,W,L)};
_.uZ.prototype.cleanupSend_=function(){this.dispose();_.PJ(ZnG,this)};
_.uZ.prototype.send=function(m,G,K,W){if(this.JSC$10103_xhr_)throw Error("Ba`"+this.JSC$10103_lastUri_+"`"+m);G=G?G.toUpperCase():"GET";this.JSC$10103_lastUri_=m;this.JSC$10103_lastError_="";this.JSC$10103_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$10103_active_=!0;this.JSC$10103_xhr_=this.createXhr();this.JSC$10103_xhr_.onreadystatechange=Az((0,_.AO)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$10103_xhr_.open(G,String(m),!0),this.inOpen_=!1}catch(O){dCF(this,O);return}m=
K||"";K=new Map(this.headers);if(W)if(Object.getPrototypeOf(W)===Object.prototype)for(var L in W)K.set(L,W[L]);else if(typeof W.keys==="function"&&typeof W.get==="function"){L=_.g(W.keys());for(var A=L.next();!A.done;A=L.next())A=A.value,K.set(A,W.get(A))}else throw Error("Ca`"+String(W));W=Array.from(K.keys()).find(function(O){return"content-type"==O.toLowerCase()});
L=_.Ks.FormData&&m instanceof _.Ks.FormData;!_.Vf(V10,G)||W||L||K.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");G=_.g(K);for(W=G.next();!W.done;W=G.next())K=_.g(W.value),W=K.next().value,K=K.next().value,this.JSC$10103_xhr_.setRequestHeader(W,K);this.responseType_&&(this.JSC$10103_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$10103_xhr_&&this.JSC$10103_xhr_.withCredentials!==this.JSC$10103_withCredentials_&&(this.JSC$10103_xhr_.withCredentials=this.JSC$10103_withCredentials_);
try{this.JSC$10103_timeoutId_&&(clearTimeout(this.JSC$10103_timeoutId_),this.JSC$10103_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$10103_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$10103_xhr_.send(m),this.inSend_=!1}catch(O){dCF(this,O)}};
_.uZ.prototype.createXhr=function(){return this.JSC$10103_xmlHttpFactory_?this.JSC$10103_xmlHttpFactory_.createInstance():jPF.createInstance()};
_.uZ.prototype.timeout_=function(){typeof ri4!="undefined"&&this.JSC$10103_xhr_&&(this.JSC$10103_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$10103_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var dCF=function(m,G){m.JSC$10103_active_=!1;m.JSC$10103_xhr_&&(m.inAbort_=!0,m.JSC$10103_xhr_.abort(),m.inAbort_=!1);m.JSC$10103_lastError_=G;m.JSC$10103_lastErrorCode_=5;PXo(m);ywC(m)},PXo=function(m){m.errorDispatched_||(m.errorDispatched_=!0,m.dispatchEvent("complete"),m.dispatchEvent("error"))};
_.uZ.prototype.abort=function(m){this.JSC$10103_xhr_&&this.JSC$10103_active_&&(this.JSC$10103_active_=!1,this.inAbort_=!0,this.JSC$10103_xhr_.abort(),this.inAbort_=!1,this.JSC$10103_lastErrorCode_=m||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ywC(this))};
_.uZ.prototype.disposeInternal=function(){this.JSC$10103_xhr_&&(this.JSC$10103_active_&&(this.JSC$10103_active_=!1,this.inAbort_=!0,this.JSC$10103_xhr_.abort(),this.inAbort_=!1),ywC(this,!0));_.uZ.superClass_.disposeInternal.call(this)};
_.uZ.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)eIl(this);else this.onReadyStateChangeEntryPoint_()};
_.uZ.prototype.onReadyStateChangeEntryPoint_=function(){eIl(this)};
var eIl=function(m){if(m.JSC$10103_active_&&typeof ri4!="undefined")if(m.inSend_&&_.hz(m)==4)setTimeout(m.onReadyStateChange_.bind(m),0);else if(m.dispatchEvent("readystatechange"),m.isComplete()){m.JSC$10103_active_=!1;try{if(m.isSuccess())m.dispatchEvent("complete"),m.dispatchEvent("success");else{m.JSC$10103_lastErrorCode_=6;try{var G=_.hz(m)>2?m.JSC$10103_xhr_.statusText:""}catch(K){G=""}m.JSC$10103_lastError_=G+" ["+m.getStatus()+"]";PXo(m)}}finally{ywC(m)}}},ywC=function(m,G){if(m.JSC$10103_xhr_){m.JSC$10103_timeoutId_&&
(clearTimeout(m.JSC$10103_timeoutId_),m.JSC$10103_timeoutId_=null);
var K=m.JSC$10103_xhr_;m.JSC$10103_xhr_=null;G||m.dispatchEvent("ready");try{K.onreadystatechange=null}catch(W){}}};
_.uZ.prototype.isActive=function(){return!!this.JSC$10103_xhr_};
_.uZ.prototype.isComplete=function(){return _.hz(this)==4};
_.uZ.prototype.isSuccess=function(){var m=this.getStatus(),G;if(!(G=I00(m))){if(m=m===0)m=SRs(String(this.JSC$10103_lastUri_)),m=!CXR.test(m);G=m}return G};
_.hz=function(m){return m.JSC$10103_xhr_?m.JSC$10103_xhr_.readyState:0};
_.w=_.uZ.prototype;_.w.getStatus=function(){try{return _.hz(this)>2?this.JSC$10103_xhr_.status:-1}catch(m){return-1}};
_.w.getResponseText=function(){try{return this.JSC$10103_xhr_?this.JSC$10103_xhr_.responseText:""}catch(m){return""}};
_.w.getResponse=function(){try{if(!this.JSC$10103_xhr_)return null;if("response"in this.JSC$10103_xhr_)return this.JSC$10103_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$10103_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$10103_xhr_)return this.JSC$10103_xhr_.mozResponseArrayBuffer}return null}catch(m){return null}};
_.w.getAllResponseHeaders=function(){return this.JSC$10103_xhr_&&_.hz(this)>=2?this.JSC$10103_xhr_.getAllResponseHeaders()||"":""};
_.w.getLastError=function(){return typeof this.JSC$10103_lastError_==="string"?this.JSC$10103_lastError_:String(this.JSC$10103_lastError_)};var Bss=function(){};
Bss.prototype.send=function(m,G,K){G=G===void 0?function(){}:G;
K=K===void 0?function(){}:K;
CN6(m.url,function(W){W=W.target;W.isSuccess()?G(W.getResponseText()):K(W.getStatus())},m.requestType,m.body,m.requestHeaders,m.timeoutMillis,m.withCredentials)};
Bss.prototype.getTransmissionType=function(){return 1};var f0B=function(m,G){this.oiF=m;this.event=G;this.startTime=lr()},K1o;
f0B.prototype.done=function(){this.oiF.zS(this.event,lr()-this.startTime)};
var pb=function(){fV.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.n(pb,fV);_.Jz=function(m,G,K){var W=lr();G=G();m.zS(K,lr()-W);return G};
K1o=function(){pb.apply(this,arguments)};
_.n(K1o,pb);_.w=K1o.prototype;_.w.fMG=function(){};
_.w.bX=function(){};
_.w.zS=function(){};
_.w.logError=function(){};
_.w.gN=function(){};
_.w.ilT=function(){};
_.w.guh=function(){};
_.w.nuG=function(){};
var xCS=function(m){pb.call(this);var G=this;this.zj=m;this.TEST_ONLY={ncc:function(){return G.zj},
getExperimentIds:function(){return G.zj.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void G.zj.dispose()})};
_.n(xCS,pb);_.w=xCS.prototype;_.w.update=function(m){this.zj.dispose();this.zj=m};
_.w.bX=function(m){this.zj.bX(m)};
_.w.zS=function(m,G){this.zj.zS(m,G)};
_.w.logError=function(m){this.zj.logError(m)};
_.w.gN=function(){this.zj.gN()};
_.w.ilT=function(m){this.zj.ilT(m)};
_.w.guh=function(m){this.zj.guh(m)};
_.w.nuG=function(m){this.zj.nuG(m)};
_.w.fMG=function(m){this.zj.fMG(m)};
var XO4=function(m,G){_.Lt.call(this);var K=this;this.callback=m;this.zJT=G;this.xtc=-G;this.addOnDisposeCallback(function(){return void clearTimeout(K.timer)})};
_.n(XO4,_.Lt);var S8G=function(m){if(m.timer===void 0){var G=Math.max(0,m.xtc+m.zJT-lr());m.timer=setTimeout(function(){try{m.callback()}finally{m.xtc=lr(),m.timer=void 0}},G)}},RIB=function(m,G){pb.call(this);
this.metrics=m;this.km=G};
_.n(RIB,pb);_.w=RIB.prototype;_.w.fMG=function(m){this.metrics.nW1.record(m,this.km)};
_.w.bX=function(m){this.metrics.eventCount.increment(m,this.km)};
_.w.zS=function(m,G){this.metrics.rM3.record(G,m,this.km)};
_.w.logError=function(m){this.metrics.errorCount.increment(m,this.km)};
_.w.ilT=function(m){this.metrics.mFe.increment(m,this.km)};
_.w.guh=function(m){this.metrics.gf2.increment(m,this.km)};
_.w.nuG=function(m){this.metrics.yYr.increment(m,this.km)};
var W1V=function(m,G){G=G===void 0?[]:G;var K={km:m.km||"_",grh:m.grh||[],yAx:m.yAx|0,destinationUrl:m.destinationUrl,l0t:m.l0t||function(){},
vRD:m.vRD||function(A,O){return GdJ(A,O,K.l0t,K.destinationUrl)}},W=K.vRD("52",K.grh.concat(G));
RIB.call(this,{nW1:new Ht0(W),errorCount:new CEB(W),eventCount:new ji0(W),rM3:new kHK(W),py4:new I4C(W),mFe:new VUC(W),gf2:new Zt2(W),yYr:new dTS(W)},K.km);var L=this;this.TEST_ONLY={getExperimentIds:function(){return L.options.grh.concat(L.gY2).sort(function(A,O){return A-O})}};
this.options=K;this.service=W;this.uBp=!m.vRD;this.flushDebouncer=new XO4(function(){return void L.service.snapshotAndFlush()},K.yAx);
this.addOnDisposeCallback(function(){L.flushDebouncer.dispose();L.uBp&&L.service.dispose()});
(this.gY2=G.slice()).sort(_.k9V)};
_.n(W1V,RIB);W1V.prototype.gN=function(){S8G(this.flushDebouncer)};var UvG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(UvG,_.pp);_.z8G=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(_.z8G,_.pp);var QM=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,0,QM.messageId)};
_.n(QM,_.pp);var UCl=_.OZf(QM);QM.messageId="bfkj";var $CV=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n($CV,_.pp);var zIG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(zIG,_.pp);var l0R=_.HN(zIG);_.yY=function(){var m=this;this.promise=new Promise(function(G,K){m.resolve=G;m.reject=K})};_.N3=function(m){_.Lt.call(this);var G=this;this.oRM=Math.floor(Math.random()*200);this.lWp=new zIG;if("challenge"in m&&UCl(m.challenge)){var K=_.wL(m.challenge,4,void 0,kk);var W=_.wL(m.challenge,5,void 0,kk);_.wL(m.challenge,7,void 0,kk)&&(this.lWp=l0R(_.wL(m.challenge,7,void 0,kk)))}else K=m.program,W=m.globalName;this.addOnDisposeCallback(function(){var a,v,I;return _.Y(function(Z){if(Z.nextAddress==1)return Z.yield(G.zeP,2);a=Z.yieldResult;v=a.xpy;(I=v)==null||I();_.ey(Z)})});
this.xM=L19(m.vvT||{},this.lWp);_.UR(this,this.xM);var L=new _.yY;this.zeP=L.promise;this.xM.bX("t");var A=this.xM.share(),O=new f0B(A,"t"),c=function(a,v,I,Z){if(!G.xM.isDisposed()){var k="k";v?k="h":I&&(k="u");k!=="k"?Z!==0&&(G.xM.bX(k),G.xM.zS(k,a)):G.oRM<=0?(G.xM.bX(k),G.xM.zS(k,a),G.oRM=Math.floor(Math.random()*200)):G.oRM--}},u=function(a,v,I,Z){Promise.resolve().then(function(){O.done();
A.gN();A.dispose();L.resolve({fdh:a,xpy:v,qwk:I,k6F:Z})})};
if(!_.Ks[W])throw this.xM.logError(25),Error("Da");if(!_.Ks[W].a)throw this.xM.logError(26),Error("Ea");try{var h=_.Ks[W].a;W=[];for(var J=[],N=sPG(this.lWp),D=0;D<N.length;D++)W.push(N[D]),J.push(1);var t=q8M(this.lWp);for(N=0;N<t.length;N++)W.push(t[N]),J.push(2);this.qVH=_.g(h(K,u,!0,m.kqJ,c,[W,J],_.wL(this.lWp,5),!1)).next().value;this.bgc=L.promise.then(function(){})}catch(a){throw this.xM.logError(28),a;
}};
_.n(_.N3,_.Lt);_.N3.prototype.snapshot=function(m){if(this.isDisposed())throw Error("Fa");this.xM.bX("n");var G=this.xM.share();return this.zeP.then(function(K){var W=K.fdh;return new Promise(function(L){var A=new f0B(G,"n");W(function(O){A.done();G.fMG(O.length);G.gN();G.dispose();L(O)},[m.kW,
m.tLP,m.by2,m.k53])})})};
_.N3.prototype.qQP=function(m){this.zeP.then(function(G){var K;(K=G.qwk)==null||K(m)})};
_.N3.prototype.uzP=function(m,G){return this.zeP.then(function(K){var W;return(W=K.k6F)==null?void 0:W(m,G,!1)})};
_.N3.prototype.l2P=function(){return this.xM.share()};var Bsl=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Bsl,_.pp);var kPd=_.OZf(Bsl);var M14=function(){this.promises={};this.efy=null},Tsl=function(){M14.instance||(M14.instance=new M14);
return M14.instance},iLS=function(m,G){return mKB(m,_.RG(G,UvG,1,kk),_.RG(G,_.z8G,2,kk),_.wL(G,3,void 0,kk))},mKB=function(m,G,K,W){if(!G&&!K)return Promise.resolve();
if(!W)return cHf(G,K);var L;(L=m.promises)[W]||(L[W]=new Promise(function(A,O){cHf(G,K).then(function(){m.efy=W;A()},function(c){delete m.promises[W];
O(c)})}));
return m.promises[W]};var Gd2=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Gd2,_.pp);var K10=function(m,G){return _.ax(m,1,G)},W1i=function(m,G){return _.ax(m,2,G)};var DL=function(m){_.Lt.call(this);var G=this;this.options=m;this.idp=new _.yY;this.bgc=this.idp.promise;this.zml=new _.yY;this.va6=1;this.tmR=new _.yY;this.toT=[];this.isPaused=!1;this.bmt=m.bmt||function(){};
this.z3p=new xCS(L19(m.vvT||{}));L14(this,m.vk,m.ppw,m.ikV,m.kZd,Object.assign({},AHC,m.kbp||{}));this.addOnDisposeCallback(function(){return void wwC(G)})};
_.n(DL,_.Lt);DL.prototype.snapshot=function(m){var G=this;return _.Y(function(K){switch(K.nextAddress){case 1:if(G.isDisposed())throw Error("Fa");if(G.iG||G.hf2){K.jumpTo(2);break}return K.yield(G.zml.promise,2);case 2:if(!G.iG){K.jumpTo(4);break}return K.yield(G.iG.snapshot(m),5);case 5:return K.return(K.yieldResult);case 4:throw G.hf2;}})};
DL.prototype.pause=function(){this.isDisposed()||this.isPaused||(this.isPaused=!0,this.ru&&this.ru.pause())};
DL.prototype.resume=function(){!this.isDisposed()&&this.isPaused&&(this.isPaused=!1,this.ru&&this.ru.resume())};
DL.prototype.checkForRefresh=function(){var m=this;return _.Y(function(G){if(m.isDisposed())throw Error("Fa");var K;if(K=m.ru)K=m.ru,K.isExpired()?(gDS(K),K.resolver(0),K=!0):K=!1,K=!K;return K?G.jumpTo(0):G.yield(m.tmR.promise,0)})};
var cHX=function(m){var G;return _.Y(function(K){if(m.isDisposed())throw Error("Fa");(G=m.ru)==null||OLl(G);return K.yield(m.tmR.promise,0)})},wwC=function(m){m.hf2=Error("Ha");
m.zml.resolve();ESf(m.idp.promise);m.idp.reject(Error("Ha"));m.z3p.dispose();Promise.all(m.toT).then(function(){var K;return _.Y(function(W){(K=m.iG)==null||K.dispose();m.iG=void 0;_.ey(W)})});
m.toT=[];var G;(G=m.ru)==null||OLl(G);ESf(m.tmR.promise);m.tmR.reject(Error("Ha"))};
DL.prototype.qQP=function(m){var G,K;(G=this.iG)==null||(K=G.qQP)==null||K.call(G,m)};
DL.prototype.uzP=function(m,G){var K,W,L;return(L=(K=this.iG)==null?void 0:(W=K.uzP)==null?void 0:W.call(K,m,G))!=null?L:Promise.resolve()};
var YVC=function(m,G){var K=m.bmt;m.bmt=function(){K();G()}},rHi=function(m,G){m.isDisposed()||(m.iG=G,m.z3p.update(G.l2P()),m.zml.resolve(),m.idp.resolve(void 0),m.bmt())};
DL.prototype.handleError=function(m){if(!this.isDisposed()){this.hf2=m;this.zml.resolve();var G,K;(K=(G=this.options).x6y)==null||K.call(G,m)}};
var uHB=function(m,G){G&&(Promise.all(m.toT).then(function(){return void G.dispose()}),m.toT=[])},tz=function(m,G){m.va6=G;
var K,W;(W=(K=m.options).rTd)==null||W.call(K,G)},hvK=function(m){m.isDisposed()||(m.tmR.resolve(),m.tmR=new _.yY)},L14=function(m,G,K,W,L,A){W=W===void 0?Tsl():W;
L=L===void 0?Promise.resolve(void 0):L;var O,c,u,h,J,N,D,t,a,v,I,Z;_.Y(function(k){switch(k.nextAddress){case 1:return k.yield(0,3);case 3:c=null;if(!O){k.jumpTo(6);break}tz(m,7);_.IO(k,7);return k.yield(GH(O.snapshot({}),A.sYZ,function(){return Promise.resolve("E:CTO")}),9);
case 9:c=k.yieldResult;_.IG(k,6);break;case 7:_.ye(k),c="E:UCE";case 6:u=void 0,h=O?A.uCw:A.qkW,J=new Xb(h,A.xxX,A.ahv,A.btw),N=1;case 10:if(!(N<=A.maxAttempts)){k.jumpTo(12);break}if(N===1){k.jumpTo(13);break}tz(m,0);m.ru=new FN(J.getValue(),A.eKR,A.clX);return k.yield(m.ru.promise,14);case 14:D=k.yieldResult,m.ru=void 0,D===1?(N=1,J.reset()):$2i(J);case 13:_.IO(k,15);t=void 0;if(K){t=K;k.jumpTo(17);break}tz(m,5);a=W.efy;return k.yield(GH(pwF(G,a,c),A.waw,function(){return Promise.reject(Error("Ia"))}),
18);
case 18:t=k.yieldResult;case 17:return tz(m,3),k.yield(GH(iLS(W,t),A.nIm,function(){return Promise.reject(Error("Ja"))}),19);
case 19:return tz(m,8),k.yield(L,20);case 20:return v=new _.N3({challenge:t,vvT:m.options.vvT,kqJ:m.options.kqJ}),k.yield(GH(v.bgc,A.hoT,function(){return Promise.reject(Error("Ka"))}),21);
case 21:u=v;k.jumpTo(12);break;case 15:I=_.ye(k),m.handleError(I),hvK(m);case 11:N++;k.jumpTo(10);break;case 12:if(m.isDisposed()){k.jumpTo(5);break}u&&(K=void 0,uHB(m,O),O=u,rHi(m,u),hvK(m));tz(m,2);m.ru=new FN(A.moO,A.eKR,A.clX);m.isPaused&&m.ru.pause();return k.yield(m.ru.promise,22);case 22:m.ru=void 0;if(m.isDisposed()){k.jumpTo(5);break}k.jumpTo(3);break;case 5:(Z=O)==null||Z.dispose(),_.ey(k)}})};
DL.prototype.l2P=function(){return this.z3p.share()};
var AHC={moO:432E5,eKR:3E5,clX:10,sYZ:1E4,waw:3E4,nIm:3E4,hoT:6E4,qkW:1E3,uCw:6E4,xxX:6E5,ahv:.25,btw:2,maxAttempts:10},FN=function(m,G,K){var W=this;this.endTimeMs=0;this.kkD=null;this.isPaused=!1;this.tick=function(){if(!W.isPaused){var L=W.endTimeMs-Date.now();L<=W.gnH?(W.kkD=null,W.resolver(0)):W.kkD=setTimeout(W.tick,Math.min(L,W.eKR))}};
this.eKR=G;this.gnH=K;this.promise=new Promise(function(L){W.resolver=L});
JHK(this,m)},JHK=function(m,G){m.endTimeMs=Date.now()+G;
m.tick()};
FN.prototype.pause=function(){this.isPaused||(this.isPaused=!0,gDS(this))};
FN.prototype.resume=function(){this.isPaused&&(this.isPaused=!1,this.tick())};
var OLl=function(m){gDS(m);m.endTimeMs=0;m.isPaused=!1;m.resolver(1)},gDS=function(m){m.kkD&&(clearTimeout(m.kkD),m.kkD=null)};
FN.prototype.isExpired=function(){return Date.now()>this.endTimeMs};var N82,uHG=(N82=Math.imul)!=null?N82:function(m,G){return m*G|0},Kt=[196,
200,224,18],Q7=function(m,G,K){K=K===void 0?[]:K;this.maxItems=m;this.b7=G===void 0?0:G;this.jF=K},DKX=function(m){var G=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!G)return new Q7(m);var K=G.split(",");if(K.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Q7(m);G=K.slice(1);G.length===1&&G[0]===""&&(G=[]);K=Number(K[0]);return isNaN(K)||K<0||K>G.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Q7(m)):new Q7(m,K,G)};
Q7.prototype.serialize=function(){return String(this.b7)+","+this.jF.join()};
Q7.prototype.insert=function(m,G){var K=void 0;if(this.jF[this.b7]!==m){var W=this.jF.indexOf(m);W!==-1?(this.jF.splice(W,1),W<this.b7&&this.b7--,this.jF.splice(this.b7,0,m)):(K=this.jF[this.b7],this.jF[this.b7]=m)}this.b7=(this.b7+1)%this.maxItems;m=YVv("iU5q-!O9@$",this.serialize());K&&m&&G(K);return m};
var tnK=function(m,G){this.miG=G;try{var K=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(W){K=!1}K&&(this.index=DKX(m))},F1o=function(m,G,K,W,L){var A=m.index?_.Jz(m.miG,function(){return N8J(m.index,pwM(G),K,W,L)},"W"):"u";
m.miG.nuG(A)},QG2=function(m,G,K){var W=_.g(m.index?_.Jz(m.miG,function(){return DKf(pwM(G),K)},"R"):["u"]),L=W.next().value;
W=W.next().value;m.miG.guh(L);return W};var a_X={toString:function(m){var G=[],K=0;m-=-2147483648;G[K++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(m%52);for(m=Math.floor(m/52);m>0;)G[K++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(m%62),m=Math.floor(m/62);return G.join("")}};var bLC=function(m){m=oD4(m);for(var G=2654435769,K=2654435769,W=314159265,L=m.length,A=L,O=0,c=function(){G-=K;G-=W;G^=W>>>13;K-=W;K-=G;K^=G<<8;W-=G;W-=K;W^=K>>>13;G-=K;G-=W;G^=W>>>12;K-=W;K-=G;K^=G<<16;W-=G;W-=K;W^=K>>>5;G-=K;G-=W;G^=W>>>3;K-=W;K-=G;K^=G<<10;W-=G;W-=K;W^=K>>>15};A>=12;A-=12,O+=12)G+=nDX(m,O),K+=nDX(m,O+4),W+=nDX(m,O+8),c();
W+=L;switch(A){case 11:W+=m[O+10]<<24;case 10:W+=m[O+9]<<16;case 9:W+=m[O+8]<<8;case 8:K+=m[O+7]<<24;case 7:K+=m[O+6]<<16;case 6:K+=m[O+5]<<8;case 5:K+=m[O+4];case 4:G+=m[O+3]<<24;case 3:G+=m[O+2]<<16;case 2:G+=m[O+1]<<8;case 1:G+=m[O]}c();return a_X.toString(W)},oD4=function(m){for(var G=[],K=0;K<m.length;K++)G.push(m.charCodeAt(K));
return G},nDX=function(m,G){return m[G]+(m[G+1]<<8)+(m[G+2]<<16)+(m[G+3]<<24)};var aa=function(m){_.Lt.call(this);this.nJ=m;this.pj3=new _.yY};
_.n(aa,_.Lt);var vDP=function(m,G){var K=setTimeout(function(){m.pj3.resolve()},G);
m.addOnDisposeCallback(function(){return void clearTimeout(K)})};
aa.prototype.p2P=function(m,G){var K=this.pN(m);G==null||G(K);return _.Jz(this.nJ,function(){return _.Md(K,2)},this.fWR)};
var $Kk=function(m,G,K,W){return _.Jz(m.nJ,function(){return K?m.p2P(G,W):m.pN(G,W)},m.l3I)},sGi=function(m,G,K,W){aa.call(this,m);
this.huy=G;this.eu1=K;this.l3I="m";this.fWR="x";this.tmu=0;vDP(this,W)};
_.n(sGi,aa);sGi.prototype.pN=function(m,G){var K=this;this.nJ.bX(this.l3I);++this.tmu>=this.eu1&&this.pj3.resolve();var W=m();m=_.Jz(this.nJ,function(){return K.huy(W)},"C");
if(m===void 0)throw new yn(17,"YNJ:Undefined");if(!(m instanceof Uint8Array))throw new yn(18,"ODM:Invalid");G==null||G(m);return m};
var qV2=function(m,G,K){aa.call(this,m);this.qli=G;this.l3I="f";this.fWR="z";vDP(this,K)};
_.n(qV2,aa);qV2.prototype.pN=function(){return this.qli};
var EDX=function(m,G,K){aa.call(this,m);this.q0h=G;this.l3I="w";this.fWR="z";vDP(this,K)};
_.n(EDX,aa);EDX.prototype.pN=function(){var m=this;return _.Jz(this.nJ,function(){return _.T9(m.q0h)},"d")};
EDX.prototype.p2P=function(){return this.q0h};
var HLo=function(m,G){aa.call(this,m);this.error=G;this.l3I="e";this.fWR="y"};
_.n(HLo,aa);var I_o=function(m,G){var K=(G(m.error.message)+":"+G(m.error.stack)).substring(0,2048);G=K.length+1;K=tnd(K);var W=new Uint8Array(4+K.length);W.set([42,G&127|128,G>>7,m.error.code]);W.set(K,4);return W};
HLo.prototype.pN=function(){if(this.tkx)return this.tkx;this.tkx=I_o(this,function(m){return"_"+bLC(m)});
return I_o(this,function(m){return m})};
var jG2=function(m,G,K){aa.call(this,m);this.muO=G;this.clientState=K;this.l3I="S";this.fWR="q"};
_.n(jG2,aa);jG2.prototype.pN=function(){var m=Math.floor(Date.now()/1E3),G=[Math.random()*255,Math.random()*255],K=G.concat([this.muO&255,this.clientState],[m>>24&255,m>>16&255,m>>8&255,m&255]);m=new Uint8Array(2+K.length);m[0]=34;m[1]=K.length;m.set(K,2);K=m.subarray(2);for(var W=G=G.length;W<K.length;++W)K[W]^=K[W%G];this.nJ.ilT(this.clientState);return m};var kd0={cKJ:3E4,izn:2E4},oa=function(m){_.Lt.call(this);var G=this;this.kZP=new _.yY;this.nv6=0;this.pw=void 0;this.state=2;this.vm=m.vm;this.vk=m.vk;this.kbp=Object.assign({},kd0,m.kbp||{});this.es=m.vm.l2P();var K;this.onError=(K=m.onError)!=null?K:function(){};
this.mOM=m.mOM||!1;if(CxB(m)){var W=this.vm;this.iK7=function(){return cHX(W).catch(function(O){O=G.reportError(new yn(G.hG?20:32,"TRG:Disposed",O));G.pw=O;var c;(c=G.hG)==null||c.dispose();G.hG=void 0;G.kZP.reject(O)})};
YVC(W,function(){return void VnG(G)});
W.va6===2&&VnG(this)}else this.iK7=m.aGJ,VnG(this);var L=this.es.share();L.bX("o");var A=new f0B(L,"o");this.kZP.promise.then(function(){A.done();L.gN();L.dispose()},function(){return void L.dispose()});
this.addOnDisposeCallback(function(){G.hG?(G.hG.dispose(),G.hG=void 0):G.pw?G.es.gN():(G.pw=G.reportError(new yn(32,"TNP:Disposed")),G.es.gN(),G.kZP.reject(G.pw))});
_.UR(this,this.es)};
_.n(oa,_.Lt);oa.prototype.l8M=function(){return this.kZP.promise};
var ZLK=function(m,G){if(!(G instanceof yn))if(G instanceof _.YZ){var K=Error(G.toString());K.stack=G.stack;G=new yn(11,"EBH:Error",K)}else G=new yn(12,"BSO:Unknown",G);return m.reportError(G)},VnG=function(m){var G,K,W,L,A,O,c,u,h,J,N,D,t,a,v;
return _.Y(function(I){switch(I.nextAddress){case 1:G=void 0;m.nv6++;K=new _.yY;m.vm instanceof DL&&m.vm.toT.push(K.promise);if(!m.mOM){I.jumpTo(2);break}W=new _.yY;setTimeout(function(){return void W.resolve()});
return I.yield(W.promise,2);case 2:return L=m.es.share(),_.IO(I,4,5),m.state=5,A={},O=[],I.yield(GH(m.vm.snapshot({kW:A,by2:O}),m.kbp.izn,function(){return Promise.reject(new yn(15,"MDA:Timeout"))}),7);
case 7:c=I.yieldResult;if(m.isDisposed())throw new yn(m.hG?20:32,"MDA:Disposed");u=O[0];m.state=6;return I.yield(GH(dK4(m.vk,c),m.kbp.cKJ,function(){return Promise.reject(new yn(10,"BWB:Timeout"))}),8);
case 8:h=I.yieldResult;if(m.isDisposed())throw new yn(m.hG?20:32,"BWB:Disposed");m.state=7;G=_.Jz(L,function(){var k=PxC(m,h,K,u);k.pj3.promise.then(function(){return void m.iK7()});
return k},"i");
case 5:_.CZ(I);L.dispose();_.ZO(I,6);break;case 4:J=_.ye(I);(N=G)==null||N.dispose();if(!m.pw){D=ZLK(m,J);K.resolve();var Z;if(Z=m.vm instanceof DL&&m.nv6<2)a:if(J instanceof yn)Z=J.code!==32&&J.code!==20&&J.code!==10;else{if(J instanceof _.YZ)switch(J.code){case 2:case 13:case 14:case 4:break;default:Z=!1;break a}Z=!0}if(Z)return t=(1+Math.random()*.25)*(m.hG?6E4:1E3),a=setTimeout(function(){return void m.iK7()},t),m.addOnDisposeCallback(function(){return void clearTimeout(a)}),I.return();
m.pw=D}L.logError(m.hG?13:14);m.kZP.reject(m.pw);return I.return();case 6:m.state=8,m.nv6=0,(v=m.hG)==null||v.dispose(),m.hG=G,m.kZP.resolve(),_.ey(I)}})},PxC=function(m,G,K,W){var L=kGR(G,2)*1E3;
if(L<=0)throw new yn(31,"TTM:Invalid");if(_.wL(G,4))return new EDX(m.es,_.wL(G,4),L);if(!kGR(G,3))return new qV2(m.es,NzK(_.MP(G,1)),L);if(!W)throw new yn(4,"PMD:Undefined");W=W(NzK(_.MP(G,1)));if(!(W instanceof Function))throw new yn(16,"APF:Failed");m.cnv=Math.floor((Date.now()+L)/1E3);m=new sGi(m.es,W,kGR(G,3),L);m.addOnDisposeCallback(function(){return void K.resolve()});
return m};
oa.prototype.pN=function(m){return yHK(this,Object.assign({},m),!1)};
oa.prototype.p2P=function(m){return yHK(this,Object.assign({},m),!0)};
oa.prototype.rMx=function(m){if(m>150)return!1;try{return this.cache=new tnK(m,this.es),!0}catch(G){return this.reportError(new yn(22,"GBJ:init",G)),!1}};
oa.prototype.reportError=function(m){this.es.logError(m.code);this.onError(m);return m};
var evl=function(m,G){G=G instanceof yn?G:new yn(5,"TVD:error",G);return m.reportError(G)},yHK=function(m,G,K){try{if(m.isDisposed())throw new yn(21,"BNT:disposed");
if(!m.hG&&m.pw)throw m.pw;var W,L;return(L=(W=f_S(m,G,K))!=null?W:xKP(m,G,K))!=null?L:Xw0(m,G,K)}catch(A){if(!G.qjP)throw evl(m,A);return SVP(m,K,A)}},f_S=function(m,G,K){var W;
return(W=m.hG)==null?void 0:$Kk(W,function(){return Rv2(m,G)},K,function(L){var A;
if(m.hG instanceof sGi&&((A=G.ou)==null?0:A.ySi))try{var O;(O=m.cache)==null||F1o(O,Rv2(m,G),L,G.ou.pAp,m.cnv-120)}catch(c){m.reportError(new yn(24,"ELX:write",c))}})},xKP=function(m,G,K){var W;
if((W=G.ou)!=null&&W.mG3)try{var L,A=(L=m.cache)==null?void 0:QG2(L,Rv2(m,G),G.ou.pAp);return A?K?_.Jz(m.es,function(){return _.Md(A,2)},"a"):A:void 0}catch(O){m.reportError(new yn(23,"RXO:read",O))}},Xw0=function(m,G,K){var W={stack:[],
error:void 0,hasError:!1};try{if(!G.uL6)throw new yn(29,"SDF:notready");return $Kk(DGC(W,new jG2(m.es,0,m.state)),function(){return Rv2(m,G)},K)}catch(L){W.error=L,W.hasError=!0}finally{t0C(W)}},SVP=function(m,G,K){var W={stack:[],
error:void 0,hasError:!1};try{var L=evl(m,K);return $Kk(DGC(W,new HLo(m.es,L)),function(){return[]},G)}catch(A){W.error=A,W.hasError=!0}finally{t0C(W)}},Rv2=function(m,G){return G.u83?G.u83:G.kW?_.Jz(m.es,function(){return G.u83=tnd(G.kW)},"c"):[]},CxB=function(m){return VX(function(G){if(!MT(G))return!1;
for(var K=_.g(Object.entries(m)),W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;if(!(W in G)){if(L.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!L(G[W]))return!1}return!0})}({vm:function(m){return VX(function(G){return G instanceof m})}(DL)},"");var UKS=function(){var m=_.VY();this.JSC$10221_streamzService=m;m.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",d$("cookie_enabled"),d$("cookie_3p_enabled"),_.ea("browser"))};
UKS.prototype.increment=function(m,G,K){this.JSC$10221_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",m,G,K)};
var Vjs=function(){var m=_.VY();this.JSC$10245_streamzService=m;m.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Pt("tick"),d$("from_st_cookie"))};
Vjs.prototype.increment=function(m,G){this.JSC$10245_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",m,G)};
var zvk=function(){var m=_.VY();this.JSC$10251_streamzService=m;m.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.ea("status"))};
zvk.prototype.increment=function(m){this.JSC$10251_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",m)};
var l_2=function(){var m=_.VY();this.JSC$10254_streamzService=m;m.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.ea("stage"),d$("is_using_ytd_player"),d$("has_expandable_tiles"))};
l_2.prototype.increment=function(m,G,K){this.JSC$10254_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",m,G,K)};
var B8G=function(){var m=_.VY();this.JSC$10257_streamzService=m;m.addNewCounter("/client_streamz/youtube/web/response_signature",_.ea("check_status"))};
B8G.prototype.increment=function(m){this.JSC$10257_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/response_signature",m)};
var MnR=function(){var m=_.VY();this.JSC$10260_streamzService=m;m.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.ea("sig"),Pt("de"))};
MnR.prototype.increment=function(m,G){this.JSC$10260_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/e_sig_log",m,G)};
var T8R=function(){var m=_.VY();this.JSC$10263_streamzService=m;m.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.ea("sig"),Pt("de"))};
T8R.prototype.increment=function(m,G){this.JSC$10263_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/e_sig_en",m,G)};
_.mqk=function(){var m=_.VY();this.JSC$10266_streamzService=m;m.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.ea("action"))};
_.mqk.prototype.increment=function(m){this.JSC$10266_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/web/enforcement_intent",m)};var nb=window;var iSi=(new Date).getTime();_.Y2.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.Y2.createSet("action","cite","data","formaction","href","manifest","poster","src");var G6k=function(m){this.servicePromise_=m;m.then((0,_.AO)(function(){},this),function(){},this)},KfB=function(m,G,K){m.servicePromise_.then(function(W){var L=W[G];
if(!L)throw Error("La`"+G);return L.apply(W,K)})},AgF=function(m,G,K){for(var W=Array(arguments.length-2),L=2;L<arguments.length;L++)W[L-2]=arguments[L];
L=WfC(m,G).then(function(A){return A.apply(null,W)},function(A){A=Error("Ma`"+G+"`"+m+"`"+A,{cause:A});
delete LfS[G];return _.KN(A)});
return new G6k(L)},LfS={},WfC=function(m,G){var K=LfS[G];
if(K)return K;K=(K=_.Cn(G))?_.fJ(K):(new _.iO(function(W,L){var A=(new O1(document)).createElement("SCRIPT");A.async=!0;_.Jt(A,_.PN(ptk(m)));A.onload=A.onreadystatechange=function(){A.readyState&&A.readyState!="loaded"&&A.readyState!="complete"||W()};
A.onerror=function(O){L(Error("Na`"+G+"`"+m,{cause:O}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(A)})).then(function(){var W=_.Cn(G);
if(!W)throw Error("Oa`"+G+"`"+m);return W});
return LfS[G]=K};var wGP={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},OSo=function(){var m=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=F1d(function(){return _.Y(function(G){if(G.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?G.return(Promise.resolve()):G.yield(g30(m),2);m.rsaForList.length>
0&&document.addEventListener("click",m.requestAccessForHelpPanel);_.ey(G)})});
this.requestAccessForHelpPanel=function(){if(!(m.rsaForPromises.length>0)){for(var G=_.g(m.rsaForList),K=G.next();!K.done;K=G.next()){K=K.value;try{m.rsaForPromises.push(document.requestStorageAccessFor(K))}catch(W){}}Promise.all(m.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){m.reset()})}}};
OSo.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var g30=function(m){var G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:G=_.g(Object.values(wGP)),K=G.next();case 2:if(K.done){A.jumpTo(0);break}W=K.value;_.IO(A,5);return A.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:W}),7);case 7:L=A.yieldResult;L.state!=="granted"&&m.rsaForList.push(W);_.IG(A,3);break;case 5:_.ye(A);A.jumpTo(0);break;case 3:K=G.next(),A.jumpTo(2)}})};(new OSo).initialize();var cgR=function(m){this.JSC$10280_loader_=m};
cgR.prototype.startHelp=function(m){KfB(this.JSC$10280_loader_,"startHelp",arguments)};
cgR.prototype.JSC$10282_loadChatSupport=function(m){KfB(this.JSC$10280_loader_,"loadChatSupport",arguments)};
var rg0=function(m,G){G=G||{};m=AgF(YgX,"help.service.Lazy.create",m,{apiKey:G.apiKey||G.apiKey,asxUiUri:G.asxUiUri||G.asxUiUri,environment:G.environment||G.environment,flow:G.flow||G.flow,frdProductData:G.frdProductData||G.frdProductData,frdProductDataSerializedJspb:G.frdProductDataSerializedJspb||G.frdProductDataSerializedJspb,helpCenterPath:G.helpCenterPath||G.helpCenterPath,locale:G.locale||G.locale||"en-US".replace(/-/g,"_"),nonce:G.nonce||G.nonce,productData:G.productData||G.productData,receiverUri:G.receiverUri||
G.receiverUri,renderApiUri:G.renderApiUri||G.renderApiUri,theme:G.theme||G.theme,window:G.window||G.window});return new cgR(m)},YgX=new v$(u9o,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var uu4=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(uu4,_.pp);var hdP=_.HN(uu4);var pGP=[0,_.qE,o3,voX];_.Jgo=new function(m,G,K,W){this.configType=m;this.flagName=K;this.defaultValue=W;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 DqF=function(){this.retriever=_.xS().resolve(NWR)};_.HY={get payments(){return window.payments}};a_f(Node);a_f(Element);var trF=a_f(HTMLElement);a_f(SVGElement);var FfF,QRB,$Z,aD0;FfF=function(m){return typeof m.className=="string"?m.className:m.getAttribute&&m.getAttribute("class")||""};
QRB=function(m){return m.classList?m.classList:FfF(m).match(/\S+/g)||[]};
_.bZ=function(m,G){typeof m.className=="string"?m.className=G:m.setAttribute&&m.setAttribute("class",G)};
_.vW=function(m,G){return m.classList?m.classList.contains(G):_.Vf(QRB(m),G)};
_.QO=function(m,G){if(m.classList)m.classList.add(G);else if(!_.vW(m,G)){var K=FfF(m);_.bZ(m,K+(K.length>0?" "+G:G))}};
$Z=function(m,G){if(m.classList)Array.prototype.forEach.call(G,function(L){_.QO(m,L)});
else{var K={};Array.prototype.forEach.call(QRB(m),function(L){K[L]=!0});
Array.prototype.forEach.call(G,function(L){K[L]=!0});
G="";for(var W in K)G+=G.length>0?" "+W:W;_.bZ(m,G)}};
_.Fm=function(m,G){m.classList?m.classList.remove(G):_.vW(m,G)&&_.bZ(m,Array.prototype.filter.call(QRB(m),function(K){return K!=G}).join(" "))};
aD0=function(m,G){m.classList?Array.prototype.forEach.call(G,function(K){_.Fm(m,K)}):_.bZ(m,Array.prototype.filter.call(QRB(m),function(K){return!_.Vf(G,K)}).join(" "))};var o34=function(m){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=m.document},v3i=function(m,G){n3k(m);
var K=document.createElement("div"),W;(W=G.parentNode)==null||W.insertBefore(K,G);K.tabIndex=0;K.id="fc-focus-trap-pre-div";K=document.createElement("div");var L;(L=G.parentNode)==null||L.insertBefore(K,G.nextSibling);K.tabIndex=0;K.id="fc-focus-trap-post-div";var A=bSC(m,G),O=bSC(m,G,!0);A&&O&&(m.focusChangeHandler=function(){var c=m.document.activeElement;if(c)if(_.Hg(G,c))m.previouslyFocusedElement=c;else if(c===m.document.activeElement)switch(m.previouslyFocusedElement){case A:O.focus();m.previouslyFocusedElement=
O;break;default:A.focus(),m.previouslyFocusedElement=A}},m.document.addEventListener("focus",m.focusChangeHandler,!0),m.document.addEventListener("focusin",m.focusChangeHandler))},n3k=function(m){m.focusChangeHandler&&(document.removeEventListener("focus",m.focusChangeHandler,!0),document.removeEventListener("focusin",m.focusChangeHandler),m.focusChangeHandler=null);
var G;(G=document.getElementById("fc-focus-trap-pre-div"))==null||G.remove();var K;(K=document.getElementById("fc-focus-trap-post-div"))==null||K.remove()},$q0=function(m,G,K,W,L){K=K===void 0?!0:K;
var A;L=(A=L===void 0?null:L)!=null?A:bSC(m,G,W===void 0?!1:W);L!==null&&(L.focus(),K&&v3i(m,G))};
o34.prototype.disableButton=function(m,G){G=G===void 0?null:G;m.disabled=!0;G&&_.QO(m,G)};
var bSC=function(m,G,K){K=K===void 0?!1:K;if(IJo(G)&&!K)return G;var W=K?[].slice.call(G.children,0).reverse():G.children;W=_.g(W);for(var L=W.next();!L.done;L=W.next())if(L=L.value,trF(L)&&(L=bSC(m,L,K)))return L;return IJo(G)&&K?G:null};var sR0=function(m){this.originalBodyOverflow="";this.JSC$10307_domHelper=Wt(m);var G;this.isScrollingEnabled=((G=this.JSC$10307_domHelper.JSC$9633_document_.body)==null?void 0:G.style.overflow)!=="hidden"};
sR0.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.kJ(_.wM,_.Lt);_.w=_.wM.prototype;_.w.JSC$10310_id_=0;_.w.disposeInternal=function(){_.wM.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10308_listener_;delete this.handler_};
_.w.start=function(m){this.stop();this.JSC$10310_id_=cW(this.callback_,m!==void 0?m:this.JSC$10308_interval_)};
_.w.stop=function(){this.isActive()&&_.Ks.clearTimeout(this.JSC$10310_id_);this.JSC$10310_id_=0};
_.w.fire=function(){this.stop();this.JSC$10310_doAction_()};
_.w.isActive=function(){return this.JSC$10310_id_!=0};
_.w.JSC$10310_doAction_=function(){this.JSC$10310_id_=0;this.JSC$10308_listener_&&this.JSC$10308_listener_.call(this.handler_)};_.kJ(_.gM,_.Lt);var qgo=[];_.gM.prototype.listen=function(m,G,K,W){Array.isArray(G)||(G&&(qgo[0]=G.toString()),G=qgo);for(var L=0;L<G.length;L++){var A=_.oi(m,G[L],K||this.handleEvent,W||!1,this.handler_||this);if(!A)break;this.JSC$10311_keys_[A.key]=A}return this};
_.gM.prototype.listenOnce=function(m,G,K,W){return E3l(this,m,G,K,W)};
var E3l=function(m,G,K,W,L,A){if(Array.isArray(K))for(var O=0;O<K.length;O++)E3l(m,G,K[O],W,L,A);else{G=JO(G,K,W||m.handleEvent,L,A||m.handler_||m);if(!G)return m;m.JSC$10311_keys_[G.key]=G}return m};
_.gM.prototype.unlisten=function(m,G,K,W,L){if(Array.isArray(G))for(var A=0;A<G.length;A++)this.unlisten(m,G[A],K,W,L);else if(m=qVJ(m,G,K||this.handleEvent,_.Ud(W)?!!W.capture:!!W,L||this.handler_||this))Tg(m),delete this.JSC$10311_keys_[m.key];return this};
_.gM.prototype.removeAll=function(){_.Y2.forEach(this.JSC$10311_keys_,function(m,G){this.JSC$10311_keys_.hasOwnProperty(G)&&Tg(m)},this);
this.JSC$10311_keys_={}};
_.gM.prototype.disposeInternal=function(){_.gM.superClass_.disposeInternal.call(this);this.removeAll()};
_.gM.prototype.handleEvent=function(){throw Error("Pa");};_.kJ(OJ,_.Lt);OJ.prototype.connect=function(m){m&&m()};
OJ.prototype.isConnected=function(){return!0};
OJ.prototype.registerService=function(m,G,K){this.services_[m]={callback:G,objectPayload:!!K}};
OJ.prototype.getService=function(m,G){var K=this.services_[m];return K?K:this.defaultService_?{callback:_.BH(this.defaultService_,m),objectPayload:_.Ud(G)}:null};
var HSF=function(m,G){if(G&&typeof m==="string")try{return JSON.parse(m)}catch(K){return null}else if(!G&&typeof m!=="string")return _.rO(m);return m};
OJ.prototype.disposeInternal=function(){OJ.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 rM=function(m,G){this.sequence_=[];this.onCancelFunction_=m;this.defaultScope_=G||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};
rM.prototype.cancel=function(m){if(this.fired_)this.result_ instanceof rM&&this.result_.cancel();else{if(this.parent_){var G=this.parent_;delete this.parent_;m?G.cancel(m):(G.branches_--,G.branches_<=0&&G.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new s5(this))}};
rM.prototype.continue_=function(m,G){this.blocked_=!1;IDR(this,m,G)};
var IDR=function(m,G,K){m.fired_=!0;m.result_=K;m.hadError_=!G;jR2(m)},CsF=function(m){if(m.fired_){if(!m.silentlyCanceled_)throw new k6o(m);
m.silentlyCanceled_=!1}};
rM.prototype.callback=function(m){CsF(this);IDR(this,!0,m)};
rM.prototype.errback=function(m){CsF(this);IDR(this,!1,m)};
var vDF=function(m,G,K){q3(m,G,null,K)};
rM.prototype.finally=function(m){var G=this;return VrC(new Promise(function(K,W){q3(G,function(L){m();K(L)},function(L){m();
W(L)})}))};
var q3=function(m,G,K,W){var L=m.fired_;L||(G===K?G=K=Az(G):(G=Az(G),K=Az(K)));m.sequence_.push([G,K,W]);L&&jR2(m)};
rM.prototype.then=function(m,G,K){var W,L,A=new _.iO(function(O,c){L=O;W=c});
q3(this,L,function(O){O instanceof s5?A.cancel():W(O);return ZS4},this);
return A.then(m,G,K)};
Aw0(rM);var bLv=function(m,G){G instanceof rM?vDF(m,(0,_.AO)(G.branch,G)):vDF(m,function(){return G})};
rM.prototype.branch=function(m){var G=new rM;q3(this,G.callback,G.errback,G);m&&(G.parent_=this,this.branches_++);return G};
rM.prototype.isError=function(m){return m instanceof Error};
var dql=function(m){return Vl(m.sequence_,function(G){return typeof G[1]==="function"})},ZS4={},jR2=function(m){if(m.unhandledErrorId_&&m.fired_&&dql(m)){var G=m.unhandledErrorId_,K=PsB[G];
K&&(_.Ks.clearTimeout(K.JSC$10328_id_),delete PsB[G]);m.unhandledErrorId_=0}m.parent_&&(m.parent_.branches_--,delete m.parent_);G=m.result_;for(var W=K=!1;m.sequence_.length&&!m.blocked_;){var L=m.sequence_.shift(),A=L[0],O=L[1];L=L[2];if(A=m.hadError_?O:A)try{var c=A.call(L||m.defaultScope_,G);c===ZS4&&(c=void 0);c!==void 0&&(m.hadError_=m.hadError_&&(c==G||m.isError(c)),m.result_=G=c);if(wO2(G)||typeof _.Ks.Promise==="function"&&G instanceof _.Ks.Promise)W=!0,m.blocked_=!0}catch(u){G=u,m.hadError_=
!0,dql(m)||(K=!0)}}m.result_=G;W&&(c=(0,_.AO)(m.continue_,m,!0),W=(0,_.AO)(m.continue_,m,!1),G instanceof rM?(q3(G,c,W),G.blocking_=!0):G.then(c,W));K&&(G=new ygo(G),PsB[G.JSC$10328_id_]=G,m.unhandledErrorId_=G.JSC$10328_id_)},VrC=function(m){var G=new rM;
m.then(function(K){G.callback(K)},function(K){G.errback(K)});
return G},k6o=function(){_.mv.call(this)};
_.kJ(k6o,_.mv);k6o.prototype.message="Deferred has already fired";k6o.prototype.name="AlreadyCalledError";var s5=function(){_.mv.call(this)};
_.kJ(s5,_.mv);s5.prototype.message="Deferred was canceled";s5.prototype.name="CanceledError";var ygo=function(m){this.JSC$10328_id_=_.Ks.setTimeout((0,_.AO)(this.throwError,this),0);this.JSC$10328_error_=m};
ygo.prototype.throwError=function(){delete PsB[this.JSC$10328_id_];throw this.JSC$10328_error_;};
var PsB={};var edC={1:"NativeMessagingTransport"},sGV=["pu","lru","pru","lpu","ppu"];_.kJ(cg,_.Lt);cg.prototype.transportType=0;cg.prototype.getWindow=function(){return this.JSC$10331_domHelper_.getWindow()};
cg.prototype.getName=function(){return edC[String(this.transportType)]||""};_.kJ(uE,cg);uE.prototype.peerProtocolVersion_=null;uE.prototype.initialized_=!1;uE.prototype.transportType=1;var fDo={};uE.prototype.sendTimerId_=0;
var Sgk=function(m){var G=m.event_.data;if(typeof G!=="string")return!1;var K=G.indexOf("|"),W=G.indexOf(":");if(K==-1||W==-1)return!1;var L=G.substring(0,K);K=G.substring(K+1,W);G=G.substring(W+1);if(W=pt[L])return W.xpcDeliver(K,G,m.event_.origin),!0;W=xqi(G)[0];for(var A in pt){var O=pt[A];if(nDf(O)==1&&!O.isConnected()&&K=="tp"&&(W=="SETUP"||W=="SETUP_NTPV2")&&XG0(O,m.event_.origin))return delete pt[O.name],O.name=L,pt[L]=O,O.xpcDeliver(K,G),!0}return!1},Rd4=function(m){m.protocolVersion_!=2||
m.peerProtocolVersion_!=null&&m.peerProtocolVersion_!=2||m.send("tp","SETUP_NTPV2,"+m.endpointId_);
m.peerProtocolVersion_!=null&&m.peerProtocolVersion_!=1||m.send("tp","SETUP")},Uqi=function(m,G){if(m.protocolVersion_!=2||m.peerProtocolVersion_!=null&&m.peerProtocolVersion_!=2||G!=2){if(m.peerProtocolVersion_!=null&&m.peerProtocolVersion_!=1||G!=1)return;
m.send("tp","SETUP_ACK")}else m.send("tp","SETUP_ACK_NTPV2");m.setupAckSent_.fired_||m.setupAckSent_.callback(!0)},zd0=function(m,G){G>m.peerProtocolVersion_&&(m.peerProtocolVersion_=G);
m.peerProtocolVersion_==1&&(m.setupAckSent_.fired_||m.oneSidedHandshake_||m.setupAckSent_.callback(!0),m.peerEndpointId_=null)};
_.w=uE.prototype;_.w.connect=function(){var m=this.getWindow(),G=_.z9(m),K=fDo[G];typeof K!=="number"&&(K=0);K==0&&_.oi(m.postMessage?m:m.document,"message",Sgk,!1,uE);fDo[G]=K+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.w.maybeAttemptToConnect_=function(){var m=nDf(this.JSC$10334_channel_)==0;this.oneSidedHandshake_&&m||this.JSC$10334_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Rd4(this))};
_.w.send=function(m,G){var K=this.JSC$10334_channel_.peerWindowObject_;K&&(this.send=function(W,L){var A=this,O=this.JSC$10334_channel_.name;this.sendTimerId_=cW(function(){A.sendTimerId_=0;try{var c=K.postMessage?K:K.document;c.postMessage&&c.postMessage(O+"|"+W+":"+L,A.peerHostname_)}catch(u){}},0)},this.send(m,G))};
_.w.notifyConnected_=function(){var m=this.JSC$10334_channel_,G=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;m.isConnected()||m.connectionDelay_&&m.connectionDelay_.isActive()||(m.state_=2,_.I$(m.connectionDelay_),G!==void 0?(m.connectionDelay_=new _.wM(m.connectCb_,G),m.connectionDelay_.start()):(m.connectionDelay_=null,m.connectCb_()))};
_.w.disposeInternal=function(){if(this.initialized_){var m=this.getWindow(),G=_.z9(m),K=fDo[G];fDo[G]=K-1;K==1&&_.Lb(m.postMessage?m:m.document,"message",Sgk,!1,uE)}this.sendTimerId_&&(_.Ks.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.I$(this.JSC$10334_eventHandler_);delete this.JSC$10334_eventHandler_;_.I$(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10334_connected_.cancel();delete this.JSC$10334_connected_;delete this.send;uE.superClass_.disposeInternal.call(this)};
var xqi=function(m){m=m.split(",");m[1]=m[1]||null;return m};var BWX;_.E5=function(m){if(m.getValues&&typeof m.getValues=="function")return m.getValues();if(typeof Map!=="undefined"&&m instanceof Map||typeof Set!=="undefined"&&m instanceof Set)return Array.from(m.values());if(typeof m==="string")return m.split("");if(_.XP(m)){for(var G=[],K=m.length,W=0;W<K;W++)G.push(m[W]);return G}return _.Y2.getValues(m)};
_.lDS=function(m){if(m.getKeys&&typeof m.getKeys=="function")return m.getKeys();if(!m.getValues||typeof m.getValues!="function"){if(typeof Map!=="undefined"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set!=="undefined"&&m instanceof Set)){if(_.XP(m)||typeof m==="string"){var G=[];m=m.length;for(var K=0;K<m;K++)G.push(K);return G}return _.Y2.getKeys(m)}}};
BWX=function(m,G,K){if(m.forEach&&typeof m.forEach=="function")m.forEach(G,K);else if(_.XP(m)||typeof m==="string")Array.prototype.forEach.call(m,G,K);else for(var W=_.lDS(m),L=_.E5(m),A=L.length,O=0;O<A;O++)G.call(K,L[O],W&&W[O],m)};var SmG,ZL,PW,WmC,MrG,mFK,TWk,KmP,icK;
_.aQ=function(m,G){this.JSC$10339_domain_=this.userInfo_=this.scheme_="";this.JSC$10339_port_=null;this.fragment_=this.JSC$10339_path_="";this.JSC$10339_ignoreCase_=!1;var K;m instanceof _.aQ?(this.JSC$10339_ignoreCase_=G!==void 0?G:m.JSC$10339_ignoreCase_,_.HW(this,m.scheme_),this.userInfo_=m.userInfo_,_.Ia(this,m.JSC$10339_domain_),_.jm(this,m.JSC$10339_port_),_.kZ(this,m.getPath()),_.Cb(this,m.JSC$10339_queryData_.clone()),_.V7(this,m.fragment_)):m&&(K=_.PE(String(m)))?(this.JSC$10339_ignoreCase_=
!!G,_.HW(this,K[1]||"",!0),this.userInfo_=ZL(K[2]||""),_.Ia(this,K[3]||"",!0),_.jm(this,K[4]),_.kZ(this,K[5]||"",!0),_.Cb(this,K[6]||"",!0),_.V7(this,K[7]||"",!0)):(this.JSC$10339_ignoreCase_=!!G,this.JSC$10339_queryData_=new _.dO(null,this.JSC$10339_ignoreCase_))};
_.aQ.prototype.toString=function(){var m=[],G=this.scheme_;G&&m.push(PW(G,MrG,!0),":");var K=this.JSC$10339_domain_;if(K||G=="file")m.push("//"),(G=this.userInfo_)&&m.push(PW(G,MrG,!0),"@"),m.push(_.zF(K).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),K=this.JSC$10339_port_,K!=null&&m.push(":",String(K));if(K=this.getPath())this.JSC$10339_domain_&&K.charAt(0)!="/"&&m.push("/"),m.push(PW(K,K.charAt(0)=="/"?TWk:mFK,!0));(K=this.JSC$10339_queryData_.toString())&&m.push("?",K);(K=this.fragment_)&&m.push("#",
PW(K,icK));return m.join("")};
_.aQ.prototype.resolve=function(m){var G=this.clone(),K=!!m.scheme_;K?_.HW(G,m.scheme_):K=!!m.userInfo_;K?G.userInfo_=m.userInfo_:K=!!m.JSC$10339_domain_;K?_.Ia(G,m.JSC$10339_domain_):K=m.JSC$10339_port_!=null;var W=m.getPath();if(K)_.jm(G,m.JSC$10339_port_);else if(K=!!m.JSC$10339_path_){if(W.charAt(0)!="/")if(this.JSC$10339_domain_&&!this.JSC$10339_path_)W="/"+W;else{var L=G.getPath().lastIndexOf("/");L!=-1&&(W=G.getPath().slice(0,L+1)+W)}L=W;if(L==".."||L==".")W="";else if(_.cJ(L,"./")||_.cJ(L,
"/.")){W=_.AV(L,"/");L=L.split("/");for(var A=[],O=0;O<L.length;){var c=L[O++];c=="."?W&&O==L.length&&A.push(""):c==".."?((A.length>1||A.length==1&&A[0]!="")&&A.pop(),W&&O==L.length&&A.push("")):(A.push(c),W=!0)}W=A.join("/")}else W=L}K?_.kZ(G,W):K=m.JSC$10339_queryData_.toString()!=="";K?_.Cb(G,m.JSC$10339_queryData_.clone()):K=!!m.fragment_;K&&_.V7(G,m.fragment_);return G};
_.aQ.prototype.clone=function(){return new _.aQ(this)};
_.HW=function(m,G,K){m.scheme_=K?ZL(G,!0):G;m.scheme_&&(m.scheme_=m.scheme_.replace(/:$/,""));return m};
_.Ia=function(m,G,K){m.JSC$10339_domain_=K?ZL(G,!0):G;return m};
_.jm=function(m,G){if(G){G=Number(G);if(isNaN(G)||G<0)throw Error("Qa`"+G);m.JSC$10339_port_=G}else m.JSC$10339_port_=null;return m};
_.aQ.prototype.getPath=function(){return this.JSC$10339_path_};
_.kZ=function(m,G,K){m.JSC$10339_path_=K?ZL(G,!0):G;return m};
_.Cb=function(m,G,K){G instanceof _.dO?(m.JSC$10339_queryData_=G,GiB(m.JSC$10339_queryData_,m.JSC$10339_ignoreCase_)):(K||(G=PW(G,KmP)),m.JSC$10339_queryData_=new _.dO(G,m.JSC$10339_ignoreCase_));return m};
_.Ct=function(m,G,K){m.JSC$10339_queryData_.set(G,K);return m};
_.kl=function(m,G){return m.JSC$10339_queryData_.get(G)};
_.V7=function(m,G,K){m.fragment_=K?ZL(G):G;return m};
_.y7=function(m){_.Ct(m,"zx",Ii());return m};
_.jU=function(m,G){return m instanceof _.aQ?m.clone():new _.aQ(m,G)};
SmG=function(m,G){m instanceof _.aQ||(m=_.jU(m));G instanceof _.aQ||(G=_.jU(G));return m.resolve(G)};
ZL=function(m,G){return m?G?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""};
PW=function(m,G,K){return typeof m==="string"?(m=encodeURI(m).replace(G,WmC),K&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null};
WmC=function(m){m=m.charCodeAt(0);return"%"+(m>>4&15).toString(16)+(m&15).toString(16)};
MrG=/[#\/\?@]/g;mFK=/[#\?:]/g;TWk=/[#\?]/g;KmP=/[#\?@]/g;icK=/#/g;_.dO=function(m,G){this.count_=this.keyMap_=null;this.encodedQuery_=m||null;this.JSC$10340_ignoreCase_=!!G};
_.em=function(m){m.keyMap_||(m.keyMap_=new Map,m.count_=0,m.encodedQuery_&&l5o(m.encodedQuery_,function(G,K){m.add(Ui(G),K)}))};
_.w=_.dO.prototype;_.w.getCount=function(){_.em(this);return this.count_};
_.w.add=function(m,G){_.em(this);this.encodedQuery_=null;m=fb(this,m);var K=this.keyMap_.get(m);K||this.keyMap_.set(m,K=[]);K.push(G);this.count_+=1;return this};
_.w.remove=function(m){_.em(this);m=fb(this,m);return this.keyMap_.has(m)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(m).length,this.keyMap_.delete(m)):!1};
_.w.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.w.isEmpty=function(){_.em(this);return this.count_==0};
_.w.containsKey=function(m){_.em(this);m=fb(this,m);return this.keyMap_.has(m)};
_.w.containsValue=function(m){var G=this.getValues();return _.Vf(G,m)};
_.w.forEach=function(m,G){_.em(this);this.keyMap_.forEach(function(K,W){K.forEach(function(L){m.call(G,L,W,this)},this)},this)};
_.w.getKeys=function(){_.em(this);for(var m=Array.from(this.keyMap_.values()),G=Array.from(this.keyMap_.keys()),K=[],W=0;W<G.length;W++)for(var L=m[W],A=0;A<L.length;A++)K.push(G[W]);return K};
_.w.getValues=function(m){_.em(this);var G=[];if(typeof m==="string")this.containsKey(m)&&(G=G.concat(this.keyMap_.get(fb(this,m))));else{m=Array.from(this.keyMap_.values());for(var K=0;K<m.length;K++)G=G.concat(m[K])}return G};
_.w.set=function(m,G){_.em(this);this.encodedQuery_=null;m=fb(this,m);this.containsKey(m)&&(this.count_-=this.keyMap_.get(m).length);this.keyMap_.set(m,[G]);this.count_+=1;return this};
_.w.get=function(m,G){if(!m)return G;m=this.getValues(m);return m.length>0?String(m[0]):G};
_.LmB=function(m,G,K){m.remove(G);K.length>0&&(m.encodedQuery_=null,m.keyMap_.set(fb(m,G),_.yf(K)),m.count_+=K.length)};
_.dO.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var m=[],G=Array.from(this.keyMap_.keys()),K=0;K<G.length;K++){var W=G[K],L=_.zF(W);W=this.getValues(W);for(var A=0;A<W.length;A++){var O=L;W[A]!==""&&(O+="="+_.zF(W[A]));m.push(O)}}return this.encodedQuery_=m.join("&")};
_.dO.prototype.clone=function(){var m=new _.dO;m.encodedQuery_=this.encodedQuery_;this.keyMap_&&(m.keyMap_=new Map(this.keyMap_),m.count_=this.count_);return m};
var fb=function(m,G){G=String(G);m.JSC$10340_ignoreCase_&&(G=G.toLowerCase());return G},GiB=function(m,G){G&&!m.JSC$10340_ignoreCase_&&(_.em(m),m.encodedQuery_=null,m.keyMap_.forEach(function(K,W){var L=W.toLowerCase();
W!=L&&(this.remove(W),_.LmB(this,L,K))},m));
m.JSC$10340_ignoreCase_=G};
_.dO.prototype.extend=function(m){for(var G=0;G<arguments.length;G++)BWX(arguments[G],function(K,W){this.add(W,K)},this)};_.kJ(NT,OJ);var AuC=RegExp("^%*tp$"),w$4=RegExp("^%+tp$");_.w=NT.prototype;_.w.connectionDelay_=null;_.w.peerWindowDeferred_=null;_.w.transport_=null;_.w.state_=1;_.w.isConnected=function(){return this.state_==2};
_.w.peerWindowObject_=null;_.w.iframeElement_=null;_.w.getConfig=function(){return this.cfg_};
_.w.connect=function(m){this.connectCb_=m||_.Wb;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?vDF(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.w.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10335_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var m=this.iframeElement_.contentWindow;m||(m=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=m}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ua");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$10335_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new uE(this,this.cfg_.ph,this.JSC$10335_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Ta");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.w.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.I$(this.transport_);this.connectCb_=this.transport_=null;_.I$(this.connectionDelay_);this.connectionDelay_=null};
_.w.send=function(m,G){if(this.isConnected()){try{var K=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(L){K=!1}if(K){_.Ud(G)&&(G=_.rO(G));K=this.transport_;var W=K.send;AuC.test(m)&&(m="%"+m);m=m.replace(/[%:|]/g,encodeURIComponent);W.call(K,m,G)}else this.close()}};
_.w.xpcDeliver=function(m,G,K){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.AO)(this.xpcDeliver,this,m,G,K));else if(XG0(this,K)&&!this.isDisposed()&&this.state_!=3)if(m&&m!="tp")this.isConnected()&&(m=m.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),m=w$4.test(m)?m.substring(1):m,m=this.getService(m,G))&&(G=HSF(G,m.objectPayload),G!=null&&m.callback(G));else switch(m=this.transport_,K=xqi(G),G=K[1],K[0]){case "SETUP_ACK":zd0(m,1);m.setupAckReceived_.fired_||m.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":m.protocolVersion_==2&&(zd0(m,2),m.setupAckReceived_.fired_||m.setupAckReceived_.callback(!0));break;case "SETUP":zd0(m,1);Uqi(m,1);break;case "SETUP_NTPV2":m.protocolVersion_==2&&(K=m.peerProtocolVersion_,zd0(m,2),Uqi(m,2),K!=1&&m.peerEndpointId_==null||m.peerEndpointId_==G||Rd4(m),m.peerEndpointId_=G)}};
var nDf=function(m){var G=m.cfg_.role;return typeof G==="number"?G:window.parent==m.peerWindowObject_?1:0},XG0=function(m,G){var K=m.cfg_.ph;
return _.Od(G==null?"":String(G))||_.Od(K==null?"":String(K))||G==m.cfg_.ph};
NT.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete pt[this.name];_.I$(this.peerLoadHandler_);delete this.peerLoadHandler_;NT.superClass_.disposeInternal.call(this)};
var EDf=function(){for(var m in pt)_.I$(pt[m])},pt={};var Oc4=function(m,G){this.win=m;this.allowAdsHttpEndpoint=G;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10349_domHelper=Wt(m);this.scrollManager=new sR0(m);this.accessibilityManager=new o34(m);gzB(this)},gzB=function(m){var G=function(){m.allowAdsPopup&&m.allowAdsPopup.style.setProperty("display","none","important");
m.wallElement.style.setProperty("display","","important");n3k(m.accessibilityManager);$q0(m.accessibilityManager,m.wallElement.querySelector(".fc-dialog-container"),!1,!1,m.wallElement.querySelector(".fc-button-whitelist"));m.scrollManager.enableScrolling()};
m.allowAdsPopup=m.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-whitelist-root"});m.allowAdsPopup.style.setProperty("display","none","important");m.JSC$10349_domHelper.appendChild(m.JSC$10349_domHelper.JSC$9633_document_.body,m.allowAdsPopup);var K=m.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-dialog-overlay"});m.JSC$10349_domHelper.appendChild(m.allowAdsPopup,K);var W=m.JSC$10349_domHelper.JSC$9635_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:G});m.JSC$10349_domHelper.appendChild(m.allowAdsPopup,
W);K=m.JSC$10349_domHelper.JSC$9635_createDom("IFRAME");K.className="fc-whitelist-dialog";K.frameBorder="0";K.id="fc-whitelist-iframe";K.tabIndex="0";_.w5(K,m.allowAdsHttpEndpoint);m.JSC$10349_domHelper.appendChild(W,K);W={};W.pu=_.yG(m.allowAdsHttpEndpoint).toString();W.tp=1;W.cn="fc-whitelist-channel";W.ifrid=K.id;W.osh=!0;m.allowAdsCrossPageChannel=new NT(W);m.allowAdsCrossPageChannel.registerService("close",G);m.allowAdsCrossPageChannel.registerService("refresh",function(){m.win.location.reload()});
m.allowAdsCrossPageChannel.registerService("resize",function(L){if(L){var A=m.allowAdsPopup.querySelector(".fc-whitelist-dialog");L.width&&A.style.setProperty("width",L.width,"important");L.height&&A.style.setProperty("height",L.height,"important")}},!0);
m.allowAdsCrossPageChannel.connect()};
Oc4.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10349_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var xZ=window,XN=document,cuS=xZ.location,YrK=function(){},ruG=/\[native code\]/,Sm=function(m,G,K){return m[G]=m[G]||K},uxF=function(m){m=m.sort();
for(var G=[],K=void 0,W=0;W<m.length;W++){var L=m[W];L!=K&&G.push(L);K=L}return G},Ra=function(){var m;
if((m=Object.create)&&ruG.test(m))m=m(null);else{m={};for(var G in m)m[G]=void 0}return m},U5=Sm(xZ,"gapi",{});var z5={};z5=Sm(xZ,"___jsl",Ra());Sm(z5,"I",0);Sm(z5,"hel",10);var hDP=function(){var m=cuS.href;if(z5.dpo)var G=z5.h;else{G=z5.h;var K=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),W=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(m=m&&(K.exec(m)||W.exec(m)))try{G=decodeURIComponent(m[2])}catch(L){}}return G},p$0=function(m){var G=Sm(z5,"PQ",[]);
z5.PQ=[];var K=G.length;if(K===0)m();else for(var W=0,L=function(){++W===K&&m()},A=0;A<K;A++)G[A](L)},JuS=function(m){return Sm(Sm(z5,"H",Ra()),m,Ra())};var lZ=function(m){this.JSC$10351_obj_=m};
lZ.prototype.value=function(){return this.JSC$10351_obj_};
lZ.prototype.getWidth=function(){return this.JSC$10351_obj_.width};
lZ.prototype.getHeight=function(){return this.JSC$10351_obj_.height};
lZ.prototype.getStyle=function(){return this.JSC$10351_obj_.style};var NCl=function(m){this.JSC$10354_obj_=m||{}};
_.w=NCl.prototype;_.w.value=function(){return this.JSC$10354_obj_};
_.w.setUrl=function(m){this.JSC$10354_obj_.url=m;return this};
_.w.getUrl=function(){return this.JSC$10354_obj_.url};
_.w.getStyle=function(){return this.JSC$10354_obj_.style};
_.w.getId=function(){return this.JSC$10354_obj_.id};
_.w.getContext=function(){return this.JSC$10354_obj_.context};
var DFS=function(m){m.JSC$10354_obj_.attributes=m.JSC$10354_obj_.attributes||{};return new lZ(m.JSC$10354_obj_.attributes)};var tNX=function(){NCl.apply(this,arguments)};
_.n(tNX,NCl);var FmC=Sm(z5,"perf",Ra());Sm(FmC,"g",Ra());var QmB=Sm(FmC,"i",Ra());Sm(FmC,"r",[]);Ra();Ra();var ozB=function(m,G,K){G&&G.length>0&&(G=aCX(G),K&&K.length>0&&(G+="___"+aCX(K)),G.length>28&&(G=G.substr(0,28)+(G.length-28)),K=G,G=Sm(QmB,"_p",Ra()),Sm(G,K,Ra())[m]=(new Date).getTime(),G=FmC.r,typeof G==="function"?G(m,"_p",K):G.push([m,"_p",K]))},aCX=function(m){return m.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var nz4=Ra(),bcC=[],BW=function(m){throw Error("Va`"+m);};
bcC.push(["jsl",function(m){for(var G in m)if(Object.prototype.hasOwnProperty.call(m,G)){var K=m[G];typeof K=="object"?z5[G]=Sm(z5,G,[]).concat(K):Sm(z5,G,K)}if(G=m.u)m=Sm(z5,"us",[]),m.push(G),(G=/^https:(.*)$/.exec(G))&&m.push("http:"+G[1])}]);
var vzS=/^(\/[a-zA-Z0-9_\-]+)+$/,$Fk=[/\/amp\//,/\/amp$/,/^\/amp$/],smS=/^[a-zA-Z0-9\-_\.,!]+$/,qro=/^gapi\.loaded_[0-9]+$/,Ezi=/^[a-zA-Z0-9,._-]+$/,kio=function(m,G,K,W,L){var A=m.split(";"),O=A.shift(),c=nz4[O],u=null;c?u=c(A,G,K,W):BW("no hint processor for: "+O);u||BW("failed to generate load url");G=u;K=G.match(Hcl);(W=G.match(ICR))&&W.length===1&&jmR.test(G)&&K&&K.length===1||BW("failed sanity: "+m);try{m="?";if(L&&L.length>0){jMP(L);var h=L.join(",");u=u+"?le="+h;m="&"}if(z5.rol){var J=z5.ol;
J&&J.length&&(u=""+u+m+"ol="+J.length)}}catch(N){}return u},ZcK=function(m,G,K,W){m=COX(m);
qro.test(K)||BW("invalid_callback");G=VN2(G);W=W&&W.length?VN2(W):null;var L=function(A){return encodeURIComponent(A).replace(/%2C/g,",")};
return[encodeURIComponent(m.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",L(m.version),"/m=",L(G),W?"/exm="+L(W):"","/rt=j/sv=1/d=1/ed=1",m.activeMods?"/am="+L(m.activeMods):"",m.resourceSig?"/rs="+L(m.resourceSig):"",m.zcms?"/t="+L(m.zcms):"","/cb=",L(K)].join("")},COX=function(m){m.charAt(0)!=="/"&&BW("relative path");
for(var G=m.substring(1).split("/"),K=[];G.length;){m=G.shift();if(!m.length||m.indexOf(".")==0)BW("empty/relative directory");else if(m.indexOf("=")>0){G.unshift(m);break}K.push(m)}m={};for(var W=0,L=G.length;W<L;++W){var A=G[W].split("="),O=decodeURIComponent(A[0]),c=decodeURIComponent(A[1]);A.length==2&&O&&c&&(m[O]=m[O]||c)}G="/"+K.join("/");vzS.test(G)||BW("invalid_prefix");K=0;for(W=$Fk.length;K<W;++K)$Fk[K].test(G)&&BW("invalid_prefix");K=dFX(m,"k",!0);W=dFX(m,"am");L=dFX(m,"rs");m=dFX(m,"t");
return{pathPrefix:G,version:K,activeMods:W,resourceSig:L,zcms:m}},VN2=function(m){for(var G=[],K=0,W=m.length;K<W;++K){var L=m[K].replace(/\./g,"_").replace(/-/g,"_");
Ezi.test(L)&&G.push(L)}return G.join(",")},dFX=function(m,G,K){m=m[G];
!m&&K&&BW("missing: "+G);if(m){if(smS.test(m))return m;BW("invalid: "+G)}return null},jmR=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,ICR=/\/cb=/g,Hcl=/\/\//g;
nz4.m=function(m,G,K,W){(m=m[0])||BW("missing_hint");return"https://apis.google.com"+ZcK(m,G,K,W)};
var POl=decodeURI("%73cript"),yui=/^[-+_0-9\/A-Za-z]+={0,2}$/,eD4=function(m,G){for(var K=[],W=0;W<m.length;++W){var L=m[W],A;if(A=L){a:{for(A=0;A<G.length;A++)if(G[A]===L)break a;A=-1}A=A<0}A&&K.push(L)}return K},fCo=function(){var m=z5.nonce;
return m!==void 0?m&&m===String(m)&&m.match(yui)?m:z5.nonce=null:XN.querySelector?(m=XN.querySelector("script[nonce]"))?(m=m.nonce||m.getAttribute("nonce")||"",m&&m===String(m)&&m.match(yui)?z5.nonce=m:z5.nonce=null):null:null},SrC=function(m){if(XN.readyState!="loading")xFS(m);
else{var G=fCo(),K="";G!==null&&(K=' nonce="'+G+'"');m="<"+POl+' src="'+encodeURI(m)+'"'+K+"></"+POl+">";XN.write(X$k?X$k.createHTML(m):m)}},xFS=function(m){var G=XN.createElement(POl);
G.setAttribute("src",X$k?X$k.createScriptURL(m):m);m=fCo();m!==null&&G.setAttribute("nonce",m);G.async="true";(m=XN.getElementsByTagName(POl)[0])?m.parentNode.insertBefore(G,m):(XN.head||XN.body||XN.documentElement).appendChild(G)},UFR=function(m,G,K){RDX(function(){var W=G===hDP()?Sm(U5,"_",Ra()):Ra();
W=Sm(JuS(G),"_",W);m(W)},K)},GXo=function(m,G){var K=G||{};
typeof G=="function"&&(K={},K.callback=G);var W=(G=K)&&G._c;if(W)for(var L=0;L<bcC.length;L++){var A=bcC[L][0],O=bcC[L][1];O&&Object.prototype.hasOwnProperty.call(W,A)&&O(W[A],m,G)}G=[];m?G=m.split(":"):K.features&&(G=K.features);if(!(m=K.h)&&(m=hDP(),!m))throw Error("Wa");zD2(G||[],K,m)},zD2=function(m,G,K){m=uxF(m)||[];
var W=G.callback,L=G.config,A=G.timeout,O=G.ontimeout,c=G.onerror,u=void 0;typeof c=="function"&&(u=c);var h=null,J=!1;if(A&&!O||!A&&O)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";c=Sm(JuS(K),"r",[]).sort();var N=Sm(JuS(K),"L",[]).sort(),D=z5.le||[],t=[].concat(c),a=function(z,X){if(J)return 0;xZ.clearTimeout(h);N.push.apply(N,v);var f=((U5||{}).config||{}).update;f?f(L):L&&Sm(z5,"cu",[]).push(L);if(X){ozB("me0",z,t);try{UFR(X,K,u)}finally{ozB("me1",z,t)}}return 1};
A>0&&(h=xZ.setTimeout(function(){J=!0;O()},A));
var v=eD4(m,N);if(v.length){v=eD4(m,c);var I=Sm(z5,"CP",[]),Z=I.length;I[Z]=function(z){if(!z)return 0;ozB("ml1",v,t);var X=function(U){I[Z]=null;a(v,z)&&p$0(function(){W&&W();U()})},f=function(){var U=I[Z+1];
U&&U()};
Z>0&&I[Z-1]?I[Z]=function(){X(f)}:X(f)};
if(v.length){var k="loaded_"+z5.I++;U5[k]=function(z){I[Z](z);U5[k]=null};
m=kio(K,v,"gapi."+k,c,D);c.push.apply(c,v);ozB("ml0",v,t);G.sync||xZ.___gapisync?SrC(m):xFS(m)}else I[Z](YrK)}else a(v)&&W&&W()},lC0;
var BCP=null,MNG=_.Ks.trustedTypes;if(MNG&&MNG.createPolicy){try{BCP=MNG.createPolicy("goog#gapi",{createHTML:NKS,createScript:NKS,createScriptURL:NKS})}catch(m){_.Ks.console&&_.Ks.console.error(m.message)}lC0=BCP}else lC0=BCP;var X$k=lC0,RDX=function(m,G){if(z5.hee&&z5.hel>0)try{return m()}catch(K){G&&G(K),z5.hel--,GXo("debug_error",function(){try{window.___jsl.hefn(K)}catch(W){throw K;}})}else try{return m()}catch(K){throw G&&G(K),K;
}},TCK=U5.load;
TCK&&Sm(z5,"ol",[]).push(TCK);U5.load=function(m,G){return RDX(function(){return GXo(m,G)})};var kdo;var Gbi=function(){var m=mkR;var G=G||[];this.moduleId_=m||null;this.dependencies_=[];iCK(this,G)};
Gbi.prototype.toString=function(){return"MpJwZc"};
Gbi.prototype.getModuleId=function(){return this.moduleId_};
var iCK=function(m,G){var K=!1;K=K===void 0?!1:K;m.dependencies_=m.dependencies_.concat(G);if(K){if(!m.moduleId_)throw Error("Xa`MpJwZc");G.map(function(W){return W.getModuleId()}).forEach(function(W){CxG(function(L){L.addExtraEdge(m.moduleId_,W)})})}};var mkR;mkR="MpJwZc";var lev=new Gbi;var SBG=new _.iZ("a"),MlP=new _.iZ("c"),BBs=function(m,G,K){_.dM.call(this,m,G);this.node=G;this.kind=K};
_.n(BBs,_.dM);var KyK=function(){this.JSC$10367_keys_={};this.urlPrefix_="";this.JSC$10367_queryData_={}};
KyK.prototype.toString=function(){var m=this.urlPrefix_+WyX(this),G=_.l$(this.JSC$10367_queryData_),K="";G!=""&&(K="?"+G);return m+K};
var Lyi=function(m){m=M3(m,"md");return!!m&&m!=="0"},WyX=function(m){var G=[],K=function(W){m.JSC$10367_keys_[W]!==void 0&&G.push(W+"="+m.JSC$10367_keys_[W])};
Lyi(m)?(K("md"),K("k"),K("ck"),K("am"),K("rs"),K("gssmodulesetproto"),K("slk"),K("dti")):(K("sdch"),K("k"),K("ck"),K("am"),K("amc"),K("rt"),"d"in m.JSC$10367_keys_||T5(m,"d","0"),K("d"),K("exm"),K("excm"),(m.JSC$10367_keys_.excm||m.JSC$10367_keys_.exm)&&G.push("ed=1"),K("im"),K("dg"),K("sm"),M3(m,"br")!="1"&&M3(m,"br")!="0"||K("br"),K("br-d"),M3(m,"rb")=="1"&&K("rb"),M3(m,"zs")!=="0"&&K("zs"),Aak(m)!==""&&K("wt"),K("gssmodulesetproto"),K("ujg"),K("sp"),K("rs"),K("cb"),K("ee"),K("slk"),K("dti"),K("m"));
return G.join("/")},M3=function(m,G){return m.JSC$10367_keys_[G]?m.JSC$10367_keys_[G]:null},T5=function(m,G,K){K?m.JSC$10367_keys_[G]=K:delete m.JSC$10367_keys_[G]},wvR=function(m,G){m.urlPrefix_=G},gNK=function(m,G){G&&G.length>0?(G.sort(),T5(m,"exm",G.join(","))):T5(m,"exm",null)},OCB=function(m,G){G&&G.length>0?(G.sort(),T5(m,"excm",G.join(","))):T5(m,"excm",null)},cal=function(m){return(m=M3(m,"m"))?m.split(","):[]},Aak=function(m){switch(M3(m,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Ypo=function(m,G){var K=Object.keys(G).filter(function(W){return!!Object.keys(G[W]).length}).map(function(W){var L=Object.keys(G[W]);
L.length>1&&L.sort();return W+":"+L.join(",")});
K.sort();T5(m,"ee",K.join(";"))},xqV=function(m){var G=M3(m,"ee");
if(!G)return{};m={};G=_.g(G.split(";"));for(var K=G.next();!K.done;K=G.next()){var W=_.g(K.value.split(":"));K=W.next().value;W=W.next().value;m[K]={};W=_.g(W.split(","));for(var L=W.next();!L.done;L=W.next())m[K][L.value]=!0}return m},ra0=function(m){delete m.JSC$10367_keys_.m;
delete m.JSC$10367_keys_.exm;delete m.JSC$10367_keys_.ed};
KyK.prototype.clone=function(){var m=new KyK;m.JSC$10367_keys_=Object.assign({},this.JSC$10367_keys_);m.urlPrefix_=this.urlPrefix_;m.JSC$10367_queryData_=Object.assign({},this.JSC$10367_queryData_);return m};
var XGo=function(m,G){G=G===void 0?!0:G;var K=ugB(m),W=new KyK,L=_.PE(K)[5];_.Y2.forEach(hmC,function(O){var c=L.match("/"+O+"=([^/]+)");c&&T5(W,O,c[1])});
var A="";A=m.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";wvR(W,m.substr(0,m.indexOf(A)+A.length));if(!G)return W;(m=_.PE(K)[6]||null)&&l5o(m,function(O,c){W.JSC$10367_queryData_[O]=c});
return W},ygd=function(m){m=_.f6(ugB(m));
return m===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(m)?/\/k=/.test(m):!1},ugB=function(m){return m.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?m.substr(65):m},hmC={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",ALLOW_MISSING_CHUNKS:"amc",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"},pvG=RegExp("^(gapi\\.)?loaded(_g|_h)?(_[0-9a-z]+)+$");_.mP=function(m){this.JSC$10379_id_=m;this.opts={}};
_.mP.prototype.JSC$10381_setLabel=function(m){this.label_=m||void 0;return this};
_.mP.prototype.addUploadMetadata=function(m,G){var K=this.opts.data||{};K[m]=G;this.opts.data=K;return this};
var Jai=function(m){var G=_.Y2.filter(m.opts,function(K){return K!==null});
G=_.Y2.isEmpty(G)?null:G;m=[m.JSC$10379_id_,m.label_,G];G=sMG(m);return m=m.slice(0,G+1)};
_.mP.prototype.toString=function(){var m=Jai(this);return"("+_.r$(m,function(G){return JSON.stringify(G)}).join(",")+")"};
_.mP.prototype.getId=function(){return this.JSC$10379_id_};
_.mP.prototype.getOptions=function(){return _.Y2.clone(this.opts)};var iB=function(){_.mP.call(this,"image-search")};
_.n(iB,_.mP);iB.prototype.setSize=function(m){this.opts.imgsz=m;return this};
iB.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
iB.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};var GN=function(){_.mP.call(this,"maps")};
_.n(GN,_.mP);GN.prototype.setZoom=function(m){this.opts.zoom=m;return this};
GN.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
GN.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};_.K_=function(){_.mP.call(this,"photos")};
_.n(_.K_,_.mP);_.K_.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
_.K_.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};var WZ=function(){_.mP.call(this,"url")};
_.n(WZ,_.mP);var NlR=function(){var m=new WZ;m.opts.type="video";m.opts.site="youtube.com";return m};
WZ.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
WZ.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};var L_=function(){_.mP.call(this,"video-search")};
_.n(L_,_.mP);var Dk2=function(){var m=new L_;m.opts.site="youtube.com";return m};
L_.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
L_.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};var t_R=function(){_.mP.call(this,"web")};
_.n(t_R,_.mP);t_R.prototype.JSC$10381_setLabel=function(m){_.mP.prototype.JSC$10381_setLabel.call(this,m);return this};
t_R.prototype.addUploadMetadata=function(m,G){_.mP.prototype.addUploadMetadata.call(this,m,G);return this};var As=function(){this.items_=[];this.opts={}},FyR=function(m){switch(m){case "image-search":return new iB;
case "maps":return new GN;case "photos":return new _.K_;case "url":return new WZ;case "video-search":return new L_;case "web":return new t_R}return new _.mP(m)};
As.prototype.addView=function(m){this.items_.push(typeof m==="string"?FyR(m):m);return this};
var Qvi=function(m){return"("+_.r$(m.items_,function(G){return G.toString()}).join(",")+")"};
As.prototype.toString=function(){return Qvi(this)};
As.prototype.getViews=function(m,G){G=G===void 0?[]:G;for(var K=this.items_,W=0;W<K.length;W++){var L=K[W];L instanceof As?L.getViews(m,G):L.getId()==m&&G.push(L)}return G};
As.prototype.getOptions=function(){return _.Y2.clone(this.opts)};var sJ=function(m){this.basePickerUrl_=m||"https://docs.google.com/picker";this.nav_=new As};
sJ.prototype.nav_=null;sJ.prototype.addView=function(m){this.nav_.addView(m);return this};
sJ.prototype.getBaseUrl=function(){return this.basePickerUrl_};
sJ.prototype.getViews=function(m){return this.nav_.getViews(m)};
_.aGP=function(m,G){m.callback_=G;return m};var oNG=new Map;oNG.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");oNG.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");oNG.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var nNk=new Set;nNk.add("application/vnd.google-apps.kix");nNk.add("application/vnd.google-apps.ritz");nNk.add("application/vnd.google-apps.punch");var V_k=function(m,G,K){var W=K&&_.wL(K,1);K=bCG(K);var L=m[0].getId();switch(_.gL(L,2)){case 13:return vNl(m,G,W,K);case 3:return $k4(m,G,W,K);case 10:return svk(m,G,W,K);case 27:return svk(m,G,W,K);case 12:return qpF(m,G);case 2:return ENS(m,G,W,K);case 5:return HCk(m,G,W,K);case 9:return IGo(m,G,W,K);case 6:return jvB(m,G,W,K);case 25:return kbl(m,G,W,K);case 1:return _.l5(m[0],pgF,26)?CYi(m,G,W,K):svk(m,G,W,K);default:return{}}},jvB=function(m,G,K,W){m=m.map(function(L){return{id:L.getId().getId(),
serviceId:"youtube",name:L.getName(),description:_.wL(L,3),type:wi(L),lastEditedUtc:_.hn0(_.RG(L,_.gS,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:_.wL(L,13),thumbnails:gi(kv(L))}});
return{action:G,docs:m,viewToken:W,view:K||"youtube",v2Translated:!0}},ENS=function(m,G,K,W){var L=m.map(function(A){var O=A.getId().getId(),c=_.wL(A,7),u=A.getName(),h=wi(A),J=_.hn0(_.RG(A,_.gS,12)).getTime(),N=A.getUrl(),D=Number(CqR(A)),t=_.wL(A,3),a=_.wL(A,11),v=gi(kv(A));
var I=_.RG(A,CV,21);I=_.Wo(I,1);var Z=_.RG(A,CV,21);Z=_.wL(Z,10);var k=_.wL(A,13);var z=_.RG(A,CV,21);z=_.Wo(z,9);var X=_.RG(A,CV,21);X=_.wL(X,11);O={id:O,serviceId:"docs",mimeType:c,name:u,type:h,lastEditedUtc:J,url:N,sizeBytes:D,description:t,iconUrl:a,thumbnails:v,isShared:I,downloadUrl:Z,embedUrl:k,copyable:z,resourceKey:X};c=_.RG(A,CV,21);_.Wo(c,12)&&(O.uploadState="success",O.isNew=!0);c=_.RG(A,CV,21);_.l5(c,Hb,3)&&(A=_.RG(A,CV,21),A=_.RG(A,Hb,3),_.l5(A,qN,2)&&(c=QN(A.getDuration().getSeconds()),
u=A.getDuration(),u=_.Z5(u,2),O.duration=c+u/1E9),O.aspectRatio=A.getAspectRatio());return O});
return{action:G,docs:L,viewToken:W,view:K||"all",extraUserInputs:ZCo(m),v2Translated:!0}},HCk=function(m,G,K,W){m=m.map(function(L){var A=_.RG(L,nlP,15);
A=_.RG(A,E1,1);Au(L,10,E1,A);return{id:L.getId().getId(),serviceId:"web",mimeType:_.wL(L,7),name:L.getName(),type:wi(L),url:L.getUrl(),description:_.wL(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(L))}});
return{action:G,docs:m,viewToken:W,view:K||"image-search",v2Translated:!0}},IGo=function(m,G,K,W){m=m.map(function(L){return{serviceId:"url",
name:kv(L)[0].getUrl().split("/").pop(),type:wi(L),mimeType:_.wL(L,7),url:L.getUrl(),description:_.wL(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(L))}});
return{action:G,docs:m,viewToken:W,view:K||"url",v2Translated:!0}},CYi=function(m,G,K,W){m=m.map(function(L){return{id:L.getId().getId(),
serviceId:"picasa",name:L.getName(),type:wi(L),description:_.wL(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(L))}});
return{action:G,docs:m,viewToken:W,view:K||"webcam",v2Translated:!0}},svk=function(m,G,K,W){return{action:G,
docs:m.map(dkl),viewToken:W,view:PY0(K||"upload",m),extraUserInputs:ZCo(m),v2Translated:!0}},PY0=function(m,G){return G.some(function(K){var W;
return((W=_.RG(K,IS,30))==null?void 0:_.gL(W,3))===9})?m+"/gmailphotos":m},$k4=function(m,G,K,W){var L=m.map(function(A){var O={id:A.getId().getId(),
serviceId:"picasa",mimeType:_.wL(A,7),name:A.getName(),type:wi(A),lastEditedUtc:_.hn0(_.RG(A,_.gS,12)).getTime(),url:A.getUrl(),sizeBytes:Number(CqR(A)),description:_.wL(A,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(A)),mediaKey:A.getId().getId(),parentId:_.wL(A,4)},c,u=(c=_.RG(A,DTk,18))==null?void 0:_.RG(c,NM0,3);u&&(O.latitude=Al(u,1),O.longitude=Al(u,2));var h;A=(h=_.RG(A,DTk,18))==null?void 0:Lg(h,6);h=A!=null?QN(A):void 0;h&&(O.version=
h);return O});
return{action:G,docs:L,viewToken:W,view:K||"photos",extraUserInputs:ZCo(m),v2Translated:!0}},vNl=function(m,G,K,W){m=m.map(function(L){return{id:L.getId().getId(),
serviceId:"et",name:kv(L)[0].getUrl().split("/").pop(),description:_.wL(L,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(L),"etjpg")}});
return{action:G,docs:m,viewToken:W,view:K||"et",v2Translated:!0}},kbl=function(m,G,K,W){m=m.map(function(L){var A=L.getId().getId(),O=W["2"];
return{id:A,serviceId:O.type!=="gmail_themes"&&O.parent==="6226252643674576769"?"picasa":"static_themes",name:L.getName(),mimeType:_.wL(L,7),type:wi(L),description:_.wL(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:L.getUrl(),thumbnails:gi(kv(L))}});
return{action:G,docs:m,viewToken:W,view:K||"photos",v2Translated:!0}},qpF=function(m,G){m=m.map(function(K){var W=_.RG(K,JOo,27);
W=_.mu(W,1,_.q6,_.Vp())[0];return{id:K.getId().getId(),serviceId:"contacts",mimeType:_.wL(K,7),name:K.getName(),description:_.wL(K,3),url:"mailto:"+W,thumbnail:[{url:_.wL(K,11)}],email:W}});
return{action:G,docs:m,view:"contacts",v2Translated:!0}},bCG=function(m){if(!m)return{};
var G=_.wL(m,3);G=G&&JSON.parse(G)||{};return{0:_.wL(m,1),1:_.wL(m,2),2:G}},gi=function(m,G){G=G===void 0?"":G;
if(!m.length)return null;G=="etjpg"&&(m=m.filter(function(K){return K.getUrl().includes("w1200-h300")}));
return m.map(function(K){return{url:K.getUrl(),height:K.getHeight(),width:K.getWidth(),type:G}})},ZCo=function(m){return{isAttachment:m.some(function(G){return _.Wo(G,31)})}},dkl=function(m){var G,K={id:(G=m.getId())==null?void 0:G.getId(),
serviceId:yaX(m),mimeType:_.wL(m,7),name:m.getName(),type:wi(m),sizeBytes:Number(CqR(m)),description:_.wL(m,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gi(kv(m)),isNew:!0};if(G=_.RG(m,IS,30)){K.dataUrl=_.wL(G,1)||null;a:{var W=_.RG(m,IS,30);switch(_.gL(W,3)){case 9:W=_.Yi(W,a4X,2,jk);W={remoteRefs:W&&_.wL(W,1)};break a;case 10:case 15:W=_.Yi(W,Qik,4,jk);var L=kv(m);W={photo_id:W&&_.wL(W,1),media_key:m.getId().getId(),media_type:_.gL(m,6)===1?1:2,image_url:L&&
L[0].getUrl(),width:L&&String(L[0].getWidth()),height:L&&String(L[0].getHeight())};break a}W=null}K.uploadMetadata=W;K.uploadId=_.wL(G,9)||null;K.uploadState=emC(G)||null}(W=G&&_.Yi(G,Qik,4,jk))&&(K.id=_.wL(W,1));(W=G&&_.Yi(G,olo,5,jk))&&(K.contentId=_.wL(W,1));(W=G&&_.Yi(G,tUR,7,jk))&&(K.contentId=_.wL(W,1));(W=G&&_.Yi(G,FXk,6,jk))&&(K.contentId=_.wL(W,1));(G==null?void 0:_.gL(G,3))===1&&(K.mediaKey=m.getId().getId());return K},yaX=function(m){var G;
switch(((G=_.RG(m,IS,30))==null?void 0:_.gL(G,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},wi=function(m){switch(_.gL(m,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 _.wL(m,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},emC=function(m){switch(m==null?void 0:_.gL(m,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 SpX,fGC,xkl,XvB;_.RmX=function(m,G){var K=G||{};G=K.document||document;var W=_.yG(m).toString(),L=(new O1(G)).createElement("SCRIPT"),A={script_:L,timeout_:void 0},O=new rM(fGC,A),c=null,u=K.timeout!=null?K.timeout:5E3;u>0&&(c=window.setTimeout(function(){xkl(L,!0);O.errback(new XvB(1,"Timeout reached for loading script "+W))},u),A.timeout_=c);
L.onload=L.onreadystatechange=function(){L.readyState&&L.readyState!="loaded"&&L.readyState!="complete"||(xkl(L,K.cleanupWhenDone||!1,c),O.callback(null))};
L.onerror=function(){xkl(L,!0,c);O.errback(new XvB(0,"Error while loading script "+W))};
A=K.attributes||{};_.Y2.extend(A,{type:"text/javascript",charset:"UTF-8"});taF(L,A);_.Jt(L,m);SpX(G).appendChild(L);return O};
SpX=function(m){var G=iE("HEAD",m);return G&&G.length!==0?G[0]:m.documentElement};
fGC=function(){if(this&&this.script_){var m=this.script_;m&&m.tagName=="SCRIPT"&&xkl(m,!0,this.timeout_)}};
xkl=function(m,G,K){K!=null&&_.Ks.clearTimeout(K);m.onload=function(){};
m.onerror=function(){};
m.onreadystatechange=function(){};
G&&window.setTimeout(function(){_.mX(m)},0)};
XvB=function(m,G){var K="Jsloader error (code #"+m+")";G&&(K+=": "+G);_.mv.call(this,K);this.code=m};
_.kJ(XvB,_.mv);var UkK=_.nY(["https://apis.google.com/js/api.js"]),zmK=_.vE(UkK),Tli=function(m,G,K){K=K===void 0?{}:K;var W=!1,L=lGo(m,G,K).then(function(O){W=!0;return O}),A=_.vSl(5E3).then(function(){return W?lGo(m,G,K):BlP(G,K).then(function(O){return M_o(O,m)})});
return hIS([L,A])},lGo=function(m,G,K){K=K===void 0?{}:K;
return m8l(G,K).then(function(W){return M_o(W,m)})},M_o=function(m,G){var K=_.AV(G,"gapi.")?G.slice(5):G;
return m[K]?_.fJ(m[K]):new _.iO(function(W,L){var A=cW(function(){L(Error("Za"))},3E4);
m.load(G,{callback:function(){_.Ks.clearTimeout(A);W(m[K])},
onerror:function(O){_.Ks.clearTimeout(A);L(O)}})})},m8l=function(m,G){G=G===void 0?{}:G;
return m.gapi&&m.gapi.load?_.fJ(m.gapi):BlP(m,G)},BlP=function(m,G){G=G===void 0?{}:G;
return _.RmX(zmK,{document:m.document,attributes:G}).then(function(){return m.gapi})},iAo=function(){};
iAo.prototype.load=function(m,G,K){G=G===void 0?window:G;K=K===void 0?{}:K;var W=Date.now();return Tli(m,G,K).then(function(L){var A=Date.now();return{library:L,loadStartMs:W,loadEndMs:A}},function(L){throw L instanceof Error?L:Error(String(L));
})};var KfG=function(){_.Lt.call(this);this.gapiLoader_=new iAo;this.origin_=null;this.gapiPickerIframeResolver_=_.Qo();this.gapiIframesResolver_=_.Qo();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.n(KfG,_.Lt);var GPB=function(m,G){var K=K===void 0?{}:K;var W=_.Cn("gapi.iframes",G);return W?(m=Date.now(),_.fJ({library:W,loadStartMs:m,loadEndMs:m})):m.gapiLoader_.load("gapi.iframes",G,K)},KUF=function(m,G,K,W,L,A){var O=!1;
O=O===void 0?!1:O;GPB(m,ur(G.ownerDocument)).then(function(c){var u=c.library;m.gapiIframesResolver_.resolve(u);c=m.gapiPickerIframeResolver_;var h=c.resolve,J=O;J=J===void 0?!1:J;var N={};N["host-message-handler"]=K;m.hostMessageHandlerInternal_=N;var D=_.jU(W);D=_.jU(D);D=_.jm(_.Ia(_.HW(new _.aQ,D.scheme_),D.JSC$10339_domain_),D.JSC$10339_port_).toString();m.origin_=D;D=(new tNX).setUrl(W);D.JSC$10354_obj_.where=G;D.JSC$10354_obj_.allowPost=J;D.JSC$10354_obj_.messageHandlers=N;J=_.Cn("makeWhiteListIframesFilter",
u)([m.origin_]);D.JSC$10354_obj_.messageHandlersFilter=J;L!=null&&(D.JSC$10354_obj_.id=L);A!=null&&(D.JSC$10354_obj_.rpctoken=A);J=DFS(D);J.JSC$10351_obj_.style={display:"block","min-width":"100%",width:"1px"};J.JSC$10351_obj_.height="100%";DFS(D).value().allow="camera 'src' "+m.origin_;u=u.getContext().openChild(D.value());h.call(c,u)},function(c){m.gapiIframesResolver_.reject(c);
m.gapiPickerIframeResolver_.reject(c)});
return m.gapiPickerIframeResolver_.promise},WU2=function(m,G){return _.gO([m.gapiIframesResolver_.promise,
m.gapiPickerIframeResolver_.promise]).then(function(K){var W=_.g(K);K=W.next().value;return(W=W.next().value)?W.send("picker-message-handler",G,void 0,_.Cn("makeWhiteListIframesFilter",K)([m.origin_])):_.KN(Error("$a"))})};
KfG.prototype.disposeInternal=function(){LUK(this);_.Lt.prototype.disposeInternal.call(this)};
var LUK=function(m){m.gapiPickerIframeResolver_.promise.then(function(G){G&&(G.unregister("host-message-handler"),delete m.hostMessageHandlerInternal_["host-message-handler"])})};var AbC=function(){this.nextId=0};var gTF=function(m,G){switch(m.action){case "select-contacts":m=wlB(m.contacts);break;case "visibility":m=m.visible;var K=new Pb;m=_.uA(K,1,7).setVisible(m);K={};K["iframe-command"]=m.serialize();m=K;break;default:m=null}return m?WU2(G,m):_.fJ()},wlB=function(m){if(!m||m.length==0)return null;
var G=new Pb;_.uA(G,1,11);var K=new AbC;m.forEach(function(W){if(W.email){var L=new iA;L=_.ax(L,2,W.name?W.name:W.email);var A=new JOo;W=_.MWd(A,1,_.vu,W.email,_.q6);W=_.ko(L,27,W);L=new u6C;A=":"+(K.nextId++).toString(36);L=_.ax(L,1,A);L=_.uA(L,2,12);W=_.ko(W,1,L)}else W=null;W&&Au(G,7,iA,W)});
m={};m["iframe-command"]=G.serialize();return m};_.OAX=function(){if(TKo){var m=/Windows NT ([0-9.]+)/;return(m=m.exec(_.Nd()))?m[1]:"0"}return _.M0P?(m=/1[0|1][_.][0-9_.]+/,(m=m.exec(_.Nd()))?m[0].replace(/_/g,"."):"10"):jgP?(m=/Android\s+([^\);]+)(\)|;)/,(m=m.exec(_.Nd()))?m[1]:""):iPC||GGS||KDP?(m=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(m=m.exec(_.Nd()))?m[1].replace(/_/g,"."):""):""}();var OX;OX=function(m){return(m=m.exec(_.Nd()))?m[1]:""};
_.cb2=function(){if(_.eI)return OX(/Firefox\/([0-9.]+)/);if(_.PX||d8||zBl)return cDo;if(_.fY){if(_.Ed()||_.bss()){var m=OX(/CriOS\/([0-9.]+)/);if(m)return m}return OX(/Chrome\/([0-9.]+)/)}if(_.bx&&!_.Ed())return OX(/Version\/([0-9.]+)/);if(N6d||D_d){if(m=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Nd()))return m[1]+"."+m[2]}else if(puX)return(m=OX(/Android\s+([0-9.]+)/))?m:OX(/Version\/([0-9.]+)/);return""}();_.IB(dK9);dK9.prototype.nextId_=0;_.cZ=function(m){return":"+(m.nextId_++).toString(36)};var bE=function(m){_.ai.call(this);this.JSC$10449_dom_=m||Wt();this.JSC$10449_id_=null;this.inDocument_=!1;this.JSC$10449_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.kJ(bE,_.ai);bE.prototype.idGenerator_=dK9.getInstance();bE.prototype.getId=function(){return this.JSC$10449_id_||(this.JSC$10449_id_=_.cZ(this.idGenerator_))};
bE.prototype.getElement=function(){return this.JSC$10449_element_};
var YW=function(m){m.googUiComponentHandler_||(m.googUiComponentHandler_=new _.gM(m));return m.googUiComponentHandler_},YKX=function(m,G){if(m==G)throw Error("ab");
var K;if(K=G&&m.parent_&&m.JSC$10449_id_){K=m.parent_;var W=m.JSC$10449_id_;K=K.childIndex_&&W?_.Y2.get(K.childIndex_,W)||null:null}if(K&&m.parent_!=G)throw Error("ab");m.parent_=G;bE.superClass_.setParentEventTarget.call(m,G)};
bE.prototype.setParentEventTarget=function(m){if(this.parent_&&this.parent_!=m)throw Error("bb");bE.superClass_.setParentEventTarget.call(this,m)};
bE.prototype.JSC$10451_createDom=function(){this.JSC$10449_element_=this.JSC$10449_dom_.createElement("DIV")};
bE.prototype.render=function(m){rbG(this,m)};
var rbG=function(m,G,K){if(m.inDocument_)throw Error("cb");m.JSC$10449_element_||m.JSC$10451_createDom();G?G.insertBefore(m.JSC$10449_element_,K||null):m.JSC$10449_dom_.JSC$9633_document_.body.appendChild(m.JSC$10449_element_);m.parent_&&!m.parent_.inDocument_||m.enterDocument()};
_.w=bE.prototype;_.w.decorate=function(m){if(this.inDocument_)throw Error("cb");if(m&&this.canDecorate(m)){this.wasDecorated_=!0;var G=_.hI(m);this.JSC$10449_dom_&&this.JSC$10449_dom_.JSC$9633_document_==G||(this.JSC$10449_dom_=Wt(m));this.decorateInternal(m);this.enterDocument()}else throw Error("db");};
_.w.canDecorate=function(){return!0};
_.w.decorateInternal=function(m){this.JSC$10449_element_=m};
_.w.enterDocument=function(){this.inDocument_=!0;uSl(this,function(m){!m.inDocument_&&m.getElement()&&m.enterDocument()})};
_.w.exitDocument=function(){uSl(this,function(m){m.inDocument_&&m.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.w.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);uSl(this,function(m){m.dispose()});
!this.wasDecorated_&&this.JSC$10449_element_&&_.mX(this.JSC$10449_element_);this.parent_=this.model_=this.JSC$10449_element_=this.childIndex_=this.children_=null;bE.superClass_.disposeInternal.call(this)};
_.w.getModel=function(){return this.model_};
_.w.addChild=function(m,G){var K=this.children_?this.children_.length:0;if(m.inDocument_&&(G||!this.inDocument_))throw Error("cb");if(K<0||K>(this.children_?this.children_.length:0))throw Error("eb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);m.parent_==this?(_.Y2.set(this.childIndex_,m.getId(),m),_.PJ(this.children_,m)):_.Y2.add(this.childIndex_,m.getId(),m);YKX(m,this);_.IFd(this.children_,K,0,m);m.inDocument_&&this.inDocument_&&m.parent_==this?(G=this.getContentElement(),
(G.childNodes[K]||null)!=m.getElement()&&(m.getElement().parentElement==G&&G.removeChild(m.getElement()),K=G.childNodes[K]||null,G.insertBefore(m.getElement(),K))):G?(this.JSC$10449_element_||this.JSC$10451_createDom(),K=this.children_?this.children_[K+1]||null:null,rbG(m,this.getContentElement(),K?K.JSC$10449_element_:null)):this.inDocument_&&!m.inDocument_&&m.JSC$10449_element_&&m.JSC$10449_element_.parentNode&&m.JSC$10449_element_.parentNode.nodeType==1&&m.enterDocument()};
_.w.getContentElement=function(){return this.JSC$10449_element_};
var uSl=function(m,G){m.children_&&m.children_.forEach(G,void 0)};
bE.prototype.removeChild=function(m,G){if(m){var K=typeof m==="string"?m:m.getId();m=this.childIndex_&&K?_.Y2.get(this.childIndex_,K)||null:null;K&&m&&(_.Y2.remove(this.childIndex_,K),_.PJ(this.children_,m),G&&(m.exitDocument(),m.JSC$10449_element_&&_.mX(m.JSC$10449_element_)),YKX(m,null))}if(!m)throw Error("fb");return m};_.kJ(Pxv,ZLd);_.kJ(yHd,ZLd);var hMG;_.Y2.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var plG=function(m,G){G?m.setAttribute("role",G):m.removeAttribute("role")},ri=function(m,G,K){Array.isArray(K)&&(K=K.join(" "));
var W="aria-"+G;K===""||K==void 0?(hMG||(K={},hMG=(K.atomic=!1,K.autocomplete="none",K.dropeffect="none",K.haspopup=!1,K.live="off",K.multiline=!1,K.multiselectable=!1,K.orientation="vertical",K.readonly=!1,K.relevant="additions text",K.required=!1,K.sort="none",K.busy=!1,K.disabled=!1,K.hidden=!1,K.invalid="false",K)),K=hMG,G in K?m.setAttribute(W,K[G]):m.removeAttribute(W)):m.setAttribute(W,K)};var JbS;_.uB=function(m,G,K){_.ai.call(this);this.target=m;this.handle=G||m;this.limits=K||new HE(NaN,NaN,NaN,NaN);this.JSC$10454_document_=_.hI(m);this.JSC$10454_eventHandler_=new _.gM(this);_.UR(this,this.JSC$10454_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;_.oi(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=JbS};
_.kJ(_.uB,_.ai);JbS=_.Ks.document&&_.Ks.document.documentElement&&!!_.Ks.document.documentElement.setCapture&&!!_.Ks.document.releaseCapture;_.NBR=function(m,G){m.hysteresisDistanceSquared_=Math.pow(G,2)};
_.w=_.uB.prototype;_.w.setEnabled=function(m){this.enabled_=m};
_.w.disposeInternal=function(){_.uB.superClass_.disposeInternal.call(this);_.Lb(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10454_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10454_document_.releaseCapture();this.handle=this.target=null};
_.w.startDrag=function(m){var G=m.type=="mousedown";if(!this.enabled_||this.dragging_||G&&(!m.isButton(0)||_.M0P&&m.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new hs("start",this,m.clientX,m.clientY,m)))this.dragging_=!0,G&&m.preventDefault();else return;else G&&m.preventDefault();G=this.JSC$10454_document_;var K=G.documentElement,W=!this.useSetCapture_;this.JSC$10454_eventHandler_.listen(G,["touchmove","mousemove"],this.handleMove_,
{capture:W,passive:!1});this.JSC$10454_eventHandler_.listen(G,["touchend","mouseup"],this.endDrag,W);this.useSetCapture_?(K.setCapture(!1),this.JSC$10454_eventHandler_.listen(K,"losecapture",this.endDrag)):this.JSC$10454_eventHandler_.listen(ur(G),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10454_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,W);this.clientX=this.startX=m.clientX;this.clientY=this.startY=m.clientY;this.screenX=m.screenX;this.screenY=m.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=KB(Wt(this.JSC$10454_document_))}};
_.w.endDrag=function(m,G){this.JSC$10454_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10454_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new hs("end",this,m.clientX,m.clientY,m,D8k(this,this.deltaX),tlP(this,this.deltaY),G||m.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.w.handleMove_=function(m){if(this.enabled_){var G=m.clientX-this.clientX,K=m.clientY-this.clientY;this.clientX=m.clientX;this.clientY=m.clientY;this.screenX=m.screenX;this.screenY=m.screenY;if(!this.dragging_){var W=this.startX-this.clientX,L=this.startY-this.clientY;if(W*W+L*L>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new hs("start",this,m.clientX,m.clientY,m)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(m);return}}K=FUX(this,G,K);G=K.x;K=K.y;this.dragging_&&this.dispatchEvent(new hs("beforedrag",
this,m.clientX,m.clientY,m,G,K))&&(Qlo(this,m,G,K),m.preventDefault())}};
var FUX=function(m,G,K){var W=KB(Wt(m.JSC$10454_document_));G+=W.x-m.pageScroll.x;K+=W.y-m.pageScroll.y;m.pageScroll=W;m.deltaX+=G;m.deltaY+=K;return new _.si(D8k(m,m.deltaX),tlP(m,m.deltaY))};
_.uB.prototype.onScroll_=function(m){var G=FUX(this,0,0);m.clientX=this.clientX;m.clientY=this.clientY;Qlo(this,m,G.x,G.y)};
var Qlo=function(m,G,K,W){m.target.style.left=K+"px";m.target.style.top=W+"px";m.dispatchEvent(new hs("drag",m,G.clientX,G.clientY,G,K,W))},D8k=function(m,G){var K=m.limits;
m=isNaN(K.left)?null:K.left;K=isNaN(K.width)?0:K.width;return Math.min(m!=null?m+K:Infinity,Math.max(m!=null?m:-Infinity,G))},tlP=function(m,G){var K=m.limits;
m=isNaN(K.top)?null:K.top;K=isNaN(K.height)?0:K.height;return Math.min(m!=null?m+K:Infinity,Math.max(m!=null?m:-Infinity,G))};
_.uB.prototype.isDragging=function(){return this.dragging_};
var hs=function(m,G,K,W,L,A,O){_.dM.call(this,m);this.clientX=K;this.clientY=W;this.browserEvent=L;this.left=A!==void 0?A:G.deltaX;this.top=O!==void 0?O:G.deltaY};
_.kJ(hs,_.dM);var p_=function(m){this.JSC$10461_map_=new Map;var G=arguments.length;if(G>1){if(G%2)throw Error("na");for(var K=0;K<G;K+=2)this.set(arguments[K],arguments[K+1])}else m&&this.addAll(m)};
_.w=p_.prototype;_.w.getCount=function(){return this.JSC$10461_map_.size};
_.w.getValues=function(){return Array.from(this.JSC$10461_map_.values())};
_.w.getKeys=function(){return Array.from(this.JSC$10461_map_.keys())};
_.w.containsKey=function(m){return this.JSC$10461_map_.has(m)};
_.w.containsValue=function(m){return this.getValues().some(function(G){return G==m})};
_.w.equals=function(m,G){var K=this;G=G===void 0?function(W,L){return W===L}:G;
return this===m?!0:this.JSC$10461_map_.size!=m.getCount()?!1:this.getKeys().every(function(W){return G(K.JSC$10461_map_.get(W),m.get(W))})};
_.w.isEmpty=function(){return this.JSC$10461_map_.size==0};
_.w.clear=function(){this.JSC$10461_map_.clear()};
_.w.remove=function(m){return this.JSC$10461_map_.delete(m)};
_.w.get=function(m,G){return this.JSC$10461_map_.has(m)?this.JSC$10461_map_.get(m):G};
_.w.set=function(m,G){this.JSC$10461_map_.set(m,G);return this};
_.w.addAll=function(m){if(m instanceof p_){m=_.g(m.JSC$10461_map_);for(var G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;this.JSC$10461_map_.set(G,K)}}else if(m)for(m=_.g(Object.entries(m)),G=m.next();!G.done;G=m.next())K=_.g(G.value),G=K.next().value,K=K.next().value,this.JSC$10461_map_.set(G,K)};
_.w.forEach=function(m,G){var K=this;G=G===void 0?this:G;this.JSC$10461_map_.forEach(function(W,L){return m.call(G,W,L,K)})};
_.w.clone=function(){return new p_(this)};(function(){for(var m=["ms","moz","webkit","o"],G,K=0;G=m[K]&&!_.Ks.requestAnimationFrame;++K)_.Ks.requestAnimationFrame=_.Ks[G+"RequestAnimationFrame"],_.Ks.cancelAnimationFrame=_.Ks[G+"CancelAnimationFrame"]||_.Ks[G+"CancelRequestAnimationFrame"];if(!_.Ks.requestAnimationFrame){var W=0;_.Ks.requestAnimationFrame=function(L){var A=(new Date).getTime(),O=Math.max(0,16-(A-W));W=A+O;return _.Ks.setTimeout(function(){L(A+O)},O)};
_.Ks.cancelAnimationFrame||(_.Ks.cancelAnimationFrame=function(L){clearTimeout(L)})}})();
var f_6=[[],[]],xKF=0,Xwo=!1,evs=0;var aeR=_.nY(["about:blank"]),oTX=_.nY(["javascript:undefined"]),nTo=_.vE(aeR);_.yG(nTo);var bAF=_.vE(oTX);_.yG(bAF);_.kJ(nt,_.ai);nt.prototype.handleEvent=function(m){var G=new _.G5(m.event_);G.type=m.type=="focusin"||m.type=="focus"?"focusin":"focusout";this.dispatchEvent(G)};
nt.prototype.disposeInternal=function(){nt.superClass_.disposeInternal.call(this);Tg(this.listenKeyIn_);Tg(this.listenKeyOut_);delete this.JSC$10467_element_};_.kJ(vg,bE);_.w=vg.prototype;_.w.focusHandler_=null;_.w.visible_=!1;_.w.bgEl_=null;_.w.bgIframeEl_=null;_.w.tabCatcherElement_=null;_.w.backwardTabWrapInProgress_=!1;_.w.getCssClass=function(){return"goog-modalpopup"};
_.w.getBackgroundElement=function(){return this.bgEl_};
_.w.JSC$10451_createDom=function(){vg.superClass_.JSC$10451_createDom.call(this);var m=this.getElement(),G=u6(this.getCssClass()).split(" ");$Z(m,G);m.tabIndex=0;_.VN(m,!1);vT2(this);$8S(this)};
var vT2=function(m){if(m.useIframeMask_&&!m.bgIframeEl_){var G=m.JSC$10449_dom_.JSC$9635_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.w5(G,nTo);m.bgIframeEl_=G;m.bgIframeEl_.className=m.getCssClass()+"-bg";_.VN(m.bgIframeEl_,!1);U7C(m.bgIframeEl_,0)}m.bgEl_||(m.bgEl_=m.JSC$10449_dom_.JSC$9635_createDom("DIV",m.getCssClass()+"-bg"),_.VN(m.bgEl_,!1))},$8S=function(m){m.tabCatcherElement_||(m.tabCatcherElement_=m.JSC$10449_dom_.createElement("SPAN"),_.VN(m.tabCatcherElement_,
!1),m.tabCatcherElement_.tabIndex=0,m.tabCatcherElement_.style.position="absolute")};
_.w=vg.prototype;_.w.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.w.canDecorate=function(m){return!!m&&m.tagName=="DIV"};
_.w.decorateInternal=function(m){vg.superClass_.decorateInternal.call(this,m);m=u6(this.getCssClass()).split(" ");$Z(this.getElement(),m);vT2(this);$8S(this);this.getElement().tabIndex=0;_.VN(this.getElement(),!1)};
_.w.enterDocument=function(){this.bgIframeEl_&&_.JY(this.bgIframeEl_,this.getElement());_.JY(this.bgEl_,this.getElement());vg.superClass_.enterDocument.call(this);_.NN(this.tabCatcherElement_,this.getElement());this.focusHandler_=new nt(this.JSC$10449_dom_.JSC$9633_document_);YW(this).listen(this.focusHandler_,"focusin",this.onFocus);slk(this,!1)};
_.w.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.I$(this.focusHandler_);vg.superClass_.exitDocument.call(this);_.mX(this.bgIframeEl_);_.mX(this.bgEl_);_.mX(this.tabCatcherElement_)};
_.w.setVisible=function(m){if(m!=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_&&slk(this,m),m){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10449_dom_.JSC$9633_document_.activeElement}catch(L){}this.updateModalAndBackground_();YW(this).listen(this.JSC$10449_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10449_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);qKo(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)JO(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){YW(this).unlisten(this.JSC$10449_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10449_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)JO(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var G=this.JSC$10449_dom_,K=G.JSC$9633_document_.body,W=G.JSC$9633_document_.activeElement||K;if(!this.lastFocus_||this.lastFocus_==K){this.lastFocus_=null;break a}(W==K||G.contains(this.getElement(),W))&&this.lastFocus_.focus()}catch(L){}this.lastFocus_=
null}}};
var slk=function(m,G){m.modalAriaVisibilityHelper_||(m.modalAriaVisibilityHelper_=new UK6(m.JSC$10449_element_,m.JSC$10449_dom_));m=m.modalAriaVisibilityHelper_;if(G){m.hiddenElements_||(m.hiddenElements_=[]);G=m.JSC$10470_dom_.getChildren(m.JSC$10470_dom_.JSC$9633_document_.body);for(var K=0;K<G.length;K++){var W=G[K],L;if(L=W!=m.JSC$10470_element_)L=W.getAttribute("aria-hidden"),L=!(L==null||L==void 0?0:String(L));L&&(ri(W,"hidden",!0),m.hiddenElements_.push(W))}}else if(m.hiddenElements_){for(G=
0;G<m.hiddenElements_.length;G++)m.hiddenElements_[G].removeAttribute("aria-hidden");m.hiddenElements_=null}};
vg.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var qKo=function(m,G){m.bgIframeEl_&&_.VN(m.bgIframeEl_,G);m.bgEl_&&_.VN(m.bgEl_,G);_.VN(m.getElement(),G);_.VN(m.tabCatcherElement_,G)};
_.w=vg.prototype;_.w.onShow=function(){this.dispatchEvent("show")};
_.w.onHide=function(){qKo(this,!1);this.dispatchEvent("hide")};
_.w.isVisible=function(){return this.visible_};
_.w.focus=function(){this.focusElement_()};
_.w.resizeBackground_=function(){this.bgIframeEl_&&_.VN(this.bgIframeEl_,!1);this.bgEl_&&_.VN(this.bgEl_,!1);var m=this.JSC$10449_dom_.JSC$9633_document_;var G=_.GI(ur(this.JSC$10449_dom_.JSC$9633_document_)||window);var K=Math.max(G.width,Math.max(m.body.scrollWidth,m.documentElement.scrollWidth));m=Math.max(G.height,Math.max(m.body.scrollHeight,m.documentElement.scrollHeight));this.bgIframeEl_&&(_.VN(this.bgIframeEl_,!0),_.x7l(this.bgIframeEl_,K,m));this.bgEl_&&(_.VN(this.bgEl_,!0),_.x7l(this.bgEl_,
K,m))};
_.w.reposition=function(){var m;if(_.f5S(this.getElement())=="fixed")var G=m=0;else G=KB(this.JSC$10449_dom_),m=G.x,G=G.y;var K=SRl(this.getElement());var W=_.GI(ur(this.JSC$10449_dom_.JSC$9633_document_)||window);m=Math.max(m+W.width/2-K.width/2,0);G=Math.max(G+W.height/2-K.height/2,0);aS(this.getElement(),m,G);aS(this.tabCatcherElement_,m,G)};
_.w.onFocus=function(m){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():m.target==this.tabCatcherElement_&&cW(this.focusElement_,0,this)};
_.w.focusElement_=function(){try{this.getElement().focus()}catch(m){}};
_.w.disposeInternal=function(){_.I$(this.popupShowTransition_);this.popupShowTransition_=null;_.I$(this.popupHideTransition_);this.popupHideTransition_=null;_.I$(this.bgShowTransition_);this.bgShowTransition_=null;_.I$(this.bgHideTransition_);this.bgHideTransition_=null;vg.superClass_.disposeInternal.call(this)};var $l=function(m,G,K){vg.call(this,G,K);this.JSC$10480_class_=m||"modal-dialog";this.buttons_=(new Js).addButton(ETX,!0).addButton(HAl,!1,!0)};
_.kJ($l,vg);_.w=$l.prototype;_.w.escapeToCancel_=!0;_.w.hasTitleCloseButton_=!0;_.w.modal_=!0;_.w.draggable_=!0;_.w.backgroundElementOpacity_=.5;_.w.title_="";_.w.JSC$10482_dragger_=null;_.w.JSC$10482_disposeOnHide_=!1;_.w.titleEl_=null;_.w.titleTextEl_=null;_.w.titleTextId_=null;_.w.titleCloseEl_=null;_.w.contentEl_=null;_.w.buttonEl_=null;_.w.getCssClass=function(){return this.JSC$10480_class_};
_.w.setTitle=function(m){this.title_=m;this.titleTextEl_&&_.tY(this.titleTextEl_,m)};
_.w.getTitle=function(){return this.title_};
_.w.getContent=function(){return""};
_.w.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Ieo=function(m){m.getElement()||m.render();return m.getElement()};
$l.prototype.getBackgroundElement=function(){this.getElement()||this.render();return $l.superClass_.getBackgroundElement.call(this)};
var jll=function(m,G){m.backgroundElementOpacity_=G;m.getElement()&&(G=m.getBackgroundElement())&&U7C(G,m.backgroundElementOpacity_)};
$l.prototype.setDraggable=function(m){this.draggable_=m;kPK(this,m&&this.inDocument_)};
$l.prototype.handleDrag=function(){};
var kPK=function(m,G){var K=u6(m.JSC$10480_class_+"-title-draggable").split(" ");m.getElement()&&(G?$Z(m.titleEl_,K):aD0(m.titleEl_,K));G&&!m.JSC$10482_dragger_?(G=new _.uB(m.getElement(),m.titleEl_),m.JSC$10482_dragger_=G,$Z(m.titleEl_,K),_.oi(m.JSC$10482_dragger_,"start",m.setDraggerLimits_,!1,m),_.oi(m.JSC$10482_dragger_,"drag",m.handleDrag,!1,m)):!G&&m.JSC$10482_dragger_&&(m.JSC$10482_dragger_.dispose(),m.JSC$10482_dragger_=null)};
_.w=$l.prototype;
_.w.JSC$10451_createDom=function(){$l.superClass_.JSC$10451_createDom.call(this);var m=this.getElement(),G=this.JSC$10449_dom_;this.titleTextId_=this.getId();var K=this.getId()+".contentEl";this.titleEl_=G.JSC$9635_createDom("DIV",this.JSC$10480_class_+"-title",this.titleTextEl_=G.JSC$9635_createDom("SPAN",{className:this.JSC$10480_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=G.JSC$9635_createDom("SPAN",this.JSC$10480_class_+"-title-close"));n2o(m,this.titleEl_,this.contentEl_=
G.JSC$9635_createDom("DIV",{className:this.JSC$10480_class_+"-content",id:K}),this.buttonEl_=G.JSC$9635_createDom("DIV",this.JSC$10480_class_+"-buttons"));plG(this.titleTextEl_,"heading");plG(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ri(this.titleCloseEl_,"label","Close");plG(m,"dialog");ri(m,"labelledby",this.titleTextId_||"");_.VN(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(m=this.buttons_,m.JSC$10483_element_=this.buttonEl_,m.render());_.VN(this.buttonEl_,!!this.buttons_);
jll(this,this.backgroundElementOpacity_)};
_.w.decorateInternal=function(m){$l.superClass_.decorateInternal.call(this,m);m=this.getElement();var G=this.JSC$10480_class_+"-content";this.contentEl_=cb(document,null,G,m)[0];this.contentEl_||(this.contentEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",G),m.appendChild(this.contentEl_));G=this.JSC$10480_class_+"-title";var K=this.JSC$10480_class_+"-title-text",W=this.JSC$10480_class_+"-title-close";(this.titleEl_=cb(document,null,G,m)[0])?(this.titleTextEl_=cb(document,null,K,this.titleEl_)[0],
this.titleCloseEl_=cb(document,null,W,this.titleEl_)[0]):(this.titleEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",G),m.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ZBX(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.r3("SPAN",{className:K,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ri(m,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10449_dom_.JSC$9635_createDom("SPAN",W),this.titleEl_.appendChild(this.titleCloseEl_));_.VN(this.titleCloseEl_,this.hasTitleCloseButton_);G=this.JSC$10480_class_+"-buttons";(this.buttonEl_=cb(document,null,G,m)[0])?(this.buttons_=new Js(this.JSC$10449_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10449_dom_.JSC$9635_createDom("DIV",G),m.appendChild(this.buttonEl_),this.buttons_&&(m=this.buttons_,m.JSC$10483_element_=this.buttonEl_,m.render()),_.VN(this.buttonEl_,
!!this.buttons_));jll(this,this.backgroundElementOpacity_)};
_.w.enterDocument=function(){$l.superClass_.enterDocument.call(this);YW(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);YW(this).listen(this.buttonEl_,"click",this.onButtonClick_);kPK(this,this.draggable_);YW(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var m=this.getElement();plG(m,"dialog");this.titleTextEl_.id!==""&&ri(m,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){m=this.JSC$10449_dom_;
var G=this.getBackgroundElement();m.removeNode(this.bgIframeEl_);m.removeNode(G)}this.isVisible()&&slk(this,!1)}};
_.w.exitDocument=function(){this.isVisible()&&this.setVisible(!1);kPK(this,!1);$l.superClass_.exitDocument.call(this)};
_.w.setVisible=function(m){m!=this.isVisible()&&(this.inDocument_||this.render(),$l.superClass_.setVisible.call(this,m))};
_.w.onShow=function(){$l.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.w.onHide=function(){$l.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10482_disposeOnHide_&&this.dispose()};
_.w.setDraggerLimits_=function(){var m=this.JSC$10449_dom_.JSC$9633_document_,G=_.GI(ur(m)||window),K=Math.max(m.body.scrollWidth,G.width);m=Math.max(m.body.scrollHeight,G.height);var W=SRl(this.getElement());_.f5S(this.getElement())=="fixed"?this.JSC$10482_dragger_.limits=new HE(0,0,Math.max(0,G.width-W.width),Math.max(0,G.height-W.height)):this.JSC$10482_dragger_.limits=new HE(0,0,K-W.width,m-W.height)};
_.w.onTitleCloseClick_=function(){CLG(this)};
var CLG=function(m){if(m.hasTitleCloseButton_){var G=m.buttons_,K=G&&G.cancelButton_;K?(G=G.get(K),m.dispatchEvent(new Nz(K,G))&&m.setVisible(!1)):m.setVisible(!1)}},Vl0=function(m){m.hasTitleCloseButton_=!1;
m.titleCloseEl_&&_.VN(m.titleCloseEl_,m.hasTitleCloseButton_)};
$l.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;$l.superClass_.disposeInternal.call(this)};
$l.prototype.onButtonClick_=function(m){a:{for(m=m.target;m!=null&&m!=this.buttonEl_;){if(m.tagName=="BUTTON")break a;m=m.parentNode}m=null}if(m&&!m.disabled){m=m.name;var G=this.buttons_.get(m);this.dispatchEvent(new Nz(m,G))&&this.setVisible(!1)}};
$l.prototype.onKey_=function(m){var G=!1,K=!1,W=this.buttons_,L=m.target;if(m.type=="keydown")if(this.escapeToCancel_&&m.keyCode==27){var A=W&&W.cancelButton_;L=L.tagName=="SELECT"&&!L.disabled;A&&!L?(K=!0,G=W.get(A),G=this.dispatchEvent(new Nz(A,G))):L||(G=!0)}else{if(m.keyCode==9&&m.shiftKey&&L==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(J){}cW(this.resetBackwardTabWrap_,0,this)}}else if(m.keyCode==13){if(L.tagName=="BUTTON"&&!L.disabled)A=L.name;
else if(L==this.titleCloseEl_)CLG(this);else if(W){var O=W.defaultButton_,c;if(c=O)a:{c=iE("BUTTON",W.JSC$10483_element_);for(var u,h=0;u=c[h];h++)if(u.name==O||u.id==O){c=u;break a}c=null}L=(L.tagName=="TEXTAREA"||L.tagName=="SELECT"||L.tagName=="A")&&!L.disabled;!c||c.disabled||L||(A=O)}A&&W&&(K=!0,G=this.dispatchEvent(new Nz(A,String(W.get(A)))))}else L!=this.titleCloseEl_||m.keyCode!=32&&m.key!=" "||CLG(this);if(G||K)m.stopPropagation(),m.preventDefault();G&&this.setVisible(!1)};
var Nz=function(m,G){this.type="dialogselect";this.key=m;this.caption=G};
_.kJ(Nz,_.dM);var Js=function(m){p_.call(this);m||Wt();this.cancelButton_=this.JSC$10483_element_=this.defaultButton_=null};
_.kJ(Js,p_);_.w=Js.prototype;_.w.clear=function(){p_.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.w.set=function(m,G,K,W){p_.prototype.set.call(this,m,G);K&&(this.defaultButton_=m);W&&(this.cancelButton_=m);return this};
_.w.addButton=function(m,G,K){return this.set(m.key,m.caption,G,K)};
_.w.render=function(){if(this.JSC$10483_element_){_.Np(this.JSC$10483_element_,wGF);var m=Wt(this.JSC$10483_element_);this.forEach(function(G,K){G=m.JSC$9635_createDom("BUTTON",{name:K},G);K==this.defaultButton_&&(G.className="goog-buttonset-default");this.JSC$10483_element_.appendChild(G)},this)}};
_.w.decorate=function(m){if(m&&m.nodeType==1){this.JSC$10483_element_=m;m=iE("BUTTON",this.JSC$10483_element_);for(var G,K,W,L=0;G=m[L];L++)if(K=G.name||G.id,W=ZBX(G)||G.value,K){var A=L==0;this.set(K,W,A,G.name=="cancel");A&&_.QO(G,"goog-buttonset-default")}}};
_.w.getElement=function(){return this.JSC$10483_element_};
var ETX={key:"ok",caption:"OK"},HAl={key:"cancel",caption:"Cancel"},ZAR={key:"yes",caption:"Yes"},d8i={key:"no",caption:"No"},PLK={key:"save",caption:"Save"},ybo={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Js).addButton(ETX,!0,!0),(new Js).addButton(ETX,!0).addButton(HAl,!1,!0),(new Js).addButton(ZAR,!0).addButton(d8i,!1,!0),(new Js).addButton(ZAR).addButton(d8i,!0).addButton(HAl,!1,!0),(new Js).addButton(ybo).addButton(PLK).addButton(HAl,!0,!0));_.kJ(zvG,$l);_.kJ(l_J,sJ);var eMK=_.nY(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),fe4=_.nY(["//apis.google.com/js/rpc.js"]),AgM=_.vE(eMK),Lf6=_.vE(fe4),MnP=null;var qT=function(m,G){_.ai.call(this);this.JSC$10492_element_=m;m=_.eU(this.JSC$10492_element_)?this.JSC$10492_element_:this.JSC$10492_element_?this.JSC$10492_element_.body:null;this.isRtl_=!!m&&_.zL2(m);this.listenKey_=_.oi(this.JSC$10492_element_,_.lY?"DOMMouseScroll":"mousewheel",this,G)};
_.kJ(qT,_.ai);qT.prototype.handleEvent=function(m){var G=0,K=0,W=m.event_;W.type=="mousewheel"?(m=x8X(-W.wheelDelta),W.wheelDeltaX!==void 0?(G=x8X(-W.wheelDeltaX),K=x8X(-W.wheelDeltaY)):K=m):(m=W.detail,m>100?m=3:m<-100&&(m=-3),W.axis!==void 0&&W.axis===W.HORIZONTAL_AXIS?G=m:K=m);typeof this.maxDeltaX_==="number"&&(G=_.YJ(G,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(K=_.YJ(K,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(G=-G);G=new Xlo(m,W,G,K);this.dispatchEvent(G)};
var x8X=function(m){return _.zb&&(_.M0P||m6o)&&m%40!=0?m:m/40};
qT.prototype.disposeInternal=function(){qT.superClass_.disposeInternal.call(this);Tg(this.listenKey_);this.listenKey_=null};
var Xlo=function(m,G,K,W){_.G5.call(this,G);this.type="mousewheel";this.detail=m;this.deltaX=K;this.deltaY=W};
_.kJ(Xlo,_.G5);_.Ix=function(m){var G="instance_";if(m.instance_&&m.hasOwnProperty(G))return m.instance_;G=new m;return m.instance_=G};var Wfv;var SKF=_.nY(["https://about:blank"]),RM4=_.nY(['javascript:""']),U82=_.nY(["about:blank"]);_.kJ(Z4,zvG);_.w=Z4.prototype;_.w.JSC$10500_url_="";_.w.JSC$10500_iframe_=null;_.w.iframeLoaded_=!1;_.w.loadedFired_=!1;_.w.callback_=function(){};
_.w.enterDocument=function(){Z4.superClass_.enterDocument.call(this);iSV(this.getBackgroundElement(),YW(this))};
_.w.render=function(m){var G=this;Z4.superClass_.render.call(this,m);this.useGapi_?GPB(this.iframeManager_,window).then(function(){return zMk(G)}).then(null,function(){G.callback_({action:"error"})}):leC(this);
this.JSC$10498_enablePopover_&&(this.getBackgroundElement().setAttribute("popover","manual"),Ieo(this).setAttribute("popover","manual"))};
var zMk=function(m){var G=m.JSC$10449_dom_.JSC$9635_createDom("div",["picker-dialog-content","picker-frame"]);_.VN(G,!1);m.getContentElement().appendChild(G);return KUF(m.iframeManager_,G,function(K){var W=siK(K["iframe-command"]);switch(W.getCommand()){case 1:K=m.callback_;W=_.RG(W,d3,2);var L="";switch(W.getStatus()){case 2:L="cancel";break;case 1:L="picked";break;case 3:L="error"}var A=_.CB(W,iA,2,_.Vp(QsC));W=A.length===0?{action:L}:V_k(A,L,_.RG(W,btC,7));K.call(m,W);m.setVisible(!1);break;case 4:Vl0(m);
m.callback_({action:"loaded"});break;case 7:case 8:K=m.callback_;a:{L=W.getCommand();A=_.RG(W,d3,2);switch(L){case 7:L="uploadScheduled";break;case 8:L="uploadStateChange";break;default:W={};break a}W=_.CB(A,iA,2,_.Vp(QsC));if(W.length===0)W={action:L};else{var O=_.RG(A,btC,7);A=O&&_.wL(O,1);O=bCG(O);W=svk(W,L,A,O)}}K.call(m,W)}},m.JSC$10500_url_,m.targetId_,m.rpcToken_).then(function(K){m.JSC$10500_iframe_=K.getIframeEl();
BBl(m);_.VN(m.JSC$10500_iframe_.parentElement,!0);_.QO(m.getElement(),"picker-dialog");MlR(m);return K})},leC=function(m){m.JSC$10500_iframe_=m.JSC$10449_dom_.JSC$9635_createDom("IFRAME",{id:m.targetId_,
name:m.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.w5(m.JSC$10500_iframe_,TBS(m));_.QO(m.getElement(),"picker-dialog");m.getContentElement().appendChild(m.JSC$10500_iframe_);YW(m).listen(m.JSC$10500_iframe_,"load",function(){return void BBl(m)});
m.JSC$10500_iframe_.src=m.JSC$10500_url_;MlR(m)},iJF=function(m){m$C(m,(0,_.AO)(function(G){G.setAuthToken(this.targetId_,this.rpcToken_)},m))},MlR=function(m){var G=_.kl(_.jU(m.JSC$10500_url_),"title");
G&&m.setTitle(G)},TBS=function(m){return _.aF9("Internet Explorer")>=7&&_.AV(m.JSC$10500_url_,"https")?_.vE(SKF):_.PX?_.vE(RM4):_.vE(U82)},BBl=function(m){iJF(m);
m.iframeLoaded_=!0;m.JSC$10500_iframe_.tabIndex=0;m.isVisible()&&m.focus()};
Z4.prototype.handleKeydown_=function(m){m.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),m.stopPropagation(),m.preventDefault())};
var m$C=function(m,G){var K=m.JSC$10498_gadgetsDomHelper_;T8P(function(){G(K.getWindow().gadgets.rpc)},K)};
Z4.prototype.setUrl=function(m){m=_.Ct(new _.aQ(m),"rpcService",this.targetId_);_.Ct(m,"rpctoken",this.rpcToken_);_.V7(m,"rpctoken="+this.rpcToken_);_.HW(m,"https");this.JSC$10500_url_=m.toString();this.JSC$10500_iframe_&&(this.JSC$10500_iframe_.src=this.JSC$10500_url_)};
var GqB=function(m,G){m.callback_=G;m$C(m,(0,_.AO)(function(K){K.register(this.targetId_,(0,_.AO)(this.handlePickerAction_,this))},m))};
Z4.prototype.handlePickerAction_=function(m){var G=m.action;G=="loaded"&&(this.loadedFired_=!0,Kak(this,new yHd(this.isVisible())),Wao(this),Vl0(this),YW(this).unlisten(this.JSC$10449_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10500_iframe_.tabIndex=0);G!="picked"&&G!="cancel"||this.setVisible(!1);this.callback_(m)};
var Wao=function(m){m.JSC$10500_appId_&&Kak(m,new Pxv(m.JSC$10500_appId_,window.location.protocol+"//"+window.location.host))};
Z4.prototype.setRelayUrl=function(m){m$C(this,(0,_.AO)(function(G){G.setRelayUrl(this.targetId_,m)},this))};
var Kak=function(m,G){m.useGapi_&&gTF(G,m.iframeManager_).then(null,function(){m.callback_({action:"error"})});
m$C(m,(0,_.AO)(function(K){K.call(this.targetId_,"picker",null,G)},m))};
Z4.prototype.resizePicker_=function(){var m=ur(this.JSC$10449_dom_.JSC$9633_document_)||window;if(_.kl(_.jU(this.JSC$10500_url_),"ignoreLimits")=="true")m=new _.qj(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.kl(_.jU(this.JSC$10500_url_),"shadeDialog")=="true"){var G=Ieo(this);G=l50(G);var K=_.GI(m);m=K.width-80;K=K.height-40;G&&(m-=G.left?G.left:0,m-=G.right?G.right:0,K-=G.top?G.top:0,K-=G.bottom?G.bottom:0);m=new _.qj(m>0?m:0,K>0?K:0)}else(G=this.preferredDialogWidth_)?(G=Math.max(320,
Math.min(1051,G)),(K=this.preferredDialogHeight_)||(K=_.GI(m).height*.85),K=Math.max(480,Math.min(650,K))):(G=_.GI(m),K=G.width*.618,K=K<G.height?Math.round(Math.max(480,Math.min(650,K*.85))):Math.round(Math.max(480,Math.min(650,G.height*.85))),G=Math.round(K/.618)),m=_.GI(m),G=Math.min(G,Math.max(m.width,320)),K=Math.min(K,Math.max(m.height,480)),m=new _.qj(G,K);_.x7l(this.getContentElement(),m);this.reposition()};
Z4.prototype.reposition=function(){if(_.kl(_.jU(this.JSC$10500_url_),"shadeDialog")=="true"){var m=SRl(this.getElement()),G=_.GI(this.JSC$10449_dom_.getWindow());m=Math.floor(G.width/2-m.width/2);G=Ieo(this);if(G=l50(G)){var K=G.left?G.left:0;K+=G.right?G.right:0;m=Math.floor(m-K/2)}m=m>0?m:0;G=KB(this.JSC$10449_dom_).y;aS(this.getElement(),m,G)}else Z4.superClass_.reposition.call(this)};
Z4.prototype.setVisible=function(m){if(m!=this.isVisible()){if(this.autoSizeDialog_){var G=this.JSC$10449_dom_.getWindow();m?(this.resizePicker_(),YW(this).listen(G,"resize",this.resizePicker_),this.iframeLoaded_||YW(this).listen(G,"keydown",this.handleKeydown_)):(YW(this).unlisten(G,"resize",this.resizePicker_),this.iframeLoaded_||YW(this).unlisten(G,"keydown",this.handleKeydown_))}if(this.JSC$10498_enablePopover_){G=this.getBackgroundElement();var K=Ieo(this);"showPopover"in K&&(m?(G.showPopover(),
K.showPopover()):(G.hidePopover(),K.hidePopover()))}}Z4.superClass_.setVisible.call(this,m);Kak(this,new yHd(m))};
Z4.prototype.focus=function(){Z4.superClass_.focus.call(this);if(this.JSC$10500_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10500_iframe_.focus()}catch(m){}};var BU=function(m,G){G=G===void 0?Z4:G;sJ.call(this,m);this.pickerConstructor=G;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(m=window.location.origin)||(m=window.location.protocol+"//"+window.location.host);m&&this.urlParamMap_.set("origin",m);this.postProcessors_=[]};
_.n(BU,l_J);BU.prototype.JSC$10505_disposeOnHide_=!1;
BU.prototype.build=function(){this.JSC$10406_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10406_appId_);this.getRelayUrl()||this.setRelayUrl(_.kZ(_.V7(_.Cb(_.jU(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("hb");var m=new this.pickerConstructor(LaS(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1,!1);m.JSC$10482_disposeOnHide_=this.JSC$10505_disposeOnHide_;
m.JSC$10500_appId_=this.JSC$10406_appId_;m.loadedFired_&&Wao(m);GqB(m,this.callback_);return m};
var AjB=function(m){m.urlParamMap_.set("multiselectEnabled","true");return m};
_.w=BU.prototype;_.w.getHeight=function(){return this.dialogHeight_};
_.w.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.w.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.w.getTitle=function(){return this.urlParamMap_.get("title")};
_.w.getWidth=function(){return this.dialogWidth_};
var wHF=function(m){m.JSC$10505_disposeOnHide_=void 0;return m};
BU.prototype.setRelayUrl=function(m){this.urlParamMap_.set("parent",m);return this};
var guF=function(m,G){m.urlParamMap_.set("selectButtonLabel",G);return m};
BU.prototype.setSize=function(m,G){this.dialogWidth_=m;this.dialogHeight_=G;return this};
BU.prototype.setTitle=function(m){this.urlParamMap_.set("title",m);return this};
var LaS=function(m){m.postProcessors_.length&&m.urlParamMap_.set("pp",JSON.stringify(m.postProcessors_));m.urlParamMap_.set("nav",Qvi(m.nav_));var G=new _.aQ(m.getBaseUrl());m.urlParamMap_.forEach(function(K,W){_.Ct(G,W,K)});
return G};var YBG=function(m,G){m.name!==void 0?(this.name=m.name,this.code=OJk[m.name]):(this.code=m=m.code,this.name=cjS(m));_.mv.call(this,cU4("%s %s",this.name,G))};
_.kJ(YBG,_.mv);var cjS=function(m){var G=_.Y2.findKey(OJk,function(K){return m==K});
if(G===void 0)throw Error("jb`"+m);return G},DR={},OJk=(DR.AbortError=3,DR.EncodingError=5,DR.InvalidModificationError=9,DR.InvalidStateError=7,DR.NotFoundError=1,DR.NotReadableError=4,DR.NoModificationAllowedError=6,DR.PathExistsError=12,DR.QuotaExceededError=10,DR.SecurityError=2,DR.SyntaxError=8,DR.TypeMismatchError=11,DR);_.kJ(g3o,_.dM);var rjX=function(m,G,K){K===void 0&&(K=m.size);return m.slice?m.slice(G,K):null};var cgP=new WeakMap,OSd=function(m,G){m=[m];for(var K=G.length-1;K>=0;--K)m.push(typeof G[K],G[K]);return m.join("\v")};_.rgo(function(){if(!_.Ks.Blob)return!1;var m=new Uint8Array(100);try{var G=new Blob([m])}catch(K){return!1}return G.size!=100?!1:!0});
var uAl=_.rgo(function(){if(!_.Ks.Blob)return!1;var m=new Uint8Array(100);try{var G=new Blob([m])}catch(K){return!1}return rjX(G,0,1)===null?!1:!0});try{var hJl,pHK,Jjk=(pHK=(hJl=window)==null?void 0:hJl.top)!=null?pHK:_.Ks;Jjk.U3bHHf!=null||(Jjk.U3bHHf=0);Jjk.U3bHHf++}catch(m){_.Ks.U3bHHf!=null||(_.Ks.U3bHHf=0),_.Ks.U3bHHf++};var pGF=new WeakMap;var hdF=new WeakMap;var DqM={};var ft=void 0;var FfM=Symbol("rb");var CsM=zH("WizInjectionContext_Dispatcher");var UZ=Symbol("sb");var ws=function(){this.afterRenderCallbacks=null},bSv=Symbol("tb"),pn=function(m){this.props=m;
this.__unmounted=!1};
pn.prototype.didPatch=function(){};
pn.prototype.didMount=function(){};
pn.prototype.didUnmount=function(){};
pn.prototype.didUpdate=function(){};var n3G=zH("WizInjectionContext_RootElement");var IDP=zH("WizInjectionContext_AppContext"),HSM=zH("WizInjectionContext_ModelRootElement"),jRJ=zH("WizInjectionContext_RendererData"),k6d=zH("WizInjectionContext_InjectingConstructor"),E3s=zH("WizInjectionContext_AsyncDeps"),Vrv={};var fDd=!1;var Rd9={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:X2K,enableContextPerComponent:X2K,enableLazyTsx:SoC,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:xGX,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Bg=Object.assign({},{attributes:{},handleError:function(m){throw m;}},Rd9);var NU0=Symbol("xb"),a2=Symbol("yb"),FyP=Symbol("zb"),DkJ=Symbol("Ab"),$k9=VX(function(m){return MT(m)&&NU0 in m});var icd=Symbol("Bb"),ts={},Mrd=(ts[icd]=!0,ts.debugName="[component]",ts.getComponentStack=function(){for(var m=[],G=this;G;)GiG(G)&&m.push(G.debugName),G=G.parent;return m},ts.registerSignal=function(){},ts.registerEffect=function(){},ts);var TH=null,iM=!1,KT=1,A_=Symbol("Fb"),h_={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var FX=Symbol("Gb"),QT=Symbol("Hb"),LT=Symbol("Ib"),uxM=Object.assign({},h_,{value:FX,dirty:!0,error:null,equal:Wmv,kind:"computed",producerMustRecompute:function(m){return m.value===FX||m.value===QT},
producerRecomputeValue:function(m){if(m.value===QT)throw Error("$");var G=m.value;m.value=QT;var K=cu6(m),W=!1;try{var L=m.computation();mE(null);W=G!==FX&&G!==LT&&L!==LT&&m.equal(G,L)}catch(A){L=LT,m.error=A}finally{mE(K),m&&rud(m)}W?m.value=G:(m.value=L,m.version++)}});var D$K=Object.assign({},h_,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var dFf=function(){throw Error();};var yuV=null,p$o=Object.assign({},h_,{equal:Wmv,value:void 0,kind:"signal"});var eD9=Object.assign({},h_,{value:FX,dirty:!0,error:null,equal:Wmv,kind:"linkedSignal",producerMustRecompute:function(m){return m.value===FX||m.value===QT},
producerRecomputeValue:function(m){if(m.value===QT)throw Error("$");var G=m.value;m.value=QT;var K=cu6(m);try{var W=m.source();var L=m.computation(W,G===FX||G===LT?void 0:{source:m.sourceValue,value:G});m.sourceValue=W}catch(A){L=LT,m.error=A}finally{mE(K),m&&rud(m)}G!==FX&&L!==LT&&m.equal(G,L)?m.value=G:(m.value=L,m.version++)}});Object.assign({},h_,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(m){m.schedule!==null&&m.schedule(m.ref)},
cleanupFn:function(){}});var Srv=Symbol("Jb"),YO=Symbol("Kb");var r_=Array.isArray;var iCd;var tDB={},Kyd=mkP(Object.assign({},{consumerAllowSignalWrites:!0},tDB)),YS=mkP(Object.assign({},{consumerAllowSignalWrites:!0},tDB));var DM=Symbol("Pb");var N2=null,wvP,gNd=null,OCG;var o2=0,nT=!1,aw=function(){this.queue=new Set};
aw.prototype.schedule=function(m){this.queue.add(m)};
aw.prototype.remove=function(m){this.queue.delete(m)};
aw.prototype.clear=function(){this.queue.clear()};
var hmv=Symbol("Qb"),rao=Symbol("Rb"),ow=function(){aw.apply(this,arguments)};
_.n(ow,aw);ow.prototype.flush=function(){if(this.queue.size){nT=!0;for(var m=_.g(this.queue),G=m.next();!G.done;G=m.next()){G=G.value;this.queue.delete(G);try{G.run()}catch(K){FaB(K)}}nT=!1}};
var QQi=function(){ow.apply(this,arguments)};
_.n(QQi,ow);var ugG=new QQi,awC=function(){ow.apply(this,arguments)};
_.n(awC,ow);awC.prototype.schedule=function(m){return _.Y(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);m.run();_.ey(G)})};
awC.prototype.enqueue=function(m){this.queue.add(m)};
var pvd=new awC,n_=function(){aw.apply(this,arguments)};
_.n(n_,aw);n_.prototype.flush=function(){this.queue.size&&svG(this.queue)};
var ouk=function(){n_.apply(this,arguments)};
_.n(ouk,n_);ouk.prototype.schedule=function(m){m.version===0?m.run():this.queue.add(m)};
ouk.prototype.flush=function(){if(this.queue.size)if(Bg.flushRenderEffectsDuringRender){var m=this.queue;this.queue=new Set;svG(m)}else svG(this.queue)};
var NlP=new ouk,nuP=function(){n_.apply(this,arguments)};
_.n(nuP,n_);nuP.prototype.schedule=function(m){return _.Y(function(G){if(G.nextAddress==1)return G.yield(Promise.resolve(),2);m.run();_.ey(G)})};
nuP.prototype.enqueue=function(m){this.queue.add(m)};
var QvV=new nuP,bJX=function(){n_.apply(this,arguments)};
_.n(bJX,n_);var t_P=new bJX,oNd=[NlP,ugG,t_P],vNs=[pvd,QvV],vuB=[NlP,t_P,QvV],qpM=[].concat(_.Bz(oNd),_.Bz(vNs)),$$k=[];yuV=function(){bCd();for(var m=_.g($$k),G=m.next();!G.done;G=m.next())G=G.value,G()};
var FaB=WJ;var bB={},sQB=Object.assign({},D$K,(bB[NU0]=!0,bB.effectType=a2,bB.isResettableContext=!0,bB.consumerMarkedDirty=aGF,bB.run=function(){HCG(this)},bB.cleanup=function(){qgd(this)},bB.componentStack=void 0,bB.debugName="[effect]",bB.destroy=function(){if(GL(this))for(var m=this.producers;m!==void 0;)m=Yrd(m);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;m=_.g(vuB);for(var G=m.next();!G.done;G=m.next())G.value.remove(this);sRo(this)},bB[Symbol.dispose]=function(){this.destroy()},bB)),qBi=Object.assign({},sQB,{version:1,
dirty:!1});var IGd=Object.assign({},sQB,{effectType:a2});var jvG=Object.assign({},sQB,{effectType:FyP});var V_G=Symbol("Tb");var FUf=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 PYo={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},dks=
{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}]}},O$d={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},fGv=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],emv={"*":{async:1,dir:0,loading:2,target:3}};var Eul=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,vZ={},XvG=(vZ[1]=null,vZ[2]=function(m,G){return G instanceof KZ?LZ(G):BN.toString()},vZ[3]=function(m,G){return Re(G)?_.Ue(G):Eul.test(String(G))?String(G):BN.toString()},vZ[4]=function(m,G){return G instanceof dx?_.yG(G):BN.toString()},vZ[5]=function(m,G){return String(G)},vZ[7]=null,vZ[8]=null,vZ[10]=null,vZ);var xBP=Symbol("Wb");var zmd="Y Z E P T G M K  m u n".split(" "),Ukd={"":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};_.HJ2=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 m3={};RegExp.prototype.hasOwnProperty("sticky");var aeP=function(m){m=String(m);for(var G=function(W,L,A){for(var O=Math.min(L.length-A,W.length),c=0;c<O;c++){var u=L[A+c];if(W[c]!==("A"<=u&&u<="Z"?u.toLowerCase():u))return!1}return!0},K=0;(K=m.indexOf("<",K))!=-1;){if(G("\x3c/script",m,K)||G("\x3c!--",m,K))return"zSoyz";
K+=1}return m};var kO={default:"__default"};var m8s=Object.prototype.hasOwnProperty;BlF.prototype=Object.create(null);var ZC=KUM();var xO=null;var pld=function(m){this.created=[];this.deleted=[];this.node=m};var Jb6=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var m=this,G=m;m;)G=m,m=m.parentNode;return G};var LUd=function(m,G){this._attrsArr=null;this.nameOrCtor=m;this.key=G;this.text=void 0};var d_=null,P4=null,CT=null,eJ=null,YKf=[],cbJ=gTM,fT=[],fEv=function(m){return NBP(function(G,K,W){CT=P4=G;P4=null;K(W);OAf(null);P4=CT;CT=CT.parentNode;return G},m)}(),ex6=function(m){return NBP(function(G,K,W){var L={nextSibling:G};
P4=L;K(W);CT&&OAf(G.nextSibling);return L===P4?null:P4},m)}();var Xf=[],XRv=0;var dC=new BlF;var IwS=KUM(),bAM=IwS[kO.default],nTd=IwS.style,Qld=["focusin","focusout"],slG="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var KaG=function(){},D$d=function(){},pHd=function(){};var R2=Symbol("dc");var jls,Ied=HAs;var WO=Symbol("ec");var NUo=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(" ")),
JjG=new Set(["a","font","script","style","title"]);var Kn={setUp:RM9,tearDown:RM9,log:RM9,logNodeRange:RM9,graft:function(m,G){G()}};var rs={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var uX=null,hw=function(m,G){pn.call(this,m);var K=this;this.functionComponent=G;this.hooks=[];this.hookCounter=0;this.disposeEffects=q2(function(W){K.effectContext=W;_.sZ(function(){wHM(K,K.el)})},Bg.alwaysTrackContexts||!!ft)};
_.n(hw,pn);hw.prototype.render=function(m){var G=uX;uX=this;this.hookCounter=0;var K=mE(YS),W=SU(this.effectContext);try{return zdo("render",this.componentName),this.functionComponent(m)}finally{lD6("render",this.componentName),SU(W),mE(K),uX=G}};
_.e_.Object.defineProperties(hw.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return LyV(this.functionComponent)}}});var tDG=Symbol("sc"),rjf=function(m,G,K){this.afterRenderCallbacks=null;this.kind=m;this.props=G;this.children=K};
_.n(rjf,ws);rjf.prototype.render=function(){var m=YBd(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var G=_.g(this.afterRenderCallbacks),K=G.next();!K.done;K=G.next())K=K.value,m=K(m);return m};
rjf.prototype.getChildren=function(){return this.children};var QQV=[];dFf=function(m){throw Error("qb`"+m.debugName);};
(function(){var m=xO;xO=function(G){m==null||m(G);awv(G)}})();Object.assign({},qBi,{effectType:a2,elementRef:null,attributes:null,fn:function(){var m=this.elementRef;var G;m.element!=null||(m.element=(G=m.document.getElementById(m.value))!=null?G:void 0);m=m.element;for(G=this.attributes;G;){var K=G.signal();K!==G.prevValue&&(G.prevValue=K,G.namespace===1?m[G.name]=K:FUf.has(G.name)?jJ(m,G.name,K?"":null):jJ(m,G.name,K));G=G.next}}});_.Jw.debugName="tbhMcf";_.NC.debugName="zyMFzb";Object.assign({},qBi,{effectType:a2});_.p.debugName="RlDudd";var ouG={nonNullableCondIsNull:function(){return Error("vc")}};var Eus=function(){this.map=new Map};
Eus.prototype.push=function(m,G){var K=this.map;K.has(m)&&(this.multi||(this.multi=new Map),this.multi.set(G,K.get(m)));K.set(m,G)};
Eus.prototype.pop=function(m){var G=this.map,K=G.get(m),W;K!==void 0&&((W=this.multi)==null?0:W.has(K))?(G.set(m,this.multi.get(K)),this.multi.delete(K)):G.delete(m);return K};_.D0.debugName="nsTGHd";_.tw.debugName="vI1rtf";var CWV={OUT_OF_ORDER_HOOK_CALL:function(m){return Error("wc`"+m)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("xc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("yc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("zc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(m,G){return Error("Ac`"+((G===void 0?0:G)?"IDOM":"Reactive")+"`"+(FF(m)?m.description:m))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(m,G){return Error("Bc`"+(FF(m)?m.description:m)+"`"+G)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(m){return Error("Cc`"+(FF(m)?m.description:m))},
USE_ELEMENT_NOT_ASSIGNED:function(m){return Error("Dc`"+(FF(m)?m.description:m))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(m){return Error("Ec`"+(FF(m)?m.description:m))}};var P8d=Symbol("Fc");jls=uAs;jls=uAs;var RJM=Symbol("Gc");La6({beforeRender:function(m){var G=SU(m.effectContext);try{var K;((K=m.__syncEffects)==null?0:K.length)&&GzP(m.__syncEffects)}finally{SU(G)}},
didPatch:function(m){var G=SU(m.effectContext);try{var K;((K=m.__syncEffects)==null?0:K.length)&&GzP(m.__syncEffects)}finally{SU(G)}},
didUnmount:function(m){var G;((G=m.hooks)==null?0:G.length)&&m.hooks.forEach(iWv)}});var jQ4,kqB,CWi;jQ4=_.Ks.window;_.s8=(jQ4==null?void 0:(kqB=jQ4.yt)==null?void 0:kqB.config_)||(jQ4==null?void 0:(CWi=jQ4.ytcfg)==null?void 0:CWi.data_)||{};_.yj("yt.config_",_.s8);var VDB={},LQG=[];_.cw=function(m){var G=_.mb.apply(1,arguments);var K=Error.call(this,m);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.args=[].concat(_.Bz(G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(_.cw,Error);var i8o=function(m,G,K){this.actionName=m;this.optionalAction=G===void 0?!1:G;this.args=K===void 0?null:K;this.returnValue=[]};_.$W=function(m){this.name=m};_.qF=new _.$W("signalAction");var JWd=/^[\w.]*$/,cWf={q:!0,search_query:!0},OWs=String(gtf);var XF;XF=Symbol("Hc");_.sX=function(m){this.name=m};
_.sX.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var N9M=function(m){this.key=m},aQv=function(m){this.deferredKey=m},tOJ=function(){var m=this;
this.providers=new Map;this.JSC$10804_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(m.providers)}}};
tOJ.prototype.addProvider=function(m){this.providers.set(m.provide,m);var G=this.JSC$10804_deferred.get(m.provide);if(G)try{G.resolver(this.resolve(m.provide))}catch(K){G.rejector(K)}};
tOJ.prototype.resolve=function(m){return m instanceof aQv?ZJG(this,m):m instanceof N9M?d$C(this,m.key,[],!0):d$C(this,m,[])};
var ZJG=function(m,G){G=G.deferredKey;if(m.JSC$10804_deferred.has(G))return m.JSC$10804_deferred.get(G).promise;var K={};K.promise=new Promise(function(W,L){K.resolver=W;K.rejector=L});
m.JSC$10804_deferred.set(G,K);return K.promise},d$C=function(m,G,K,W){W=W===void 0?!1:W;
if(K.indexOf(G)>-1)throw Error("Ic`"+G);if(m.cachedValues.has(G))return m.cachedValues.get(G);if(!m.providers.has(G)){if(W)return;throw Error("Jc`"+G);}W=m.providers.get(G);K.push(G);if(W.useValue!==void 0)var L=W.useValue;else if(W.useFactory)L=W[XF]?PWP(m,W[XF],K):[],L=W.useFactory.apply(W,_.Bz(L));else if(W.useClass){L=W.useClass;var A=L[XF]?PWP(m,L[XF],K):[];L=new (Function.prototype.bind.apply(L,[null].concat(_.Bz(A))))}else throw Error("Kc`"+G);K.pop();W.skipCache||m.cachedValues.set(G,L);return L},
PWP=function(m,G,K){return G?G.map(function(W){return W instanceof N9M?d$C(m,W.key,K,!0):d$C(m,W,K)}):[]};var DcF;var Er=new _.sX("ENDPOINT_HANDLER_TOKEN");_.H$=new _.$W("urlEndpoint");var vtM=Symbol("Lc");var yjX=function(){this.data=[];this.cachedPackedInt52=-1};
yjX.prototype.set=function(m,G){G=G===void 0?!0:G;0<=m&&m<52&&Number.isInteger(m)&&this.data[m]!==G&&(this.data[m]=G,this.cachedPackedInt52=-1)};
yjX.prototype.get=function(m){return!!this.data[m]};
var eJR=function(m){m.cachedPackedInt52===-1&&(m.cachedPackedInt52=m.data.reduce(function(G,K,W){return G+(K?Math.pow(2,W):0)},0));
return m.cachedPackedInt52};var ZWv=function(m){var G=fwX;m=m===void 0?_.Cn("yt.ads.biscotti.lastId_")||"":m;var K=Object,W=K.assign,L={};L.dt=iSi;L.flash="0";a:{try{var A=G.JSC$10810_win_.top.location.href}catch(l){A=2;break a}A=A?A===G.doc_.location.href?0:1:2}L=(L.frm=A,L);try{L.u_tz=-(new Date).getTimezoneOffset();try{var O=nb.history.length}catch(l){O=0}L.u_his=O;var c;L.u_h=(c=nb.screen)==null?void 0:c.height;var u;L.u_w=(u=nb.screen)==null?void 0:u.width;var h;L.u_ah=(h=nb.screen)==null?void 0:h.availHeight;var J;L.u_aw=
(J=nb.screen)==null?void 0:J.availWidth;var N;L.u_cd=(N=nb.screen)==null?void 0:N.colorDepth}catch(l){}O=G.JSC$10810_win_;try{var D=O.screenX;var t=O.screenY}catch(l){}try{var a=O.outerWidth;var v=O.outerHeight}catch(l){}try{var I=O.innerWidth;var Z=O.innerHeight}catch(l){}try{var k=O.screenLeft;var z=O.screenTop}catch(l){}try{I=O.innerWidth,Z=O.innerHeight}catch(l){}try{var X=O.screen.availWidth;var f=O.screen.availTop}catch(l){}D=[k,z,D,t,X,f,a,v,I,Z];t=LXd(!1,G.JSC$10810_win_.top);a={};var U=U===
void 0?_.Ks:U;v=new yjX;"SVGElement"in U&&"createElementNS"in U.document&&v.set(0);I=rIP();I["allow-top-navigation-by-user-activation"]&&v.set(1);I["allow-popups-to-escape-sandbox"]&&v.set(2);U.crypto&&U.crypto.subtle&&v.set(3);"TextDecoder"in U&&"TextEncoder"in U&&v.set(4);U=eJR(v);G=(a.bc=U,a.bih=t.height,a.biw=t.width,a.brdim=D.join(),a.vis=lMo(G.doc_),a.wgl=!!nb.WebGLRenderingContext,a);K=W.call(K,L,G);K.ca_type="image";m&&(K.bid=m);return K},fwX=new function(){var m=window.document;
this.JSC$10810_win_=window;this.doc_=m};
_.yj("yt.ads_.signals_.getAdSignalsString",function(m){return YGG(ZWv(m))});_.jI();navigator.userAgent.indexOf(" (CrKey ");var s7d="XMLHttpRequest"in _.Ks?function(){return new XMLHttpRequest}:null;var x$2="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),XHo=[].concat(_.Bz(x$2),["client_dev_set_cookie"]);var VOd={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"},HWs="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(_.Bz(x$2)),RHV=!1,j7f=_.dcs,xc9=Cdf;var r3J=[{messageFn:function(m){return"Cannot read property '"+m.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(m){return"Cannot call '"+m.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(m){return m.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var SBk={messageWeights:[],callbackWeights:[{callback:B99,weight:500},{callback:MOd,weight:500}]};var RJF=function(){this.callbackWeights=[];this.messageWeights=[]},U$0,YnG=function(){if(!U$0){var m=U$0=new RJF;
m.messageWeights.length=0;m.callbackWeights.length=0;DL9(m,SBk)}return U$0},DL9=function(m,G){G.messageWeights&&m.messageWeights.push.apply(m.messageWeights,G.messageWeights);
G.callbackWeights&&m.callbackWeights.push.apply(m.callbackWeights,G.callbackWeights)};_.kJ(_.Gd,_.Lt);_.Gd.prototype.subscribe=function(m,G,K){var W=this.topics_[m];W||(W=this.topics_[m]=[]);var L=this.JSC$10833_key_;this.subscriptions_[L]=m;this.subscriptions_[L+1]=G;this.subscriptions_[L+2]=K;this.JSC$10833_key_=L+3;W.push(L);return L};
var zJ4=function(m){var G=$z,K=!1,W=G.subscribe("handleError",function(L){K||(K=!0,this.unsubscribeByKey(W),m.apply(void 0,arguments))},G)};
_.Gd.prototype.unsubscribe=function(m,G,K){if(m=this.topics_[m]){var W=this.subscriptions_;if(m=m.find(function(L){return W[L+1]==G&&W[L+2]==K}))return this.unsubscribeByKey(m)}return!1};
_.Gd.prototype.unsubscribeByKey=function(m){var G=this.subscriptions_[m];if(G){var K=this.topics_[G];this.publishDepth_!=0?(this.pendingKeys_.push(m),this.subscriptions_[m+1]=function(){}):(K&&_.PJ(K,m),delete this.subscriptions_[m],delete this.subscriptions_[m+1],delete this.subscriptions_[m+2])}return!!G};
_.Gd.prototype.publish=function(m,G){var K=this.topics_[m];if(K){var W=Array(arguments.length-1),L=arguments.length,A;for(A=1;A<L;A++)W[A-1]=arguments[A];if(this.async_)for(A=0;A<K.length;A++)L=K[A],lw2(this.subscriptions_[L+1],this.subscriptions_[L+2],W);else{this.publishDepth_++;try{for(A=0,L=K.length;A<L&&!this.isDisposed();A++){var O=K[A];this.subscriptions_[O+1].apply(this.subscriptions_[O+2],W)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;K=this.pendingKeys_.pop();)this.unsubscribeByKey(K)}}return A!=
0}return!1};
var lw2=function(m,G,K){_.wO(function(){m.apply(G,K)})};
_.Gd.prototype.clear=function(m){if(m){var G=this.topics_[m];G&&(G.forEach(this.unsubscribeByKey,this),delete this.topics_[m])}else this.subscriptions_.length=0,this.topics_={}};
_.Gd.prototype.getCount=function(m){if(m){var G=this.topics_[m];return G?G.length:0}m=0;for(G in this.topics_)m+=this.getCount(G);return m};
_.Gd.prototype.disposeInternal=function(){_.Gd.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var $z=new _.Gd;var lx=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(lx,_.pp);lx.prototype.getColdHashData=function(){return _.wL(this,3)};
lx.prototype.getHotHashData=function(){return _.wL(this,5)};
lx.prototype.setHotHashData=function(m){return _.LB(this,5,m)};var cKG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(cKG,_.pp);var V5P=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(V5P,_.pp);_.w=V5P.prototype;_.w.getDeviceId=function(){return _.wL(this,6)};
_.w.getExperimentIds=function(m){var G=_.mu(this,9,_.uq,3,!0);KCF(G,m);return G[m]};
_.w.getPlayerType=function(){return _.gL(this,36)};
_.w.setHomeGroupInfo=function(m){return _.ko(this,81,m)};
_.w.clearLocationPlayabilityToken=function(){return _.zd(this,89)};var Lc=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Lc,_.pp);Lc.prototype.setKey=function(m){return _.LB(this,1,m)};
Lc.prototype.getValue=function(){return co(this,2,dWG)};
var dWG=[2,3,4,5,6];var BUK=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(BUK,_.pp);BUK.prototype.setTrackingParams=function(m){return _.zd(this,1,_.j0(m,!1))};var Zzd=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Zzd,_.pp);var uCv=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(uCv,_.pp);uCv.prototype.getExperimentIds=function(m){var G=_.mu(this,5,_.Eks,3,!0);KCF(G,m);return G[m]};var Or=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Or,_.pp);Or.prototype.getToken=function(){return _.Bt(this,2)};
Or.prototype.setToken=function(m){return _.LB(this,2,m)};var wC=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(wC,_.pp);wC.prototype.setSafetyMode=function(m){return _.UV(this,5,m)};var W$=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(W$,_.pp);W$.prototype.setClient=function(m){return _.ko(this,1,m)};var rKd={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 YM6;_.tK=function(){var m=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Ks.addEventListener("beforeinstallprompt",function(G){G.preventDefault();m.deferredInstallPrompt=G});
_.Ks.addEventListener("appinstalled",function(){m.appInstalledEventFired=!0},{once:!0})};
YM6=function(){if(!_.Ks.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Ks.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Ks.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Ks.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Ks.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(m){return"WEB_DISPLAY_MODE_UNKNOWN"}};var JKf=function(){this.syncHeaders=!0},NFo=function(m){var G={},K=[];
"USER_SESSION_ID"in _.s8&&K.push({key:"u",value:_.E8("USER_SESSION_ID")});if(K=_.ZDG(K))G.Authorization=K,K=m=m==null?void 0:m.sessionIndex,K===void 0&&(K=Number(_.E8("SESSION_INDEX",0)),K=isNaN(K)?0:K),_.F("voice_search_auth_header_removal")||(G["X-Goog-AuthUser"]=K.toString()),"INNERTUBE_HOST_OVERRIDE"in _.s8||(G["X-Origin"]=window.location.origin),m===void 0&&"DELEGATED_SESSION_ID"in _.s8&&(G["X-Goog-PageId"]=_.E8("DELEGATED_SESSION_ID"));return G};var MDX={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var qz=_.Cn("ytglobal.prefsUserPrefsPrefs_")||{},TU0;_.yj("ytglobal.prefsUserPrefsPrefs_",qz);_.EX=function(){this.cookieName=_.E8("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.E8("ALT_PREF_COOKIE_DOMAIN","youtube.com");var m=_.LL.get(this.cookieName,void 0);m&&this.parse(m)};
_.M$=function(){TU0||(TU0=new _.EX);return TU0};
_.EX.prototype.get=function(m,G){mcK(m);iWC(m);m=qz[m]!==void 0?qz[m].toString():null;return m!=null?m:G?G:""};
_.EX.prototype.set=function(m,G){mcK(m);iWC(m);if(G==null)throw Error("Oc");qz[m]=G.toString()};
_.EX.prototype.getFlag=function(m){return!!((GzR("f"+(Math.floor(m/31)+1))||0)&1<<m%31)};
_.Tq=function(m,G,K){m="f"+(Math.floor(G/31)+1);G=1<<G%31;var W=GzR(m)||0;W=K?W|G:W&~G;W===0?delete qz[m]:(K=W.toString(16),qz[m]=K.toString())};
_.EX.prototype.remove=function(m){mcK(m);iWC(m);delete qz[m]};
_.EX.prototype.save=function(){var m=!0;_.F("web_secure_pref_cookie_killswitch")&&(m=!1);_.AH(this.cookieName,this.dump(),63072E3,this.cookieDomain,m)};
_.EX.prototype.clear=function(){_.Y2.clear(qz)};
_.EX.prototype.dump=function(){var m=[],G;for(G in qz)qz.hasOwnProperty(G)&&m.push(G+"="+encodeURIComponent(String(qz[G])));return m.join("&")};
var iWC=function(m){if(/^f([1-9][0-9]*)$/.test(m))throw Error("Pc`"+m);},mcK=function(m){if(!/^\w+$/.test(m))throw Error("Qc`"+m);
},GzR=function(m){m=qz[m]!==void 0?qz[m].toString():null;
return m!=null&&/^[A-Fa-f0-9]+$/.test(m)?parseInt(m,16):null};
_.EX.prototype.parse=function(m){m=decodeURIComponent(m).split("&");for(var G=0;G<m.length;G++){var K=m[G].split("="),W=K[0];(K=K[1])&&(qz[W]=K.toString())}};var wUG={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"},hgv={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},peo={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},OG6={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var IC;_.HZ=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.rC=function(m,G,K){return m.addJob(G,0,K)};
_.HZ.prototype.addLowPriorityJob=function(m,G){return this.addJob(m,1,G)};
_.mn=function(m,G,K){return m.addJob(G,2,K)};
_.UU=function(m,G,K){return m.addJob(G,3,K)};
_.jA=function(m,G,K){return m.addJob(G,4,K)};
IC=function(m){var G=_.Cn("yt.scheduler.instance.addImmediateJob");G?G(m):m()};
_.HZ.prototype.debounce=function(m,G,K){var W=this,L=0,A=function(){L&&W.cancelJob(L);L=W.addJob(m,G,K);W.cancelDebouncedJobMap.set(A,L)};
return A};
_.HZ.prototype.cancelThrottle=function(m){(m=this.cancelThrottledJobMap.get(m))&&m()};var Iw=function(){_.HZ.apply(this,arguments)},KQk;
_.n(Iw,_.HZ);_.AA=function(){Iw.instance||(Iw.instance=new Iw);return Iw.instance};
Iw.prototype.addJob=function(m,G,K){K!==void 0&&Number.isNaN(Number(K))&&(K=void 0);var W=_.Cn("yt.scheduler.instance.addJob");return W?W(m,G,K):K===void 0?(m(),NaN):_.MC(m,K||0)};
Iw.prototype.cancelJob=function(m){if(m===void 0||!Number.isNaN(Number(m))){var G=_.Cn("yt.scheduler.instance.cancelJob");G?G(m):_.m1(m)}};
Iw.prototype.start=function(){var m=_.Cn("yt.scheduler.instance.start");m&&m()};
Iw.prototype.pause=function(){var m=_.Cn("yt.scheduler.instance.pause");m&&m()};
KQk=function(){_.AA();var m=_.Cn("yt.scheduler.instance.setPriorityThreshold");m&&m(4)};
_.Fu=_.AA();_.YD.prototype.set=function(m,G){G===void 0?this.mechanism.remove(m):this.mechanism.set(m,_.rO(G))};
_.YD.prototype.get=function(m){try{var G=this.mechanism.get(m)}catch(K){return}if(G!==null)try{return JSON.parse(G)}catch(K){throw"Storage: Invalid value was encountered";}};
_.YD.prototype.remove=function(m){this.mechanism.remove(m)};_.kJ(r8,_.YD);var WQP=function(m){this.data=m},LQk=function(m){return m===void 0||m instanceof WQP?m:new WQP(m)};
r8.prototype.set=function(m,G){r8.superClass_.set.call(this,m,LQk(G))};
r8.prototype.getWrapper=function(m){m=r8.superClass_.get.call(this,m);if(m===void 0||m instanceof Object)return m;throw"Storage: Invalid value was encountered";};
r8.prototype.get=function(m){if(m=this.getWrapper(m)){if(m=m.data,m===void 0)throw"Storage: Invalid value was encountered";}else m=void 0;return m};_.kJ(ux,r8);_.AWR=function(m){var G=m.creation;m=m.expiration;return!!m&&m<_.jI()||!!G&&G>_.jI()};
ux.prototype.set=function(m,G,K){if(G=LQk(G)){if(K){if(K<_.jI()){ux.prototype.remove.call(this,m);return}G.expiration=K}G.creation=_.jI()}ux.superClass_.set.call(this,m,G)};
ux.prototype.getWrapper=function(m,G){var K=ux.superClass_.getWrapper.call(this,m);if(K)if(!G&&_.AWR(K))ux.prototype.remove.call(this,m);else return K};var jC=function(){};
jC.prototype.next=function(){return kW};
var kW={done:!0,value:void 0},C_=function(m){return{value:m,done:!1}};
jC.prototype.__iterator__=function(){return this};
_.wkl=function(m){if(m instanceof jC)return m;if(typeof m.__iterator__=="function")return m.__iterator__(!1);if(_.XP(m)){var G=0,K=new jC;K.next=function(){for(;;){if(G>=m.length)return kW;if(G in m)return C_(m[G++]);G++}};
return K}throw Error("Rc");};var gtX=function(m){if(m instanceof VT||m instanceof ZR||m instanceof di)return m;if(typeof m.next=="function")return new VT(function(){return m});
if(typeof m[Symbol.iterator]=="function")return new VT(function(){return m[Symbol.iterator]()});
if(typeof m.__iterator__=="function")return new VT(function(){return m.__iterator__()});
throw Error("Sc");},VT=function(m){this.func_=m};
VT.prototype.__iterator__=function(){return new ZR(this.func_())};
VT.prototype[Symbol.iterator]=function(){return new di(this.func_())};
VT.prototype.toEs6=function(){return new di(this.func_())};
var ZR=function(m){this.JSC$10917_iter_=m};
_.n(ZR,jC);ZR.prototype.next=function(){return this.JSC$10917_iter_.next()};
ZR.prototype[Symbol.iterator]=function(){return new di(this.JSC$10917_iter_)};
ZR.prototype.toEs6=function(){return new di(this.JSC$10917_iter_)};
var di=function(m){VT.call(this,function(){return m});
this.JSC$10920_iter_=m};
_.n(di,VT);di.prototype.next=function(){return this.JSC$10920_iter_.next()};var OWl=function(){};var PZ=function(){};
_.kJ(PZ,OWl);PZ.prototype.getCount=function(){for(var m=0,G=_.g(this),K=G.next();!K.done;K=G.next())m++;return m};
PZ.prototype[Symbol.iterator]=function(){return gtX(this.__iterator__(!0)).toEs6()};
PZ.prototype.clear=function(){var m=Array.from(this);m=_.g(m);for(var G=m.next();!G.done;G=m.next())this.remove(G.value)};_.kJ(hH,PZ);_.w=hH.prototype;_.w.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var m=this.storage_;if(m)try{m.setItem("__sak","1");m.removeItem("__sak");var G=!0}catch(K){G=K instanceof DOMException&&(K.name==="QuotaExceededError"||K.code===22||K.code===1014||K.name==="NS_ERROR_DOM_QUOTA_REACHED")&&m&&m.length!==0}else G=!1;this.cachedIsStorageAvailable_=G}return this.cachedIsStorageAvailable_};
_.w.set=function(m,G){yT(this);try{this.storage_.setItem(m,G)}catch(K){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.w.get=function(m){yT(this);m=this.storage_.getItem(m);if(typeof m!=="string"&&m!==null)throw"Storage mechanism: Invalid value was encountered";return m};
_.w.remove=function(m){yT(this);this.storage_.removeItem(m)};
_.w.getCount=function(){yT(this);return this.storage_.length};
_.w.__iterator__=function(m){yT(this);var G=0,K=this.storage_,W=new jC;W.next=function(){if(G>=K.length)return kW;var L=K.key(G++);if(m)return C_(L);L=K.getItem(L);if(typeof L!=="string")throw"Storage mechanism: Invalid value was encountered";return C_(L)};
return W};
_.w.clear=function(){yT(this);this.storage_.clear()};
_.w.key=function(m){yT(this);return this.storage_.key(m)};
var yT=function(m){if(m.storage_==null)throw Error("Tc");m.isAvailable()||WJ(Error("Tc"))};_.kJ(Yvs,hH);_.kJ(rMF,hH);_.kJ(pL,PZ);pL.prototype.set=function(m,G){this.mechanism_.set(this.JSC$10935_prefix_+m,G)};
pL.prototype.get=function(m){return this.mechanism_.get(this.JSC$10935_prefix_+m)};
pL.prototype.remove=function(m){this.mechanism_.remove(this.JSC$10935_prefix_+m)};
pL.prototype.__iterator__=function(m){var G=this.mechanism_[Symbol.iterator](),K=this,W=new jC;W.next=function(){var L=G.next();if(L.done)return L;for(L=L.value;L.slice(0,K.JSC$10935_prefix_.length)!=K.JSC$10935_prefix_;){L=G.next();if(L.done)return L;L=L.value}return C_(m?L.slice(K.JSC$10935_prefix_.length):K.mechanism_.get(L))};
return W};_.bs=function(m){this.expiringStorage_=(m=_.JH(m))?new ux(m):null;this.JSC$10939_domain_=document.domain||window.location.hostname};
_.w=_.bs.prototype;_.w.hasLocalStorage=function(){return!!this.expiringStorage_};
_.w.set=function(m,G,K,W){K=K||31104E3;this.remove(m);if(this.hasLocalStorage())try{this.expiringStorage_.set(m,G,Date.now()+K*1E3);return}catch(A){}var L="";if(W)try{L=escape(_.rO(G))}catch(A){return}else L=escape(G);_.AH(m,L,K,this.JSC$10939_domain_)};
_.w.get=function(m,G){var K=void 0,W=!this.hasLocalStorage();if(!W)try{K=this.expiringStorage_.get(m)}catch(L){W=!0}if(W&&(K=_.LL.get(m,void 0))&&(K=unescape(K),G))try{K=JSON.parse(K)}catch(L){this.remove(m),K=void 0}return K};
_.w.remove=function(m){this.hasLocalStorage()&&this.expiringStorage_.remove(m);_.WdV(m,"/",this.JSC$10939_domain_)};
_.w.getCreationTime=function(m){return this.hasLocalStorage()&&(m=(this.expiringStorage_.getWrapper(m)||{}).creation,typeof m==="number")?m:null};var h9G=function(){var m;return function(){m||(m=new _.bs("ytidb"));return m}}();var JMG;_.D_=[];JMG=!1;var kvG=N6d||D_d;var eC={},cWX=(eC.AUTH_INVALID="No user identifier specified.",eC.EXPLICIT_ABORT="Transaction was explicitly aborted.",eC.IDB_NOT_SUPPORTED="IndexedDB is not supported.",eC.MISSING_INDEX="Index not created.",eC.MISSING_OBJECT_STORES="Object stores not created.",eC.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",eC.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",eC.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",eC.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",eC.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",eC.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",eC.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",eC),f_={},YGk=(f_.AUTH_INVALID="ERROR",f_.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",f_.EXPLICIT_ABORT="IGNORED",
f_.IDB_NOT_SUPPORTED="ERROR",f_.MISSING_INDEX="WARNING",f_.MISSING_OBJECT_STORES="ERROR",f_.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",f_.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",f_.QUOTA_EXCEEDED="WARNING",f_.QUOTA_MAYBE_EXCEEDED="WARNING",f_.UNKNOWN_ABORT="WARNING",f_.INCOMPATIBLE_DB_VERSION="WARNING",f_),xW={},rWC=(xW.AUTH_INVALID=!1,xW.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,xW.EXPLICIT_ABORT=!1,xW.IDB_NOT_SUPPORTED=!1,xW.MISSING_INDEX=!1,xW.MISSING_OBJECT_STORES=!1,xW.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,xW.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,xW.QUOTA_EXCEEDED=!1,xW.QUOTA_MAYBE_EXCEEDED=!0,xW.UNKNOWN_ABORT=!0,xW.INCOMPATIBLE_DB_VERSION=!1,xW),nL=function(m,G,K,W,L){G=G===void 0?{}:G;K=K===void 0?cWX[m]:K;W=W===void 0?YGk[m]:W;L=L===void 0?rWC[m]:L;_.cw.call(this,K,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:m},G));this.type=m;this.message=K;this.level=W;this.retryable=L;Object.setPrototypeOf(this,nL.prototype)};
_.n(nL,_.cw);var uvB=function(m,G){nL.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:G,foundObjectStores:m},cWX.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uvB.prototype)};
_.n(uvB,nL);var FdJ=function(m,G){var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.index=m;this.objectStore=G;Object.setPrototypeOf(this,FdJ.prototype)};
_.n(FdJ,Error);var QWG=["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 sV=function(m){this.executor=m},$D=function(m){var G=this;
this.state={status:"PENDING"};this.JSC$10967_onFulfilled=[];this.JSC$10967_onRejected=[];m=m.executor;var K=function(L){if(G.state.status==="PENDING"){G.state={status:"FULFILLED",value:L};L=_.g(G.JSC$10967_onFulfilled);for(var A=L.next();!A.done;A=L.next())A=A.value,A()}},W=function(L){if(G.state.status==="PENDING"){G.state={status:"REJECTED",
reason:L};L=_.g(G.JSC$10967_onRejected);for(var A=L.next();!A.done;A=L.next())A=A.value,A()}};
try{m(K,W)}catch(L){W(L)}};
$D.all=function(m){return new $D(new sV(function(G,K){var W=[],L=m.length;L===0&&G(W);for(var A={i$jscomp$471:0};A.i$jscomp$471<m.length;A={i$jscomp$471:A.i$jscomp$471},++A.i$jscomp$471)$D.resolve(m[A.i$jscomp$471]).then(function(O){return function(c){W[O.i$jscomp$471]=c;L--;L===0&&G(W)}}(A)).catch(function(O){K(O)})}))};
$D.resolve=function(m){return new $D(new sV(function(G,K){m instanceof $D?m.then(G,K):G(m)}))};
$D.reject=function(m){return new $D(new sV(function(G,K){K(m)}))};
$D.prototype.then=function(m,G){var K=this,W=m!=null?m:nRs,L=G!=null?G:oRs;return new $D(new sV(function(A,O){K.state.status==="PENDING"?(K.JSC$10967_onFulfilled.push(function(){hHC(K,K,W,A,O)}),K.JSC$10967_onRejected.push(function(){pkR(K,K,L,A,O)})):K.state.status==="FULFILLED"?hHC(K,K,W,A,O):K.state.status==="REJECTED"&&pkR(K,K,L,A,O)}))};
$D.prototype.catch=function(m){return this.then(void 0,m)};
var hHC=function(m,G,K,W,L){try{if(m.state.status!=="FULFILLED")throw Error("Wc");var A=K(m.state.value);A instanceof $D?JWG(m,G,A,W,L):W(A)}catch(O){L(O)}},pkR=function(m,G,K,W,L){try{if(m.state.status!=="REJECTED")throw Error("Xc");
var A=K(m.state.reason);A instanceof $D?JWG(m,G,A,W,L):W(A)}catch(O){L(O)}},JWG=function(m,G,K,W,L){G===K?L(new TypeError("Yc")):K.then(function(A){A instanceof $D?JWG(m,G,A,W,L):W(A)},function(A){L(A)})};var XX;XX=window;_.xD=XX.ytcsi&&XX.ytcsi.now?XX.ytcsi.now:XX.performance&&XX.performance.timing&&XX.performance.now&&XX.performance.timing.navigationStart?function(){return XX.performance.timing.navigationStart+XX.performance.now()}:function(){return(new Date).getTime()};var EV=function(m,G){this.JSC$10979_wrapped=m;this.options=G;this.transactionCount=0;this.startedMs=Math.round((0,_.xD)());this.hasUnknownAbortedTransaction=!1},SC=function(){return _.F("idb_immediate_commit")},tO2,FQ4,zN,otl;
EV.prototype.add=function(m,G,K){return _.CL(this,[m],{mode:"readwrite",enableRetries:!0,commit:SC()},function(W){return W.objectStore(m).add(G,K)})};
EV.prototype.clear=function(m){return _.CL(this,[m],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore(m).clear()})};
EV.prototype.close=function(){this.JSC$10979_wrapped.close();var m;((m=this.options)==null?0:m.closed)&&this.options.closed()};
EV.prototype.count=function(m,G){return _.CL(this,[m],{mode:"readonly",enableRetries:!0,commit:SC()},function(K){return K.objectStore(m).count(G)})};
var sg=function(m,G,K){m=m.JSC$10979_wrapped.createObjectStore(G,K);return new Rw(m)};
EV.prototype.delete=function(m,G){return _.CL(this,[m],{mode:"readwrite",enableRetries:!0,commit:SC()&&!(G instanceof IDBKeyRange)},function(K){return K.objectStore(m).delete(G)})};
var N9F=function(m,G){return _.CL(m,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(K){return K.objectStore("ResponseStore").index("byInterface").delete(G)})};
EV.prototype.get=function(m,G){return _.CL(this,[m],{mode:"readonly",enableRetries:!0,commit:SC()},function(K){return K.objectStore(m).get(G)})};
EV.prototype.getAll=function(m,G,K){return _.CL(this,[m],{mode:"readonly",enableRetries:!0},function(W){return W.objectStore(m).getAll(G,K)})};
EV.prototype.put=function(m,G,K){return _.CL(this,[m],{mode:"readwrite",enableRetries:!0,commit:SC()},function(W){return W.objectStore(m).put(G,K)})};
EV.prototype.objectStoreNames=function(){return Array.from(this.JSC$10979_wrapped.objectStoreNames)};
_.CL=function(m,G,K,W){var L,A,O,c,u,h,J,N,D,t,a,v;return _.Y(function(I){switch(I.nextAddress){case 1:var Z={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof K==="string"?Z.mode=K:Object.assign(Z,K);L=Z;m.transactionCount++;A=L.enableRetries?3:1;O=0;case 2:if(c){I.jumpTo(4);break}O++;u=Math.round((0,_.xD)());_.IO(I,5);h=m.JSC$10979_wrapped.transaction(G,L.mode);Z=I.yield;var k=!!L.commit;var z=new Hw(h);k=DcP(z,W,k);return Z.call(I,k,7);case 7:return J=I.yieldResult,N=Math.round((0,_.xD)()),
tO2(m,u,N,O,void 0,G.join(),L),I.return(J);case 5:D=_.ye(I);t=Math.round((0,_.xD)());a=al6(D,m.JSC$10979_wrapped.name,G.join(),m.JSC$10979_wrapped.version);if((v=a instanceof nL&&!a.retryable)||O>=A)tO2(m,u,t,O,a,G.join(),L),c=a;I.jumpTo(2);break;case 4:return I.return(Promise.reject(c))}})};
tO2=function(m,G,K,W,L,A,O){G=K-G;L?(L instanceof nL&&(L.type==="QUOTA_EXCEEDED"||L.type==="QUOTA_MAYBE_EXCEEDED")&&FH("QUOTA_EXCEEDED",{dbName:aG(m.JSC$10979_wrapped.name),objectStoreNames:A,transactionCount:m.transactionCount,transactionMode:O.mode}),L instanceof nL&&L.type==="UNKNOWN_ABORT"&&(K-=m.startedMs,K<0&&K>=2147483648&&(K=0),FH("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:A,transactionDuration:G,transactionCount:m.transactionCount,dbDuration:K}),m.hasUnknownAbortedTransaction=!0),
FQ4(m,!1,W,A,G,O.tag),_.tH(L)):FQ4(m,!0,W,A,G,O.tag)};
FQ4=function(m,G,K,W,L,A){FH("TRANSACTION_ENDED",{objectStoreNames:W,connectionHasUnknownAbortedTransaction:m.hasUnknownAbortedTransaction,duration:L,isSuccessful:G,tryCount:K,tag:A===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":A})};
EV.prototype.getName=function(){return this.JSC$10979_wrapped.name};
var Rw=function(m){this.JSC$10994_wrapped=m};
Rw.prototype.add=function(m,G){return qK(this.JSC$10994_wrapped.add(m,G))};
Rw.prototype.autoIncrement=function(){return this.JSC$10994_wrapped.autoIncrement};
Rw.prototype.clear=function(){return qK(this.JSC$10994_wrapped.clear()).then(function(){})};
var qq=function(m,G,K){m.JSC$10994_wrapped.createIndex(G,K,{unique:!1})};
Rw.prototype.count=function(m){return qK(this.JSC$10994_wrapped.count(m))};
var Q7k=function(m,G){return Z_(m,{query:G},function(K){return K.delete().then(function(){return K.continue()})}).then(function(){})};
Rw.prototype.delete=function(m){return m instanceof IDBKeyRange?Q7k(this,m):qK(this.JSC$10994_wrapped.delete(m))};
Rw.prototype.get=function(m){return qK(this.JSC$10994_wrapped.get(m))};
Rw.prototype.getAll=function(m,G){return"getAll"in IDBObjectStore.prototype?qK(this.JSC$10994_wrapped.getAll(m,G)):aQC(this,m,G)};
var aQC=function(m,G,K){var W=[];return Z_(m,{query:G},function(L){if(!(K!==void 0&&W.length>=K))return W.push(L.getValue()),L.continue()}).then(function(){return W})};
Rw.prototype.index=function(m){try{return new UX(this.JSC$10994_wrapped.index(m))}catch(G){if(G instanceof Error&&G.name==="NotFoundError")throw new FdJ(m,this.JSC$10994_wrapped.name);throw G;}};
Rw.prototype.getName=function(){return this.JSC$10994_wrapped.name};
Rw.prototype.keyPath=function(){return this.JSC$10994_wrapped.keyPath};
Rw.prototype.put=function(m,G){return qK(this.JSC$10994_wrapped.put(m,G))};
var Z_=function(m,G,K){m=m.JSC$10994_wrapped.openCursor(G.query,G.direction);return otl(m).then(function(W){return $_G(W,K)})},Hw=function(m){var G=this;
this.JSC$11002_wrapped=m;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(K,W){G.JSC$11002_wrapped.addEventListener("complete",function(){K()});
G.JSC$11002_wrapped.addEventListener("error",function(L){L.currentTarget===L.target&&W(G.JSC$11002_wrapped.error)});
G.JSC$11002_wrapped.addEventListener("abort",function(){var L=G.JSC$11002_wrapped.error;if(L)W(L);else if(!G.aborted){L=nL;for(var A=G.JSC$11002_wrapped.objectStoreNames,O=[],c=0;c<A.length;c++){var u=A.item(c);if(u===null)throw Error("Zc");O.push(u)}L=new L("UNKNOWN_ABORT",{objectStoreNames:O.join(),dbName:G.JSC$11002_wrapped.db.name,mode:G.JSC$11002_wrapped.mode});W(L)}})})},DcP=function(m,G,K){var W=new Promise(function(L,A){try{var O=G(m);
K&&m.commit();O.then(function(c){L(c)}).catch(A)}catch(c){A(c),m.abort()}});
return Promise.all([W,m.done]).then(function(L){return _.g(L).next().value})};
Hw.prototype.abort=function(){this.JSC$11002_wrapped.abort();this.aborted=!0;throw new nL("EXPLICIT_ABORT");};
Hw.prototype.commit=function(){if(!this.aborted){var m,G;(G=(m=this.JSC$11002_wrapped).commit)==null||G.call(m)}};
Hw.prototype.objectStore=function(m){m=this.JSC$11002_wrapped.objectStore(m);var G=this.objectStoreCache.get(m);G||(G=new Rw(m),this.objectStoreCache.set(m,G));return G};
var UX=function(m){this.JSC$11004_wrapped=m};
UX.prototype.count=function(m){return qK(this.JSC$11004_wrapped.count(m))};
UX.prototype.delete=function(m){return _.XH(this,{query:m},function(G){return G.delete().then(function(){return G.continue()})})};
UX.prototype.get=function(m){return qK(this.JSC$11004_wrapped.get(m))};
UX.prototype.getAll=function(m,G){return"getAll"in IDBIndex.prototype?qK(this.JSC$11004_wrapped.getAll(m,G)):ntk(this,m,G)};
var ntk=function(m,G,K){var W=[];return _.XH(m,{query:G},function(L){if(!(K!==void 0&&W.length>=K))return W.push(L.getValue()),L.continue()}).then(function(){return W})};
UX.prototype.keyPath=function(){return this.JSC$11004_wrapped.keyPath};
UX.prototype.unique=function(){return this.JSC$11004_wrapped.unique};
_.XH=function(m,G,K){m=m.JSC$11004_wrapped.openCursor(G.query===void 0?null:G.query,G.direction===void 0?"next":G.direction);return otl(m).then(function(W){return $_G(W,K)})};
zN=function(m,G){this.request=m;this.cursor=G};
otl=function(m){return qK(m).then(function(G){return G?new zN(m,G):null})};
zN.prototype.continue=function(m){this.cursor.continue(m);return otl(this.request)};
zN.prototype.delete=function(){return qK(this.cursor.delete()).then(function(){})};
zN.prototype.getValue=function(){return this.cursor.value};
zN.prototype.update=function(m){return qK(this.cursor.update(m))};var lB=function(m,G){this.name=m;this.options=G;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},bW2;
lB.prototype.openDb=function(m,G,K){K=K===void 0?{}:K;return qvM(m,G,K)};
lB.prototype.delete=function(m){m=m===void 0?{}:m;return _.jn(this.name,m)};
bW2=function(m,G){return new nL("INCOMPATIBLE_DB_VERSION",{dbName:m.name,oldVersion:m.options.version,newVersion:G})};
_.kD=function(m,G){if(!G)throw vw("openWithToken",aG(m.name));return m.open()};
lB.prototype.open=function(){var m=this;if(!this.isCompatible)throw bW2(this);if(this.connectionPromise)return this.connectionPromise;var G,K=function(){m.connectionPromise===G&&(m.connectionPromise=void 0)},W={blocking:function(A){A.close()},
closed:K,terminated:K,upgrade:this.options.upgrade},L=function(){var A,O,c,u,h,J,N,D,t,a;return _.Y(function(v){switch(v.nextAddress){case 1:return O=(A=Error().stack)!=null?A:"",_.IO(v,2),v.yield(m.openDb(m.name,m.options.version,W),4);case 4:for(var I=c=v.yieldResult,Z=m.options,k=[],z=_.g(Object.keys(Z.objectStores)),X=z.next();!X.done;X=z.next()){X=X.value;var f=Z.objectStores[X],U=f.removedAtVersion===void 0?Number.MAX_VALUE:f.removedAtVersion;!(I.JSC$10979_wrapped.version>=f.addedAtVersion)||
I.JSC$10979_wrapped.version>=U||I.JSC$10979_wrapped.objectStoreNames.contains(X)||k.push(X)}u=k;if(u.length===0){v.jumpTo(5);break}h=Object.keys(m.options.objectStores);J=c.objectStoreNames();if(m.timesReopenedToFixMissingObjectStore<_.U8("ytidb_reopen_db_retries",0))return m.timesReopenedToFixMissingObjectStore++,c.close(),_.tH(new nL("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:m.name,expectedObjectStores:h,foundObjectStores:J})),v.return(L());if(!(m.timesDeletedToFixMissingObjectStore<_.U8("ytidb_remake_db_retries",
1))){v.jumpTo(6);break}m.timesDeletedToFixMissingObjectStore++;return v.yield(m.delete(),7);case 7:return _.tH(new nL("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:m.name,expectedObjectStores:h,foundObjectStores:J})),v.return(L());case 6:throw new uvB(J,h);case 5:return v.return(c);case 2:N=_.ye(v);if(N instanceof DOMException?N.name!=="VersionError":"DOMError"in self&&N instanceof DOMError?N.name!=="VersionError":!(N instanceof Object&&"message"in N)||N.message!=="An attempt was made to open a database using a lower version than the existing version."){v.jumpTo(8);
break}return v.yield(m.openDb(m.name,void 0,Object.assign({},W,{upgrade:void 0})),9);case 9:D=v.yieldResult;t=D.JSC$10979_wrapped.version;if(m.options.version!==void 0&&t>m.options.version+1)throw D.close(),m.isCompatible=!1,bW2(m,t);return v.return(D);case 8:throw K(),N instanceof Error&&!_.F("ytidb_async_stack_killswitch")&&(N.stack=N.stack+"\n"+O.substring(O.indexOf("\n")+1)),al6(N,m.name,"",(a=m.options.version)!=null?a:-1);}})};
return this.connectionPromise=G=L()};var ERv=new lB("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(m,G){G(1)&&sg(m,"databases",{keyPath:"actualName"})}});var ZGJ,Cwo=new function(){}(new function(){});new _.yY;var vtF=function(m,G){lB.call(this,m,G);this.options=G;Qj(m)};
_.n(vtF,lB);var U_6=function(m,G){var K;return function(){K||(K=new vtF(m,G));return K}};
vtF.prototype.openDb=function(m,G,K){K=K===void 0?{}:K;return(this.options.shared?flf:e9s)(m,G,Object.assign({},K))};
vtF.prototype.delete=function(m){m=m===void 0?{}:m;return(this.options.shared?R9s:x_M)(this.name,m)};var $cS={},z9P=fL("ytGcfConfig",{objectStores:($cS.coldConfigStore={addedAtVersion:1},$cS.hotConfigStore={addedAtVersion:1},$cS),shared:!1,upgrade:function(m,G){G(1)&&(qq(sg(m,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),qq(sg(m,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var s7K=function(){_.Lt.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var m=_.Cn("yt.gcf.config.hotUpdateCallbacks");m?(this.localHotConfigJobQueue=[].concat(_.Bz(m)),this.sharedHotConfigJobQueue=m):(this.sharedHotConfigJobQueue=[],_.yj("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.n(s7K,_.Lt);s7K.prototype.disposeInternal=function(){for(var m=_.g(this.localHotConfigJobQueue),G=m.next();!G.done;G=m.next()){var K=this.sharedHotConfigJobQueue;G=K.indexOf(G.value);G>=0&&K.splice(G,1)}this.localHotConfigJobQueue.length=0;_.Lt.prototype.disposeInternal.call(this)};var uO=function(){var m=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new s7K;this.TEST_ONLY={initializeConfigDb:function(){m.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return m.coldGlobalConfigGroup},
setHotConfigGroup:function(G){qG0(m,G)},
setHotHashData:function(G){m.setHotHashData(G)},
setColdConfigGroup:function(G){EtX(m,G)},
getColdHashData:function(){return m.coldHashData},
getHotHashData:function(){return m.hotHashData},
getHotConfigGroup:function(){return m.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return HWl()},
getExportedHotConfigGroup:function(){return BZ()},
getExportedColdHashData:function(){return _.Cn("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Cn("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){IQP(m)},
resetInstance:function(){m.setHotHashData(void 0);j7X(m);delete uO.instance},
setDebounceTimer:function(G){m.debounceTimer=G},
getDebounceTimer:function(){return m.debounceTimer}}},kzi=function(){if(!uO.instance){var m=new uO;
uO.instance=m}return uO.instance},ZWC=function(m){var G;
_.Y(function(K){if(K.nextAddress==1)return _.F("start_client_gcf")||_.F("delete_gcf_config_db")?_.F("start_client_gcf")?K.yield(_.en(),3):K.jumpTo(2):K.return();K.nextAddress!=2&&((G=K.yieldResult)&&_.OV()&&!_.F("delete_gcf_config_db")?(m.isConfigDbInitialized=!0,IQP(m)):(CdX(m),VOK(m)));return _.F("delete_gcf_config_db")?K.yield(iro(),0):K.jumpTo(0)})},hu=function(){var m;
return(m=BZ())!=null?m:_.E8("RAW_HOT_CONFIG_GROUP")},dcl=function(m){var G,K,W,L,A,O;
return _.Y(function(c){switch(c.nextAddress){case 1:if(m.hotGlobalConfigGroup)return c.return(BZ());if(!m.isConfigDbInitialized)return G=vw("getHotConfig IDB not initialized"),_.V3(G),c.return(Promise.reject(G));K=Pw();W=_.E8("TIME_CREATED_MS");if(!K){L=vw("getHotConfig token error");_.V3(L);c.jumpTo(2);break}return c.yield(mgP(K),3);case 3:if((A=c.yieldResult)&&A.timestamp>W)return qG0(m,A.config),m.setHotHashData(A.hashData),c.return(BZ());case 2:VOK(m);if(!(K&&m.hotGlobalConfigGroup&&m.hotHashData)){c.jumpTo(4);
break}return c.yield(B6P(m.hotGlobalConfigGroup,m.hotHashData,K,W),4);case 4:return m.hotGlobalConfigGroup?c.return(BZ()):(O=new _.cw("Config not available in ytConfig"),_.V3(O),c.return(Promise.reject(O)))}})},yWB=function(m){var G,K,W,L,A,O;
return _.Y(function(c){switch(c.nextAddress){case 1:if(m.coldGlobalConfigGroup)return c.return(HWl());if(!m.isConfigDbInitialized)return G=vw("getColdConfig IDB not initialized"),_.V3(G),c.return(Promise.reject(G));K=Pw();W=_.E8("TIME_CREATED_MS");if(!K){L=vw("getColdConfig");_.V3(L);c.jumpTo(2);break}return c.yield(T6F(K),3);case 3:if((A=c.yieldResult)&&A.timestamp>W)return EtX(m,A.config),Pd2(m,A.configData),j7X(m,A.hashData),c.return(HWl());case 2:CdX(m);if(!(K&&m.coldGlobalConfigGroup&&m.coldHashData&&
m.configData)){c.jumpTo(4);break}return c.yield(M8d(m.coldGlobalConfigGroup,m.coldHashData,m.configData,K,W),4);case 4:return m.coldGlobalConfigGroup?c.return(HWl()):(O=new _.cw("Config not available in ytConfig"),_.V3(O),c.return(Promise.reject(O)))}})},IQP=function(m){if(!m.hotGlobalConfigGroup||!m.coldGlobalConfigGroup){if(!Pw()){var G=vw("scheduleGetConfigs");
_.V3(G)}m.initJob||(m.initJob=_.Fu.addLowPriorityJob(function(){return _.Y(function(K){switch(K.nextAddress){case 1:return _.IO(K,2),K.yield(dcl(m),4);case 4:_.IG(K,3);break;case 2:_.ye(K);case 3:return _.IO(K,5),K.yield(yWB(m),7);case 7:_.IG(K,6);break;case 5:_.ye(K);case 6:m.initJob&&(m.initJob=0),_.ey(K)}})},100))}},lg9=function(m,G,K){var W,L,A;
return _.Y(function(O){switch(O.nextAddress){case 1:if(!_.F("start_client_gcf")){O.jumpTo(0);break}K&&qG0(m,K);m.setHotHashData(G);W=Pw();if(!W){O.jumpTo(3);break}if(K){O.jumpTo(4);break}return O.yield(mgP(W),5);case 5:L=O.yieldResult,K=(A=L)==null?void 0:A.config;case 4:return O.yield(B6P(K,G,W),3);case 3:if(K)for(var c=K,u=_.g(m.configUpdateService.sharedHotConfigJobQueue),h=u.next();!h.done;h=u.next())h=h.value,h(c);_.ey(O)}})},Bqd=function(m,G,K){var W,L,A,O;
return _.Y(function(c){if(c.nextAddress==1){if(!_.F("start_client_gcf"))return c.jumpTo(0);j7X(m,G);return(W=Pw())?K?c.jumpTo(4):c.yield(T6F(W),5):c.jumpTo(0)}c.nextAddress!=4&&(L=c.yieldResult,K=(A=L)==null?void 0:A.config);if(!K)return c.jumpTo(0);O=K.configData;return c.yield(M8d(K,G,O,W),0)})},tbJ=function(){var m=kzi(),G=(0,_.xD)()-m.debounceTimer;
if(!(m.debounceTimer!==0&&G<_.U8("send_config_hash_timer"))){G=_.Cn("yt.gcf.config.coldConfigData");var K=_.Cn("yt.gcf.config.hotHashData"),W=_.Cn("yt.gcf.config.coldHashData");G&&K&&W&&(m.debounceTimer=(0,_.xD)());return{coldConfigData:G,hotHashData:K,coldHashData:W}}},CdX=function(m){EtX(m,_.E8("RAW_COLD_CONFIG_GROUP"));
j7X(m,_.E8("SERIALIZED_COLD_HASH_DATA"));var G;Pd2(m,(G=m.coldGlobalConfigGroup)==null?void 0:G.configData)},VOK=function(m){qG0(m,_.E8("RAW_HOT_CONFIG_GROUP"));
m.setHotHashData(_.E8("SERIALIZED_HOT_HASH_DATA"))},qG0=function(m,G){m.hotGlobalConfigGroup=G;
_.yj("yt.gcf.config.hotConfigGroup",m.hotGlobalConfigGroup||null)},EtX=function(m,G){m.coldGlobalConfigGroup=G;
_.yj("yt.gcf.config.coldConfigGroup",m.coldGlobalConfigGroup||null)};
uO.prototype.setHotHashData=function(m){this.hotHashData=m;_.yj("yt.gcf.config.hotHashData",this.hotHashData||null)};
var j7X=function(m,G){m.coldHashData=G;_.yj("yt.gcf.config.coldHashData",m.coldHashData||null)},Pd2=function(m,G){m.configData=G;
_.yj("yt.gcf.config.coldConfigData",m.configData||null)},BZ=function(){return _.Cn("yt.gcf.config.hotConfigGroup")},HWl=function(){return _.Cn("yt.gcf.config.coldConfigGroup")};var G6={},eHR=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";G6.assign=function(m){for(var G=Array.prototype.slice.call(arguments,1);G.length;){var K=G.shift();if(K){if(typeof K!=="object")throw new TypeError("bd`"+K);for(var W in K)Object.prototype.hasOwnProperty.call(K,W)&&(m[W]=K[W])}}return m};
G6.shrinkBuf=function(m,G){if(m.length===G)return m;if(m.subarray)return m.subarray(0,G);m.length=G;return m};
var fQR={arraySet:function(m,G,K,W,L){if(G.subarray&&m.subarray)m.set(G.subarray(K,K+W),L);else for(var A=0;A<W;A++)m[L+A]=G[K+A]},
flattenChunks:function(m){var G,K;var W=K=0;for(G=m.length;W<G;W++)K+=m[W].length;var L=new Uint8Array(K);W=K=0;for(G=m.length;W<G;W++){var A=m[W];L.set(A,K);K+=A.length}return L}},xc4={arraySet:function(m,G,K,W,L){for(var A=0;A<W;A++)m[L+A]=G[K+A]},
flattenChunks:function(m){return[].concat.apply([],m)}};
G6.setTyped=function(){eHR?(G6.Buf8=Uint8Array,G6.Buf16=Uint16Array,G6.Buf32=Int32Array,G6.assign(G6,fQR)):(G6.Buf8=Array,G6.Buf16=Array,G6.Buf32=Array,G6.assign(G6,xc4))};
G6.setTyped();var Xk4=!0;try{new Uint8Array(1)}catch(m){Xk4=!1}
var mld=function(m){var G,K,W=m.length,L=0;for(G=0;G<W;G++){var A=m.charCodeAt(G);if((A&64512)===55296&&G+1<W){var O=m.charCodeAt(G+1);(O&64512)===56320&&(A=65536+(A-55296<<10)+(O-56320),G++)}L+=A<128?1:A<2048?2:A<65536?3:4}var c=new G6.Buf8(L);for(G=K=0;K<L;G++)A=m.charCodeAt(G),(A&64512)===55296&&G+1<W&&(O=m.charCodeAt(G+1),(O&64512)===56320&&(A=65536+(A-55296<<10)+(O-56320),G++)),A<128?c[K++]=A:(A<2048?c[K++]=192|A>>>6:(A<65536?c[K++]=224|A>>>12:(c[K++]=240|A>>>18,c[K++]=128|A>>>12&63),c[K++]=
128|A>>>6&63),c[K++]=128|A&63);return c};var yKM={};yKM=function(m,G,K,W){var L=m&65535|0;m=m>>>16&65535|0;for(var A;K!==0;){A=K>2E3?2E3:K;K-=A;do L=L+G[W++]|0,m=m+L|0;while(--A);L%=65521;m%=65521}return L|m<<16|0};for(var pS={},Mz,SGP=[],RHi=0;RHi<256;RHi++){Mz=RHi;for(var Uci=0;Uci<8;Uci++)Mz=Mz&1?3988292384^Mz>>>1:Mz>>>1;SGP[RHi]=Mz}pS=function(m,G,K,W){K=W+K;for(m^=-1;W<K;W++)m=m>>>8^SGP[(m^G[W])&255];return m^-1};var Ag={};Ag={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 qMG=[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],Hrf=[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],TFd=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],dgd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],cG=Array(576);Bw(cG);var Y3=Array(60);Bw(Y3);var WG=Array(512);Bw(WG);var KS=Array(256);Bw(KS);var EC6=Array(29);Bw(EC6);var I7G=Array(30);Bw(I7G);var l7d,BFs,Mbo,zgG=!1;var tg;
tg=[new DD(0,0,0,0,function(m,G){var K=65535;for(K>m.pending_buf_size-5&&(K=m.pending_buf_size-5);;){if(m.lookahead<=1){Jg(m);if(m.lookahead===0&&G===0)return 1;if(m.lookahead===0)break}m.strstart+=m.lookahead;m.lookahead=0;var W=m.block_start+K;if(m.strstart===0||m.strstart>=W)if(m.lookahead=m.strstart-W,m.strstart=W,rW(m,!1),m.strm.avail_out===0)return 1;if(m.strstart-m.block_start>=m.w_size-262&&(rW(m,!1),m.strm.avail_out===0))return 1}m.insert=0;if(G===4)return rW(m,!0),m.strm.avail_out===0?3:
4;m.strstart>m.block_start&&rW(m,!1);return 1}),
new DD(4,4,8,4,egF),new DD(4,5,16,8,egF),new DD(4,6,32,32,egF),new DD(4,4,16,16,Nq),new DD(8,16,32,32,Nq),new DD(8,16,128,128,Nq),new DD(8,32,128,256,Nq),new DD(32,128,258,1024,Nq),new DD(32,258,258,4096,Nq)];var UgG={};UgG=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 iDv=Object.prototype.toString;
Rgo.prototype.push=function(m,G){var K=this.strm,W=this.options.chunkSize;if(this.ended)return!1;var L=G===~~G?G:G===!0?4:0;typeof m==="string"?K.input=mld(m):iDv.call(m)==="[object ArrayBuffer]"?K.input=new Uint8Array(m):K.input=m;K.next_in=0;K.avail_in=K.input.length;do{K.avail_out===0&&(K.output=new G6.Buf8(W),K.next_out=0,K.avail_out=W);m=SMv(K,L);if(m!==1&&m!==0)return zHi(this,m),this.ended=!0,!1;if(K.avail_out===0||K.avail_in===0&&(L===4||L===2))if(this.options.to==="string"){var A=G6.shrinkBuf(K.output,
K.next_out);G=A;A=A.length;if(A<65537&&(G.subarray&&Xk4||!G.subarray))G=String.fromCharCode.apply(null,G6.shrinkBuf(G,A));else{for(var O="",c=0;c<A;c++)O+=String.fromCharCode(G[c]);G=O}this.chunks.push(G)}else G=G6.shrinkBuf(K.output,K.next_out),this.chunks.push(G)}while((K.avail_in>0||K.avail_out===0)&&m!==1);if(L===4)return(K=this.strm)&&K.state?(W=K.state.status,W!==42&&W!==69&&W!==73&&W!==91&&W!==103&&W!==113&&W!==666?m=wW(K,-2):(K.state=null,m=W===113?wW(K,-3):0)):m=-2,zHi(this,m),this.ended=
!0,m===0;L===2&&(zHi(this,0),K.avail_out=0);return!0};
var zHi=function(m,G){G===0&&(m.result=m.options.to==="string"?m.chunks.join(""):G6.flattenChunks(m.chunks));m.chunks=[];m.err=G;m.msg=m.strm.msg};var lQR=typeof TextEncoder!=="undefined"?new TextEncoder:null,qQf=lQR?function(m){return lQR.encode(m)}:function(m){m=_.Wg(m);
for(var G=new Uint8Array(m.length),K=0;K<G.length;K++)G[K]=m[K];return G};var SbF={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},UQd={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var TN=function(m,G){this.version=m;this.args=G};
TN.prototype.serialize=function(){return{version:this.version,args:this.args}};var A9v=function(m,G){this.topic=m;this.dataClass=G};
A9v.prototype.toString=function(){return this.topic};var B94=_.Cn("ytPubsub2Pubsub2Instance")||new _.Gd;_.Gd.prototype.subscribe=_.Gd.prototype.subscribe;_.Gd.prototype.unsubscribeByKey=_.Gd.prototype.unsubscribeByKey;_.Gd.prototype.publish=_.Gd.prototype.publish;_.Gd.prototype.clear=_.Gd.prototype.clear;_.yj("ytPubsub2Pubsub2Instance",B94);var Lgd=_.Cn("ytPubsub2Pubsub2SubscribedKeys")||{};_.yj("ytPubsub2Pubsub2SubscribedKeys",Lgd);var geP=_.Cn("ytPubsub2Pubsub2TopicToKeys")||{};_.yj("ytPubsub2Pubsub2TopicToKeys",geP);
var wLo=_.Cn("ytPubsub2Pubsub2IsAsync")||{};_.yj("ytPubsub2Pubsub2IsAsync",wLo);_.yj("ytPubsub2Pubsub2SkipSubKey",null);var Dlo=void 0,J99=void 0;var ved=_.U8("max_body_size_to_compress",5E5),$lf=_.U8("min_body_size_to_compress",500),aR=!0,Ihv=0,oR=0,HDP=_.U8("compression_performance_threshold_lr",250),kg9=_.U8("slow_compressions_before_abandon_count",4),QoG=!1,ahG=new Map,so9=1;_.kJ(nS,VwG);nS.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 MOG=function(m,G,K){K||(K=0);var W=m.W_;if(typeof G==="string")for(var L=0;L<16;L++)W[L]=G.charCodeAt(K)<<24|G.charCodeAt(K+1)<<16|G.charCodeAt(K+2)<<8|G.charCodeAt(K+3),K+=4;else for(L=0;L<16;L++)W[L]=G[K]<<24|G[K+1]<<16|G[K+2]<<8|G[K+3],K+=4;for(G=16;G<80;G++)K=W[G-3]^W[G-8]^W[G-14]^W[G-16],W[G]=(K<<1|K>>>31)&4294967295;G=m.chain_[0];K=m.chain_[1];L=m.chain_[2];for(var A=m.chain_[3],O=m.chain_[4],c,u,h=0;h<80;h++)h<40?h<20?(c=A^K&(L^A),u=1518500249):(c=K^L^A,u=1859775393):h<60?(c=K&L|A&(K|L),
u=2400959708):(c=K^L^A,u=3395469782),c=(G<<5|G>>>27)+c+O+u+W[h]&4294967295,O=A,A=L,L=(K<<30|K>>>2)&4294967295,K=G,G=c;m.chain_[0]=m.chain_[0]+G&4294967295;m.chain_[1]=m.chain_[1]+K&4294967295;m.chain_[2]=m.chain_[2]+L&4294967295;m.chain_[3]=m.chain_[3]+A&4294967295;m.chain_[4]=m.chain_[4]+O&4294967295};
nS.prototype.update=function(m,G){if(m!=null){G===void 0&&(G=m.length);for(var K=G-this.blockSize,W=0,L=this.buf_,A=this.inbuf_;W<G;){if(A==0)for(;W<=K;)MOG(this,m,W),W+=this.blockSize;if(typeof m==="string")for(;W<G;){if(L[A]=m.charCodeAt(W),++A,++W,A==this.blockSize){MOG(this,L);A=0;break}}else for(;W<G;)if(L[A]=m[W],++A,++W,A==this.blockSize){MOG(this,L);A=0;break}}this.inbuf_=A;this.total_+=G}};
nS.prototype.digest=function(){var m=[],G=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var K=this.blockSize-1;K>=56;K--)this.buf_[K]=G&255,G/=256;MOG(this,this.buf_);for(K=G=0;K<5;K++)for(var W=24;W>=0;W-=8)m[G]=this.chain_[K]>>W&255,++G;return m};var P16;var iD=function(m){var G=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(J){G.databaseToken=J},
triggerThrottle:function(){G.throttledSend()},
cancelThrottle:function(){G.cancelThrottledSend()},
immediateSend:function(J){return _.Y(function(N){return N.yield(G.immediateSend(J),0)})},
requestWithinAgeLimit:function(J,N){return G.requestWithinAgeLimit(J,N)},
retryQueuedRequests:function(){G.retryQueuedRequests()}};
var K;this.throttleTimeout=(K=m.throttleTimeout)!=null?K:100;var W;this.retryMaxAttempts=(W=m.retryMaxAttempts)!=null?W:1;var L;this.requestAgeLimitMs=(L=m.requestAgeLimitMs)!=null?L:2592E6;var A;this.queuedRequestAgeLimitMs=(A=m.queuedRequestAgeLimitMs)!=null?A:12E4;var O;this.retryDelayMs=(O=m.retryDelayMs)!=null?O:5E3;var c;this.databaseToken=(c=m.databaseToken)!=null?c:void 0;this.enableCleaning=!!m.enableCleaning;var u;this.cleaningRate=(u=m.cleaningRate)!=null?u:.1;var h;this.potentialEsfErrorLimit=
(h=m.potentialEsfErrorLimit)!=null?h:10;m.handleError&&(this.handleError=m.handleError);m.handleWarning&&(this.handleWarning=m.handleWarning);m.disableYtIdbTransactions&&(this.disableYtIdbTransactions=m.disableYtIdbTransactions);m.bypassDbTokenDependency&&(this.bypassDbTokenDependency=m.bypassDbTokenDependency);this.getBooleanFlag=m.getBooleanFlag;this.jobManager=m.jobManager;this.logsStore=m.logsStore;this.networkManager=m.networkManager;this.sendFn=m.sendFn;this.onlineEvent=m.onlineEvent;this.offlineEvent=
m.offlineEvent;m7(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&T9o(this)},T9o=function(m){m7(m)&&!m.disableYtIdbTransactions&&(m.initialized=!0,m.enableCleaning&&Math.random()<=m.cleaningRate&&m.logsStore.cleanLogsStore(m.databaseToken),m.retryQueuedRequests(),m.networkManager.isNetworkAvailable()&&m.throttledSend(),m.networkManager.listen(m.onlineEvent,m.throttledSend.bind(m)),m.networkManager.listen(m.offlineEvent,m.cancelThrottledSend.bind(m)))};
_.w=iD.prototype;_.w.writeThenSend=function(m,G){var K=this;G=G===void 0?{}:G;if(m7(this)&&this.initialized){var W={url:m,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(W,this.databaseToken).then(function(L){W.id=L;K.networkManager.isNetworkAvailable()&&K.immediateSend(W)}).catch(function(L){K.immediateSend(W);
m_i(K,L)})}else this.sendFn(m,G)};
_.w.sendThenWrite=function(m,G,K){var W=this;G=G===void 0?{}:G;if(m7(this)&&this.initialized){var L={url:m,options:G,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(L.skipRetry=K);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!L.skipRetry){if(!L.skipRetry){var A=G.onError?G.onError:function(){};
G.onError=function(O,c){return _.Y(function(u){if(u.nextAddress==1)return u.yield(W.logsStore.set(L,W.databaseToken).catch(function(h){m_i(W,h)}),2);
A(O,c);_.ey(u)})}}this.sendFn(m,G,L.skipRetry)}else this.logsStore.set(L,this.databaseToken).catch(function(O){W.sendFn(m,G,L.skipRetry);
m_i(W,O)})}else this.sendFn(m,G,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&K)};
_.w.sendAndWrite=function(m,G){var K=this;G=G===void 0?{}:G;if(m7(this)&&this.initialized){var W={url:m,options:G,timestamp:this.now(),status:"NEW",sendCount:0},L=!1,A=G.onSuccess?G.onSuccess:function(){};
W.options.onSuccess=function(O,c){W.id!==void 0?K.logsStore.deleteRequest(W.id,K.databaseToken):L=!0;K.networkManager.networkStatusHint&&K.getBooleanFlag&&K.getBooleanFlag("vss_network_hint")&&K.networkManager.networkStatusHint(!0);A(O,c)};
this.sendFn(W.url,W.options,void 0,!0);this.logsStore.set(W,this.databaseToken).then(function(O){W.id=O;L&&K.logsStore.deleteRequest(W.id,K.databaseToken)}).catch(function(O){m_i(K,O)})}else this.sendFn(m,G,void 0,!0)};
_.w.throttledSend=function(){var m=this;if(!m7(this))throw Error("ed");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.logsStore.getMostRecentByStatus("NEW",m.databaseToken),2);if(K.nextAddress!=3)return G=K.yieldResult,G?K.yield(m.immediateSend(G),3):(m.cancelThrottledSend(),K.return());m.intervalJob&&(m.intervalJob=0,m.throttledSend());_.ey(K)})},this.throttleTimeout))};
_.w.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.w.immediateSend=function(m){var G=this,K;return _.Y(function(W){switch(W.nextAddress){case 1:if(!m7(G))throw Error("fd");if(m.id===void 0){W.jumpTo(2);break}return W.yield(G.logsStore.markAsQueued(m.id,G.databaseToken),3);case 3:(K=W.yieldResult)||G.handleWarning(Error("gd"));case 2:if(G.requestWithinAgeLimit(m,G.requestAgeLimitMs)){W.jumpTo(4);break}G.handleWarning(Error("hd"));if(m.id===void 0){W.jumpTo(5);break}return W.yield(G.logsStore.deleteRequest(m.id,G.databaseToken),5);case 5:return W.return();
case 4:m.skipRetry||(m=iGX(G,m));if(!m){W.jumpTo(0);break}if(!m.skipRetry||m.id===void 0){W.jumpTo(8);break}return W.yield(G.logsStore.deleteRequest(m.id,G.databaseToken),8);case 8:G.sendFn(m.url,m.options,!!m.skipRetry),_.ey(W)}})};
var iGX=function(m,G){if(!m7(m))throw Error("id");var K=G.options.onError?G.options.onError:function(){};
G.options.onError=function(L,A){var O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:O=XLv(A);(c=SQG(A))&&m.getBooleanFlag&&m.getBooleanFlag("web_enable_error_204")&&m.handleError(Error("jd"),G.url,A);if(!(m.getBooleanFlag&&m.getBooleanFlag("nwl_consider_error_code")&&O||m.getBooleanFlag&&!m.getBooleanFlag("nwl_consider_error_code")&&m.potentialEsfErrorCounter<=m.potentialEsfErrorLimit)){J.jumpTo(2);break}if(!m.networkManager.sendNetworkCheckRequest){J.jumpTo(3);break}return J.yield(m.networkManager.sendNetworkCheckRequest(),
3);case 3:if(m.networkManager.isNetworkAvailable()){J.jumpTo(2);break}K(L,A);if(!m.getBooleanFlag||!m.getBooleanFlag("nwl_consider_error_code")||((u=G)==null?void 0:u.id)===void 0){J.jumpTo(6);break}return J.yield(m.logsStore.resetRequest(G.id,m.databaseToken,!1),6);case 6:return J.return();case 2:if(m.getBooleanFlag&&m.getBooleanFlag("nwl_consider_error_code")&&!O&&m.potentialEsfErrorCounter>m.potentialEsfErrorLimit)return J.return();m.potentialEsfErrorCounter++;if(((h=G)==null?void 0:h.id)===void 0){J.jumpTo(8);
break}return G.sendCount<m.retryMaxAttempts?J.yield(m.logsStore.resetRequest(G.id,m.databaseToken,!0,c?!1:void 0),12):J.yield(m.logsStore.deleteRequest(G.id,m.databaseToken),8);case 12:m.jobManager.addLowPriorityJob(function(){m.networkManager.isNetworkAvailable()&&m.throttledSend()},m.retryDelayMs);
case 8:K(L,A),_.ey(J)}})};
var W=G.options.onSuccess?G.options.onSuccess:function(){};
G.options.onSuccess=function(L,A){var O;return _.Y(function(c){if(c.nextAddress==1)return((O=G)==null?void 0:O.id)===void 0?c.jumpTo(2):c.yield(m.logsStore.deleteRequest(G.id,m.databaseToken),2);m.networkManager.networkStatusHint&&m.getBooleanFlag&&m.getBooleanFlag("vss_network_hint")&&m.networkManager.networkStatusHint(!0);W(L,A);_.ey(c)})};
return G};
iD.prototype.requestWithinAgeLimit=function(m,G){m=m.timestamp;return this.now()-m>=G?!1:!0};
iD.prototype.retryQueuedRequests=function(){var m=this;if(!m7(this))throw Error("kd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(G){G&&!m.requestWithinAgeLimit(G,m.queuedRequestAgeLimitMs)?m.jobManager.addLowPriorityJob(function(){return _.Y(function(K){if(K.nextAddress==1)return G.id===void 0?K.jumpTo(2):K.yield(m.logsStore.resetRequest(G.id,m.databaseToken),2);m.retryQueuedRequests();_.ey(K)})}):m.networkManager.isNetworkAvailable()&&m.throttledSend()})};
var m_i=function(m,G){m.writeError&&!m.networkManager.isNetworkAvailable()?m.writeError(G):m.handleError(G)},m7=function(m){return!!m.databaseToken||m.bypassDbTokenDependency};var ROF;var mB9={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,liveCreationPlayablesMetrics:533,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,
visualElementShown:72,visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5DeviceStorageStats:535,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,
appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,
webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,
parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,
prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,
sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,
parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,
biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,
youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,
crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,
embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530,creationOrchestrationEvent:531,coordinatedSamplingTriggered:532,dnaRecapScreenshotEvent:534,
mdxLocalNetworkPermissionRequestEvent:536,mdxLocalNetworkPermissionResponseEvent:537,sessionReplayEvent:538,sessionReplayStatusEvent:539};var Gv0={},K5o=fL("ServiceWorkerLogsDatabase",{objectStores:(Gv0.SWHealthLog={addedAtVersion:1},Gv0),shared:!0,upgrade:function(m,G){G(1)&&qq(sg(m,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Yhd={},c$s=0;var p8d;var G1=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},CS=function(){if(!G1.instance){var m=_.Cn("yt.networkRequestMonitor.instance")||new G1;
_.yj("yt.networkRequestMonitor.instance",m);G1.instance=m}return G1.instance};
G1.prototype.requestComplete=function(m,G){G&&(this.anyRequestHasSucceeded=!0);m=this.removeParams(m);this.requestMap.get(m)||this.requestMap.set(m,G)};
G1.prototype.isEndpointCFR=function(m){m=this.removeParams(m);return(m=this.requestMap.get(m))?!1:m===!1&&this.anyRequestHasSucceeded?!0:null};
G1.prototype.removeParams=function(m){return m.split("?")[0]};
G1.prototype.removeParams=G1.prototype.removeParams;G1.prototype.isEndpointCFR=G1.prototype.isEndpointCFR;G1.prototype.requestComplete=G1.prototype.requestComplete;G1.getInstance=CS;var K2=function(m){_.ai.call(this);var G=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=m!=null?m:{addLowPriorityJob:function(L,A){return setTimeout(L,A)},
cancelJob:function(L){clearTimeout(L)}};
var K,W;this.isOnline=(W=(K=window.navigator)==null?void 0:K.onLine)!=null?W:!0;this.onNavigatorChange=function(){return _.Y(function(L){return L.yield(Kdk(G),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Wdi(this)};
_.n(K2,_.ai);K2.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete K2.instance};
K2.prototype.isNetworkAvailable=function(){return this.isOnline};
var Wdi=function(m){m.pollingJob=m.jobManager.addLowPriorityJob(function(){var G;return _.Y(function(K){if(K.nextAddress==1)return m.isOnline?((G=window.navigator)==null?0:G.onLine)?K.jumpTo(3):K.yield(Kdk(m),3):K.yield(Kdk(m),3);Wdi(m);_.ey(K)})},3E4)},Kdk=function(m,G){return m.networkRequestPromise?m.networkRequestPromise:m.networkRequestPromise=new Promise(function(K){var W,L,A,O;
return _.Y(function(c){switch(c.nextAddress){case 1:return W=window.AbortController?new window.AbortController:void 0,A=(L=W)==null?void 0:L.signal,O=!1,_.IO(c,2,3),W&&(m.abortTimeoutKey=m.jobManager.addLowPriorityJob(function(){W.abort()},G||2E4)),c.yield(fetch("/generate_204",{method:"HEAD",
signal:A}),5);case 5:O=!0;case 3:_.CZ(c);m.networkRequestPromise=void 0;m.abortTimeoutKey&&(m.jobManager.cancelJob(m.abortTimeoutKey),m.abortTimeoutKey=0);O!==m.isOnline&&(m.isOnline=O,m.isOnline?m.dispatchEvent("networkstatus-online"):m.dispatchEvent("networkstatus-offline"));K(O);_.ZO(c,0);break;case 2:_.ye(c),O=!1,c.jumpTo(3)}})})};var W0=function(){_.ai.call(this);var m=this;this.shouldFlushErrors=!1;K2.instance||(K2.instance=new K2(_.Fu));this.sharedNetworkStatusManager=K2.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(m.shouldFlushErrors&&_.F("offline_error_handling")){var G=J$o().get("errors",!0);if(G){for(var K in G)if(G[K]){var W=new _.cw(K,"sent via offline_errors");W.name=G[K].name;W.stack=G[K].stack;W.level=G[K].level;_.j1(W)}J$o().set("errors",{},2592E3,!0)}}})};
_.n(W0,_.ai);var LdS=function(){if(!W0.instance){var m=_.Cn("yt.networkStatusManager.instance")||new W0;_.yj("yt.networkStatusManager.instance",m);W0.instance=m}return W0.instance};
_.w=W0.prototype;_.w.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.w.networkStatusHint=function(m){this.sharedNetworkStatusManager.isOnline=m};
_.w.getWindowStatus=function(){var m=window.navigator.onLine;return m===void 0?!0:m};
_.w.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.w.listen=function(m,G){return this.sharedNetworkStatusManager.listen(m,G)};
_.w.sendNetworkCheckRequest=function(m){m=Kdk(this.sharedNetworkStatusManager,m);m.then(function(G){_.F("use_cfr_monitor")&&CS().requestComplete("generate_204",G)});
return m};
W0.prototype.sendNetworkCheckRequest=W0.prototype.sendNetworkCheckRequest;W0.prototype.listen=W0.prototype.listen;W0.prototype.enableErrorFlushing=W0.prototype.enableErrorFlushing;W0.prototype.getWindowStatus=W0.prototype.getWindowStatus;W0.prototype.networkStatusHint=W0.prototype.networkStatusHint;W0.prototype.isNetworkAvailable=W0.prototype.isNetworkAvailable;W0.getInstance=LdS;_.k3=function(m){m=m===void 0?{}:m;_.ai.call(this);var G=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=LdS();var K=_.Cn("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);K&&(m.rateLimit?(this.rateLimit=m.rateLimit,K("networkstatus-online",function(){AMS(G,"publicytnetworkstatus-online")}),K("networkstatus-offline",function(){AMS(G,"publicytnetworkstatus-offline")})):(K("networkstatus-online",function(){G.dispatchEvent("publicytnetworkstatus-online")}),K("networkstatus-offline",
function(){G.dispatchEvent("publicytnetworkstatus-offline")})))};
_.n(_.k3,_.ai);_.k3.prototype.isNetworkAvailable=function(){var m=_.Cn("yt.networkStatusManager.instance.isNetworkAvailable");return m?m.bind(this.nsmInstance)():!0};
_.k3.prototype.networkStatusHint=function(m){var G=_.Cn("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);G&&G(m)};
_.k3.prototype.sendNetworkCheckRequest=function(m){var G=this,K;return _.Y(function(W){K=_.Cn("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(G.nsmInstance);return _.F("skip_network_check_if_cfr")&&CS().isEndpointCFR("generate_204")?W.return(new Promise(function(L){var A;G.networkStatusHint(((A=window.navigator)==null?void 0:A.onLine)||!0);L(G.isNetworkAvailable())})):K?W.return(K(m)):W.return(!0)})};
var AMS=function(m,G){m.rateLimit?m.lastJobTime?(_.Fu.cancelJob(m.schedulerJob),m.schedulerJob=_.Fu.addLowPriorityJob(function(){m.lastPublicSignalSent!==G&&(m.dispatchEvent(G),m.lastPublicSignalSent=G,m.lastJobTime=(0,_.xD)())},m.rateLimit-((0,_.xD)()-m.lastJobTime))):(m.dispatchEvent(G),m.lastPublicSignalSent=G,m.lastJobTime=(0,_.xD)()):m.dispatchEvent(G)};var QCd,L2=function(){iD.call(this,{logsStore:{cleanLogsStore:iN6,deleteRequest:myG,getMostRecentByStatus:BTs,markAsQueued:MwP,resetRequest:TTd,set:lhd},networkManager:_.aJd(),handleError:function(m,G,K){var W,L=K==null?void 0:(W=K.error)==null?void 0:W.code;if(L===400||L===415){var A;m=new _.cw(m.message,G,K==null?void 0:(A=K.error)==null?void 0:A.code);_.V3(m,void 0,void 0,void 0,!0)}else _.j1(m)},
handleWarning:_.V3,sendFn:tAM,now:_.xD,writeError:NnV,jobManager:_.AA(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.U8("potential_esf_error_limit",10),getBooleanFlag:_.F,disableYtIdbTransactions:!(_.OV()&&_.oEV())});this.initializationPromise=new _.yY;_.F("networkless_immediately_drop_all_requests")&&Gkd();R9s("LogsDatabaseV2")};
_.n(L2,iD);_.gR4=function(){var m=_.Cn("yt.networklessRequestController.instance");m||(m=new L2,_.yj("yt.networklessRequestController.instance",m),_.F("networkless_logging")&&_.en().then(function(G){m.databaseToken=G;T9o(m);m.initializationPromise.resolve();m.enableCleaning&&Math.random()<=m.cleaningRate&&m.databaseToken&&L5v(m.databaseToken);_.F("networkless_immediately_drop_sw_health_store")&&wUB(m)}));
return m};
L2.prototype.writeThenSend=function(m,G){G||(G={});G=F5V(m,G);_.OV()||(this.initialized=!1);iD.prototype.writeThenSend.call(this,m,G)};
L2.prototype.sendThenWrite=function(m,G,K){G||(G={});G=F5V(m,G);_.OV()||(this.initialized=!1);iD.prototype.sendThenWrite.call(this,m,G,K)};
L2.prototype.sendAndWrite=function(m,G){G||(G={});G=F5V(m,G);_.OV()||(this.initialized=!1);iD.prototype.sendAndWrite.call(this,m,G)};
L2.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var wUB=function(m){var G;_.Y(function(K){if(!m.databaseToken)throw G=vw("clearSWHealthLogsDb"),G;return K.return(A$d(m.databaseToken).catch(function(W){m.handleError(W)}))})};_.bNo=!1;_.nEd=_.Ks.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.bNo};_.yj("ytNetworklessLoggingInitializationOptions",_.nEd);var tu=function(m){var G=this;this.config_=null;m?this.config_=m:Ghd()&&(this.config_=_.Sn());_.rC(_.Fu,function(){xlG(G)},5E3)};
tu.prototype.isReady=function(){!this.config_&&Ghd()&&(this.config_=_.Sn());return!!this.config_};
var fhJ=function(m,G,K,W){!_.E8("VISITOR_DATA")&&G!=="visitor_id"&&Math.random()<.01&&_.V3(new _.cw("Missing VISITOR_DATA when sending innertube request.",G,K,W));if(!m.isReady()){var L=new _.cw("innertube xhrclient not ready",G,K,W);_.j1(L);throw L;}var A={headers:W.headers||{},method:"POST",postParams:K,postBody:W.postBody,postBodyFormat:W.postBodyFormat||"JSON",onTimeout:function(){W.onTimeout()},
onFetchTimeout:W.onTimeout,onSuccess:function(N,D){if(W.onSuccess)W.onSuccess(D)},
onFetchSuccess:function(N){if(W.onSuccess)W.onSuccess(N)},
onProgress:function(N){if(W.onProgress)W.onProgress(N)},
onError:function(N,D){if(W.onError)W.onError(D)},
onFetchError:function(N){if(W.onError)W.onError(N)},
timeout:W.timeout,withCredentials:!0,compress:W.compress};A.headers["Content-Type"]||(A.headers["Content-Type"]="application/json");var O="";(L=m.config_.innertubeHostOverride)&&(O=L);var c=m.config_.innertubeUseThirdPartyAuth||!1,u=_.DgM(c,O,W);Object.assign(A.headers,u);A.headers.Authorization&&!O&&c&&(A.headers["x-origin"]=window.location.origin);var h=_.y3(O+("/youtubei/"+m.config_.innertubeApiVersion+"/"+G),{alt:"json"}),J=function(N){N=N===void 0?!1:N;var D;if(W.retry&&O!="www.youtube-nocookie.com"&&
(N||_.F("skip_ls_gel_retry")||A.headers["Content-Type"]!=="application/json"||(D=y9s(G,K,u,c)),D)){var t=A.onSuccess,a=A.onFetchSuccess;A.onSuccess=function(Z,k){eOd(D);t(Z,k)};
K.onFetchSuccess=function(Z,k){eOd(D);a(Z,k)}}try{if(N&&W.retry&&!W.networklessOptions.bypassNetworkless)A.method="POST",W.networklessOptions.writeThenSend?_.gR4().writeThenSend(h,A):_.gR4().sendAndWrite(h,A);
else if(W.compress){var v=!W.networklessOptions.writeThenSend;if(A.postBody){var I=A.postBody;typeof I!=="string"&&(I=JSON.stringify(A.postBody));EeV(h,I,A,_.ix,v)}else EeV(h,JSON.stringify(A.postParams),A,PdJ,v)}else PdJ(h,A)}catch(Z){if(Z.name==="InvalidAccessError")D&&(eOd(D),D=0),_.V3(Error("ld"));else throw Z;}D&&_.rC(_.Fu,function(){xlG(m)},5E3)};
_.vEP()?d_G().then(function(N){J(N)}):J(!1)};var oVG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(oVG,_.pp);var OGS=0,sCP=_.zb?"webkit":_.lY?"moz":_.PX?"ms":zBl?"o":"";_.yj("ytDomDomGetNextId",_.Cn("ytDomDomGetNextId")||function(){return++OGS});var cMP={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},yl=function(m){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(m=
m||window.event){this.event=m;for(var G in m)G in cMP||(this[G]=m[G]);this.scale=m.scale;this.rotation=m.rotation;var K=m.target||m.srcElement;K&&K.nodeType==3&&(K=K.parentNode);this.target=K;var W=m.relatedTarget;if(W)try{W=W.nodeName?W:null}catch(L){W=null}else this.type=="mouseover"?W=m.fromElement:this.type=="mouseout"&&(W=m.toElement);this.relatedTarget=W;this.clientX=m.clientX!=void 0?m.clientX:m.pageX;this.clientY=m.clientY!=void 0?m.clientY:m.pageY;this.keyCode=m.keyCode?m.keyCode:m.which;
this.charCode=m.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=m.altKey;this.ctrlKey=m.ctrlKey;this.shiftKey=m.shiftKey;this.metaKey=m.metaKey;this.pageX_=m.pageX;this.pageY_=m.pageY}}catch(L){}},Yvl=function(m){if(document.body&&document.documentElement){var G=document.body.scrollTop+document.documentElement.scrollTop;
m.pageX_=m.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);m.pageY_=m.clientY+G}};
yl.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yl.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yl.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var PG=_.Ks.ytEventsEventsListeners||{};_.yj("ytEventsEventsListeners",PG);var kkd=_.Ks.ytEventsEventsCounter||{count:0};_.yj("ytEventsEventsCounter",kkd);var CKo=_.LV(function(){var m=!1;try{var G=Object.defineProperty({},"capture",{get:function(){m=!0}});
window.addEventListener("test",null,G)}catch(K){}return m});_.kJ(fS,_.Lt);fS.prototype.onMouseMove_=function(m){m.pageX_===void 0&&Yvl(m);var G=m.pageX_;m.pageY_===void 0&&Yvl(m);this.position_=new _.si(G,m.pageY_)};
fS.prototype.checkPosition_=function(){if(this.position_){var m=(0,_.xD)();if(this.previousTime_!=0){var G=this.previousPosition_,K=this.position_,W=G.x-K.x;G=G.y-K.y;W=Math.sqrt(W*W+G*G)/(m-this.previousTime_);this.cycles_[this.index_]=Math.abs((W-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(K=G=0;K<4;K++)G+=this.cycles_[K]||0;G>=3&&this.callback_();this.previousVelocity_=W}this.previousTime_=m;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
fS.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.VAv(this.mouseListenerKey_)};var eao={};var zzV=new _.$W("rawColdConfigGroup");var UWP=new _.$W("rawHotConfigGroup");var rMP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(rMP,_.pp);var aqG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(aqG,_.pp);var Yz=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m,500)};
_.n(Yz,_.pp);Yz.prototype.getPayloadCase=function(){return _.Te(this,uQR)};
Yz.prototype.getContext=function(){return _.RG(this,aqG,33)};
var uQR=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530,531,536,537,538,539];var ezd=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ezd,_.pp);var DW9=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(DW9,_.pp);DW9.prototype.setVideoId=function(m){return Gi(this,1,t5d,sO(m))};
DW9.prototype.getPlaylistId=function(){return _.Bt(this,gC(this,t5d,2))};
var t5d=[1,2];var Kc=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Kc,_.pp);Kc.prototype.getContext=function(){return _.RG(this,W$,1)};
Kc.prototype.getTier=function(){return _.gL(this,7)};
Kc.prototype.getRetryCount=function(){return _.Z5(this,11)};var h9k,RR,Ug;h9k=_.Ks.ytPubsubPubsubInstance||new _.Gd;RR=_.Ks.ytPubsubPubsubSubscribedKeys||{};Ug=_.Ks.ytPubsubPubsubTopicToKeys||{};_.fJo=_.Ks.ytPubsubPubsubIsSynchronous||{};_.Gd.prototype.subscribe=_.Gd.prototype.subscribe;_.Gd.prototype.unsubscribeByKey=_.Gd.prototype.unsubscribeByKey;_.Gd.prototype.publish=_.Gd.prototype.publish;_.Gd.prototype.clear=_.Gd.prototype.clear;_.yj("ytPubsubPubsubInstance",h9k);_.yj("ytPubsubPubsubTopicToKeys",Ug);_.yj("ytPubsubPubsubIsSynchronous",_.fJo);
_.yj("ytPubsubPubsubSubscribedKeys",RR);var ls=window;var AZ=_.F("web_enable_lifecycle_monitoring")&&Uy9()!==0,pUX=_.F("web_enable_lifecycle_monitoring");var JMk=function(m){var G=this;var K=K===void 0?0:K;var W=W===void 0?_.AA():W;this.JSC$11200_defaultPriority=K;this.scheduler=W;this.completedResolver=new _.yY;this.scheduledPayloads=m;for(m={i$jscomp$495:0};m.i$jscomp$495<this.scheduledPayloads.length;m={payload$jscomp$20:void 0,i$jscomp$495:m.i$jscomp$495},m.i$jscomp$495++)m.payload$jscomp$20=this.scheduledPayloads[m.i$jscomp$495],K=function(L){return function(){L.payload$jscomp$20.job();G.scheduledPayloads[L.i$jscomp$495].processed=!0;G.scheduledPayloads.every(function(A){return A.processed===
!0})&&G.completedResolver.resolve()}}(m),W=this.getPriority(m.payload$jscomp$20),W=this.scheduler.addJob(K,W),this.scheduledPayloads[m.i$jscomp$495]=Object.assign({},m.payload$jscomp$20,{job:K,
jobId:W})};
JMk.prototype.flushJobs=function(){var m=this,G=Array.from(this.scheduledPayloads.keys()).sort(function(W,L){return m.getPriority(m.scheduledPayloads[L])-m.getPriority(m.scheduledPayloads[W])});
G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=this.scheduledPayloads[K.value],K.jobId===void 0||K.processed||(this.scheduler.cancelJob(K.jobId),this.scheduler.addJob(K.job,10))};
JMk.prototype.cancel=function(){for(var m=_.g(this.scheduledPayloads),G=m.next();!G.done;G=m.next())G=G.value,G.jobId===void 0||G.processed||this.scheduler.cancelJob(G.jobId),G.processed=!0;this.completedResolver.resolve()};
JMk.prototype.getPriority=function(m){var G;return(G=m.priority)!=null?G:this.JSC$11200_defaultPriority};var wv=function(m){this.state=m;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};AZ&&zaV(this.state)};
wv.prototype.install=function(m){this.plugins.push(m);return this};
wv.prototype.uninstall=function(){var m=this;_.mb.apply(0,arguments).forEach(function(G){G=m.plugins.indexOf(G);G>-1&&m.plugins.splice(G,1)})};
wv.prototype.transition=function(m,G){var K=this;AZ&&lJG(this.state);var W=this.transitions.find(function(A){return Array.isArray(A.from)?A.from.find(function(O){return O===K.state&&A.to===m}):A.from===K.state&&A.to===m});
if(W){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);N6o(this,m,G);this.state=m;AZ&&zaV(this.state);W=W.action.bind(this);var L=this.plugins.filter(function(A){return A[m]}).map(function(A){return A[m]});
W(D_o(this,L),G)}else throw Error("md`"+this.state+"`"+m);};
var D_o=function(m,G){var K=G.filter(function(L){return t8R(m,L)===10}),W=G.filter(function(L){return t8R(m,L)!==10});
return m.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var L=_.mb.apply(0,arguments);return _.Y(function(A){if(A.nextAddress==1)return A.yield(m.runImmediateJobsAsync.apply(m,[K].concat(_.Bz(L))),2);m.setJobSetWithScheduledJobs.apply(m,[W].concat(_.Bz(L)));_.ey(A)})}:function(){var L=_.mb.apply(0,arguments);
m.runImmediateJobsSync.apply(m,[K].concat(_.Bz(L)));m.setJobSetWithScheduledJobs.apply(m,[W].concat(_.Bz(L)))}};
wv.prototype.runImmediateJobsSync=function(m){var G=_.mb.apply(1,arguments);_.AA();for(var K=_.g(m),W=K.next(),L={};!W.done;L={lifecycle$jscomp$2:void 0},W=K.next())L.lifecycle$jscomp$2=W.value,IC(function(A){return function(){Fd2(A.lifecycle$jscomp$2.name);MAG(function(){return A.lifecycle$jscomp$2.callback.apply(A.lifecycle$jscomp$2,_.Bz(G))});
gv(A.lifecycle$jscomp$2.name)}}(L))};
wv.prototype.runImmediateJobsAsync=function(m){var G=_.mb.apply(1,arguments),K,W,L,A;return _.Y(function(O){O.nextAddress==1&&(_.AA(),K=_.g(m),W=K.next(),L={});if(O.nextAddress!=3){if(W.done)return O.jumpTo(0);L.lifecycle$jscomp$3=W.value;L.asyncJobCompletion=void 0;A=function(c){return function(){Fd2(c.lifecycle$jscomp$3.name);var u=MAG(function(){return c.lifecycle$jscomp$3.callback.apply(c.lifecycle$jscomp$3,_.Bz(G))});
a6o(u)?c.asyncJobCompletion=_.F("web_lifecycle_error_handling_killswitch")?u.then(function(){gv(c.lifecycle$jscomp$3.name)}):u.then(function(){gv(c.lifecycle$jscomp$3.name)},function(h){BnG(h);
gv(c.lifecycle$jscomp$3.name)}):gv(c.lifecycle$jscomp$3.name)}}(L);
IC(A);return L.asyncJobCompletion?O.yield(L.asyncJobCompletion,3):O.jumpTo(3)}L={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};W=K.next();return O.jumpTo(2)})};
wv.prototype.setJobSetWithScheduledJobs=function(m){var G=_.mb.apply(1,arguments),K=this,W=m.map(function(L){return{job:function(){Fd2(L.name);MAG(function(){return L.callback.apply(L,_.Bz(G))});
gv(L.name)},
priority:t8R(K,L)}});
W.length&&(this.jobSet=new JMk(W))};
var t8R=function(m,G){var K,W;return(W=(K=m.overridePriority)!=null?K:G.priority)!=null?W:0},Fd2=function(m){AZ&&m&&zaV(m)},gv=function(m){AZ&&m&&lJG(m)},N6o=function(m,G,K){pUX&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+m.constructor.name+"] '"+m.state+"' to '"+G+"'"),console.log("with message: ",K),console.groupEnd())};
_.e_.Object.defineProperties(wv.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var QWB=function(m){wv.call(this,m===void 0?"none":m);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(){}}]},alS;
_.n(QWB,wv);QWB.prototype.runApplicationNavigationBegin=function(m,G){var K=this;this.navigationTimer=_.rC(_.Fu,function(){K.currentState==="application_navigating"&&K.transition("none")},5E3);
m(G==null?void 0:G.event)};
QWB.prototype.runApplicationNavigationEnd=function(m,G){this.navigationTimer&&(_.Fu.cancelJob(this.navigationTimer),this.navigationTimer=null);m(G==null?void 0:G.event)};
_.Rzd=function(){alS||(alS=new QWB);return alS};var STd=[];_.yj("yt.logging.transport.getScrapedGelPayloads",function(){return STd});var BG=function(){var m=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return m.totalEntries}}};
BG.prototype.storePayload=function(m,G){m=Tnd(m);this.store[m]?this.store[m].push(G):(this.memoizedKeySequences={},this.store[m]=[G]);this.totalEntries++;_.F("more_accurate_gel_parser")&&(G=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(G));return m};
BG.prototype.smartExtractMatchingEntries=function(m){if(!m.keys.length)return[];for(var G=oRl(this,m.keys.splice(0,1)[0]),K=[],W=0;W<G.length;W++)this.store[G[W]]&&m.sizeLimit&&(this.store[G[W]].length<=m.sizeLimit?(K.push.apply(K,_.Bz(this.store[G[W]])),delete this.store[G[W]]):K.push.apply(K,_.Bz(this.store[G[W]].splice(0,m.sizeLimit))));this.totalEntries-=K.length;(m==null?0:m.sizeLimit)&&K.length<(m==null?void 0:m.sizeLimit)&&(m.sizeLimit-=K.length,K.push.apply(K,_.Bz(this.smartExtractMatchingEntries(m))));
return K};
BG.prototype.extractMatchingEntries=function(m){m=oRl(this,m);for(var G=[],K=0;K<m.length;K++)this.store[m[K]]&&(G.push.apply(G,_.Bz(this.store[m[K]])),delete this.store[m[K]]);this.totalEntries-=G.length;return G};
BG.prototype.getSequenceCount=function(m){m=oRl(this,m);for(var G=0,K=0;K<m.length;K++){var W=void 0;G+=((W=this.store[m[K]])==null?void 0:W.length)||0}return G};
var oRl=function(m,G){var K=Tnd(G);if(m.memoizedKeySequences[K])return m.memoizedKeySequences[K];var W=Object.keys(m.store)||[];if(W.length<=1&&Tnd(G)===W[0])return W;for(var L=[],A=0;A<W.length;A++){var O=W[A].split("/");if(nRl(G.auth,O[0])){var c=G.isJspb;nRl(c===void 0?"undefined":c?"true":"false",O[1])&&nRl(G.cttAuthInfo,O[2])&&(c=G.tier,c=c===void 0?"undefined":JSON.stringify(c),nRl(c,O[3])&&L.push(W[A]))}}return m.memoizedKeySequences[K]=L},nRl=function(m,G){return m===void 0||m==="undefined"?
!0:m===G};
BG.prototype.getSequenceCount=BG.prototype.getSequenceCount;BG.prototype.extractMatchingEntries=BG.prototype.extractMatchingEntries;BG.prototype.smartExtractMatchingEntries=BG.prototype.smartExtractMatchingEntries;BG.prototype.storePayload=BG.prototype.storePayload;var sL9,vgd,qTv,mm,bGF,TqJ,M5d,bzs,ngP,ukP,$WF,xWd,QLV;sL9=_.U8("initial_gel_batch_timeout",2E3);vgd=_.U8("gel_queue_timeout_max_ms",6E4);qTv=_.U8("gel_min_batch_size",5);mm=void 0;bGF=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
TqJ=new bGF;M5d=new bGF;bzs=new bGF;ngP=new bGF;$WF=!0;xWd=1;_.fgJ=new Map;QLV=_.Ks.ytLoggingTransportTokensToCttTargetIds_||{};_.yj("ytLoggingTransportTokensToCttTargetIds_",QLV);var FrG=_.Ks.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.yj("ytLoggingTransportTokensToJspbCttTargetIds_",FrG);var T6={};var pc=_.Ks.ytLoggingGelSequenceIdObj_||{};_.yj("ytLoggingGelSequenceIdObj_",pc);var G_d=[];var hxd=new Set,wRG=0,NHM=0,J3V=0,OQM=[],gAd=[],DBd=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var HQd=function(){};
HQd.prototype.getUrl=function(m,G){G=G===void 0?!1:G;return m.hasOwnProperty("shareEndpoint")?null:_.aEd(m,null,G)};
var jZf=function(m,G,K){m={endpoint:G,actions:[]};K=(K.path?K.path[0]:K.target).icon||"";G=K.indexOf(":");G>0&&(K=K.substr(G+1));K&&m.actions.push(K);return m};var sT9=/Command$/,$BV=/Endpoint$/,nA6=new Map;var vRo,$_B;vRo=1;_.Im=function(){this.actionRoutingMap=new Map};
_.Im.prototype.triggerAction=function(m){var G=new i8o(m,!1,_.mb.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.Im.prototype.triggerOptionalAction=function(m){var G=new i8o(m,!0,_.mb.apply(1,arguments));this.handleAction(G);return G.returnValue};
_.OL=function(m,G,K){G.forEach(function(W){var L=vAf(W);L&&m.triggerOptionalAction(L,W,K,void 0)})};
_.Im.prototype.handleAction=function(m){var G=this.actionRoutingMap.get(m.actionName);G&&$_B(m,G);m.optionalAction||m.returnValue.length!==0||(m=new _.cw("Unhandled action",m.actionName),_.V3(m))};
$_B=function(m,G){G.forEach(function(K){var W=null;K?W=K.apply(null,m.args):(K=Error("nd"),K.params=m.actionName,_.j1(K));m.returnValue.push(W)})};
_.jN=function(m,G,K){K||(K=vRo++);for(var W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next()){L=L.value;var A=m.actionRoutingMap.get(L);A||(A=new Map,m.actionRoutingMap.set(L,A));m.registerActionHandler(K,L,G[L],A)}return K};
_.Im.prototype.registerActionHandler=function(m,G,K,W){W.set(m,_.kS(K))};
_.kz=function(m,G,K){G=_.g(Object.keys(G));for(var W=G.next();!W.done;W=G.next())(W=m.actionRoutingMap.get(W.value))&&W.delete(K)};
_.IB(_.Im);var k_V=function(m,G){var K=_.Im.getInstance();_.bX(function(){var W={},L=_.jN(K,(W[m]=G,W));_.sZ(function(){var A={};_.kz(K,(A[m]="",A),L)})})};jls=uAs;var lE9=new Set(["For","If","Match","Watch"]),sW4={},qvF=(sW4[kO.default]=function(){return vTJ},sW4.style=function(){return vTJ},sW4),ERC;
for(ERC in qvF)Bg.attributes[ERC]=qvF[ERC](Bg.attributes[ERC]);var yb=new _.sX("VISIBILITY_OBSERVER");var AX6={retrieve:function(m){return this.id.\u0275prov.token===m.\u0275prov.token?this.contextValue:this?Ri(this,this.id):FfM}};var HGl=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(m){}var IlX=typeof WeakRef==="function";var jWC=function(m){this.value=m};
jWC.prototype.deref=function(){return this.value};
var kvB=IlX?WeakRef:jWC,Cw0=function(m){this.newKeyHandler=m;this.map=new WeakMap};
Cw0.prototype.add=function(m,G){this.map.has(m)||(this.newKeyHandler(m),this.map.set(m,[]));this.map.get(m).push(new kvB(G))};
Cw0.prototype.get=function(m){var G=this;return function W(){var L,A,O,c,u,h,J,N,D,t,a;return _.fm(W,function(v){switch(v.nextAddress){case 1:_.Ve(v,2);L=G.map.get(m);if(!L)return v.return();A=0;O=_.g(L);c=O.next();case 4:if(c.done){v.jumpTo(6);break}u=c.value;h=u.deref();if(!h){v.jumpTo(5);break}A++;J=_.x1;return v.yield(h,8);case 8:J(v.yieldResult);case 5:c=O.next();v.jumpTo(4);break;case 6:if(2*A<L.length){N=0;D=_.g(L);for(t=D.next();!t.done;t=D.next())a=t.value,a.deref()&&(L[N++]=a);L.length=
N}case 2:_.CZ(v),_.ZO(v,0)}})}()};var V8C=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},rXM=new Cw0(function(m){m.addEventListener("abort",h3f,{once:!0})}),YUf=new WeakMap,ZG2=function(m){m=m===void 0?c0:m;
this.signal=new m};
ZG2.prototype.abort=function(m){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=m,m=new Event("abort"),this.signal.dispatchEvent(m))};
var c0=function(){this.target=V8C();this.aborted=!1;this.onabort=null};
c0.prototype.throwIfAborted=function(){cXM.call(this)};
c0.prototype.addEventListener=function(m,G,K){this.target.addEventListener(m,G,K)};
c0.prototype.removeEventListener=function(m,G,K){this.target.removeEventListener(m,G,K)};
c0.prototype.dispatchEvent=function(m){if(this.onabort&&m.type==="abort")this.onabort(m);return this.target.dispatchEvent(m)};
c0.abort=OmG;c0.timeout=pYJ;c0.any=uwG;var g1F=HGl?AbortController:ZG2,YK=HGl?AbortSignal:c0;typeof YK.abort!=="function"&&(YK.abort=OmG);typeof YK.prototype.throwIfAborted!=="function"&&(YK.prototype.throwIfAborted=cXM);typeof YK.any!=="function"&&(YK.any=uwG);typeof YK.timeout!=="function"&&(YK.timeout=pYJ);var fc=null,NSG=new Map;var d_B=function(m){m=m.clone();ra0(m);T5(m,"dg",null);T5(m,"d","0");gNK(m,null);OCB(m,null);return m},PwS=!0,yMC=function(m,G,K){var W=K===void 0?{}:K;
K=W.cssRowKey===void 0?void 0:W.cssRowKey;var L=W.combinedSignature===void 0?void 0:W.combinedSignature;var A=W.extraEdges===void 0?void 0:W.extraEdges;W=W.callback===void 0?void 0:W.callback;T5(m,"m",G.join(","));A&&Ypo(m,A);K&&(T5(m,"ck",K),L?T5(m,"rs",L):PwS&&(PwS=!1));if(W){if(W!=null&&!pvG.test(W))throw Error("Ya`"+W);T5(m,"cb",W)}m=m.toString();_.AV(m,"/")&&(m=U7v(document.location.href)+m);return _.PN(m)};var flX=function(m){return e9l(m).then(function(G){return JSON.parse(G.responseText)})},e9l=function(m){var G={},K=G.xmlHttpFactory?G.xmlHttpFactory.createInstance():jPF.createInstance();
return(new _.iO(function(W,L){var A;try{K.open("GET",m,!0)}catch(u){L(new rv("Error opening XHR: "+u.message,m,K))}K.onreadystatechange=function(){if(K.readyState==4){_.Ks.clearTimeout(A);var u;!(u=I00(K.status))&&(u=K.status===0)&&(u=SRs(m),u=!(u=="http"||u=="https"||u==""));u?W(K):L(new x_F(K.status,m,K))}};
K.onerror=function(){L(new rv("Network error",m,K))};
if(G.headers)for(var O in G.headers){var c=G.headers[O];c!=null&&K.setRequestHeader(O,c)}G.withCredentials&&(K.withCredentials=G.withCredentials);G.responseType&&(K.responseType=G.responseType);G.mimeType&&K.overrideMimeType(G.mimeType);G.timeoutMs>0&&(A=_.Ks.setTimeout(function(){K.onreadystatechange=function(){};
K.abort();L(new XUC(m,K))},G.timeoutMs));
try{K.send(null)}catch(u){K.onreadystatechange=function(){},_.Ks.clearTimeout(A),L(new rv("Error sending XHR: "+u.message,m,K))}})).thenCatch(function(W){W instanceof _.uG&&K.abort();
throw W;})},rv=function(m,G,K){_.mv.call(this,m+", url="+G);
this.url=G;this.xhr=K};
_.kJ(rv,_.mv);rv.prototype.name="XhrError";var x_F=function(m,G,K){rv.call(this,"Request Failed, status="+m,G,K);this.status=m};
_.kJ(x_F,rv);x_F.prototype.name="XhrHttpError";var XUC=function(m,G){rv.call(this,"Request timed out",m,G)};
_.kJ(XUC,rv);XUC.prototype.name="XhrTimeoutError";HX=HX||{};_.kJ(tqs,_.Lt);tqs.prototype.initialize=function(){};
HX.BaseModule=tqs;FFd.prototype.execute=function(m){this.fn_&&(this.fn_.call(this.handler_||null,m),this.fn_=this.handler_=null)};
FFd.prototype.abort=function(){this.handler_=this.fn_=null};
HX.ModuleLoadCallback=FFd;_.kJ(xz,_.Lt);xz.prototype.moduleConstructor_=HX.BaseModule;xz.prototype.module_=null;xz.prototype.getId=function(){return this.JSC$11355_id_};
xz.prototype.registerCallback=function(m,G){return uD(this.onloadCallbacks_,m,G)};
var Sv2=function(m,G){uD(m.onErrorCallbacks_,G)},uD=function(m,G,K){G=new HX.ModuleLoadCallback(G,K);
m.push(G);return G};
xz.prototype.isLoaded=function(){return!!this.module_};
xz.prototype.onLoad=function(m){var G=new this.moduleConstructor_;G.initialize(m());this.module_=G;G=(G=R9l(this.earlyOnloadCallbacks_,m()))||R9l(this.onloadCallbacks_,m());G||(this.onErrorCallbacks_.length=0);return G};
xz.prototype.onError=function(m){(m=R9l(this.onErrorCallbacks_,m))&&WJ(Error("td`"+m));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var R9l=function(m,G){for(var K=[],W=0;W<m.length;W++)try{m[W].execute(G)}catch(L){WJ(L),K.push(L)}m.length=0;return K.length?K:null};
xz.prototype.disposeInternal=function(){xz.superClass_.disposeInternal.call(this);_.I$(this.module_)};
HX.ModuleInfo=xz;var U_S,mgR,M8o,T6P,llK,B6R,LoC,Ko0,WoR;
_.SN=function(m,G,K,W,L){W=W===void 0?!1:W;L=L===void 0?!1:L;var A=A===void 0?!0:A;this.scsReferenceUrl_=XGo(_.yG(m).toString(),A);this.cssRowKey_=G;this.combinedSignature_=K;this.useNegativeLoading_=W;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(m=M3(this.scsReferenceUrl_,"excm"))?m.split(","):[];this.shouldScanForCss_=L;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;SgG();_.hZ(this,cal(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
U_S=function(m,G){if(G.href||G.getAttribute("data-href"))if(G=G.href||G.getAttribute("data-href"),ygd(G)&&!XGo(G).urlPrefix_.endsWith("_/js/")){G=cal(XGo(G));G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,m.loadedCssModuleList_.includes(K)||m.loadedCssModuleList_.push(K)}};
_.SN.prototype.loadModules=function(m,G,K){var W=K===void 0?{}:K;G=W.extraEdges;K=W.onError;var L=W.onSuccess;W=W.forceReload;if(!m)throw Error("ud");if(this.shouldScanForCss_){for(var A=_.g(document.getElementsByTagName("style")),O=A.next();!O.done;O=A.next())U_S(this,O.value);A=_.g(document.getElementsByTagName("link"));for(O=A.next();!O.done;O=A.next())U_S(this,O.value)}z9R(this,llK(this,m),G,K,L,W)};
var z9R=function(m,G,K,W,L,A){W=W===void 0?function(){}:W;
L=L===void 0?function(){}:L;
A=A===void 0?!1:A;B6R(m,G,function(O,c,u){u=u===void 0?c:u;m.enableFallbackFetch&&A?m.loadWithFetch(O,c,W,L,u):m.load(O,c,W,L,u,K)},K)||W(-1)};
_.SN.prototype.loadWithFetch=function(){_.Y(function(){throw Error("vd");})};
_.SN.prototype.maybeSetAdditionalFields=function(){};
mgR=function(m,G,K){if(m.useNegativeLoading_){var W=m.scsReferenceUrl_;m={cssRowKey:m.cssRowKey_,combinedSignature:m.combinedSignature_,extraEdges:K,requestedModuleIds:M8o(m),requestedCssModuleIds:T6P(m)};var L=m===void 0?{}:m;m=L.requestedModuleIds===void 0?[]:L.requestedModuleIds;K=L.requestedCssModuleIds===void 0?[]:L.requestedCssModuleIds;var A=L.cssRowKey===void 0?void 0:L.cssRowKey;var O=L.combinedSignature===void 0?void 0:L.combinedSignature;var c=L.extraEdges===void 0?void 0:L.extraEdges;
L=L.callback===void 0?void 0:L.callback;W=d_B(W);T5(W,"d","1");gNK(W,m);OCB(W,K);G=yMC(W,G,{cssRowKey:A,combinedSignature:O,extraEdges:c,callback:L})}else W=m.scsReferenceUrl_,m={cssRowKey:m.cssRowKey_,combinedSignature:m.combinedSignature_,requestedModuleIds:M8o(m),requestedCssModuleIds:T6P(m)},c=m===void 0?{}:m,m=c.requestedCssModuleIds===void 0?[]:c.requestedCssModuleIds,K=c.cssRowKey===void 0?void 0:c.cssRowKey,A=c.combinedSignature===void 0?void 0:c.combinedSignature,O=c.extraEdges===void 0?
void 0:c.extraEdges,c=c.callback===void 0?void 0:c.callback,W=d_B(W),OCB(W,m),G=yMC(W,G,{cssRowKey:K,combinedSignature:A,extraEdges:O,callback:c});return G};
_.hZ=function(m,G){for(var K=!1,W=[],L=0;L<G.length;++L){var A=G[L];m.requestedModuleMap_[A]||(m.requestedModuleMap_[A]=!0,m.requestedModuleList_.push(A),K=!0,W.push(A))}K&&(m.requestedModuleListSorted_=!1)};
_.p2=function(m,G){for(var K=[],W=0;W<G.length;++W){var L=G[W];m.requestedModuleMap_[L]&&(delete m.requestedModuleMap_[L],_.PJ(m.requestedModuleList_,L),K.push(L))}};
_.SN.prototype.load=function(m,G,K,W,L){L=L===void 0?G:L;_.yG(m);var A=this.useCors_,O=this.corsMode_,c=this.fetchPriority,u=_.M7("SCRIPT");_.Jt(u,m);A&&(u.crossOrigin=O);u.async=!1;c&&u.setAttribute("fetchpriority",c);_.hZ(this,G);_.ir0(this,m,u,G,K,W,L)};
_.ir0=function(m,G,K,W,L,A,O){O=O===void 0?W:O;m.lastScript_=K;m.insertPos.insertBefore(K,m.insertPos.firstChild);_.GhG(K,W,function(){K.parentElement.removeChild(K);m.lastScript_==K&&(m.lastScript_=null);A()},function(c){K.parentElement.removeChild(K);
m.lastScript_==K&&(m.lastScript_=null);_.p2(m,c);m.pendingModuleGraphUpdate_?m.pendingModuleGraphUpdate_.then(function(){L(-1,G)}):L(-1,G)},O)};
_.GhG=function(m,G,K,W,L){L=L===void 0?G:L;var A=G.length,O=function(){A=0;m.onload=null;m.onerror=null;c=function(){}},c=function(){O();
var h=L.filter(function(J){return!F6().getModuleInfo(J).isLoaded()});
h.length!==0?W(h,"Response was successful but was missing module(s) "+h+"."):K()},u=function(){A--;
A==0&&c()};
G.forEach(function(h){h=F6().getModuleInfo(h);h.isLoaded()?u():(uD(h.earlyOnloadCallbacks_,u),Sv2(h,u))});
m.onload=function(){return c()};
m.onerror=function(){O();W(G)}};
M8o=function(m){m.requestedModuleListSorted_||(m.requestedModuleListSorted_=!0,m.requestedModuleList_.sort());return m.requestedModuleList_};
T6P=function(m){m=m.loadedCssModuleList_;m.sort();return m};
llK=function(m,G){return G.filter(function(K){return!m.requestedModuleMap_[K]})};
B6R=function(m,G,K,W){if(m.pendingModuleGraphUpdate_)return m.pendingModuleGraphUpdate_.then(function(){B6R(m,G,K,W)}),!0;
if(!m.useNegativeLoading_){var L=[],A=Object.assign({},m.requestedModuleMap_);Ko0(m,G,function(J){L.push(J.getId())},W,function(J){return!J.isLoaded()},A);
G=L}for(A=0;A<G.length;){for(var O=G.length-A,c=A==0?G:G.slice(A,G.length),u=mgR(m,c,W),h=_.yG(u).toString();h.length>m.urlMaxLength;)if(O>1)O-=Math.ceil((h.length-m.urlMaxLength)/6),O=Math.max(O,1),c=G.slice(A,A+O),u=mgR(m,c,W),h=_.yG(u).toString();else return m.useNegativeLoading_?(m.useNegativeLoading_=!1,m.pendingModuleGraphUpdate_=WoR(m).then(function(J){LoC(m,J,W)}),B6R(m,G.slice(A),K,W)):!1;
A+=O;m.useNegativeLoading_?K(u,c):K(u,c,A===G.length?G:[])}return!0};
LoC=function(m,G,K){F6().setAllModuleInfoString((G||{}).moduleGraph);Ko0(m,M8o(m),function(W){_.hZ(m,[W.getId()])},K);
m.pendingModuleGraphUpdate_=null};
Ko0=function(m,G,K,W,L,A){A=A===void 0?{}:A;var O=F6();G=_.g(G);for(var c=G.next();!c.done;c=G.next()){c=c.value;var u=O.getModuleInfo(c);if(!(A[c]||L&&!L(u))){A[c]=!0;var h=u.deps_||[];if(W){var J=[];W[c]&&(J=Object.keys(W[c]));h=h.concat(J)}Ko0(m,h,K,W,L,A);K(u)}}};
WoR=function(m){m=m.scsReferenceUrl_.clone();ra0(m);T5(m,"dg",null);T5(m,"md","1");return flX(m.toString())};var QxG=new Uint8Array(123);var AKK=[];var we0=function(){this.JSC$10361_loader_=null};
_.w=we0.prototype;_.w.setBatchModeEnabled=function(){};
_.w.setAllModuleInfoString=function(){};
_.w.addExtraEdge=function(){throw Error("wd");};
_.w.removeExtraEdge=function(){throw Error("xd");};
_.w.getModuleContext=function(){return null};
_.w.isActive=function(){return!1};
_.w.isUserActive=function(){return!1};
_.w.registerInitializationCallback=function(){};
_.w.registerCallback=function(){};var JZ=function(m,G,K,W,L){var A=Error.call(this);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.name="ModuleLoadFailure";this.type=m;this.status=G;this.requestedModuleIds=K;this.url=W;this.cause=L;this.message=this.toString()};
_.n(JZ,Error);JZ.prototype.toString=function(){return gCi(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var gCi=function(m){switch(m.type){case JZ.Type.UNAUTHORIZED:return"Unauthorized";case JZ.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case JZ.Type.TIMEOUT:return"Timed out";case JZ.Type.OLD_CODE_GONE:return"Out of date module id";case JZ.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+m.type}};
HX.ModuleLoadFailure=JZ;HX.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Nh=function(){this.moduleIds_=this.JSC$10361_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11373_extraEdges_={};this.JSC$11373_callbackMap_={};this.JSC$11373_currentlyLoadingModule_=this.baseModuleInfo_=new HX.ModuleInfo([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new rM;this.isDisposed_=this.userLastActive_=this.lastActive_=
this.batchModeEnabled_=!1};
_.kJ(Nh,we0);var OrS=function(m,G){_.mv.call(this,"Error loading "+m+": "+G)};
_.kJ(OrS,_.mv);Nh.prototype.setBatchModeEnabled=function(m){this.batchModeEnabled_=m};
Nh.prototype.setAllModuleInfoString=function(m,G){if(!(this instanceof Nh))this.setAllModuleInfoString(m,G);else if(typeof m==="string"){if(m.startsWith("d$")){m=m.substring(2);for(var K=[],W=0,L=m.indexOf("/"),A=0,O=!1,c=0;;){var u=O?m.substring(A):m.substring(A,L);if(u.length===0)W++,A="sy"+W.toString(36),u=[];else{var h=u.indexOf(":");if(h<0)A=u,u=[];else if(h===u.length-1)A=u.substring(0,h),u=Array(K[c-1]);else{A=u.substring(0,h);u=u.substring(h+1).split(",");h=c;for(var J=0;J<u.length;J++)h-=
u[J].length===0?1:Number(u[J]),u[J]=K[h]}h=0;if(A.length===0)h=1;else if(A.charAt(0)==="+"||A.charAt(0)==="-")h=Number(A);h!==0&&(W+=h,A="sy"+W.toString(36))}K.push(A);cKB(this,A,u);if(O)break;A=L+1;L=m.indexOf("/",A);L===-1&&(O=!0);c++}this.moduleIds_=K}else if(m.startsWith("p$"))YMS(this,m);else{m=m.split("/");K=[];for(W=0;W<m.length;W++){c=m[W].split(":");L=c[0];O=[];if(c[1])for(O=c[1].split(","),c=0;c<O.length;c++)O[c]=K[parseInt(O[c],36)];K.push(L);cKB(this,L,O)}this.moduleIds_=K}G&&G.length?
(_.RM(this.loadingModuleIds_,G),this.lastInitialModuleId_=_.HJ(G)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11373_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11373_currentlyLoadingModule_=null,(G=this.baseModuleInfo_.onLoad((0,_.AO)(this.getModuleContext,this)))&&G.length&&rKK(this,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,G[0])),Dz(this))}};
var YMS=function(m,G){var K=G.substring(2);for(G=0;G<64;G++)QxG["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(G)]=G;var W={buf:K,pos:0};Xx(W);var L=Xx(W),A=Xx(W)+1;G=Array(L);var O=Array(L),c=Array(L);A=Array(A);var u=0,h=0,J=W.pos,N=W.buf.indexOf("|",W.pos);W.pos=N+1;for(N=0;N<L;N++){var D=Xx(W),t=D&2,a=D&1;D>>>=2;a?(u+=D>>>1^-(D&1),D="sy"+u.toString(36)):(a=J,J+=D,D=K.substring(a,J));G[N]=D;t&&(A[h++]=D)}A[h]="";W.pos++;h=L&-2;K=L&1;for(u=0;u<h;u+=2)J=akd(W),c[u]=
J&7,c[u+1]=J>>>3&7;K&&(K=akd(W),c[h]=K&7);W.pos++;for(h=0;h<L;h++)c[h]===7&&(c[h]=Xx(W));W.pos++;for(K=h=0;K<L;K++){u=c[K];J=u===0?AKK:Array(u);O[K]=J;N=h;for(t=0;t<u;t++)N-=Xx(W),J[t]=A[N];A[h]===G[K]&&h++}for(W=0;W<G.length;W++)cKB(m,G[W],O[W]);m.moduleIds_=G};
_.w=Nh.prototype;_.w.getModuleInfo=function(m){return this.moduleInfoMap[m]};
_.w.addExtraEdge=function(m,G){var K=this.getModuleInfo(m);K&&K.isLoaded()?this.load(G):(this.JSC$11373_extraEdges_[m]||(this.JSC$11373_extraEdges_[m]={}),this.JSC$11373_extraEdges_[m][G]=!0)};
_.w.removeExtraEdge=function(m,G){if(this.JSC$11373_extraEdges_[m]){delete this.JSC$11373_extraEdges_[m][G];for(var K in this.JSC$11373_extraEdges_[m])return;delete this.JSC$11373_extraEdges_[m]}};
_.w.isActive=function(){return this.loadingModuleIds_.length>0};
_.w.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Dz=function(m){var G=m.lastActive_,K=m.isActive();K!=G&&(m.executeCallbacks_(K?"active":"idle"),m.lastActive_=K);G=m.isUserActive();G!=m.userLastActive_&&(m.executeCallbacks_(G?"userActive":"userIdle"),m.userLastActive_=G)},cKB=function(m,G,K){m.moduleInfoMap[G]?(m=m.moduleInfoMap[G].deps_,m!=K&&m.splice.apply(m,[0,
m.length].concat(_.Bz(K)))):m.moduleInfoMap[G]=new HX.ModuleInfo(K,G)},hgC=function(m,G,K){var W=[];
jMP(G,W);G=[];for(var L={},A=0;A<W.length;A++){var O=W[A],c=m.getModuleInfo(O);if(!c)throw Error("yd`"+O);var u=new rM;L[O]=u;c.isLoaded()?u.callback(null):(uCC(m,O,c,!!K,u),m.isModuleLoading(O)||G.push(O))}G.length>0&&(m.loadingModuleIds_.length===0?m.loadModules_(G):(m.requestedModuleIdsQueue_.push(G),Dz(m)));return L},uCC=function(m,G,K,W,L){K.registerCallback(L.callback,L);
Sv2(K,function(A){L.errback(new OrS(G,A))});
m.isModuleLoading(G)?W&&(pe0(m,G),Dz(m)):W&&pe0(m,G)};
Nh.prototype.loadModules_=function(m,G,K){var W=this;G=G===void 0?0:G;var L=JKX(this,m);this.loadingModuleIds_=L;this.requestedLoadingModuleIds_=this.batchModeEnabled_?m:_.yf(L);Dz(this);if(L.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,L);m=this.JSC$10361_loader_;if(!m)throw Error("zd");if(Object.keys(this.JSC$11373_extraEdges_).length>0&&!m.supportsExtraEdges)throw Error("Ad");K=(0,_.AO)(m.loadModules,m,_.yf(L),this.moduleInfoMap,{extraEdges:this.JSC$11373_extraEdges_,
forceReload:!!K,onError:function(A,O,c){var u=W.requestedLoadingModuleIds_;A=A!=null?A:void 0;var h=G;c=c===void 0?!1:c;c=(c===void 0?0:c)?0:(h===void 0?0:h)+1;h=_.yf(L);W.requestedLoadingModuleIds_=u;L.forEach(_.BH(_.PJ,W.requestedModuleIds_),W);A==401?(rKK(W,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.UNAUTHORIZED,A)),W.requestedModuleIdsQueue_.length=0):A==410?(NF0(W,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.OLD_CODE_GONE,A)),DgF(W)):c>=3?(NF0(W,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
A,h,O)),DgF(W)):W.loadModules_(W.requestedLoadingModuleIds_,c,A==8001||!1)},
onTimeout:(0,_.AO)(this.handleLoadTimeout_,this)});(m=Math.pow(G,2)*5E3)?_.Ks.setTimeout(K,m):K()}};
var JKX=function(m,G){G=G.filter(function(L){return m.moduleInfoMap[L].isLoaded()?(_.Ks.setTimeout(function(){return Error("Bd`"+L)},0),!1):!0});
for(var K=[],W=0;W<G.length;W++)K=K.concat(tb2(m,G[W]));jMP(K);return!m.batchModeEnabled_&&K.length>1?(G=K.shift(),m.requestedModuleIdsQueue_=K.map(function(L){return[L]}).concat(m.requestedModuleIdsQueue_),[G]):K},tb2=function(m,G){var K=_.Y2.createSet(m.requestedModuleIds_),W=[];
K[G]||W.push(G);G=[G];for(var L=0;L<G.length;L++)for(var A=m.getModuleInfo(G[L]).deps_,O=A.length-1;O>=0;O--){var c=A[O];m.getModuleInfo(c).isLoaded()||K[c]||(W.push(c),G.push(c))}W.reverse();jMP(W);return W};
Nh.prototype.JSC$11368_setLoaded=function(){if(this.JSC$11373_currentlyLoadingModule_){var m=this.JSC$11373_currentlyLoadingModule_.getId(),G=[];if(this.JSC$11373_extraEdges_[m]){for(var K=_.g(Object.keys(this.JSC$11373_extraEdges_[m])),W=K.next();!W.done;W=K.next()){W=W.value;var L=this.getModuleInfo(W);L&&!L.isLoaded()&&(this.removeExtraEdge(m,W),G.push(W))}this.loadMultiple(G)}this.isDisposed()||((G=this.moduleInfoMap[m].onLoad((0,_.AO)(this.getModuleContext,this)))&&G.length&&rKK(this,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,G[0])),_.PJ(this.userInitiatedLoadingModuleIds_,m),_.PJ(this.loadingModuleIds_,m),this.loadingModuleIds_.length===0&&DgF(this),this.lastInitialModuleId_&&m==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Dz(this),this.JSC$11373_currentlyLoadingModule_=null)}};
Nh.prototype.isModuleLoading=function(m){if(_.Vf(this.loadingModuleIds_,m))return!0;for(var G=0;G<this.requestedModuleIdsQueue_.length;G++)if(_.Vf(this.requestedModuleIdsQueue_[G],m))return!0;return!1};
Nh.prototype.load=function(m,G){return hgC(this,[m],G)[m]};
Nh.prototype.loadMultiple=function(m){return hgC(this,m)};
var pe0=function(m,G){_.Vf(m.userInitiatedLoadingModuleIds_,G)||m.userInitiatedLoadingModuleIds_.push(G)};
Nh.prototype.beforeLoadModuleCode=function(m){var G=this;this.JSC$11373_currentlyLoadingModule_&&this.JSC$11373_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11368_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[m]&&FoS(this,this.moduleInfoMap[m].deps_||[],function(K){K.module_=new HX.BaseModule;_.PJ(G.loadingModuleIds_,K.getId())},function(K){return!K.isLoaded()});
this.JSC$11373_currentlyLoadingModule_=this.getModuleInfo(m)};
Nh.prototype.registerInitializationCallback=function(m){this.JSC$11373_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new HX.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11373_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);uD(this.JSC$11373_currentlyLoadingModule_.earlyOnloadCallbacks_,m)};
Nh.prototype.handleLoadTimeout_=function(){NF0(this,new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.TIMEOUT));DgF(this)};
var NF0=function(m,G){m.requestedLoadingModuleIds_.length>1?m.requestedModuleIdsQueue_=m.requestedLoadingModuleIds_.map(function(K){return[K]}).concat(m.requestedModuleIdsQueue_):rKK(m,G)},rKK=function(m,G){var K=m.requestedLoadingModuleIds_;
m.loadingModuleIds_.length=0;for(var W=[],L=0;L<m.requestedModuleIdsQueue_.length;L++){var A=m.requestedModuleIdsQueue_[L].filter(function(u){var h=tb2(this,u);return Vl(K,function(J){return _.Vf(h,J)})},m);
_.RM(W,A)}for(L=0;L<K.length;L++)_.qdM(W,K[L]);for(L=0;L<W.length;L++){for(A=0;A<m.requestedModuleIdsQueue_.length;A++)_.PJ(m.requestedModuleIdsQueue_[A],W[L]);_.PJ(m.userInitiatedLoadingModuleIds_,W[L])}if(L=m.JSC$11373_callbackMap_.error)for(A=0;A<L.length;A++)for(var O=L[A],c=0;c<W.length;c++)O("error",W[c],G);for(W=0;W<K.length;W++)if(m.moduleInfoMap[K[W]])m.moduleInfoMap[K[W]].onError(G);m.requestedLoadingModuleIds_.length=0;Dz(m)},DgF=function(m){for(;m.requestedModuleIdsQueue_.length;){var G=
m.requestedModuleIdsQueue_.shift().filter(function(K){return!this.getModuleInfo(K).isLoaded()},m);
if(G.length>0){m.loadModules_(G);return}}Dz(m)};
Nh.prototype.registerCallback=function(m,G){Array.isArray(m)||(m=[m]);for(var K=0;K<m.length;K++){var W=m[K],L=G,A=this.JSC$11373_callbackMap_;A[W]||(A[W]=[]);A[W].push(L)}};
Nh.prototype.executeCallbacks_=function(m){for(var G=this.JSC$11373_callbackMap_[m],K=0;G&&K<G.length;K++)G[K](m)};
var FoS=function(m,G,K,W,L){W=W===void 0?function(){return!0}:W;
L=L===void 0?{}:L;G=_.g(G);for(var A=G.next();!A.done;A=G.next()){A=A.value;var O=m.getModuleInfo(A);!L[A]&&W(O)&&(L[A]=!0,FoS(m,O.deps_||[],K,W,L),K(O))}};
Nh.prototype.dispose=function(){_.ja(_.Y2.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11373_callbackMap_={};this.isDisposed_=!0};
Nh.prototype.isDisposed=function(){return this.isDisposed_};
_.tO=function(){return new Nh};var Qt4=[5E3,2E4],C60=function(){this.JSC$10361_loader_=null;this.JSC$11381_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11381_queue_=[];this.JSC$11381_extraEdges_=Object.create(null);this.JSC$11381_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.n(C60,we0);_.w=C60.prototype;_.w.setAllModuleInfoString=function(){this.JSC$11381_currentlyLoadingModule_&&this.JSC$11381_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11368_setLoaded()};
_.w.getModuleInfo=function(m){var G=this.JSC$11381_moduleInfoMap_[m];G||(G=new HX.ModuleInfo([],m),this.JSC$11381_moduleInfoMap_[m]=G);return G};
_.w.addExtraEdge=function(m,G){this.getModuleInfo(m).isLoaded()?this.load(G):(this.JSC$11381_extraEdges_[m]||(this.JSC$11381_extraEdges_[m]={}),this.JSC$11381_extraEdges_[m][G]=!0)};
_.w.removeExtraEdge=function(m,G){if(this.JSC$11381_extraEdges_[m]){delete this.JSC$11381_extraEdges_[m][G];for(var K in this.JSC$11381_extraEdges_[m])return;delete this.JSC$11381_extraEdges_[m]}};
_.w.isModuleLoading=function(m){return!!this.loadingModules_[m]};
_.w.load=function(m){a7l(this,[m]);return oCk(this,m)};
_.w.loadMultiple=function(m){var G=this,K=Object.create(null),W=[];m.forEach(function(L){K[L]||(K[L]=oCk(G,L),W.push(L))});
a7l(this,W);return K};
_.w.beforeLoadModuleCode=function(m){var G;((G=this.JSC$11381_currentlyLoadingModule_)==null?void 0:G.getId())==="synthetic_module_overhead"&&this.JSC$11368_setLoaded();var K,W;nCo(this,(W=(K=this.JSC$11381_moduleInfoMap_[m])==null?void 0:K.deps_)!=null?W:[],function(L){L.module_=new HX.BaseModule},function(L){return!L.isLoaded()});
this.JSC$11381_currentlyLoadingModule_=this.getModuleInfo(m)};
_.w.JSC$11368_setLoaded=function(){if(this.JSC$11381_currentlyLoadingModule_){var m=this.JSC$11381_currentlyLoadingModule_.getId(),G=[];if(this.JSC$11381_extraEdges_[m]){for(var K=_.g(Object.keys(this.JSC$11381_extraEdges_[m])),W=K.next();!W.done;W=K.next())W=W.value,this.getModuleInfo(W).isLoaded()||(this.removeExtraEdge(m,W),G.push(W));this.loadMultiple(G)}this.JSC$11381_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11381_currentlyLoadingModule_=null;(!this.isModuleLoading(m)&&/^sy[0-9a-z]{0,4}$/.test(m)||m==="synthetic_module_overhead")&&delete this.JSC$11381_moduleInfoMap_[m];this.unsetModulesAsLoading(m)}};
_.w.registerInitializationCallback=function(m){this.JSC$11381_currentlyLoadingModule_||(this.JSC$11381_moduleInfoMap_.synthetic_module_overhead=new HX.ModuleInfo([],"synthetic_module_overhead"),this.JSC$11381_currentlyLoadingModule_=this.JSC$11381_moduleInfoMap_.synthetic_module_overhead);uD(this.JSC$11381_currentlyLoadingModule_.earlyOnloadCallbacks_,m)};
_.w.setModulesAsLoading=function(){var m=this;_.mb.apply(0,arguments).forEach(function(G){m.loadingModules_[G]=!0})};
_.w.unsetModulesAsLoading=function(){var m=this;_.mb.apply(0,arguments).forEach(function(G){delete m.loadingModules_[G]})};
var oCk=function(m,G){return new _.iO(function(K,W){var L=m.getModuleInfo(G);L.isLoaded()?K(null):(L.registerCallback(function(){K(null)}),Sv2(L,function(A){var O="Error loading "+G+": "+A;
A instanceof HX.ModuleLoadFailure&&A.url&&(O=O+", requested url: "+A.url.toString());W(Error(O))}))})},a7l=function(m,G){G=G.filter(function(K){return!m.isModuleLoading(K)&&!m.getModuleInfo(K).isLoaded()});
G.length>0&&(m.setModulesAsLoading.apply(m,_.Bz(G)),m.JSC$11381_queue_.push(G),brB(m))},brB=function(m){for(var G={};m.activeLoads_<Infinity&&m.JSC$11381_queue_.length>0;G={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})G.ids$jscomp$37=m.JSC$11381_queue_.shift().filter(function(K){return!m.getModuleInfo(K).isLoaded()}),G.ids$jscomp$37.length>0&&(m.activeLoads_++,G.finishLoad=function(K){return function(){m.activeLoads_--;
brB(m);K.finishLoad=function(){}}}(G),_.gO(G.ids$jscomp$37.map(function(K){return oCk(m,K)})).then(function(K){return function(){(0,K.finishLoad)()}}(G)),G.attempt$jscomp$6=0,G.load$jscomp$1=function(K){return function(){if(Object.keys(m.JSC$11381_extraEdges_).length>0&&!m.JSC$10361_loader_.supportsExtraEdges)throw Error("Ad");
m.JSC$10361_loader_.loadModules(K.ids$jscomp$37,m.JSC$11381_moduleInfoMap_,{extraEdges:m.JSC$11381_extraEdges_,onError:function(W,L){var A=Qt4[K.attempt$jscomp$6++];A!==void 0?setTimeout(function(){(0,K.load$jscomp$1)()},A):(m.unsetModulesAsLoading.apply(m,_.Bz(K.ids$jscomp$37)),(0,K.finishLoad)(),K.ids$jscomp$37.forEach(function(O){O=m.getModuleInfo(O);
if(!O.isLoaded())O.onError(new HX.ModuleLoadFailure(HX.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,W,K.ids$jscomp$37,L))}))}})}}(G),(0,G.load$jscomp$1)())},nCo=function(m,G,K,W,L){W=W===void 0?function(){return!0}:W;
L=L===void 0?{}:L;G=_.g(G);for(var A=G.next();!A.done;A=G.next()){A=A.value;var O=m.getModuleInfo(A);!L[A]&&W(O)&&(L[A]=!0,nCo(m,O.deps_||[],K,W,L),K(O))}};var vCC=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var bmP=Symbol("Dd");window.JSCompiler_renameProperty=function(m){return m};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var $gF=!vCC||HTMLElement.es5Shimmed||_.Ks.Reflect===void 0||_.Ks.customElements===void 0||_.Ks.customElements.polyfillWrapFlushCallback||!1,stS,lvd=function(){var m=HTMLElement;if($gF)return m;if(stS!==void 0)return stS;var G=_.Ks.Reflect,K=function(){return G.construct(m,[],this.constructor)};
K.prototype=m.prototype;K.prototype.constructor=K;K.es5Shimmed=!0;Object.setPrototypeOf(K,m);return stS=K},qMB=!1;$gF||qMB||(qMB=!0,_.Ks.HTMLElement=lvd());/*

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 E1f=/(url\()([^)]*)(\))/g,sxd=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,qU6,Ur;var sp=!window.ShadyDOM||!window.ShadyDOM.inUse,ECS=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),HrX=!window.customElements.polyfillWrapFlushCallback,I7k;if(I7k=sp&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var jtG=new CSSStyleSheet;jtG.replaceSync("");var khC=document.createElement("div");khC.attachShadow({mode:"open"});khC.shadowRoot.adoptedStyleSheets=[jtG];I7k=khC.shadowRoot.adoptedStyleSheets[0]===jtG}catch(m){I7k=!1}
var C0S=I7k,VbR=window.Polymer&&window.Polymer.rootPath||IkG(document.baseURI||window.location.href),YN=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,yAF=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Iv=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ZrC=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,$N=window.Polymer&&window.Polymer.legacyOptimizations||!1,Hv=window.Polymer&&window.Polymer.legacyWarnings||!1,dgo=window.Polymer&&window.Polymer.syncInitialRender||
!1,uY=window.Polymer&&window.Polymer.legacyUndefined||!1,P0l=window.Polymer&&window.Polymer.orderedComputed||!1,tZ=window.Polymer&&window.Polymer.removeNestedTemplates||!1,FM=window.Polymer&&window.Polymer.fastDomIf||!1,Qv=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,yKF=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,egP=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var a9={},f7S={},pC=function(){return HTMLElement.apply(this,arguments)||this};
_.n(pC,HTMLElement);pC.import=function(m,G){return m?(m=a9[m]||f7S[m.toLowerCase()])&&G?m.querySelector(G):m:null};
pC.prototype.attributeChangedCallback=function(m,G,K){G!==K&&this.register()};
pC.prototype.register=function(m){if(m=m||this.id){if(Iv&&(a9[m]||f7S[m.toLowerCase()])!==void 0)throw a9[m]=f7S[m.toLowerCase()]=null,Error("Ed`"+m);this.id=m;a9[m]=f7S[m.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.e_.Object.defineProperties(pC.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var m=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;m=_.zi(this.getAttribute("assetpath")||"",m.baseURI);this.__assetpath=IkG(m)}return this.__assetpath}}});
_.e_.Object.defineProperties(pC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
pC["import"]=pC.import;pC.prototype.modules=a9;customElements.define("dom-module",pC);var xg2=0,knd=0,lO=[],XeX=0,jxv=!1,SMC=document.createTextNode(""),Rg0,bY;(new window.MutationObserver(CG9)).observe(SMC,{characterData:!0});_.o9={after:function(m){return{run:function(G){return window.setTimeout(G,m)},
cancel:function(G){window.clearTimeout(G)}}},
run:function(m,G){return window.setTimeout(m,G)},
cancel:function(m){window.clearTimeout(m)}};
_.Gk={run:function(m){return window.requestAnimationFrame(m)},
cancel:function(m){window.cancelAnimationFrame(m)}};
Rg0={run:function(m){return window.requestIdleCallback?window.requestIdleCallback(m):window.setTimeout(m,16)},
cancel:function(m){window.cancelIdleCallback?window.cancelIdleCallback(m):window.clearTimeout(m)}};
bY={run:function(m){jxv||(jxv=!0,SMC.textContent=XeX++);lO.push(m);return xg2++},
cancel:function(m){var G=m-knd;if(G>=0){if(!lO[G])throw Error("Fd`"+m);lO[G]=null}}};var Ugk=0,n2=function(m){var G=m.__mixinApplications;G||(G=new WeakMap,m.__mixinApplications=G);var K=Ugk++;return function(W){var L=W.__mixinSet;if(L&&L[K])return W;var A=G,O=A.get(W);O||(O=m(W),A.set(W,O),W=Object.create(O.__mixinSet||L||null),W[K]=!0,O.__mixinSet=W);return O}};_.cv=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(m){return ShadyDOM.patch(m)}:function(m){return m};var zgk=n2(function(m){var G=function(){var K=m.call(this)||this;K.__dataEnabled=!1;K.__dataReady=!1;K.__dataInvalid=!1;K.__data={};K.__dataPending=null;K.__dataOld=null;K.__dataInstanceProps=null;K.__dataCounter=0;K.__serializing=!1;K._initializeProperties();return K};
_.n(G,m);G.createProperties=function(K){var W=this.prototype,L;for(L in K)L in W||W._createPropertyAccessor(L)};
G.attributeNameForProperty=function(K){return K.toLowerCase()};
G.typeForProperty=function(){};
G.prototype._createPropertyAccessor=function(K,W){this._addPropertyToAttributeMap(K);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[K]||(this.__dataHasAccessor[K]=!0,this._definePropertyAccessor(K,W))};
G.prototype._addPropertyToAttributeMap=function(K){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var W=this.__dataAttributes[K];W||(W=this.constructor.attributeNameForProperty(K),this.__dataAttributes[W]=K);return W};
G.prototype._definePropertyAccessor=function(K,W){Object.defineProperty(this,K,{get:function(){return this.__data[K]},
set:W?function(){}:function(L){this._setPendingProperty(K,L,!0)&&this._invalidateProperties()}})};
G.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
G.prototype._initializeProperties=function(){for(var K in this.__dataHasAccessor)this.hasOwnProperty(K)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[K]=this[K],delete this[K])};
G.prototype._initializeInstanceProperties=function(K){Object.assign(this,K)};
G.prototype._setProperty=function(K,W){this._setPendingProperty(K,W)&&this._invalidateProperties()};
G.prototype._getProperty=function(K){return this.__data[K]};
G.prototype._setPendingProperty=function(K,W){var L=this.__data[K],A=this._shouldPropertyChange(K,W,L);A&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||K in this.__dataOld||(this.__dataOld[K]=L),this.__data[K]=W,this.__dataPending[K]=W);return A};
G.prototype._isPropertyPending=function(K){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(K))};
G.prototype._invalidateProperties=function(){var K=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,bY.run(function(){K.__dataInvalid&&(K.__dataInvalid=!1,K._flushProperties())}))};
G.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
G.prototype._flushProperties=function(){this.__dataCounter++;var K=this.__data,W=this.__dataPending,L=this.__dataOld;this._shouldPropertiesChange(K,W,L)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(K,W,L));this.__dataCounter--};
G.prototype._shouldPropertiesChange=function(K,W){return!!W};
G.prototype._propertiesChanged=function(){};
G.prototype._shouldPropertyChange=function(K,W,L){return L!==W&&(L===L||W===W)};
G.prototype.attributeChangedCallback=function(K,W,L,A){W!==L&&this._attributeToProperty(K,L);m.prototype.attributeChangedCallback&&m.prototype.attributeChangedCallback.call(this,K,W,L,A)};
G.prototype._attributeToProperty=function(K,W,L){if(!this.__serializing){var A=this.__dataAttributes;K=A&&A[K]||K;this[K]=this._deserializeValue(W,L||this.constructor.typeForProperty(K))}};
G.prototype._propertyToAttribute=function(K,W,L){this.__serializing=!0;L=arguments.length<3?this[K]:L;this._valueToNodeAttribute(this,L,W||this.constructor.attributeNameForProperty(K));this.__serializing=!1};
G.prototype._valueToNodeAttribute=function(K,W,L){W=this._serializeValue(W);if(L==="class"||L==="name"||L==="slot")K=(0,_.cv)(K);W===void 0?K.removeAttribute(L):K.setAttribute(L,W===""&&window.trustedTypes?window.trustedTypes.emptyScript:W)};
G.prototype._serializeValue=function(K){switch(typeof K){case "boolean":return K?"":void 0;default:return K!=null?K.toString():void 0}};
G.prototype._deserializeValue=function(K,W){switch(W){case Boolean:return K!==null;case Number:return Number(K);default:return K}};
return G});var l7K=0,VqG=[];var BFl=n2(function(m){function G(A){A=Object.getPrototypeOf(A);return A.prototype instanceof L?A:null}
function K(A){if(!A.hasOwnProperty("__ownProperties")){var O=null;if(A.hasOwnProperty("properties")){var c=A.properties;if(c){O={};for(var u in c){var h=c[u];O[u]=typeof h==="function"?{type:h}:h}}}A.__ownProperties=O}return A.__ownProperties}
var W=zgk(m),L=function(){return W.apply(this,arguments)||this};
_.n(L,W);L.finalize=function(){if(!this.hasOwnProperty("__finalized")){var A=G(this);A&&A.finalize();this.__finalized=!0;this._finalizeClass()}};
L._finalizeClass=function(){var A=K(this);A&&this.createProperties(A)};
L.typeForProperty=function(A){return(A=this._properties[A])&&A.type};
L.prototype._initializeProperties=function(){l7K++;this.constructor.finalize();W.prototype._initializeProperties.call(this)};
L.prototype.connectedCallback=function(){W.prototype.connectedCallback&&W.prototype.connectedCallback.call(this);this._enableProperties()};
L.prototype.disconnectedCallback=function(){W.prototype.disconnectedCallback&&W.prototype.disconnectedCallback.call(this)};
_.e_.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var A=this;if(!this.hasOwnProperty("__observedAttributes")){ZmP(this.prototype);var O=this._properties;this.__observedAttributes=O?Object.keys(O).map(function(c){return A.prototype._addPropertyToAttributeMap(c)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var A=G(this);this.__properties=Object.assign({},A&&A._properties,K(this))}return this.__properties}}});
return L});var das={},PG6=/-[a-z]/g,yXG=/([A-Z])/g;for(var Mb0={},TFK=HTMLElement.prototype;TFK;){for(var mlG=Object.getOwnPropertyNames(TFK),iDC=0;iDC<mlG.length;iDC++)Mb0[mlG[iDC]]=!0;TFK=Object.getPrototypeOf(TFK)}var GgB=window.trustedTypes?function(m){return trustedTypes.isHTML(m)||trustedTypes.isScript(m)||trustedTypes.isScriptURL(m)}:function(){return!1},KgS=n2(function(m){var G=zgk(m);
m=function(){return G.apply(this,arguments)||this};
_.n(m,G);m.createPropertiesForAttributes=function(){for(var K=this.observedAttributes,W=0;W<K.length;W++)this.prototype._createPropertyAccessor(B$(K[W]))};
m.attributeNameForProperty=function(K){return MF(K)};
m.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);G.prototype._initializeProperties.call(this)};
m.prototype._initializeProtoProperties=function(K){for(var W in K)this._setProperty(W,K[W])};
m.prototype._ensureAttribute=function(K,W){this.hasAttribute(K)||this._valueToNodeAttribute(this,W,K)};
m.prototype._serializeValue=function(K){switch(typeof K){case "object":if(K instanceof Date)return K.toString();if(K){if(GgB(K))return K;try{return JSON.stringify(K)}catch(W){return""}}default:return G.prototype._serializeValue.call(this,K)}};
m.prototype._deserializeValue=function(K,W){switch(W){case Object:try{var L=JSON.parse(K)}catch(A){L=K}break;case Array:try{L=JSON.parse(K)}catch(A){L=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+K)}break;case Date:L=isNaN(K)?String(K):Number(K);L=new Date(L);break;default:L=G.prototype._deserializeValue.call(this,K,W)}return L};
m.prototype._definePropertyAccessor=function(K,W){if(!Mb0[K]){var L=this[K];L!==void 0&&(this.__data?this._setPendingProperty(K,L):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[K]=L))}G.prototype._definePropertyAccessor.call(this,K,W)};
m.prototype._hasAccessor=function(K){return this.__dataHasAccessor&&this.__dataHasAccessor[K]};
m.prototype._isPropertyPending=function(K){return!!(this.__dataPending&&K in this.__dataPending)};
return m});var Wgk={"dom-if":!0,"dom-repeat":!0},Lgo=!1,A9C=!1,wL0=function(){var m=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(G){return G}});
return function(G,K,W){K=K.getAttribute(W);m&&W.startsWith("on-")?G.setAttribute(W,m.createScript(K,W)):G.setAttribute(W,K)}}(),geR=n2(function(m){var G=function(){return m.apply(this,arguments)||this};
_.n(G,m);G._parseTemplate=function(K,W){if(!K._templateInfo){var L=K._templateInfo={};L.nodeInfoList=[];L.nestedTemplate=!!W;L.stripWhiteSpace=W&&W.stripWhiteSpace||K.hasAttribute&&K.hasAttribute("strip-whitespace");this._parseTemplateContent(K,L,{parent:null})}return K._templateInfo};
G._parseTemplateContent=function(K,W,L){return this._parseTemplateNode(K.content,W,L)};
G._parseTemplateNode=function(K,W,L){var A=!1;K.localName!="template"||K.hasAttribute("preserve-content")?K.localName==="slot"&&(W.hasInsertionPoint=!0):A=this._parseTemplateNestedTemplate(K,W,L)||A;if(!Lgo){Lgo=!0;var O=document.createElement("textarea");O.placeholder="a";A9C=O.placeholder===O.textContent}A9C&&K.localName==="textarea"&&K.placeholder&&K.placeholder===K.textContent&&(K.textContent=null);K.firstChild&&this._parseTemplateChildNodes(K,W,L);K.hasAttributes&&K.hasAttributes()&&(A=this._parseTemplateNodeAttributes(K,
W,L)||A);return A||L.noted};
G._parseTemplateChildNodes=function(K,W,L){if(K.localName!=="script"&&K.localName!=="style")for(var A=K.firstChild,O=0,c;A;A=c){if(A.localName=="template"){var u=A.getAttribute("is");if(u&&Wgk[u])for(c=A,c.removeAttribute("is"),A=c.ownerDocument.createElement(u),c.parentNode.replaceChild(A,c),A.appendChild(c);c.attributes.length;)u=c.attributes[0].name,wL0(A,c,u),c.removeAttribute(u)}c=A.nextSibling;if(A.nodeType===Node.TEXT_NODE){for(u=c;u&&u.nodeType===Node.TEXT_NODE;)A.textContent+=u.textContent,
c=u.nextSibling,K.removeChild(u),u=c;if(W.stripWhiteSpace&&!A.textContent.trim()){K.removeChild(A);continue}}u={parentIndex:O,parentInfo:L};this._parseTemplateNode(A,W,u)&&(u.infoIndex=W.nodeInfoList.push(u)-1);A.parentNode&&O++}};
G._parseTemplateNestedTemplate=function(K,W,L){W=this._parseTemplate(K,W);(W.content=K.content.ownerDocument.createDocumentFragment()).appendChild(K.content);L.templateInfo=W;return!0};
G._parseTemplateNodeAttributes=function(K,W,L){for(var A=!1,O=Array.from(K.attributes),c=O.length-1,u;u=O[c];c--)A=this._parseTemplateNodeAttribute(K,W,L,u.name,u.value)||A;return A};
G._parseTemplateNodeAttribute=function(K,W,L,A,O){return A.slice(0,3)==="on-"?(K.removeAttribute(A),L.events=L.events||[],L.events.push({name:A.slice(3),value:O}),!0):A==="id"?(L.id=O,!0):!1};
G._contentForTemplate=function(K){var W=K._templateInfo;return W&&W.content||K.content};
G.prototype._stampTemplate=function(K,W){K&&!K.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(K);W=W||this.constructor._parseTemplate(K);var L=W.nodeInfoList;K=document.importNode(W.content||K.content,!0);K.__noInsertionPoint=!W.hasInsertionPoint;var A=K.nodeList=Array(L.length);K.$={};for(var O=0,c=L.length,u=void 0;O<c&&(u=L[O]);O++){var h=A[O]=e3d(K,u);u.id&&(K.$[u.id]=h);var J=h,N=u,D=W;N.templateInfo&&(J._templateInfo=N.templateInfo,J._parentTemplateInfo=
D);if(u.events&&u.events.length)for(J=0,N=u.events,D=void 0;J<N.length&&(D=N[J]);J++)this._addMethodEventListenerToNode(h,D.name,D.value,this)}return K};
G.prototype._addMethodEventListenerToNode=function(K,W,L,A){L=fkd(A||K,L);this._addEventListenerToNode(K,W,L);return L};
G.prototype._addEventListenerToNode=function(K,W,L){K.addEventListener(W,L)};
G.prototype._removeEventListenerFromNode=function(K,W,L){K.removeEventListener(W,L)};
return G});var gl=0,rl=[],ODS={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},c9B=/[A-Z]/,YQX=function(m,G,K,W,L){var A=L?iY(m):m;if(G=G[A])for(A=0;A<G.length;A++){var O=G[A];if(O.info.lastRun!==gl&&(!L||z3s(m,O.trigger))){O.info.lastRun=gl;O=O.info;for(var c=K,u=W,h=0,J=c.length-1,N=-1;h<=J;){var D=h+J>>1,t=u.get(c[D].methodInfo)-u.get(O.methodInfo);if(t<0)h=D+1;else if(t>0)J=D-1;else{N=D;break}}N<
0&&(N=J+1);c.splice(N,0,O)}}},cAo=[],r9C=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"),v0=n2(function(m){var G=geR(KgS(m));
m=function(){var K=G.call(this)||this;K.__isPropertyEffectsClient=!0;return K};
_.n(m,G);m.prototype._initializeProperties=function(){G.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};
m.prototype._registerHost=function(){if(bD.length){var K=bD[bD.length-1];K._enqueueClient(this);this.__dataHost=K}};
m.prototype._initializeProtoProperties=function(K){this.__data=Object.create(K);this.__dataPending=Object.create(K);this.__dataOld={}};
m.prototype._initializeInstanceProperties=function(K){var W=this.__readOnly,L;for(L in K)W&&W[L]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[L]=this.__dataPending[L]=K[L])};
m.prototype._addPropertyEffect=function(K,W,L){this._createPropertyAccessor(K,W=="__readOnly");var A=UaP(this,W,!0)[K];A||(A=this[W][K]=[]);A.push(L)};
m.prototype._removePropertyEffect=function(K,W,L){K=UaP(this,W,!0)[K];L=K.indexOf(L);L>=0&&K.splice(L,1)};
m.prototype._hasPropertyEffect=function(K,W){W=this[W];return!(!W||!W[K])};
m.prototype._hasReadOnlyEffect=function(K){return this._hasPropertyEffect(K,"__readOnly")};
m.prototype._hasNotifyEffect=function(K){return this._hasPropertyEffect(K,"__notifyEffects")};
m.prototype._hasReflectEffect=function(K){return this._hasPropertyEffect(K,"__reflectEffects")};
m.prototype._hasComputedEffect=function(K){return this._hasPropertyEffect(K,"__computeEffects")};
m.prototype._setPendingPropertyOrPath=function(K,W,L,A){if(A||iY(Array.isArray(K)?K[0]:K)!==K){if(!A&&(A=LC(this,K),K=R39(this,K,W),!K||!G.prototype._shouldPropertyChange.call(this,K,W,A)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(K,W,L)){if(L=this.__dataLinkedPaths)for(var O in L)A=L[O],Gb(O,K)?(A=KC(O,A,K),this._setPendingPropertyOrPath(A,W,!0,!0)):Gb(A,K)&&(A=KC(A,O,K),this._setPendingPropertyOrPath(A,W,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[K])return this._setPendingProperty(K,
W,L);this[K]=W}return!1};
m.prototype._setUnmanagedPropertyToNode=function(K,W,L){if(L!==K[W]||typeof L=="object")W==="className"&&(K=(0,_.cv)(K)),K[W]=L};
m.prototype._setPendingProperty=function(K,W,L){var A=this.__dataHasPaths&&my(K);if(this._shouldPropertyChange(K,W,(A?this.__dataTemp:this.__data)[K])){this.__dataPending||(this.__dataPending={},this.__dataOld={});K in this.__dataOld||(this.__dataOld[K]=this.__data[K]);A?this.__dataTemp[K]=W:this.__data[K]=W;this.__dataPending[K]=W;if(A||this.__notifyEffects&&this.__notifyEffects[K])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[K]=L;return!0}return!1};
m.prototype._setProperty=function(K,W){this._setPendingProperty(K,W,!0)&&this._invalidateProperties()};
m.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
m.prototype._enqueueClient=function(K){this.__dataPendingClients=this.__dataPendingClients||[];K!==this&&this.__dataPendingClients.push(K)};
m.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
m.prototype.__enableOrFlushClients=function(){var K=this.__dataPendingClients;if(K){this.__dataPendingClients=null;for(var W=0;W<K.length;W++){var L=K[W];L.__dataEnabled?L.__dataPending&&L._flushProperties():L._enableProperties()}}};
m.prototype._readyClients=function(){this.__enableOrFlushClients()};
m.prototype.setProperties=function(K,W){for(var L in K)!W&&this.__readOnly&&this.__readOnly[L]||this._setPendingPropertyOrPath(L,K[L],!0);this._invalidateProperties()};
m.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
m.prototype._propertiesChanged=function(K,W,L){K=this.__dataHasPaths;this.__dataHasPaths=!1;var A;if(A=this.__computeEffects)if(P0l){gl++;var O=iYJ(this),c=[],u;for(u in W)YQX(u,A,c,O,K);for(;u=c.shift();)KNs(this,"",W,L,u)&&YQX(u.methodInfo,A,c,O,K);Object.assign(L,this.__dataOld);Object.assign(W,this.__dataPending);this.__dataPending=null}else for(O=W;Op(this,A,O,L,K);)Object.assign(L,this.__dataOld),Object.assign(W,this.__dataPending),O=this.__dataPending,this.__dataPending=null;A=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(W,L,K);this._flushClients();Op(this,this.__reflectEffects,W,L,K);Op(this,this.__observeEffects,W,L,K);if(A){O=this.__notifyEffects;c=gl++;for(var h in A)if(A[h]){if(u=O){var J=O;u=c;var N=h,D=W,t=L,a=K,v=!1,I=a?iY(N):N;if(J=J[I]){I=0;for(var Z=J.length,k=void 0;I<Z&&(k=J[I]);I++)k.info&&k.info.lastRun===u||a&&!z3s(N,k.trigger)||(k.info&&(k.info.lastRun=u),k.fn(this,N,D,t,k.info,a,void 0),v=!0)}u=v}if(u)var z=!0;else{if(u=K)u=h,N=W,D=iY(u),D!==
u?(D=MF(D)+"-changed",BSF(this,D,N[u],u),u=!0):u=!1;u&&(z=!0)}}var X;z&&(X=this.__dataHost)&&X._invalidateProperties&&X._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
m.prototype._propagatePropertyChanges=function(K,W,L){this.__propagateEffects&&Op(this,this.__propagateEffects,K,W,L);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,K,W,L)};
m.prototype._runEffectsForTemplate=function(K,W,L,A){var O=this,c=function(u,h){Op(O,K.propertyEffects,u,L,h,K.nodeList);for(var J=K.firstChild;J;J=J.nextSibling)O._runEffectsForTemplate(J,u,L,h)};
K.runEffects?K.runEffects(c,W,A):c(W,A)};
m.prototype.linkPaths=function(K,W){K=Wv(K);W=Wv(W);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[K]=W};
m.prototype.unlinkPaths=function(K){K=Wv(K);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[K]};
m.prototype.notifySplices=function(K,W){var L={path:""};K=LC(this,K,L);hFf(this,K,L.path,W)};
m.prototype.get=function(K,W){return LC(W||this,K)};
m.prototype.set=function(K,W,L){L?R39(L,K,W):this.__readOnly&&this.__readOnly[K]||this._setPendingPropertyOrPath(K,W,!0)&&this._invalidateProperties()};
m.prototype.push=function(K){var W=_.mb.apply(1,arguments),L={path:""},A=LC(this,K,L),O=A.length,c=A.push.apply(A,_.Bz(W));W.length&&ha(this,A,L.path,O,W.length,[]);return c};
m.prototype.pop=function(K){var W={path:""};K=LC(this,K,W);var L=!!K.length,A=K.pop();L&&ha(this,K,W.path,K.length,0,[A]);return A};
m.prototype.splice=function(K,W,L){var A=_.mb.apply(3,arguments),O={path:""},c=LC(this,K,O);W<0?W=c.length-Math.floor(-W):W&&(W=Math.floor(W));var u=arguments.length===2?c.splice(W):c.splice.apply(c,[W,L].concat(_.Bz(A)));(A.length||u.length)&&ha(this,c,O.path,W,A.length,u);return u};
m.prototype.shift=function(K){var W={path:""};K=LC(this,K,W);var L=!!K.length,A=K.shift();L&&ha(this,K,W.path,0,0,[A]);return A};
m.prototype.unshift=function(K){var W=_.mb.apply(1,arguments),L={path:""},A=LC(this,K,L),O=A.unshift.apply(A,_.Bz(W));W.length&&ha(this,A,L.path,0,W.length,[]);return O};
m.prototype.notifyPath=function(K,W){if(arguments.length==1){var L={path:""};W=LC(this,K,L);L=L.path}else L=Array.isArray(K)?Wv(K):K;this._setPendingPropertyOrPath(L,W,!0,!0)&&this._invalidateProperties()};
m.prototype._createReadOnlyProperty=function(K,W){this._addPropertyEffect(K,"__readOnly");W&&(this["_set"+(K[0].toUpperCase()+K.substring(1))]=function(L){this._setProperty(K,L)})};
m.prototype._createPropertyObserver=function(K,W,L){var A={property:K,method:W,dynamicFn:!!L};this._addPropertyEffect(K,"__observeEffects",{fn:lkG,info:A,trigger:{name:K}});L&&this._addPropertyEffect(W,"__observeEffects",{fn:lkG,info:A,trigger:{name:W}})};
m.prototype._createMethodObserver=function(K,W){var L=rA9(K);if(!L)throw Error("Gd`"+K);gJF(this,L,"__observeEffects",GeG,null,W)};
m.prototype._createNotifyingProperty=function(K){this._addPropertyEffect(K,"__notifyEffects",{fn:MqG,info:{eventName:MF(K)+"-changed",property:K}})};
m.prototype._createReflectedProperty=function(K){var W=this.constructor.attributeNameForProperty(K);W[0]==="-"?console.warn("Property "+K+" cannot be reflected to attribute "+W+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(K,"__reflectEffects",{fn:TSd,info:{attrName:W}})};
m.prototype._createComputedProperty=function(K,W,L){var A=rA9(W);if(!A)throw Error("Hd`"+W);W=gJF(this,A,"__computeEffects",KNs,K,L);UaP(this,"__computeInfo")[K]=W};
m.prototype._marshalArgs=function(K,W,L){for(var A=this.__data,O=[],c=0,u=K.length;c<u;c++){var h=K[c],J=h.name,N=h.structured,D=h.wildcard,t=h.value;h.literal||(D?(h=Gb(J,W),N=u0s(A,L,h?W:J),t={path:h?W:J,value:N,base:h?LC(A,J):N}):t=N?u0s(A,L,J):A[J]);if(uY&&!this._overrideLegacyUndefined&&t===void 0&&K.length>1)return rl;O[c]=t}return O};
m.addPropertyEffect=function(K,W,L){this.prototype._addPropertyEffect(K,W,L)};
m.createPropertyObserver=function(K,W,L){this.prototype._createPropertyObserver(K,W,L)};
m.createMethodObserver=function(K,W){this.prototype._createMethodObserver(K,W)};
m.createNotifyingProperty=function(K){this.prototype._createNotifyingProperty(K)};
m.createReadOnlyProperty=function(K,W){this.prototype._createReadOnlyProperty(K,W)};
m.createReflectedProperty=function(K){this.prototype._createReflectedProperty(K)};
m.createComputedProperty=function(K,W,L){this.prototype._createComputedProperty(K,W,L)};
m.bindTemplate=function(K){return this.prototype._bindTemplate(K)};
m.prototype._bindTemplate=function(K,W){var L=this.constructor._parseTemplate(K),A=this.__preBoundTemplateInfo==L;if(!A)for(var O in L.propertyEffects)this._createPropertyAccessor(O);W?(L=Object.create(L),L.wasPreBound=A,this.__templateInfo?(K=K._parentTemplateInfo||this.__templateInfo,W=K.lastChild,L.parent=K,K.lastChild=L,(L.previousSibling=W)?W.nextSibling=L:K.firstChild=L):this.__templateInfo=L):this.__preBoundTemplateInfo=L;return L};
m._addTemplatePropertyEffect=function(K,W,L){(K.hostProps=K.hostProps||{})[W]=!0;K=K.propertyEffects=K.propertyEffects||{};(K[W]=K[W]||[]).push(L)};
m.prototype._stampTemplate=function(K,W){W=W||this._bindTemplate(K,!0);bD.push(this);K=G.prototype._stampTemplate.call(this,K,W);bD.pop();W.nodeList=K.nodeList;if(!W.wasPreBound)for(var L=W.childNodes=[],A=K.firstChild;A;A=A.nextSibling)L.push(A);K.templateInfo=W;L=W.nodeList;A=W.nodeInfoList;if(A.length)for(var O=0;O<A.length;O++){var c=L[O],u=A[O].bindings;if(u)for(var h=0;h<u.length;h++){var J=u[h],N=c,D=J;if(D.isCompound){for(var t=N.__dataCompoundStorage||(N.__dataCompoundStorage={}),a=D.parts,
v=Array(a.length),I=0;I<a.length;I++)v[I]=a[I].literal;a=D.target;t[a]=v;D.literal&&D.kind=="property"&&(a==="className"&&(N=(0,_.cv)(N)),N[a]=D.literal)}wXG(c,this,J)}c.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(W,this.__data,null,!1),this._flushClients());return K};
m.prototype._removeBoundDom=function(K){K=K.templateInfo;var W=K.previousSibling,L=K.nextSibling,A=K.parent;W?W.nextSibling=L:A&&(A.firstChild=L);L?L.previousSibling=W:A&&(A.lastChild=W);K.nextSibling=K.previousSibling=null;K=K.childNodes;for(W=0;W<K.length;W++)L=K[W],(0,_.cv)((0,_.cv)(L).parentNode).removeChild(L)};
m._parseTemplateNode=function(K,W,L){var A=G._parseTemplateNode.call(this,K,W,L);if(K.nodeType===Node.TEXT_NODE){var O=this._parseBindings(K.textContent,W);O&&(K.textContent=OYf(O)||" ",AAv(this,W,L,"text","textContent",O),A=!0)}return A};
m._parseTemplateNodeAttribute=function(K,W,L,A,O){var c=this._parseBindings(O,W);if(c){O=A;var u="property";c9B.test(A)?u="attribute":A[A.length-1]=="$"&&(A=A.slice(0,-1),u="attribute");var h=OYf(c);h&&u=="attribute"&&(A=="class"&&K.hasAttribute("class")&&(h+=" "+K.getAttribute(A)),K.setAttribute(A,h));u=="attribute"&&O=="disable-upgrade$"&&K.setAttribute(A,"");K.localName==="input"&&O==="value"&&K.setAttribute(O,"");K.removeAttribute(O);u==="property"&&(A=B$(A));AAv(this,W,L,u,A,c,h);return!0}return G._parseTemplateNodeAttribute.call(this,
K,W,L,A,O)};
m._parseTemplateNestedTemplate=function(K,W,L){var A=G._parseTemplateNestedTemplate.call(this,K,W,L),O=K.parentNode,c=L.templateInfo,u=O.localName==="dom-if",h=O.localName==="dom-repeat";tZ&&(u||h)&&(O.removeChild(K),L=L.parentInfo,L.templateInfo=c,L.noted=!0,A=!1);K=c.hostProps;if(FM&&u)K&&(W.hostProps=Object.assign(W.hostProps||{},K),tZ||(L.parentInfo.noted=!0));else for(var J in K)AAv(this,W,L,"property","_host_"+J,[{mode:"{",source:J,dependencies:[J],hostProp:!0}]);return A};
m._parseBindings=function(K,W){for(var L=[],A=0,O;(O=r9C.exec(K))!==null;){O.index>A&&L.push({literal:K.slice(A,O.index)});A=O[1][0];var c=!!O[2];O=O[3].trim();var u=!1,h="",J=-1;A=="{"&&(J=O.indexOf("::"))>0&&(h=O.substring(J+2),O=O.substring(0,J),u=!0);J=rA9(O);var N=[];if(J){var D=J,t=D.args;D=D.methodName;for(var a=0;a<t.length;a++){var v=t[a];v.literal||N.push(v)}if((t=W.dynamicFns)&&t[D]||J.static)N.push(D),J.dynamicFn=!0}else N.push(O);L.push({source:O,mode:A,negate:c,customEvent:u,signature:J,
dependencies:N,event:h});A=r9C.lastIndex}A&&A<K.length&&(K=K.substring(A))&&L.push({literal:K});return L.length?L:null};
m._evaluateBinding=function(K,W,L,A,O,c){K=W.signature?GeG(K,L,A,O,W.signature):L!=W.source?LC(K,W.source):c&&my(L)?LC(K,L):K.__data[L];W.negate&&(K=!K);return K};
_.e_.Object.defineProperties(m.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return ODS}}});
return m}),bD=[];var ujS=window.ShadyCSS&&window.ShadyCSS.cssBuild,$K=n2(function(m){function G(W,L,A,O){if(!ujS){for(var c=L.content.querySelectorAll("style"),u=DPF(L),h=tIs(A),J=L.content.firstElementChild,N=0;N<h.length;N++){var D=h[N];D.textContent=W._processStyleText(D.textContent,O);L.content.insertBefore(D,J)}for(J=h=0;J<u.length;J++)N=u[J],D=c[h],D!==N?(N=N.cloneNode(!0),D.parentNode.insertBefore(N,D)):h++,N.textContent=W._processStyleText(N.textContent,O)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(L,
A);if(egP&&ujS&&C0S&&(L=L.content.querySelectorAll("style"))){var t="";Array.from(L).forEach(function(a){t+=a.textContent;a.parentNode.removeChild(a)});
W._styleSheet=new CSSStyleSheet;W._styleSheet.replaceSync(t)}}
var K=BFl(v0(m));m=function(){return K.call(this)||this};
_.n(m,K);m._finalizeClass=function(){K._finalizeClass.call(this);var W;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(W=this.__ownObservers)&&this.createObservers(W,this._properties);this._prepareTemplate()};
m._prepareTemplate=function(){var W=this.template;W&&(typeof W==="string"?(console.error("template getter must return HTMLTemplateElement"),W=null):$N||(W=W.cloneNode(!0)));this.prototype._template=W};
m.createProperties=function(W){for(var L in W){var A=this.prototype,O=L,c=W[L],u=W;c.computed&&(c.readOnly=!0);c.computed&&(A._hasReadOnlyEffect(O)?console.warn("Cannot redefine computed property '"+O+"'."):A._createComputedProperty(O,c.computed,u));c.readOnly&&!A._hasReadOnlyEffect(O)?A._createReadOnlyProperty(O,!c.computed):c.readOnly===!1&&A._hasReadOnlyEffect(O)&&console.warn("Cannot make readOnly property '"+O+"' non-readOnly.");c.reflectToAttribute&&!A._hasReflectEffect(O)?A._createReflectedProperty(O):
c.reflectToAttribute===!1&&A._hasReflectEffect(O)&&console.warn("Cannot make reflected property '"+O+"' non-reflected.");c.notify&&!A._hasNotifyEffect(O)?A._createNotifyingProperty(O):c.notify===!1&&A._hasNotifyEffect(O)&&console.warn("Cannot make notify property '"+O+"' non-notify.");c.observer&&A._createPropertyObserver(O,c.observer,u[c.observer]);A._addPropertyToAttributeMap(O)}};
m.createObservers=function(W,L){for(var A=this.prototype,O=0;O<W.length;O++)A._createMethodObserver(W[O],L)};
m.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);K.prototype._initializeProperties.call(this);this.rootPath=VbR;this.importPath=this.constructor.importPath;var W=this.constructor;if(!W.hasOwnProperty("__propertyDefaults")){W.__propertyDefaults=null;var L=W._properties,A;for(A in L){var O=L[A];"value"in O&&(W.__propertyDefaults=W.__propertyDefaults||{},W.__propertyDefaults[A]=O)}}if(W=W.__propertyDefaults)for(var c in W)L=W[c],
this._canApplyPropertyDefault(c)&&(L=typeof L.value=="function"?L.value.call(this):L.value,this._hasAccessor(c)?this._setPendingProperty(c,L,!0):this[c]=L)};
m.prototype._canApplyPropertyDefault=function(W){return!this.hasOwnProperty(W)};
m._processStyleText=function(W,L){return Hmv(W,L)};
m._finalizeTemplate=function(W){var L=this.prototype._template;if(L&&!L.__polymerFinalized){L.__polymerFinalized=!0;var A=this.importPath;A=A?_.zi(A):"";G(this,L,W,A);this.prototype._bindTemplate(L)}};
m.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);K.prototype.connectedCallback.call(this)};
m.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);K.prototype.ready.call(this)};
m.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));K.prototype._readyClients.call(this)};
m.prototype._attachDom=function(W){var L=(0,_.cv)(this);if(L.attachShadow)return W?(L.shadowRoot||(L.attachShadow({mode:"open",shadyUpgradeFragment:W}),L.shadowRoot.appendChild(W),this.constructor._styleSheet&&(L.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dgo&&window.ShadyDOM&&window.ShadyDOM.flushInitial(L.shadowRoot),L.shadowRoot):null;throw Error("Jd");};
m.prototype.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,W)};
m.prototype.resolveUrl=function(W,L){!L&&this.importPath&&(L=_.zi(this.importPath));return _.zi(W,L)};
m._parseTemplateContent=function(W,L,A){L.dynamicFns=L.dynamicFns||this._properties;return K._parseTemplateContent.call(this,W,L,A)};
m._addTemplatePropertyEffect=function(W,L,A){!Hv||L in this._properties||A.info.part.signature&&A.info.part.signature.static||A.info.part.hostProp||W.nestedTemplate||console.warn("Property '"+L+"' used in template but not declared in 'properties'; attribute will not be observed.");return K._addTemplatePropertyEffect.call(this,W,L,A)};
_.e_.Object.defineProperties(m,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var W=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof W==="function"&&(W=W());if(W===void 0){if(W=this.hasOwnProperty("is")){W=this.is;var L=null;if(W&&(!Iv||ZrC)&&(L=pC.import(W,"template"),Iv&&!L))throw Error("Id`"+W);W=L}W=W||Object.getPrototypeOf(this.prototype).constructor.template}this._template=W}return this._template},
set:function(W){this._template=W}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var W=this.importMeta;W?this._importPath=IkG(W.url):this._importPath=(W=pC.import(this.is))&&W.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return m});var hOl=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(m){return m}}),vJM=function(m,G){pLX(m,G);
this.value=G.reduce(function(K,W,L){return K+$Pd(W)+m[L+1]},m[0]).toString()},pLX;
vJM.prototype.toString=function(){return this.value};
_.J94=function(m){var G=_.mb.apply(1,arguments);pLX(m,G);var K=document.createElement("template");G=G.reduce(function(W,L,A){if(L instanceof HTMLTemplateElement)L=L.innerHTML;else if(L instanceof vJM)L=$Pd(L);else throw Error("Ld`"+L);return W+L+m[A+1]},m[0]);
hOl&&(G=hOl.createHTML(G));K.innerHTML=G;return K};
pLX=function(m,G){if(!Array.isArray(m)||!Array.isArray(m.raw)||G.length!==m.length-1)throw new TypeError("Md");};var sL=$K(HTMLElement);var NTl=n2(function(m){var G=$K(m);m=function(){var K=G.call(this)||this;K.__lastItems=null;K.__lastMulti=null;K.__selectedMap=null;return K};
_.n(m,G);m.prototype.__updateSelection=function(K,W){var L=W.path;L=="items"?(W=W.base||[],L=this.__lastItems,K!==this.__lastMulti&&this.clearSelection(),L&&(L=bYd(W,L),this.__applySplices(L)),this.__lastItems=W,this.__lastMulti=K):W.path=="items.splices"?this.__applySplices(W.value.indexSplices):(K=L.slice(6),W=parseInt(K,10),K.indexOf(".")<0&&K==W&&this.__deselectChangedIdx(W))};
m.prototype.__applySplices=function(K){for(var W=this,L=this.__selectedMap,A={},O=0;O<K.length;A={s$jscomp$109:void 0},O++){A.s$jscomp$109=K[O];L.forEach(function(J){return function(N,D){N<J.s$jscomp$109.index||(N>=J.s$jscomp$109.index+J.s$jscomp$109.removed.length?L.set(D,N+J.s$jscomp$109.addedCount-J.s$jscomp$109.removed.length):L.set(D,-1))}}(A));
for(var c=0;c<A.s$jscomp$109.addedCount;c++){var u=A.s$jscomp$109.index+c;L.has(this.items[u])&&L.set(this.items[u],u)}}this.__updateLinks();var h=0;L.forEach(function(J,N){J<0?(W.multi?W.splice("selected",h,1):W.selected=W.selectedItem=null,L.delete(N)):h++})};
m.prototype.__updateLinks=function(){var K=this;this.__dataLinkedPaths={};if(this.multi){var W=0;this.__selectedMap.forEach(function(L){L>=0&&K.linkPaths("items."+L,"selected."+W++)})}else this.__selectedMap.forEach(function(L){K.linkPaths("selected","items."+L);
K.linkPaths("selectedItem","items."+L)})};
m.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
m.prototype.isSelected=function(K){return this.__selectedMap.has(K)};
m.prototype.isIndexSelected=function(K){return this.isSelected(this.items[K])};
m.prototype.__deselectChangedIdx=function(K){var W=this,L=this.__selectedIndexForItemIndex(K);if(L>=0){var A=0;this.__selectedMap.forEach(function(O,c){L==A++&&W.deselect(c)})}};
m.prototype.__selectedIndexForItemIndex=function(K){if(K=this.__dataLinkedPaths["items."+K])return parseInt(K.slice(9),10)};
m.prototype.deselect=function(K){var W=this.__selectedMap.get(K);if(W>=0){this.__selectedMap.delete(K);var L;this.multi&&(L=this.__selectedIndexForItemIndex(W));this.__updateLinks();this.multi?this.splice("selected",L,1):this.selected=this.selectedItem=null}};
m.prototype.deselectIndex=function(K){this.deselect(this.items[K])};
m.prototype.select=function(K){this.selectIndex(this.items.indexOf(K))};
m.prototype.selectIndex=function(K){var W=this.items[K];this.isSelected(W)?this.toggle&&this.deselectIndex(K):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(W,K),this.__updateLinks(),this.multi?this.push("selected",W):this.selected=this.selectedItem=W)};
_.e_.Object.defineProperties(m,{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 m}),Dl0=NTl(sL),qh=function(){return Dl0.apply(this,arguments)||this};
_.n(qh,Dl0);_.e_.Object.defineProperties(qh,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(qh.is,qh);var twB=window.Polymer;window.Polymer=function(m){return window.Polymer._polymerFn(m)};
twB&&Object.assign(Polymer,twB);Polymer._polymerFn=function(){throw Error("Nd");};/*

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:Hmv,resolveUrl:_.zi,pathFromUrl:IkG};Polymer.DomModule=pC;Polymer.Async={timeOut:_.o9,animationFrame:_.Gk,idlePeriod:Rg0,microTask:bY};Polymer.dedupingMixin=n2;Polymer.wrap=_.cv;Polymer.PropertiesChanged=zgk;Polymer.telemetry={instanceCount:l7K,incrementInstanceCount:function(){l7K++},
registrations:VqG,register:ZmP,dumpRegistrations:function(){VqG.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=BFl;Polymer.CaseMap={dashToCamelCase:B$,camelToDashCase:MF};Polymer.PropertyAccessors=KgS;Polymer.TemplateStamp=geR;Polymer.Path={isPath:my,root:iY,isAncestor:xaV,isDescendant:Gb,translate:KC,matches:XYP,normalize:Wv,split:SUM,get:LC,set:R39,isDeep:my};Polymer.Settings={useShadow:sp,useNativeCSSProperties:ECS,useNativeCustomElements:HrX,get rootPath(){return VbR},setRootPath:function(m){VbR=m},
get sanitizeDOMValue(){return YN},setSanitizeDOMValue:function(m){YN=m},
get passiveTouchGestures(){return yAF},setPassiveTouchGestures:function(m){yAF=m},
get strictTemplatePolicy(){return Iv},setStrictTemplatePolicy:function(m){Iv=m},
get allowTemplateFromDomModule(){return ZrC},setAllowTemplateFromDomModule:function(m){ZrC=m},
get legacyOptimizations(){return $N},setLegacyOptimizations:function(m){$N=m},
get syncInitialRender(){return dgo},setSyncInitialRender:function(m){dgo=m},
get legacyUndefined(){return uY},setLegacyUndefined:function(m){uY=m},
get legacyWarnings(){return Hv},setLegacyWarnings:function(m){Hv=m},
get orderedComputed(){return P0l},setOrderedComputed:function(m){P0l=m},
get fastDomIf(){return FM},setFastDomIf:function(m){FM=m},
get removeNestedTemplates(){return tZ},setRemoveNestedTemplates:function(m){tZ=m},
get suppressTemplateNotifications(){return Qv},setSuppressTemplateNotifications:Qv};Polymer.rootPath!==void 0&&(VbR=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(YN=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(yAF=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Iv=Polymer.strictTemplatePolicy);ZrC=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&($N=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(dgo=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(uY=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Hv=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(P0l=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(FM=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(tZ=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Qv=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return YN},
set:function(m){YN=m}});Polymer.PropertyEffects=v0;Polymer.StyleGather={stylesFromModules:N19,stylesFromModule:JAd,stylesFromTemplate:DPF,stylesFromModuleImports:tIs,cssFromModules:QBd,cssFromModule:FN6,cssFromTemplate:abv,cssFromModuleImports:function(m){return(m=pC.import(m))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(m):""}};Polymer.ElementMixin=$K;Polymer.updateStyles=function(m){window.ShadyCSS&&window.ShadyCSS.styleDocument(m)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:bYd};Polymer.html=_.J94;Polymer.htmlLiteral=function(m){return new vJM(m,_.mb.apply(1,arguments))};Polymer.Element=sL;Polymer.ArraySelectorMixin=NTl;Polymer.ArraySelector=qh;var Fg4=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,QoB=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,wbv=/@media\s(.*)/;var HY6=null,EJG=window.HTMLImports&&window.HTMLImports.whenReady||null,Ibs;var ahk=null,EL=null,H0=function(){this.customStyles=[];this.enqueued=!1;jBV(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},oel=function(m){!m.enqueued&&EL&&(m.enqueued=!0,jBV(EL))};
H0.prototype.addCustomStyle=function(m){m.__seenByShadyCSS||(m.__seenByShadyCSS=!0,this.customStyles.push(m),oel(this))};
H0.prototype.getStyleForCustomStyle=function(m){if(m.__shadyCSSCachedStyle)return m.__shadyCSSCachedStyle;var G;m.getStyle?G=m.getStyle():G=m;return G};
H0.prototype.processStyles=function(){for(var m=this.customStyles,G=0;G<m.length;G++){var K=m[G];if(!K.__shadyCSSCachedStyle){var W=this.getStyleForCustomStyle(K);W&&(W=W.__appliedElement||W,ahk&&ahk(W),K.__shadyCSSCachedStyle=W)}}return m};
H0.prototype.addCustomStyle=H0.prototype.addCustomStyle;H0.prototype.getStyleForCustomStyle=H0.prototype.getStyleForCustomStyle;H0.prototype.processStyles=H0.prototype.processStyles;Object.defineProperties(H0.prototype,{transformCallback:{get:function(){return ahk},
set:function(m){ahk=m}},
validateCallback:{get:function(){return EL},
set:function(m){var G=!1;EL||(G=!0);EL=m;G&&oel(this)}}});var C5d=!(window.ShadyDOM&&window.ShadyDOM.inUse),ke6,y1;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(y1=window.ShadyCSS.cssBuild);var neC=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?ke6=window.ShadyCSS.nativeCss:window.ShadyCSS?(VIf(window.ShadyCSS),window.ShadyCSS=void 0):VIf(window.WebComponents&&window.WebComponents.flags);var WWd=ke6;var bDF=new H0;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(m,G){bDF.processStyles();sB6(m,G)},
styleElement:function(){bDF.processStyles()},
styleDocument:function(m){bDF.processStyles();sB6(document.body,m)},
getComputedStyleValue:function(m,G){return qao(m,G)},
flushCustomStyles:function(){},
nativeCss:WWd,nativeShadow:C5d,cssBuild:y1,disableRuntime:neC});window.ShadyCSS.CustomStyleInterface=bDF;var veG=window.ShadyCSS.CustomStyleInterface,I9=function(){var m=HTMLElement.call(this)||this;m._style=null;veG.addCustomStyle(m);return m};
_.n(I9,HTMLElement);I9.prototype.getStyle=function(){if(this._style)return this._style;var m=this.querySelector("style");if(!m)return null;this._style=m;var G=m.getAttribute("include");G&&(m.removeAttribute("include"),m.textContent=QBd(G)+m.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
I9.prototype.getStyle=I9.prototype.getStyle;window.customElements.define("custom-style",I9);Polymer.CustomStyle=I9;var jg=function(){this._timer=this._callback=this._asyncModule=null},kK,so4;
jg.prototype.setConfig=function(m,G){var K=this;this._asyncModule=m;this._callback=G;this._timer=this._asyncModule.run(function(){K._timer=null;kK.delete(K);K._callback()})};
jg.prototype.cancel=function(){this.isActive()&&($lX(this),kK.delete(this))};
var $lX=function(m){m.isActive()&&(m._asyncModule.cancel(m._timer),m._timer=null)};
jg.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
jg.prototype.isActive=function(){return this._timer!=null};
_.C2=function(m,G,K){m instanceof jg?$lX(m):m=new jg;m.setConfig(G,K);return m};
kK=new Set;_.Vv=function(m){kK.add(m)};
so4=function(){var m=!!kK.size;kK.forEach(function(G){try{G.flush()}catch(K){setTimeout(function(){throw K;})}});
return m};var dP6=typeof document.head.style.touchAction==="string",ZYM=["mousedown","mousemove","mouseup","click"],UPJ=[0,1,4,2],qQX;try{qQX=(new MouseEvent("test",{buttons:1})).buttons===1}catch(m){qQX=!1}var RFG=qQX,P56=!1;(function(){try{var m=Object.defineProperty({},"passive",{get:function(){P56=!0}});
window.addEventListener("test",null,m);window.removeEventListener("test",null,m)}catch(G){}})();
var fbd=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),xPG=[],Eei={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},AlJ={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},XXP=function(m){var G=m.sourceCapabilities;if(!G||G.firesTouchEvents)if(m.__polymerGesturesHandled={skip:!0},m.type==="click"){G=!1;for(var K=MI6(m),W=0;W<K.length;W++){if(K[W].nodeType===Node.ELEMENT_NODE)if(K[W].localName==="label")xPG.push(K[W]);
else if(Eei[K[W].localName]){var L=K[W];var A=Array.prototype.slice.call(L.labels||[]);if(!A.length){A=[];try{var O=L.getRootNode();if(L.id){var c=O.querySelectorAll("label[for = '"+L.id+"']");for(L=0;L<c.length;L++)A.push(c[L])}}catch(u){}}for(L=0;L<A.length;L++)G=G||xPG.indexOf(A[L])>-1}if(K[W]===HDR)return}G||(m.preventDefault(),m.stopPropagation())}},HDR=null,Zz=null,mEd=0,igs=0,T1J=-1,GB9=!1;
document.addEventListener("touchend",function(m){Zz||SaG(!0);HDR=MI6(m)[0];Zz=_.C2(Zz,_.o9.after(2500),function(){SaG();Zz=HDR=null})},P56?{passive:!0}:!1);
var MI6=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(m){return m.composedPath&&m.composedPath()||[]},Q1={},ta=[];
K9d({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){DG(this.info)},
mousedown:function(m){if(Nk(m)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m),K=this;lbv(this.info,function(W){Nk(W)||(vv("up",G,W),DG(K.info))},function(W){Nk(W)&&vv("up",G,W);
DG(K.info)});
vv("down",G,m)}},
touchstart:function(m){vv("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m),m.changedTouches[0],m)},
touchend:function(m){vv("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m),m.changedTouches[0],m)}});
K9d({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(m){this.moves.length>2&&this.moves.shift();this.moves.push(m)},
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;DG(this.info)},
mousedown:function(m){if(Nk(m)){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m),K=this,W=function(L){var A=L.clientX,O=L.clientY;W9J(K.info,A,O)&&(K.info.state=K.info.started?L.type==="mouseup"?"end":"track":"start",K.info.state==="start"&&Fg("tap"),K.info.addMove({x:A,y:O}),Nk(L)||(K.info.state="end",DG(K.info)),G&&L96(K.info,G,L),K.info.started=!0)};
lbv(this.info,W,function(L){K.info.started&&W(L);DG(K.info)});
this.info.x=m.clientX;this.info.y=m.clientY}},
touchstart:function(m){m=m.changedTouches[0];this.info.x=m.clientX;this.info.y=m.clientY},
touchmove:function(m){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m);m=m.changedTouches[0];var K=m.clientX,W=m.clientY;W9J(this.info,K,W)&&(this.info.state==="start"&&Fg("tap"),this.info.addMove({x:K,y:W}),L96(this.info,G,m),this.info.state="track",this.info.started=!0)},
touchend:function(m){var G=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m);m=m.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:m.clientX,y:m.clientY}),L96(this.info,G,m))}});
K9d({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(m){Nk(m)&&(this.info.x=m.clientX,this.info.y=m.clientY)},
click:function(m){Nk(m)&&wod(this.info,m)},
touchstart:function(m){m=m.changedTouches[0];this.info.x=m.clientX;this.info.y=m.clientY},
touchend:function(m){wod(this.info,m.changedTouches[0],m)}});var IhC=n2(function(m){var G=function(){return m.apply(this,arguments)||this};
_.n(G,m);G.prototype._addEventListenerToNode=function(K,W,L){av(K,W,L)||m.prototype._addEventListenerToNode.call(this,K,W,L)};
G.prototype._removeEventListenerFromNode=function(K,W,L){ov(K,W,L)||m.prototype._removeEventListenerFromNode.call(this,K,W,L)};
return G});var dv=n2(function(m){var G=function(){return m.apply(this,arguments)||this};
_.n(G,m);G.prototype._shouldPropertyChange=function(K,W,L){return gis(this,K,W,L,!0)};
return G}),joi=n2(function(m){var G=function(){return m.apply(this,arguments)||this};
_.n(G,m);G.prototype._shouldPropertyChange=function(K,W,L){return gis(this,K,W,L,this.mutableData)};
_.e_.Object.defineProperties(G,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return G});
dv._mutablePropertyChange=gis;var OgG=!1;var kg4=IhC(joi(v0(HTMLElement))),P0=function(){var m=kg4.call(this)||this;if(Iv)throw Error("Od");m.root=null;m.$=null;m.__children=null;return m};
_.n(P0,kg4);_.w=P0.prototype;_.w.attributeChangedCallback=function(){this.mutableData=!0};
_.w.connectedCallback=function(){clf()||(this.style.display="none");this.render()};
_.w.disconnectedCallback=function(){this.__removeChildren()};
_.w.__insertChildren=function(){(0,_.cv)((0,_.cv)(this).parentNode).insertBefore(this.root,this)};
_.w.__removeChildren=function(){if(this.__children)for(var m=0;m<this.__children.length;m++)this.root.appendChild(this.__children[m])};
_.w.render=function(){var m=this;if(!this.__children){var G=G||this.querySelector("template");if(!G){var K=new MutationObserver(function(){if(G=m.querySelector("template"))K.disconnect(),m.render();else throw Error("Pd");});
K.observe(this,{childList:!0});return}this.root=this._stampTemplate(G);this.$=this.root.$;this.__children=[];for(var W=this.root.firstChild;W;W=W.nextSibling)this.__children[this.__children.length]=W;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.e_.Object.defineProperties(P0,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",P0);Polymer.Debouncer=jg;Polymer.Gestures={gestures:Q1,recognizers:ta,deepTargetFind:B1G,addListener:av,removeListener:ov,register:K9d,setTouchAction:_.nC,prevent:Fg,resetMouseCanceller:function(){Zz&&Zz.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:av,remove:ov};Polymer.GestureEventListeners=IhC;Polymer.MutableData=dv;Polymer.OptionalMutableData=joi;Polymer.DomBind=P0;_.yv=function(){do{var m=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var G=so4()}while(m||G)};var YAF=null;rlG.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:rlG,writable:!0}});var F9o=v0(rlG),tZG=dv(F9o),C12=v0(function(){}),qk=function(m){var G=C12.call(this)||this;
G._configureProperties(m);G.root=G._stampTemplate(G.__dataHost);var K=[];G.children=K;for(var W=G.root.firstChild;W;W=W.nextSibling)K.push(W),W.__templatizeInstance=G;G.__templatizeOwner&&G.__templatizeOwner.__hideTemplateChildren__&&G._showHideChildren(!0);K=G.__templatizeOptions;(m&&K.instanceProps||!K.instanceProps)&&G._enableProperties();return G};
_.n(qk,C12);_.w=qk.prototype;_.w._configureProperties=function(m){if(this.__templatizeOptions.forwardHostProp)for(var G in this.__hostProps)this._setPendingProperty(G,this.__dataHost["_host_"+G]);for(var K in m)this._setPendingProperty(K,m[K])};
_.w.forwardHostProp=function(m,G){this._setPendingPropertyOrPath(m,G,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.w._addEventListenerToNode=function(m,G,K){var W=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(m,G,function(A){A.model=W;K(A)});
else{var L=this.__dataHost.__dataHost;L&&L._addEventListenerToNode(m,G,K)}};
_.w._showHideChildren=function(m){h0J(m,this.children)};
_.w._setUnmanagedPropertyToNode=function(m,G,K){m.__hideTemplateChildren__&&m.nodeType==Node.TEXT_NODE&&G=="textContent"?m.__polymerTextContent__=K:C12.prototype._setUnmanagedPropertyToNode.call(this,m,G,K)};
_.w.dispatchEvent=function(){return!0};
_.e_.Object.defineProperties(qk.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var m=this.__parentModel;if(!m){var G;m=this;do m=m.__dataHost.__dataHost;while((G=m.__templatizeOptions)&&!G.parentModel);this.__parentModel=m}return m}}});
var JlM=dv(qk);var eg=function(){var m=sL.call(this)||this;m.__renderDebouncer=null;m._lastIf=!1;m.__hideTemplateChildren__=!1;return m};
_.n(eg,sL);_.w=eg.prototype;_.w.__debounceRender=function(){var m=this;this.__renderDebouncer=_.C2(this.__renderDebouncer,bY,function(){return m.__render()});
_.Vv(this.__renderDebouncer)};
_.w.disconnectedCallback=function(){sL.prototype.disconnectedCallback.call(this);var m=(0,_.cv)(this).parentNode;m&&(m.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.cv)(m).host)||this.__teardownInstance()};
_.w.connectedCallback=function(){sL.prototype.connectedCallback.call(this);clf()||(this.style.display="none");this.if&&this.__debounceRender()};
_.w.__ensureTemplate=function(){var m=this;if(!this.__template){var G=this._templateInfo?this:(0,_.cv)(this).querySelector("template");if(!G){var K=new MutationObserver(function(){if((0,_.cv)(m).querySelector("template"))K.disconnect(),m.__render();else throw Error("Sd");});
K.observe(this,{childList:!0});return!1}this.__template=G}return!0};
_.w.__ensureInstance=function(){var m=(0,_.cv)(this).parentNode;if(this.__hasInstance()){var G=this.__getInstanceNodes();if(G&&G.length&&(0,_.cv)(this).previousSibling!==G[G.length-1])for(var K=0,W=void 0;K<G.length&&(W=G[K]);K++)(0,_.cv)(m).insertBefore(W,this)}else{if(!m||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(m)}return!0};
_.w.render=function(){_.yv()};
_.w.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Qv&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.w.__hasInstance=function(){};
_.w.__getInstanceNodes=function(){};
_.w.__createAndInsertInstance=function(){};
_.w.__teardownInstance=function(){};
_.w._showHideChildren=function(){};
_.e_.Object.defineProperties(eg,{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:eg.prototype.__debounceRender},restamp:{type:Boolean,observer:eg.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var VwB=function(){var m=eg.call(this)||this;m.__instance=null;m.__syncInfo=null;return m};
_.n(VwB,eg);_.w=VwB.prototype;_.w.__hasInstance=function(){return!!this.__instance};
_.w.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.w.__createAndInsertInstance=function(m){var G=this,K=this.__dataHost||this;if(Iv&&!this.__dataHost)throw Error("Qd");var W=K._bindTemplate(this.__template,!0);W.runEffects=function(L,A,O){var c=G.__syncInfo;if(G.if)c&&(G.__syncInfo=null,G._showHideChildren(),A=Object.assign(c.changedProps,A)),L(A,O);else if(G.__instance)if(c||(c=G.__syncInfo={runEffects:L,changedProps:{}}),O)for(var u in A)L=iY(u),c.changedProps[L]=G.__dataHost[L];else Object.assign(c.changedProps,A)};
this.__instance=K._stampTemplate(this.__template,W);(0,_.cv)(m).insertBefore(this.__instance,this)};
_.w.__syncHostProperties=function(){var m=this.__syncInfo;m&&(this.__syncInfo=null,m.runEffects(m.changedProps,!1))};
_.w.__teardownInstance=function(){var m=this.__dataHost||this;this.__instance&&(m._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.w._showHideChildren=function(){var m=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==m&&(this.__instance.__hidden=m,h0J(m,this.__instance.templateInfo.childNodes));m||this.__syncHostProperties()};
var ZDB=function(){var m=eg.call(this)||this;m.__ctor=null;m.__instance=null;m.__invalidProps=null;return m};
_.n(ZDB,eg);_.w=ZDB.prototype;_.w.__hasInstance=function(){return!!this.__instance};
_.w.__getInstanceNodes=function(){return this.__instance.children};
_.w.__createAndInsertInstance=function(m){this.__ctor||(this.__ctor=Ep(this.__template,this,{mutableData:!0,forwardHostProp:function(G,K){this.__instance&&(this.if?this.__instance.forwardHostProp(G,K):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[iY(G)]=!0))}}));
this.__instance=new this.__ctor;(0,_.cv)(m).insertBefore(this.__instance.root,this)};
_.w.__teardownInstance=function(){if(this.__instance){var m=this.__instance.children;if(m&&m.length){var G=(0,_.cv)(m[0]).parentNode;if(G){G=(0,_.cv)(G);for(var K=0,W=void 0;K<m.length&&(W=m[K]);K++)G.removeChild(W)}}this.__instance=this.__invalidProps=null}};
_.w.__syncHostProperties=function(){var m=this.__invalidProps;if(m){this.__invalidProps=null;for(var G in m)this.__instance._setPendingProperty(G,this.__dataHost[G]);this.__instance._flushProperties()}};
_.w._showHideChildren=function(){var m=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==m&&(this.__instance.__hidden=m,this.__instance._showHideChildren(m));m||this.__syncHostProperties()};
_.wT=FM?VwB:ZDB;customElements.define(_.wT.is,_.wT);Polymer.enqueueDebouncer=_.Vv;Polymer.flush=_.yv;Polymer.Templatize={templatize:Ep,modelForElement:vid};Polymer.TemplateInstanceBase=qk;Polymer.DomIf=_.wT;var dl2=joi(sL),A9=function(){var m=dl2.call(this)||this;m.__instances=[];m.__renderDebouncer=null;m.__itemsIdxToInstIdx={};m.__chunkCount=null;m.__renderStartTime=null;m.__itemsArrayChanged=!1;m.__shouldMeasureChunk=!1;m.__shouldContinueChunking=!1;m.__chunkingId=0;m.__sortFn=null;m.__filterFn=null;m.__observePaths=null;m.__ctor=null;m.__isDetached=!0;m.template=null;return m};
_.n(A9,dl2);_.w=A9.prototype;_.w.disconnectedCallback=function(){dl2.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var m=0;m<this.__instances.length;m++)this.__detachInstance(m);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.w.connectedCallback=function(){dl2.prototype.connectedCallback.call(this);clf()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var m=(0,_.cv)((0,_.cv)(this).parentNode),G=0;G<this.__instances.length;G++)this.__attachInstance(G,m);this.__chunkingId&&this.__render()}};
_.w.__ensureTemplatized=function(){var m=this;if(!this.__ctor){var G=this.template=this._templateInfo?this:this.querySelector("template");if(!G){var K=new MutationObserver(function(){if(m.querySelector("template"))K.disconnect(),m.__render();else throw Error("Td");});
K.observe(this,{childList:!0});return!1}var W={};W[this.as]=!0;W[this.indexAs]=!0;W[this.itemsIndexAs]=!0;this.__ctor=Ep(G,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:W,forwardHostProp:function(L,A){for(var O=this.__instances,c=0,u=void 0;c<O.length&&(u=O[c]);c++)u.forwardHostProp(L,A)},
notifyInstanceProp:function(L,A,O){XYP(this.as,A)&&(L=L[this.itemsIndexAs],A==this.as&&(this.items[L]=O),A=KC(this.as,"items."+L,A),this.notifyPath(A,O))}})}return!0};
_.w.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.w.__functionFromPropertyValue=function(m){if(typeof m==="string"){var G=this.__getMethodHost();return function(){return G[m].apply(G,arguments)}}return m};
_.w.__sortChanged=function(m){this.__sortFn=this.__functionFromPropertyValue(m);this.items&&this.__debounceRender(this.__render)};
_.w.__filterChanged=function(m){this.__filterFn=this.__functionFromPropertyValue(m);this.items&&this.__debounceRender(this.__render)};
_.w.__computeFrameTime=function(m){return Math.ceil(1E3/m)};
_.w.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.w.__handleObservedPaths=function(m){if(this.__sortFn||this.__filterFn)if(!m)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var G=this.__observePaths,K=0;K<G.length;K++)m.indexOf(G[K])===0&&this.__debounceRender(this.__render,this.delay)};
_.w.__itemsChanged=function(m){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(m.path,m.value)||(m.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.w.__debounceRender=function(m,G){G=G===void 0?0:G;this.__renderDebouncer=_.C2(this.__renderDebouncer,G>0?_.o9.after(G):bY,m.bind(this));_.Vv(this.__renderDebouncer)};
_.w.render=function(){this.__debounceRender(this.__render);_.yv()};
_.w.__render=function(){var m=this;if(this.__ensureTemplatized()){var G=this.items||[],K=this.__sortAndFilterItems(G),W=this.__calculateLimit(K.length);this.__updateInstances(G,W,K);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){m.__chunkingId=null;m.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Qv&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.w.__sortAndFilterItems=function(m){for(var G=this,K=Array(m.length),W=0;W<m.length;W++)K[W]=W;this.__filterFn&&(K=K.filter(function(L,A,O){return G.__filterFn(m[L],A,O)}));
this.__sortFn&&K.sort(function(L,A){return G.__sortFn(m[L],m[A])});
return K};
_.w.__calculateLimit=function(m){var G=m,K=this.__instances.length;if(this.initialCount){var W;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(G=Math.min(m,this.initialCount),this.__chunkCount=(W=Math.max(G-K,0))||1):(W=Math.min(Math.max(m-K,0),this.__chunkCount),G=Math.min(K+W,m));this.__shouldMeasureChunk=W===this.__chunkCount;this.__shouldContinueChunking=G<m;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return G};
_.w.__continueChunking=function(){if(this.__shouldMeasureChunk){var m=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/m*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.w.__updateInstances=function(m,G,K){var W=this.__itemsIdxToInstIdx={},L;for(L=0;L<G;L++){var A=this.__instances[L],O=K[L],c=m[O];W[O]=L;A?(A._setPendingProperty(this.as,c),A._setPendingProperty(this.indexAs,L),A._setPendingProperty(this.itemsIndexAs,O),A._flushProperties()):this.__insertInstance(c,L,O)}for(m=this.__instances.length-1;m>=L;m--)this.__detachAndRemoveInstance(m)};
_.w.__detachInstance=function(m){m=this.__instances[m];for(var G=(0,_.cv)(m.root),K=0;K<m.children.length;K++)G.appendChild(m.children[K]);return m};
_.w.__attachInstance=function(m,G){G.insertBefore(this.__instances[m].root,this)};
_.w.__detachAndRemoveInstance=function(m){this.__detachInstance(m);this.__instances.splice(m,1)};
_.w.__stampInstance=function(m,G,K){var W={};W[this.as]=m;W[this.indexAs]=G;W[this.itemsIndexAs]=K;return new this.__ctor(W)};
_.w.__insertInstance=function(m,G,K){m=this.__stampInstance(m,G,K);K=(K=this.__instances[G+1])?K.children[0]:this;(0,_.cv)((0,_.cv)(this).parentNode).insertBefore(m.root,K);return this.__instances[G]=m};
_.w._showHideChildren=function(m){for(var G=0;G<this.__instances.length;G++)this.__instances[G]._showHideChildren(m)};
_.w.__handleItemPath=function(m,G){var K=m.slice(6),W=K.indexOf(".");m=W<0?K:K.substring(0,W);if(m==parseInt(m,10)){K=W<0?"":K.substring(W+1);this.__handleObservedPaths(K);if(m=this.__instances[this.__itemsIdxToInstIdx[m]])m._setPendingPropertyOrPath(this.as+(K?"."+K:""),G,!1,!0),m._flushProperties();return!0}};
_.w.itemForElement=function(m){return(m=this.modelForElement(m))&&m[this.as]};
_.w.indexForElement=function(m){return(m=this.modelForElement(m))&&m[this.indexAs]};
_.w.modelForElement=function(m){return vid(this.template,m)};
_.e_.Object.defineProperties(A9,{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:A9.prototype.__sortChanged},filter:{type:Function,observer:A9.prototype.__filterChanged},observe:{type:String,observer:A9.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Qv,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.*)"]}}});
A9.prototype._setRenderedItemCount=function(){};
customElements.define(A9.is,A9);Polymer.DomRepeat=A9;var P1S=function(m,G){var K=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=m;this.callback=G;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){K._schedule()};
this.connect();this._schedule()},y9l=function(m){var G=(0,_.cv)(m);
if(j_(m))return G.assignedNodes({flatten:!0});m=[];for(var K=0;K<G.childNodes.length;K++){var W=G.childNodes[K];j_(W)?m.push.apply(m,_.Bz((0,_.cv)(W).assignedNodes({flatten:!0}))):m.push(W)}return m};
_.w=P1S.prototype;_.w.connect=function(){var m=this;j_(this._target)?this._listenSlots([this._target]):(0,_.cv)(this._target).children&&(this._listenSlots((0,_.cv)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(G){m._processMutations(G)}):(this._nativeChildrenObserver=new MutationObserver(function(G){m._processMutations(G)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.w.disconnect=function(){j_(this._target)?this._unlistenSlots([this._target]):(0,_.cv)(this._target).children&&(this._unlistenSlots((0,_.cv)(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};
_.w._schedule=function(){var m=this;this._scheduled||(this._scheduled=!0,bY.run(function(){return m.flush()}))};
_.w._processMutations=function(m){this._processSlotMutations(m);this.flush()};
_.w._processSlotMutations=function(m){if(m)for(var G=0;G<m.length;G++){var K=m[G];K.addedNodes&&this._listenSlots(K.addedNodes);K.removedNodes&&this._unlistenSlots(K.removedNodes)}};
_.w.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 m={target:this._target,addedNodes:[],removedNodes:[]},G=y9l(this._target),K=bYd(G,this._effectiveNodes),W=0,L=void 0;W<K.length&&(L=K[W]);W++)for(var A=0,O=void 0;A<L.removed.length&&(O=L.removed[A]);A++)m.removedNodes.push(O);
W=0;for(L=void 0;W<K.length&&(L=K[W]);W++)for(A=L.index;A<L.index+L.addedCount;A++)m.addedNodes.push(G[A]);this._effectiveNodes=G;G=!1;if(m.addedNodes.length||m.removedNodes.length)G=!0,this.callback.call(this._target,m);return G};
_.w._listenSlots=function(m){for(var G=0;G<m.length;G++){var K=m[G];j_(K)&&K.addEventListener("slotchange",this._boundSchedule)}};
_.w._unlistenSlots=function(m){for(var G=0;G<m.length;G++){var K=m[G];j_(K)&&K.removeEventListener("slotchange",this._boundSchedule)}};var f2=Element.prototype,eOK=f2.matches||f2.matchesSelector||f2.mozMatchesSelector||f2.msMatchesSelector||f2.oMatchesSelector||f2.webkitMatchesSelector,fh2=function(m,G){return eOK.call(m,G)},kN=function(m){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(m);
this.node=m},ROP;
_.w=kN.prototype;_.w.observeNodes=function(m){return new P1S(this.node,m)};
_.w.unobserveNodes=function(m){m.disconnect()};
_.w.notifyObserver=function(){};
_.w.deepContains=function(m){if((0,_.cv)(this.node).contains(m))return!0;var G=m;for(m=m.ownerDocument;G&&G!==m&&G!==this.node;)G=(0,_.cv)(G).parentNode||(0,_.cv)(G).host;return G===this.node};
_.w.getOwnerRoot=function(){return(0,_.cv)(this.node).getRootNode()};
_.w.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.cv)(this.node).assignedNodes({flatten:!0}):[]};
_.w.getDestinationInsertionPoints=function(){for(var m=[],G=(0,_.cv)(this.node).assignedSlot;G;)m.push(G),G=(0,_.cv)(G).assignedSlot;return m};
_.w.importNode=function(m,G){return(0,_.cv)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(m,G)};
_.w.getEffectiveChildNodes=function(){return y9l(this.node)};
_.w.queryDistributedElements=function(m){for(var G=this.getEffectiveChildNodes(),K=[],W=0,L=G.length,A=void 0;W<L&&(A=G[W]);W++)A.nodeType===Node.ELEMENT_NODE&&fh2(A,m)&&K.push(A);return K};
_.e_.Object.defineProperties(kN.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var m=this.node;return m._activeElement!==void 0?m._activeElement:m.activeElement}}});
var xK=function(m){this.event=m};
_.e_.Object.defineProperties(xK.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 xlB=kN;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var XLC=window.ShadyDOM.Wrapper,SQB=function(){return XLC.apply(this,arguments)||this};
_.n(SQB,XLC);Object.getOwnPropertyNames(kN.prototype).forEach(function(m){m!="activeElement"&&m!="constructor"&&(SQB.prototype[m]=kN.prototype[m])});
s3s(SQB.prototype,["classList"]);xlB=SQB;Object.defineProperties(xK.prototype,{localTarget:{get:function(){var m=this.event.currentTarget;m=m&&_.TP(m).getOwnerRoot();for(var G=this.path,K=0;K<G.length;K++){var W=G[K];if(_.TP(W).getOwnerRoot()===m)return W}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else $Es(),s3s(kN.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),qAs();ROP=xlB;_.TP=function(m){m=m||document;if(m instanceof xlB)return m;if(m instanceof xK)return m;var G=m.__domApi;G||(m instanceof Event?G=new xK(m):G=new xlB(m),m.__domApi=G);return G};var UlF=/:host\(:dir\((ltr|rtl)\)\)/g,zOo=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,lhK=/:dir\((?:ltr|rtl)\)/,BTl=!(!window.ShadyDOM||!window.ShadyDOM.inUse),V1=[],XM=null,CC="",MwR=n2(function(m){BTl||XM||(CC=document.documentElement.getAttribute("dir"),XM=new MutationObserver(EiJ),XM.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var G=KgS(m);m=function(){var K=G.call(this)||this;K.__autoDirOptOut=!1;return K};
_.n(m,G);m._processStyleText=function(K,W){K=G._processStyleText.call(this,K,W);!BTl&&lhK.test(K)&&(K=this._replaceDirInCssText(K),this.__activateDir=!0);return K};
m._replaceDirInCssText=function(K){K=K.replace(UlF,':host([dir="$1"])');return K=K.replace(zOo,':host([dir="$2"]) $1')};
m.prototype.ready=function(){G.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
m.prototype.connectedCallback=function(){G.prototype.connectedCallback&&G.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(XM&&XM.takeRecords().length&&EiJ(),V1.push(this),this.__autoDirOptOut||this.setAttribute("dir",CC))};
m.prototype.disconnectedCallback=function(){G.prototype.disconnectedCallback&&G.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var K=V1.indexOf(this);K>-1&&V1.splice(K,1)}};
m.__activateDir=!1;return m});var TTK=function(m){for(;m;){var G=Object.getOwnPropertyDescriptor(m,"observedAttributes");if(G)return G.get;m=Object.getPrototypeOf(m.prototype).constructor}return function(){return[]}};
n2(function(m){var G=$K(m),K=TTK(G);m=function(){return G.call(this)||this};
_.n(m,G);m.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:G.prototype._initializeProperties.call(this)};
m.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
m.prototype._canApplyPropertyDefault=function(W){return G.prototype._canApplyPropertyDefault.call(this,W)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(W))};
m.prototype.attributeChangedCallback=function(W,L,A,O){W=="disable-upgrade"?this.__isUpgradeDisabled&&A==null&&(G.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.cv)(this).isConnected&&G.prototype.connectedCallback.call(this)):G.prototype.attributeChangedCallback.call(this,W,L,A,O)};
m.prototype.connectedCallback=function(){this.__isUpgradeDisabled||G.prototype.connectedCallback.call(this)};
m.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||G.prototype.disconnectedCallback.call(this)};
_.e_.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return K.call(this).concat("disable-upgrade")}}});
return m});var ZG=!1,I8f=[],dl=[];var VZV=window.ShadyDOM,ZgG=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",PAG):document.readyState==="interactive"||document.readyState==="complete"?PAG():window.addEventListener("DOMContentLoaded",PAG);var f8M=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=""},ylV=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,e0M=/@import[^;]*;/gim,z0d=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,l8s=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,BLJ=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,MZF=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,R0d=/^@[^\s]*keyframes/,
SAF=/\s+/g;var TLd={};var Gso=Promise.resolve();var myB=new Set;var iNS=/;\s*/m,GkG=/^\s*(initial)|(inherit)\s*$/,K50=/\s*!important/,W5P=function(){this._map={}};
W5P.prototype.set=function(m,G){m=m.trim();this._map[m]={properties:G,dependants:{}}};
W5P.prototype.get=function(m){m=m.trim();return this._map[m]||null};
var L5C=null,Sg=function(){this._measureElement=this._currentElement=null;this._map=new W5P};
_.w=Sg.prototype;_.w.detectMixin=function(m){m=QoB.test(m)||Fg4.test(m);QoB.lastIndex=0;Fg4.lastIndex=0;return m};
_.w.transformTemplate=function(m,G){if(m._gatheredStyle===void 0){var K=[];for(var W=m.content.querySelectorAll("style"),L=0;L<W.length;L++){var A=W[L];if(A.hasAttribute("shady-unscoped")){if(!C5d){var O=A.textContent;if(!myB.has(O)){myB.add(O);var c=document.createElement("style");c.setAttribute("shady-unscoped","");c.textContent=O;document.head.appendChild(c)}A.parentNode.removeChild(A)}}else K.push(A.textContent),A.parentNode.removeChild(A)}(K=K.join("").trim())?(W=document.createElement("style"),
W.textContent=K,m.content.insertBefore(W,m.content.firstChild),K=W):K=null;m._gatheredStyle=K}return(m=m._gatheredStyle)?this.JSC$11581_transformStyle(m,G):null};
_.w.JSC$11581_transformStyle=function(m,G){G=G===void 0?"":G;var K=AY6(m);this.transformRules(K,G);m.textContent=LWG(K);return K};
_.w.transformCustomStyle=function(m){var G=this,K=AY6(m);gvd(K,function(W){W.selector===":root"&&(W.selector="html");G.transformRule(W)});
m.textContent=LWG(K);return K};
_.w.transformRules=function(m,G){var K=this;this._currentElement=G;gvd(m,function(W){K.transformRule(W)});
this._currentElement=null};
_.w.transformRule=function(m){m.cssText=A$G(this,m.parsedCssText,m);m.selector===":root"&&(m.selector=":host > *")};
var A$G=function(m,G,K){G=G.replace(Fg4,function(W,L,A,O){return m._produceCssProperties(W,L,A,O,K)});
return m._consumeCssProperties(G,K)};
_.w=Sg.prototype;_.w._getInitialValueForProperty=function(m){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(m)};
_.w._fallbacksFromPreviousRules=function(m){for(var G=this,K=m;K.parent;)K=K.parent;var W={},L=!1;gvd(K,function(A){(L=L||A===m)||A.selector===m.selector&&Object.assign(W,G._cssTextToMap(A.parsedCssText))});
return W};
_.w._consumeCssProperties=function(m,G){for(var K;K=QoB.exec(m);){var W=K[0],L=K[1];K=K.index;var A=K+W.indexOf("@apply"),O=K+W.length;W=m.slice(0,A);m=m.slice(O);A=G?this._fallbacksFromPreviousRules(G):{};Object.assign(A,this._cssTextToMap(W));L=this._atApplyToCssProperties(L,A);m=W+L+m;QoB.lastIndex=K+L.length}return m};
_.w._atApplyToCssProperties=function(m,G){m=m.replace(iNS,"");var K=[],W=this._map.get(m);W||(this._map.set(m,{}),W=this._map.get(m));if(W){this._currentElement&&(W.dependants[this._currentElement]=!0);var L,A=W.properties;for(L in A){var O=G&&G[L];W=[L,": var(",m,"_-_",L];O&&W.push(",",O.replace(K50,""));W.push(")");K50.test(A[L])&&W.push(" !important");K.push(W.join(""))}}return K.join("; ")};
_.w._replaceInitialOrInherit=function(m,G){var K=GkG.exec(G);K&&(G=K[1]?this._getInitialValueForProperty(m):"apply-shim-inherit");return G};
_.w._cssTextToMap=function(m,G){G=G===void 0?!1:G;m=m.split(";");for(var K,W,L={},A=0;A<m.length;A++)if(K=m[A])W=K.split(":"),W.length>1&&(K=W[0].trim(),W=W.slice(1).join(":"),G&&(W=this._replaceInitialOrInherit(K,W)),L[K]=W);return L};
_.w._invalidateMixinEntry=function(m){if(L5C)for(var G in m.dependants)G!==this._currentElement&&L5C(G)};
_.w._produceCssProperties=function(m,G,K,W,L){var A=this;K&&OV6(K,function(a,v){v&&A._map.get(v)&&(W="@apply "+v+";")});
if(!W)return m;var O=this._consumeCssProperties(""+W,L);L=m.slice(0,m.indexOf("--"));var c=O=this._cssTextToMap(O,!0),u=this._map.get(G),h=u&&u.properties;h?c=Object.assign(Object.create(h),O):this._map.set(G,c);var J=[],N,D=!1;for(N in c){var t=O[N];t===void 0&&(t="initial");!h||N in h||(D=!0);J.push(G+"_-_"+N+": "+t)}D&&this._invalidateMixinEntry(u);u&&(u.properties=c);K&&(L=m+";"+L);return L+J.join("; ")+";"};
Sg.prototype.detectMixin=Sg.prototype.detectMixin;Sg.prototype.transformStyle=Sg.prototype.JSC$11581_transformStyle;Sg.prototype.transformCustomStyle=Sg.prototype.transformCustomStyle;Sg.prototype.transformRules=Sg.prototype.transformRules;Sg.prototype.transformRule=Sg.prototype.transformRule;Sg.prototype.transformTemplate=Sg.prototype.transformTemplate;Sg.prototype._separator="_-_";Object.defineProperty(Sg.prototype,"invalidCallback",{get:function(){return L5C},
set:function(m){L5C=m}});var R9=new Sg,w8F=function(){this.customStyleInterface=null;R9.invalidCallback=mNd},UL=function(m){!m.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(m.customStyleInterface=window.ShadyCSS.CustomStyleInterface,m.customStyleInterface.transformCallback=function(G){R9.transformCustomStyle(G)},m.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){m.customStyleInterface.enqueued&&m.flushCustomStyles()})})};
_.w=w8F.prototype;_.w.prepareTemplate=function(m,G){UL(this);cYd(m)===""&&(TLd[G]=m,G=R9.transformTemplate(m,G),m._styleAst=G)};
_.w.flushCustomStyles=function(){UL(this);if(this.customStyleInterface){var m=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var G=0;G<m.length;G++){var K=this.customStyleInterface.getStyleForCustomStyle(m[G]);K&&R9.transformCustomStyle(K)}this.customStyleInterface.enqueued=!1}}};
_.w.styleSubtree=function(m,G){UL(this);G&&sB6(m,G);if(m.shadowRoot)for(this.styleElement(m),m=m.shadowRoot.children||m.shadowRoot.childNodes,G=0;G<m.length;G++)this.styleSubtree(m[G]);else for(m=m.children||m.childNodes,G=0;G<m.length;G++)this.styleSubtree(m[G])};
_.w.styleElement=function(m){UL(this);var G=m.localName,K;G?G.indexOf("-")>-1?K=G:K=m.getAttribute&&m.getAttribute("is")||"":K=m.is;G=TLd[K];if(!(G&&cYd(G)!==""||!G||iVG(G))){if(iVG(G)||G._applyShimValidatingVersion!==G._applyShimNextVersion)this.prepareTemplate(G,K),KWo(G);if(m=m.shadowRoot)if(m=m.querySelector("style"))m.__cssRules=G._styleAst,m.textContent=LWG(G._styleAst)}};
_.w.styleDocument=function(m){UL(this);this.styleSubtree(document.body,m)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var z1=new w8F,gEo=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(m,G){z1.flushCustomStyles();z1.prepareTemplate(m,G)},
prepareTemplateStyles:function(m,G,K){window.ShadyCSS.prepareTemplate(m,G,K)},
prepareTemplateDom:function(){},
styleSubtree:function(m,G){z1.flushCustomStyles();z1.styleSubtree(m,G)},
styleElement:function(m){z1.flushCustomStyles();z1.styleElement(m)},
styleDocument:function(m){z1.flushCustomStyles();z1.styleDocument(m)},
getComputedStyleValue:function(m,G){return qao(m,G)},
flushCustomStyles:function(){z1.flushCustomStyles()},
nativeCss:WWd,nativeShadow:C5d,cssBuild:y1,disableRuntime:neC};gEo&&(window.ShadyCSS.CustomStyleInterface=gEo)}window.ShadyCSS.ApplyShim=R9;var ON0;ON0=window.ShadyCSS;_.lD=n2(function(m){m=IhC($K(m));var G=ujS?m:MwR(m),K=TTK(G),W={x:"pan-x",y:"pan-y",none:"none",all:"auto"};m=function(){return G.call(this)||this};
_.n(m,G);m.prototype.created=function(){};
m.prototype.__attributeReaction=function(L,A,O){(this.__dataAttributes&&this.__dataAttributes[L]||L==="disable-upgrade")&&this.attributeChangedCallback(L,A,O,null)};
m.prototype.setAttribute=function(L,A){if(yKF&&!this._legacyForceObservedAttributes){var O=this.getAttribute(L);G.prototype.setAttribute.call(this,L,A);this.__attributeReaction(L,O,String(A))}else G.prototype.setAttribute.call(this,L,A)};
m.prototype.removeAttribute=function(L){if(yKF&&!this._legacyForceObservedAttributes){var A=this.getAttribute(L);G.prototype.removeAttribute.call(this,L);this.__attributeReaction(L,A,null)}else G.prototype.removeAttribute.call(this,L)};
m.prototype._enableProperties=function(){this.__isUpgradeDisabled||G.prototype._enableProperties.call(this)};
m.prototype._canApplyPropertyDefault=function(L){return G.prototype._canApplyPropertyDefault.call(this,L)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(L))};
m.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(G.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
m.prototype.attached=function(){};
m.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(G.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
m.prototype.detached=function(){};
m.prototype.attributeChangedCallback=function(L,A,O,c){A!==O&&(L=="disable-upgrade"?this.__isUpgradeDisabled&&O==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.cv)(this).isConnected&&this.connectedCallback()):(G.prototype.attributeChangedCallback.call(this,L,A,O,c),this.attributeChanged(L,A,O)))};
m.prototype.attributeChanged=function(){};
m.prototype._initializeProperties=function(){if($N&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var L=Object.getPrototypeOf(this);L.hasOwnProperty("__hasRegisterFinished")||(this._registered(),L.__hasRegisterFinished=!0);G.prototype._initializeProperties.call(this);this.root=this;this.created();yKF&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
m.prototype._takeAttributes=function(){for(var L=this.attributes,A=0,O=L.length;A<O;A++){var c=L[A];this.__attributeReaction(c.name,null,c.value)}};
m.prototype._registered=function(){};
m.prototype.ready=function(){this._ensureAttributes();G.prototype.ready.call(this)};
m.prototype._ensureAttributes=function(){};
m.prototype._applyListeners=function(){};
m.prototype.serialize=function(L){return this._serializeValue(L)};
m.prototype.deserialize=function(L,A){return this._deserializeValue(L,A)};
m.prototype.reflectPropertyToAttribute=function(L,A,O){this._propertyToAttribute(L,A,O)};
m.prototype.serializeValueToAttribute=function(L,A,O){this._valueToNodeAttribute(O||this,L,A)};
m.prototype.extend=function(L,A){if(!L||!A)return L||A;for(var O=Object.getOwnPropertyNames(A),c=0,u=void 0;c<O.length&&(u=O[c]);c++){var h=Object.getOwnPropertyDescriptor(A,u);h&&Object.defineProperty(L,u,h)}return L};
m.prototype.mixin=function(L,A){for(var O in A)L[O]=A[O];return L};
m.prototype.chainObject=function(L,A){L&&A&&L!==A&&(L.__proto__=A);return L};
m.prototype.instanceTemplate=function(L){L=this.constructor._contentForTemplate(L);return document.importNode(L,!0)};
m.prototype.fire=function(L,A,O){O=O||{};A=A===null||A===void 0?{}:A;L=new Event(L,{bubbles:O.bubbles===void 0?!0:O.bubbles,cancelable:!!O.cancelable,composed:O.composed===void 0?!0:O.composed});L.detail=A;(0,_.cv)(O.node||this).dispatchEvent(L);return L};
m.prototype.listen=function(L,A,O){L=L||this;var c=this.__boundListeners||(this.__boundListeners=new WeakMap),u=c.get(L);u||(u={},c.set(L,u));c=A+O;u[c]||(u[c]=this._addMethodEventListenerToNode(L,A,O,this))};
m.prototype.unlisten=function(L,A,O){L=L||this;var c=this.__boundListeners&&this.__boundListeners.get(L);O=A+O;var u=c&&c[O];u&&(this._removeEventListenerFromNode(L,A,u),c[O]=null)};
m.prototype.setScrollDirection=function(L,A){_.nC(A||this,W[L]||"auto")};
m.prototype.$$=function(L){return this.root.querySelector(L)};
m.prototype.distributeContent=function(){var L=_.TP(this);window.ShadyDOM&&L.shadowRoot&&ShadyDOM.flush()};
m.prototype.getEffectiveChildNodes=function(){return _.TP(this).getEffectiveChildNodes()};
m.prototype.queryDistributedElements=function(L){return _.TP(this).queryDistributedElements(L)};
m.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
m.prototype.getEffectiveTextContent=function(){for(var L=this.getEffectiveChildNodes(),A=[],O=0,c;c=L[O];O++)c.nodeType!==Node.COMMENT_NODE&&A.push(c.textContent);return A.join("")};
m.prototype.queryEffectiveChildren=function(L){return(L=this.queryDistributedElements(L))&&L[0]};
m.prototype.queryAllEffectiveChildren=function(L){return this.queryDistributedElements(L)};
m.prototype.getContentChildNodes=function(L){return(L=this.root.querySelector(L||"slot"))?_.TP(L).getDistributedNodes():[]};
m.prototype.getContentChildren=function(L){return this.getContentChildNodes(L).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
m.prototype.isLightDescendant=function(L){return this!==L&&(0,_.cv)(this).contains(L)&&(0,_.cv)(this).getRootNode()===(0,_.cv)(L).getRootNode()};
m.prototype.isLocalDescendant=function(L){return this.root===(0,_.cv)(L).getRootNode()};
m.prototype.scopeSubtree=function(L,A){return dEG(L,A===void 0?!1:A)};
m.prototype.getComputedStyleValue=function(L){return ON0.getComputedStyleValue(this,L)};
m.prototype.debounce=function(L,A,O){this._debouncers=this._debouncers||{};return this._debouncers[L]=_.C2(this._debouncers[L],O>0?_.o9.after(O):bY,A.bind(this))};
m.prototype.isDebouncerActive=function(L){this._debouncers=this._debouncers||{};L=this._debouncers[L];return!(!L||!L.isActive())};
m.prototype.flushDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.flush()};
m.prototype.cancelDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.cancel()};
m.prototype.async=function(L,A){return A>0?_.o9.run(L.bind(this),A):~bY.run(L.bind(this))};
m.prototype.cancelAsync=function(L){L<0?bY.cancel(~L):_.o9.cancel(L)};
m.prototype.create=function(L,A){L=document.createElement(L);if(A)if(L.setProperties)L.setProperties(A);else for(var O in A)L[O]=A[O];return L};
m.prototype.elementMatches=function(L,A){return fh2(A||this,L)};
m.prototype.toggleAttribute=function(L,A){var O=this;arguments.length===3&&(O=arguments[2]);arguments.length==1&&(A=!O.hasAttribute(L));if(A)return(0,_.cv)(O).setAttribute(L,""),!0;(0,_.cv)(O).removeAttribute(L);return!1};
m.prototype.toggleClass=function(L,A,O){O=O||this;arguments.length==1&&(A=!O.classList.contains(L));A?O.classList.add(L):O.classList.remove(L)};
m.prototype.transform=function(L,A){A=A||this;A.style.webkitTransform=L;A.style.transform=L};
m.prototype.translate3d=function(L,A,O,c){this.transform("translate3d("+L+","+A+","+O+")",c||this)};
m.prototype.arrayDelete=function(L,A){if(Array.isArray(L)){if(A=L.indexOf(A),A>=0)return L.splice(A,1)}else if(A=LC(this,L).indexOf(A),A>=0)return this.splice(L,A,1);return null};
m.prototype._logger=function(L,A){Array.isArray(A)&&A.length===1&&Array.isArray(A[0])&&(A=A[0]);switch(L){case "log":case "warn":case "error":console[L].apply(console,_.Bz(A))}};
m.prototype._log=function(){this._logger("log",_.mb.apply(0,arguments))};
m.prototype._warn=function(){this._logger("warn",_.mb.apply(0,arguments))};
m.prototype._error=function(){this._logger("error",_.mb.apply(0,arguments))};
m.prototype._logf=function(L){return["[%s::%s]",this.is,L].concat(_.Bz(_.mb.apply(1,arguments)))};
_.e_.Object.defineProperties(m.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var L=(0,_.cv)(this).getRootNode();return L instanceof DocumentFragment?L.host:L}}});
_.e_.Object.defineProperties(m,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return yKF&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],ZmP(this.prototype)),this.__observedAttributes):K.call(this).concat("disable-upgrade")}}});
m.prototype.is="";return m});Polymer.FlattenedNodesObserver=P1S;Polymer.DomApi=ROP;Polymer.EventApi=xK;Polymer.dom=_.TP;Polymer.dom.matchesSelector=fh2;Polymer.dom.flush=_.yv;Polymer.dom.addDebouncer=_.Vv;Polymer.DirMixin=MwR;Polymer.RenderStatus={beforeNextRender:_.CA9,afterNextRender:_.Pv,flush:function(){for(;I8f.length||dl.length;)HgJ(I8f),HgJ(dl);ZG=!1}};Polymer.LegacyElementMixin=_.lD;var c$l;c$l=dv._mutablePropertyChange;var YhG={properties:{mutableData:Boolean},_shouldPropertyChange:function(m,G,K){return c$l(this,m,G,K,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(m,G,K){return c$l(this,m,G,K,!0)}};
Polymer.OptionalMutableDataBehavior=YhG;var Y1o={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},JY9={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},pbG=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},JY9),r$S=(0,_.lD)(HTMLElement),v$P=function(m,G){m||console.warn("Polymer.Class requires `info` argument");G=G?G(r$S):r$S;G=N3M(m,G,m.behaviors);G.is=G.prototype.is=
m.is;return G};Polymer.Class=v$P;Polymer.mixinBehaviors=function(m,G){return N3M({},(0,_.lD)(G),m)};
Polymer.GenerateClassFromInfo=N3M;_.LD=function(m){var G=typeof m==="function"?m:_.LD.Class(m);m._legacyForceObservedAttributes&&(G.prototype._legacyForceObservedAttributes=m._legacyForceObservedAttributes);customElements.define(G.is,G);return G};
_.LD.Class=v$P;Polymer._polymerFn=_.LD;var uml=window.onLegacyPolymerFunctionDefinedCallback;uml&&uml();var s4s={templatize:function(m,G){this._templatizerTemplate=m;this.ctor=Ep(m,this,{mutableData:!!G,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(m){return new this.ctor(m)},
modelForElement:function(m){return vid(this._templatizerTemplate,m)}};Polymer.Templatizer=s4s;_.B0=(0,_.lD)(HTMLElement).prototype;Polymer.Base=_.B0;var tkF=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.fC=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.n(_.fC,PolymerFakeBaseClass);var xN=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.n(xN,PolymerFakeBaseClass);var FWJ=Symbol("Ud"),sSd=[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 hao=hao||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},p8o;(function(m){function G(X,f,U){var l=z.get(X);if(!l){if(!U)return;l=new Z;z.set(X,l)}X=l.get(f);if(!X){if(!U)return;X=new Z;l.set(f,X)}return X}
function K(X,f,U){if(W(X,f,U))return!0;f=D(f);return f!==null?K(X,f,U):!1}
function W(X,f,U){f=G(f,U,!1);return f===void 0?!1:!!f.has(X)}
function L(X,f,U){if(W(X,f,U))return A(X,f,U);f=D(f);if(f!==null)return L(X,f,U)}
function A(X,f,U){f=G(f,U,!1);if(f!==void 0)return f.get(X)}
function O(X,f){var U=c(X,f);X=D(X);if(X===null)return U;var l=O(X,f);if(l.length<=0)return U;if(U.length<=0)return l;f=new k;X=[];U=_.g(U);for(var Ls=U.next();!Ls.done;Ls=U.next())Ls=Ls.value,f.has(Ls)||(f.add(Ls),X.push(Ls));U=_.g(l);for(l=U.next();!l.done;l=U.next())l=l.value,f.has(l)||(f.add(l),X.push(l));return X}
function c(X,f){X=G(X,f,!1);var U=[];X&&X.forEach(function(l,Ls){return U.push(Ls)});
return U}
function u(X){return X===void 0}
function h(X){return typeof X==="object"?X!==null:typeof X==="function"}
function J(X){return typeof X==="function"}
function N(X){return typeof X==="symbol"?X:String(X)}
function D(X){var f=Object.getPrototypeOf(X);if(typeof X!=="function"||X===I||f!==I)return f;var U=Object.getPrototypeOf(X.prototype);if(U==null||U===Object.prototype)return f;U=U.constructor;return typeof U!=="function"||U===X?f:U}
function t(){function X(){this._keys=[];this._values=[];this._cache=f}
var f={};X.prototype={get size(){return this._keys.length},has:function(U){return U===this._cache?!0:this._find(U)>=0?(this._cache=U,!0):!1},
get:function(U){var l=this._find(U);if(l>=0)return this._cache=U,this._values[l]},
set:function(U,l){this.delete(U);this._keys.push(U);this._values.push(l);this._cache=U;return this},
delete:function(U){U=this._find(U);return U>=0?(this._keys.splice(U,1),this._values.splice(U,1),this._cache=f,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=f},
forEach:function(U){for(var l=this.size,Ls=0;Ls<l;++Ls){var gd=this._keys[Ls],Qf=this._values[Ls];this._cache=gd;U.call(this,Qf,gd,this)}},
_find:function(U){for(var l=this._keys,Ls=l.length,gd=0;gd<Ls;++gd)if(l[gd]===U)return gd;return-1}};
return X}
function a(){function X(){this._map=new Z}
X.prototype={get size(){return this._map.length},has:function(f){return this._map.has(f)},
add:function(f){this._map.set(f,f);return this},
delete:function(f){return this._map.delete(f)},
clear:function(){this._map.clear()},
forEach:function(f,U){this._map.forEach(f,U)}};
return X}
function v(){function X(){this._key=U()}
function f(DF,kG){for(var eo=0;eo<kG;++eo)DF[eo]=Math.random()*255|0}
function U(){do{if(Ls)var DF=Ls.randomBytes(16);else typeof Uint8Array==="function"?(DF=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(DF):f(DF,16)):(DF=Array(16),f(DF,16));DF[6]=DF[6]&79|64;DF[8]=DF[8]&191|128;for(var kG="",eo=0;eo<16;++eo){var xG=DF[eo];if(eo===4||eo===6||eo===8)kG+="-";xG<16&&(kG+="0");kG+=xG.toString(16).toLowerCase()}DF="@@WeakMap@@"+kG}while(gd.call(Qf,DF));Qf[DF]=!0;return DF}
function l(DF,kG){if(!gd.call(DF,JV)){if(!kG)return;Object.defineProperty(DF,JV,{value:Object.create(null)})}return DF[JV]}
var Ls=typeof global!=="undefined"&&typeof hao==="object"&&typeof require==="function"&&require("crypto"),gd=Object.prototype.hasOwnProperty,Qf={},JV=U();X.prototype={has:function(DF){return(DF=l(DF,!1))?this._key in DF:!1},
get:function(DF){if(DF=l(DF,!1))return DF[this._key]},
set:function(DF,kG){l(DF,!0)[this._key]=kG;return this},
delete:function(DF){return(DF=l(DF,!1))&&this._key in DF?delete DF[this._key]:!1},
clear:function(){this._key=U()}};
return X}
var I=Object.getPrototypeOf(Function),Z=typeof Map==="function"?Map:t(),k=typeof Set==="function"?Set:a(),z=new (typeof WeakMap==="function"?WeakMap:v());m.decorate=function(X,f,U,l){if(u(l)){if(u(U)){if(!Array.isArray(X))throw new TypeError;if(!J(f))throw new TypeError;for(U=X.length-1;U>=0;--U)if(l=(0,X[U])(f),!u(l)){if(!J(l))throw new TypeError;f=l}return f}if(!Array.isArray(X))throw new TypeError;if(!h(f))throw new TypeError;U=N(U);for(l=X.length-1;l>=0;--l)(0,X[l])(f,U)}else{if(Array.isArray(X))if(h(f)){if(u(U))throw new TypeError;
if(!h(l))throw new TypeError;}else throw new TypeError;else throw new TypeError;U=N(U);for(var Ls=X.length-1;Ls>=0;--Ls){var gd=(0,X[Ls])(f,U,l);if(!u(gd)){if(!h(gd))throw new TypeError;l=gd}}return l}};
m.metadata=function(X,f){return function(U,l){if(u(l)){if(!J(U))throw new TypeError;G(U,void 0,!0).set(X,f)}else{if(!h(U))throw new TypeError;l=N(l);G(U,l,!0).set(X,f)}}};
m.defineMetadata=function(X,f){var U;if(h(f))u(U)||(U=N(U));else throw new TypeError;G(f,U,!0).set("parameters",X)};
m.hasMetadata=function(X,f,U){if(h(f))u(U)||(U=N(U));else throw new TypeError;return K(X,f,U)};
m.hasOwnMetadata=function(X,f,U){if(h(f))u(U)||(U=N(U));else throw new TypeError;return W(X,f,U)};
m.getMetadata=function(X,f,U){if(h(f))u(U)||(U=N(U));else throw new TypeError;return L(X,f,U)};
m.getOwnMetadata=function(X,f,U){if(h(f))u(U)||(U=N(U));else throw new TypeError;return A(X,f,U)};
m.getMetadataKeys=function(X,f){if(h(X))u(f)||(f=N(f));else throw new TypeError;return O(X,f)};
m.getOwnMetadataKeys=function(X,f){if(h(X))u(f)||(f=N(f));else throw new TypeError;return c(X,f)};
m.deleteMetadata=function(X,f,U){if(h(f))u(U)||(U=N(U));else throw new TypeError;var l=G(f,U,!1);if(!u(l)){if(!l.delete(X))return!1;if(l.size>0)return!0;X=z.get(f);X.delete(U);if(X.size>0)return!0;z.delete(f);return!0}};
(function(X){if(typeof X.Reflect!=="undefined"){if(X.Reflect!==m)for(var f in m)X.Reflect[f]=m[f]}else X.Reflect=m})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(p8o||(p8o={}));var Wtd=self;var J$0=[0,_.bA,_.sA,_.bA];var Nni=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Nni,_.pp);var Dyi=_.se(Nni,[0,_.jZ,_.Ho,J$0,_.sA,_.Cg]);var F5i=[0,_.ki,-3,_.Cg,_.jZ,_.bA,_.ooS,_.ki,bpB,FuB,QI,_.vo,_.bA,function(){return tAF},
_.sA],tAF=[0,_.Ho,function(){return F5i},
_.jZ,14,_.ki];_.kJ(_.Xg,_.Lt);_.w=_.Xg.prototype;_.w.start=function(){this.stop();this.usingListeners_=!1;var m=QCG(this),G=aJo(this);m&&!G&&this.JSC$11624_win_.mozRequestAnimationFrame?(this.JSC$11624_id_=_.oi(this.JSC$11624_win_,"MozBeforePaint",this.callback_),this.JSC$11624_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11624_id_=m&&G?m.call(this.JSC$11624_win_,this.callback_):this.JSC$11624_win_.setTimeout(SiR(this.callback_),20)};
_.w.stop=function(){if(this.isActive()){var m=QCG(this),G=aJo(this);m&&!G&&this.JSC$11624_win_.mozRequestAnimationFrame?Tg(this.JSC$11624_id_):m&&G?G.call(this.JSC$11624_win_,this.JSC$11624_id_):this.JSC$11624_win_.clearTimeout(this.JSC$11624_id_)}this.JSC$11624_id_=null};
_.w.fire=function(){this.stop();this.JSC$11626_doAction_()};
_.w.isActive=function(){return this.JSC$11624_id_!=null};
_.w.JSC$11626_doAction_=function(){this.usingListeners_&&this.JSC$11624_id_&&Tg(this.JSC$11624_id_);this.JSC$11624_id_=null;this.JSC$11624_listener_.call(this.handler_,_.jI())};
_.w.disposeInternal=function(){this.stop();_.Xg.superClass_.disposeInternal.call(this)};
var QCG=function(m){m=m.JSC$11624_win_;return m.requestAnimationFrame||m.webkitRequestAnimationFrame||m.mozRequestAnimationFrame||m.oRequestAnimationFrame||m.msRequestAnimationFrame||null},aJo=function(m){m=m.JSC$11624_win_;
return m.cancelAnimationFrame||m.cancelRequestAnimationFrame||m.webkitCancelRequestAnimationFrame||m.mozCancelRequestAnimationFrame||m.oCancelRequestAnimationFrame||m.msCancelRequestAnimationFrame||null};_.yO=function(m,G,K){_.Lt.call(this);this.JSC$11627_listener_=K!=null?m.bind(K):m;this.JSC$11627_interval_=G;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11627_timer_=null};
_.n(_.yO,_.Lt);_.w=_.yO.prototype;_.w.fire=function(m){this.args_=arguments;this.JSC$11627_timer_||this.pauseCount_?this.shouldFire_=!0:oEi(this)};
_.w.stop=function(){this.JSC$11627_timer_&&(_.Ks.clearTimeout(this.JSC$11627_timer_),this.JSC$11627_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.w.pause=function(){this.pauseCount_++};
_.w.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11627_timer_||(this.shouldFire_=!1,oEi(this))};
_.w.disposeInternal=function(){_.Lt.prototype.disposeInternal.call(this);this.stop()};
var oEi=function(m){m.JSC$11627_timer_=cW(function(){m.JSC$11627_timer_=null;m.shouldFire_&&!m.pauseCount_&&(m.shouldFire_=!1,oEi(m))},m.JSC$11627_interval_);
var G=m.args_;m.args_=null;m.JSC$11627_listener_.apply(null,G)};var nEo=function(m,G){this.childIterator_=m[_.Ks.Symbol.iterator]();this.mapFn_=G};
nEo.prototype[Symbol.iterator]=function(){return this};
nEo.prototype.next=function(){var m=this.childIterator_.next();return{value:m.done?void 0:this.mapFn_.call(void 0,m.value),done:m.done}};
var bN0=function(m,G){return new nEo(m,G)};var yYF={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 eTP=/#(.)(.)(.)/,Vkd=/^#(?:[0-9a-f]{3}){1,2}$/i,xNs=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i;var vER={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},xA=vER;xA=vER;var wVJ,$yC,sCR;wVJ=function(m,G){switch(G){case 1:return m%4!=0||m%100==0&&m%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
$yC=function(m,G,K,W,L){m=new Date(m,G,K);L=L||0;return m.valueOf()+(((W!==void 0?W:3)-L+7)%7-((m.getDay()+6)%7-L+7)%7)*864E5};
_.Mh=function(m,G,K){typeof m==="number"?(this.date=sCR(m,G||0,K||1),qhC(this,K||1)):_.Ud(m)?(this.date=sCR(m.getFullYear(),m.getMonth(),m.getDate()),qhC(this,m.getDate())):(this.date=new Date(_.jI()),m=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),qhC(this,m))};
sCR=function(m,G,K){G=new Date(m,G,K);m>=0&&m<100&&G.setFullYear(G.getFullYear()-1900);return G};
_.w=_.Mh.prototype;_.w.firstDayOfWeek_=xA.FIRSTDAYOFWEEK;_.w.firstWeekCutOffDay_=xA.FIRSTWEEKCUTOFFDAY;_.w.clone=function(){var m=new _.Mh(this.date);m.firstDayOfWeek_=this.firstDayOfWeek_;m.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return m};
_.w.getFullYear=function(){return this.date.getFullYear()};
_.w.getYear=function(){return this.getFullYear()};
_.w.getMonth=function(){return this.date.getMonth()};
_.w.getDate=function(){return this.date.getDate()};
_.w.getTime=function(){return this.date.getTime()};
_.w.getDay=function(){return this.date.getDay()};
_.w.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.w.getUTCMonth=function(){return this.date.getUTCMonth()};
_.w.getUTCDate=function(){return this.date.getUTCDate()};
_.w.getUTCDay=function(){return this.date.getDay()};
_.w.getUTCHours=function(){return this.date.getUTCHours()};
_.w.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.w.set=function(m){this.date=new Date(m.getFullYear(),m.getMonth(),m.getDate())};
_.w.setFullYear=function(m){this.date.setFullYear(m)};
_.w.setYear=function(m){this.setFullYear(m)};
_.w.setMonth=function(m){this.date.setMonth(m)};
_.w.setDate=function(m){this.date.setDate(m)};
_.w.setTime=function(m){this.date.setTime(m)};
_.w.setUTCFullYear=function(m){this.date.setUTCFullYear(m)};
_.w.setUTCMonth=function(m){this.date.setUTCMonth(m)};
_.w.setUTCDate=function(m){this.date.setUTCDate(m)};
_.w.add=function(m){if(m.years||m.months){var G=this.getMonth()+m.months+m.years*12,K=this.getYear()+Math.floor(G/12);G%=12;G<0&&(G+=12);var W=Math.min(wVJ(K,G),this.getDate());this.setDate(1);this.setFullYear(K);this.setMonth(G);this.setDate(W)}m.days&&(K=this.getYear(),G=K>=0&&K<=99?-1900:0,m=new Date((new Date(K,this.getMonth(),this.getDate(),12)).getTime()+m.days*864E5),this.setDate(1),this.setFullYear(m.getFullYear()+G),this.setMonth(m.getMonth()),this.setDate(m.getDate()),qhC(this,m.getDate()))};
_.w.JSC$11640_toIsoString=function(m){var G=this.getFullYear(),K=G<0?"-":G>=1E4?"+":"";return[K+_.fg(Math.abs(G),K?6:4),_.fg(this.getMonth()+1,2),_.fg(this.getDate(),2)].join(m?"-":"")};
_.w.equals=function(m){return!(!m||this.getYear()!=m.getYear()||this.getMonth()!=m.getMonth()||this.getDate()!=m.getDate())};
_.w.toString=function(){return this.JSC$11640_toIsoString()};
var qhC=function(m,G){m.getDate()!=G&&m.date.setUTCHours(m.date.getUTCHours()+(m.getDate()<G?1:-1))};
_.Mh.prototype.valueOf=function(){return this.date.valueOf()};var mp=function(m,G,K,W,L){this.reversed=!!G;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!K;m&&T1(this,m,W);this.depth=L!=void 0?L:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.kJ(mp,jC);var T1=function(m,G,K,W){if(m.node=G)m.tagType=typeof K==="number"?K:m.node.nodeType!=1?0:m.reversed?-1:1;typeof W==="number"&&(m.depth=W)};
_.w=mp.prototype;_.w.JSC$11655_copyFrom=function(m){this.node=m.node;this.tagType=m.tagType;this.depth=m.depth;this.reversed=m.reversed;this.constrained=m.constrained};
_.w.clone=function(){return new mp(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.w.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return kW;var m=this.node;var G=this.reversed?-1:1;if(this.tagType==G){var K=this.reversed?m.lastChild:m.firstChild;K?T1(this,K):T1(this,m,G*-1)}else(K=this.reversed?m.previousSibling:m.nextSibling)?T1(this,K):T1(this,m.parentNode,G*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(m=this.node)?C_(m):kW};
_.w.equals=function(m){return m.node==this.node&&(!this.node||m.tagType==this.tagType)};
_.w.splice=function(m){var G=this.node,K=this.reversed?1:-1;this.tagType==K&&(this.tagType=K*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;mp.prototype.next.call(this);this.reversed=!this.reversed;K=_.XP(arguments[0])?arguments[0]:arguments;for(var W=K.length-1;W>=0;W--)_.NN(K[W],G);_.mX(G)};var EE2=function(){},ih=function(m){for(var G=[],K=m.getTextRangeCount(),W=0;W<K;W++)G.push(m.getTextRange(W));
return G};
EE2.prototype.isReversed=function(){return!1};
EE2.prototype.getWindow=function(){return ur(_.hI(this.JSC$11657_getStartNode()))};
var HN2=function(m,G){mp.call(this,m,G,!0)};
_.kJ(HN2,mp);var GU=function(m,G,K,W,L){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!L;if(m){this.startNode_=m;this.startOffset_=G;this.endNode_=K;this.endOffset_=W;if(m.nodeType==1&&m.tagName!="BR")if(m=m.childNodes,G=m[G])this.startNode_=G,this.startOffset_=0;else{m.length&&(this.startNode_=_.HJ(m));var A=!0}K.nodeType==1&&((this.endNode_=K.childNodes[W])?this.endOffset_=0:this.endNode_=K)}mp.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);A&&this.next()};
_.kJ(GU,HN2);_.w=GU.prototype;_.w.JSC$11663_getStartNode=function(){return this.startNode_};
_.w.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)};
_.w.next=function(){return this.isLast()?kW:GU.superClass_.next.call(this)};
_.w.JSC$11655_copyFrom=function(m){this.startNode_=m.startNode_;this.endNode_=m.endNode_;this.startOffset_=m.startOffset_;this.endOffset_=m.endOffset_;this.isReversed_=m.isReversed_;GU.superClass_.JSC$11655_copyFrom.call(this,m)};
_.w.clone=function(){var m=new GU(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);m.JSC$11655_copyFrom(this);return m};XbP.prototype.__iterator__=function(){return new GU(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};_.kJ(S_,XbP);var IJ0=function(m){var G=_.hI(m).createRange();if(m.nodeType==3)G.setStart(m,0),G.setEnd(m,m.length);else if(hY(m)||m.nodeType==3){for(var K,W=m;(K=W.firstChild)&&(hY(K)||K.nodeType==3);)W=K;G.setStart(W,0);for(W=m;(K=W.lastChild)&&(hY(K)||K.nodeType==3);)W=K;G.setEnd(W,W.nodeType==1?W.childNodes.length:W.length)}else K=m.parentNode,m=Array.prototype.indexOf.call(K.childNodes,m),G.setStart(K,m),G.setEnd(K,m+1);return G},jCR=function(m,G,K,W){var L=_.hI(m).createRange();
L.setStart(m,G);L.setEnd(K,W);return L};
_.w=S_.prototype;_.w.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.w.getContainer=function(){return this.range_.commonAncestorContainer};
_.w.compareBrowserRangeEndpoints=function(m,G,K){return this.range_.compareBoundaryPoints(K==1?G==1?_.Ks.Range.START_TO_START:_.Ks.Range.START_TO_END:G==1?_.Ks.Range.END_TO_START:_.Ks.Range.END_TO_END,m)};
_.w.isCollapsed=function(){return this.range_.collapsed};
_.w.select=function(m){this.selectInternal(ur(_.hI(this.range_.startContainer)).getSelection(),m)};
_.w.selectInternal=function(m){m.removeAllRanges();m.addRange(this.range_)};
_.w.insertNode=function(m,G){var K=this.range_.cloneRange();K.collapse(G);K.insertNode(m);K.detach();return m};
_.w.collapse=function(m){this.range_.collapse(m)};_.kJ(Rv,S_);Rv.prototype.selectInternal=function(m,G){!G||this.isCollapsed()?Rv.superClass_.selectInternal.call(this,m,G):(m.collapse(this.range_.endContainer,this.range_.endOffset),m.extend(this.range_.startContainer,this.range_.startOffset))};_.kJ(Up,S_);Up.prototype.compareBrowserRangeEndpoints=function(m,G,K){return Up.superClass_.compareBrowserRangeEndpoints.call(this,m,G,K)};
Up.prototype.selectInternal=function(m,G){G?m.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):m.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var L$=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},lSV;
_.kJ(L$,EE2);lSV=function(m,G){var K=new L$;K.browserRangeWrapper_=m;K.isReversed_=!!G;return K};
_.kko=function(m){m=_.zb?new Up(IJ0(m)):_.lY?new Rv(IJ0(m)):new S_(IJ0(m));return lSV(m)};
_.Tb=function(m,G,K,W){var L=new L$;L.isReversed_=zTf(m,G,K,W);if(_.eU(m)&&!hY(m)){var A=m.parentNode;G=Array.prototype.indexOf.call(A.childNodes,m);m=A}_.eU(K)&&!hY(K)&&(A=K.parentNode,W=Array.prototype.indexOf.call(A.childNodes,K),K=A);L.isReversed_?(L.startNode_=K,L.startOffset_=W,L.endNode_=m,L.endOffset_=G):(L.startNode_=m,L.startOffset_=G,L.endNode_=K,L.endOffset_=W);return L};
_.w=L$.prototype;_.w.clone=function(){var m=new L$;m.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();m.startNode_=this.startNode_;m.startOffset_=this.startOffset_;m.endNode_=this.endNode_;m.endOffset_=this.endOffset_;m.isReversed_=this.isReversed_;return m};
_.w.JSC$11657_getType=function(){return"text"};
_.w.getBrowserRangeObject=function(){return Ad(this).range_};
_.w.getTextRangeCount=function(){return 1};
_.w.getTextRange=function(){return this};
var Ad=function(m){var G;if(!(G=m.browserRangeWrapper_)){G=m.JSC$11657_getStartNode();var K=m.JSC$11657_getStartOffset(),W=m.JSC$11657_getEndNode(),L=m.JSC$11657_getEndOffset();G=_.zb?new Up(jCR(G,K,W,L)):_.lY?new Rv(jCR(G,K,W,L)):new S_(jCR(G,K,W,L));G=m.browserRangeWrapper_=G}return G};
_.w=L$.prototype;_.w.getContainer=function(){return Ad(this).getContainer()};
_.w.JSC$11657_getStartNode=function(){return this.startNode_||(this.startNode_=Ad(this).range_.startContainer)};
_.w.JSC$11657_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Ad(this).range_.startOffset};
_.w.JSC$11657_getEndNode=function(){return this.endNode_||(this.endNode_=Ad(this).range_.endContainer)};
_.w.JSC$11657_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Ad(this).range_.endOffset};
_.w.isReversed=function(){return this.isReversed_};
_.w.JSC$11657_containsRange=function(m,G){if(m.JSC$11657_getType()=="text"){var K=Ad(this);m=Ad(m);G=G&&!m.isCollapsed();m=m.range_;K=G?K.compareBrowserRangeEndpoints(m,0,1)>=0&&K.compareBrowserRangeEndpoints(m,1,0)<=0:K.compareBrowserRangeEndpoints(m,0,0)>=0&&K.compareBrowserRangeEndpoints(m,1,1)<=0}else K=!1;return K};
_.w.isCollapsed=function(){return Ad(this).isCollapsed()};
_.w.JSC$11657_getText=function(){return Ad(this).range_.toString()};
_.w.__iterator__=function(){return new GU(this.JSC$11657_getStartNode(),this.JSC$11657_getStartOffset(),this.JSC$11657_getEndNode(),this.JSC$11657_getEndOffset())};
_.w.select=function(){Ad(this).select(this.isReversed_)};
_.w.JSC$11657_removeContents=function(){var m=Ad(this).range_;m.extractContents();if(m.startContainer.hasChildNodes()&&(m=m.startContainer.childNodes[m.startOffset])){var G=m.previousSibling;d7S(m)==""&&_.mX(m);G&&d7S(G)==""&&_.mX(G)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.w.insertNode=function(m,G){m=Ad(this).insertNode(m,G);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return m};
_.w.collapse=function(m){m=this.isReversed()?!m:m;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(m);m?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var CK0=function(){};
_.kJ(CK0,EE2);CK0.prototype.JSC$11657_containsRange=function(m,G){var K=ih(this);m=ih(m);return(G?Vl:_.Qyo)(m,function(W){return Vl(K,function(L){return L.JSC$11657_containsRange(W,G)})})};
CK0.prototype.insertNode=function(m,G){G?_.JY(m,this.JSC$11657_getStartNode()):_.NN(m,this.JSC$11657_getEndNode());return m};var VAC,ZN0=Wt().JSC$9633_document_.documentElement;VAC=ZN0.requestFullscreen?"fullscreenchange":ZN0.webkitRequestFullscreen?"webkitfullscreenchange":ZN0.mozRequestFullScreen?"mozfullscreenchange":ZN0.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Mk=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.kJ(Mk,CK0);_.w=Mk.prototype;_.w.clone=function(){var m=new Mk;m.browserRanges_=_.yf(this.browserRanges_);return m};
_.w.JSC$11657_getType=function(){return"mutli"};
_.w.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.w.getTextRangeCount=function(){return this.browserRanges_.length};
_.w.getTextRange=function(m){this.ranges_[m]||(this.ranges_[m]=lSV(S1G(this.browserRanges_[m])));return this.ranges_[m]};
_.w.getContainer=function(){if(!this.container_){for(var m=[],G=this.getTextRangeCount(),K=0;K<G;K++)m.push(this.getTextRange(K).getContainer());this.container_=HBo.apply(null,m)}return this.container_};
var wN=function(m){m.sortedRanges_||(m.sortedRanges_=ih(m),m.sortedRanges_.sort(function(G,K){var W=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();var L=K.JSC$11657_getStartNode();K=K.JSC$11657_getStartOffset();return W==L&&G==K?0:zTf(W,G,L,K)?1:-1}));
return m.sortedRanges_};
_.w=Mk.prototype;_.w.JSC$11657_getStartNode=function(){return wN(this)[0].JSC$11657_getStartNode()};
_.w.JSC$11657_getStartOffset=function(){return wN(this)[0].JSC$11657_getStartOffset()};
_.w.JSC$11657_getEndNode=function(){return _.HJ(wN(this)).JSC$11657_getEndNode()};
_.w.JSC$11657_getEndOffset=function(){return _.HJ(wN(this)).JSC$11657_getEndOffset()};
_.w.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.w.JSC$11657_getText=function(){return ih(this).map(function(m){return m.JSC$11657_getText()}).join("")};
_.w.__iterator__=function(){return new gN(this)};
_.w.select=function(){var m=this.getWindow().getSelection();m.removeAllRanges();for(var G=this.getTextRangeCount(),K=0;K<G;K++)m.addRange(this.getTextRange(K).getBrowserRangeObject())};
_.w.JSC$11657_removeContents=function(){ih(this).forEach(function(m){m.JSC$11657_removeContents()})};
_.w.collapse=function(m){if(!this.isCollapsed()){var G=m?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;G.collapse(m);this.ranges_=[G];this.sortedRanges_=[G];this.browserRanges_=[G.getBrowserRangeObject()]}};
var gN=function(m){this.iterators_=null;this.currentIdx_=0;m&&(this.iterators_=wN(m).map(function(G){return _.wkl(G)}));
mp.call(this,m?this.JSC$11663_getStartNode():null,!1,!0)};
_.kJ(gN,HN2);_.w=gN.prototype;_.w.JSC$11663_getStartNode=function(){return this.iterators_[0].JSC$11663_getStartNode()};
_.w.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.w.next=function(){for(;this.currentIdx_<this.iterators_.length;){var m=this.iterators_[this.currentIdx_],G=m.next();if(G.done)this.currentIdx_++;else return T1(this,m.node,m.tagType,m.depth),G}return kW};
_.w.JSC$11655_copyFrom=function(m){this.iterators_=_.yf(m.iterators_);gN.superClass_.JSC$11655_copyFrom.call(this,m)};
_.w.clone=function(){var m=new gN(null);m.JSC$11655_copyFrom(this);return m};var OY=function(){_.ai.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.AO)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.AO)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.AO)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.AO)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.AO)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.AO)(this.dispatchProgressEvent_,this)};
_.kJ(OY,_.ai);OY.prototype.abort=function(){try{this.reader_.abort()}catch(m){throw new YBG(m,"aborting read");}};
OY.prototype.getError=function(){return this.reader_.error&&new YBG(this.reader_.error,"reading file")};
OY.prototype.dispatchProgressEvent_=function(m){this.dispatchEvent(new g3o(m,this))};
OY.prototype.disposeInternal=function(){OY.superClass_.disposeInternal.call(this);delete this.reader_};
var PKk=function(m){var G=new OY,K=dyG(G);G.reader_.readAsArrayBuffer(m);return K},y$X=function(m){var G=new OY,K=dyG(G);
G.reader_.readAsDataURL(m);return K},dyG=function(m){var G=new rM;
m.listen("loadend",_.BH(function(K,W){var L=W.reader_.result,A=W.getError();L==null||A?K.errback(A):K.callback(L);W.dispose()},G,m));
return G};var cF=function(){_.ai.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11697_eventHandler_=new _.gM(this);this.JSC$11697_isInitialized_=!1};
_.kJ(cF,_.ai);var ea0=new _.iZ("d"),fJ0=new _.iZ("beforedragstart"),xyF=new _.iZ("dragstart"),X8k=new _.iZ("beforedragmove"),Sh0=new _.iZ("dragmove"),RaC=new _.iZ("beforedragend"),Uy4=new _.iZ("dragend"),zai=new _.iZ("e");cF.prototype.isDragging=function(){return!!this.JSC$11697_dragger_};
var lJk=function(m,G){G.dlgGrowthDirection_=0;G.dlgDragHoverClass_=void 0;G.dlgDragPermission=0;m.dragLists_.push(G)},Bnk=function(m,G){m.getHandleForDragItem_=G};
cF.prototype.init=function(){if(!this.JSC$11697_isInitialized_){for(var m=this.dragLists_.length,G=0;G<m;G++)for(var K=_.DS(this.dragLists_[G]),W=K.length,L=0;L<W;++L){var A=K[L],O=this.getHandleForDragItem_(A),c=_.z9(O);this.dragItemForHandle_[c]=A;this.dragItemHoverClasses_&&(this.JSC$11697_eventHandler_.listen(A,"mouseover",this.handleDragItemMouseover_),this.JSC$11697_eventHandler_.listen(A,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11697_eventHandler_.listen(O,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11697_eventHandler_.listen(O,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(A);this.JSC$11697_eventHandler_.listen(O,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11697_isInitialized_=!0}};
cF.prototype.disposeInternal=function(){this.JSC$11697_eventHandler_.dispose();for(var m=this.dragLists_.length,G=0;G<m;G++){var K=this.dragLists_[G];K.dlgGrowthDirection_=void 0;K.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;MAB(this);cF.superClass_.disposeInternal.call(this)};
var TnG=function(m,G){for(var K=m.dragLists_.length,W=0;W<K;W++){var L=m.dragLists_[W];L.dlgBounds_=MkG(L)}K=m.dragItems_.length;for(W=0;W<K;W++)L=m.dragItems_[W],L!=G&&(L.dlgBounds_=MkG(L))};
_.w=cF.prototype;
_.w.handlePotentialDragStart_=function(m){var G=_.z9(m.currentTarget);G=this.dragItemForHandle_[G];if(G.parentElement.dlgDragPermission!=2){this.currDragItem_=G;a:{G=this.currDragItem_;for(var K=G.cloneNode(!0),W=iE("TEXTAREA",G),L=iE("TEXTAREA",K),A=0;A<W.length;A++)L[A].value=W[A].value;switch(G.tagName){case "TR":G=_.r3("TABLE",null,_.r3("TBODY",null,K));break a;case "TD":case "TH":G=_.r3("TABLE",null,_.r3("TBODY",null,_.r3("TR",null,K)));break a;case "TEXTAREA":K.value=G.value;default:G=K;break a}G=
void 0}this.draggerEl_=G;this.draggerElClasses_&&$Z(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.hI(this.currDragItem_).body.appendChild(this.draggerEl_);K=_.pB(this.currDragItem_);G=this.draggerEl_;W=_.pB(G);if(K instanceof _.si){var O=K.y;K=K.x}aS(G,G.offsetLeft+(K-W.x),G.offsetTop+(Number(O)-W.y));this.JSC$11697_dragger_=new _.uB(this.draggerEl_);_.NBR(this.JSC$11697_dragger_,this.hysteresisDistance_);
_.oi(this.JSC$11697_dragger_,"start",this.handleDragStart_,!1,this);_.oi(this.JSC$11697_dragger_,"end",this.handleDragEnd_,!1,this);_.oi(this.JSC$11697_dragger_,"earlycancel",this.JSC$11699_cleanup_,!1,this);this.dispatchEvent(new Y4(ea0,this,m,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_));this.JSC$11697_dragger_.startDrag(m)}};
_.w.handleDragStart_=function(m){if(this.dispatchEvent(new Y4(fJ0,this,m.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.s$k(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?$Z(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var G=Xt0(this.draggerEl_);this.draggerEl_.halfWidth=G.width/2;this.draggerEl_.halfHeight=G.height/2;G=this.draggerEl_.getBoundingClientRect();
var K=m.clientY,W=D8k(this.JSC$11697_dragger_,m.clientX);if(W>G.right){var L=this.currDragItem_.getBoundingClientRect();this.JSC$11697_dragger_.deltaX=W-(W-L.left)/L.width*G.width}K=tlP(this.JSC$11697_dragger_,K);K>G.bottom&&(this.JSC$11697_dragger_.deltaY+=K-G.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";TnG(this,this.currDragItem_);this.currDragItem_.style.display="";_.oi(this.JSC$11697_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Y4(xyF,
this,m.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_))}else m.preventDefault(),this.JSC$11699_cleanup_()};
_.w.handleDragMove_=function(m){var G=_.pB(this.draggerEl_);G=new _.si(G.x+this.draggerEl_.halfWidth,G.y+this.draggerEl_.halfHeight);a:{var K=null;if(this.currDragItem_.style.display!="none"){K=this.currDragItem_.parentNode;var W=MkG(K);if(mWX(G,W))break a}W=this.dragLists_.length;for(var L=0;L<W;L++){var A=this.dragLists_[L];if(A!=K&&mWX(G,A.dlgBounds_)){K=A;break a}}K=null}if(K){if(K==null)throw Error("be");W=0;L=!1;A=void 0;switch(K.dlgGrowthDirection_){case 0:W=G.y;var O=izC;var c=G$X;break;case 4:L=
!0;case 2:W=G.x;O=Kr4;c=G$X;break;case 5:L=!0;case 3:W=G.x,O=WrR,c=LrP}for(var u=null,h,J=_.DS(K),N=J.length,D=0;D<N;D++){var t=J[D];if(t!=this.currDragItem_){var a=O(t.dlgBounds_);if(L){var v=Aol(t,G);A===void 0&&(A=v);c(W,a)&&(h==void 0||v<A||v==A&&(c(a,h)||a==h))&&(u=t,h=a);v<A&&(A=v)}else c(W,a)&&(h==void 0||c(a,h))&&(u=t,h=a)}}O=u!==null&&Aol(u,G)>A?null:u}else O=null;if(!this.dispatchEvent(new Y4(X8k,this,m,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_,G,K,O)))return!1;if(K&&K.dlgDragPermission!=
1)this.currDragItem_.parentNode==K&&_.s$k(this.currDragItem_)==O||K.insertBefore(this.currDragItem_,O),this.currDragItem_.style.display="",K.dlgDragHoverClass_&&_.QO(K,K.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",c=this.dragLists_.length,h=0;h<c;h++)W=this.dragLists_[h],W.dlgDragHoverClass_&&_.Fm(W,W.dlgDragHoverClass_);K!=this.currHoverList_&&(this.currHoverList_=K,TnG(this,this.currDragItem_));this.dispatchEvent(new Y4(Sh0,this,m,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_,
G,K,O));return!1};
_.w.JSC$11699_cleanup_=function(){MAB(this);this.JSC$11697_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var m=this.dragLists_.length,G=0;G<m;G++)this.dragLists_[G].dlgBounds_=null;m=this.dragItems_.length;for(G=0;G<m;G++)this.dragItems_[G].dlgBounds_=null};
_.w.handleDragEnd_=function(m){if(!this.dispatchEvent(new Y4(RaC,this,m,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_)))return!1;MAB(this);this.dispatchEvent(new Y4(Uy4,this,m,this.currDragItem_,this.draggerEl_,this.JSC$11697_dragger_));this.JSC$11699_cleanup_();return!0};
var MAB=function(m){_.I$(m.JSC$11697_dragger_);var G=m.draggerEl_&&m.draggerEl_.parentElement;m.draggerEl_&&_.mX(m.draggerEl_);m.currDragItem_&&m.currDragItem_.style.display=="none"&&(m.origList_.insertBefore(m.currDragItem_,m.origNextItem_),m.currDragItem_.style.display="");m.currDragItemClasses_&&m.currDragItem_?aD0(m.currDragItem_,m.currDragItemClasses_||[]):m.currDragItem_&&(m.currDragItem_.style.visibility="");for(var K=m.dragLists_.length,W=0;W<K;W++){var L=m.dragLists_[W];L.dlgDragHoverClass_&&
_.Fm(L,L.dlgDragHoverClass_)}G&&m.dispatchEvent(new Y4(zai,m,null,m.currDragItem_,m.draggerEl_,m.JSC$11697_dragger_))};
_.w=cF.prototype;_.w.getHandleForDragItem_=function(m){return m};
_.w.handleDragItemMouseover_=function(m){$Z(m.currentTarget,this.dragItemHoverClasses_||[])};
_.w.handleDragItemMouseout_=function(m){aD0(m.currentTarget,this.dragItemHoverClasses_||[])};
_.w.handleDragItemHandleMouseover_=function(m){$Z(m.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.w.handleDragItemHandleMouseout_=function(m){aD0(m.currentTarget,this.dragItemHandleHoverClasses_||[])};
var mWX=function(m,G){return m.x>G.left&&m.x<G.left+G.width&&m.y>G.top&&m.y<G.top+G.height},Aol=function(m,G){m=m.dlgBounds_;
return Math.abs(G.y-(m.top+(m.height-1)/2))},izC=function(m){return m.top+m.height-1},Kr4=function(m){return m.left+m.width-1},WrR=function(m){return m.left||0},G$X=function(m,G){return m<G},LrP=function(m,G){return m>G},Y4=function(m,G,K,W,L,A){_.dM.call(this,m);
this.event=K;this.currDragItem=W;this.draggerEl=L;this.JSC$11701_dragger=A};
_.kJ(Y4,_.dM);_.kJ(GP,_.Lt);var wpP=new _.si(0,0);GP.prototype.JSC$11705_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
GP.prototype.JSC$11705_onMouseMove=function(m){var G=this.containerIsActuallyContent_?wpP:KB(Wt(this.containerNode_)),K=this.horizontalScrolling_?this.calculateScrollDelta(m.clientX+G.x,this.scrollBounds_.left,this.scrollBounds_.width):0,W=this.calculateScrollDelta(m.clientY+G.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=K;this.scrollDelta_.y=W;!(K=!K&&!W)&&(K=this.constrainScroll_)&&(K=m.clientX+G.x,m=m.clientY+G.y,G=this.containerBounds_,K=!(G.left<=K&&G.left+G.width>=
K&&G.top<=m&&G.top+G.height>=m));K?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
GP.prototype.calculateScrollDelta=function(m,G,K){var W=0;m<G?W=-8:m>G+K&&(W=8);return W};
GP.prototype.disposeInternal=function(){GP.superClass_.disposeInternal.call(this);this.JSC$11703_eventHandler_.dispose();this.scrollTimer_.dispose()};var ggP={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"}}},rN=ggP;rN=ggP;var uh={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 aW=function(m){if(typeof m=="number"){var G=new T3P;G.standardOffset_=m;var K=m;if(K==0)K="Etc/GMT";else{var W=["Etc/GMT",K<0?"-":"+"];K=Math.abs(K);W.push(Math.floor(K/60)%100);K%=60;K!=0&&W.push(":",_.fg(K,2));K=W.join("")}G.timeZoneId_=K;K=m;K==0?K="UTC":(W=["UTC",K<0?"+":"-"],K=Math.abs(K),W.push(Math.floor(K/60)%100),K%=60,K!=0&&W.push(":",K),K=W.join(""));m=Ozi(m);G.tzNames_=[K,K];G.tzNamesExt_={STD_LONG_NAME_GMT:m,STD_GENERIC_LOCATION:m};G.transitions_=[];return G}G=new T3P;G.timeZoneId_=
m.id;G.standardOffset_=-m.std_offset;G.tzNames_=m.names;G.tzNamesExt_=m.names_ext;G.transitions_=m.transitions;return G},Ozi=function(m){var G=["GMT"];
G.push(m<=0?"+":"-");m=Math.abs(m);G.push(_.fg(Math.floor(m/60)%100,2),":",_.fg(m%60,2));return G.join("")},co2=function(m,G){G=Date.UTC(G.getUTCFullYear(),G.getUTCMonth(),G.getUTCDate(),G.getUTCHours(),G.getUTCMinutes())/36E5;
for(var K=0;K<m.transitions_.length&&G>=m.transitions_[K];)K+=2;return K==0?0:m.transitions_[K-1]},YT0=function(m,G){m=m.standardOffset_-co2(m,G);
return m===-1440?0:m};var oW=function(m,G){this.patternParts_=[];this.JSC$11716_dateTimeSymbols_=G||xA;typeof m=="number"?roK(this,m):ukR(this,m)},hzX=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],hd=function(m){return m.getHours?m.getHours():0},ukR=function(m,G){for(CCG&&(G=G.replace(/\u200f/g,""));G;){for(var K=G,W=0;W<hzX.length;++W){var L=G.match(hzX[W]);
if(L){var A=L[0];G=G.substring(A.length);W==0&&(A=="''"?A="'":(A=A.substring(1,L[1]=="'"?A.length-1:A.length),A=A.replace(/''/g,"'")));m.patternParts_.push({text:A,type:W});break}}if(K===G)throw Error("ce`"+G);}};
oW.prototype.format=function(m,G){if(!m)throw Error("de");var K=G?(m.getTimezoneOffset()-YT0(G,m))*6E4:0,W=K?new Date(m.getTime()+K):m,L=W;G&&W.getTimezoneOffset()!=m.getTimezoneOffset()&&(W=new Date(W.getTime()+(W.getTimezoneOffset()-m.getTimezoneOffset())*6E4),L=new Date(m.getTime()+(K+(K>0?-864E5:864E5))));K=[];for(var A=0;A<this.patternParts_.length;++A){var O=this.patternParts_[A].text;1==this.patternParts_[A].type?K.push(ppC(this,O,m,W,L,G)):K.push(O)}return K.join("")};
var roK=function(m,G){if(G<4)var K=m.JSC$11716_dateTimeSymbols_.DATEFORMATS[G];else if(G<8)K=m.JSC$11716_dateTimeSymbols_.TIMEFORMATS[G-4];else if(G<12)K=m.JSC$11716_dateTimeSymbols_.DATETIMEFORMATS[G-8],K=K.replace("{1}",m.JSC$11716_dateTimeSymbols_.DATEFORMATS[G-8]),K=K.replace("{0}",m.JSC$11716_dateTimeSymbols_.TIMEFORMATS[G-8]);else if(G===12)K=m.JSC$11716_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(G===13)K=m.JSC$11716_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{roK(m,10);return}ukR(m,K)},p$=function(m,G){G=String(G);
m=m.JSC$11716_dateTimeSymbols_||xA;if(m.ZERODIGIT!==void 0&&!kl9){for(var K=[],W=0;W<G.length;W++){var L=G.charCodeAt(W);K.push(48<=L&&L<=57?String.fromCharCode(m.ZERODIGIT+L-48):G.charAt(W))}G=K.join("")}return G},kl9=!1,CCG=!1,NqF=function(m,G,K,W){K=K.getFullYear();
K<=0&&W&&(K=1-K);return p$(m,JoP(K,G))},JoP=function(m,G){G==2&&(m%=100);
m<0&&G++;return _.fg(m,G)},Jd=function(m){if(!(m.getHours&&m.getSeconds&&m.getMinutes))throw Error("ee");
},DW4=function(m,G){Jd(G);
G=hd(G);return m.JSC$11716_dateTimeSymbols_.AMPMS[G>=12&&G<24?1:0]},ppC=function(m,G,K,W,L,A){var O=G.length;
switch(G.charAt(0)){case "G":return K=W.getFullYear()>0?1:0,O>=4?m.JSC$11716_dateTimeSymbols_.ERANAMES[K]:m.JSC$11716_dateTimeSymbols_.ERAS[K];case "y":return NqF(m,O,W,!0);case "Y":return K=(new Date($yC(W.getFullYear(),W.getMonth(),W.getDate(),m.JSC$11716_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,m.JSC$11716_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),O==2&&(K%=100),p$(m,JoP(K,O));case "u":return NqF(m,O,W,!1);case "M":a:switch(K=W.getMonth(),O){case 5:O=m.JSC$11716_dateTimeSymbols_.NARROWMONTHS[K];
break a;case 4:O=m.JSC$11716_dateTimeSymbols_.MONTHS[K];break a;case 3:O=m.JSC$11716_dateTimeSymbols_.SHORTMONTHS[K];break a;default:O=p$(m,_.fg(K+1,O))}return O;case "k":return Jd(L),p$(m,_.fg(hd(L)||24,O));case "S":return p$(m,(L.getMilliseconds()/1E3).toFixed(Math.min(3,O)).slice(2)+(O>3?_.fg(0,O-3):""));case "E":return K=W.getDay(),O>=4?m.JSC$11716_dateTimeSymbols_.WEEKDAYS[K]:m.JSC$11716_dateTimeSymbols_.SHORTWEEKDAYS[K];case "a":return DW4(m,L);case "b":return DW4(m,L);case "B":return DW4(m,
L);case "h":return Jd(L),p$(m,_.fg(hd(L)%12||12,O));case "K":return Jd(L),p$(m,_.fg(hd(L)%12,O));case "H":return Jd(L),p$(m,_.fg(hd(L),O));case "c":a:switch(K=W.getDay(),O){case 5:O=m.JSC$11716_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[K];break a;case 4:O=m.JSC$11716_dateTimeSymbols_.STANDALONEWEEKDAYS[K];break a;case 3:O=m.JSC$11716_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[K];break a;default:O=p$(m,_.fg(K,1))}return O;case "L":a:switch(K=W.getMonth(),O){case 5:O=m.JSC$11716_dateTimeSymbols_.STANDALONENARROWMONTHS[K];
break a;case 4:O=m.JSC$11716_dateTimeSymbols_.STANDALONEMONTHS[K];break a;case 3:O=m.JSC$11716_dateTimeSymbols_.STANDALONESHORTMONTHS[K];break a;default:O=p$(m,_.fg(K+1,O))}return O;case "Q":return K=Math.floor(W.getMonth()/3),O<4?m.JSC$11716_dateTimeSymbols_.SHORTQUARTERS[K]:m.JSC$11716_dateTimeSymbols_.QUARTERS[K];case "d":return p$(m,_.fg(W.getDate(),O));case "m":return Jd(L),p$(m,_.fg(L.getMinutes?L.getMinutes():0,O));case "s":return Jd(L),p$(m,_.fg(L.getSeconds(),O));case "v":return(A||aW(K.getTimezoneOffset())).timeZoneId_;
case "V":return m=A||aW(K.getTimezoneOffset()),O<=2?m.timeZoneId_:co2(m,K)>0?m.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?m.tzNamesExt_.DST_GENERIC_LOCATION:m.tzNamesExt_.DST_GENERIC_LOCATION:m.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?m.tzNamesExt_.STD_GENERIC_LOCATION:m.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return K=$yC(L.getFullYear(),L.getMonth(),L.getDate(),m.JSC$11716_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,m.JSC$11716_dateTimeSymbols_.FIRSTDAYOFWEEK),p$(m,_.fg(Math.floor(Math.round((K-(new Date((new Date(K)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,O));case "z":return m=A||aW(K.getTimezoneOffset()),O<4?m.tzNames_[co2(m,K)>0?2:0]:m.tzNames_[co2(m,K)>0?3:1];case "Z":return G=A||aW(K.getTimezoneOffset()),O<4?(O=-YT0(G,K),m=[O<0?"-":"+"],O=Math.abs(O),m.push(_.fg(Math.floor(O/60)%100,2),_.fg(O%60,2)),O=m.join("")):O=p$(m,Ozi(YT0(G,K))),O;default:return""}};var t5G=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,FrB=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Isd=function(m){this.patternParts_=[];this.JSC$11725_dateTimeSymbols_=xA;if(typeof m=="number"){m>11&&(m=10);if(m<4)var G=this.JSC$11725_dateTimeSymbols_.DATEFORMATS[m];else m<8?G=this.JSC$11725_dateTimeSymbols_.TIMEFORMATS[m-4]:(G=this.JSC$11725_dateTimeSymbols_.DATETIMEFORMATS[m-8],G=G.replace("{1}",this.JSC$11725_dateTimeSymbols_.DATEFORMATS[m-8]),G=G.replace("{0}",this.JSC$11725_dateTimeSymbols_.TIMEFORMATS[m-
8]));QLi(this,G)}else QLi(this,m)},QLi=function(m,G){for(var K=!1,W="",L=0;L<G.length;L++){var A=G.charAt(L);
if(t5G.test(A))for(W.length>0&&(m.patternParts_.push({text:W,count:0,abutStart:!1,numeric:!1}),W=""),m.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});L<G.length-1&&G.charAt(L+1)==" ";)L++;else if(K)A=="'"?L+1<G.length&&G.charAt(L+1)=="'"?(W+="'",L++):K=!1:W+=A;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(A)>=0){W.length>0&&(m.patternParts_.push({text:W,count:0,abutStart:!1,numeric:!1}),W="");for(var O=G.charAt(L),c=L+1;c<G.length&&G.charAt(c)==O;)c++;O=c-L;O<=0?c=!1:(c="MydhHmsSDkK".indexOf(A),
c=c>0||c==0&&O<3);m.patternParts_.push({text:A,count:O,abutStart:!1,numeric:c});L+=O-1}else A=="'"?L+1<G.length&&G.charAt(L+1)=="'"?(W+="'",L++):K=!0:W+=A}W.length>0&&m.patternParts_.push({text:W,count:0,abutStart:!1,numeric:!1});G=!1;for(K=0;K<m.patternParts_.length;K++)m.patternParts_[K].numeric?!G&&K+1<m.patternParts_.length&&m.patternParts_[K+1].numeric&&(G=!0,m.patternParts_[K].abutStart=!0):G=!1};
Isd.prototype.parse=function(m,G,K){var W=!1,L=!1;K&&(W=K.predictive||!1,L=K.validate||!1);if(W)for(K=0;K<this.patternParts_.length;K++){var A=this.patternParts_[K];if(A.count>0&&("abBhHkKm".indexOf(A.text.charAt(0))<0||A.count>2||A.abutStart))throw Error("fe`"+A.text.charAt(0));}A=new agk;K=[0];A.dayPeriodIndex=-1;for(var O=0;O<this.patternParts_.length&&!(W&&K[0]>=m.length);O++){if(this.patternParts_[O].count==0){a:{var c=m;var u=K,h=this.patternParts_[O],J=W;if(h.text.match(t5G)!=null){if(h=u[0],
ogk(c,u),u[0]>h){c=!0;break a}}else{if(c.indexOf(h.text,u[0])==u[0]){u[0]+=h.text.length;c=!0;break a}if(J&&h.text.indexOf(c.substring(u[0]))==0){u[0]+=c.length-u[0];c=!0;break a}}c=!1}if(c)continue;return 0}if(this.patternParts_[O].abutStart){a:{u=m;h=K;J=O;var N=h[0],D=0;for(c=J;c<this.patternParts_.length;c++){var t=this.patternParts_[c],a=t.count;if(a===0)break;if(c==J&&(a-=D,D++,a==0)){c=0;break a}var v=c>J&&t.numeric,I=h[0];if(!ngR(this,u,h,t,a,A,!1)||v&&h[0]-I<a)c=J-1,h[0]=N}c-=J}if(c<=0)return 0;
O+=c-1}else if(!ngR(this,m,K,this.patternParts_[O],0,A,W))return 0}a:{m=L;if(G==null)throw Error("ge");A.era!=void 0&&A.year!=void 0&&A.era==0&&A.year>0&&(A.year=-(A.year-1));A.year!=void 0&&G.setFullYear(A.year);W=G.getDate();G.setDate(1);A.month!=void 0&&G.setMonth(A.month);A.day!=void 0?G.setDate(A.day):(L=wVJ(G.getFullYear(),G.getMonth()),G.setDate(W>L?L:W));typeof G.setHours==="function"&&(A.hours==void 0&&(A.hours=G.getHours()),A.hours<12&&(A.ampm!=void 0&&A.ampm>0?A.hours+=12:A.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(A.dayPeriodName)||["night1","night2"].includes(A.dayPeriodName)&&A.hours>=6)&&(A.hours+=12)),G.setHours(A.hours));typeof G.setMinutes==="function"&&A.minutes!=void 0&&G.setMinutes(A.minutes);typeof G.setSeconds==="function"&&A.seconds!=void 0&&G.setSeconds(A.seconds);typeof G.setMilliseconds==="function"&&A.milliseconds!=void 0&&G.setMilliseconds(A.milliseconds);if(m&&(A.year&&A.year!=G.getFullYear()||A.month&&A.month!=
G.getMonth()||A.day&&A.day!=G.getDate()||A.hours&&A.hours>=24||A.minutes&&A.minutes>=60||A.seconds&&A.seconds>=60||A.milliseconds&&A.milliseconds>=1E3))G=!1;else{A.tzOffset!=void 0&&G.setTime(G.getTime()+(A.tzOffset-G.getTimezoneOffset())*60*1E3);A.ambiguousYear&&(m=new Date,m.setFullYear(m.getFullYear()-80),G.getTime()<m.getTime()&&G.setFullYear(m.getFullYear()+100));if(A.dayOfWeek!=void 0)if(A.day==void 0)A=(7+A.dayOfWeek-G.getDay())%7,A>3&&(A-=7),m=G.getMonth(),G.setDate(G.getDate()+A),G.getMonth()!=
m&&G.setDate(G.getDate()+(A>0?-7:7));else if(A.dayOfWeek!=G.getDay()){G=!1;break a}G=!0}}return G?K[0]:0};
var ngR=function(m,G,K,W,L,A,O){ogk(G,K);if(W.numeric&&L>0&&K[0]+L>G.length)return!1;switch(W.text.charAt(0)){case "G":return Nt(G,K,[m.JSC$11725_dateTimeSymbols_.ERAS],function(c){return A.era=c}),!0;
case "M":case "L":return bzl(m,G,K,L,W,A);case "E":return Nt(G,K,[m.JSC$11725_dateTimeSymbols_.WEEKDAYS,m.JSC$11725_dateTimeSymbols_.SHORTWEEKDAYS],function(c){return A.dayOfWeek=c});
case "B":case "b":return L=[],m=[[].concat(m.JSC$11725_dateTimeSymbols_.AMPMS)],L.push("isAm"),L.push("isPm"),G=Nt(G,K,m,function(c){return A.dayPeriodIndex=c},O),A.dayPeriodName=L[A.dayPeriodIndex],O?G:!0;
case "a":return G=Nt(G,K,[m.JSC$11725_dateTimeSymbols_.AMPMS],function(c){return A.ampm=c},O),O?G:!0;
case "y":return vgo(m,G,K,W,L,A);case "Q":return Nt(G,K,[m.JSC$11725_dateTimeSymbols_.QUARTERS,m.JSC$11725_dateTimeSymbols_.SHORTQUARTERS],function(c){A.month=c*3;A.day=1});
case "d":return DW(m,G,K,W,L,function(c){A.day=c}),!0;
case "S":return $WP(m,G,K,L,A);case "h":case "K":case "H":case "k":return G=DW(m,G,K,W,L,function(c){A.hours=W.text.charAt(0)==="h"&&c===12?0:c},O),O?G:!0;
case "m":return G=DW(m,G,K,W,L,function(c){A.minutes=c},O),O?G:!0;
case "s":return DW(m,G,K,W,L,function(c){A.seconds=c}),!0;
case "z":case "Z":case "v":return sL4(m,G,K,A);default:return!1}},vgo=function(m,G,K,W,L,A){var O=K[0];
L=td(m,G,K,L);L===null&&(L=td(m,G,K,0,!0));if(L===null)return!1;L>=0&&K[0]-O==2&&W.count==2?(m=L,G=(new Date).getFullYear()-80,K=G%100,A.ambiguousYear=m==K,m+=Math.floor(G/100)*100+(m<K?100:0),A.year=m):A.year=L;return!0},bzl=function(m,G,K,W,L,A){return L.numeric&&DW(m,G,K,L,W,function(O){A.month=O-1})?!0:Nt(G,K,[m.JSC$11725_dateTimeSymbols_.MONTHS,
m.JSC$11725_dateTimeSymbols_.STANDALONEMONTHS,m.JSC$11725_dateTimeSymbols_.SHORTMONTHS,m.JSC$11725_dateTimeSymbols_.STANDALONESHORTMONTHS],function(O){A.month=O})},$WP=function(m,G,K,W,L){var A=K[0];
m=td(m,G,K,W);if(m===null)return!1;K=K[0]-A;L.milliseconds=K<3?m*Math.pow(10,3-K):Math.round(m/Math.pow(10,K-3));return!0},sL4=function(m,G,K,W){G.indexOf("GMT",K[0])==K[0]&&(K[0]+=3);
if(K[0]>=G.length)return W.tzOffset=0,!0;var L=K[0],A=td(m,G,K,0,!0);if(A===null)return!1;if(K[0]<G.length&&G.charAt(K[0])==":"){var O=A*60;K[0]++;A=td(m,G,K,0);if(A===null)return!1;O+=A}else O=A,O=O<24&&K[0]-L<=3?O*60:O%100+O/100*60;W.tzOffset=-O;return!0},DW=function(m,G,K,W,L,A,O){O=O||!1;
var c=K[0];m=td(m,G,K,L);if(m===null)return!1;if(O&&K[0]-c<W.count){if(K[0]<G.length)return!1;m*=Math.pow(10,W.count-(K[0]-c))}A(m);return!0},Nt=function(m,G,K,W,L){L=L||!1;
for(var A,O=0;O<K.length;O++){A=G;for(var c=K[O],u=L,h=0,J=null,N=m.substring(A[0]).toLowerCase(),D=0;D<c.length;D++){var t=c[D].toLowerCase();if(u&&t.indexOf(N)==0){h=N.length;J=D;break}c[D].length>h&&N.indexOf(t)==0&&(h=c[D].length,J=D)}J!==null&&(A[0]+=h);A=J;if(A!==null)return W(A),!0}return!1},ogk=function(m,G){(m=m.substring(G[0]).match(FrB))&&(G[0]+=m[0].length)},td=function(m,G,K,W,L){G=W>0?G.substring(0,K[0]+W):G;
L=L||!1;if(m.JSC$11725_dateTimeSymbols_.ZERODIGIT){W=[];for(var A=K[0];A<G.length;A++){var O=G.charCodeAt(A)-m.JSC$11725_dateTimeSymbols_.ZERODIGIT;W.push(0<=O&&O<=9?String.fromCharCode(O+48):G.charAt(A))}G=W.join("")}else G=G.substring(K[0]);m=G.match(new RegExp("^"+(L?"[+-]?":"")+"\\d+"));if(!m)return null;K[0]+=m[0].length;return parseInt(m[0],10)},agk=function(){};
agk.prototype.ambiguousYear=!1;var qTC;
qTC={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 Eg4={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}"]};
Eg4={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 Hzi=function(){var m={type:"unit",style:"narrow"};this.listType_=m&&m.type?m.type:"conjunction";this.listStyle_=m&&m.style?m.style:"long";this.listSymbols_=Eg4;m=0;switch(this.listStyle_){case "short":m=1;break;case "narrow":m=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[m];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[m];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[m];this.listEndPattern_=
this.listSymbols_.AND_END[m];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[m];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[m];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[m];this.listEndPattern_=this.listSymbols_.OR_END[m];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[m],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[m],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[m],this.listEndPattern_=this.listSymbols_.UNIT_END[m]}};
Hzi.prototype.format=function(m){return IgP(this,m)};
var IgP=function(m,G){var K=G.length;switch(K){case 0:return"";case 1:return String(G[0]);case 2:return m.listTwoPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1]))}for(var W=m.listStartPattern_.replace("{0}",String(G[0])).replace("{1}",String(G[1])),L=2;L<K-1;++L)W=m.listMiddlePattern_.replace("{0}",W).replace("{1}",String(G[L]));return m.listEndPattern_.replace("{0}",W).replace("{1}",String(G[K-1]))};var jLX={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"},k$4=jLX,C_P=jLX;C_P=k$4=jLX;var ZzG,FY,aU,NZV,QK,V5R;
_.tM=function(m,G,K,W){var L;if(L=G){a:if(G&&G.length===3){for(L=0;L<3;L++){var A=G[L];if(A<"A"||A>"Z"&&A<"a"||A>"z"){L=!1;break a}}L=!0}else L=!1;L=!L}if(L)throw new TypeError("he");this.intlCurrencyCode_=G?G.toUpperCase():null;this.currencyStyle_=K||0;this.overrideNumberFormatSymbols_=W||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_=FY(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof m==="number")switch(m){case 1:QK(this,FY(this).DECIMAL_PATTERN);break;case 2:QK(this,FY(this).SCIENTIFIC_PATTERN);break;case 3:QK(this,FY(this).PERCENT_PATTERN);break;case 4:m=FY(this).CURRENCY_PATTERN;G=["0"];if(K=
uh[aU(this)]){K=K[0]&7;if(K>0)for(G.push("."),W=0;W<K;W++)G.push("0");m=m.replace(/0.00/g,G.join(""))}QK(this,m);break;case 5:V5R(this,1);break;case 6:V5R(this,2);break;default:throw Error("ke");}else QK(this,m)};
ZzG=!1;FY=function(m){return m.overrideNumberFormatSymbols_||(ZzG?C_P:k$4)};
aU=function(m){return m.intlCurrencyCode_||FY(m).DEF_CURRENCY_CODE};
NZV=function(m,G){if(G>308)throw Error("je`"+G);m.maximumFractionDigits_=G;return m};
QK=function(m,G){var K=[0];m.positivePrefix_=dWB(m,G,K);for(var W=K[0],L=-1,A=0,O=0,c=0,u=-1,h=G.length,J=!0;K[0]<h&&J;K[0]++)switch(G.charAt(K[0])){case "#":O>0?c++:A++;u>=0&&L<0&&u++;break;case "0":if(c>0)throw Error("qe`"+G);O++;u>=0&&L<0&&u++;break;case ",":u>0&&m.groupingArray_.push(u);u=0;break;case ".":if(L>=0)throw Error("re`"+G);L=A+O+c;break;case "E":if(m.useExponentialNotation_)throw Error("se`"+G);m.useExponentialNotation_=!0;m.minExponentDigits_=0;K[0]+1<h&&G.charAt(K[0]+1)=="+"&&(K[0]++,
m.useSignForPositiveExponent_=!0);for(;K[0]+1<h&&G.charAt(K[0]+1)=="0";)K[0]++,m.minExponentDigits_++;if(A+O<1||m.minExponentDigits_<1)throw Error("te`"+G);J=!1;break;default:K[0]--,J=!1}O==0&&A>0&&L>=0&&(O=L,O==0&&O++,c=A-O,A=O-1,O=1);if(L<0&&c>0||L>=0&&(L<A||L>A+O)||u==0)throw Error("ue`"+G);c=A+O+c;m.maximumFractionDigits_=L>=0?c-L:0;L>=0&&(m.minimumFractionDigits_=A+O-L,m.minimumFractionDigits_<0&&(m.minimumFractionDigits_=0));m.minimumIntegerDigits_=(L>=0?L:c)-A;m.useExponentialNotation_&&(m.maximumIntegerDigits_=
A+m.minimumIntegerDigits_,m.maximumFractionDigits_==0&&m.minimumIntegerDigits_==0&&(m.minimumIntegerDigits_=1));m.groupingArray_.push(Math.max(0,u));m.decimalSeparatorAlwaysShown_=L==0||L==c;W=K[0]-W;m.positiveSuffix_=dWB(m,G,K);K[0]<G.length&&G.charAt(K[0])==";"?(K[0]++,m.multiplier_!=1&&(m.negativePercentSignExpected_=!0),m.negativePrefix_=dWB(m,G,K),K[0]+=W,m.negativeSuffix_=dWB(m,G,K)):(m.negativePrefix_+=m.positivePrefix_,m.negativeSuffix_+=m.positiveSuffix_)};
V5R=function(m,G){m.compactStyle_=G;QK(m,FY(m).DECIMAL_PATTERN);m.minimumFractionDigits_=0;NZV(m,2);if(m.minimumFractionDigits_>0)throw Error("ie");m.significantDigits_=2};
_.tM.prototype.parse=function(m,G){G=G||[0];if(this.compactStyle_!==0)throw Error("le");m=m.replace(/ |\u202f/g,"\u00a0");var K=m.indexOf(this.positivePrefix_,G[0])==G[0],W=m.indexOf(this.negativePrefix_,G[0])==G[0];K&&W&&(this.positivePrefix_.length>this.negativePrefix_.length?W=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(K=!1));K?G[0]+=this.positivePrefix_.length:W&&(G[0]+=this.negativePrefix_.length);if(m.indexOf(FY(this).INFINITY,G[0])==G[0]){G[0]+=FY(this).INFINITY.length;var L=
Infinity}else{L=m;var A=!1,O=!1,c=!1,u=-1,h=1,J=FY(this).DECIMAL_SEP,N=FY(this).GROUP_SEP,D=FY(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("me");N=N.replace(/\u202f/g,"\u00a0");for(var t="";G[0]<L.length;G[0]++){var a=L.charAt(G[0]),v=P_i(this,a);if(v>=0&&v<=9)t+=v,c=!0;else if(a==J.charAt(0)){if(A||O)break;t+=".";A=!0}else if(a==N.charAt(0)&&("\u00a0"!=N.charAt(0)||G[0]+1<L.length&&P_i(this,L.charAt(G[0]+1))>=0)){if(A||O)break}else if(a==D.charAt(0)){if(O)break;t+="E";O=!0;u=G[0]}else if(a==
"+"||a=="-"){if(c&&u!=G[0]-1)break;t+=a}else if(this.multiplier_==1&&a==FY(this).PERCENT.charAt(0)){if(h!=1)break;h=100;if(c){G[0]++;break}}else if(this.multiplier_==1&&a==FY(this).PERMILL.charAt(0)){if(h!=1)break;h=1E3;if(c){G[0]++;break}}else break}this.multiplier_!=1&&(h=this.multiplier_);L=parseFloat(t)/h}if(K){if(m.indexOf(this.positiveSuffix_,G[0])!=G[0])return NaN;G[0]+=this.positiveSuffix_.length}else if(W){if(m.indexOf(this.negativeSuffix_,G[0])!=G[0])return NaN;G[0]+=this.negativeSuffix_.length}return W?
-L:L};
_.tM.prototype.format=function(m){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ne");if(isNaN(m))return FY(this).NAN;var G=[];var K=m;if(this.compactStyle_==0)K=oU;else{K=Math.abs(K);var W=yol(this,K<=1?0:ezo(K)).divisorBase;K=yol(this,W+ezo(fg2(this,n$(K,-W)).intValue))}m=n$(m,-K.divisorBase);(W=m<0||m==0&&1/m<0)?K.negative_prefix?G.push(K.negative_prefix):(G.push(K.prefix),G.push(this.negativePrefix_)):(G.push(K.prefix),G.push(this.positivePrefix_));if(isFinite(m))if(m*=
W?-1:1,m*=this.multiplier_,this.useExponentialNotation_){var L=m;if(L==0)xWG(this,L,this.minimumIntegerDigits_,G),XpR(this,0,G);else{var A=Math.floor(Math.log(L)/Math.log(10)+2E-15);L=n$(L,-A);var O=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(O=A%this.maximumIntegerDigits_,O<0&&(O=this.maximumIntegerDigits_+O),L=n$(L,O),A-=O,O=1):this.minimumIntegerDigits_<1?(A++,L=n$(L,-1)):(A-=this.minimumIntegerDigits_-1,L=n$(L,this.minimumIntegerDigits_-
1));xWG(this,L,O,G);XpR(this,A,G)}}else xWG(this,m,this.minimumIntegerDigits_,G);else G.push(FY(this).INFINITY);W?K.negative_suffix?G.push(K.negative_suffix):(isFinite(m)&&G.push(K.suffix),G.push(this.negativeSuffix_)):(isFinite(m)&&G.push(K.suffix),G.push(this.positiveSuffix_));return G.join("")};
var fg2=function(m,G){var K=n$(G,m.maximumFractionDigits_);m.significantDigits_>0&&(K=STK(K,m.significantDigits_,m.maximumFractionDigits_));K=Math.round(K);if(isFinite(K)){var W=Math.floor(n$(K,-m.maximumFractionDigits_));K=Math.floor(K-n$(W,m.maximumFractionDigits_));if(K<0||K>=n$(1,m.maximumFractionDigits_))W=Math.round(G),K=0}else W=G,K=0;return{intValue:W,fracValue:K}},xWG=function(m,G,K,W){if(m.minimumFractionDigits_>m.maximumFractionDigits_)throw Error("ne");
W||(W=[]);G=fg2(m,G);var L=G.intValue,A=G.fracValue,O=m.minimumFractionDigits_>0||A>0||!1;G=m.minimumFractionDigits_;O&&(G=m.minimumFractionDigits_);for(var c="",u=L;u>1E20;)c="0"+c,u=Math.round(n$(u,-1));c=u+c;var h=FY(m).DECIMAL_SEP;u=FY(m).ZERO_DIGIT.codePointAt(0);var J=c.length,N=0;if(L>0||K>0){for(L=J;L<K;L++)W.push(String.fromCodePoint(u));if(m.groupingArray_.length>=2)for(K=1;K<m.groupingArray_.length;K++)N+=m.groupingArray_[K];K=J-N;if(K>0){L=m.groupingArray_;N=J=0;for(var D,t=FY(m).GROUP_SEP,
a=c.length,v=0;v<a;v++)if(W.push(String.fromCodePoint(u+Number(c.charAt(v)))),a-v>1)if(D=L[N],v<K){var I=K-v;(D===1||D>0&&I%D===1)&&W.push(t)}else N<L.length&&(v===K?N+=1:D===v-K-J+1&&(W.push(t),J+=D,N+=1))}else{K=c;c=m.groupingArray_;L=FY(m).GROUP_SEP;D=K.length;t=[];for(J=c.length-1;J>=0&&D>0;J--){N=c[J];for(a=0;a<N&&D-a-1>=0;a++)t.push(String.fromCodePoint(u+Number(K.charAt(D-a-1))));D-=N;D>0&&t.push(L)}W.push.apply(W,t.reverse())}}else O||W.push(String.fromCodePoint(u));(m.decimalSeparatorAlwaysShown_||
O)&&W.push(h);A=String(A);O=A.split("e+");O.length==2&&(A=String(STK(parseFloat(O[0]),m.significantDigits_,1)),A=A.replace(".",""),A+=(0,_.pEF)("0",parseInt(O[1],10)-A.length+1));m.maximumFractionDigits_+1>A.length&&(A="1"+(0,_.pEF)("0",m.maximumFractionDigits_-A.length)+A);for(m=A.length;A.charAt(m-1)=="0"&&m>G+1;)m--;for(G=1;G<m;G++)W.push(String.fromCodePoint(u+Number(A.charAt(G))))},XpR=function(m,G,K){K.push(FY(m).EXP_SYMBOL);
G<0?(G=-G,K.push(FY(m).MINUS_SIGN)):m.useSignForPositiveExponent_&&K.push(FY(m).PLUS_SIGN);G=""+G;for(var W=FY(m).ZERO_DIGIT,L=G.length;L<m.minExponentDigits_;L++)K.push(W);m=W.codePointAt(0)-Rzo;for(W=0;W<G.length;W++)K.push(String.fromCodePoint(m+G.codePointAt(W)))},P_i=function(m,G){G=G.codePointAt(0);
if(48<=G&&G<58)return G-48;m=FY(m).ZERO_DIGIT.codePointAt(0);return m<=G&&G<m+10?G-m:-1},Rzo="0".codePointAt(0),dWB=function(m,G,K){for(var W="",L=!1,A=G.length;K[0]<A;K[0]++){var O=G.charAt(K[0]);
if(O=="'")K[0]+1<A&&G.charAt(K[0]+1)=="'"?(K[0]++,W+="'"):L=!L;else if(L)W+=O;else switch(O){case "#":case "0":case ",":case ".":case ";":return W;case "\u00a4":if(K[0]+1<A&&G.charAt(K[0]+1)=="\u00a4")K[0]++,W+=aU(m);else switch(m.currencyStyle_){case 0:O=aU(m);W+=O in uh?uh[O][1]:O;break;case 2:O=aU(m);var c=uh[O];W+=c?O==c[1]?O:O+" "+c[1]:O;break;case 1:O=aU(m),W+=O in uh?uh[O][2]:O}break;case "%":if(!m.negativePercentSignExpected_&&m.multiplier_!=1)throw Error("oe");if(m.negativePercentSignExpected_&&
m.multiplier_!=100)throw Error("pe");m.multiplier_=100;m.negativePercentSignExpected_=!1;W+=FY(m).PERCENT;break;case "\u2030":if(!m.negativePercentSignExpected_&&m.multiplier_!=1)throw Error("oe");if(m.negativePercentSignExpected_&&m.multiplier_!=1E3)throw Error("pe");m.multiplier_=1E3;m.negativePercentSignExpected_=!1;W+=FY(m).PERMILL;break;default:W+=O}}return W},oU={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},yol=function(m,G){m=m.compactStyle_==1?rN.COMPACT_DECIMAL_SHORT_PATTERN:rN.COMPACT_DECIMAL_LONG_PATTERN;m==null&&(m=rN.COMPACT_DECIMAL_SHORT_PATTERN);if(G<3)return oU;G=Math.min(14,G);var K=m[n$(1,G)];for(--G;!K&&G>=3;)K=m[n$(1,G)],G--;if(!K)return oU;K=K.other;var W=m="",L=K.indexOf(";");L>=0&&(K=K.substring(0,L),L=K.substring(L+1))&&(W=/([^0]*)(0+)(.*)/.exec(L),m=W[1],W=W[3]);return K&&K!="0"?(K=/([^0]*)(0+)(.*)/.exec(K))?{divisorBase:G+
1-(K[2].length-1),negative_prefix:m,negative_suffix:W,prefix:K[1],suffix:K[3]}:oU:oU},ezo=function(m){if(!isFinite(m))return m>0?m:0;
for(var G=0;(m/=10)>=1;)G++;return G},n$=function(m,G){if(!m||!isFinite(m)||G==0)return m;
m=String(m).split("e");return parseFloat(m[0]+"e"+(parseInt(m[1]||0,10)+G))},UWR=function(m,G){return m&&isFinite(m)?n$(Math.round(n$(m,G)),-G):m},STK=function(m,G,K){if(!m)return m;
G=G-ezo(m)-1;return G<-K?UWR(m,-K):UWR(m,G)};var zzi,lg4=zzi=zzi=m3d;var BqK=function(m,G){var K=m|0;if(void 0===G){G=Math;var W=G.min,L=m+"",A=L.indexOf(".");G=W.call(G,A===-1?0:L.length-A-1,3)}W=Math.pow(10,G);m={v:G,f:(m*W|0)%W};return K==1&&m.v==0?"one":"other"},Dl=BqK;
Dl=BqK;var iQk=function(m){this.JSC$11768_pattern_=m;this.parsedPattern_=this.literals_=this.initialLiterals_=null;m=k$4;var G=rN;if(M5G!==m||Tq2!==G)M5G=m,Tq2=G,mB4=new _.tM(1);this.numberFormatter_=mB4},M5G=null,Tq2=null,mB4=null,G_K=RegExp("'([{}#].*?)'","g"),Knl=RegExp("''","g");
iQk.prototype.format=function(m){if(this.JSC$11768_pattern_){this.initialLiterals_=[];var G=Wno(this,this.JSC$11768_pattern_);this.parsedPattern_=LnG(this,G);this.JSC$11768_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.yf(this.initialLiterals_),G=[],A3X(this,this.parsedPattern_,m,!1,G),m=G.join("");this.literals_.length>0;)m=m.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else m="";return m};
var A3X=function(m,G,K,W,L){for(var A=0;A<G.length;A++)switch(G[A].type){case 4:L.push(G[A].value);break;case 3:var O=G[A].value;var c=m,u=L,h=K[O];h===void 0?u.push("Undefined parameter - "+O):(c.literals_.push(h),u.push(c.buildPlaceholder_(c.literals_)));break;case 2:O=G[A].value;c=m;u=K;h=W;var J=L,N=O.argumentIndex;u[N]===void 0?J.push("Undefined parameter - "+N):(N=O[u[N]],N===void 0&&(N=O.other),A3X(c,N,u,h,J));break;case 0:O=G[A].value;wRB(m,O,K,Dl,W,L);break;case 1:O=G[A].value,wRB(m,O,K,
lg4,W,L)}},wRB=function(m,G,K,W,L,A){var O=G.argumentIndex,c=G.argumentOffset,u=+K[O];
isNaN(u)?A.push("Undefined or invalid parameter - "+O):(c=u-c,O=G[K[O]],O===void 0&&(W=W(Math.abs(c)),O=G[W],O===void 0&&(O=G.other)),G=[],A3X(m,O,K,L,G),K=G.join(""),L?A.push(K):(m=m.numberFormatter_.format(c),A.push(K.replace(/#/g,m))))},Wno=function(m,G){var K=m.initialLiterals_,W=m.buildPlaceholder_.bind(m);
G=G.replace(Knl,function(){K.push("'");return W(K)});
return G=G.replace(G_K,function(L,A){K.push(A);return W(K)})},gAG=function(m){var G=0,K=[],W=[],L=/[{}]/g;
L.lastIndex=0;for(var A;A=L.exec(m);){var O=A.index;A[0]=="}"?(K.pop(),K.length==0&&(A={type:1},A.value=m.substring(G,O),W.push(A),G=O+1)):(K.length==0&&(G=m.substring(G,O),G!=""&&W.push({type:0,value:G}),G=O+1),K.push("{"))}m=m.substring(G);m!=""&&W.push({type:0,value:m});return W},OQF=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,c3R=/^\s*(\w+)\s*,\s*selectordinal\s*,/,YnB=/^\s*(\w+)\s*,\s*select\s*,/,LnG=function(m,G){var K=[];
G=gAG(G);for(var W=0;W<G.length;W++){var L={};if(0==G[W].type)L.type=4,L.value=G[W].value;else if(1==G[W].type){var A=G[W].value;switch(OQF.test(A)?0:c3R.test(A)?1:YnB.test(A)?2:/^\s*\w+\s*/.test(A)?3:5){case 2:L.type=2;L.value=r32(m,G[W].value);break;case 0:L.type=0;L.value=u90(m,G[W].value);break;case 1:L.type=1;L.value=hxo(m,G[W].value);break;case 3:L.type=3,L.value=G[W].value}}K.push(L)}return K},r32=function(m,G){var K="";
G=G.replace(YnB,function(c,u){K=u;return""});
var W={};W.argumentIndex=K;G=gAG(G);for(var L=0;L<G.length;){var A=G[L].value;L++;var O=void 0;1==G[L].type&&(O=LnG(m,G[L].value));W[A.replace(/\s/g,"")]=O;L++}return W},u90=function(m,G){var K="",W=0;
G=G.replace(OQF,function(u,h,J){K=h;J&&(W=parseInt(J,10));return""});
var L={};L.argumentIndex=K;L.argumentOffset=W;G=gAG(G);for(var A=0;A<G.length;){var O=G[A].value;A++;var c=void 0;1==G[A].type&&(c=LnG(m,G[A].value));L[O.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;A++}return L},hxo=function(m,G){var K="";
G=G.replace(c3R,function(c,u){K=u;return""});
var W={};W.argumentIndex=K;W.argumentOffset=0;G=gAG(G);for(var L=0;L<G.length;){var A=G[L].value;L++;var O=void 0;1==G[L].type&&(O=LnG(m,G[L].value));W[A.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=O;L++}return W};
iQk.prototype.buildPlaceholder_=function(m){return"\ufddf_"+(m.length-1).toString(10)+"_"};var aTG=function(){var m={style:1},G=pRl;this.style_=(m==null?void 0:m.style)||0;this.durationSymbols_=G||qTC},J3i=function(m,G){switch(G){default:case "years":return m.durationSymbols_.YEAR;
case "months":return m.durationSymbols_.MONTH;case "weeks":return m.durationSymbols_.WEEK;case "days":return m.durationSymbols_.DAY;case "hours":return m.durationSymbols_.HOUR;case "minutes":return m.durationSymbols_.MINUTE;case "seconds":return m.durationSymbols_.SECOND}},bh=function(m,G,K){a:{K=J3i(m,K);
switch(m.style_){case 1:if(K.LONG!=void 0){m=K.LONG;break a}case 2:if(K.NARROW!=void 0){m=K.NARROW;break a}default:m=K.SHORT;break a}m=void 0}return m?(new iQk("{DURATION_VALUE,plural,"+m+"}")).format({DURATION_VALUE:G}):""};
aTG.prototype.format=function(m){var G=[],K=m.years,W=m.months,L=m.weeks,A=m.days,O=m.hours,c=m.minutes;m=m.seconds;K!=null&&G.push(bh(this,K,"years"));W!=null&&G.push(bh(this,W,"months"));L!=null&&G.push(bh(this,L,"weeks"));A!=null&&G.push(bh(this,A,"days"));O!=null&&G.push(bh(this,O,"hours"));c!=null&&G.push(bh(this,c,"minutes"));m!=null&&G.push(bh(this,m,"seconds"));return(new Hzi).format(G)};var NHF;
NHF={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 Zk9=function(){this.rdtfSymbols_=DBG||NHF;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Zk9.prototype.format=function(m,G){a:{G=tFS(this,G);switch(this.style_){case 2:if(G.NARROW!=void 0){G=G.NARROW;break a}case 1:if(G.SHORT!=void 0){G=G.SHORT;break a}default:G=G.LONG;break a}G=void 0}if(!this.alwaysNumeric_&&G&&G.R&&G.R[""+m])m=G.R[""+m];else if(G){var K=Math.abs(m);m=(new iQk("{N,plural,"+(m>0||m==0&&1/m==Infinity?G.F:G.P)+"}")).format({N:K})}else m="";return m};
var tFS=function(m,G){switch(G){default:case 0:return m.rdtfSymbols_.YEAR;case 1:return m.rdtfSymbols_.QUARTER;case 2:return m.rdtfSymbols_.MONTH;case 3:return m.rdtfSymbols_.WEEK;case 4:return m.rdtfSymbols_.DAY;case 5:return m.rdtfSymbols_.HOUR;case 6:return m.rdtfSymbols_.MINUTE;case 7:return m.rdtfSymbols_.SECOND}};ibo.prototype.clone=function(){return new ibo(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
ibo.prototype.equals=function(m){return this.x0==m.x0&&this.y0==m.y0&&this.x1==m.x1&&this.y1==m.y1&&this.x2==m.x2&&this.y2==m.y2&&this.x3==m.x3&&this.y3==m.y3};
var Fn2=function(m,G){if(G==0)return m.x0;if(G==1)return m.x3;var K=g3(m.x0,m.x1,G),W=g3(m.x1,m.x2,G);m=g3(m.x2,m.x3,G);K=g3(K,W,G);W=g3(W,m,G);return g3(K,W,G)},QTR=function(m,G){var K=(G-m.x0)/(m.x3-m.x0);
if(K<=0)return 0;if(K>=1)return 1;for(var W=0,L=1,A=0,O=0;O<8;O++){A=Fn2(m,K);var c=(Fn2(m,K+1E-6)-A)/1E-6;if(Math.abs(A-G)<1E-6)return K;if(Math.abs(c)<1E-6)break;else A<G?W=K:L=K,K-=(A-G)/c}for(O=0;Math.abs(A-G)>1E-6&&O<8;O++)A<G?(W=K,K=(K+L)/2):(L=K,K=(K+W)/2),A=Fn2(m,K);return K};var vF;_.kJ(KA,_.ai);var KzM={},G5P=0,aEo=function(m,G){var K=Wt(m);BWX(G,function(W,L){Array.isArray(W)||(W=[W]);_.Z0(W,function(A){A=K.JSC$9635_createDom("INPUT",{type:"hidden",name:L,value:A});m.appendChild(A)})})};
_.w=KA.prototype;_.w.JSC$11790_form_=null;_.w.JSC$11790_iframe_=null;_.w.iframeName_=null;_.w.nextIframeId_=0;_.w.JSC$11790_active_=!1;_.w.complete_=!1;_.w.success_=!1;_.w.lastContent_=null;_.w.JSC$11790_lastErrorCode_=0;_.w.iframeDisposalTimer_=null;
_.w.send=function(m,G,K,W){if(this.JSC$11790_active_)throw Error("ve");m=new _.aQ(m);G=G?G.toUpperCase():"GET";K&&_.y7(m);vF||(vF=_.r3("FORM"),vF.acceptCharset="utf-8",K=vF.style,K.position="absolute",K.visibility="hidden",K.top=K.left="-10px",K.width=K.height="10px",K.overflow="hidden",document.body.appendChild(vF));this.JSC$11790_form_=vF;G=="GET"&&aEo(this.JSC$11790_form_,m.JSC$10339_queryData_);W&&aEo(this.JSC$11790_form_,W);K=m.toString();K=$KG(K);W=this.JSC$11790_form_;K=_.i9(S4(K));K!==void 0&&
(W.action=K);this.JSC$11790_form_.method=G;oAl(this);nAS(this)};
_.w.abort=function(m){if(this.JSC$11790_active_){var G=$4(this);if(G)if(Kb(G))G.removeAllListeners(void 0);else if(G=WW(G)){var K=0,W;for(W in G.listeners)for(var L=G.listeners[W].concat(),A=0;A<L.length;++A)Tg(L[A])&&++K}this.success_=this.JSC$11790_active_=this.complete_=!1;this.JSC$11790_lastErrorCode_=m||7;this.dispatchEvent("abort");bQG(this)}};
_.w.disposeInternal=function(){this.JSC$11790_active_&&this.abort();KA.superClass_.disposeInternal.call(this);this.JSC$11790_iframe_&&vAX(this);nAS(this);this.JSC$11790_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11790_form_=null;this.JSC$11790_lastErrorCode_=0;delete KzM[this.JSC$11788_name_]};
_.w.isComplete=function(){return this.complete_};
_.w.isSuccess=function(){return this.success_};
_.w.isActive=function(){return this.JSC$11790_active_};
_.w.getResponseText=function(){return this.lastContent_};
_.w.getLastError=function(){return _.HnK(this.JSC$11790_lastErrorCode_)};
var oAl=function(m){m.JSC$11790_active_=!0;m.complete_=!1;m.JSC$11790_lastErrorCode_=0;m.iframeName_=m.JSC$11788_name_+"_"+(m.nextIframeId_++).toString(36);m.JSC$11790_iframe_=Wt(m.JSC$11790_form_).JSC$9635_createDom("IFRAME",{name:m.iframeName_,id:m.iframeName_});var G=m.JSC$11790_iframe_.style;G.visibility="hidden";G.width=G.height="10px";G.display="none";_.zb?G.marginTop=G.marginLeft="-10px":(G.position="absolute",G.top=G.left="-10px");Wt(m.JSC$11790_form_).JSC$9633_document_.body.appendChild(m.JSC$11790_iframe_);
G=m.iframeName_+"_inner";var K=I5k(m.JSC$11790_iframe_);if(document.baseURI){var W=Zg(G);W='<head><base href="'+Zg(document.baseURI)+'"></head><body><iframe id="'+W+'" name="'+W+'"></iframe>';W=Wz(W)}else W=Zg(G),W=Wz('<body><iframe id="'+W+'" name="'+W+'"></iframe>');K.write(LZ(W));_.oi(K.getElementById(G),"load",m.onIframeLoaded_,!1,m);W=iE("TEXTAREA",m.JSC$11790_form_);for(var L=0,A=W.length;L<A;L++){var O=W[L].value;d7S(W[L])!=O&&(_.tY(W[L],O),W[L].value=O)}W=K.importNode(m.JSC$11790_form_,!0);
W.target=G;W.action=m.JSC$11790_form_.action;K.body.appendChild(W);L=iE("SELECT",m.JSC$11790_form_);A=iE("SELECT",W);O=0;for(var c=L.length;O<c;O++)for(var u=iE("OPTION",L[O]),h=iE("OPTION",A[O]),J=0,N=u.length;J<N;J++)h[J].selected=u[J].selected;L=iE("INPUT",m.JSC$11790_form_);A=iE("INPUT",W);O=0;for(c=L.length;O<c;O++)if(L[O].type=="file"&&L[O].value!=A[O].value){m.JSC$11790_form_.target=G;W=m.JSC$11790_form_;break}try{m.errorHandled_=!1,W.submit(),K.close(),_.lY&&setTimeout(m.testForFirefoxSilentError_.bind(m),
250)}catch(D){_.Lb(K.getElementById(G),"load",m.onIframeLoaded_,!1,m),K.close(),sY(m,2)}};
KA.prototype.onIframeLoaded_=function(){_.Lb($4(this),"load",this.onIframeLoaded_,!1,this);try{var m=this.JSC$11790_iframe_?I5k($4(this)):null;this.complete_=!0;this.JSC$11790_active_=!1;try{var G=m.body;this.lastContent_=G.textContent||G.innerText}catch(L){var K=1}var W;K||typeof this.errorChecker_!="function"||(W=this.errorChecker_(m))&&(K=4);K?sY(this,K):(this.success_=!0,this.JSC$11790_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),bQG(this))}catch(L){sY(this,1)}};
var sY=function(m,G){m.errorHandled_||(m.success_=!1,m.JSC$11790_active_=!1,m.complete_=!0,m.JSC$11790_lastErrorCode_=G,m.dispatchEvent("complete"),m.dispatchEvent("error"),bQG(m),m.errorHandled_=!0)},bQG=function(m){vAX(m);
nAS(m);m.JSC$11790_form_=null;m.dispatchEvent("ready")},vAX=function(m){var G=m.JSC$11790_iframe_;
G&&(G.onreadystatechange=null,G.onload=null,G.onerror=null,m.iframesForDisposal_.push(G));m.iframeDisposalTimer_&&(clearTimeout(m.iframeDisposalTimer_),m.iframeDisposalTimer_=null);_.lY?m.iframeDisposalTimer_=setTimeout(m.disposeIframes_.bind(m),2E3):m.disposeIframes_();m.JSC$11790_iframe_=null;m.iframeName_=null};
KA.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var m=this.iframesForDisposal_.pop();_.mX(m)}};
var nAS=function(m){m.JSC$11790_form_&&m.JSC$11790_form_==vF&&_.pV(m.JSC$11790_form_)},$4=function(m){return m.JSC$11790_iframe_?I5k(m.JSC$11790_iframe_).getElementById(m.iframeName_+"_inner"):null};
KA.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11790_active_){var m=this.JSC$11790_iframe_?I5k($4(this)):null;m&&!BDf(m,"documentUri")?(_.Lb($4(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?sY(this,3):sY(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.qt=function(m){return m=="\r"||m=="\n"||m==" "||m=="\t"};_.Wl.prototype.isInputValid=function(){return this.streamState_!=3};
_.Wl.prototype.done=function(){return this.streamState_===2};
var EY=function(m,G,K){m.streamState_=3;m.errorMessage_="The stream is broken @"+m.JSC$11792_pos_+"/"+K+". With input:\n"+G;throw Error(m.errorMessage_);};
_.Wl.prototype.acceptsBinaryInput=function(){return!1};
_.Wl.prototype.parse=function(m){function G(){for(;N<m.length;)if(_.qt(m[N]))N++,A.JSC$11792_pos_++;else break;return N<u}
function K(){for(var t;;){t=m[N++];if(!t)break;A.JSC$11792_pos_++;switch(A.state_){case 0:t==="{"?A.state_=2:t==="["?A.state_=4:_.qt(t)||EY(A,m,N);continue;case 7:case 2:if(_.qt(t))continue;if(A.state_===7)O.push(8);else if(t==="}"){L("{}");A.state_=W();continue}else O.push(3);t==='"'?A.state_=6:EY(A,m,N);continue;case 8:case 3:if(_.qt(t))continue;t===":"?(A.state_===3&&(O.push(3),A.depth_++),A.state_=1):t==="}"?(A.depth_--,L(),A.state_=W()):t===","?(A.state_===3&&O.push(3),A.state_=7):EY(A,m,N);
continue;case 4:case 1:if(_.qt(t))continue;if(A.state_===4)if(A.depth_++,A.state_=1,t==="]"){A.depth_--;if(A.depth_===0){A.state_=5;return}L("[]");A.state_=W();continue}else O.push(5);t==='"'?A.state_=6:t==="{"?A.state_=2:t==="["?A.state_=4:t==="t"?A.state_=9:t==="f"?A.state_=12:t==="n"?A.state_=16:t!=="-"&&("0123456789".indexOf(t)!==-1?A.state_=20:EY(A,m,N));continue;case 5:if(t===",")O.push(5),A.state_=1,A.depth_===1&&(J=N);else if(t==="]"){A.depth_--;if(A.depth_===0)return;L();A.state_=W()}else if(_.qt(t))continue;
else EY(A,m,N);continue;case 6:var a=N;a:for(;;){for(;A.unicodeCount_>0;)if(t=m[N++],A.unicodeCount_===4?A.unicodeCount_=0:A.unicodeCount_++,!t)break a;if(t==='"'&&!A.slashed_){A.state_=W();break}if(t==="\\"&&!A.slashed_&&(A.slashed_=!0,t=m[N++],!t))break;if(A.slashed_)if(A.slashed_=!1,t==="u"&&(A.unicodeCount_=1),t=m[N++])continue;else break;c.lastIndex=N;t=c.exec(m);if(!t){N=m.length+1;break}N=t.index+1;t=m[t.index];if(!t)break}A.JSC$11792_pos_+=N-a;continue;case 9:if(!t)continue;t==="r"?A.state_=
10:EY(A,m,N);continue;case 10:if(!t)continue;t==="u"?A.state_=11:EY(A,m,N);continue;case 11:if(!t)continue;t==="e"?A.state_=W():EY(A,m,N);continue;case 12:if(!t)continue;t==="a"?A.state_=13:EY(A,m,N);continue;case 13:if(!t)continue;t==="l"?A.state_=14:EY(A,m,N);continue;case 14:if(!t)continue;t==="s"?A.state_=15:EY(A,m,N);continue;case 15:if(!t)continue;t==="e"?A.state_=W():EY(A,m,N);continue;case 16:if(!t)continue;t==="u"?A.state_=17:EY(A,m,N);continue;case 17:if(!t)continue;t==="l"?A.state_=18:
EY(A,m,N);continue;case 18:if(!t)continue;t==="l"?A.state_=W():EY(A,m,N);continue;case 19:t==="."?A.state_=20:EY(A,m,N);continue;case 20:if("0123456789.eE+-".indexOf(t)!==-1)continue;else N--,A.JSC$11792_pos_--,A.state_=W();continue;default:EY(A,m,N)}}}
function W(){var t=O.pop();return t!=null?t:1}
function L(t){A.depth_>1||(t||(t=J===-1?A.JSC$11792_buffer_+m.substring(h,N):m.substring(J,N)),A.deliverMessageAsRawString_?A.result_.push(t):A.result_.push(JSON.parse(t)),J=N)}
for(var A=this,O=A.stack_,c=A.stringInputPattern_,u=m.length,h=0,J=-1,N=0;N<u;)switch(A.streamState_){case 3:return EY(A,m,N),null;case 2:return G()&&EY(A,m,N),null;case 0:if(G()){var D=m[N++];A.JSC$11792_pos_++;if(D==="["){A.streamState_=1;h=N;A.state_=4;continue}else EY(A,m,N)}return null;case 1:return K(),A.depth_===0&&A.state_==5?(A.streamState_=2,A.JSC$11792_buffer_=m.substring(N)):A.JSC$11792_buffer_=J===-1?A.JSC$11792_buffer_+m.substring(h):m.substring(J),A.result_.length>0?(D=A.result_,A.result_=
[],D):null}return null};_.kJ(_.LA,ux);Ab.prototype.getValue=function(){return this.JSC$11799_value_};
Ab.prototype.clone=function(){return new Ab(this.JSC$11799_key_,this.JSC$11799_value_)};var HF=function(m){this.nodes_=[];if(m)a:{if(m instanceof HF){var G=m.getKeys();m=m.getValues();if(this.getCount()<=0){for(var K=this.nodes_,W=0;W<G.length;W++)K.push(new Ab(G[W],m[W]));break a}}else G=_.Y2.getKeys(m),m=_.Y2.getValues(m);for(K=0;K<G.length;K++)this.insert(G[K],m[K])}};
_.w=HF.prototype;_.w.insert=function(m,G){var K=this.nodes_;K.push(new Ab(m,G));m=K.length-1;G=this.nodes_;for(K=G[m];m>0;){var W=m-1>>1;if(G[W].JSC$11799_key_>K.JSC$11799_key_)G[m]=G[W],m=W;else break}G[m]=K};
_.w.remove=function(){var m=this.nodes_,G=m.length,K=m[0];if(!(G<=0)){if(G==1)m.length=0;else{m[0]=m.pop();m=0;G=this.nodes_;for(var W=G.length,L=G[m];m<W>>1;){var A=m*2+1,O=m*2+2;A=O<W&&G[O].JSC$11799_key_<G[A].JSC$11799_key_?O:A;if(G[A].JSC$11799_key_>L.JSC$11799_key_)break;G[m]=G[A];m=A}G[m]=L}return K.getValue()}};
_.w.peek=function(){var m=this.nodes_;if(m.length!=0)return m[0].getValue()};
_.w.getValues=function(){for(var m=this.nodes_,G=[],K=m.length,W=0;W<K;W++)G.push(m[W].getValue());return G};
_.w.getKeys=function(){for(var m=this.nodes_,G=[],K=m.length,W=0;W<K;W++)G.push(m[W].JSC$11799_key_);return G};
_.w.containsValue=function(m){return this.nodes_.some(function(G){return G.getValue()==m})};
_.w.containsKey=function(m){return this.nodes_.some(function(G){return G.JSC$11799_key_==m})};
_.w.clone=function(){return new HF(this)};
_.w.getCount=function(){return this.nodes_.length};
_.w.isEmpty=function(){return this.nodes_.length===0};
_.w.clear=function(){this.nodes_.length=0};_.w=_.wB.prototype;_.w.getCount=function(){return this.size};
_.w.getValues=function(){IU(this);for(var m=[],G=0;G<this.JSC$11805_keys_.length;G++)m.push(this.JSC$11805_map_[this.JSC$11805_keys_[G]]);return m};
_.w.getKeys=function(){IU(this);return this.JSC$11805_keys_.concat()};
_.w.containsKey=function(m){return this.has(m)};
_.w.has=function(m){return ji(this.JSC$11805_map_,m)};
_.w.containsValue=function(m){for(var G=0;G<this.JSC$11805_keys_.length;G++){var K=this.JSC$11805_keys_[G];if(ji(this.JSC$11805_map_,K)&&this.JSC$11805_map_[K]==m)return!0}return!1};
_.w.equals=function(m,G){if(this===m)return!0;if(this.size!=m.getCount())return!1;G=G||$Bi;IU(this);for(var K,W=0;K=this.JSC$11805_keys_[W];W++)if(!G(this.get(K),m.get(K)))return!1;return!0};
var $Bi=function(m,G){return m===G};
_.wB.prototype.isEmpty=function(){return this.size==0};
_.wB.prototype.clear=function(){this.JSC$11805_map_={};this.version_=this.size=this.JSC$11805_keys_.length=0};
_.wB.prototype.remove=function(m){return this.delete(m)};
_.wB.prototype.delete=function(m){return ji(this.JSC$11805_map_,m)?(delete this.JSC$11805_map_[m],--this.size,this.version_++,this.JSC$11805_keys_.length>2*this.size&&IU(this),!0):!1};
var IU=function(m){if(m.size!=m.JSC$11805_keys_.length){for(var G=0,K=0;G<m.JSC$11805_keys_.length;){var W=m.JSC$11805_keys_[G];ji(m.JSC$11805_map_,W)&&(m.JSC$11805_keys_[K++]=W);G++}m.JSC$11805_keys_.length=K}if(m.size!=m.JSC$11805_keys_.length){G={};for(W=K=0;K<m.JSC$11805_keys_.length;){var L=m.JSC$11805_keys_[K];ji(G,L)||(m.JSC$11805_keys_[W++]=L,G[L]=1);K++}m.JSC$11805_keys_.length=W}};
_.w=_.wB.prototype;_.w.get=function(m,G){return ji(this.JSC$11805_map_,m)?this.JSC$11805_map_[m]:G};
_.w.set=function(m,G){ji(this.JSC$11805_map_,m)||(this.size+=1,this.JSC$11805_keys_.push(m),this.version_++);this.JSC$11805_map_[m]=G};
_.w.addAll=function(m){if(m instanceof _.wB)for(var G=m.getKeys(),K=0;K<G.length;K++)this.set(G[K],m.get(G[K]));else for(G in m)this.set(G,m[G])};
_.w.forEach=function(m,G){for(var K=this.getKeys(),W=0;W<K.length;W++){var L=K[W],A=this.get(L);m.call(G,A,L,this)}};
_.w.clone=function(){return new _.wB(this)};
_.w.transpose=function(){for(var m=new _.wB,G=0;G<this.JSC$11805_keys_.length;G++){var K=this.JSC$11805_keys_[G];m.set(this.JSC$11805_map_[K],K)}return m};
_.w.keys=function(){return gtX(this.__iterator__(!0)).toEs6()};
_.w.values=function(){return gtX(this.__iterator__(!1)).toEs6()};
_.w.entries=function(){var m=this;return bN0(this.keys(),function(G){return[G,m.get(G)]})};
_.w.__iterator__=function(m){IU(this);var G=0,K=this.version_,W=this,L=new jC;L.next=function(){if(K!=W.version_)throw Error("we");if(G>=W.JSC$11805_keys_.length)return kW;var A=W.JSC$11805_keys_[G++];return C_(m?A:W.JSC$11805_map_[A])};
return L};
var ji=function(m,G){return Object.prototype.hasOwnProperty.call(m,G)};var sT4=function(m,G){if(G=m.JSC$11808_map_.get(G))G.remove(),m.insert_(G);return G};
_.w=Lzd.prototype;_.w.get=function(m,G){return(m=sT4(this,m))?m.value:G};
_.w.set=function(m,G){var K=sT4(this,m);K?K.value=G:(K=new Wz9(m,G),this.JSC$11808_map_.set(m,K),this.insert_(K))};
_.w.peek=function(){return this.JSC$11808_head_.next.value};
_.w.shift=function(){return qni(this,this.JSC$11808_head_.next)};
_.w.pop=function(){return qni(this,this.JSC$11808_head_.prev)};
_.w.remove=function(m){return(m=this.JSC$11808_map_.get(m))?(this.removeNode(m),!0):!1};
_.w.removeNode=function(m){m.remove();this.JSC$11808_map_.remove(m.key)};
_.w.getCount=function(){return this.JSC$11808_map_.getCount()};
_.w.isEmpty=function(){return this.JSC$11808_map_.isEmpty()};
_.w.getKeys=function(){return this.map(function(m,G){return G})};
_.w.getValues=function(){return this.map(function(m){return m})};
_.w.contains=function(m){return this.some(function(G){return G==m})};
_.w.containsKey=function(m){return this.JSC$11808_map_.containsKey(m)};
_.w.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11808_head_.prev)};
_.w.forEach=function(m,G){for(var K=this.JSC$11808_head_.next;K!=this.JSC$11808_head_;K=K.next)m.call(G,K.value,K.key,this)};
_.w.map=function(m,G){for(var K=[],W=this.JSC$11808_head_.next;W!=this.JSC$11808_head_;W=W.next)K.push(m.call(G,W.value,W.key,this));return K};
_.w.some=function(m,G){for(var K=this.JSC$11808_head_.next;K!=this.JSC$11808_head_;K=K.next)if(m.call(G,K.value,K.key,this))return!0;return!1};
_.w.every=function(m,G){for(var K=this.JSC$11808_head_.next;K!=this.JSC$11808_head_;K=K.next)if(!m.call(G,K.value,K.key,this))return!1;return!0};
_.w.insert_=function(m){m.next=this.JSC$11808_head_.next;m.prev=this.JSC$11808_head_;this.JSC$11808_head_.next=m;for(m.next.prev=m;this.getCount()>100;)this.removeNode(this.JSC$11808_head_.prev)};
var qni=function(m,G){m.JSC$11808_head_!=G&&m.removeNode(G);return G.value},Wz9=function(m,G){this.key=m;
this.value=G};
Wz9.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var EAF=function(){HF.apply(this,arguments)};
_.n(EAF,HF);EAF.prototype.enqueue=function(m,G){this.insert(m,G)};var HQo=function(){var m=Error();m.name="SecurityError";throw m;},CTd=function(){return{get opener(){return null},
get closed(){return!0},get location(){HQo()},get document(){HQo()},postMessage:function(){},
close:function(){},
focus:function(){}}};var Azv={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 ObF={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 IEB={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(ObF).join("|");var jTC=function(){function m(c){c.substr(-1)!==";"&&(c+=";");return O(c)}
for(var G=Object.keys(IEB).sort(gZd),K=Object.keys(ObF).sort(gZd),W=0,L=0;W<K.length;W++)G[L]===K[W]?(K[W]+=";?",L++):K[W]+=";";var A=new RegExp("&(?:"+K.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),O=cz6();return function(c){return String(c).replace(A,m)}}();/*

 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 k_i={};var CkS=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"),VFC=/[\\&]/,ZQl=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),dBR=RegExp('[&<>"]',"g"),PkF=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),y3K=function(m){return m.charCodeAt(0)===92?m.charAt(1):jTC(m)},exS=function(m){return VFC.test(m)?m.replace(ZQl,y3K):m},fEC=function(m){try{var G,K="";
if(typeof L!=="string"){var W=L;var L=";/?:@&=+$,-_.!~*'()#"}typeof W==="undefined"&&(W=!0);var A,O=k_i[L];if(O)var c=O;else{O=k_i[L]=[];for(A=0;A<128;A++){var u=String.fromCharCode(A);/^[0-9a-z]$/i.test(u)?O.push(u):O.push("%"+("0"+A.toString(16).toUpperCase()).slice(-2))}for(A=0;A<L.length;A++)O[L.charCodeAt(A)]=L[A];c=O}var h=0;for(G=m.length;h<G;h++){var J=m.charCodeAt(h);if(W&&J===37&&h+2<G&&/^[0-9a-f]{2}$/i.test(m.slice(h+1,h+3)))K+=m.slice(h,h+3),h+=2;else if(J<128)K+=c[J];else if(J>=55296&&
J<=57343){if(J>=55296&&J<=56319&&h+1<G){var N=m.charCodeAt(h+1);if(N>=56320&&N<=57343){K+=encodeURIComponent(m[h]+m[h+1]);h++;continue}}K+="%EF%BF%BD"}else K+=encodeURIComponent(m[h])}return K}catch(D){return m}},xBR=function(m){switch(m){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return m}},k4=function(m,G){return dBR.test(m)?G?m.replace(PkF,xBR):m.replace(dBR,xBR):m};/*

 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 C$;if(String.fromCodePoint)C$=function(m){try{return String.fromCodePoint(m)}catch(G){if(G instanceof RangeError)return String.fromCharCode(65533);throw G;}};
else{var XRC=String.fromCharCode,SnX=Math.floor;C$=function(){var m=[],G=-1,K=arguments.length;if(!K)return"";for(var W="";++G<K;){var L=Number(arguments[G]);if(!isFinite(L)||L<0||L>1114111||SnX(L)!==L)return String.fromCharCode(65533);if(L<=65535)m.push(L);else{L-=65536;var A=(L>>10)+55296;L=L%1024+56320;m.push(A,L)}if(G+1===K||m.length>16384)W+=XRC.apply(null,m),m.length=0}return W}};var RxX=function(m){this.root=this.current=m;this.entering=!0};
RxX.prototype.next=function(){var m=this.current,G=this.entering;if(m===null)return null;a:switch(m._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 K=!0;break a;default:K=!1}G&&K?m._firstChild?(this.current=m._firstChild,this.entering=!0):this.entering=!1:m===this.root?this.current=null:m._next===null?(this.current=
m._parent,this.entering=!1):(this.current=m._next,this.entering=!0);return{entering:G,node:m}};
var rB=function(m,G){this._type=m;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=G;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};
rB.prototype.appendChild=function(m){m.unlink();m._parent=this;this._lastChild?(this._lastChild._next=m,m._prev=this._lastChild):this._firstChild=m;this._lastChild=m};
rB.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var UB4=function(m,G){G.unlink();G._next=m._next;G._next&&(G._next._prev=G);G._prev=m;m._next=G;G._parent=m._parent;G._next||(G._parent._lastChild=G)};
rB.prototype.insertBefore=function(m){m.unlink();m._prev=this._prev;m._prev&&(m._prev._next=m);m._next=this;this._prev=m;m._parent=this._parent;m._prev||(m._parent._firstChild=m)};
_.e_.Object.defineProperties(rB.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(m){this._literal=m}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(m){this._destination=m}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(m){this._title=m}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(m){this._info=m}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(m){this._level=m}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(m){this._listData.type=m}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(m){this._listData.tight=m}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(m){this._listData.start=m}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(m){this._onEnter=m}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(m){this._onExit=m}}});var Y5J=/[ \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,
rzd={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 zxC=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]/),
lE4=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),BHR=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),MFS=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),THP=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ma0=/`+/,imK=/^`+/,Gno=/\.\.\./g,KFK=/--+/g,WFC=/^<([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])?)*)>/,
LFG=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,AXS=/^ *(?:\n *)?/,wY2=/^[ \t\n\x0b\x0c\x0d]/,g1P=/[ \t\n\x0b\x0c\x0d]+/g,Omk=/^\s/,cXF=/ *$/,YUX=/^ */,rXF=/^ *(?:\n|$)/,uwB=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),h3X=/^[^\n`\[\]\\!<&*_'"]+/m,VK=function(m){var G=new rB("text");G._literal=m;return G},ZW=function(m){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=m||{}};
ZW.prototype.match=function(m){m=m.exec(this.subject.slice(this.pos));if(m===null)return null;this.pos+=m.index+m[0].length;return m[0]};
ZW.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var dN=function(m){m.match(AXS);return!0},pY2=function(m,G,K){var W=0;
var L=m.pos;if(G===39||G===34)W++,m.pos++;else for(;m.peek()===G;)W++,m.pos++;if(W===0)W=null;else{var A=L===0?"\n":m.subject.charAt(L-1);var O=m.peek();O=O===-1?"\n":C$(O);var c=Omk.test(O);O=zxC.test(O);var u=Omk.test(A);var h=zxC.test(A);A=!c&&!(O&&!u&&!h);c=!u&&!(h&&!c&&!O);G===95?(u=A&&(!c||h),O=c&&(!A||O)):(u=G===39||G===34?A&&!c:A,O=c);m.pos=L;W={numdelims:W,can_open:u,can_close:O}}if(!W)return!1;L=W.numdelims;O=m.pos;m.pos+=L;O=G===39?"\u2019":G===34?"\u201c":m.subject.slice(O,m.pos);O=VK(O);
K.appendChild(O);m.delimiters={cc:G,numdelims:L,origdelims:L,node:O,previous:m.delimiters,next:null,can_open:W.can_open,can_close:W.can_close};m.delimiters.previous!==null&&(m.delimiters.previous.next=m.delimiters);return!0},JXC=function(m,G){G.previous!==null&&(G.previous.next=G.next);
G.next===null?m.delimiters=G.previous:G.next.previous=G.previous},NSB=function(m,G){var K,W,L=[],A=!1;
L[95]=G;L[42]=G;L[39]=G;L[34]=G;for(K=m.delimiters;K!==null&&K.previous!==G;)K=K.previous;for(;K!==null;){var O=K.cc;if(K.can_close){var c=K.previous;for(W=!1;c!==null&&c!==G&&c!==L[O];){A=(K.can_open||c.can_close)&&(c.origdelims+K.origdelims)%3===0;if(c.cc===K.cc&&c.can_open&&!A){W=!0;break}c=c.previous}var u=K;if(O===42||O===95)if(W){var h=K.numdelims>=2&&c.numdelims>=2?2:1;var J=c.node;var N=K.node;c.numdelims-=h;K.numdelims-=h;J._literal=J._literal.slice(0,J._literal.length-h);N._literal=N._literal.slice(0,
N._literal.length-h);var D=new rB(h===1?"emph":"strong");for(h=J._next;h&&h!==N;){var t=h._next;h.unlink();D.appendChild(h);h=t}UB4(J,D);h=c;t=K;h.next!==t&&(h.next=t,t.previous=h);c.numdelims===0&&(J.unlink(),JXC(m,c));K.numdelims===0&&(N.unlink(),c=K.next,JXC(m,K),K=c)}else K=K.next;else O===39?(K.node._literal="\u2019",W&&(c.node._literal="\u2018"),K=K.next):O===34&&(K.node._literal="\u201d",W&&(c.node.literal="\u201c"),K=K.next);W||A||(L[O]=u.previous,u.can_open||JXC(m,u))}else K=K.next}for(;m.delimiters!==
null&&m.delimiters!==G;)JXC(m,m.delimiters)},DaK=function(m){m=m.match(lE4);
return m===null?null:exS(m.substr(1,m.length-2))},tql=function(m){var G=m.match(BHR);
if(G===null){G=m.pos;for(var K=0,W;(W=m.peek())!==-1;)if(W===92)m.pos+=1,m.peek()!==-1&&(m.pos+=1);else if(W===40)m.pos+=1,K+=1;else if(W===41)if(K<1)break;else m.pos+=1,--K;else if(wY2.exec(C$(W))!==null)break;else m.pos+=1;G=m.subject.substr(G,m.pos-G);return fEC(exS(G))}return fEC(exS(G.substr(1,G.length-2)))},FFG=function(m){m=m.match(uwB);
return m===null||m.length>1001?0:m.length},QxB=function(m,G,K,W){m.brackets!==null&&(m.brackets.bracketAfter=!0);
m.brackets={node:G,previous:m.brackets,previousDelimiter:m.delimiters,index:K,image:W,active:!0}},akK=function(m,G){var K;
return(K=m.match(h3X))?(m.options.smart?G.appendChild(VK(K.replace(Gno,"\u2026").replace(KFK,function(W){var L=0,A=0;W.length%3===0?A=W.length/3:W.length%2===0?L=W.length/2:W.length%3===2?(L=1,A=(W.length-2)/3):(L=2,A=(W.length-4)/3);W="";var O;for(O=0;O<A;O++)W+="\u2014";for(O=0;O<L;O++)W+="\u2013";return W}))):G.appendChild(VK(K)),!0):!1},o1X=function(m,G,K){m.subject=G;
m.pos=0;G=m.pos;var W=FFG(m);if(W===0)return 0;var L=m.subject.substr(0,W);if(m.peek()===58)m.pos++;else return m.pos=G,0;dN(m);W=tql(m);if(W===null||W.length===0)return m.pos=G,0;var A=m.pos;dN(m);var O=DaK(m);O===null&&(O="",m.pos=A);var c=!0;m.match(rXF)===null&&(O===""?c=!1:(O="",m.pos=A,c=m.match(rXF)!==null));if(!c)return m.pos=G,0;L=uN9(L);if(L==="")return m.pos=G,0;K[L]||(K[L]={destination:W,title:O});return m.pos-G},n12=function(m,G){var K,W=m.peek();
if(W===-1)return!1;switch(W){case 10:m.pos+=1;if((K=G._lastChild)&&K.type==="text"&&K._literal[K._literal.length-1]===" "){var L=K._literal[K._literal.length-2]===" ";K._literal=K._literal.replace(cXF,"");G.appendChild(new rB(L?"linebreak":"softbreak"))}else G.appendChild(new rB("softbreak"));m.match(YUX);K=!0;break;case 92:K=m.subject;m.pos+=1;m.peek()===10?(m.pos+=1,K=new rB("linebreak"),G.appendChild(K)):MFS.test(K.charAt(m.pos))?(G.appendChild(VK(K.charAt(m.pos))),m.pos+=1):G.appendChild(VK("\\"));
K=!0;break;case 96:a:if(K=m.match(imK),K===null)K=!1;else{L=m.pos;for(var A;(A=m.match(ma0))!==null;)if(A===K){A=new rB("code");A._literal=m.subject.slice(L,m.pos-K.length).trim().replace(g1P," ");G.appendChild(A);K=!0;break a}m.pos=L;G.appendChild(VK(K));K=!0}break;case 42:case 95:K=pY2(m,W,G);break;case 39:case 34:K=m.options.smart&&pY2(m,W,G);break;case 91:K=m.pos;m.pos+=1;L=VK("[");G.appendChild(L);QxB(m,L,K,!1);K=!0;break;case 33:K=m.pos;m.pos+=1;m.peek()===91?(m.pos+=1,L=VK("!["),G.appendChild(L),
QxB(m,L,K+1,!0)):G.appendChild(VK("!"));K=!0;break;case 93:var O,c=!1,u;m.pos+=1;var h=m.pos;L=m.brackets;if(L===null)G.appendChild(VK("]"));else if(L.active){K=L.image;var J=m.pos;m.peek()===40&&(m.pos++,dN(m)&&(A=tql(m))!==null&&dN(m)&&(wY2.test(m.subject.charAt(m.pos-1))&&(O=DaK(m)),1)&&dN(m)&&m.peek()===41?(m.pos+=1,c=!0):m.pos=J);if(!c){var N=m.pos,D=FFG(m);D>2?u=m.subject.slice(N,N+D):L.bracketAfter||(u=m.subject.slice(L.index,h));D===0&&(m.pos=J);u&&(u=m.refmap[uN9(u)])&&(A=u.destination,O=
u.title,c=!0)}if(c){h=new rB(K?"image":"link");h._destination=A;h._title=O||"";for(A=L.node._next;A;)O=A._next,A.unlink(),h.appendChild(A),A=O;G.appendChild(h);NSB(m,L.previousDelimiter);m.brackets=m.brackets.previous;L.node.unlink();if(!K)for(L=m.brackets;L!==null;)L.image||(L.active=!1),L=L.previous}else m.brackets=m.brackets.previous,m.pos=h,G.appendChild(VK("]"))}else G.appendChild(VK("]")),m.brackets=m.brackets.previous;K=!0;break;case 60:(K=m.match(WFC))?(K=K.slice(1,K.length-1),L=new rB("link"),
L._destination=fEC("mailto:"+K),L._title="",L.appendChild(VK(K)),G.appendChild(L),K=!0):(K=m.match(LFG))?(K=K.slice(1,K.length-1),L=new rB("link"),L._destination=fEC(K),L._title="",L.appendChild(VK(K)),G.appendChild(L),K=!0):K=!1;K||(K=m.match(CkS),K===null?K=!1:(L=new rB("html_inline"),L._literal=K,G.appendChild(L),K=!0));break;case 38:(K=m.match(THP))?(G.appendChild(VK(jTC(K))),K=!0):K=!1;break;default:K=akK(m,G)}K||(m.pos+=1,G.appendChild(VK(C$(W))));return!0};
ZW.prototype.parseInlines=function(m){this.subject=m._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;n12(this,m););m._string_content=null;NSB(this,null)};
ZW.prototype.parse=ZW.prototype.parseInlines;var bmR=[/./,/^<(?: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")],v1C=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],$aK=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,sxK=/^[#`~*+_=<>0-9-\|]|\|/,qUS=/[^ \t\f\v\r\n]/,E1X=/^[*+-]/,HmC=/^(\d{1,9})([.)])/,Ikk=/^#{1,6}(?:[ \t]+|$)/,jxC=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,knK=/^(?:`{3,}|~{3,})(?= *$)/,CG4=/^(?:=+|-+)[ \t]*$/,VqB=/\r\n|\n|\r/,pWG=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,JzM=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,ZmR={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(m){return m!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(m,G){for(m=G._firstChild;m;){if(hVM(m)&&m._next){G._listData.tight=!1;break}for(var K=m._firstChild;K;){if(hVM(K)&&(m._next||K._next)){G._listData.tight=!1;break}K=K._next}m=m._next}},
canContain:function(m){return m==="item"},
acceptsLines:!1},block_quote:{continue:function(m){var G=m.currentLine;if(m.indented||OK(G,m.nextNonspace)!==62)return 1;PF(m);yK(m,1,!1);gB(OK(G,m.offset))&&yK(m,1,!0);return 0},
finalize:function(){},
canContain:function(m){return m!=="item"},
acceptsLines:!1},item:{continue:function(m,G){if(m.blank){if(G._firstChild==null)return 1;PF(m)}else if(m.indent>=G._listData.markerOffset+G._listData.padding)yK(m,G._listData.markerOffset+G._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(m){return m!=="item"&&!NOG(m)},
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(m,G){var K=m.currentLine,W=m.indent;if(G._isFenced){if((W=W<=3&&K.charAt(m.nextNonspace)===G._fenceChar&&K.slice(m.nextNonspace).match(knK))&&W[0].length>=G._fenceLength)return m.finalize(G,m.lineNumber),2;for(G=G._fenceOffset;G>0&&gB(OK(K,m.offset));)yK(m,1,!0),G--}else if(W>=4)yK(m,4,!0);else if(m.blank)PF(m);else return 1;return 0},
finalize:function(m,G){if(G._isFenced){var K=G._string_content,W=K.indexOf("\n");m=K.slice(0,W);K=K.slice(W+1);G.info=exS(m.trim());G._literal=K}else G._literal=G._string_content.replace(/(\n *)+$/,"\n");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(m,G){return!m.blank||G._htmlBlockType!==6&&G._htmlBlockType!==7?0:1},
finalize:function(m,G){G._literal=G._string_content.replace(/(\n *)+$/,"");G._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(m){return m.blank?1:0},
finalize:function(m,G){for(var K,W=!1;OK(G._string_content,0)===91&&(K=o1X(m.inlineParser,G._string_content,m.refmap));)G._string_content=G._string_content.slice(K),W=!0;W&&!qUS.test(G._string_content)&&G.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(m){return cl(m.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(m){return m=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(m,G){if(!G._rowIsDelimiter){m=G._isHeader?"th":"td";for(var K=G._parent._tableColumns,W=G._string_content,L=0,A="",O,c=G._sourcepos[0][0];L<W.length;){switch(W[L]){case "|":O&&(O._string_content=A.trim(),A="",O=null,K--,K<=0&&(L=W.length));break;default:if(!O){O=new rB(m,[[c,L],[c,L]]);var u=G._parent._columnAlignment,h=G._parent._tableColumns-K;u&&h<=u.length&&h>=0&&(O._alignment=u[h]);G.appendChild(O)}A+=W[L];O._sourcepos[1][1]=L}L++}O&&(O._string_content=A.trim());G._string_content=
""}},
canContain:function(m){return m!=="row"},
acceptsLines:!1}},dal=[function(m){if(m.indented||OK(m.currentLine,m.nextNonspace)!==62)return 0;PF(m);yK(m,1,!1);gB(OK(m.currentLine,m.offset))&&yK(m,1,!0);ei(m);m.addChild("block_quote",m.nextNonspace);return 1},
function(m){var G;if(!m.indented&&(G=m.currentLine.slice(m.nextNonspace).match(Ikk))){PF(m);yK(m,G[0].length,!1);ei(m);var K=m.addChild("heading",m.nextNonspace);K.level=G[0].trim().length;K._string_content=m.currentLine.slice(m.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");yK(m,m.currentLine.length-m.offset);return 2}return 0},
function(m){var G;if(!m.indented&&(G=m.currentLine.slice(m.nextNonspace).match(jxC))){var K=G[0].length;ei(m);var W=m.addChild("code_block",m.nextNonspace);W._isFenced=!0;W._fenceLength=K;W._fenceChar=G[0][0];W._fenceOffset=m.indent;PF(m);yK(m,K,!1);return 2}return 0},
function(m,G){if(!m.indented&&OK(m.currentLine,m.nextNonspace)===60){var K=m.currentLine.slice(m.nextNonspace),W;for(W=1;W<=7;W++)if(bmR[W].test(K)&&(W<7||G.type!=="paragraph"))return ei(m),m.addChild("html_block",m.offset)._htmlBlockType=W,2}return 0},
function(m,G){var K;if(!m.indented&&G.type==="paragraph"&&(K=m.currentLine.slice(m.nextNonspace).match(CG4))){ei(m);var W=new rB("heading",G.sourcepos);W.level=K[0][0]==="="?1:2;W._string_content=G._string_content;UB4(G,W);G.unlink();m.tip=W;yK(m,m.currentLine.length-m.offset,!1);return 2}return 0},
function(m){return!m.indented&&$aK.test(m.currentLine.slice(m.nextNonspace))?(ei(m),m.addChild("thematic_break",m.nextNonspace),yK(m,m.currentLine.length-m.offset,!1),2):0},
function(m,G){var K,W;if(!(W=m.indented&&G.type!=="list")){a:{var L=G,A=m.currentLine.slice(m.nextNonspace);W={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:m.indent};if(K=A.match(E1X))W.type="bullet",W.bulletChar=K[0][0];else{if(!(K=A.match(HmC))||L.type==="paragraph"&&K[1]!=="1"){K=null;break a}W.type="ordered";W.start=parseInt(K[1],10);W.delimiter=K[2]}var O=OK(m.currentLine,m.nextNonspace+K[0].length);if(O!==-1&&O!==9&&O!==32||L.type==="paragraph"&&!m.currentLine.slice(m.nextNonspace+
K[0].length).match(qUS))K=null;else{PF(m);yK(m,K[0].length,!0);L=m.column;A=m.offset;do yK(m,1,!0),O=OK(m.currentLine,m.offset);while(m.column-L<5&&gB(O));O=OK(m.currentLine,m.offset)===-1;var c=m.column-L;c>=5||c<1||O?(W.padding=K[0].length+1,m.column=L,m.offset=A,gB(OK(m.currentLine,m.offset))&&yK(m,1,!0)):W.padding=K[0].length+c;K=W}}W=!K}if(W)return 0;ei(m);(W=m.tip.type!=="list")||(G=G._listData,W=!(G.type===K.type&&G.delimiter===K.delimiter&&G.bulletChar===K.bulletChar));W&&(G=m.addChild("list",
m.nextNonspace),G._listData=K);G=m.addChild("item",m.nextNonspace);G._listData=K;return 1},
function(m){var G;return((G=m.options.shouldParseIndentAsCodeBlock)!=null?G:1)&&m.indented&&m.tip.type!=="paragraph"&&!m.blank?(yK(m,4,!0),ei(m),m.addChild("code_block",m.offset),2):0},
function(m,G){var K=cl(m.currentLine),W=cl(m.lookahead);if(K!==0&&W<0&&Math.abs(K)==Math.abs(W)&&!NOG(G.type)){ei(m);G=m.addChild("table",m.nextNonspace);G._tableRows=1;G._tableColumns=Math.abs(K);K=m.lookahead;if(JzM.test(K)){W=[];for(var L=0,A=!1,O=0,c=void 0;L<K.length;){var u=O>=3;switch(K[L]){case "-":O++;break;case "|":A&&(W.push(c),c=void 0,O=0);A=!0;break;case ":":c||u||(c="left"),!c&&u&&(c="right"),c==="left"&&u&&(c="center")}L++}K=W}else K=void 0;G._columnAlignment=K;G=m.addChild("row",
m.nextNonspace);G._isHeader=!0;yK(m,m.currentLine.length-m.offset,!1);G._string_content=m.currentLine;return 1}return 0},
function(m,G){if(G.type=="table"&&cl(m.currentLine)!==0){ei(m);var K=G;G=m.addChild("row",m.nextNonspace);cl(m.currentLine)<0?G._rowIsDelimiter=!0:K._tableRows+=1;yK(m,m.currentLine.length-m.offset,!1);G._string_content=m.currentLine;return 2}return 0}],Hhd=function(){var m={shouldParseIndentAsCodeBlock:!1};
m=m===void 0?{}:m;this.lastMatchedContainer=this.doc=D3F();this.refmap={};this.lastLineLength=0;this.inlineParser=new ZW(m);this.options=m;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=ZmR;this.blockStarts=dal},PGS=function(m){m.partiallyConsumedTab&&(m.offset+=1,m.tip._string_content+=" ".repeat(4-m.column%
4));
m.tip._string_content+=m.currentLine.slice(m.offset)+"\n"};
Hhd.prototype.addChild=function(m,G){for(;!this.blocks[this.tip.type].canContain(m);)this.finalize(this.tip,this.lineNumber-1);m=new rB(m,[[this.lineNumber,G+1],[0,0]]);m._string_content="";this.tip.appendChild(m);return this.tip=m};
var ei=function(m){if(!m.allClosed){for(;m.oldtip!==m.lastMatchedContainer;){var G=m.oldtip._parent;m.finalize(m.oldtip,m.lineNumber-1);m.oldtip=G}m.allClosed=!0}},yK=function(m,G,K){for(var W=m.currentLine,L,A;G>0&&(A=W[m.offset]);)A==="\t"?(L=4-m.column%4,K?(m.partiallyConsumedTab=L>G,L=L>G?G:L,m.column+=L,m.offset+=m.partiallyConsumedTab?0:1,G-=L):(m.partiallyConsumedTab=!1,m.column+=L,m.offset+=1,--G)):(m.partiallyConsumedTab=!1,m.offset+=1,m.column+=1,--G)},PF=function(m){m.offset=m.nextNonspace;
m.column=m.nextNonspaceColumn;m.partiallyConsumedTab=!1},yXB=function(m){for(var G=m.currentLine,K=m.offset,W=m.column,L;(L=G.charAt(K))!=="";)if(L===" ")K++,W++;
else if(L==="\t")K++,W+=4-W%4;else break;m.blank=L==="\n"||L==="\r"||L==="";m.nextNonspace=K;m.nextNonspaceColumn=W;m.indent=m.nextNonspaceColumn-m.column;m.indented=m.indent>=4};
Hhd.prototype.finalize=function(m,G){var K=m._parent;m._open=!1;m.sourcepos[1]=[G,this.lastLineLength];this.blocks[m.type].finalize(this,m);this.tip=K};
Hhd.prototype.parse=function(m){this.tip=this.doc=D3F();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!m)return this.doc;this.options.time&&console.time("preparing input");var G=m.split(VqB),K=G.length;m.charCodeAt(m.length-1)===10&&--K;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(m=0;m<K;m++)a:{var W=void 0,L=G[m],A=G[m+1],O=!0,c=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;L.indexOf("\x00")!==-1&&(L=L.replace(/\0/g,"\ufffd"));this.currentLine=L;for(this.lookahead=A;(W=c._lastChild)&&W._open;){c=W;yXB(this);switch(this.blocks[c.type].continue(this,c)){case 0:break;case 1:O=!1;break;case 2:this.lastLineLength=L.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!O){c=c._parent;break}}this.allClosed=c===this.oldtip;this.lastMatchedContainer=
c;W=c.type!=="paragraph"&&ZmR[c.type].acceptsLines;A=this.blockStarts;for(O=A.length;!W;){yXB(this);if(!this.indented&&!sxK.test(L.slice(this.nextNonspace))){PF(this);break}for(var u=0;u<O;){var h=A[u](this,c);if(h===1){c=this.tip;break}else if(h===2){c=this.tip;W=!0;break}else u++}if(u===O){PF(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){ei(this);this.blank&&c.lastChild&&(c.lastChild._lastLineBlank=!0);W=c.type;A=this.blank&&!(W==="block_quote"||W==="code_block"&&c._isFenced||
W==="item"&&!c._firstChild&&c.sourcepos[0][0]===this.lineNumber);for(O=c;O;)O._lastLineBlank=A,O=O._parent;this.blocks[W].acceptsLines?(PGS(this),W==="html_block"&&c._htmlBlockType>=1&&c._htmlBlockType<=5&&v1C[c._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(c,this.lineNumber)):this.offset<L.length&&!this.blank&&(this.addChild("paragraph",this.offset),PF(this),PGS(this))}else PGS(this);this.lastLineLength=L.length}for(;this.tip;)this.finalize(this.tip,K);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");L=new RxX(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;K=L.next();)G=K.node,m=G.type,K.entering||m!=="paragraph"&&m!=="heading"&&m!=="th"&&m!="td"||this.inlineParser.parse(G);this.options.time&&console.timeEnd("inline parsing");return this.doc};tmG.prototype.render=function(m){m=new RxX(m);var G;this.buffer="";for(this.lastOut="\n";G=m.next();){var K=G.node.type;if(this[K])this[K](G.node,G.entering)}return this.buffer};
tmG.prototype.out=function(m){f$(this,m)};
var f$=function(m,G){m.buffer+=G;m.lastOut=G};
tmG.prototype.cr=function(){this.lastOut!=="\n"&&f$(this,"\n")};var e3K=/^javascript:|vbscript:|file:|data:/i,fko=/^data:image\/(?:png|gif|jpeg|webp)/i,xai=function(m){return e3K.test(m)&&!fko.test(m)};
uL.prototype=Object.create(tmG.prototype);_.w=uL.prototype;_.w.text=function(m){this.out(m.literal)};
_.w.html_inline=function(m){this.options.safe?f$(this,"\x3c!-- raw HTML omitted --\x3e"):f$(this,m.literal)};
_.w.html_block=function(m){this.cr();this.options.safe?f$(this,"\x3c!-- raw HTML omitted --\x3e"):f$(this,m.literal);this.cr()};
_.w.softbreak=function(){f$(this,this.options.softbreak)};
_.w.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.w.link=function(m,G){var K=this.attrs(m);G?(this.options.safe&&xai(m.destination)||K.push(["href",k4(m.destination,!0)]),m.title&&K.push(["title",k4(m.title,!0)]),this.tag("a",K)):this.tag("/a")};
_.w.image=function(m,G){G?(this.disableTags===0&&(this.options.safe&&xai(m.destination)?f$(this,'<img src="" alt="'):f$(this,'<img src="'+k4(m.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(m.title&&f$(this,'" title="'+k4(m.title,!0)),f$(this,'" />')))};
_.w.emph=function(m,G){this.tag(G?"em":"/em")};
_.w.strong=function(m,G){this.tag(G?"strong":"/strong")};
_.w.paragraph=function(m,G){var K=m.parent.parent;m=this.attrs(m);K!==null&&K.type==="list"&&K.listTight||(G?(this.cr(),this.tag("p",m)):(this.tag("/p"),this.cr()))};
_.w.heading=function(m,G){var K="h"+m.level;m=this.attrs(m);G?(this.cr(),this.tag(K,m)):(this.tag("/"+K),this.cr())};
_.w.code=function(m){this.tag("code");this.out(m.literal);this.tag("/code")};
_.w.code_block=function(m){var G=m.info?m.info.split(/\s+/):[],K=this.attrs(m);G.length>0&&G[0].length>0&&K.push(["class","language-"+k4(G[0],!0)]);this.cr();this.tag("pre");this.tag("code",K);this.out(m.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.w.thematic_break=function(m){m=this.attrs(m);this.cr();this.tag("hr",m,!0);this.cr()};
_.w.block_quote=function(m,G){m=this.attrs(m);G?(this.cr(),this.tag("blockquote",m)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.w.list=function(m,G){var K=m.listType==="bullet"?"ul":"ol",W=this.attrs(m);G?(m=m.listStart,m!==null&&m!==1&&W.push(["start",m.toString()]),this.cr(),this.tag(K,W)):(this.cr(),this.tag("/"+K));this.cr()};
_.w.item=function(m,G){m=this.attrs(m);G?this.tag("li",m):(this.tag("/li"),this.cr())};
_.w.custom_inline=function(m,G){G&&m.onEnter?f$(this,m.onEnter):!G&&m.onExit&&f$(this,m.onExit)};
_.w.custom_block=function(m,G){this.cr();G&&m.onEnter?f$(this,m.onEnter):!G&&m.onExit&&f$(this,m.onExit);this.cr()};
_.w.table=function(m,G){m=this.attrs(m);G?(this.cr(),this.tag("table",m)):(this.tag("/table"),this.cr())};
_.w.row=function(m,G){m._rowIsDelimiter||(m=this.attrs(m),G?this.tag("tr",m):this.tag("/tr"))};
_.w.td=function(m,G){var K=this.attrs(m);m._alignment&&K.push(["align",m._alignment]);G?this.tag("td",K):this.tag("/td")};
_.w.th=function(m,G){var K=this.attrs(m);m._alignment&&K.push(["align",m._alignment]);G?this.tag("th",K):this.tag("/th")};
_.w.out=function(m){f$(this,k4(m,!1))};
_.w.tag=function(m,G,K){if(!(this.disableTags>0)){this.buffer+="<"+m;if(G&&G.length>0){m=0;for(var W;(W=G[m])!==void 0;)this.buffer+=" "+W[0]+'="'+W[1]+'"',m++}K&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.w.attrs=function(m){var G=[];this.options.sourcepos&&(m=m.sourcepos)&&G.push(["data-sourcepos",String(m[0][0])+":"+String(m[0][1])+"-"+String(m[1][0])+":"+String(m[1][1])]);return G};
uL.prototype.text=uL.prototype.text;uL.prototype.html_inline=uL.prototype.html_inline;uL.prototype.html_block=uL.prototype.html_block;uL.prototype.softbreak=uL.prototype.softbreak;uL.prototype.linebreak=uL.prototype.linebreak;uL.prototype.link=uL.prototype.link;uL.prototype.image=uL.prototype.image;uL.prototype.emph=uL.prototype.emph;uL.prototype.strong=uL.prototype.strong;uL.prototype.paragraph=uL.prototype.paragraph;uL.prototype.heading=uL.prototype.heading;uL.prototype.code=uL.prototype.code;
uL.prototype.code_block=uL.prototype.code_block;uL.prototype.thematic_break=uL.prototype.thematic_break;uL.prototype.block_quote=uL.prototype.block_quote;uL.prototype.list=uL.prototype.list;uL.prototype.item=uL.prototype.item;uL.prototype.custom_inline=uL.prototype.custom_inline;uL.prototype.custom_block=uL.prototype.custom_block;uL.prototype.table=uL.prototype.table;uL.prototype.row=uL.prototype.row;uL.prototype.td=uL.prototype.td;uL.prototype.th=uL.prototype.th;uL.prototype.out=uL.prototype.out;
uL.prototype.tag=uL.prototype.tag;uL.prototype.attrs=uL.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 XYR,SUF,XCv;(function(){function m(C,H){return C<H?-1:C>H?1:C>=H?0:NaN}
function G(C){return function(H,e){return m(C(H),e)}}
function K(){for(var C=0,H=arguments.length,e={},G9;C<H;++C){if(!(G9=arguments[C]+"")||G9 in e)throw Error("ye`"+G9);e[G9]=[]}return new W(e)}
function W(C){this._=C}
function L(C,H){return C.trim().split(/^|\s+/).map(function(e){var G9="",YG=e.indexOf(".");YG>=0&&(G9=e.slice(YG+1),e=e.slice(0,YG));if(e&&!H.hasOwnProperty(e))throw Error("ze`"+e);return{type:e,name:G9}})}
function A(C,H,e){for(var G9=0,YG=C.length;G9<YG;++G9)if(C[G9].name===H){C[G9]=eu5;C=C.slice(0,G9).concat(C.slice(G9+1));break}e!=null&&C.push({name:H,value:e});return C}
function O(C){var H=C,e=H.indexOf(":");e>=0&&(H=C.slice(0,e))!=="xmlns"&&(C=C.slice(e+1));return JX.hasOwnProperty(H)?{space:JX[H],local:C}:C}
function c(C){return function(){var H=this.ownerDocument,e=this.namespaceURI;return e==="http://www.w3.org/1999/xhtml"&&H.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?H.createElement(C):H.createElementNS(e,C)}}
function u(C){return function(){return this.ownerDocument.createElementNS(C.space,C.local)}}
function h(C){C=O(C);return(C.local?u:c)(C)}
function J(){}
function N(C){return C==null?J:function(){return this.querySelector(C)}}
function D(C){return Array(C.length)}
function t(C,H){this.ownerDocument=C.ownerDocument;this.namespaceURI=C.namespaceURI;this._next=null;this._parent=C;this.__data__=H}
function a(C){return function(){return C}}
function v(C,H,e,G9,YG,tV){for(var vJ=0,jo,Oo=H.length,W2=tV.length;vJ<W2;++vJ)(jo=H[vJ])?(jo.__data__=tV[vJ],G9[vJ]=jo):e[vJ]=new t(C,tV[vJ]);for(;vJ<Oo;++vJ)if(jo=H[vJ])YG[vJ]=jo}
function I(C,H,e,G9,YG,tV,vJ){var jo,Oo,W2={},Yk=H.length,aF=tV.length,mD=Array(Yk),Pu;for(jo=0;jo<Yk;++jo)if(Oo=H[jo])mD[jo]=Pu="$"+vJ.call(Oo,Oo.__data__,jo,H),Pu in W2?YG[jo]=Oo:W2[Pu]=Oo;for(jo=0;jo<aF;++jo)Pu="$"+vJ.call(C,tV[jo],jo,tV),(Oo=W2[Pu])?(G9[jo]=Oo,Oo.__data__=tV[jo],W2[Pu]=null):e[jo]=new t(C,tV[jo]);for(jo=0;jo<Yk;++jo)(Oo=H[jo])&&W2[mD[jo]]===Oo&&(YG[jo]=Oo)}
function Z(C,H){return C<H?-1:C>H?1:C>=H?0:NaN}
function k(C){return function(){this.removeAttribute(C)}}
function z(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function X(C,H){return function(){this.setAttribute(C,H)}}
function f(C,H){return function(){this.setAttributeNS(C.space,C.local,H)}}
function U(C,H){return function(){var e=H.apply(this,arguments);e==null?this.removeAttribute(C):this.setAttribute(C,e)}}
function l(C,H){return function(){var e=H.apply(this,arguments);e==null?this.removeAttributeNS(C.space,C.local):this.setAttributeNS(C.space,C.local,e)}}
function Ls(C){return function(){this.style.removeProperty(C)}}
function gd(C,H,e){return function(){this.style.setProperty(C,H,e)}}
function Qf(C,H,e){return function(){var G9=H.apply(this,arguments);G9==null?this.style.removeProperty(C):this.style.setProperty(C,G9,e)}}
function JV(C,H){return C.style.getPropertyValue(H)||(C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView).getComputedStyle(C,null).getPropertyValue(H)}
function DF(C){return function(){delete this[C]}}
function kG(C,H){return function(){this[C]=H}}
function eo(C,H){return function(){var e=H.apply(this,arguments);e==null?delete this[C]:this[C]=e}}
function xG(){this.textContent=""}
function Ji(C){return function(){this.textContent=C}}
function rK(C){return function(){var H=C.apply(this,arguments);this.textContent=H==null?"":H}}
function So(){this.innerHTML=""}
function ti(C){return function(){this.innerHTML=C}}
function bS(C){return function(){var H=C.apply(this,arguments);this.innerHTML=H==null?"":H}}
function NG(){return null}
function EO(){var C=this.parentNode;C&&C.removeChild(this)}
function gz(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function ps(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function ZF(C,H,e){C=DP(C,H,e);return function(G9){var YG=G9.relatedTarget;YG&&(YG===this||YG.compareDocumentPosition(this)&8)||C.call(this,G9)}}
function DP(C,H,e){return function(){C.call(this,this.__data__,H,e)}}
function lS(C){return C.trim().split(/^|\s+/).map(function(H){var e="",G9=H.indexOf(".");G9>=0&&(e=H.slice(G9+1),H=H.slice(0,G9));return{type:H,name:e}})}
function Eo(C){return function(){var H=this.__on;if(H){for(var e=0,G9=-1,YG=H.length,tV;e<YG;++e)(tV=H[e],C.type&&tV.type!==C.type||tV.name!==C.name)?H[++G9]=tV:this.removeEventListener(tV.type,tV.listener,tV.capture);++G9?H.length=G9:delete this.__on}}}
function iq(C,H,e){var G9=N0C.hasOwnProperty(C.type)?ZF:DP;return function(YG,tV,vJ){YG=this.__on;var jo;tV=G9(H,tV,vJ);if(YG){vJ=0;for(var Oo=YG.length;vJ<Oo;++vJ)if((jo=YG[vJ]).type===C.type&&jo.name===C.name){this.removeEventListener(jo.type,jo.listener,jo.capture);this.addEventListener(jo.type,jo.listener=tV,jo.capture=e);jo.value=H;return}}this.addEventListener(C.type,tV,e);jo={type:C.type,name:C.name,value:H,listener:tV,capture:e};YG?YG.push(jo):this.__on=[jo]}}
function jy(C,H,e){var G9=C.ownerDocument&&C.ownerDocument.defaultView||C.document&&C||C.defaultView,YG=G9.CustomEvent;typeof YG==="function"?YG=new YG(H,e):(YG=G9.document.createEvent("Event"),e?(YG.initEvent(H,e.bubbles,e.cancelable),YG.detail=e.detail):YG.initEvent(H,!1,!1));C.dispatchEvent(YG)}
function T4(C,H){return function(){return jy(this,C,H)}}
function JD(C,H){return function(){return jy(this,C,H.apply(this,arguments))}}
function S0(C,H){this._groups=C;this._parents=H}
function zG(){return new S0([[document.documentElement]],faD)}
function c2(){this._="@"+(++xoD).toString(36)}
function N6(C,H,e){C.prototype=H.prototype=e;e.constructor=C}
function pl(C,H){C=Object.create(C.prototype);for(var e in H)C[e]=H[e];return C}
function Uo(){}
function dK(C){var H;C=(C+"").trim().toLowerCase();return(H=Xrs.exec(C))?(H=parseInt(H[1],16),new ig(H>>8&15|H>>4&240,H>>4&15|H&240,(H&15)<<4|H&15,1)):(H=S9G.exec(C))?cu(parseInt(H[1],16)):(H=RuP.exec(C))?new ig(H[1],H[2],H[3],1):(H=Uo6.exec(C))?new ig(H[1]*255/100,H[2]*255/100,H[3]*255/100,1):(H=zuq.exec(C))?xo(H[1],H[2],H[3],H[4]):(H=laD.exec(C))?xo(H[1]*255/100,H[2]*255/100,H[3]*255/100,H[4]):(H=BIi.exec(C))?xl(H[1],H[2]/100,H[3]/100,1):(H=MS6.exec(C))?xl(H[1],H[2]/100,H[3]/100,H[4]):DUi.hasOwnProperty(C)?
cu(DUi[C]):C==="transparent"?new ig(NaN,NaN,NaN,0):null}
function cu(C){return new ig(C>>16&255,C>>8&255,C&255,1)}
function xo(C,H,e,G9){G9<=0&&(C=H=e=NaN);return new ig(C,H,e,G9)}
function fl(C){C instanceof Uo||(C=dK(C));if(!C)return new ig;C=C.rgb();return new ig(C.r,C.g,C.b,C.opacity)}
function Qi(C,H,e,G9){return arguments.length===1?fl(C):new ig(C,H,e,G9==null?1:G9)}
function ig(C,H,e,G9){this.r=+C;this.g=+H;this.b=+e;this.opacity=+G9}
function gx(C){C=Math.max(0,Math.min(255,Math.round(C)||0));return(C<16?"0":"")+C.toString(16)}
function xl(C,H,e,G9){G9<=0?C=H=e=NaN:e<=0||e>=1?C=H=NaN:H<=0&&(C=NaN);return new X6(C,H,e,G9)}
function xr(C){if(C instanceof X6)return new X6(C.h,C.s,C.l,C.opacity);C instanceof Uo||(C=dK(C));if(!C)return new X6;if(C instanceof X6)return C;C=C.rgb();var H=C.r/255,e=C.g/255,G9=C.b/255,YG=Math.min(H,e,G9),tV=Math.max(H,e,G9),vJ=NaN,jo=tV-YG,Oo=(tV+YG)/2;jo?(vJ=H===tV?(e-G9)/jo+(e<G9)*6:e===tV?(G9-H)/jo+2:(H-e)/jo+4,jo/=Oo<.5?tV+YG:2-tV-YG,vJ*=60):jo=Oo>0&&Oo<1?0:vJ;return new X6(vJ,jo,Oo,C.opacity)}
function Gf(C,H,e,G9){return arguments.length===1?xr(C):new X6(C,H,e,G9==null?1:G9)}
function X6(C,H,e,G9){this.h=+C;this.s=+H;this.l=+e;this.opacity=+G9}
function ht(C,H,e){return(C<60?H+(e-H)*C/60:C<180?e:C<240?H+(e-H)*(240-C)/60:H)*255}
function Td(C){if(C instanceof sd)return new sd(C.l,C.a,C.b,C.opacity);if(C instanceof $k){if(isNaN(C.h))return new sd(C.l,0,0,C.opacity);var H=C.h*txX;return new sd(C.l,Math.cos(H)*C.c,Math.sin(H)*C.c,C.opacity)}C instanceof ig||(C=fl(C));var e=$5(C.r),G9=$5(C.g),YG=$5(C.b);H=dd(.2225045*e+.7168786*G9+.0606169*YG);if(e===G9&&G9===YG)var tV=e=H;else tV=dd((.4360747*e+.3850649*G9+.1430804*YG)/.96422),e=dd((.0139322*e+.0971045*G9+.7141733*YG)/.82521);return new sd(116*H-16,500*(tV-H),200*(H-e),C.opacity)}
function sd(C,H,e,G9){this.l=+C;this.a=+H;this.b=+e;this.opacity=+G9}
function dd(C){return C>TIE?Math.pow(C,1/3):C/FB0+QfP}
function l6(C){return C>sj?C*C*C:FB0*(C-QfP)}
function QX(C){return 255*(C<=.0031308?12.92*C:1.055*Math.pow(C,1/2.4)-.055)}
function $5(C){return(C/=255)<=.04045?C/12.92:Math.pow((C+.055)/1.055,2.4)}
function Ee(C){if(C instanceof $k)return new $k(C.h,C.c,C.l,C.opacity);C instanceof sd||(C=Td(C));if(C.a===0&&C.b===0)return new $k(NaN,0,C.l,C.opacity);var H=Math.atan2(C.b,C.a)*aTk;return new $k(H<0?H+360:H,Math.sqrt(C.a*C.a+C.b*C.b),C.l,C.opacity)}
function Is(C,H,e,G9){return arguments.length===1?Ee(C):new $k(C,H,e,G9==null?1:G9)}
function $k(C,H,e,G9){this.h=+C;this.c=+H;this.l=+e;this.opacity=+G9}
function v2(C,H,e,G9){if(arguments.length===1){var YG=C;if(YG instanceof XE)YG=new XE(YG.h,YG.s,YG.l,YG.opacity);else{YG instanceof ig||(YG=fl(YG));var tV=YG.g/255,vJ=YG.b/255,jo=(o8S*vJ+YG.r/255*-1.7884503806-3.5172982438*tV)/(o8S+-1.7884503806-3.5172982438);vJ-=jo;var Oo=(1.97294*(tV-jo)- -.29227*vJ)/-.90649;vJ=(tV=Math.sqrt(Oo*Oo+vJ*vJ)/(1.97294*jo*(1-jo)))?Math.atan2(Oo,vJ)*aTk-120:NaN;YG=new XE(vJ<0?vJ+360:vJ,tV,jo,YG.opacity)}}else YG=new XE(C,H,e,G9==null?1:G9);return YG}
function XE(C,H,e,G9){this.h=+C;this.s=+H;this.l=+e;this.opacity=+G9}
function Oe(C,H,e,G9,YG){var tV=C*C,vJ=tV*C;return((1-3*C+3*tV-vJ)*H+(4-6*tV+3*vJ)*e+(1+3*C+3*tV-3*vJ)*G9+vJ*YG)/6}
function FR(C){return function(){return C}}
function C6(C,H){return function(e){return C+e*H}}
function yp(C,H,e){return C=Math.pow(C,e),H=Math.pow(H,e)-C,e=1/e,function(G9){return Math.pow(C+G9*H,e)}}
function XO(C,H){var e=H-C;return e?C6(C,e>180||e<-180?e-360*Math.round(e/360):e):FR(isNaN(C)?H:C)}
function JI(C){return(C=+C)===1?KL:function(H,e){return e-H?yp(H,e,C):FR(isNaN(H)?e:H)}}
function KL(C,H){var e=H-C;return e?C6(C,e):FR(isNaN(C)?H:C)}
function $S(C){return function(H){var e=H.length,G9=Array(e),YG=Array(e),tV=Array(e),vJ;for(vJ=0;vJ<e;++vJ){var jo=Qi(H[vJ]);G9[vJ]=jo.r||0;YG[vJ]=jo.g||0;tV[vJ]=jo.b||0}G9=C(G9);YG=C(YG);tV=C(tV);jo.opacity=1;return function(Oo){jo.r=G9(Oo);jo.g=YG(Oo);jo.b=tV(Oo);return jo+""}}}
function TI(C,H){return C=+C,H-=C,function(e){return C+H*e}}
function bW(C){return function(){return C}}
function Rn(C){return function(H){return C(H)+""}}
function $3(C,H){var e=H9M.lastIndex=InM.lastIndex=0,G9,YG,tV,vJ=-1,jo=[],Oo=[];C+="";for(H+="";(G9=H9M.exec(C))&&(YG=InM.exec(H));)(tV=YG.index)>e&&(tV=H.slice(e,tV),jo[vJ]?jo[vJ]+=tV:jo[++vJ]=tV),(G9=G9[0])===(YG=YG[0])?jo[vJ]?jo[vJ]+=YG:jo[++vJ]=YG:(jo[++vJ]=null,Oo.push({i:vJ,x:TI(G9,YG)})),e=InM.lastIndex;e<H.length&&(tV=H.slice(e),jo[vJ]?jo[vJ]+=tV:jo[++vJ]=tV);return jo.length<2?Oo[0]?Rn(Oo[0].x):bW(H):(H=Oo.length,function(W2){for(var Yk=0,aF;Yk<H;++Yk)jo[(aF=Oo[Yk]).i]=aF.x(W2);return jo.join("")})}
function K$(C,H,e,G9,YG,tV){var vJ,jo,Oo;if(vJ=Math.sqrt(C*C+H*H))C/=vJ,H/=vJ;if(Oo=C*e+H*G9)e-=C*Oo,G9-=H*Oo;if(jo=Math.sqrt(e*e+G9*G9))e/=jo,G9/=jo,Oo/=jo;C*G9<H*e&&(C=-C,H=-H,Oo=-Oo,vJ=-vJ);return{translateX:YG,translateY:tV,rotate:Math.atan2(H,C)*n8k,skewX:Math.atan(Oo)*n8k,scaleX:vJ,scaleY:jo}}
function vH(C,H,e,G9){function YG(W2){return W2.length?W2.pop()+" ":""}
function tV(W2,Yk,aF,mD,Pu,Ie){W2!==aF||Yk!==mD?(Pu=Pu.push("translate(",null,H,null,e),Ie.push({i:Pu-4,x:TI(W2,aF)},{i:Pu-2,x:TI(Yk,mD)})):(aF||mD)&&Pu.push("translate("+aF+H+mD+e)}
function vJ(W2,Yk,aF,mD){W2!==Yk?(W2-Yk>180?Yk+=360:Yk-W2>180&&(W2+=360),mD.push({i:aF.push(YG(aF)+"rotate(",null,G9)-2,x:TI(W2,Yk)})):Yk&&aF.push(YG(aF)+"rotate("+Yk+G9)}
function jo(W2,Yk,aF,mD){W2!==Yk?mD.push({i:aF.push(YG(aF)+"skewX(",null,G9)-2,x:TI(W2,Yk)}):Yk&&aF.push(YG(aF)+"skewX("+Yk+G9)}
function Oo(W2,Yk,aF,mD,Pu,Ie){W2!==aF||Yk!==mD?(Pu=Pu.push(YG(Pu)+"scale(",null,",",null,")"),Ie.push({i:Pu-4,x:TI(W2,aF)},{i:Pu-2,x:TI(Yk,mD)})):aF===1&&mD===1||Pu.push(YG(Pu)+"scale("+aF+","+mD+")")}
return function(W2,Yk){var aF=[],mD=[];W2=C(W2);Yk=C(Yk);tV(W2.translateX,W2.translateY,Yk.translateX,Yk.translateY,aF,mD);vJ(W2.rotate,Yk.rotate,aF,mD);jo(W2.skewX,Yk.skewX,aF,mD);Oo(W2.scaleX,W2.scaleY,Yk.scaleX,Yk.scaleY,aF,mD);W2=Yk=null;return function(Pu){for(var Ie=-1,mK=mD.length,d5;++Ie<mK;)aF[(d5=mD[Ie]).i]=d5.x(Pu);return aF.join("")}}}
function b9(C){return function(H,e){var G9=C((H=Gf(H)).h,(e=Gf(e)).h),YG=KL(H.s,e.s),tV=KL(H.l,e.l),vJ=KL(H.opacity,e.opacity);return function(jo){H.h=G9(jo);H.s=YG(jo);H.l=tV(jo);H.opacity=vJ(jo);return H+""}}}
function RS(C){return function(H,e){var G9=C((H=Is(H)).h,(e=Is(e)).h),YG=KL(H.c,e.c),tV=KL(H.l,e.l),vJ=KL(H.opacity,e.opacity);return function(jo){H.h=G9(jo);H.c=YG(jo);H.l=tV(jo);H.opacity=vJ(jo);return H+""}}}
function b1(C){return function G9(e){function YG(tV,vJ){var jo=C((tV=v2(tV)).h,(vJ=v2(vJ)).h),Oo=KL(tV.s,vJ.s),W2=KL(tV.l,vJ.l),Yk=KL(tV.opacity,vJ.opacity);return function(aF){tV.h=jo(aF);tV.s=Oo(aF);tV.l=W2(Math.pow(aF,e));tV.opacity=Yk(aF);return tV+""}}
e=+e;YG.gamma=G9;return YG}(1)}
function vL(){return gY||(bki(i_),gY=n0.now()+NCs)}
function i_(){gY=0}
function RB(){this._call=this._time=this._next=null}
function U1(C,H,e){var G9=new RB;G9.restart(C,H,e);return G9}
function WF(){gY=(DF6=n0.now())+NCs;q4=b4=0;try{vL();++q4;for(var C=tNf,H;C;)(H=gY-C._time)>=0&&C._call.call(null,H),C=C._next;--q4}finally{q4=0;C=tNf;for(var e=Infinity;C;)if(C._call){e>C._time&&(e=C._time);var G9=C;C=C._next}else H=C._next,C._next=null,C=G9?G9._next=H:tNf=H;vI=G9;Ua(e);gY=0}}
function Ti(){var C=n0.now(),H=C-DF6;H>1E3&&(NCs-=H,DF6=C)}
function Ua(C){q4||(b4&&(b4=clearTimeout(b4)),C-gY>24?(C<Infinity&&(b4=setTimeout(WF,C-n0.now()-NCs)),$x&&($x=clearInterval($x))):($x||(DF6=n0.now(),$x=setInterval(Ti,1E3)),q4=1,bki(WF)))}
function UH(C,H,e){var G9=new RB;H=H==null?0:+H;G9.restart(function(YG){G9.stop();C(YG+H)},H,e);
return G9}
function iS(C,H,e,G9,YG,tV){var vJ=C.__transition;if(!vJ)C.__transition={};else if(e in vJ)return;Pz(C,e,{name:H,index:G9,group:YG,on:meW,tween:i4W,time:tV.time,delay:tV.delay,duration:tV.duration,ease:tV.ease,timer:null,state:0})}
function D6(C,H){C=lq(C,H);if(C.state>0)throw Error("Ae");return C}
function CP(C,H){C=lq(C,H);if(C.state>2)throw Error("Be");return C}
function lq(C,H){C=C.__transition;if(!C||!(C=C[H]))throw Error("Ce");return C}
function Pz(C,H,e){function G9(Oo){var W2,Yk;if(e.state!==1)return tV();for(mD in vJ){var aF=vJ[mD];if(aF.name===e.name){if(aF.state===3)return UH(G9);aF.state===4?(aF.state=6,aF.timer.stop(),aF.on.call("interrupt",C,C.__data__,aF.index,aF.group),delete vJ[mD]):+mD<H&&(aF.state=6,aF.timer.stop(),delete vJ[mD])}}UH(function(){e.state===3&&(e.state=4,e.timer.restart(YG,e.delay,e.time),YG(Oo))});
e.state=2;e.on.call("start",C,C.__data__,e.index,e.group);if(e.state===2){e.state=3;jo=Array(Yk=e.tween.length);var mD=0;for(W2=-1;mD<Yk;++mD)if(aF=e.tween[mD].value.call(C,C.__data__,e.index,e.group))jo[++W2]=aF;jo.length=W2+1}}
function YG(Oo){Oo=Oo<e.duration?e.ease.call(null,Oo/e.duration):(e.timer.restart(tV),e.state=5,1);for(var W2=-1,Yk=jo.length;++W2<Yk;)jo[W2].call(null,Oo);e.state===5&&(e.on.call("end",C,C.__data__,e.index,e.group),tV())}
function tV(){e.state=6;e.timer.stop();delete vJ[H];for(var Oo in vJ)return;delete C.__transition}
var vJ=C.__transition,jo;vJ[H]=e;e.timer=U1(function(Oo){e.state=1;e.timer.restart(G9,e.delay,e.time);e.delay<=Oo&&G9(Oo-e.delay)},0,e.time)}
function xy(C,H){var e,G9;return function(){var YG=CP(this,C),tV=YG.tween;if(tV!==e){G9=e=tV;tV=0;for(var vJ=G9.length;tV<vJ;++tV)if(G9[tV].name===H){G9=G9.slice();G9.splice(tV,1);break}}YG.tween=G9}}
function UJ(C,H,e){var G9,YG;if(typeof e!=="function")throw Error();return function(){var tV=CP(this,C),vJ=tV.tween;if(vJ!==G9){YG=(G9=vJ).slice();vJ={name:H,value:e};for(var jo=0,Oo=YG.length;jo<Oo;++jo)if(YG[jo].name===H){YG[jo]=vJ;break}jo===Oo&&YG.push(vJ)}tV.tween=YG}}
function fW(C,H,e){var G9=C._id;C.each(function(){var YG=CP(this,G9);(YG.value||(YG.value={}))[H]=e.apply(this,arguments)});
return function(YG){return lq(YG,G9).value[H]}}
function Na(C,H){var e;return(typeof H==="number"?TI:H instanceof dK?v82:(e=dK(H))?(H=e,v82):$3)(C,H)}
function Om(C){return function(){this.removeAttribute(C)}}
function Fmv(C){return function(){this.removeAttributeNS(C.space,C.local)}}
function QmG(C,H,e){var G9,YG;return function(){var tV=this.getAttribute(C);return tV===e?null:tV===G9?YG:YG=H(G9=tV,e)}}
function sk(C,H,e){var G9,YG;return function(){var tV=this.getAttributeNS(C.space,C.local);return tV===e?null:tV===G9?YG:YG=H(G9=tV,e)}}
function aCf(C,H,e){var G9,YG,tV;return function(){var vJ=e(this);if(vJ==null)return void this.removeAttribute(C);var jo=this.getAttribute(C);return jo===vJ?null:jo===G9&&vJ===YG?tV:tV=H(G9=jo,YG=vJ)}}
function qv(C,H,e){var G9,YG,tV;return function(){var vJ=e(this);if(vJ==null)return void this.removeAttributeNS(C.space,C.local);var jo=this.getAttributeNS(C.space,C.local);return jo===vJ?null:jo===G9&&vJ===YG?tV:tV=H(G9=jo,YG=vJ)}}
function Ek(C,H){function e(){var G9=this,YG=H.apply(G9,arguments);return YG&&function(tV){G9.setAttributeNS(C.space,C.local,YG(tV))}}
e._value=H;return e}
function ozG(C,H){function e(){var G9=this,YG=H.apply(G9,arguments);return YG&&function(tV){G9.setAttribute(C,YG(tV))}}
e._value=H;return e}
function GyP(C,H){return function(){D6(this,C).delay=+H.apply(this,arguments)}}
function Kqz(C,H){return H=+H,function(){D6(this,C).delay=H}}
function Wqq(C,H){return function(){CP(this,C).duration=+H.apply(this,arguments)}}
function Lqs(C,H){return H=+H,function(){CP(this,C).duration=H}}
function AeP(C,H){if(typeof H!=="function")throw Error();return function(){CP(this,C).ease=H}}
function wj6(C){return(C+"").trim().split(/^|\s+/).every(function(H){var e=H.indexOf(".");e>=0&&(H=H.slice(0,e));return!H||H==="start"})}
function gm5(C,H,e){var G9,YG,tV=wj6(H)?D6:CP;return function(){var vJ=tV(this,C),jo=vJ.on;if(jo!==G9)(YG=(G9=jo).copy()).on(H,e);vJ.on=YG}}
function O4s(C){return function(){var H=this.parentNode,e;for(e in this.__transition)if(+e!==C)return;H&&H.removeChild(this)}}
function ceG(C,H){var e,G9,YG;return function(){var tV=JV(this,C),vJ=(this.style.removeProperty(C),JV(this,C));return tV===vJ?null:tV===e&&vJ===G9?YG:YG=H(e=tV,G9=vJ)}}
function YP6(C){return function(){this.style.removeProperty(C)}}
function reD(C,H,e){var G9,YG;return function(){var tV=JV(this,C);return tV===e?null:tV===G9?YG:YG=H(G9=tV,e)}}
function up5(C,H,e){var G9,YG,tV;return function(){var vJ=JV(this,C),jo=e(this);jo==null&&(jo=(this.style.removeProperty(C),JV(this,C)));return vJ===jo?null:vJ===G9&&jo===YG?tV:tV=H(G9=vJ,YG=jo)}}
function hes(C,H,e){function G9(){var YG=this,tV=H.apply(YG,arguments);return tV&&function(vJ){YG.style.setProperty(C,tV(vJ),e)}}
G9._value=H;return G9}
function pju(C){return function(){this.textContent=C}}
function Je6(C){return function(){var H=C(this);this.textContent=H==null?"":H}}
function zt(C,H,e,G9){this._groups=C;this._parents=H;this._name=e;this._id=G9}
function juv(C){return{type:C}}
function kMG(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function nz9(){}
function $UB(C,H){var e=new nz9;if(C instanceof nz9)C.each(function(vJ,jo){e.set(jo,vJ)});
else if(Array.isArray(C)){var G9=-1,YG=C.length,tV;if(H==null)for(;++G9<YG;)e.set(G9,C[G9]);else for(;++G9<YG;)e.set(H(tV=C[G9],G9,C),tV)}else if(C)for(G9 in C)e.set(G9,C[G9]);return e}
function bcv(){}
function sfk(C){return function(H){for(var e={},G9=0;G9<C.length;G9++)e[C[G9]]=H[G9]||"";return e}}
function NrE(C,H){var e=sfk(C);return function(G9,YG){return H(e(G9),YG,C)}}
function DeG(C){var H=Object.create(null),e=[];C.forEach(function(G9){for(var YG in G9)YG in H||e.push(H[YG]=YG)});
return e}
function qxR(C){function H(vJ,jo){function Oo(){if(Ie)return Cnd;if(mK)return mK=!1,E84;var NF,OZ=aF,jD;if(vJ.charCodeAt(OZ)===34){for(;aF++<Yk&&vJ.charCodeAt(aF)!==34||vJ.charCodeAt(++aF)===34;);(NF=aF)>=Yk?Ie=!0:(jD=vJ.charCodeAt(aF++))===10?mK=!0:jD===13&&(mK=!0,vJ.charCodeAt(aF)===10&&++aF);return vJ.slice(OZ+1,NF-1).replace(/""/g,'"')}for(;aF<Yk;){if((jD=vJ.charCodeAt(NF=aF++))===10)mK=!0;else if(jD===13)mK=!0,vJ.charCodeAt(aF)===10&&++aF;else if(jD!==tV)continue;return vJ.slice(OZ,NF)}return Ie=
!0,vJ.slice(OZ,Yk)}
var W2=[],Yk=vJ.length,aF=0,mD=0,Pu,Ie=Yk<=0,mK=!1;vJ.charCodeAt(Yk-1)===10&&--Yk;for(vJ.charCodeAt(Yk-1)===13&&--Yk;(Pu=Oo())!==Cnd;){for(var d5=[];Pu!==E84&&Pu!==Cnd;)d5.push(Pu),Pu=Oo();jo&&(d5=jo(d5,mD++))==null||W2.push(d5)}return W2}
function e(vJ){return vJ.map(G9).join(C)}
function G9(vJ){return vJ==null?"":YG.test(vJ)?'"'+vJ.replace(/"/g,'""')+'"':vJ}
var YG=new RegExp('["'+C+"\n\r]"),tV=C.charCodeAt(0);return{parse:function(vJ,jo){var Oo,W2;vJ=H(vJ,function(Yk,aF){if(Oo)return Oo(Yk,aF-1);W2=Yk;Oo=jo?NrE(Yk,jo):sfk(Yk)});
vJ.columns=W2||[];return vJ},
parseRows:H,format:function(vJ,jo){jo==null&&(jo=DeG(vJ));return[jo.map(G9).join(C)].concat(vJ.map(function(Oo){return jo.map(function(W2){return G9(Oo[W2])}).join(C)})).join("\n")},
formatRows:function(vJ){return vJ.map(e).join("\n")}}}
function tLq(C){if(!C.ok)throw Error("De`"+C.status+"`"+C.statusText);return C.text()}
function HkF(C){return function(H,e,G9){arguments.length===2&&typeof e==="function"&&(G9=e,e=void 0);return fetch(H,e).then(tLq).then(function(YG){return C(YG,G9)})}}
function ITl(C,H,e,G9){if(isNaN(H)||isNaN(e))return C;var YG,tV=C._root;G9={data:G9};var vJ=C._x0,jo=C._y0,Oo=C._x1,W2=C._y1,Yk,aF,mD,Pu,Ie;if(!tV)return C._root=G9,C;for(;tV.length;)if((mD=H>=(Yk=(vJ+Oo)/2))?vJ=Yk:Oo=Yk,(Pu=e>=(aF=(jo+W2)/2))?jo=aF:W2=aF,YG=tV,!(tV=tV[Ie=Pu<<1|mD]))return YG[Ie]=G9,C;var mK=+C._x.call(null,tV.data);var d5=+C._y.call(null,tV.data);if(H===mK&&e===d5)return G9.next=tV,YG?YG[Ie]=G9:C._root=G9,C;do YG=YG?YG[Ie]=Array(4):C._root=Array(4),(mD=H>=(Yk=(vJ+Oo)/2))?vJ=Yk:Oo=
Yk,(Pu=e>=(aF=(jo+W2)/2))?jo=aF:W2=aF;while((Ie=Pu<<1|mD)===(mD=(d5>=aF)<<1|mK>=Yk));return YG[mD]=tV,YG[Ie]=G9,C}
function wF(C,H,e,G9,YG){this.node=C;this.x0=H;this.y0=e;this.x1=G9;this.y1=YG}
function Fq6(C){return C[0]}
function QXD(C){return C[1]}
function VBf(C,H,e,G9,YG,tV){this._x=C;this._y=H;this._x0=e;this._y0=G9;this._x1=YG;this._y1=tV;this._root=void 0}
function jfo(C){for(var H={data:C.data},e=H;C=C.next;)e=e.next={data:C.data};return H}
function vz6(C,H){if((H=(C=H?C.toExponential(H-1):C.toExponential()).indexOf("e"))<0)return null;var e=C.slice(0,H);return[e.length>1?e[0]+e.slice(2):e,+C.slice(H+1)]}
function aBD(C){return C=vz6(Math.abs(C)),C?C[1]:NaN}
function om6(C,H){return function(e,G9){for(var YG=e.length,tV=[],vJ=0,jo=C[0],Oo=0;YG>0&&jo>0;){Oo+jo+1>G9&&(jo=Math.max(1,G9-Oo));tV.push(e.substring(YG-=jo,YG+jo));if((Oo+=jo+1)>G9)break;jo=C[vJ=(vJ+1)%C.length]}return tV.reverse().join(H)}}
function nmE(C){return function(H){return H.replace(/[0-9]/g,function(e){return C[+e]})}}
function Z9v(C){return new dSs(C)}
function dSs(C){if(!(H=b4P.exec(C)))throw Error("Ee`"+C);var H;this.fill=H[1]||" ";this.align=H[2]||">";this.sign=H[3]||"-";this.symbol=H[4]||"";this.zero=!!H[5];this.width=H[6]&&+H[6];this.comma=!!H[7];this.precision=H[8]&&+H[8].slice(1);this.trim=!!H[9];this.type=H[10]||""}
function kl4(C,H){H=vz6(C,H);if(!H)return C+"";C=H[0];H=H[1];return H<0?"0."+Array(-H).join("0")+C:C.length>H+1?C.slice(0,H+1)+"."+C.slice(H+1):C+Array(H-C.length+2).join("0")}
function CCB(C){return C}
function vmD(C){function H(jo){function Oo(At){var jr=jD,G7=Fk,vN,JC;if(OZ==="c")G7=c4(At)+G7,At="";else{At=+At;var yi=At<0;At=c4(Math.abs(At),d5);if(NF){var gs=At.length,Aa=1,DC=-1;a:for(;Aa<gs;++Aa)switch(At[Aa]){case ".":DC=vN=Aa;break;case "0":DC===0&&(DC=Aa);vN=Aa;break;default:if(!+At[Aa])break a;DC>0&&(DC=0)}At=DC>0?At.slice(0,DC)+At.slice(vN+1):At}yi&&+At===0&&(yi=!1);jr=(yi?aF==="("?aF:"-":aF==="-"||aF==="("?"":aF)+jr;G7=(OZ==="s"?Vx4[8+Zk4/3]:"")+G7+(yi&&aF==="("?")":"");if(sR)for(yi=-1,
vN=At.length;++yi<vN;)if(JC=At.charCodeAt(yi),48>JC||JC>57){G7=(JC===46?YG+At.slice(yi+1):At.slice(yi))+G7;At=At.slice(0,yi);break}}mK&&!Pu&&(At=e(At,Infinity));JC=jr.length+At.length+G7.length;yi=JC<Ie?Array(Ie-JC+1).join(W2):"";mK&&Pu&&(At=e(yi+At,yi.length?Ie-G7.length:Infinity),yi="");switch(Yk){case "<":At=jr+At+G7+yi;break;case "=":At=jr+yi+At+G7;break;case "^":At=yi.slice(0,JC=yi.length>>1)+jr+At+G7+yi.slice(JC);break;default:At=yi+jr+At+G7}return tV(At)}
jo=Z9v(jo);var W2=jo.fill,Yk=jo.align,aF=jo.sign,mD=jo.symbol,Pu=jo.zero,Ie=jo.width,mK=jo.comma,d5=jo.precision,NF=jo.trim,OZ=jo.type;OZ==="n"?(mK=!0,OZ="g"):dUK[OZ]||(d5==null&&(d5=12),NF=!0,OZ="g");if(Pu||W2==="0"&&Yk==="=")Pu=!0,W2="0",Yk="=";var jD=mD==="$"?G9[0]:mD==="#"&&/[boxX]/.test(OZ)?"0"+OZ.toLowerCase():"",Fk=mD==="$"?G9[1]:/[%p]/.test(OZ)?vJ:"",c4=dUK[OZ],sR=/[defgprs%]/.test(OZ);d5=d5==null?6:/[gprs]/.test(OZ)?Math.max(1,Math.min(21,d5)):Math.max(0,Math.min(20,d5));Oo.toString=function(){return jo+
""};
return Oo}
var e=C.grouping&&C.thousands?om6(C.grouping,C.thousands):CCB,G9=C.currency,YG=C.decimal,tV=C.numerals?nmE(C.numerals):CCB,vJ=C.percent||"%";return{format:H,formatPrefix:function(jo,Oo){var W2=H((jo=Z9v(jo),jo.type="f",jo));jo=Math.max(-8,Math.min(8,Math.floor(aBD(Oo)/3)))*3;var Yk=Math.pow(10,-jo),aF=Vx4[8+jo/3];return function(mD){return W2(Yk*mD)+aF}}}}
function pg(){this.reset()}
function PCk(C,H,e){var G9=C.s=H+e,YG=G9-H;C.t=H-(G9-YG)+(e-YG)}
function $FG(C){return C>1?Dk:C<-1?-Dk:Math.asin(C)}
function $eW(){}
function yrR(C){var H=C[0];C=C[1];var e=tX(C);return[e*tX(H),e*xt(H),xt(C)]}
function ep2(C,H){return[C[1]*H[2]-C[2]*H[1],C[2]*H[0]-C[0]*H[2],C[0]*H[1]-C[1]*H[0]]}
function fTl(C){var H=sm6(C[0]*C[0]+C[1]*C[1]+C[2]*C[2]);C[0]/=H;C[1]/=H;C[2]/=H}
function sXO(){var C=[],H;return{point:function(e,G9){H.push([e,G9])},
lineStart:function(){C.push(H=[])},
lineEnd:$eW,rejoin:function(){C.length>1&&C.push(C.pop().concat(C.shift()))},
result:function(){var e=C;C=[];H=null;return e}}}
function qrd(C,H,e,G9){this.x=C;this.z=H;this.o=e;this.e=G9;this.v=!1;this.n=this.p=null}
function qP6(C,H,e,G9,YG){var tV=[],vJ=[];C.forEach(function(aF){if(!((mD=aF.length-1)<=0)){var mD,Pu=aF[0],Ie=aF[mD],mK=Pu;if(lp(mK[0]-Ie[0])<1E-6&&lp(mK[1]-Ie[1])<1E-6){YG.lineStart();for(jo=0;jo<mD;++jo)YG.point((Pu=aF[jo])[0],Pu[1]);YG.lineEnd()}else tV.push(mD=new qrd(Pu,aF,null,!0)),vJ.push(mD.o=new qrd(Pu,null,mD,!1)),tV.push(mD=new qrd(Ie,aF,null,!1)),vJ.push(mD.o=new qrd(Ie,null,mD,!0))}});
if(tV.length){vJ.sort(H);xUX(tV);xUX(vJ);var jo=0;for(C=vJ.length;jo<C;++jo)vJ[jo].e=e=!e;e=tV[0];for(var Oo;;){for(var W2=e,Yk=!0;W2.v;)if((W2=W2.n)===e)return;H=W2.z;YG.lineStart();do{W2.v=W2.o.v=!0;if(W2.e){if(Yk)for(jo=0,C=H.length;jo<C;++jo)YG.point((Oo=H[jo])[0],Oo[1]);else G9(W2.x,W2.n.x,1,YG);W2=W2.n}else{if(Yk)for(H=W2.p.z,jo=H.length-1;jo>=0;--jo)YG.point((Oo=H[jo])[0],Oo[1]);else G9(W2.x,W2.p.x,-1,YG);W2=W2.p}W2=W2.o;H=W2.z;Yk=!Yk}while(!W2.v);YG.lineEnd()}}}
function xUX(C){if(H=C.length){for(var H,e=0,G9=C[0],YG;++e<H;)G9.n=YG=C[e],YG.p=G9,G9=YG;G9.n=YG=C[0];YG.p=G9}}
function Emq(C){return C.length>1}
function H4P(C,H){return((C=C.x)[0]<0?C[1]-Dk-1E-6:Dk-C[1])-((H=H.x)[0]<0?H[1]-Dk-1E-6:Dk-H[1])}
function PnF(){}
function Xxl(C){return function(H,e){var G9=tX(H),YG=tX(e);G9=C(G9*YG);return[G9*YG*xt(H),G9*xt(e)]}}
function HI(C){return function(H,e){var G9=sm6(H*H+e*e),YG=C(G9),tV=xt(YG);YG=tX(YG);return[SxG(H*tV,G9*YG),$FG(G9&&e*tV/G9)]}}
function IB6(C){var H=0,e=C.children,G9=e&&e.length;if(G9)for(;--G9>=0;)H+=e[G9].value;else H=1;C.value=H}
function Rp0(C,H){var e=new IJ(C);C=+C.value&&(e.value=C.value);var G9,YG=[e],tV,vJ,jo,Oo;for(H==null&&(H=jXs);G9=YG.pop();)if(C&&(G9.value=+G9.data.value),(vJ=H(G9.data))&&(Oo=vJ.length))for(G9.children=Array(Oo),jo=Oo-1;jo>=0;--jo)YG.push(tV=G9.children[jo]=new IJ(vJ[jo])),tV.parent=G9,tV.depth=G9.depth+1;return e.eachBefore(kyW)}
function jXs(C){return C.children}
function CcE(C){C.data=C.data.data}
function kyW(C){var H=0;do C.height=H;while((C=C.parent)&&C.height<++H)}
function IJ(C){this.data=C;this.depth=this.height=0;this.parent=null}
function kT(C,H,e,G9){function YG(tV){return C(tV=new Date(+tV)),tV}
YG.floor=YG;YG.ceil=function(tV){return C(tV=new Date(tV-1)),H(tV,1),C(tV),tV};
YG.round=function(tV){var vJ=YG(tV),jo=YG.ceil(tV);return tV-vJ<jo-tV?vJ:jo};
YG.offset=function(tV,vJ){return H(tV=new Date(+tV),vJ==null?1:Math.floor(vJ)),tV};
YG.range=function(tV,vJ,jo){var Oo=[],W2;tV=YG.ceil(tV);jo=jo==null?1:Math.floor(jo);if(!(tV<vJ&&jo>0))return Oo;do Oo.push(W2=new Date(+tV)),H(tV,jo),C(tV);while(W2<tV&&tV<vJ);return Oo};
YG.filter=function(tV){return kT(function(vJ){if(vJ>=vJ)for(;C(vJ),!tV(vJ);)vJ.setTime(vJ-1)},function(vJ,jo){if(vJ>=vJ)if(jo<0)for(;++jo<=0;)for(;H(vJ,-1),!tV(vJ););
else for(;--jo>=0;)for(;H(vJ,1),!tV(vJ););})};
e&&(YG.count=function(tV,vJ){ySP.setTime(+tV);ews.setTime(+vJ);C(ySP);C(ews);return Math.floor(e(ySP,ews))},YG.every=function(tV){tV=Math.floor(tV);
return isFinite(tV)&&tV>0?tV>1?YG.filter(G9?function(vJ){return G9(vJ)%tV===0}:function(vJ){return YG.count(0,vJ)%tV===0}):YG:null});
return YG}
function cc(C){return kT(function(H){H.setDate(H.getDate()-(H.getDay()+7-C)%7);H.setHours(0,0,0,0)},function(H,e){H.setDate(H.getDate()+e*7)},function(H,e){return(e-H-(e.getTimezoneOffset()-H.getTimezoneOffset())*6E4)/6048E5})}
function Yf(C){return kT(function(H){H.setUTCDate(H.getUTCDate()-(H.getUTCDay()+7-C)%7);H.setUTCHours(0,0,0,0)},function(H,e){H.setUTCDate(H.getUTCDate()+e*7)},function(H,e){return(e-H)/6048E5})}
function VL6(C){if(0<=C.y&&C.y<100){var H=new Date(-1,C.m,C.d,C.H,C.M,C.S,C.L);H.setFullYear(C.y);return H}return new Date(C.y,C.m,C.d,C.H,C.M,C.S,C.L)}
function EzV(C){if(0<=C.y&&C.y<100){var H=new Date(Date.UTC(-1,C.m,C.d,C.H,C.M,C.S,C.L));H.setUTCFullYear(C.y);return H}return new Date(Date.UTC(C.y,C.m,C.d,C.H,C.M,C.S,C.L))}
function j7(C){return{y:C,m:0,d:1,H:0,M:0,S:0,L:0}}
function Z4q(C){function H(G7,vN){return function(JC){var yi=[],gs=-1,Aa=0,DC=G7.length,HO,UY;for(JC instanceof Date||(JC=new Date(+JC));++gs<DC;)if(G7.charCodeAt(gs)===37){yi.push(G7.slice(Aa,gs));(Aa=UU4[HO=G7.charAt(++gs)])!=null?HO=G7.charAt(++gs):Aa=HO==="e"?" ":"0";if(UY=vN[HO])HO=UY(JC,Aa);yi.push(HO);Aa=gs+1}yi.push(G7.slice(Aa,gs));return yi.join("")}}
function e(G7,vN){return function(JC){var yi=j7(1900);if(G9(yi,G7,JC,0)!=JC.length)return null;if("Q"in yi)return new Date(yi.Q);"p"in yi&&(yi.H=yi.H%12+yi.p*12);if("V"in yi){if(yi.V<1||yi.V>53)return null;"w"in yi||(yi.w=1);if("Z"in yi){JC=EzV(j7(yi.y));var gs=JC.getUTCDay();JC=gs>4||gs===0?fnf.ceil(JC):fnf(JC);JC=zpi.offset(JC,(yi.V-1)*7);yi.y=JC.getUTCFullYear();yi.m=JC.getUTCMonth();yi.d=JC.getUTCDate()+(yi.w+6)%7}else JC=vN(j7(yi.y)),gs=JC.getDay(),JC=gs>4||gs===0?xSo.ceil(JC):xSo(JC),JC=lTX.offset(JC,
(yi.V-1)*7),yi.y=JC.getFullYear(),yi.m=JC.getMonth(),yi.d=JC.getDate()+(yi.w+6)%7}else if("W"in yi||"U"in yi)"w"in yi||(yi.w="u"in yi?yi.u%7:"W"in yi?1:0),gs="Z"in yi?EzV(j7(yi.y)).getUTCDay():vN(j7(yi.y)).getDay(),yi.m=0,yi.d="W"in yi?(yi.w+6)%7+yi.W*7-(gs+5)%7:yi.w+yi.U*7-(gs+6)%7;return"Z"in yi?(yi.H+=yi.Z/100|0,yi.M+=yi.Z%100,EzV(yi)):vN(yi)}}
function G9(G7,vN,JC,yi){for(var gs=0,Aa=vN.length,DC=JC.length,HO;gs<Aa;){if(yi>=DC)return-1;HO=vN.charCodeAt(gs++);if(HO===37){if(HO=vN.charAt(gs++),HO=jr[HO in UU4?vN.charAt(gs++):HO],!HO||(yi=HO(G7,JC,yi))<0)return-1}else if(HO!=JC.charCodeAt(yi++))return-1}return yi}
var YG=C.dateTime,tV=C.date,vJ=C.time,jo=C.periods,Oo=C.days,W2=C.shortDays,Yk=C.months,aF=C.shortMonths,mD=kx(jo),Pu=C0(jo),Ie=kx(Oo),mK=C0(Oo),d5=kx(W2),NF=C0(W2),OZ=kx(Yk),jD=C0(Yk),Fk=kx(aF),c4=C0(aF),sR={a:function(G7){return W2[G7.getDay()]},
A:function(G7){return Oo[G7.getDay()]},
b:function(G7){return aF[G7.getMonth()]},
B:function(G7){return Yk[G7.getMonth()]},
c:null,d:B0X,e:B0X,f:deq,H:Pcz,I:yeD,j:ees,L:MxC,m:fBW,M:xez,p:function(G7){return jo[+(G7.getHours()>=12)]},
Q:T00,s:moF,S:Xjq,u:SP6,U:ReE,V:Uei,w:zeq,W:lBz,x:null,X:null,y:BrE,Y:MLG,Z:TrO,"%":ifF},At={a:function(G7){return W2[G7.getUTCDay()]},
A:function(G7){return Oo[G7.getUTCDay()]},
b:function(G7){return aF[G7.getUTCMonth()]},
B:function(G7){return Yk[G7.getUTCMonth()]},
c:null,d:Gw0,e:Gw0,f:mMD,H:i1D,I:GQG,j:Ktq,L:KMo,m:Wtz,M:LtO,p:function(G7){return jo[+(G7.getUTCHours()>=12)]},
Q:T00,s:moF,S:A5q,u:wcs,U:gfu,V:O1D,w:c5u,W:Yms,x:null,X:null,y:r5q,Y:uKD,Z:hU6,"%":ifF},jr={a:function(G7,vN,JC){return(vN=d5.exec(vN.slice(JC)))?(G7.w=NF[vN[0].toLowerCase()],JC+vN[0].length):-1},
A:function(G7,vN,JC){return(vN=Ie.exec(vN.slice(JC)))?(G7.w=mK[vN[0].toLowerCase()],JC+vN[0].length):-1},
b:function(G7,vN,JC){return(vN=Fk.exec(vN.slice(JC)))?(G7.m=c4[vN[0].toLowerCase()],JC+vN[0].length):-1},
B:function(G7,vN,JC){return(vN=OZ.exec(vN.slice(JC)))?(G7.m=jD[vN[0].toLowerCase()],JC+vN[0].length):-1},
c:function(G7,vN,JC){return G9(G7,YG,vN,JC)},
d:WM2,e:WM2,f:pcz,H:LMo,I:LMo,j:J5G,L:NY5,m:DMz,M:tjW,p:function(G7,vN,JC){return(vN=mD.exec(vN.slice(JC)))?(G7.p=Pu[vN[0].toLowerCase()],JC+vN[0].length):-1},
Q:FtE,s:QyW,S:a25,u:ofD,U:nfq,V:b1G,w:vfP,W:$MG,x:function(G7,vN,JC){return G9(G7,tV,vN,JC)},
X:function(G7,vN,JC){return G9(G7,vJ,vN,JC)},
y:syz,Y:qmi,Z:EfO,"%":H1s};sR.x=H(tV,sR);sR.X=H(vJ,sR);sR.c=H(YG,sR);At.x=H(tV,At);At.X=H(vJ,At);At.c=H(YG,At);return{format:function(G7){var vN=H(G7,sR);vN.toString=function(){return G7};
return vN},
parse:function(G7){var vN=e(G7,VL6);vN.toString=function(){return G7};
return vN},
utcFormat:function(G7){var vN=H(G7,At);vN.toString=function(){return G7};
return vN},
utcParse:function(G7){var vN=e(G7,EzV);vN.toString=function(){return G7};
return vN}}}
function VW(C,H,e){var G9=C<0?"-":"";C=(G9?-C:C)+"";var YG=C.length;return G9+(YG<e?Array(e-YG+1).join(H)+C:C)}
function I2u(C){return C.replace(jyG,"\\$&")}
function kx(C){return new RegExp("^(?:"+C.map(I2u).join("|")+")","i")}
function C0(C){for(var H={},e=-1,G9=C.length;++e<G9;)H[C[e].toLowerCase()]=e;return H}
function vfP(C,H,e){return(H=ku.exec(H.slice(e,e+1)))?(C.w=+H[0],e+H[0].length):-1}
function ofD(C,H,e){return(H=ku.exec(H.slice(e,e+1)))?(C.u=+H[0],e+H[0].length):-1}
function nfq(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.U=+H[0],e+H[0].length):-1}
function b1G(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.V=+H[0],e+H[0].length):-1}
function $MG(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.W=+H[0],e+H[0].length):-1}
function qmi(C,H,e){return(H=ku.exec(H.slice(e,e+4)))?(C.y=+H[0],e+H[0].length):-1}
function syz(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.y=+H[0]+(+H[0]>68?1900:2E3),e+H[0].length):-1}
function EfO(C,H,e){return(H=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(H.slice(e,e+6)))?(C.Z=H[1]?0:-(H[2]+(H[3]||"00")),e+H[0].length):-1}
function DMz(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.m=H[0]-1,e+H[0].length):-1}
function WM2(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.d=+H[0],e+H[0].length):-1}
function J5G(C,H,e){return(H=ku.exec(H.slice(e,e+3)))?(C.m=0,C.d=+H[0],e+H[0].length):-1}
function LMo(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.H=+H[0],e+H[0].length):-1}
function tjW(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.M=+H[0],e+H[0].length):-1}
function a25(C,H,e){return(H=ku.exec(H.slice(e,e+2)))?(C.S=+H[0],e+H[0].length):-1}
function NY5(C,H,e){return(H=ku.exec(H.slice(e,e+3)))?(C.L=+H[0],e+H[0].length):-1}
function pcz(C,H,e){return(H=ku.exec(H.slice(e,e+6)))?(C.L=Math.floor(H[0]/1E3),e+H[0].length):-1}
function H1s(C,H,e){return(C=kQO.exec(H.slice(e,e+1)))?e+C[0].length:-1}
function FtE(C,H,e){return(H=ku.exec(H.slice(e)))?(C.Q=+H[0],e+H[0].length):-1}
function QyW(C,H,e){return(H=ku.exec(H.slice(e)))?(C.Q=+H[0]*1E3,e+H[0].length):-1}
function B0X(C,H){return VW(C.getDate(),H,2)}
function Pcz(C,H){return VW(C.getHours(),H,2)}
function yeD(C,H){return VW(C.getHours()%12||12,H,2)}
function ees(C,H){return VW(1+lTX.count(Ej(C),C),H,3)}
function MxC(C,H){return VW(C.getMilliseconds(),H,3)}
function deq(C,H){return MxC(C,H)+"000"}
function fBW(C,H){return VW(C.getMonth()+1,H,2)}
function xez(C,H){return VW(C.getMinutes(),H,2)}
function Xjq(C,H){return VW(C.getSeconds(),H,2)}
function SP6(C){C=C.getDay();return C===0?7:C}
function ReE(C,H){return VW(CFu.count(Ej(C),C),H,2)}
function Uei(C,H){var e=C.getDay();C=e>=4||e===0?XTG(C):XTG.ceil(C);return VW(XTG.count(Ej(C),C)+(Ej(C).getDay()===4),H,2)}
function zeq(C){return C.getDay()}
function lBz(C,H){return VW(xSo.count(Ej(C),C),H,2)}
function BrE(C,H){return VW(C.getFullYear()%100,H,2)}
function MLG(C,H){return VW(C.getFullYear()%1E4,H,4)}
function TrO(C){C=C.getTimezoneOffset();return(C>0?"-":(C*=-1,"+"))+VW(C/60|0,"0",2)+VW(C%60,"0",2)}
function Gw0(C,H){return VW(C.getUTCDate(),H,2)}
function i1D(C,H){return VW(C.getUTCHours(),H,2)}
function GQG(C,H){return VW(C.getUTCHours()%12||12,H,2)}
function Ktq(C,H){return VW(1+zpi.count(HD(C),C),H,3)}
function KMo(C,H){return VW(C.getUTCMilliseconds(),H,3)}
function mMD(C,H){return KMo(C,H)+"000"}
function Wtz(C,H){return VW(C.getUTCMonth()+1,H,2)}
function LtO(C,H){return VW(C.getUTCMinutes(),H,2)}
function A5q(C,H){return VW(C.getUTCSeconds(),H,2)}
function wcs(C){C=C.getUTCDay();return C===0?7:C}
function gfu(C,H){return VW(VjP.count(HD(C),C),H,2)}
function O1D(C,H){var e=C.getUTCDay();C=e>=4||e===0?SWP(C):SWP.ceil(C);return VW(SWP.count(HD(C),C)+(HD(C).getUTCDay()===4),H,2)}
function c5u(C){return C.getUTCDay()}
function Yms(C,H){return VW(fnf.count(HD(C),C),H,2)}
function r5q(C,H){return VW(C.getUTCFullYear()%100,H,2)}
function uKD(C,H){return VW(C.getUTCFullYear()%1E4,H,4)}
function hU6(){return"+0000"}
function ifF(){return"%"}
function T00(C){return+C}
function moF(C){return Math.floor(+C/1E3)}
function n6(C){for(var H=C.length/6|0,e=Array(H),G9=0;G9<H;)e[G9]="#"+C.slice(G9*6,++G9*6);return e}
function O8(C){return Z1i(C[C.length-1])}
function Hcs(C){var H=C.length;return function(e){return C[Math.max(0,Math.min(H-1,Math.floor(e*H)))]}}
function AGR(C){this._context=C}
function wrC(C){this._curve=C}
function gUK(C,H,e){var G9=C._x1-C._x0;H-=C._x1;var YG=(C._y1-C._y0)/(G9||H<0&&-0);C=(e-C._y1)/(H||G9<0&&-0);return((YG<0?-1:1)+(C<0?-1:1))*Math.min(Math.abs(YG),Math.abs(C),.5*Math.abs((YG*H+C*G9)/(G9+H)))||0}
function Ofl(C,H){var e=C._x1-C._x0;return e?(3*(C._y1-C._y0)/e-H)/2:H}
function Rwd(C,H,e){var G9=C._x0,YG=C._x1,tV=C._y1,vJ=(YG-G9)/3;C._context.bezierCurveTo(G9+vJ,C._y0+vJ*H,YG-vJ,tV-vJ*e,YG,tV)}
function USP(C){this._context=C}
function cGB(C){this._context=C}
function V0(C,H,e){this.k=C;this.x=H;this.y=e}
(function(C){C.length===1&&(C=G(C));return{left:function(H,e,G9,YG){G9==null&&(G9=0);YG==null&&(YG=H.length);for(;G9<YG;){var tV=G9+YG>>>1;C(H[tV],e)<0?G9=tV+1:YG=tV}return G9},
right:function(H,e,G9,YG){G9==null&&(G9=0);YG==null&&(YG=H.length);for(;G9<YG;){var tV=G9+YG>>>1;C(H[tV],e)>0?YG=tV:G9=tV+1}return G9}}})(m);
var eu5={value:function(){}};
W.prototype=K.prototype={constructor:W,on:function(C,H){var e=this._,G9=L(C+"",e),YG,tV=-1,vJ=G9.length;if(arguments.length<2)for(;++tV<vJ;){var jo;if(jo=YG=(C=G9[tV]).type){a:{jo=e[YG];for(var Oo=0,W2=jo.length;Oo<W2;++Oo)if((YG=jo[Oo]).name===C.name){YG=YG.value;break a}YG=void 0}jo=YG}if(jo)return YG}else{if(H!=null&&typeof H!=="function")throw Error("Fe`"+H);for(;++tV<vJ;)if(YG=(C=G9[tV]).type)e[YG]=A(e[YG],C.name,H);else if(H==null)for(YG in e)e[YG]=A(e[YG],C.name,null);return this}},
copy:function(){var C={},H=this._,e;for(e in H)C[e]=H[e].slice();return new W(C)},
call:function(C,H){if((YG=arguments.length-2)>0)for(var e=Array(YG),G9=0,YG,tV;G9<YG;++G9)e[G9]=arguments[G9+2];if(!this._.hasOwnProperty(C))throw Error("ze`"+C);tV=this._[C];G9=0;for(YG=tV.length;G9<YG;++G9)tV[G9].value.apply(H,e)},
apply:function(C,H,e){if(!this._.hasOwnProperty(C))throw Error("ze`"+C);C=this._[C];for(var G9=0,YG=C.length;G9<YG;++G9)C[G9].value.apply(H,e)}};
var JX={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/"},Y9C=function(C){return function(){return this.matches(C)}};
if(typeof document!=="undefined"){var Zc=document.documentElement;if(!Zc.matches){var dMP=Zc.webkitMatchesSelector||Zc.msMatchesSelector||Zc.mozMatchesSelector||Zc.oMatchesSelector;Y9C=function(C){return function(){return dMP.call(this,C)}}}}var rGk=Y9C;
t.prototype={constructor:t,appendChild:function(C){return this._parent.insertBefore(C,this._next)},
insertBefore:function(C,H){return this._parent.insertBefore(C,H)},
querySelector:function(C){return this._parent.querySelector(C)},
querySelectorAll:function(C){return this._parent.querySelectorAll(C)}};
var N0C={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(N0C={mouseenter:"mouseover",mouseleave:"mouseout"}));var faD=[null];S0.prototype=zG.prototype={constructor:S0,select:function(C){typeof C!=="function"&&(C=N(C));for(var H=this._groups,e=H.length,G9=Array(e),YG=0;YG<e;++YG)for(var tV=H[YG],vJ=tV.length,jo=G9[YG]=Array(vJ),Oo,W2,Yk=0;Yk<vJ;++Yk)(Oo=tV[Yk])&&(W2=C.call(Oo,Oo.__data__,Yk,tV))&&("__data__"in Oo&&(W2.__data__=Oo.__data__),jo[Yk]=W2);return new S0(G9,
this._parents)},
filter:function(C){typeof C!=="function"&&(C=rGk(C));for(var H=this._groups,e=H.length,G9=Array(e),YG=0;YG<e;++YG)for(var tV=H[YG],vJ=tV.length,jo=G9[YG]=[],Oo,W2=0;W2<vJ;++W2)(Oo=tV[W2])&&C.call(Oo,Oo.__data__,W2,tV)&&jo.push(Oo);return new S0(G9,this._parents)},
data:function(C,H){if(!C)return Pu=Array(this.size()),W2=-1,this.each(function(OZ){Pu[++W2]=OZ}),Pu;
var e=H?I:v,G9=this._parents,YG=this._groups;typeof C!=="function"&&(C=a(C));for(var tV=YG.length,vJ=Array(tV),jo=Array(tV),Oo=Array(tV),W2=0;W2<tV;++W2){var Yk=G9[W2],aF=YG[W2],mD=aF.length,Pu=C.call(Yk,Yk&&Yk.__data__,W2,G9),Ie=Pu.length,mK=jo[W2]=Array(Ie),d5=vJ[W2]=Array(Ie);mD=Oo[W2]=Array(mD);e(Yk,aF,mK,d5,mD,Pu,H);aF=Yk=0;for(var NF;Yk<Ie;++Yk)if(mD=mK[Yk]){for(Yk>=aF&&(aF=Yk+1);!(NF=d5[aF])&&++aF<Ie;);mD._next=NF||null}}vJ=new S0(vJ,G9);vJ._enter=jo;vJ._exit=Oo;return vJ},
enter:function(){return new S0(this._enter||this._groups.map(D),this._parents)},
exit:function(){return new S0(this._exit||this._groups.map(D),this._parents)},
merge:function(C){var H=this._groups;C=C._groups;for(var e=H.length,G9=Math.min(e,C.length),YG=Array(e),tV=0;tV<G9;++tV)for(var vJ=H[tV],jo=C[tV],Oo=vJ.length,W2=YG[tV]=Array(Oo),Yk,aF=0;aF<Oo;++aF)if(Yk=vJ[aF]||jo[aF])W2[aF]=Yk;for(;tV<e;++tV)YG[tV]=H[tV];return new S0(YG,this._parents)},
order:function(){for(var C=this._groups,H=-1,e=C.length;++H<e;)for(var G9=C[H],YG=G9.length-1,tV=G9[YG],vJ;--YG>=0;)if(vJ=G9[YG])tV&&tV!==vJ.nextSibling&&tV.parentNode.insertBefore(vJ,tV),tV=vJ;return this},
sort:function(C){function H(aF,mD){return aF&&mD?C(aF.__data__,mD.__data__):!aF-!mD}
C||(C=Z);for(var e=this._groups,G9=e.length,YG=Array(G9),tV=0;tV<G9;++tV){for(var vJ=e[tV],jo=vJ.length,Oo=YG[tV]=Array(jo),W2,Yk=0;Yk<jo;++Yk)if(W2=vJ[Yk])Oo[Yk]=W2;Oo.sort(H)}return(new S0(YG,this._parents)).order()},
call:function(){var C=arguments[0];arguments[0]=this;C.apply(null,arguments);return this},
nodes:function(){var C=Array(this.size()),H=-1;this.each(function(){C[++H]=this});
return C},
node:function(){for(var C=this._groups,H=0,e=C.length;H<e;++H)for(var G9=C[H],YG=0,tV=G9.length;YG<tV;++YG){var vJ=G9[YG];if(vJ)return vJ}return null},
size:function(){var C=0;this.each(function(){++C});
return C},
empty:function(){return!this.node()},
each:function(C){for(var H=this._groups,e=0,G9=H.length;e<G9;++e)for(var YG=H[e],tV=0,vJ=YG.length,jo;tV<vJ;++tV)(jo=YG[tV])&&C.call(jo,jo.__data__,tV,YG);return this},
attr:function(C,H){var e=O(C);if(arguments.length<2){var G9=this.node();return e.local?G9.getAttributeNS(e.space,e.local):G9.getAttribute(e)}return this.each((H==null?e.local?z:k:typeof H==="function"?e.local?l:U:e.local?f:X)(e,H))},
style:function(C,H,e){return arguments.length>1?this.each((H==null?Ls:typeof H==="function"?Qf:gd)(C,H,e==null?"":e)):JV(this.node(),C)},
property:function(C,H){return arguments.length>1?this.each((H==null?DF:typeof H==="function"?eo:kG)(C,H)):this.node()[C]},
text:function(C){return arguments.length?this.each(C==null?xG:(typeof C==="function"?rK:Ji)(C)):this.node().textContent},
html:function(C){return arguments.length?this.each(C==null?So:(typeof C==="function"?bS:ti)(C)):this.node().innerHTML},
append:function(C){var H=typeof C==="function"?C:h(C);return this.select(function(){return this.appendChild(H.apply(this,arguments))})},
insert:function(C,H){var e=typeof C==="function"?C:h(C),G9=H==null?NG:typeof H==="function"?H:N(H);return this.select(function(){return this.insertBefore(e.apply(this,arguments),G9.apply(this,arguments)||null)})},
remove:function(){return this.each(EO)},
clone:function(C){return this.select(C?ps:gz)},
datum:function(C){return arguments.length?this.property("__data__",C):this.node().__data__},
on:function(C,H,e){var G9=lS(C+""),YG=G9.length,tV;if(arguments.length<2){var vJ=this.node().__on;if(vJ)for(var jo=0,Oo=vJ.length,W2;jo<Oo;++jo){var Yk=0;for(W2=vJ[jo];Yk<YG;++Yk)if((tV=G9[Yk]).type===W2.type&&tV.name===W2.name)return W2.value}}else{vJ=H?iq:Eo;e==null&&(e=!1);for(Yk=0;Yk<YG;++Yk)this.each(vJ(G9[Yk],H,e));return this}},
dispatch:function(C,H){return this.each((typeof H==="function"?JD:T4)(C,H))}};
var xoD=0;c2.prototype=function(){return new c2}.prototype={constructor:c2,
get:function(C){for(var H=this._;!(H in C);)if(!(C=C.parentNode))return;return C[H]},
set:function(C,H){return C[this._]=H},
remove:function(C){return this._ in C&&delete C[this._]},
toString:function(){return this._}};
var ID=1/.7,Xrs=/^#([0-9a-f]{3})$/,S9G=/^#([0-9a-f]{6})$/,RuP=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Uo6=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),zuq=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),laD=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*\\)$"),
BIi=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),MS6=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*\\)$"),DUi={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};
N6(Uo,dK,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
N6(ig,Qi,pl(Uo,{brighter:function(C){C=C==null?ID:Math.pow(ID,C);return new ig(this.r*C,this.g*C,this.b*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new ig(this.r*C,this.g*C,this.b*C,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"#"+gx(this.r)+gx(this.g)+gx(this.b)},
toString:function(){var C=this.opacity;C=isNaN(C)?1:Math.max(0,Math.min(1,C));return(C===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))+(C===1?")":", "+C+")")}}));
N6(X6,Gf,pl(Uo,{brighter:function(C){C=C==null?ID:Math.pow(ID,C);return new X6(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new X6(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=this.h%360+(this.h<0)*360,H=this.l,e=H+(H<.5?H:1-H)*(isNaN(C)||isNaN(this.s)?0:this.s);H=2*H-e;return new ig(ht(C>=240?C-240:C+120,H,e),ht(C,H,e),ht(C<120?C+240:C-120,H,e),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 txX=Math.PI/180,aTk=180/Math.PI,QfP=4/29,sj=6/29,FB0=3*sj*sj,TIE=sj*sj*sj;N6(sd,function(C,H,e,G9){return arguments.length===1?Td(C):new sd(C,H,e,G9==null?1:G9)},pl(Uo,{brighter:function(C){return new sd(this.l+18*(C==null?1:C),this.a,this.b,this.opacity)},
darker:function(C){return new sd(this.l-18*(C==null?1:C),this.a,this.b,this.opacity)},
rgb:function(){var C=(this.l+16)/116,H=isNaN(this.a)?C:C+this.a/500,e=isNaN(this.b)?C:C-this.b/200;H=.96422*l6(H);C=1*l6(C);e=.82521*l6(e);return new ig(QX(3.1338561*H-1.6168667*C-.4906146*e),QX(-.9787684*H+1.9161415*C+.033454*e),QX(.0719453*H-.2289914*C+1.4052427*e),this.opacity)}}));
N6($k,Is,pl(Uo,{brighter:function(C){return new $k(this.h,this.c,this.l+18*(C==null?1:C),this.opacity)},
darker:function(C){return new $k(this.h,this.c,this.l-18*(C==null?1:C),this.opacity)},
rgb:function(){return Td(this).rgb()}}));
var o8S=1.78277*-.29227-.1347134789;N6(XE,v2,pl(Uo,{brighter:function(C){C=C==null?ID:Math.pow(ID,C);return new XE(this.h,this.s,this.l*C,this.opacity)},
darker:function(C){C=C==null?.7:Math.pow(.7,C);return new XE(this.h,this.s,this.l*C,this.opacity)},
rgb:function(){var C=isNaN(this.h)?0:(this.h+120)*txX,H=+this.l,e=isNaN(this.s)?0:this.s*H*(1-H),G9=Math.cos(C);C=Math.sin(C);return new ig(255*(H+e*(-.14861*G9+1.78277*C)),255*(H+e*(-.29227*G9+-.90649*C)),255*(H+1.97294*G9*e),this.opacity)}}));
var v82=function e(H){function G9(tV,vJ){var jo=YG((tV=Qi(tV)).r,(vJ=Qi(vJ)).r),Oo=YG(tV.g,vJ.g),W2=YG(tV.b,vJ.b),Yk=KL(tV.opacity,vJ.opacity);return function(aF){tV.r=jo(aF);tV.g=Oo(aF);tV.b=W2(aF);tV.opacity=Yk(aF);return tV+""}}
var YG=JI(H);G9.gamma=e;return G9}(1),Z1i=$S(function(H){var e=H.length-1;
return function(G9){var YG=G9<=0?G9=0:G9>=1?(G9=1,e-1):Math.floor(G9*e),tV=H[YG],vJ=H[YG+1];return Oe((G9-YG/e)*e,YG>0?H[YG-1]:2*tV-vJ,tV,vJ,YG<e-1?H[YG+2]:2*vJ-tV)}});
$S(function(H){var e=H.length;return function(G9){var YG=Math.floor(((G9%=1)<0?++G9:G9)*e);return Oe((G9-YG/e)*e,H[(YG+e-1)%e],H[YG%e],H[(YG+1)%e],H[(YG+2)%e])}});
var H9M=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,InM=new RegExp(H9M.source,"g"),n8k=180/Math.PI,zwG={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},dZ,lns,un0,ICP,PFE=vH(function(H){if(H==="none")return zwG;dZ||(dZ=document.createElement("DIV"),lns=document.documentElement,un0=document.defaultView);dZ.style.transform=H;H=un0.getComputedStyle(lns.appendChild(dZ),null).getPropertyValue("transform");lns.removeChild(dZ);H=H.slice(7,-1).split(",");return K$(+H[0],+H[1],+H[2],+H[3],
+H[4],+H[5])},"px, ","px)","deg)"),y5P=vH(function(H){if(H==null)return zwG;
ICP||(ICP=document.createElementNS("http://www.w3.org/2000/svg","g"));ICP.setAttribute("transform",H);if(!(H=ICP.transform.baseVal.consolidate()))return zwG;H=H.matrix;return K$(H.a,H.b,H.c,H.d,H.e,H.f)},", ",")",")");
b9(XO);b9(KL);RS(XO);RS(KL);b1(XO);var Btd=b1(KL),q4=0,b4=0,$x=0,tNf,vI,DF6=0,gY=0,NCs=0,n0=typeof performance==="object"&&performance.now?performance:Date,bki=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(H){setTimeout(H,17)};
RB.prototype=U1.prototype={constructor:RB,restart:function(H,e,G9){if(typeof H!=="function")throw new TypeError("Ge");G9=(G9==null?vL():+G9)+(e==null?0:+e);this._next||vI===this||(vI?vI._next=this:tNf=this,vI=this);this._call=H;this._time=G9;Ua()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Ua())}};
var meW=K("start","end","interrupt"),i4W=[],eUW=zG.prototype.constructor,huo=0,jY=zG.prototype;zt.prototype=function(H){return zG().transition(H)}.prototype={constructor:zt,
select:function(H){var e=this._name,G9=this._id;typeof H!=="function"&&(H=N(H));for(var YG=this._groups,tV=YG.length,vJ=Array(tV),jo=0;jo<tV;++jo)for(var Oo=YG[jo],W2=Oo.length,Yk=vJ[jo]=Array(W2),aF,mD,Pu=0;Pu<W2;++Pu)(aF=Oo[Pu])&&(mD=H.call(aF,aF.__data__,Pu,Oo))&&("__data__"in aF&&(mD.__data__=aF.__data__),Yk[Pu]=mD,iS(Yk[Pu],e,G9,Pu,Yk,lq(aF,G9)));return new zt(vJ,this._parents,e,G9)},
filter:function(H){typeof H!=="function"&&(H=rGk(H));for(var e=this._groups,G9=e.length,YG=Array(G9),tV=0;tV<G9;++tV)for(var vJ=e[tV],jo=vJ.length,Oo=YG[tV]=[],W2,Yk=0;Yk<jo;++Yk)(W2=vJ[Yk])&&H.call(W2,W2.__data__,Yk,vJ)&&Oo.push(W2);return new zt(YG,this._parents,this._name,this._id)},
merge:function(H){if(H._id!==this._id)throw Error();var e=this._groups;H=H._groups;for(var G9=e.length,YG=Math.min(G9,H.length),tV=Array(G9),vJ=0;vJ<YG;++vJ)for(var jo=e[vJ],Oo=H[vJ],W2=jo.length,Yk=tV[vJ]=Array(W2),aF,mD=0;mD<W2;++mD)if(aF=jo[mD]||Oo[mD])Yk[mD]=aF;for(;vJ<G9;++vJ)tV[vJ]=e[vJ];return new zt(tV,this._parents,this._name,this._id)},
selection:function(){return new eUW(this._groups,this._parents)},
transition:function(){for(var H=this._name,e=this._id,G9=++huo,YG=this._groups,tV=YG.length,vJ=0;vJ<tV;++vJ)for(var jo=YG[vJ],Oo=jo.length,W2,Yk=0;Yk<Oo;++Yk)if(W2=jo[Yk]){var aF=lq(W2,e);iS(W2,H,G9,Yk,jo,{time:aF.time+aF.delay+aF.duration,delay:0,duration:aF.duration,ease:aF.ease})}return new zt(YG,this._parents,H,G9)},
call:jY.call,nodes:jY.nodes,node:jY.node,size:jY.size,empty:jY.empty,each:jY.each,on:function(H,e){var G9=this._id;return arguments.length<2?lq(this.node(),G9).on.on(H):this.each(gm5(G9,H,e))},
attr:function(H,e){var G9=O(H),YG=G9==="transform"?y5P:Na;return this.attrTween(H,typeof e==="function"?(G9.local?qv:aCf)(G9,YG,fW(this,"attr."+H,e)):e==null?(G9.local?Fmv:Om)(G9):(G9.local?sk:QmG)(G9,YG,e+""))},
attrTween:function(H,e){var G9="attr."+H;if(arguments.length<2)return(G9=this.tween(G9))&&G9._value;if(e==null)return this.tween(G9,null);if(typeof e!=="function")throw Error();var YG=O(H);return this.tween(G9,(YG.local?Ek:ozG)(YG,e))},
style:function(H,e,G9){var YG=H==="transform"?PFE:Na;return e==null?this.styleTween(H,ceG(H,YG)).on("end.style."+H,YP6(H)):this.styleTween(H,typeof e==="function"?up5(H,YG,fW(this,"style."+H,e)):reD(H,YG,e+""),G9)},
styleTween:function(H,e,G9){var YG="style."+H;if(arguments.length<2)return(YG=this.tween(YG))&&YG._value;if(e==null)return this.tween(YG,null);if(typeof e!=="function")throw Error();return this.tween(YG,hes(H,e,G9==null?"":G9))},
text:function(H){return this.tween("text",typeof H==="function"?Je6(fW(this,"text",H)):pju(H==null?"":H+""))},
remove:function(){return this.on("end.remove",O4s(this._id))},
tween:function(H,e){var G9=this._id;if(arguments.length<2){G9=lq(this.node(),G9).tween;for(var YG=0,tV=G9.length,vJ;YG<tV;++YG)if((vJ=G9[YG]).name===H)return vJ.value;return null}return this.each((e==null?xy:UJ)(G9,H,e))},
delay:function(H){var e=this._id;return arguments.length?this.each((typeof H==="function"?GyP:Kqz)(e,H)):lq(this.node(),e).delay},
duration:function(H){var e=this._id;return arguments.length?this.each((typeof H==="function"?Wqq:Lqs)(e,H)):lq(this.node(),e).duration},
ease:function(H){var e=this._id;return arguments.length?this.each(AeP(e,H)):lq(this.node(),e).ease}};
var MBd={time:null,delay:0,duration:250,ease:function(H){return((H*=2)<=1?H*H*H:(H-=2)*H*H+2)/2}};
zG.prototype.transition=function(H){var e;if(H instanceof zt){var G9=H._id;H=H._name}else G9=++huo,(e=MBd).time=vL(),H=H==null?null:H+"";for(var YG=this._groups,tV=YG.length,vJ=0;vJ<tV;++vJ)for(var jo=YG[vJ],Oo=jo.length,W2,Yk=0;Yk<Oo;++Yk)if(W2=jo[Yk]){var aF=W2,mD=H,Pu=G9,Ie=Yk,mK=jo,d5;if(!(d5=e))a:{d5=void 0;for(var NF=G9;!(d5=W2.__transition)||!(d5=d5[NF]);)if(!(W2=W2.parentNode)){d5=(MBd.time=vL(),MBd);break a}}iS(aF,mD,Pu,Ie,mK,d5)}return new zt(YG,this._parents,H,G9)};
["e","w"].map(juv);["n","s"].map(juv);"n e s w nw ne se sw".split(" ").map(juv);kMG.prototype=function(){return new kMG}.prototype={constructor:kMG,
moveTo:function(H,e){this._+="M"+(this._x0=this._x1=+H)+","+(this._y0=this._y1=+e)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(H,e){this._+="L"+(this._x1=+H)+","+(this._y1=+e)},
bezierCurveTo:function(H,e,G9,YG,tV,vJ){this._+="C"+ +H+","+ +e+","+ +G9+","+ +YG+","+(this._x1=+tV)+","+(this._y1=+vJ)},
rect:function(H,e,G9,YG){this._+="M"+(this._x0=this._x1=+H)+","+(this._y0=this._y1=+e)+"h"+ +G9+"v"+ +YG+"h"+-G9+"Z"},
toString:function(){return this._}};
nz9.prototype=$UB.prototype={constructor:nz9,has:function(H){return" "+H in this},
get:function(H){return this[" "+H]},
set:function(H,e){this[" "+H]=e;return this},
remove:function(H){H=" "+H;return H in this&&delete this[H]},
clear:function(){for(var H in this)H[0]===" "&&delete this[H]},
keys:function(){var H=[],e;for(e in this)e[0]===" "&&H.push(e.slice(1));return H},
values:function(){var H=[],e;for(e in this)e[0]===" "&&H.push(this[e]);return H},
entries:function(){var H=[],e;for(e in this)e[0]===" "&&H.push({key:e.slice(1),value:this[e]});return H},
size:function(){var H=0,e;for(e in this)e[0]===" "&&++H;return H},
empty:function(){for(var H in this)if(H[0]===" ")return!1;return!0},
each:function(H){for(var e in this)e[0]===" "&&H(this[e],e.slice(1),this)}};
var rY=$UB.prototype;bcv.prototype=function(H,e){var G9=new bcv;if(H instanceof bcv)H.each(function(vJ){G9.add(vJ)});
else if(H){var YG=-1,tV=H.length;if(e==null)for(;++YG<tV;)G9.add(H[YG]);else for(;++YG<tV;)G9.add(e(H[YG],YG,H))}return G9}.prototype={constructor:bcv,
has:rY.has,add:function(H){this[" "+H]=H;return this},
remove:rY.remove,clear:rY.clear,values:rY.keys,size:rY.size,empty:rY.empty,each:rY.each};var E84={},Cnd={},f2i=qxR(",").parse,xMW=qxR("\t").parse;HkF(f2i);HkF(xMW);var gF=function(H,e,G9){e=new VBf(e==null?Fq6:e,G9==null?QXD:G9,NaN,NaN,NaN,NaN);return H==null?e:e.addAll(H)}.prototype=VBf.prototype;
gF.copy=function(){var H=new VBf(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,G9,YG;if(!e)return H;if(!e.length)return H._root=jfo(e),H;for(G9=[{source:e,target:H._root=Array(4)}];e=G9.pop();)for(var tV=0;tV<4;++tV)if(YG=e.source[tV])YG.length?G9.push({source:YG,target:e.target[tV]=Array(4)}):e.target[tV]=jfo(YG);return H};
gF.add=function(H){var e=+this._x.call(null,H),G9=+this._y.call(null,H);return ITl(this.cover(e,G9),e,G9,H)};
gF.addAll=function(H){var e,G9,YG=H.length,tV,vJ,jo=Array(YG),Oo=Array(YG),W2=Infinity,Yk=Infinity,aF=-Infinity,mD=-Infinity;for(G9=0;G9<YG;++G9)isNaN(tV=+this._x.call(null,e=H[G9]))||isNaN(vJ=+this._y.call(null,e))||(jo[G9]=tV,Oo[G9]=vJ,tV<W2&&(W2=tV),tV>aF&&(aF=tV),vJ<Yk&&(Yk=vJ),vJ>mD&&(mD=vJ));aF<W2&&(W2=this._x0,aF=this._x1);mD<Yk&&(Yk=this._y0,mD=this._y1);this.cover(W2,Yk).cover(aF,mD);for(G9=0;G9<YG;++G9)ITl(this,jo[G9],Oo[G9],H[G9]);return this};
gF.cover=function(H,e){if(isNaN(H=+H)||isNaN(e=+e))return this;var G9=this._x0,YG=this._y0,tV=this._x1,vJ=this._y1;if(isNaN(G9))tV=(G9=Math.floor(H))+1,vJ=(YG=Math.floor(e))+1;else if(G9>H||H>tV||YG>e||e>vJ){var jo=tV-G9,Oo=this._root,W2;switch(W2=(e<(YG+vJ)/2)<<1|H<(G9+tV)/2){case 0:do{var Yk=Array(4);Yk[W2]=Oo;Oo=Yk}while(jo*=2,tV=G9+jo,vJ=YG+jo,H>tV||e>vJ);break;case 1:do Yk=Array(4),Yk[W2]=Oo,Oo=Yk;while(jo*=2,G9=tV-jo,vJ=YG+jo,G9>H||e>vJ);break;case 2:do Yk=Array(4),Yk[W2]=Oo,Oo=Yk;while(jo*=
2,tV=G9+jo,YG=vJ-jo,H>tV||YG>e);break;case 3:do Yk=Array(4),Yk[W2]=Oo,Oo=Yk;while(jo*=2,G9=tV-jo,YG=vJ-jo,G9>H||YG>e)}this._root&&this._root.length&&(this._root=Oo)}else return this;this._x0=G9;this._y0=YG;this._x1=tV;this._y1=vJ;return this};
gF.data=function(){var H=[];this.visit(function(e){if(!e.length){do H.push(e.data);while(e=e.next)}});
return H};
gF.extent=function(H){return arguments.length?this.cover(+H[0][0],+H[0][1]).cover(+H[1][0],+H[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
gF.find=function(H,e,G9){var YG=this._x0,tV=this._y0,vJ,jo,Oo,W2,Yk=this._x1,aF=this._y1,mD=[],Pu=this._root,Ie;Pu&&mD.push(new wF(Pu,YG,tV,Yk,aF));G9==null?G9=Infinity:(YG=H-G9,tV=e-G9,Yk=H+G9,aF=e+G9,G9*=G9);for(;Ie=mD.pop();)if(!(!(Pu=Ie.node)||(vJ=Ie.x0)>Yk||(jo=Ie.y0)>aF||(Oo=Ie.x1)<YG||(W2=Ie.y1)<tV))if(Pu.length){Ie=(vJ+Oo)/2;var mK=(jo+W2)/2;mD.push(new wF(Pu[3],Ie,mK,Oo,W2),new wF(Pu[2],vJ,mK,Ie,W2),new wF(Pu[1],Ie,jo,Oo,mK),new wF(Pu[0],vJ,jo,Ie,mK));if(Pu=(e>=mK)<<1|H>=Ie)Ie=mD[mD.length-
1],mD[mD.length-1]=mD[mD.length-1-Pu],mD[mD.length-1-Pu]=Ie}else if(Ie=H-+this._x.call(null,Pu.data),mK=e-+this._y.call(null,Pu.data),Ie=Ie*Ie+mK*mK,Ie<G9){var d5=Math.sqrt(G9=Ie);YG=H-d5;tV=e-d5;Yk=H+d5;aF=e+d5;d5=Pu.data}return d5};
gF.remove=function(H){if(isNaN(W2=+this._x.call(null,H))||isNaN(Yk=+this._y.call(null,H)))return this;var e,G9=this._root,YG,tV=this._x0,vJ=this._y0,jo=this._x1,Oo=this._y1,W2,Yk,aF,mD,Pu,Ie,mK;if(!G9)return this;if(G9.length)for(;;){(Pu=W2>=(aF=(tV+jo)/2))?tV=aF:jo=aF;(Ie=Yk>=(mD=(vJ+Oo)/2))?vJ=mD:Oo=mD;if(!(e=G9,G9=G9[mK=Ie<<1|Pu]))return this;if(!G9.length)break;if(e[mK+1&3]||e[mK+2&3]||e[mK+3&3]){var d5=e;var NF=mK}}for(;G9.data!==H;)if(!(YG=G9,G9=G9.next))return this;(H=G9.next)&&delete G9.next;
if(YG)return H?YG.next=H:delete YG.next,this;if(!e)return this._root=H,this;H?e[mK]=H:delete e[mK];(G9=e[0]||e[1]||e[2]||e[3])&&G9===(e[3]||e[2]||e[1]||e[0])&&!G9.length&&(d5?d5[NF]=G9:this._root=G9);return this};
gF.removeAll=function(H){for(var e=0,G9=H.length;e<G9;++e)this.remove(H[e]);return this};
gF.root=function(){return this._root};
gF.size=function(){var H=0;this.visit(function(e){if(!e.length){do++H;while(e=e.next)}});
return H};
gF.visit=function(H){var e=[],G9,YG=this._root,tV,vJ,jo,Oo,W2;for(YG&&e.push(new wF(YG,this._x0,this._y0,this._x1,this._y1));G9=e.pop();)if(!H(YG=G9.node,vJ=G9.x0,jo=G9.y0,Oo=G9.x1,W2=G9.y1)&&YG.length){G9=(vJ+Oo)/2;var Yk=(jo+W2)/2;(tV=YG[3])&&e.push(new wF(tV,G9,Yk,Oo,W2));(tV=YG[2])&&e.push(new wF(tV,vJ,Yk,G9,W2));(tV=YG[1])&&e.push(new wF(tV,G9,jo,Oo,Yk));(tV=YG[0])&&e.push(new wF(tV,vJ,jo,G9,Yk))}};
gF.visitAfter=function(H){var e=[],G9=[],YG;for(this._root&&e.push(new wF(this._root,this._x0,this._y0,this._x1,this._y1));YG=e.pop();){var tV=YG.node;if(tV.length){var vJ,jo=YG.x0,Oo=YG.y0,W2=YG.x1,Yk=YG.y1,aF=(jo+W2)/2,mD=(Oo+Yk)/2;(vJ=tV[0])&&e.push(new wF(vJ,jo,Oo,aF,mD));(vJ=tV[1])&&e.push(new wF(vJ,aF,Oo,W2,mD));(vJ=tV[2])&&e.push(new wF(vJ,jo,mD,aF,Yk));(vJ=tV[3])&&e.push(new wF(vJ,aF,mD,W2,Yk))}G9.push(YG)}for(;YG=G9.pop();)H(YG.node,YG.x0,YG.y0,YG.x1,YG.y1);return this};
gF.x=function(H){return arguments.length?(this._x=H,this):this._x};
gF.y=function(H){return arguments.length?(this._y=H,this):this._y};
var b4P=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Z9v.prototype=dSs.prototype;dSs.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 Zk4,dUK={"%":function(H,e){return(H*100).toFixed(e)},
b:function(H){return Math.round(H).toString(2)},
c:function(H){return H+""},
d:function(H){return Math.round(H).toString(10)},
e:function(H,e){return H.toExponential(e)},
f:function(H,e){return H.toFixed(e)},
g:function(H,e){return H.toPrecision(e)},
o:function(H){return Math.round(H).toString(8)},
p:function(H,e){return kl4(H*100,e)},
r:kl4,s:function(H,e){var G9=vz6(H,e);if(!G9)return H+"";var YG=G9[0];G9=G9[1];G9=G9-(Zk4=Math.max(-8,Math.min(8,Math.floor(G9/3)))*3)+1;var tV=YG.length;return G9===tV?YG:G9>tV?YG+Array(G9-tV+1).join("0"):G9>0?YG.slice(0,G9)+"."+YG.slice(G9):"0."+Array(1-G9).join("0")+vz6(H,Math.max(0,e+G9-1))[0]},
X:function(H){return Math.round(H).toString(16).toUpperCase()},
x:function(H){return Math.round(H).toString(16)}},Vx4="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),Xc6;
(function(H){return Xc6=vmD(H)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});pg.prototype={constructor:pg,reset:function(){this.s=this.t=0},
add:function(H){PCk(jmP,H,this.t);PCk(this,jmP.s,this.s);this.s?this.t+=jmP.t:this.s=jmP.t},
valueOf:function(){return this.s}};
var jmP=new pg,wl=Math.PI,Dk=wl/2,pr0=wl/4,Sm6=wl*2,TtV=wl/180,lp=Math.abs,mUd=Math.atan,SxG=Math.atan2,tX=Math.cos,xt=Math.sin,sm6=Math.sqrt;new pg;new pg;new pg;var ikJ=new pg;(function(H,e,G9,YG){return function(tV){function vJ(c4,sR){H(c4,sR)&&tV.point(c4,sR)}
function jo(c4,sR){Pu.point(c4,sR)}
function Oo(){Fk.point=jo;Pu.lineStart()}
function W2(){Fk.point=vJ;Pu.lineEnd()}
function Yk(c4,sR){jD.push([c4,sR]);mK.point(c4,sR)}
function aF(){mK.lineStart();jD=[]}
function mD(){Yk(jD[0][0],jD[0][1]);mK.lineEnd();var c4=mK.clean(),sR=Ie.result(),At=sR.length,jr;jD.pop();NF.push(jD);jD=null;if(At)if(c4&1){if(At=sR[0],(sR=At.length-1)>0){d5||(tV.polygonStart(),d5=!0);tV.lineStart();for(c4=0;c4<sR;++c4)tV.point((jr=At[c4])[0],jr[1]);tV.lineEnd()}}else At>1&&c4&2&&sR.push(sR.pop().concat(sR.shift())),OZ.push(sR.filter(Emq))}
var Pu=e(tV),Ie=sXO(),mK=e(Ie),d5=!1,NF,OZ,jD,Fk={point:vJ,lineStart:Oo,lineEnd:W2,polygonStart:function(){Fk.point=Yk;Fk.lineStart=aF;Fk.lineEnd=mD;OZ=[];NF=[]},
polygonEnd:function(){Fk.point=vJ;Fk.lineStart=Oo;Fk.lineEnd=W2;var c4=OZ,sR=c4.length;var At=-1;for(var jr=0,G7,vN;++At<sR;)jr+=c4[At].length;for(G7=Array(jr);--sR>=0;)for(vN=c4[sR],At=vN.length;--At>=0;)G7[--jr]=vN[At];OZ=G7;c4=NF;sR=YG[0];jr=YG[1];var JC=xt(jr);At=[xt(sR),-tX(sR),0];vN=G7=0;ikJ.reset();JC===1?jr=Dk+1E-6:JC===-1&&(jr=-Dk-1E-6);JC=0;for(var yi=c4.length;JC<yi;++JC)if(Aa=(gs=c4[JC]).length){var gs,Aa,DC=gs[Aa-1],HO=DC[0],UY=DC[1]/2+pr0,kid=xt(UY),JGS=tX(UY);for(UY=0;UY<Aa;++UY,HO=
Gls,kid=NIX,JGS=PI,DC=COf){var COf=gs[UY],Gls=COf[0];PI=COf[1]/2+pr0;var NIX=xt(PI),PI=tX(PI),kH=Gls-HO,KBG=kH>=0?1:-1,WBf=KBG*kH,VNJ=WBf>wl;kid*=NIX;ikJ.add(SxG(kid*KBG*xt(WBf),JGS*PI+kid*tX(WBf)));G7+=VNJ?kH+KBG*Sm6:kH;VNJ^HO>=sR^Gls>=sR&&(DC=ep2(yrR(DC),yrR(COf)),fTl(DC),HO=ep2(At,DC),fTl(HO),HO=(VNJ^kH>=0?-1:1)*$FG(HO[2]),jr>HO||jr===HO&&(DC[0]||DC[1]))&&(vN+=VNJ^kH>=0?1:-1)}}c4=(G7<-1E-6||G7<1E-6&&ikJ<-1E-6)^vN&1;OZ.length?(d5||(tV.polygonStart(),d5=!0),qP6(OZ,H4P,c4,G9,tV)):c4&&(d5||(tV.polygonStart(),
d5=!0),tV.lineStart(),G9(null,null,1,tV),tV.lineEnd());d5&&(tV.polygonEnd(),d5=!1);OZ=NF=null},
sphere:function(){tV.polygonStart();tV.lineStart();G9(null,null,1,tV);tV.lineEnd();tV.polygonEnd()}};
return Fk}})(function(){return!0},function(H){var e=NaN,G9=NaN,YG=NaN,tV;
return{lineStart:function(){H.lineStart();tV=1},
point:function(vJ,jo){var Oo=vJ>0?wl:-wl,W2=lp(vJ-e);if(lp(W2-wl)<1E-6)H.point(e,G9=(G9+jo)/2>0?Dk:-Dk),H.point(YG,G9),H.lineEnd(),H.lineStart(),H.point(Oo,G9),H.point(vJ,G9),tV=0;else if(YG!==Oo&&W2>=wl){lp(e-YG)<1E-6&&(e-=YG*1E-6);lp(vJ-Oo)<1E-6&&(vJ-=Oo*1E-6);W2=e;var Yk=G9,aF=vJ,mD,Pu,Ie=xt(W2-aF);G9=lp(Ie)>1E-6?mUd((xt(Yk)*(Pu=tX(jo))*xt(aF)-xt(jo)*(mD=tX(Yk))*xt(W2))/(mD*Pu*Ie)):(Yk+jo)/2;H.point(YG,G9);H.lineEnd();H.lineStart();H.point(Oo,G9);tV=0}H.point(e=vJ,G9=jo);YG=Oo},
lineEnd:function(){H.lineEnd();e=G9=NaN},
clean:function(){return 2-tV}}},function(H,e,G9,YG){H==null?(G9*=Dk,YG.point(-wl,G9),YG.point(0,G9),YG.point(wl,G9),YG.point(wl,0),YG.point(wl,-G9),YG.point(0,-G9),YG.point(-wl,-G9),YG.point(-wl,0),YG.point(-wl,G9)):lp(H[0]-e[0])>1E-6?(H=H[0]<e[0]?wl:-wl,G9=G9*H/2,YG.point(-H,G9),YG.point(0,G9),YG.point(H,G9)):YG.point(e[0],e[1])},[-wl,
-Dk]);new pg;new pg;new pg;new pg;PnF.prototype={constructor:PnF,point:function(H,e){this.stream.point(H,e)},
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()}};
tX(30*TtV);(function(H){return function(e){var G9=new PnF,YG;for(YG in H)G9[YG]=H[YG];G9.stream=e;return G9}})({point:function(H,e){this.stream.point(H*TtV,e*TtV)}});
Xxl(function(H){return sm6(2/(1+H))}).invert=HI(function(H){return 2*$FG(H/2)});
Xxl(function(H){return(H=H>1?0:H<-1?wl:Math.acos(H))&&H/xt(H)}).invert=HI(function(H){return H});
sm6(3);HI(mUd);HI($FG);HI(function(H){return 2*mUd(H)});
IJ.prototype=Rp0.prototype={constructor:IJ,count:function(){return this.eachAfter(IB6)},
each:function(H){var e,G9=[this],YG;do{var tV=G9.reverse();for(G9=[];e=tV.pop();)if(H(e),e=e.children){var vJ=0;for(YG=e.length;vJ<YG;++vJ)G9.push(e[vJ])}}while(G9.length);return this},
eachAfter:function(H){for(var e,G9=[this],YG=[],tV,vJ;e=G9.pop();)if(YG.push(e),e=e.children)for(tV=0,vJ=e.length;tV<vJ;++tV)G9.push(e[tV]);for(;e=YG.pop();)H(e);return this},
eachBefore:function(H){for(var e,G9=[this],YG;e=G9.pop();)if(H(e),e=e.children)for(YG=e.length-1;YG>=0;--YG)G9.push(e[YG]);return this},
sum:function(H){return this.eachAfter(function(e){for(var G9=+H(e.data)||0,YG=e.children,tV=YG&&YG.length;--tV>=0;)G9+=YG[tV].value;e.value=G9})},
sort:function(H){return this.eachBefore(function(e){e.children&&e.children.sort(H)})},
path:function(H){var e=this;var G9=e;var YG=H;if(G9!==YG){var tV=G9.ancestors(),vJ=YG.ancestors(),jo=null;G9=tV.pop();for(YG=vJ.pop();G9===YG;)jo=G9,G9=tV.pop(),YG=vJ.pop();G9=jo}for(YG=[e];e!==G9;)e=e.parent,YG.push(e);for(e=YG.length;H!==G9;)YG.splice(e,0,H),H=H.parent;return YG},
ancestors:function(){for(var H=this,e=[H];H=H.parent;)e.push(H);return e},
links:function(){var H=this,e=[];H.each(function(G9){G9!==H&&e.push({source:G9.parent,target:G9})});
return e},
copy:function(){return Rp0(this).eachBefore(CcE)}};
(function(H,e){this._=H;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=e}).prototype=Object.create(IJ.prototype);
var ySP=new Date,ews=new Date,Dok=kT(function(){},function(H,e){H.setTime(+H+e)},function(H,e){return e-H});
Dok.every=function(H){H=Math.floor(H);return isFinite(H)&&H>0?H>1?kT(function(e){e.setTime(Math.floor(e/H)*H)},function(e,G9){e.setTime(+e+G9*H)},function(e,G9){return(G9-e)/H}):Dok:null};
kT(function(H){H.setTime(Math.floor(H/1E3)*1E3)},function(H,e){H.setTime(+H+e*1E3)},function(H,e){return(e-H)/1E3},function(H){return H.getUTCSeconds()});
kT(function(H){H.setTime(Math.floor(H/6E4)*6E4)},function(H,e){H.setTime(+H+e*6E4)},function(H,e){return(e-H)/6E4},function(H){return H.getMinutes()});
kT(function(H){var e=H.getTimezoneOffset()*6E4%36E5;e<0&&(e+=36E5);H.setTime(Math.floor((+H-e)/36E5)*36E5+e)},function(H,e){H.setTime(+H+e*36E5)},function(H,e){return(e-H)/36E5},function(H){return H.getHours()});
var lTX=kT(function(H){H.setHours(0,0,0,0)},function(H,e){H.setDate(H.getDate()+e)},function(H,e){return(e-H-(e.getTimezoneOffset()-H.getTimezoneOffset())*6E4)/864E5},function(H){return H.getDate()-1}),CFu=cc(0),xSo=cc(1);
cc(2);cc(3);var XTG=cc(4);cc(5);cc(6);kT(function(H){H.setDate(1);H.setHours(0,0,0,0)},function(H,e){H.setMonth(H.getMonth()+e)},function(H,e){return e.getMonth()-H.getMonth()+(e.getFullYear()-H.getFullYear())*12},function(H){return H.getMonth()});
var Ej=kT(function(H){H.setMonth(0,1);H.setHours(0,0,0,0)},function(H,e){H.setFullYear(H.getFullYear()+e)},function(H,e){return e.getFullYear()-H.getFullYear()},function(H){return H.getFullYear()});
Ej.every=function(H){return isFinite(H=Math.floor(H))&&H>0?kT(function(e){e.setFullYear(Math.floor(e.getFullYear()/H)*H);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,G9){e.setFullYear(e.getFullYear()+G9*H)}):null};
kT(function(H){H.setUTCSeconds(0,0)},function(H,e){H.setTime(+H+e*6E4)},function(H,e){return(e-H)/6E4},function(H){return H.getUTCMinutes()});
kT(function(H){H.setUTCMinutes(0,0,0)},function(H,e){H.setTime(+H+e*36E5)},function(H,e){return(e-H)/36E5},function(H){return H.getUTCHours()});
var zpi=kT(function(H){H.setUTCHours(0,0,0,0)},function(H,e){H.setUTCDate(H.getUTCDate()+e)},function(H,e){return(e-H)/864E5},function(H){return H.getUTCDate()-1}),VjP=Yf(0),fnf=Yf(1);
Yf(2);Yf(3);var SWP=Yf(4);Yf(5);Yf(6);kT(function(H){H.setUTCDate(1);H.setUTCHours(0,0,0,0)},function(H,e){H.setUTCMonth(H.getUTCMonth()+e)},function(H,e){return e.getUTCMonth()-H.getUTCMonth()+(e.getUTCFullYear()-H.getUTCFullYear())*12},function(H){return H.getUTCMonth()});
var HD=kT(function(H){H.setUTCMonth(0,1);H.setUTCHours(0,0,0,0)},function(H,e){H.setUTCFullYear(H.getUTCFullYear()+e)},function(H,e){return e.getUTCFullYear()-H.getUTCFullYear()},function(H){return H.getUTCFullYear()});
HD.every=function(H){return isFinite(H=Math.floor(H))&&H>0?kT(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/H)*H);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,G9){e.setUTCFullYear(e.getUTCFullYear()+G9*H)}):null};
var UU4={"-":"",_:" ",0:"0"},ku=/^\s*\d+/,kQO=/^%/,jyG=/[\\^$*+?|[\]().{}]/g,Zcd;(function(H){Zcd=Z4q(H);XYR=Zcd.utcFormat;SUF=Zcd.utcParse;return Zcd})({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||XYR("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||SUF("%Y-%m-%dT%H:%M:%S.%LZ");n6("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
n6("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");n6("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");n6("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");n6("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");n6("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");n6("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
n6("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");n6("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");n6("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");n6("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");n6("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var RUD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(n6);O8(RUD);var UMO=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(n6);O8(UMO);var zUE=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(n6);O8(zUE);var l2i=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(n6);
O8(l2i);var BY6=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(n6);O8(BY6);var Mju=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(n6);O8(Mju);var TYD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(n6);O8(TYD);var mri=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(n6);O8(mri);var i3u=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(n6);O8(i3u);var GE5=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(n6);O8(GE5);var KLu=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(n6);O8(KLu);var WLz=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(n6);O8(WLz);var LL5=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(n6);O8(LL5);var A8W=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(n6);O8(A8W);var whW=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(n6);O8(whW);var gF6=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(n6);O8(gF6);var O36=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(n6);O8(O36);var c8D=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(n6);O8(c8D);var Y3s=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(n6);O8(Y3s);var r8P=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(n6);O8(r8P);var uTD=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(n6);O8(uTD);var hZz=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(n6);O8(hZz);var phP=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(n6);O8(phP);var J8i=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(n6);O8(J8i);var Nwi=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(n6);O8(Nwi);var Dru=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(n6);O8(Dru);var tEq=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(n6);O8(tEq);Btd(v2(300,.5,0),v2(-240,.5,1));Btd(v2(-100,.75,.35),v2(80,1.5,.8));Btd(v2(260,.75,.35),v2(80,1.5,.8));v2();Qi();Hcs(n6("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Hcs(n6("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Hcs(n6("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Hcs(n6("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
AGR.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(H,e){H=+H;e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(H,e):this._context.moveTo(H,e);break;case 1:this._point=2;default:this._context.lineTo(H,e)}}};
(function(H){function e(G9){return new wrC(H(G9))}
e._curve=H;return e})(function(H){return new AGR(H)});
wrC.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(H,e){this._curve.point(e*Math.sin(H),e*-Math.cos(H))}};
USP.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:Rwd(this,this._t0,Ofl(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(H,e){var G9=NaN;H=+H;e=+e;if(H!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(H,e):this._context.moveTo(H,e);break;case 1:this._point=2;break;case 2:this._point=3;Rwd(this,Ofl(this,G9=gUK(this,H,e)),G9);break;default:Rwd(this,this._t0,G9=gUK(this,H,e))}this._x0=this._x1;this._x1=H;this._y0=this._y1;this._y1=e;this._t0=G9}}};
(function(H){this._context=new cGB(H)}.prototype=Object.create(USP.prototype)).point=function(H,e){USP.prototype.point.call(this,e,H)};
cGB.prototype={moveTo:function(H,e){this._context.moveTo(e,H)},
closePath:function(){this._context.closePath()},
lineTo:function(H,e){this._context.lineTo(e,H)},
bezierCurveTo:function(H,e,G9,YG,tV,vJ){this._context.bezierCurveTo(e,H,YG,G9,vJ,tV)}};
V0.prototype={constructor:V0,scale:function(H){return H===1?this:new V0(this.k*H,this.x,this.y)},
translate:function(H,e){return H===0&e===0?this:new V0(this.k,this.x+this.k*H,this.y+this.k*e)},
apply:function(H){return[H[0]*this.k+this.x,H[1]*this.k+this.y]},
invert:function(H){return[(H[0]-this.x)/this.k,(H[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new V0(1,0,0);XCv=dK;JX.svg=JX.svg;JX.xhtml=JX.xhtml;JX.xlink=JX.xlink;JX.xml=JX.xml;JX.xmlns=JX.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 R34="hammer_"+(Math.random()*1E6|0),UaR=function(){var m=document||document;if(!m[R34]){var G=function(){(function(K,W,L,A){function O(sd,dd,l6){return setTimeout(D(sd,l6),dd)}
function c(sd,dd,l6){return Array.isArray(sd)?(u(sd,l6[dd],l6),!0):!1}
function u(sd,dd,l6){var QX;if(sd)if(sd.forEach)sd.forEach(dd,l6);else if(sd.length!==A){var $5=0;for(QX=sd.length;$5<QX;$5++)dd.call(l6,sd[$5],$5,sd)}else for($5 in sd)sd.hasOwnProperty($5)&&dd.call(l6,sd[$5],$5,sd)}
function h(sd,dd,l6){for(var QX=Object.keys(dd),$5=0,Ee=QX.length;$5<Ee;$5++)if(!l6||l6&&sd[QX[$5]]===A)sd[QX[$5]]=dd[QX[$5]];return sd}
function J(sd,dd){return h(sd,dd,!0)}
function N(sd,dd,l6){dd=dd.prototype;var QX=sd.prototype=Object.create(dd);QX.constructor=sd;QX._super=dd;l6&&h(QX,l6)}
function D(sd,dd){return function(){return sd.apply(dd,arguments)}}
function t(sd,dd){return typeof sd=="function"?sd.apply(dd?dd[0]||A:A,dd):sd}
function a(sd,dd,l6){u(I(dd),function(QX){sd.addEventListener(QX,l6,!1)})}
function v(sd,dd,l6){u(I(dd),function(QX){sd.removeEventListener(QX,l6,!1)})}
function I(sd){return sd.trim().split(/\s+/g)}
function Z(sd,dd,l6){if(sd.indexOf&&!l6)return sd.indexOf(dd);for(var QX=0,$5=sd.length;QX<$5;QX++)if(l6&&sd[QX][l6]==dd||!l6&&sd[QX]===dd)return QX;return-1}
function k(sd,dd,l6){for(var QX=[],$5=[],Ee=0,Is=sd.length;Ee<Is;Ee++){var $k=dd?sd[Ee][dd]:sd[Ee];Z($5,$k)<0&&QX.push(sd[Ee]);$5[Ee]=$k}l6&&(QX=dd?QX.sort(function(v2,XE){return v2[dd]>XE[dd]}):QX.sort());
return QX}
function z(sd,dd){for(var l6,QX=dd[0].toUpperCase()+dd.slice(1),$5=0,Ee=JD.length;$5<Ee;$5++)if(l6=(l6=JD[$5])?l6+QX:dd,l6 in sd)return l6;return A}
function X(sd,dd){var l6=this;this.manager=sd;this.callback=dd;this.element=sd.element;this.target=sd.options.inputTarget;this.domHandler=function(QX){t(sd.options.enable,[sd])&&l6.handler(QX)};
this.evEl&&a(this.element,this.evEl,this.domHandler);this.evTarget&&a(this.target,this.evTarget,this.domHandler);this.evWin&&a(K,this.evWin,this.domHandler)}
function f(sd){var dd;cu?dd=kG:xo?dd=eo:dK?dd=xG:dd=DF;return new dd(sd,U)}
function U(sd,dd,l6){var QX=l6.pointers.length,$5=l6.changedPointers.length,Ee=dd&1&&QX-$5===0;l6.isFirst=!!Ee;l6.isFinal=!!(dd&12&&QX-$5===0);Ee&&(sd.session={});l6.eventType=dd;dd=sd.session;QX=l6.pointers;$5=QX.length;dd.firstInput||(dd.firstInput=l(l6));$5>1&&!dd.firstMultiple?dd.firstMultiple=l(l6):$5===1&&(dd.firstMultiple=!1);Ee=dd.firstInput;var Is=($5=dd.firstMultiple)?$5.center:Ee.center,$k=l6.center=Ls(QX);l6.timeStamp=N6();l6.deltaTime=l6.timeStamp-Ee.timeStamp;l6.angle=JV(Is,$k);l6.distance=
Qf(Is,$k);Ee=l6.center;Is=dd.offsetDelta||{};$k=dd.prevDelta||{};var v2=dd.prevInput||{};if(l6.eventType===1||v2.eventType===4)$k=dd.prevDelta={x:v2.deltaX||0,y:v2.deltaY||0},Is=dd.offsetDelta={x:Ee.x,y:Ee.y};l6.deltaX=$k.x+(Ee.x-Is.x);l6.deltaY=$k.y+(Ee.y-Is.y);l6.offsetDirection=gd(l6.deltaX,l6.deltaY);$5?(Ee=$5.pointers,Ee=Qf(QX[0],QX[1],Qi)/Qf(Ee[0],Ee[1],Qi)):Ee=1;l6.scale=Ee;$5?($5=$5.pointers,QX=JV(QX[1],QX[0],Qi)-JV($5[1],$5[0],Qi)):QX=0;l6.rotation=QX;Is=dd.lastInterval||l6;QX=l6.timeStamp-
Is.timeStamp;l6.eventType!=8&&(QX>25||Is.velocity===A)?(Ee=Is.deltaX-l6.deltaX,Is=Is.deltaY-l6.deltaY,$k=Ee/QX||0,v2=Is/QX||0,QX=$k,$5=v2,$k=c2($k)>c2(v2)?$k:v2,Ee=gd(Ee,Is),dd.lastInterval=l6):($k=Is.velocity,QX=Is.velocityX,$5=Is.velocityY,Ee=Is.direction);l6.velocity=$k;l6.velocityX=QX;l6.velocityY=$5;l6.direction=Ee;dd=sd.element;a:{for(QX=l6.srcEvent.target;QX;){if(QX==dd){QX=!0;break a}QX=QX.parentNode}QX=!1}QX&&(dd=l6.srcEvent.target);l6.target=dd;sd.emit("hammer.input",l6);sd.recognize(l6);
sd.session.prevInput=l6}
function l(sd){for(var dd=[],l6=0;l6<sd.pointers.length;l6++)dd[l6]={clientX:zG(sd.pointers[l6].clientX),clientY:zG(sd.pointers[l6].clientY)};return{timeStamp:N6(),pointers:dd,center:Ls(dd),deltaX:sd.deltaX,deltaY:sd.deltaY}}
function Ls(sd){var dd=sd.length;if(dd===1)return{x:zG(sd[0].clientX),y:zG(sd[0].clientY)};for(var l6=0,QX=0,$5=0;$5<dd;$5++)l6+=sd[$5].clientX,QX+=sd[$5].clientY;return{x:zG(l6/dd),y:zG(QX/dd)}}
function gd(sd,dd){return sd===dd?1:c2(sd)>=c2(dd)?sd>0?2:4:dd>0?8:16}
function Qf(sd,dd,l6){l6||(l6=fl);var QX=dd[l6[0]]-sd[l6[0]];sd=dd[l6[1]]-sd[l6[1]];return Math.sqrt(QX*QX+sd*sd)}
function JV(sd,dd,l6){l6||(l6=fl);return Math.atan2(dd[l6[1]]-sd[l6[1]],dd[l6[0]]-sd[l6[0]])*180/Math.PI}
function DF(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;X.apply(this,arguments)}
function kG(){this.evEl=xr;this.evWin=Gf;X.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function eo(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};X.apply(this,arguments)}
function xG(){X.apply(this,arguments);var sd=D(this.handler,this);this.touch=new eo(this.manager,sd);this.mouse=new DF(this.manager,sd)}
function Ji(sd,dd){this.manager=sd;this.set(dd)}
function rK(sd){if(sd.indexOf("none")>-1)return"none";var dd=sd.indexOf("pan-x")>-1,l6=sd.indexOf("pan-y")>-1;return dd&&l6?"pan-x pan-y":dd||l6?dd?"pan-x":"pan-y":sd.indexOf("manipulation")>-1?"manipulation":"auto"}
function So(sd){this.id=pl++;this.manager=null;this.options=J(sd||{},this.defaults);sd=this.options.enable;this.options.enable=sd===A?!0:sd;this.state=1;this.simultaneous={};this.requireFail=[]}
function ti(sd){return sd==16?"down":sd==8?"up":sd==2?"left":sd==4?"right":""}
function bS(sd,dd){return(dd=dd.manager)?dd.get(sd):sd}
function NG(){So.apply(this,arguments)}
function EO(){NG.apply(this,arguments);this.pY=this.pX=null}
function gz(){NG.apply(this,arguments)}
function ps(){So.apply(this,arguments);this._input=this._timer=null}
function ZF(){NG.apply(this,arguments)}
function DP(){NG.apply(this,arguments)}
function lS(){So.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Eo(sd,dd){dd=dd||{};var l6=dd.recognizers;dd.recognizers=l6===A?Eo.defaults.preset:l6;return new iq(sd,dd)}
function iq(sd,dd){dd=dd||{};this.options=J(dd,Eo.defaults);this.options.inputTarget=this.options.inputTarget||sd;this.handlers={};this.session={};this.recognizers=[];this.element=sd;this.input=f(this);this.touchAction=new Ji(this,this.options.touchAction);jy(this,!0);u(dd.recognizers,function(l6){var QX=this.add(new l6[0](l6[1]));l6[2]&&QX.recognizeWith(l6[2]);l6[3]&&QX.requireFailure(l6[2])},this)}
function jy(sd,dd){var l6=sd.element;u(sd.options.cssProps,function(QX,$5){l6.style[z(l6.style,$5)]=dd?QX:""})}
function T4(sd,dd){var l6=W.createEvent("Event");l6.initEvent(sd,!0,!0);l6.gesture=dd;dd.target.dispatchEvent(l6)}
var JD=" webkit moz MS ms o".split(" "),S0=W.createElement("div"),zG=Math.round,c2=Math.abs,N6=Date.now,pl=1,Uo=/mobile|tablet|ip(ad|hone|od)|android/i,dK="ontouchstart"in K,cu=z(K,"PointerEvent")!==A,xo=dK&&Uo.test(navigator.userAgent),fl=["x","y"],Qi=["clientX","clientY"];X.prototype={handler:function(){},
destroy:function(){this.evEl&&v(this.element,this.evEl,this.domHandler);this.evTarget&&v(this.target,this.evTarget,this.domHandler);this.evWin&&v(K,this.evWin,this.domHandler)}};
var ig={mousedown:1,mousemove:2,mouseup:4};N(DF,X,{handler:function(sd){var dd=ig[sd.type];dd&1&&sd.button===0&&(this.pressed=!0);dd&2&&sd.which!==1&&(dd=4);this.pressed&&this.allow&&(dd&4&&(this.pressed=!1),this.callback(this.manager,dd,{pointers:[sd],changedPointers:[sd],pointerType:"mouse",srcEvent:sd}))}});
var gx={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},xl={2:"touch",3:"pen",4:"mouse",5:"kinect"},xr="pointerdown",Gf="pointermove pointerup pointercancel";K.MSPointerEvent&&(xr="MSPointerDown",Gf="MSPointerMove MSPointerUp MSPointerCancel");N(kG,X,{handler:function(sd){var dd=this.store,l6=!1,QX=sd.type.toLowerCase().replace("ms","");QX=gx[QX];var $5=xl[sd.pointerType]||sd.pointerType;QX&1&&(sd.button===0||$5=="touch")?dd.push(sd):QX&12&&(l6=!0);var Ee=Z(dd,sd.pointerId,"pointerId");
Ee<0||(dd[Ee]=sd,this.callback(this.manager,QX,{pointers:dd,changedPointers:[sd],pointerType:$5,srcEvent:sd}),l6&&dd.splice(Ee,1))}});
var X6={touchstart:1,touchmove:2,touchend:4,touchcancel:8};N(eo,X,{handler:function(sd){var dd=X6[sd.type];var l6=Array.prototype.slice.call(sd.touches,0);var QX=this.targetIds;if(dd&3&&l6.length===1)QX[l6[0].identifier]=!0,QX=[l6,l6];else{var $5,Ee=Array.prototype.slice.call(sd.targetTouches,0),Is=Array.prototype.slice.call(sd.changedTouches,0),$k=[];if(dd===1)for(l6=0,$5=Ee.length;l6<$5;l6++)QX[Ee[l6].identifier]=!0;l6=0;for($5=Is.length;l6<$5;l6++)QX[Is[l6].identifier]&&$k.push(Is[l6]),dd&12&&
delete QX[Is[l6].identifier];QX=$k.length?[k(Ee.concat($k),"identifier",!0),$k]:void 0}QX&&this.callback(this.manager,dd,{pointers:QX[0],changedPointers:QX[1],pointerType:"touch",srcEvent:sd})}});
N(xG,X,{handler:function(sd,dd,l6){var QX=l6.pointerType=="mouse";if(l6.pointerType=="touch")this.mouse.allow=!1;else if(QX&&!this.mouse.allow)return;dd&12&&(this.mouse.allow=!0);this.callback(sd,dd,l6)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var ht=z(S0.style,"touchAction"),Td=ht!==A;Ji.prototype={set:function(sd){sd=="compute"&&(sd=this.compute());Td&&(this.manager.element.style[ht]=sd);this.actions=sd.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sd=[];u(this.manager.recognizers,function(dd){t(dd.options.enable,[dd])&&(sd=sd.concat(dd.getTouchAction()))});
return rK(sd.join(" "))},
preventDefaults:function(sd){if(!Td){var dd=sd.srcEvent;sd=sd.offsetDirection;if(this.manager.session.prevented)dd.preventDefault();else{var l6=this.actions,QX=l6.indexOf("none")>-1,$5=l6.indexOf("pan-y")>-1;l6=l6.indexOf("pan-x")>-1;if(QX||$5&&l6||$5&&sd&6||l6&&sd&24)return this.preventSrc(dd)}}},
preventSrc:function(sd){this.manager.session.prevented=!0;sd.preventDefault()}};
So.prototype={defaults:{},set:function(sd){h(this.options,sd);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sd){if(c(sd,"recognizeWith",this))return this;var dd=this.simultaneous;sd=bS(sd,this);dd[sd.id]||(dd[sd.id]=sd,sd.recognizeWith(this));return this},
dropRecognizeWith:function(sd){if(c(sd,"dropRecognizeWith",this))return this;sd=bS(sd,this);delete this.simultaneous[sd.id];return this},
requireFailure:function(sd){if(c(sd,"requireFailure",this))return this;var dd=this.requireFail;sd=bS(sd,this);Z(dd,sd)===-1&&(dd.push(sd),sd.requireFailure(this));return this},
dropRequireFailure:function(sd){if(c(sd,"dropRequireFailure",this))return this;sd=bS(sd,this);sd=Z(this.requireFail,sd);sd>-1&&this.requireFail.splice(sd,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sd){return!!this.simultaneous[sd.id]},
emit:function(sd){function dd($5){l6.manager.emit(l6.options.event+($5?QX&16?"cancel":QX&8?"end":QX&4?"move":QX&2?"start":"":""),sd)}
var l6=this,QX=this.state;QX<8&&dd(!0);dd();QX>=8&&dd(!0)},
tryEmit:function(sd){if(this.canEmit())return this.emit(sd);this.state=32},
canEmit:function(){for(var sd=0;sd<this.requireFail.length;sd++)if(!(this.requireFail[sd].state&33))return!1;return!0},
recognize:function(sd){sd=h({},sd);t(this.options.enable,[this,sd])?(this.state&56&&(this.state=1),this.state=this.process(sd),this.state&30&&this.tryEmit(sd)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
N(NG,So,{defaults:{pointers:1},attrTest:function(sd){var dd=this.options.pointers;return dd===0||sd.pointers.length===dd},
process:function(sd){var dd=this.state,l6=sd.eventType,QX=dd&6;sd=this.attrTest(sd);return QX&&(l6&8||!sd)?dd|16:QX||sd?l6&4?dd|8:dd&2?dd|4:2:32}});
N(EO,NG,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sd=this.options.direction;if(sd===30)return["none"];var dd=[];sd&6&&dd.push("pan-y");sd&24&&dd.push("pan-x");return dd},
directionTest:function(sd){var dd=this.options,l6=!0,QX=sd.distance,$5=sd.direction,Ee=sd.deltaX,Is=sd.deltaY;$5&dd.direction||(dd.direction&6?($5=Ee===0?1:Ee<0?2:4,l6=Ee!=this.pX,QX=Math.abs(sd.deltaX)):($5=Is===0?1:Is<0?8:16,l6=Is!=this.pY,QX=Math.abs(sd.deltaY)));sd.direction=$5;return l6&&QX>dd.threshold&&$5&dd.direction},
attrTest:function(sd){return NG.prototype.attrTest.call(this,sd)&&(this.state&2||!(this.state&2)&&this.directionTest(sd))},
emit:function(sd){this.pX=sd.deltaX;this.pY=sd.deltaY;var dd=ti(sd.direction);dd&&this.manager.emit(this.options.event+dd,sd);this._super.emit.call(this,sd)}});
N(gz,NG,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sd){return this._super.attrTest.call(this,sd)&&(Math.abs(sd.scale-1)>this.options.threshold||this.state&2)},
emit:function(sd){this._super.emit.call(this,sd);sd.scale!==1&&this.manager.emit(this.options.event+(sd.scale<1?"in":"out"),sd)}});
N(ps,So,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sd){var dd=this.options,l6=sd.pointers.length===dd.pointers,QX=sd.distance<dd.threshold,$5=sd.deltaTime>dd.time;this._input=sd;if(!QX||!l6||sd.eventType&12&&!$5)this.reset();else if(sd.eventType&1)this.reset(),this._timer=O(function(){this.state=8;this.tryEmit()},dd.time,this);
else if(sd.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sd){this.state===8&&(sd&&sd.eventType&4?this.manager.emit(this.options.event+"up",sd):(this._input.timeStamp=N6(),this.manager.emit(this.options.event,this._input)))}});
N(ZF,NG,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sd){return this._super.attrTest.call(this,sd)&&(Math.abs(sd.rotation)>this.options.threshold||this.state&2)}});
N(DP,NG,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return EO.prototype.getTouchAction.call(this)},
attrTest:function(sd){var dd=this.options.direction;if(dd&30)var l6=sd.velocity;else dd&6?l6=sd.velocityX:dd&24&&(l6=sd.velocityY);return this._super.attrTest.call(this,sd)&&dd&sd.direction&&c2(l6)>this.options.velocity&&sd.eventType&4},
emit:function(sd){var dd=ti(sd.direction);dd&&this.manager.emit(this.options.event+dd,sd);this.manager.emit(this.options.event,sd)}});
N(lS,So,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sd){var dd=this.options,l6=sd.pointers.length===dd.pointers,QX=sd.distance<dd.threshold,$5=sd.deltaTime<dd.time;this.reset();if(sd.eventType&1&&this.count===0)return this.failTimeout();if(QX&&$5&&l6){if(sd.eventType!=4)return this.failTimeout();l6=this.pTime?sd.timeStamp-this.pTime<dd.interval:!0;QX=!this.pCenter||Qf(this.pCenter,sd.center)<dd.posThreshold;this.pTime=sd.timeStamp;this.pCenter=sd.center;QX&&l6?this.count+=1:this.count=1;this._input=sd;if(this.count%dd.taps===0)return this.hasRequireFailures()?
(this._timer=O(function(){this.state=8;this.tryEmit()},dd.interval,this),2):8}return 32},
failTimeout:function(){this._timer=O(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))}});
Eo.VERSION="2.0.2";Eo.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[ZF,{enable:!1}],[gz,{enable:!1},["rotate"]],[DP,{direction:6}],[EO,{direction:6},["swipe"]],[lS],[lS,{event:"doubletap",taps:2},["tap"]],[ps]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};iq.prototype={set:function(sd){h(this.options,sd);return this},
stop:function(sd){this.session.stopped=sd?2:1},
recognize:function(sd){var dd=this.session;if(!dd.stopped){this.touchAction.preventDefaults(sd);var l6=this.recognizers,QX=dd.curRecognizer;if(!QX||QX&&QX.state&8)QX=dd.curRecognizer=null;for(var $5=0,Ee=l6.length;$5<Ee;$5++){var Is=l6[$5];dd.stopped===2||QX&&Is!=QX&&!Is.canRecognizeWith(QX)?Is.reset():Is.recognize(sd);!QX&&Is.state&14&&(QX=dd.curRecognizer=Is)}}},
get:function(sd){if(sd instanceof So)return sd;for(var dd=this.recognizers,l6=0;l6<dd.length;l6++)if(dd[l6].options.event==sd)return dd[l6];return null},
add:function(sd){if(c(sd,"add",this))return this;var dd=this.get(sd.options.event);dd&&this.remove(dd);this.recognizers.push(sd);sd.manager=this;this.touchAction.update();return sd},
remove:function(sd){if(c(sd,"remove",this))return this;var dd=this.recognizers;sd=this.get(sd);dd.splice(Z(dd,sd),1);this.touchAction.update();return this},
on:function(sd,dd){var l6=this.handlers;u(I(sd),function(QX){l6[QX]=l6[QX]||[];l6[QX].push(dd)});
return this},
off:function(sd,dd){var l6=this.handlers;u(I(sd),function(QX){dd?l6[QX].splice(Z(l6[QX],dd),1):delete l6[QX]});
return this},
emit:function(sd,dd){this.options.domEvents&&T4(sd,dd);var l6=this.handlers[sd]&&this.handlers[sd].slice();if(l6&&l6.length){dd.type=sd;dd.preventDefault=function(){dd.srcEvent.preventDefault()};
sd=0;for(var QX=l6.length;sd<QX;sd++)l6[sd](dd)}},
destroy:function(){this.element&&jy(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
h(Eo,{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:iq,Input:X,TouchAction:Ji,Recognizer:So,AttrRecognizer:NG,Tap:lS,Pan:EO,Swipe:DP,Pinch:gz,Rotate:ZF,Press:ps,on:a,off:v,each:u,merge:J,extend:h,inherit:N,bindFn:D,prefixed:z});
K[L]=Eo})(window,document,"Hammer");
return window.Hammer}.call({});
G.DOCUMENT=m;m[R34]=G}return m[R34]};/*

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

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

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 rb,SAP,R0G;rb=Element.prototype;SAP=rb.matches||rb.matchesSelector||rb.mozMatchesSelector||rb.msMatchesSelector||rb.oMatchesSelector||rb.webkitMatchesSelector;R0G=function(){};
_.z0G=function(m){var G=UEo,K=[];return G._collectTabbableNodes(m,K)?G._sortByTabIndex(K):K};
_.w=R0G.prototype;_.w.isFocusable=function(m){return SAP.call(m,"input, select, textarea, button, object")?SAP.call(m,":not([disabled])"):SAP.call(m,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.w._normalizedTabIndex=function(m){return this.isFocusable(m)?(m=m.getAttribute("tabindex")||0,Number(m)):-1};
_.w._collectTabbableNodes=function(m,G){if(m.nodeType!==Node.ELEMENT_NODE||!this._isVisible(m))return!1;var K=this._normalizedTabIndex(m),W=K>0;K>=0&&G.push(m);if(m.localName==="content"||m.localName==="slot")K=_.TP(m).getDistributedNodes();else{var L;K=((L=_.TP(m).shadowRoot)!=null?L:_.TP(m.root||m)).children}for(m=0;m<K.length;m++)W=this._collectTabbableNodes(K[m],G)||W;return W};
_.w._isVisible=function(m){var G=m.style;return G.visibility!=="hidden"&&G.display!=="none"?(G=window.getComputedStyle(m),G.visibility!=="hidden"&&G.display!=="none"):!1};
_.w._sortByTabIndex=function(m){var G=m.length;if(G<2)return m;var K=Math.ceil(G/2);G=this._sortByTabIndex(m.slice(0,K));m=this._sortByTabIndex(m.slice(K));return this._mergeSortByTabIndex(G,m)};
_.w._mergeSortByTabIndex=function(m,G){for(var K=[];m.length>0&&G.length>0;)this._hasLowerTabOrder(m[0],G[0])?K.push(G.shift()):K.push(m.shift());return K.concat(m,G)};
_.w._hasLowerTabOrder=function(m,G){m=Math.max(m.tabIndex,0);G=Math.max(G.tabIndex,0);return m===0||G===0?G>m:m>G};
var UEo=new R0G;var l8l;var BL2;_.LD({_template:function(){if(BL2!==void 0)return BL2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;l8l===void 0&&(l8l=document.createElement("template"));var W=l8l;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return BL2=m},
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&&_.TP(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.TP(this.parentNode).removeChild(this)},
_onTransitionend:function(m){m&&m.target===this&&this.complete()},
_openedChanged:function(m){m?this.prepare():(m=window.getComputedStyle(this),m.transitionDuration!=="0s"&&m.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 uN=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;av(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)};
uN.prototype._bringOverlayAtIndexToFront=function(m){var G=this._overlays[m];if(G){var K=this._overlays.length-1,W=this._overlays[K];W&&this._shouldBeBehindOverlay(G,W)&&K--;if(!(m>=K)){W=Math.max(this._getZ(_.MZP(this)),this._minimumZ);for(this._getZ(G)<=W&&this._applyOverlayZ(G,W);m<K;)this._overlays[m]=this._overlays[m+1],m++;this._overlays[K]=G}}};
uN.prototype.addOverlay=function(m){var G=this._overlays.indexOf(m);if(G>=0)this._bringOverlayAtIndexToFront(G);else{G=this._overlays.length;var K=this._overlays[G-1],W=Math.max(this._getZ(K),this._minimumZ),L=this._getZ(m);K&&this._shouldBeBehindOverlay(m,K)&&(this._applyOverlayZ(K,W),G--,W=Math.max(this._getZ(this._overlays[G-1]),this._minimumZ));L<=W&&this._applyOverlayZ(m,W);this._overlays.splice(G,0,m)}this.trackBackdrop()};
uN.prototype.removeOverlay=function(m){m=this._overlays.indexOf(m);m!==-1&&(this._overlays.splice(m,1),this.trackBackdrop())};
_.MZP=function(m){return m._overlays[m._overlays.length-1]};
_.w=uN.prototype;_.w.trackBackdrop=function(){var m=this._overlayWithBackdrop();if(m||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(m)-1,this.backdropElement.opened=!!m,this.backdropElement.prepare()};
_.w._overlayWithBackdrop=function(){for(var m=this._overlays.length-1;m>=0;m--)if(this._overlays[m].withBackdrop)return this._overlays[m]};
_.w._getZ=function(m){var G=this._minimumZ;if(m){var K,W,L=Number(((K=m.hostElement)!=null?K:m).style.zIndex||window.getComputedStyle((W=m.hostElement)!=null?W:m).zIndex);L===L&&(G=L)}return G};
_.w._setZ=function(m,G){var K;((K=m.hostElement)!=null?K:m).style.zIndex=G};
_.w._applyOverlayZ=function(m,G){this._setZ(m,G+2)};
_.w._overlayInPath=function(m){m=m||[];for(var G=0;G<m.length;G++){var K=void 0;if(((K=m[G].polymerController)!=null?K:m[G])._manager===this)return m[G]}};
_.w._onCaptureClick=function(m){var G=this._overlays.length-1;if(G!==-1)for(var K=_.TP(m).path,W,L;(W=this._overlays[G])&&this._overlayInPath(K)!==((L=W.hostElement)!=null?L:W);)if(W._onCaptureClick(m),W.allowClickThrough)G--;else break};
_.w._onCaptureFocus=function(m){var G=_.MZP(this);G&&G._onCaptureFocus(m)};
_.w._onCaptureKeyDown=function(m){var G=_.MZP(this);G&&(_.x4.keyboardEventMatchesKeys(m,"esc")?G._onCaptureEsc(m):_.x4.keyboardEventMatchesKeys(m,"tab")&&G._onCaptureTab(m))};
_.w._shouldBeBehindOverlay=function(m,G){return!m.alwaysOnTop&&G.alwaysOnTop&&!G.contains(m)};
_.e_.Object.defineProperties(uN.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 m=document.activeElement;m&&m instanceof Element!==!1||(m=document.body);for(;m.root&&_.TP(m.root).activeElement;)m=_.TP(m.root).activeElement;return m}}});
_.hp=new uN;var wMv=0,gYJ=0,OUP=null,cps=[],ma=["wheel","mousewheel","DOMMouseScroll"],Y4M;_.F("web_no_lock_on_touchstart_killswitch")&&(ma.push("touchstart"),ma.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;_.pU={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:_.hp},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var m;return this._focusedChild||_.TP((m=this.hostElement)!=null?m:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var m;return _.z0G((m=this.hostElement)!=null?m: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 m;this._observer=_.TP((m=this.hostElement)!=null?m:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var m;_.TP((m=this.hostElement)!=null?m:this).unobserveNodes(this._observer)}this._observer=null;for(var G in this.__rafs)this.__rafs[G]!==null&&cancelAnimationFrame(this.__rafs[G]);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(m){this.fire("iron-overlay-canceled",m,{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 m;((m=this.hostElement)!=null?m:this).style.outline="none";var G;((G=this.hostElement)!=null?G:this).style.display="none"}},
_openedChanged:function(m){if(m){var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-hidden")}else{var K;((K=this.hostElement)!=null?K: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 m;if(this.withBackdrop&&!((m=this.hostElement)!=null?m:this).hasAttribute("tabindex")){var G;((G=this.hostElement)!=null?G:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var K;((K=this.hostElement)!=null?K: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 m;((m=this.hostElement)!=null?m:this).style.display="none";var G;((G=this.hostElement)!=null?G:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var m,G;((m=this.hostElement)!=null?m:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="none";var K,W;((K=this.hostElement)!=null?K:this).style.transform=((W=this.hostElement)!=null?W:this).style.webkitTransform="none";var L;((L=this.hostElement)!=null?L:this).style.display=""},
_finishPositioning:function(){var m;((m=this.hostElement)!=null?m:this).style.display="none";this.scrollTop=this.scrollTop;var G,K;((G=this.hostElement)!=null?G:this).style.transition=((K=this.hostElement)!=null?K:this).style.webkitTransition="";var W,L;((W=this.hostElement)!=null?W:this).style.transform=((L=this.hostElement)!=null?L:this).style.webkitTransform="";var A;((A=this.hostElement)!=null?A:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var m=this._manager.deepActiveElement,G;if(!(G=m===document.body))a:{for(;m;m=m.assignedSlot||m.parentNode||m.host)if(m===this){G=!0;break a}G=!1}G&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(m){this.noCancelOnOutsideClick||this.cancel(m)},
_onCaptureFocus:function(m){if(this.withBackdrop){var G=_.TP(m).path;G.indexOf(this)===-1?(m.stopPropagation(),this._applyFocus()):this._focusedChild=G[0]}},
_onCaptureEsc:function(m){this.noCancelOnEscKey||this.cancel(m)},
_onCaptureTab:function(m){if(this.withBackdrop){this.__ensureFirstLastFocusables();var G=m.shiftKey,K=G?this.__firstFocusableNode:this.__lastFocusableNode;G=G?this.__lastFocusableNode:this.__firstFocusableNode;if(K===G)K=!0;else{var W=this._manager.deepActiveElement;K=W===K||W===this}K&&(m.preventDefault(),this._focusedChild=G,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 m=this._focusableNodes;this.__firstFocusableNode=m[0];this.__lastFocusableNode=m[m.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(m,G){var K=this.__rafs;K[m]!==null&&cancelAnimationFrame(K[m]);K[m]=requestAnimationFrame(function(){K[m]=null;G.call(this)}.bind(this))},
__updateScrollObservers:function(m,G,K){m&&G&&this.__isValidScrollAction(K)?(K==="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),Y4M=_._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()):(m=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),m!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(m,1),Y4M=_._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(sp)for(var m=this;m;)m.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&m.host&&this.__rootNodes.push(m),m=m.host||m.assignedSlot||m.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(G){G.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(m){m.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(m){return m==="lock"||m==="refit"||m==="cancel"},
__onCaptureScroll:function(m){if(!(this.__isAnimating||_.TP(m).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(m)}},
__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)}};
_.Jp=[Xo4,_.mH,_.pU];_.LD({_template:function(){if(f8F!==void 0)return f8F;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;e0F===void 0&&(e0F=document.createElement("template"));var W=e0F;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return f8F=m},
is:"tp-yt-iron-dropdown",behaviors:[_.XY,_.x4,_.Jp,rA4],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 m=_.TP(this.$.content).getDistributedNodes(),G=0,K=m.length;G<K;G++)if(m[G].nodeType===Node.ELEMENT_NODE)return m[G]},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(),_.pU._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.pU._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.pU._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var m=this.containedElement,G=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),K=0;K<G.length;K++)G[K].node=m;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(m){this._readied&&(m?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var m=this.focusTarget||this.containedElement;m&&this.opened&&!this.noAutoFocus?m.focus():_.pU._applyFocus.apply(this,arguments)}});var TLo;var mNK;/*

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 iVk=new _.lh({type:"iconset"});
_.LD({_template:function(){if(mNK!==void 0)return mNK;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;TLo===void 0&&(TLo=document.createElement("template"));
var W=TLo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return mNK=m},
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(m){m=(m||"").split(":");this._iconName=m.pop();this._iconsetName=m.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&&_.TP(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=iVk.byKey(this._iconsetName)){var m=this._iconset.applyIcon(this,this._iconName,this.theme);m&&m.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,_.TP(this.root).appendChild(this._img)}});var Gs0;var KW0;_.LD({_template:function(){if(KW0!==void 0)return KW0;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;Gs0===void 0&&(Gs0=document.createElement("template"));var W=Gs0;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return KW0=m},
is:"tp-yt-iron-input",behaviors:[_.Mt],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(){_.YY.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.TP(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.TP(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 m=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":m=/[0-9.,e-]/}return m},_bindValueChanged:function(m,G){G&&(m===void 0?G.value=null:m!==G.value&&(this.inputElement.value=m),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:m}))},
_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(m){var G=m.keyCode==19||m.keyCode==20||m.keyCode==45||m.keyCode==46||m.keyCode==144||m.keyCode==145||m.keyCode>32&&m.keyCode<41||m.keyCode>111&&m.keyCode<124;return!(m.keyCode==8||m.keyCode==9||m.keyCode==13||m.keyCode==27)&&!(m.charCode==0&&G)},
_onKeypress:function(m){if(this.allowedPattern||this.inputElement.type==="number"){var G=this._patternRegExp;if(G&&!(m.metaKey||m.ctrlKey||m.altKey)){this._patternAlreadyChecked=!0;var K=String.fromCharCode(m.charCode);this._isPrintable(m)&&!G.test(K)&&(m.preventDefault(),this._announceInvalidCharacter("Invalid character "+K+" not entered."))}}},
_checkPatternValidity:function(){var m=this._patternRegExp;if(!m)return!0;for(var G=0;G<this.inputElement.value.length;G++)if(!m.test(this.inputElement.value[G]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var m=this.inputElement.checkValidity();m&&(this.required&&this.bindValue===""?m=!1:this.hasValidator()&&(m=_.Mt.validate.call(this,this.bindValue)));this.invalid=!m;this.fire("iron-input-validate");return m},
_announceInvalidCharacter:function(m){this.fire("iron-announce",{text:m})},
_computeValue:function(m){return m}});var WWK;var LWk;var AYS=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),wbC=AYS&&AYS[1]>=8;
_.LD({_template:function(){if(LWk!==void 0)return LWk;var m=document.createElement("template");_.b(m,'\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 aria-label="[[listAriaLabel]]" id="items" role="list" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;WWK===void 0&&(WWK=document.createElement("template"));var W=WWK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return LWk=m},
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},listAriaLabel:{type:String}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[s4s,_.mH,_.Ya0,YhG],_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 _.TP(_.TP(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var m=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,m-this._physicalCount)},set _virtualStart(m){m=this._clamp(m,0,this._maxVirtualStart);this.grid&&(m-=m%this._itemsPerRow);this._virtualStartVal=m},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(m){m%=this._physicalCount;m<0&&(m=this._physicalCount+m);this.grid&&(m-=m%this._itemsPerRow);this._physicalStartVal=m},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(m){this._physicalCountVal=m},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 m=this._firstVisibleIndexVal;if(m==null){var G=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
m=this._iterateItems(function(K,W){G+=this._getPhysicalSizeIncrement(K);if(G>this._scrollPosition)return this.grid?W-W%this._itemsPerRow:W;if(this.grid&&this._virtualCount-1===W)return W-W%this._itemsPerRow})||0}return m},
get lastVisibleIndex(){var m=this._lastVisibleIndexVal;if(m==null){if(this.grid)m=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var G=this._physicalTop+this._scrollOffset;this._iterateItems(function(K,W){G<this._scrollBottom&&(m=W);G+=this._getPhysicalSizeIncrement(K)})}this._lastVisibleIndexVal=m}return m},
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,_.Gk);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(m){this.style.webkitOverflowScrolling=m===this?"touch":"";this.style.overflowY=m===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Gk)},
updateViewportBoundaries:function(){var m=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(m["padding-top"],10);this._isRTL=m.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var m=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),G=m-this._scrollPosition,K=G>=0;this._scrollPosition=m;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(G)>this._physicalSize&&this._physicalSize>0?(G-=this._scrollOffset,K=Math.round(G/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=K,this._physicalStart+=K,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(m=this._getReusables(K),K?(this._physicalTop=m.physicalTop,this._virtualStart+=m.indexes.length,this._physicalStart+=m.indexes.length):(this._virtualStart=this._virtualStart-m.indexes.length,this._physicalStart=this._physicalStart-m.indexes.length),this._update(m.indexes,K?null:m.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),bY))},
_getReusables:function(m){var G=[],K=this._hiddenContentSize*this._ratio,W=this._virtualStart,L=this._virtualEnd,A=this._physicalCount,O=this._physicalTop+this._scrollOffset;var c=this._physicalBottom+this._scrollOffset;var u=this._scrollPosition,h=this._scrollBottom;if(m){var J=this._physicalStart;c=u-O}else J=this._physicalEnd,c-=h;for(;;){var N=this._getPhysicalSizeIncrement(J);c-=N;if(G.length>=A||c<=K)break;if(m){if(L+G.length+1>=this._virtualCount)break;if(O+N>=u-this._scrollOffset)break;G.push(J);
O+=N;J=(J+1)%A}else{if(W-G.length<=0)break;if(O+this._physicalSize-N<=h)break;G.push(J);O-=N;J=J===0?A-1:J-1}}return{indexes:G,physicalTop:O-this._scrollOffset}},
_update:function(m,G){if(!(m&&m.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(m);this._updateMetrics(m);if(G)for(;G.length;)m=G.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(m);this._positionItems();this._updateScrollerSize()}},
_createPool:function(m){this._ensureTemplatized();var G,K=Array(m);for(G=0;G<m;G++){var W=this.stamp(null);K[G]=W.root.querySelector("*");this._itemsParent.appendChild(W.root)}return K},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(m){m=this._clamp(this._physicalCount+m,3,this._virtualCount-this._virtualStart);m=this._convertIndexToCompleteRow(m);if(this.grid){var G=m%this._itemsPerRow;G&&m-G<=this._physicalCount&&(m+=this._itemsPerRow);m-=G}m-=this._physicalCount;G=Math.round(this._physicalCount*.5);if(!(m<0)){if(m>0){G=window.performance.now();[].push.apply(this._physicalItems,this._createPool(m));for(var K=0;K<m;K++)this._physicalSizes.push(0);this._physicalCount+=m;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=m);this._update();this._templateCost=(window.performance.now()-G)/m;G=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||G===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,G)),Rg0):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,G),bY))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var m=this._getReusables(!0);this._physicalTop=m.physicalTop;this._virtualStart+=m.indexes.length;this._physicalStart+=m.indexes.length;this._update(m.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 m={__key__:!0};m[this.as]=!0;m[this.indexAs]=!0;m[this.selectedAs]=!0;m.tabIndex=!0;this._instanceProps=m;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(m,G){typeof G!=="undefined"&&(this.notifyResize(),_.yv(),m&&this._updateGridMetrics())},
_itemsChanged:function(m){if(m.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,
_.Gk);else if(m.path==="items.splices"){this._adjustVirtualIndex(m.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(m.value.indexSplices.some(function(K){return K.addedCount>0||K.removed.length>0})){var G=this._getActiveElement();
this.contains(G)&&G.blur()}m=m.value.indexSplices.some(function(K){return K.index+K.addedCount>=this._virtualStart&&K.index<=this._virtualEnd},this);
this._isClientFull()&&!m||this._debounce("_render",this._render,_.Gk)}else m.path!=="items.length"&&this._forwardItemPath(m.path,m.value)},
_forwardItemPath:function(m,G){m=m.slice(6);var K=m.indexOf(".");K===-1&&(K=m.length);var W,L=this.modelForElement(this._offscreenFocusedItem),A=parseInt(m.substring(0,K),10);if(W=this._isIndexRendered(A)){var O=this._getPhysicalIndex(A);var c=this.modelForElement(this._physicalItems[O])}else L&&(c=L);c&&c[this.indexAs]===A&&(m=m.substring(K+1),m=this.as+(m?"."+m:""),c._setPendingPropertyOrPath(m,G,!1,!0),c._flushProperties&&c._flushProperties(),W&&(this._updateMetrics([O]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(m){m.forEach(function(G){G.removed.forEach(this._removeItem,this);G.index<this._virtualStart&&(G=Math.max(G.addedCount-G.removed.length,G.index-this._virtualStart),this._virtualStart+=G,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=G))},this)},
_removeItem:function(m){this.$.selector.deselect(m);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===m&&this._removeFocusedItem()},
_iterateItems:function(m,G){var K,W;if(arguments.length===2&&G)for(W=0;W<G.length;W++){var L=G[W];var A=this._computeVidx(L);if((K=m.call(this,L,A))!=null)return K}else{L=this._physicalStart;for(A=this._virtualStart;L<this._physicalCount;L++,A++)if((K=m.call(this,L,A))!=null)return K;for(L=0;L<this._physicalStart;L++,A++)if((K=m.call(this,L,A))!=null)return K}},
_computeVidx:function(m){return m>=this._physicalStart?this._virtualStart+(m-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+m},
_assignModels:function(m){this._iterateItems(function(G,K){var W=this._physicalItems[G],L=this.items&&this.items[K];if(L!=null){var A=this.modelForElement(W);A.__key__=null;this._forwardProperty(A,this.as,L);this._forwardProperty(A,this.selectedAs,this.$.selector.isSelected(L));this._forwardProperty(A,this.indexAs,K);this._forwardProperty(A,"tabIndex",this._focusedVirtualIndex===K?0:-1);this._physicalIndexForKey[A.__key__]=G;A._flushProperties&&A._flushProperties(!0);W.removeAttribute("hidden")}else W.setAttribute("hidden",
"")},m)},
_updateMetrics:function(m){_.yv();var G=0,K=0,W=this._physicalAverageCount,L=this._physicalAverage;this._iterateItems(function(A){K+=this._physicalSizes[A];this._physicalSizes[A]=this._physicalItems[A].offsetHeight;G+=this._physicalSizes[A];this._physicalAverageCount+=this._physicalSizes[A]?1:0},m);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(K=this._itemsPerRow===1?K:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+G-K,this._itemsPerRow=1);this._physicalAverageCount!==W&&(this._physicalAverage=Math.round((L*W+G)/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 m=this._physicalTop;if(this.grid){var G=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(K,W){var L=Math.floor(W%this._itemsPerRow*this._itemWidth+G);this._isRTL&&(L*=-1);this.translate3d(L+"px",m+"px",0,this._physicalItems[K]);this._shouldRenderNextRow(W)&&(m+=this._rowHeight)})}else this._iterateItems(function(K){this.translate3d(0,m+"px",0,this._physicalItems[K]);
m+=this._physicalSizes[K]})},
_getPhysicalSizeIncrement:function(m){return this.grid?this._computeVidx(m)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[m]},
_shouldRenderNextRow:function(m){return m%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var m=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(m!==0){this._physicalTop=this._physicalTop-m;var G=this._scrollPosition;!wbC&&G>0&&this._resetScrollPosition(G-m)}},
_resetScrollPosition:function(m){this.scrollTarget&&m>=0&&(this._scrollPosition=this._scrollTop=m)},
_updateScrollerSize:function(m){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((m=(m=(m=m||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(m){return this.scrollToIndex(this.items.indexOf(m))},
scrollToIndex:function(m){if(!(typeof m!=="number"||m<0||m>this.items.length-1)&&(_.yv(),this._physicalCount!==0)){m=this._clamp(m,0,this._virtualCount-1);if(!this._isIndexRendered(m)||m>=this._maxVirtualStart)this._virtualStart=this.grid?m-this._itemsPerRow*2:m-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var G=this._physicalStart,K=this._virtualStart,W=0,L=this._hiddenContentSize;K<m&&
W<=L;)W+=this._getPhysicalSizeIncrement(G),G=(G+1)%this._physicalCount,K++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+W);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)},_.Gk)},
selectItem:function(m){return this.selectIndex(this.items.indexOf(m))},
selectIndex:function(m){if(!(m<0||m>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(m)){var G=this.modelForElement(this._physicalItems[this._getPhysicalIndex(m)]);G&&(G[this.selectedAs]=!0);this.updateSizeForIndex(m)}this.$.selector.selectIndex(m)}},
deselectItem:function(m){return this.deselectIndex(this.items.indexOf(m))},
deselectIndex:function(m){m<0||m>=this._virtualCount||(this._isIndexRendered(m)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(m)])[this.selectedAs]=!1,this.updateSizeForIndex(m)),this.$.selector.deselectIndex(m))},
toggleSelectionForItem:function(m){return this.toggleSelectionForIndex(this.items.indexOf(m))},
toggleSelectionForIndex:function(m){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(m):this.$.selector.isSelected(this.items[m]))?this.deselectIndex(m):this.selectIndex(m)},
clearSelection:function(){this._iterateItems(function(m){this.modelForElement(this._physicalItems[m])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(m){(m?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(m){var G=this.modelForElement(m.target);if(G){var K=_.TP(m).path[0];m=this._getActiveElement();var W=this._physicalItems[this._getPhysicalIndex(G[this.indexAs])];if(K.localName!=="input"&&K.localName!=="button"&&K.localName!=="select"){K=G.tabIndex;G.tabIndex=-100;var L=m?m.tabIndex:-1;G.tabIndex=K;m&&W!==m&&W.contains(m)&&L!==-100||this.toggleSelectionForItem(G[this.as])}}},
_multiSelectionChanged:function(m){this.clearSelection();this.$.selector.multi=m},
updateSizeForItem:function(m){return this.updateSizeForIndex(this.items.indexOf(m))},
updateSizeForIndex:function(m){if(!this._isIndexRendered(m))return null;this._updateMetrics([this._getPhysicalIndex(m)]);this._positionItems();return null},
_manageFocus:function(){var m=this._focusedVirtualIndex;m>=0&&m<this._virtualCount?this._isIndexRendered(m)?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(m){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(m/this._itemsPerRow)*this._itemsPerRow:m},
_isIndexRendered:function(m){return m>=this._virtualStart&&m<=this._virtualEnd},
_isIndexVisible:function(m){return m>=this.firstVisibleIndex&&m<=this.lastVisibleIndex},
_getPhysicalIndex:function(m){return(this._physicalStart+(m-this._virtualStart))%this._physicalCount},
focusItem:function(m){this._focusPhysicalItem(m)},
_focusPhysicalItem:function(m){if(!(m<0||m>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(m)||this.scrollToIndex(m);var G=this._physicalItems[this._getPhysicalIndex(m)],K=this.modelForElement(G),W;K.tabIndex=-100;G.tabIndex===-100&&(W=G);W||(W=_.TP(G).querySelector('[tabindex="-100"]'));K.tabIndex=0;this._focusedVirtualIndex=m;W&&W.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 m=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var G=this.stamp(null);this._focusBackfillItem=G.root.querySelector("*");this._itemsParent.appendChild(G.root)}this._offscreenFocusedItem=this._physicalItems[m];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[m]=this._focusBackfillItem;this._focusedPhysicalIndex=m;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var m=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),G=this._physicalItems[m];if(G){var K=this.modelForElement(G),W=this.modelForElement(this._offscreenFocusedItem);K[this.as]===W[this.as]?(this._focusBackfillItem=G,K.tabIndex=-1,this._physicalItems[m]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(m){m=this.modelForElement(m.target);var G=this.modelForElement(this._focusedItem),K=this._offscreenFocusedItem!==null,W=this._focusedVirtualIndex;m&&(G===m?this._isIndexVisible(W)||this.scrollToIndex(W):(this._restoreFocusedItem(),G&&(G.tabIndex=-1),m.tabIndex=0,this._focusedVirtualIndex=W=m[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(W),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],K&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(m){switch(m.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&m.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&&m.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(m)}},
_clamp:function(m,G,K){return Math.min(K,Math.max(G,m))},
_debounce:function(m,G,K){this._debouncers=this._debouncers||{};this._debouncers[m]=_.C2(this._debouncers[m],K,G.bind(this));_.Vv(this._debouncers[m])},
_forwardProperty:function(m,G,K){m._setPendingProperty(G,K)},
_forwardHostPropV2:function(m,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&this.modelForElement(K).forwardHostProp(m,G)},this)},
_notifyInstancePropV2:function(m,G,K){XYP(this.as,G)&&(m=m[this.indexAs],G==this.as&&(this.items[m]=K),this.notifyPath(KC(this.as,"items."+m,G),K))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(m,G,K){G.indexOf(this.as+".")===0&&this.notifyPath("items."+m.__key__+"."+G.slice(this.as.length+1),K)},
_forwardParentPath:function(m,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&this.modelForElement(K).notifyPath(m,G)},this)},
_forwardParentProp:function(m,G){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(K){K&&(this.modelForElement(K)[m]=G)},this)},
_getActiveElement:function(){var m=this._itemsParent.node.domHost;return _.TP(m?m.root:document).activeElement},
_scrollTargetChanged:function(m,G){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(G)if(m==="document")this.scrollTarget=this._doc;else if(typeof m==="string"){var K,W;this.scrollTarget=(G=(W=(K=this.domHost)==null?void 0:K.polymerController)!=null?W:this.domHost)&&G.$?G.$[m]:_.TP(this.ownerDocument).querySelector("#"+m)}else this._isValidScrollTarget()&&(this._oldScrollTarget=m,this._toggleScrollListener(this._shouldHaveListener,m))}});var gvo;var OVS;var cYG=function(m,G,K,W){m-=K;G-=W;return Math.sqrt(m*m+G*G)},Y10=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
rps.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var uVd=function(m){m.maxRadius=0;m.mouseDownStart=0;m.mouseUpStart=0;m.xStart=0;m.yStart=0;m.xEnd=0;m.yEnd=0;m.containerMetrics=new rps(m.element)};
hid.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var m=Y10()-this.mouseDownStart;this.mouseUpStart&&(m-=this.mouseUpElapsed);return m},get mouseUpElapsed(){return this.mouseUpStart?Y10()-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 m=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(m*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-m/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var m=this.radius/(this.containerMetrics.size/2);var G=this.xNow-this.containerMetrics.width/2;var K=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+G+"px, "+K+"px)";this.waveContainer.style.transform="translate3d("+G+"px, "+K+"px, 0)";this.wave.style.webkitTransform="scale("+m+","+m+")";this.wave.style.transform="scale3d("+m+","+m+",1)"},
downAction:function(m){var G=this.containerMetrics.width/2,K=this.containerMetrics.height/2;uVd(this);this.mouseDownStart=Y10();this.center?(this.xStart=G,this.yStart=K):(this.xStart=m?m.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=m?m.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=G,this.yEnd=K);m=this.containerMetrics;G=this.xStart;K=this.yStart;this.maxRadius=Math.max(cYG(G,K,0,0),cYG(G,K,
m.width,0),cYG(G,K,0,m.height),cYG(G,K,m.width,m.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=Y10())},
remove:function(){_.TP(_.TP(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.LD({_template:function(){if(OVS!==void 0)return OVS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;gvo===void 0&&(gvo=document.createElement("template"));var W=gvo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return OVS=m},
is:"tp-yt-paper-ripple",behaviors:[_.x4],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(){_.TP(this).parentNode.nodeType==11?this.keyEventTarget=_.TP(this).getOwnerRoot().host:this.keyEventTarget=_.TP(this).parentNode;var m=this.keyEventTarget;this.listen(m,"up","uiUpAction");this.listen(m,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(m){m.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var m=0;m<this.ripples.length;++m)if(!this.ripples[m].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(m){this.noink||this.downAction(m)},
downAction:function(m){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(m),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(m){this.noink||this.upAction(m)},
upAction:function(m){this.holdDown||(this.ripples.forEach(function(G){G.upAction(m)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var m=0;m<this.ripples.length;++m){var G=this.ripples[m];G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var m=new hid(this);_.TP(this.$.waves).appendChild(m.waveContainer);this.$.background.style.backgroundColor=m.color;this.ripples.push(m);this._setAnimating(!0);return m},
removeRipple:function(m){var G=this.ripples.indexOf(m);G<0||(this.ripples.splice(G,1),m.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var m;for(m=0;m<this.ripples.length;++m){var G=this.ripples[m];G.draw();this.$.background.style.opacity=G.outerOpacity;G.isOpacityFullyDecayed&&!G.isRestingAtMaxRadius&&this.removeRipple(G)}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(m,G){G!==void 0&&(m?this.downAction():this.upAction())}});var NA={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(m){Si._downHandler.call(this,m);this.pressed&&this.ensureRipple(m)},
ensureRipple:function(m){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var G=this._rippleContainer||this.root;G&&_.TP(G).appendChild(this._ripple);if(m){G=_.TP(this._rippleContainer||this);var K=_.TP(m).rootTarget;G.deepContains(K)&&this._ripple.uiDownAction(m)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(m){this.hasRipple()&&(this._ripple.noink=m)}};var rYK={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 m=1;this.disabled?m=0:this.active||this.pressed?m=4:this.receivedFocusFromKeyboard&&(m=3);this._setElevation(m)},
_computeKeyboardClass:function(m){this.toggleClass("keyboard-focus",m)},
_spaceKeyDownHandler:function(m){Si._spaceKeyDownHandler.call(this,m);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(m){Si._spaceKeyUpHandler.call(this,m);this.hasRipple()&&this._ripple.uiUpAction()}},uo2=[mPk,
_.XY,NA,rYK];_.hTC={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(m){m&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=m)},
_createRipple:function(){var m=NA._createRipple();m.id="ink";m.setAttribute("center","");m.classList.add("circle");return m}};
_.pbB=[mPk,_.XY,NA,_.hTC];_.JY4=[_.pbB,KNl,{_checkedChanged:function(){Gek._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){NA._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var N3F;var DNP;var tkP=function(){};
_.w=tkP.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._buttonStateChanged=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._createRipple=function(){};
_.w._noinkChanged=function(){};
_.w._computeKeyboardClass=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
_.w._setElevation=function(){};
tkP=_.LD({_template:function(){if(DNP!==void 0)return DNP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;N3F===void 0&&(N3F=document.createElement("template"));var W=N3F;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return DNP=m},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[uo2],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?rYK._calculateElevation.apply(this):this._setElevation(0)}});var FW2;var QSS;var aSB={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(m){_.F("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(m)},
_onDialogClickWrapped:function(m){_.F("dialog_behavior_no_tap_killswitch")||this._onDialogClick(m)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(m,G){G&&(m?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(m){if(m){var G;((G=this.hostElement)!=null?G:this).setAttribute("aria-modal","true")}else{var K;((K=this.hostElement)!=null?K:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(m){this.closingReason=this.closingReason||{};this.closingReason.confirmed=m},
_onDialogClick:function(m){for(var G=_.TP(m).path,K=0,W,L=G.indexOf((W=this.hostElement)!=null?W:this);K<L;K++)if(W=G[K],W.hasAttribute&&(W.hasAttribute("dialog-dismiss")||W.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(W.hasAttribute("dialog-confirm"));this.close();m.stopPropagation();break}}},ovl=[_.Jp,
aSB];var nvk=document.createElement("template");_.b(nvk,'<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(nvk.content);var bVG=document.createElement("template");_.b(bVG,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(bVG.content);_.LD({_template:function(){if(QSS!==void 0)return QSS;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;FW2===void 0&&(FW2=document.createElement("template"));var W=FW2;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return QSS=m},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[ovl,rA4],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 vvi;var $NX;_.LD({_template:function(){if($NX!==void 0)return $NX;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;vvi===void 0&&(vvi=document.createElement("template"));var W=vvi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return $NX=m},
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 m,G,K;if(((m=window.ShadyDOM)==null?void 0:m.noPatch)!==!0&&((G=window.ShadyDOM)==null?void 0:G.noPatch)!=="on-demand"||((K=this.__shady_parentNode)==null?void 0:K.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(aSB)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var sSo=_.nY(['<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>']),q10=_.J94(sSo);q10.setAttribute("style","display: none;");document.head.appendChild(q10.content);var EvF;var HVS;var ISk;var jS2;_.LD({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[iN],configure:function(m){var G=m.node,K=G.getBoundingClientRect().height;return this._effect=new KeyframeEffect(G,[{height:K/2+"px"},{height:K+"px"}],this.timingFromConfig(m))}});
_.LD({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[iN],configure:function(m){var G=m.node,K=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:K/2+"px"},{width:K+"px"}],this.timingFromConfig(m))}});
_.LD({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[iN],configure:function(m){var G=m.node,K=G.getBoundingClientRect().width;return this._effect=new KeyframeEffect(G,[{width:K+"px"},{width:K-K/20+"px"}],this.timingFromConfig(m))}});
_.LD({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[iN],configure:function(m){var G=m.node,K=G.getBoundingClientRect().height;this.setPrefixedProperty(G,"transformOrigin","0 0");return this._effect=new KeyframeEffect(G,[{height:K+"px",transform:"translateY(0)"},{height:K/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(m))}});var Dp={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},ksG=function(){};
_.w=ksG.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._focusBlurHandler=function(){};
_.w._changedControlState=function(){};
_.w._setFocused=function(){};
ksG=_.LD({_template:function(){if(jS2!==void 0)return jS2;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;ISk===void 0&&(ISk=document.createElement("template"));var W=ISk;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return jS2=m},
is:"tp-yt-paper-menu-button",behaviors:[_.x4,_.XY],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:Dp.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Dp.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:Dp.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 m=_.TP(this.$.content).getDistributedNodes(),G=0,K=m.length;G<K;G++)if(m[G].nodeType===Node.ELEMENT_NODE)return m[G]},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(m,G){m?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):G!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(m){_.XY._disabledChanged.apply(this,arguments);m&&this.opened&&this.close()},
__onIronOverlayCanceled:function(m){var G=this.$.trigger;_.TP(m.detail).path.indexOf(G)>-1&&m.preventDefault()}});
Object.keys(Dp).forEach(function(m){ksG[m]=Dp[m]});var C7B=_.RU.IronButtonState,Vko=(0,_.lD)(HTMLElement);
_.LD({_template:function(){if(HVS!==void 0)return HVS;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;EvF===void 0&&(EvF=document.createElement("template"));var W=EvF;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return HVS=m},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[C7B,_.XY,NA,_.zU,_.Mt],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(m){var G=(0,_.cv)(this);G.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:m});G.shadowRoot.appendChild(m);return Vko.prototype._attachDom.call(this,m)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var m=this.contentElement;m&&m.selectedItem&&this._setSelectedItem(m.selectedItem)},
get contentElement(){for(var m=_.TP(this.$.content).getDistributedNodes(),G=0,K=m.length;G<K;G++)if(m[G].nodeType===Node.ELEMENT_NODE)return m[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(m){this._setSelectedItem(m.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(m){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m)===this&&this.open()},
_selectedItemChanged:function(m){var G="";m?G=m.label||m.getAttribute("label")||m.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(m,G){return G?G:m?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var m=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",m)},
_computeLabelClass:function(m,G,K){var W="label";if(m)K&&(W+=" label-is-hidden");else if(K||G)W+=" label-is-floating";return W},
_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 ZVi;var dNR;_.LD({is:"tp-yt-paper-icon-button",_template:function(){if(dNR!==void 0)return dNR;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;ZVi===void 0&&(ZVi=document.createElement("template"));var W=ZVi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return dNR=m},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.pbB],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(m,G){var K=this.getAttribute("aria-label");K&&G!=K||this.setAttribute("aria-label",m)}});var P7o;var yYP;_.tp=[mPk,_.XY,{hostAttributes:{role:"option",tabindex:"0"}}];_.LD({_template:function(){if(yYP!==void 0)return yYP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;P7o===void 0&&(P7o=document.createElement("template"));var W=P7o;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return yYP=m},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.tp]});var eTR;var fSP;var xNl={attached:function(){this.fire("addon-attached")},
update:function(){}};var XbR=1,S1B=1,RTR=1,UNR=[_.XY,_.x4,{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();!sL&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(m,G){m?m=m+" "+G:m=G;return m},
_onAddonAttached:function(m){m=_.TP(m).rootTarget;if(m.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,m.id);else{var G="paper-input-add-on-"+S1B++;m.id=G;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,G)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(m){_.XY._focusBlurHandler.call(this,m);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var m=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",m);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(m){try{var G=this.inputElement.selectionStart;this.value=m;this.inputElement.selectionStart=G;this.inputElement.selectionEnd=G}catch(K){this.value=m}},
_computeAlwaysFloatLabel:function(m,G){return G||m},
_updateAriaLabelledBy:function(){var m=_.TP(this.root).querySelector("label");if(m){if(m.id)var G=m.id;else G="paper-input-label-"+XbR++,m.id=G;this._ariaLabelledBy=G}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+RTR++)},
_onChange:function(m){this.shadowRoot&&this.fire(m.type,{sourceEvent:m},{node:this,bubbles:m.bubbles,cancelable:m.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var m=document.activeElement;m instanceof HTMLElement&&m!==document.body&&m!==document.documentElement||this._focusableElement.focus()}}}];var zTX;var lSi;_.LD({_template:function(){if(lSi!==void 0)return lSi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;zTX===void 0&&(zTX=document.createElement("template"));var W=zTX;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return lSi=m},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[xNl],properties:{_charCounterStr:{type:String,value:"0"}},update:function(m){if(m.inputElement){m.value=m.value||"";var G=m.value.toString().length.toString();m.inputElement.hasAttribute("maxlength")&&(G+="/"+m.inputElement.getAttribute("maxlength"));this._charCounterStr=G}}});var B3S;var MkB;_.LD({_template:function(){if(MkB!==void 0)return MkB;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;B3S===void 0&&(B3S=document.createElement("template"));var W=B3S;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return MkB=m},
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 B$(this.attrForValue)},get _inputElement(){return _.TP(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(m){this._addons||(this._addons=[]);m=m.target;this._addons.indexOf(m)===-1&&(this._addons.push(m),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(m){this._handleValueAndAutoValidate(m.target)},
_onValueChanged:function(m){var G=m.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,G.value===void 0||G.value===""))return;this._handleValueAndAutoValidate(m.target)},
_handleValue:function(m){var G=this._inputElementValue;G||G===0||m.type==="number"&&!m.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:m,value:G,invalid:this.invalid})},
_handleValueAndAutoValidate:function(m){this.autoValidate&&m&&(this.invalid=!(m.validate?m.validate(this._inputElementValue):m.checkValidity()));this._handleValue(m)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(m){if(this._addons)for(var G,K=0;G=this._addons[K];K++)G.update(m)},
_computeInputContentClass:function(m,G,K,W,L){var A="input-content";m?(L&&(A+=" label-is-hidden"),W&&!this.noUnfloatedLabelError&&(A+=" is-invalid")):(m=this.querySelector("label"),G||L?(A+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",W?A+=" is-invalid":K&&(A+=" label-is-highlighted")):(m&&(this.$.labelAndInputContainer.style.position="relative"),W&&!this.noUnfloatedLabelError&&(A+=" is-invalid")));K&&(A+=" focused");return A},
_computeUnderlineClass:function(m,G){var K="underline";G?K+=" is-invalid":m&&(K+=" is-highlighted");return K},
_computeAddOnContentClass:function(m,G){var K="add-on-content";G?K+=" is-invalid":m&&(K+=" is-highlighted");return K}});var T3R;var m3o;_.LD({_template:function(){if(m3o!==void 0)return m3o;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;T3R===void 0&&(T3R=document.createElement("template"));var W=T3R;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return m3o=m},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[xNl],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(m){this._setInvalid(m.invalid)}});_.LD({is:"tp-yt-paper-input",_template:function(){if(fSP!==void 0)return fSP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;eTR===void 0&&(eTR=document.createElement("template"));var W=eTR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return fSP=m},
behaviors:[UNR,_.zU],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 ib0;var G5R;_.LD({_template:function(){if(G5R!==void 0)return G5R;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=
m.content,K=G.insertBefore;ib0===void 0&&(ib0=document.createElement("template"));var W=ib0;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return G5R=m},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.tp]});var KzF;var Wz4;_.LD({_template:function(){if(Wz4!==void 0)return Wz4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;KzF===void 0&&(KzF=document.createElement("template"));var W=KzF;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return Wz4=m},
is:"tp-yt-paper-item-body"});var LzG;var AzC;var wWX=function(){};
_.w=wWX.prototype;_.w.indexOf=function(){};
_.w.selectPrevious=function(){};
_.w.selectNext=function(){};
_.w.selectIndex=function(){};
_.w.forceSynchronousItemUpdate=function(){};
_.w._checkFallback=function(){};
_.w._addListener=function(){};
_.w._removeListener=function(){};
_.w._activateEventChanged=function(){};
_.w._updateItems=function(){};
_.w._selectSelected=function(){};
_.w._filterItem=function(){};
_.w._valueToItem=function(){};
_.w._valueToIndex=function(){};
_.w._indexToValue=function(){};
_.w._valueForItem=function(){};
_.w._observeItems=function(){};
_.w._itemActivate=function(){};
_.w.multiChanged=function(){};
_.w._updateAttrForSelected=function(){};
_.w._updateSelected=function(){};
_.w._selectMulti=function(){};
_.w._selectionChange=function(){};
_.w._toggleSelected=function(){};
_.w._valuesToItems=function(){};
_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w.select=function(){};
_.w._resetTabindices=function(){};
_.w._updateMultiselectable=function(){};
_.w._focusWithKeyboardEvent=function(){};
_.w._clearSearchText=function(){};
_.w._focusPrevious=function(){};
_.w._focusNext=function(){};
_.w._applySelection=function(){};
_.w._focusedItemChanged=function(){};
_.w._onIronItemsChanged=function(){};
_.w._onShiftTabDown=function(){};
_.w._onFocus=function(){};
_.w._onUpKey=function(){};
_.w._onDownKey=function(){};
_.w._onEscKey=function(){};
_.w._onKeydown=function(){};
_.w._activateHandler=function(){};
_.w._disabledChanged=function(){};
_.w._setSelectedItem=function(){};
_.w._setItems=function(){};
_.w._setSelectedItems=function(){};
_.w._setFocusedItem=function(){};
wWX=_.LD({_template:function(){if(AzC!==void 0)return AzC;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;LzG===void 0&&(LzG=document.createElement("template"));var W=LzG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return AzC=m},
is:"tp-yt-paper-listbox",behaviors:[wXB],hostAttributes:{role:"listbox"}});var gZK;var ObP;var czS={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(m,G){return[m||G?"active":"",G?"cooldown":""].join(" ")},
__activeChanged:function(m,G){this.__setAriaHidden(!m);this.__coolingDown=!m&&G},
__altChanged:function(m){this.setAttribute("aria-label",m||"loading")},
__setAriaHidden:function(m){m?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.LD({_template:function(){if(ObP!==void 0)return ObP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;gZK===void 0&&(gZK=document.createElement("template"));var W=gZK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return ObP=m},
is:"tp-yt-paper-spinner",behaviors:[czS]});var Y52;var rzo;_.LD({_template:function(){if(rzo!==void 0)return rzo;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Y52===void 0&&(Y52=document.createElement("template"));var W=Y52;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return rzo=m},
is:"tp-yt-paper-spinner-lite",behaviors:[czS]});var uN4;var hVF;_.LD({_template:function(){if(hVF!==void 0)return hVF;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;uN4===void 0&&(uN4=document.createElement("template"));var W=uN4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return hVF=m},
is:"tp-yt-paper-tab",behaviors:[_.XY,_.RU.IronButtonState,NA],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 m=_.TP(this).parentNode;return!!m&&!!m.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(m){if(this.link){var G=this.queryEffectiveChildren("a");G&&m.target!==G&&G.click()}}});var pWB;var JzF;var NOk=_.nY(['<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>']),D3P=_.J94(NOk);document.head.appendChild(D3P.content);_.LD({_template:function(){if(JzF!==void 0)return JzF;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;pWB===void 0&&(pWB=document.createElement("template"));var W=pWB;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return JzF=m},
is:"tp-yt-paper-tabs",behaviors:[_.mH,_.OYX],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(m){_.TP(this).querySelectorAll("tp-yt-paper-tab").forEach(m?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(m){m.setAttribute("noink","")},
_removeNoinkAttribute:function(m){m.removeAttribute("noink")},
_computeScrollButtonClass:function(m,G,K,W){return!G||K?"hidden":m?W?"hidden":"not-visible":""},
_computeTabsContentClass:function(m,G){var K="tabs-content";m&&(K+=" scrollable");if(!m||G)K+=" fit-container";return K},
_computeSelectionBarClass:function(m,G){var K="selection-bar";m?K+=" hidden":G&&(K+=" align-bottom");return K},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(m){return""+m},
_onIronSelect:function(m){this._tabChanged(m.detail.item,this._previousTab);this._previousTab=m.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();_.TU._activateHandler.apply(this,arguments)},
_scheduleActivation:function(m,G){this._pendingActivationItem=m;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,G)},
_delayedActivationHandler:function(){var m=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;m.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(m){m.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(m,G){this.scrollable&&this._affectScroll(G&&-G.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(m){this.$.tabsContainer.scrollLeft+=m;m=this.$.tabsContainer.scrollLeft;this._leftHidden=m===0||this.hideScrollButtons;this._rightHidden=m===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(m,G){if(m){var K=this.$.tabsContent.getBoundingClientRect(),W=K.width,L=m.getBoundingClientRect();K=L.left-K.left;this._pos={width:this._calcPercent(L.width,W),left:this._calcPercent(K,W)};if(this.noSlide||G==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var A=G.getBoundingClientRect();G=this.items.indexOf(G);m=this.items.indexOf(m);this.$.selectionBar.classList.add("expand");
m=G<m;this._isRTL&&(m=!m);m?this._positionBar(this._calcPercent(L.left+L.width-A.left,W)-5,this._left):this._positionBar(this._calcPercent(A.left+A.width-L.left,W)-5,this._calcPercent(K,W)+5);this.scrollable&&this._scrollToSelectedIfNeeded(L.width,K)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(m,G){G-=this.$.tabsContainer.scrollLeft;G<0?this.$.tabsContainer.scrollLeft+=G:(G+=m-this.$.tabsContainer.offsetWidth,G>0&&(this.$.tabsContainer.scrollLeft+=G))},
_calcPercent:function(m,G){return 100*m/G},
_positionBar:function(m,G){m=m||0;G=G||0;this._width=m;this._left=G;this.transform("translateX("+G+"%) scaleX("+m/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var m=this.$.selectionBar.classList;m.contains("expand")?(m.remove("expand"),m.add("contract"),this._positionBar(this._pos.width,this._pos.left)):m.contains("contract")&&m.remove("contract")}});var tmB;var FzK;_.LD({_template:function(){if(FzK!==void 0)return FzK;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;tmB===void 0&&(tmB=document.createElement("template"));var W=tmB;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return FzK=m},
is:"tp-yt-paper-textarea",behaviors:[UNR,_.zU],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(m){this.$.input.textarea.selectionStart=m},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(m){this.$.input.textarea.selectionEnd=m},_ariaLabelledByChanged:function(m){this._focusableElement.setAttribute("aria-labelledby",m)},
_ariaDescribedByChanged:function(m){this._focusableElement.setAttribute("aria-describedby",m)},
get _focusableElement(){return this.inputElement.textarea}});var QaS;var aLC;/*

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 oZR=function(){};
_.w=oZR.prototype;_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._focusedChanged=function(){};
_.w.registered=function(){};
_.w._invalidChanged=function(){};
_.w.hasValidator=function(){};
_.w.validate=function(){};
_.w._getValidity=function(){};
_.w._requiredChanged=function(){};
_.w._valueChanged=function(){};
_.w._checkedChanged=function(){};
_.w._buttonStateChanged=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
oZR=_.LD({is:"tp-yt-paper-toggle-button",_template:function(){if(aLC!==void 0)return aLC;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;QaS===void 0&&(QaS=document.createElement("template"));var W=QaS;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return aLC=m},
behaviors:[_.JY4],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");_.Pv(this,function(){_.nC(this,"pan-y")})},
_ontrack:function(m){m=m.detail;m.state==="start"?this._trackStart(m):m.state==="track"?this._trackMove(m):m.state==="end"&&this._trackEnd(m)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(m){m=m.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+m:m)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+m:m));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 m=NA._createRipple();m.id="ink";m.setAttribute("recenters","");m.classList.add("circle","toggle-ink");return m}});var nZR;var bb2;_.LD({_template:function(){if(bb2!==void 0)return bb2;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;nZR===void 0&&(nZR=document.createElement("template"));var W=nZR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return bb2=m},
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 m=_.TP(this).parentNode,G=_.TP(this).getOwnerRoot(),K;this.for?K=_.TP(G).querySelector("#"+this.for):K=m.nodeType==Node.DOCUMENT_FRAGMENT_NODE?G.host:m;return K},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(m){m==="entry"?this.show():m==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.TP(this).textContent.trim()===""){for(var m=!0,G=_.TP(this).getEffectiveChildNodes(),K=0;K<G.length;K++)if(G[K].textContent.trim()!==""){m=!1;break}if(m)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 m=this.offset;this.marginTop!=14&&this.offset==14&&(m=this.marginTop);var G=this.offsetParent.getBoundingClientRect(),K=this._target.getBoundingClientRect(),W=this.getBoundingClientRect(),L=(K.width-W.width)/2,A=(K.height-W.height)/2,O=K.left-G.left,c=K.top-G.top;switch(this.position){case "top":var u=O+L;var h=c-W.height-m;break;case "bottom":u=O+L;h=c+K.height+m;break;case "left":u=O-W.width-m;h=c+A;break;case "right":u=O+K.width+
m,h=c+A}this.fitToVisibleBounds?(G.left+u+W.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,u)+"px",this.style.right="auto"),G.top+h+W.height>window.innerHeight?(this.style.bottom=G.height+"px",this.style.top="auto"):(this.style.top=Math.max(-G.top,h)+"px",this.style.bottom="auto")):(this.style.left=u+"px",this.style.top=h+"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(m){m!==500&&this.updateStyles({"--paper-tooltip-delay-in":m+"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(m){if(m==="entry"&&this.animationEntry!=="")return this.animationEntry;if(m==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[m]&&typeof this.animationConfig[m][0].name==="string"){if(this.animationConfig[m][0].timing&&this.animationConfig[m][0].timing.delay&&this.animationConfig[m][0].timing.delay!==0){var G=this.animationConfig[m][0].timing.delay;m==="entry"?this.updateStyles({"--paper-tooltip-delay-in":G+"ms"}):m==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":G+
"ms"})}return this.animationConfig[m][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 vZB=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(vZB,_.pp);var $3S=_.se(vZB,[0,_.Cg]);var FV=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(FV,_.pp);var sai=[3,4],q5P=[5,6];var EZX=[0,sai,q5P,_.Vn,-1,_.I3,_.ZS,-1,jeS,k7K];var HbC=_.se(FV,EZX),ILG=_.qI(EZX);var jaP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(jaP,_.pp);var k52=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(k52,_.pp);var CZR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(CZR,_.pp);var Vml=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Vml,_.pp);var ZbR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ZbR,_.pp);var Qm=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Qm,_.pp);Qm.prototype.getSource=function(){return _.gL(this,1)};
Qm.prototype.getMessage=function(){return _.wL(this,4)};
Qm.prototype.getData=function(){return _.RG(this,ZbR,8)};var d3X=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(d3X,_.pp);var ak=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ak,_.pp);var ok=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ok,_.pp);var nU=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(nU,_.pp);nU.prototype.getUrl=function(){return _.wL(this,1)};
nU.prototype.setUrl=function(m){return _.LB(this,1,m)};
nU.prototype.hasUrl=function(){return _.q6(_.ze(this,1))!=null};var PZR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(PZR,_.pp);var yz4=[3];var eV0=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(eV0,_.pp);var bN=function(m){var G=new eV0;return _.UV(G,2,m)};
eV0.prototype.getLanguage=function(){return co(this,4,vM)};
var fLB=function(m){var G=bN(1);return _.Cp(G,6,vM,m)},vM=[3,
4,5,6];var x34=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(x34,_.pp);var $Y=function(m){var G=new x34;return _.UV(G,1,m)},s4=function(m,G){return _.Cp(m,2,XWX,G)},XWX=[2,
3,4,5];var S5k=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(S5k,_.pp);var qA=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(qA,_.pp);var RVC=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(RVC,_.pp);var U3l=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(U3l,_.pp);var zVG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(zVG,_.pp);var lLR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(lLR,_.pp);var BOK=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(BOK,_.pp);var MmF=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(MmF,_.pp);var E4=function(m){return _.RG(m,ok,5)};var TOo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(TOo,_.pp);TOo.prototype.getValue=function(){return Lg(this,1)};var mz4=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(mz4,_.pp);var HM=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(HM,_.pp);HM.prototype.getMetadata=function(){return _.Yi(this,lLR,7,Ik)};
HM.prototype.hasMetadata=function(){return _.BX(this,lLR,7,Ik)};
var i_4=_.OZf(HM),Ik=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];var jP=function(m){this.JSC$12483_name_=m;this.files_=[];this.directories_=[];this.directoryMap_={}};
jP.prototype.getName=function(){return this.JSC$12483_name_};var CU=function(m,G){this.callback_=G;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new jP("");GNR(this,m,this.rootDirectory_);kY(this)},GNR=function(m,G,K){for(var W=0;W<G.length;W++){var L=G[W];
L.isFile?(m.fileOps_++,L.file((0,_.AO)(m.handleFileSuccess_,m,K),(0,_.AO)(m.handleFileError_,m))):m.unscannedDirectories_.push(new KPo(L,K))}},kY=function(m){if(m.unscannedDirectories_.length>0&&m.directoryOps_<5&&!m.hasError_){m.directoryOps_++;
var G=m.unscannedDirectories_.shift(),K=G.entry,W=new jP(K.name);G=G.parent;G.directoryMap_[W.getName()]=W;G.directories_.push(W);K=K.createReader();K.readEntries((0,_.AO)(m.handleDirectorySuccess_,m,K,W),(0,_.AO)(m.handleDirectoryError_,m))}m.directoryOps_!=0||m.fileOps_!=0||m.unscannedDirectories_.length!=0&&!m.hasError_||m.callback_(m.rootDirectory_.files_,m.rootDirectory_.directories_,m.hasError_)};
CU.prototype.handleDirectorySuccess_=function(m,G,K){GNR(this,K,G);K.length==0?(this.directoryOps_--,kY(this)):m.readEntries((0,_.AO)(this.handleDirectorySuccess_,this,m,G),(0,_.AO)(this.handleDirectoryError_,this))};
CU.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;kY(this)};
CU.prototype.handleFileSuccess_=function(m,G){m.files_.push(G);this.fileOps_--;kY(this)};
CU.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;kY(this)};
var KPo=function(m,G){this.entry=m;this.parent=G};var Vm=function(m){_.ai.call(this);_.oi(m,"drop",this.onObjectsDropped_,!1,this);_.oi(m,"dragenter",this.onFilesDragged_,!1,this);_.oi(m,"dragover",this.onFilesDragged_,!1,this);_.oi(m,"dragleave",this.onDragLeave_,!1,this);_.oi(m,"dragend",this.onDragLeave_,!1,this)};
_.kJ(Vm,_.ai);var WPF=function(m,G){_.dM.call(this,"f");this.files=m;this.directories=G};
_.kJ(WPF,_.dM);var LP2=function(){_.dM.call(this,"h")};
_.kJ(LP2,_.dM);var As0=function(){_.dM.call(this,"i")};
_.kJ(As0,_.dM);var wZF=function(){_.dM.call(this,"g")};
_.kJ(wZF,_.dM);Vm.prototype.onObjectsDropped_=function(m){var G=this;m.preventDefault();var K=m.event_.dataTransfer;if((m=K&&K.items)&&m.length>0&&m[0].webkitGetAsEntry){K=[];for(var W=[],L=0;L<m.length;L++){var A=m[L].webkitGetAsEntry();A?K.push(A):W.push(m[L])}new CU(K,function(O,c,u){u?G.dispatchEvent(new wZF("Error occurred while reading from the file system.")):G.dispatchEvent(new WPF(O,c,W))})}else(m=K&&K.files)&&this.dispatchEvent(new WPF(Array.from(m),[]))};
Vm.prototype.onFilesDragged_=function(m){m.type==="dragenter"&&this.dispatchEvent(new LP2);m.preventDefault()};
Vm.prototype.onDragLeave_=function(){this.dispatchEvent(new As0)};var gWl=function(m,G){this.JSC$12506_name_=m;this.inputElement_=G};
gWl.prototype.getName=function(){return this.JSC$12506_name_};
gWl.prototype.getInputElement=function(){return this.inputElement_};var Zp=function(m,G,K){G=G===void 0?"single_file":G;K=K===void 0?[]:K;_.ai.call(this);this.overlayTarget_=m;this.parentOverlay_=m!=null?m.parentNode:_.M7("scotty-overlay-parent");this.selectorType_=G;this.acceptTypes_=K;this.overlay_=O_K(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.n(Zp,_.ai);
var O_K=function(m,G,K,W){var L=document.createElement("input");L.setAttribute("type","file");L.setAttribute("name","Filedata");_.oi(L,"change",m.onFilesSelected_,!1,m);K==="multiple_file"&&(L.multiple="true");K==="single_directory"&&(L.webkitdirectory="true");W.length>0&&L.setAttribute("accept",W.join(","));L.style.position="absolute";L.style.overflow="hidden";L.style.height="0px";L.style.width="0px";L.style.opacity="0";L.setAttribute("aria-hidden","true");L.setAttribute("tabIndex",-1);if(m.overlayTarget_!=
null)return L.style.height=G.offsetHeight+"px",L.style.width=G.offsetWidth+"px",m.parentOverlay_&&(m.parentOverlay_.style.position="relative"),_.NN(L,G),aS(L,new _.si(G.offsetLeft,G.offsetTop)),L;m.parentOverlay_.appendChild(L);return L};
Zp.prototype.click=function(){this.overlay_.click()};
Zp.prototype.onFilesSelected_=function(m){a:{try{var G=(new XMLHttpRequest).upload!==void 0;break a}catch(h){}G=!1}if(G){var K;m=Array.from((K=m.target.files)!=null?K:[]);K=[];if(this.selectorType_==="single_directory"&&(_.zb||d8||_.lY)){K=new jP("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(G=0;G<m.length;G++)for(var W=m[G],L=W.webkitRelativePath.split("/"),A=K,O=0;O<L.length;O++){var c=L[O];if(O==L.length-1){c!="."&&A.files_.push(W);break}var u=A.directoryMap_[c];u==void 0&&(c=
u=new jP(c),A.directoryMap_[c.getName()]=c,A.directories_.push(c));A=u}K=K.directories_}this.dispatchEvent(new csK(m,K,null))}else m=m.target.value,m.match(/^c:\\fakepath\\/i)&&(m=m.substring(12)),this.dispatchEvent(new csK([],[],new gWl(m,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=O_K(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var csK=function(m,G){_.dM.call(this,"j");this.files=m;this.directories=G};
_.n(csK,_.dM);var YXB=function(m){this.uploadUrl_=m};var rso=function(){_.ai.call(this)};
_.kJ(rso,_.ai);var db=function(m){_.dM.call(this,m)};
_.kJ(db,_.dM);var PM=function(m){_.dM.call(this,m)};
_.kJ(PM,_.dM);var uX4=function(m,G,K,W,L){_.ai.call(this);K=document.createElement("form");K.setAttribute("method",G);K.setAttribute("enctype","multipart/form-data");K.setAttribute("encoding","multipart/form-data");G=document.createElement("input");G.setAttribute("type","hidden");G.setAttribute("name","metadata");G.setAttribute("value",L);K.appendChild(G);K.appendChild(W);this.JSC$12523_form_=K;m=new _.aQ(m);_.Ct(m,"upload_protocol","multipart");this.JSC$12523_url_=m.toString();this.JSC$12523_request_=new KA;this.state_=
"Ready";this.JSC$12523_errorDescription_=null;this.JSC$12523_eventHandler_=new _.gM(this);_.UR(this,this.JSC$12523_eventHandler_);this.JSC$12523_eventHandler_.listen(this.JSC$12523_request_,"success",this.onTransferSuccess_);this.JSC$12523_eventHandler_.listen(this.JSC$12523_request_,"error",this.onTransferError_)};
_.n(uX4,rso);_.w=uX4.prototype;_.w.run=function(){this.state_="Transferring";var m=this.JSC$12523_request_,G=this.JSC$12523_form_;if(m.JSC$11790_active_)throw Error("ve");var K=new _.aQ(this.JSC$12523_url_||G.action);m.JSC$11790_form_=G;G=m.JSC$11790_form_;K=_.i9(K.toString());K!==void 0&&(G.action=K);oAl(m)};
_.w.getResponseCode=function(){return null};
_.w.getResponseText=function(){return this.JSC$12523_request_&&this.JSC$12523_request_.getResponseText()||null};
_.w.JSC$30526_getErrorDescription=function(){return this.JSC$12523_errorDescription_};
_.w.cancel=function(){this.JSC$12523_request_&&this.JSC$12523_request_.abort();this.state_="Cancelled";this.dispatchEvent(new db("o"))};
_.w.pause=function(){};
_.w.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new db("l"))};
_.w.onTransferError_=function(){this.JSC$12523_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new db("n"))};var ym=function(){_.uZ.call(this)};
_.n(ym,_.uZ);ym.prototype.createXhr=function(){var m=_.uZ.prototype.createXhr.call(this);m.upload&&(m.upload.onprogress=(0,_.AO)(this.onProgress_,this));return m};
ym.prototype.onProgress_=function(m){this.dispatchEvent(m)};var hli=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},JsX=function(m,G){var K=m.attempt_+1;
if(m.maxAttempts_>0&&K>m.maxAttempts_)return!1;K==0?G():m.delayCallId_=cW(function(){m.delayCallId_=null;G()},pZo(m),m);
m.attempt_=K;return!0};
hli.prototype.reset=function(){this.delayCallId_&&_.Ks.clearTimeout(this.delayCallId_);this.attempt_=-1};
var pZo=function(m){var G=250*Math.pow(2,m.attempt_);m.maxDelayMs_>=0&&(G=Math.min(G,m.maxDelayMs_));return G};var Jpo=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var eP=function(){_.ai.call(this);this.JSC$12533_request_=this.state_=null;this.JSC$12533_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12533_bytesTransferred_=0;this.retryIterator_=new hli;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12533_errorDescription_=null;this.JSC$12533_eventHandler_=new _.gM(this);_.UR(this,this.JSC$12533_eventHandler_);this.JSC$12533_url_=this.blob_=null;this.JSC$12533_method_=void 0;this.chunkSize_=this.JSC$12533_metadata_=
this.JSC$12533_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12533_responseText_=this.JSC$12533_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.kJ(eP,rso);_.w=eP.prototype;_.w.run=function(){fU(this)};
_.w.getResponseCode=function(){return this.JSC$12533_responseCode_};
_.w.getResponseText=function(){return this.JSC$12533_responseText_};
_.w.JSC$30526_getErrorDescription=function(){return this.JSC$12533_errorDescription_};
_.w.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12533_eventHandler_.removeAll();this.JSC$12533_request_&&this.JSC$12533_request_.abort();this.retryIterator_.reset();var m=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(m==="Upload"||m==="Query")m=new ym,m.JSC$10103_withCredentials_=this.JSC$12533_withCredentials_,m.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12533_bytesTransferred_=
0;this.dispatchEvent(new db("o"))}};
_.w.pause=function(){this.pauseRequested_=!0};
var fU=function(m){var G=m.state_;m.pauseRequested_?(m.pauseRequested_=!1,m.stateAfterUnpausing_=G,m.state_="Paused"):JsX(m.retryIterator_,function(){switch(m.state_){case "Start":m.JSC$12533_request_=new ym;var K=_.Y2.clone(m.JSC$12533_headers_);m.blob_.size!=null&&(K["Content-Length"]=m.blob_.size);K=Nb9(K);K["X-Goog-Upload-Protocol"]="resumable";K["X-Goog-Upload-Command"]="start";m.JSC$12533_eventHandler_.removeAll();m.JSC$12533_eventHandler_.listen(m.JSC$12533_request_,"complete",m.onStartComplete_);
m.JSC$12533_request_.JSC$10103_withCredentials_=m.JSC$12533_withCredentials_;m.JSC$12533_request_.send(m.JSC$12533_url_,m.JSC$12533_method_,m.JSC$12533_metadata_,K);m.lastCommandResponseCode_=null;m.dispatchEvent(new PM("q"));break;case "Upload":K=m.transferHandle_.uploadUrl_;var W=m.blob_.size;if(uAl()){var L=m.chunkSize_;var A=m.offset_+L>=W;W=rjX(m.blob_,m.offset_,A?W:m.offset_+L)}else m.offset_=0,W=m.blob_,A=!0;m.JSC$12533_request_=new ym;m.JSC$12533_request_.JSC$10103_withCredentials_=m.JSC$12533_withCredentials_;
m.JSC$12533_eventHandler_.removeAll();m.JSC$12533_eventHandler_.listen(m.JSC$12533_request_,"progress",m.onUploadProgress_);L=(0,_.AO)(m.JSC$12535_onUploadComplete_,m,m.offset_+W.size,A);m.JSC$12533_eventHandler_.listen(m.JSC$12533_request_,"complete",L);m.lastCommandResponseCode_=null;m.dispatchEvent(new PM("q"));A=Object.assign({},m.JSC$12533_headers_||{},{"X-Goog-Upload-Command":"upload"+(A?", finalize":""),"X-Goog-Upload-Offset":m.offset_});m.JSC$12533_request_.send(K,"POST",W,A);break;case "Query":m.JSC$12533_request_=
new ym;m.JSC$12533_eventHandler_.removeAll();m.JSC$12533_eventHandler_.listen(m.JSC$12533_request_,"complete",m.onQueryComplete_);K=Object.assign({},m.JSC$12533_headers_||{},{"X-Goog-Upload-Command":"query"});m.JSC$12533_request_.send(m.transferHandle_.uploadUrl_,"POST","",K);m.lastCommandResponseCode_=null;m.dispatchEvent(new PM("q"));break;default:throw Error("nf");}})||xY(m,"Transfer encountered too many consecutive failures.")},xY=function(m,G){m.state_="Error";
m.JSC$12533_errorDescription_=G;m.dispatchEvent(new db("n"))};
eP.prototype.onStartComplete_=function(m){var G=m.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new PM("r"));if(NiC(G))DzP(this,G);else if(tCR(G)){m=yN(m.target.getAllResponseHeaders());for(var K in m)_.AV(K.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new db("m"));K=iW(m,"X-Goog-Upload-URL");m=(m=iW(m,"X-Goog-Upload-Chunk-Granularity"))?parseInt(m,10):1;K===void 0||isNaN(m)||m<=0?xY(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
m)*m,this.transferHandle_=new YXB(K),this.dispatchEvent(new db("p")),this.state_="Upload",this.retryIterator_.reset(),fU(this))}else fU(this)};
eP.prototype.onUploadProgress_=function(m){this.JSC$12533_bytesTransferred_=this.offset_+m.loaded;this.dispatchEvent(new db("k"))};
eP.prototype.JSC$12535_onUploadComplete_=function(m,G,K){var W=this,L,A;return _.Y(function(O){switch(O.nextAddress){case 1:L=K.target;W.lastCommandResponseCode_=L.getStatus();W.dispatchEvent(new PM("r"));if(FP2(L)||L.getStatus()==404)return W.JSC$12533_bytesTransferred_=m,DzP(W,L),O.return();if(tCR(L)){O.jumpTo(2);break}if(!(A=W.detectCorruptedBlobEnabled_)){O.jumpTo(3);break}return O.yield(QwG(W),4);case 4:A=O.yieldResult;case 3:if(A)return xY(W,"Blob has been modified or corrupted."),O.return();
W.requireUploadRequestModification_=L.getStatus()==400;W.state_="Query";fU(W);return O.return();case 2:if(G)return xY(W,"Got a non-final success response after issuing a finalize command."),O.return();W.JSC$12533_bytesTransferred_=m;W.offset_=m;W.retryIterator_.reset();fU(W);return O.return()}})};
eP.prototype.onQueryComplete_=function(m){var G=m.target;this.lastCommandResponseCode_=G.getStatus();this.dispatchEvent(new PM("r"));NiC(G)?(G.getStatus()===200&&(this.JSC$12533_bytesTransferred_=this.blob_.size),DzP(this,G)):tCR(G)?(m=yN(m.target.getAllResponseHeaders()),m=parseInt(iW(m,"X-Goog-Upload-Size-Received"),10),isNaN(m)?xY(this,"Server did not respond with current offset."):m<this.offset_?xY(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
m+"."):this.requireUploadRequestModification_&&this.offset_===m?xY(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<m&&this.retryIterator_.reset(),this.offset_=this.JSC$12533_bytesTransferred_=m,this.state_="Upload",fU(this))):fU(this)};
var DzP=function(m,G){m.JSC$12533_responseCode_=G.getStatus();var K=yN(G.getAllResponseHeaders());DAF(K);m.JSC$12533_responseText_=G.getResponseText();m.state_="Response received";m.dispatchEvent(new db("l"))},tCR=function(m){var G=m.getStatus();
m=yN(m.getAllResponseHeaders());m=iW(m,"X-Goog-Upload-Status");return G===200&&m==="active"},FP2=function(m){m=yN(m.getAllResponseHeaders());
return iW(m,"X-Goog-Upload-Status")==="final"},NiC=function(m){if(FP2(m))return!0;
m=m.getStatus();return m>=400&&m<500},QwG=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1){if(!m.blob_||m.originalBlobSize_<=0)return K.return(!1);if(m.blob_.size!==m.originalBlobSize_)return K.return(!0);_.IO(K,2);if(G=rjX(m.blob_,0,1)){var W=K.yield,L=new OY,A=dyG(L);L.reader_.readAsBinaryString(G);K=W.call(K,A,4)}else K=K.return(!0);return K}if(K.nextAddress!=2)return K.return(m.blob_.size!==m.originalBlobSize_);_.ye(K);return K.return(!0)})};var aRC=function(m,G,K,W,L,A){_.ai.call(this);this.payload_=W;this.JSC$12536_url_=m;this.JSC$12536_method_=G;this.JSC$12536_headers_=K;this.JSC$12536_metadata_=L;this.encoding_=A||"binary";m=new _.Mh;this.boundary_="uploader-"+Ii()+"-"+m.JSC$11640_toIsoString();this.JSC$12536_responseText_=this.JSC$12536_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12536_errorDescription_=null;this.JSC$12536_eventHandler_=new _.gM(this);_.UR(this,this.JSC$12536_eventHandler_)};
_.n(aRC,rso);_.w=aRC.prototype;
_.w.run=function(){var m=_.Y2.clone(this.JSC$12536_headers_);this.payload_.length!=null&&(m["Content-Length"]=this.payload_.length);m=Nb9(m);m["X-Goog-Upload-Protocol"]="multipart";m["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new ym;this.JSC$12536_eventHandler_.removeAll();this.JSC$12536_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12536_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12536_url_,this.JSC$12536_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12536_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",m)};
_.w.getResponseCode=function(){return this.JSC$12536_responseCode_};
_.w.getResponseText=function(){return this.JSC$12536_responseText_};
_.w.JSC$30526_getErrorDescription=function(){return this.JSC$12536_errorDescription_};
_.w.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12536_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new db("o")))};
_.w.pause=function(){};
_.w.onTransferProgress_=function(){this.dispatchEvent(new db("k"))};
_.w.onTransferComplete_=function(m){var G=m.target.getStatus();G===void 0||G===-1?(this.JSC$12536_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new db("n"))):(this.JSC$12536_responseCode_=G,m=m.target,G=yN(m.getAllResponseHeaders()),DAF(G),this.JSC$12536_responseText_=m.getResponseText(),this.state_="Complete",this.dispatchEvent(new db("l")))};_.oWk=function(m,G,K,W){W=W===void 0?!1:W;if(K instanceof gWl)return new uX4(m,"POST",G,K.getInputElement(),"");if(typeof K==="string"||K instanceof String)return new aRC(m,"POST",G,K,"");var L=new eP(void 0);L.JSC$12533_url_=m;L.JSC$12533_method_="POST";L.JSC$12533_headers_=G;L.blob_=K;L.originalBlobSize_=K.size;L.JSC$12533_metadata_="";W&&(L.JSC$12533_withCredentials_=W);L.state_="Start";return L};var XV=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(XV,_.pp);_.w=XV.prototype;_.w.getEnableSsEngine=function(){return _.Wo(this,2)};
_.w.getEnableAwr=function(){return _.Wo(this,3)};
_.w.getAlohaAutoGaRollout=function(){return _.Wo(this,5)};
_.w.getEnableConfigurator=function(){return _.Wo(this,6)};
_.w.getEnableMweb=function(){return _.Wo(this,7)};
var b_F=function(){var m=nWk();return _.WH(m,7,!0)};
XV.prototype.getEnableCtlConsentCheckbox=function(){return _.Wo(this,8)};
XV.prototype.getEnableIframe=function(){return _.Wo(this,9)};
var nWk=function(){var m=new XV;m=_.WH(m,5,!0);m=_.WH(m,2,!0);m=_.WH(m,4,!1);m=_.WH(m,8,!0);return _.WH(m,9,!0)};
XV.prototype.getEnableScreenshotNudge=function(){return _.Wo(this,10)};
var vWP=function(){var m=b_F();return _.WH(m,10,!0)};
XV.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Wo(this,11)};
XV.prototype.getEnableJunkNudge=function(){return _.Wo(this,12)};
var ZUd=function(){var m=vWP();return _.WH(m,12,!0)};
_.w=XV.prototype;_.w.getEnableConfiguratorLocale=function(){return _.Wo(this,13)};
_.w.getEnableTinyNoPointer=function(){return _.Wo(this,14)};
_.w.getEnableSupportSessionLogging=function(){return _.Wo(this,15)};
_.w.getEnableFileUploadForScreenshot=function(){return _.Wo(this,16)};
_.w.getEnableDirectDeflectionForSingleCategory=function(){return _.Wo(this,17)};
_.w.getEnableImageSanitization=function(){return _.Wo(this,18)};
_.w.getEnableAlohaBinarySplit=function(){return _.Wo(this,19)};
_.w.getEnableDbFeedbackIntents=function(){return _.Wo(this,20)};
_.w.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Wo(this,21)};
_.w.getEnableFeedbackCategoryCustomUi=function(){return _.Wo(this,22)};
_.w.getEnableRealtimeCtl=function(){return _.Wo(this,23)};var VPo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(VPo,_.pp);var tPo=[/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 Qk9="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 ap6=_.nY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),oYG=_.nY(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Gq=function(){var m=Error.call(this,"Form is either loading or already opened");this.message=m.message;"stack"in m&&(this.stack=m.stack);this.name="DuplicateFormError"};
_.n(Gq,Error);var bUo,skd,vYf,q4d;var SP,$zk;
SP=function(m,G,K){m.timeOfStartCall=(new Date).getTime();var W=K||_.Ks,L=W.document,A=m.nonce||_.cz(W.document);A&&!m.nonce&&(m.nonce=A);if(m.flow=="help"){var O=_.Cn("document.location.href",W);!m.helpCenterContext&&O&&(m.helpCenterContext=O.substring(0,1200));O=!0;if(G&&JSON&&JSON.stringify){var c=JSON.stringify(G);(O=c.length<=1200)&&(m.psdJson=c)}O||(G={invalidPsd:!0})}G=[m,G,K];W.GOOGLE_FEEDBACK_START_ARGUMENTS=G;K=m.feedbackServerUri||"//www.google.com/tools/feedback";if(O=W.GOOGLE_FEEDBACK_START)O.apply(W,G);
else{W=K+"/load.js?";for(var u in m)G=m[u],G==null||_.Ud(G)||(W+=encodeURIComponent(u)+"="+encodeURIComponent(G)+"&");m=Wt(L).createElement("SCRIPT");A&&m.setAttribute("nonce",A);_.Jt(m,_.PN(W));L.body.appendChild(m)}};
$zk=function(m,G,K,W){var L,A;return _.Y(function(O){L=K||_.Ks;var c=m.serverEnvironment==="DEV",u=K||_.Ks;u=m.nonce||_.cz(u.document);c={integrationKeys:{productId:m.productId,feedbackBucket:m.bucket,triggerId:m.triggerId},callbacks:{onClose:m.callback,onLoad:m.onLoadCallback},formContent:{locale:m.locale,disableScreenshot:m.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:m.abuseLink,additionalDataConsent:m.additionalDataConsent},initializationData:{isLocalServer:c,nonce:u,useNightlyRelease:c,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:m.feedbackServerUri,colorScheme:m.colorScheme},extraData:{productVersion:m.productVersion,authUser:m.authuser,configuratorId:m.configuratorId,customZIndex:m.customZIndex,tinyNoPointer:m.tinyNoPointer,
allowNonLoggedInFeedback:m.allowNonLoggedInFeedback,enableAnonymousFeedback:m.enableAnonymousFeedback}};G&&(u=new Map(Object.entries(G)),c.extraData.productSpecificData=u);A=c;return O.yield(jkP(A,W,L),0)})};
_.swG=function(m,G,K){try{if(m.flow==="help"){var W=m.helpCenterPath.replace(/^\//,"");_.Oy(K||window,"https://support.google.com/"+W)}else m.flow==="submit"?SP(m,G,K):dAP(m.productId,m.feedbackServerUri).then(function(L){L=_.RG(L,XV,1);var A=!BKF||(L==null?void 0:L.getEnableMweb()),O=!m.tinyNoPointer||(L==null?void 0:L.getEnableTinyNoPointer());!L||L.getAlohaAutoGaRollout()&&A&&O?$zk(m,G,K,L).catch(function(c){!c||c instanceof Gq||SP(m,G,K)}):SP(m,G,K)},function(L){!L||L instanceof Gq||SP(m,G,K)})}catch(L){$zk(m,
G,K,null).catch(function(A){!A||A instanceof Gq||SP(m,G,K)})}};
_.yj("userfeedback.api.startFeedback",_.swG);var PNo=/https?:\/\/\S+\.\S+/,yp9=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],eis=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var xvo=function(m){var G=m.split(""),K=[-263237435,15,G,function(W,L,A){var O=L.length;A.forEach(function(c,u,h){this.push(h[u]=L[(L.indexOf(c)-L.indexOf(this[u])+u+O--)%L.length])},W.split(""))},
function(W,L){W=(W%L.length+L.length)%L.length;L.splice(-W).reverse().forEach(function(A){L.unshift(A)})},
"response",function(){for(var W=64,L=[];++W-L.length-32;){switch(W){case 58:W-=14;case 91:case 92:case 93:continue;case 123:W=47;case 94:case 95:case 96:continue;case 46:W=95}L.push(String.fromCharCode(W))}return L},
null,12,1540023973,65941107,null,G,function(W,L){for(W=(W%L.length+L.length)%L.length;W--;)L.unshift(L.pop())},
695603893,function(W){for(var L=W.length;L;)W.push(W.splice(--L,1)[0])},
"'[;'[(",function(W,L){W.push(L)},
null,function(W,L,A,O,c){return L(A,O,c)},
"continuation",G,function(W,L){if(W.length!=0){L=(L%W.length+W.length)%W.length;var A=W[0];W[0]=W[L];W[L]=A}},
function(){for(var W=64,L=[];++W-L.length-32;){switch(W){case 91:W=44;continue;case 123:W=65;break;case 65:W-=18;continue;case 58:W=96;continue;case 46:W=95}L.push(String.fromCharCode(W))}return L},
'"),/]];'];K[7]=K;K[11]=K;K[18]=K;try{(((0,K[15])(K[21]),K[22])(K[11],K[9]),K[22])(K[new Date("1970-01-01T04:30:12.000+04:30")/1E3],K[1]),((0,K[22])(K[11],K[23]),K[4])(K[10],K[18]),(0,K[20])(K[21],K[14])<<(0,K[17])(K[18],K[1]),(0,K[4])(K[8],K[21]),(0,K[19])((0,K[19])((0,K[17])(K[7],K[9]),K[3],K[20],(0,K[6])(),K[2]),K[3],K[5],(0,K[15])(),K[2])}catch(W){return"aTlOUOubTO4AP____8P_"+m}return G.join("")};_.qXC=new _.$W("runAttestationCommand");var EW2=new _.$W("verifyCommand");_.MB=new _.$W("accessibilityContext");var H_0=new _.$W("accessibilityData");var IRP=new _.$W("profileCardCommand");var PT6=new _.$W("signInEndpoint");var dXG=new _.$W("signOutEndpoint");var kNX;_.jwX=new _.$W("accountItemSectionRenderer");kNX=new _.$W("accountItemRenderer");_.CBC=new _.$W("saveCommandToSessionStorageAction");var VCk=new _.$W("crossAccountChannelTransferEndpoint");var Ir9=new _.$W("getAccountMenuEndpoint");_.jzJ=new _.$W("getAccountSwitcherEndpoint");var Hid=new _.$W("getAccountsListEndpoint");var Z_F=new _.$W("getAccountsListInnertubeEndpoint");_.dzi=new _.$W("addToToastAction");var PBC=new _.$W("hideEnclosingAction");_.Rk=new _.$W("replaceEnclosingAction");var ysS=new _.$W("buttonRefreshAction");var elX=new _.$W("adsControlFlowOpportunityReceivedCommand");var fRk=new _.$W("openAdAllowlistInstructionCommand");var xzK=new _.$W("videoMastheadAdPrimaryVideoRenderer");var XZS=new _.$W("displayAdRenderer");_.SXo=new _.$W("inFeedAdLayoutRenderer");var Rli=new _.$W("sequenceItemInPlayerAdLayoutRenderer");_.UzS=new _.$W("adSlotRenderer");var zlK=new _.$W("adAvatarViewModel");var lRF=new _.$W("adBadgeViewModel");var BiK=new _.$W("adButtonViewModel");var MC4=new _.$W("adImageViewModel");var TcV=new _.$W("reelsAdCardButtonedViewModel");var Tik=new _.$W("reelsPlayerOverlayLayoutViewModel");var mho=new _.$W("formDataDecoratorCommand");var i2R=new _.$W("updateConversationIdCommand");var G1C=new _.$W("showSchedulingPanelCommand");var K7G=new _.$W("backstageCommentsRenderer");var W70=new _.$W("backstageImageRenderer");var L7i=new _.$W("backstagePostRenderer");var AZ2=new _.$W("backstageZeroStateRenderer");var w04=new _.$W("postRenderer");var gKl=new _.$W("sharedPostRenderer");var O2l=new _.$W("createBackstagePostEndpoint");var cZC=new _.$W("getPostVideoPreviewEndpoint");var YLX=new _.$W("updateBackstagePostEndpoint");var rZR=new _.$W("filterChipTransformCommand");var uM2=new _.$W("insertRichSectionCommand");var t$9=new _.$W("talkToRecsDeselectCommand");var hAG=new _.$W("talkToRecsNextCommand");var D1s=new _.$W("talkToRecsSelectCommand");var p04=new _.$W("talkToRecsUpdateTextCommand");_.S8=new _.$W("browseEndpoint");_.JZK=new _.$W("confirmDialogEndpoint");var NvP=new _.$W("expandOnHoverCardRenderer");var DhS=new _.$W("lumiereShelfDetailsRenderer");var tgR=new _.$W("revealBusinessEmailCommand");var F7G=new _.$W("validateChannelHandleCommand");var Q94=new _.$W("channelCreationFormEndpoint");var azF=new _.$W("aboutChannelViewModel");var oKG=new _.$W("channelThumbnailWithLinkRenderer");var nKG=new _.$W("channelCreationServiceEndpoint");var b2i=new _.$W("updateChannelPageSettingsEndpoint");var U4=function(m){this.delegate=m},zc=function(){U4.apply(this,arguments)};
_.n(zc,U4);_.e_.Object.defineProperties(zc.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(m){this.delegate.entityMetadata=m}}});var vK4=function(){zc.apply(this,arguments)};
_.n(vK4,zc);vK4.prototype.getAssociations=function(){return[]};
vK4.prototype.getTypeName=function(){return"channelHandle"};var $hR=new _.$W("webResponseContextExtensionData");var Zed=new _.$W("webThumbnailDetailsExtensionData");_.cR=new _.$W("commandContext");var s9F=new _.$W("addVideoLinkAction");var qLo=new _.$W("banAuthorAction");var EKF=new _.$W("createCommentAction");var H2K=new _.$W("createCommentReplyAction");var Iz4=new _.$W("createPollAction");var j9F=new _.$W("hideIdentityChipAction");var k1i=new _.$W("openUpdateCommentDialogAction");var CDK=new _.$W("pinCommentAction");var VgG=new _.$W("removeCommentAction");var Z2o=new _.$W("unpinCommentAction");var lN=new _.$W("updateBackstagePollAction");var dh2=new _.$W("updateCommentVoteAction");var PDG=new _.$W("commentThreadRenderer");var yZR=function(){zc.apply(this,arguments)};
_.n(yZR,zc);yZR.prototype.getAssociations=function(){return[]};
yZR.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var eA2=function(){zc.apply(this,arguments)};
_.n(eA2,zc);eA2.prototype.getAssociations=function(){return[]};
eA2.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.fzF=new _.$W("commentDialogRenderer");var xh4=new _.$W("reloadCommentsCommand");var X0l=new _.$W("updateCommentsSettingsEndpoint");var SLX=new _.$W("commentViewModel");var RAC=new _.$W("triStateButtonViewModel");var UhX=new _.$W("voiceReplyContainerViewModel");_.xu=new _.$W("commandExecutorCommand");var wn=new _.$W("emoji");var zAk=new _.$W("updateCreatorChannelInnertubeCommand");_.lz4=new _.$W("appendContinuationItemsAction");_.Bvl=new _.$W("changeEngagementPanelVisibilityAction");_.Yg=new _.$W("continuationCommand");var MgB=new _.$W("hideReportedCommentAction");var TvS=new _.$W("listMutationCommand");_.BM=new _.$W("openPopupAction");var mtS=new _.$W("persistSubscriptionsDisplayPreferencesCommand");var g4X;_.i$C=new _.$W("playlistRemoveVideosAction");_.GUP=new _.$W("updatePlaylistAction");_.Kpi=new _.$W("addToPlaylistCommand");_.WpS=new _.$W("endPlaylistCommand");_.LpX=new _.$W("recoverPlaylistCommand");_.Ad0=new _.$W("refreshPlaylistCommand");_.wF2=new _.$W("refreshFormCommand");g4X=new _.$W("openOnePickAddVideoModalCommand");var ykd=new _.$W("reloadContinuationItemsCommand");var O$G=new _.$W("restoreCachedContinuableDataCommand");_.cdS=new _.$W("scrollToEngagementPanelCommand");var YYK=new _.$W("selectCountryCommand");var rdK=new _.$W("showReloadUiCommand");var uYS=new _.$W("undoFeedbackAction");var hrk=new _.$W("updateButtonAction");var pFi=new _.$W("updateSubscribeButtonAction");var Jd4=new _.$W("updateToggleAction");var NNo=new _.$W("webNativeShareCommand");_.RQ=new _.$W("webCommandMetadata");_.MA=new _.$W("webHandleServiceEndpointExtension");var RtP=new _.$W("webNavigationEndpointData");var DtF=new _.$W("backgroundAudioPlaybackCommand");var tiC=new _.$W("copyLinkCommand");var FpR=new _.$W("playlistVotingRefreshPopupCommand");var QU2=new _.$W("selectChipCommand");var aWK=new _.$W("setCookieCommand");var o4C=new _.$W("setLocalStorageCommand");var n4l=new _.$W("setPrefStorageEntryCommand");var sUC;_.b$F=new _.$W("settingsUpdateCheckboxCommand");_.v4S=new _.$W("settingsUpdateTextCommand");_.$tB=new _.$W("settingsUpdateOptionsCommand");sUC=new _.$W("settingsUpdateSwitchCommand");_.qYC=new _.$W("settingsUpdateConnectedAppRendererCommand");var E44=new _.$W("showCreatorChatbotEngagementPanelCommand");var H$R=new _.$W("updateTextInputFormFieldRendererCommand");var IWP=new _.$W("updateToggleButtonStateCommand");var jU0=new _.$W("updateUrlParamCommand");var kUi=new _.$W("webSubmitFormCommand");var ChP=new _.$W("channelSwitcherPageRenderer"),Vi4=new _.$W("updateChannelSwitcherPageAction");_.EU=new _.$W("continuationItemRenderer");_.Tc=new _.$W("richItemRenderer");var Z$i=new _.$W("richSectionRenderer");_.dtP=new _.$W("richShelfRenderer");_.PhX=new _.$W("metadataBadgeRenderer");_.yd4=new _.$W("multiPageMenuNotificationSectionRenderer");_.erP=new _.$W("playlistLoopButtonStateRenderer");var fWB=new _.$W("claimLegacyYoutubeChannelEndpoint");var xtB=new _.$W("getNotificationMenuEndpoint");var XFl=new _.$W("getSearchInVideoCommand");_.SYo=new _.$W("getTranscriptEndpoint");_.SD=new _.$W("signalServiceEndpoint");var Rri=new _.$W("verifyAgeEndpoint");var Sks=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Sks,_.pp);Sks.prototype.getPath=function(){return _.wL(this,1)};
Sks.prototype.getValue=function(){return _.wL(this,2)};var UtB=[0,_.sA,-1];var zrR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(zrR,_.pp);var XIJ=_.se(zrR,[0,_.Ho,UtB]);var lWl=new _.$W("dismissalEndpoint");var BN4=new _.$W("elementsCommand");_.Oh=new _.$W("innertubeCommand");var t6M=new _.$W("multipleInlinePlaybackCommand");var EId=new _.$W("loggingDirectives");var MiG=new _.$W("acknowledgeChannelTouStrikeCommand");var TNF=function(){zc.apply(this,arguments)};
_.n(TNF,zc);TNF.prototype.getAssociations=function(){return[]};
TNF.prototype.getTypeName=function(){return"booleanEntity"};var mAC=function(){zc.apply(this,arguments)};
_.n(mAC,zc);mAC.prototype.getAssociations=function(){return[]};
mAC.prototype.getTypeName=function(){return"stringEntity"};var aL=new _.$W("entityBatchUpdate");_.iUl=new _.$W("entityUpdateCommand");var GcF=function(){zc.apply(this,arguments)};
_.n(GcF,zc);GcF.prototype.getAssociations=function(){var m=[];this.delegate.alternateChannel&&m.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&m.push.apply(m,_.Bz(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&m.push(this.delegate.oneofChannelEntity);return[].concat(_.Bz(new Set(m)))};
GcF.prototype.getTypeName=function(){return"fakeChannel"};var KHC=function(){zc.apply(this,arguments)};
_.n(KHC,zc);KHC.prototype.getAssociations=function(){var m=[];this.delegate.entryCollection&&m.push(this.delegate.entryCollection);return[].concat(_.Bz(new Set(m)))};
KHC.prototype.getTypeName=function(){return"fakePlaylist"};
var WHC=function(){zc.apply(this,arguments)};
_.n(WHC,zc);WHC.prototype.getAssociations=function(){var m=[];this.delegate.parentPlaylist&&m.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var G=_.g(this.delegate.entries),K=G.next();!K.done;K=G.next())m.push.apply(m,_.Bz((new LHK(K.value)).getAssociations()));return[].concat(_.Bz(new Set(m)))};
WHC.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var LHK=function(){U4.apply(this,arguments)};
_.n(LHK,U4);LHK.prototype.getAssociations=function(){var m=[];this.delegate.video&&m.push(this.delegate.video);return[].concat(_.Bz(new Set(m)))};var ApX=function(){zc.apply(this,arguments)};
_.n(ApX,zc);ApX.prototype.getAssociations=function(){var m=[];this.delegate.descriptionEntity&&m.push(this.delegate.descriptionEntity);this.delegate.creators&&m.push.apply(m,_.Bz(this.delegate.creators));this.delegate.theBiggestFan&&m.push(this.delegate.theBiggestFan);return[].concat(_.Bz(new Set(m)))};
ApX.prototype.getTypeName=function(){return"fakeVideo"};
var wMC=function(){zc.apply(this,arguments)};
_.n(wMC,zc);wMC.prototype.getAssociations=function(){return[]};
wMC.prototype.getTypeName=function(){return"fakeVideoDescription"};var gY2=new _.$W("fantasyRosterViewModel");var OUR=new _.$W("addFollowUpSurveyCommand");var cpl=new _.$W("getSurveyCommand");var Y4F=new _.$W("ratingSurveyOptionRenderer");_.cX=new _.$W("feedbackEndpoint");var rpl=new _.$W("reportHistoryTableCellRenderer"),uVK=new _.$W("reportHistoryTableTextCellRenderer"),hiK=new _.$W("reportHistoryTableReasonCellRenderer");_.pMS=new _.$W("flagEndpoint");var Jp0=new _.$W("deleteFlowStepsCommand");_.Nb4=new _.$W("flowNextStepCommand");_.DAP=new _.$W("flowPrevStepCommand");var tP0=new _.$W("getFlowCommand");var FHo=new _.$W("submitFormWithValidationFlowCommand");_.Qk4=new _.$W("updateFlowCommand");var apS=function(){zc.apply(this,arguments)};
_.n(apS,zc);apS.prototype.getAssociations=function(){return[]};
apS.prototype.getTypeName=function(){return"flowStateEntity"};var oYB=new _.$W("flowFormState");_.mI=new _.$W("flowStepRenderer");var nYF=new _.$W("gameCardRenderer");var bU0=new _.$W("accountLinkingStateChangedCommand");var vYX=function(){zc.apply(this,arguments)};
_.n(vYX,zc);vYX.prototype.getAssociations=function(){return[]};
vYX.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var $Al=new _.$W("changeMiniAppPlayStateCommand");var sko=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(sko,_.pp);var iu=[1,2,3];var q4K=[0,iu,EoG,_.EA,a3o];var EYP=_.se(sko,q4K),HUi=_.qI(q4K);var IpF=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(IpF,_.pp);var jkR=[0,_.a3,_.sA];var kcR=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(kcR,_.pp);var CNS=[0,_.sA,_.a3,-1];var Gj=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Gj,_.pp);var VP0=_.qI([0,1,jkR,_.Cg,CNS,_.sA,-1]);var ZUK=new _.$W("miniAppScoreChallengeViewModel");var dAR=new _.$W("miniGameCardViewModel");var PN0=new _.$W("teaserCardViewModel");var yp4=function(){zc.apply(this,arguments)};
_.n(yp4,zc);yp4.prototype.getAssociations=function(){return[]};
yp4.prototype.getTypeName=function(){return"logoEntity"};var eil=new _.$W("feedbackItemRenderer");var fpi=function(){zc.apply(this,arguments)};
_.n(fpi,zc);fpi.prototype.getAssociations=function(){return[]};
fpi.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.xAi=new _.$W("playerInterstitialRenderer");var XMi=new _.$W("getKidsBlocklistPickerCommand");_.S4F=new _.$W("updateKidsBlacklistEndpoint");_.KK=new _.$W("likeEndpoint");var Ri0,UAR,ziF;Ri0=new _.$W("addChatItemAction");UAR=new _.$W("removeChatItemAction");ziF=new _.$W("markChatItemAsDeletedAction");_.lpk=new _.$W("setLiveChatCollapsedStateAction");var BbR=function(){zc.apply(this,arguments)};
_.n(BbR,zc);BbR.prototype.getAssociations=function(){return[]};
BbR.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var MPo=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(MPo,_.pp);MPo.prototype.getPayloadCase=function(){return _.Te(this,TbG)};
var TbG=[3,4];var mVC=[0,_.Ho,[0,[1,2],_.EA,_.I3,[0,_.qE,1,_.qE]]];var iK0=[0,_.sA,-1];var GjP=[0,[1],_.EA];var WB=[0,[1,2],_.EA,_.I3,[0,_.Cg]];var LK=[0,_.sA];var KIP=[0,[0,_.vo,_.bA,[0,_.qE,_.VI,_.qE]],1,[0,_.vo]];var WIB=[0,o3];var LIF=[0,o3];var A6X=[0,LIF,WIB];var wBS=[0,_.Ho,[0,[1,2],_.EA,-1],_.vo];var gq2=[0,[2],1,_.I3,[0,_.qE,-1,wBS]];var OKl=[0,[1],_.I3,[0,_.qE,_.sA,_.VI,1,wBS]];var c62=[0,_.bA,-1,QeG,_.Cg];var Y7G=[0,[0,QI,-3],-4];var A6=[0,_.vo,-3,_.sA,_.vo,_.Vn,_.vo,mVC,_.vo,-2];var wp=[0,_.Ho,[0,[1,2],_.EA,-1],_.vo,_.sA];var r6o=[0,[3],WB,[0,[2,3,4],Cgl,_.EA,-2],_.I3,[0,_.sA],_.a3];var u$K=[0,[3,5],_.sA,_.ng,_.I3,[0,1,_.a3,_.Cg],_.Cg,_.I3,[0,_.Cg,_.a3]];var hPX=[0,2,_.ng,_.sA,-1];var pBS=[0,seP];var J6K=[0,[3,4],2,noK,_.EA,_.sA];var NpX=[0,_.Cg,-2,1,_.sA];var DVG=[0,_.sA,-1,_.Cg];var tMR=[0,LK,function(){return gp},
LK,_.sA],FIP=[0,_.Cg,LK,WB,function(){return gp},
_.sA],gp=[-161,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160],LK,_.ng,[0,_.vo,1,_.vo,1,_.vo,1,_.Cg,-1,LK],[0,1,_.vo,2,_.vo,_.Cg,_.vo],1,_.ng,-1,_.sA,_.ng,2,QI,[0,QI,_.ng],_.sA,1,KIP,1,WB,_.Vn,1,[0,[0,_.Ho,[0,_.sA,_.vo,_.Cg]]],[0,_.vo,[0,_.a3,[0,_.VI]],_.a3,1,[0,voX,-1]],_.sA,[0,1,_.sA],76,_.I3,[0,WB,wp,KIP,1,[0,_.Ho,wp]],1,_.I3,[0,WB,_.sA,
_.vo],_.I3,[0,WB,GjP],_.I3,[0,WB,GjP,_.ng],_.I3,[0,WB,GjP],_.I3,[0,WB,_.Ho,LK,WB,Hpi],_.I3,[0,WB,LK,_.sA],_.I3,[0,WB,_.vo,A6,-1,_.vo],4,_.I3,[0,WB,_.vo,_.ng,A6,_.vo],_.I3,[0,[4,9],WB,_.Cg,_.ng,_.EA,wp,1,KIP,_.sA,_.EA,NpX],_.I3,[0,WB,LK,WB,_.Cg,_.sA],_.I3,[0,_.vo,WB,A6,_.vo,_.sA],_.I3,[0,WB,LK,WB,_.Cg,_.sA],1,_.I3,[0,WB,_.Cg,_.sA,A6],_.I3,[0,WB,_.Cg,[0,_.sA,_.ng],_.sA,_.ng,_.sA,_.ki,-2,3,DVG,_.Ho,DVG,DVG,NpX],_.I3,[0,WB,_.Cg,OKl,_.Ho,[0,LIF,gq2],LK,_.Ho,A6X,_.sA,1,_.Cg,c62,Y7G,FuB,-1],_.I3,[0,WB,[0,
_.VI,-1,OKl,_.Ho,[0,LIF,gq2,WIB],[0,_.ZS],1,_.qE],LK,_.sA],_.I3,[0,WB,wp,_.sA,[0,_.bA]],_.I3,function(){return FIP},
_.I3,[0,WB,_.ng,_.sA,-1,_.vo],_.I3,[0,[6,7],WB,_.Ho,hPX,_.Cg,wp,1,_.I3,J6K,_.I3,pBS],_.I3,[0,_.Ho,hPX,_.Cg,_.vo],_.I3,[0,_.sA,pGP,-1],_.I3,[0,LK,_.Ho,A6X,_.sA],_.I3,[0,WB,LK,_.sA],_.I3,[0,_.ki,_.sA],_.I3,[0,iK0],_.I3,[0,iK0],_.I3,[0,wp],_.I3,[0,LK,wp],_.I3,function(){return tMR},
_.I3,[0,LK,_.sA],_.I3,[0,LK,_.sA],1,_.I3,[0,_.vo,WB,A6,_.vo,A6],_.I3,[0,_.ZS],1,_.I3,[0],1,_.I3,[0,LK,_.Cg,WB,_.Cg],_.I3,[0,[1,2],_.I3,J6K,_.I3,pBS,_.ng],_.I3,[0,_.ZS,wp,u$K,_.sA,_.ng],_.I3,[0,u$K,_.sA,_.ng],_.I3,[0,c62,wp,_.vo,Y7G],_.I3,r6o,_.I3,[0],_.I3,[0,_.sA,-1,_.a3],_.I3,[0,LK,_.sA],_.I3,[0,r6o,_.a3,_.sA],_.I3,[0,WB,A6,_.vo],_.I3,[0,WB,A6,_.vo],_.I3,[0,c62,Y7G,wp,_.Vn,_.vo,FuB,-1],_.I3,[0,WB,A6,_.vo],_.I3,[0,_.ng]];var QgG=[0,_.Ho,gp];var ajB=_.se(MPo,[0,TbG,1,_.a3,_.I3,[0,[18,22,24],QgG,3,[0,QgG],1,_.a3,[0,_.Ho,[0,_.ng,QI],_.ng],1,gp,-1,[0,_.$i,-2,_.Vn,_.$i,-1,_.Vn,_.$i,mVC,_.$i,-2],DIP,[!0,_.sA,[0,GjP,2,_.sA,_.ng,_.vo,2,_.sA,_.ki]],[0,[1,2,3],[5,6],_.I3,[0,_.qE],_.I3,[0,_.qE,-1],_.I3,[0,_.qE],1,_.I3,iK0,_.I3,[0,_.sA]],[0,gp,-1],_.ZS,gp,_.I3,gp,[0,QgG],_.a3,gp,_.I3,gp,_.sA,_.I3,gp,gp],_.I3,tAF,_.a3]);var oqP=new _.$W("liveChatEndpoint");var nqB=new _.$W("liveChatItemContextMenuEndpoint");var bK2=new _.$W("liveChatReplayEndpoint");_.vql=new _.$W("emojiPickerRenderer");var $VB=new _.$W("liveChatAuthorBadgeViewModel");var sgo=new _.$W("deleteLiveChatMessageCommand");var q74=new _.$W("liveChatActionEndpoint");var EqR=new _.$W("createLiveChatPollEndpoint");var HKi=new _.$W("manageLiveChatUserEndpoint");var Iji=new _.$W("moderateLiveChatEndpoint");_.jgR=new _.$W("sendLiveChatMessageEndpoint");var kjB=new _.$W("sendLiveChatVoteEndpoint");var Cuo=new _.$W("clearLocationCommand");var VMS=new _.$W("resolveLocationCommand");var ZK2=new _.$W("interactionLoggingCommandMetadata");var dVC=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(dVC,_.pp);var PuF=function(m,G){return _.x2(m,1,G)};var y62=[0,_.vo];var ePG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ePG,_.pp);var fjR=function(m,G){return Au(m,1,dVC,G)};ePG.prototype.JSC$12632_serializeBinary=grM([0,_.Ho,y62]);var c6J={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 xVi={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"},
XBo={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 gkG={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_CONTROL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PASSIVE_IN_TREATMENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DISABLE_PLAYER_OPEN_ON_FULLSCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_RECONNECT_WITH_RETRY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SINGLE_COLUMN_GRID_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_MDX_CONNECTION_TIMEOUT"};_.tKG=new _.$W("logFlowLoggingEventCommand");_.BL=new _.$W("loggingContext");var S7X=new _.$W("audioTrackSelectActionCommand");var RPi=new _.$W("captionLanguageSelectActionCommand");var UVF=new _.$W("showAudioTrackPickerActionCommand");var zP0=new _.$W("showCaptionLanguageSelectActionCommand");var ljR=new _.$W("dismissDialogEndpoint");var Bpl=new _.$W("dismissPlayerOverlayCommand");var MMK=new _.$W("hideItemSectionVideosByIdCommand");var Tp4=new _.$W("showMiniplayerCommand");var mQC=function(){zc.apply(this,arguments)};
_.n(mQC,zc);mQC.prototype.getAssociations=function(){return[]};
mQC.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var i80=function(){zc.apply(this,arguments)};
_.n(i80,zc);i80.prototype.getAssociations=function(){return[]};
i80.prototype.getTypeName=function(){return"downloadStatusEntity"};var GX0=function(){zc.apply(this,arguments)};
_.n(GX0,zc);GX0.prototype.getAssociations=function(){return[]};
GX0.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var KjG=function(){zc.apply(this,arguments)};
_.n(KjG,zc);KjG.prototype.getAssociations=function(){var m=[];this.delegate.downloadsList&&m.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&m.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&m.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&m.push(this.delegate.refresh);return[].concat(_.Bz(new Set(m)))};
KjG.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var Wj2=function(){zc.apply(this,arguments)};
_.n(Wj2,zc);Wj2.prototype.getAssociations=function(){var m=[];this.delegate.refresh&&m.push(this.delegate.refresh);if(this.delegate.downloads)for(var G=_.g(this.delegate.downloads),K=G.next();!K.done;K=G.next())m.push.apply(m,_.Bz((new Lj0(K.value)).getAssociations()));return[].concat(_.Bz(new Set(m)))};
Wj2.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var Lj0=function(){U4.apply(this,arguments)};
_.n(Lj0,U4);Lj0.prototype.getAssociations=function(){var m=[];this.delegate.video&&m.push(this.delegate.video);this.delegate.playlist&&m.push(this.delegate.playlist);this.delegate.videoItem&&m.push(this.delegate.videoItem);this.delegate.playlistItem&&m.push(this.delegate.playlistItem);return[].concat(_.Bz(new Set(m)))};var AfC=function(){zc.apply(this,arguments)};
_.n(AfC,zc);AfC.prototype.getAssociations=function(){var m=[];this.delegate.localImageEntities&&m.push.apply(m,_.Bz(this.delegate.localImageEntities));return[].concat(_.Bz(new Set(m)))};
AfC.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var w3G=function(){zc.apply(this,arguments)};
_.n(w3G,zc);w3G.prototype.getAssociations=function(){var m=[];this.delegate.playbackData&&m.push(this.delegate.playbackData);this.delegate.localImageEntities&&m.push.apply(m,_.Bz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&m.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bz(new Set(m)))};
w3G.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var gVR=function(){zc.apply(this,arguments)};
_.n(gVR,zc);gVR.prototype.getAssociations=function(){return[]};
gVR.prototype.getTypeName=function(){return"offlineabilityEntity"};var O8B=function(){zc.apply(this,arguments)};
_.n(O8B,zc);O8B.prototype.getAssociations=function(){var m=[];this.delegate.fakeChildren&&m.push.apply(m,_.Bz(this.delegate.fakeChildren));return[].concat(_.Bz(new Set(m)))};
O8B.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var cfF=function(){zc.apply(this,arguments)};
_.n(cfF,zc);cfF.prototype.getAssociations=function(){var m=[];this.delegate.video&&m.push(this.delegate.video);this.delegate.playbackData&&m.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&m.push(this.delegate.offlineVideoPolicy);return[].concat(_.Bz(new Set(m)))};
cfF.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Ybk=function(){zc.apply(this,arguments)};
_.n(Ybk,zc);Ybk.prototype.getAssociations=function(){return[]};
Ybk.prototype.getTypeName=function(){return"continuationTokenEntity"};var rfS=function(){zc.apply(this,arguments)};
_.n(rfS,zc);rfS.prototype.getAssociations=function(){var m=[];this.delegate.channelOwner&&m.push(this.delegate.channelOwner);this.delegate.videos&&m.push.apply(m,_.Bz(this.delegate.videos));this.delegate.collaboratorChannels&&m.push.apply(m,_.Bz(this.delegate.collaboratorChannels));this.delegate.downloadState&&m.push(this.delegate.downloadState);this.delegate.refresh&&m.push(this.delegate.refresh);return[].concat(_.Bz(new Set(m)))};
rfS.prototype.getTypeName=function(){return"mainPlaylistEntity"};var uiX=function(){zc.apply(this,arguments)};
_.n(uiX,zc);uiX.prototype.getAssociations=function(){var m=[];this.delegate.video&&m.push(this.delegate.video);this.delegate.channelContributor&&m.push(this.delegate.channelContributor);return[].concat(_.Bz(new Set(m)))};
uiX.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var hbX=function(){U4.apply(this,arguments)};
_.n(hbX,U4);hbX.prototype.getAssociations=function(){var m=[];this.delegate.recommendedVideoMetadata&&m.push.apply(m,_.Bz((new p3B(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Bz(new Set(m)))};
var p3B=function(){U4.apply(this,arguments)};
_.n(p3B,U4);p3B.prototype.getAssociations=function(){var m=[];this.delegate.localImageEntities&&m.push.apply(m,_.Bz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&m.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bz(new Set(m)))};var Jf4=function(){U4.apply(this,arguments)};
_.n(Jf4,U4);Jf4.prototype.getAssociations=function(){var m=[];this.delegate.playbackPosition&&m.push(this.delegate.playbackPosition);return[].concat(_.Bz(new Set(m)))};var NGo=function(){zc.apply(this,arguments)};
_.n(NGo,zc);NGo.prototype.getAssociations=function(){var m=[];this.delegate.owner&&m.push(this.delegate.owner);this.delegate.downloadState&&m.push(this.delegate.downloadState);this.delegate.userState&&m.push.apply(m,_.Bz((new Jf4(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&m.push.apply(m,_.Bz((new hbX(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Bz(new Set(m)))};
NGo.prototype.getTypeName=function(){return"mainVideoEntity"};var DQB=function(){zc.apply(this,arguments)};
_.n(DQB,zc);DQB.prototype.getAssociations=function(){var m=[];this.delegate.userChannelDetails&&m.push(this.delegate.userChannelDetails);return[].concat(_.Bz(new Set(m)))};
DQB.prototype.getTypeName=function(){return"ytMainChannelEntity"};var tGl=function(){zc.apply(this,arguments)};
_.n(tGl,zc);tGl.prototype.getAssociations=function(){var m=[];this.delegate.channelOwner&&m.push(this.delegate.channelOwner);this.delegate.playbackPosition&&m.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&m.push.apply(m,_.Bz(this.delegate.localImageEntities));this.delegate.downloadStatus&&m.push(this.delegate.downloadStatus);return[].concat(_.Bz(new Set(m)))};
tGl.prototype.getTypeName=function(){return"ytMainVideoEntity"};var LsP=new _.$W("downloadsPageSmartDownloadsOptInBannerParams");var O9f=new _.$W("downloadsPageUpsellBannerParams");var FjX=function(){zc.apply(this,arguments)};
_.n(FjX,zc);FjX.prototype.getAssociations=function(){return[]};
FjX.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var QnR=function(){zc.apply(this,arguments)};
_.n(QnR,zc);QnR.prototype.getAssociations=function(){return[]};
QnR.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var aqk=function(){zc.apply(this,arguments)};
_.n(aqk,zc);aqk.prototype.getAssociations=function(){return[]};
aqk.prototype.getTypeName=function(){return"macroMarkerEntity"};var oVk=function(){zc.apply(this,arguments)};
_.n(oVk,zc);oVk.prototype.getAssociations=function(){return[]};
oVk.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var nVK=function(){zc.apply(this,arguments)};
_.n(nVK,zc);nVK.prototype.getAssociations=function(){return[]};
nVK.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var b84=function(){zc.apply(this,arguments)};
_.n(b84,zc);b84.prototype.getAssociations=function(){return[]};
b84.prototype.getTypeName=function(){return"playerStateEntity"};var vVk=function(){zc.apply(this,arguments)};
_.n(vVk,zc);vVk.prototype.getAssociations=function(){return[]};
vVk.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var $QS=function(){zc.apply(this,arguments)};
_.n($QS,zc);$QS.prototype.getAssociations=function(){return[]};
$QS.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var snF=function(){zc.apply(this,arguments)};
_.n(snF,zc);snF.prototype.getAssociations=function(){return[]};
snF.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.NP=new _.$W("dislikeButtonViewModel");_.JA=new _.$W("likeButtonViewModel");var qbF=new _.$W("videoSummaryContentViewModel");var EV4=new _.$W("videoSummaryParagraphViewModel");var H8K=new _.$W("changeTimelyActionVisibilityCommand");var IqX=new _.$W("hideEngagementPanelEndpoint");var jnK=new _.$W("refreshPanelEndpoint");var kX2=new _.$W("scrollToSectionEndpoint");var CJi=new _.$W("seekToVideoTimestampCommand");_.Oa=new _.$W("showEngagementPanelEndpoint");var VGR=new _.$W("showTransientPlayerScrimOverlayCommand");var Z8P=new _.$W("toggleEngagementPanelCommand");var dQ2=new _.$W("aiResponseBoxViewModel");_.PJB=new _.$W("createBroadcastCommand");var yfl=new _.$W("metadataUpdateCommand");var ebK=function(){zc.apply(this,arguments)};
_.n(ebK,zc);ebK.prototype.getAssociations=function(){return[]};
ebK.prototype.getTypeName=function(){return"featuredProductsEntity"};var fqo=function(){zc.apply(this,arguments)};
_.n(fqo,zc);fqo.prototype.getAssociations=function(){return[]};
fqo.prototype.getTypeName=function(){return"pinnedProductEntity"};var xQo=function(){zc.apply(this,arguments)};
_.n(xQo,zc);xQo.prototype.getAssociations=function(){return[]};
xQo.prototype.getTypeName=function(){return"trendingOfferEntity"};_.X3C=new _.$W("merchandiseShelfRenderer");var SbP=new _.$W("shoppingContentLineItemViewModel");var RbS=new _.$W("shoppingDescriptionItemViewModel");var UQG=new _.$W("gridMovieRenderer");_.zbK=new _.$W("movieRenderer");var lql=function(){zc.apply(this,arguments)};
_.n(lql,zc);lql.prototype.getAssociations=function(){return[]};
lql.prototype.getTypeName=function(){return"compositeSourceEntity"};var BGB=function(){zc.apply(this,arguments)};
_.n(BGB,zc);BGB.prototype.getAssociations=function(){var m=[];this.delegate.compositeSourceKeys&&m.push.apply(m,_.Bz(this.delegate.compositeSourceKeys));return[].concat(_.Bz(new Set(m)))};
BGB.prototype.getTypeName=function(){return"multiviewStagingEntity"};var MGC=function(){zc.apply(this,arguments)};
_.n(MGC,zc);MGC.prototype.getAssociations=function(){var m=[];this.delegate.trackDownloadMetadatas&&m.push.apply(m,_.Bz(this.delegate.trackDownloadMetadatas));return[].concat(_.Bz(new Set(m)))};
MGC.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var TGR=function(){zc.apply(this,arguments)};
_.n(TGR,zc);
TGR.prototype.getAssociations=function(){var m=[];this.delegate.downloadedTracks&&m.push.apply(m,_.Bz(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&m.push.apply(m,_.Bz(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&m.push.apply(m,_.Bz(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&m.push.apply(m,_.Bz(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&m.push.apply(m,_.Bz(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
m.push.apply(m,_.Bz(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&m.push.apply(m,_.Bz(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&m.push.apply(m,_.Bz(this.delegate.metadataOnlyTracks));return[].concat(_.Bz(new Set(m)))};
TGR.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var mm0=function(){zc.apply(this,arguments)};
_.n(mm0,zc);mm0.prototype.getAssociations=function(){var m=[];this.delegate.trackDownloadMetadatas&&m.push.apply(m,_.Bz(this.delegate.trackDownloadMetadatas));return[].concat(_.Bz(new Set(m)))};
mm0.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var iaK=function(){zc.apply(this,arguments)};
_.n(iaK,zc);iaK.prototype.getAssociations=function(){var m=[];this.delegate.playbackData&&m.push(this.delegate.playbackData);this.delegate.localImageEntities&&m.push.apply(m,_.Bz(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&m.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bz(new Set(m)))};
iaK.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var GtG=function(){zc.apply(this,arguments)};
_.n(GtG,zc);
GtG.prototype.getAssociations=function(){var m=[];this.delegate.musicLibraryStatusEntity&&m.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&m.push.apply(m,_.Bz(this.delegate.primaryArtists));this.delegate.details&&m.push(this.delegate.details);this.delegate.userDetails&&m.push(this.delegate.userDetails);this.delegate.tracks&&m.push.apply(m,_.Bz(this.delegate.tracks));this.delegate.share&&m.push(this.delegate.share);this.delegate.downloadMetadata&&m.push(this.delegate.downloadMetadata);this.delegate.refresh&&
m.push(this.delegate.refresh);return[].concat(_.Bz(new Set(m)))};
GtG.prototype.getTypeName=function(){return"musicAlbumRelease"};
var Khk=function(){zc.apply(this,arguments)};
_.n(Khk,zc);Khk.prototype.getAssociations=function(){var m=[];this.delegate.albumRelease&&m.push(this.delegate.albumRelease);this.delegate.tracks&&m.push.apply(m,_.Bz(this.delegate.tracks));return[].concat(_.Bz(new Set(m)))};
Khk.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Wh2=function(){zc.apply(this,arguments)};
_.n(Wh2,zc);Wh2.prototype.getAssociations=function(){var m=[];this.delegate.albumRelease&&m.push(this.delegate.albumRelease);return[].concat(_.Bz(new Set(m)))};
Wh2.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var Lhl=function(){zc.apply(this,arguments)};
_.n(Lhl,zc);Lhl.prototype.getAssociations=function(){var m=[];this.delegate.details&&m.push(this.delegate.details);this.delegate.userDetails&&m.push(this.delegate.userDetails);return[].concat(_.Bz(new Set(m)))};
Lhl.prototype.getTypeName=function(){return"musicArtist"};
var A4S=function(){zc.apply(this,arguments)};
_.n(A4S,zc);A4S.prototype.getAssociations=function(){var m=[];this.delegate.parentArtist&&m.push(this.delegate.parentArtist);return[].concat(_.Bz(new Set(m)))};
A4S.prototype.getTypeName=function(){return"musicArtistDetail"};
var wqS=function(){zc.apply(this,arguments)};
_.n(wqS,zc);wqS.prototype.getAssociations=function(){var m=[];this.delegate.parentArtist&&m.push(this.delegate.parentArtist);return[].concat(_.Bz(new Set(m)))};
wqS.prototype.getTypeName=function(){return"musicArtistUserDetail"};var gPS=function(){zc.apply(this,arguments)};
_.n(gPS,zc);gPS.prototype.getAssociations=function(){return[]};
gPS.prototype.getTypeName=function(){return"musicLibraryEdit"};var Oal=function(){zc.apply(this,arguments)};
_.n(Oal,zc);Oal.prototype.getAssociations=function(){return[]};
Oal.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var c40=function(){zc.apply(this,arguments)};
_.n(c40,zc);
c40.prototype.getAssociations=function(){var m=[];this.delegate.tracks&&m.push.apply(m,_.Bz(this.delegate.tracks));this.delegate.refresh&&m.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&m.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&m.push(this.delegate.details);this.delegate.downloadMetadata&&m.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&m.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&m.push(this.delegate.userDetails);this.delegate.entryCollection&&
m.push(this.delegate.entryCollection);this.delegate.share&&m.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&m.push.apply(m,_.Bz((new YHG(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Bz(new Set(m)))};
c40.prototype.getTypeName=function(){return"musicPlaylist"};
var YHG=function(){U4.apply(this,arguments)};
_.n(YHG,U4);YHG.prototype.getAssociations=function(){var m=[];this.delegate.creatorEntity&&m.push(this.delegate.creatorEntity);return[].concat(_.Bz(new Set(m)))};var r4k=function(){zc.apply(this,arguments)};
_.n(r4k,zc);r4k.prototype.getAssociations=function(){return[]};
r4k.prototype.getTypeName=function(){return"musicShare"};var ueF=function(){zc.apply(this,arguments)};
_.n(ueF,zc);
ueF.prototype.getAssociations=function(){var m=[];this.delegate.musicLibraryStatusEntity&&m.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&m.push.apply(m,_.Bz(this.delegate.artists));this.delegate.audioModeVersion&&m.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&m.push(this.delegate.videoModeVersion);this.delegate.userDetails&&m.push(this.delegate.userDetails);this.delegate.details&&m.push(this.delegate.details);this.delegate.albumRelease&&m.push(this.delegate.albumRelease);this.delegate.share&&
m.push(this.delegate.share);this.delegate.libraryEdit&&m.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&m.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&m.push(this.delegate.playbackPosition);this.delegate.lyrics&&m.push(this.delegate.lyrics);return[].concat(_.Bz(new Set(m)))};
ueF.prototype.getTypeName=function(){return"musicTrack"};
var ho4=function(){zc.apply(this,arguments)};
_.n(ho4,zc);ho4.prototype.getAssociations=function(){var m=[];this.delegate.parentTrack&&m.push(this.delegate.parentTrack);return[].concat(_.Bz(new Set(m)))};
ho4.prototype.getTypeName=function(){return"musicTrackDetail"};
var pql=function(){zc.apply(this,arguments)};
_.n(pql,zc);pql.prototype.getAssociations=function(){var m=[];this.delegate.parentTrack&&m.push(this.delegate.parentTrack);return[].concat(_.Bz(new Set(m)))};
pql.prototype.getTypeName=function(){return"musicTrackUserDetail"};var $1=new _.$W("musicResponsiveListItemRenderer");var xfv=new _.$W("addToPlaylistEndpoint");var J4K=new _.$W("captionPickerEndpoint");var NRP=new _.$W("suggestStats");var DmF=new _.$W("backstageImageUploadEndpoint");var tdX=new _.$W("createBackstagePostDialogEndpoint");_.FhG=new _.$W("createCommentReplyDialogEndpoint");_.QEo=new _.$W("updateCommentDialogEndpoint");_.adP=new _.$W("updateCommentReplyDialogEndpoint");var oPX=new _.$W("menuEndpoint");var xxf=new _.$W("modalEndpoint");var nP0=new _.$W("playlistEditorEndpoint");var baC=new _.$W("copyTextEndpoint");var vPX,$mP;vPX=new _.$W("shareEndpoint");$mP=new _.$W("shareEntityEndpoint");_.sE2=new _.$W("shareEntityServiceEndpoint");_.kRv=new _.$W("userFeedbackEndpoint");_.QQ=new _.$W("watchEndpoint");var xed=new _.$W("watchPlaylistEndpoint");var qHP=new _.$W("addUpcomingEventReminderEndpoint");_.O7=new _.$W("getCommentsFromInboxCommand");var EPF=new _.$W("notificationOptOutEndpoint");var HaS=new _.$W("recordNotificationInteractionsEndpoint");var Idk=new _.$W("removeUpcomingEventReminderEndpoint");_.nz=new _.$W("getDownloadActionCommand");_.jEl=new _.$W("offlineOrchestrationActionCommand");var kt0=function(){zc.apply(this,arguments)};
_.n(kt0,zc);kt0.prototype.getAssociations=function(){return[]};
kt0.prototype.getTypeName=function(){return"captionTrack"};var CpB=function(){zc.apply(this,arguments)};
_.n(CpB,zc);CpB.prototype.getAssociations=function(){return[]};
CpB.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var Vdl=function(){zc.apply(this,arguments)};
_.n(Vdl,zc);Vdl.prototype.getAssociations=function(){return[]};
Vdl.prototype.getTypeName=function(){return"offlineVideoPolicy"};var ZaK=function(){zc.apply(this,arguments)};
_.n(ZaK,zc);ZaK.prototype.getAssociations=function(){return[]};
ZaK.prototype.getTypeName=function(){return"offlineVideoStreams"};var dmR=function(){zc.apply(this,arguments)};
_.n(dmR,zc);dmR.prototype.getAssociations=function(){var m=[];this.delegate.transfer&&m.push(this.delegate.transfer);this.delegate.adsPlaybackData&&m.push.apply(m,_.Bz(this.delegate.adsPlaybackData));this.delegate.drmLicense&&m.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&m.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&m.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Bz(new Set(m)))};
dmR.prototype.getTypeName=function(){return"playbackData"};var PpP=function(){zc.apply(this,arguments)};
_.n(PpP,zc);PpP.prototype.getAssociations=function(){return[]};
PpP.prototype.getTypeName=function(){return"refresh"};var y4k=function(){zc.apply(this,arguments)};
_.n(y4k,zc);y4k.prototype.getAssociations=function(){var m=[];this.delegate.offlineVideoStreams&&m.push.apply(m,_.Bz(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&m.push.apply(m,_.Bz(this.delegate.captionTrack));return[].concat(_.Bz(new Set(m)))};
y4k.prototype.getTypeName=function(){return"transfer"};var eoP=function(){zc.apply(this,arguments)};
_.n(eoP,zc);eoP.prototype.getAssociations=function(){return[]};
eoP.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var fd4=new _.$W("showMoreDrawerCommand");var xmk=new _.$W("updateEngagementPanelContentCommand");var Xqk=new _.$W("getPdgBuyFlowCommand");var SHG=new _.$W("liveChatPurchaseMessageEndpoint");var RoC=new _.$W("openSuperStickerBuyFlowCommand");var UmS=new _.$W("updatePdgFeatureEnablementCommand");var zo0=function(){zc.apply(this,arguments)};
_.n(zo0,zc);zo0.prototype.getAssociations=function(){return[]};
zo0.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var ld4=function(){zc.apply(this,arguments)};
_.n(ld4,zc);ld4.prototype.getAssociations=function(){return[]};
ld4.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.BRG=new _.$W("pdgCommentChipRenderer");_.MdX=new _.$W("permissionRoleBottomBarRenderer");_.TRl=new _.$W("updatePermissionRoleCommand");var mRK=new _.$W("prefetchWatchCommand");var i5R=new _.$W("updatePlayerErrorMessageCommand");var ku6=new _.$W("toggleCaptionsVisibilityCommand");var Gxl=new _.$W("playerDisclosureViewModel");_.K_k=new _.$W("quickActionsViewModel");var W_F=new _.$W("playerResponse");var L_G=new _.$W("playlistRenderer");_.Ax0=new _.$W("playlistVideoListRenderer");_.cB=new _.$W("playlistEditEndpoint");var wik=new _.$W("createImagePollCommand");var g60=new _.$W("createQuizCommand");var O5l=new _.$W("quizRenderer");var cxB=new _.$W("uploadedVideoRenderer");var YD2=new _.$W("decorateMessageEndpoint");var rxk=new _.$W("lpOfferCardOptionViewModel");var uql=new _.$W("sfvAudioItemPlaybackCommand");var hh4=function(){zc.apply(this,arguments)};
_.n(hh4,zc);hh4.prototype.getAssociations=function(){return[]};
hh4.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Yq=new _.$W("reelNonVideoContentEndpoint");_.lw=new _.$W("reelWatchEndpoint");var pi2=new _.$W("reelActionBarViewModel");_.rp=new _.$W("reelItemRenderer");var Jx4=new _.$W("reelMetapanelViewModel");_.NEK=new _.$W("reelNonVideoContentRenderer");_.DR2=new _.$W("reelPlayerOverlayRenderer");var tp4=new _.$W("shortsLockupViewModel");var F_0=new _.$W("sponsorButtonViewModel");var QqB=new _.$W("reelItemWatchResponse");var afl=new _.$W("textBadgeRenderer");_.uu=new _.$W("buttonRenderer");_.h6=new _.$W("toggleButtonRenderer");var fm6=new _.$W("switchButtonViewModel");_.o6o=new _.$W("confirmDialogRenderer");var n6R;n6R=new _.$W("menuRenderer");_.b5l=new _.$W("menuFlexibleItemRenderer");var v6C=new _.$W("pollRenderer");_.$Ri=new _.$W("backgroundPromoRenderer");var qDC;_.sq0=new _.$W("chipCloudRenderer");qDC=new _.$W("chipCloudChipRenderer");var E6i=new _.$W("dropdownRenderer");var H5S=new _.$W("gridVideoRenderer");_.If0=new _.$W("itemSectionRenderer");_.jq2=new _.$W("messageRenderer");var kxR=new _.$W("sortFilterHeaderRenderer");_.CmG=new _.$W("videoRenderer");var VpF=new _.$W("resolveUrlCommandMetadata");var Z5F=function(){zc.apply(this,arguments)};
_.n(Z5F,zc);Z5F.prototype.getAssociations=function(){return[]};
Z5F.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.dRX=new _.$W("getAnswerCommand");_.RW=new _.$W("searchEndpoint");var Pm0=new _.$W("genAiRichTextViewModel");var e26=new _.$W("overviewAnswerViewModel");var yxR=new _.$W("videoOverviewViewModel");var ehG=new _.$W("addToPlaylistServiceEndpoint");var ff0=new _.$W("clearSearchHistoryEndpoint");var xRC=new _.$W("clearWatchHistoryEndpoint");var Xii=new _.$W("webSerializedServiceEndpointExtension");_.SDC=new _.$W("createCommentEndpoint");var RhB=new _.$W("createCommentReplyEndpoint");var UR2=new _.$W("performCommentActionEndpoint");var zhi=new _.$W("updateCommentEndpoint");var lfk=new _.$W("updateCommentReplyEndpoint");_.pK=new _.$W("createPlaylistServiceEndpoint");var BE4=new _.$W("deletePlaylistEndpoint");var MpF=new _.$W("deleteVideoEndpoint");var frM=new _.$W("getReportFormEndpoint");var TEk=new _.$W("modifyChannelNotificationPreferenceEndpoint");var T79;_.Xk=new _.$W("offlinePlaylistEndpoint");T79={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 mZ9;_.xg=new _.$W("offlineVideoEndpoint");mZ9={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 mSG=new _.$W("pingingEndpoint");_.i9S=new _.$W("selectActiveIdentityEndpoint");var GMl=new _.$W("setSettingEndpoint");var FOs=new _.$W("undoFeedbackEndpoint");var Ks4=new _.$W("unsubscribeEndpoint");_.WsC=new _.$W("updatedMetadataEndpoint");var LsR=function(){zc.apply(this,arguments)};
_.n(LsR,zc);LsR.prototype.getAssociations=function(){return[]};
LsR.prototype.getTypeName=function(){return"settingEntity"};_.ASS=new _.$W("updateLocalAppSettingCommand");var wTS=new _.$W("saveImageToDeviceEndpoint");var gjP=new _.$W("shareImageCommand");var O9X=new _.$W("sharingProviderDataCommand");var cSk=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(cSk,_.pp);var YWF=[0,_.sA,-1];cSk.prototype.JSC$12839_serializeBinary=grM(YWF);var rSR=_.qI(YWF);var ua0=new _.$W("userMentionSuggestionRenderer");var hwo=new _.$W("liveChatTunnelCommand");var pTR=new _.$W("showSponsorshipsGiftOfferDialogCommand");var JSK=new _.$W("sponsorshipsScrollableShelfViewModel");var NtB=new _.$W("updateUpcomingEventReminderButtonStateCommand");var DSG=new _.$W("upcomingEventReminderButtonStateRenderer");var tBK=new _.$W("subscribeEndpoint");var FsR=new _.$W("registerTasksCommand");var QuX=new _.$W("hideSheetCommand");var anG=new _.$W("hideSnackbarCommand");var ojo=new _.$W("showDialogCommand");_.MW=new _.$W("showSheetCommand");var njP=new _.$W("showSnackbarCommand");var b9k=function(){zc.apply(this,arguments)};
_.n(b9k,zc);b9k.prototype.getAssociations=function(){return[]};
b9k.prototype.getTypeName=function(){return"chipEntity"};var vjo=function(){zc.apply(this,arguments)};
_.n(vjo,zc);vjo.prototype.getAssociations=function(){return[]};
vjo.prototype.getTypeName=function(){return"dismissState"};_.YA=new _.$W("avatarViewModel");var $SF=new _.$W("badgeViewModel");_.J6=new _.$W("buttonViewModel");_.NV=new _.$W("chipViewModel");var suF=new _.$W("contentPreviewImageViewModel");var qW0=new _.$W("decoratedAvatarViewModel");_.gaG=new _.$W("engagementBarViewModel");_.Ej2=new _.$W("imageBannerViewModel");var H9F=new _.$W("lockupContentMetadataRowExtension");_.InF=new _.$W("lockupMetadataViewModel");var juC=new _.$W("lockupViewModel");var kMB=new _.$W("avatarStackViewModel");_.CnG=new _.$W("contentMetadataViewModel");var VBX=function(){zc.apply(this,arguments)};
_.n(VBX,zc);VBX.prototype.getAssociations=function(){return[]};
VBX.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Z9C=new _.$W("pageHeaderViewModel");var dSl=new _.$W("snackbarViewModel");var PnP=new _.$W("thumbnailHoverOverlayToggleActionsViewModel");_.Dj=new _.$W("toggleButtonViewModel");var ySR=function(){zc.apply(this,arguments)};
_.n(ySR,zc);ySR.prototype.getAssociations=function(){return[]};
ySR.prototype.getTypeName=function(){return"votingEntity"};_.O7F=new _.$W("votingViewModel");var ewl=new _.$W("sectionHeaderViewModel");var fnX=new _.$W("notifyDropdownOptionSelectedCommand");var QAo=new _.$W("listViewModel");_.T$=new _.$W("listItemViewModel");var xS0=new _.$W("dialogHeaderViewModel");var XTk=function(){zc.apply(this,arguments)};
_.n(XTk,zc);XTk.prototype.getAssociations=function(){return[]};
XTk.prototype.getTypeName=function(){return"dataFreshnessEntity"};var s8d=new _.$W("suspenseViewModel");var SWR=new _.$W("tooltipViewModel");var RwG=function(){zc.apply(this,arguments)};
_.n(RwG,zc);RwG.prototype.getAssociations=function(){return[]};
RwG.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var USR=function(){zc.apply(this,arguments)};
_.n(USR,zc);USR.prototype.getAssociations=function(){return[]};
USR.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var zwB=function(){zc.apply(this,arguments)};
_.n(zwB,zc);zwB.prototype.getAssociations=function(){return[]};
zwB.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.lnl=new _.$W("transcriptSubmitCaptionCorrectionCommand");var BtG=function(){zc.apply(this,arguments)};
_.n(BtG,zc);BtG.prototype.getAssociations=function(){return[]};
BtG.prototype.getTypeName=function(){return"buttonEntity"};var HqP=new _.$W("unpluggedStringRunImage");var MBo=new _.$W("tabViewModel");var Tti=new _.$W("tabbedViewModel");var mUo=function(){zc.apply(this,arguments)};
_.n(mUo,zc);mUo.prototype.getAssociations=function(){return[]};
mUo.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.ik2=new _.$W("updateDescriptionAction");var Gll=new _.$W("updateToggleButtonTextAction");var KBB=new _.$W("showFullscreenPlayerControlsCommand");var WBX=new _.$W("updateVideoMetadataCommand");_.LB0=new _.$W("autoplaySwitchButtonRenderer");var r1;_.Ar4=new _.$W("multiMarkersPlayerBarRenderer");r1=new _.$W("chapterRenderer");var wx2=new _.$W("heatMarkerRenderer");var IUd=new _.$W("heatmapRenderer");var g80=new _.$W("smartSkipPlayerScrimOverlayRenderer");var Ok0=new _.$W("timedMarkerDecorationRenderer");var lHP=new _.$W("postWebToNativeMessageCommand");var OU=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(OU,_.pp);OU.prototype.getMethodName=function(){return _.wL(this,1)};var crR=[0,_.sA,-2];OU.prototype.JSC$12861_serializeBinary=grM(crR);var YxK=_.se(OU,crR);var rr2=new _.$W("whitelistEditEndpoint");var uBi=new _.$W("clearUrlParamCommand");var hpC=new _.$W("commerceActionCommand");_.pxG=new _.$W("getPaymentInstrumentsParamsCommand");var Jro=new _.$W("getPaymentsClientTokenCommand");var tSk=new _.$W("googlePaymentBillingCommand");var FMo=new _.$W("googlePaymentPurchaseManagerCommand");_.Q_P=new _.$W("logGtmCommand");var aaS=new _.$W("updateCardItemOnClickCommand");_.oUX=new _.$W("ypcPauseSubscriptionCommand");_.nUo=new _.$W("ypcResumeSubscriptionCommand");var bfS=function(){zc.apply(this,arguments)};
_.n(bfS,zc);bfS.prototype.getAssociations=function(){return[]};
bfS.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var vUP=function(){zc.apply(this,arguments)};
_.n(vUP,zc);vUP.prototype.getAssociations=function(){return[]};
vUP.prototype.getTypeName=function(){return"commerceCartListEntity"};var $ol=function(){zc.apply(this,arguments)};
_.n($ol,zc);$ol.prototype.getAssociations=function(){return[]};
$ol.prototype.getTypeName=function(){return"iconBadgeEntity"};var s_k=function(){zc.apply(this,arguments)};
_.n(s_k,zc);s_k.prototype.getAssociations=function(){return[]};
s_k.prototype.getTypeName=function(){return"pdpStateEntity"};var q9P=function(){zc.apply(this,arguments)};
_.n(q9P,zc);q9P.prototype.getAssociations=function(){return[]};
q9P.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var $5d=new _.$W("ypcOffersEndpoint");var EUC=new _.$W("cardItemRenderer"),HfS=new _.$W("cardItemTextRenderer");var Iak=new _.$W("commerceCartItemQuantityPickerRenderer");var j_0=new _.$W("linkCardRenderer");var fH9=new _.$W("quantityIncrementerButtonViewModel");var kwo=new _.$W("quantityIncrementerViewModel");var CvS=new _.$W("themedImageViewModel");_.VSR=new _.$W("ypcCancelRecurrenceEndpoint");var Zfo=new _.$W("ypcCompleteTransactionEndpoint");_.do4=new _.$W("ypcGetCartEndpoint");_.nQ=new _.$W("ypcGetOffersEndpoint");_.t6=new _.$W("ypcHandleTransactionEndpoint");var PvB=new _.$W("ypcLogWalletAnalyticDataEndpoint");_.yGF=new _.$W("ypcRedeemCodeEndpoint");var euk=new _.$W("ypcUpdateFopEndpoint");s4($Y(1),bN(4));ct2((new MessageChannel).port2);var fai=function(){this.register=new Map},r6d=function(m,G,K){m=m+"_"+G;
F$.register.has(m)?K=F$.register.get(m):(K=K(),F$.register.set(m,K));return K},xoC=function(m){m=_.g(m.register.values());
for(var G=m.next();!G.done;G=m.next())_.Sq(G.value,"ABORTED")};
fai.prototype.clear=function(){xoC(this);this.register.clear()};
var F$=new fai;var S4M=Date.now().toString();var ziM=UAP();var KIF={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 XrF;XrF=1;_.Aj=function(m){this.veData=m};
_.m5=function(m){return new _.Aj({trackingParams:m})};
_.dq=function(m,G,K,W,L,A){var O=XrF++;return new _.Aj({veType:m,veCounter:O,elementIndex:K,dataElement:G,youtubeData:W,jspbYoutubeData:L,loggingDirectives:A})};
_.w=_.Aj.prototype;
_.w.getAsJson=function(){var m={};this.veData.trackingParams!==void 0?m.trackingParams=this.veData.trackingParams:(m.veType=this.veData.veType,this.veData.veCounter!==void 0&&(m.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(m.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(m.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(m.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(m.isCounterfactual=!0);
return m};
_.w.getAsJspb=function(){var m=new BUK;this.veData.trackingParams!==void 0?m.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.rL(m,2,this.veData.veType),this.veData.veCounter!==void 0&&_.rL(m,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.rL(m,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.x2(m,5,!0));if(this.veData.dataElement!==void 0){var G=this.veData.dataElement.getAsJspb();_.ko(m,7,G)}this.veData.youtubeData!==void 0&&_.ko(m,8,this.veData.jspbYoutubeData);
return m};
_.w.toString=function(){return JSON.stringify(this.getAsJson())};
_.w.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.w.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.yj("yt_logging_screen.getRootVeType",mVv);_.yj("yt_logging_screen.getCurrentCsn",_.gU);_.yj("yt_logging_screen.getCttAuthInfo",OB);_.yj("yt_logging_screen.setCurrentScreen",_.cH);var S94=function(){this.events=new Map},Rul=function(m){var G=[];
m=_.g(m.events.values());for(var K=m.next();!K.done;K=m.next())G.push(K.value);return G};
S94.prototype.clear=function(){this.events.clear()};var zuS=function(){this.logTransport=new UoG;this.loggedEventRegister=new S94;this.unloggedEventRegister=new S94;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12898_flushTimer=new _.Yl(this.flushInterval);this.JSC$12898_flushTimer.listen("tick",this.flush,!1,this)};
zuS.prototype.flush=function(){if(this.eventsCount){var m={loggedEvents:Rul(this.loggedEventRegister),unloggedEvents:Rul(this.unloggedEventRegister)};if(_.F("export_player_version_to_ytconfig")){var G;(G=_.E8("PLAYER_CLIENT_VERSION"))?(G=G.split("-")[0].replace(/\./g,""),G=isNaN(Number(G))?"0":G):G="";var K=_.E8("PLAYER_CLIENT_VERSION");if(K){K=K.split("-");var W="";K.length>1&&(W=K[K.length-1]);K=XMV(W.startsWith("canary_experiment")?"canary":W.startsWith("canary_control")?"control":"none")}else K=
"CLIENT_CANARY_STATE_UNKNOWN";m.dimensions={playerClientVersion:G,playerCanaryState:K}}this.logTransport.flush(m);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12898_flushTimer.enabled&&this.JSC$12898_flushTimer.stop()}};
var laC=function(m){Qw==null&&(Qw=new zuS);var G=Qw;var K=G.loggedEventRegister;m.dimensions=m.dimensions||{};m.dimensions.csn=_.gU()||"";var W=A6f(m.dimensions).join(";");if(m.records!=null)if(K.events.has(W)){var L;(L=K.events.get(W).records)==null||L.push.apply(L,_.Bz(m.records))}else K.events.set(W,m);G.JSC$12898_flushTimer.enabled||G.JSC$12898_flushTimer.start();G.eventsCount++;G.eventsCount>=100&&G.flush()};var UoG=function(){};
UoG.prototype.flush=function(m,G){_.F("enable_client_sli_logging")&&_.Fx("sliEventBatch",m,{sendIsolatedPayload:!!G})};var Qw;var MSB;MSB=function(m){var G=BIX;m=m===void 0?{}:m;G=G.name;var K=Y7d("SUCCESS");laC({dimensions:m,records:[{name:G,state:"SLI_STATE_END",status:K}]})};
_.u$d=function(m,G,K,W){this.name=m;this.sliId=G;this.timeoutMs=K;this.statusOnTimeout=W;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.u$d.prototype.getId=function(){return this.sliId};
_.Xw=function(m,G){G=G===void 0?{}:G;m.ongoing||(m.ongoing=!0,m.dimensions=G,m.logSliId=k5J(),laC({dimensions:m.dimensions,records:[{name:m.name,state:"SLI_STATE_START",sliId:m.logSliId}]}),m.timeoutMs>0&&(m.timeoutHandle=setTimeout(function(){_.Sq(m,m.statusOnTimeout)},m.timeoutMs)))};
_.Sq=function(m,G){m.ongoing&&(m.timeoutMs>0&&clearTimeout(m.timeoutHandle),m.ongoing=!1,G={dimensions:m.dimensions,records:[{name:m.name,status:Y7d(G),state:"SLI_STATE_END",sliId:m.logSliId}]},F$.register.delete(m.name+"_"+m.sliId),laC(G))};var BIX=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var TIR=function(){zc.apply(this,arguments)};
_.n(TIR,zc);TIR.prototype.getAssociations=function(){return[]};
TIR.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var me0=new _.$W("highlightTextDecoratorColorMapExtension");var i40=new _.$W("styleRunColorMapExtension");var FIF=_.nY(["data-"]),oqF={};var bKJ={};var ag=function(m){this.wrappedPromise_=m===void 0?null:m;this.state_=0;this.JSC$12929_value_=null};
ag.prototype.then=function(m,G,K){return this.wrappedPromise_?this.wrappedPromise_.then(m,G,K):this.state_===1&&m?(m=m.call(K,this.JSC$12929_value_))&&typeof m.then==="function"?m:_.og(m):this.state_===2&&G?(m=G.call(K,this.JSC$12929_value_))&&typeof m.then==="function"?m:_.Gyl(m):this};
ag.prototype.getValue=function(){return this.JSC$12929_value_};
ag.prototype.isRejected=function(){return this.state_==2};
Aw0(ag);_.Gyl=function(m){var G=new ag;m=m===void 0?null:m;G.state_=2;G.JSC$12929_value_=m===void 0?null:m;return G};
_.og=function(m){var G=new ag;m=m===void 0?null:m;G.state_=1;G.JSC$12929_value_=m===void 0?null:m;return G};var y6J="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var KqK=["load","abort","error"],nK=function(m,G,K){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12949_maxAspectRatio_=m;this.disableAnimation_=G===void 0?!1:G;this.disableExifRotation_=K===void 0?!1:K;this.JSC$12949_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12949_reject_=this.resolve_=null};
nK.prototype.transform=function(m){var G=this;this.mime_=m.type;q3(y$X(m),this.dataUrlRead_,this.readError_,this);q3(PKk(m.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(K,W){G.resolve_=K;G.JSC$12949_reject_=W})};
nK.prototype.dataUrlRead_=function(m){this.dataUrl_=m;this.angle_!=null&&WqS(this)};
nK.prototype.exifRead_=function(m){if(this.disableExifRotation_)this.angle_=0;else{a:if(m=new DataView(m),m.byteLength<2||m.getUint16(0)!==65496)m=-2;else{for(var G=2,K=m.byteLength;G<K;){var W=m.getUint16(G),L=m.getUint16(G+2);if(W===65505){G+=4;W=m.getUint32(G);L=m.getUint16(G+4);if(W!==1165519206||L!==0)break;G+=6;W=m.getUint16(G)===18761;G+=m.getUint32(G+4,W);L=m.getUint16(G,W);G+=2;for(var A=0;A<L;A++){if(m.getUint16(G,W)===274){G+=8;m=m.getUint16(G,W);break a}G+=12}}else if(W>>8!==255)break;
else G+=L+2}m=-1}switch(m){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&&WqS(this)};
nK.prototype.readError_=function(){this.JSC$12949_reject_()};
var WqS=function(m){JO(m.JSC$12949_image_,KqK,m.completeTransform_,!1,m);m.JSC$12949_image_.src=_.MI(m.dataUrl_).toString();m.JSC$12949_image_.src!=BN.toString()&&m.JSC$12949_image_.src.substr(0,11)==="data:image/"||m.JSC$12949_reject_()};
nK.prototype.completeTransform_=function(){if(this.JSC$12949_image_.src!=BN.toString()){var m=_.MI(this.dataUrl_),G=this.JSC$12949_image_.naturalHeight?this.JSC$12949_image_.naturalWidth/this.JSC$12949_image_.naturalHeight:null;this.invalidAspectRatio=G>this.JSC$12949_maxAspectRatio_||G<1/this.JSC$12949_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var K=this.JSC$12949_image_.naturalWidth,W=this.JSC$12949_image_.naturalHeight,L=G=0,A=this.JSC$12949_image_.naturalHeight?this.JSC$12949_image_.naturalWidth/
this.JSC$12949_image_.naturalHeight:null;A>this.JSC$12949_maxAspectRatio_?(K=this.JSC$12949_maxAspectRatio_*W,G=(K-this.JSC$12949_image_.naturalWidth)/2,this.cropped=!0):A<1/this.JSC$12949_maxAspectRatio_?(W=this.JSC$12949_maxAspectRatio_*K,L=(W-this.JSC$12949_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)A=K,K=W,W=A,A=G,G=L,L=A;switch(this.angle_){case 90:L-=K;break;case 180:G-=K;L-=W;break;case 270:G-=
W}this.cropped||this.angle_%360!==0?(m=document.createElement("canvas"),m.width=K||1,m.height=W||1,this.JSC$12949_image_.naturalWidth&&this.JSC$12949_image_.naturalHeight&&(K=m.getContext("2d"),K.rotate(Math.PI/180*this.angle_),K.drawImage(this.JSC$12949_image_,G,L,this.JSC$12949_image_.naturalWidth,this.JSC$12949_image_.naturalHeight)),this.transformedData=_.MI(m.toDataURL(this.mime_))):this.transformedData=m}else this.transformedData=m;this.resolve_(this)}};var bu=function(m,G){_.dM.call(this,m);this.value=G};
_.n(bu,_.dM);
var vB=function(m,G,K,W,L,A,O){O=O===void 0?!1:O;_.ai.call(this);var c=this;this.JSC$12954_url_=m;this.channelId_=G;this.maxFileSizeMb_=K;this.JSC$12954_maxAspectRatio_=W;this.dropZoneEl_=L;this.rejectInvalidAspectRatio_=O;this.selectButtonEl_=A;this.JSC$12954_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Vm(this.dropZoneEl_);this.selectOverlay_=new Zp(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12954_image_=this.transfer_=null;this.handler_=new _.gM(this);_.UR(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(A,"click",function(){c.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.n(vB,_.ai);vB.prototype.disposeInternal=function(){for(var m=this.selectButtonEl_.nextSibling;m&&m.parentNode&&m.tagName=="INPUT";)m.parentNode.removeChild(m),m=this.selectButtonEl_.nextSibling;this.cancel();_.ai.prototype.disposeInternal.call(this)};
vB.prototype.uploadPromise=function(){if(this.JSC$12954_image_==null)return null;this.uploadPromise_||LqF(this);return this.uploadPromise_};
vB.prototype.cancel=function(){Ael(this);this.JSC$12954_image_=null};
var Ael=function(m){m.transfer_&&m.transfer_.cancel();m.transfer_=null;m.uploadPromise_=null;m.resolve_=null;m.JSC$12954_reject_=null},LqF=function(m){Ael(m);
m.transfer_=_.oWk(m.JSC$12954_url_,{"X-YouTube-ChannelId":m.channelId_},m.JSC$12954_image_);m.handler_.listenOnce(m.transfer_,"l",m.JSC$12956_onUploadComplete_);m.handler_.listenOnce(m.transfer_,"n",m.onUploadError_);m.transfer_.run();m.uploadPromise_=new Promise(function(G,K){m.resolve_=G;m.JSC$12954_reject_=K})};
_.w=vB.prototype;_.w.onChange_=function(m){m.files.length&&(this.JSC$12954_image_=m.files[0],this.JSC$12954_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12954_image_=null,this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(LqF(this),(new nK(this.JSC$12954_maxAspectRatio_)).transform(this.JSC$12954_image_).then((0,_.AO)(this.onPreview_,this),(0,_.AO)(this.onPreviewError_,this))))};
_.w.onPreview_=function(m){if(m.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12954_image_=null),this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;m.cropped&&this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.CHANGE_EVENT",m.transformedData))};
_.w.onPreviewError_=function(){this.JSC$12954_image_=null;this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.w.onHover_=function(m){m.stopPropagation();m.preventDefault();if(m.type==="dragover")m=!0;else if(m.type==="dragleave")m=!1;else return;this.dispatchEvent(new bu("yt.comments.ImageUploadOverlay.HOVER_EVENT",m))};
_.w.JSC$12956_onUploadComplete_=function(){var m=(0,_.ESX)(this.transfer_.getResponseText());this.resolve_(m.encryptedBlobId)};
_.w.onUploadError_=function(){this.JSC$12954_reject_();Ael(this)};var wjB=function(m){m=m||{};var G={},K={};this.url=m.url||"";this.args=m.args||_.Y2.clone(G);this.assets=m.assets||{};this.attrs=m.attrs||_.Y2.clone(K);this.fallback=m.fallback||null;this.fallbackMessage=m.fallbackMessage||null;this.html5=!!m.html5;this.disable=m.disable||{};this.loaded=!!m.loaded;this.messages=m.messages||{}};
wjB.prototype.clone=function(){var m=new wjB,G;for(G in this)if(this.hasOwnProperty(G)){var K=this[G];_.LP(K)=="object"?m[G]=_.Y2.clone(K):m[G]=K}return m};var UVM=function(m,G,K){K=K===void 0?{}:K;this.name=m;this.id=HH.nextSpanId++;this.sessionId=HH.sessionId;this.attributes=G;this.status="SPAN_STATUS_UNSET";var W;this.startTime=(W=K.startTime)!=null?W:(0,_.xD)();this.isActiveSpan=K.active;if(m=HH.stack[HH.stack.length-1])this.parentId=m.id,m.children||(m.children=[]),m.children.push(this);m=_.g(HH.processors);for(G=m.next();!G.done;G=m.next()){G=G.value;try{var L=W=void 0;(L=(W=G).onSpanStart)==null||L.call(W,this)}catch(A){_.nc(A)}}K.endTime!=null&&
(this.isActiveSpan=!1,this.end("SPAN_STATUS_OK",K.endTime))};
UVM.prototype.end=function(m,G){m=m===void 0?"SPAN_STATUS_OK":m;this.endTime=G=G===void 0?(0,_.xD)():G;this.duration=this.endTime-this.startTime;this.status=m;this.isActiveSpan!==!1&&(HH.stack[HH.stack.length-1]===this?HH.stack.pop():_.nc(Error("Df`"+String(this.name))));m=_.g(HH.processors);for(G=m.next();!G.done;G=m.next()){G=G.value;try{var K=void 0,W=void 0;(W=(K=G).onSpanEnd)==null||W.call(K,this)}catch(L){_.nc(L)}}};
UVM.prototype.addAttributes=function(m){Object.assign(this.attributes,m)};
var zPo={end:function(){},
addAttributes:function(){}},HH={initialized:!1,
nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},RPV={rootSpan:function(){return HH.stack[0]}};var VQ={};var OyJ=function(m){this.observers=[];this.value=m};
_.w=OyJ.prototype;_.w.subscribe=function(m){var G=this;if(m.idx!=null)throw Error("Ff");m.idx=this.observers.length;this.observers.push(m);try{m(this.value)}catch(K){}return function(){var K=G.observers[G.observers.length-1];G.observers[m.idx]=K;K.idx=m.idx;G.observers.pop()}};
_.w.update=function(m){this.value=m(this.value);this.notify()};
_.w.mutate=function(m){m(this.value);this.notify()};
_.w.set=function(m){this.value=m;this.notify()};
_.w.notify=function(){for(var m=_.g(this.observers),G=m.next();!G.done;G=m.next()){G=G.value;try{G(this.value)}catch(K){}}};var gmk,O4F,ce4,vY,reC,upk,heF,pj2,JeP,NrR,De4,tLS,FqB,QXC,aBC,omB,nmR,b4l,vmi,$e0,sXo,qPG,EmS,H4l,IBG,jXF,ky0,CcR,VLB,WR6,Z4S,deS,PcK,yei,eeF,fB0,xeK,XjS,SPB,ReR,KRM,UeX,zeS,lBK,BrR,ML4,Tro,mMi,i1i,GQ4,KtS,WtK,Lto,A5S,wcF,gf2,$q,O1i,c52,YmF,r5S,uKi,hUG,pcK,J54,NYk,DMK,tj0,FtR,Qy0,a2k,ofC,nfS,b14,vfl,$M4,i7M,syK,qmX,Efo,H1F,I22,jy4,kQo,CF2,Vjl,Z1X,dMl,PFR,y5l,eU0,f2X,xM0,XcB,SmB,RUi,UMo,zUR,l2X,BYG,Mj2,TYi;gmk=["account/accounts_list"];O4F=["acknowledge_channel_tou_strike"];ce4=["notification/add_upcoming_event_reminder"];
_.YPB=["att/get"];vY=["browse","music/browse","streaming_browse","unplugged/browse"];reC=["channel/claim_legacy_youtube_channel"];upk=["history/clear_search_history"];heF=["history/clear_watch_history"];pj2=["comment/perform_comment_action"];JeP=["comment/get_comment_replies"];NrR=["ypc/commerce_action"];De4=["backstage/create_post"];tLS=["live/create_broadcast"];FqB=["channel/create_channel"];QXC=["comment/create_comment_reply"];aBC=["comment/create_comment"];omB=["live_chat/create_poll"];nmR=["playlist/create"];
b4l=["decorate_message"];vmi=["live_chat/delete_message"];$e0=["playlist/delete"];sXo=["video/delete"];qPG=["like/dislike"];EmS=["dismissal/dismiss"];H4l=["flag/flag"];IBG=["flow"];jXF=["account/account_menu"];ky0=["playlist/get_add_to_playlist"];CcR=["get_answer"];VLB=["channel/get_channel_creation_form"];WR6=["offline/get_download_action"];Z4S=["kids/get_kids_blocklist_picker"];deS=["live_chat/get_item_context_menu"];PcK=["live_chat/get_live_chat_message_buy_flow"];yei=["live_chat/get_live_chat_replay"];
eeF=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];fB0=["live_chat/get_live_chat_super_sticker_buy_flow"];xeK=["notification/get_notification_menu"];XjS=["playlist/get_settings_editor"];SPB=["backstage/get_post_video_preview"];ReR=["account/get_profile_card"];KRM=["share/get_share_panel"];UeX=["share/get_sharing_provider_data"];zeS=["get_survey"];lBK=["notification/get_unseen_count"];BrR=["get_user_mention_suggestions"];ML4=["get_watch"];Tro=["guide"];
mMi=["feedback"];i1i=["kids/update_blacklist"];GQ4=["like/like"];KtS=["live_chat/live_chat_action"];WtK=["live_chat/manage_user"];Lto=["video_manager/metadata_update"];A5S=["live_chat/moderate"];wcF=["notification/modify_channel_preference"];gf2=["notification/opt_out"];$q=["get_panel","get_posts_by_host_panel"];O1i=["player"];c52=["browse/edit_playlist"];YmF=["notification/record_interactions"];r5S=["reel/reel_item_watch"];uKi=["reel/reel_watch_sequence"];hUG=["like/removelike"];pcK=["notification/remove_upcoming_event_reminder"];
J54=["flag/get_form"];NYk=["miniapp/report_value"];DMK=["navigation/resolve_url"];tj0=["channel/reveal_business_email"];FtR=["in_video/search"];Qy0=["search","sfv/search","unplugged/search"];a2k=["live_chat/send_message"];ofC=["live_chat/send_live_chat_vote"];nfS=["account/set_setting"];b14=["submit_caption_correction"];vfl=["submit_form"];$M4=["subscription/subscribe"];i7M=["get_transcript"];syK=["resolve_location","unplugged/resolve_location"];qmX=["subscription/unsubscribe"];Efo=["backstage/update_post"];
H1F=["channel_edit/update_channel_page_settings"];I22=["comment/update_comment_reply"];jy4=["comment/update_comment"];kQo=["comment/update_comments_settings"];CF2=["creator/update_creator_channel"];Vjl=["pdg/update_enablement"];Z1X=["updated_metadata"];dMl=["channel_edit/validate_channel_handle"];PFR=["verify_age"];y5l=["next","unplugged/watch_next"];eU0=["whitelist/edit"];f2X=["ypc/cancel_recurrence"];xM0=["ypc/complete_transaction"];XcB=["ypc/get_cart"];SmB=["ypc/get_fix_instrument_params"];
RUi=["ypc/get_offers"];UMo=["ypc/get_payment_instruments_params"];zUR=["ypc/handle_transaction"];l2X=["ypc/log_payment_server_analytics"];BYG=["ypc/pause_subscription"];Mj2=["ypc/redeem_code"];TYi=["ypc/resume_subscription"];var mrX=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,283670,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,
180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,
162711,235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,
197891,156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,282159,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,281332,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,293324,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,
25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,282181,278926,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,283898,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,
36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,279531,50663,36387,14908,37533,105443,61635,62274,161670,
133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,281480,233634,265810,194770,195350,195349,194771,293041,293042,293043,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,
198313,59149,181013,278306,282472,277848,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,294119,257268,63349,281127,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,282218,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,
11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,295069,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,282111,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,294089,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,
254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,282208,127738,127083,155281,162959,220886,227356,248007,163566,
186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,
268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,281302,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,279755,267693,267694,267578,262801,271218,266131,266132,267977,
267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var UB=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.yj("yt.msgs_",UB);var s7=new _.sX("ACTION_ROUTER_TOKEN");_.qV=function(){this.autonavState_=_.F("kevlar_is_pupi_enabled")?2:gVP()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.qV.prototype.getState=function(){return this.autonavState_};
_.qV.prototype.pause=function(m){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=m):this.autonavState_==1&&(this.disabledAutonavPauseReason_=m)};
_.qV.prototype.setState=function(m,G,K){G&&(this.autoplayChangedByUser=!0);G=this.autonavState_===3||m===3;this.autonavState_!=m&&(this.autonavState_=m,m!=3&&_.O8G(m==2),m=_.F("kevlar_is_pupi_enabled")?K||G:!0,_.Im.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,m,K))};
_.qV.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.IB(_.qV);var E7=function(){this.cq=!1};var HB={},Fjf=(HB.auto_search="LATENCY_ACTION_AUTO_SEARCH",HB.ad_to_ad="LATENCY_ACTION_AD_TO_AD",HB.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",HB.app_startup="LATENCY_ACTION_APP_STARTUP",HB.browse="LATENCY_ACTION_BROWSE",HB.cast_splash="LATENCY_ACTION_CAST_SPLASH",HB.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",HB.channels="LATENCY_ACTION_CHANNELS",HB.chips="LATENCY_ACTION_CHIPS",HB.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",HB.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
HB.editor="LATENCY_ACTION_EDITOR",HB.embed="LATENCY_ACTION_EMBED",HB.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",HB.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",HB.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",HB.explore="LATENCY_ACTION_EXPLORE",HB.favorites="LATENCY_ACTION_FAVORITES",HB.home="LATENCY_ACTION_HOME",HB.inboarding="LATENCY_ACTION_INBOARDING",HB.landing="LATENCY_ACTION_LANDING",HB.learning="LATENCY_ACTION_LEARNING",
HB.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",HB.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",HB.library="LATENCY_ACTION_LIBRARY",HB.live="LATENCY_ACTION_LIVE",HB.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",HB.management="LATENCY_ACTION_MANAGEMENT",HB.mini_app="LATENCY_ACTION_MINI_APP_PLAY",HB.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",HB.onboarding="LATENCY_ACTION_ONBOARDING",HB.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
HB.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",HB.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",HB.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",HB.prebuffer="LATENCY_ACTION_PREBUFFER",HB.prefetch="LATENCY_ACTION_PREFETCH",HB.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",HB.profile_switcher="LATENCY_ACTION_LOGIN",HB.projects="LATENCY_ACTION_PROJECTS",HB.reel_watch="LATENCY_ACTION_REEL_WATCH",HB.results="LATENCY_ACTION_RESULTS",HB.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
HB.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",HB.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",HB.review="LATENCY_ACTION_REVIEW",HB.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",HB.search_ui="LATENCY_ACTION_SEARCH_UI",HB.search_suggest="LATENCY_ACTION_SUGGEST",HB.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",HB.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",HB.seek="LATENCY_ACTION_PLAYER_SEEK",HB.settings="LATENCY_ACTION_SETTINGS",HB.store="LATENCY_ACTION_STORE",
HB.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",HB.tenx="LATENCY_ACTION_TENX",HB.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",HB.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",HB.watch="LATENCY_ACTION_WATCH",HB.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",HB["watch,watch7"]="LATENCY_ACTION_WATCH",HB["watch,watch7_html5"]="LATENCY_ACTION_WATCH",HB["watch,watch7ad"]="LATENCY_ACTION_WATCH",HB["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",HB.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
HB.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",HB.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",HB.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",HB.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",HB.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",HB.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",HB.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",HB),i32=0;var dQJ=function(m,G){TN.call(this,1,arguments);this.timer=G};
_.n(dQJ,TN);var Z8F=new A9v("aft-recorded",dQJ);var nVd=_.Ks.ytLoggingGelSequenceIdObj_||{};_.yj("ytLoggingGelSequenceIdObj_",nVd);var Ig=_.Ks.ytLoggingLatencyUsageStats_||{};_.yj("ytLoggingLatencyUsageStats_",Ig);var jM=function(){this.cleanupJob=0},$Q6=function(){jM.instance||(jM.instance=new jM);
return jM.instance};
_.w=jM.prototype;_.w.baseline=function(m,G,K){kq(this,"baseline_"+m)||_.Fx("latencyActionBaselined",{clientActionNonce:m},{timestamp:G,cttAuthInfo:K})};
_.w.tick=function(m,G,K,W){kq(this,"tick_"+m+"_"+G)||_.Fx("latencyActionTicked",{tickName:m,clientActionNonce:G},{timestamp:K,cttAuthInfo:W})};
_.w.info=function(m,G,K){var W=Object.keys(m).join("");kq(this,"info_"+W+"_"+G)||(m=Object.assign({},m),m.clientActionNonce=G,_.Fx("latencyActionInfo",m,{cttAuthInfo:K}))};
_.w.jspbInfo=function(m,G,K){for(var W="",L=0;L<dz(m).length;L++)dz(m)[L]!==void 0&&(W=L===0?W.concat(""+L):W.concat("_"+L));kq(this,"info_"+W+"_"+G)||(_.LB(m,2,G),G={cttAuthInfo:K},K=_.F("jspb_sparse_encoded_pivot")?new Yz([{}]):new Yz,_.Cp(K,7,uQR,m),b89("latencyActionInfo",K,G))};
_.w.span=function(m,G,K){var W=Object.keys(m).join("");kq(this,"span_"+W+"_"+G)||(m.clientActionNonce=G,_.Fx("latencyActionSpan",m,{cttAuthInfo:K}))};
var kq=function(m,G){Ig[G]=Ig[G]||{count:0};var K=Ig[G];K.count++;K.time=(0,_.xD)();m.cleanupJob||(m.cleanupJob=_.rC(_.Fu,function(){var W=(0,_.xD)(),L;for(L in Ig)Ig[L]&&W-Ig[L].time>6E4&&delete Ig[L];m&&(m.cleanupJob=0)},5E3));
return K.count>5?(K.count===6&&Math.random()*1E5<1&&(K=new _.cw("CSI data exceeded logging limit with key",G.split("_")),G.indexOf("plev")>=0||_.nc(K)),!0):!1};var GEk,KL2;GEk=window;KL2=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.LW=GEk.performance||GEk.mozPerformance||GEk.msPerformance||GEk.webkitPerformance||new KL2;var VGP=!1,qbM=!1,PJG=(0,_.AO)(_.LW.clearResourceTimings||_.LW.webkitClearResourceTimings||_.LW.mozClearResourceTimings||_.LW.msClearResourceTimings||_.LW.oClearResourceTimings||_.Wb,_.LW);var W6s=_.kS(function(m,G,K,W,L,A,O){if(!_.F("web_csi_action_sampling_enabled")||!_.mQ(A).actionDisabled){var c=O==null?void 0:O.spanStatus;O=O==null?void 0:O.rootSpanNonce;var u=_.id(A);if(u.gelSpans)u.gelSpans[m]=!0;else{var h={};u.gelSpans=(h[m]=!0,h)}i32++;m={spanName:m,spanLengthUsec:String(Math.round(G*1E3)),spanNonce:i32,rootSpanNonce:O||i32};c&&(m.spanStatus=c);W&&(m.spanInfo=W);L&&(m.parentSpanNonce=L);K&&(m.spanStartTimeUsec=String(Math.round(K*1E3)));_.Gz(A||"").span[String(m.spanName)]=
m;K=_.id(A);K.gelSpans||(K.gelSpans={});_.rU(K.gelSpans,m);K=Jf9(A);A=_.mQ(A).cttAuthInfo;$Q6().span(m,K,A);return m.spanNonce}}),WLK=window;
WLK.ytcsi&&(WLK.ytcsi.infoGel=_.g9,WLK.ytcsi.tick=_.Yt);var BGG=function(m){TN.call(this,1,arguments);this.csn=m};
_.n(BGG,TN);var YQf=new A9v("screen-created",BGG),ueM=[],lqs=r4G,ho9=0,JW=new Map,MGv=new Map,TGP=new Map;var TjM=Symbol("Hf"),$t=new WeakMap;var CK=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Ml=function(){CK.instance||(CK.instance=new CK);
return CK.instance};
_.w=CK.prototype;_.w.setClient=function(m){this.client=m};
_.w.JSC$13053_newScreen=function(){this.clear();this.csn=_.gU()};
_.w.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.w.reportShown=function(m,G,K,W){var L=this.JSC$13053_getTrackingParams(m),A=m.visualElement?m.visualElement:L;G=this.shownElements.has(A);var O=this.visibleState.get(A);this.shownElements.add(A);this.visibleState.set(A,!0);m.impressionLog&&!G&&m.impressionLog();if(L||m.visualElement)if(K=LLk(this,m,K))if(A=A80(this,m),Vw(this,m)||A){L=m.visualElement?m.visualElement:_.m5(L);var c=m.interactionLoggingClientData;A||G?Vw(this,m)&4?O||wq6(this.client,K,L,c):Vw(this,m)&1&&!G&&WhJ(this.client,K,L,c,W):
WhJ(this.client,K,L,c,W)}};
_.w.reportHidden=function(m,G,K,W){var L=this.JSC$13053_getTrackingParams(m),A=m.visualElement?m.visualElement:L;G=this.hiddenElements.has(A);var O=this.visibleState.get(A);this.hiddenElements.add(A);this.visibleState.set(A,!1);if(O===!1)return!0;if(!L&&!m.visualElement)return!1;K=LLk(this,m,K);if(!K||!Vw(this,m)&&A80(this,m))return!1;L=m.visualElement?m.visualElement:_.m5(L);Vw(this,m)&8?gP6(this.client,K,L,void 0,void 0,W):Vw(this,m)&2&&!G&&(m=this.client,W=pW({cttAuthInfo:OB(K)||void 0,automatedLogEventSource:W},
K),G={csn:K,ve:L.getAsJson(),eventType:2},K==="UNDEFINED_CSN"?DQ("visualElementHidden",W,G):m?Ju("visualElementHidden",G,m,W):_.Fx("visualElementHidden",G,W));return!0};
_.w.JSC$13053_getTrackingParams=function(m){var G=this.getData(m),K,W;if(_.F("il_use_view_model_logging_context")&&(G==null?0:(K=G.context)==null?0:(W=K.loggingContext)==null?0:W.loggingDirectives))return G.context.loggingContext.loggingDirectives.trackingParams||"";var L,A;if(G==null?0:(L=G.rendererContext)==null?0:(A=L.loggingContext)==null?0:A.loggingDirectives)return G.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(G==null?0:G.loggingDirectives)return G.loggingDirectives.trackingParams||
"";var O;return((O=m.veContainer)==null?0:O.trackingParams)?m.veContainer.trackingParams:(G==null?void 0:G.trackingParams)||""};
_.w.JSC$13053_elementShouldLogGesture=function(m,G){m=this.getData(m);return!!((Math.floor(Number(m&&m.loggingDirectives&&m.loggingDirectives.gestures&&m.loggingDirectives.gestures.types||""))||0)&G)};
_.w.JSC$13053_getNearestParentVe=function(m){var G=this.JSC$13053_getTrackingParams(m);return m.visualElement?m.visualElement:G?_.m5(G):m.parentElement?this.JSC$13053_getNearestParentVe(m.parentElement):null};
var LLk=function(m,G,K){var W=_.gU(K);return m.csn===null||W===m.csn||K?W:(m=new _.cw("VisibilityLogger called before newScreen",{caller:G.tagName,previous_csn:m.csn,current_csn:W}),_.nc(m),null)};
CK.prototype.getData=function(m){var G,K=m.data||((G=m.props)==null?void 0:G.data);if(!K||m.isWebComponentWrapper){var W;K=(W=$t.get(m))==null?void 0:W[TjM]}return K};
var A80=function(m,G){var K;return!((K=m.getData(G))==null||!K.loggingDirectives)},Vw=function(m,G){m=m.getData(G);
return Math.floor(Number(m&&m.loggingDirectives&&m.loggingDirectives.visibility&&m.loggingDirectives.visibility.types||""))||1};var Zj;Zj=function(){};
_.UQ=function(){Zj.instance||(Zj.instance=new Zj);return Zj.instance};
Zj.prototype.setClient=function(m){_.kS(Ml().setClient).bind(Ml())(m)};
_.wh0=function(){_.UQ();_.kS(Ml().JSC$13053_newScreen).bind(Ml())()};
Zj.prototype.clear=function(){_.kS(Ml().clear).bind(Ml())()};
Zj.prototype.reportShown=function(m,G,K,W){_.kS(Ml().reportShown).bind(Ml())(m,G,K,W)};
Zj.prototype.reportHidden=function(m,G,K,W){return _.kS(Ml().reportHidden).bind(Ml())(m,G,K,W)};
var pSv=function(m,G){return _.kS(Ml().JSC$13053_getTrackingParams).bind(Ml())(G)},m1o=function(m,G){return _.kS(Ml().JSC$13053_getNearestParentVe).bind(Ml())(G)};var dp,gFP;dp=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};
_.l1=function(){dp.instance||(dp.instance=new dp);return dp.instance};
dp.prototype.setClient=function(m){this.client=m};
gFP=function(m,G,K){K=K===void 0?{}:K;_.kS(function(){var W,L,A,O=((W=_.Q(G==null?void 0:G.commandMetadata,_.RQ))==null?void 0:W.rootVe)||((L=_.Q(G==null?void 0:G.commandMetadata,ZK2))==null?void 0:(A=L.screenVisualElement)==null?void 0:A.uiType);if(O){W=_.Q(G==null?void 0:G.commandMetadata,VpF);if(W==null?0:W.parentTrackingParams){var c=_.m5(W.parentTrackingParams);if(W.parentCsn)var u=W.parentCsn}else K.clickedVisualElement?c=K.clickedVisualElement:G.clickTrackingParams&&(c=_.m5(G.clickTrackingParams));
a:{W=_.Q(G,_.QQ);L=_.Q(G,xed);if(W){if(L=cfM(W,"VIDEO")){W={token:L,videoId:W.videoId};break a}}else if(L&&(W=cfM(L,"PLAYLIST"))){W={token:W,playlistId:L.playlistId};break a}W=void 0}K=Object.assign({},{cttAuthInfo:W,parentCsn:u},K);if(_.F("expectation_logging")){var h;K.loggingExpectations=((h=_.Q(G==null?void 0:G.commandMetadata,ZK2))==null?void 0:h.loggingExpectations)||void 0}_.PB(m,O,c,K)}else _.nc(new _.cw("Error: Trying to create a new screen without a rootVeType",G))})()};
_.PB=function(m,G,K,W){W=W===void 0?{}:W;_.kS(function(){mrX.includes(G)||(_.nc(new _.cw("createClientScreen() called with a non-page VE",G)),G=83769);W.isHistoryNavigation||(m.forwardHistoryStack=[],m.backHistoryStack.push({rootVe:G,key:W.key||""}));m.graftQueue=[];m.stateChangedQueue=[];W.dataPromises?O3B(m,G,K,W):c8C(m,G,K,W)})()};
_.Y3F=function(m,G,K){K=K===void 0?0:K;_.kS(function(){G.then(function(W){m.pendingScreenCreation.has(K)&&m.pendingScreenFn&&m.pendingScreenFn();var L=_.gU(K),A=_.wU(K);if(L&&A){var O={automatedLogEventSource:3},c;(W==null?0:(c=W.response)==null?0:c.trackingParams)&&Nc(m.client,L,A,_.m5(W.response.trackingParams),!1,O);var u;(W==null?0:(u=W.playerResponse)==null?0:u.trackingParams)&&Nc(m.client,L,A,_.m5(W.playerResponse.trackingParams),!1,O)}})})()};
dp.prototype.graftServerVe=function(m,G,K){var W=this;return _.kS(function(){var L=_.m5(m);_.yw(W,L,G,K);return L})()};
_.iXv=function(m,G,K,W){return _.F("enable_client_ve_spec")&&G.clientVeSpec?(G=_.dq(G.clientVeSpec.uiType,void 0,G.clientVeSpec.elementIndex,G.clientVeSpec.clientYoutubeData,void 0,G),_.yw(m,G,K,W)?G:null):G.trackingParams?m.graftServerVe(G.trackingParams,K,W):null};
_.zg=function(m,G,K,W){return _.kS(function(){if(!G.veType)return _.om(new _.cw("Error: Trying to graft a client VE without a veType.")),null;if(G.visibilityTypes){var L=G.visibilityTypes.reduce(function(A,O){return A|O});
L={visibility:{types:String(L)}}}L=_.dq(G.veType,G.visualElement,G.elementIndex,G.clientYouTubeData,void 0,L);return _.yw(m,L,K,W)?L:null})()};
_.yw=function(m,G,K,W){W=W===void 0?0:W;return _.kS(function(){if(m.pendingScreenCreation.has(W))return m.graftQueue.push([G,K]),!0;var L=_.gU(W),A=K||_.wU(W);if(L&&A){if(_.F("combine_ve_grafts")){var O=m.cachedVisualElements.get(A.toString());O?O.push(G):(m.cachedRootVisualElements.set(A.toString(),A),m.cachedVisualElements.set(A.toString(),[G]));m.attachTimeout||(m.attachTimeout=_.rC(_.Fu,function(){r8l(m,L)},1200))}else Nc(m.client,L,A,G);
return!0}return!1})()};
_.eM=function(m,G,K){K=K===void 0?0:K;var W=m.recurringGrafts.get(K)||new Map;if(_.F("smarter_ve_dedupping"))for(var L=Array.from(W.keys()),A=0;A<L.length;A++){var O=void 0,c=void 0;var u=G;var h=L[A];h.isClientVe()&&u.isClientVe()?(O=u.getAsJson(),c=h.getAsJson(),u=O.veType!==c.veType||O.elementIndex!==c.elementIndex||O.dataElement!==c.dataElement||u.getLoggingDirectives()!==h.getLoggingDirectives()?!1:!0):u=h.veData.trackingParams!==void 0&&u.veData.trackingParams!==void 0?((c=u.veData)==null?void 0:
c.trackingParams)===((O=h.veData)==null?void 0:O.trackingParams):!1;if(u)return}else if(W.has(G))return;W.set(G,void 0);m.recurringGrafts.set(K,W);_.gU(K)==="UNDEFINED_CSN"||m.pendingScreenCreation.has(K)||_.yw(m,G,void 0,K)};
_.fK=function(m,G,K,W){W=_.gU(W===void 0?0:W);if(!W)return!1;c4o(m.client,W,G,K);return!0};
_.xq=function(m,G,K,W){if(!G)return!1;W=_.gU(W===void 0?0:W);if(!W)return!1;c4o(m.client,W,_.m5(G),K);return!0};
_.Jo=function(m,G){var K=G.getScreenLayer&&G.getScreenLayer();if(G.visualElement)return _.fK(m,G.visualElement,void 0,K);G=pSv(_.UQ(),G);return _.xq(m,G,void 0,K)};
dp.prototype.clickCommand=function(m,G,K){return _.xq(this,m.clickTrackingParams,G,K===void 0?0:K)};
dp.prototype.stateChanged=function(m,G,K){this.visualElementStateChanged(_.m5(m),G,K===void 0?0:K)};
dp.prototype.visualElementStateChanged=function(m,G,K){K=K===void 0?0:K;K===0&&this.pendingScreenCreation.has(K)?this.stateChangedQueue.push([m,G]):this.logStateChanged(m,G,K)};
dp.prototype.logStateChanged=function(m,G,K){K=K===void 0?0:K;var W=_.gU(K);m=m||_.wU(K);return W&&m?(YHd(this.client,W,m,G),!0):!1};
var O3B=function(m,G,K,W){W=W===void 0?{}:W;m.pendingScreenCreation.add(W.layer||0);m.pendingScreenFn=function(){c8C(m,G,K,W);var O=_.wU(W.layer);if(O){for(var c=_.g(m.graftQueue),u=c.next();!u.done;u=c.next())u=u.value,_.yw(m,u[0],u[1]||O,W.layer);O=_.g(m.stateChangedQueue);for(c=O.next();!c.done;c=O.next())c=c.value,m.logStateChanged(c[0],c[1])}};
K||_.gU(W.layer)||m.pendingScreenFn();if(W.dataPromises)for(var L=_.g(W.dataPromises),A=L.next();!A.done;A=L.next())_.Y3F(m,A.value,W.layer);else _.am(Error("If"))},c8C=function(m,G,K,W){W=W===void 0?{}:W;
var L=void 0;W.layer||(W.layer=0);L=W.parentLayer!==void 0?W.parentLayer:W.layer;var A=_.gU(L);L=_.wU(L);var O=K||L,c;O&&(W.parentCsn!==void 0?c={clientScreenNonce:W.parentCsn,visualElement:O}:A&&A!=="UNDEFINED_CSN"&&(c={clientScreenNonce:A,visualElement:O}));var u,h=_.E8("EVENT_ID");A==="UNDEFINED_CSN"&&h&&(u={servletData:{serializedServletEventId:h}});_.F("combine_ve_grafts")&&A&&r8l(m,A);_.F("no_client_ve_attach_unless_shown")&&O&&A&&KhG(O,A);try{var J=_.mmo(m.client,G,c,W.csnToClone,W.cttAuthInfo,
u,W.implicitGestureType,void 0,W.loggingExpectations,W.automatedLogEventSource)}catch(t){_.bO(t,{rootVeType:G,rootVe:L,parentVisualElement:K,currentCsn:A,parentEl:c,csnToClone:W.csnToClone});_.am(t);return}_.cH(J,G,W.layer,W.cttAuthInfo);A&&A!=="UNDEFINED_CSN"&&L&&!WIG(A)&&gP6(m.client,A,L,!0);m.backHistoryStack[m.backHistoryStack.length-1]&&!m.backHistoryStack[m.backHistoryStack.length-1].csn&&(m.backHistoryStack[m.backHistoryStack.length-1].csn=J||"");_.g9({clientScreenNonce:J});_.wh0();var N=_.wU(W.layer);
A&&A!=="UNDEFINED_CSN"&&N&&_.F("music_web_mark_root_visible")&&_.Qx(J,N);m.pendingScreenCreation.delete(W.layer||0);m.pendingScreenFn=void 0;var D;(D=m.recurringGrafts.get(W.layer))==null||D.forEach(function(t,a){t?_.yw(m,a,t,W.layer):N&&_.yw(m,a,N,W.layer)});
uTi(m)},uTi=function(m){for(var G=0;G<m.afterNewScreenOneOffJobs.length;G++){var K=m.afterNewScreenOneOffJobs[G];
try{K()}catch(W){_.am(W)}}for(G=m.afterNewScreenOneOffJobs.length=0;G<m.afterNewScreenRecurringJobs.length;G++){K=m.afterNewScreenRecurringJobs[G];try{K()}catch(W){_.am(W)}}},r8l=function(m,G){if(G===void 0)for(var K=GjF(),W=0;W<K.length;W++)K[W]!==void 0&&r8l(m,K[W]);
else m.cachedVisualElements.forEach(function(L,A){(A=m.cachedRootVisualElements.get(A))&&iad(m.client,G,A,L)}),m.cachedVisualElements.clear(),m.cachedRootVisualElements.clear(),m.attachTimeout=void 0};var X$=function(m){m=m===void 0?{layer:0}:m;this.cq=!1;this.createScreenConfig=m;m={};this.fKc=(m.response=!1,m.playerResponse=!1,m)};
_.n(X$,E7);X$.prototype.validate=function(m){return!(!m.data||!m.data.response&&!m.data.playerResponse)};
X$.prototype.handle=function(m){var G=_.l1(),K=this.createScreenConfig.layer;m.data.response&&m.data.response.trackingParams&&!this.fKc.response&&(G.graftServerVe(m.data.response.trackingParams,void 0,K),this.fKc.response=!0);m.data.playerResponse&&m.data.playerResponse.trackingParams&&!this.fKc.playerResponse&&(G.graftServerVe(m.data.playerResponse.trackingParams,void 0,K),this.fKc.playerResponse=!0)};var SM=function(){this.nP=_.Qo();this.de=[];this.jhc=0};
SM.prototype.processChunk=function(m){if(m){for(var G=_.g(this.de),K=G.next();!K.done;K=G.next())K=K.value,K.validate(m)&&(K.handle(m),K.cq=!0);_.Yt("np"+this.jhc);this.jhc++}};var QIv,hZK,NwX;_.xe=function(m,G,K,W,L,A,O,c){O=O===void 0?[]:O;c=c===void 0?[]:c;this.buildCommandPayload=m;this.navigate=G;this.handleServiceRequest=K;this.sendAction=W;this.JSC$13088_screenManager=L;this.commandResolverMap=A;this.autoLogResolverAllowlist=O;this.metaCommandClickLoggingDenylist=c;this.pendingCommands=new Set;this.isTracingEnabled=!1;hZK(this)};
QIv=function(m,G,K){var W=[_.iUl,hAG],L=wmd,A=g_P,O=_.l1(),c=phl;K=K===void 0?[]:K;W=W===void 0?[]:W;_.xe.instance=new _.xe(m,G,L,A,O,c,K,W)};
hZK=function(m){if(!m.isTracingEnabled&&IQ("command")){var G=m.resolveCommand;m.resolveCommand=function(K,W){a:{for(L in K)if(Object.prototype.hasOwnProperty.call(K,L)){var L={commandType:L};break a}L={}}return CJ("command",L,G.bind(this,K,W))};
m.isTracingEnabled=!0}};
NwX=function(m,G,K){if(!m.commandResolverMap)return!1;var W=tdf(G,m.commandResolverMap);return W?((m.autoLogResolverAllowlist.some(function(L){return!!_.Q(G,L)})||(K==null?0:K.forceClickLogging))&&J8X(m,G,K),W instanceof Promise?W.then(function(L){L.resolve(G,K)}):W.resolve(G,K),!0):!1};
_.xe.prototype.resolveCommand=function(m,G){var K=this,W=Dr2(m);if((G==null||!G.skipCommandResolverMap)&&NwX(this,m,G))return!0;if(W)return tES(this,m,G);if(!this.buildCommandPayload)return J4d(m,"Unhandled command by buildCommandPayload"),!1;var L=this.buildCommandPayload(m,G);if(G==null?0:G.commandController)L.commandController=G.commandController;if(L.type===0){if(!this.navigate)return NRF(m,"navigate"),!1;if(!FL0(L.command))return J4d(m,"Page requests need to specify a url"),!1;_.F("logging_avoid_blocking_during_navigation")&&
_.Rzd().transition("application_navigating");m=this.navigate(L)||[];uFk(m).then(function(){K.pendingCommands.delete(L.command)});
return!0}if(L.type===1){if(!this.handleServiceRequest)return NRF(m,"handleServiceRequest"),!1;(G==null?0:G.forceClickLogging)&&J8X(this,L.command,G);m=this.handleServiceRequest(L);uFk(m).then(function(){K.pendingCommands.delete(L.command)});
return!0}if(L.type===2){if(!this.sendAction)return NRF(m,"sendAction"),!1;J8X(this,L.command,G);this.sendAction(L);return!0}return!1};
var J8X=function(m,G,K){if((K==null||!K.disableClickTracking)&&m.JSC$13088_screenManager)if(G.clickTrackingParams&&_.F("log_click_with_layer_from_element_in_command_handler")){var W;K=K==null?void 0:(W=K.form)==null?void 0:W.element;m.JSC$13088_screenManager.clickCommand(G,null,K&&K.getScreenLayer&&K.getScreenLayer())}else G.clickTrackingParams?m.JSC$13088_screenManager.clickCommand(G):!_.F("disable_clicked_visual_element_in_command_handler")&&(K==null?0:K.clickedVisualElement)&&_.fK(m.JSC$13088_screenManager,
K.clickedVisualElement)},Dr2=function(m){var G=!!_.Q(m,_.xu),K;
m=((K=_.Q(m,_.SD))==null?void 0:K.signal)==="CLIENT_SIGNAL";return G||m},tES=function(m,G,K){var W=_.Q(G,_.xu);
if(W)var L=(W==null?void 0:W.commands)||[];else{var A;if(((A=_.Q(G,_.SD))==null?void 0:A.signal)==="CLIENT_SIGNAL"){var O;L=((O=_.Q(G,_.SD))==null?void 0:O.actions)||[]}}if(L){(W=QdC(m,L))&&J8X(m,G,K);G=_.g(L);for(L=G.next();!L.done;L=G.next()){L=L.value;try{var c=Object.assign({},K);W&&(c.disableClickTracking=!0);m.resolveCommand(L,c)}catch(u){u instanceof Error&&_.am(u)}}return!0}J4d(G,"Could not handle the meta command");return!1},QdC=function(m,G){return G.every(function(K){return m.metaCommandClickLoggingDenylist.some(function(W){return!!_.Q(K,
W)})})},FL0=function(m){var G;
return!((G=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null||!G.url)};var Rg=function(){E7.apply(this,arguments)};
_.n(Rg,E7);Rg.prototype.validate=function(m){var G,K;return!this.cq&&!!((G=m.data.response)==null?0:(K=G.onResponseReceivedEndpoints)==null?0:K.length)};
Rg.prototype.handle=function(m){var G=_.xe.instance;m=_.g(m.data.response.onResponseReceivedEndpoints);for(var K=m.next();!K.done;K=m.next())G.resolveCommand(K.value)};var aN2,oF2,zj;
aN2=function(){this.companionCanvasActivation=this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.fJ();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.U7=function(){oF2||(oF2=new aN2);return oF2};
zj=function(){var m=_.U7();m.miniplayerButtonActivation=!1;m.userActivation=!1;m.playlistWatchPageActivation=!1;m.productDetailsPageActivation=!1;m.miniAppPageActivation=!1;m.playablesDestPageActivation=!1;m.lockupActivation=!1;m.showMiniplayerCommandActivation=!1;m.playlistSuggestionsShelfActivation=!1;m.mediaSessionPipActivation=!1;m.watchPipActivation=!1;m.watchWhileActivation=!1;m.shortsPipActivation=!1;m.companionCanvasActivation=!1};
_.nFC=function(){var m=_.U7(),G=m.mediaSessionPipActivation,K=m.watchPipActivation,W=m.watchWhileActivation,L=m.playlistWatchPageActivation,A=m.lockupActivation,O=m.showMiniplayerCommandActivation,c=m.navigatingAwayFromWatchDeletedVideo,u=m.shortsPipActivation,h=m.playlistSuggestionsShelfActivation,J=m.productDetailsPageActivation,N=m.miniAppPageActivation,D=m.playablesDestPageActivation,t=m.companionCanvasActivation;return!m.miniplayerButtonActivation&&!L&&!h&&!J&&!N&&!D&&!A&&!O&&!G&&!K&&!W&&!u&&
!t||c};var miF;_.lu=_.qc("FEwhat_to_watch","/",3854);_.ids=_.qc("FEdownloads","/feed/downloads",42352);miF=_.qc("FEmusic_offline","browse/FEmusic_offline",42352);var vU=function(m,G){G=G===void 0?[]:G;var K=K===void 0?[]:K;G=CZP.apply(null,[Vms.apply(null,_.Bz(G))].concat(_.Bz(K)));this.store=yz9(m,void 0,G)};
vU.prototype.getState=function(){return this.store.getState()};
vU.prototype.dispatch=function(m){return this.store.dispatch(m)};
vU.prototype.subscribe=function(m){return this.store.subscribe(m)};
vU.prototype.replaceReducer=function(m){return this.store.replaceReducer(m)};
vU.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.BB=function(m,G,K){var W=G(m.getState());return m.subscribe(function(){var L=G(m.getState());if(L!==W){var A=W;W=L;K(L,A)}})};var cxG;_.Bp=function(m,G,K){return _.kt({type:"REPLACE_ENTITY",payload:{entityPayload:K,entityType:m,key:G}})};
cxG=function(m){return _.kt({type:"REPLACE_ENTITIES",payload:m})};
_.wS=function(m,G,K,W){return _.kt({type:"UPDATE_ENTITY",payload:{entityPayload:K,entityType:m,key:G,mergeOption:W}})};var IdG=function(m){var G=this;m=m===void 0?[]:m;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;m.forEach(function(K){G.append(K)})};
_.w=IdG.prototype;_.w.getLength=function(){return this.totalLength};
_.w.append=function(m){var G=this.arrays.length===0?!1:(G=this.arrays[this.arrays.length-1])&&G.buffer===m.buffer&&G.byteOffset+G.length===m.byteOffset;G?(G=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(G.buffer,G.byteOffset,G.length+m.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(m);this.totalLength+=m.length};
_.w.split=function(m){for(var G=new IdG,K=new IdG,W=_.g(this.arrays),L=W.next();!L.done;L=W.next())L=L.value,m>=L.length?(G.append(L),m-=L.length):m?(G.append(new Uint8Array(L.buffer,L.byteOffset,m)),K.append(new Uint8Array(L.buffer,L.byteOffset+m,L.length-m)),m=0):K.append(L);return{headView:G,tailView:K}};
_.w.isFocused=function(m){return m>=this.arrayPos&&m<this.arrayPos+this.arrays[this.arrayIdx].length};
_.w.focus=function(m){if(!this.isFocused(m))for(m<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=m&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var b3B=function(m,G){m.focus(G);return m.arrays[m.arrayIdx][G-m.arrayPos]};(function(){var m=function(W){return new Uint8Array(W)},G=function(W){for(var L=new Uint8Array(W.length),A=0;A<W.length;A++)L[A]=W[A];
return L},K=new Uint8Array([1]);
return K.length===1&&K[0]===1?m:G})();
var vPf=Array(1024),bav=window.TextDecoder?new TextDecoder:void 0,sEJ=window.TextEncoder?new TextEncoder:void 0;var Ha6=function(m){this.arrayView=m;this.pos=0;this.pendingTagAndType=-1},CW=function(m){var G=b3B(m.arrayView,m.pos);
++m.pos;if(G<128)return G;for(var K=G&127,W=1;G>=128;)G=b3B(m.arrayView,m.pos),++m.pos,W*=128,K+=(G&127)*W;return K},jEs=function(m,G){var K=m.pendingTagAndType;
for(m.pendingTagAndType=-1;m.pos+1<=m.arrayView.totalLength;){K<0&&(K=CW(m));var W=K>>3,L=K&7;if(W===G)return!0;if(W>G){m.pendingTagAndType=K;break}K=-1;switch(L){case 0:CW(m);break;case 1:m.pos+=8;break;case 2:W=CW(m);m.pos+=W;break;case 5:m.pos+=4}}return!1};var CpG=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=EPM(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},d9=function(m,G){G=m.pos+G;
if(!(m.buf.length>=G)){for(var K=m.buf.length*2;K<G;)K*=2;m.buf=EPM(K,m.wasm,m.buf.subarray(0,m.pos));m.view=new DataView(m.buf.buffer,m.buf.byteOffset,m.buf.byteLength)}},ZQ=function(m,G){if(G>268435455){d9(m,4);
for(var K=G&1073741823,W=0;W<4;W++)m.view.setUint8(m.pos,K&127|128),K>>=7,m.pos+=1;G=Math.floor(G/268435456)}for(d9(m,4);G>127;)m.view.setUint8(m.pos,G&127|128),G>>=7,m.pos+=1;m.view.setUint8(m.pos,G);m.pos+=1};for(var Vds={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},kto={},vFB=_.g(Object.entries(Vds)),$rB=vFB.next();!$rB.done;$rB=vFB.next()){var sdi=_.g($rB.value),q32=sdi.next().value,EF4=sdi.next().value,H3F=q32,INC=EF4;INC&&(kto[INC]=H3F)};var dmP=function(m,G){m=m===void 0?{}:m;switch(G.type){case "ENTITY_LOADED":return G.payload.reduce(function(W,L){var A,O=(A=L.options)==null?void 0:A.persistenceOption;if(O&&O!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&O!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return W;if(!L.entityKey)return _.am(Error("Kf")),W;if(L.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!L.payload)return L=new _.cw("REPLACE entity mutation is missing a payload",{entityKey:L.entityKey}),_.am(L),W;var c=(0,_.Y2.getAnyKey)(L.payload);
return y4G(W,c,L.entityKey,L.payload[c])}if(L.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{L=L.entityKey;try{var u=_.Vx(L).entityType;c=y4G(W,u,L);break a}catch(N){if(N instanceof Error){L=new _.cw("Failed to deserialize entity key",{entityKey:L,originalMessage:N.message});_.am(L);c=W;break a}throw N;}c=void 0}return c}if(L.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!L.payload)return L=new _.cw("UPDATE entity mutation is missing a payload",{entityKey:L.entityKey}),_.am(L),W;c=(0,_.Y2.getAnyKey)(L.payload);
var h,J;return eoF(W,c,L.entityKey,L.payload[c],(h=L.fieldMask)==null?void 0:(J=h.mergeOptions)==null?void 0:J.repeatedFieldsMergeOption)}return W},m);
case "REPLACE_ENTITY":var K=G.payload;return y4G(m,K.entityType,K.key,K.entityPayload);case "REPLACE_ENTITIES":return Object.keys(G.payload).reduce(function(W,L){var A=G.payload[L];return Object.keys(A).reduce(function(O,c){return y4G(O,L,c,A[c])},W)},m);
case "UPDATE_ENTITY":return K=G.payload,eoF(m,K.entityType,K.key,K.entityPayload,K.mergeOption);default:return m}};var fd9;var jdS=!1,MV,Tj,mj,iJ,GX,kEi=function(m){_.Lt.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!jdS){var G,K=new Uint8Array(256),W=new Uint8Array(256);var L=1;for(G=0;G<256;G++)K[L]=G,W[G]=L,L^=L<<1^(L>>7&&283);MV=new Uint8Array(256);Tj=eO(256);mj=eO(256);iJ=eO(256);GX=eO(256);for(var A=0;A<256;A++){L=A?W[255^K[A]]:0;L^=L<<1^L<<2^L<<3^L<<4;L=L&255^L>>>8^99;MV[A]=L;G=L<<1^(L>>7&&283);var O=G^L;Tj[A]=G<<24|L<<16|L<<8|O;mj[A]=O<<24|Tj[A]>>>8;iJ[A]=L<<24|mj[A]>>>
8;GX[A]=L<<24|iJ[A]>>>8}jdS=!0}L=eO(44);for(K=0;K<4;K++)L[K]=m[4*K]<<24|m[4*K+1]<<16|m[4*K+2]<<8|m[4*K+3];for(W=1;K<44;K++)m=L[K-1],K%4||(m=(MV[m>>16&255]^W)<<24|MV[m>>8&255]<<16|MV[m&255]<<8|MV[m>>>24],W=W<<1^(W>>7&&283)),L[K]=L[K-4]^m;this.key=L};
_.n(kEi,_.Lt);
kEi.prototype.encrypt=function(m){var G=m.length;m=new Uint8Array(m.buffer.slice(m.byteOffset,m.byteOffset+G));for(var K=this.cipherBlock,W=0;W<G&&this.blockOffset<16;)m[W++]^=K[this.blockOffset++];for(var L=G-(G-W)%16;W<L;)CPo(this),m[W++]^=K[0],m[W++]^=K[1],m[W++]^=K[2],m[W++]^=K[3],m[W++]^=K[4],m[W++]^=K[5],m[W++]^=K[6],m[W++]^=K[7],m[W++]^=K[8],m[W++]^=K[9],m[W++]^=K[10],m[W++]^=K[11],m[W++]^=K[12],m[W++]^=K[13],m[W++]^=K[14],m[W++]^=K[15];if(W<G)for(CPo(this),this.blockOffset=0;W<G;)m[W++]^=
K[this.blockOffset++];return m};
var CPo=function(m){for(var G=m.key,K=m.counter[0]^G[0],W=m.counter[1]^G[1],L=m.counter[2]^G[2],A=m.counter[3]^G[3],O=3;O>=0&&!(m.counter[O]=-~m.counter[O]);O--);for(var c,u,h=4;h<40;)O=Tj[K>>>24]^mj[W>>16&255]^iJ[L>>8&255]^GX[A&255]^G[h++],c=Tj[W>>>24]^mj[L>>16&255]^iJ[A>>8&255]^GX[K&255]^G[h++],u=Tj[L>>>24]^mj[A>>16&255]^iJ[K>>8&255]^GX[W&255]^G[h++],A=Tj[A>>>24]^mj[K>>16&255]^iJ[W>>8&255]^GX[L&255]^G[h++],K=O,W=c,L=u;m=m.cipherBlock;O=G[40];m[0]=MV[K>>>24]^O>>>24;m[1]=MV[W>>16&255]^O>>16&255;m[2]=
MV[L>>8&255]^O>>8&255;m[3]=MV[A&255]^O&255;O=G[41];m[4]=MV[W>>>24]^O>>>24;m[5]=MV[L>>16&255]^O>>16&255;m[6]=MV[A>>8&255]^O>>8&255;m[7]=MV[K&255]^O&255;O=G[42];m[8]=MV[L>>>24]^O>>>24;m[9]=MV[A>>16&255]^O>>16&255;m[10]=MV[K>>8&255]^O>>8&255;m[11]=MV[W&255]^O&255;O=G[43];m[12]=MV[A>>>24]^O>>>24;m[13]=MV[K>>16&255]^O>>16&255;m[14]=MV[W>>8&255]^O>>8&255;m[15]=MV[L&255]^O&255};var VEk=!1;(function(){var m=function(W){return new Uint8Array(W)},G=function(W){for(var L=new Uint8Array(W.length),A=0;A<W.length;A++)L[A]=W[A];
return L},K=new Uint8Array([1]);
return K.length===1&&K[0]===1?m:G})();
var K8;var PPP=function(m){a:{if(!VEk&&!d8){if(K8){var G=K8;break a}K8=(G=window.crypto)==null?void 0:G.subtle;var K,W,L;if(((K=K8)==null?0:K.importKey)&&((W=K8)==null?0:W.sign)&&((L=K8)==null?0:L.encrypt)){G=K8;break a}K8=void 0}G=void 0}G&&(this.nativeEncryptor=new Z3i(m,G));this.encryptorPolyfill=new drB(m)};
PPP.prototype.encrypt=function(m,G){var K=this,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!K.nativeEncryptor){L.jumpTo(2);break}_.IO(L,3);return L.yield(K.nativeEncryptor.encrypt(m,G),5);case 5:return L.return(L.yieldResult);case 3:W=_.ye(L),_.nc(W),VEk=!0,K.nativeEncryptor=void 0;case 2:return L.return(K.encryptorPolyfill.encrypt(m,G))}})};
PPP.prototype.decrypt=function(m,G){return this.encrypt(m,G)};
var Z3i=function(m,G){this.JSC$13161_aesKey=m;this.subtleCrypto=G};
Z3i.prototype.encrypt=function(m,G){var K=this,W;return _.Y(function(L){if(L.nextAddress==1)return _.IO(L,2),L.yield(y8o(K,m,G),4);if(L.nextAddress!=2)return L.return(L.yieldResult);W=_.ye(L);_.nc(W);VEk=!0;throw W;})};
var y8o=function(m,G,K){var W,L;return _.Y(function(A){switch(A.nextAddress){case 1:if(m.cryptoKey){A.jumpTo(2);break}return A.yield(m.subtleCrypto.importKey("raw",m.JSC$13161_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:m.cryptoKey=A.yieldResult;case 2:return W={name:"AES-CTR",counter:K,length:128},A.yield(m.subtleCrypto.encrypt(W,m.cryptoKey,G),4);case 4:return L=A.yieldResult,A.return(new Uint8Array(L))}})},drB=function(m){this.JSC$13164_aesKey=m};
drB.prototype.encrypt=function(m,G){this.encryptor||(this.encryptor=new kEi(this.JSC$13164_aesKey));for(var K=this.encryptor,W=0;W<4;W++)K.counter[W]=G[W*4]<<24|G[W*4+1]<<16|G[W*4+2]<<8|G[W*4+3];K.blockOffset=16;return this.encryptor.encrypt(m)};
drB.prototype.decrypt=function(m,G){return this.encrypt(m,G)};var eZl={},SHd=fL("yt-idb-pref-storage",{objectStores:(eZl.prefs={addedAtVersion:1},eZl),shared:!1,upgrade:function(m,G){G(1)&&qq(sg(m,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.W3=function(m){this.token=m};
_.W3.getInstance=function(){return _.Y(function(m){return m.return(new Promise(function(G){_.en().then(function(K){K?(_.W3.instance||(_.W3.instance=new _.W3(K)),G(_.W3.instance)):G(void 0)})}))})};
_.W3.prototype.get=function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return A.yield(Rov(G.token),2);if(A.nextAddress!=3)return K=A.yieldResult,A.yield(K.get("prefs",m),3);W=A.yieldResult;if(!W)return A.return();L=(0,_.xD)();return W.expirationTimestampMs<=L?A.return():A.return(W.value)})};
_.W3.prototype.set=function(m,G,K){K=K===void 0?31536E3:K;var W=this,L,A,O;return _.Y(function(c){if(c.nextAddress==1)return L=(0,_.xD)(),A={key:m,value:G,expirationTimestampMs:L+K*1E3},c.yield(Rov(W.token),2);O=c.yieldResult;return c.yield(O.put("prefs",A),0)})};
_.W3.prototype.remove=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(Rov(G.token),2);K=W.yieldResult;return W.yield(K.delete("prefs",m),0)})};var L8={},fNk=(L8.INVALID_ENCODER_VERSION="Invalid encoder version",L8.KEY_CREATION_FAILED="Failed to create encoder key",L8.UNKNOWN_DECODE_ERROR="Failed to decode PES data",L8.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",L8.WRONG_DATA_TYPE="Encoder cannot process the data type",L8),Xv=function(m,G){G=G===void 0?{}:G;_.cw.call(this,fNk[m],Object.assign({},{name:"PESEncoderError",type:m},G));this.type=m;this.level="WARNING";Object.setPrototypeOf(this,Xv.prototype)};
_.n(Xv,_.cw);var Af=function(){};
Af.prototype.encode=function(m,G){try{return this.encodeImpl(m,G)}catch(K){BRd(K,zoo)}};
Af.prototype.decode=function(m,G){try{return this.decodeImpl(m,G)}catch(K){BRd(K,ld9)}};
var xrl=function(m,G,K){var W;return _.Y(function(L){if(L.nextAddress==1)return _.IO(L,2),L.yield(m.decodeAsyncImpl(G,K),4);if(L.nextAddress!=2)return L.return(L.yieldResult);W=_.ye(L);BRd(W,ld9);_.ey(L)})};
Af.prototype.decodeAsyncImpl=function(m,G){return Promise.resolve(this.decodeImpl(m,G))};var wG=function(m,G){this.aesEncryptor=m;this.aesEncryptorAsync=G};
_.n(wG,Af);wG.prototype.encodeImpl=function(m,G){G=Mdf(G);m=(new TextEncoder).encode(JSON.stringify(m));return this.aesEncryptor.encrypt(m,G)};
wG.prototype.decodeImpl=function(m,G){if(!(m instanceof Uint8Array))throw Um6(1);var K=new TextDecoder;G=Mdf(G);m=this.aesEncryptor.decrypt(m,G);return JSON.parse(K.decode(m))};
wG.prototype.decodeAsyncImpl=function(m,G){var K=this,W,L,A;return _.Y(function(O){if(O.nextAddress==1){if(!(m instanceof Uint8Array))throw Um6(1);W=new TextDecoder;L=Mdf(G);return O.yield(K.aesEncryptorAsync.decrypt(m,L),2)}A=O.yieldResult;return O.return(JSON.parse(W.decode(A)))})};var TRs={accountLinkStatusEntity:vYX,booleanEntity:TNF,buttonEntity:BtG,captionTrack:kt0,channelHandle:vK4,chipEntity:b9k,commerceAcquisitionClientPayloadEntity:bfS,commerceCartListEntity:vUP,compositeSourceEntity:lql,multiviewStagingEntity:BGB,contextNoteFeedEntityPayload:yZR,contextNoteUserRatingEntityPayload:eA2,continuationTokenEntity:Ybk,downloadQualityPickerEntity:mQC,downloadsPageRefreshTokenEntity:GX0,downloadsPageViewConfigurationEntity:FjX,downloadStatusEntity:i80,dismissState:vjo,sfvAudioItemCurrentlyPlayingEntity:hh4,
emojiFountainDataEntity:USR,emojiCustomizationSetEntity:RwG,fakeChannel:GcF,fakePlaylist:KHC,fakePlaylistEntryCollection:WHC,fakeVideo:ApX,fakeVideoDescription:wMC,featuredProductsEntity:ebK,flowStateEntity:apS,iconBadgeEntity:$ol,interstitialInteractionStateEntity:fpi,likeButtonAnimationEntity:QnR,liveChatPollStateEntity:BbR,dataFreshnessEntity:XTk,liveViewerLeaderboardChatEntryPointStateEntity:zo0,liveViewerLeaderboardPointsEntity:ld4,liveReactionsDataEntity:zwB,logoEntity:yp4,macroMarkerEntity:aqk,
mainDownloadsLibraryEntity:KjG,mainDownloadsListEntity:Wj2,mainPlaylistDownloadStateEntity:AfC,mainPlaylistEntity:rfS,mainPlaylistVideoEntity:uiX,mainVideoDownloadStateEntity:w3G,mainVideoEntity:NGo,markersEngagementPanelSyncEntity:oVk,markersVisibilityOverrideEntity:nVK,musicAlbumReleaseDetail:Khk,musicAlbumReleaseDownloadMetadataEntity:MGC,musicAlbumRelease:GtG,musicAlbumReleaseUserDetail:Wh2,musicArtistDetail:A4S,musicArtist:Lhl,musicArtistUserDetail:wqS,musicDownloadsLibraryEntity:TGR,musicLibraryEdit:gPS,
musicLibraryStatusEntity:Oal,musicPlaylist:c40,musicPlaylistDownloadMetadataEntity:mm0,musicShare:r4k,musicTrackDetail:ho4,musicTrackDownloadMetadataEntity:iaK,musicTrack:ueF,musicTrackUserDetail:pql,offlineOrchestrationActionWrapperEntity:CpB,offlineVideoPolicy:Vdl,offlineVideoStreams:ZaK,offlineabilityEntity:gVR,orchestrationWebSamplingEntity:O8B,pageHeaderEntity:VBX,pdpStateEntity:s_k,pinnedProductEntity:fqo,playbackData:dmR,playerStateEntity:b84,quantityIncrementerEntity:q9P,refresh:PpP,saveToPlaylistListEntity:Z5F,
selectedChipIndexEntityPayload:vVk,settingEntity:LsR,stringEntity:mAC,suggestedFeedbackChipStateEntity:$QS,transfer:y4k,trendingOfferEntity:xQo,videoDownloadContextEntity:eoP,videoOverviewAsyncDataEntity:TIR,videoPlaybackPositionEntity:mUo,votingEntity:ySR,ytMainChannelEntity:DQB,youchatPendingResponseEntity:snF,ytMainDownloadedVideoEntity:cfF,ytMainVideoEntity:tGl};var XhC,RZR,ld,wiG,g6o,lNS,MEo,BwF,zZX;XhC=function(m,G){this.JSC$13183_wrapped=m;this.JSC$13183_encoderRegistry=G;this.changedKeys={}};
RZR=function(m,G){return S3P(m.JSC$13183_encoderRegistry,G.version).decode(G.data,G.key)};
_.Uro=function(m,G,K){return m.JSC$13183_wrapped.objectStore("EntityStore").get(G).then(function(W){if(W){if(K&&W.entityType!==K)throw Error("Lf");return RZR(m,W)}})};
ld=function(m,G,K){return K?(K=K.map(function(W){return _.Uro(m,W,G)}),$D.all(K)):m.JSC$13183_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(G)).then(function(W){return W.map(function(L){return RZR(m,L)})})};
_.Axo=function(m,G,K){var W=Zad(G),L=S3P(m.JSC$13183_encoderRegistry,1),A=Object.assign({},G);return m.JSC$13183_wrapped.objectStore("EntityStore").get(W).then(function(O){if(O){if(O.entityType!==K)throw Error("Lf");A.entityMetadata||(O=RZR(m,O),A.entityMetadata=O.entityMetadata)}}).then(function(){var O={key:W,
entityType:K,data:L.encode(A,W),version:1};return $D.all([m.JSC$13183_wrapped.objectStore("EntityStore").put(O),zZX(m,A,K)])}).then(function(){lNS(m,W,K);
return W})};
wiG=function(m,G){var K=_.Vx(G).entityType;return $D.all([m.JSC$13183_wrapped.objectStore("EntityStore").delete(G),BwF(m,G)]).then(function(){lNS(m,G,K)})};
g6o=function(m,G,K,W){var L=S3P(m.JSC$13183_encoderRegistry,1);return _.Uro(m,G,W).then(function(A){if(A){A=nPo(A,K);var O={key:G,entityType:W,data:L.encode(A,G),version:1};return $D.all([m.JSC$13183_wrapped.objectStore("EntityStore").put(O),zZX(m,A,W)])}}).then(function(){lNS(m,G,W);
return G})};
lNS=function(m,G,K){var W=m.changedKeys[K];W||(W=new Set,m.changedKeys[K]=W);W.add(G)};
MEo=function(m,G,K){var W=Zad(G);K=mRd(K);if(!K)return $D.resolve([]);K=new K(G);m=m.JSC$13183_wrapped.objectStore("EntityAssociationStore");G=[];K=_.g(K.getAssociations());for(var L=K.next();!L.done;L=K.next())G.push(m.put({parentEntityKey:W,childEntityKey:L.value}));return $D.all(G).then(function(A){return A.map(function(O){return O[1]})})};
BwF=function(m,G){return m.JSC$13183_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(G))};
zZX=function(m,G,K){var W=Zad(G);return BwF(m,W).then(function(){return MEo(m,G,K)})};var TwG=function(){};
_.n(TwG,Af);TwG.prototype.encodeImpl=function(m){return m};
TwG.prototype.decodeImpl=function(m){if(m instanceof Uint8Array)throw Um6(0);return m};var K_G=function(){this.cacheMap={};this.cacheMap[0]=new TwG;if(!_.F("aes_pes_encoder_killswitch")){var m=this.cacheMap;try{var G=_.g8();var K=Mdf(G);var W=new wG(new drB(K),new PPP(K))}catch(L){throw m=L instanceof Error?new Xv("KEY_CREATION_FAILED",{originalMessage:L.message}):new Xv("KEY_CREATION_FAILED"),_.am(m),m;}m[1]=W}},S3P=function(m,G){G=G===void 0?0:G;
m=m.cacheMap[G];if(!m)throw G=new Xv("INVALID_ENCODER_VERSION",{encoderVersion:G}),_.am(G),G;return m};var R7=function(m,G){_.Lt.call(this);this.token=m;this.JSC$13197_encoderRegistry=G;this.observers=[];m=new _.Ks.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.g8());m.onmessage=this.JSC$13197_handleMessage.bind(this);this.channel=m};
_.n(R7,_.Lt);_.zz=function(m,G,K){var W,L,A,O;return _.Y(function(c){if(c.nextAddress==1)return c.yield(XqG(m.token),2);if(c.nextAddress!=3)return W=c.yieldResult,c.yield(_.CL(W,["EntityStore","EntityAssociationStore"],G,function(u){L=new XhC(u,m.JSC$13197_encoderRegistry);return K(L)}),3);
A=c.yieldResult;L&&(O=L.changedKeys,Object.keys(O).length>0&&(m.channel.postMessage(O),mOl(m,O)));return c.return(A)})};
R7.prototype.observe=function(m){var G=this;this.observers.push(m);return function(){var K=G.observers.indexOf(m);K>=0&&G.observers.splice(K,1)}};
var ond=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(_.zz(m,{mode:"readonly",enableRetries:!0},function(W){return W.JSC$13183_wrapped.objectStore("EntityStore").getAll()}),2);
G=K.yieldResult;return K.return(Promise.all(G.filter(function(W){return!!W}).map(function(W){var L,A;
return _.Y(function(O){if(O.nextAddress==1){L=W.key;A=W.entityType;var c=O.yield;var u=xrl(S3P(m.JSC$13197_encoderRegistry,W.version),W.data,W.key);return c.call(O,u,2)}return O.return({key:L,entityType:A,data:O.yieldResult})})})))})};
R7.prototype.JSC$13197_handleMessage=function(m){mOl(this,m.data)};
var mOl=function(m,G){m=_.g(m.observers);for(var K=m.next();!K.done;K=m.next())K=K.value,K(G)};
R7.prototype.disposeInternal=function(){this.channel.close()};
var i5P;var gG,GmX,$RV;gG={};_.iu4=(gG.mainVideoEntity="mainVideoEntityActionMetadata",gG.mainPlaylistEntity="mainPlaylistEntityActionMetadata",gG.musicTrack="musicTrackEntityActionMetadata",gG.musicPlaylist="musicPlaylistEntityActionMetadata",gG);GmX=new _.sX("DOWNLOADS_ENTITY_TYPE_MAP");_.WU=_.Pk("","downloadsPageViewConfigurationEntity");$RV=_.Pk("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.wT6=_.Pk("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Pk("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Pk("SMART_DOWNLOADS_ENABLED","settingEntity");_.Pk("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var uqs=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var F_o=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var KTG={isLeaderTab:!0};var zhV={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var Ob=window,N_=Ob.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",QfF=Ob.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Dl,v8J=Ob.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||xA,DBG=Ob.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||NHF,pRl=Ob.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||qTC,DvV=Ob.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||C_P;var FBo;aW({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 PCG=$UG(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(m){return m}}}),yBf=$UG(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(m){return m}}}),HkM=new Map;var epJ=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Vx9;var WTR=function(m){return _.kt({type:"SET_EPHEMERAL_ACTION",payload:m})};var LT4={ephemeralAction:null};var AhX=pA({ephemeralAction:function(m,G){m=m===void 0?LT4.ephemeralAction:m;switch(G.type){case "SET_EPHEMERAL_ACTION":return G.payload;default:return m}}});var wfk=function(m){return _.kt({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:m})};var g$C={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var OuK={sharedUi:g$C,a11y:LT4,entities:{}},uno={sharedUi:function(m,G){m=m===void 0?g$C:m;switch(G.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},m,{animatedThumbnailEnabled:G.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},m,{inlinePreviewEnabled:G.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},m,{currentPageType:G.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},m,{currentPageSubType:G.payload});
case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},m,{persistentPanelVisible:G.payload});default:return m}},
a11y:AhX,entities:PpF};var UU9={playlistId:"",inviteLinkURL:""};var chi={continuationCommand:{}};var LMd=pA({continuationCommand:function(m,G){m=m===void 0?chi.continuationCommand:m;switch(G.type){case "SET_CONTINUATION_COMMAND":return G.payload.continuationCommand;default:return m}}});var lTf={currentFormId:"",commandsMap:{}};var AGP=pA({isLeaderTab:function(m,G){m=m===void 0?KTG.isLeaderTab:m;switch(G.type){case "SET_IS_LEADER_TAB":var K,W;return(W=G==null?void 0:(K=G.payload)==null?void 0:K.isLeaderTab)!=null?W:m;default:return m}}});var rhB;_.YcP=function(m){return _.kt({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:m}})};
rhB=function(m){return _.kt({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:m}})};var c3={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var rGG=pA({isDesktopSmallWidth:function(m,G){m=m===void 0?c3.isDesktopSmallWidth:m;switch(G.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return G.payload.isDesktopSmallWidth;default:return m}},
isShortsActive:function(m,G){m=m===void 0?c3.isShortsActive:m;switch(G.type){case "SET_IS_SHORTS_ACTIVE":return G.payload.isShortsActive;default:return m}},
isWatchWhileMode:function(m,G){m=m===void 0?c3.isWatchWhileMode:m;switch(G.type){case "SET_IS_WATCH_WHILE_MODE":return G.payload.isWatchWhileMode;default:return m}},
playerState:function(m,G){m=m===void 0?c3.playerState:m;switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return m}},
isFullscreen:function(m,G){m=m===void 0?c3.isFullscreen:m;switch(G.type){case "SET_IS_FULLSCREEN":return G.payload.isFullscreen;default:return m}},
isSmallScreenSqueezeback:function(m,G){m=m===void 0?c3.isSmallScreenSqueezeback:m;switch(G.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return G.payload.isSmallScreenSqueezeback;default:return m}},
isShortsPipActive:function(m,G){m=m===void 0?c3.isShortsPipActive:m;switch(G.type){case "SET_IS_SHORTS_PIP_ACTIVE":return G.payload.isShortsPipActive;default:return m}},
isPlaybackStarted:function(m,G){m=m===void 0?c3.isPlaybackStarted:m;switch(G.type){case "SET_IS_PLAYBACK_STARTED":return G.payload.isPlaybackStarted;default:return m}}});var Mxv={currentMode:"canvas-hidden"};var pro=function(){return function(m){return function(G){var K=m(G);_.dU(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[G],!0);return K}}};var uZ4,X_v;uZ4=new _.yY;_.kg=new _.sX("WATCH_PLAYER_PROMISE_TOKEN");_.hY2=new _.yY;_.pfF=new _.sX("SHORTS_PLAYER_PROMISE_TOKEN");X_v=new _.sX("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var JG6=function(){return function(m){return function(G){G.type==="ENTITY_LOADED"&&_.xS().resolve(_.kg).then(function(K){var W;(W=K.dispatchReduxAction)==null||W.call(K,G)});
return m(G)}}};var JhK={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var wrv=pA({additionalContext:function(m,G){m=m===void 0?JhK.additionalContext:m;switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var K;return(K=G.payload)!=null?K:"";default:return m}},
impersonatedChannelUrl:function(m,G){m=m===void 0?JhK.impersonatedChannelUrl:m;switch(G.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var K;return(K=G.payload)!=null?K:"";default:return m}},
selectedVideoIds:function(m,G){m=m===void 0?JhK.selectedVideoIds:m;switch(G.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var K={};return Object.assign({},m,(K[G.payload]=!0,K));case "VIDEO_UNSELECTED":return G=G.payload,m=Object.assign({},m),delete m[G],m;default:return m}}});var N2C={parentClickTrackingParams:""};var gUd=pA({parentClickTrackingParams:function(m,G){m=m===void 0?N2C.parentClickTrackingParams:m;switch(G.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return G.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return m}}});var DOG=function(m){return _.kt({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:m})},tuP=function(m){return _.kt({type:"TALK_TO_RECS_UPDATE_USER_QUERY",
payload:m})};var FTl={stepStates:{}};var Ofs=pA({stepStates:function(m,G){m=m===void 0?FTl.stepStates:m;switch(G.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_RESET_STEP_STATE":var K=G.payload,W=Object.assign({},m);delete W[K.stepId];return W;case "TALK_TO_RECS_UPDATE_SELECTION":var L=m,A=G.payload,O;m={};G={selectionStates:Object.assign({},(O=(K=L[A.stepId])==null?void 0:K.selectionStates)!=null?O:{},(m[A.token]={isSelected:A.isSelected},m)),userQuery:(W=L[A.stepId])==null?void 0:W.userQuery};K={};return Object.assign({},
L,(K[A.stepId]=G,K));case "TALK_TO_RECS_UPDATE_USER_QUERY":return K=m,W=G.payload,O={selectionStates:Object.assign({},(A=(L=K[W.stepId])==null?void 0:L.selectionStates)!=null?A:{}),userQuery:{userQuery:W.userQuery,token:W.userQueryToken}},L={},Object.assign({},K,(L[W.stepId]=O,L));default:return m}}});var Q4K,ay2,n$B;Q4K=function(m){return _.kt({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:m})};
ay2=function(m){return _.kt({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:m})};
_.w1=function(m){return _.kt({type:"SET_CURRENT_PAGE_TYPE",payload:m})};
_.o$0=function(m){return _.kt({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:m})};
n$B=function(m){return _.kt({type:"SET_CHIP_BAR_IS_STICKY",payload:m})};var moM={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"};_.buX=function(m){return _.kt({type:"SET_PLAYER_STATE",payload:{playerState:m}})};var YV={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:Gwo(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var cGG=pA({isTheaterMode:function(m,G){m=m===void 0?Gwo():m;switch(G.type){case "SET_IS_THEATER_MODE":return G.payload.isTheaterMode;default:return m}},
isWatchActive:function(m,G){m=m===void 0?YV.isWatchActive:m;switch(G.type){case "SET_IS_WATCH_ACTIVE":return G.payload.isWatchActive;default:return m}},
isLearningJourneyActive:function(m,G){m=m===void 0?YV.isLearningJourneyActive:m;switch(G.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return G.payload.isLearningJourneyActive;default:return m}},
isWatchFullscreen:function(m,G){m=m===void 0?YV.isWatchFullscreen:m;switch(G.type){case "SET_IS_WATCH_FULLSCREEN":return G.payload.isWatchFullscreen;default:return m}},
isWatchNarrowWidth:function(m,G){m=m===void 0?YV.isWatchNarrowWidth:m;switch(G.type){case "SET_IS_WATCH_NARROW_WIDTH":return G.payload.isWatchNarrowWidth;default:return m}},
isSwatcherooActive:function(m,G){m=m===void 0?YV.isSwatcherooActive:m;switch(G.type){case "SET_IS_SWATCHEROO_ACTIVE":return G.payload.isSwatcherooActive;default:return m}},
isWatchRetroMode:function(m,G){m=m===void 0?YV.isWatchRetroMode:m;switch(G.type){case "SET_IS_WATCH_RETRO_MODE":return G.payload.isWatchRetroMode;default:return m}},
isLiveChatCollapsed:function(m,G){m=m===void 0?YV.isLiveChatCollapsed:m;switch(G.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return G.payload.isLiveChatCollapsed;default:return m}},
openEngagementPanels:function(m,G){m=m===void 0?YV.openEngagementPanels:m;var K=[].concat(_.Bz(m));switch(G.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return K.push(G.payload.panelToAdd),K;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return K.splice(K.indexOf(G.payload.panelToRemove),1),K;default:return m}},
playerState:function(m,G){m=m===void 0?YV.playerState:m;switch(G.type){case "SET_PLAYER_STATE":return G.payload.playerState;default:return m}},
watchScrollTop:function(m,G){m=m===void 0?YV.watchScrollTop:m;switch(G.type){case "SET_WATCH_SCROLL_TOP":return G.payload.watchScrollTop;default:return m}},
watchWindowSize:function(m,G){m=m===void 0?YV.watchWindowSize:m;switch(G.type){case "SET_WATCH_WINDOW_SIZE":return G.payload.watchWindowSize;default:return m}}});var v$R={surveyFeedbackData:{feedbackTokens:[]}};var Y9v=pA({surveyFeedbackData:function(m,G){m=m===void 0?v$R.surveyFeedbackData:m;switch(G.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return G.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},m,G.payload);default:return m}}});var KMd={};var DoG=void 0;_.F("web_enable_redux_store_on_demand")||(DoG=NIf());var $O2=function(m,G,K){var W=this;this.listId=m;this.JSC$13342_updateCallback=G;this.isOfflineVideoCallback=K;_.$R().subscribe(function(){W.handleUpdate()})};
$O2.prototype.getPlaylistData=function(){var m=_.$R().getState().entities;if(this.listId&&this.listId!=="PPSV"){var G=Z5M(m,this.listId,!0),K=_.Pk(this.listId,"mainPlaylistEntity"),W,L;m=m==null?void 0:(W=m.mainPlaylistEntity)==null?void 0:(L=W[K])==null?void 0:L.title;return tSG(G,m,this.listId)}G=_.QqG(uao(m));m=_.QqG(_.LG(m));m=G.concat(m);return tSG(m)};
$O2.prototype.getPlaylistId=function(){return this.listId};
$O2.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13342_updateCallback(this.listId,this.getPlaylistData(),{})};var rG=function(m,G,K,W){W=W===void 0?[]:W;this.JSC$13345_playlistNetworkManager=m;this.listId=G;this.JSC$13345_updateCallback=K;this.videoIds=W;this.pendingUpdates=[];this.currentIndex=0};
rG.prototype.JSC$13345_setCurrentIndex=function(m){this.currentIndex=m};
rG.prototype.setListId=function(m){this.listId=m};
var s4l=function(m,G){m.currentCreateRequest&&m.currentCreateRequest.cancel(G);m.currentUpdateRequest&&m.currentUpdateRequest.cancel(G);m.currentRefreshRequest&&m.currentRefreshRequest.cancel(G)};
rG.prototype.delete=function(){s4l(this,"PROXY DELETED")};
rG.prototype.addVideos=function(m,G,K){var W=this;K!==void 0?this.videoIds.splice.apply(this.videoIds,[K,0].concat(_.Bz(m))):this.videoIds.push.apply(this.videoIds,_.Bz(m));this.listId||this.currentCreateRequest?(m.forEach(function(L,A){L={addedVideoId:L,action:"ACTION_ADD_VIDEO"};K&&(L.addedVideoPosition=K+A);W.pendingUpdates.push(L)}),uJ(this)):qc0(this,G.onCreateListCommand)};
var E$B=function(m,G,K,W,L){Zsd(m.videoIds,G,K);G>m.currentIndex&&K<=m.currentIndex?m.JSC$13345_setCurrentIndex(m.currentIndex+1):G===m.currentIndex?m.JSC$13345_setCurrentIndex(K):G<m.currentIndex&&K>=m.currentIndex&&m.JSC$13345_setCurrentIndex(m.currentIndex-1);m.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:W,movedSetVideoIdPredecessor:L});uJ(m)},qc0=function(m,G){s4l(m,"OBSOLETE");
m.currentCreateRequest=Hu4(m.JSC$13345_playlistNetworkManager,G,m.videoIds);_.O5(m.currentCreateRequest,function(){m.currentCreateRequest=void 0}).then(function(K){m.setListId(K.playlistId);
m.pendingUpdates.length>0?uJ(m):Iyo(m)})},uJ=function(m){if(m.pendingUpdates.length!==0&&(m.currentRefreshRequest&&m.currentRefreshRequest.cancel("OBSOLETE"),!m.currentUpdateRequest&&!m.currentCreateRequest)){var G=m.pendingUpdates.splice(0,m.pendingUpdates.length);
m.currentUpdateRequest=m.JSC$13345_playlistNetworkManager.updatePlaylist(m.listId,G);_.O5(m.currentUpdateRequest,function(){m.currentUpdateRequest=void 0}).then(function(){m.pendingUpdates.length>0?uJ(m):Iyo(m)}).thenCatch(function(){m.pendingUpdates.unshift.apply(m.pendingUpdates,_.Bz(G))})}},Iyo=function(m){m.currentRefreshRequest=_.j42(m.JSC$13345_playlistNetworkManager,m.listId,m.currentIndex,m.videoIds[m.currentIndex]);
_.O5(m.currentRefreshRequest,function(){m.currentRefreshRequest=void 0}).then(function(G){m.JSC$13345_updateCallback(G.playlistId,G.playlistPanelRenderer,G.autoplayRenderer)})};
rG.prototype.size=function(){return this.videoIds.length};var kmX=function(m,G,K,W){W=W===void 0?[]:W;rG.call(this,m,G,K,W);this.JSC$13345_playlistNetworkManager=m;this.listId=G;this.JSC$13345_updateCallback=K;this.videoIds=W};
_.n(kmX,rG);_.hf=function(m,G,K,W,L,A,O){L=L===void 0?[]:L;O=O===void 0?fB:O;rG.call(this,m,G,K,L);this.JSC$13345_playlistNetworkManager=m;this.listId=G;this.JSC$13345_updateCallback=K;this.onAuthChange=W;this.videoIds=L;this.storage=A;this.cookieReader=O;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.jA(_.Fu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.n(_.hf,rG);_.w=_.hf.prototype;_.w.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.jA(_.Fu,this.checkLoggedInStatusChange.bind(this),1E3)};
_.w.JSC$13345_setCurrentIndex=function(m){rG.prototype.JSC$13345_setCurrentIndex.call(this,m);this.store()};
_.w.delete=function(){_.Fu.cancelJob(this.queueSapisIdJob);rG.prototype.delete.call(this)};
_.w.setListId=function(m){rG.prototype.setListId.call(this,m);this.store()};
_.w.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var C3K=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Vu4=["playerResponse","videoDetails"],Zul=["response","currentVideoEndpoint","watchEndpoint","videoId"],dOX=["response","currentVideoEndpoint","watchEndpoint","playlistId"],P3P=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],yhi=["response","contents","twoColumnWatchNextResults","playlist","playlist"],eYG=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
fy0=["response","contents","twoColumnWatchNextResults"];var p8={},nUd=(p8.WEB_UNPLUGGED="^unplugged/",p8.WEB_UNPLUGGED_ONBOARDING="^unplugged/",p8.WEB_UNPLUGGED_OPS="^unplugged/",p8.WEB_UNPLUGGED_PUBLIC="^unplugged/",p8.WEB_CREATOR="^creator/",p8.WEB_KIDS="^kids/",p8.WEB_EXPERIMENTS="^experiments/",p8.WEB_MUSIC="^music/",p8.WEB_REMIX="^music/",p8.WEB_MUSIC_EMBEDDED_PLAYER="^music/",p8.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",p8);var ze6,Hu4;ze6=function(m,G){this.networkManager=m;this.innertubeTransportService=G};
Hu4=function(m,G,K){if(!_.Q(G,_.pK))return _.KN(Error("Pf"));_.Q(G,_.pK).videoIds=K;K={create_playlist_title:_.zq("QUEUE",void 0,"Queue")};return aa6(_.to(m.innertubeTransportService,G,K),FMd)};
_.j42=function(m,G,K,W){G={videoId:W,playlistId:G,playlistIndex:K};K=_.sv(y5l);return aa6(_.Jf(m.innertubeTransportService,G,K),oUf)};
ze6.prototype.updatePlaylist=function(m,G){return aa6(_.to(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:m,actions:G}}),Q_F)};var xOi=function(m){this.storage=m},XfC;
xOi.prototype.store=function(m,G){G=G===void 0?0:G;if(this.storage&&m.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",m),this.storage.set("TLPQindex",String(G)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(K){}};
xOi.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
xOi.prototype.getPlaylistId=function(){if(!this.storage)return null;var m=null;try{m=this.storage.get("TLPQplaylist")}catch(G){}return m};var s_G=["navigationEndpoint","watchEndpoint","videoId"],$os=["nextButtonVideo","watchEndpoint","videoId"];_.M_=new _.sX("NETWORK_TOKEN");_.$g=new _.sX("PAGE_TOKEN");_.NQ=new _.sX("PLAYLIST_TOKEN");var Scl;Scl=new _.sX("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Tv=new _.sX("INNERTUBE_TRANSPORT_TOKEN");var RYo,Dq,zYi,lyk,MuF,T2K;RYo=new Set(["ci","cr","carml"]);Dq=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13392_parkedJobs=new Map;this.parkedProcessors=new Map};
_.tf=function(){Dq.instance||(Dq.instance=new Dq);return Dq.instance};
Dq.prototype.onAny=function(m){return _.UOi(this,m,2)};
Dq.prototype.parkOrScheduleJob=function(m,G,K,W,L){_.Fi(this,K)?_.AA().addJob(m,G,W):(L&&(m=zYi(m),lyk(this,m,G,K,L)),L=this.JSC$13392_parkedJobs.get(K),L||(this.JSC$13392_parkedJobs.set(K,[]),L=this.JSC$13392_parkedJobs.get(K)),L.push({job:m,priority:G,delay:W}))};
Dq.prototype.addListener=function(m,G,K){K&&(G=zYi(G),lyk(this,G,0,m,K));K=this.parkedProcessors.get(m);K||(this.parkedProcessors.set(m,[]),K=this.parkedProcessors.get(m));K.push(G)};
Dq.prototype.processSignal=function(m){if(!_.Fi(this,m)){this.inProgressSignals.add(m);var G=this.JSC$13392_parkedJobs.get(m);if(G){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,_.AA().addJob(K.job,K.priority,K.delay);this.JSC$13392_parkedJobs.delete(m)}if(G=this.parkedProcessors.get(m)){G=_.g(G);for(K=G.next();!K.done;K=G.next())K=K.value,K();this.parkedProcessors.delete(m)}this.signals.push(m);this.inProgressSignals.delete(m)}};
_.Fi=function(m,G){return RYo.has(G)||_.IP("IS_HOMEPAGE_COLD")||_.IP("IS_RESULTS_PAGE_COLD")||_.IP("IS_WATCH_PAGE_COLD")?m.signals.indexOf(G)>=0:!0};
zYi=function(m){var G=!1;return function(){G||(G=!0,m())}};
lyk=function(m,G,K,W,L){if(B2X.has(W))_.AA().addJob(G,K,L);else{var A=m.compoundSignals.get(W);A&&_.AA().addJob(function(){_.Fi(m,W)||(A.isTimeoutConditionSatisfied?_.AA().addJob(G,K):A.timeoutConditionObservers.push(function(){_.AA().addJob(G,K)}))},K,L)}};
_.UOi=function(m,G,K){if(G.length>1){var W=[],L=Object.create(null);G=_.g(G);for(var A=G.next();!A.done;A=G.next())A=A.value,L[A]||(W.push(A),L[A]=!0);G=W}if(G.length===1)return G[0];A=G;W="";L=K===2?"|":"&";A.sort();A=_.g(A);for(var O=A.next();!O.done;O=A.next())W+=O.value+L;if(!m.compoundSignals.get(W)){L=0;A=[];O=_.g(G);for(var c=O.next();!c.done;c=O.next())c=c.value,L++,_.Fi(m,c)||A.push(c);(K=K===2)&&L>A.length||!K&&!A.length?m.signals.push(W):MuF(m,W,K,G,A)}return W};
MuF=function(m,G,K,W,L){var A=L.length,O=function(){K||--A===0?m.processSignal(G):T2K(m,G)};
L=_.g(L);for(var c=L.next();!c.done;c=L.next())m.addListener(c.value,O);m.compoundSignals.set(G,{signals:W,isOnAny:K,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});T2K(m,G)};
T2K=function(m,G){if(!_.Fi(m,G)){var K=m.compoundSignals.get(G);if(K&&!K.isTimeoutConditionSatisfied){for(var W=!1,L=0,A=0,O=_.g(K.signals),c=O.next();!c.done;c=O.next()){var u=c.value;c=!_.Fi(m,u);B2X.has(u)?W=!0:(u=m.compoundSignals.get(u))?c&&!u.isTimeoutConditionSatisfied&&(A++,K.isInitialized||u.timeoutConditionObservers.push(function(){T2K(m,G)})):c&&L++}K.isInitialized=!0;
K.isOnAny?W&&(K.isTimeoutConditionSatisfied=!0):L===0&&A===0&&(K.isTimeoutConditionSatisfied=!0);if(K.isTimeoutConditionSatisfied)for(K=_.g(K.timeoutConditionObservers),W=K.next();!W.done;W=K.next())W=W.value,W()}}};
Dq.prototype.processSignal=Dq.prototype.processSignal;Dq.prototype.parkOrScheduleJob=Dq.prototype.parkOrScheduleJob;Dq.prototype.onAny=Dq.prototype.onAny;_.yj("ytsignals.getInstance",_.tf);Dq.prototype.onAny=Dq.prototype.onAny;Dq.prototype.parkOrScheduleJob=Dq.prototype.parkOrScheduleJob;Dq.prototype.processSignal=Dq.prototype.processSignal;var B2X=new Set(["eop","eocs","dl","pcl"]);_.pY=new _.sX("MINIPLAYER_SERVICE");var QU,mbB,iMS;QU=function(m,G,K){var W=_.Im.getInstance();if(!XfC){var L=new rMF;var A=void 0,O=_.E8("ID_TOKEN");O&&L.isAvailable()&&(A=new pL(L,"yt-queue"+O));XfC=new xOi(A)}L=XfC;A=_.tf();this.JSC$13399_actionRouter=W;this.JSC$13399_pageManager=m;this.playlistManager=G;this.JSC$13399_playlistNetworkManager=K;this.storage=L;this.signals=A;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.an=function(){if(!mbB){var m=_.xS(),G=m.resolve(_.fn(_.$g)),K=m.resolve(_.fn(_.M_)),W=m.resolve(_.fn(_.NQ));m=m.resolve(_.Tv);mbB=new QU(G,W,new ze6(K,m))}return mbB};
iMS=function(m,G,K){if(K){var W;if(((W=m.responsePlaylistData)==null?void 0:W.playlistId)!==K)return}m.responsePlaylistData&&(K=kwd(G,m.responsePlaylistData),m.responsePlaylistData=(0,_.Y2.unsafeClone)(m.responsePlaylistData),VSP(m.responsePlaylistData,K));K=m.temporaryItems.findIndex(function(L){return L.videoId===G});
K>-1&&m.temporaryItems.splice(K,1);_.on(m,_.n8(m,m.response?m.response.autoplayRenderer:void 0))};
_.GoB=function(m,G){if(m.responsePlaylistData){var K=Cv6(G,m.responsePlaylistData);VSP(m.responsePlaylistData,K);if(m.queueProxy){var W=m.queueProxy;K<0||(W.videoIds.splice(K,1),K<W.currentIndex&&W.JSC$13345_setCurrentIndex(W.currentIndex-1),W.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:G}),uJ(W))}}_.on(m,_.n8(m,m.response?m.response.autoplayRenderer:void 0))};
QU.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.on(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
QU.prototype.setPlaylistData=function(m,G,K){this.temporaryItems=[];this.listId=m;this.responsePlaylistData=G;_.on(this,_.n8(this,K))};
var KSP=function(m){return(m==null?0:m.playlistId)?m.playlistId:"PPSV"},WSF=function(m){return m&&m.playlistId?m.playlistId==="PPSV"?!0:Cmd(_.$R().getState().entities,m.playlistId):!1};
QU.prototype.isPlayingOfflineVideo=function(){return this.response?WSF(this.response):!1};
QU.prototype.closeMiniplayer=function(m){var G=this.queueProxy&&this.queueProxy.size()<=1,K=_.xS().resolve(_.pY);if(!this.queueProxy||G)this.queueProxy&&this.clearQueue(),K.close(!0);else{K.pipController.getWindow()&&window.focus();G=this.responsePlaylistData;var W=this.temporaryItems.length+(G&&G.contents?G.contents.length:0);G=_.zq("QUEUE_CLEARED_UNPLURALIZED")||_.lW("QUEUE_CLEARED",W);G=_.Ev(G);K=_.zq("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");W=_.zq("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.lW("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",W);var L=_.zq("MINIPLAYER_CLOSE",void 0,"Close"),A=_.zq("CANCEL",void 0,"Cancel");_.OL(this.JSC$13399_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.nG(K),dialogMessages:[_.nG(W)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nG(L),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
G]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.nG(A)}}}}}}],m)}};
_.n8=function(m,G){var K={},W=m.response;K.autoplayRenderer=G;if(!m.responsePlaylistData&&!m.temporaryItems.length)return!W||!W.hasRelatedVideoData&&_.F("kevlar_prefetch_data_augments_network_data")||(K.playerData={rvs:W.relatedVideoArgs,endScreenRenderer:W.endScreenRenderer}),K;K.playerData={};if(m.index===void 0)return _.am(Error("Rf")),K;K.panel=m.responsePlaylistData?(0,_.Y2.unsafeClone)(m.responsePlaylistData):{titleText:_.nG(_.zq("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
G=K.panel;if(G.contents)for(var L=_.g(m.temporaryItems),A=L.next();!A.done;A=L.next())G.contents.push({playlistPanelVideoRenderer:A.value});m.queueProxy&&W&&W.playingVideo&&W.playingVideoId&&!j_o(W.playingVideoId,K.panel)&&(G=W.playingVideo,L=K.panel,A=m.index,L.contents&&L.contents.splice(A===void 0?0:A,0,{playlistPanelVideoRenderer:G}));W&&W.playingVideoId&&(G=m.index,L=K.panel,G=!L.contents||G>=L.contents.length?void 0:L.contents[G].playlistPanelVideoRenderer,G&&G.videoId===W.playingVideoId||(G=
kwd(W.playingVideoId,K.panel),m.index=G!==-1?G:m.index?m.index-1:0));G=IaG(m.index+1,K.panel);L=void 0;m.index>0&&(L=IaG(m.index-1,K.panel));if(L||G)K.autoplayRenderer=q9F(G,L,K.autoplayRenderer);!G&&(W==null?0:W.relatedVideoArgs)&&(K.playerData.rvs=W.relatedVideoArgs);W=W?W.playlistIndexOffset:0;m.queueProxy?PvG(K.panel,m.index,W,Hf6,!0,!0,!0):PvG(K.panel,m.index,W);K.playerData.playlistPanelRenderer=K.panel;return K};
QU.prototype.isMiniplayerActive=function(){return _.xS().resolve(_.pY).isMiniplayerActive()};
_.on=function(m,G){m.playlistManager.setAutoplayRenderer(G.autoplayRenderer||null);m.playlistManager.setPlaylistData(G.panel||null);G.playerData&&m.playlistManager.setPlayerPlaybackControlData(G.playerData)};var yGM="#";var LSP={},A0X={},w9X={},gb0={},OMX={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:(LSP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",LSP),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:(A0X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",A0X),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:(w9X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",w9X),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:(gb0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",gb0),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 omG=[{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:OMX},{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:OMX}}];var upG;_.PU=[[["NmxyeGxraGtpbmQjYXY1bmk=","OHcxdmFsdWUjbzZwZncweDUx"],"MGt0QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjOXRicW9hbDNu"]];
upG=[[["cnkjNnR3MHM2MjR2aDh1cHJpbWE=",null,null],[null,["dHMtcmVuZGVyZXIjcjlqdHgyMmg5ZW4zeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3Vs","M2k2dGQ5c3R5bGUtc2NvcGUjcHZ5Zzg="],null],["NXJhbWFzdGhlYWQtYWQjZGVyNWVkOTdp",["cWFrdHJ5dGQtcmljaC1ncmlkLXJlbmRlcmVyIzg5bGY0bDI="],null],[null,["dDRrNnp5dGQtcmljaC1ncmlkLXJlbmRlcmVyI3YzZGN6b2E=","MG52c3R5bGUtc2NvcGUjNzFmN3RmZGd4"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyIzhmdWRubnFlczRmY3k=","N2hic3R5bGUtc2NvcGUjZDI5MWNnaDA1"],null],[null,["cWNwNXpmdGh4eXRkLWFkLXNsb3QtcmVuZGVyZXIjcXVu"],
null]],[["bXA2dXY5cGxheWVyLWFkcyM5dTh5d3c=",null,null]]];_.d6=["bGJhY2tzI3hjazAybGZvcnIyMWdsb2JhbENhbA==","ZnB3MmFiNm9uQWJub3JtYWxpdHlEZXRlY3RlZCN3MGx3dg==","bDBmemx6bWl2YXFkb25BZFNraXAj","a3l5dHJrOGR5MXJyYXdfcGxheWVyX3Jlc3BvbnNlIzc=","dHMjOTV5Nm0yZXhoMTV4YWRTbG8="];_.bJ="bGJhY2tzI3hjazAybGZvcnIyMWdsb2JhbENhbA== ZnB3MmFiNm9uQWJub3JtYWxpdHlEZXRlY3RlZCN3MGx3dg== bDBmemx6bWl2YXFkb25BZFNraXAj a3l5dHJrOGR5MXJyYXdfcGxheWVyX3Jlc3BvbnNlIzc= aXBsZV9za2lwc19rcyNiZzJyZWhxa2Z1MjB3ZWJfcGxheWxpc3RfcXVldWVfbXVsdA== dmdnMXFia3ZpNHdoYWJfc2FfZWYj dHMjOTV5Nm0yZXhoMTV4YWRTbG8=".split(" ");var v3;v3=function(m,G,K){this.tDc=m;this.smF=G;this.pGG=K};
_.CcP=[new v3("b.f_",!1,0),new v3("j.s_",!1,2),new v3("r.s_",!1,4),new v3("e.h_",!1,6),new v3("i.s_",!0,8),new v3("s.t_",!1,10),new v3("p.h_",!1,12),new v3("s.i_",!1,14),new v3("f.i_",!1,16),new v3("a.b_",!1,18),new v3("a.o_",!1),new v3("g.o_",!1,22),new v3("p.i_",!1,24),new v3("p.m_",!1),new v3("n.k_",!0,20),new v3("i.f_",!1),new v3("a.s_",!0),new v3("m.c_",!1),new v3("n.h_",!1,26),new v3("o.p_",!1),new v3("m.p_",!0,28),new v3("o.a_",!1),new v3("d.p_",!1),new v3("e.i_",!1)].reduce(function(m,G){m[G.tDc]=
G;return m},{});var c04=function(){};
c04.prototype.flush=function(m,G){m=m===void 0?[]:m;G=G===void 0?!1:G;if(_.F("enable_client_streamz_web")){m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=A_K(K.value),this.rootSpec&&_.ko(K,2,this.rootSpec),K={serializedIncrementBatch:_.Md(K.JSC$9914_serializeBinary())},_.Fx("streamzIncremented",K,{sendIsolatedPayload:G})}};
var S99=function(){};
_.n(S99,c04);var Yfi=function(m){var G=new TMF;var K=new l4X;K=_.LB(K,1,"botguard");m=_.LB(K,2,m);this.rootSpec=_.Cp(G,1,m2G,m)};
_.n(Yfi,c04);var CG,r0k=new Map;var NrP,Uod,Kqd,BIf,meo,YPG,tL6,O4M;NrP=2;Uod=2;Kqd=2;BIf=2;meo=2;YPG=2;tL6=2;O4M=new T8R;var hSP,p9S;hSP=function(){this.ongoingFlowNonces=new Map};
_.fG=function(){p9S||(p9S=new hSP);return p9S};
_.e8=function(m,G,K){return{eventType:{flowEventNamespace:m,flowEventType:G},metadata:K,statusCode:void 0,csn:void 0,can:void 0}};
_.Z46=function(m,G){var K=_.fG(),W=J0F(K,G,!0);K.logFlowEvent(m,G,W,void 0)};
hSP.prototype.logFlowEvent=function(m,G,K,W){G={flowNonce:K||J0F(this,G),flowType:G,flowEventType:m.eventType};m.metadata&&(G.flowMetadata=m.metadata);m.statusCode!==void 0&&(G.flowEventStatus=m.statusCode);m.csn&&(G.csn=m.csn);m.can&&(G.can=m.can);_.Fx("flowEvent",G,W)};
var J0F=function(m,G,K){K=K===void 0?!1:K;var W=m.ongoingFlowNonces.get(G);if(!W||K)W=LJ(16),m.ongoingFlowNonces.set(G,W);return W};_.NAk=new MnR;var fBo={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var $V=function(m,G,K,W,L,A,O){K=K===void 0?!1:K;W=W===void 0?!1:W;A=A===void 0?_.an():A;this.cq=!1;this.plc=m;this.bxn=G;this.etv=K;this.fromHistory=W;this.previousVideoId=L;this.o9X=A;this.tempData=O;this.tjZ=new _.mqk};
_.n($V,E7);$V.prototype.validate=function(m){return!(!m.data.playerResponse||m.data.page!=="watch"&&m.data.page!=="learning_journey_watch"&&m.data.page!=="shorts"||this.cq)};
$V.prototype.handle=function(m){var G=this,K=_.Q(m.endpoint,_.QQ),W=_.Q(m.endpoint,_.lw);if(_.F("kevlar_continue_playback_without_player_response")&&(K==null?0:K.videoId)&&this.previousVideoId&&(K==null?void 0:K.videoId)===this.previousVideoId&&(K==null?0:K.continuePlayback)&&!this.fromHistory)this.plc.resolve();else{var L={};K?L.watch_endpoint=K:W&&(L.watch_endpoint=W,W.endTimeSeconds&&(L.end=W.endTimeSeconds));m.data.page==="watch"?(m.data.filler||this.etv||(_.r9("cfg"),_.Im.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(L,DbX(this,m.endpoint)),_.F("enable_masthead_quartile_ping_fix")&&Object.assign(L,tR4(this)),Object.assign(L,void 0),m.data.forceExternalPlaylist&&(L.external_list=!0)):m.data.page==="shorts"?_.Im.getInstance().triggerAction("yt-start-loading-shorts"):m.data.page==="learning_journey_watch"&&_.Im.getInstance().triggerAction("yt-start-loading-learning-journey");if(K=this.bxn()){try{K.loadVideoWithPlayerResponse(m.data.playerResponse,L),K.getPlayerPromise().then(this.plc.resolve)}catch(A){_.am(A),
this.plc.resolve()}this.cq=!0;K.getPlayerPromise().then(function(A){A.addEventListener("onAbnormalityDetected",function(){var O=m.data.playerResponse,c=A.getVideoData().cpn;tL6=0;_.uWK=c;if(c=kyo(O))G.tjZ.increment("IN_PLAYER"),_.xR(5),_.F("ab_st_vid_ks")?A.pauseVideo(!0):A.stopVideo(),O.playabilityStatus=Object.assign({},O.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:c}}),O.videoDetails=void 0,_.Im.getInstance().triggerOptionalAction("yt-updated-playability-status",
O.playabilityStatus)})})}else _.nc(Error("Uf"))}};
var DbX=function(m,G){var K=_.Q(G,_.QQ);if(G&&K&&K.playlistId&&K.videoId&&(m=m.o9X,m.queueProxy?(m=m.queueProxy,K=m.listId===K.playlistId?m.attributionData.get(K.videoId):void 0):K=void 0,K))return{queue_info:K}},tR4=function(m){var G;
if((G=m.tempData)==null?0:G.adpings)return{adpings:m.tempData.adpings}};var sb=function(m,G,K){this.cq=!1;this.s7W=m;this.vMn=G;this.bRF=K};
_.n(sb,E7);sb.prototype.validate=function(m){return!!_.Y2.getValueByKeys.apply(null,[m.data].concat(_.Bz(fy0)))};
sb.prototype.handle=function(m){var G=this;this.s7W.promise.then(function(){var K=m.data;var W=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(C3K))),L=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(yhi))),A=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(Zul)));var O=(O=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(Vu4))))?{videoId:O.videoId,thumbnail:O.thumbnail,title:O.title?_.nG(O.title):void 0,shortBylineText:O.author?_.nG(O.author):void 0}:void 0;var c=void 0;_.F("web_get_playlist_id_from_current_endpoint_ks")||
(c=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(dOX))));var u=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(eYG))),h=_.Y2.getValueByKeys.apply(null,[K].concat(_.Bz(P3P))),J=!!u||!!h&&!!h.results&&h.results.length>0,N=0;L&&L.currentIndex&&L.localCurrentIndex&&(N=L.currentIndex-L.localCurrentIndex);L&&L.playlistId&&(c=L.playlistId);K={rawResponse:K,autoplayRenderer:W,hasRelatedVideoData:J,playingVideo:O,playingVideoId:A,playlistPanelRenderer:L,playlistId:c,playlistIndex:L&&L.currentIndex,relatedVideoArgs:u,
endScreenRenderer:h,playlistIndexOffset:N};a:{W=G.bRF;L=G.vMn;W.response=K;if(WSF(K))W.downloadPlaylistProxy&&W.downloadPlaylistProxy.getPlaylistId()===KSP(K)||(W.downloadPlaylistProxy=new $O2(KSP(K),W.setPlaylistData.bind(W),W.isPlayingOfflineVideo.bind(W))),W.responsePlaylistData=W.downloadPlaylistProxy.getPlaylistData(),W.listId=KSP(K),W.index=0;else if(K.playlistPanelRenderer&&K.playlistId&&K.autoplayRenderer)K.playlistId.startsWith("TLPQ")?W.queueProxy?W.listId===K.playlistId?(W.index=K.playlistIndex,
W.responsePlaylistData=K.playlistPanelRenderer,W.queueProxy.JSC$13345_setCurrentIndex(W.index)):K.playingVideoId&&W.index!==void 0&&L.clientParams.autoSaveToQueue&&(W.index+=1,W.queueProxy.JSC$13345_setCurrentIndex(W.index),W.queueProxy.addVideos([K.playingVideoId],{},W.index)):(W.queueProxy=new _.hf(W.JSC$13399_playlistNetworkManager,K.playlistId,W.setPlaylistData.bind(W),W.clearQueue.bind(W),_.Zfd(K.playlistPanelRenderer),W.storage),W.responsePlaylistData=K.playlistPanelRenderer,W.listId=K.playlistId,
W.index=K.playlistIndex):(W.index=K.playlistIndex,W.listId!==K.playlistId&&W.clearQueue(),W.responsePlaylistData=K.playlistPanelRenderer,W.listId=K.playlistId,W.playlistProxy=new kmX(W.JSC$13399_playlistNetworkManager,K.playlistId,W.setPlaylistData.bind(W),_.Zfd(K.playlistPanelRenderer)));else if(!W.queueProxy)W.responsePlaylistData=void 0;else if(K.playingVideoId&&L.clientParams.autoSaveToQueue){if(W.index===void 0){_.am(Error("Qf"));W.clearQueue();break a}W.queueProxy.videoIds.includes(K.playingVideoId)||
(W.index+=1,W.queueProxy.JSC$13345_setCurrentIndex(W.index),W.queueProxy.addVideos([K.playingVideoId],{},W.index))}_.on(W,_.n8(W,W.response.autoplayRenderer))}})};var FSk=function(m,G){G=G===void 0?_.an():G;SM.call(this);this.de.push(new sb(this.nP,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},G));this.de.push(new $V(this.nP,m,!1,!1));_.F("web_response_commands_chunk_processor")&&this.de.push(new Rg)};
_.n(FSk,SM);FSk.prototype.processChunk=function(m){m&&m.data.player===void 0&&this.nP.resolve();SM.prototype.processChunk.call(this,m)};var qQ=function(m,G){m=m===void 0?{layer:0}:m;this.cq=!1;this.createScreenConfig=m;this.wzW=G;this.createScreenConfig.automatedLogEventSource=9};
_.n(qQ,E7);qQ.prototype.validate=function(m){return!(this.cq||!m.endpoint)};
qQ.prototype.handle=function(m){var G=_.l1(),K,W,L=(W=_.Q((K=m.endpoint)==null?void 0:K.commandMetadata,_.RQ))==null?void 0:W.rootVe;this.wzW&&L?_.PB(G,L,this.wzW,this.createScreenConfig):gFP(G,m.endpoint,this.createScreenConfig);this.cq=!0};var Eb=function(m,G){this.cq=!1;this.uJW=m;this.previousVideoId=G};
_.n(Eb,E7);Eb.prototype.validate=function(m){return _.F("kevlar_continue_playback_without_player_response")&&(m=_.Q(m.endpoint,_.QQ),(m==null?0:m.videoId)&&this.previousVideoId&&(m==null?void 0:m.videoId)===this.previousVideoId&&(m==null?0:m.continuePlayback))?!1:this.uJW.jhc===0};
Eb.prototype.handle=function(m){_.Im.getInstance().triggerAction("yt-stop-old-player",m.data,!0)};var Qho=function(m){m=m===void 0?{layer:0}:m;SM.call(this);this.de.push(new Eb(this));this.de.push(new qQ(m));this.de.push(new X$(m))};
_.n(Qho,SM);var H3=function(){E7.apply(this,arguments)};
_.n(H3,E7);H3.prototype.validate=function(m){return!!m.data.preconnect};
H3.prototype.handle=function(m){_.Yt("bc");m=_.g(m.data.preconnect);for(var G=m.next();!G.done;G=m.next())G=G.value,(new Image).src=G};var a$G=function(m,G,K,W,L,A,O){K=K===void 0?{layer:0}:K;A=A===void 0?_.an():A;SM.call(this);if(W)if(L){L=A;this.de.push(new sb(this.nP,G,L));this.de.push(new H3);var c,u;this.de.push(new $V(this.nP,m,!1,!((c=G.clientParams)==null||!c.fromHistory),(u=G.clientParams)==null?void 0:u.previousVideoId,L,G.tempData));var h;this.de.push(new Eb(this,(h=G.clientParams)==null?void 0:h.previousVideoId));var J;(J=G.clientParams)!=null&&J.fromHistory||(K.layer||(K=Object.assign({},K,{layer:0})),this.de.push(new qQ(K,
O)),this.de.push(new X$(K)))}else this.de.push(new sb(this.nP,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},A)),this.de.push(new $V(this.nP,m,!1,!1));else this.de.push(new Eb(this)),this.de.push(new qQ(K)),this.de.push(new X$(K));_.F("web_response_commands_chunk_processor")&&W&&this.de.push(new Rg)};
_.n(a$G,SM);a$G.prototype.processChunk=function(m){m&&m.data.player===void 0&&this.nP.resolve();SM.prototype.processChunk.call(this,m)};var obS=function(){this.cq=this.cq=!1};
_.n(obS,E7);obS.prototype.validate=function(m){return!this.cq&&!(!m.data.csn||!m.data.rootVe)};
obS.prototype.handle=function(m){this.cq=!0;_.cH(m.data.csn,m.data.rootVe,3)};var nbS=function(m,G,K){K=K===void 0?{layer:0}:K;SM.call(this);this.de.push(new $V(this.nP,m));this.de.push(new qQ(K));this.de.push(new X$(K))};
_.n(nbS,SM);var bMK=function(m,G,K,W,L){K=K===void 0?{layer:0}:K;W=W===void 0?_.an():W;SM.call(this);var A=!!G&&!!G.clientParams&&!!G.clientParams.miniplayer;A&&this.de.push(new obS);this.de.push(new sb(this.nP,G,W));this.de.push(new H3);var O,c;this.de.push(new $V(this.nP,m,A,!((O=G.clientParams)==null||!O.fromHistory),(c=G.clientParams)==null?void 0:c.previousVideoId,W,G.tempData));var u;this.de.push(new Eb(this,(u=G.clientParams)==null?void 0:u.previousVideoId));var h;(h=G.clientParams)!=null&&h.fromHistory||
(K.layer||(K=Object.assign({},K,{layer:A?3:0})),this.de.push(new qQ(K,L)),this.de.push(new X$(K)));_.F("web_response_commands_chunk_processor")&&this.de.push(new Rg)};
_.n(bMK,SM);var In,sh2;In={};
_.vbi=(In["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},In["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},In["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},In["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},In["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},In["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},In["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},In);_.jG=new _.bs("yt-edu");_.$b2=function(){this.JSC$13497_eduDisplayedThisLoad_={}};
sh2=function(m){var G=_.$b2.getInstance();var K=_.U8("kevlar_tooltip_impression_cap");G=K&&parseInt(_.jG.get(m+"-impression")||0,10)>=K||_.jG.get(m+"-dismissed")?!1:(K=_.vbi[m])&&!G.JSC$13497_eduDisplayedThisLoad_[K.setKey||m]&&(K.titleText&&_.zq(K.titleText)||K.bodyText&&_.zq(K.bodyText))?!0:!1;if(!G)return null;G=_.vbi[m];if(!G)return null;K=G.bodyText?_.zq(G.bodyText):void 0;var W=G.titleText?_.zq(G.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:G.position,popup:{bubbleHintRenderer:{text:W?
_.nG(W):void 0,detailsText:K?_.nG(K):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.nG(_.zq("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:m}}]}}}}}}}},{eduImpressionAction:{key:m}}]};
_.IB(_.$b2);var de6=!1;for(var qfC="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Ebk=[],kV=6;kV>=1;kV--)Ebk.push({columnCount:kV,query:kV==1?0:kV*2*107-4+32,className:"grid-"+kV+"-columns",width:kV*2*107+"px"});_.C8=function(m){this.actionRouter_=m=m===void 0?_.Im.getInstance():m;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.HMl(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.HMl=function(m){var G=m.documentWidth_-(m.miniGuideVisible_?72:0)-(m.guidePersistentAndVisible_?240:0)-(m.persistentPanelVisible_?400:0);return Ebk.find(function(K){return G>K.query})};
_.IB(_.C8);var I$o=function(){var m=this;this.JSC$13509_keyboardInUse=!1;document.addEventListener("keydown",function(){m.onKeydown()});
document.addEventListener("mousedown",function(){m.JSC$13509_keyboardInUse=!1})},jhB;
I$o.prototype.isKeyBoardInUse=function(){return this.JSC$13509_keyboardInUse};
I$o.prototype.onKeydown=function(){this.JSC$13509_keyboardInUse=!0};var koK,dG;_.VU=new _.bs("yt-mentions");_.Zq=function(){};
koK=function(m,G){return dG(G,"drag-to-reorder-edu-displayed")};
dG=function(m,G,K,W,L,A){K=K===void 0?"OPEN_POPUP_POSITION_TOP":K;if(G){if(_.VU.get(G))return;_.VU.set(G,!0,W)}if(L&&A!==void 0){G=Number(_.VU.get(L)||0);if(G>=A)return;_.VU.set(L,G+1)}return[{openPopupAction:{popupType:"HINT",position:K,popup:{bubbleHintRenderer:{detailsText:m,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.IB(_.Zq);var Coi,VRX,ZMX;Coi=function(m,G,K,W){this.JSC$13519_taskManager_=m;this.onFulfilled_=typeof G==="function"?G:null;this.onRejected_=typeof K==="function"?K:null;this.JSC$13519_context_=W};
VRX=function(m,G){m.onFulfilled_&&_.mn(m.JSC$13519_taskManager_,function(){m.onFulfilled_.call(m.JSC$13519_context_,G)})};
ZMX=function(m,G){m.onRejected_&&_.mn(m.JSC$13519_taskManager_,function(){m.onRejected_.call(m.JSC$13519_context_,G)})};
_.P3=function(m){this.JSC$13522_taskManager_=m;this.callbacks_=[]};
_.P3.prototype.then=function(m,G,K){this.callbacks_.push(new Coi(this.JSC$13522_taskManager_,m,G,K));return this};
_.P3.prototype.onSuccess=function(m){this.callbacks_.forEach(function(G){VRX(G,m)})};
_.P3.prototype.onFailure=function(m){this.callbacks_.forEach(function(G){ZMX(G,m)})};
_.P3.prototype.cancel=function(){this.callbacks_.length=0};
Aw0(_.P3);_.Xj6=null;_.zk=new _.sX("ACTIVITY_TOKEN");var dbC;_.WX=new _.sX("PAGE_REQUEST_TOKEN");dbC=new _.sX("FETCH_PBJ_TOKEN");_.PoR=function(m){if(m.validatedFragments_.length==0)return null;if(!m.mergedPrefetchedData_){for(var G=[],K=_.g(m.validatedFragments_),W=K.next();!W.done;W=K.next()){W=_.g(m.fragmentConfiguration_[W.value].graftedKeys);for(var L=W.next();!L.done;L=W.next())(L=m.prefetchedData_[L.value].trackingParams)&&G.push(L)}m.mergedPrefetchedData_={};Object.assign(m.mergedPrefetchedData_,m.prefetchedData_,{clientSideGrafts:G})}return m.mergedPrefetchedData_};var y0R;_.yU=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
y0R=function(m,G,K){if(_.SPG(G))return m.prefetchCache_.get(_.ReP(G,K))};_.eG=new _.sX("NAVIGATION_TOKEN");var eSX=function(m){var G=this;var K=K===void 0?lBd():K;var W=W===void 0?_.xS().resolve(_.eG):W;this.onePickCommand=m;this.JSC$13594_playlistNetworkManager=K;this.navigationManager=W;this.videoPickerBuilder=_.Uef("yt-addtoplaylist");_.aGP(wHF(guF(AjB(this.videoPickerBuilder.setTitle(m.modalTitle).setSize(1E3).addView(Dk2()).addView(NlR())).addView("youtube"),m.selectButtonLabel)),function(L){G.handleAction(L)})};
eSX.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
eSX.prototype.handleAction=function(m){var G=this;if(m&&this.onePickCommand.listId&&m.action==="picked"&&m.docs){var K=[];m.docs.forEach(function(W){K.push({addedVideoId:W.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13594_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,K).then(function(){_.F("playlist_add_video_hard_reload_killswitch")?G.navigationManager.reload():f$K(G.navigationManager)})}};var xbX=function(){if(this.constructor===xbX)throw new TypeError("Wf");};
_.w=xbX.prototype;_.w.dispose=function(){};
_.w.disconnect=function(){};
_.w.reconnect=function(){};
_.w.observe=function(m,G,K){return{element:m,option:K}};
_.w.unobserveByKey=function(){};var BrP=function(m,G){G=G===void 0?0:G;xbX.call(this);this.viewroot=m;this.defaultPrescanHeight=G;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),m?{root:m,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.n(BrP,xbX);_.w=BrP.prototype;_.w.dispose=function(){this.disconnect();this.handlers.clear()};
_.w.disconnect=function(m){this.isConnected=!1;this.pauseObservingUntilReconnect=m===void 0?!1:m;this.observer.disconnect();m=_.g(this.prescanObservers.values());for(var G=m.next();!G.done;G=m.next())G.value.disconnect()};
_.w.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var m=_.g(this.handlers),G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;var W=K.next().value;K=!1;W=_.g(W.keys());for(var L=W.next();!L.done;L=W.next())if((L=L.value)&&L.state==="prescan"){K=!0;break}K&&X90(this,G).observe(G);this.observer.observe(G)}}};
_.w.handleObserveEvent=function(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var K=this.handlers.get(G.target);if(K){var W=G.isIntersecting;K=_.g(K);for(var L=K.next();!L.done;L=K.next()){var A=_.g(L.value);L=A.next().value;A=A.next().value;L&&(L.state==="visible"&&W||L.state==="hidden"&&!W)&&(A(G.target,L.state),L.calledOnce&&this.unobserveByKey({element:G.target,option:L}))}}}};
_.w.handlePrescanEvent=function(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var K=this.handlers.get(G.target);if(K&&G.isIntersecting){K=_.g(K);for(var W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;W&&W.state==="prescan"&&(L(G.target,W.state),W.calledOnce&&this.unobserveByKey({element:G.target,option:W}))}}}};
_.w.observe=function(m,G,K){var W=(W=this.handlers.get(m))&&W.has(K)?{element:m,option:K}:void 0;if(W)return W;W={element:m,option:K};this.handlers.has(m)||this.handlers.set(m,new Map);var L=this.handlers.get(m);L&&!L.has(K)&&L.set(K,G);this.pauseObservingUntilReconnect||(K.state==="prescan"&&X90(this,m).observe(m),this.observer.observe(m));return W};
_.w.unobserveByKey=function(m){var G=this.handlers.get(m.element);if(G&&G.has(m.option)){G.delete(m.option);if(m&&m.option.state==="prescan")for(var K=_.g(this.prescanObservers.values()),W=K.next();!W.done;W=K.next())W.value.unobserve(m.element);G.size===0&&(this.handlers.delete(m.element),this.observer.unobserve(m.element))}};
var X90=function(m,G){var K=m.defaultPrescanHeight;G.hasAttribute("prescan-height")&&(G=Number(G.getAttribute("prescan-height")),isNaN(G)||(K=G));if(m.prescanObservers.has(K))return m.prescanObservers.get(K);G="-0.1px -0.1px "+K+"px -0.1px";G=new IntersectionObserver(m.handlePrescanEvent.bind(m),m.viewroot?{root:m.viewroot,rootMargin:G}:{rootMargin:G});m.prescanObservers.set(K,G);return G};var SfX=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],RSF=function(){var m,G=this;this.JSC$13611_actionRouter=m=m===void 0?_.Im.getInstance():m;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return G.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return G.visibilityObservedElementHandlerKeys}}},UbC,f8,BA0;
RSF.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.F("kevlar_use_vimio_behavior")&&_.E8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=ML9())};
RSF.prototype.dispose=function(){this.visibilityMonitor&&_.Lb(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
RSF.prototype.handleVisibilityRefreshed=function(){for(var m=_.g(this.targetMap.entries()),G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;_.zSk(this,G,K)}};
_.xV=function(m,G,K){f8(m,K);var W=_.l$0(m,G);W.element=K;m.targetedElements.set(K,G);_.zSk(m,G,W)};
f8=function(m,G){var K=m.targetedElements.get(G);if(K){var W=m.targetMap.get(K);W&&(delete W.element,m.targetMap.set(K,W));m.targetedElements.delete(G);m.visibilityObserver&&m.visibilityObservedElementHandlerKeys&&(K=m.visibilityObservedElementHandlerKeys.get(G))&&(m.visibilityObserver.unobserveByKey(K),m.visibilityObservedElementHandlerKeys.delete(G))}};
_.zSk=function(m,G,K){var W=K.action,L=K.element;L&&W&&(SfX.includes(G)||_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||m.visibilityMonitor&&m.visibilityMonitor.isNodeVisible(L)?BA0(m,G,K):m.visibilityObserver&&(m.visibilityObservedElementHandlerKeys||(m.visibilityObservedElementHandlerKeys=new WeakMap),W=m.visibilityObserver.observe(L,function(){BA0(m,G,K);m.visibilityObservedElementHandlerKeys.delete(L)},{calledOnce:!0,
state:"visible"}),m.visibilityObservedElementHandlerKeys.set(L,W)))};
BA0=function(m,G,K){var W=K.action;(K=K.element)&&W&&(_.OL(m.JSC$13611_actionRouter,[W],K),m.targetMap.delete(G),m.targetedElements.delete(K),m.triggeredTargets.add(G))};
_.l$0=function(m,G){var K=m.targetMap.get(G);K||(K={},m.targetMap.set(G,K));return K};
_.Xi=function(){UbC||(UbC=new RSF);return UbC};var MRl=document.createElement("div");MRl.style.touchAction="pan-down";var Trd=MRl.style.touchAction==="pan-down";var TAP,muF;TAP=function(){this.hammerFn=UaR();this.JSC$13619_screenManager=_.l1();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.dq(83615);_.eM(this.JSC$13619_screenManager,this.ve);mMV()};
_.SG=function(){muF||(muF=new TAP);return muF};
TAP.prototype.registerTouchEvents=function(m,G,K){var W=_.mb.apply(3,arguments),L=this.hammerFn(m,{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}]]});K&&L.set({touchAction:K});this.nodeManagerMapping.set(m,L);var A=
i1V(G);W=_.g(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;if(O.includes("swipe")||O.includes("pinch")||O.includes("pan"))O.includes("swipe")?L.get("swipe").set({enable:!0,direction:A,velocity:.2}):O.includes("pinch")?L.get("pinch").set({enable:!0}):O.includes("pan")&&(L.get("pan").set({enable:!0,direction:A}),L.get("swipe").set({enable:!0,direction:A,velocity:.2}),L.get("swipe").recognizeWith("pan"));iOP(this,m,L,O)}};
var iOP=function(m,G,K,W){K.on(W,function(L){if(W.includes("pinch"))m.lastPinchTime=Date.now();else if(W.includes("swipe")&&Date.now()-m.lastPinchTime<400)return;L.pointerType!=="mouse"&&(L=W==="doubletap"?{coordinates:L.center}:W.includes("pan")?L:W.includes("swipe")?{target:L.target}:{},G.dispatchEvent(new CustomEvent(W,{bubbles:!0,composed:!0,detail:L})))})};
TAP.prototype.unregisterTouchEvents=function(m){var G=_.mb.apply(1,arguments),K=this.nodeManagerMapping.get(m);if(K){G=_.g(G);for(var W=G.next();!W.done;W=G.next())K.off(W.value);this.nodeManagerMapping.delete(m);m.style.touchAction="unset"}};var GJG=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;_.mo={getLocalStorage:_.LV(function(){try{var m=new Yvs;var G=m.isAvailable()?m:null}catch(K){return null}return G?new _.LA(G):null}),
getSessionStorage:_.LV(function(){var m=new rMF;return m.isAvailable()?new _.LA(m):null})};var K$X=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},NYG=function(){K$X.instance||(K$X.instance=new K$X);
return K$X.instance},DMd=function(m){var G=m.networkEvents;
m.networkEvents=[];return G};var W$X;W$X={};_.L$k=fL("yt-serviceworker-metadata",{objectStores:(W$X.auth={addedAtVersion:1},W$X["resource-manifest-assets"]={addedAtVersion:2},W$X),shared:!0,upgrade:function(m,G){G(1)&&sg(m,"resource-manifest-assets");G(2)&&sg(m,"auth")},
version:2});var Ltd=self.location.origin+"/";A56([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);A56([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);A56([/\.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\//]);A56([/purge_shell=1/]);var A7S=void 0;A7S=A7S===void 0?[]:A7S;
for(var wyR=[],gL2=_.g(XHo),OOl=gL2.next();!OOl.done;OOl=gL2.next())wyR.push({key:OOl.value});for(var c7K=_.g(A7S),Y$F=c7K.next();!Y$F.done;Y$F=c7K.next())wyR.push(Y$F.value);var r7R,We=_.Ks==null?void 0:(r7R=_.Ks.performance)==null?void 0:r7R.memory,O1V=!1,tjo={},r56={},Lr={},AK=navigator;var Ub=function(m){this.JSC$13664_expiringStorage=new ux(m)};
Ub.prototype.set=function(m,G,K){K=K!==void 0?Date.now()+K:void 0;this.JSC$13664_expiringStorage.set(m,G,K)};
Ub.prototype.get=function(m){return this.JSC$13664_expiringStorage.get(m)};
Ub.prototype.remove=function(m){this.JSC$13664_expiringStorage.remove(m)};var vfs=_.nY(["https://www.youtube.com/",""]),$M9=_.nY(["https://studio.youtube.com/",""]),I2J="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",qmf=null,Z1f;var u3S=_.nY(["https://www.youtube.com/iframe_api"]),zX=function(){this.playerResolver_=_.Qo();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.Wb;this.playbackDurationSeconds_=0},h$C=function(m){var G=function(){return window.YT&&typeof window.YT.ready==="function"};
if(G())return _.fJ(window.YT);var K=_.Qo(),W=_.M7("SCRIPT");W.onload=W.onreadystatechange=function(){W.readyState&&W.readyState!="loaded"&&W.readyState!="complete"||(W.onload=_.Wb,W.onreadystatechange=_.Wb,W.onerror=_.Wb,G()?K.resolve(window.YT):K.reject(new _.cw("Failed to load the iframe player library","script.onload",W.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
W.onerror=function(L){W.onload=_.Wb;W.onreadystatechange=_.Wb;W.onerror=_.Wb;K.reject(new _.cw("Failed to load the iframe player library","script.onerror",L&&L.target&&L.target.src))};
_.Jt(W,_.vE(u3S));m.insertBefore(W,m.firstChild);return K.promise},pyl=function(m,G,K){var W,L;
_.Y(function(A){switch(A.nextAddress){case 1:return m.playbackEndedCallback_=K,_.IO(A,2),A.yield(h$C(G.parentElement||null),4);case 4:W=A.yieldResult;_.IG(A,3);break;case 2:return L=_.ye(A),L instanceof _.cw&&L.args&&L.args[0]=="script.onerror"?_.nc(L):_.am(L),A.return();case 3:W.ready(function(){return new W.Player(G,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:m.onPlayerReady_.bind(m),onStateChange:m.onPlayerStateChange_.bind(m),
onCueRangeExit:m.onCueRangeExit_.bind(m)}})}),_.ey(A)}})};
_.w=zX.prototype;_.w.getPlayerPromise=function(){return this.playerPromise_};
_.w.onPlayerReady_=function(m){this.playerResolver_.resolve(m.target)};
_.w.onPlayerStateChange_=function(m){if(m.data==YT.PlayerState.PLAYING){m=m.target;var G=m.getCurrentTime();m.addCueRange("playback",G,G+this.playbackDurationSeconds_)}};
_.w.onCueRangeExit_=function(m){m.data=="playback"&&(m.target.stopVideo(),this.playbackEndedCallback_())};
_.w.stopVideo=function(){this.playerPromise_.then(function(m){m.stopVideo()})};
var J7G=function(m){m.playerVars_&&m.playerPromise_.then(function(G){typeof G.cueVideoByPlayerVars!="function"?_.nc(new _.cw("vmh: player API not ready","cueVideoByPlayerVars",typeof G.cueVideoByPlayerVars)):G.cueVideoByPlayerVars(m.playerVars_)})};
zX.prototype.playVideo=function(){var m=this;this.playerVars_&&this.playerPromise_.then(function(G){typeof G.loadVideoByPlayerVars!="function"?(G=new _.cw("vmh: player API not ready","loadVideoByPlayerVars",typeof G.loadVideoByPlayerVars),_.am(G)):G.loadVideoByPlayerVars(m.playerVars_)})};
var NVP=function(m,G,K,W,L){G&&(K===void 0&&(K=0),W===void 0&&(W=0),m.playbackDurationSeconds_=W/1E3,m.playerVars_={adformat:"17_8",videoId:G,suggestedQuality:"hd720",startSeconds:K/1E3,player_params:L})};
zX.prototype.mute=function(){this.playerPromise_.then(function(m){m.mute()})};
zX.prototype.unMute=function(){this.playerPromise_.then(function(m){m.unMute()})};var XcG=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var lJ;lJ=function(){this.tokenJars={};if(this.cookiesEnabled=_.w8()){var m=_.LL.get("CONSISTENCY",void 0);m&&DuR(this,{encryptedTokenJarContents:m})}};
_.RUV=function(){lJ.instance||(lJ.instance=new lJ);return lJ.instance};
lJ.prototype.handleResponse=function(m,G){if(!G)throw Error("ag");var K,W;G=((K=G.innerTubeRequest.context)==null?void 0:(W=K.request)==null?void 0:W.consistencyTokenJars)||[];var L;(m=(L=m.responseContext)==null?void 0:L.consistencyTokenJar)&&this.replace(G,m)};
lJ.prototype.replace=function(m,G){m=_.g(m);for(var K=m.next();!K.done;K=m.next())delete this.tokenJars[K.value.encryptedTokenJarContents];DuR(this,G)};
var DuR=function(m,G){if(G.encryptedTokenJarContents&&(m.tokenJars[G.encryptedTokenJarContents]=G,typeof G.expirationSeconds==="string")){var K=Number(G.expirationSeconds);setTimeout(function(){delete m.tokenJars[G.encryptedTokenJarContents]},K*1E3);
m.cookiesEnabled&&_.AH("CONSISTENCY",G.encryptedTokenJarContents,K,void 0,!0)}};var tfG,B3;tfG=window.location.hostname.split(".").slice(-2).join(".");_.FC=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var m=_.E8("LOCATION_PLAYABILITY_TOKEN");_.E8("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=F$S(this))&&(m=this.localStorage.get("yt-location-playability-token"));m&&(this.locationPlayabilityToken=m,this.mostRecentPosition=void 0)};
_.FC.getInstance=function(){B3=_.Cn("yt.clientLocationService.instance");B3||(B3=new _.FC,_.yj("yt.clientLocationService.instance",B3));return B3};
_.FC.prototype.setLocationOnInnerTubeContext=function(m){m.client||(m.client={});if(this.mostRecentPosition)m.client.locationInfo||(m.client.locationInfo={}),m.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),m.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),m.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),m.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)m.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.FC.prototype.handleResponse=function(m){var G;m=(G=m.responseContext)==null?void 0:G.locationPlayabilityToken;m!==void 0&&(this.locationPlayabilityToken=m,this.mostRecentPosition=void 0,_.E8("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=F$S(this))&&this.localStorage.set("yt-location-playability-token",m,15552E3):_.AH("YT_CL",JSON.stringify({loctok:m}),15552E3,tfG,!0))};
var F$S=function(m){return m.localStorage===void 0?new _.bs("yt-client-location"):m.localStorage};
_.FC.prototype.clearLocationPlayabilityToken=function(m){m==="TVHTML5"?(this.localStorage=F$S(this))&&this.localStorage.remove("yt-location-playability-token"):_.WdV("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.FC.prototype.getCurrentPositionFromGeolocation=function(){var m=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("bg"));var G=!1,K=1E4;_.E8("INNERTUBE_CLIENT_NAME")==="MWEB"&&(G=!0,K=15E3);return new Promise(function(W,L){navigator.geolocation.getCurrentPosition(function(A){m.mostRecentPosition=A;W(A)},function(A){L(A)},{enableHighAccuracy:G,
maximumAge:0,timeout:K})})};
_.FC.prototype.createUnpluggedLocationInfo=function(m){var G={};m=m.coords;if(m==null?0:m.latitude)G.latitudeE7=Math.floor(m.latitude*1E7);if(m==null?0:m.longitude)G.longitudeE7=Math.floor(m.longitude*1E7);if(m==null?0:m.accuracy)G.locationRadiusMeters=Math.round(m.accuracy);return G};
_.FC.prototype.createLocationInfo=function(m){var G={};m=m.coords;if(m==null?0:m.latitude)G.latitudeE7=Math.floor(m.latitude*1E7);if(m==null?0:m.longitude)G.longitudeE7=Math.floor(m.longitude*1E7);return G};var QHR=function(m,G){var K=hj();m||(m="unknown");G||(G="unknown");m="MAIN_APP_WEB_PAGE_TYPE_"+m.toUpperCase();m in xVi||(m="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");G="MAIN_APP_WEB_REQUEST_TYPE_"+G.toUpperCase();G in XBo||(G="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Xw(K,{mainAppWeb:{pageType:m,requestType:G,isShellLoad:_.IP("IS_SHELL_LOAD",!1)}})},a9K={start:function(){_.Xw(pB6(),{mainAppWeb:_.at()})},
success:function(){_.Sq(pB6(),"SUCCESS")},
failure:function(){_.Sq(pB6(),"FAILURE")},
cancelled:function(){_.Sq(pB6(),"CANCELLED")}};var oLF,nLi,BYd;oLF=_.nY(["/sw.js"]);nLi=_.nY(["/sw.js?0"]);_.bOF=_.vE(oLF);BYd=_.vE(nLi);var vLC=function(){var m=Error.apply(this,arguments);this.message=m.message;"stack"in m&&(this.stack=m.stack)};
_.n(vLC,Error);_.b0.prototype.load=function(m){this.megabloxUrl_=_.E8("YPC_MB_URL");_.pJ(this.megabloxUrl_,(0,_.AO)(function(){m&&m()},this))};
_.Uw9=function(m,G,K,W,L,A,O,c,u,h,J){_.TYV(u);m.load((0,_.AO)(function(){try{var N=A?A:_.E8("HL"),D=_.E8("SESSION_INDEX");_.Kjd("client",function(){rg0("59",{helpCenterPath:"/youtube",locale:N,window:window}).JSC$10282_loadChatSupport({authuser:String(D)})})}catch(t){throw ot(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),L&&L(t),_.am(t),t;
}$uR(this,G,K,W,L,A,O,c,u,h,J)},m))};
_.b0.prototype.openFixFlowDialog=function(m,G,K,W){this.load((0,_.AO)(function(){try{sHR(this,_.Cn("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(m).withIntegratorCallback(G).load(K,W)}catch(L){throw _.am(L),L;}},this))};
var sHR=function(m,G,K,W){var L=G.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.F("enable_window_constrained_buy_flow_dialog")&&(L=L.usingPopupStyle(_.Cn("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));W&&(L=L.usingCloseCallback(W));G.bootstrap.fromPaymentsUrl(m.megabloxUrl_);m=G.bootstrap.asMashupMode(L);K=K?K:_.E8("HL");m.usingGaiaIndex(_.E8("SESSION_INDEX")).usingLocale(K).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.F("enable_google_payments_buyflow_material2_style_web")?
m.usingStyle(":m2;pc=#444;ac=#065fd4"):m.usingStyle(":md;pc=#444;ac=#065fd4");return m},$uR=function(m,G,K,W,L,A,O,c,u,h,J){try{var N=_.Cn("payments.business.integration");
if(!N)throw new vLC("payments.business.integration is undefined");var D=N.standaloneContextAuthId.forUserId(),t=sHR(m,N,A,function(){i3J(!1);c&&c()});
O&&t.usingServerAnalyticsEventHandler(O);var a=t.inStandaloneContext(D).buyFlow(function(v){if(v&&(!v.integratorData||v.integratorData===""||v.error))if(v.error!=null)if(String(v.error)==="-1")_.mrf(u);else{var I=String(v.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";ot(10,J,I,v.debugCode);_.nr(I,u,v.debugCode);I=new _.cw("PAYMENT_ERROR_MESSAGE::"+v.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+v.internalErrorDetails);
_.am(I)}else ot(10,J,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.nr("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",u,"EMPTY_INTEGRATOR_DATA"),_.am(Error("dg"));K&&(i3J(!1),K(v))}).withEncryptedParameters(G);
h&&a.withClientParameters(bl2(_.fFd(h)));a.load(function(){ot(24,J);_.ud("ttc",void 0,"commerce_transaction");OG("commerce_transaction");W&&(W(),i3J(!0))},function(v){if(v==null?0:v.debugCode)var I=v==null?void 0:v.debugCode;
else if(!v||(v==null?0:v.debugCode))I="EMPTY_LOAD_FAILURE_ERROR",_.am(Error(I));else{I="EMPTY_LOAD_FAILURE_DEBUG_CODE";var Z=new _.cw("LOAD_FAILURE:"+v.message," DEBUG_CODE:"+I);_.am(Z)}ot(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I);_.nr("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",u,I);_.am(v);L&&L(v)})}catch(v){throw v instanceof vLC&&(ot(10,J,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),L&&L(v)),_.am(v),v;
}};var q$k;q$k=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Xav=function(m,G){G=G===void 0?!1:G;m=q$k.test(m)?_.PN(m):null;!G&&window.payments||!m?(m=_.Qo(),G=m.promise,m.resolve()):G=_.RmX(m,{attributes:{"data-payments-main":"",id:"payment-lib"}});return G};var ELR;ELR=_.nY(["//www.googletagmanager.com/gtm.js?id=",""]);_.MQ=function(m,G){_.Hp(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:G}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.E8("GL")}),G=_.M7("SCRIPT"),G.async=!0,_.Jt(G,_.vE(ELR,m)),G.id="gtm",m=document.getElementsByTagName("script"),m.length==0?document.head.appendChild(G):(m=m[0],m.parentNode.insertBefore(G,m)))};
_.TX=function(m){if(m=JSON.parse(m))window.dataLayer=window.dataLayer||[],window.dataLayer.push(m)};var HOK,I9k;HOK=_.nY(["https://clients2.google.com/gr/gr_sync.js"]);_.fKd=function(){};
_.fKd.prototype.init=function(){if(I9k()){var m=_.Qo();m.resolve();return m.promise}return _.RmX(_.vE(HOK)).then(function(){if(!I9k())throw Error("eg");},function(){throw Error("fg");
})};
_.xwG=function(){if(!I9k())return"";var m=window.google.gr;m.init({async:{schedule:"sync"},merchantId:"youtube"});m.start();m=m.finish();return m==null?"":m};
I9k=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.d=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.n(_.d,PolymerFakeBaseClassWithoutHtml);_.l0=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.n(_.l0,PolymerFakeBaseClassWithoutHtml);var GEG=window.ShadyDOM;var PPF,Z3V,eZs,fNG,Xhv,S3F,mh,Cr;PPF=_.F("enable_shadydom_free_scoped_query_methods");Z3V=_.F("enable_shadydom_free_scoped_node_methods");eZs=_.F("enable_shadydom_free_scoped_readonly_properties_batch_one");fNG=_.F("enable_shadydom_free_parent_node");Xhv=_.F("enable_shadydom_free_children");S3F=_.F("enable_shadydom_free_last_child");mh=window.ShadyDOM;_.yL=mh&&mh.noPatch&&mh.wrap?mh.wrap:mh?function(m){return mh.patch(m)}:function(m){return m};
Cr=function(m){if(m instanceof ShadowRoot)this.host=(0,_.yL)(m.host),this.root=m;else if(m.$$){this.host=(0,_.yL)(m);var G;this.root=(G=m.root)!=null?G:this.host}else if(m.polymerController){this.host=(0,_.yL)(m);var K;this.root=(K=this.host.shadowRoot)!=null?K:this.host}else this.root=this.host=(0,_.yL)(m)};
drG();y8d();RZP();Urd();xrs();var jHi={querySelector:function(m,G){G=phs(G,EM(m));return _.F("sunnydom_native_scoped_query_selectors")?WLd(m,G):WLd(_.He(m),G)},
querySelectorAll:function(m,G){G=phs(G,EM(m));return _.F("sunnydom_native_scoped_query_selectors")?Array.from(LLG(m,G)):LLG(_.He(m),G)}},kJG={appendChild:function(m,G){var K=EM(m),W=_.qg(G);
return _.CPd(_.He(m),K?_.jb(G,K,W):G)},
cloneNode:function(m,G){var K=_.qg(m);m=_.He(m);G=sM(m).prototype.cloneNode.call(m,G);return K?kC(G,K):G},
contains:function(m,G){var K=EM(m),W=_.qg(G);return K!==W?!1:VEG(m,G)},
insertBefore:function(m,G,K){var W=EM(m),L=_.qg(G);m=_.He(m);G=W?_.jb(G,W,L):G;return sM(m).prototype.insertBefore.call(m,G,K)},
removeChild:function(m,G){var K=EM(m);m=_.He(m);G=K?kC(G,K):G;return sM(m).prototype.removeChild.call(m,G)},
replaceChild:function(m,G,K){var W=EM(m),L=_.qg(G);G=W?_.jb(G,W,L):L?kC(G,L):G;K=W?kC(K,W):K;m=_.He(m);return sM(m).prototype.replaceChild.call(m,G,K)},
getRootNode:function(m,G){G=G===void 0?{composed:!0}:G;var K;if(((K=G)!=null?K:{}).composed)m=kEV(m);else{G=m;for(m=who(m);m;)G=m,m=Nwf(m);m=G}return m}},lN6=eZs?{firstChild:sdV,
nextSibling:b3G,previousSibling:$rG,firstElementChild:q3J,lastElementChild:H3M,nextElementSibling:nFv,previousElementSibling:vFG,childNodes:INv}:{};fNG&&(lN6.parentNode=oFJ);Xhv&&(lN6.children=jd6);S3F&&(lN6.lastChild=EF9);PPF&&zZf(jHi);Z3V&&zZf(kJG);BwM();var MEd=function(m){this.node=m instanceof ShadowRoot?m.host:m};
Twd();mOs();var KTd=new WeakMap;var LT9=Symbol("Dd");var chV=new Set(["tap","track","down","up"]),YcF=_.F("pbcm_fi_query_decorators");var ip=function(){return _.l0.apply(this,arguments)||this};
_.n(ip,_.l0);_.w=ip.prototype;_.w.getState=function(){return this.store.getState()};
_.w.dispatch=function(m){this.store.dispatch(m)};
_.w.beforeRegister=function(){if(this&&typeof this==="object"){var m;var G=!!this.useSignals||!((m=this.polymerController)==null||!m.useSignals)}else G=!1;if(!G&&this.properties)for(G=_.g(Object.keys(this.properties)),m=G.next();!m.done;m=G.next()){var K=m.value;m=this.properties[K];if(m.selector){if(m.computed)throw Error("mg");K=["reduxPropertiesRecomputeTrigger",'"'+K+'"'].concat(_.Bz(m.selectorArgs||[])).join(",");m.computed="recomputeReduxSelector("+K+")"}}};
_.w.attached=function(){var m=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){m.reduxPropertiesRecomputeTrigger++}));
_.F("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.w.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.w.recomputeReduxSelector=function(m,G){var K=_.mb.apply(2,arguments),W=this.properties[G].selector;if(!W)throw Error("kg`"+G);return W.apply(null,[this.store.getState()].concat(_.Bz(K)))};
_.w.select=function(m){var G=_.mb.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return m.apply(null,[this.store.getState()].concat(_.Bz(G)))};
_.e_.Object.defineProperties(ip.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("lg");}}});
ip.prototype.recomputeReduxSelector=ip.prototype.recomputeReduxSelector;_.x([_.V(),_.S("design:type",Number)],ip.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.x([_.Be()],ip);var Gt=[],pfM={},OQ=function(){return xN.apply(this,arguments)||this};
_.n(OQ,xN);OQ.prototype._addPropertyEffect=function(m,G,K){if(G==="__observeEffects"&&K){var W,L=(W=K.info.method)!=null?W:K.info.methodName;if(L){var A=this[L];this[L]=function(){Gt.push(L);try{A==null||A.apply(this,arguments)}finally{Gt.pop()}}}}_.B0._addPropertyEffect.apply(this,[m,
G,K])};
OQ.prototype._setPendingProperty=function(m,G,K){if(Gt.length){var W=Gt[Gt.length-1],L;(L=pfM[this.is])!=null&&L.has(W)||(Jhd(this.is,W),_.Fx("polymerPropertyChangedInObserver",{componentName:this.is,observerName:W}))}return _.B0._setPendingProperty.apply(this,[m,G,K])};
_.x([aSG()],OQ);var N2v=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),tuF,mg={};_.F("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=mg);var KD=function(){return _.l0.apply(this,arguments)||this};
_.n(KD,_.l0);KD.prototype._setUnmanagedPropertyToNode=function(m,G,K){m.loggingStatus&&(m.loggingStatus.isDeclarativeExternal=!0);if(K!==m[G]||typeof K==="object")m[G]=K;m.is&&m.polymerController&&m.polymerController!==m&&i1(m.is,G,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");m.loggingStatus&&(m.loggingStatus.isDeclarativeExternal=!1)};
_.x([_.Be()],KD);DOd()&&(qk.prototype._setUnmanagedPropertyToNode=(new KD)._setUnmanagedPropertyToNode);_.j4J={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(m){},set polymerController(m){}}]};var gT=function(){var m=xN.apply(this,arguments)||this;m.json=function(){};
return m};
_.n(gT,xN);gT.prototype.equals=function(m,G){return m===G};
gT.prototype.isEmpty=function(m){var G;(G=!m)||(G=_.XP(m)&&m.length===0);return G};
_.x([aSG()],gT);var Ci4=function(m){m=RrV(m);O4.call(this,m)};
_.n(Ci4,O4);Ci4.prototype.addProvider=function(m){m=m.key?m:RrV([m])[0];var G=this.keyIdToIndex.get(m.key.id);if(G){if(n$G(m,this.providers[G]))throw Error("ng`"+m.key.displayName);}else O4.prototype.addProvider.call(this,m)};
var Vfi=new Ci4([]);var ZOP=!1;var E$G={};ZOP||(qco(),ZOP=!0);
E$G.InjectBehavior={initializeInjection:function(){var m=this.provide;try{if((m=m!=null?m:[])&&m.length>0)for(var G=RrV(m),K=_.g(G),W=K.next();!W.done;W=K.next())Vfi.addProvider(W.value);var L=new Set;buf(this.behaviors||[],L);G={};for(var A=_.g(L),O=A.next();!O.done;O=A.next()){var c=O.value;c.inject&&Object.assign(G,c.inject)}this.inject&&Object.assign(G,this.inject);for(var u=_.g(Object.keys(G)),h=u.next();!h.done;h=u.next()){var J=h.value,N=G[J];try{this[J]=Vfi.resolve(N)}catch(D){throw D;}}}catch(D){throw Error(D.message);
}}};var Iyd;var kmf=/\bclass\b/.test(function(){}.toString()),Zus=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var duS=function(m){this.wasDefined=!0;Array.isArray(m)||m instanceof Array?(this.JSC$13822_getImpl=m[0],this.JSC$13822_setImpl=m[1]):this.JSC$13822_getImpl=m};
_.w=duS.prototype;_.w.getWithPath=function(m){return yhV(this.JSC$13822_getImpl(),m)};
_.w.setWithPath=function(m,G){var K=this;if(m.length)throw Error("og");if(!this.JSC$13822_setImpl)throw Error("pg");J_(function(){K.JSC$13822_setImpl(G)})};
_.w.notifyPath=function(){throw Error("qg");};
_.w.notifySplices=function(){throw Error("rg");};
_.w.getChangeRecordSignal=function(m,G){var K=this;if(m.length)throw Error("sg");return function(){var W=K.getWithPath(m);return{path:G!=null?G:"",base:W,value:W}}};
_.w.getSplicesSignal=function(){throw Error("tg");};
_.w.getPathMutationSignal=function(){throw Error("ug");};
_.w.pop=function(){throw Error("vg");};
_.w.push=function(){throw Error("wg");};
_.w.splice=function(){throw Error("xg");};
_.w.unshift=function(){throw Error("yg");};var Ka=function(m){var G=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(m)||m instanceof Array?(this.JSC$13827_getImpl=m[0],this.JSC$13827_setImpl=m[1]):this.JSC$13827_getImpl=m;this.wasDefined=!1;_.w_(function(){G.wasDefined=G.JSC$13827_getImpl()!==void 0})};
Ka.prototype.getWithPath=function(m){return yhV(this.JSC$13827_getImpl(),m)};
Ka.prototype.setWithPath=function(m,G){var K=this;if(m[m.length-1]!=="*"&&m[m.length-1]!=="splices"){var W=_.w_(function(){return K.getWithPath([])});
if(m.length===0){if(!this.JSC$13827_setImpl)throw Error("zg");if(W===G)return;this.wasDefined||(this.wasDefined=G!==void 0);J_(function(){K.JSC$13827_setImpl(G)})}else{for(var L=0;L<m.length-1;L++){if(!W)return;
W=W[m[L]]}L=m[m.length-1];W&&(W[L]=G);this.wasDefined||(this.wasDefined=m.length>1||G!==void 0)}PiP(this,m,{pathComponents:m,value:G})}};
Ka.prototype.notifyPath=function(m,G){m.length===0?G&&this.setWithPath(m,G.value):PiP(this,m,{pathComponents:m,value:G==null?void 0:G.value,fallbackWhenUndefined:G==null?void 0:G.value})};
var PiP=function(m,G,K,W){if(m.setMutationSignal){var L=++m.mutationIndex,A=[m.observedPath],O=m.observedPath,c;G.length===0&&(c=O);for(var u=0;u<G.length;u++){var h=O.subPaths[G[u]];if(!h)break;A.push(h);O=h;u===G.length-1&&(c=h)}for(G=!1;A.length;)O=A.shift(),O.data={index:L,mutation:K,spliceMutationIndex:W},G||(G=O===c),G&&A.push.apply(A,_.Bz(Object.values(O.subPaths)));J_(function(){m.setMutationSignal(L)})}};
Ka.prototype.notifySplices=function(m,G){var K=this,W=_.w_(function(){return K.getWithPath(m)}),L=[].concat(_.Bz(m),["splices"]);
PiP(this,L,{pathComponents:L,value:{indexSplices:G}});if(W==null?0:W.length)G=this.mutationIndex,L=[].concat(_.Bz(m),["length"]),PiP(this,L,{pathComponents:L,value:W.length},G)};
var y7i=function(m,G,K,W,L,A){m.notifySplices(K,[{index:W,addedCount:L,removed:A,object:G,type:"splice"}])},e$S=function(m,G){m=m.observedPath;
for(var K=0;K<G.length;K++){var W=G[K],L=m.subPaths[W];L||(L={pathComponents:G.slice(0,K+1),subPaths:{}},m.subPaths[W]=L);m=L}},xuG=function(m,G,K){e$S(m,G);
if(!m.getMutationSignal){var W=_.g(_.g_(m.mutationIndex,void 0,"sNBMCd"));m.getMutationSignal=W.next().value;m.setMutationSignal=W.next().value}var L=m.getMutationSignal;return _.pT(function(){L();return K(f9i(m,G))},void 0,"zvsXEd")};
Ka.prototype.getChangeRecordSignal=function(m,G){var K=this,W=this.mutationIndex,L;return xuG(this,m,function(A){if(A&&A.index>W){var O=A.mutation;W=A.index;L=void 0}A=_.w_(function(){return K.getWithPath(m)});
if(O){var c=O.pathComponents[O.pathComponents.length-1],u=[].concat(_.Bz(O.pathComponents));if(c==="splices"||c==="length")return{base:A,path:(G?[G].concat(_.Bz(u)):u).join("."),value:O.value};var h=m.length>u.length?m:u,J;return{base:A!=null?A:O.fallbackWhenUndefined,path:(G?[G].concat(_.Bz(h)):h).join("."),value:(J=_.w_(function(){return K.getWithPath(h)}))!=null?J:O.fallbackWhenUndefined}}L||(L={base:A,
path:(G?[G].concat(_.Bz(m)):m).join("."),value:A});return L})};
Ka.prototype.getSplicesSignal=function(m){var G=this.mutationIndex,K;return xuG(this,m,function(W){if(W&&W.index>G&&W.spliceMutationIndex!==G){var L=W.mutation;G=W.index;K=void 0}return L&&L.pathComponents[L.pathComponents.length-1]==="splices"?K=W=L.value:K})};
Ka.prototype.getPathMutationSignal=function(m){var G=this;e$S(this,m);if(!this.getMutationSignal){var K=_.g(_.g_(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=K.next().value;this.setMutationSignal=K.next().value}var W=this.getMutationSignal,L=this.mutationIndex,A;return _.pT(function(){W();var O=f9i(G,m);if(O&&O.index>L&&O.mutation&&eYd(O.mutation.pathComponents,m)){var c=O.mutation;L=O.index}if(!A||L!==A.index){var u,h;O=(h=_.w_(function(){return G.getWithPath(m)}))!=null?h:(u=c)==null?
void 0:u.fallbackWhenUndefined;
A={index:L,value:O}}return A},void 0,"RXYC9b")};
var f9i=function(m,G){m=m.observedPath;G=_.g(G);for(var K=G.next();!K.done;K=G.next())m=m.subPaths[K.value];return m.data};
Ka.prototype.pop=function(m){var G=this,K=_.w_(function(){return G.getWithPath(m)});
if(!(K instanceof Array))throw Error("Ag");var W=K.length>0,L=K.pop();W&&y7i(this,K,m,K.length,0,[L]);return L};
Ka.prototype.push=function(m){var G=_.mb.apply(1,arguments),K=this,W=_.w_(function(){return K.getWithPath(m)});
if(!(W instanceof Array))throw Error("Bg");var L=W.length,A=W.push.apply(W,_.Bz(G));G.length&&y7i(this,W,m,L,G.length,[]);return A};
Ka.prototype.splice=function(m,G,K){var W=_.mb.apply(3,arguments),L=this,A=_.w_(function(){return L.getWithPath(m)});
if(!(A instanceof Array))throw Error("Cg");G<0?G=A.length-Math.floor(-G):G&&(G=Math.floor(G));var O=A.splice.apply(A,[G,K].concat(_.Bz(W)));(W.length||O.length)&&y7i(this,A,m,G,W.length,O);return O};
Ka.prototype.unshift=function(m){var G=_.mb.apply(1,arguments),K=this,W=_.w_(function(){return K.getWithPath(m)});
if(!(W instanceof Array))throw Error("Dg");var L=W.unshift.apply(W,_.Bz(G));G.length&&y7i(this,W,m,0,G.length,[]);return L};var Wq=function(m,G,K){this.model=m;this.unknownSignalResolver=G;this.options=K;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];G=_.g(B2f());m=G.next().value;G=G.next().value;this.owner=m;this.disposeImpl=G};
Wq.prototype.dispose=function(){if(!this.isDisposed){for(var m=_.g(this.childSignalProxies),G=m.next();!G.done;G=m.next())G.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var Xy0=function(m,G){m=SU(m.owner);try{G()}finally{SU(m)}};
Wq.prototype.effect=function(m){Xy0(this,function(){_.v4(m,"j")})};
var S$R=function(m,G){m.options!=null||(m.options={});var K;(K=m.options).immutableProps!=null||(K.immutableProps=new Set);m.options.immutableProps.add(G)},a$d=function(m,G){G=""+G;
R$F(m,G);var K,W;if((K=m.options)==null?0:(W=K.immutableProps)==null?0:W.has(G))return!0;var L;if((L=m.model.__signalCache)==null?0:L.has(G))K=m.model.__signalCache.get(G),Array.isArray(K)&&S$R(m,G);var A,O,c;return(c=(A=m.options)==null?void 0:(O=A.immutableProps)==null?void 0:O.has(G))!=null?c:!1},UuR=function(m,G){var K;
m.unknownSignalResolver&&(K=m.unknownSignalResolver(G));var W,L;((W=m.options)==null?0:(L=W.immutableProps)==null?0:L.has(G))?K!=null||(K=new duS(_.g_(m.model[G],void 0,"By5iP"))):K!=null||(K=new Ka(_.g_(m.model[G],void 0,"CXghNc")));var A=m.model.hostElement;Object.defineProperty(m.model,G,{get:function(){Q4d(A,G);return K.getWithPath([])},
set:function(O){Gg(A,G);m.setWithPath([G],O)},
configurable:!0});return K},R$F=function(m,G){var K,W,L;
((K=m.model.__signalCache)==null||!K.has(G))&&((W=m.options)==null?0:(L=W.externalSignalProps)==null?0:L.has(G))&&m.model[G]},h9=function(m,G){G=""+G;
var K=m.signalCache[G];if(K!==void 0)return K;K=!1;R$F(m,G);var W;if((W=m.model.__signalCache)==null?0:W.has(G))if(K=m.model.__signalCache.get(G),Array.isArray(K))K=!0,S$R(m,G);else return m.signalCache[G]=m.model.__signalCache.get(G).signal,m.signalCache[G];var L,A;W=(A=(L=m.options)==null?void 0:L.reactivityMode)!=null?A:0;var O,c;if(!((O=m.options)==null?0:(c=O.reactiveProps)==null?0:c.has(G))&&!K&&W===1)throw Error("Eg`"+G);L=K?z$C(m,G):UuR(m,G);return m.signalCache[G]=L},z$C=function(m,G){var K=
Object.getOwnPropertyDescriptor(m.model.constructor.prototype,G),W=function(){return m.model[G]};
return new duS(K&&K.get&&!K.set?W:[W,function(L){m.model[G]=L}])};
Wq.prototype.getWithPath=function(m){var G=_.g(m);m=G.next().value;G=Pg(G);Q4d(this.model.hostElement,""+m);return h9(this,m).getWithPath(G)};
Wq.prototype.setWithPath=function(m,G){if(m.length){Gg(this.model.hostElement,m.join("."));var K=_.g(m);m=K.next().value;K=Pg(K);h9(this,m).setWithPath(K,G)}};
Wq.prototype.getPathMutationSignal=function(m){var G=_.g(m);m=G.next().value;G=Pg(G);return h9(this,m).getPathMutationSignal(G)};
Wq.prototype.notifyPath=function(m,G){var K=_.g(m);m=K.next().value;K=Pg(K);h9(this,m).notifyPath(K,G)};
var l9G=function(m,G){if(G.type==="literal")return function(){return{rootWasDefined:!0,value:G.value}};
var K=rT(G.path),W=_.g(K),L=W.next().value;W=Pg(W);var A,O;if(G.type==="path"&&(K.length===1||((A=m.options)==null?0:(O=A.immutableProps)==null?0:O.has(L))))return function(){var N=m.getWithPath(K.slice(0,1));N=yhV(N,K.slice(1));return{rootWasDefined:h9(m,K[0]).wasDefined,value:N}};
var c=h9(m,L);if(G.type==="path"){var u=c.getPathMutationSignal(W);return function(){var N,D=(N=u())==null?void 0:N.value;return{rootWasDefined:c.wasDefined,value:D}}}if(G.type==="splices"){var h=c.getSplicesSignal(W);
return function(){var N=h();return{rootWasDefined:c.wasDefined,value:N}}}var J=c.getChangeRecordSignal(W,""+L);
return function(){var N=J();return{rootWasDefined:c.wasDefined,value:N}}},UOV=function(m,G,K){var W=K.map(function(c){return l9G(m,c)}),L=K.length===0,A=[],O=K.length!==1||K[0].type!=="path"?!1:!0;
m.effect(function(){for(var c=W.length,u=[],h=!!A.length,J=0;J<c;J++){var N=W[J](),D=N.rootWasDefined;N=N.value;L||(L=D);u[J]=N;O&&(u[J+c]=h?A[J]:u[J],A[J]=N)}L&&H4(m.owner,function(){return void G.apply(null,_.Bz(u))})})},fyo=function(m,G,K,W,L){var A=h9(m,G);
L!==void 0&&A.setWithPath([],L);UOV(m,function(){var O=_.mb.apply(0,arguments);Gg(m.model.hostElement,G,!0);A.setWithPath([],K.apply(null,_.Bz(O)))},W)};
Wq.prototype.arrayPush=function(m){var G=_.mb.apply(1,arguments),K=_.g(m),W=K.next().value;K=Pg(K);W=h9(this,W);return W.push.apply(W,[K].concat(_.Bz(G)))};
Wq.prototype.arraySplice=function(m,G,K){var W=_.mb.apply(3,arguments),L=_.g(m),A=L.next().value;L=Pg(L);A=h9(this,A);return A.splice.apply(A,[L,G,K].concat(_.Bz(W)))};
Wq.prototype.arrayUnshift=function(m){var G=_.mb.apply(1,arguments),K=_.g(m),W=K.next().value;K=Pg(K);W=h9(this,W);return W.unshift.apply(W,[K].concat(_.Bz(G)))};
Wq.prototype.notifySplices=function(m,G){var K=_.g(m);m=K.next().value;K=Pg(K);h9(this,m).notifySplices(K,G)};var BV0=!0,MfG=!1,oLM=!1,TVR=!1,mHP=0;TVR=!1;mHP=0;BV0=!0;MfG=oLM=!1;var KSF=/([^\s]+?)\(([\s\S]*)\)/,mbG=/\.([^.]+)$/,LSF=/\\,/g,MuM=/&comma;/g,T2d=/\\(.)/g,WSM=[],iM6={"*":"wildcard",splices:"splices"};var p96=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"),YfV=/[A-Z]/,iwC=["class","hidden","id","on-dom-change"],NAG=new Set([].concat(_.Bz(iwC),
["if","notify-dom-change","restamp"])),Dbf=new Set([].concat(_.Bz(iwC),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),tR9=new Set(["restamp"]);var Nkv=new Set(["className","id"]);var nb6=Symbol(),HMs=window;var PoP=window;var RSM=0,f$d=0,pD=[],Sff=0,eSf=!1,X9o=document.createTextNode("");(new window.MutationObserver(xbf)).observe(X9o,{characterData:!0});var Nl=new Map,J9=0,G8R=function(m){this.mappedHandleId=m},zSG=function(m,G,K,W){this.mappedHandleId=m;
var L=this;this.mappedHandleId=m;this.callback=G;this.waitTime=K;this.schedulerPriority=W;this.handleId=_.Fu.addJob(function(){L.callback();Nl.delete(L.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.n(zSG,G8R);zSG.prototype.cancel=function(){_.Fu.cancelJob(this.handleId);Nl.delete(this.mappedHandleId)};
var l$o=function(m,G){this.mappedHandleId=m;var K=this;this.mappedHandleId=m;this.callback=G;this.handleId=Ubv(function(){K.callback();Nl.delete(K.mappedHandleId)})};
_.n(l$o,G8R);l$o.prototype.cancel=function(){var m=this.handleId-f$d;m<0||pD.length<=m||(pD[m]=null);Nl.delete(this.mappedHandleId)};var muM=function(){};
muM.prototype.cancel=function(){this.jobHandle!==void 0&&(BAo(this.jobHandle),this.jobHandle=void 0)};
muM.prototype.run=function(m,G,K){var W=this;this.cancel();this.callback=m;this.jobHandle=_.Dh(function(){m();W.callback=void 0},G,K)};
muM.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var MRs=new WeakMap;var KeF=n2(function(m){for(var G=m,K=0;K<3;K++)G=Object.getPrototypeOf(G);delete G.prototype.connectedCallback;var W=function(){return m.apply(this,arguments)||this};
_.n(W,m);W.prototype._attachDom=function(L){if(!L)return null;var A=(0,_.yL)(this.hostElement);A.attachShadow({mode:"open",shadyUpgradeFragment:L});A.shadowRoot.appendChild(L);return A.shadowRoot};
W.prototype._takeAttributes=function(){for(var L=this.hostElement.attributes,A=0;A<L.length;A++){var O=L[A],c=void 0,u=void 0;(u=(c=this).__attributeReaction)==null||u.call(c,O.name,null,O.value)}};
W.prototype._readyClients=function(){m.prototype._readyClients.call(this);this.root=this};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);m.prototype.connectedCallback.call(this)};
_.e_.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){return W.prototype._template}}});
return W}),WeP=n2(function(m){var G=function(){return m.apply(this,arguments)||this};
_.n(G,m);G.prototype.created=function(){if(this.__notifyEffects)for(var K=_.g(Object.values(this.__notifyEffects)),W=K.next();!W.done;W=K.next()){W=_.g(W.value);for(var L=W.next();!L.done;L=W.next())L.value.fn=W$f}if(this.__reflectEffects)for(K=_.g(Object.values(this.__reflectEffects)),W=K.next();!W.done;W=K.next())for(W=_.g(W.value),L=W.next();!L.done;L=W.next())L.value.fn=L$G};
G.prototype._addEventListenerToNode=function(K,W,L){K=Fj(K);av(K,W,L)||m.prototype._addEventListenerToNode.call(this,K,W,L)};
G.prototype._removeEventListenerFromNode=function(K,W,L){K=Fj(K);ov(K,W,L)||m.prototype._removeEventListenerFromNode.call(this,K,W,L)};
G.prototype._propertiesChanged=function(K,W,L){if(this.__dataToNotify&&this.__notifyEffects)for(var A=_.g(Object.keys(this.__dataToNotify)),O=A.next();!O.done;O=A.next()){O=O.value;var c=K$f(O);this.__notifyEffects[c]||delete this.__dataToNotify[O]}else this.__dataToNotify=null;m.prototype._propertiesChanged.call(this,K,W,L)};
G.prototype.fire=function(K,W,L){W=W===void 0?{}:W;var A;return _.Zw(Fj((A=L==null?void 0:L.node)!=null?A:this),K,W,L)};
G.prototype._ensureAttribute=function(K,W){var L=Fj(this);L.hasAttribute(K)||u1(L,W,K)};
G.prototype.isLightDescendant=function(K){var W=Fj(this);return Fj(W)!==K&&_.VL(W).contains(K)&&_.VL(W).getRootNode()===_.VL(K).getRootNode()};
return G});
_.XY.ready=function(){var m;((m=this.hostElement)!=null?m:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var G;((G=this.hostElement)!=null?G:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.mH._subscribeIronResize=function(m){var G;((G=m.hostElement)!=null?G:m).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.mH._unsubscribeIronResize=function(m){var G;((G=m.hostElement)!=null?G:m).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var gLJ=[Array,Boolean,Date,Number,Object,String],ao=function(m,G,K,W){this.polySiInfo=m;this.polySiParams=G;this.polySiContext=K;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;W||this instanceof HTMLElement&&(W=this);if(!W)throw Error("Lg");this.allowedProps=G.allowedProps;this.hostElement=W;this.is=m.is;this.upgradeDisabled=!!G.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");m=new Set(G.reactiveSchemas.filter(function(L){return L.type!==
"observe"}).map(function(L){return L.propertyKey}));
this.signalProxy=new Wq(this,void 0,{reactiveProps:m,reactivityMode:G.reactivityMode});this.__dataHasAccessor={};G=_.g(G.reactiveSchemas);for(m=G.next();!m.done;m=G.next())m=m.value,m.type==="signal"&&(this.__dataHasAccessor[m.propertyKey]=!0);this.upgradeDisabled||Le0(this)};
ao.prototype.getExtraMethodsToForward=function(){return[]};
var Le0=function(m){m.polySiContext.didRegister||(m.registered(),m.polySiContext.didRegister=!0);m.polySiContext.finalizedTemplate||(m.polySiContext.finalizedTemplate={},m.polySiParams.templateGetter&&(m.polySiContext.finalizedTemplate.processedTemplate=y0P(m.polySiParams.templateGetter,m.polySiParams.is)));AJi(m);var G=m.hostElement;G.loggingStatus!=null||(G.loggingStatus={});G.loggingStatus.isInitializing=!0;_.w_(function(){return void m.created()});
G.loggingStatus.isInitializing=!1;m.isPolySiElementConnected&&wCi(m)},wCi=function(m){m.didCallReady||(_.w_(function(){return void m.ready()}),m.didCallReady=!0);
m.isAttached=!0;m.attached()};
_.w=ao.prototype;_.w.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||wCi(this)};
_.w.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.w.attributeChangedCallback=function(m,G,K){if(this.upgradeDisabled)m==="disable-upgrade"&&K===null&&(this.upgradeDisabled=!1,Le0(this));else if(G!==K){var W=_.Sl(m),L=this.polySiContext.typesForSignals[W];if(L&&(!this.reflecting||_.F("polysi_attribute_changed_serializing_killswitch"))){switch(L){case Object:try{var A=JSON.parse(K)}catch(c){A=K}break;case Array:try{A=JSON.parse(K)}catch(c){A=null}break;case Date:A=isNaN(K)?String(K):Number(K);A=new Date(A);break;case Boolean:A=K!==null;break;case Number:A=
Number(K);break;default:A=K}this[W]=A}W=_.g(this.polySiParams.behaviors);for(L=W.next();!L.done;L=W.next())A=void 0,(A=L.value.attributeChanged)==null||A.call(this,m,G,K);var O;(O=this.attributeChanged)==null||O.call(this,m,G,K)}};
_.w.attributeChangedCallbackWrapper=function(m,G,K){this.attributeChangedCallback(m,G,K)};
_.w.setPropertiesFromInitialAttributeValues=function(){for(var m=0;m<this.hostElement.attributes.length;m++){var G=this.hostElement.attributes[m];(G.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(G.name))&&this.attributeChangedCallback(G.name,null,G.value)}};
_.w.created=function(){this.provide=this.polySiParams.provide;var m;(m=this.initializeInjection)==null||m.call(this);m=_.g(this.polySiParams.reactiveSchemas);for(var G=m.next();!G.done;G=m.next())G=G.value,G.type==="signal"&&(this.mutablePropNames.add(G.propertyKey),h9(this.signalProxy,G.propertyKey));wyP(this,this.polySiInfo,this.polySiParams.behaviors);m=_.g(this.polySiParams.reactiveSchemas);for(G=m.next();!G.done;G=m.next())G=G.value,G.type==="signal"&&G.value!==void 0&&(this.signalProxy.model[G.propertyKey]=
typeof G.value==="function"?G.value.call(this):G.value);if(this.polySiParams.signalProperties)for(m=_.g(this.polySiParams.signalProperties),G=m.next();!G.done;G=m.next()){G=G.value;var K=void 0;((K=this.__signalCache)==null?0:K.has(G))||(this.signalProxy.model[G]=void 0)}TVR||g9i(this);A76(this);m=_.g(this.polySiParams.behaviors);for(G=m.next();!G.done;G=m.next())K=void 0,(K=G.value.created)==null||K.call(this);var W;(W=this.polySiInfo.created)==null||W.call(this)};
_.w.registered=function(){var m=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var G=Object.getPrototypeOf(this);G.addReactiveSchema=function(c){m.polySiParams.reactiveSchemas.push(c)};
for(var K=_.g(this.polySiParams.behaviors),W=K.next();!W.done;W=K.next()){var L=void 0;(L=W.value.beforeRegister)==null||L.call(G)}var A;(A=this.polySiInfo.beforeRegister)==null||A.call(G);G.addReactiveSchema=c7d;K=_.g(this.polySiParams.behaviors);for(W=K.next();!W.done;W=K.next())L=void 0,(L=W.value.registered)==null||L.call(G);var O;(O=this.polySiInfo.registered)==null||O.call(G)};
_.w.ready=function(){var m;(m=this.beforeReady)==null||m.call(this);TVR&&g9i(this);var G;if(m=(G=this.polySiContext.finalizedTemplate)==null?void 0:G.processedTemplate){m=dbv(m.template,m.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:m.hasInsertionPoint,thisCtx:this});G=m.nodesById;m=m.root;var K=this.hostElement;var W=W===void 0?!1:W;K=(0,_.yL)(K);if(!K.attachShadow)throw Error("Jd");if(!K.shadowRoot||W)K.attachShadow({mode:"open",shadyUpgradeFragment:m}),K.shadowRoot.appendChild(m);
this.root=K.shadowRoot;this.$=G}OwK(this);W=_.g(this.polySiParams.behaviors);for(G=W.next();!G.done;G=W.next())m=void 0,(m=G.value.ready)==null||m.call(this);var L;(L=this.polySiInfo.ready)==null||L.call(this)};
_.w.attached=function(){for(var m=_.g(this.polySiParams.behaviors),G=m.next();!G.done;G=m.next()){var K=void 0;(K=G.value.attached)==null||K.call(this)}var W;(W=this.polySiInfo.attached)==null||W.call(this)};
_.w.detached=function(){for(var m=_.g(this.polySiParams.behaviors),G=m.next();!G.done;G=m.next()){var K=void 0;(K=G.value.detached)==null||K.call(this)}var W;(W=this.polySiInfo.detached)==null||W.call(this)};
var AJi=function(m){for(var G=_.g(m.polySiParams.behaviors),K=G.next();!K.done;K=G.next())if(K=K.value,K.listeners)for(var W in K.listeners)ZMf(m,m.hostElement,W,K.listeners[W]);if(m.polySiInfo.listeners)for(var L in m.polySiInfo.listeners)ZMf(m,m.hostElement,L,m.polySiInfo.listeners[L])},ZMf=function(m,G,K,W,L){m=P3F(m,W,L);
av(G,K,m)||G.addEventListener(K,m);return m},g9i=function(m){for(var G=_.g(m.polySiParams.reactiveSchemas),K=G.next();!K.done;K=G.next())K=K.value,K.type==="compute"||K.type==="computeWithMethod"?xOV(m.signalProxy,K,m):K.type==="redux"?RYd(m.signalProxy,K,m.store):K.type==="signal"&&K.readOnly&&Scs(m.signalProxy,K)},OwK=function(m){for(var G=_.g(m.polySiParams.reactiveSchemas),K=G.next(),W={};!K.done;W={schema$jscomp$12:void 0},K=G.next())W.schema$jscomp$12=K.value,W.schema$jscomp$12.type==="notify"?
zYV(m.signalProxy,W.schema$jscomp$12,m.hostElement):W.schema$jscomp$12.type==="observe"?lyG(m.signalProxy,W.schema$jscomp$12,m):W.schema$jscomp$12.type==="reflect"&&m.signalProxy.effect(function(A){return function(){var O=m.signalProxy.getWithPath([A.schema$jscomp$12.propertyKey]);
m.reflecting=!0;w9f(m.hostElement,A.schema$jscomp$12.propertyKey,O,!0);m.reflecting=!1}}(W));
if(m.reflectedAttributes)for(G=_.g(Object.entries(m.reflectedAttributes)),W=G.next(),K={};!W.done;K={key$jscomp$940:void 0,value$jscomp$10332:void 0},W=G.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;K.key$jscomp$940=W;K.value$jscomp$10332=L;m.signalProxy.effect(function(A){return function(){m.reflecting=!0;w9f(m.hostElement,A.key$jscomp$940,(0,A.value$jscomp$10332)(),!0);m.reflecting=!1}}(K))}};
_.w=ao.prototype;_.w._setPendingProperty=function(m,G){this.set(m,G);return!1};
_.w._enableProperties=function(){};
_.w._setPendingPropertyOrPath=function(m,G){this.notifyPath(m,G);return!1};
_.w._addPropertyEffect=function(){};
_.w._stampTemplate=function(){throw Error("Mg");};
_.w.fire=function(m,G,K){G=G===void 0?{}:G;K=K===void 0?{}:K;var W,L,A={bubbles:(W=K.bubbles)!=null?W:!0,cancelable:!!K.cancelable,composed:(L=K.composed)!=null?L:!0},O;return _.Zw(Y$M((O=K.node)!=null?O:this.hostElement),m,G,A)};
_.w.get=function(m,G){var K=rT(m);return G?yhV(G,K):m==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(K)};
_.w.linkPaths=function(){};
_.w.listen=function(m,G,K){m=Y$M(m);this.boundListeners!=null||(this.boundListeners=new WeakMap);var W=this.boundListeners.get(m);W||(W={},this.boundListeners.set(m,W));var L=G+K;W[L]||(W[L]=ZMf(this,m,G,K))};
_.w.notifyPath=function(m,G){this.signalProxy.notifyPath(rT(m),arguments.length===2?{value:G}:void 0)};
_.w.canNotifyPath=function(m){return this.mutablePropNames.has(m)&&!a$d(this.signalProxy,m)};
_.w.notifySplices=function(m,G){this.signalProxy.notifySplices(rT(m),G)};
_.w.pop=function(m){var G=this.signalProxy;m=rT(m);var K=_.g(m);m=K.next().value;K=Pg(K);return h9(G,m).pop(K)};
_.w.push=function(m){var G=_.mb.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[rT(m)].concat(_.Bz(G)))};
_.w.set=function(m,G,K){if(K)throw Error("Ng");m==="hidden"?this.hostElement.hidden=!!G:this.signalProxy.setWithPath(rT(m),G)};
_.w.setProperties=function(m){m=_.g(Object.entries(m));for(var G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;this[G]=K}};
_.w.splice=function(m,G,K){var W=_.mb.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[rT(m),G,K].concat(_.Bz(W)))};
_.w.unlinkPaths=function(){};
_.w.unlisten=function(m,G,K){m=Y$M(m);if(this.boundListeners){var W=this.boundListeners.get(m);if(W){K=G+K;var L=W[K];L&&(ov(m,G,L)||m.removeEventListener(G,L),delete W[K])}}};
_.w.unshift=function(m){var G=_.mb.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[rT(m)].concat(_.Bz(G)))};
_.e_.Object.defineProperties(ao.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 a9d=[Array,Boolean,Date,Number,Object,String];var bOM=!1;var La=function(){var m=HTMLElement.apply(this,arguments)||this;m.restamp=!1;m.notifyDomChange=!1;m.JSC$13935_didCallConnected=!1;m.JSC$13935_renderDebouncer=null;m.disableTemplateUpdateSignalImpl=oo()?void 0:_.g_(!1,void 0,"kCcqO");var G;m.getDisableTemplateUpdate=(G=m.disableTemplateUpdateSignalImpl)==null?void 0:G[0];var K;m.setDisableTemplateUpdate=(K=m.disableTemplateUpdateSignalImpl)==null?void 0:K[1];return m};
_.n(La,HTMLElement);var cJ2=function(m){m.conditionSignalImpl!=null||(m.conditionSignalImpl=new Ka(_.g_(!1,void 0,"ahkyAc")));return m.conditionSignalImpl};
_.w=La.prototype;_.w.showHideChildren=function(m){Ylo(this,m,this.if)};
_.w.attributeChangedCallback=function(m,G,K){if(this.JSC$13935_didCallConnected)throw Error("Rg`"+m);m==="notify-dom-change"?this.notifyDomChange=K!==null:m==="restamp"&&(this.restamp=K!==null)};
_.w.debounceRender=function(){this.JSC$13935_renderDebouncer=_.C2(this.JSC$13935_renderDebouncer,bY,this.JSC$13935_renderImpl.bind(this));_.Vv(this.JSC$13935_renderDebouncer)};
_.w.disconnectedCallback=function(){var m=(0,_.yL)(this).parentNode;(!m||m.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in m&&!m.host)&&rJ4(this)};
_.w.connectedCallback=function(){var m=this;if(_.F("ps_dom_if_require_parent_signal_proxy_killswitch")||this.parentSignalProxy)this.JSC$13935_didCallConnected=!0,BV0?vLv():this.style.display="none",this.parentSignalProxy.isDisposed&&!_.F("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){cJ2(m).getWithPath([]);m.debounceRender()});
else{var G=(0,_.yL)(this).parentNode,K={parentNode:G==null?void 0:G.nodeName};G instanceof Element&&(K.parentClassName=G.className);_.nc(new _.cw("PsDomIf connected with undefined parentSignalProxy",K))}};
_.w.render=function(){_.yv()};
_.w.JSC$13935_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var m=this.if,G=!1;if(m){this.hasInstance()||(u7l(this),G=!0);a:{var K=(0,_.yL)(this).parentNode;if(this.hasInstance()){var W=this.instance.children;if((W==null?0:W.length)&&(0,_.yL)(this).previousSibling!==W[W.length-1])for(var L=0;L<W.length;L++)(0,_.yL)(K).insertBefore(W[L],this)}else{if(!K){K=!1;break a}hNl(this,K)}K=!0}if(!K)return}else this.restamp&&rJ4(this);Ylo(this,!1,m);m&&!G&&u7l(this);MfG&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.w.hasInstance=function(){return!!this.instance};
var hNl=function(m,G){var K=m.parentSignalProxy;if(oo()){var W=_.g(_.g_(!0,void 0,"QNXUce"));var L=W.next().value;W=W.next().value;K=m.parentSignalProxy}else{var A;var O=new Wq((A=pC4(m))!=null?A:{},function(u){var h=h9(m.parentSignalProxy,u).getChangeRecordSignal([]);u=_.g_(void 0,void 0,"mIYvwe");var J=new Ka(u);O.effect(function(){if(m.getDisableTemplateUpdate&&!m.getDisableTemplateUpdate()){var N=h();J.notifyPath(rT(N.path),{value:N.value})}});
return J});
m.parentSignalProxy.childSignalProxies.push(O);var c=K=O}K=dbv(m.templateInfo,m.templateInfo.nodeInfoList,K,{eventListenerHost:m.eventListenerHost,hasInsertionPoint:m.templateInfo.hasInsertionPoint,thisCtx:m.eventListenerHost,enabledSignal:oo()?L:void 0,getModel:function(){return pC4(m)}}).root;
m.instance={root:K,children:[],hidden:!1,signalProxy:c,getTemplateUpdatesEnabled:L,setTemplateUpdatesEnabled:W};c=_.g(K.childNodes);for(L=c.next();!L.done;L=c.next())m.instance.children.push(L.value);(0,_.yL)(G).insertBefore(m.instance.root,m)},pC4=function(m){if((m=m.parentSignalProxy.model)&&!m.hostElement){var G={},K;
for(K in m)m.hasOwnProperty(K)&&(G[K]=m[K]);return G}},rJ4=function(m){if(m.instance){var G=m.instance.children;
if(G.length){var K=(0,_.yL)(G[0]).parentNode;if(K){K=(0,_.yL)(K);for(var W=0;W<G.length;W++)K.removeChild(G[W])}}oo()?m.instance.setTemplateUpdatesEnabled(!1):m.instance.signalProxy.dispose();m.instance=void 0}},Ylo=function(m,G,K){G=G||!K;
m.instance&&m.instance.hidden!==G&&(m.instance.hidden=G,nLV(G,m.instance.children))},u7l=function(m){if(oo()){var G=m.instance;
G&&H4(m.parentSignalProxy.owner,function(){return!G.getTemplateUpdatesEnabled()})&&G.setTemplateUpdatesEnabled(!0)}else m.setDisableTemplateUpdate(!1)};
_.e_.Object.defineProperties(La.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var m=this;return H4(this.parentSignalProxy.owner,function(){return cJ2(m).getWithPath([])})},
set:function(m){m||(oo()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));cJ2(this).setWithPath([],!!m)}}});
_.e_.Object.defineProperties(La,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",La);var JJP=[],A4=function(){var m=HTMLElement.apply(this,arguments)||this;m.as="item";m.indexAs="index";m.itemsIndexAs="itemsIndex";m.targetFramerate=20;m.notifyDomChange=!1;m.isDetached=!1;m.JSC$13942_renderDebouncer=null;m.instances=[];m.chunkingId=null;m.chunkCount=null;m.shouldMeasureChunk=!1;m.shouldContinueChunking=!1;m.renderStartTime=null;m.JSC$13942_didCallConnected=!1;return m};
_.n(A4,HTMLElement);var NkC=function(m){m.itemSignalImpl!=null||(m.itemSignalImpl=new Ka(_.g_(JJP,void 0,"fBC3h")));return m.itemSignalImpl},DHl=function(m,G){Array.isArray(G)||(G=JJP);
NkC(m).setWithPath([],G)};
_.w=A4.prototype;_.w.showHideChildren=function(m){for(var G=_.g(this.instances),K=G.next();!K.done;K=G.next())nLV(m,K.value.children)};
_.w.notifyPath=function(m,G){m=rT(m);m[0]==="items"&&(m.length===1?DHl(this,G):NkC(this).setWithPath(m.slice(1),G))};
_.w.canNotifyPath=function(m){return m==="items"};
_.w.attributeChangedCallback=function(m,G,K){if(this.JSC$13942_didCallConnected)throw Error("Sg`"+m);m==="as"?this.as=K:m==="index-as"?this.indexAs=K:m==="items-index-as"?this.itemsIndexAs=K:m==="initial-count"?this.initialCount=Number(K):m==="notify-dom-change"?this.notifyDomChange=K!==null:m==="target-framerate"&&(this.targetFramerate=Number(K))};
_.w.disconnectedCallback=function(){this.isDetached=!0;for(var m=0;m<this.instances.length;m++)tvi(this,m);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.w.connectedCallback=function(){var m=this;if(_.F("ps_dom_repeat_require_parent_signal_proxy_killswitch")||this.parentSignalProxy){var G=NkC(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var L=G(),A=rT(L.path);if(A[0]===void 0||A[0]==="splices"||A[0]==="length")m.debounceRender();else{var O=A[0];if(O=m.instances[typeof O==="string"?Math.floor(Number(O)):O])A=[m.as].concat(_.Bz(A.slice(1))),O.signalProxy.notifyPath(A,L)}});
this.JSC$13942_didCallConnected=!0;BV0?vLv():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var K=(0,_.yL)((0,_.yL)(this).parentNode),W=0;W<this.instances.length;W++)K.insertBefore(this.instances[W].root,this);this.chunkingId&&this.render()}}else K=(0,_.yL)(this).parentNode,W={parentNode:K==null?void 0:K.nodeName},K instanceof Element&&(W.parentClassName=K.className),_.nc(new _.cw("PsDomRepeat connected with undefined parentSignalProxy",W))};
_.w.debounceRender=function(){this.JSC$13942_renderDebouncer=_.C2(this.JSC$13942_renderDebouncer,bY,this.JSC$13942_renderImpl.bind(this));_.Vv(this.JSC$13942_renderDebouncer)};
_.w.render=function(){this.debounceRender();_.yv()};
_.w.JSC$13942_renderImpl=function(){var m=this;if(!this.parentSignalProxy.isDisposed){var G=this.items,K=FeS(this,G.length);QKS(this,G,K);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){m.chunkingId=null;if(m.shouldMeasureChunk){var W=performance.now()-m.renderStartTime;m.chunkCount=Math.round(Math.ceil(1E3/m.targetFramerate)/W*m.chunkCount)||1}m.shouldContinueChunking&&m.debounceRender()}));
MfG&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var FeS=function(m,G){var K=G,W=m.instances.length;if(m.initialCount){if(m.chunkCount){var L=Math.min(Math.max(G-W,0),m.chunkCount);K=Math.min(W+L,G)}else K=Math.min(G,m.initialCount),L=Math.max(K-W,0),m.chunkCount=L||1;m.shouldMeasureChunk=L===m.chunkCount;m.shouldContinueChunking=K<G;m.renderStartTime=performance.now()}return K},QKS=function(m,G,K){for(var W=0;W<K;W++){var L=m.instances[W],A=G[W];
L?(L.signalProxy.setWithPath([m.as],A),L.signalProxy.setWithPath([m.indexAs],W)):aI2(m,A,W)}for(G=m.instances.length-1;G>=W;G--)K=m,L=G,tvi(K,L),_.g(K.instances.splice(L,1)).next().value.signalProxy.dispose()},tvi=function(m,G){m=m.instances[G];
G=(0,_.yL)(m.root);for(var K=0;K<m.children.length;K++)G.appendChild(m.children[K])},aI2=function(m,G,K){var W={};
G=Object.assign({},o9X(m),(W[m.as]=G,W[m.indexAs]=K,W[m.itemsIndexAs]=K,W));var L=new Wq(G,function(O){if(O!==m.as&&O!==m.indexAs){if(O===m.itemsIndexAs)return h9(L,m.indexAs);var c=h9(m.parentSignalProxy,O).getChangeRecordSignal([]);O=_.g_(void 0,void 0,"Y7rQEe");var u=new Ka(O);L.effect(function(){var h=c();u.notifyPath(rT(h.path),{value:h.value})});
return u}});
m.parentSignalProxy.childSignalProxies.push(L);W=dbv(m.templateInfo,m.templateInfo.nodeInfoList,L,{eventListenerHost:m.eventListenerHost,getModel:function(){var O={};return Object.assign({},o9X(m),(O[m.as]=L.model[m.as],O[m.indexAs]=L.model[m.indexAs],O[m.itemsIndexAs]=L.model[m.indexAs],O))},
hasInsertionPoint:m.templateInfo.hasInsertionPoint,thisCtx:m.eventListenerHost,methodInvocationRequirement:mHP,enabledSignal:m.stampingEnabled}).root;G={root:W,children:[],signalProxy:L};W=_.g(W.childNodes);for(var A=W.next();!A.done;A=W.next())G.children.push(A.value);W=(W=m.instances[K+1])?W.children[0]:m;(0,_.yL)((0,_.yL)(m).parentNode).insertBefore(G.root,W);m.instances[K]=G},o9X=function(m){if((m=m.parentSignalProxy.model)&&!m.hostElement){var G={},K;
for(K in m)m.hasOwnProperty(K)&&(G[K]=m[K]);return G}};
A4.prototype.itemForElement=function(m){var G=this,K=this.instances.find(function(W){return W.children.includes(m)});
if(K)return H4(this.parentSignalProxy.owner,function(){return K.signalProxy.getWithPath([G.as])})};
A4.prototype.indexForElement=function(m){var G=this.instances.findIndex(function(K){return K.children.includes(m)});
return G>=0?G:void 0};
_.e_.Object.defineProperties(A4.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var m=this;return H4(this.parentSignalProxy.owner,function(){return NkC(m).getWithPath([])})},
set:function(m){DHl(this,m)}},
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}}});
_.e_.Object.defineProperties(A4,{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",A4);var n9o,bwF;_.wR=new _.sX("STATE_STORE_TOKEN");n9o=new _.sX("SELECT_TOKEN");bwF=new _.sX("DISPATCH_TOKEN");var I9G={getSelectFn:function(){var m;return(m=_.xS().resolve(_.fn(n9o)))!=null?m:$uP},
getDispatchFn:function(){var m;return(m=_.xS().resolve(_.fn(bwF)))!=null?m:_.nD().dispatch.bind(_.nD())},
getAppStore:function(){return _.xS().resolve(_.wR)}},sHP,HOd=!1;var PiF=function(){};var VfV=void 0;var v9k=function(){};
v9k.prototype.hasAttribute=function(m){if(m==="dir")return!1;if(m==="disable-upgrade"){var G,K;return(K=(G=this.hostElement)==null?void 0:G.hasAttribute("disable-upgrade"))!=null?K:!1}throw Error("Tg`"+m);};
v9k.prototype.attributeChangedCallbackWrapper=function(m,G,K){if(m==="disable-upgrade"&&this.__isUpgradeDisabled&&K===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var W;((W=this.hostElement)!=null?W:this).isConnected&&this.connectedCallback()}else G===K||this.__isReflecting||this.attributeChangedCallback(m,G,K)};
v9k.prototype.getExtraMethodsToForward=function(){for(var m=this,G=[],K=_.g($Hl),W=K.next(),L={};!W.done;L={tagName$jscomp$67:void 0,name$jscomp$631:void 0},W=K.next())L.name$jscomp$631=W.value,W=void 0,L.name$jscomp$631==="_setPendingProperty"?(L.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),W=function(A){return function(O,c,u){i1(A.tagName$jscomp$67,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return m._setPendingProperty(O,c,u)}}(L)):W=function(A){return function(){return m[A.name$jscomp$631].apply(m,
_.Bz(_.mb.apply(0,arguments)))}}(L),G.push([L.name$jscomp$631,
W]);return G};
for(var f9V=WeP(KeF((0,_.lD)(v9k))),R$M=["disabled","disable-upgrade"],sKi=(0,_.lD)(function(){}),qlR=new Set(Object.getOwnPropertyNames(sKi.prototype)),Mfd=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Bz(qlR))),z$v=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),$Hl=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),E94=new Set([].concat(_.Bz(z$v),_.Bz($Hl),_.Bz(qlR))),Hw4=_.g(E94),II4=Hw4.next();!II4.done;II4=Hw4.next())N2v.add(II4.value);var BVo={created:function(){A76(this);this.initializeInjection()}};var wCV=!1,ke=window.ShadyDOM,pC9=["appendChild","insertBefore","removeChild","replaceChild"],hNs=[Node];ke&&hNs.push(ke.Wrapper);var aIJ,o9f,v9G={};var CD,Hw9=new WeakMap,sKV=new Set;var Vvs=new Set("context didCallReady is info params signalProxy".split(" ")),dHf="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),PQd="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var jKP=pA({entities:PpF}),k8G=new vU(jKP);var CQF=function(){return _.l0.apply(this,arguments)||this};
_.n(CQF,_.l0);_.e_.Object.defineProperties(CQF.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return k8G}}});
_.x([_.Be()],CQF);_.gR=[ip.prototype,CQF.prototype];_.OH={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var m=this,G={};setTimeout(function(){var K;return _.Zw((K=m.hostElement)!=null?K:m,"yt-live-chat-add-tooltip-target",G)},0);
this.handler_=G.handler},
detached:function(){if(this.handler_){var m;this.handler_.removeElementFromSupportingTooltips((m=this.hostElement)!=null?m:this)}this.handler_=null}}};_.fD=new _.sX("ICON_MANAGER_TOKEN");var Vvl=[48,20,18,16,15,13,12],K4V=new Map,Tkd=new Set,lI9=new Set,Mvv=new Set,zN9=new Set,Bkd=new Set,iqs=new Promise(function(m){var G=!1,K=!1,W=!1,L=[],A=function(O){if("detail"in O)if(O=O.detail,O.name==="yt-icons")mxf(O),G=!0;else if(O.name==="yt-sys-icons")mxf(O),K=!0;else{var c;((c=O.name)==null?0:c.includes("yt-sys-icons"))&&O.size!==24&&(mxf(O,!0),L.push(O.size),L.length===Vvl.length&&(W=!0))}G&&K&&W&&(window.removeEventListener("iron-iconset-added",A),m())};
window.addEventListener("iron-iconset-added",A)}),Zw4=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"]]);_.cq={};_.cq.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.bw,computeHref_:function(m,G){G=G===void 0?!1:G;if(!m||m.commandExecutorCommand)return null;var K=IEG(m,G);return G||K!==null?K?_.F("enable_polymer_resin")?_.MI(K).toString():K:null:(_.nc(new _.cw("computeHref was null",this.is,m)),null)},
computeOptionalHref_:function(m){return this.computeHref_(m,!0)},
computeNofollow_:function(m){return m?oAs(m)?"nofollow":null:null},
computeIcon_:function(m){return m&&m.iconType?_.ew(m.iconType):""},
resolveCommand:function(m,G,K){G=G===void 0?{}:G;return _.Xj(m,this.hostElement,G,K===void 0?!1:K)}};var PQK,YP;_.dHX={};PQK=null;
YP={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_=ML9(this.viewroot));_.Dh(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var m=this;this.unobserve_();if(_.F("kevlar_vimio_use_shared_monitor"))Ro(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 G=[];this.visibilityOptionVisible_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return m.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return m.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&G.push(this.visibilityObserver.observe(this.hostElement,function(){return m.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=G}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){W4o(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 m=_.N7(this.parentNode,function(K){var W,L=(W=K.polymerController)!=null?W:K;return!!L.getVisibilityObserverForChild&&L.getVisibilityObserverForChild()},!0);
if(m){var G;this.localVisibilityObserver_=((G=m.polymerController)!=null?G:m).getVisibilityObserverForChild()}else PQK||(PQK=ML9()),this.localVisibilityObserver_=PQK;return this.localVisibilityObserver_},visibilityCallback:function(m){m?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.F("kevlar_use_vimio_behavior")||(YP={});YP&&!_.F("kevlar_use_vimio_behavior")&&(delete YP.attached,delete YP.detached);_.dHX.YtVisibilityObserverBehavior=[YP];var yJC={};yJC.YtVisualElementBehavior=[_.dHX.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.F("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.F("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var m=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportShown(this,void 0,m)}},
onHidden:function(){if(_.F("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.F("kevlar_vimio_use_shared_monitor")){var m=this.getScreenLayer&&this.getScreenLayer(),G=this.getVisibilityLogger();G&&G.reportHidden(this,void 0,m)}},
getVisibilityLogger:function(){return _.F("kevlar_use_vimio_behavior")?_.UQ():null},
shouldSkipLogging:function(){if(_.E8("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var m=this.getParentRenderer&&this.getParentRenderer();if(!m)return!1;var G,K=(G=m.polymerController)!=null?G:m;if(!K.data)return!1;m=this.data.trackingParams;m=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:m;var W;G=(W=K.data)==null?void 0:W.trackingParams;var L,A;G=((L=K.data)==null?0:L.loggingDirectives)?(A=K.data)==null?void 0:A.loggingDirectives.trackingParams:G;return m&&G&&m===
G}}];var cLd=new Map,iK;var MT6=function(m){this.layer=m},Rx=function(m){return m.layer!==void 0?m.layer:m.parent?Rx(m.parent):m.layer=0};var JLd;_.B={};JLd=0;_.B.YtRendererBehavior=[_.cq.YtComponentBehavior,yJC.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_:_.F("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var m,G;(G=(m=this.monitorScrollElement)!=null?m:this.hostElement)==null||G.removeEventListener("scroll",_.xC(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();gIG(this.hostElement);f8(_.Xi(),this.hostElement);$t.delete(this.hostElement)},
registerRenderer:function(m){var G;((G=m.polymerController)!=null?G:m).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(m),this.markDirty())},
unregisterRenderer_:function(m){this.useVimio_||(this.childCache_.delete(m),this.markDirty())},
attached:function(){var m=this,G=this.getParentRenderer();if(G){var K,W,L;(W=(K=(L=G.polymerController)!=null?L:G).registerRenderer)==null||W.call(K,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var A,O;(O=(A=this.monitorScrollElement)!=null?A:this.hostElement)==null||O.addEventListener("scroll",_.xC(this,this.onScroll))}_.Fu.addJob(function(){Ytd(m.hostElement)},8);
K=new MT6(this.screenLayer||void 0);(G=$t.get(G))&&G.layerNode&&(K.parent=G.layerNode);G={};pqs(this.hostElement,(G.isRenderer=!0,G.layerNode=K,G[TjM]=this.data,G))},
getParentRenderer:function(){for(var m=this.hostElement.parentNode,G,K;m&&((G=$t.get(m))==null||!G.isRenderer)&&!((K=m.polymerController)!=null?K:m).isRenderer_;)m=m.parentNode||m.host;return m},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.F("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.IP("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.F("debug_web_ve_data")&&this.data.trackingParams){var m="";try{m=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(K){_.am(K)}if(m){var G=m_V(m,1);G!==void 0&&(this.hostElement.dataset.veIndex=String(G));m=m_V(m,2);
m!==void 0&&(this.hostElement.dataset.ve=String(m))}}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,_.F("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.m5(this.data.loggingDirectives.trackingParams)),this.visualElement=_.zg(_.l1(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var m=this.data.targetId;_.xV(_.Xi(),m,this.hostElement)}else f8(_.Xi(),this.hostElement)},
onScroll:function(){var m=Date.now();m-this.lastHandledScroll_<50||(this.lastHandledScroll_=m,this.markDirty())},
markDirty:function(){_.F("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():NQV(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var m=this.getParentRenderer();if(m&&(m=$t.get(m))&&m.layerNode)return Rx(m.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Bz(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var m=0;m<this.data.impressionEndpoints.length;m++)this.sendImpression(this.data.impressionEndpoints[m]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(m){m.clickTrackingParams&&delete m.clickTrackingParams;var G,K;(m==null?0:(G=m.commandMetadata)==null?0:(K=G.webCommandMetadata)==null?0:K.sendPost)?_.yQ(this.hostElement,[m,{impression:!0}]):_.eD(this.hostElement,[m],this.hostElement)},
logExplicitClick:function(m){var G=_.gU(this.getScreenLayer());if(G){var K,W=(K=m.polymerController)!=null?K:m;m=W.visualElement;W=W.trackingParams||W.clickTrackingParams;!m&&W&&(m=_.m5(W));m&&_.nW(G,m)}}}];var eNl={},rR=function(){return _.l0.apply(this,arguments)||this};
_.n(rR,_.l0);rR.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rR.prototype.onPdgItemBehaviorClick=rR.prototype.onPdgItemBehaviorClick;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rR.prototype,"data",void 0);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],rR.prototype,"onPdgItemBehaviorClick",null);_.x([_.Be()],rR);eNl.YtPdgLiveChatItemBehavior=[rR.prototype,_.B.YtRendererBehavior];var fIl;var xHB;_.up={};_.up.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var h4=function(){var m=xN.apply(this,arguments)||this;m.switchTemplateAtRegistration=!1;return m};
_.n(h4,xN);h4.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||QYG(this),_.iOF(this,"doRender"),this.doRender())};
h4.prototype.debounceRender=function(){this.templatingFn&&_.t9(this,"doRender",this.doRender)};
h4.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.am(Error("ch"))};
h4.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.x([aSG()],h4);var XCC=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,pa={},bqo=(pa[1]={filterString:null,isUnwrappable:null,unwrap:null},pa[2]={filterString:function(m,G,K){return Zg(K)},
isUnwrappable:function(m){return m instanceof KZ},
unwrap:function(m){return LZ(m)}},pa[3]={filterString:function(m,G,K){return XCC.test(K)?K:BN.toString()},
isUnwrappable:function(m){return Re(m)},
unwrap:function(m){return _.Ue(m)}},pa[4]={filterString:function(){return BN.toString()},
isUnwrappable:function(m){return m instanceof dx},
unwrap:function(m){return _.yG(m).toString()}},pa[5]={filterString:function(m,G,K){return K},
isUnwrappable:function(m){return typeof m==="string"},
unwrap:function(m){return m.toString()}},pa[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(m){return m instanceof _.Yr},
unwrap:function(m){return u9(m)}},pa[8]={filterString:function(m,G,K){K=String(K).toLowerCase();
return xks(m,G,K)?K:"zClosurez"},
isUnwrappable:null,unwrap:null},pa[10]={filterString:null,isUnwrappable:null,unwrap:null},pa);ZC[kO["default"]]=$xP;var sYo=[];(function(){var m=xO;xO=function(G){m==null||m(G);W8(function(){for(var K=0;K<G.length;K++)qt9(G[K])})}})();var SlB=function(){var m=_.l0.apply(this,arguments)||this;m.hasUnmounted=!1;return m};
_.n(SlB,_.l0);_.w=SlB.prototype;_.w.beforeRegister=function(){var m=this.doIdomRender;this.templatingFn?_.am(Error("bh")):(this.templatingFn=m,this.switchTemplateAtRegistration=!0,nIo(this))};
_.w.attached=function(){};
_.w.detached=function(){qt9(this.hostElement)};
_.w.renderIdom=function(){throw Error("eh");};
_.w.doIdomRender=function(){var m=this;fEv(this.hostElement,function(){m.renderIdom()})};
_.x([_.Be()],SlB);var RN4=[h4.prototype,SlB.prototype];var UHB,zN4=function(){return UHB!==void 0?UHB:UHB=document.createElement("template")};
document.head.appendChild(zN4().content);var lI4;var Bko,MvC=function(){return Bko!==void 0?Bko:Bko=document.createElement("template")};
document.head.appendChild(MvC().content);var Tko;var mxX=document.head,iql=mxX.appendChild,GW4;if(Tko===void 0){var K4i=document.createElement("template");_.b(K4i,"\x3c!--css-build:shady--\x3e");K4i.content.insertBefore(MvC().content.cloneNode(!0),K4i.content.firstChild);Tko=K4i}GW4=Tko;iql.call(mxX,GW4.content);var W40,L42=function(){return W40!==void 0?W40:W40=document.createElement("template")};
document.head.appendChild(L42().content);var ALF;var wS0=document.head,gIk=wS0.appendChild,OqS;if(ALF===void 0){var cLG=document.createElement("template");_.b(cLG,"\x3c!--css-build:shady--\x3e");cLG.content.insertBefore(L42().content.cloneNode(!0),cLG.content.firstChild);ALF=cLG}OqS=ALF;gIk.call(wS0,OqS.content);var YtK=document.head,rLo=YtK.appendChild,u22;if(lI4===void 0){var hti=document.createElement("template");_.b(hti,"\x3c!--css-build:shady--\x3e");hti.content.insertBefore(zN4().content.cloneNode(!0),hti.content.firstChild);lI4=hti}u22=lI4;rLo.call(YtK,u22.content);var pSC,JLo=function(){return pSC!==void 0?pSC:pSC=document.createElement("template")};
document.head.appendChild(JLo().content);var NQi;_.l_=new _.sX("DARK_THEME_TOKEN");var DxC=new _.$W("accessibilityProperties");var tKB=new _.$W("layoutProperties");var F44=new _.$W("imageType");var QYB={};if("ytAttributedStringLinkHoverColor"in QYB)throw Error("hh`ytAttributedStringLinkHoverColor");(function(m,G){QYB[m]="value"in G&&"unit"in G?jYF(m,G):function(K){try{return G(K)}catch(W){throw Error("fh`"+m+"`"+W.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var axX=function(m){var G=this;this.holdTime=m===void 0?500:m;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(K){var W=new CustomEvent("LONG_PRESS"),L;(L=K.changedTouches[0].target)==null||L.dispatchEvent(W)};
this.ontouchstart=function(K){G.longPressTimeout=_.UU(_.Fu,function(){G.onlongpress(K);G.longPressOccurred=!0},G.holdTime)};
this.ontouchmove=function(){_.Fu.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!0};
this.ontouchend=function(K){if(G.longPressTimeout&&!G.longPressOccurred&&!G.moveOccurred){var W;(W=K.changedTouches[0].target)==null||W.dispatchEvent(new Event("click"))}_.Fu.cancelJob(G.longPressTimeout);G.longPressTimeout=NaN;G.longPressOccurred=!1;G.moveOccurred=!1}};var MKf=function(m,G){axX.call(this,G);var K=this;this.callback=m;this.onlongpress=function(W){var L;(L=K.callback)==null||L.call(K,W)}};
_.n(MKf,axX);var TQG=function(m,G){var K=Object.assign({},G);m=_.g(new Map([["ontouchstart",m.ontouchstart],["ontouchend",m.ontouchend],["ontouchmove",m.ontouchmove]]));for(var W=m.next(),L={};!W.done;L={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},W=m.next()){var A=_.g(W.value);W=A.next().value;A=A.next().value;L.eventName$jscomp$103=W;L.eventHandler$jscomp$2=A;G[L.eventName$jscomp$103]=function(O){return function(c){var u;(u=K[O.eventName$jscomp$103])==null||u.call(K,c);(0,O.eventHandler$jscomp$2)(c)}}(L)}};_.S1=new _.sX("COMMAND_HANDLER_TOKEN");var CIJ=new _.$W("parallelCommand");var dxd=new _.$W("performOnceCommand");var Zqv=new _.$W("serialCommand");var PIM=void 0;var oIS=function(){this.data=[];this.consumer=null};
oIS.prototype.push=function(m){this.consumer?this.consumer(m):this.data.push(m)};var oT={};_.g_(oT,void 0,"sgPmTd");_.g_(null,void 0,"jypsq");_.g_(null,void 0,"mWiOof");var RWd=new oIS;var Uxf=[T5X,mjl,i6R,KKl,GFF,MyS,WKo,LK0];var nI0=new _.$W("bracketTextDecorator");var Ny=new _.$W("highlightTextDecorator");_.t3=new _.sX("APP_DIRECTION_TOKEN");var gHs={calledOnce:!1,state:"visible"},wDd={calledOnce:!1,state:"hidden"};var bq0=new _.sX("ICON_WIZ_COMPONENT_TOKEN");_.fN=_.P(function(m){var G=m.icon;var K=m.active;var W=m.className;var L=m.style;var A=m.dataSelected;var O=m.dataDisabled;var c=m.role;var u=m.animateIcon;var h=m.themeOverride;var J=m.ariaHidden;var N=m.ariaExpanded;var D=m.ariaLabel;var t=m.tabindex;var a=m.id;var v=m.size;var I=m.iconFilter;var Z=m.gradientColor;var k=m.onKeydown;var z=m.title;return _.r(_.p,{cond:G,then:function(){var X=_.xS().resolve(bq0);return _.r(X,{icon:G,dataSelected:A,dataDisabled:O,animateIcon:u,themeOverride:h,ariaExpanded:N,
tabindex:t,id:a,active:K,size:v,role:c,className:W,ariaHidden:J,ariaLabel:D,style:function(){return L!=null&&L()||v==null||!v()?L==null?void 0:L():"width: "+(v==null?void 0:v())+"px;height: "+((v==null?void 0:v())+"px;")},
title:z,iconFilter:I,gradientColor:Z,onKeydown:k})}})},"p");
_.fN.idomCompat={callbacks:{onKeydown:!0}};var D4V=new _.$W("borderImageProcessor");var QDv=window.devicePixelRatio||1;var bed=new Map([["yt_outline_bag_black_24","bag"]]);var J4=function(m){var G=this;this.margin=.1;this.whenInViewportWithMargin=m;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){G.requestScan()});
window.addEventListener("touchend",function(){G.requestScan()});
window.addEventListener("updateui",function(){G.requestScan()});
var K=new _.yO((0,_.AO)(this.requestScan,this),100);window.addEventListener("scroll",function(){K.fire()},!0);
window.addEventListener("resize",(0,_.AO)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){G.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.AO)(this.requestScan,this))};
J4.prototype.observe=function(m){this.observationTargets.includes(m)||this.observationTargets.push(m)};
J4.prototype.unobserve=function(m){this.observationTargets=this.observationTargets.filter(function(G){return G!==m})};
J4.prototype.requestScan=function(){var m=this;this.scanRequested||(W8(function(){vI4(m)}),this.scanRequested=!0)};
var vI4=function(m){var G=(1+m.margin)*(document.documentElement.clientHeight||window.innerHeight);m.observationTargets=m.observationTargets.filter(function(K){var W=K.getBoundingClientRect();(W=G>W.top&&!!W.height)&&m.whenInViewportWithMargin(K);return!W&&K.parentNode});
m.scanRequested=!1};
J4.prototype.disconnect=function(){this.observationTargets=[]};var $xR,qt4;$xR=_.g(_.g_(EHP(),void 0,"O3X2wd"));_.sY0=$xR.next().value;qt4=$xR.next().value;window.addEventListener("resize",function(){qt4(EHP())});var EIo={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},HqR=void 0,Ixk=window.innerWidth,jYP=window.innerHeight;window.addEventListener("resize",function(){HqR=void 0});var kWP;if("IntersectionObserver"in window)kWP=jDG();else{if(HqR===void 0){var CI2;CI2="matchMedia"in window?window.matchMedia(EIo.landscape+","+EIo.portrait).matches:void 0;HqR=CI2!==void 0?CI2:Ixk>=930&&jYP>=550||Ixk>=550&&jYP>=930}kWP=HqR?{observe:function(m){W8(function(){var G;(G=m.onViewportEntered)==null||G.call(m)})},
unobserve:function(){}}:new J4(function(m){W8(function(){var G;
(G=m.onViewportEntered)==null||G.call(m)})})}var Heo=kWP;var VKK=_.P(function(m){var G=!1,K=_.Q3("img",function(W){_.sZ(function(){G=!0;W.onload=null})});
_.$O(function(){var W,L=(W=m.data)==null?void 0:W.call(m),A,O=(A=m.getSrc)==null?void 0:A.call(m).cb,c;W=(c=m.config)==null?void 0:c.call(m);if(c=K.value)if(A=function(h,J){if(!G)return O?O(h,J):h},VY6(c,W),_.F("web_image_dont_reload_same_src")&&C89(c,L,A))_.F("web_image_dont_reload_same_src_simulate_load")&&c.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var u;kT9(c,L||null,A,W,(u=m.lazy)==null?void 0:u.call(m))}},"zS0jKb");
return _.r("img",{el:K})},"r");
VKK.idomCompat=!0;_.oC=_.P(function(m){var G=function(){var K,W=m.data(),L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji;var rK={contentMode:(L=m.contentMode)==null?void 0:L.call(m),loadedClass:(A=m.loadedClass)==null?void 0:A.call(m),isPreloaded:(O=m.isPreloaded)==null?void 0:O.call(m),notifyOnLoaded:(c=m.notifyOnLoaded)==null?void 0:c.call(m),notifyOnUnloaded:(u=m.notifyOnUnloaded)==null?void 0:u.call(m),preferredThumbnail:(h=m.preferredThumbnail)==null?void 0:h.call(m),preserveHeight:(J=m.preserveHeight)==
null?void 0:J.call(m),preserveWidth:(N=m.preserveWidth)==null?void 0:N.call(m),objectPosition:(D=m.objectPosition)==null?void 0:D.call(m),targetWidth:(t=m.targetWidth)==null?void 0:t.call(m),targetHeight:(a=m.targetHeight)==null?void 0:a.call(m),shouldShowPlaceholder:(v=m.shouldShowPlaceholder)==null?void 0:v.call(m),useWidth:(I=m.useWidth)==null?void 0:I.call(m),isToggled:(Z=m.isToggled)==null?void 0:Z.call(m),alt:(k=m.alt)==null?void 0:k.call(m),className:(z=m.className)==null?void 0:z.call(m),
onerror:m.onerror,onload:m.onload,style$:((X=m.style$)==null?void 0:X.call(m))||((f=m.style)==null?void 0:f.call(m)),color:(U=m.color)==null?void 0:U.call(m),width:(l=m.width)==null?void 0:l.call(m),height:(Ls=m.height)==null?void 0:Ls.call(m),"aria-hidden$":(xG=(gd=m["aria-hidden$"])==null?void 0:gd.call(m))!=null?xG:(Qf=m.ariaHidden)==null?void 0:Qf.call(m),draggable:(JV=m.draggable)==null?void 0:JV.call(m),"data-disabled$":(Ji=(DF=m["data-disabled$"])==null?void 0:DF.call(m))!=null?Ji:(kG=m.dataDisabled)==
null?void 0:kG.call(m),size:(eo=m.size)==null?void 0:eo.call(m)};return d4P(W,rK,(K=m.hideOn404)==null?void 0:K.call(m))};
return _.r(_.tw,null,_.r(_.Jw,{when:function(){var K;return((K=G())==null?void 0:K.type)==="image"}},function(){return _.r(VKK,{data:function(){return G().image},
getSrc:{cb:function(K,W){var L=G().image.sources,A=G().config.isPreloaded,O=G().config.useWidth,c=G().config.targetWidth,u=G().config.targetHeight,h=G().config.preferredThumbnail;return _.avJ(W,L,A,O,c,u,h)||""}},
config:function(){var K=G().config,W;for(W in K)K[W]===void 0&&delete K[W];return K},
lazy:m.renderLazy})}),_.r(_.Jw,{when:function(){var K;
return((K=G())==null?void 0:K.type)==="icon"}},function(){return _.r(_.fN,{icon:function(){return G().iconName},
role:function(){return G().config.role},
className:function(){return G().config.className},
style:function(){return G().config.style$+";width: "+(G().config.width+"px;height: ")+(G().config.height+"px;color: ")+(G().config.color+";")},
ariaLabel:function(){return G().config["aria-label$"]},
ariaHidden:function(){return G().config["aria-hidden$"]},
dataDisabled:function(){return G().config["data-disabled$"]},
active:function(){return G().config.isToggled},
size:function(){return G().config.size}})}))},"s");
_.oC.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var ZqC=_.P(function(m){var G=function(L){var A,O,c=_.aC(function(t){A=L();O=q2(function(){for(var a=_.g(N()),v=a.next();!v.done;v=a.next()){v=fvV(v.value);v=typeof v==="string"?document.createTextNode(v):v;if(!(v instanceof Node)){a=new _.cw("Part is not a node",v,typeof v);_.am(a);break}t.appendChild(v)}})}),u=_.sQ(m.config),h=function(){var t,a=L();
return!((t=u())==null||!t.ariaLabel)||!(a.commandRuns&&a.commandRuns.length!==0||a.paragraphStyleRuns&&a.paragraphStyleRuns.length!==0)},J=yy6(u,{isEqual:XDd}),N=function(){var t=L(),a=J(),v=[],I=t.content.length,Z,k=(Z=_.xS().resolve(_.fn(_.l_)))==null?void 0:Z();
if(t.paragraphStyleRuns)for(var z=_.g(t.paragraphStyleRuns),X=z.next();!X.done;X=z.next()){var f=v.push,U=f.apply;var l=void 0,Ls=X.value;if((l=Ls.listGroup)!=null&&l.listItems){var gd=[];b:switch(Ls.listGroup.listType){case "LIST_TYPE_BULLET":var Qf="ul";break b;default:Qf="span"}gd.push(pN({run:Ls,textLength:I,tag:Qf,config:{className:"yt-core-attributed-string__list-group"},startIndex:Ls.startIndex,length:Ls.length}));for(var JV=_.g(Ls.listGroup.listItems),DF=JV.next();!DF.done;DF=JV.next()){var kG=
DF.value;b:switch(Ls.listGroup.listType){case "LIST_TYPE_BULLET":var eo="li";break b;default:eo="span"}gd.push(pN({run:Ls,textLength:I,tag:eo,startIndex:kG.startIndex,length:kG.length}))}var xG=gd}else xG=[];U.call(f,v,_.Bz(xG))}if(t.styleRuns&&(a==null||!a.noStyleRuns))for(var Ji=_.g(t.styleRuns),rK=Ji.next();!rK.done;rK=Ji.next()){var So=rK.value,ti=So,bS=k,NG=a,EO=GTv({extension:_.Q(ti.styleRunExtensions,i40),isDarkTheme:bS===void 0?!1:bS,runColor:ti.fontColor}),gz=void 0,ps=ti,ZF=[];EO&&ZF.push("yt-core-attributed-string--link-inherit-color");
ps.italic&&ZF.push("yt-core-attributed-string--italicized");ps.underline&&ps.strikethrough?ZF.push("yt-core-attributed-string--underline-strikethrough",WA9(ps.underline)):ps.underline?ZF.push("yt-core-attributed-string--underlined",WA9(ps.underline)):ps.strikethrough&&ZF.push("yt-core-attributed-string--strikethrough",WA9(ps.strikethrough));if(ps.baselineOffset){a:switch(ps.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":gz="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":gz=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:gz="yt-core-attributed-string--baseline-offset-unknown"}ZF.push(gz)}var DP=ZF.join(" ");var lS=ti,Eo=EO,iq={};if(lS.weight||lS.weightLabel)iq.fontWeight=KAd(lS,NG==null?void 0:NG.isHeadline).toString();Eo&&(iq.color=Eo);v.push(pN({run:So,textLength:I,tag:"span",config:{className:DP,style:iq},startIndex:So.startIndex,length:So.length}))}if(t.decorationRuns)for(var jy=_.g(t.decorationRuns),T4=jy.next();!T4.done;T4=jy.next()){var JD=
T4.value,S0={};if(JD.textDecorator){var zG=JD.textDecorator,c2=k===void 0?!1:k,N6=[],pl=_.Q(zG,Ny),Uo=_.Q(zG,nI0);if(pl){var dK=N6,cu=dK.concat,xo=[],fl=GTv({extension:_.Q(pl.highlightTextDecoratorExtensions,me0),isDarkTheme:c2,runColor:pl.backgroundColor});fl&&xo.push("background-color: "+fl+";");pl.backgroundCornerRadius!==void 0&&xo.push("border-radius: "+pl.backgroundCornerRadius+"px;");pl.leftPadding!==void 0&&xo.push("padding-left: "+pl.leftPadding+"px;");pl.rightPadding!==void 0&&xo.push("padding-right: "+
pl.rightPadding+"px;");pl.topPadding!==void 0&&xo.push("padding-top: "+pl.topPadding+"px;");pl.bottomPadding!==void 0&&xo.push("padding-bottom: "+pl.bottomPadding+"px;");N6=cu.call(dK,xo)}else if(Uo){var Qi=N6,ig=Qi.concat,gx=c2?"#2ba640":"#107516",xl=Uo.color?ied(Uo.color):gx;N6=ig.call(Qi,["padding: 2px;","border-top: solid "+xl+" 2px;","border-bottom: solid "+xl+" 2px;","background: linear-gradient(135deg, "+xl+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+xl+" 3px, rgba(0, 0, 0, 0) 3px);"])}var xr=
N6.join(" ");S0.style$=xr;var Gf=JD.textDecorator,X6=[],ht=_.Q(Gf,nI0);_.Q(Gf,Ny)?X6.push("yt-core-attributed-string--highlight-text-decorator"):ht&&X6.push("yt-core-attributed-string--bracket-text-decorator");var Td=X6.join(" ");S0.className=Td;S0.dir="auto"}var sd=_.Q(JD.textDecorator,Ny),dd=_.Q(JD.textDecorator,nI0),l6=_.Q(JD.textDecorator,Ny),QX=_.Q(JD.textDecorator,nI0);v.push(pN({run:JD,textLength:I,tag:"span",config:S0,startIndex:(sd==null?void 0:sd.startIndex)||(dd==null?void 0:dd.startIndex)||
0,length:(l6==null?void 0:l6.length)||(QX==null?void 0:QX.length)||0}))}if(t.commandRuns&&(a==null||!a.noEndpoints))for(var $5=_.g(t.commandRuns),Ee=$5.next();!Ee.done;Ee=$5.next()){var Is=Ee.value,$k=m4J(Is,a);v.push(pN({run:Is,textLength:I,tag:"a",config:$k,startIndex:Is.startIndex,length:Is.length}))}if(t.attachmentRuns)for(var v2=_.g(t.attachmentRuns),XE=v2.next();!XE.done;XE=v2.next()){var Oe=XE.value,FR=void 0,C6=void 0,yp={className:"yt-core-attributed-string--inline-block-mod"};if((C6=Oe.element)==
null?0:C6.properties){var XO=(FR=Oe.element)==null?void 0:FR.properties,JI=[],KL=_.Q(XO,tKB);if(KL==null?0:KL.margin){var $S=KL.margin,TI=_.E8("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl",bW=TI?$S.end||$S.right:$S.start||$S.left,Rn=TI?$S.start||$S.left:$S.end||$S.right;bW&&JI.push("margin-left: "+gn(bW)+";");Rn&&JI.push("margin-right: "+gn(Rn)+";");$S.top&&JI.push("margin-top: "+gn($S.top)+";");$S.bottom&&JI.push("margin-bottom: "+gn($S.bottom)+";")}var $3=JI.length!==0?JI.join(" "):
void 0;yp.style$=$3}var K$=yp,vH=void 0,b9={alt:"",preserveHeight:!0,preserveWidth:!0},RS=["yt-core-attributed-string__image-element"];if(Oe.alignment){a:switch(Oe.alignment){case "ALIGNMENT_BASELINE":var b1="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":b1="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:b1="yt-core-attributed-string__image-element--image-alignment-bottom"}RS.push(b1)}if((vH=
Oe.element)==null?0:vH.properties){var vL=[],i_=_.Q(Oe.element.properties,tKB);(i_==null?0:i_.height)&&vL.push("height: "+gn(i_.height)+";");(i_==null?0:i_.width)&&vL.push("width: "+gn(i_.width)+";");var RB=vL.length!==0?vL.join(" "):void 0;b9.style$=RB;var U1=void 0;var WF=((U1=_.Q(Oe.element.properties,DxC))==null?void 0:U1.label)||"";b9.alt=WF}b9.className=RS.join(" ");var Ti=b9,Ua=void 0;var UH=void 0,iS=void 0;var D6=((iS=Oe.element)==null?0:iS.type)?(UH=_.Q(Oe.element.type,F44))==null?void 0:
UH.image:void 0;v.push(pN({run:Oe,textLength:I,tag:"img",image:D6,imageConfig:Ti,imageWrapperConfig:K$,startIndex:Oe.startIndex,length:(Ua=Oe.length)!=null?Ua:0}))}if(a==null?0:a.headerRuns)for(var CP=_.g(a.headerRuns),lq=CP.next();!lq.done;lq=CP.next()){var Pz=lq.value;if(Pz.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(Pz.headerMapping)){a:{switch(Pz.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":var xy=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":xy="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":xy="yt-core-attributed-string--heading-3";break a}xy=void 0}v.push(pN({run:Pz,textLength:I,tag:"span",config:xy?{className:xy}:void 0,startIndex:Pz.startIndex,length:Pz.length}))}}var UJ=J();if(UJ==null?0:UJ.userInput)for(var fW=_.g(v),Na=fW.next();!Na.done;Na=fW.next()){var Om=Na.value;if(Om.tag!=="a"&&
Om.tag!=="li"){var Fmv=void 0;(Fmv=Om).config||(Fmv.config={});Om.config.dir=Om.tag==="ul"?_.xS().resolve(_.t3):"auto"}}if(L().content){var QmG=L().content;udJ(v);for(var sk={data:null,start:0,end:QmG.length,parts:[]},aCf=_.g(v),qv=aCf.next();!qv.done;qv=aCf.next()){var Ek=qv.value;YjJ(sk,Ek.startIndex,Ek.endIndex,Ek)}ryM(QmG,sk);var ozG=sk.parts}else ozG=[];return ozG},D=!0;
_.$O(function(){L();J();if(D&&(D=!1,esf(L(),A)))return;var t=N();Promise.resolve().then(function(){var a=c.value;if(a){a.innerText="";var v;(v=O)==null||v();O=_.oP(a,function(){return _.r(x4f,{parts:t})},"t")}})},"Dfzccf");
return _.r("span",{el:c,class:function(){var t;if(t=L()){t=L();var a=u(),v=[];v.push("yt-core-attributed-string");(a==null?0:a.className)&&v.push(a==null?void 0:a.className);(a==null?0:a.ellipsisTruncate)?v.push("yt-core-attributed-string--ellipsis-truncate"):(a==null?0:a.noWrap)?v.push("yt-core-attributed-string--white-space-no-wrap"):(a==null?0:a.noPreWrap)||v.push("yt-core-attributed-string--white-space-pre-wrap");(a==null?0:a.linkInheritColor)&&v.push("yt-core-attributed-string--link-inherit-color");
t.alignment&&v.push(LAJ(t.alignment));t.lineBreakMode&&v.push("yt-core-attributed-string--word-wrapping");t=v.join(" ")}return t},
dir:function(){var t;return((t=u())==null?0:t.userInput)?"auto":void 0},
"aria-label":function(){var t;return h()?(t=u())==null?void 0:t.ariaLabel:void 0},
role:function(){return h()?"text":void 0}})},K=yy6(function(){var L,A=(L=m.text)==null?void 0:L.call(m);
if(A)return L=_.t$(A)?A:_.A$(A),(L==null?0:L.content)?L:void 0},{isEqual:esf}),W;
return((W=m.config)==null?0:W.contentAsserted)?G(K):_.r(_.p,{cond:K,then:G})},"v");
ZqC.idomCompat=!0;_.Nm=_.P(function(m){var G=_.sQ(m.text),K=Sjo(m);m.contentAsserted!==void 0&&(K.contentAsserted=!0);return _.r(ZqC,{text:G,config:K})},"w");
_.Nm.idomCompat=!0;var Rs6=function(m,G,K){G=G===void 0?"unknown":G;K=K===void 0?{}:K;_.cw.call(this,m+" ("+G+")",Object.assign({},{name:"YtWcwError",tagName:G},K));Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(Rs6,_.cw);_.$E=new WeakMap;_.bK=!1;var MYG,TXG,BXs;_.Dd=Symbol("jh");_.nN=Symbol("kh");MYG=Symbol("lh");TXG=new Set(Object.getOwnPropertyNames(Element.prototype));BXs=Symbol("mh");var dxG=_.P(function(m){return _.r("yt-attributed-string",{"aria-label":m.ariaLabel,hidden:m.hidden,id:m.id,class:m.className,"force-default-style":m.forceDefaultStyle},_.r(_.Nm,{text:m.data,ariaLabel:m.ariaLabel,ellipsisTruncate:m.ellipsisTruncate,isOverlay:m.isOverlay,linkInheritColor:m.linkInheritColor,noPreWrap:m.noPreWrap,noWrap:m.noWrap,userInput:m.userInput,noEndpoints:m.noEndpoints,headerRuns:m.headerRuns,isHeadline:m.isHeadline}))},"x");
_.F("web_wiz_attributed_string")&&_.sh(dxG,"yt-attributed-string",{props:{ariaHidden:_.Dd,ariaLabel:_.Dd,className:_.Dd,ellipsisTruncate:_.Dd,isOverlay:_.Dd,linkInheritColor:_.Dd,noEndpoints:_.Dd,noStyleRuns:_.Dd,noLinkColor:_.Dd,noPreWrap:_.Dd,noWrap:_.Dd,skipOnClick:_.Dd,userInput:_.Dd,headerRuns:_.Dd,isHeadline:_.Dd,id:_.Dd,data:_.Dd,hidden:_.Dd,forceDefaultStyle:_.Dd,text:_.nN,disableUpgrade:_.nN,disable:_.nN,slot:_.nN}});var t4=function(){return _.d.apply(this,arguments)||this};
_.n(t4,_.d);t4.prototype.renderIdom=function(){if(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};var m=this.data,G=this.config;m&&(m=_.t$(m)?m:_.A$(m),m!=null&&m.content&&(G=G||{},G.contentAsserted=!0,qjP(ZqC)({text:m,config:G})))}};
_.x([_.q(RN4),_.S("design:type",Object)],t4.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],t4.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t4.prototype,"ariaLabel",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"disable",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"ellipsisTruncate",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"isOverlay",void 0);
_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"linkInheritColor",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"noPreWrap",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"noWrap",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"userInput",void 0);_.x([_.V(),_.S("design:type",Boolean)],t4.prototype,"noEndpoints",void 0);_.x([_.V(),_.S("design:type",Array)],t4.prototype,"headerRuns",void 0);
_.x([_.cL({is:"yt-attributed-string",disableElementRegistration:!0})],t4);
_.F("web_wiz_attributed_string")||_.y(t4,"yt-attributed-string",function(){if(NQi===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
m.content.insertBefore(JLo().content.cloneNode(!0),m.content.firstChild);NQi=m}m=NQi;return m},{mode:2});var PIF,yLP,ANM;PIF=function(){this.firstThumbnailLoaded=!1};
_.etk=function(){yLP||(yLP=new PIF);return yLP};
ANM=function(m){var G=_.etk();G.firstThumbnailLoaded||(G.firstThumbnailLoaded=!0,_.Yt("ftl",m))};
PIF.prototype.reset=function(){this.firstThumbnailLoaded=!1};var iEM=0,LJG=new WeakMap,KJ6=0,H8=new Set;var fxR,xxX=function(){return fxR!==void 0?fxR:fxR=document.createElement("template")};
document.head.appendChild(xxX().content);var XSR;var cN9,rN6,Fe;_.kE=_.Ks.caches;Fe=function(){};
Fe.prototype.open=function(m){return _.kE.open(StB(m))};
Fe.prototype.has=function(m){return _.kE.has(StB(m))};
Fe.prototype.delete=function(m){return _.kE.delete(StB(m))};
Fe.prototype.match=function(m,G){var K=this,W,L,A,O,c,u;return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(K.keys(),2);case 2:W=h.yieldResult,L=_.g(W),A=L.next();case 3:if(A.done){h.jumpTo(5);break}O=A.value;return h.yield(K.open(O),6);case 6:return c=h.yieldResult,h.yield(c.match(m,G),7);case 7:if(u=h.yieldResult)return h.return(u);A=L.next();h.jumpTo(3);break;case 5:return h.return()}})};
var uyd=function(){};
_.n(uyd,Fe);var StB=function(m){if(m.includes(":"))throw Error("ph`"+m);return m+":"+_.g8("CacheStorage get")};
uyd.prototype.keys=function(){var m,G,K,W,L,A,O,c,u;return _.Y(function(h){if(h.nextAddress==1)return m=[],G=_.g8("CacheStorage keys"),h.yield(_.kE.keys(),2);K=h.yieldResult;W=_.g(K);for(L=W.next();!L.done;L=W.next())A=L.value,O=_.OEd(A),c=O.originalName,u=O.datasyncId,u===G&&m.push(c);return h.return(m)})};var Qr=function(){var m=_.d.apply(this,arguments)||this;m.objectURL=null;m.loadTime=Infinity;return m};
_.n(Qr,_.d);_.w=Qr.prototype;
_.w.renderIdom=function(){gpd(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("sh");this.setConfig();if(this.config){var m=this.config,G=this.shouldRenderLazy;qjP(_.oC)({contentMode:m.contentMode,loadedClass:m.loadedClass,isPreloaded:m.isPreloaded,notifyOnLoaded:m.notifyOnLoaded,notifyOnUnloaded:m.notifyOnUnloaded,preferredThumbnail:m.preferredThumbnail,preserveHeight:m.preserveHeight,preserveWidth:m.preserveWidth,objectPosition:m.objectPosition,targetWidth:m.targetWidth,
targetHeight:m.targetHeight,shouldShowPlaceholder:m.shouldShowPlaceholder,useWidth:m.useWidth,isToggled:m.isToggled,alt:m.alt,className:m.className,onerror:m.onerror,onload:m.onload,style$:m.style$,color:m.color,width:m.width,height:m.height,"aria-hidden$":m["aria-hidden$"],draggable:m.draggable,"data-disabled$":m["data-disabled$"],data:this.data,callback:void 0,renderLazy:G===void 0?!0:G,hideOn404:!1})}}};
_.w.objectFitToContentMode=function(m){switch(m){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.w.logThumbnailFailureVe=function(){var m=_.dq(197497);_.yw(_.l1(),m);var G=_.gU();G&&m&&G&&_.a7(G,[m])};
_.w.loadImageFromCacheIfExists=function(m){var G=this,K=m.target;(K==null?0:K.src)&&p7G(K.src).then(function(W){G.objectURL=_.T7(W).toString();G.setSrc(K,G.objectURL)}).catch(function(){})};
_.w.onError=function(m){var G=this;if(_.F("web_use_cache_for_image_fallback")){var K=m.target;K&&p7G(K.src).then(function(W){G.objectURL=_.T7(W).toString();G.setSrc(K,G.objectURL)}).catch(function(){_.F("kevlar_woffle_log_thumbnail_failure_ve")&&G.logThumbnailFailureVe();
_.F("kevlar_woffle_fallback_image")&&G.setSrc(K,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.w.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.w.setConfig=function(){var m=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(G){m.loadImageFromCacheIfExists(G);m.revokeObjectURL();w7d(m.hostElement)},
onerror:function(G){m.onError(G)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.F("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.w.setSrc=function(m,G){G&&(m.src=G)};
_.x([_.q(RN4),_.S("design:type",Object)],Qr.prototype,"ytIdomTemplatingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qr.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],Qr.prototype,"alt",void 0);_.x([_.V(),_.S("design:type",Boolean)],Qr.prototype,"ftlEligible",void 0);_.x([_.V(),_.S("design:type",Number)],Qr.prototype,"height",void 0);_.x([_.V(),_.S("design:type",Boolean)],Qr.prototype,"notifyOnLoaded",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Qr.prototype,"notifyOnUnloaded",void 0);_.x([_.V(),_.S("design:type",String)],Qr.prototype,"objectFit",void 0);_.x([_.V(),_.S("design:type",String)],Qr.prototype,"objectPosition",void 0);_.x([_.V(),_.S("design:type",String)],Qr.prototype,"preferredThumbnail",void 0);_.x([_.V(),_.S("design:type",Boolean)],Qr.prototype,"preserveHeight",void 0);_.x([_.V(),_.S("design:type",Boolean)],Qr.prototype,"preserveWidth",void 0);
_.x([_.V({value:!0}),_.S("design:type",Boolean)],Qr.prototype,"useWidth",void 0);_.x([_.V({value:function(){return!_.IP("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.S("design:type",Boolean)],Qr.prototype,"shouldRenderLazy",void 0);_.x([_.V(),_.S("design:type",Number)],Qr.prototype,"width",void 0);_.x([_.cL({is:"yt-image",disableElementRegistration:!0})],Qr);
_.y(Qr,"yt-image",function(){if(XSR===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);m.content.insertBefore(xxX().content.cloneNode(!0),m.content.firstChild);
XSR=m}m=XSR;return m},{mode:2});var aE=function(){return _.d.apply(this,arguments)||this};
_.n(aE,_.d);aE.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var m=_.c8(this.data.onVisibleCommand);m&&this.ytComponentBehavior.resolveCommand(m)}};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],aE.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],aE.prototype,"ytVisibilityBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aE.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],aE);
_.y(aE,"yt-bumper-user-edu-content-view-model",function(){if(xHB===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;fIl===void 0&&(fIl=document.createElement("template"));var W=fIl;K.call(G,W.content.cloneNode(!0),m.content.firstChild);xHB=m}m=xHB;return m},{mode:0});var RtR;var UxX,ztS=function(){if(UxX!==void 0)return UxX;var m=document.createElement("template");_.b(m,'\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="countdown style-scope yt-creator-goal-progress-flow-view-model" target-timestamp="[[endTimestamp]]"></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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;RtR===void 0&&(RtR=document.createElement("template"));var W=RtR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return UxX=m};var lxX;_.oE={};lxX=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"]);_.oE.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var m=this.getContext_();return m?m.getTaskManager():_.Fu},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var m=_.Zw(this.hostElement,"yt-get-context-provider",{});m.detail&&m.detail.contextProvider?this.cachedProviderNode_=m.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return lxX.has(this.hostElement.localName)},
getNetworkManager:function(){var m=this.getContext_();if(m)return m.getNetworkManager()}};var Qc9,BQo,TQB,MKX;_.na=function(m){var G=BQo.get(m);if(G&&(G=G.pop()))return MKX++,G;TQB++;try{var K=document.createElement(m)}catch(W){throw new _.cw("ElementPool failed to create element",m,W.message);}return K};
Qc9=function(m){var G=m.is;if(G){var K=BQo.get(G);K||(K=[],BQo.set(G,K));var W=_.E8("ELEMENT_POOL_CONFIG")||{};K.length>=(W[G]!==void 0?W[G]:_.E8("ELEMENT_POOL_DEFAULT_CAP",0))||K.push(m)}else _.nc(new _.cw("Element pool should only handle custom elements:",m.nodeName))};
BQo=new Map;TQB=0;MKX=0;var CN=new WeakMap,FJd=new WeakMap;var ieG;_.bp=function(m,G,K){K=K===void 0?_.AA():K;this.JSC$14209_defaultPriority=m;this.signal=G;this.scheduler=K;this.nextJobDescriptor=0;this.JSC$14209_parkedJobs=[];this.scheduledJobs=new Map};
_.vq=function(m,G){if(G){var K=_.tf();m.signal&&!_.Fi(K,m.signal)?(K.addListener(m.signal,function(){m.processSignal()}),m.JSC$14209_parkedJobs.push({job:G,
priority:void 0})):m42(m,G)}};
ieG=function(m,G){if(G!==m.JSC$14209_defaultPriority){m.JSC$14209_defaultPriority=G;for(var K=_.g(m.scheduledJobs.values()),W=K.next();!W.done;W=K.next())W=W.value,m.scheduler.cancelJob(W.jobId),W.jobId=m.scheduler.addJob(W.jobWrapper,G)}};
_.bp.prototype.flushJobs=function(){ieG(this,10);this.processSignal()};
_.bp.prototype.cancel=function(){for(var m=_.g(this.scheduledJobs),G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;this.scheduler.cancelJob(K.jobId);this.scheduledJobs.delete(G)}this.JSC$14209_parkedJobs=[]};
_.bp.prototype.processSignal=function(){for(var m=_.g(this.JSC$14209_parkedJobs),G=m.next();!G.done;G=m.next())G=G.value,m42(this,G.job,G.priority);this.JSC$14209_parkedJobs=[]};
var m42=function(m,G,K){K=K||m.JSC$14209_defaultPriority;if(K===10)IC(G);else{var W=m.nextJobDescriptor++,L=function(){G();m.scheduledJobs.delete(W)},A=m.scheduler.addJob(L,K);
m.scheduledJobs.set(W,{jobWrapper:L,jobId:A,priority:K})}};var GTC;_.$P={};GTC={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.$P.YtRendererstamperBehavior=[_.oE.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 m in this.stampDom){var G=this.stampDom[m];G&&G.id&&this.addReactiveSchema({type:"observe",method:{methodName:NoM(G.id),args:[{type:"wildcard",path:m}]}})}else{(m=(this.constructor.generatedFrom||this).observers)||(m=[]);for(G in this.stampDom){var K=this.stampDom[G];K&&K.id&&m.push(NoM(K.id)+"("+G+".*)")}this.constructor.generatedFrom.observers=m}},
addStampDomObserverFns_:function(){for(var m in this.stampDom){var G=this.stampDom[m];G.id?(this[NoM(G.id)]=this.rendererStamperObserver_.bind(this,m,G.id),this.hasDataPath_[m]=!1):(G=new _.cw("Bad rendererstamper config",this.is+":"+m),_.am(G))}},
rendererStamperObserver_:function(m,G,K){if(K.path==m){if(K.value===void 0&&!this.hasDataPath_[m])return;this.hasDataPath_[m]=K.value!==void 0}this.rendererStamperApplyChangeRecord_(m,G,K)},
rendererStamperApplyChangeRecord_:function(m,G,K){var W=this.renderJobsMap_[G],L=null;m==K.path?(K=K.value,_.XP(K)||(K=K===void 0||K===null?[]:[K]),m=this.stampDom[m],m.mapping&&(L=this.stampDomArray_.bind(this,K,G,m.mapping,m.reuseComponents,m.events,m.stamperStableList)),W&&W.cancel(),K=m.usePageScheduler?this.getTaskManager():void 0,W||m.initialRenderPriority==void 0)?m.renderPriority==void 0||W||(W=new _.bp(m.renderPriority,m.waitForSignal,K),this.renderJobsMap_[G]=W):(W=new _.bp(m.initialRenderPriority,
m.waitForSignal,K),this.renderJobsMap_[G]=W,L=function(A,O){A();ieG(O,10)}.bind(this,L,W)):L=m+".splices"==K.path?this.stampDomArraySplices_.bind(this,m,G,K.value):this.forwardRendererStamperChanges_.bind(this,m,G,K);
W?_.vq(W,L):L()},
forwardRendererStamperChanges_:function(m,G,K){var W=K.path.slice(m.length+1),L=this.getStampContainer_(G),A=W.indexOf("."),O=W.substring(0,A),c=!1,u=0,h=parseInt(O,0);if(O[0]=="#"){c=parseInt(O.substring(1),0);h=this.get(m);var J=this.get([m,O]);h[c]==J?u=c:u=h.indexOf(J);c=!0}else isNaN(h)||(u=h,c=!0);c&&(W=W.substring(O.length+1),A=W.indexOf("."));O=this.polymerDom(L).children[u];var N;if(L=(N=O==null?void 0:O.polymerController)!=null?N:O)W="data"+W.slice(A),typeof L.notifyPath!=="function"?_.nc(new _.cw("notifyPath missing",
this.is+": "+m+", "+G)):K.value?L.notifyPath(W,K.value):L.notifyPath(W)},
stampDomArraySplices_:function(m,G,K){if(K&&K.indexSplices){var W=this.getStampContainer_(G);if(W){for(var L=this.polymerDom(W),A=teJ(this.stampDom[m].reuseComponents),O=K.indexSplices.length,c=0;c<O;c++){for(var u=K.indexSplices[c],h=L.children[u.index],J=u.removed.length;J>0;J--)h&&h.parentElement&&(this.polymerDom(h.parentElement).removeChild(h),A&&Qc9(h),h=L.children[u.index]);J=this.stampDom[m].mapping;for(var N=u.index+u.addedCount,D=document.createDocumentFragment(),t=A,a=u.index;a<N;a++){var v=
u.object[a],I=JN6(J,v);if(I){var Z=J[I];v=v[I];I=this.getComponentName_(Z,v);var k=h?CN.has(h):!1;t&&h&&h.is==I&&k?(I=h,this.telemetry_.reuse++,h=h.nextElementSibling):t&&h&&k?(I=this.createComponent_(Z,v,A),k=this.polymerDom(h).nextElementSibling,L.insertBefore(I,k),opo(this.is,L,h,A),h=k):(t=!1,I=this.createComponent_(Z,v,A),D.appendChild(I));this.deferRenderStamperBinding_(I,Z,v)}else Z=new _.cw("Unimplemented type",m,G,W.tagName,Object.keys(v)[0]),_.am(Z)}L.insertBefore(D,h)}this.flushRenderStamperComponentBindings_();
this.stampDom[m].events&&_.Zw(this.hostElement,"yt-rendererstamper-finished",{container:W})}else m=new _.cw("Container object not found",G,this.hostElement?this.hostElement.is:""),_.am(m)}},
stampDomArray_:function(m,G,K,W,L,A){var O=this.getStampContainer_(G);if(O)if(G=this.polymerDom(O),W=teJ(W),m){var c=0,u=0,h;if(A=A===void 0?_.IP("STAMPER_STABLE_LIST",!1):A||!1)for(h=G.firstElementChild;h&&!CN.has(h)&&m.length>u;){A=m[u];var J=JN6(K,A);if(J){if(this.getComponentName_(K[J],A[J])!=h.is){var N=this.createComponent_(K[J],A[J],W),D=this.polymerDom(h).nextElementSibling;D?G.insertBefore(N,D):G.appendChild(N);opo(this.is,G,h,W);h=N}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(h,
K[J],A[J]);c++;u++;h=this.polymerDom(h).nextElementSibling}else u++}bEF(this.is,G,c,W);c=h;if(m.length>u){A=document.createDocumentFragment();for(J=m.length;u<J;u++)if(N=m[u],D=JN6(K,N))h=this.createComponent_(K[D],N[D],W),this.deferRenderStamperBinding_(h,K[D],N[D]),A.appendChild(h);c&&this.polymerDom(c).parentNode&&h&&!CN.has(h)?G.insertBefore(A,c):G.appendChild(A)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();L&&_.Zw(this.hostElement,"yt-rendererstamper-finished",
{container:O})}else bEF(this.is,G,0,W);else m=new _.cw("Container object not found",G,this.hostElement?this.hostElement.is:""),_.am(m)},
polymerDom:function(m){return this.minimizePipBreakages?m:_.TP(m)},
getStampContainer_:function(m){return this.$&&this.$[m]||_.VL(this.hostElement).querySelector("#"+m)},
getComponentName_:function(m,G){return typeof m==="string"?m:m.matcher?m.matcher.call(this,G):m.component},
createComponent_:function(m,G,K){m=this.getComponentName_(m,G);try{var W=sKV.has(m);if(K&&!W){var L=_.na(m);try{_.eb(L)}catch(A){K="Failed to clear styles for "+m+".",A.message&&(K+=" Original error: "+A.message),_.nc(new _.cw(K))}}else L=document.createElement(m)}catch(A){return L="YtRendererStamperBehavior failed to create "+m+".",A.message&&(L+=" Original description: "+A.message),A.message="YtRendererStamperBehavior failed to create element",_.bO(A,L),GTC.hasOwnProperty(m)?_.nc(A):_.am(A),document.createElement("SPAN")}this.telemetry_.create++;
return L},
deferRenderStamperBinding_:function(m,G,K){this.deferredBindingTasks_.push({component:m,typeOrConfig:G,data:K})},
flushRenderStamperComponentBindings_:function(){for(var m=0,G=this.deferredBindingTasks_.length;m<G;m++){var K=this.deferredBindingTasks_[m];if(!K)break;npG(this,K.component,K.typeOrConfig,K.data)}this.deferredBindingTasks_.length=0}}];_.sh(_.P(function(m){function G(){K().seconds&&A(N0v({seconds:Number(K().seconds)-Date.now()/1E3}))}
var K=m.targetTimestamp;m=m.className;var W=_.g(_.g_("",void 0,"U1Q8Ae")),L=W.next().value,A=W.next().value;_.nn(function(){G();var O=setInterval(function(){G()},1E3);
_.sZ(function(){clearInterval(O)})});
return _.r("yt-countdown",{class:_.VO("ytCountDownHost",m)},_.r("div",null,L))},"z"),"yt-countdown",{props:{targetTimestamp:_.Dd,
className:_.nN}});_.sH=new _.sX("KEY_MANAGER_TOKEN");var jcV={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.qm=_.P(function(m){var G=_.Q3("a",m.ref),K=m.aTagConfig?m.aTagConfig:_.pT(function(){var W,L,A,O,c;var u=(c=_.c8((A=m.command)==null?void 0:A.call(m)))!=null?c:(O=m.command)==null?void 0:O.call(m);return _.rn({innertubeCommand:u,skipOnClick:(W=m.skipOnClick)==null?void 0:W.call(m),defaultTarget:(L=m.target)==null?void 0:L.call(m)})||{}},void 0,"TAvz0");
_.$O(function(){_.F("mweb_get_endpoint_from_atag_command")||(G.value._data=K()._data,G.value.params=K().params)},"dcjvAe");
return _.r("a",{el:G,href:function(){return K().href$},
rel:function(){return K().rel$},
class:function(){var W,L;return(L=K().className)!=null?L:(W=m.className)==null?void 0:W.call(m)},
style:function(){var W;if((W=m.style)==null?0:W.call(m))return m.style();var L;return((L=m.disabled)==null?0:L.call(m))?"pointer-events:none":""},
"aria-haspopup":function(){return!!K()["aria-haspopup$"]},
"force-new-state":P8(function(){return K()["force-new-state$"]}),
title:P8(function(){var W,L;return(L=K().title$)!=null?L:(W=m.title)==null?void 0:W.call(m)}),
role:P8(function(){var W;return((W=m.role)==null?void 0:W.call(m))||K().role$}),
target:P8(function(){return K().target$}),
dir:P8(function(){var W;return((W=m.dir)==null?void 0:W.call(m))||K().dir}),
tabindex:function(){var W;return K().tabindex$?Number(K().tabindex$):(W=m.tabIndex)==null?void 0:W.call(m)},
"aria-hidden":function(){var W,L;return(L=K()["aria-hidden$"])!=null?L:(W=m.ariaHidden)==null?void 0:W.call(m)},
"aria-label":function(){var W,L;return(L=K()["aria-label$"])!=null?L:(W=m.ariaLabel)==null?void 0:W.call(m)},
"aria-current":m.ariaCurrent,"aria-disabled":m.disabled,"aria-labelledby":m.ariaLabelledby,"aria-describedby":m.ariaDescribedby,"aria-selected":m.ariaSelected,"tab-identifier":m.tabIdentifier,"on:pointerdown":_.dn(function(W){var L,A;return void((A=(L=K()).onpointerdown)==null?void 0:A.call(L,W))}),
"on:click":_.dn(function(W){var L,A;(A=(L=K()).onclick)==null||A.call(L,W);var O;(O=m.onClick)==null||O.call(m,W)}),
"on:focusin":_.dn(function(W){var L;(L=m.onFocusin)==null||L.call(m,W)}),
"on:focusout":_.dn(function(W){var L;(L=m.onFocusout)==null||L.call(m,W)})},m.children)},"B");var yNo={duration:1E3,easing:"ease",fill:"forwards"};Ptv.componentType=DM;var xnf={duration:1E3,easing:"ease",fill:"forwards"},LA2=_.P(function(m){var G=_.Q3("animated-rolling-character"),K=void 0,W=function(){var c,u;return oQ((c=m.character)==null?void 0:c.call(m))||oQ((u=m.previousCharacter)==null?void 0:u.call(m))},L=_.g(_.g_(0,void 0,"CYT8Ob")),A=L.next().value,O=L.next().value;
_.nn(function(){if(window.ResizeObserver&&_.F("web_fix_rolling_numbers_zoom_safari")){var c=new _.yO(function(){var h,J,N=Math.round(((J=(h=G.value.querySelector("div"))==null?void 0:h.getBoundingClientRect().height)!=null?J:0)*100)/100;N&&O(N)},500),u=new ResizeObserver(function(){c.fire()});
u.observe(G.value);_.sZ(function(){u.disconnect();c.dispose()})}});
_.$O(function(){var c=_.F("web_fix_rolling_numbers_zoom_safari")?A:m.marginMultiplier;if(c()){var u;(u=K)==null||u.cancel();if(W()){var h;u=((h=m.previousCharacter)==null?0:h.call(m))?Number(m.previousCharacter())+10:m.rollUp()?0:30;var J;if((J=m.shouldAnimate)==null||!J.call(m)){var N,D;u-=ftJ((N=m.character)==null?void 0:N.call(m),(D=m.previousCharacter)==null?void 0:D.call(m),m.rollUp(),u)}}else{u=m.rollUp()?0:2;var t;(t=m.shouldAnimate)!=null&&t.call(m)||(h=u,J=m.rollUp()?-1:1,u=h-J)}G.value.style.marginTop=
"-"+u*c()+"px";var a;if((a=m.shouldAnimate)==null?0:a.call(m)){var v,I;K=X7v(G.value,(v=m.character)==null?void 0:v.call(m),(I=m.previousCharacter)==null?void 0:I.call(m),m.rollUp(),u,W(),c())}else{var Z;G.value.style.display=((Z=m.character)==null?0:Z.call(m))?"":"none"}}},"CA6Pmf");
return _.r("animated-rolling-character",{el:G,class:"animatedRollingCharacterHost"},_.r(_.p,{cond:W,then:function(){return _.r(KAG,null)},
else:function(){return _.r(WA4,{character:m.character})}}))},"E");
LA2.idomCompat=!0;var SFF=_.F("web_enable_sink_animated_rolling_character_and_number")?LA2:Ptv,Ay2=_.F("web_enable_sink_animated_rolling_character_and_number")?LA2:eQf(Ptv),KAG=_.P(function(){for(var m=[],G=1;G<30;G++)m.push(_.r("div",null,G%10));return _.r(_.zL,null,_.r("div",null,"\u00a0"),m,_.r("div",null,"\u00a0"))},"F"),WA4=_.P(function(m){var G=m.character;
return _.r(_.zL,null,_.r("div",null,"\u00a0"),_.r(_.p,{cond:function(){return!(G==null?0:G())||_.Od(G==null?void 0:G())},
then:function(){return _.r("div",null,"\u00a0")},
else:function(){return _.r("div",null,G)}}),_.r("div",null,"\u00a0"))},"G");RQo.componentType=DM;var wDG=_.P(function(m){var G=void 0,K=void 0,W=function(){var A;return((A=m.fontSizeMultiplier)==null?0:A.call(m))?m.heightPx()*m.fontSizeMultiplier():m.heightPx()},L=_.pT(function(){if(!m.numberText())return[];
var A,O,c=((A=m.forceRollUp)==null?void 0:A.call(m))||!K||!((O=m.numberValue)==null?0:O.call(m))||K<m.numberValue(),u,h=m.numberText();A=W();O=!((u=m.shouldAnimate)==null||!u.call(m));u=[];var J=0,N=0,D=(G?G.replace(/\D/g,"").length:0)-(h?h.replace(/\D/g,"").length:0),t=G?G.split(/(\d)/).filter(Boolean):[];for(h=h.split(/(\d)/).filter(Boolean);D<0;){var a=h[N];u.push({character:a,rollUp:c,marginMultiplier:A,shouldAnimate:O});N++;oQ(a)&&D++}for(;J<D;)a=t[J],u.push({previousCharacter:a,rollUp:c,marginMultiplier:A,
shouldAnimate:O}),J++,oQ(a)||D++;for(;N<h.length;)D=h[N],a=t[J],oQ(D)===oQ(a)?(N++,J++):oQ(D)?(J++,D=void 0):oQ(a)&&(N++,a=void 0),u.push({character:D,previousCharacter:a,rollUp:c,marginMultiplier:A,shouldAnimate:O});G=m.numberText();var v;K=(v=m.numberValue)==null?void 0:v.call(m);return u},void 0,"kWiBv");
return _.r("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return m.numberText()?["height: "+W()+"px;","line-height: "+m.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.r(_.D0,{each:L,keyBy:"INDEX"},function(A){return _.r(Ay2,{character:function(){return A().character},
previousCharacter:function(){return A().previousCharacter},
marginMultiplier:function(){return A().marginMultiplier},
rollUp:function(){return A().rollUp},
shouldAnimate:function(){return A().shouldAnimate}})}))},"H");
wDG.idomCompat=!0;_.gHl=_.F("web_enable_sink_animated_rolling_character_and_number")?wDG:eQf(RQo);var OeG=function(m,G){this.fillAnimation=new Animation(Bos(m),document.timeline);this.strokeAnimation=new Animation(Meo(G),document.timeline)};
OeG.prototype.play=function(){var m,G;(G=(m=this.fillAnimation).play)==null||G.call(m);var K,W;(W=(K=this.strokeAnimation).play)==null||W.call(K)};
OeG.prototype.cancel=function(){var m,G;(G=(m=this.fillAnimation).cancel)==null||G.call(m);var K,W;(W=(K=this.strokeAnimation).cancel)==null||W.call(K)};_.EH=_.P(function(m){var G=m.model;var K=m.pointerDownEvent;var W=m.pointerUpEvent;var L=m.pointerLeaveEvent;var A=m.hovered;m=_.Q3("yt-touch-feedback-shape");var O=_.Q3("div"),c=_.Q3("div"),u=_.g(_.EQ(function(){return(W==null?0:W())||(L==null?0:L())?!1:!(K==null||!K())||!1})),h=u.next().value,J=u.next().value,N=void 0,D=function(){!N&&c.value&&O.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(N=new OeG(c.value,O.value));
var k;(k=N)==null||k.play()},t=function(){var k;
(k=N)==null||k.cancel()},a=function(){var k;
(k=N)==null||k.cancel()};
_.$O(function(){(W==null?0:W())&&D()},"bg756c");
_.$O(function(){(K==null?0:K())&&t()},"QAes8c");
_.$O(function(){(L==null?0:L())&&a()},"YaFbrc");
u=_.dn(function(){D();J(!1)});
var v=_.dn(function(){t();J(!0)}),I=_.dn(function(){a();
J(!1)});
_.sZ(function(){if(N){var k;(k=N)==null||k.cancel();N=void 0}});
var Z={};h=_.VO("yt-spec-touch-feedback-shape",function(){return ToV(G().color)},function(){return mJ9(G().thumbnailSize,!!G().isExtended)},(Z["yt-spec-touch-feedback-shape--focused"]=function(){return!!G().focused&&!G().disabled},Z["yt-spec-touch-feedback-shape--circular"]=function(){return!!G().circular},Z["yt-spec-touch-feedback-shape--down"]=h,Z["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!G().triggerEvents},Z["yt-spec-touch-feedback-shape--hovered"]=function(){return A==
null?void 0:A()},Z));
return _.r("yt-touch-feedback-shape",{el:m,class:h,style:_.eA({"margin-top":function(){return G().customTopExtend?"-"+G().customTopExtend+"px":void 0}}),
"on:mousedown":v,"on:mouseup":u,"on:pointerleave":I,"on:touchstart":v,"on:touchend":u,"aria-hidden":!0},_.r(_.p,{cond:function(){return!!G().hoverEffect},
then:function(){return _.r("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.eA({"border-radius":function(){return G().borderRadius},
background:function(){var k;if(k=G().hoverEffect){for(var z=[],X=_.g((k==null?void 0:k.lightingTechniques)||[]),f=X.next();!f.done;f=X.next())switch(f.value){case 2:var U=f=void 0,l=void 0,Ls=void 0;z.push("linear-gradient(180deg, "+((f=k)==null?void 0:(U=f.palette)==null?void 0:U.keyLight)+", "+((l=k)==null?void 0:(Ls=l.palette)==null?void 0:Ls.background)+")")}var gd,Qf;z.push((gd=G().hoverEffect)==null?void 0:(Qf=gd.palette)==null?void 0:Qf.background);k=z.join(", ")}else k=void 0;return k}})})}}),
_.r("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.eA({"border-radius":function(){return G().borderRadius},
"border-color":function(){var k,z;return(k=G().touchEffect)==null?void 0:(z=k.palette)==null?void 0:z.background}}),
el:O}),_.r("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.eA({"border-radius":function(){return G().borderRadius},
"background-color":function(){var k,z;return(k=G().touchEffect)==null?void 0:(z=k.palette)==null?void 0:z.background}}),
el:c}))},"L");
_.EH.idomCompat=!0;var cy2={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 Hq=_.Nd();Hq=Hq.toLowerCase();if(_.cJ(Hq,"android")){var Yj2=Hq.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);Yj2&&parseFloat(Yj2[1])<100||Hq.match("("+Object.keys(cy2).join("|")+")")};var ryF=_.P(function(m){return _.r(_.p,{cond:m.aTagConfig,then:function(G){return _.r(_.qm,{aTagConfig:G,disabled:m.disabled,className:m.className,style:m.style,title:m.title,ariaLabel:m.ariaLabel,ariaCurrent:function(){var K,W;return((K=m.toggleable)==null?void 0:K.call(m))&&((W=m.toggled)==null?void 0:W.call(m))},
ref:m.ref},m.children)},
else:function(){return _.r("button",{el:_.aC(m.ref),"on:click":_.dn(function(G){var K;return(K=m.onClick)==null?void 0:K.call(m,G)}),
class:m.className,title:m.title,style:m.style,disabled:m.disabled,"aria-pressed":function(){var G,K;return((G=m.toggleable)==null?0:G.call(m))?!((K=m.toggled)==null||!K.call(m)):void 0},
"aria-label":m.ariaLabel,"aria-disabled":m.visiblyDisabled,"aria-hidden":m.ariaHidden,tabindex:m.tabIndex},m.children)}})},"M"),hso=_.P(function(m){var G=m.data;
var K=m.hasIconLeading;var W=m.hasIconLeadingTrailing;var L=m.hasIconTrailing;var A=m.iconButton;var O=m.iconClassName;var c=m.secondaryIconClassName;var u=m.icon;var h=m.secondaryIcon;var J=m.textContentClassName;return _.r(IE,{className:"",style:"display: inherit; justify-content: center"},_.r(_.p,{debugInstance:"V4z1Uc",cond:function(){return u&&(K()||W()||(A==null?void 0:A()))},
then:function(){return _.r(IE,null,_.r("div",{class:O,"aria-hidden":"true"},u==null?void 0:u()))}}),_.r(_.p,{debugInstance:"ok3btb",
cond:function(){return(G().buttonText||G().animatedTextProps||G().formattedButtonText)&&!(A==null?0:A())},
then:function(){return _.r(IE,null,_.r(ud2,{className:J,iconPosition:function(){return G().iconPosition},
text:function(){return G().buttonText},
oneOffCustomTextWrap:function(){return G().oneOffCustomTextWrap},
formattedButtonText:function(){return G().formattedButtonText},
animatedTextProps:function(){return G().animatedTextProps}}))}}),_.r(_.p,{debugInstance:"DO5Rz",
cond:L,then:function(){return _.r(IE,null,_.r("div",{class:O},u==null?void 0:u()))}}),_.r(_.p,{debugInstance:"bnojSc",
cond:W,then:function(){return _.r(IE,null,_.r("div",{class:c},h==null?void 0:h()))}}),_.r(_.p,{debugInstance:"HN3kad",
cond:function(){return!G().disabled&&!0},
then:function(){return _.r(_.EH,{model:function(){var N=G();return{color:N.style==="overlay-dark"?4:N.style==="overlay"?N.type==="filled"?4:3:N.type==="filled"||N.style==="call-to-action-inverse"||N.style==="mono-inverse"?2:1}}})}}))},"N"),ud2=_.P(function(m){var G=function(){var K,W;
return((K=m.iconPosition)==null?void 0:K.call(m))==="icon-with-label"||((W=m.oneOffCustomTextWrap)==null?void 0:W.call(m))};
return _.r("div",{class:m.className,"aria-hidden":function(){var K,W,L;return((K=m.ariaHidden)==null?void 0:K.call(m))&&(!((W=m.animatedTextProps)==null||!W.call(m))||!((L=m.formattedButtonText)==null||!L.call(m)))}},_.r(_.tw,null,_.r(_.Jw,{when:function(){var K;
return(K=m.animatedTextProps)==null?void 0:K.call(m)}},function(){return _.r(_.gHl,{numberText:function(){return m.animatedTextProps().numberText},
numberValue:function(){return m.animatedTextProps().numberValue},
heightPx:function(){return m.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return m.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return m.animatedTextProps().shouldAnimate},
forceRollUp:function(){return m.animatedTextProps().forceRollUp}})}),_.r(_.Jw,{when:function(){var K;
return(K=m.formattedButtonText)==null?void 0:K.call(m)}},function(){return _.r(_.Nm,{text:function(){return Object.assign({},m.formattedButtonText(),{lineBreakMode:G()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":m.formattedButtonText().lineBreakMode,
alignment:G()?"TEXT_ALIGNMENT_CENTER":m.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!G()}})}),_.r(_.Jw,{when:function(){var K,W;
return((K=m.iconPosition)==null?void 0:K.call(m))==="icon-with-label"&&((W=m.text)==null?void 0:W.call(m))}},function(){return _.r(_.Nm,{text:function(){return{content:m.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.r(_.NC,null,function(){return m.text})))},"O"),pDX=_.P(function(m){return _.r(_.p,{debugInstance:"kM7Sgc",
cond:m.hasLabel,then:function(){var G;return _.r("label",{class:m.className},m.children,(G=m.textContent)==null?void 0:G.call(m))},
else:function(){return m.children}})},"P"),IE=_.P(function(m){return m.children},"Q");var JyG=_.P(function(m){function G(){A(void 0);c(void 0);h(void 0)}
var K=_.aC(),W=_.g(_.g_(void 0,void 0,"Ug77pc")),L=W.next().value,A=W.next().value;W=_.g(_.g_(void 0,void 0,"XGf7Zb"));var O=W.next().value,c=W.next().value,u=_.g(_.g_(void 0,void 0,"w55oqd"));W=u.next().value;var h=u.next().value;u=_.g(_.g_(0,void 0,"rBgpzc"));var J=u.next().value,N=u.next().value;u=_.dn(function(){switch(J()){case 1:N(2);break;case 3:var t,a;(a=(t=K.value).hidePopover)==null||a.call(t);N(0);G()}});
_.$O(function(){if(m.show()){var t;A((t=m.children)==null?void 0:t.call(m));var a;c((a=m.location)==null?void 0:a.call(m));var v;h((v=m.classNames)==null?void 0:v.call(m));switch(J()){case 0:var I,Z;(Z=(I=K.value).showPopover)==null||Z.call(I);N(1);break;case 3:N(1);var k,z;(z=(k=K.value).hidePopover)==null||z.call(k);var X,f;(f=(X=K.value).showPopover)==null||f.call(X)}}else switch(J()){case 2:N(3);break;case 1:var U,l;(l=(U=K.value).hidePopover)==null||l.call(U);G();N(0)}},"Z8V4Qb");
_.bX(function(){});
var D={};return _.r("yt-popover",{popover:"manual",el:K,style:_.eA({left:function(){var t;return(t=O())==null?void 0:t.left},
top:function(){var t;return(t=O())==null?void 0:t.top},
bottom:function(){var t;return(t=O())==null?void 0:t.bottom},
right:function(){var t;return(t=O())==null?void 0:t.right}}),
class:_.VO("ytPopoverComponentHost",W,(D.ytPopoverComponentHostClosing=function(){return J()===3},D.ytPopoverComponentHostSeeThrough=function(){var t;
return((t=m.seeThrough)==null?void 0:t.call(m))===!0},D)),
"on:animationend":u},L)},"S");var NXR={left:"0px",right:"auto",top:"0px",bottom:"auto"},D4i=function(){var m=this;this.registerTooltipElement=function(K){var W;m.tooltipElement=(W=K.querySelector("yt-popover"))!=null?W:void 0};
var G=_.g(_.g_(void 0,void 0,"EIh5sc"));this.state=G.next().value;this.setState=G.next().value;G=_.g(_.g_(void 0,void 0,"PC1M0b"));this.schedulerJobID=G.next().value;this.setSchedulerJobID=G.next().value},ORo=function(m,G){var K=Xm,W=_.Fu.addJob(function(){var L=tYi(K,m,G);
K.currentConfig=G;K.setState({text:G.text,location:_.F("web_tooltip_location_fix")?void 0:L,anchor:m,offset:G.offset,style:G.style})},4,G.delay);
K.setSchedulerJobID(W)},cvP=function(){var m=Xm,G=m.schedulerJobID();
G&&(_.Fu.cancelJob(G),m.setSchedulerJobID(void 0));m.setState(void 0);m.currentConfig=void 0};
D4i.prototype.notify=function(m,G){var K;((K=this.state())==null?void 0:K.anchor)===m&&(K=tYi(this,m,G),this.currentConfig=G,this.setState({text:G.text,location:_.F("web_tooltip_location_fix")?void 0:K,anchor:m,offset:G.offset,style:G.style}))};
var tYi=function(m,G,K){var W=G.getBoundingClientRect();G=window.innerWidth;var L=window.innerHeight,A=K.location,O=K.offset;K=K.text;if(m=m.tooltipElement){var c=getComputedStyle(m);m=c.font;var u=xE(c.lineHeight),h=xE(c.paddingLeft),J=xE(c.paddingRight),N=xE(c.paddingTop);c=xE(c.paddingBottom);var D=document.createElement("canvas").getContext("2d");D.font=m;K={width:D.measureText(K).width+h+J,height:u+N+c}}else K=void 0;m=K;if(!m)return NXR;K=m.width;m=m.height;h=O+m;N=O+K;u=W.top>=h;h=L-W.bottom>=
h;J=W.left>=N;N=G-W.right>=N;c=A;switch(A){case "top":!u&&h&&(c="bottom");break;case "bottom":!h&&u&&(c="top");break;case "left":!J&&N&&(c="right");break;case "right":!N&&J&&(c="left")}switch(c){case "top":A=W.left+W.width/2-K/2;W=W.top-m-O;break;case "bottom":A=W.left+W.width/2-K/2;W=W.bottom+O;break;case "left":A=W.left-K-O;W=W.top+W.height/2-m/2;break;case "right":A=W.right+O;W=W.top+W.height/2-m/2;break;default:A=W.left+W.width/2-K/2,W=W.bottom+O}O=Object.assign({},NXR);A+K>G?(O.right="0px",O.left=
"auto"):(O.left=Math.round(Math.max(0,A)+window.scrollX)+"px",O.right="auto");W+m>L?(O.bottom="0px",O.top="auto"):(O.top=Math.round(Math.max(0,W)+window.scrollY)+"px",O.bottom="auto");return O};var Xm;Xm=new D4i;_.FAo=_.P(function(){var m=_.pT(function(){var L;return(L=Xm.state())==null?void 0:L.anchor},void 0,"tiGUn"),G=_.pT(function(){var L;
return(L=Xm.state())==null?void 0:L.text},void 0,"TA2GQe"),K=_.pT(function(){var L;
return(L=Xm.state())==null?void 0:L.style},void 0,"ucvFsf"),W=_.F("web_tooltip_location_fix")?_.pT(function(){var L=m();
var A=Xm.currentConfig;if(L&&A)return tYi(Xm,L,A)},void 0,"EpDz6"):_.pT(function(){var L;
return(L=Xm.state())==null?void 0:L.location},void 0,"aRJtfd");
return _.r("yt-tooltip",{class:"ytTooltipContainerHost",el:_.aC(Xm.registerTooltipElement),"aria-hidden":"true"},_.r(JyG,{classNames:function(){switch(K()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:W,show:function(){return!!G()&&!!W()},
seeThrough:!0},G))},"T");var Gnd=zH("stamper-context");_.jd=_.P(function(m){var G=m.data;var K=m.icon;var W=m.iconName;var L=m.animateIcon;var A=m.secondaryIcon;var O=m.secondaryIconName;var c=m.focusedOverride;var u=m.clientOnlyWizTooltipsEnabled;rvP();var h=iRJ(G),J=h.size,N=h.style;m=h.disabled;var D=h.onTap,t=h.alignByText,a=h.aTagConfig,v=h.customColors,I=h.segmentedPosition,Z=h.toggled,k=h.toggleable,z=h.accessibilityLabel,X=h.onToggle,f=h.iconPosition,U=h.oneOffCustomTextWrap,l=h.disableTextEllipsis,Ls=h.disableBackdropFilter,gd=h.tooltipText,
Qf=h.ariaHidden,JV=h.tabIndex,DF=h.buttonText,kG=h.formattedButtonText,eo=h.animatedTextProps,xG=h.onClickRateLimitMs,Ji=LlG(G,K,A,W,O,c,L),rK=Ji.type;K=Ji.shouldFocus;W=Ji.hasIconLeading;L=Ji.hasIconTrailing;var So=Ji.hasIconLeadingTrailing,ti=Ji.hasIconOnly;A=Ji.hasIconOnly40;var bS=Ji.hasIconWithLabel;O=Ji.iconButton;var NG=Ji.visiblyDisabled;c=Ji.overrideSmallSizeIcon;var EO=Ji.iconToRender;Ji=Ji.secondaryIconToRender;var gz=_.g(Ywd(gd,h.tooltipShape)).next().value,ps=function(Eo){D==null||D(Eo);
k()&&(X==null||X(Eo))},ZF=_.pT(function(){return xG==null?void 0:xG()},void 0,"siKywb"),DP=_.pT(function(){return ZF()?R_B(ps,ZF()):ps},void 0,"wDTcN");
h={};var lS={};return _.r(pDX,{className:_.VO("yt-spec-button-shape-with-label",(h["yt-spec-button-shape-with-label--is-overlay"]=function(){return N()==="overlay"||N()==="overlay-dark"},h)),
hasLabel:bS,textContent:function(){return _.r(ud2,{text:DF,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:U,iconPosition:f,formattedButtonText:kG,animatedTextProps:eo})}},_.r(ryF,{aTagConfig:a,
className:_.VO("yt-spec-button-shape-next",function(){return Avf(rK())},function(){return NG()?void 0:wdF(N())},function(){return ghJ(J())},(lS["yt-spec-button-shape-next--disabled"]=NG,lS["yt-spec-button-shape-next--focused"]=K,lS["yt-spec-button-shape-next--icon-trailing"]=L,lS["yt-spec-button-shape-next--icon-leading"]=W,lS["yt-spec-button-shape-next--icon-leading-trailing"]=So,lS["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return So()&&!(DF()||kG())},lS["yt-spec-button-shape-next--icon-button"]=
function(){return ti()||bS()},lS["yt-spec-button-shape-next--icon-only-default"]=A,lS["yt-spec-button-shape-next--align-by-text"]=t,lS["yt-spec-button-shape-next--segmented-start"]=function(){return I()==="start"},lS["yt-spec-button-shape-next--segmented-end"]=function(){return I()==="end"},lS["yt-spec-button-shape-next--override-small-size-icon"]=c,lS["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=U,lS["yt-spec-button-shape-next--disable-text-ellipsis"]=l,lS["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Ls()&&!_.F("web_disable_backdrop_filter")},lS)),
style:function(){var Eo=v();if(Eo){var iq=Eo.color;var jy=Eo.backgroundColor;Eo=Eo.borderColor;var T4="";iq&&(T4+="color: "+iq+";");jy&&(T4+="background-color: "+jy+";");Eo&&(T4+="border-color: "+Eo+";");iq={style:T4}}else iq={};return iq.style},
onClick:function(Eo){DP()(Eo)},
disabled:m,ariaLabel:z,toggleable:k,toggled:Z,title:function(){return(u==null?0:u())||!gd()?"":gd()},
visiblyDisabled:NG,ariaHidden:Qf,tabIndex:JV,ref:function(Eo){(u==null?0:u())&&gz(Eo)}},_.r(hso,{data:G,
hasIconLeading:W,hasIconLeadingTrailing:So,hasIconTrailing:L,iconButton:O,icon:EO,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:Ji})))},"V");
_.jd.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.kP=_.P(function(m){var G=m.data;var K=m.className;var W=m.style;var L=m.useOutlinedIcon;var A=m.buttonOverrides;var O=m.animatedTextProps;var c=m.onClick;var u=m.target;var h=_.Q3("button-view-model",function(f){f.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var U=G().targetId;U&&_.xV(_.Xi(),U,f);return function(){f8(_.Xi(),f)}}),J=function(){return G().iconName},N=function(){var f;
return(f=G())==null?void 0:f.entityKey},D=_.RC(function(f){a:{var U=N(),l=G().buttonEntitySelectorType;
if(l&&U)switch(l){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":f=(f=_.ZJ(f,U))?{isHidden:f.adsState==="ADS_STATE_NONE"||f.adsState==="ADS_STATE_UNKNOWN"}:{isHidden:!0};break a;default:f={isHidden:!1};break a}f=void 0}return f}),t,a=(t=_.xS().resolve(_.fn(_.l_)))==null?void 0:t(),v=function(){var f=G();
var U=A==null?void 0:A(),l=O==null?void 0:O(),Ls=u==null?void 0:u();if(f){var gd=Fl6(f.type);var Qf=!!f.title||!!f.titleFormatted;var JV=!(!f.iconName&&!f.iconImage);Qf=JV&&!Qf?"icon-only":JV?f.iconTrailing||f.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;Qf==="icon-only-40"&&(gd="text");var DF;JV=(DF=U==null?void 0:U.state)!=null?DF:QZP(f.state);var kG,eo=(kG=U==null?void 0:U.disabled)!=null?kG:f.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||f.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.F("web_button_vm_refactor_disabled")){var xG;eo=(xG=U==null?void 0:U.disabled)!=null?xG:JV==="disabled"}l=l&&l.numberText&&!isNaN(Number(l.numberValue))?l:void 0;kG=Object;xG=kG.assign;DF=f.title;var Ji=f.titleFormatted,rK=f.accessibilityText,So=tXo(f.style),ti=aXM(f.buttonSize);Ls=DJd(f,h,eo,c,Ls);eo=eo&&!f.onDisabledTap;var bS=JvJ(f,h),NG=f.customFontColor,EO=f.customBackgroundColor;var gz=f.customBorderColor;var ps=f.customDarkThemeFontColor,ZF=f.customDarkThemeBackgroundColor,DP=f.customDarkThemeBorderColor;
NG=a&&ps?ps:NG;EO=a&&ZF?ZF:EO;gz=a&&DP?DP:gz;gz={color:NG?_.ce(NG):void 0,backgroundColor:EO?_.ce(EO):void 0,borderColor:gz?_.ce(gz):void 0};if(DP=_.Q(f.tooltipData,SWR)){var lS;EO={text:(lS=DP.tooltipText)!=null?lS:"",location:h5f(DP.placement),style:DP.style}}else EO=void 0;f=xG.call(kG,{},{buttonText:DF,formattedButtonText:Ji,animatedTextProps:l,accessibilityLabel:rK,style:So,type:gd,state:JV,size:ti,iconPosition:Qf,onTap:Ls,disabled:eo,aTagConfig:bS,customColors:gz,tooltipText:f.tooltip,tooltipShape:EO},
U)}else f={style:"mono",type:"text",state:"active",size:"M"};f.focused=k();return f},I=function(){return KlV(v(),!!G().iconName)};
m=_.g(_.g_(!1,void 0,"yZ8hab"));t=m.next().value;var Z=m.next().value,k=t;m=_.dn(function(){var f=_.xS().resolve(_.fn(_.sH));f&&Z(f.isKeyBoardInUse());return!0});
t=_.dn(function(){Z(!1);return!0});
_.$O(function(){var f,U=_.Q(G==null?void 0:(f=G())==null?void 0:f.onVisible,_.Oh);U&&_.YE(U,{disableClickTracking:!0})},"G9MlKd");
var z=function(){var f;return(G==null?0:(f=G())==null?0:f.iconImage)?{sources:[G().iconImage]}:void 0},X=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.r("button-view-model",{el:h,class:_.VO("ytSpecButtonViewModelHost",K),"on:focusin":m,"on:focusout":t},_.r(_.p,{cond:function(){var f,U;return!((U=N()&&G().buttonEntitySelectorType&&((f=D())==null?void 0:f.isHidden))!=null&&U)},
then:function(){return _.r(_.p,{cond:z,then:function(f){return _.r(_.jd,{data:v,icon:function(){return _.r(_.oC,{data:f,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:X})},
else:function(){return _.r(_.jd,{data:v,icon:function(){return _.r(_.fN,{icon:J,active:function(){return(L==null?0:L())?!1:v().toggled},
animateIcon:function(){var f;return!!(W==null?0:(f=W())==null?0:f.animateIcon)},
size:I})},
clientOnlyWizTooltipsEnabled:X})}})}}))},"X");
_.kP.idomCompat={callbacks:{onClick:!0}};_.sh(_.P(function(m){return _.r("yt-button-view-model",{id:m.id,class:_.VO(m.scopingClassName,m.classes),icon:function(){var G;return(G=m.icon)==null?void 0:G.call(m)},
"dialog-dismiss":function(){var G;return((G=m.dialogDismiss)==null?0:G.call(m))?"":void 0}},_.r(_.kP,{data:function(){var G;
return(G=m.data)==null?void 0:G.call(m)},
className:function(){var G;return(G=m.className)==null?void 0:G.call(m)},
style:function(){var G;return(G=m.style)==null?void 0:G.call(m)},
useOutlinedIcon:function(){var G;return(G=m.useOutlinedIcon)==null?void 0:G.call(m)},
buttonOverrides:function(){var G;return(G=m.buttonOverrides)==null?void 0:G.call(m)},
animatedTextProps:function(){var G;return(G=m.animatedTextProps)==null?void 0:G.call(m)},
onClick:function(G){var K;return(K=m.onClick)==null?void 0:K.call(m,G)}}))},"Y"),"yt-button-view-model",{props:{data:_.Dd,
className:_.Dd,style:_.Dd,useOutlinedIcon:_.Dd,buttonOverrides:_.Dd,animatedTextProps:_.Dd,onClick:_.nN,scopingClassName:_.Dd,id:_.Dd,icon:_.Dd,dialogDismiss:_.Dd,classes:_.Dd,target:_.nN}});_.sh(_.P(function(m){var G=m.data;var K=m.id;var W=m.className;var L=m.iconName;var A=m.animateIcon;var O=m.secondaryIconName;m=_.g(_.g_(!1,void 0,"TtJl8"));var c=m.next().value,u=m.next().value,h=function(){var N=_.xS().resolve(_.fn(_.sH));N&&u(N.isKeyBoardInUse())},J=function(){u(!1)};
m=_.Q3("yt-button-shape",function(N){if(_.xS().resolve(_.fn(_.sH)))return N.addEventListener("focusin",h),N.addEventListener("focusout",J),function(){N.removeEventListener("focusin",h);N.removeEventListener("focusout",J)}});
return _.r("yt-button-shape",{el:m,id:K,class:W},_.r(_.p,{cond:G,then:function(){return _.r(_.jd,{data:G,iconName:L,secondaryIconName:O,focusedOverride:c,animateIcon:A})}}))},"Z"),"yt-button-shape",{props:{data:_.Dd,
id:_.Dd,className:_.Dd,iconName:_.Dd,animateIcon:_.Dd,secondaryIconName:_.Dd,clientOnlyWizTooltipsEnabled:_.Dd,disableUpgrade:_.Dd},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Ca=function(){var m=_.d.apply(this,arguments)||this;m.isGoalActive=!0;return m};
_.n(Ca,_.d);Ca.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Ca.prototype.progressBarChanged=function(){var m=_.VL(this.hostElement).querySelector("#progress-bar-progress"),G,K,W,L=(W=Number((G=this.creatorGoalState)==null?void 0:G.currentGoalCount)/Number((K=this.creatorGoalState)==null?void 0:K.totalGoalCount)*100)!=null?W:0,A;m.style.width=((A=Math.min(L,100))!=null?A:0)+"%"};
Ca.prototype.goalStateChanged=function(){var m;this.isGoalActive=((m=this.creatorGoalState)==null?void 0:m.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var G;m={"--yt-progress-bar-color":Dxv((G=this.creatorGoalState)==null?void 0:G.progressBarColor)};_.eb(this.hostElement,m)};
Ca.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.e_.Object.defineProperties(Ca.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var m;return this.isGoalActive&&!((m=this.creatorGoalState)==null||!m.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.creatorGoalState)==null?0:m.endTimestampMs){var G;m=Number((G=this.creatorGoalState)==null?void 0:G.endTimestampMs)/1E3;return{seconds:String(m)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.creatorGoalState)==null?0:m.themedTargetImage){var G;m=_.Q((G=this.creatorGoalState)==null?void 0:G.themedTargetImage,CvS);return this.isAppDarkTheme()?m==null?void 0:m.imageDark:m==null?void 0:m.imageLight}}}});
_.e_.Object.defineProperties(Ca,{template:{configurable:!0,enumerable:!0,get:function(){return ztS()}}});
Ca.prototype.goalStateChanged=Ca.prototype.goalStateChanged;Ca.prototype.progressBarChanged=Ca.prototype.progressBarChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],Ca.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);
_.x([_.V({selectorArgs:["data.creatorGoalEntityKey"],selector:function(m,G){return _.yx(m.entities,"creatorGoalEntity",G)}}),
_.S("design:type",Object)],Ca.prototype,"creatorGoalState",void 0);_.x([_.V(),_.S("design:type",Object)],Ca.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ca.prototype,"isGoalActive",void 0);_.x([_.E("creatorGoalState","isGoalActive"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ca.prototype,"shouldShowCountdown",null);_.x([_.E("creatorGoalState"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ca.prototype,"endTimestamp",null);
_.x([_.E("creatorGoalState"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ca.prototype,"targetIconThemedImage",null);_.x([_.Sb("creatorGoalState.currentGoalCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ca.prototype,"progressBarChanged",null);_.x([_.Sb("creatorGoalState.creatorGoalState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ca.prototype,"goalStateChanged",null);
_.x([_.cL({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Ca);_.y(Ca,"yt-creator-goal-progress-flow-view-model",function(){return ztS()},{mode:0});var QDC;var av2;var Vr=function(){return _.d.apply(this,arguments)||this};
_.n(Vr,_.d);Vr.prototype.attached=function(){var m,G,K;if(this==null?0:(m=this.data)==null?0:(G=m.pdgPurchasedBumperLoggingDirectives)==null?0:(K=G.loggingDirectives)==null?0:K.trackingParams){var W,L,A;bRd(this==null?void 0:(W=this.data)==null?void 0:(L=W.pdgPurchasedBumperLoggingDirectives)==null?void 0:(A=L.loggingDirectives)==null?void 0:A.trackingParams)}};
Vr.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Vr.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Vr.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Vr);
_.y(Vr,"yt-live-chat-item-bumper-view-model",function(){if(av2===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;QDC===void 0&&(QDC=document.createElement("template"));var W=QDC;K.call(G,W.content.cloneNode(!0),m.content.firstChild);av2=m}m=av2;return m},{mode:0});var oH2;var nHS;_.oL=function(m,G){this.data=m;this.actions=G;this.data=m;this.actions=G};
_.pz=function(){};_.Zd={};_.Zd.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(m,G){vh9(this.hostElement,m,G)},
getNavigationEndpointPopupAction:function(m){return $JV(m,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(m,G){sZ6(this.hostElement,m,G,this.openPopupConfig)}};var dJo=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.dR={};
_.dR.YtEndpointBehavior=[_.Zd.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.E8("openPopupConfig");(this.useClickHandler=_.IP("useClickHandler",!1))?this.hostElement.addEventListener("click",fr(this,this.onEndpointClick_)):(av(this.hostElement,"tap",fr(this,this.onEndpointTap_)),av(this.hostElement,"touchend",fr(this,this.onEndpointTouchEnd_)));av(this.hostElement,"touchstart",fr(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
fr(this,this.onEndpointTapStart_))},
onEndpointClick_:function(m){HRd(this.hostElement,m,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(m){var G=this.hostElement,K=this.openPopupConfig,W=this.disableCommandHandlerOverride;W=W===void 0?!1:W;var L=qws(m);if(L){L.href&&hK(L.href);var A=m.detail;var O=A.sourceEvent;A=A.preventer;O=O.button!==void 0?O.button===0&&!Uh(O):A?!Uh(A):!0;L.data&&O&&EhG(G,L,m,K,W)}},
onEndpointTouchEnd_:function(m){Uh(m)||qws(m)&&m.preventDefault()},
onEndpointTapStart_:function(m){VXG(m)}}];_.Pq={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(m){for(var G=_.Im.getInstance(),K=_.g(Object.keys(m)),W=K.next();!W.done;W=K.next()){var L=W.value;W=m[L];if(this&&this[W]){var A=G.actionRoutingMap.get(L);A||(A=new Map,G.actionRoutingMap.set(L,A));G.registerActionHandler(this,L,this[W].bind(this),A)}else L=Error("od"),L.params=W,_.j1(L)}},
unregisterActionMap:function(m){_.kz(_.Im.getInstance(),m,this)}}]};var B8=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_"+(_.F("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.F("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.F("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.F("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.F("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.F("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var lK;var My=new Map;var XdG=window.matchMedia("(forced-colors: active)").matches;var beK;var vH4;var $4G=new _.sX("LOTTIE_LOADER_TOKEN");_.yr=_.P(function(m){var G=m.data;var K=m.className;var W=m.animationName;var L=m.animationRef;var A=m.elRefForInterop;var O=_.aP("lottie-component"),c;_.sZ(function(){var h;return void((h=c)==null?void 0:h.destroy())});
var u;_.$O(function(){var h=_.EZ(W);if(h!==u){u=h;var J=Object.assign({},{animationName:h,animationRef:_.EZ(L)},_.EZ(G));try{_.xS().resolve($4G)().then(function(t){var a;(a=c)==null||a.destroy();var v,I;a=(I=A==null?void 0:(v=A())==null?void 0:v.value)!=null?I:O.value;v=J.animationRef;I=J.listeners;t=t.loadAnimation(Object.assign({},{container:a},J.animationConfig));v&&(v.lottieEl=t);if(I)for(a=_.g(Object.entries(I)),v=a.next();!v.done;v=a.next())I=_.g(v.value),v=I.next().value,(I=I.next().value)&&
t.addEventListener(v,I);c=t})}catch(t){h=t;
var N="LottieComponent error.";h.message&&(N+=" Original description: "+h.message);_.bO(h,N);_.nc(h);var D;((D=J.listeners)==null?0:D.error)&&J.listeners.error(h)}}},"nrJISd");
return _.r(nuF,{cond:function(){return!(A==null?0:A())},
then:function(){return _.r("lottie-component",{class:_.VO("ytLottieComponentHost",K),el:O})}})},"aa");_.sh(_.P(function(m){return _.r("ytd-lottie-player",{id:m.id,hidden:m.hidden,class:m.className,"aria-label":m.ariaLabel,style:"display: block;"},_.r(_.yr,{data:m.data,animationName:function(){var G;return((G=m.data().animationConfig)==null?void 0:G.name)||""},
animationRef:function(){return m.data().animationRef}}))},"ba"),"ytd-lottie-player",{props:{data:_.Dd,
id:_.Dd,hidden:_.Dd,className:_.Dd,ariaLabel:_.Dd}});var ed=function(){var m=_.d.apply(this,arguments)||this;m.animationRef={};m.delhiIconsEnabled=_.F("enable_web_delhi_icons");return m};
_.n(ed,_.d);_.w=ed.prototype;
_.w.handlePropertyChange=function(){var m=this.animatedIcon,G=this.active,K=this.isDarkTheme;if(m){var W=this.previousActive!==G;this.previousActive=G;this.animationRef.lottieEl?W?this.toggleAnimation(G,m.totalFrames):_.F("web_enable_animated_icon_active_state_fix")&&this.setAnimationState(G,m.totalFrames):G?this.initializeAnimationAsToggled(m.lottiePlayerProps,m.totalFrames):this.initializeAnimationAsUntoggled(m.lottiePlayerProps);m.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=
m.type;this.lottiePlayerProps=this.computeLottiePlayerProps(m,K)}};
_.w.computeLottiePlayerProps=function(m,G){var K=this.deepCloneLottiePlayerProps(m);G?(G=m.nameDarkTheme,m=m.pathDarkTheme):(G=m.name,m=m.path);K.animationConfig.name=G;(G=My.get(m))?K.animationConfig.animationData=G:K.animationConfig.path=m;return K};
_.w.initializeAnimationAsToggled=function(m,G){m.animationConfig.initialSegment=[G-1,G]};
_.w.initializeAnimationAsUntoggled=function(m){m.animationConfig.initialSegment=void 0};
_.w.toggleAnimation=function(m,G){if(m){var K;(K=this.animationRef.lottieEl)==null||K.playSegments([0,G],!0)}else{var W;(W=this.animationRef.lottieEl)==null||W.playSegments([0,1],!0)}};
_.w.setAnimationState=function(m,G){this.animationRef.lottieEl&&this.animationRef.lottieEl.goToAndStop(m?G-1:0,!0)};
_.w.deepCloneLottiePlayerProps=function(m){var G=Object.assign({},m.lottiePlayerProps.animationConfig);m=Object.assign({},m.lottiePlayerProps);m.animationConfig=G;return m};
ed.prototype.handlePropertyChange=ed.prototype.handlePropertyChange;_.x([_.V(),_.S("design:type",Object)],ed.prototype,"animatedIcon",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],ed.prototype,"active",void 0);_.x([_.V(),_.S("design:type",Boolean)],ed.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],ed.prototype,"animatedIconType",void 0);_.x([_.V(),_.S("design:type",Boolean)],ed.prototype,"previousActive",void 0);
_.x([_.V(),_.S("design:type",Object)],ed.prototype,"lottiePlayerProps",void 0);_.x([_.V(),_.S("design:type",Object)],ed.prototype,"animationRef",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ed.prototype,"delhiIconsEnabled",void 0);_.x([_.Sb("animatedIcon","active","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ed.prototype,"handlePropertyChange",null);_.x([_.cL({is:"yt-animated-icon",disableElementRegistration:!0})],ed);
_.y(ed,"yt-animated-icon",function(){if(vH4===void 0){var m=document.createElement("template");_.b(m,'\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="lottie-player style-scope yt-animated-icon" data="[[lottiePlayerProps]]"></ytd-lottie-player>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;beK===void 0&&(beK=document.createElement("template"));var W=beK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);vH4=m}m=vH4;return m},{mode:2});var sDi;var qjR;_.Tk=_.P(function(m){var G={value:null,cancelled:!1};_.sZ(function(){G.cancelled=!0});
var K=_.pT(m.data,{equals:function(W,L){return W.iconName===L.iconName&&W.iconStyle===L.iconStyle&&W.iconSize===L.iconSize&&W.iconSetName===L.iconSetName&&W.iconSelected===L.iconSelected}},"ck24jb");
return _.r("span",{class:"yt-icon-shape",el:_.aC(function(W){_.$O(function(){var L,A=(L=m.options)==null?void 0:L.call(m);L=K();lXd(W,G,L,A)},"v878Je")})})},"da");
_.Tk.idomCompat=!0;var rcG=["youtube_fill","youtube_outline"];var EHR=new _.lh({type:"iconset",value:void 0}),fa=function(){var m=_.d.apply(this,arguments)||this;m.isDarkTheme=document.documentElement.hasAttribute("dark");m.iconName="";m.iconsetName="yt-icons";m.iconset=null;m.missingIconSet=!1;m.iconType=null;m.iconShapeDataSignal=_.g_(void 0,void 0,"TaEgXd");m.renderingOptionsSignal=_.g_({iconWidth:"100%",iconHeight:"100%",iconFilter:m.iconFilter,iconColor:m.gradientColor},void 0,"a1vqYe");m.wizHasRendered=!1;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return m};
_.n(fa,_.d);fa.prototype.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.isDarkTheme=m)};
fa.prototype.handlePropertyChange=function(){var m=this,G,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z;return _.Y(function(k){switch(k.nextAddress){case 1:if(G=!m.icon&&!m.iconName||!m.isAttached)return k.return();K=m;W=K.icon;L=K.size;A=K.defaultToFilled;O=K.active;c=K.targetContainer;m.toggleContainerClass(c);_.F("kevlar_use_wil_icons")&&W&&(u=UHG(W),m.iconType=u.length?u[1]:null);if(W){k.jumpTo(2);break}m.iconsetName="";m.iconName="";return k.yield(m.renderIcon(c,W),3);case 3:return k.return();case 2:h=He0(W);
J=UHG(h);J.length&&(m.iconsetName=J[0],m.iconName=J[1]);if(!_.F("kevlar_use_wil_icons")){k.jumpTo(4);break}N=fa;D=IvR;t=m.iconType;a=m.active;v=m.defaultToFilled;I=m.size;Z=m.iconsetName;return k.yield(jDk(),6);case 6:return k.yield(D.call(N,t,a,v,I,Z,k.yieldResult),5);case 5:m.iconShapeData=k.yieldResult;case 4:if(m.shouldRenderIconShape(c)){k.jumpTo(7);break}return k.yield(m.determineIconSet(h,O,A,L,c),7);case 7:return k.yield(m.renderIcon(c,W),0)}})};
fa.prototype.toggleContainerClass=function(m){m?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var He0=function(m){return!_.F("default_to_innertube_icon")||m.indexOf(":")>0?m:_.ew(m)};
_.w=fa.prototype;_.w.determineIconSet=function(m,G,K,W){var L=this;return _.Y(function(A){return A.nextAddress==1?_.F("kevlar_system_icons")||_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.E8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?A.yield(L.switchToYtSysIconset(m,G,K,W),3):A.jumpTo(2):A.nextAddress!=2?A.return():A.yield(L.useYtSysIconsetForMissingIcons(m,G,K,W),0)})};
_.w.switchToYtSysIconset=function(m,G,K,W){var L=this,A,O,c,u,h,J,N;return _.Y(function(D){switch(D.nextAddress){case 1:if(!m||L.iconsetName!=="yt-icons"&&L.iconsetName!=="yt-sys-icons"){D.jumpTo(0);break}A=UHG(m);O=A[1];var t=O;if(GW9(t))O=t;else{var a=t=t.toLowerCase();(t=Zw4.get(t))&&(a=t);O=a}_.F("enable_polymer_icons_replace_underscores_dash")&&O.includes("_filled")&&(O=O.replace(/_filled/g,"-filled"));return D.yield(yz(O,!0),3);case 3:return c=D.yieldResult,D.yield(yz(O,!1),4);case 4:if((u=
D.yieldResult)||G&&c)L.iconsetName="yt-sys-icons";L.iconName=L.getIconName(O,G,K,u,c);if(W===24){D.jumpTo(0);break}h="yt-sys-icons"+W+":"+L.iconName;return D.yield(yz(h,!1,!0),6);case 6:return J=D.yieldResult,D.yield(yz(h,!0,!0),7);case 7:N=D.yieldResult;L.iconName=L.getIconName(O,G,K,J,N);if(!G&&J||G&&N)L.iconsetName="yt-sys-icons"+W;_.ey(D)}})};
_.w.getIconName=function(m,G,K,W,L){m.includes("-filled")&&(m=m.replace("-filled",""));return L&&(G||K)?m+"-filled":m};
_.w.useYtSysIconsetForMissingIcons=function(m,G,K,W){var L=this,A,O;return _.Y(function(c){if(c.nextAddress==1)return L.iconsetName!=="yt-icons"?c.jumpTo(0):c.yield(yz(L.iconName,!1,!1,!0),3);if(c.nextAddress!=4)return A=c.yieldResult,c.yield(yz(L.iconName,!1),4);O=c.yieldResult;if(A||!O)return c.jumpTo(0);L.iconsetName="yt-sys-icons";return c.yield(L.switchToYtSysIconset(m,G,K,W),0)})};
_.w.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var jDk=function(){return _.Y(function(m){try{return m.return(_.xS().resolve(_.fD))}catch(G){return m.return(new Promise(function(K){_.tf().parkOrScheduleJob(function(){K(_.xS().resolve(_.fD))},2,"ci")}))}})},IvR=function(m,G,K,W,L,A){W=W===void 0?24:W;
if(m){m=m.toLowerCase();var O=m.endsWith("_filled")||m.endsWith("-filled");G={iconName:m,iconStyle:(G===void 0?0:G)||(K===void 0?0:K)||O?"youtube_fill":"youtube_outline",iconSize:W,iconSetName:L===void 0?"yt-icons":L};K=!!A.resolveIcon(G);K||(G.iconSize=void 0,K=!!A.resolveIcon(G));!K&&O&&(G.iconName=m.substring(0,m.length-7),G.iconSize=W,K=!!A.resolveIcon(G),K||(G.iconSize=void 0,K=!!A.resolveIcon(G)));K||(G.iconStyle=void 0,K=!!A.resolveIcon(G));K||_.nc(new _.cw("Icon not supported",{iconName:G.iconName,
iconStyle:G.iconStyle,iconSize:G.iconSize,iconType:m}));return K?G:void 0}};
_.w=fa.prototype;_.w.shouldRenderIconShape=function(m){if(!_.F("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;m=this.getContainer(m);return!SwP(m,this.icon)};
_.w.renderIcon=function(m,G){var K=this,W,L,A,O,c,u,h,J;return _.Y(function(N){switch(N.nextAddress){case 1:if(G&&K.icon!==G)return N.return();W=K.getContainer(m);L=SwP(W,K.icon);if(K.shouldRenderIconShape(m)&&K.iconType)return K.applyIconShape(L,W),N.return();K.removeIconShape();if(!W)return N.return();K.iconName===""&&K.iconset&&W&&(K.removeStaticIcon(K.iconset,W),L&&K.removeAnimatedIcon(W));if(K.iconName===""&&K.iconset||!K.iconsetName||!EHR)return N.return();K.iconset=EHR.byKey(K.iconsetName);
if(!K.iconset)return K.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.xC(K,K.onIconsetAdded)),N.return();K.missingIconSet&&(K.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.xC(K,K.onIconsetAdded)));O=(A=L||K.isAnimatedIcon?fXG(K.icon):void 0)&&!A.lazyLoad;u=A&&((c=A)==null?void 0:c.lazyLoad)&&(A.lottiePlayerProps.animationConfig.animationData?!0:My.get(K.isDarkTheme?A.pathDarkTheme:A.path)?!0:!1);if(O||u)return K.applyAnimatedIcon(W,A,K.iconset),N.return();if(u||
(h=A)==null||!h.lazyLoad){N.jumpTo(2);break}J=UJd(A,K.isDarkTheme);K.applyStaticIcon(K.iconset,W,K.iconName,m,L);return N.yield(J,3);case 3:return N.yield(K.renderIcon(K.targetContainer,K.icon),4);case 4:return N.return();case 2:K.applyStaticIcon(K.iconset,W,K.iconName,m,L),_.ey(N)}})};
_.w.getContainer=function(m){var G,K=(G=kEV(this.hostElement))==null?void 0:G.host;G=!!K&&!!K.polymerController;if(!m||G)return m?this.getTargetContainer(m,K):this.hostElement};
_.w.getTargetContainer=function(m,G){var K=_.VL(G).querySelector("#"+m);K||(m=new _.cw("yt-icon container missing",G.is,m),_.am(m));return K};
_.w.applyStaticIcon=function(m,G,K,W,L){L&&this.removeAnimatedIcon(G);this.removeIconShape();L=L&&!!this.iconType&&!!this.iconShapeData&&_.F("kevlar_use_wil_icons");try{L?this.applyIconShape(!1,G):m.applyIcon(G,K)}catch(A){this.handleError(A,W,G)}};
_.w.applyIconShape=function(m,G){this.iconset&&G&&(this.removeStaticIcon(this.iconset,G),m&&this.removeAnimatedIcon(G));m={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var K=_.g(this.iconShapeDataSignal);G=K.next().value;K=K.next().value;var W=_.g(this.renderingOptionsSignal),L=W.next().value;W=W.next().value;K(this.iconShapeData);W(m);if(!this.wizHasRendered)for(this.wizHasRendered=!0,m=_.g(ByV(G,L)).next().value;m.firstChild;)_.VL(this.hostElement).appendChild(m.firstChild)};
_.w.removeIconShape=function(){if(_.F("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.w.removeStaticIcon=function(m,G){m.removeIcon(G)};
_.w.applyAnimatedIcon=function(m,G,K){this.removeStaticIcon(K,m);this.removeIconShape();var W;K=this.animatedIconElement&&((W=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:W.type)===G.type;if(this.animatedIconElement&&K){this.animatedIconElement.polymerController.animatedIcon=G;var L;((L=this.animatedIconElement)==null?void 0:L.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(m),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=G,this.animatedIconElement.polymerController.active=this.active,_.F("delhi_modern_web_player_icons")?(G=xJ9(m,this.icon)&&m.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=G?G.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.F("kevlar_use_wil_icons")?
m.insertBefore(this.animatedIconElement,m.childNodes[0]):(m=_.VL(m),m.insertBefore(this.animatedIconElement,m.childNodes[0]))};
_.w.removeAnimatedIcon=function(m){_.F("kevlar_use_wil_icons")?this.animatedIconElement&&m.contains(this.animatedIconElement)&&m.removeChild(this.animatedIconElement):(m=_.VL(m),this.animatedIconElement&&m.contains(this.animatedIconElement)&&m.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.w.handleError=function(m,G,K){_.bO(m,this.iconName,G,K);G=SwP(K,this.icon);var W=!1;window.location.href.includes("JpymaW6Lh2w")?W=!0:K._svgIcon&&(K=(K=K._svgIcon.parentNode)?K.tagName:"unknown",_.bO(m,K),K==="YT-ICON"&&m.name==="NotFoundError"?W=!0:m.name==="NotFoundError"&&G&&(W=!0));W?_.nc(m):_.am(m)};
_.e_.Object.defineProperties(fa,{template:{configurable:!0,enumerable:!0,get:function(){if(qjR===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;
sDi===void 0&&(sDi=document.createElement("template"));var W=sDi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);qjR=m}m=qjR;return m}}});
fa.prototype.handlePropertyChange=fa.prototype.handlePropertyChange;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],fa.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",String)],fa.prototype,"icon",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],fa.prototype,"active",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],fa.prototype,"defaultToFilled",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],fa.prototype,"isAnimatedIcon",void 0);
_.x([_.V({value:24}),_.S("design:type",Number)],fa.prototype,"size",void 0);_.x([_.V({value:""}),_.S("design:type",String)],fa.prototype,"targetContainer",void 0);_.x([_.V(),_.S("design:type",Object)],fa.prototype,"animatedIconElement",void 0);_.x([_.V(),_.S("design:type",Object)],fa.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fa.prototype,"ariaHidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],fa.prototype,"ariaLabel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],fa.prototype,"role",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],fa.prototype,"tabindex",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],fa.prototype,"title",void 0);_.x([_.V(),_.S("design:type",String)],fa.prototype,"style",void 0);_.x([_.V(),_.S("design:type",String)],fa.prototype,"iconFilter",void 0);_.x([_.V(),_.S("design:type",String)],fa.prototype,"gradientColor",void 0);
_.x([_.Sb("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],fa.prototype,"handlePropertyChange",null);_.x([_.cL({is:"yt-icon",noInjection:!0})],fa);var MXv="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),mfv=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var kT4={};kT4.YtPlaintextBehavior=[_.x4,{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(m){m.preventDefault();m=m.clipboardData.getData("text/plain");document.execCommand("insertText",!1,m)},
preventRichTextFormatting_:function(m){_.fY&&(m=m.detail.keyboardEvent,m.stopImmediatePropagation(),m.preventDefault())}}];var C84;var VYS;var xP=function(){var m=_.d.apply(this,arguments)||this;m.ignoreShadyDom=!1;m.hasChange_=!1;m.hasSetTitle_=!1;m.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.E8("INNERTUBE_CLIENT_NAME")==="WEB";m.ytFormattedStringObserverHandlerKeys_=void 0;return m};
_.n(xP,_.d);_.w=xP.prototype;_.w.created=function(){this.useIOObserverForVisibilityLogging_=_.F("kevlar_use_vimio_behavior")&&_.E8("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.w.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_()};
_.w.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.w.detached=function(){this.unobserveIOObservers_()};
_.w.clearContents_=function(){for(var m=this.getRoot(),G=m.lastChild;G&&G.tagName!=="STYLE";){try{m.removeChild(G)}catch(K){break}G=m.lastChild}};
_.w.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var m=_.g(this.ytFormattedStringObserverHandlerKeys_),G=m.next();!G.done;G=m.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(G.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.w.resetForAttributedString=function(){var m=this.getRoot();!m.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),m.appendChild(this.ytAttributedStringElementRef))};
_.w.resetForFormattedString=function(){var m=this.getRoot(),G=m.querySelector("yt-attributed-string");G&&(this.ytAttributedStringElementRef=m.removeChild(G))};
_.w.textChanged=function(){this.textChanged_(this.text)};
_.w.textChanged_=function(m){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!m||!m.runs&&!m.simpleText;if(_.F("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var G=this.hostElement.firstChild;G&&G.nodeName==="FONT";){var K=G;G=G.nextSibling;this.hostElement.removeChild(K)}G=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
K=m.simpleText;var W;!K&&((W=m.runs)==null?void 0:W.length)===1&&this.isSimpleString_(m.runs[0])&&(K=m.runs[0].text);K!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.E8("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(K!==void 0){try{G.textContent=K}catch(L){}G.textContent||(this.isEmpty=!0)}else m=m.runs,K!==void 0&&(m=[{text:K}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),m&&this.updateText_(m),
G.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.w.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)};
_.w.computeAriaLabel_=function(m){return m};
_.w.computeEllipsisTruncateStyling=function(m,G){return m&&!G};
_.w.computeUseAttributedString=function(m){return _.F("web_replace_formatted_with_attributed_string")&&IxG(m)&&!this.disableAttributedString&&!this.enableContentEditable};
_.w.setNodeStyle_=function(m,G){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.F("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?G.removeAttribute("dir"):G.setAttribute("dir","auto");G.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");G.style.color="";var K=null;this.noStyles||(m.bold&&(G.classList.add("bold"),K="bold"),m.deemphasize&&(G.classList.add("deemphasize"),K="deemphasize"),m.italics&&G.classList.add("italic"),
m.strikethrough&&G.classList.add("strikethrough"),m.errorUnderline&&(G.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),m.bracket&&G.classList.add("bracket"),m.textColor&&(G.style.color=_.OM(m.textColor)));K!==G.getAttribute("style-target")&&(K?G.setAttribute("style-target",K):G.removeAttribute("style-target"))};
_.w.setUpVisibilityLogging_=function(m,G){var K=this;this.setNodeTrackingParams_(m,G);var W;((W=G.data)==null?0:W.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(m=this.ytRendererBehavior.visibilityObserver.observe(G,function(L){var A=K.ytRendererBehavior.getVisibilityLogger();A&&A.reportShown(L)},this.ytRendererBehavior.visibilityOptionVisible_),G=this.ytRendererBehavior.visibilityObserver.observe(G,function(L){var A=K.ytRendererBehavior.getVisibilityLogger();
A&&A.reportHidden(L)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(m),this.ytFormattedStringObserverHandlerKeys_.push(G))};
_.w.setNodeTrackingParams_=function(m,G){G.data||(G.data={});if((m=m.loggingDirectives?m.loggingDirectives.trackingParams:null)||G.data.trackingParams)G.data.trackingParams=m};
_.w.computeHasLinkOnly_=function(m){return!(!m||m.length!==1||this.noEndpoints||!m[0].navigationEndpoint)};
_.w.getRoot=function(){var m=this.buildScopeDomOptions();return this.enableContentEditable?_.VL(_.VL(this.hostElement,m).querySelector("[contenteditable]")):_.VL(this.hostElement,m)};
_.w.fixContenteditableScope=function(){var m=function(G){G&&(G.nodeType===1&&G.classList&&(G.classList.add("style-scope"),G.classList.add("yt-formatted-string")),G.childNodes&&G.childNodes.forEach(function(K){m(K)}))};
m(this.getRoot())};
_.w.updateText_=function(m){for(var G=m.length,K=this.getRoot(),W=K.firstChild;W&&W.nodeName==="STYLE";)W=W.nextSibling;for(var L=0;L<G&&W;){var A=m[L],O=_.F("remove_cr_char")&&A.text?A.text.replace("\r",""):A.text;if(this.isSimpleString_(A)&&!this.useMixedDirectionFormattedStrings)if(W.nodeName==="#text"){W.textContent!=O&&(W.textContent=O);L++;W=W.nextSibling;continue}else break;if(_.Q(A,wn))break;else if(!this.noEndpoints&&A.navigationEndpoint){if(W.nodeName!=="A")break;this.setDataOnAnchor_(W,
A.navigationEndpoint)}else if(W.nodeName!=="SPAN")break;this.setNodeStyle_(A,W);this.setUpVisibilityLogging_(A,W);W.textContent!=O&&(W.textContent=O);L++;W=W.nextSibling}if(W)for(A=K.lastChild,W=L?W.previousSibling:null;A&&A!=W;){try{K.removeChild(A)}catch(c){break}A=K.lastChild}L!==G&&this.addTextNodes_(m,L)};
_.w.addTextNodes_=function(m,G){for(var K=document.createDocumentFragment(),W=m.length;G<W;G++){var L=m[G],A=_.F("remove_cr_char")&&L.text?L.text.replace("\r",""):L.text;if(this.isSimpleString_(L)&&!this.useMixedDirectionFormattedStrings)K.appendChild(document.createTextNode(A));else{var O=_.Q(L,wn);if(O){if(O.image){var c=document.createElement("img");O.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");O.isCustomEmoji&&(c.dataset.emojiId=O.emojiId);c.src=_.qy(O.image.thumbnails,
this.emojiSize);(L=this.get("image.accessibility.accessibilityData.label",O))?c.alt=L:O.shortcuts&&O.shortcuts.length>0?c.alt=O.shortcuts[0]:O.emojiId&&(c.alt=O.emojiId);K.appendChild(c);this.hasEmoji=!0}}else!this.noEndpoints&&L.navigationEndpoint?(c=document.createElement("a"),c.classList.add("yt-simple-endpoint"),c.setAttribute("spellcheck","false"),this.setDataOnAnchor_(c,L.navigationEndpoint)):c=document.createElement("span"),this.setNodeStyle_(L,c),this.setUpVisibilityLogging_(L,c),c.appendChild(document.createTextNode(A)),
K.appendChild(c)}}this.getRoot().appendChild(K)};
_.w.isSimpleString_=function(m){return(this.noEndpoints||!m.navigationEndpoint)&&!_.Q(m,wn)&&(this.noStyles||!(m.bold||m.deemphasize||m.italics||m.strikethrough||m.errorUnderline||m.bracket||m.textColor))&&!m.loggingDirectives};
_.w.getRawText=function(){return _.bw(this.text)};
_.w.getFirstRunText=function(){var m;if(((m=this.text)==null?0:m.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.w.setFirstRunText=function(m){var G;((G=this.text)==null?0:G.runs)&&this.text.runs[0]&&(this.text.runs[0].text=m,this.textChanged_(this.text))};
_.w.setDataOnAnchor_=function(m,G){var K=this;!_.F("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(G)||this.isSignalServiceEndpoint_(G)?(m.onclick=this.serviceEndpointHandler_(G),Gp(m,"#")):QTP({text:this.text,command:G},function(){jTv(m,G,K.target)})};
_.w.isServiceEndpoint_=function(m){var G;return!((G=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null||!G.sendPost)};
_.w.isSignalServiceEndpoint_=function(m){return!!_.Q(m,_.SD)};
_.w.serviceEndpointHandler_=function(m){var G=this;return function(K){_.yQ(G.hostElement,[m]);K.preventDefault()}};
_.w.overrideAriaLabelChanged_=function(){var m=this.getRoot();this.enableContentEditable&&m&&m.setAttribute("aria-label",this.overrideAriaLabel)};
_.w.enableContentEditableChanged_=function(){var m=this,G=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),G=_.VL(this.hostElement,G),!G.lastChild||G.lastChild instanceof HTMLElement&&G.lastChild.id!=="contenteditable-root"){var K=document.createElement("div");K.id="contenteditable-root";K.setAttribute("contenteditable","true");K.setAttribute("dir","auto");K.onfocus=function(){m.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
G.appendChild(K);this.overrideAriaLabel&&K.setAttribute("aria-label",this.overrideAriaLabel)}}else K=_.Z7(this.hostElement).firstChild,K instanceof HTMLElement&&K.id==="contenteditable-root"&&_.VL(this.hostElement,G).removeChild(K)};
_.w.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.w.getNodesForVisibilityLogging_=function(){return _.Zb(this.getRoot().childNodes,function(m){var G;return!((G=m.data)==null||!G.trackingParams)})};
_.w.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.w.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var m=this.ytRendererBehavior.getVisibilityLogger();m&&this.getNodesForVisibilityLogging_().forEach(function(G){m.reportShown(G)})}};
_.w.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var m=this.ytRendererBehavior.getVisibilityLogger();m&&this.getNodesForVisibilityLogging_().forEach(function(G){m.reportHidden(G)})}};
_.e_.Object.defineProperties(xP.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.F("enable_mixed_direction_formatted_strings")}}});
xP.prototype.enableContentEditableChanged_=xP.prototype.enableContentEditableChanged_;xP.prototype.overrideAriaLabelChanged_=xP.prototype.overrideAriaLabelChanged_;xP.prototype.ellipsisTruncateChanged_=xP.prototype.ellipsisTruncateChanged_;xP.prototype.textChanged=xP.prototype.textChanged;_.x([_.q(kT4.YtPlaintextBehavior),_.S("design:type",Object)],xP.prototype,"ytPlaintextBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],xP.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xP.prototype,"text",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"noEndpoints",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"noStyles",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],xP.prototype,"isDarkTheme",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],xP.prototype,"splitLines",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],xP.prototype,"forceDefaultStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],xP.prototype,"ellipsisTruncate",void 0);_.x([_.V(),_.S("design:type",Object)],xP.prototype,"ignoreShadyDom",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.S("design:type",Boolean)],xP.prototype,"ellipsisTruncateStyling",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.S("design:type",String)],xP.prototype,"ariaLabel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],xP.prototype,"isEmpty",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.S("design:type",Boolean)],xP.prototype,"hasLinkOnly_",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"hasEmoji",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"disableAttributedString",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"isOverlay",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"linkInheritColor",void 0);
_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"noPreWrap",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"userInput",void 0);_.x([_.V({value:16}),_.S("design:type",Number)],xP.prototype,"emojiSize",void 0);_.x([_.V(),_.S("design:type",String)],xP.prototype,"target",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"enableContentEditable",void 0);_.x([_.V(),_.S("design:type",String)],xP.prototype,"overrideAriaLabel",void 0);
_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"respectHtmlDir",void 0);_.x([_.V(),_.S("design:type",Boolean)],xP.prototype,"respectLangDir",void 0);_.x([_.E("plaintextOnly"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],xP.prototype,"useMixedDirectionFormattedStrings",null);_.x([_.V({computed:"computeUseAttributedString(text)"}),_.S("design:type",Boolean)],xP.prototype,"useYtAttributedString",void 0);
_.x([_.Sb("text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xP.prototype,"textChanged",null);_.x([_.Sb("ellipsisTruncate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xP.prototype,"ellipsisTruncateChanged_",null);_.x([_.Sb("overrideAriaLabel"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xP.prototype,"overrideAriaLabelChanged_",null);
_.x([_.Sb("enableContentEditable"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xP.prototype,"enableContentEditableChanged_",null);_.x([_.cL({is:"yt-formatted-string",disableElementRegistration:!0})],xP);
_.y(xP,"yt-formatted-string",function(){if(VYS===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;C84===void 0&&(C84=document.createElement("template"));var W=C84;K.call(G,W.content.cloneNode(!0),m.content.firstChild);VYS=m}m=VYS;return m});var Zeo;var d4R;var P8o;var yyS;var Xe=function(){var m=_.d.apply(this,arguments)||this;m.focused=!1;m.disabled=!1;m.isOverlay=!1;return m};
_.n(Xe,_.d);Xe.prototype.triggerDown=function(){if(!this.disabled){_.dF(this.hostElement,"down",!0);var m;(m=this.currentAnimation)==null||m.cancel()}};
Xe.prototype.triggerUp=function(){if(!this.disabled){_.dF(this.hostElement,"down",!1);var m=this.fillElement;var G=this.strokeElement;typeof GroupEffect==="function"?(m=new GroupEffect([Bos(m),Meo(G)]),m=new Animation(m,document.timeline)):m=new OeG(m,G);this.currentAnimation=m;var K;(K=this.currentAnimation)==null||K.play()}};
_.x([_.UM(".stroke"),_.S("design:type",HTMLElement)],Xe.prototype,"strokeElement",void 0);_.x([_.UM(".fill"),_.S("design:type",HTMLElement)],Xe.prototype,"fillElement",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xe.prototype,"focused",void 0);_.x([_.V(),_.S("design:type",Object)],Xe.prototype,"disabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xe.prototype,"isOverlay",void 0);_.x([_.cL({is:"yt-interaction",disableElementRegistration:!0})],Xe);
_.y(Xe,"yt-interaction",function(){if(yyS===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;P8o===void 0&&(P8o=document.createElement("template"));var W=P8o;K.call(G,W.content.cloneNode(!0),m.content.firstChild);yyS=m}m=yyS;return m},{mode:2});var Sd=function(){return _.d.apply(this,arguments)||this};
_.n(Sd,_.d);_.w=Sd.prototype;_.w.ready=function(){var m=this,G=_.VL(this.hostElement).querySelector("#button");G.addEventListener("focus",function(){jhB||(jhB=new I$o);m.keyboardFocused=jhB.isKeyBoardInUse()});
G.addEventListener("blur",function(){m.keyboardFocused=!1;m.rippleUp_()})};
_.w.computeTabIndex_=function(m){return m?-1:0};
_.w.computeButtonAriaPressed_=function(m){if(this.toggleable)return m?"true":"false"};
_.w.rippleDown_=function(){_.VL(this.hostElement).querySelector("#interaction").triggerDown()};
_.w.rippleUp_=function(){_.VL(this.hostElement).querySelector("#interaction").triggerUp()};
_.w.onPressedChanged_=function(){var m=_.Z7(_.VL(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Z7(_.VL(this.hostElement).querySelector("#button")).children[0];m&&(m.active=this.pressed)};
Sd.prototype.onPressedChanged_=Sd.prototype.onPressedChanged_;Sd.prototype.rippleUp_=Sd.prototype.rippleUp_;Sd.prototype.rippleDown_=Sd.prototype.rippleDown_;_.x([_.V(),_.S("design:type",String)],Sd.prototype,"label",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Sd.prototype,"disabled",void 0);_.x([_.V(),_.S("design:type",Boolean)],Sd.prototype,"pressed",void 0);_.x([_.V(),_.S("design:type",Object)],Sd.prototype,"toggleable",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Sd.prototype,"untabbable",void 0);_.x([_.V(),_.S("design:type",Boolean)],Sd.prototype,"keyboardFocused",void 0);_.x([_.XC("down"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Sd.prototype,"rippleDown_",null);_.x([_.XC("up"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Sd.prototype,"rippleUp_",null);
_.x([_.Sb("pressed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Sd.prototype,"onPressedChanged_",null);_.x([_.cL({is:"yt-icon-button",disableElementRegistration:!0})],Sd);
_.y(Sd,"yt-icon-button",function(){if(d4R===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Zeo===void 0&&(Zeo=document.createElement("template"));var W=Zeo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);d4R=m}m=d4R;return m},{mode:2});var esX;var fvi=function(){var m=document.body,G=m.appendChild;if(esX===void 0){var K=document.createElement("template");_.b(K,'\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>');
esX=K}K=esX;G.call(m,K.content)};
document.body?fvi():window.addEventListener("DOMContentLoaded",fvi);var x4X=_.nY(["aria-"]),RE={};RE.YtRenderButtonBehavior=[_.B.YtRendererBehavior,_.dR.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!!_.xS().resolve(_.fn(_.sH))&&_.F("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 m=this.computeHref_(this.endpoint,!0);m?Gp(this.elements_.endpoint,m):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){m=this.buttonClass.split(" ");m=_.g(m);for(var G=m.next();!G.done;G=m.next())G=G.value,_.dF(this.hostElement,G,!0),this.elements_.button&&_.dF(this.elements_.button,G,!0),this.elements_.text&&_.dF(this.elements_.text,G,!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&&(m=null,this.buttonAccessibility&&(m=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=m:m?_.DO([_.ob(x4X)],this.elements_.button,"aria-label",m):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var m=_.xS().resolve(_.fn(_.sH));m&&(this.keyboardFocused=m.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.na("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,_.TP(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.TP(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(m,G){if(G)for(m=G.split(" "),m=_.g(m),G=m.next();!G.done;G=m.next())G=G.value,_.dF(this.hostElement,G,!1),this.elements_.button&&_.dF(this.elements_.button,G,!1),this.elements_.text&&_.dF(this.elements_.text,G,!1)},
buttonIconChanged_:function(m){this.elements_.icon?m?(this.elements_.icon.icon=m,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.TP(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Pe(this.hostElement,"is-paper-button-with-icon",!1)):m&&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"&&_.TP(this.elements_.button).appendChild(this.elements_.icon):_.TP(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Pe(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(m){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,m){var G=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(m){case "yt_icon_button_with_label":G=!0;_.dF(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();m=_.TP(this.elements_.button).firstElementChild;
this.elements_.icon=m;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.TP(this.elements_.endpoint).appendChild(this.elements_.button);_.TP(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.na("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;_.TP(this.elements_.button).appendChild(this.elements_.text);_.TP(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":G=!0,this.elements_.button=this.getYtIconButton_(),m=_.TP(this.elements_.button).firstElementChild,this.elements_.icon=m,this.setIconActive_(this.elements_.icon),
_.TP(this.elements_.endpoint).appendChild(this.elements_.button)}_.Pe(this.hostElement,"is-icon-button",G);_.Pe(this.hostElement,"is-paper-button",!G);_.Pe(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 K;_.VL((K=this.container.hostElement)!=null?K:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.TP(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(m){if(m!=void 0||this.disabled)this.disabled=m,this.elements_.button&&(this.elements_.button.disabled=m)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(m){_.F("kevlar_system_icons")&&m&&this.data&&(this.data.isSelected!==void 0?m.active=this.data.isSelected:this.data.isToggled!==void 0&&(m.active=this.data.isToggled))},
observeBasicPalette_:function(m){_.mr(this.hostElement,m)},
disabledChanged_:function(m){this.data&&this.set("data.isDisabled",m)},
onYtButtonTap_:function(m){if(this.disabled)m.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.yQ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(m=this.disableCommandHandlerOverride,!this.data||!this.data.command||m||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.F("handle_service_request_actions")||_.yQ(this.hostElement,[this.serviceEndpoint]),
_.Zw(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.F("handle_service_request_actions")?(m=[],this.serviceEndpoint&&m.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&m.push(this.data.command),m.length&&_.eD(this.hostElement,m,this.hostElement)):this.data&&this.data.command&&(m=this.data.command,m.accountUnlinkCommand||m.accountLinkCommand||m.insertAdCommand||m.insertHighlightMarkerCommand||
m.createLivestreamHighlightClipCommand||m.getVideoUploadFeedbackCommand||m.musicDeletePrivatelyOwnedEntityCommand||m.ypcCancelRecurrenceEndpoint||m.getMultiSelectCommandEndpoint?_.yQ(this.hostElement,[m]):_.eD(this.hostElement,[m],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 m,G=_.VL((m=this.container.hostElement)!=null?m:this.container);G.lastChild&&G.lastChild.tagName!="STYLE";)try{G.removeChild(G.lastChild)}catch(K){break}},
getYtIconButton_:function(){var m=this.reuseEnabled_()?_.na("yt-icon-button"):document.createElement("yt-icon-button"),G=_.TP(m).firstElementChild;if(G&&G.is!="yt-icon"){for(G=_.TP(m);G.lastChild;)G.removeChild(G.lastChild);G=null}G||(G=this.getIcon_(),this.setIconActive_(G),_.TP(m).appendChild(G));return m},
reuseEnabled_:function(){return _.F("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.na("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.na("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.XDG={};
_.XDG.YtButtonBehavior=[RE.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var m=this.data;m&&(this._setEndpoint(this.computeEndpoint_(m)),this._setServiceEndpoint(this.computeServiceEndpoint_(m)),this._setCommand(this.computeCommand_(m)),this._setButtonIcon(this.computeButtonIcon_(m)),this._setButtonText(this.computeButtonText_(m,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(m)),this._setButtonTooltip(this.computeTooltip_(m)),this._setButtonClass(this.computeButtonClass_(m)),this._setIconPositionType(this.computeIconPositionType_(m)),this.updateRenderedElements())},
setPressedState:function(m){var G;if((G=this.elements_)==null?0:G.button)this.elements_.button.pressed=!!m},
computeIconPositionType_:function(m){return m&&m.iconPosition||null},
computeEndpoint_:function(m){var G=m&&m.navigationEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.url"),W=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:m&&m.command&&m.command.modalEndpoint?m.command:K&&!W&&m.command?m.command:null},
computeServiceEndpoint_:function(m){var G=m&&m.serviceEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:K&&m.command?m.command:null},
computeCommand_:function(m){return m&&m.command||null},
computeButtonIcon_:function(m){return m&&m.icon&&m.icon.iconType?_.ew(m.icon.iconType):null},
computeButtonText_:function(m,G){return!G&&m&&m.text||null},
computeAccessibility_:function(m){return this.get("accessibilityData.accessibilityData",m)||m&&m.accessibility||(m&&m.text?{label:this.getSimpleString(m.text)}:null)},
computeTooltip_:function(m){return m?m.isDisabled&&m.disabledTooltip||m.tooltip||null:null},
computeButtonClass_:function(m){var G=m&&m.style?m.style.toLowerCase().replace(/_/g,"-")+" ":"";G+=m&&m.size?m.size.toLowerCase().replace(/_/g,"-")+" ":"";m.colorData&&m.colorData.basicColorPaletteData&&m.colorData.basicColorPaletteData.borderColor&&(G+="palette-with-border");return G.trim()}}];var G$={};var Sj0;var RsS;var U4S,zsP=function(){return U4S!==void 0?U4S:U4S=document.createElement("template")};
document.head.appendChild(zsP().content);var lvo;var BXl,MYB=function(){return BXl!==void 0?BXl:BXl=document.createElement("template")};
document.head.appendChild(MYB().content);var TXB;var mnR,iEF=function(){return mnR!==void 0?mnR:mnR=document.createElement("template")};
document.head.appendChild(iEF().content);var GSo;var KJS=document.head,WJC=KJS.appendChild,LJB;if(GSo===void 0){var ANF=document.createElement("template");_.b(ANF,"\x3c!--css-build:shady--\x3e");ANF.content.insertBefore(iEF().content.cloneNode(!0),ANF.content.firstChild);GSo=ANF}LJB=GSo;WJC.call(KJS,LJB.content);var w7K=document.head,gpo=w7K.appendChild,OEK;if(TXB===void 0){var cN4=document.createElement("template");_.b(cN4,"\x3c!--css-build:shady--\x3e");cN4.content.insertBefore(MYB().content.cloneNode(!0),cN4.content.firstChild);TXB=cN4}OEK=TXB;gpo.call(w7K,OEK.content);var YF0=document.head,rNS=YF0.appendChild,uyG;if(lvo===void 0){var hQS=document.createElement("template");_.b(hQS,"\x3c!--css-build:shady--\x3e");hQS.content.insertBefore(zsP().content.cloneNode(!0),hQS.content.firstChild);lvo=hQS}uyG=lvo;rNS.call(YF0,uyG.content);var p7k;_.Kz("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");p7k=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.Bq=function(){return _.d.apply(this,arguments)||this};
_.n(_.Bq,_.d);_.Bq.prototype.created=function(){this.openPopupConfig=_.E8("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Bq.prototype.onYtNavigate_=function(m){var G=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(m.detail.endpoint);G&&(this.ytOpenPopupBehavior.openPopup(G),m.stopPropagation(),m.preventDefault())};
_.e_.Object.defineProperties(_.Bq,{template:{configurable:!0,enumerable:!0,get:function(){if(RsS===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;Sj0===void 0&&(Sj0=document.createElement("template"));var W=Sj0;K.call(G,W.content.cloneNode(!0),m.content.firstChild);RsS=m}m=RsS;return m}}});
_.Bq.prototype.onYtNavigate_=_.Bq.prototype.onYtNavigate_;_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],_.Bq.prototype,"ytOpenPopupBehavior",void 0);_.x([_.q(_.XDG.YtButtonBehavior),_.S("design:type",Object)],_.Bq.prototype,"ytButtonBehavior",void 0);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],_.Bq.prototype,"onYtNavigate_",null);
_.x([_.cL({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:p7k})],_.Bq);var JNS;var NoF=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live"),Mm=function(){var m=_.d.apply(this,arguments)||this;m.isPressed=!1;m.forceIconButton=!1;m.forceIconOnly=!1;m.forceModernIconButton=!1;m.skipCommandHandling=!1;m.alignByText=!1;m.fitToVisibleBounds=!0;m.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};m.onTap=function(G){_.Zw(m.hostElement,"yt-service-request-sent-button-renderer",G)};
return m};
_.n(Mm,_.d);_.w=Mm.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.w.onClick=function(m){var G,K=this.disabled||((G=this.data)==null?void 0:G.isDisabled);G=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");K&&G&&m.stopPropagation()};
_.w.computeIcon=function(){var m,G,K=(m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType;if(K)return _.ew(K)};
_.w.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.w.handleUpdateButtonAction=function(m){m=_.Q(m,hrk);var G=_.Q(m==null?void 0:m.updatedButton,_.uu);if(this.data&&m&&G){var K=this.data;K.targetId&&m.targetId&&K.targetId===m.targetId&&(this.data=G)}};
_.e_.Object.defineProperties(Mm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var m=this;if(this.data){var G=AkG({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Zw(m.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Zw(m.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});G.alignByText=this.alignByText;return G}}}});
_.e_.Object.defineProperties(Mm,{template:{configurable:!0,enumerable:!0,get:function(){if(JNS===void 0){var m=document.createElement("template");_.b(m,'\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>');JNS=m}m=JNS;return m}}});
Mm.prototype.onClick=Mm.prototype.onClick;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Mm.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Mm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"isPressed",void 0);
_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"forceIconButton",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"forceIconOnly",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"forceModernIconButton",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"skipCommandHandling",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"alignByText",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"buttonTooltipPosition",void 0);
_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"fitToVisibleBounds",void 0);_.x([_.V({computed:"computeTooltip(data)"}),_.S("design:type",Object)],Mm.prototype,"tooltip",void 0);_.x([_.V(),_.S("design:type",Object)],Mm.prototype,"overrides",void 0);_.x([_.V(),_.S("design:type",Boolean)],Mm.prototype,"disabled",void 0);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Mm.prototype,"onClick",null);
_.x([_.E("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.S("design:type",Object),_.S("design:paramtypes",[])],Mm.prototype,"computedButtonShape",null);_.x([_.cL({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!NoF,cssBuildOptOut:!0}),_.cL({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!NoF,cssBuildOptOut:!0})],Mm);var DnB;var te2;var Tt=function(){var m=_.d.apply(this,arguments)||this;m.empty_=!0;m.loadTime=Infinity;m.pendingPaint=!1;m.hasChange_=!1;m.oldThumbnail_=null;m.oldDelayedSrc_="";m.objectURL_=null;return m};
_.n(Tt,_.d);_.w=Tt.prototype;_.w.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.w.ready=function(){var m=this.shouldShowPlaceholder_();_.dF(this.hostElement,"no-transition",!0);m&&this.hostElement.classList.add("with-placeholder")};
_.w.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.w.isThumbPreloaded_=function(m){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",m)};
_.w.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||FJo};
_.w.computeThumbnailSrc_=function(m){return m&&m.thumbnails?_.qy(m.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.w.computeAlt_=function(){var m=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&m||""};
_.w.thumbnailChanged_=function(){var m=_.g([this.thumbnail,this.oldThumbnail_]),G=m.next().value;m=m.next().value;this.oldThumbnail_=G;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(m=this.computeThumbnailSrc_(m),this.computeThumbnailSrc_(G)===m))return;_.F("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(G)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):G&&_.IP("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Pv(this,this.onReload_):_.Pv(this,this.onShow_):this.resetImage_();G&&(this.hostElement.style.opacity=""+G.opacity)}};
_.w.delayedSrcChanged_=function(){var m=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===m||this.resetImage_()};
_.w.setSrc_=function(m){m?(_.VL(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.VL(this.hostElement).querySelector("#img").src=m):(_.VL(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.w.resetImage_=function(){gpd(this.hostElement);this.empty_=!0;this.setSrc_(FJo);this.ytRendererBehavior.invalidate(!1)};
_.w.observePlaceholderColor_=function(){var m=this.thumbnail&&this.thumbnail.placeholderColor;m?this.hostElement.style.backgroundColor=_.OM(m):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.w.onLoad_=function(){_.VL(this.hostElement).querySelector("#img").src&&_.VL(this.hostElement).querySelector("#img").src!==FJo&&(w7d(this.hostElement),this.notifyOnLoaded&&_.Zw(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.w.onError_=function(){var m=this;if(_.F("web_use_cache_for_image_fallback"))p7G(_.VL(this.hostElement).querySelector("#img").src).then(function(G){m.objectURL_=_.T7(G).toString();m.setSrc_(m.objectURL_)}).catch(function(){_.F("kevlar_woffle_fallback_image")&&m.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.w.onPrescanVisible=function(){this.onShow_()};
_.w.onVisible=function(){if(_.F("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.w.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var m=this.computeSrc_();m!==_.VL(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(m))}};
_.w.onReload_=function(){this.empty_=!1;var m=this.computeSrc_();m!==_.VL(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(m))};
_.w.shouldShowPlaceholder_=function(){return _.F("kevlar_thumbnail_bg")};
Tt.prototype.observePlaceholderColor_=Tt.prototype.observePlaceholderColor_;Tt.prototype.delayedSrcChanged_=Tt.prototype.delayedSrcChanged_;Tt.prototype.thumbnailChanged_=Tt.prototype.thumbnailChanged_;_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"alt",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Tt.prototype,"ariaHidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"ariaLabel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"hidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"id",void 0);_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],Tt.prototype,"ytVisibilityBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",String)],Tt.prototype,"delayedSrc",void 0);
_.x([_.V(),_.S("design:type",Object)],Tt.prototype,"thumbnail",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"loaded",void 0);_.x([_.V(),_.S("design:type",Boolean)],Tt.prototype,"notifyOnLoaded",void 0);_.x([_.V(),_.S("design:type",Number)],Tt.prototype,"height",void 0);_.x([_.V(),_.S("design:type",Number)],Tt.prototype,"width",void 0);_.x([_.V({value:function(){return"width"}}),
_.S("design:type",String)],Tt.prototype,"dimension",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"fit",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"fitHeight",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"fitWidth",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"objectFit",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"objectPosition",void 0);_.x([_.V(),_.S("design:type",String)],Tt.prototype,"preferredThumbnail",void 0);_.x([_.V({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.S("design:type",String)],Tt.prototype,"alt_",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Tt.prototype,"sharedTooltipText",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Tt.prototype,"ftlEligible",void 0);_.x([_.V({value:void 0}),_.S("design:type",String)],Tt.prototype,"observeHiddenOption",void 0);_.x([_.V({value:"observe_once"}),_.S("design:type",String)],Tt.prototype,"observePrescanOption",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tt.prototype,"roundedContainer",void 0);
_.x([_.Mg("thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tt.prototype,"thumbnailChanged_",null);_.x([_.Mg("delayedSrc"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tt.prototype,"delayedSrcChanged_",null);_.x([_.Sb("thumbnail.placeholderColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tt.prototype,"observePlaceholderColor_",null);
_.x([_.cL({is:"yt-img-shadow",disableElementRegistration:!0})],Tt);var FJo=_.IP("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.Vz()(Tt,"yt-img-shadow",function(){if(te2===void 0){var m=document.createElement("template");_.b(m,'\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">');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;DnB===void 0&&(DnB=document.createElement("template"));var W=DnB;K.call(G,W.content.cloneNode(!0),m.content.firstChild);te2=m}m=te2;return m},{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 uD6;_.m_=new _.sX("SCREEN_MANAGER_TOKEN");uD6=new _.sX("LOG_INITIAL_SCREEN_TOKEN");var Qc4=Lz({entities:{}});_.im=Ao(Qc4)(Qc4.entities,{selectSfvAudioItemPlaybackState:function(m,G){var K,W;m=(W=_.yx(m,"sfvAudioItemCurrentlyPlayingEntity",G))!=null?W:void 0;return(K=m==null?void 0:m.sfvAudioItemPlaybackState)!=null?K:void 0},
playlistLoopStateEntitySelector:Oi6,toggleMenuServiceItemEntitySelector:ckf});_.Gx=_.P(function(m){function G(l){return _.Q(l,_.J6)}
function K(){var l=W().isTogglingDisabled||v()&&W().toggledIsTogglingDisabled,Ls=l||D()?v():!v();I(Ls);k(!1);if(!l){var gd;(gd=O)==null||gd(!!Ls)}var Qf;((Qf=A)==null?0:Qf())||_.xq(_.xS().resolve(_.m_),W().trackingParams);var JV;if(!Ls||!G(W().defaultButtonViewModel)||(JV=A)!=null&&JV()){var DF;!G(W().toggledButtonViewModel)||((DF=A)==null?0:DF())||_.xq(_.xS().resolve(_.m_),G(W().toggledButtonViewModel).trackingParams)}else _.xq(_.xS().resolve(_.m_),G(W().defaultButtonViewModel).trackingParams)}
var W=m.data,L=m.buttonShapeOverrides,A=m.disableExplicitClickLogging,O=m.onToggle,c=m.style,u=m.useOutlinedIcon,h=m.className,J=function(){var l,Ls;return v()?(l=m.animatedTextPropsToggled)==null?void 0:l.call(m):(Ls=m.animatedTextPropsDefault)==null?void 0:Ls.call(m)},N=_.pT(function(){return J()?Object.assign({},J(),{shouldAnimate:Z()}):void 0},void 0,"Zp4uoe"),D=function(){var l;
return((l=f())==null?void 0:l.isToggled)!==void 0},t=_.g(_.EQ(function(){var l,Ls,gd;
return D()?(l=f())==null?void 0:l.isToggled:(gd=L==null?void 0:(Ls=L())==null?void 0:Ls.toggled)!=null?gd:W().isToggled})),a=t.next().value;
t=t.next().value;var v=a,I=t;t=_.g(_.EQ(function(){var l,Ls;return(l=m.animatedTextPropsToggled)==null?void 0:(Ls=l.call(m))==null?void 0:Ls.shouldAnimate}));
a=t.next().value;t=t.next().value;var Z=a,k=t;a=_.g(_.g_(!1,void 0,"mq3Zfe"));var z=a.next().value,X=a.next().value,f=_.RC(function(l){a:{var Ls=W().entityKey,gd=W().toggledStateEntitySelectorType;if(gd)switch(gd){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Ls)break;l=_.im.selectSfvAudioItemPlaybackState(l,Ls);if(l==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){l={isToggled:!0};break a}if(l){l={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":l={isToggled:_.h2v(l).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":l={isToggled:_.h2v(l).includes("engagement-panel-live-chat-item-section")};break a;default:_.nc(new _.cw("Error: entitySelectorType defined but not matched in selector.",l,gd))}l=void 0}return l}),U=function(){return Object.assign({},L==null?void 0:L(),{onToggle:K,
toggleable:!0,toggled:v(),focused:z()})};
return _.r("toggle-button-view-model",{"on:focusin":_.dn(function(){var l=_.xS().resolve(_.fn(_.sH));l&&X(l.isKeyBoardInUse());return!1}),
"on:focusout":_.dn(function(){X(!1);return!1})},_.r(_.p,{cond:function(){return v()?G(W().toggledButtonViewModel):G(W().defaultButtonViewModel)},
then:function(l){return _.r(_.kP,{data:l,className:h,style:c,useOutlinedIcon:u,buttonOverrides:U,animatedTextProps:N})}}))},"fa");
_.Gx.idomCompat={callbacks:{onToggle:!0}};_.sh(_.P(function(m){return _.r("yt-toggle-button-view-model",{class:function(){var G;return(G=m.scopingClassName)==null?void 0:G.call(m)}},_.r(_.Gx,{data:function(){var G;
return(G=m.data)==null?void 0:G.call(m)},
buttonShapeOverrides:function(){var G;return(G=m.overrides)==null?void 0:G.call(m)},
animatedTextPropsDefault:function(){var G;return(G=m.animatedTextPropsDefault)==null?void 0:G.call(m)},
animatedTextPropsToggled:function(){var G;return(G=m.animatedTextPropsToggled)==null?void 0:G.call(m)},
disableExplicitClickLogging:function(){var G;return(G=m.disableExplicitClickLogging)==null?void 0:G.call(m)},
onToggle:function(G){var K;return(K=m.onToggle)==null?void 0:K.call(m,G)},
style:function(){var G;return(G=m.style)==null?void 0:G.call(m)},
useOutlinedIcon:function(){var G;return(G=m.useOutlinedIcon)==null?void 0:G.call(m)},
className:function(){var G;return(G=m.className)==null?void 0:G.call(m)}}))},"ga"),"yt-toggle-button-view-model",{props:{data:_.Dd,
buttonShapeOverrides:_.Dd,overrides:_.Dd,animatedTextPropsDefault:_.Dd,animatedTextPropsToggled:_.Dd,disableExplicitClickLogging:_.Dd,onToggle:_.nN,style:_.Dd,useOutlinedIcon:_.Dd,className:_.Dd,scopingClassName:_.Dd}});var K5=function(){return _.d.apply(this,arguments)||this};
_.n(K5,_.d);K5.prototype.onTap=function(m){m.stopPropagation();m=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.wS("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:m})):this.ytLiveChatReduxBehavior.dispatch(_.Bp("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:m}))};
_.e_.Object.defineProperties(K5.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.engagementState)==null?void 0:m.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var m=_.Q(this.data.toggleButton,_.Dj),G;if(Number(((G=this.likeCountState)==null?void 0:G.likeCountIfIndifferentNumber)||"0")===0){var K;G=((K=this.data.likeCountPlaceholder)==null?void 0:K.content)||""}else{var W,L,A;G=((W=this.likeCountState)==null?void 0:(L=W.likeCountIfIndifferent)==null?void 0:L.content)||((A=this.data.likeCountPlaceholder)==null?void 0:A.content)||""}var O,c;K=((O=this.likeCountState)==null?void 0:(c=
O.likeCountIfLiked)==null?void 0:c.content)||"1";O=_.Q(m.toggledButtonViewModel,_.J6);return Object.assign({},m,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Q(m.defaultButtonViewModel,_.J6),{title:G})},toggledButtonViewModel:{buttonViewModel:Object.assign({},O,{title:K})}})}}}});
K5.prototype.onTap=K5.prototype.onTap;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],K5.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],K5.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],K5.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.likeCountEntityKey"],selector:p5d}),_.S("design:type",Object)],K5.prototype,"likeCountState",void 0);_.x([_.V({selectorArgs:["data.engagementStateKey"],selector:oh9}),_.S("design:type",Object)],K5.prototype,"engagementState",void 0);_.x([_.E("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],K5.prototype,"isLiked",null);
_.x([_.E("data","likeCountState","isLiked"),_.S("design:type",Object),_.S("design:paramtypes",[])],K5.prototype,"toggleButton",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],K5.prototype,"onTap",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],K5);
_.y(K5,"yt-live-chat-like-button-view-model",function(){if(nHS===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;oH2===void 0&&(oH2=document.createElement("template"));var W=oH2;K.call(G,W.content.cloneNode(!0),m.content.firstChild);nHS=m}m=nHS;return m},{mode:0});var atl;var op0;var Wi=function(){return _.d.apply(this,arguments)||this};
_.n(Wi,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wi.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wi.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Wi);
_.y(Wi,"yt-live-chat-paid-message-footer-renderer",function(){if(op0===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;atl===void 0&&(atl=document.createElement("template"));var W=atl;K.call(G,W.content.cloneNode(!0),m.content.firstChild);op0=m}m=op0;return m},{mode:0});var npk;var bEP;var vpX;var $n4,scX=function(){if($n4!==void 0)return $n4;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;vpX===void 0&&(vpX=document.createElement("template"));var W=vpX;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return $n4=m};var L5=function(){return _.d.apply(this,arguments)||this};
_.n(L5,_.d);L5.prototype.onTap=function(m){m.stopPropagation()};
_.e_.Object.defineProperties(L5.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var m=_.Q(this.data.replyButton,_.J6),G,K,W,L,A,O,c,u=Number(((G=this.replyCountState)==null?void 0:G.replyCountNumber)||"0")===0?(K=this.data)==null?void 0:(W=K.replyCountPlaceholder)==null?void 0:W.content:((L=this.replyCountState)==null?void 0:(A=L.replyCount)==null?void 0:A.content)||((O=this.data)==null?void 0:(c=O.replyCountPlaceholder)==null?void 0:c.content)||"",h;return Object.assign({},
m,{title:u,accessibilityText:(h=this.replyCountState)==null?void 0:h.replyButtonAccessibilityText})}}}});
_.e_.Object.defineProperties(L5,{template:{configurable:!0,enumerable:!0,get:function(){return scX()}}});
L5.prototype.onTap=L5.prototype.onTap;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],L5.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],L5.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L5.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.replyCountEntityKey"],selector:function(m,G){return _.yx(m.entities,"replyCountEntity",G)}}),
_.S("design:type",Object)],L5.prototype,"replyCountState",void 0);_.x([_.E("data","replyCountState"),_.S("design:type",Object),_.S("design:paramtypes",[])],L5.prototype,"buttonViewModel",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],L5.prototype,"onTap",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],L5);_.y(L5,"yt-live-chat-reply-button-view-model",function(){return scX()},{mode:0});var qFG;var EpB;var Ax=function(){var m=_.d.apply(this,arguments)||this;m.ariaLabel="";return m};
_.n(Ax,_.d);
Ax.prototype.dataChanged=function(){for(var m=(0,_.yL)(_.VL(this.hostElement).querySelector("#image"));m.firstChild;)m.removeChild(m.firstChild);if(this.data)if(this.data.icon){var G=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(G.polymerController.icon="yt-sys-icons:shield_empty",G.polymerController.defaultToFilled=!0):G.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();m.appendChild(G)}else if(this.data.customThumbnail){G=document.createElement("img");
var K=_.mnP(this.data.customThumbnail.thumbnails,16);K?(G.src=K,m.appendChild(G),G.setAttribute("alt",this.hostElement.ariaLabel||"")):_.nc(new _.cw("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Ax.prototype.identity=function(m){return m};
Ax.prototype.computeType=function(m){return dT(m||void 0)};
Ax.prototype.dataChanged=Ax.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],Ax.prototype,"data",void 0);_.x([_.V({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.S("design:type",Object)],Ax.prototype,"ariaLabel",void 0);_.x([_.V({computed:"computeType(data)",reflectToAttribute:!0}),_.S("design:type",String)],Ax.prototype,"type",void 0);
_.x([_.V({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.S("design:type",String)],Ax.prototype,"sharedTooltipText",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_new_shield_moderator_badge")}}),
_.S("design:type",Boolean)],Ax.prototype,"enableNewModeratorBadge",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ax.prototype,"dataChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Ax);
_.y(Ax,"yt-live-chat-author-badge-renderer",function(){if(EpB===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;qFG===void 0&&(qFG=document.createElement("template"));var W=qFG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);EpB=m}m=EpB;return m},{mode:0});var HEX;var ItG;var wE=function(){return _.d.apply(this,arguments)||this};
_.n(wE,_.d);_.w=wE.prototype;_.w.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"}}}}};
_.w.computeBadgesInsideChip=function(m){return m?m.filter(function(G){return dT(G.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.w.computeBadgesOutsideChip=function(m){return this.prependChatBadges||!m?[]:m.filter(function(G){G=dT(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"})};
_.w.computeBadgesBeforeChip=function(m){return this.prependChatBadges&&m?m.filter(function(G){G=dT(G.liveChatAuthorBadgeRenderer);return G!=="verified"&&G!=="owner"}):[]};
_.w.computeIsHighlighted=function(m,G){var K=!!fIs(m,"owner"),W=!!fIs(m,"verified");m=!!fIs(m,"moderator");return(K||W&&!m)&&!G};
_.w.computeAuthorType=function(m){return eNs(m)};
_.w.computeAuthorClass=function(m,G){return G?(m?m+" ":"")+"single-line":m};
_.w.onSeedColorChanged=function(){_.F("live_chat_author_name_color_usernames")||_.F("live_chat_seed_color_usernames")||_.F("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):_.F("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
wE.prototype.onSeedColorChanged=wE.prototype.onSeedColorChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wE.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wE.prototype,"authorName",void 0);_.x([_.V(),_.S("design:type",Array)],wE.prototype,"authorBadges",void 0);
_.x([_.V({computed:"computeAuthorType(authorBadges)"}),_.S("design:type",String)],wE.prototype,"authorType",void 0);_.x([_.V({computed:"computeAuthorClass(authorType, singleLine)"}),_.S("design:type",String)],wE.prototype,"authorClass",void 0);_.x([_.V({computed:"computeBadgesInsideChip(authorBadges)"}),_.S("design:type",Array)],wE.prototype,"badgesInsideChip",void 0);_.x([_.V({computed:"computeBadgesOutsideChip(authorBadges)"}),_.S("design:type",Array)],wE.prototype,"badgesOutsideChip",void 0);
_.x([_.V({computed:"computeBadgesBeforeChip(authorBadges)"}),_.S("design:type",Array)],wE.prototype,"badgesBeforeChip",void 0);_.x([_.V({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.S("design:type",Boolean)],wE.prototype,"isHighlighted",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_new_shield_moderator_badge")}}),
_.S("design:type",Boolean)],wE.prototype,"enableNewModeratorTextColor",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],wE.prototype,"singleLine",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],wE.prototype,"disableHighlighting",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],wE.prototype,"dashboardMoneyFeed",void 0);_.x([_.V({value:_.F("live_chat_prepend_badges"),reflectToAttribute:!0}),_.S("design:type",Boolean)],wE.prototype,"prependChatBadges",void 0);
_.x([_.V(),_.S("design:type",String)],wE.prototype,"authorNameColor",void 0);_.x([_.UM("#author-name"),_.S("design:type",HTMLDivElement)],wE.prototype,"username",void 0);_.x([_.Sb("authorNameColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wE.prototype,"onSeedColorChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],wE);
_.y(wE,"yt-live-chat-author-chip",function(){if(ItG===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;HEX===void 0&&(HEX=document.createElement("template"));var W=HEX;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ItG=m}m=ItG;return m},{mode:0});var jci;var kSX;var gE=function(){var m=_.d.apply(this,arguments)||this;m.debounceCommand=_.AY(function(G){m.ytComponentBehavior.resolveCommand(G)},1500);
return m};
_.n(gE,_.d);gE.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var m=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",G,K,W=this.isHearted?(G=this.data)==null?void 0:G.unheartCommand:(K=this.data)==null?void 0:K.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.wS("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:m}));(m=_.c8(W))&&this.debounceCommand(m)}};
_.e_.Object.defineProperties(gE.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var m,G;if(!((m=this.data)==null?0:(G=m.creatorThumbnail)==null?0:G.sources))return{};m={thumbnails:[]};G={};G.url=this.data.creatorThumbnail.sources[0].url;m.thumbnails.push(G);return m}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.engagementState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((K=this.engagementState)==null?void 0:K.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}}});
gE.prototype.onTap=gE.prototype.onTap;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],gE.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],gE.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gE.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.engagementStateKey"],selector:oh9}),_.S("design:type",Object)],gE.prototype,"engagementState",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gE.prototype,"thumbnailDetails",null);_.x([_.E("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gE.prototype,"isHearted",null);_.x([_.E("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gE.prototype,"isEditable",null);
_.x([_.E("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gE.prototype,"showCreatorView",null);_.x([_.E("data","engagementState"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gE.prototype,"showButton",null);_.x([_.E("data","isHearted"),_.S("design:type",String),_.S("design:paramtypes",[])],gE.prototype,"label",null);_.x([_.E("data","isHearted"),_.S("design:type",Object),_.S("design:paramtypes",[])],gE.prototype,"heartHoverText",null);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gE.prototype,"onTap",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],gE);
_.y(gE,"yt-live-chat-creator-heart-view-model",function(){if(kSX===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;jci===void 0&&(jci=document.createElement("template"));var W=jci;K.call(G,W.content.cloneNode(!0),m.content.firstChild);kSX=m}m=kSX;return m},{mode:0});var CtX=function(){this.internalMap={}};
_.w=CtX.prototype;_.w.contains=function(m){return Object.prototype.hasOwnProperty.call(this.internalMap,m)};
_.w.get=function(m){if(this.contains(m))return this.internalMap[m]};
_.w.set=function(m,G){this.internalMap[m]=G};
_.w.getKeys=function(){return Object.keys(this.internalMap)};
_.w.remove=function(m){delete this.internalMap[m]};var OD=function(){this.mappings=new CtX;this.errorCallbacks=new Set};
OD.prototype.getModuleId=function(m){return m.serviceId.getModuleId()};
OD.prototype.get=function(m){a:{var G=this.mappings.get(m.toString());switch(G.type){case "mapping":m=G.value;break a;case "factory":G=G.value();this.mappings.set(m.toString(),{type:"mapping",value:G});m=G;break a;default:m=_.GG(G)}}return m};
OD.prototype.registerService=function(m,G){this.mappings.set(m.toString(),{type:"mapping",value:G});return m};
OD.prototype.onLoadError=function(m){var G=this;this.errorCallbacks.add(m);return function(){G.errorCallbacks.delete(m)}};
new OD;var Veo=function(){};
_.w=Veo.prototype;
_.w.JSC$14483_getRequest=function(m,G,K){G=G===void 0?{}:G;K=K===void 0?MDX:K;var W=G;if(this.isNavigationCommand()){var L,A=(L=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:L.url;W=_.QL(m.clickTrackingParams,!0,!1,A,this.JSC$14483_getClientScreen(W))}else W=_.QL(m.clickTrackingParams,!1,this.includeCsn);W={context:W};if(L=this.getExtension(m))return this.JSC$14483_buildRequest(W,L,G),L=this.getApiUrl(m),A=Object.assign({},{command:m},this.getRequestConfig(m,G)),W={input:L,requestShell:tj(L),
innerTubeRequest:W,config:A},W.config.authStrategy?W.config.authStrategy.identity=K:W.config.authStrategy={identity:K},(m=this.JSC$14483_getRequestKey(m,G))&&!W.config.requestKey&&(W.config.requestKey=m),W;m=new _.cw("Error: Failed to create Request from Command.",m);_.am(m)};
_.w.getApiUrl=function(m){var G=_.sv(this.getApiPaths(m)),K;(m=(K=_.Q(m.commandMetadata,_.RQ))==null?void 0:K.apiUrl)&&(G=m);return EqP(q79(G))};
_.w.isNavigationCommand=function(){return!1};
_.w.JSC$14483_getClientScreen=function(){};
_.w.JSC$14483_getRequestKey=function(){};
_.w.getRequestConfig=function(){};
_.e_.Object.defineProperties(Veo.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var ci=function(){};
_.n(ci,Veo);ci.prototype.JSC$14490_getStoreKey=function(){};
ci.prototype.JSC$14483_getRequestKey=function(m,G){G=G===void 0?{}:G;return this.JSC$14490_getStoreKey(m,G)};var Y6=function(){};
_.n(Y6,ci);Y6.prototype.JSC$14483_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:tj("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Y6.prototype.getApiPaths=function(){return[]};
Y6.prototype.getExtension=function(){};
Y6.prototype.JSC$14483_buildRequest=function(){};var ZEP={},dnC=(ZEP.GET_DATASYNC_IDS=rq(Y6),ZEP);var PtC,yN0,eQX,zQC,RQ0,rE,SFP,ft2,X7C,xnX;PtC="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store manifest player_preload shorts_prefetch".split(" ");yN0=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PanelResponse"];
_.NW=function(m,G,K,W,L,A,O,c,u){this.endpointMap=m;this.networkManager=G;this.authService=K;this.responseProcessorMap=W;this.innertubeResponseStore=L;this.contextProcessors=A;this.asyncContextProcessors=O;this.localInnertubeRouter=c;this.requestSequencer=u;this.inflightRequests=new Map;m.signalEndpointMap||(m.signalEndpointMap={});m.signalEndpointMap=Object.assign({},dnC,m.signalEndpointMap)};
eQX=function(m,G,K,W,L,A,O,c,u){if(_.NW.instance!==void 0){if(W=_.NW.instance,m=[m!==W.endpointMap,G!==W.networkManager,K!==W.authService,L!==W.innertubeResponseStore,A!==W.contextProcessors,O!==W.asyncContextProcessors,c!==W.localInnertubeRouter],m.some(function(h){return h}))throw new _.cw("InnerTubeTransportService is already initialized",m);
}else _.NW.instance=new _.NW(m,G,K,W,L,A,O,c,u)};
_.to=function(m,G,K){var W=W===void 0?MDX:W;var L=ft2(m,G);return L?new _.iO(function(A,O){var c,u,h,J,N;return _.Y(function(D){switch(D.nextAddress){case 1:return D.yield(L,2);case 2:c=D.yieldResult;u=c.JSC$14483_getRequest(G,K,W);if(!u){O(new _.cw("Error: Failed to build request for command.",G));D.jumpTo(0);break}hK(u.input);J=((h=u.requestShell)==null?void 0:h.mode)==="cors"?"cors":void 0;if(m.authService.syncHeaders){N=xnX(u.config,J);D.jumpTo(4);break}return D.yield(X7C(u.config,J),5);case 5:N=
D.yieldResult;case 4:A(SFP(m,u,N)),_.ey(D)}})}):_.KN(new _.cw("Error: No request builder found for command.",G))};
zQC=function(m,G,K,W){var L=L===void 0?MDX:L;var A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U;return _.Y(function(l){switch(l.nextAddress){case 1:A=t2P(G,m.endpointMap);if(!A)throw new _.cw("Error: No streaming request builder found for command",G);O=A.JSC$14483_getRequest(G,K,L);if(!O)throw new _.cw("Failed to build YtRequest for streaming Command",G);if((c=m.localInnertubeRouter)==null||!c.shouldPreferLocalResponse(O.input,O.innerTubeRequest)){l.jumpTo(2);break}return l.yield(m.localInnertubeRouter.localInnertubeResponse(O.input,
O.innerTubeRequest),3);case 3:return u=l.yieldResult,h={},u.playerResponse&&(rE(m,u.playerResponse,O),h.player=u.playerResponse,(J=W)==null||J(h,u)),u.watchNextResponse&&(rE(m,u.watchNextResponse,O),h.content=u.watchNextResponse,(N=W)==null||N(h,u)),l.return(h);case 2:return l.yield(RQ0(m,O),4);case 4:t=((D=O.requestShell)==null?void 0:D.mode)==="cors"?"cors":void 0;if(m.authService.syncHeaders){a=xnX(O.config,t);l.jumpTo(5);break}return l.yield(X7C(O.config,t),6);case 6:a=l.yieldResult;case 5:return Z=
(I=(v=O.requestShell)==null?void 0:v.headers)!=null?I:{},O.requestShell=Object.assign({},O.requestShell,{headers:Object.assign({},Z,a)}),k=Object.assign({},O.requestShell),z=JSON.stringify(O.innerTubeRequest),O.requestShell.method==="POST"&&(k=Object.assign({},k,{body:z})),X=function(Ls,gd){rE(m,gd.playerResponse||gd.watchNextResponse||gd.reelItemWatchResponse||gd.reelWatchSequenceResponse,O);W==null||W(Ls,gd);gd.playerResponse&&KQk()},f={},l.yield(UnR(m.networkManager,O.input,k,X),7);
case 7:return f=l.yieldResult,((U=O.config)==null?0:U.responseTick)&&_.Yt(O.config.responseTick),l.return(f)}})};
_.Jf=function(m,G,K,W,L){L=L===void 0?{authStrategy:{identity:MDX}}:L;var A=A===void 0?!0:A;var O=function(){};
O=zbd(Rb6(K));G.context||(G.context=_.QL(W,A));return new _.iO(function(c){var u,h,J,N,D;return _.Y(function(t){if(t.nextAddress==1)return u=q79(K),h=_.Dw(u),m.authService.syncHeaders?(J=xnX(L,h),t.jumpTo(2)):t.yield(X7C(L,h),3);t.nextAddress!=2&&(J=t.yieldResult);N=EqP(q79(K));D={input:N,requestShell:tj(N),innerTubeRequest:G,config:L};c(SFP(m,D,J,O));_.ey(t)})})};
RQ0=function(m,G){var K,W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){switch(t.nextAddress){case 1:if(!((K=G)==null?0:(W=K.innerTubeRequest)==null?0:W.context)){t.jumpTo(0);break}L=G.innerTubeRequest.context;if(!(m.asyncContextProcessors&&m.asyncContextProcessors.length>0)){t.jumpTo(3);break}A=[];O=_.g(m.asyncContextProcessors);for(c=O.next();!c.done;c=O.next())u=c.value,h=u.processContext(G),h.wrappedPromise_&&A.push(h.wrappedPromise_);if(!(A.length>0)){t.jumpTo(3);break}return t.yield(Promise.all(A),
3);case 3:J=_.g(m.contextProcessors||[]),N=J.next();case 6:if(N.done){t.jumpTo(0);break}D=N.value;return t.yield(D.processContext(L),7);case 7:N=J.next(),t.jumpTo(6)}})};
rE=function(m,G,K){var W;if(G&&!(G==null?0:(W=G.sequenceMetaData)==null?0:W.skipProcessing)&&m.responseProcessorMap){W=_.g(PtC);for(var L=W.next();!L.done;L=W.next())L=L.value,m.responseProcessorMap[L]&&m.responseProcessorMap[L].handleResponse(G,K)}};
SFP=function(m,G,K,W){W=W===void 0?function(){}:W;
var L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji,rK;return _.Y(function(So){switch(So.nextAddress){case 1:O=(L=G.config)==null?void 0:(A=L.storeStrategy)==null?void 0:A.storeKey;if(!(O&&m.innertubeResponseStore&&m.innertubeResponseStore.has(O))||((c=G.config)==null?0:(u=c.storeStrategy)==null?0:u.disableCache)){So.jumpTo(2);break}return So.yield(m.innertubeResponseStore.get(O),3);case 3:h=So.yieldResult;if(!h||h.isExpired()){So.jumpTo(2);break}J=_.k1(h);if(!_.F("web_process_response_store_responses")||
h.isProcessed()){So.jumpTo(5);break}rE(m,J,G);return So.yield(m.innertubeResponseStore.markAsProcessed(O),5);case 5:return So.return(Promise.resolve(J));case 2:return So.yield(RQ0(m,G),7);case 7:if((N=m.localInnertubeRouter)==null||!N.shouldPreferLocalResponse(G.input,G.innerTubeRequest)){So.jumpTo(8);break}return So.yield(m.localInnertubeRouter.localInnertubeResponse(G.input,G.innerTubeRequest),9);case 9:return D=So.yieldResult,rE(m,D,G),So.return(D);case 8:return(v=(a=G.config)==null?void 0:a.requestKey)&&
m.inflightRequests.has(v)?t=m.inflightRequests.get(v):(I=JSON.stringify(G.innerTubeRequest),z=(k=(Z=G.requestShell)==null?void 0:Z.headers)!=null?k:{},G.requestShell=Object.assign({},G.requestShell,{headers:Object.assign({},z,K)}),X=Object.assign({},G.requestShell),G.requestShell.method==="POST"&&(X=Object.assign({},X,{body:I})),((f=G.config)==null?0:f.requestTick)&&_.Yt(G.config.requestTick),U=function(){return m.networkManager.fetch(G.input,X,G.config)},t=m.requestSequencer?lt4(m.requestSequencer,
G,U):U(),v&&m.inflightRequests.set(v,t)),So.yield(t,10);
case 10:(l=So.yieldResult)&&_.F("web_streaming_player")&&Array.isArray(l)&&(l=l[0].playerResponse);if(l&&"error"in l&&((Ls=l)==null?0:(gd=Ls.error)==null?0:gd.details))for(Qf=l.error.details,JV=_.g(Qf),DF=JV.next();!DF.done;DF=JV.next())kG=DF.value,(eo=kG["@type"])&&yN0.indexOf(eo)>-1&&(delete kG["@type"],l=kG);v&&m.inflightRequests.has(v)&&m.inflightRequests.delete(v);((xG=G.config)==null?0:xG.responseTick)&&_.Yt(G.config.responseTick);if(l||(Ji=m.localInnertubeRouter)==null||!Ji.canProvideFallbackResponse(G.input,
G.innerTubeRequest)){So.jumpTo(11);break}return So.yield(m.localInnertubeRouter.localFallbackInnertubeResponse(G.input,G.innerTubeRequest),12);case 12:l=So.yieldResult;case 11:return rE(m,l,G),((rK=G.config)==null?0:rK.processorTick)&&_.Yt(G.config.processorTick),W(),So.return(l||void 0)}})};
_.Dg=function(m,G){return Dfv(G,m.endpointMap)};
ft2=function(m,G){m=FZF(G,m.endpointMap);if(m!==void 0)return Promise.resolve(m)};
X7C=function(m,G){var K,W,L,A;return _.Y(function(O){if(O.nextAddress==1){L=(K=m)==null?void 0:(W=K.authStrategy)==null?void 0:W.sessionIndex;var c=O.yield;var u=_.fJ(NFo({sessionIndex:L}));return c.call(O,u,2)}A=O.yieldResult;return O.return(Promise.resolve(Object.assign({},QzF(G),A)))})};
xnX=function(m,G){var K;m=m==null?void 0:(K=m.authStrategy)==null?void 0:K.sessionIndex;K=NFo({sessionIndex:m});return Object.assign({},QzF(G),K)};var Bol,Me0,Toi,mJ4,iR2,GRF,Llk,AvX,p5,wdP,gh2,Wll,OR0;Bol=0;Me0=/tone[1-5]/;Toi=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");mJ4="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
iR2=Number.MAX_SAFE_INTEGER;GRF=RegExp("\ufe0f","g");_.um=function(m){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;m&&_.Kli(this,m)};
_.Kli=function(m,G){try{_.ix(G,{context:m,onSuccess:function(W,L){Array.isArray(L)?m.load(L):(W=new _.cw("Emoji manager JSON response was not an array!",{response:L}),_.am(W))},
onError:function(W){W=new _.cw("Failed to retrieve emoji manager initial JSON data!",{url:G,statusCode:_.BO(W).toString()});_.nc(W)}})}catch(W){var K=new _.cw("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:G});
_.nc(K)}};
_.um.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.um.prototype.load=function(m,G){if(G)if(m.length)m=m.concat(G.emojis);else{this.emojis=G.emojis;this.emojiMap=G.emojiMap;this.emojiShortcutMap=G.emojiShortcutMap;this.emojiShortcutCharMap=Wll(G);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=G.emojiRegex;return}this.emojis=[].concat(_.Bz(new Set(this.emojis.concat(m))));this.hasInitializedShortcutCharMap=!1;m=Array(this.emojis.length);for(G=0;G<this.emojis.length;G++){var K=this.emojis[G];if(K.emojiId){this.emojiMap[K.emojiId]=K;this.emojiMap[K.emojiId].index=
G;for(var W=0;K.shortcuts&&W<K.shortcuts.length;W++)this.emojiShortcutMap[K.shortcuts[W].toLocaleLowerCase()]=K;m[G]=K.isCustomEmoji&&K.shortcuts?K.shortcuts[0]:K.emojiId}}m.sort(function(L,A){return A.length-L.length});
if(m.length)try{this.emojiRegex=new RegExp(m.join("|").replace("*","\\*"),"gi")}catch(L){this.emojiRegex=/$./}else this.emojiRegex=/$./};
Llk=function(m,G){G=_.g(G);for(var K=G.next();!K.done;K=G.next()){var W=K.value;if(W.emojiId&&m.emojiMap[W.emojiId]){K=Object.assign({},m.emojiMap[W.emojiId],W);m.emojiMap[W.emojiId]=K;var L=void 0;K.index&&((L=m.emojis[K.index])==null?void 0:L.emojiId)===W.emojiId&&(m.emojis[K.index]=K);W=void 0;if((W=K.shortcuts)==null?0:W.length)for(m.hasInitializedShortcutCharMap=!1,W=_.g(K.shortcuts),L=W.next();!L.done;L=W.next())m.emojiShortcutMap[L.value.toLocaleLowerCase()]=K}}};
AvX=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(_.W3.getInstance(),2);if(W.nextAddress!=3)return(G=W.yieldResult)?W.yield(G.get("ytlc-emoji-pref"),3):W.return();(K=W.yieldResult)&&Llk(m,Object.keys(K).map(function(L){return{emojiId:L,stickyPrefId:K[L]}}).filter(function(L){return!!L.emojiId&&!!L.stickyPrefId}));
_.ey(W)})};
_.hx=function(m,G,K){return(m=m.emojiMap[G])&&(!m.isLocked||K!==void 0&&K)?m:void 0};
p5=function(m,G,K){K=_.hx(m,G,K===void 0?!1:K);var W=G.match("\u200d");K&&m.skinTone!==0&&(m=(W==null?void 0:W.length)===1?_.hx(m,G.replace("\u200d",Toi[m.skinTone]+"\u200d")):_.hx(m,G+Toi[m.skinTone]))&&(K=m);return K};
wdP=function(m,G){var K=m.emojiMap[G];return(K==null?0:K.stickyPrefId)?m.emojiMap[K.stickyPrefId]:p5(m,G)};
_.ZE=function(m,G){m=m.emojiShortcutMap[G.toLocaleLowerCase()];return!m||m.isLocked?null:m};
gh2=function(m,G,K){return Wll(m,K===void 0?!1:K)[G]||{}};
Wll=function(m,G){G=G===void 0?!1:G;if(!m.hasInitializedShortcutCharMap){m.hasInitializedShortcutCharMap=!0;for(var K=0;K<m.emojis.length;K++){var W=m.emojis[K];if(!(W.isLocked||G&&W.isCustomEmoji&&W.emojiId&&!m.pickerCustomEmojiIds.includes(W.emojiId)))for(var L=0;W.shortcuts&&L<W.shortcuts.length;L++){var A=W.shortcuts[L];A.startsWith(":_")&&W.isCustomEmoji&&(m.emojiShortcutCharMap[":_"]==null&&(m.emojiShortcutCharMap[":_"]=Object.create(null)),m.emojiShortcutCharMap[":_"][A]=W);if(!(A.length<3||
!W.isCustomEmoji&&Me0.test(A))){var O=A.substr(0,3).toLocaleLowerCase();m.emojiShortcutCharMap[O]==null&&(m.emojiShortcutCharMap[O]=Object.create(null));m.emojiShortcutCharMap[O][A]=W}}}}return m.emojiShortcutCharMap};
_.um.prototype.createEmoji=function(m,G){G=G===void 0?!0:G;var K=document.createElement("img");m.isCustomEmoji||K.classList.add("small-emoji");K.classList.add("emoji");K.classList.add("yt-formatted-string");K.src=m.image?_.qy(m.image.thumbnails,this.emojiSize)||"":"";var W=void 0;m.image&&m.image.accessibility&&m.image.accessibility.accessibilityData&&(W=m.image.accessibility.accessibilityData.label);K.alt=W?W:(m.isCustomEmoji&&m.shortcuts?m.shortcuts[0]:m.emojiId)||"";m.isCustomEmoji&&(K.dataset.emojiId=
m.emojiId);_.PX&&(K.setAttribute("contenteditable","false"),K.setAttribute("unselectable","on"));G&&(m.shortcuts&&m.shortcuts.length&&K.setAttribute("shared-tooltip-text",m.shortcuts[0]),K.id="emoji-"+Bol++);return K};
_.um.prototype.createDocumentFragment=function(m,G,K,W){G=G===void 0?!1:G;K=K===void 0?!0:K;W=W===void 0?!1:W;m=m.replace(GRF,"");for(var L=document.createDocumentFragment(),A=0,O,c=0;(O=this.emojiRegex.exec(m))!=null;){var u=_.hx(this,O[0])||_.ZE(this,O[0]);!u||u.isCustomEmoji&&!G||(u=this.createEmoji(u,K),A!==O.index&&L.appendChild(document.createTextNode(m.substring(A,O.index))),L.appendChild(u),A=O.index+O[0].length,c++)}if(!W||c)return L.appendChild(document.createTextNode(m.substr(A))),L};
OR0=function(m,G,K){var W,L,A,O,c,u,h,J,N;return _.Y(function(D){if(D.nextAddress==1){if(!G.emojiId||!m.emojiMap[G.emojiId])return D.return();W=Object.assign({},m.emojiMap[G.emojiId],{stickyPrefId:K});m.emojiMap[G.emojiId]=W;G.index&&((L=m.emojis[G.index])==null?void 0:L.emojiId)===G.emojiId&&(m.emojis[G.index]=W);if((A=G.shortcuts)==null?0:A.length)for(m.hasInitializedShortcutCharMap=!1,O=_.g(G.shortcuts),c=O.next();!c.done;c=O.next())u=c.value,m.emojiShortcutMap[u.toLocaleLowerCase()]=W;return D.yield(_.W3.getInstance(),
2)}if(D.nextAddress!=4)return(h=D.yieldResult)?D.yield(h.get("ytlc-emoji-pref"),4):D.jumpTo(0);N=(J=D.yieldResult)!=null?J:{};N[G.emojiId]=K;return D.yield(h.set("ytlc-emoji-pref",N,iR2),0)})};
_.Jx=new _.um;var rvR;_.NR={};
rvR={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.F("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:_.F("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 oW(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 m=_.VL(this.hostElement||this).querySelector("#inline-action-button-container");m&&m.setAttribute("aria-hidden","true");this.menuButton=_.VL(this.hostElement).querySelector("#menu-button")},
attached:function(){var m=this.menuButton;m&&(m.addEventListener("focusin",_.xC(this,this.onMenuButtonFocus_)),m.addEventListener("focusout",_.xC(this,this.onMenuButtonBlur_)))},
detached:function(){var m=this.menuButton;m&&(m.removeEventListener("focusin",_.xC(this,this.onMenuButtonFocus_)),m.removeEventListener("focusout",_.xC(this,this.onMenuButtonBlur_)))},
identity:_.IM,truthy:function(m){return!!m},
computeTimestampString:function(m){return m?m.timestampText?this.getSimpleString(m.timestampText):this.TIME_FORMATTER.format(new Date(m.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(m){return m},
computeMenuVisible_:function(m,G){return m||G},
computeHasInlineActionButtons:function(m){if(!m)return!1;var G,K;return!((G=m.inlineActionButtons)==null||!G.length)||!((K=m.additionalInlineActionButtons)==null||!K.length)},
createDocumentFragmentFromString:function(m){var G=_.Jx.createDocumentFragment.bind(_.Jx),K;if((K=this.participantsManager)==null||!K.viewerRegex)return G(m);K=document.createDocumentFragment();for(var W=0,L;(L=this.participantsManager.viewerRegex.exec(m))!=null;){if(L.index>0){var A=":"+L[0]+":";if((_.hx(_.Jx,A)||_.ZE(_.Jx,A))&&m.indexOf(A)===L.index-1)continue}K.appendChild(G(m.substring(W,L.index)));W=document.createElement("span");W.appendChild(G(L[0]));W.classList.add("mention");K.appendChild(W);
W=L.index+L[0].length}K.appendChild(G(m.substring(W)));return K},
createDocumentFragment:function(m){var G=document.createDocumentFragment();if(m.simpleText)return G.appendChild(this.createDocumentFragmentFromString(m.simpleText)),G;if(!m.runs)return G;for(var K=0;K<m.runs.length;K++){var W=m.runs[K];if(W.emoji)G.appendChild(_.Jx.createEmoji(W.emoji));else if(W.text)if(W.navigationEndpoint){var L=document.createElement("a");L.classList.add("yt-simple-endpoint");jTv(L,W.navigationEndpoint);_.VL(L).appendChild(this.createDocumentFragmentFromString(W.text));G.appendChild(L)}else G.appendChild(this.createDocumentFragmentFromString(W.text))}return G},
hasModerationOverlayVisible:function(){var m;return((m=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:m.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(m){m.composedPath().some(function(G){return(G=G instanceof Element?G:null)?G.tagName&&(G.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||G.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.F("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(m)},
colorFromDecimal:function(m){return Dxv(m)},
markAsDeleted:function(m,G){this.set("data.deletedStateMessage",m);this.set("data.showOriginalContentMessage",G)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(m){if(this.data.contextMenuEndpoint){var G=_.xS().resolve(_.M_),K=this.data.contextMenuEndpoint,W;(W=_.NW.instance)&&_.Dg(W,K)?(G=cvR(G,K),W=_.Jf(W,{},G)):W=_.YwG(G,K);W.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);m&&m.stopPropagation()}},
handleGetContextMenuResponse_:function(m){var G=_.NW.instance;G&&_.Dg(G,{liveChatEndpoint:{}})||(m=m.response);m.liveChatItemContextMenuSupportedRenderers&&m.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(m.liveChatItemContextMenuSupportedRenderers.menuRenderer);m.actions&&_.dU(this.hostElement,"yt-live-chat-actions",[m.actions])},
handleGetContextMenuError:function(m){if(m instanceof Error||m instanceof Object||m instanceof String)var G=m;_.am(new _.cw("Error encountered calling GetLiveChatItemContextMenu",G))},
showContextMenu_:function(m){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:m}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Zw(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Zw(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.NR.YtLiveChatItemBehavior=[rvR,_.cq.YtComponentBehavior,_.Zd.YtOpenPopupBehavior];_.Df=function(){};var ulF;var h5X;var pdo;var Jv2;var tx=function(){var m=_.d.apply(this,arguments)||this;m.active=!1;m.identity=_.IM;return m};
_.n(tx,_.d);tx.prototype.dataChanged=function(){this.active=!1};
tx.prototype.onClick=function(){_.Zw(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
tx.prototype.dataChanged=tx.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],tx.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],tx.prototype,"active",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tx.prototype,"dataChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],tx);
_.y(tx,"yt-live-chat-text-input-field-suggestion",function(){if(Jv2===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;pdo===void 0&&(pdo=document.createElement("template"));var W=pdo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Jv2=m}m=Jv2;return m},{mode:0});_.Fq=function(m,G,K){return CustomEvent.call(this,m,{detail:{value:G,path:K}})||this};
_.n(_.Fq,CustomEvent);_.QC=function(){var m=_.d.apply(this,arguments)||this;m.viewerName=null;m.actionMap={"yt-live-chat-actions":"onChatMessage_"};m.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];m.PARTICIPANT_TIME_USEC_=3E8;return m};
_.n(_.QC,_.d);_.w=_.QC.prototype;_.w.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.w.addParticipant=function(m){var G=_.C6o(this.participants,m,function(W,L){W=W[Object.keys(W)[0]];L=L[Object.keys(L)[0]];W=String(_.bw(W.authorName)).toLowerCase();L=String(_.bw(L.authorName)).toLowerCase();return W<L?-1:W==L?0:1}.bind(this));
if(G>=0){var K=this.participants[G];K[Object.keys(K)[0]].timestampUsec&&this.splice("participants",G,1,m)}else this.splice("participants",-G-1,0,m);m=m[Object.keys(m)[0]];G=_.bw(m.authorName).toLocaleLowerCase();K=G.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(K)||(this.allParticipantsCharMap_[K]={});this.allParticipantsCharMap_[K][G]=m};
_.w.getAuthorsFromPrefix=function(m){return this.allParticipantsCharMap_.hasOwnProperty(m)?this.allParticipantsCharMap_[m]:null};
_.w.computeViewerRegex_=function(m){if(!m)return null;m=m.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var G=m.indexOf("@")===0&&_.F("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(G+m.replace(/ /g,"\\s*")+"|^"+m.replace(/ /g,"\\s*")+"$|^"+m.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+m.replace(/ /g,"\\s*")+"$|(?<=\\s)"+m.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.w.checkForStaleParticipants_=function(){var m=this;this.trimOldParticipants_();this.asyncHandle_&&BAo(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Dh(function(){m.checkForStaleParticipants_()},3E4))};
_.w.onChatMessage_=function(m){var G=this,K=Date.now()*1E3;m.forEach(function(W){if(W=_.Q(W,Ri0)){W=W.item;var L=Object.keys(W)[0];G.SUPPORTED_ITEM_TYPES_.indexOf(L)!=-1&&W[L].timestampUsec>=K-G.PARTICIPANT_TIME_USEC_&&G.addParticipant(W)}},this);
this.checkForStaleParticipants_()};
_.w.trimOldParticipants_=function(){for(var m=Date.now()*1E3,G=this.participants.length-1;G>=0;G--){var K=this.participants[G];K=K[Object.keys(K)[0]];K.timestampUsec&&K.timestampUsec<m-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",G,1)}};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],_.QC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],_.QC.prototype,"viewerName",void 0);_.x([_.V({computed:"computeViewerRegex_(viewerName)"}),_.S("design:type",Object)],_.QC.prototype,"viewerRegex",void 0);_.x([_.V({value:function(){return[]},
notify:!0}),_.S("design:type",Array)],_.QC.prototype,"participants",void 0);_.x([_.cL({is:"yt-live-chat-participants-manager",noInjection:!0})],_.QC);var NyP=/.*([:@#].*?)$/,aq=/\u00a0/g,DJo=String.fromCharCode(160),tX0={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"},oq=function(){var m=_.d.apply(this,arguments)||this;m.disabled=!1;m.liveChatRichMessageInput=null;m.messageInput=null;m.isValidWithNoInputText=!1;m.suggestions=[];m.emojiManager=_.Jx;m.inputMethodEditorActive=
!1;m.suggestionIndex=-1;m.JSC$14541_lastSuggestionRange=null;return m};
_.n(oq,_.d);_.w=oq.prototype;_.w.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.w.attached=function(){_.lY&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.w.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.w.dataChanged=function(){if(!this.ignoreColorMapping){var m=!1,G={},K;for(K in tX0)this.data&&this.data.hasOwnProperty(K)&&(G[tX0[K]]=this.colorFromDecimal(this.data[K]),m=!0);m&&_.eb(this.hostElement,G)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.w.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.w.colorFromDecimal=function(m){m=Math.floor(Number(m));return"rgba("+[m>>16&255,m>>8&255,m&255,(m>>24&255)/255].join()+")"};
_.w.preventDrag=function(m){m.dataTransfer&&(m.dataTransfer.dropEffect="none");m.preventDefault()};
_.w.preventResize=function(m){m.returnValue=!1};
_.w.onInputChange=function(){var m=this.characterCount,G=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&G&&G.remove();if(!G&&this.characterCount>this.maxCharacterLimit){var K=window.getSelection();if(K){var W=K.getRangeAt(0);K.removeAllRanges();K.addRange(W)}}if(K=this.getCurrentRange())W=this.calculateTextBeforeRange(K),this.completeEmojisInRange(K,W,!0)||this.updateSuggestions(K,W);W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);
_.Zw(this.hostElement,"yt-live-chat-message-input-change",W);G&&this.characterCount===0&&G.remove();K&&K.commonAncestorContainer.parentElement.id==="input"&&K.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>m):K&&!K.collapsed&&K.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(m=this.input.childNodes.length-1;m>=0;m--)this.input.childNodes[m].nodeName==="BR"&&this.input.childNodes[m].remove()};
_.w.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.w.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var m=this.getCurrentRange();m&&m.commonAncestorContainer.parentElement.id==="input"&&m.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.w.mergeOverflowText=function(m){if(m){var G=document.createRange();G.selectNodeContents(m);G=G.extractContents();this.input.insertBefore(G,m)}};
_.w.checkRangeAtEndOfInput=function(){var m=this.getCurrentRange();if(m){var G=_.VL(this.hostElement).querySelector("#overflow-text"),K=document.createRange();G&&G.previousSibling?G.previousSibling instanceof HTMLImageElement?K.selectNode(G.previousSibling):K.selectNodeContents(G.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?K.selectNode(this.input.lastChild):K.selectNodeContents(this.input.lastChild));K.collapse(!1);return K.isPointInRange(m.startContainer,
m.startOffset)}return!1};
_.w.handleOverflowText=function(m){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var G=_.VL(this.hostElement).querySelector("#overflow-text"),K=this.getCurrentRange();this.input.normalize();m=this.checkRangeAtEndOfInput()&&m;this.mergeOverflowText(G);for(var W,L=0,A=0,O,c=this.input.childNodes,u=0;u<c.length;u++){var h=c[u];h instanceof Text?(A+=h.textContent.length,A>this.maxCharacterLimit&&(W=h,L=this.maxCharacterLimit+h.textContent.length-A)):h instanceof HTMLImageElement&&
(W=void 0,A=h.dataset.emojiId&&((W=this.data)==null?0:W.emojiCharacterCount)?A+this.data.emojiCharacterCount:A+h.alt.length,W=this.input,L=u);if(A>this.maxCharacterLimit&&W){O=document.createRange();O.collapse(!1);G?(A=this.input.lastChild.previousSibling,A instanceof Text?O.setEnd(this.input.lastChild.previousSibling,A.textContent.length):A instanceof HTMLImageElement&&O.setEnd(this.input,this.input.childNodes.length-1)):O.selectNodeContents(this.input);O.setStart(W,L);break}}O&&(W=!1,K&&(m=O.isPointInRange(K.startContainer,
K.startOffset-1)),G||(G=document.createElement("span"),G.id="overflow-text",G.textContent="",G.setAttribute("contenteditable","true"),_.VL(_.VL(this.hostElement).querySelector("#input")).appendChild(G),W=!0),G&&(K=O.extractContents(),G.insertBefore(K,G.firstChild),m&&G.firstChild&&(K=document.createRange(),W?K.setStartAfter(G.lastChild):K.setStartAfter(G.firstChild),K.collapse(!0),G=window.getSelection(),G.removeAllRanges(),G.addRange(K))))}};
_.w.checkForDuplicateSpans=function(){for(var m=0;m<this.input.childNodes.length;m++){var G=this.input.childNodes[m];if(G.nodeName==="SPAN"){var K=document.createRange();K.selectNodeContents(G);K=K.extractContents();this.input.insertBefore(K,G);G.remove()}}this.handleOverflowText(!0)};
_.w.getCurrentRange=function(){var m=window.getSelection();return m&&m.rangeCount?m.getRangeAt(0).cloneRange():null};
_.w.getInputRange=function(){var m=this.getCurrentRange();if(m){for(var G=m.commonAncestorContainer,K=!1,W=_.VL(this.hostElement).querySelector("#input");G;){if(G===W){K=!0;break}G=G.parentNode}K||(m=null)}m||(m=this.getRangeAtEnd());return m};
_.w.getRangeAtEnd=function(){var m=document.createRange(),G=_.VL(this.hostElement).querySelector("#input").lastChild;!G||G.nodeName!=="#text"&&G.nodeName!=="SPAN"?(m.selectNodeContents(_.VL(this.hostElement).querySelector("#input")),m.collapse(!1)):G.nodeName==="#text"?m.setStart(G,G.textContent.length):m.setStart(G,G.childNodes.length);return m};
_.w.getChatParticipantSuggestions=function(m,G,K,W){var L=_.F("live_chat_enable_handles_web_text_input_update");if(G)for(var A in G)if(A.indexOf(m)===0||L&&A.indexOf(K+m)===0){var O=G[A],c=_.bw(O.authorName);W.push({suggestion:{author:!0,authorType:K,image:O.authorPhoto,alt:c,text:c}});if(W.length>=64)break}};
_.w.getSuggestions=function(m){var G=[],K=m.substring(0,3),W=gh2(_.Jx,K,!0);if(W)for(var L in W)if(L.toLocaleLowerCase().indexOf(m)===0){var A=W[L];if(A&&A.emojiId){if(A=wdP(_.Jx,A.emojiId)){var O=void 0,c=void 0,u=void 0,h=void 0,J=((O=A.image)==null?0:(c=O.accessibility)==null?0:(u=c.accessibilityData)==null?0:u.label)||A.isCustomEmoji?(h=A.shortcuts)==null?void 0:h[0]:A.emojiId;G.push({suggestion:{emoji:!0,image:A.image,alt:J,text:L,textToInsertWhenSelected:A.isCustomEmoji?L:J}})}if(G.length>=
64)break}}if(!this.participantsManager)return null;if(K.indexOf("@")===0||K.indexOf("#")===0)W=K.charAt(0),m=m.substring(1),L=_.F("live_chat_enable_handles_web_text_input_update"),K.indexOf("@")===0&&L&&(L=this.participantsManager.getAuthorsFromPrefix(K.substring(0,2)),this.getChatParticipantSuggestions(m,L,W,G)),K=K.substring(1),K=this.participantsManager.getAuthorsFromPrefix(K),this.getChatParticipantSuggestions(m,K,W,G);return G?G.sort(function(N,D){return D.suggestion.text<N.suggestion.text?-1:
D.suggestion.text===N.suggestion.text?0:1}):null};
_.w.insertSuggestion=function(m){var G=_.F("live_chat_enable_handles_web_text_input_update"),K=m.authorType;G=m.text.indexOf(K)===0&&G?m.text+DJo:K+m.text+DJo;m.emoji?this.insertTextAtRange(this.JSC$14541_lastSuggestionRange,m.textToInsertWhenSelected||""):m.author&&this.insertTextAtRange(this.JSC$14541_lastSuggestionRange,G)};
_.w.updateSuggestionsAtCaret=function(){var m=this.getCurrentRange();m&&this.updateSuggestions(m,this.calculateTextBeforeRange(m))};
_.w.offsetStartOfRangeBy=function(m,G){for(;G>0;)if(m.startOffset-G>=0){m.setStart(m.startContainer,m.startOffset-G);break}else{G=m.startContainer instanceof HTMLImageElement?G-m.startContainer.alt.length:G-m.startOffset;var K=m.startContainer.previousSibling;if(!K){m.setStart(m.startContainer,0);break}if(_.F("live_chat_require_space_for_autocomplete_emoji")){var W=void 0,L=void 0;m.setStart(K,((W=K)==null?void 0:(L=W.textContent)==null?void 0:L.length)||0)}else m.setStart(K,K.childNodes.length||
0)}};
_.w.updateSuggestions=function(m,G){var K=this;this.JSC$14541_lastSuggestionRange&&(this.JSC$14541_lastSuggestionRange.detach(),this.JSC$14541_lastSuggestionRange=null);if((G=NyP.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2&&(this.offsetStartOfRangeBy(m,G.length),this.JSC$14541_lastSuggestionRange=m,(m=this.getSuggestions(G))&&m.length))){this.suggestions=m;_.Pv(this,function(){_.VL(K.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(m.length-1);return}this.dropdown.opened=!1};
_.w.completeEmojisInRange=function(m,G,K){var W=G.replace(/[\s\xa0]+$/,"");G=G.length-W.length;W=W.split(" ");W=W[W.length-1].trim().toLocaleLowerCase();var L=W.lastIndexOf(":");if(K&&!G&&L!==W.length-1)return!1;L!==-1&&(K=W.lastIndexOf(":",L-1),K!==-1&&(W=W.substring(K)));if((K=_.ZE(_.Jx,W))&&K.emojiId){K=wdP(_.Jx,K.emojiId)||null;this.offsetStartOfRangeBy(m,W.length+G);var A,O,c,u;W=(((A=K)==null?0:A.isCustomEmoji)?(O=K)==null?void 0:(c=O.shortcuts)==null?void 0:c[0]:(u=K)==null?void 0:u.emojiId)||
"";G&&(W+=DJo);this.insertTextAtRange(m,W);this.dropdown.opened=!1;return!0}return!1};
_.w.onSuggestion=function(m){this.insertSuggestion(m.detail);this.dropdown.opened=!1};
_.w.onKeyPress=function(m){m.keyCode===13&&(m.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Zw(this.hostElement,"yt-live-chat-send-message"))};
_.w.completeEmojis=function(){var m=document.createRange(),G=_.VL(this.hostElement).querySelector("#input").lastChild;G?m.setStart(G,G.childNodes.length):(m.selectNodeContents(_.VL(this.hostElement).querySelector("#input")),m.collapse(!1));this.completeEmojisInRange(m,this.calculateTextBeforeRange(m),_.F("live_chat_require_space_for_autocomplete_emoji"))};
_.w.maybePreventTextFormatting=function(m){!_.fY||!m.ctrlKey&&!m.metaKey||m.keyCode!==66&&m.keyCode!==73||(m.stopImmediatePropagation(),m.preventDefault())};
_.w.onKeyDown=function(m){this.maybePreventTextFormatting(m);if(this.dropdown.opened)switch(m.keyCode){case 27:this.dropdown.opened=!1;m.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;m.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);m.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),m.preventDefault()}};
_.w.onKeyUp=function(m){switch(m.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.PX)this.onInputChange()};
_.w.changeSuggestionIndex=function(m){if(this.dropdown.opened){var G=_.VL(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<G.children.length&&(G.children[this.suggestionIndex].active=!1);var K=this.suggestions.length;this.suggestionIndex=(m+K)%K;m=G.children[this.suggestionIndex];m.active=!0;G.scrollTop=m.offsetTop}};
_.w.onInputPaste=function(m){m.preventDefault();(m=m.clipboardData)&&m.types&&(m=m.getData("text/plain")||"",m=m.replace(/\n/g,""),this.insertText(m));(m=this.getCurrentRange())&&m.commonAncestorContainer.parentElement.id==="input"&&m.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.w.onFocus=function(){this._setFocused(!0)};
_.w.onBlur=function(){this._setFocused(!1)};
_.w.insertText=function(m){this.insertTextAtRange(this.getInputRange(),m)};
_.w.insertTextAtRange=function(m,G){if(m&&(m.collapsed||m.deleteContents(),G=_.Jx.createDocumentFragment(G,!0,!1))){for(var K=_.g((G==null?void 0:G.childNodes)||[]),W=K.next();!W.done;W=K.next()){W=W.value;var L=void 0,A=void 0,O=void 0,c=void 0,u=void 0;(O=(L=window)==null?void 0:(A=L.ShadyCSS)==null?void 0:A.ScopingShim)==null||(u=(c=O).scopeNode)==null||u.call(c,W,this.hostElement.localName)}K=G.lastChild;m.insertNode(G);this.focused||this.input.focus();if(this.focused){m=m.cloneRange();m.selectNodeContents(K);
m.collapse(!1);if(G=window.getSelection())G.removeAllRanges(),G.addRange(m);m.commonAncestorContainer.parentElement.id==="input"&&m.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}m=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(m);_.Zw(this.hostElement,"yt-live-chat-message-input-change",m)}};
_.w.setLiveChatRichMessageInput=function(m){_.VL(_.VL(this.hostElement).querySelector("#input")).textContent="";if(m&&m.textSegments){for(var G=0;G<m.textSegments.length;G++){var K=m.textSegments[G];K.text?_.VL(_.VL(this.hostElement).querySelector("#input")).appendChild(_.Jx.createDocumentFragment(K.text,!0,!1)):K.emojiId&&(K=_.hx(_.Jx,K.emojiId))&&_.VL(_.VL(this.hostElement).querySelector("#input")).appendChild(_.Jx.createEmoji(K,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.w.setText=function(m){this.setLiveChatRichMessageInput(m?{textSegments:[{text:m}]}:null)};
_.w.calculateTextBeforeRange=function(m){var G="",K=m.startContainer;if(K&&K instanceof Text){var W;G=((W=K.textContent)==null?void 0:W.substring(0,m.startOffset))||"";K=K.previousSibling}for(;K&&K instanceof Text;)G=K.textContent+G,K=K.previousSibling;return G.replace(aq," ")};
_.w.calculateLiveChatRichMessageInput=function(){for(var m=[],G="",K=_.VL(_.VL(this.hostElement).querySelector("#input")).childNodes,W=0;W<K.length;W++){var L=K[W];L instanceof Text?G+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(G&&(m.push({text:G.replace(aq," ")}),G=""),m.push({emojiId:L.dataset.emojiId})):G+=L.alt)}G&&m.push({text:G.replace(aq," ")});if(K=_.VL(this.hostElement).querySelector("#overflow-text")){G="";K=K.childNodes;for(W=0;W<K.length;W++)L=K[W],L instanceof Text?
G+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(G&&(m.push({text:G.replace(aq," ")}),G=""),m.push({emojiId:L.dataset.emojiId})):G+=L.alt);G&&m.push({text:G.replace(aq," ")})}return{textSegments:m}};
_.w.computeCharacterCount=function(m){if(!m||!m.textSegments)return 0;for(var G=0,K=0;K<m.textSegments.length;K++){var W=m.textSegments[K];if(W.text)G+=W.text.length;else if(W.emojiId){var L=void 0;if((L=this.data)==null?0:L.emojiCharacterCount)G+=this.data.emojiCharacterCount;else{var A=L=void 0,O=void 0;G+=((A=_.hx(_.Jx,(L=W)==null?void 0:L.emojiId))==null?void 0:(O=A.shortcuts)==null?void 0:O[0].length)||0}}}return G};
_.w.characterCountChanged=function(){_.Zw(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.w.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Fq("focused-changed",this.focused))};
_.w.focus=function(){this.setFocus(!1)};
_.w.focusAtEnd=function(){this.setFocus(!0)};
_.w.setFocus=function(m){m=m?this.getRangeAtEnd():this.getInputRange();_.VL(this.hostElement).querySelector("#input").focus();var G=window.getSelection();G&&(G.removeAllRanges(),G.addRange(m))};
_.w.insertEmoji=function(m){var G,K=((m==null?0:m.isCustomEmoji)?(G=m.shortcuts)==null?void 0:G[0]:m==null?void 0:m.emojiId)||"";this.insertText(K)};
_.w.computeText=function(m){if(!m||!m.textSegments)return"";for(var G="",K=0;K<m.textSegments.length;K++){var W=m.textSegments[K];if(W.text)G+=W.text;else if(W.emojiId){var L=void 0,A=void 0,O=void 0;G+=((A=_.hx(_.Jx,(L=W)==null?void 0:L.emojiId))==null?void 0:(O=A.shortcuts)==null?void 0:O[0])||""}}return G};
_.w.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.e_.Object.defineProperties(oq.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.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}}});
oq.prototype.focusedChanged=oq.prototype.focusedChanged;oq.prototype.characterCountChanged=oq.prototype.characterCountChanged;oq.prototype.onSuggestion=oq.prototype.onSuggestion;oq.prototype.onMessageSet=oq.prototype.onMessageSet;oq.prototype.dataChanged=oq.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],oq.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],oq.prototype,"disabled",void 0);_.x([_.E("disabled"),_.S("design:type",Number),_.S("design:paramtypes",[])],oq.prototype,"inputTabIndex",null);_.x([_.E("data.maxCharacterLimit"),_.V({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],oq.prototype,"maxCharacterLimit",null);
_.x([_.E("liveChatRichMessageInput"),_.V({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],oq.prototype,"characterCount",null);_.x([_.E("maxCharacterLimit, characterCount"),_.V({readOnly:!0,notify:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],oq.prototype,"remainingCharacterCount",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],oq.prototype,"isChatMessageInput",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],oq.prototype,"inputExpanded",void 0);_.x([_.V({readOnly:!0,notify:!0}),_.S("design:type",Object)],oq.prototype,"liveChatRichMessageInput",void 0);_.x([_.V(),_.S("design:type",Object)],oq.prototype,"messageInput",void 0);_.x([_.V(),_.S("design:type",Boolean)],oq.prototype,"ignoreColorMapping",void 0);_.x([_.E("characterCount"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oq.prototype,"hasText",null);
_.x([_.V(),_.S("design:type",Object)],oq.prototype,"isValidWithNoInputText",void 0);_.x([_.E("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.V(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oq.prototype,"isInputValid",null);_.x([_.V({readOnly:!0,value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],oq.prototype,"focused",void 0);_.x([_.V(),_.S("design:type",Array)],oq.prototype,"suggestions",void 0);
_.x([_.V(),_.S("design:type",_.um)],oq.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",_.QC)],oq.prototype,"participantsManager",void 0);_.x([_.V(),_.S("design:type",Boolean)],oq.prototype,"noUnderline",void 0);_.x([_.V(),_.S("design:type",Object)],oq.prototype,"inputMethodEditorActive",void 0);_.x([_.UM("#dropdown"),_.S("design:type",Object)],oq.prototype,"dropdown",void 0);_.x([_.UM("#input"),_.S("design:type",HTMLElement)],oq.prototype,"input",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oq.prototype,"dataChanged",null);_.x([_.Sb("messageInput"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oq.prototype,"onMessageSet",null);_.x([_.XC("yt-live-chat-select-suggestion"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],oq.prototype,"onSuggestion",null);
_.x([_.Sb("characterCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oq.prototype,"characterCountChanged",null);_.x([_.Sb("focused"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oq.prototype,"focusedChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],oq);
_.FlS=_.y(oq,"yt-live-chat-text-input-field-renderer",function(){if(h5X===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;ulF===void 0&&(ulF=document.createElement("template"));var W=ulF;K.call(G,W.content.cloneNode(!0),m.content.firstChild);h5X=m}m=h5X;return m},{mode:0});var n5=function(){var m=_.d.apply(this,arguments)||this;m.buttonOverrides={style:"overlay",type:"filled"};m.allowAnimations=!1;m.modern=_.F("web_button_rework_with_live");m.noPadding=!1;return m};
_.n(n5,_.d);_.w=n5.prototype;_.w.shouldSupportInlineActionButtons=function(){return!0};
_.w.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"}}}}};
_.w.ready=function(){var m=document.querySelector("yt-live-chat-app");m&&m.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.w.attached=function(){this.allowAnimations=!1};
_.w.dataChanged=function(){if(this.data){var m={"--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)};_.eb(this.hostElement,m);this.allowAnimations=!0}};
_.w.messageChanged=function(){var m,G=(m=this.data)==null?void 0:m.message;m=_.VL(_.VL(this.hostElement).querySelector("#message"));m.textContent="";G&&m.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(G))};
_.w.computeShowOnlyHeader=function(m,G){return!m||m.pdgLikeButton||m.replyButton||m.buyFlowButton?!1:this.isEmpty(m,G)&&!m.footer};
_.w.computeShowFooterDivider=function(m,G,K){return m?!!m.footer&&!this.isEmpty(m,G)&&!K:!1};
_.w.computeIsUserEditable=function(m){return!!m.inputField};
_.w.computeHasHeartButton=function(m){return(m==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(m==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(m==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.w.computeNoveltyImage=function(m){if(m.headerOverlayImage&&m.headerOverlayImage.thumbnails.length){var G=m.headerOverlayImage.thumbnails[0],K,W;if((K=m.pdgPurchasedNoveltyLoggingDirectives)==null?0:(W=K.loggingDirectives)==null?0:W.trackingParams){var L,A;bRd((L=m.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(A=L.loggingDirectives)==null?void 0:A.trackingParams)}return G.width||0}return 0};
_.w.computeAuthorPhotoSize=function(m){return(m==null?0:m.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.w.inputFocus=function(){var m=_.VL(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");m&&m.focus()};
_.w.inputInsertEmoji=function(m){var G=_.VL(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");G&&G.insertEmoji(m)};
_.w.inputMessage=function(){var m=_.VL(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),G;return m&&((G=this.data)==null?0:G.inputField)?(m.completeEmojis(),_.ho(m.liveChatRichMessageInput)):null};
_.w.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.w.isEmpty=function(m,G){return m?m.empty||!(m.message||m.inputField||G):!0};
_.w.onLowerBuyButtonClick=function(){var m,G=_.Q((m=this.data)==null?void 0:m.buyButton,_.uu);G&&G.trackingParams&&!F49(G.command)&&(m=_.m5(G.trackingParams))&&(G=_.gU())&&_.nW(G,m)};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.e_.Object.defineProperties(n5.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
n5.prototype.isDeletedChanged=n5.prototype.isDeletedChanged;n5.prototype.messageChanged=n5.prototype.messageChanged;n5.prototype.dataChanged=n5.prototype.dataChanged;_.x([_.q(eNl.YtPdgLiveChatItemBehavior),_.S("design:type",Object)],n5.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],n5.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],n5.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],n5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],n5.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:oh9}),_.S("design:type",Object)],n5.prototype,"engagementState",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.S("design:type",Boolean)],n5.prototype,"isUserEditable",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.S("design:type",Boolean)],n5.prototype,"hasHeartButton",void 0);_.x([_.V({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.S("design:type",Boolean)],n5.prototype,"showOnlyHeader",void 0);
_.x([_.V({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.S("design:type",Boolean)],n5.prototype,"showFooterDivider",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],n5.prototype,"allowAnimations",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],n5.prototype,"dashboardMoneyFeed",void 0);_.x([_.V({computed:"computeNoveltyImage(data)"}),_.S("design:type",Number)],n5.prototype,"noveltyWidth",void 0);
_.x([_.V({computed:"computeAuthorPhotoSize(data)"}),_.S("design:type",Number)],n5.prototype,"authorPhotoSize",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],n5.prototype,"modern",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],n5.prototype,"noPadding",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n5.prototype,"dataChanged",null);
_.x([_.Sb("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n5.prototype,"messageChanged",null);_.x([_.E("data","dashboardMoneyFeed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],n5.prototype,"hideLowerBumper",null);_.x([_.Sb("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n5.prototype,"isDeletedChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],n5);
_.y(n5,"yt-live-chat-paid-message-renderer",function(){if(bEP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;npk===void 0&&(npk=document.createElement("template"));var W=npk;K.call(G,W.content.cloneNode(!0),m.content.firstChild);bEP=m}m=bEP;return m},{mode:0});var QZR;var aXF;var bm=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;return m};
_.n(bm,_.l0);bm.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.E8("openPopupConfig")};
_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],bm.prototype,"ytOpenPopupBehavior",void 0);_.x([_.Be()],bm);_.vi=[_.Zd.YtOpenPopupBehavior,bm.prototype];var oh4;var dfG=[_.S8,Q94,_.cX,_.dRX,_.nz,_.SYo,_.cB,_.lw,_.RW,_.WsC,_.QQ];_.F("web_show_ep_endpoint_response_received")&&dfG.push(_.Oa);var HsR=new _.sX("RESPONSE_RECEIVED_COMMANDS"),Zi6=new _.sX("RESPONSE_RECEIVED_COMMANDS");var E7M="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),qE6=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],szv=["GET_UNSEEN_NOTIFICATION_COUNT"];var $6=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;m.serviceEndpointHandlers=[];return m};
_.n($6,_.l0);$6.prototype.created=function(){var m=this;this.endpointHandlerActionMap={"yt-service-request":function(G,K,W,L){var A;return $fV(m.hostElement,G,K,W,L,m.serviceEndpointHandlers,(A=m.onEntitiesUpdated)==null?void 0:A.bind(m))}}};
$6.prototype.attached=function(){_.jN(_.Im.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
$6.prototype.detached=function(){_.kz(_.Im.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.x([_.Be()],$6);_.nh0=[$6.prototype];var bRo,vh4=function(){return bRo!==void 0?bRo:bRo=document.createElement("template")};
document.head.appendChild(vh4().content);var $Ji;var sZS=document.head,qwl=sZS.appendChild,EhB;if($Ji===void 0){var HRK=document.createElement("template");_.b(HRK,"\x3c!--css-build:shady--\x3e");HRK.content.insertBefore(vh4().content.cloneNode(!0),HRK.content.firstChild);$Ji=HRK}EhB=$Ji;qwl.call(sZS,EhB.content);var IXP,jZX=function(){return IXP!==void 0?IXP:IXP=document.createElement("template")};
document.head.appendChild(jZX().content);var kRC;var CHR=document.head,VXk=CHR.appendChild,ZRS;if(kRC===void 0){var dJ0=document.createElement("template");_.b(dJ0,"\x3c!--css-build:shady--\x3e");dJ0.content.insertBefore(jZX().content.cloneNode(!0),dJ0.content.firstChild);kRC=dJ0}ZRS=kRC;VXk.call(CHR,ZRS.content);var PHX;_.Kz("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Kz("sharingRendererButtons","buttonRenderer","ytd-button-renderer");PHX=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live");_.sD=function(){var m=_.d.apply(this,arguments)||this;m.isPressed=!1;m.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return m};
_.n(_.sD,_.d);_.w=_.sD.prototype;_.w.created=function(){this.showTooltips=!0};
_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.onHintIdChanged=function(){var m=this,G,K,W=(G=this.ytButtonBehavior.data)==null?void 0:(K=G.hint)==null?void 0:K.hintRenderer;if(W&&W.hintId){G=_.PH(this.hostElement,"yt-get-opened-popups-action");G=(G&&G.length===1?G[0]:[]).length>0;var L=null;W.hintId!=="sponsor-pre-purchase"||G?W.hintId.startsWith("sponsor-post-purchase")&&!G?L=sh2("membership-manage"):W.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!G&&(L=sh2("membership-freebie-join")):L=sh2("membership-join");L&&_.Fu.addLowPriorityJob(function(){for(var A=
_.g(L),O=A.next();!O.done;O=A.next())m.ytComponentBehavior.resolveCommand(O.value)})}};
_.w.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.w.onYtNavigate=function(m){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(m.detail.endpoint);G&&(m.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.w.onYtServiceRequestSent=function(m,G){this.handleServiceRequestActions(G);_.Zw(this.hostElement,"yt-service-request-sent-button-renderer")};
_.w.onServiceRequestCompleted=function(m,G){this.handleServiceRequestActions(G);_.Zw(this.hostElement,"yt-service-request-completed-button-renderer")};
_.w.updateButton=function(m){var G;if(m=(G=_.Q(m,hrk))==null?void 0:G.updatedButton)this.ytButtonBehavior.data=_.Q(m,_.uu)};
_.w.handleUpdateButtonAction=function(m){var G=this.ytButtonBehavior.data;G.targetId&&m.updateButtonAction.targetId&&G.targetId===m.updateButtonAction.targetId&&this.updateButton(m)};
_.w.handleServiceRequestActions=function(m){if(m=m.actions)for(var G=0;G<m.length;G++)this.updateButton(m[G])};
_.e_.Object.defineProperties(_.sD,{template:{configurable:!0,enumerable:!0,get:function(){if(oh4===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);oh4=m}m=oh4;return m}}});
_.sD.prototype.onServiceRequestCompleted=_.sD.prototype.onServiceRequestCompleted;_.sD.prototype.onYtServiceRequestSent=_.sD.prototype.onYtServiceRequestSent;_.sD.prototype.onYtNavigate=_.sD.prototype.onYtNavigate;_.sD.prototype.onPressedStateChanged=_.sD.prototype.onPressedStateChanged;_.sD.prototype.onHintIdChanged=_.sD.prototype.onHintIdChanged;_.x([_.V(),_.S("design:type",Object)],_.sD.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],_.sD.prototype,"isPressed",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],_.sD.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.XDG.YtButtonBehavior),_.S("design:type",Object)],_.sD.prototype,"ytButtonBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],_.sD.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],_.sD.prototype,"ytComponentBehavior",void 0);
_.x([_.q(RE.YtRenderButtonBehavior),_.S("design:type",Object)],_.sD.prototype,"ytRenderButtonBehavior",void 0);_.x([_.Sb("data.hint.hintRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],_.sD.prototype,"onHintIdChanged",null);_.x([_.Sb("isPressed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],_.sD.prototype,"onPressedStateChanged",null);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],_.sD.prototype,"onYtNavigate",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],_.sD.prototype,"onYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],_.sD.prototype,"onServiceRequestCompleted",null);_.x([_.Ye({is:"ytd-button-renderer",disableElementRegistration:PHX})],_.sD);var qR=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_button_rework_with_live");m.buttonOverrides={style:"overlay",type:"filled"};return m};
_.n(qR,_.d);_.w=qR.prototype;_.w.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"}}}}};
_.w.ready=function(){var m=document.querySelector("yt-live-chat-app");m&&m.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.w.dataChanged=function(){if(this.data&&this.data.sticker){var m=_.qy(this.data.sticker.thumbnails,this.stickerWidth);m||_.X5P(m).thenCatch(function(){_.nc(new _.cw("Failed to load Super Sticker with url",m))})}};
_.w.computeAuthorPhotoSize=function(m){return(m==null?0:m.isV2Style)?32:40};
_.w.computeIsV2Style=function(m){return(m==null?0:m.isV2Style)?!0:!1};
_.w.onStickerLoaded=function(m){var G,K,W;(G=_.$C(m))==null||(K=G.parentNode)==null||(W=K.classList)==null||W.add("sticker-loaded")};
_.w.computeNoveltyImageWidth=function(m){var G,K;if(m==null?0:(G=m.headerOverlayImage)==null?0:(K=G.thumbnails)==null?0:K.length){G=m.headerOverlayImage.thumbnails[0];var W,L;if((W=m.pdgPurchasedNoveltyLoggingDirectives)==null?0:(L=W.loggingDirectives)==null?0:L.trackingParams){var A,O;bRd((A=m.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(O=A.loggingDirectives)==null?void 0:O.trackingParams)}return G.width||0}return 0};
_.w.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.w.updateStickerStyles=function(){var m=this.data;m&&(m={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(m.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(m.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(m.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(m.authorNameTextColor)},
_.eb(this.hostElement,m))};
_.w.onBuyButtonClick=function(){var m,G=_.Q((m=this.data)==null?void 0:m.buyButton,_.uu);G&&!F49(G.command)&&this.ytRendererBehavior.logExplicitClick(G)};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.e_.Object.defineProperties(qR.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 m;return((m=this.data)==null?0:m.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
qR.prototype.updateStickerStyles=qR.prototype.updateStickerStyles;qR.prototype.isDeletedChanged=qR.prototype.isDeletedChanged;qR.prototype.onStickerLoaded=qR.prototype.onStickerLoaded;qR.prototype.dataChanged=qR.prototype.dataChanged;_.x([_.q(eNl.YtPdgLiveChatItemBehavior),_.S("design:type",Object)],qR.prototype,"ytPdgLiveChatItemBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],qR.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],qR.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qR.prototype,"data",void 0);
_.x([_.V({computed:"computeAuthorPhotoSize(data)"}),_.S("design:type",Number)],qR.prototype,"authorPhotoSize",void 0);_.x([_.V(),_.S("design:type",Boolean)],qR.prototype,"isDeleted",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],qR.prototype,"dashboardMoneyFeed",void 0);_.x([_.V({computed:"computeNoveltyImageWidth(data)"}),_.S("design:type",Number)],qR.prototype,"noveltyWidth",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],qR.prototype,"modern",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.S("design:type",Boolean)],qR.prototype,"isV2Style",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qR.prototype,"dataChanged",null);_.x([_.XC("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],qR.prototype,"onStickerLoaded",null);
_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],qR.prototype,"stickerWidth",null);_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],qR.prototype,"stickerHeight",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],qR.prototype,"hasHeartButton",null);_.x([_.E("data","dashboardMoneyFeed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],qR.prototype,"hideLowerBumper",null);
_.x([_.Sb("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qR.prototype,"isDeletedChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qR.prototype,"updateStickerStyles",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],qR);
_.y(qR,"yt-live-chat-paid-sticker-renderer",function(){if(aXF===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;QZR===void 0&&(QZR=document.createElement("template"));var W=QZR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);aXF=m}m=aXF;return m},{mode:0});var yvC;var e5F;var fXk,xJ4=function(){return fXk!==void 0?fXk:fXk=document.createElement("template")};
document.head.appendChild(xJ4().content);var Xdk,SwR=function(){return Xdk!==void 0?Xdk:Xdk=document.createElement("template")};
document.head.appendChild(SwR().content);var R5X;var UJG,z5k=function(){return UJG!==void 0?UJG:UJG=document.createElement("template")};
document.head.appendChild(z5k().content);var lXK;var Byi=document.head,MXC=Byi.appendChild,Tyo;if(lXK===void 0){var mfC=document.createElement("template");_.b(mfC,"\x3c!--css-build:shady--\x3e");mfC.content.insertBefore(z5k().content.cloneNode(!0),mfC.content.firstChild);lXK=mfC}Tyo=lXK;MXC.call(Byi,Tyo.content);var iiS=document.head,Gu2=iiS.appendChild,KZo;if(R5X===void 0){var ED=document.createElement("template");_.b(ED,"\x3c!--css-build:shady--\x3e");ED.content.insertBefore(SwR().content.cloneNode(!0),ED.content.firstChild);ED.content.insertBefore(xJ4().content.cloneNode(!0),ED.content.firstChild);R5X=ED}KZo=R5X;Gu2.call(iiS,KZo.content);var Hi=function(){var m=_.l0.apply(this,arguments)||this;m.focusedIndex=0;m.verticalOffset=0;m.verticalAlign="top";m.dynamicAlign=!0;return m};
_.n(Hi,_.l0);Hi.prototype.emojiUrl=function(m){m=_.hx(this.emojiManager,m);if(!m)return"";var G;m=(G=m.image)==null?void 0:G.thumbnails;return _.qy(m,24)||""};
var WZB=function(m){var G;m.emojiVariants&&(G=m.data)!=null&&G.target&&_.Pv(m,function(){m.set("verticalOffset",-1*m.hostElement.clientHeight);var K=_.VL(m.hostElement).querySelector("img");K&&K.focus()})};
_.w=Hi.prototype;_.w.onKeyboardEnter=function(){};
_.w.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.w.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.w.onKeyDown=function(m){switch(m.keyCode){case 13:this.onKeyboardEnter();m.preventDefault();break;case 40:this.changeFocus(1);m.preventDefault();break;case 38:this.changeFocus(-1);m.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.w.onYtEmojiSelect=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1)return W=(K=G.data)==null?void 0:K.emoji,O=((L=W)==null?void 0:L.stickyPrefId)||((A=W)==null?void 0:A.emojiId),u=(c=m.detail)==null?void 0:c.emojiId,O&&u&&O!==u?J.yield((h=G.emojiManager)==null?void 0:OR0(h,W,u),2):J.return();_.dU(G.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[W,u]);_.ey(J)})};
_.w.changeFocus=function(m){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+m+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(m=_.VL(this.hostElement).querySelector("#variants"))&&m.children[this.focusedIndex].focus())};
_.e_.Object.defineProperties(Hi.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Hi.prototype.onYtEmojiSelect=Hi.prototype.onYtEmojiSelect;Hi.prototype.onKeyDown=Hi.prototype.onKeyDown;Hi.prototype.onEmojiVariantsChanged=Hi.prototype.onEmojiVariantsChanged;Hi.prototype.onVerticalOffsetOrPositionTargetChanged=Hi.prototype.onVerticalOffsetOrPositionTargetChanged;_.x([_.q(_.Jp),_.S("design:type",Object)],Hi.prototype,"ironOverlayBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"data",void 0);_.x([_.V(),_.S("design:type",_.um)],Hi.prototype,"emojiManager",void 0);
_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"emojiVariants",void 0);_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"focusedIndex",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Hi.prototype,"positionTarget",null);_.x([_.V({reflectToAttribute:!0}),_.E("verticalOffset","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hi.prototype,"isPositioned",null);_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"verticalOffset",void 0);
_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"verticalAlign",void 0);_.x([_.V(),_.S("design:type",Object)],Hi.prototype,"dynamicAlign",void 0);_.x([_.Sb("verticalOffset","positionTarget"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Hi.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.x([_.Sb("emojiVariants"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Hi.prototype,"onEmojiVariantsChanged",null);
_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Hi.prototype,"onKeyDown",null);_.x([_.XC("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype",Promise)],Hi.prototype,"onYtEmojiSelect",null);_.x([_.Be()],Hi);var LZ4=[Hi.prototype];var AkB;var w5C;var g7S=/medium-light|medium-dark|light|medium|dark/,OiS=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,ckX=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Iq=function(){var m=_.d.apply(this,arguments)||this;m.userSelection={left:null,right:null};m.scrollAction="lock";m.isEmojiDraftInProgress=!1;return m};
_.n(Iq,_.d);_.w=Iq.prototype;_.w.onClick=function(m){m=_.$C(m);m instanceof HTMLImageElement&&this.selectOrUpdateEmoji(m)};
_.w.selectOrUpdateEmoji=function(m){var G=m.getAttribute("selection");G&&(G==="default"?_.Zw(this.hostElement,"yt-emoji-select",_.hx(this.emojiManager,m.id)):G==="left"?this.userSelection=Object.assign({},this.userSelection,{left:m.src}):G==="right"?this.userSelection=Object.assign({},this.userSelection,{right:m.src}):G==="user"&&this.userSelection.left&&this.userSelection.right&&_.Zw(this.hostElement,"yt-emoji-select",_.hx(this.emojiManager,m.id)))};
_.w.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.w.onMultiSelectorThumbnailRowChanged=function(){var m,G,K;((m=this.data)==null?0:(G=m.emoji)==null?0:(K=G.multiSelectorThumbnailRow)==null?0:K.length)&&this.openSelector()};
_.w.getThumbnailFromEmojiRow=function(m){var G,K;return(m==null?void 0:(G=m.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.url)||""};
_.w.getEmojiAltTextForPartialSelector=function(m){var G;return((G=this.getThumbnailFromEmojiRow(m).match(OiS))==null?void 0:G[0])||""};
_.w.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.w.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.w.getRowSelection=function(m){return["left","right"][m]};
_.w.getIdFromComposedEmoji=function(m){return(m==null?void 0:m.emojiId)||""};
_.w.getEmojiFromPartialSelections=function(m,G){if(!m&&!G)return null;var K,W,L=(K=this.data)==null?void 0:(W=K.emoji)==null?void 0:W.variantIds;if(!L||!L.length)return null;var A;m=(A=m.match(g7S))==null?void 0:A[0];var O;G=(O=G.match(g7S))==null?void 0:O[0];if(!m||!G)return null;var c=ckX.get(m);O=ckX.get(G);if(c===O){O=Array.from(ckX.values()).filter(function(h){return h!==c}).join("|");
var u=new RegExp("^((?!("+O+")).)*"+c+"$")}else u=new RegExp(c+".*"+O);return(L=L.find(function(h){return u.test(h)}))&&_.hx(this.emojiManager,L)||null};
_.w.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var m,G=this.ytEmojiSelectorBehavior.emojiUrl(((m=this.data.emoji)==null?void 0:m.emojiId)||"");_.VL(this.hostElement).querySelector('[selection="user"]').src.includes(G)||(this.isEmojiDraftInProgress=!0)}};
_.w.onDomChange=function(){WZB(this.ytEmojiSelectorBehavior)};
_.w.getFocusableElements=function(){return _.VL(this.hostElement).querySelectorAll("img").filter(function(m){return m.getAttribute("role")==="option"})};
_.w.changeFocus=function(m){var G=this.getFocusableElements();G!=null&&G.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+m+G.length)%G.length,this.ytEmojiSelectorBehavior.focusedIndex<G.length&&(m=G[this.ytEmojiSelectorBehavior.focusedIndex])&&m.focus())};
_.w.onKeyboardEnter=function(){var m=this.getFocusableElements();m!=null&&m.length&&(m=m[this.ytEmojiSelectorBehavior.focusedIndex])&&m instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(m),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.e_.Object.defineProperties(Iq.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K,W;return this.emojiManager&&((G=this.data)==null?0:(K=G.emoji)==null?0:(W=K.variantIds)==null?0:W.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.hx(m.emojiManager,L)}).filter(function(L){return!!L}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var m,G=(m=this.userSelection)==null?void 0:m.left,K;m=(K=this.userSelection)==null?void 0:K.right;return G&&m?this.getEmojiFromPartialSelections(G,m):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.composedEmojiSelection)==null?0:m.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var G;m=(G=this.userSelection)==null?void 0:G.left;var K;G=(K=this.userSelection)==null?void 0:K.right;if(!m&&!G){var W;return this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"")}return m&&!G?m:!m&&G?G:""}}});
Iq.prototype.onMultiSelectorThumbnailRowChanged=Iq.prototype.onMultiSelectorThumbnailRowChanged;Iq.prototype.onClick=Iq.prototype.onClick;_.x([_.q(_.Jp),_.S("design:type",Object)],Iq.prototype,"ironOverlayBehavior",void 0);_.x([_.q(LZ4),_.S("design:type",Object)],Iq.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Iq.prototype,"data",void 0);_.x([_.V(),_.S("design:type",_.um)],Iq.prototype,"emojiManager",void 0);
_.x([_.V(),_.S("design:type",Object)],Iq.prototype,"userSelection",void 0);_.x([_.V(),_.S("design:type",Object)],Iq.prototype,"scrollAction",void 0);_.x([_.V(),_.S("design:type",Object)],Iq.prototype,"isEmojiDraftInProgress",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Iq.prototype,"emojiVariants",null);_.x([_.E("data","userSelection"),_.S("design:type",Object),_.S("design:paramtypes",[])],Iq.prototype,"composedEmojiSelection",null);
_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],Iq.prototype,"onClick",null);_.x([_.Sb("data.emoji.multiSelectorThumbnailRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Iq.prototype,"onMultiSelectorThumbnailRowChanged",null);_.x([_.E("data","userSelection","composedEmojiSelection"),_.S("design:type",String),_.S("design:paramtypes",[])],Iq.prototype,"draftEmojiUrl",null);
_.x([_.cL({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Iq);
_.y(Iq,"yt-emoji-multi-person-selector",function(){if(w5C===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;AkB===void 0&&(AkB=document.createElement("template"));var W=AkB;K.call(G,W.content.cloneNode(!0),m.content.firstChild);w5C=m}m=w5C;return m},{mode:2});var YEX;var rkX;var jp=function(){var m=_.d.apply(this,arguments)||this;m.tooltip_=null;return m};
_.n(jp,_.d);_.w=jp.prototype;_.w.dataChanged_=function(){var m;if((m=this.data)==null?0:m.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.VL(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.yL)(this.tooltip_).textContent=this.data.tooltip};
_.w.computeTargetId=function(){var m;return((m=this.data)==null?void 0:m.targetId)||""};
_.w.computeId_=function(m){return m};
_.w.computeIcon_=function(m){return _.ew(m)};
_.w.onTap_=function(){this.active=!this.active;_.Zw(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.w.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("active-changed",this.active))};
_.e_.Object.defineProperties(jp.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var m,G;if((m=this.data)==null?0:(G=m.icon)==null?0:G.iconType)return this.data.icon.iconType==="SUPER_STICKER";var K,W;return((K=this.data)==null?void 0:(W=K.icon)==null?void 0:W.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
jp.prototype.activeChangedForBinding=jp.prototype.activeChangedForBinding;jp.prototype.dataChanged_=jp.prototype.dataChanged_;_.x([_.q(_.OH.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],jp.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jp.prototype,"data",void 0);_.x([_.V({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.S("design:type",String)],jp.prototype,"id",void 0);
_.x([_.V({computed:"computeTargetId(data.targetId)"}),_.S("design:type",String)],jp.prototype,"targetId",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jp.prototype,"active",void 0);_.x([_.V({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.S("design:type",String)],jp.prototype,"icon",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jp.prototype,"dataChanged_",null);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jp.prototype,"iconFilled",null);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jp.prototype,"activeChangedForBinding",null);_.x([_.cL({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],jp);
_.y(jp,"yt-emoji-picker-category-button-renderer",function(){if(rkX===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;YEX===void 0&&(YEX=document.createElement("template"));var W=YEX;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rkX=m}m=rkX;return m},{mode:2});var u1K;var h2C;var k6=function(){var m=_.d.apply(this,arguments)||this;m.ariaLabel=null;m.ariaActivedescendant=null;m.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};m.JSC$14606_ignoreNextFocus_=!1;m.longPressTimeoutId=-1;return m};
_.n(k6,_.d);_.w=k6.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.w.emojiChanged_=function(){this.changeFocus_(0,!1);for(var m=_.l1(),G=0;G<this.emoji.length;G++){var K={veType:88013,elementIndex:G},W=this.emoji[G];W.isCustomEmoji&&(W=document.querySelector(("#"+W.emojiId).replace("/","\\/")))&&(K=_.zg(m,K))&&(W.visualElement=K)}};
_.w.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.w.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.w.emojiSkinToneChanged_=function(m){this.skinTone=m};
_.w.dataChanged=function(){this.data&&this.data.emojiData&&Llk(this.emojiManager,this.data.emojiData)};
_.w.emojiUrl=function(m){m=this.getEmoji(m);if(!m)return"";var G;m=(G=m.image)==null?void 0:G.thumbnails;return _.qy(m,24)||""};
_.w.emojiAlt=function(m){var G=this.get("image.accessibility.accessibilityData.label",m);return G?G:m.isCustomEmoji?m.shortcuts[0]:m.emojiId};
_.w.emojiAriaLabel=function(m){return m.shortcuts?m.shortcuts[0]:""};
_.w.emojiAriaSelected=function(m,G,K){return m&&K==G?"true":"false"};
_.w.getEmoji=function(m){if(this.emojiManager)return this.shouldUseStickyPreferences?wdP(this.emojiManager,m):p5(this.emojiManager,m)};
_.w.computeId_=function(m){return m.categoryId||""};
_.w.computeEmoji=function(m){var G=this;return this.emojiManager?m.emojiIds?m.emojiIds.map(function(K){return K?_.hx(G.emojiManager,K):null}).filter(SEd):m.emojiData?m.emojiData.map(function(K){var W=!!K.emojiId&&_.hx(G.emojiManager,K.emojiId);
return W?Object.assign({},W,K):null}).filter(SEd):[]:[]};
_.w.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.w.computeAriaLabel_=function(m){return _.bw(m)};
_.w.computeAriaActivedescendant_=function(m,G){return m&&m[G]?m[G].emojiId||"":""};
_.w.handleLongPressEmojiWithVariants=function(m,G){this.changeFocusToEmoji(m.emojiId,!1);this.openVariantSelector(m,G)};
_.w.onMouseDown=function(m){var G=this;this.hostElement!==document.activeElement&&(this.JSC$14606_ignoreNextFocus_=!0);if(m.button===0){var K=_.$C(m);if(K instanceof HTMLImageElement){var W=_.VL(this.hostElement).querySelector("#repeat").itemForElement(K);this.emojiContainsVariants(W)&&(this.longPressTimeoutId=setTimeout(function(){G.handleLongPressEmojiWithVariants(W,K)},500))}}};
_.w.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.w.onFocus=function(){this.JSC$14606_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14606_ignoreNextFocus_=!1};
_.w.onBlur_=function(){this.showFocus=!1};
_.w.emojiContainsVariants=function(m){return!!(m&&m.variantIds&&m.variantIds.length)};
_.w.onClick=function(m){clearTimeout(this.longPressTimeoutId);m=_.$C(m);if(m instanceof HTMLImageElement){var G=m.id;this.changeFocusToEmoji(G,!1);var K=this.getEmoji(G),W;if(W=this.shouldUseStickyPreferences&&this.emojiContainsVariants(K)){var L;W=!((L=this.emojiManager.emojiMap[G])!=null&&L.stickyPrefId)}W?(L=_.VL(this.hostElement).querySelector("#repeat").itemForElement(m),this.openVariantSelector(L,m)):_.Zw(this.hostElement,"yt-emoji-select",K)}};
_.w.isActiveEmojiWithVariants=function(m,G){return m&&G?G.stickyPrefId?m===G.stickyPrefId:m===G.emojiId:!1};
_.w.onCloseEmojiVariantSelector=function(m){this.activeEmojiWithVariantsId===m&&(this.activeEmojiWithVariantsId="")};
_.w.onMouseOver_=function(m){m=_.$C(m);m instanceof HTMLImageElement&&_.Zw(this.hostElement,"yt-emoji-hover",_.hx(this.emojiManager,m.id))};
_.w.changeFocus_=function(m,G){this.focusedIndex=(this.focusedIndex+m+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(m=this.emoji[this.focusedIndex],G&&(this.showFocus=!0,_.VL(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Zw(this.hostElement,"yt-emoji-hover",m)))};
_.w.changeFocusToEmoji=function(m,G){if(m){var K=this.emoji.findIndex(function(W){return W.emojiId===m});
K!==-1&&this.changeFocus_(K-this.focusedIndex,G)}};
_.w.onKeyDown_=function(m){switch(m.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var G=this.emoji[this.focusedIndex];if(G&&G.emojiId){if(this.emojiContainsVariants(G)){var K=_.VL(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(G,K)}else _.Zw(this.hostElement,"yt-emoji-select",p5(this.emojiManager,G.emojiId)),this.hostElement.focus();m.preventDefault()}}break;case 40:this.changeFocus_(1,!0);m.preventDefault();break;case 38:this.changeFocus_(-1,!0),
m.preventDefault()}};
_.w.onEmojiStickyPreferenceChanged=function(m,G){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&m.emojiId&&m.variantIds&&m.variantIds.includes(G)&&this.activeEmojiWithVariantsId!==G&&this.setStickyEmojiPreference(m.emojiId,G)};
_.w.openVariantSelector=function(m,G){this.activeEmojiWithVariantsId=m.stickyPrefId||m.emojiId||"";_.Zw(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:m,target:G})};
_.w.setStickyEmojiPreference=function(m,G){if(this.data){var K=this.emoji.findIndex(function(L){return L.emojiId===m});
if(K!==-1){var W=this.emoji[K];W.stickyPrefId=G;this.set("emoji."+K,Object.assign({},W));this.activeEmojiWithVariantsId=G}}};
k6.prototype.onKeyDown_=k6.prototype.onKeyDown_;k6.prototype.onMouseOver_=k6.prototype.onMouseOver_;k6.prototype.onClick=k6.prototype.onClick;k6.prototype.onBlur_=k6.prototype.onBlur_;k6.prototype.onFocus=k6.prototype.onFocus;k6.prototype.onMouseUp=k6.prototype.onMouseUp;k6.prototype.onMouseDown=k6.prototype.onMouseDown;k6.prototype.dataChanged=k6.prototype.dataChanged;k6.prototype.disableIncrementalLoadingChanged_=k6.prototype.disableIncrementalLoadingChanged_;k6.prototype.emojiManagerChanged_=k6.prototype.emojiManagerChanged_;
k6.prototype.emojiChanged_=k6.prototype.emojiChanged_;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],k6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],k6.prototype,"data",void 0);_.x([_.V({computed:"computeId_(data)"}),_.S("design:type",String)],k6.prototype,"id",void 0);_.x([_.V({computed:"computeEmoji(data)"}),_.S("design:type",Array)],k6.prototype,"emoji",void 0);_.x([_.V(),_.S("design:type",Number)],k6.prototype,"skinTone",void 0);
_.x([_.V(),_.S("design:type",_.um)],k6.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Boolean)],k6.prototype,"disableIncrementalLoading",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],k6.prototype,"focusedIndex",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],k6.prototype,"showFocus",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.S("design:type",Object)],k6.prototype,"ariaLabel",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.S("design:type",Object)],k6.prototype,"ariaActivedescendant",void 0);_.x([_.V({value:60}),_.S("design:type",Number)],k6.prototype,"domRepeatTargetFramerate",void 0);_.x([_.V({value:1}),_.S("design:type",Number)],k6.prototype,"domRepeatInitialCount",void 0);_.x([_.V({value:""}),_.S("design:type",String)],k6.prototype,"activeEmojiWithVariantsId",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],k6.prototype,"shouldUseStickyPreferences",void 0);_.x([_.Sb("emoji"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"emojiChanged_",null);_.x([_.Sb("emojiManager"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"emojiManagerChanged_",null);
_.x([_.Sb("disableIncrementalLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"disableIncrementalLoadingChanged_",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"dataChanged",null);_.x([_.XC("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],k6.prototype,"onMouseDown",null);
_.x([_.XC("mouseup"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"onMouseUp",null);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"onFocus",null);_.x([_.XC("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k6.prototype,"onBlur_",null);
_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],k6.prototype,"onClick",null);_.x([_.XC("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],k6.prototype,"onMouseOver_",null);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],k6.prototype,"onKeyDown_",null);
_.x([_.cL({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],k6);
_.y(k6,"yt-emoji-picker-category-renderer",function(){if(h2C===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;u1K===void 0&&(u1K=document.createElement("template"));var W=u1K;K.call(G,W.content.cloneNode(!0),m.content.firstChild);h2C=m}m=h2C;return m},{mode:2});var p5o;var JkF;var Nfi;var DfC;var C5=function(){var m=_.d.apply(this,arguments)||this;m.ariaLabel=null;m.ariaActivedescendant=null;m.getFormattedStringRawText=_.bw;m.JSC$14612_ignoreNextFocus_=!1;return m};
_.n(C5,_.d);_.w=C5.prototype;_.w.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")};
_.w.emojiUrl=function(m){var G,K;m=(G=p5(this.emojiManager,m,!0))==null?void 0:(K=G.image)==null?void 0:K.thumbnails;return _.qy(m,24)||""};
_.w.emojiAlt=function(m){var G=this.get("image.accessibility.accessibilityData.label",m);return G?G:m.isCustomEmoji?m.shortcuts[0]:m.emojiId};
_.w.emojiId=function(m){return"emoji"+m};
_.w.computeId_=function(m){return m.categoryId||""};
_.w.computeAriaActivedescendant_=function(m){return this.emoji&&m<this.emoji.length?this.emojiId(m):""};
_.w.emojiChanged_=function(){this.changeFocus_(0,!1);for(var m=_.l1(),G=0;G<this.emoji.length;G++){var K={veType:88013,elementIndex:G},W=this.emoji[G];W.isCustomEmoji&&(W=document.querySelector(("#"+W.emojiId).replace("/","\\/")))&&(K=_.zg(m,K))&&(W.visualElement=K)}};
_.w.computeEmoji_=function(m){var G=this;return this.emojiManager?m.emojiIds.map(function(K){return _.hx(G.emojiManager,K,!0)}).filter(R2d):[]};
_.w.titleOffsetChanged_=function(){var m=this.hostElement.getBoundingClientRect(),G=_.VL(this.hostElement).querySelector("#title").getBoundingClientRect();m=Math.max(0,Math.min(this.titleOffset,m.height-G.height));_.VL(this.hostElement).querySelector("#title").style.top=m+"px"};
_.w.onEmojiMouseOver_=function(m){_.Zw(this.hostElement,"yt-emoji-hover",m.model.item)};
_.w.onEmojiTap_=function(m){this.data.command&&(m=jZf(_.xS().resolve(_.fn(Er)),this.data.command,m),_.Zw(this.hostElement,"yt-navigate",m))};
_.w.emojiAriaLabel=function(m){return m.shortcuts[0]};
_.w.emojiAriaSelected=function(m,G,K){return m&&K==G?"true":"false"};
_.w.changeFocus_=function(m,G){var K=this.emoji.length;this.focusedIndex=(this.focusedIndex+m+K)%K;m=this.emoji[this.focusedIndex];if(G){var W;(W=_.VL(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||W.scrollIntoView(!1);_.Zw(this.hostElement,"yt-emoji-hover",m)}};
_.w.onMouseDown_=function(){this.JSC$14612_ignoreNextFocus_=!0};
_.w.onFocus_=function(){this.JSC$14612_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14612_ignoreNextFocus_=!1};
_.w.onBlur_=function(){this.showFocus=!1};
_.w.onKeyDown_=function(m){switch(m.keyCode){case 13:this.onEmojiTap_(m);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);m.preventDefault();break;case 38:this.changeFocus_(-1,!0),m.preventDefault()}};
C5.prototype.onKeyDown_=C5.prototype.onKeyDown_;C5.prototype.onBlur_=C5.prototype.onBlur_;C5.prototype.onFocus_=C5.prototype.onFocus_;C5.prototype.onMouseDown_=C5.prototype.onMouseDown_;C5.prototype.onEmojiTap_=C5.prototype.onEmojiTap_;C5.prototype.titleOffsetChanged_=C5.prototype.titleOffsetChanged_;C5.prototype.emojiChanged_=C5.prototype.emojiChanged_;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],C5.prototype,"data",void 0);_.x([_.V({computed:"computeId_(data)"}),_.S("design:type",String)],C5.prototype,"id",void 0);_.x([_.V({computed:"computeEmoji_(data)"}),_.S("design:type",Array)],C5.prototype,"emoji",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],C5.prototype,"titleOffset",void 0);_.x([_.V({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.S("design:type",Object)],C5.prototype,"ariaLabel",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.S("design:type",Object)],C5.prototype,"ariaActivedescendant",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],C5.prototype,"showFocus",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],C5.prototype,"focusedIndex",void 0);_.x([_.V(),_.S("design:type",_.um)],C5.prototype,"emojiManager",void 0);
_.x([_.Sb("emoji"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C5.prototype,"emojiChanged_",null);_.x([_.Sb("titleOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C5.prototype,"titleOffsetChanged_",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],C5.prototype,"onEmojiTap_",null);
_.x([_.XC("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C5.prototype,"onMouseDown_",null);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C5.prototype,"onFocus_",null);_.x([_.XC("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C5.prototype,"onBlur_",null);
_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],C5.prototype,"onKeyDown_",null);_.x([_.cL({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],C5);
_.y(C5,"yt-emoji-picker-upsell-category-renderer",function(){if(DfC===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Nfi===void 0&&(Nfi=document.createElement("template"));var W=Nfi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);DfC=m}m=DfC;return m},{mode:2});var t2R;var FZP;var VC=function(){var m=_.d.apply(this,arguments)||this;m.scrollAction="lock";m.verticalAlign="top";return m};
_.n(VC,_.d);_.w=VC.prototype;_.w.onClick=function(m){m=_.$C(m);m instanceof HTMLImageElement&&_.Zw(this.hostElement,"yt-emoji-select",_.hx(this.emojiManager,m.id))};
_.w.openSelector=function(){this.ironOverlayBehavior.open()};
_.w.onDomChange=function(){WZB(this.ytEmojiSelectorBehavior)};
_.w.computeIsFamilySelector=function(m){var G;return(m==null?void 0:(G=m.emoji)==null?void 0:G.emojiId)==="\ud83d\udc6a"};
_.w.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var m=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];m&&m.emojiId&&(_.Zw(this.hostElement,"yt-emoji-select",_.hx(this.emojiManager,m.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.e_.Object.defineProperties(VC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K,W;return this.emojiManager&&((G=this.data)==null?0:(K=G.emoji)==null?0:(W=K.variantIds)==null?0:W.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.hx(m.emojiManager,L)}).filter(function(L){return!!L}):[]}}});
VC.prototype.onClick=VC.prototype.onClick;_.x([_.q(_.Jp),_.S("design:type",Object)],VC.prototype,"ironOverlayBehavior",void 0);_.x([_.q(LZ4),_.S("design:type",Object)],VC.prototype,"ytEmojiSelectorBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VC.prototype,"data",void 0);_.x([_.V(),_.S("design:type",_.um)],VC.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Object)],VC.prototype,"scrollAction",void 0);_.x([_.V(),_.S("design:type",Object)],VC.prototype,"verticalAlign",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.S("design:type",Boolean)],VC.prototype,"isFamilySelector",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],VC.prototype,"emojiVariants",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],VC.prototype,"onClick",null);_.x([_.cL({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],VC);
_.y(VC,"yt-emoji-variant-selector",function(){if(FZP===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;t2R===void 0&&(t2R=document.createElement("template"));var W=t2R;K.call(G,W.content.cloneNode(!0),m.content.firstChild);FZP=m}m=FZP;return m},{mode:2});var QzP=/:/g,arS=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Zf=function(){var m=_.d.apply(this,arguments)||this;m.emojiVariantSelector=null;m.emojiMultiPersonSelector=null;m.identity=_.IM;m.lastAnimationTime_=0;m.animationStart_=null;m.animationEnd_=null;return m};
_.n(Zf,_.d);_.w=Zf.prototype;
_.w.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}}};
_.w.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.Jx)};
_.w.attached=function(){_.PX&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&AvX(this.emojiManager)};
_.w.dataChanged=function(){var m;if((m=this.data)==null?0:m.categories){m=this.emojiManager;var G=this.getCustomEmojiIds();m.pickerCustomEmojiIds=[].concat(_.Bz(mJ4),_.Bz(G))}};
_.w.getCustomEmojiIds=function(){var m,G=(m=this.data.categories)==null?void 0:m.find(function(A){var O;return((O=A.emojiPickerCategoryRenderer)==null?void 0:O.categoryId)&&arS.includes(A.emojiPickerCategoryRenderer.categoryId)}),K;
m=(K=this.data.categories)==null?void 0:K.find(function(A){return A.emojiPickerUpsellCategoryRenderer});
var W,L;return[G==null?void 0:(W=G.emojiPickerCategoryRenderer)==null?void 0:W.emojiIds,m==null?void 0:(L=m.emojiPickerUpsellCategoryRenderer)==null?void 0:L.emojiIds].flat().filter(function(A){return!!A})};
_.w.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.w.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.w.updateCategoriesAndPlaceholderInternal=function(m,G){var K=this;m&&G&&(this.categories=m.categories||[],this.categoryButtons=m.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Dh(function(){K.updateButtons_()}))};
_.w.computeId_=function(m){return m.id||""};
_.w.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(m){return m.emojiPickerCategoryRenderer&&m.emojiPickerCategoryRenderer.emojiData}):!1};
_.w.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.w.onShowEmojiVariantSelector=function(m){var G=m.detail.emojiData;G.variantIds&&G.variantIds.length&&(G.multiSelectorThumbnailRow&&G.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:G,target:m.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:G,target:m.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.w.onIronOverlayClosed=function(m){var G=wdP(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");G&&m.composedPath&&(m.composedPath().includes(_.VL(this.hostElement).querySelector("#emoji-variant-selector"))||m.composedPath().includes(_.VL(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.dU(this.hostElement,"yt-close-emoji-variant-selector",[G.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.w.onEmojiVariantSelectorMouseup=function(m){var G=m.target.firstChild;this.variantSelectorOpened&&G&&_.Dh(function(){G.noCancelOnOutsideClick=!1},100)};
_.w.onEmojiVariantSelectorMousedown=function(m){m=m.target.firstChild;this.variantSelectorOpened&&m&&(m.noCancelOnOutsideClick=!1)};
_.w.onSelectCategory_=function(m){var G=this.search!="";this.search="";for(var K=_.VL(this.hostElement).querySelector("#categories").children,W=0;W<K.length;W++){var L=K[W];if(L.id==m.detail.categoryId){G?(_.VL(this.hostElement).querySelector("#categories").scrollTop=L.offsetTop,this.updateButtons_()):(this.animationStart_=_.VL(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=L.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.w.onEmojiHover_=function(m){this.placeholder=m.detail.shortcuts?m.detail.shortcuts[0]:""};
_.w.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.w.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.w.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.w.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.w.computeSearchCategory_=function(m){m=m.replace(QzP,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();m=m.split(" ");for(var G=[],K=this.emojiManager.emojis,W=0;W<K.length;W++){var L=K[W];if(L.searchTerms)for(var A=0;A<L.searchTerms.length;A++){for(var O=L.searchTerms[A].toLocaleLowerCase(),c=!1,u=0;u<m.length;u++)if(O.indexOf(m[u])!=-1){c=!0;break}if(c&&(!L.isCustomEmoji||!L.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(L.emojiId))){G.push(L.emojiId);
break}}}return{categoryId:-1,emojiIds:G}};
_.w.computeSearchEmptyMessage_=function(m,G){return m&&G&&G.emojiIds&&G.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.w.computeSearching_=function(m){return this.emojiManager&&m.replace(QzP,"").length>1};
_.w.computeSkinToneHidden=function(){var m;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((m=this.data)==null||!m.hideSkinTonePicker)};
_.w.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.w.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.w.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.w.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.w.selectSkinTone_=function(m){m=Number(m.target.getAttribute("tone"));this.set("emojiManager.skinTone",m);_.dU(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[m]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.w.skinToneChanged_=function(){_.VL(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var m=_.VL(this.hostElement).querySelector("#dropdown-content").children,G=0;G<m.length;G++)G===this.skinTone?m[G].setAttribute("selected",""):m[G].removeAttribute("selected")};
_.w.animateScroll_=function(m){this.lastAnimationTime_||(this.lastAnimationTime_=m);m-=this.lastAnimationTime_;m<200?(_.VL(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*m/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.VL(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.w.searchChanged_=function(){this.updateButtons_()};
_.w.updateButtons_=function(){var m=null;if(!this.search)for(var G=_.VL(this.hostElement).querySelector("#categories").scrollTop,K=_.VL(this.hostElement).querySelector("#categories").children,W=0;W<K.length;W++){var L=K[W];L.offsetTop<=G&&(m=L.id)}G=_.VL(this.hostElement).querySelector("#category-buttons").children;for(K=0;K<G.length;K++)W=G[K],W.active=W.id===m};
Zf.prototype.searchChanged_=Zf.prototype.searchChanged_;Zf.prototype.skinToneChanged_=Zf.prototype.skinToneChanged_;Zf.prototype.onEmojiHover_=Zf.prototype.onEmojiHover_;Zf.prototype.onSelectCategory_=Zf.prototype.onSelectCategory_;Zf.prototype.onShowEmojiVariantSelector=Zf.prototype.onShowEmojiVariantSelector;Zf.prototype.updateCategoriesAndPlaceholder_=Zf.prototype.updateCategoriesAndPlaceholder_;Zf.prototype.dataChanged=Zf.prototype.dataChanged;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Zf.prototype,"data",void 0);_.x([_.V({value:function(){return[]}}),
_.S("design:type",Array)],Zf.prototype,"categories",void 0);_.x([_.V({value:function(){return[]}}),
_.S("design:type",Array)],Zf.prototype,"categoryButtons",void 0);_.x([_.V({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Zf.prototype,"disableScroll",void 0);_.x([_.V({computed:"computeId_(data)",reflectToAttribute:!0}),_.S("design:type",String)],Zf.prototype,"id",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Zf.prototype,"selected",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],Zf.prototype,"disableIncrementalLoading",void 0);_.x([_.V(),_.S("design:type",String)],Zf.prototype,"placeholder",void 0);_.x([_.V({value:""}),_.S("design:type",String)],Zf.prototype,"search",void 0);_.x([_.V({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Zf.prototype,"searching",void 0);_.x([_.V({computed:"computeSearchCategory_(search)"}),_.S("design:type",Object)],Zf.prototype,"searchCategory",void 0);
_.x([_.V({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.S("design:type",Object)],Zf.prototype,"searchEmptyMessage",void 0);_.x([_.V({computed:"identity(emojiManager.skinTone)"}),_.S("design:type",Number)],Zf.prototype,"skinTone",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Zf.prototype,"skinToneOpened",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Zf.prototype,"variantSelectorOpened",void 0);
_.x([_.V({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.S("design:type",Boolean)],Zf.prototype,"skinToneHidden",void 0);_.x([_.V(),_.S("design:type",_.um)],Zf.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Object)],Zf.prototype,"emojiVariantSelector",void 0);_.x([_.V(),_.S("design:type",Object)],Zf.prototype,"emojiMultiPersonSelector",void 0);
_.x([_.V({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.S("design:type",Boolean)],Zf.prototype,"shouldUseStickyPreferences",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"dataChanged",null);_.x([_.Sb("data","selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"updateCategoriesAndPlaceholder_",null);
_.x([_.XC("yt-show-emoji-variant-selector"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Zf.prototype,"onShowEmojiVariantSelector",null);_.x([_.XC("yt-emoji-picker-select-category"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Zf.prototype,"onSelectCategory_",null);_.x([_.XC("yt-emoji-hover"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Zf.prototype,"onEmojiHover_",null);
_.x([_.Sb("skinTone"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"skinToneChanged_",null);_.x([_.Sb("search"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zf.prototype,"searchChanged_",null);_.x([_.cL({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Zf);
_.y(Zf,"yt-emoji-picker-renderer",function(){if(JkF===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;p5o===void 0&&(p5o=document.createElement("template"));var W=p5o;K.call(G,W.content.cloneNode(!0),m.content.firstChild);JkF=m}m=JkF;return m},{mode:2});var dE=function(){var m=_.d.apply(this,arguments)||this;m.emojiManager=_.Jx;m.isDarkTheme=document.documentElement.hasAttribute("dark");m.selectedIndex=1;m.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return m};
_.n(dE,_.d);_.w=dE.prototype;_.w.handleEmojiCustomizationVisible=function(m){this.emojiPickerRenderer.selected=m;this.selectedIndex=1;m?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.w.emojiCustomizationSetChanged=function(){var m;(m=this.data)!=null&&m.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.BJ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.w.updateSaveButtonState=function(m){var G;(G=this.data)!=null&&G.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Bp("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:m}))};
_.w.emojiUrl=function(m){m=_.hx(this.emojiManager,m);if(!m)return"";var G;m=(G=m.image)==null?void 0:G.thumbnails;return _.qy(m,24)||""};
_.w.emojiAlt=function(m){var G=_.hx(this.emojiManager,m);if(!G)return m;var K,W,L,A=(G==null?void 0:(K=G.image)==null?void 0:(W=K.accessibility)==null?void 0:(L=W.accessibilityData)==null?void 0:L.label)||"";return A?A:G.isCustomEmoji?G.shortcuts[0]:G.emojiId||m};
_.w.emojiAriaLabel=function(m){var G,K;return((G=_.hx(this.emojiManager,m))==null?void 0:(K=G.shortcuts)==null?void 0:K[0])||m};
_.w.onEmojiClick=function(m){m.model.index!==0&&(this.selectedIndex=m.model.index)};
_.w.onEmojiSelect=function(m){m=m.detail;var G,K;((G=this.data)==null?0:G.emojiCustomizationSetEntityKey)&&((K=this.emojiCustomizationSet)==null?0:K.emojiId)&&m.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,m.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Bp("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,m.emojiId,this.selectedIndex)}))};
_.w.canEditEmoji=function(m,G,K){m=m.indexOf(G);return m===K||m===0||K===0?!1:!0};
_.w.getUpdatedEmojiIdList=function(m,G,K){var W=m.indexOf(G);m=[].concat(_.Bz(m));W>=0&&(m[W]=m[K]);m[K]=G;return m};
_.e_.Object.defineProperties(dE,{template:{configurable:!0,enumerable:!0,get:function(){if(e5F===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;yvC===void 0&&(yvC=document.createElement("template"));var W=yvC;K.call(G,W.content.cloneNode(!0),m.content.firstChild);e5F=m}m=e5F;return m}}});
dE.prototype.onEmojiSelect=dE.prototype.onEmojiSelect;_.x([_.q(_.gR),_.S("design:type",Object)],dE.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.UM("yt-emoji-picker-renderer"),_.S("design:type",Object)],dE.prototype,"emojiPickerRenderer",void 0);
_.x([_.V({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(m,G){return _.yx(m.entities,"emojiCustomizationSetEntity",G)},
observer:"emojiCustomizationSetChanged"}),_.S("design:type",Object)],dE.prototype,"emojiCustomizationSet",void 0);_.x([_.V(),_.S("design:type",Object)],dE.prototype,"originalEmojiSet",void 0);_.x([_.V(),_.S("design:type",_.um)],dE.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Object)],dE.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],dE.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],dE.prototype,"selectedIndex",void 0);
_.x([_.XC("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],dE.prototype,"onEmojiSelect",null);_.x([_.cL({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],dE);var o7R;var n7C;var bi0;var v70;var Pi=function(){var m=_.d.apply(this,arguments)||this;m.authorBadges=[];return m};
_.n(Pi,_.d);_.w=Pi.prototype;_.w.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.w.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]]"}}}}}};
_.w.dataChanged=function(){var m=eNs(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",m)};
_.w.updateMessage=function(){var m=this.data.message,G=_.VL(_.VL(this.hostElement).querySelector("#message"));G.textContent="";m&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(m))};
_.w.shouldSupportWholeItemClick=function(){return!0};
_.w.onShowOriginalClick=function(m){m.preventDefault();this.showOriginal=!0};
_.w.computeShowBar=function(m,G,K){return m&&G||K};
_.w.computeAuthorBadges=function(m){return m.authorBadges||[]};
_.w.computeAuthorIsOwner=function(m){return!!fIs(m.authorBadges,"owner")};
_.w.computeAuthorNameColor=function(m){var G;if(_.F("live_chat_author_name_color_usernames")&&(m==null?0:(G=m.authorName)==null?0:G.simpleText))return _.SlG(_.RN9(m.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(m==null?0:m.authorSeedColorArgb))return _.SlG(_.PL(m.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var K;return _.F("live_chat_simple_color_usernames")&&(m==null?0:(K=m.authorName)==null?0:K.simpleText)&&(m==null?0:m.authorUsernameColorLight)&&
(m==null?0:m.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.PL(m.authorUsernameColorDark):_.PL(m.authorUsernameColorLight):""};
Pi.prototype.updateMessage=Pi.prototype.updateMessage;Pi.prototype.dataChanged=Pi.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],Pi.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Pi.prototype,"data",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"showOriginal",void 0);_.x([_.V({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"isDimmed",void 0);_.x([_.V({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"showBar",void 0);
_.x([_.V({computed:"computeAuthorBadges(data)"}),_.S("design:type",Array)],Pi.prototype,"authorBadges",void 0);_.x([_.V({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"authorIsOwner",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"inCollapsedBanner",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"inBanner",void 0);
_.x([_.V({value:_.F("live_chat_hide_avatars"),reflectToAttribute:!0}),_.S("design:type",Boolean)],Pi.prototype,"avatarHidden",void 0);_.x([_.V({computed:"computeAuthorNameColor(data)"}),_.S("design:type",String)],Pi.prototype,"authorNameColor",void 0);_.x([_.V(),_.S("design:type",_.QC)],Pi.prototype,"participantsManager",void 0);_.x([_.V({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.S("design:type",Object)],Pi.prototype,"filledButtonOverrides",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pi.prototype,"dataChanged",null);_.x([_.Sb("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pi.prototype,"updateMessage",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Pi);
_.y(Pi,"yt-live-chat-text-message-renderer",function(){if(v70===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;bi0===void 0&&(bi0=document.createElement("template"));var W=bi0;K.call(G,W.content.cloneNode(!0),m.content.firstChild);v70=m}m=v70;return m},{mode:0});var yC=function(){var m=_.d.apply(this,arguments)||this;m.tonalButtonOverrides={type:"tonal",style:"overlay"};return m};
_.n(yC,_.d);
yC.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]]"}}}}}};
yC.prototype.shouldSupportInlineActionButtons=function(){return!0};
yC.prototype.shouldSupportWholeItemClick=function(){return!0};
_.e_.Object.defineProperties(yC.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],yC.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yC.prototype,"data",void 0);_.x([_.V(),_.S("design:type",_.QC)],yC.prototype,"participantsManager",void 0);
_.x([_.V(),_.S("design:type",Object)],yC.prototype,"tonalButtonOverrides",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.infoDialogButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],yC.prototype,"hasInfoDialogButton",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],yC);
_.y(yC,"yt-live-chat-auto-mod-message-renderer",function(){if(n7C===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;o7R===void 0&&(o7R=document.createElement("template"));var W=o7R;K.call(G,W.content.cloneNode(!0),m.content.firstChild);n7C=m}m=n7C;return m},{mode:0});var $fi;var szC;var qES;var E7F=function(){return _.d.apply(this,arguments)||this};
_.n(E7F,_.d);_.x([_.V(),_.S("design:type",Object)],E7F.prototype,"data",void 0);_.x([_.Ye({is:"ytd-factoid-renderer",disableElementRegistration:!0})],E7F);
_.y(E7F,"ytd-factoid-renderer",function(){if(qES!==void 0)return qES;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qES=m},{mode:1});var ep=function(){return _.d.apply(this,arguments)||this};
_.n(ep,_.d);ep.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.x([_.V(),_.S("design:type",Object)],ep.prototype,"data",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],ep);
_.y(ep,"yt-live-chat-channel-activity-reputation-renderer",function(){if(szC===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;$fi===void 0&&($fi=document.createElement("template"));var W=$fi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);szC=m}m=szC;return m},{mode:0});var Hio;var Ir4;var f5=function(){return _.d.apply(this,arguments)||this};
_.n(f5,_.d);f5.prototype.ready=function(){var m=document.querySelector("yt-live-chat-app");m&&m.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Boolean)],f5.prototype,"menuFocused",void 0);_.x([_.V(),_.S("design:type",Object)],f5.prototype,"data",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],f5.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],f5);
_.y(f5,"yt-live-chat-donation-announcement-renderer",function(){if(Ir4===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Hio===void 0&&(Hio=document.createElement("template"));var W=Hio;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Ir4=m}m=Ir4;return m},{mode:0});var jz2;var kuS,C2P=function(){if(kuS!==void 0)return kuS;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;jz2===void 0&&(jz2=document.createElement("template"));var W=jz2;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return kuS=m};var x6=function(){return _.d.apply(this,arguments)||this};
_.n(x6,_.d);_.e_.Object.defineProperties(x6,{template:{configurable:!0,enumerable:!0,get:function(){return C2P()}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],x6.prototype,"data",void 0);_.x([_.cL({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],x6);_.y(x6,"yt-live-chat-empty-feed-view-model",function(){return C2P()},{mode:0});var V2S;var ZiS;var Xq=function(){return _.d.apply(this,arguments)||this};
_.n(Xq,_.d);Xq.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"}}}}}};
_.e_.Object.defineProperties(Xq.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var m,G;return{runs:[{text:(m=this.data)==null?void 0:(G=m.channelName)==null?void 0:G.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var m=[],G;if((G=this.data)==null||!G.channelBadges)return m;var K;G=_.g((K=this.data)==null?void 0:K.channelBadges);for(K=G.next();!K.done;K=G.next()){K=_.Q(K.value,$VB);var W=void 0,L=void 0;if((W=K)==null?0:(L=W.badgeImage)==null?0:L.sources)W=void 0,L={liveChatAuthorBadgeRenderer:{tooltip:K.tooltip,accessibility:{accessibilityData:{label:(W=_.Q(K.rendererContext,_.MB))==null?void 0:W.label}}}},K.badgeImage.sources[0].clientResource?L.liveChatAuthorBadgeRenderer.icon=
{iconType:K.badgeImage.sources[0].clientResource.imageName}:L.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:K.badgeImage.sources},m.push(L)}return m}}});
_.x([_.V(),_.S("design:type",Object)],Xq.prototype,"data",void 0);_.x([_.E("data.channelName"),_.S("design:type",Object),_.S("design:paramtypes",[])],Xq.prototype,"channelName",null);_.x([_.E("data.channelBadges"),_.S("design:type",Array),_.S("design:paramtypes",[])],Xq.prototype,"channelBadges",null);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Xq);
_.y(Xq,"yt-live-chat-identity-view-model",function(){if(ZiS===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;V2S===void 0&&(V2S=document.createElement("template"));var W=V2S;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ZiS=m}m=ZiS;return m},{mode:0});var dfk;var P2l;var ykK;var e2S;var Sp=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;m.supportsInlineActionButtons=!0;return m};
_.n(Sp,_.d);Sp.prototype.ready=function(){var m;((m=document.querySelector("yt-live-chat-app"))==null?0:m.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Sp.prototype.dataChanged=function(m){var G=(0,_.yL)(_.VL(this.hostElement).querySelector("#detail-text"));G.textContent="";(m==null?0:m.detailText)&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(m.detailText))};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],Sp.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({observer:"dataChanged"}),_.S("design:type",Object)],Sp.prototype,"data",void 0);
_.x([_.V({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.S("design:type",Object)],Sp.prototype,"hidden",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Sp);
_.y(Sp,"yt-live-chat-legacy-paid-message-renderer",function(){if(e2S===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ykK===void 0&&(ykK=document.createElement("template"));var W=ykK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);e2S=m}m=e2S;return m},{mode:0});var frF;var xfC;var X5R={},Rq=function(){return _.l0.apply(this,arguments)||this};
_.n(Rq,_.l0);Rq.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Rq.prototype.onLiveChatMembershipItemBehaviorClick=Rq.prototype.onLiveChatMembershipItemBehaviorClick;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Rq.prototype,"data",void 0);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Rq.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.x([_.Be()],Rq);
X5R.YtLiveChatMembershipItemBehavior=[Rq.prototype,_.B.YtRendererBehavior];var UD=function(){var m=_.d.apply(this,arguments)||this;m.supportsInlineActionButtons=!0;m.hasPrimaryHeaderText=!1;m.showOnlyHeader=!1;m.authorBadges=[];m.modern=_.F("web_button_rework_with_live");m.buttonOverrides={style:"overlay",type:"filled"};return m};
_.n(UD,_.d);_.w=UD.prototype;_.w.shouldSupportInlineActionButtons=function(){return!0};
_.w.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.w.ready=function(){var m=document.querySelector("yt-live-chat-app");m&&m.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.w.messageChanged=function(){var m=this.data.message,G=(0,_.yL)(_.VL(this.hostElement).querySelector("#message"));G.textContent="";m&&G.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(m))};
_.w.computeHasPrimaryHeaderText=function(m){return!(!m||!m.headerPrimaryText)};
_.w.computeShowOnlyHeader=function(m,G){return this.isMessageEmpty(m,G)};
_.w.computeAuthorBadges=function(m){return m.authorBadges||[]};
_.w.isMessageEmpty=function(m,G){return!m||m.empty?!0:!m.message&&!m.inputField&&!G};
_.w.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.w.getInputElement=function(){return _.VL(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.w.inputFocus=function(){var m=this.getInputElement();m&&m.focus()};
_.w.inputInsertEmoji=function(m){var G=this.getInputElement();G&&G.insertEmoji(m)};
_.w.inputMessage=function(){var m=this.getInputElement();return m&&this.data.inputField?(m.completeEmojis(),_.ho(m.liveChatRichMessageInput)):null};
_.w.onFooterButtonClick=function(){this.data.footerButton&&_.Zw(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.w.shouldSupportWholeItemClick=function(){return!0};
UD.prototype.isDeletedChanged=UD.prototype.isDeletedChanged;UD.prototype.messageChanged=UD.prototype.messageChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],UD.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(X5R.YtLiveChatMembershipItemBehavior),_.S("design:type",Object)],UD.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],UD.prototype,"data",void 0);_.x([_.V({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.S("design:type",Object)],UD.prototype,"hasPrimaryHeaderText",void 0);_.x([_.V({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.S("design:type",Object)],UD.prototype,"showOnlyHeader",void 0);
_.x([_.V({computed:"computeAuthorBadges(data)"}),_.S("design:type",Array)],UD.prototype,"authorBadges",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],UD.prototype,"modern",void 0);_.x([_.Sb("data.message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UD.prototype,"messageChanged",null);_.x([_.Sb("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UD.prototype,"isDeletedChanged",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],UD);
_.y(UD,"yt-live-chat-membership-item-renderer",function(){if(xfC===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;frF===void 0&&(frF=document.createElement("template"));var W=frF;K.call(G,W.content.cloneNode(!0),m.content.firstChild);xfC=m}m=xfC;return m},{mode:0});var SEo;var R2o;var zx=function(){return _.d.apply(this,arguments)||this};
_.n(zx,_.d);zx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zx.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],zx);
_.y(zx,"yt-live-chat-mode-change-message-renderer",function(){if(R2o===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;SEo===void 0&&(SEo=document.createElement("template"));var W=SEo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);R2o=m}m=R2o;return m},{mode:0});var Uf2;var z2B;var lm=function(){return _.d.apply(this,arguments)||this};
_.n(lm,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],lm.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lm.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],lm);
_.y(lm,"yt-live-chat-moderation-message-renderer",function(){if(z2B===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Uf2===void 0&&(Uf2=document.createElement("template"));var W=Uf2;K.call(G,W.content.cloneNode(!0),m.content.firstChild);z2B=m}m=z2B;return m},{mode:0});var lrk;var Bfk;var Bi=function(){return _.d.apply(this,arguments)||this};
_.n(Bi,_.d);Bi.prototype.onClick=function(){var m;if((m=this.data)!=null&&m.onClickCommand){var G;_.xe.instance.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bi.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],Bi.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],Bi.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bi.prototype,"data",void 0);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Bi);
_.y(Bi,"yt-live-chat-offer-click-count-message-renderer",function(){if(Bfk===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;lrk===void 0&&(lrk=document.createElement("template"));var W=lrk;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Bfk=m}m=Bfk;return m},{mode:0});var M2C;var TfF=function(){return _.d.apply(this,arguments)||this};
_.n(TfF,_.d);_.x([_.V(),_.S("design:type",Object)],TfF.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],TfF);
_.y(TfF,"yt-live-chat-placeholder-item-renderer",function(){if(M2C===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);M2C=m}m=M2C;return m},{mode:0});var mX4;var ixK;var GZS=new oW(7),MR=function(){var m=_.d.apply(this,arguments)||this;m.data={};return m};
_.n(MR,_.d);MR.prototype.dataChanged=function(){var m;((m=this.data)==null?0:m.class)&&_.dF(this.hostElement,this.data.class,!0);var G;((G=this.oldData)==null?0:G.class)&&_.dF(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
MR.prototype.computeTimestampString=function(m){return GZS.format(new Date(m/1E3))};
MR.prototype.dataChanged=MR.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],MR.prototype,"data",void 0);_.x([_.V({computed:"computeTimestampString(data.timestampUsec)"}),_.S("design:type",String)],MR.prototype,"timestampString",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MR.prototype,"dataChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],MR);
_.y(MR,"yt-live-chat-server-error-message",function(){if(ixK===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;mX4===void 0&&(mX4=document.createElement("template"));var W=mX4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ixK=m}m=ixK;return m},{mode:0});var KcR;var WcK;var Tx=function(){var m=_.d.apply(this,arguments)||this;m.defaultToFilledIcon=!1;return m};
_.n(Tx,_.d);Tx.prototype.computeHasPrimaryColorIcon=function(m){return m==="SPARK"||m==="SPONSORSHIP_STAR"};
Tx.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Tx.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],Tx.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Tx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Tx.prototype,"defaultToFilledIcon",void 0);_.x([_.V(),_.S("design:type",Object)],Tx.prototype,"data",void 0);
_.x([_.V({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tx.prototype,"hasPrimaryColorIcon",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Tx);
_.y(Tx,"yt-live-chat-viewer-engagement-message-renderer",function(){if(WcK===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;KcR===void 0&&(KcR=document.createElement("template"));var W=KcR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);WcK=m}m=WcK;return m},{mode:0});var Lcl;var ms=function(){var m=_.d.apply(this,arguments)||this;m.modernUpdate=!1;m.buttonStyle="overlay";m.buttonType="filled";return m};
_.n(ms,_.d);ms.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
ms.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ms.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ms.prototype,"modernUpdate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],ms.prototype,"buttonStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],ms.prototype,"buttonType",void 0);
_.x([_.Ye({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],ms);
_.y(ms,"ytd-ad-hover-text-button-renderer",function(){if(Lcl!==void 0)return Lcl;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Lcl=m},{mode:1});var A1P;var GM=function(){var m=_.d.apply(this,arguments)||this;m.buttonOverrides={size:"XS"};return m};
_.n(GM,_.d);GM.prototype.onHelpTap=function(m){this.data&&this.data.informationDialog&&(_.Zw(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),m.preventDefault(),m.stopPropagation())};
_.x([_.V(),_.S("design:type",Object)],GM.prototype,"buttonOverrides",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GM.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],GM);
_.y(GM,"ytd-live-chat-purchased-product-message-renderer",function(){if(A1P!==void 0)return A1P;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return A1P=m},{mode:1});var w_B;var gQo;var K9=function(){var m=_.d.apply(this,arguments)||this;m.isContainerDeleted=!1;return m};
_.n(K9,_.d);K9.prototype.onContextMenuClick=function(m){this.ytLiveChatItemBehavior.showContextMenu(m)};
K9.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))};
K9.prototype.isContainerDeletedChanged=K9.prototype.isContainerDeletedChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],K9.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],K9.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],K9.prototype,"isContainerDeleted",void 0);
_.x([_.V(),_.S("design:type",String)],K9.prototype,"deletedStateMessage",void 0);_.x([_.Sb("isContainerDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K9.prototype,"isContainerDeletedChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],K9);
_.y(K9,"ytd-sponsorships-live-chat-header-renderer",function(){if(gQo!==void 0)return gQo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return gQo=m},{mode:1});var WT=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_button_rework_with_live");m.buttonOverrides={style:"overlay",type:"filled"};return m};
_.n(WT,_.d);WT.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]]"}}}}}};
WT.prototype.onCtaButtonClick=function(){var m,G=_.Q((m=this.data)==null?void 0:m.optInPrompt,_.uu);if(m=this.maybeGetButtonCommand(G)){var K;(K=_.l1())==null||K.clickCommand(m)}};
WT.prototype.maybeGetButtonCommand=function(m){return!m||!m.command||_.Q(m.command,pTR)===void 0&&_.Q(m.command,hwo)===void 0?null:m.command};
WT.prototype.shouldHideOptinPrompt=function(m,G){return!m||G};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],WT.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WT.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],WT.prototype,"modern",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],WT);
_.y(WT,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(w_B!==void 0)return w_B;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return w_B=m},{mode:1});var Ox4;var L9=function(){return _.d.apply(this,arguments)||this};
_.n(L9,_.d);L9.prototype.onContextMenuClick=function(m){this.ytLiveChatItemBehavior.showContextMenu(m)};
L9.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))};
L9.prototype.isDeletedChanged=L9.prototype.isDeletedChanged;_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],L9.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L9.prototype,"data",void 0);_.x([_.Sb("isDeleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L9.prototype,"isDeletedChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],L9);
_.y(L9,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Ox4!==void 0)return Ox4;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="star_circle_ribbon" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ox4=m},{mode:1});var AS=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return m};
_.n(AS,_.d);_.w=AS.prototype;
_.w.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"}}}};
_.w.handleLiveChatAction=function(m){_.Q(m,ziF)?this.handleMarkChatItemAsDeletedAction(_.Q(m,ziF)):_.Q(m,UAR)&&this.handleRemoveChatItemAction(_.Q(m,UAR))};
_.w.handleLiveChatActions=function(m){m.forEach(this.handleLiveChatAction,this)};
_.w.handleMarkChatItemAsDeletedAction=function(m){var G=this,K;((K=this.data)==null?0:K.items)&&this.data.items.forEach(function(W,L){var A=Object.keys(W)[0];Object.values(W)[0].id===m.targetItemId&&G.markAsDeleted("data.items",L,A,m.deletedStateMessage,m.showOriginalContentMessage)})};
_.w.handleRemoveChatItemAction=function(m){var G=this,K;((K=this.data)==null?0:K.items)&&this.data.items.forEach(function(W,L){Object.values(W)[0].id===m.targetItemId&&G.splice("data.items",L,1)})};
_.w.markAsDeleted=function(m,G,K,W,L){m=[m,G,K].join(".");this.set(m+".deletedStateMessage",W);this.set(m+".showOriginalContentMessage",L)};
_.x([_.V(),_.S("design:type",Object)],AS.prototype,"data",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],AS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],AS);
_.y(AS,"yt-live-chat-item-display-list-renderer",function(){if(P2l===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;dfk===void 0&&(dfk=document.createElement("template"));var W=dfk;K.call(G,W.content.cloneNode(!0),m.content.firstChild);P2l=m}m=P2l;return m},{mode:0});var c1F;var Y_K,r1K=function(){if(Y_K!==void 0)return Y_K;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;c1F===void 0&&(c1F=document.createElement("template"));var W=c1F;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return Y_K=m};var wt=function(){var m=_.d.apply(this,arguments)||this;m.isHeader=!1;return m};
_.n(wt,_.d);wt.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.e_.Object.defineProperties(wt,{template:{configurable:!0,enumerable:!0,get:function(){return r1K()}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wt.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wt.prototype,"isHeader",void 0);_.x([_.cL({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],wt);_.y(wt,"yt-live-chat-item-display-renderer",function(){return r1K()},{mode:0});var uzS,hfF,tci,DXk;
uzS={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}};hfF={home:"eohps",search:"eosps",watch:"eowps"};_.p_K=["watch","search","home"];
_.gt=function(){this.JSC$14723_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14723_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.E8("PRECONSTRUCTION_DELAY",0);this.signals_=_.tf();this.targetPage_=""};
_.gt.prototype.init=function(m,G){m=m===void 0?"":m;G=G===void 0?null:G;if(this.JSC$14723_isInitialized_)this.abort();else if(this.JSC$14723_isInitialized_=!0,m&&_.J12(this,m),G){var K=_.Fi(this.signals_,"pcl")?0:10,W=function(){for(var L=0,A;A=_.p_K[L++];)A!=m&&A!=G&&this.pendingPages_.push(A);_.N7C(this)}.bind(this);
this.signals_.parkOrScheduleJob(W,K,"pcl")}};
_.gt.prototype.abort=function(){this.fragmentJobId_&&(_.Fu.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);DXk(this)};
_.J12=function(m,G){m.JSC$14723_isInitialized_&&!m.targetPage_&&(m.targetPage_=G,tci(m,G),m.isInitialPass_=!1,tci(m,G),m.signals_.processSignal(hfF[m.targetPage_]),DXk(m),_.N7C(m))};
_.N7C=function(m){m.pendingPages_.length&&!m.pagePreparerJobId_&&(m.pagePreparerJobId_=_.rC(_.Fu,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.J12(this,this.pendingPages_.shift())}.bind(m),m.DEFAULT_DELAY_))};
tci=function(m,G){if(G=uzS[G])for(var K in G){var W=!1,L=K;K.charAt(0)=="~"&&(W=!0,L=K.substring(1));var A=G[K];A=typeof A=="object"?A:{count:A};G[K]=A;A.componentName=L;A.count>0&&(m.isInitialPass_?W||m.isSeenDuringInitialPass_[L]||(m.JSC$14723_queue_.push({componentName:L,count:1,signals:A.signals}),m.isSeenDuringInitialPass_[L]=!0,A.count--):m.JSC$14723_queue_.push(A))}};
DXk=function(m){m.JSC$14723_queue_.length=0;m.targetPage_="";m.isInitialPass_=!0;m.signals_.processSignal("eop")};
_.gt.getInstance=function(){return _.Ix(_.gt)};var Fc4=function(){this.signals=_.tf();this.init()};
Fc4.prototype.startPreconstruction=function(){_.gt.getInstance().init(_.IP("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Fc4.prototype.init=function(){Qp0(this);window.Polymer&&VDB&&Pcd();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var m=_.Ks.ytcsi;if(m&&m.gt&&(m=m.gt())&&m.tick&&(m.tick.aft>0||m.tick.pbs>0)&&(_.IP("IS_HOMEPAGE_COLD")||_.IP("IS_RESULTS_PAGE_COLD")||_.IP("IS_WATCH_PAGE_COLD"))){aYS(this);break a}OD6(Z8F,this.onNotifications,this)}};
var Qp0=function(m){var G=function(){m.signals.processSignal("dl")};
document.readyState==="complete"?(_.V3(Error("vh"),"WARNING"),G()):_.ZNo(window,"load",G)};
Fc4.prototype.onNotifications=function(m){m.timer||(_.IP("IS_HOMEPAGE_COLD")||_.IP("IS_RESULTS_PAGE_COLD")||_.IP("IS_WATCH_PAGE_COLD"))&&aYS(this)};
var aYS=function(m){m.signals.parkOrScheduleJob(function(){m.signals.processSignal("eocs")},10,"eor")};
new Fc4;var oQk=function(){return _.l0.apply(this,arguments)||this};
_.n(oQk,_.l0);_.e_.Object.defineProperties(oQk.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_entity_store_from_dependency_injection")?_.nD():_.$R()}}});
_.x([_.Be()],oQk);_.OW=[ip.prototype,oQk.prototype];var nQo=["ytd-rich-shelf-renderer"],cT=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;m.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";m.followUpDialogPromise=null;m.followUpDialogPromiseResolve=null;m.followUpDialogPromiseReject=null;return m};
_.n(cT,_.l0);_.w=cT.prototype;_.w.dismissibleItemIsDismissedChanged_=function(m){_.F("kevlar_fluid_dismiss")&&(m?_.Zw(this.hostElement,"yt-dismissible-item-dismissed"):_.Zw(this.hostElement,"yt-dismissible-item-undismissed"))};
_.w.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.w.dismissibleItemReset_=function(){var m=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 _.iO(function(G,K){m.followUpDialogPromiseResolve=G;m.followUpDialogPromiseReject=K});
_.Zw(this.hostElement,"yt-enable-lockup-interaction")};
_.w.dismissibleItemOnYtServiceRequestSent_=function(m,G){G.actions&&this.dismissibleItemProcessActions(G.actions,m)};
_.w.dismissibleItemOnRequestSent=function(m){for(var G=_.g(m.detail),K=G.next();!K.done;K=G.next()){var W=void 0;(K=(W=_.Q(K.value,_.SD))==null?void 0:W.actions)&&this.dismissibleItemProcessActions(K,m)}};
_.w.dismissibleItemOnCommandSent=function(m,G){G&&this.dismissibleItemProcessActions(G,m)};
_.w.setAndGetDismissedContentId=function(m){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+m};
_.w.replayDismissAction=function(m){this.dismissibleItemProcessActions([m])};
_.w.dismissibleItemProcessActions=function(m,G){for(var K=0;K<m.length;K++){var W=m[K],L=void 0;((L=_.Q(W,_.xu))==null?0:L.commands)&&this.dismissibleItemProcessActions(_.Q(W,_.xu).commands,G);if(_.Q(W,_.Rk)){if(L=_.Q(W,_.Rk),!L.replaceParentSection||nQo.includes(this.hostElement.nodeName.toLowerCase()))L.groupDismissal&&UfJ(this,L.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(L),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Bp("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:W})),W=void 0,(W=G)==null||W.stopPropagation()}else if(_.Q(W,PBC))this.dismissibleItemHandleHideEnclosingAction_(),W=void 0,(W=G)==null||W.stopPropagation();else if(_.Q(W,uYS))W=_.Q(W,uYS),L=void 0,((L=W)==null?0:L.targetGroupId)&&UfJ(this,{targetGroupId:W.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Bp("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
W=void 0,(W=G)==null||W.stopPropagation();else if(_.Q(W,_.SD))(W=_.Q(W,_.SD).actions)&&_.eD(this.hostElement,W,this.hostElement),W=void 0,(W=G)==null||W.stopPropagation();else{var A=L=void 0;((L=_.Q(W,_.qF))==null?void 0:L.signal)!=="TELL_US_WHY"||((A=_.Q(W,_.qF))==null?0:A.targetId)&&_.F("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),W=void 0,(W=G)==null||W.stopPropagation())}}};
_.w.dismissibleItemOnYtServiceRequestCompleted_=function(m,G){var K=this.get("feedbackResponses.0.followUpDialog",G.data);K?this.followUpDialogPromiseResolve(K):G.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(G.actions,m)};
_.w.dismissibleItemHandleReplaceEnclosingAction_=function(m){this.dismissedRenderer=m.item;this.isDismissed=!0;var G=null;(G=_.VL(this.hostElement).querySelector("#dismissed"))&&_.Pv(this,function(){_.dW(G)});
_.Zw(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.w.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.w.dismissibleItemHandleUndoFeedbackAction_=function(){_.Zw(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.w.dismissibleItemHandleTellUsWhySignalAction_=function(){var m=this;this.followUpDialogPromise.then(function(G){m.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:G}})})};
cT.prototype.dismissibleItemOnYtServiceRequestCompleted_=cT.prototype.dismissibleItemOnYtServiceRequestCompleted_;cT.prototype.dismissibleItemOnCommandSent=cT.prototype.dismissibleItemOnCommandSent;cT.prototype.dismissibleItemOnRequestSent=cT.prototype.dismissibleItemOnRequestSent;cT.prototype.dismissibleItemOnYtServiceRequestSent_=cT.prototype.dismissibleItemOnYtServiceRequestSent_;cT.prototype.dismissibleItemDataChanged_=cT.prototype.dismissibleItemDataChanged_;
cT.prototype.dismissibleItemIsDismissedChanged_=cT.prototype.dismissibleItemIsDismissedChanged_;_.x([_.q(_.vi),_.S("design:type",Object)],cT.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],cT.prototype,"ytdReduxBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],cT.prototype,"isDismissed",void 0);_.x([_.V(),_.S("design:type",Object)],cT.prototype,"dismissedRenderer",void 0);
_.x([_.Sb("isDismissed"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],cT.prototype,"dismissibleItemIsDismissedChanged_",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cT.prototype,"dismissibleItemDataChanged_",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],cT.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.x([_.XC("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],cT.prototype,"dismissibleItemOnRequestSent",null);
_.x([_.XC("yt-dismissible-item-action"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Array]),_.S("design:returntype")],cT.prototype,"dismissibleItemOnCommandSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],cT.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.x([_.Be()],cT);_.Yj=[_.vi,_.OW,cT.prototype];var rt=function(){var m=_.l0.apply(this,arguments)||this;m.disableGridStateAware=!1;m.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};m.currentGridClass="";return m};
_.n(rt,_.l0);rt.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Pv(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var m=this.gridStateAwareGetElement();_.dF(m,"grid",!0)}};
rt.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
rt.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.VL(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
rt.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var m="grid-disabled";else{m=_.C8.getInstance();var G=this.get("pageSubtype");m=G&&qfC.includes(G)?"grid-disabled":m.currentSnapState_?m.currentSnapState_.className:null}(G=this.gridStateAwareGetElement())&&m!==this.currentGridClass&&(m&&_.dF(G,m,!0),this.currentGridClass&&_.dF(G,this.currentGridClass,!1),this.currentGridClass=m)};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],rt.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",String)],rt.prototype,"gridStateAwareSizingElementSelector",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rt.prototype,"disableGridStateAware",void 0);_.x([_.Be()],rt);_.un=[rt.prototype,_.Pq.YtActionHandlerBehavior];_.hS=new _.sX("GUIDE_TOKEN");var JS;_.p9={};JS=function(){var m=_.l0.apply(this,arguments)||this;m.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 m};
_.n(JS,_.l0);_.w=JS.prototype;_.w.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.w.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var m=_.xS().resolve(_.fn(_.hS));m&&(this.guidePersistentAndVisible=m.getGuidePersistentAndVisible(),this.activeEndpoint=m.getActiveEndpoint(),this.guideOpened=m.getGuideOpened(),this.miniGuideVisible=m.getMiniGuideVisible())};
_.w.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.w.handleGuideStateAction=function(m){this.guidePersistentAndVisible=m};
_.w.handleMiniGuideStateAction=function(m){this.miniGuideVisible=m};
_.w.handleGuideOpenedAction=function(m){this.guideOpened=m};
_.w.handleActiveEndpointAction=function(m){this.activeEndpoint=m};
JS.prototype.onActiveEndpointChange=JS.prototype.onActiveEndpointChange;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],JS.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],JS.prototype,"guidePersistentAndVisible",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],JS.prototype,"miniGuideVisible",void 0);_.x([_.V(),_.S("design:type",Object)],JS.prototype,"activeEndpoint",void 0);
_.x([_.Sb("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JS.prototype,"onActiveEndpointChange",null);_.x([_.V(),_.S("design:type",Boolean)],JS.prototype,"guideOpened",void 0);_.x([_.Be()],JS);_.p9.YtdGuideStateAwareBehavior=[];_.p9.YtdGuideStateAwareBehavior.push(JS.prototype,_.Pq.YtActionHandlerBehavior);var bxC=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],NS=function(){var m=_.l0.apply(this,arguments)||this;m.hoverJobId=0;m.JSC$14750_touched=!1;return m};
_.n(NS,_.l0);_.w=NS.prototype;_.w.created=function(){this.useExpandableTooltip=!bxC.includes(this.is)};
_.w.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.w.detached=function(){this.useExpandableTooltip=!1};
_.w.lockupOnDown=function(m){this.interactionElement&&!_.b_(_.ve(m),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.w.lockupOnUp=function(m){this.interactionElement&&!_.b_(_.ve(m),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.w.onTouchStart=function(){this.JSC$14750_touched=!0};
_.w.lockupOnMouseEnter=function(){var m=this,G=_.U8("kevlar_lockup_hover_delay",-1);this.JSC$14750_touched&&G>=0?(_.Fu.cancelJob(this.hoverJobId),this.hoverJobId=_.Fu.addJob(function(){m.lockupIsHovered=!0},8,G),this.JSC$14750_touched=!1):this.lockupIsHovered=!0};
_.w.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Fu.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.w.lockupOnPopupClosed=function(m,G){var K;((K=G.popupRenderer)==null?void 0:K.is)==="ytd-menu-popup-renderer"&&(m=G.popupRenderer.veData,G=_.gU(),m&&G&&_.o7(G,[m]))};
_.w.lockupOnLockupRequested=function(m){var G=m.detail.videoIds[0],K;m.detail&&G===((K=this.data)==null?void 0:K.videoId)&&(m.detail.returnValue=[this.data])};
_.w.lockupOnYtServiceRequestSent=function(m,G){if(m=G.actions)for(var K=0;K<m.length;K++){var W=m[K];if(W.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&G.ajaxPromise){var L=void 0,A=(L=_.Q(G.endpoint,_.cB))==null?void 0:L.playlistId;L=void 0;W=(L=W.removedVideoId)!=null?L:"";iMS(_.an(),W,A)}else W.action==="ACTION_REMOVE_VIDEO"&&G.ajaxPromise&&(A=void 0,W=(A=W.setVideoId)!=null?A:"",_.GoB(_.an(),W))}};
_.w.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.w.lockupOnLockupEnabled=function(){if(!this.$){var m=_.xS().resolve(_.$g).getCurrentPage(),G=this.getParentRenderer?this.getParentRenderer():void 0;_.nc(new _.cw("component not ready",this.is,this.isAttached,m==null?void 0:m.is,G==null?void 0:G.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
NS.prototype.lockupOnLockupEnabled=NS.prototype.lockupOnLockupEnabled;NS.prototype.lockupOnLockupDisabled=NS.prototype.lockupOnLockupDisabled;NS.prototype.lockupOnYtServiceRequestSent=NS.prototype.lockupOnYtServiceRequestSent;NS.prototype.lockupOnLockupRequested=NS.prototype.lockupOnLockupRequested;NS.prototype.lockupOnPopupClosed=NS.prototype.lockupOnPopupClosed;NS.prototype.lockupOnMouseLeave=NS.prototype.lockupOnMouseLeave;NS.prototype.lockupOnMouseEnter=NS.prototype.lockupOnMouseEnter;
NS.prototype.onTouchStart=NS.prototype.onTouchStart;NS.prototype.lockupOnUp=NS.prototype.lockupOnUp;NS.prototype.lockupOnDown=NS.prototype.lockupOnDown;_.x([_.V(),_.S("design:type",Object)],NS.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],NS.prototype,"lockupIsHovered",void 0);_.x([_.V(),_.S("design:type",Boolean)],NS.prototype,"lockupTouchTriggered",void 0);_.x([_.V(),_.S("design:type",Boolean)],NS.prototype,"useExpandableTooltip",void 0);
_.x([_.UM("#interaction"),_.S("design:type",Object)],NS.prototype,"interactionElement",void 0);_.x([_.XC("down"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NS.prototype,"lockupOnDown",null);_.x([_.XC("up"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NS.prototype,"lockupOnUp",null);
_.x([_.XC("touchstart"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NS.prototype,"onTouchStart",null);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NS.prototype,"lockupOnMouseEnter",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NS.prototype,"lockupOnMouseLeave",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],NS.prototype,"lockupOnPopupClosed",null);_.x([_.XC("yt-lockup-requested"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NS.prototype,"lockupOnLockupRequested",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],NS.prototype,"lockupOnYtServiceRequestSent",null);_.x([_.XC("yt-disable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NS.prototype,"lockupOnLockupDisabled",null);
_.x([_.XC("yt-enable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NS.prototype,"lockupOnLockupEnabled",null);_.x([_.Be()],NS);_.Dn=[NS.prototype];_.vQF={YtdReduxBehavior:[]};_.vQF.YtdReduxBehavior.push.apply(_.vQF.YtdReduxBehavior,_.OW);var tS=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;m.disableNowPlaying=!1;m.disableTooltips=!1;m.useHoveredProperty=!1;m.hovered=!1;m.isThumbnailHovered_=!1;m.addBackground=_.F("kevlar_thumbnail_bg");m.nowPlaying=!1;m.disableRounding=!1;m.size="small";return m};
_.n(tS,_.l0);_.w=tS.prototype;_.w.computeThumbnailOverlaySidePanelWidth_=function(m,G){return m-G};
_.w.computeSize=function(m,G){if(!this.disableRounding){if(!m&&!G)return"small";m=Math.max(m||0,G||0);return m>=256?"large":m>=96?"medium":"small"}};
_.w.computeFinalHoveredState_=function(m,G,K){return this.nowPlaying?!1:_.F("kevlar_thumbnail_fluid")&&m?G:K};
_.w.computeHoverOverlays_=function(m,G){return m&&G?G:void 0};
_.w.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.w.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.w.checkMiniplayer_=function(){var m;if(((m=this.data)==null?0:m.playlistSetVideoId)&&_.F("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{m=_.U7();var G=m.currentEndpoint;!this.disableNowPlaying&&G&&_.Q(G,_.QQ)&&this.data?(G=_.Q(G,_.QQ),this.nowPlaying=this.data.playlistId?G.playlistId===this.data.playlistId:G.videoId===this.data.videoId,this.isVideoPlaying=m==null?void 0:m.isVideoPlaying):this.nowPlaying=!1}};
tS.prototype.checkMiniplayer_=tS.prototype.checkMiniplayer_;tS.prototype.onMouseLeave_=tS.prototype.onMouseLeave_;tS.prototype.onMouseEnter_=tS.prototype.onMouseEnter_;tS.prototype.computeHoverOverlays_=tS.prototype.computeHoverOverlays_;tS.prototype.computeFinalHoveredState_=tS.prototype.computeFinalHoveredState_;tS.prototype.computeSize=tS.prototype.computeSize;tS.prototype.computeThumbnailOverlaySidePanelWidth_=tS.prototype.computeThumbnailOverlaySidePanelWidth_;
_.x([_.q(_.OW),_.S("design:type",Object)],tS.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],tS.prototype,"height",void 0);_.x([_.V(),_.S("design:type",Boolean)],tS.prototype,"bottomSidePanel",void 0);_.x([_.V(),_.S("design:type",Number)],tS.prototype,"width",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"disableNowPlaying",void 0);
_.x([_.V({selector:_.cU}),_.S("design:type",Boolean)],tS.prototype,"miniplayerIsActive",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"disableTooltips",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"useHoveredProperty",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"hovered",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"isThumbnailHovered_",void 0);
_.x([_.V({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.S("design:type",Boolean)],tS.prototype,"finalHoveredState_",void 0);_.x([_.V({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.S("design:type",Number)],tS.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],tS.prototype,"addBackground",void 0);
_.x([_.V({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.S("design:type",Object)],tS.prototype,"hoverOverlays_",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],tS.prototype,"nowPlaying",void 0);_.x([_.V(),_.S("design:type",Boolean)],tS.prototype,"isVideoPlaying",void 0);_.x([_.V(),_.S("design:type",Object)],tS.prototype,"disableRounding",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.S("design:type",Object)],tS.prototype,"size",void 0);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tS.prototype,"onMouseEnter_",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tS.prototype,"onMouseLeave_",null);
_.x([_.Sb("data","disableNowPlaying","miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tS.prototype,"checkMiniplayer_",null);_.x([_.Be()],tS);var $XP=[tS.prototype];_.Fa={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(m,G){return m+":"+_.z9(G)},
getPlayerListener_:function(m,G,K){m=this.getPlayerListenerKey_(m,G);G=this.playerListeners_.get(m);K&&this.playerListeners_.delete(m);return G},
savePlayerListener_:function(m,G){var K=G.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(m,G),K);return K},
listenToPlayerEvent:function(m,G,K){K=this.savePlayerListener_(G,K);m.addEventListener(G,K)},
listenToPlayerEvents:function(m,G){G.forEach(function(K,W){this.listenToPlayerEvent(m,W,K)}.bind(this))},
unlistenFromPlayerEvent:function(m,G,K){K=this.getPlayerListener_(G,K,!0);m.removeEventListener(G,K)},
unlistenFromPlayerEvents:function(m,G){G.forEach(function(K,W){this.unlistenFromPlayerEvent(m,W,K)}.bind(this))}}};
_.Q$=function(){};_.sp0=new _.sX("PLAYER_API_TOKEN");var M2v=!1,GZ6,mX9=!1,Wcd;var IL=function(m,G,K,W,L){_.Lt.call(this);var A=this;this.playerId=G;this.webPlayerContextConfig=W;this.bFX=L;this.jn8=!1;this.api={};this.p7I=this.lrI=null;this.zzT=new _.Gd;this.sC={};this.iwO=this.zCD=this.elementId=this.hT4=this.config=null;this.x13=!1;this.qR=this.xHR=null;this.u7p={};this.nYO=["onReady"];this.lastError=null;this.jQh=NaN;this.pqp={};this.qEP=0;this.qX=this.targetElement=m;_.UR(this,this.zzT);q_k(this);K?this.qEP=setTimeout(function(){A.loadNewVideoConfig(K)},0):W&&(EQB(this),
HxK(this))};
_.n(IL,_.Lt);IL.prototype.getId=function(){return this.playerId};
IL.prototype.loadNewVideoConfig=function(m){if(!this.isDisposed()){this.qEP&&(clearTimeout(this.qEP),this.qEP=0);var G=m||{};G instanceof wjB||(G=new wjB(G));this.config=G;this.setConfig(m);HxK(this);this.isReady()&&IYi(this)}};
var EQB=function(m){var G;m.webPlayerContextConfig?G=m.webPlayerContextConfig.rootElementId:G=m.config.attrs.id;m.elementId=G||m.elementId;m.elementId==="video-player"&&(m.elementId=m.playerId,m.webPlayerContextConfig?m.webPlayerContextConfig.rootElementId=m.playerId:m.config.attrs.id=m.playerId);var K;((K=m.qX)==null?void 0:K.id)===m.elementId&&(m.elementId+="-player",m.webPlayerContextConfig?m.webPlayerContextConfig.rootElementId=m.elementId:m.config.attrs.id=m.elementId)};
IL.prototype.setConfig=function(m){this.hT4=m;this.config=jpi(m);EQB(this);if(!this.zCD){var G;this.zCD=kZX(this,((G=this.config.args)==null?void 0:G.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var K;if((K=this.config)==null?0:K.attrs)m=this.config.attrs,(G=m.width)&&this.qX&&(this.qX.style.width=Qn(Number(G)||G,!0)),(m=m.height)&&this.qX&&(this.qX.style.height=Qn(Number(m)||m,!0))};
IL.prototype.getConfig=function(){return this.hT4};
var IYi=function(m){if(m.config&&m.config.loaded!==!0)if(m.config.loaded=!0,!m.config.args||m.config.args.autoplay!=="0"&&m.config.args.autoplay!==0&&m.config.args.autoplay!==!1){var G;m.api.loadVideoByPlayerVars((G=m.config.args)!=null?G:null)}else m.api.cueVideoByPlayerVars(m.config.args)},VcP=function(m){var G=!0,K=m.getPlayerElement();
K&&m.config&&(G=K.dataset.version===CTo(m));return G&&!!_.Cn("yt.player.Application.create")},HxK=function(m){if(!m.isDisposed()&&!m.x13){var G=VcP(m);
if(G&&(m.getPlayerElement()?"html5":null)==="html5")m.iwO="html5",m.isReady()||ZxX(m);else if(dXB(m),m.iwO="html5",G&&m.qR&&m.targetElement)m.targetElement.appendChild(m.qR),ZxX(m);else{m.config&&(m.config.loaded=!0);var K=!1;m.xHR=function(){K=!0;var W=PTS(m,"player_bootstrap_method")?_.Cn("yt.player.Application.createAlternate")||_.Cn("yt.player.Application.create"):_.Cn("yt.player.Application.create");var L=m.config?jpi(m.config):void 0;W&&W(m.targetElement,L,m.webPlayerContextConfig,m.bFX);ZxX(m)};
m.x13=!0;G?m.xHR():(_.pJ(CTo(m),m.xHR),(G=y1R(m))&&w3d(G||""),efi(m)&&!K&&_.yj("yt.player.Application.create",null))}}};
IL.prototype.getPlayerElement=function(){var m=_.Hp(document,this.elementId);!m&&this.qX&&this.qX.querySelector&&(m=this.qX.querySelector("#"+this.elementId));return m};
var ZxX=function(m){if(!m.isDisposed()){var G=m.getPlayerElement(),K=!1;G&&G.getApiInterface&&G.getApiInterface()&&(K=!0);if(K){m.x13=!1;if(!PTS(m,"html5_remove_not_servable_check_killswitch")){var W;if((G==null?0:G.isNotServable)&&m.config&&(G==null?0:G.isNotServable((W=m.config.args)==null?void 0:W.video_id)))return}fYR(m)}else m.jQh=setTimeout(function(){ZxX(m)},50)}},fYR=function(m){q_k(m);
m.jn8=!0;var G=m.getPlayerElement();if(G){m.lrI=xXF(m,G,"addEventListener");m.p7I=xXF(m,G,"removeEventListener");var K=G.getApiInterface();K=K.concat(G.getInternalApiInterface());for(var W=m.api,L=0;L<K.length;L++){var A=K[L];W[A]||(W[A]=xXF(m,G,A))}}for(var O in m.sC)m.sC.hasOwnProperty(O)&&m.lrI&&m.lrI(O,m.sC[O]);IYi(m);m.zCD&&m.zCD(m.api);m.zzT.publish("onReady",m.api)},xXF=function(m,G,K){var W=G[K];
return function(){var L=_.mb.apply(0,arguments);try{return m.lastError=null,W.apply(G,L)}catch(A){if(K!=="sendAbandonmentPing")throw A.params=K,m.lastError=A,L=new _.cw("PlayerProxy error in method call",{error:A,method:K,playerId:m.playerId}),L.level="WARNING",L;}}},q_k=function(m){m.jn8=!1;
if(m.p7I)for(var G in m.sC)m.sC.hasOwnProperty(G)&&m.p7I(G,m.sC[G]);for(var K in m.pqp)m.pqp.hasOwnProperty(K)&&clearTimeout(Number(K));m.pqp={};m.lrI=null;m.p7I=null;G=m.api;for(var W in G)G.hasOwnProperty(W)&&(G[W]=null);G.addEventListener=function(L,A){m.addEventListener(L,A)};
G.removeEventListener=function(L,A){m.removeEventListener(L,A)};
G.destroy=function(){m.dispose()};
G.getLastError=function(){return m.getLastError()};
G.getPlayerType=function(){return m.getPlayerType()};
G.getCurrentVideoConfig=function(){return m.getConfig()};
G.loadNewVideoConfig=function(L){m.loadNewVideoConfig(L)};
G.isReady=function(){return m.isReady()}};
IL.prototype.isReady=function(){return this.jn8};
IL.prototype.addEventListener=function(m,G){var K=this;this.isDisposed();var W=kZX(this,G);W&&(_.Vf(this.nYO,m)||this.sC[m]||(G=X_C(this,m),this.lrI&&this.lrI(m,G)),this.zzT.subscribe(m,W),m==="onReady"&&this.isReady()&&setTimeout(function(){W(K.api)},0))};
IL.prototype.removeEventListener=function(m,G){this.isDisposed()||(G=kZX(this,G))&&this.zzT.unsubscribe(m,G)};
var kZX=function(m,G){var K=G;if(typeof G==="string"){if(m.u7p[G])return m.u7p[G];K=function(){var W=_.mb.apply(0,arguments),L=_.Cn(G);if(L)try{L.apply(_.Ks,W)}catch(A){throw W=new _.cw("PlayerProxy error when executing callback",{error:A}),W.level="ERROR",W;}};
m.u7p[G]=K}return K?K:null},X_C=function(m,G){var K=function(W){var L=function(){m.isDisposed();
if(!m.isDisposed())try{m.zzT.publish(G,W!=null?W:void 0)}catch(c){var O=new _.cw("PlayerProxy error when creating global callback",{error:c.message,event:G,playerId:m.playerId,data:W,originalStack:c.stack,componentStack:c.componentStack});O.level="WARNING";throw O;}};
if(PTS(m,"web_player_publish_events_immediately"))L();else{var A=setTimeout(function(){L();_.Y2.remove(m.pqp,String(A))},0);
_.Y2.add(m.pqp,String(A),!0)}};
return m.sC[G]=K};
IL.prototype.getPlayerType=function(){return this.iwO||(this.getPlayerElement()?"html5":null)};
IL.prototype.getLastError=function(){return this.lastError};
var dXB=function(m){m.cancel();q_k(m);m.iwO=null;m.config&&(m.config.loaded=!1);var G=m.getPlayerElement();G&&(VcP(m)||!efi(m)?m.qR=G:(G&&G.destroy&&G.destroy(),m.qR=null));m.targetElement&&_.pV(m.targetElement)};
IL.prototype.cancel=function(){this.xHR&&_.vqs(CTo(this),this.xHR);clearTimeout(this.jQh);this.x13=!1};
IL.prototype.disposeInternal=function(){dXB(this);if(this.qR&&this.config&&this.qR.destroy)try{this.qR.destroy()}catch(G){var m=new _.cw("PlayerProxy error during disposal",{error:G});m.level="ERROR";throw m;}this.u7p=null;for(m in this.sC)this.sC.hasOwnProperty(m)&&delete this.sC[m];this.hT4=this.config=this.api=null;delete this.targetElement;delete this.qX;_.Lt.prototype.disposeInternal.call(this)};
var efi=function(m){var G,K;m=(G=m.config)==null?void 0:(K=G.args)==null?void 0:K.fflags;return!!m&&m.indexOf("player_destroy_old_version=true")!==-1},CTo=function(m){return m.webPlayerContextConfig?m.webPlayerContextConfig.jsUrl:(m=m.config.assets)?m.js:""},y1R=function(m){return m.webPlayerContextConfig?m.webPlayerContextConfig.cssUrl:(m=m.config.assets)?m.css:""},PTS=function(m,G){if(m.webPlayerContextConfig)var K=m.webPlayerContextConfig.serializedExperimentFlags;
else{var W;if((W=m.config)==null?0:W.args)K=m.config.args.fflags}return(K||"").split("&").includes(G+"=true")},jpi=function(m){for(var G={},K=_.g(Object.keys(m)),W=K.next();!W.done;W=K.next()){W=W.value;
var L=m[W];G[W]=typeof L==="object"?_.Y2.clone(L):L}return G};var Ox9={},gQd="player_uid_"+(Math.random()*1E9>>>0);var au=function(m,G,K,W,L,A){G=G===void 0?document.createElement("div"):G;this.webPlayerContextConfig=m;this.container=G;this.commandResolver=K;this.apiResolver=r1d();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.yY;W||A?S_2(this):RfF(this);this.pendingPlayerResponse=W;this.pendingWatchNextResponse=L;this.pendingPlayerVars=A;UX2(this)};
au.prototype.loadVideoWithPlayerResponse=function(m,G,K){this.loadVideo(m,G,K)};
au.prototype.loadVideoWithPlayerVars=function(m){return this.loadVideo(void 0,void 0,m)};
au.prototype.destroy=function(m){if(m=_.Hp(document,m))m=gQd+"_"+_.z9(m),(m=Ox9[m])&&m.dispose()};
var lYR=function(m,G){var K;_.Y(function(W){if(W.nextAddress==1)return m.pendingWatchNextResponse=G,m.synchronousApi?(K=m.synchronousApi,W.jumpTo(2)):W.yield(m.api,3);W.nextAddress!=2&&(K=W.yieldResult);if(!zfi(m,K))return W.return();m.pendingWatchNextResponse&&(K.updateVideoData({raw_watch_next_response:m.pendingWatchNextResponse}),m.pendingWatchNextResponse=void 0);_.ey(W)})},zfi=function(m,G){var K;
if(!(G==null?0:(K=G.isReady)==null?0:K.call(G))){var W;_.nc(new _.cw("playerApi is falsey",{synchronousApi:m.synchronousApi,apiResolved:m.apiResolver.resolved,playerApiUndefined:G===void 0,playerApiNull:G===null,playerApiReady:(G==null?void 0:(W=G.isReady)==null?void 0:W.call(G))===!0,playerApiMethods:G?Object.keys(G):[]}));return!1}return!0},B74=function(m,G){if(typeof m[G]==="function")return m[G]()},McF=function(m){var G=window,K,W=(K=G.ytplayer)==null?void 0:K.bootstrapPlayerContainer;
if((K=W==null?void 0:W.firstElementChild)&&_.vW(K,"html5-video-player")){var L,A,O=(L=G.ytplayer)==null?void 0:(A=L.bootstrapWebPlayerContextConfig)==null?void 0:A.contextId;L=m.webPlayerContextConfig.contextId;if(O&&O===L){W!==m.container&&(W=!1,B74(K,"getPlayerState")===2&&(W=!0),m.container.appendChild(K),W||B74(K,"playVideo"));var c;if((c=G.ytplayer)==null?0:c.bootstrapPlayerResponse)m.bootstrapPlayerResponse=G.ytplayer.bootstrapPlayerResponse}}},UX2=function(m){var G,K,W,L,A;
_.Y(function(O){if(O.nextAddress==1)return m.pageReadyOrDataAvailable?O.jumpTo(2):O.yield(m.pageReadyOrDataAvailableResolver.promise,2);if(O.nextAddress!=4)return!_.F("kevlar_player_unified_player_loading")||TfM()&&ixd()?O.jumpTo(4):O.yield(A1F(),4);McF(m);if(m.pendingPlayerResponse||m.pendingPlayerVars)G=w_G(m.pendingPlayerResponse,m.pendingWatchNextResponse,m.pendingPlayerVars),m.pendingPlayerResponse&&m.pendingPlayerResponse===m.bootstrapPlayerResponse&&(G.loaded=!0),m.bootstrapPlayerResponse=
void 0;K=Y_d(m.container,G,m.webPlayerContextConfig);((W=G)==null?0:W.loaded)&&m.pendingWatchNextResponse?(lYR(m,m.pendingWatchNextResponse),m.pendingPlayerResponse=void 0,m.pendingPlayerVars=void 0):T74(m);L=function(c){K.removeEventListener("onReady",L);m.synchronousApi=c;m.apiResolver.resolve(c)};
K.addEventListener("onReady",L);m.commandResolver!==void 0&&(A=m.commandResolver,K.addEventListener("innertubeCommand",function(c){A(c)}));
_.ey(O)})};
au.prototype.loadVideo=function(m,G,K){var W=this,L,A,O,c,u,h,J,N,D;return _.Y(function(t){if(t.nextAddress==1)return W.pendingPlayerResponse=m,W.pendingWatchNextResponse=G,W.pendingPlayerVars=K,S_2(W),W.synchronousApi?(L=W.synchronousApi,t.jumpTo(2)):t.yield(W.api,3);t.nextAddress!=2&&(L=t.yieldResult);if(!zfi(W,L))return t.return(new Promise(function(){}));
O=new Promise(function(a){A=a});
c=function(){var a=L.getPlayerResponse();a&&(L.removeEventListener("onVideoDataChange",c),A(a))};
L.addEventListener("onVideoDataChange",c);if(W.pendingPlayerResponse||W.pendingPlayerVars)W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse?(A(W.pendingPlayerResponse),W.pendingWatchNextResponse&&lYR(W,W.pendingWatchNextResponse)):(u=w_G(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),(D=(h=W.pendingPlayerResponse)==null?void 0:(J=h.playerConfig)==null?void 0:(N=J.playbackStartConfig)==null?void 0:N.startPaused)?L.cueVideoByPlayerVars(u.args):L.loadVideoByPlayerVars(u.args)),
T74(W),W.bootstrapPlayerResponse=void 0;return t.return(O)})};
var RfF=function(m){if(document.readyState==="complete"||document.readyState==="interactive")S_2(m);else{var G=function(){document.removeEventListener("DOMContentLoaded",G);S_2(m)};
document.addEventListener("DOMContentLoaded",G)}},S_2=function(m){m.pageReadyOrDataAvailable=!0;
m.pageReadyOrDataAvailableResolver.resolve()},T74=function(m){m.pendingPlayerResponse=void 0;
m.pendingWatchNextResponse=void 0;m.pendingPlayerVars=void 0};
_.e_.Object.defineProperties(au.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var ou=function(m){wv.call(this,m===void 0?"document_active":m);var G=this;this.overridePriority=10;this.JSC$14783_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(K){G.transition("document_disposed",{event:K})});
window.addEventListener("beforeunload",function(K){G.transition("document_disposed_preventable",{event:K})});
window.addEventListener("unload",function(K){G.transition("document_disposed",{event:K});G.JSC$14783_hasRun=new Map})};
_.n(ou,wv);
ou.prototype.runPreventableDispose=function(m,G){if(!this.JSC$14783_hasRun.get("document_disposed_preventable")){m(G==null?void 0:G.event);var K,W;if((G==null?0:(K=G.event)==null?0:K.defaultPrevented)||(G==null?0:(W=G.event)==null?0:W.returnValue)){G.event.returnValue||(G.event.returnValue=!0);G.event.defaultPrevented||G.event.preventDefault();this.JSC$14783_hasRun=new Map;this.transition("document_active");return}}this.JSC$14783_hasRun.set("document_disposed_preventable",!0);this.JSC$14783_hasRun.get("document_disposed")?this.transition("flush_logs"):
this.transition("document_disposed")};
ou.prototype.runDispose=function(m,G){this.JSC$14783_hasRun.get("document_disposed")?this.transition("document_active"):(m(G==null?void 0:G.event),this.JSC$14783_hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
ou.prototype.runFlush=function(m,G){m(G==null?void 0:G.event);this.transition("document_active")};
ou.prototype.runActive=function(){};var n9=function(m){wv.call(this,m===void 0?"document_visibility_unknown":m);var G=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(K){document.visibilityState==="visible"?G.transition("document_visible",{event:K}):G.transition("document_hidden",
{event:K})});
_.F("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(K){G.transition("document_backgrounded",{event:K})}),window.addEventListener("focus",function(K){G.transition("document_foregrounded",{event:K})}))};
_.n(n9,wv);n9.prototype.runVisible=function(m,G){m(G==null?void 0:G.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
n9.prototype.runHidden=function(m,G){m(G==null?void 0:G.event);_.F("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
n9.prototype.runBackgrounded=function(m,G){m(G==null?void 0:G.event)};
n9.prototype.runForegrounded=function(m,G){m(G==null?void 0:G.event)};var bn=function(){this.teardownLifecycle=new ou;this.visibilityLifecycle=new n9};
bn.prototype.install=function(){var m=_.mb.apply(0,arguments),G=this;m.forEach(function(K){G.teardownLifecycle.install(K)});
m.forEach(function(K){G.visibilityLifecycle.install(K)})};var vT=function(){bn.call(this);var m={};this.install((m.document_disposed={callback:this.abortSlisAndFlush},m));_.F("combine_ve_grafts")&&(m={},this.install((m.document_disposed={callback:this.flushInteractionLoggingAttachVes},m)));m={};this.install((m.flush_logs={callback:this.logFinalPayload},m));_.F("web_log_cfg_cee_ks")||_.rC(_.Fu,mZ4)};
_.n(vT,bn);var uz6=function(){vT.loggingInstance||(vT.loggingInstance=new vT);return vT.loggingInstance};
vT.prototype.logFinalPayload=function(){if(_.F("web_fp_via_jspb")){var m=new rMP,G=_.gU();G&&_.LB(m,1,G);G=_.F("jspb_sparse_encoded_pivot")?new Yz([{}]):new Yz;_.Cp(G,380,uQR,m);b89("finalPayload",G);_.F("web_fp_via_jspb_and_json")&&_.Fx("finalPayload",{csn:_.gU()})}else _.Fx("finalPayload",{csn:_.gU()})};
vT.prototype.abortSlisAndFlush=function(){xoC(F$);Qw!=null&&Qw.flush()};
vT.prototype.flushInteractionLoggingAttachVes=function(){r8l(_.l1())};
var mZ4=function(){var m=_.E8("CLIENT_EXPERIMENT_EVENTS");if(m){var G=OlG();m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,G(K)&&_.Fx("genericClientExperimentEvent",{eventType:K});delete _.s8.CLIENT_EXPERIMENT_EVENTS}};var iIl={};
iIl.YtPlayerBehavior=[_.Fa.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 m=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.yY;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;hfM(function(){m.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.nC(this,"pan-down"),_.F("kevlar_pinch_fullscreen")&&_.SG().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.F("kevlar_pinch_fullscreen")&&_.SG().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(m,G,K){var W=this;j5(this.useUnifiedPlayer_());if(this.mainAppPlayer_)j5(!1,"MainAppPlayer already created.");else{var L=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.VL(this.hostElement).querySelector("#container");this.mainAppPlayer_=new au(this.getWebPlayerContextConfig_(),L,function(A){return _.Xj(A,W.hostElement)},m,G,K);
this.mainAppPlayer_.api.then(function(A){W.player_=A;W.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&uZ4.resolve(A)})}},
loadVideoWithPlayerResponse:function(m,G){var K=this;if(this.useUnifiedPlayer_()){var W=this.watchNextData,L,A=(L=m.videoDetails)==null?void 0:L.videoId,O,c,u;(L=(O=this.watchNextData)==null?void 0:(c=O.currentVideoEndpoint)==null?void 0:(u=c.watchEndpoint)==null?void 0:u.videoId)&&A!=L&&(W=void 0,_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(m,W,G):this.createMainAppPlayer_(m,W,G);this.mainAppPlayer_.api.then(function(){_.Zw(K.hostElement,
"yt-player-updated")})}else this.update(z2G(m,G))},
loadVideoWithPlayerVars:function(m){var G=this;this.useUnifiedPlayer_()?(_.F("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(m):this.createMainAppPlayer_(void 0,void 0,m),this.mainAppPlayer_.api.then(function(){_.Zw(G.hostElement,"yt-player-updated")})):this.update({args:m})},
update:function(m){var G=this;if(this.useUnifiedPlayer_())j5(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(m);var K=Cud(m.args);K&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==K&&Object.assign(m.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(m).then(function(W){_.Zw(G.hostElement,"yt-player-updated",_.F("kevlar_player_updated_obsolete_player_killswitch")?
W:void 0)})}_.om(new _.cw("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.getPlayerPromise(),2);K=W.yieldResult;if(!K)throw Error("xh");m&&G.updatePlayerPlaylist_(m);_.ey(W)})},
acquireApi_:function(m){var G=this;if(this.useUnifiedPlayer_())j5(!1,"Invalid method call in kevlar_unified_player.");else return _.Fu.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(j5(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(K){G.shouldAutoplay_(m)?K.loadVideoByPlayerVars(m.args):K.cueVideoByPlayerVars(m.args)})):this.initPlayerPromise_=this.initPlayerContainer_(m),this.initPlayerPromise_},
initPlayerContainer_:function(m){var G=this;if(this.useUnifiedPlayer_())j5(!1,"Invalid method call in kevlar_unified_player.");else return j5(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.nc(Error("yh")),j5(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.F("kevlar_player_container_query_killswitch")?this.$.container:_.VL(this.hostElement).querySelector("#container"),A1F().then(function(){var K=G.initPlayer_(m);G.playerResolver_.resolve(K);
return K})},
onPlayerReady_:function(m,G){this.useUnifiedPlayer_()?j5(!1,"Invalid method call in kevlar_unified_player."):(m.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&uZ4.resolve(m),G(m))},
maybeCallApiMethodOnElement_:function(m,G){if(typeof m[G]==="function")return m[G]()},
maybeAdoptBootstrapPlayer_:function(){var m=window,G,K=(G=m.ytplayer)==null?void 0:G.bootstrapPlayerContainer;if((G=K==null?void 0:K.firstElementChild)&&G.classList.contains("html5-video-player")){var W,L,A=(W=m.ytplayer)==null?void 0:(L=W.bootstrapWebPlayerContextConfig)==null?void 0:L.contextId;W=this.getWebPlayerContextConfig_().contextId;if(A&&A===W){K!==this.playerContainer_&&(K=!1,this.maybeCallApiMethodOnElement_(G,"getPlayerState")===2&&(K=!0),this.playerContainer_.appendChild(G),K||this.maybeCallApiMethodOnElement_(G,
"playVideo"));var O;if((O=m.ytplayer)==null?0:O.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=m.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(m){var G=this;if(this.useUnifiedPlayer_())j5(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(K){G.maybeAdoptBootstrapPlayer_();var W=m?lrG(m):void 0;W&&W==G.bootstrapPlayerResponse_&&(m.loaded=!0);W=G.playerContainer_;var L=G.getWebPlayerContextConfig_();W=Y_d(W,m,L);G.player_=W;G.onPlayerReadyEvent_=G.onPlayerReady_.bind(G,G.player_,K);G.player_.addEventListener("onReady",G.onPlayerReadyEvent_);G.player_.addEventListener("innertubeCommand",
G.onPlayerInnerTubeCommand_.bind(G))})},
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(m){m.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(m){m.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var m=_.xS().resolve(_.$g).getCurrentPage();m&&m.getScrollTop()<=0?_.nC(this,"pan-down"):_.nC(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(m){m.isFullscreen()||m.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(m){m.isFullscreen()&&m.toggleFullscreen()})},
updatePlayerPlaylist_:function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return K=_.xS().resolve(_.fn(_.NQ)),W=!!(K&&K.playlistComponent&&K.playlistComponent.loopOn),A.yield(G.getPlayerPromise(),2);var O=L=A.yieldResult,c=O.updatePlaylist,u=[];if(_.F("kevlar_player_playlist_use_local_index")){var h,J;var N=(J=(h=m.localCurrentIndex)!=null?h:m.currentIndex)!=null?J:0}else{var D;N=(D=m.currentIndex)!=null?D:0}if(m.contents)for(h=0;h<m.contents.length;h++)if((J=m.contents[h])&&J.playlistPanelVideoRenderer)if(EUv(J)){J=
J.playlistPanelVideoRenderer;D="";J.shortBylineText&&(D=_.bw(J.shortBylineText));var t="";J.title?t=_.bw(J.title):J.unplayableText&&(t=_.bw(J.unplayableText));u.push({author:D,title:t,encrypted_id:J.videoId})}else h<N&&--N;c.call(O,{index:N,list:m.playlistId?m.playlistId:"",loop:W,playlist_title:m.title,playlist_length:u.length,video:u,fetch:0,external_list:"1",title:m.title?m.title:"",playlist_author:m.ownerName?_.bw(m.ownerName):void 0});_.ey(A)})},
focusOnPlayer:function(){_.Pv(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var m=this.playerContainer_.querySelector(".html5-video-player");m&&(_.sW(_.xS().resolve(_.zk)),m.focus())}})},
preparePlayer:function(){var m=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(G){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")G();else{var K=function(){document.removeEventListener("DOMContentLoaded",K);G()};
document.addEventListener("DOMContentLoaded",K)}})).then(function(){return A1F()}).then(function(){m.initPlayerPromise_||m.preparePlayerJobId_||(m.preparePlayerJobId_=_.rC(_.Fu,function(){m.initPlayerPromise_||(m.initPlayerPromise_=m.initPlayerContainer_())}))}):_.om(new _.cw("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(m){this.useUnifiedPlayer_()?j5(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(m)||(m.args.autoplay="0")},
shouldAutoplay_:function(m){if(this.useUnifiedPlayer_())j5(!1,"Invalid method call in kevlar_unified_player.");else{var G=this.get("args.el",m);return G&&G!="detailpage"&&this.isMiniplayerActive_()||G&&(G=="sponsorshipsoffer"||G=="handlesclaiming")&&this.get("args.autoplay",m)=="0"?!1:(m=lrG(m))&&this.get("playerConfig.playbackStartConfig.startPaused",m)?!1:!0}},
isMiniplayerActive_:function(){return _.xS().resolve(_.pY).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var m=this.getPlayer();if(m){var G=m.getPlayerState();_.F("kevlar_player_check_ad_state_on_stop")&&(G=m.getPlayerState(m.getPresentingPlayerType()));G!=5&&m.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(m,G,K){K=K===void 0?!1:K;var W=this,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return G||(G=W.hostElement),L=W.useUnifiedPlayer_()?!!W.mainAppPlayer_:!!W.initPlayerPromise_,L?u.yield(W.getPlayerPromise(),2):(K?m.insertBefore(G,m.firstChild):m.appendChild(G),u.return());A=u.yieldResult;O=A.getPlayerState(A.getPresentingPlayerType());c=!1;if(O==-1||O==1||O==3)c=!0;K?m.insertBefore(G,m.firstChild):m.appendChild(G);c&&A.playVideo();A.setSize(NaN,NaN);_.ey(u)})},
watchNextDataChanged_:function(m){var G=this;m&&(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&lYR(this.mainAppPlayer_,m):this.getPlayerPromise().then(function(K){K.updateVideoData(G.computeWatchNextPlayerVars_(m))}))},
computeWatchNextPlayerVars_:function(m){if(this.useUnifiedPlayer_()&&_.F("kevlar_unified_player_update_watch_next_killswitch"))j5(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:m}},
maybeSendAbandonmentPing_:function(){var m=this.getPlayer();m&&m.getPlayerState()!=5&&m.getPlayerState()!=0&&m.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var m=_.E8("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(m=Object.assign({},m),m.rootElementId=this.playerId);m.serializedExperimentIds&&m.serializedExperimentFlags||_.nc(Error("zh"));return m},
hasWebPlayerContextConfig_:function(){return!!_.E8("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(m){this.useUnifiedPlayer_()?j5(!1,"Invalid method call in kevlar_unified_player."):_.Xj(m,this.hostElement)},
useUnifiedPlayer_:function(){var m=_.F("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.F("kevlar_unified_player")||m}}];var GO4={};GO4.YtPlaylistPanelBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(m){m=m.detail;if(m.actions.loop!=void 0||m.actions["yt-icons:loop"]!=void 0)this.loopOn=m.actions.loop||m.actions["yt-icons:loop"];if(m.actions.shuffle!=void 0||m.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=m.actions.shuffle||m.actions["yt-icons:shuffle"]},
setMenuData_:function(m){if(!m||!m.playlistButtons||m.isInfinite)return null;for(var G=m.playlistButtons.menuRenderer.topLevelButtons,K=G.length,W=0;W<K;W++)if(G[W].toggleButtonRenderer){var L=G[W].toggleButtonRenderer;L.defaultIcon.iconType=="LOOP"&&this.loopOn?L.isToggled=this.loopOn:L.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(L.isToggled=this.shuffleOn)}return m.playlistButtons}}];_.qS={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(m,G,K){var W=this.getClickTarget_(G);if(W&&this.isClickAllowed_(W)){G.preventDefault();m=(0,_.Y2.unsafeClone)(m);var L=this.getContainerBoundingRect();G=this.getRelativeClickXy_(G,L);this.expandEndpointUrlMacros_(m,{NX:G[0],NY:G[1],NB:W.code});K&&this.truncateWebCommendMetadataUrl_(m);_.Zw(this.hostElement,"yt-navigate",{endpoint:m})}},
getClickTarget_:function(m){if(!this.clickTargetMap)return null;m=_.ve(m)||[];m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;if(G===_.VL(this.hostElement).querySelector("#menu"))break;if(G=this.clickTargetMap.get(G.id))return G}return null},
getRelativeClickXy_:function(m,G){var K=Math.round(m.detail.x-G.left);m=Math.round(m.detail.y-G.top);return K<0||m<0?[null,null]:[K,m]},
getContainerBoundingRect:function(){return _.VL(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(m,G){for(var K=_.g(m.loggingUrls||[]),W=K.next();!W.done;W=K.next())W=W.value,W.baseUrl&&(W.baseUrl=XgP(W.baseUrl,G));m.urlEndpoint&&m.urlEndpoint.url&&(m.urlEndpoint.url=XgP(m.urlEndpoint.url,G));m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.url&&(m.commandMetadata.webCommandMetadata.url=XgP(m.commandMetadata.webCommandMetadata.url,G))},
truncateWebCommendMetadataUrl_:function(m){if(m.commandMetadata&&m.commandMetadata.webCommandMetadata&&m.commandMetadata.webCommandMetadata.url){var G=m.commandMetadata.webCommandMetadata.url,K=G.indexOf("&pp=");if(K>0){var W=G.indexOf("&",K+1);m.commandMetadata.webCommandMetadata.url=W>K&&W<G.length?G.slice(0,K)+G.slice(W):G.slice(0,K)}}},
configureClickTargets:function(m,G,K){this.containerId=m;this.clickTargetMap=new Map;m=_.g(G);for(G=m.next();!G.done;G=m.next())if(G=G.value,G.location){var W=K.get(G.location);W&&(_.dF(_.VL(this.hostElement).querySelector("#"+W),"yt-simple-endpoint",this.isClickAllowed_(G)),this.clickTargetMap.set(W,G))}},
isClickAllowed_:function(m){return m.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||m.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||m.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||m.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.EW={};
_.EW.YtLazyListBehavior=[_.oE.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 m=(this.constructor.generatedFrom||this).observers;m||(m=[]);m.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
m}},
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 m=this.renderElementsOutsideVisibleArea_;m&&(ieG(m,4),m.processSignal())},
deepLazyListObserver_:function(m){var G=this;if(m){var K=m.value||[];if(this.itemsPath==m.path){var W=this.nonDeferredItemCount;m=0;W>-1&&K.length>W&&(m=_.E8("REMAINING_DOVA_DEFERRED_CHUNKS",-1));m>0?(W>0&&(W=K.slice(0,W),this.setInitialItemsOnDataChanged(W)),(W=this.renderElementsOutsideVisibleArea_)?W.cancel():(W=this.renderElementsOutsideVisibleArea_=new _.bp(2,"eocs"),_.ZNo(window,"scroll",function(){return G.renderDeferredElements()})),_.vq(W,function(){G.setInitialItemsOnDataChanged(K)}),_.qC("REMAINING_DOVA_DEFERRED_CHUNKS",
m-1)):this.setInitialItemsOnDataChanged(K)}else if(this.itemsPath+".splices"==m.path)this.onItemsUpdated_(K);
else W="shownItems"+m.path.substr(this.itemsPath.length),this.useSignals&&W==="shownItems.length"||this.notifyPath(W,m.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(m){m&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(m),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(m){m=m.indexSplices;for(var G=0,K=m.length;G<K;G++){var W=m[G];if(W.index<this.shownCount&&(W.removed&&this.splice("shownItems",W.index,W.removed.length),W.addedCount)){var L=W.object.slice(W.index,W.index+W.addedCount);W=["shownItems",W.index,0];W.push.apply(W,L);this.splice.apply(this,W)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(m){this.cancelPendingTasks_();m||(m=[]);this.items_=m;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&&(_.IP("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Pv(this,this.tryRenderChunk_)))},
fillRange_:function(m,G){this.canShowMore&&this.items_&&(m=this.items_.slice(m,G),m.unshift("shownItems"),this.push.apply(this,m),this.shownCount=G,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var m=this;this.canShowMore&&_.t9(this,"renderChunk",function(){m.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.IP("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.mn(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var m=this.renderElementsOutsideVisibleArea_;m&&(m.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var m=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(m-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=m;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(m){return Math.ceil(1E3/m)},
onCanShowMoreUpdated_:function(m){this.data&&this.items_!==null&&(m?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(m){!this.shouldUseTaskManager()&&this.data&&(!m&&this.canShowMore?(_.iOF(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):m&&this.partiallyRenderedItems_.has(this.items_)&&(_.F("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var jB;_.HT={};
jB=function(){var m=_.l0.apply(this,arguments)||this;m.atStart=!0;m.atEnd=!0;m.startIndex=0;m.endIndex=0;m.scrollCount=0;m.initialStartIndex=0;m.disableScrollEventListener=!1;m.useFloorScrolling=!1;m.isSearch=!1;m.dragging=!1;m.dragMouseStart=0;m.dragOffsetStart=0;m.disableWheelScroll=!1;m.centerListItems=!1;m.offset=0;m.minComponentWidth=0;m.marginWidthRight=0;m.marginWidthLeft=0;m.setButtonsStateRequested=!1;m.itemsVisibilityObserver=null;m.fullyVisibleItemsIndices=[];m.JSC$14812_onWheelScroll=function(G){if(m.isSearch&&
!m.disableWheelScroll&&_.F("desktop_enable_dmpanel_wheel_scroll")){var K=G.shiftKey?Math.abs(G.deltaY)>Math.abs(G.deltaX)?G.deltaY:G.deltaX:G.deltaX;K!==0&&(G.preventDefault(),m.ytLazyListBehavior.fillRemainingListItems(),m.offset+=K,Iu(m),m.reposition_())}};
m.onPointerDown=function(G){K0K(m)&&(m.dragMouseStart=G.clientX,m.dragOffsetStart=m.offset,m.dragging=!0)};
m.onPointerMove=function(G){K0K(m)&&m.dragging&&(m.ytLazyListBehavior.fillRemainingListItems(),m.offset=m.dragOffsetStart-(G.clientX-m.dragMouseStart),Iu(m),m.reposition_())};
m.onPointerUp=function(){K0K(m)&&(m.dragging=!1)};
return m};
_.n(jB,_.l0);var W0P=function(m){var G=_.VL(m.hostElement).querySelector("#items").children;if(!G)return 0;var K=0;m=_.g(m.fullyVisibleItemsIndices);for(var W=m.next();!W.done;W=m.next())K+=G[W.value].clientWidth;return K},K0K=function(m){return m.isSearch&&_.F("desktop_enable_dmpanel_click_drag_scroll")};
jB.prototype.created=function(){this.cachedViewportWidth=_.E8("initialInnerWidth")||window.innerWidth;this.JSC$14812_cachedViewportHeight=_.E8("initialInnerHeight")||window.innerHeight;_.E8("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.qC("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
jB.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.F("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();L0i(this)};
jB.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.F("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var m;(m=this.itemsVisibilityObserver)==null||m.disconnect();this.itemsVisibilityObserver=null;var G;(G=this.itemsObserver)==null||G.disconnect()};
var L0i=function(m){var G=_.VL(m.hostElement).querySelector("#scroll-container");if(G){if(!m.itemsVisibilityObserver){var K=window.getComputedStyle(G).marginRight;m.itemsVisibilityObserver=new IntersectionObserver(function(W){AF2(m,W)},{root:G,
rootMargin:K,threshold:.98})}if(G=_.VL(m.hostElement).querySelector("#items"))m.itemsObserver=new P1S(G,function(W){wKX(m,W)})}},wKX=function(m,G){gcl(m)&&(Array.from(G.addedNodes).filter(function(K){return K.nodeType===Node.ELEMENT_NODE}).forEach(function(K){m.itemsVisibilityObserver&&m.itemsVisibilityObserver.observe(K)}),Array.from(G.removedNodes).filter(function(K){return K.nodeType===Node.ELEMENT_NODE}).forEach(function(K){m.itemsVisibilityObserver&&m.itemsVisibilityObserver.unobserve(K)}))},
AF2=function(m,G){var K=new Set(m.fullyVisibleItemsIndices);
G=_.g(G);for(var W=G.next();!W.done;W=G.next()){W=W.value;var L=W.target.parentElement;L?(L=Array.from(L.children).indexOf(W.target),W.isIntersecting?K.add(L):K.has(L)&&K.delete(L)):_.nc(new _.cw("Parent element not found",W.target.nodeName))}m.fullyVisibleItemsIndices=Array.from(K).sort(function(A,O){return A-O});
K.size===0?_.nc(new _.cw("No visible entries in horizontal list")):(m.startIndex=m.fullyVisibleItemsIndices[0],m.endIndex=m.fullyVisibleItemsIndices[m.fullyVisibleItemsIndices.length-1])},gcl=function(m){m.data?m=(m=m.data)&&m.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===m.itemSizeConstraint:!1:m=!1;
return m};
_.w=jB.prototype;_.w.addScrollEventListeners=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container");m.style.touchAction="pan-y";m.addEventListener("wheel",this.JSC$14812_onWheelScroll);m.addEventListener("pointerdown",this.onPointerDown);m.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.w.removeScrollEventListeners=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container");m.removeEventListener("wheel",this.JSC$14812_onWheelScroll);m.removeEventListener("pointerdown",this.onPointerDown);m.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.w.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Pv(this,this.setStartIndex,[this.initialStartIndex])};
_.w.reposition_=function(){var m=_.E8("HTML_DIR")=="rtl"?"":"-",G=_.VL(this.hostElement).querySelector("#items");G&&(G.style.transform="translateX("+m+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.w.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Pv(this,this.setButtonsState_))};
_.w.setButtonsState_=function(){this.setButtonsStateRequested=!1;var m=_.VL(this.hostElement).querySelector("#items").firstElementChild;if(m){this.minComponentWidth||(this.minComponentWidth=OIX(this,m));m=_.VL(this.hostElement).querySelector("#scroll-container").clientWidth;var G=_.VL(this.hostElement).querySelector("#items");G=_.F("kevlar_horizontal_list_scroll_width_killswitch")?G.clientWidth:G.scrollWidth;var K=this.get(this.ytLazyListBehavior.itemsPath,this);if(K){var W=Math.round(m/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+W,K.length)-1)}this.ytLazyListBehavior.canShowMore?G+this.minComponentWidth>=this.offset+m&&(this.atEnd=!1):this.atEnd=this.offset+m>=G-20?!0:!1;this.atStart=this.offset<=20}};
_.w.setStartIndex=function(m){if(!this.minComponentWidth){var G=_.VL(this.hostElement).querySelector("#items").firstElementChild;if(!G)return;this.minComponentWidth=OIX(this,G)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*m;Iu(this);this.reposition_()};
_.w.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.yv();var m=_.VL(this.hostElement).querySelector("#scroll-container").clientWidth;_.F("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=OIX(this,_.VL(this.hostElement).querySelector("#items").firstElementChild));m=this.useFloorScrolling?Math.floor(m/this.minComponentWidth)||1:Math.round(m/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&cF2(this);this.offset+=gcl(this)?
W0P(this):m*this.minComponentWidth;Iu(this);this.reposition_();this.scrollCount++};
_.w.prevClick_=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container").clientWidth;m=this.useFloorScrolling?Math.floor(m/this.minComponentWidth)||1:Math.round(m/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=gcl(this)?W0P(this):this.minComponentWidth*this.scrollCount-1):this.offset-=gcl(this)?W0P(this):m*this.minComponentWidth;this.centerListItems&&cF2(this);Iu(this);this.reposition_()};
_.w.onIronResize_=function(){this.resizeSupportEnabled&&_.Pv(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.w.onItemsTransitionEnd_=function(m){_.$C(m)===_.VL(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.w.onChildElementFocus_=function(m){m=m.target.closest("#items > *");var G=_.VL(this.hostElement).querySelector("#scroll-container");if(G.contains(m)){if(_.F("web_horizontal_list_behavior_focus_killswitch"))if(m.offsetLeft<this.offset)this.offset=Math.abs(m.offsetLeft)<m.clientWidth?0:m.offsetLeft;else if(m.offsetLeft+m.clientWidth>this.offset+G.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.yv(),this.offset=m.offsetLeft+m.clientWidth-G.clientWidth;else return;else{var K=_.VL(this.hostElement).querySelector("#items"),
W=_.E8("HTML_DIR")==="rtl",L=W?K.clientWidth-m.offsetLeft:m.offsetLeft;K=W?K.clientWidth-(m.offsetLeft+m.clientWidth):m.offsetLeft+m.clientWidth;var A=W?L>this.offset+G.clientWidth:L<this.offset,O=W?K<this.offset:K>this.offset+G.clientWidth,c=W?A:O;if(W?O:A)G=W?K:L,this.offset=Math.abs(G)<m.clientWidth?0:G;else if(c)this.ytLazyListBehavior.fillRemainingListItems(),_.yv(),this.offset=(W?L:K)-G.clientWidth;else return}Iu(this);this.reposition_()}};
_.w.observeShownItems_=function(){this.reset()};
_.w.checkComponentWidthResize=function(){var m=_.VL(this.hostElement).querySelector("#items").firstElementChild;m&&(m=OIX(this,m),this.centerListItems||m!==this.minComponentWidth)&&(this.minComponentWidth=m,this.offset=m*this.scrollCount,this.centerListItems&&cF2(this),Iu(this),this.reposition_())};
var OIX=function(m,G){var K=window.getComputedStyle(G).marginRight;K=Math.floor(Number(K.replace("px","")));var W=window.getComputedStyle(G).marginLeft;W=Math.floor(Number(W.replace("px","")));m.centerListItems&&!m.marginWidthRight&&(m.marginWidthRight=K,m.marginWidthLeft=W);return m.resizeSupportEnabled?G.getBoundingClientRect().width+K:G.offsetWidth+K},Iu=function(m){var G=_.VL(m.hostElement).querySelector("#scroll-container").clientWidth,K=_.VL(m.hostElement).querySelector("#items").clientWidth;
m.offset<0?m.offset=0:m.offset+G>=K&&(m.offset=K-G)},cF2=function(m){m.offset-=(_.VL(m.hostElement).querySelector("#scroll-container").clientWidth+m.marginWidthRight-m.minComponentWidth)/2-m.marginWidthLeft};
_.e_.Object.defineProperties(jB.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var m=_.E8("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(m==-1)m=this.JSC$14812_cachedViewportHeight,m=m>1320?5:m>1020?4:m>730?3:m>430?2:1;else if(m==0)return 0;_.qC("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",m-1);m=_.E8("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(m>-1)return m;m=this.cachedViewportWidth;m=m>1600?6:m>1400?5:m>1300?4:m>1090?5:m>870?4:m>660?3:2;_.qC("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
m);return m},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.F("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
jB.prototype.observeShownItems_=jB.prototype.observeShownItems_;jB.prototype.onChildElementFocus_=jB.prototype.onChildElementFocus_;jB.prototype.onItemsTransitionEnd_=jB.prototype.onItemsTransitionEnd_;jB.prototype.onIronResize_=jB.prototype.onIronResize_;jB.prototype.prevClick_=jB.prototype.prevClick_;jB.prototype.nextClick_=jB.prototype.nextClick_;jB.prototype.setButtonsState_=jB.prototype.setButtonsState_;jB.prototype.requestButtonsStateUpdate_=jB.prototype.requestButtonsStateUpdate_;
jB.prototype.reposition_=jB.prototype.reposition_;jB.prototype.reset=jB.prototype.reset;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],jB.prototype,"ytLazyListBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jB.prototype,"atStart",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jB.prototype,"atEnd",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"startIndex",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"endIndex",void 0);_.x([_.V({value:6}),_.S("design:type",Number)],jB.prototype,"initialCount",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"scrollCount",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"initialStartIndex",void 0);
_.x([_.V(),_.S("design:type",Object)],jB.prototype,"disableScrollEventListener",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"supportComponentResize",void 0);_.x([_.V({value:function(){var m=this;return function(){return m.prevClick_()}}}),
_.S("design:type",Function)],jB.prototype,"boundPrevClick",void 0);_.x([_.V({value:function(){var m=this;return function(){return m.nextClick_()}}}),
_.S("design:type",Function)],jB.prototype,"boundNextClick",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"useFloorScrolling",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"isSearch",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"dragging",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"dragMouseStart",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"dragOffsetStart",void 0);
_.x([_.V(),_.S("design:type",Object)],jB.prototype,"disableWheelScroll",void 0);_.x([_.V(),_.S("design:type",Object)],jB.prototype,"centerListItems",void 0);_.x([_.XC("iron-resize"),_.Sb("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jB.prototype,"onIronResize_",null);_.x([_.XC("transitionend"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],jB.prototype,"onItemsTransitionEnd_",null);
_.x([_.XC("focusin"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],jB.prototype,"onChildElementFocus_",null);_.x([_.Sb("shownItems"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jB.prototype,"observeShownItems_",null);_.x([_.Be()],jB);_.HT.YtdHorizontalListBehavior=[];_.HT.YtdHorizontalListBehavior.push(_.mH,_.B.YtRendererBehavior,_.EW.YtLazyListBehavior,_.p9.YtdGuideStateAwareBehavior,jB.prototype);var J1J=["APP_STATE","PI"];var kj,C9=function(m){this.hostElement=m},V$=function(m,G){if(G&&(Fc9(G.viewableCommands)||Fc9(G.endOfSessionCommands))){var K=aY6(G.viewableCommands);
G=aY6(G.endOfSessionCommands);if(!kj){var W=_.U8("custom_active_view_tos_timeout_ms");kj=W>0&&W!==36E5?new foV(Qpo(),W):new foV(Qpo())}XQ6(kj,m.hostElement);SSP(kj,m.hostElement,K,G)}},Zn=function(m){kj&&XQ6(kj,m.hostElement)};var YIP=_.nY(["about:blank"]),rFl={pushState:window.history.pushState,replaceState:window.history.replaceState};var dt=function(m){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=m;this.internalPushState=m.pushState.bind(m);this.internalReplaceState=m.replaceState.bind(m)};
dt.prototype.init=function(){this.initialized=!0};
dt.prototype.pushState=function(m,G){this.initialized||this.init();this.internalPushState&&this.internalPushState(m,"",G)};
dt.prototype.replaceState=function(m,G){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(m,"",G)};
dt.prototype.getState=function(){return this.history&&this.history.state};var u84=function(m){var G=function(){var K=m.apply(this,arguments)||this;K.boundHistoryPushState=!1;K.boundHistoryReplaceState=!1;K.debugInfo={};return K};
_.n(G,m);G.prototype.init=function(){var K=_.M7("IFRAME");_.w5(K,_.vE(YIP));K.sandbox="allow-same-origin";K.style.display="none";this.iframe=K;document.body.appendChild(K);this.bindHistoryStateFunctions();m.prototype.init.call(this)};
G.prototype.bindHistoryStateFunctions=function(){var K=this,W=[],L;this.iframe&&((L=this.iframe.contentWindow)==null?0:L.history)&&(L=this.iframe.contentWindow.history)&&(W.push(L),Object.getPrototypeOf(L)&&W.push(Object.getPrototypeOf(L)));window.history&&W.push(window.history);L=window.history;Object.getPrototypeOf(L)&&W.push(Object.getPrototypeOf(L));W.push(rFl);L=function(O){for(var c=null,u=0;u<W.length;u++){var h=W[u][O];if(typeof h==="function"){c=h.bind(window.history);K.debugInfo[O]=u;break}}return c};
if(!this.boundHistoryReplaceState){var A=L("replaceState");A&&(this.internalReplaceState=A,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(L=L("pushState"))&&(this.internalPushState=L,this.boundHistoryPushState=!0)};
return G}(dt),hKK=function(){return u84.call(this,window.history)||this};
_.n(hKK,u84);hKK.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var PT=function(m){this.browserHistory=m;this.initialized=!1};
PT.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
PT.prototype.pushState=function(m,G){this.initialized||this.init();this.browserHistory.pushState(m,G)};
PT.prototype.replaceState=function(m,G){this.initialized||this.init();this.browserHistory.replaceState(m,G)};
PT.prototype.handlePopstate=function(m){return m.state};_.pKK=function(m,G,K,W,L){this.endpoint=m;this.forward=G;this.historyEntry=K;this.JSC$31224_savedComponentState=W;this.legacyBorder=L===void 0?!1:L};var JF2=function(m,G){this.rootData=m;this.scrollTop=G};_.y$=new _.sX("EPHEMERAL_STORE_TOKEN");_.eB=function(m){this.data=Object.assign({},m);var G;(G=this.data.innertubeResponse)==null||delete G.frameworkUpdates};
_.eB.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.xD)()};
_.eB.prototype.isProcessed=function(){return!!this.data.isProcessed};
_.k1=function(m){return Object.assign({},m.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var NJi=function(){this.maxSize=100;this.timeToDataCache=new Map};
NJi.prototype.get=function(m){var G=this.timeToDataCache.get(m);G&&(this.timeToDataCache.delete(m),this.timeToDataCache.set(m,G));if(G&&G.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var K=_.xS().resolve(_.y$),W=DZF(G),L=!!W;if(W){if(W.content){var A=f9(K,W.content);L&&A?G.rootData.response=_.k1(A):L=!1}W.player&&(A=f9(K,W.player),L&&A?G.rootData.playerResponse=_.k1(A):L=!1);W.reelSequence&&(K=f9(K,W.reelSequence),L&&K?G.rootData.reelWatchSequenceResponse=
_.k1(K):L=!1)}L||(this.timeToDataCache.delete(m),G=void 0)}return G};
NJi.prototype.set=function(m,G){if(G.rootData&&(_.F("web_use_response_store_for_history_cache")||_.F("mweb_use_new_history_manager"))){var K=DZF(G),W=Object.assign({},G.rootData);K&&(K.content&&G.rootData.response&&(t9R(this,K.content,G.rootData.response),W.response=null),K.player&&G.rootData.playerResponse&&(t9R(this,K.player,G.rootData.playerResponse),W.playerResponse=null),K.reelSequence&&G.rootData.reelWatchSequenceResponse&&(t9R(this,K.reelSequence,G.rootData.reelWatchSequenceResponse),W.reelWatchSequenceResponse=
null));G=new JF2(W,G.scrollTop)}this.timeToDataCache.has(m)?this.timeToDataCache.delete(m):this.timeToDataCache.size>=this.maxSize&&(K=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(K.value));this.maxSize!==0&&this.timeToDataCache.set(m,G)};
NJi.prototype.clear=function(){this.timeToDataCache.clear()};
var DZF=function(m){var G=_.xS().resolve(_.fn(_.WX)),K;if((K=m.rootData)==null?0:K.endpoint)return G==null?void 0:nGC(G,m.rootData.endpoint);var W;_.nc(new _.cw("History snapshot response data does not contain endpoint",(W=m.rootData)==null?void 0:W.url));return null},t9R=function(m,G,K){if(m.maxSize>0){var W;
(m=(W=K.responseContext)==null?void 0:W.maxAgeSeconds)&&Number(m)>0&&(W=_.xS().resolve(_.y$),K=Vo(K,m),W.put(G,new _.eB(K)))}};var F0B=function(m,G,K){this.endpoint=G;this.JSC$31230_savedComponentState=K===void 0?null:K;this.entryTime=m};var nQd=1;var xj=function(m){var G=function(){var K=m.apply(this,[].concat(_.Bz(_.mb.apply(0,arguments))))||this;K.historyEntryTime=0;K.historySnapshotCache=K.createHistoryCache();return K};
_.n(G,m);G.prototype.createHistoryCache=function(){return new NJi};
G.prototype.saveAndReplace=function(K,W,L){var A=window.location.href;var O=O===void 0?{}:O;var c=(c=this.browserHistory.getState())&&c.entryTime?c.entryTime:bxv();K=this.createNewHistoryEntry(K,O,c);this.saveSnapshot(c,W,L);this.replaceState(K,A||window.location.href)};
G.prototype.saveAndPush=function(K,W,L,A,O){O=O===void 0?{}:O;this.saveSnapshot(this.historyEntryTime,L,A);L=this.historySnapshotCache;A=this.historyEntryTime;var c=L.timeToDataCache.keys();c=_.g(c);for(var u=c.next();!u.done;u=c.next())u=u.value,u>A&&L.timeToDataCache.delete(u);W=this.createNewHistoryEntry(W,O);this.pushState(W,K)};
G.prototype.saveSnapshot=function(K,W,L){this.historySnapshotCache.set(K,new JF2(W,L))};
G.prototype.createNewHistoryEntry=function(K,W,L){L=L===void 0?bxv():L;return new F0B(L,K,W)};
G.prototype.handlePopstate=function(K){var W=m.prototype.handlePopstate.call(this,K),L=null,A=null,O=!1,c=null;W&&W.entryTime&&(c=this.historySnapshotCache.get(W.entryTime)||null,O=W.entryTime>this.historyEntryTime,this.historyEntryTime=W.entryTime,L=W.endpoint,A=W.JSC$31230_savedComponentState);this.handleHistoryCacheLoad(new _.pKK(L,O,c,A),K);return W};
G.prototype.pushState=function(K,W){Number(K==null?void 0:K.entryTime)>=0&&(this.historyEntryTime=K.entryTime);m.prototype.pushState.call(this,K,W)};
G.prototype.replaceState=function(K,W){Number(K==null?void 0:K.entryTime)>=0&&(this.historyEntryTime=K.entryTime);m.prototype.replaceState.call(this,K,W)};
G.prototype.handleHistoryCacheLoad=function(){};
return G}(PT),Q6C=function(){var m=xj.call(this,new hKK)||this;
m.dispatchElement=null;m.entryIndex=0;return m};
_.n(Q6C,xj);_.w=Q6C.prototype;_.w.init=function(m){m=m===void 0?!0:m;xj.prototype.init.call(this);this.initialized||(m||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.w.handlePopstate=function(m){var G=null;m.state||(G="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return xj.prototype.handlePopstate.call(this,m);var K=new CustomEvent("yt-history-pop",{cancelable:!0});_.dU(this.dispatchElement,"yt-history-pop",[K,{errorMsg:G}]);_.PH(this.dispatchElement,"yt-close-all-popups-action");if(!K.defaultPrevented){K=_.xS().resolve(_.$g);G=K.getCurrentData();var W=K.getCurrentPage();K=0;W?(W=_.dU(this.dispatchElement,"yt-get-page-offset",
[W]),W.length>0&&(K=W[0])):_.nc(new _.cw("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:G?G.page:"undefined"}));G&&(G.csn=_.gU());this.saveSnapshot(this.historyEntryTime,G,K)}return xj.prototype.handlePopstate.call(this,m)};
_.w.handleHistoryCacheLoad=function(m,G){m.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.g(_.PH(this.dispatchElement,"yt-history-will-navigate",[G])).next().value||_.dU(this.dispatchElement,"yt-history-load",[G,m]))};
_.w.pushState=function(m,G){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var K=new _.cw("history.pushState is not a function",this.getDebugString());_.am(K)}xj.prototype.pushState.call(this,m,G)};
_.w.replaceState=function(m,G){if(!this.browserHistory.boundHistoryReplaceState){var K=new _.cw("history.replaceState is not a function",this.getDebugString());_.am(K)}xj.prototype.replaceState.call(this,m,G)};
_.w.saveAndPush=function(m,G,K,W,L){L=L===void 0?{}:L;K&&(K.csn=_.gU());xj.prototype.saveAndPush.call(this,m,G,K,W,L)};
_.w.getDebugString=function(){var m=[];this.initialized&&m.push("i");this.browserHistory.boundHistoryReplaceState&&m.push("bhr");this.browserHistory.boundHistoryPushState&&m.push("bhs");"replaceState"in this.browserHistory.debugInfo&&m.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&m.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&m.push("ei:"+String(this.entryIndex));return m.join(",")};
_.Xa=function(m,G){m.init(!0);var K=m.browserHistory.getState();m.replaceState(K,Cz(G))};
Q6C.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.SB=new _.sX("DESKTOP_HISTORY_MANAGER_TOKEN");var aZS=[10,20,30,40,50,60],Ru=function(){this.currentPartitionIndex=0},oc0=function(m){MSB({mainAppWeb:_.at(),
survivalSli:{partitionMinute:m,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},ncX=function(m){MSB({mainAppWeb:_.at(),
survivalSli:{partitionMinute:m,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},bI0=function(m){return m.currentPartitionIndex>=0&&m.currentPartitionIndex<aZS.length?aZS[m.currentPartitionIndex]:-1},vcC=function(m){return m.currentPartitionIndex>0&&m.currentPartitionIndex-1<aZS.length?aZS[m.currentPartitionIndex-1]:-1};
Ru.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var m=vcC(this);m>0&&ncX(m);m=bI0(this);m>0&&oc0(m);$ZB(this)}};
var $ZB=function(m){var G=bI0(m);if(G>0){var K=vcC(m);K<0&&(K=0);m.intervalId=_.Fu.addJob(function(){var W=vcC(m);W>0&&ncX(W);W=bI0(m);W>0&&oc0(W);$ZB(m)},3,(G-K)*6E4);
m.currentPartitionIndex+=1}else m.currentPartitionIndex=-1};var s6k=function(m){GP.call(this,m,132);this.isDocument=m===document.documentElement};
_.n(s6k,GP);s6k.prototype.calculateScrollDelta=function(m,G,K){var W=0;m<G?W=m<G-100?-48:-8:m>G+K&&(W=m>G+K+100?48:8);return W};
s6k.prototype.JSC$11705_onMouseMove=function(m){this.isDocument||(m.clientX=m.event_.pageX,m.clientY=m.event_.pageY);GP.prototype.JSC$11705_onMouseMove.call(this,m)};_.qIo=function(m,G){var K=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14866_dragListGroup=null;this.onDraggerCreated=function(W){var L=W.JSC$11701_dragger;L.scrollTarget_=K.scrollElement;W=W.draggerEl;L&&W.menuOpened&&L.setEnabled(!1)};
this.onDragStart=function(W){var L=W.draggerEl;W=W.currDragItem;var A=Object.assign({},W==null?void 0:W.data);A.trackingParams=void 0;L.data=A;L.style.position="absolute";L.style.width=(W==null?void 0:W.clientWidth)+"px";L.style.zIndex="2030";L.onDrag&&L.onDrag();W=_.hI(L);(A=W.querySelector("ytd-app"))?_.VL(A).appendChild(L):W.body.appendChild(L);K.dragScrollSupport=new s6k(K.scrollElement);K.dragScrollSupport.horizontalScrolling_=!1;L=K.dragScrollSupport;L.constrainScroll_=!!L.margin_&&!1};
this.onDrop=function(W){K.handleDrop(W);K.dragScrollSupport&&(_.I$(K.dragScrollSupport),K.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(K.JSC$14866_dragListGroup){var W=K.JSC$14866_dragListGroup;TnG(W,W.currDragItem_)}};
this.handleDrop=G};
_.UW=function(m){m.JSC$14866_dragListGroup&&(_.Lb(m.JSC$14866_dragListGroup,xyF,m.onDragStart),_.Lb(m.JSC$14866_dragListGroup,Uy4,m.onDragStart),m.JSC$14866_dragListGroup.dispose(),m.JSC$14866_dragListGroup=null);m.dragScrollSupport&&(_.I$(m.dragScrollSupport),m.dragScrollSupport=null);m.scrollElement.removeEventListener("scroll",m.onReorderableScroll)};
_.EcB=function(m,G,K,W){W=W===void 0?"":W;_.UW(m);K&&(m.scrollElement=K);m.JSC$14866_dragListGroup=new cF;m.JSC$14866_dragListGroup.hysteresisDistance_=2;lJk(m.JSC$14866_dragListGroup,G);m.JSC$14866_dragListGroup.draggerElClasses_=u6("dragging").split(" ");W&&Bnk(m.JSC$14866_dragListGroup,function(L){var A=L||document,O=null;A.getElementsByClassName?O=A.getElementsByClassName(W)[0]:O=JI4("*",W,L);return O||L});
_.oi(m.JSC$14866_dragListGroup,ea0,m.onDraggerCreated);_.oi(m.JSC$14866_dragListGroup,xyF,m.onDragStart);_.oi(m.JSC$14866_dragListGroup,Uy4,m.onDrop);m.JSC$14866_dragListGroup.init();m.scrollElement.addEventListener("scroll",m.onReorderableScroll,{passive:!0})};
_.e_.Object.defineProperties(_.qIo.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var HIC=function(){this.skipNextNavigation=!1},IZ4=function(m,G,K){if(!G)return!1;
if(m.skipNextNavigation)return m.skipNextNavigation=!1;if(_.Q(K,_.H$))return!1;var W,L,A;if((W=_.Q(K,_.S8))==null?0:(L=W.browseEndpointContextSupportedConfigs)==null?0:(A=L.browseEndpointContextMainConfig)==null?0:A.skipConfirmation)return!1;var O;return((O=_.Q(G.commandMetadata,_.RQ))==null?void 0:O.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
HIC.prototype.showConfirmationDialog=function(m,G){this.navigateParams=G;this.customConfirmationCommand?_.xS().resolve(_.S1).resolveCommand(this.customConfirmationCommand):(G={openPopupAction:{popup:{confirmDialogRenderer:{title:_.nG(_.zq("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.nG(_.zq("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.nG(_.zq("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.nG(_.zq("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Im.getInstance().triggerAction("yt-open-popup-action",G,m))};
HIC.prototype.cancelPendingNavigation=function(){var m;((m=this.navigateParams)==null?void 0:m.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var j6S=function(){},CRi=function(m,G,K,W,L,A,O){K=K===void 0?{}:K;
O=O===void 0?{}:O;var c=_.xS().resolve(_.WX),u,h=(u=_.Q(G,_.H$))==null?void 0:u.url;return h?Y0o(c,h,K,window.location.href,function(J,N){kOG(m,J,N,!1,!0,K,A,W)},function(){return!1}):Db(c,G,K,window.location.href,Uv(G),function(J,N){kOG(m,J,N,!1,!0,K,A,W)},L,O)},kOG=function(m,G,K,W,L,A,O,c){if(!m.JSC$14881_chunkHandler)if(K.page==="learning_journey_watch"&&_.F("web_enable_canvas_on_learning_journey")){var u=!_.Q(c,_.S8);
L=L||W;if(u)if(L){if(_.F("kevlar_continue_playback_without_player_response")){var h;var J=(h=_.Q(c,_.QQ))==null?void 0:h.videoId}W={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:W,previousVideoId:J},tempData:A}}else W={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else W={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};m.JSC$14881_chunkHandler=new a$G(_.qW,W,O,u,L)}else if(K.page==="watch"||K.page==="learning_journey_watch")if(L||W){if(_.F("kevlar_continue_playback_without_player_response")){var N;
u=(N=_.Q(c,_.QQ))==null?void 0:N.videoId}m.JSC$14881_chunkHandler=new bMK(_.qW,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:W,previousVideoId:u},tempData:A},O)}else m.JSC$14881_chunkHandler=new FSk(_.qW);else K.page==="shorts"&&L&&!W?m.JSC$14881_chunkHandler=new nbS(_.qW,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:A},O):m.JSC$14881_chunkHandler=new Qho(O);m.JSC$14881_chunkHandler.processChunk({endpoint:G,data:K});return m.JSC$14881_chunkHandler.nP.promise},
V9i=function(m,G,K,W,L){(K=_.PoR(K))&&kOG(m,G,K,!1,!0,W,void 0,L)};_.ZI2=new _.sX("NAVIGATION_SERVICE_TOKEN");var dZP=function(){this.pendingNavigationPromise=null};
_.w=dZP.prototype;_.w.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.w.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.w.addEventListener=function(){throw Error("Ah");};
_.w.dispatchEvent=function(){throw Error("Ah");};
_.w.removeEventListener=function(){throw Error("Ah");};var PR4=new _.sX("APP_ROOT");var $XF=null;var yF2=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],zM=function(){_.ai.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];eKB(this)};
_.n(zM,_.ai);zM.prototype.verifyUser=function(){var m=eKB(this),G=m.logout;if(!m.sessionChange)return!0;this.dispatchEvent("ytsessionchange");G&&this.dispatchEvent("ytuserinvalid");return!1};
var eKB=function(m){var G=yF2.map(function(L){var A;return(A=_.LL.get(L))!=null?A:""}),K=G.some(function(L,A){return m.sessionCookies&&m.sessionCookies[A]!==""&&L===""}),W=G.some(function(L,A){return m.sessionCookies&&m.sessionCookies[A]!==L});
m.sessionCookies=G;return{logout:K,sessionChange:W}};
zM.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Fu.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var jpV=new _.sX("POSTMESSAGE_TUNNEL_TOKEN");var EQG=["/parent_tools","/file_download","/artist_roster"],VcF=[T5X,mjl,i6R,KKl,GFF,MyS,WKo,LK0];var ln=new _.sX("NAVIGATION_CONFIRMATION_SERVICE");var fZ4="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),xZX=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],BT=function(m,G){this.pendingNavigationPromise=null;this.JSC$14904_clientRoot=m;this.historyManager=G;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 j6S;this.debugString=m.is;m={"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};_.jN(_.Im.getInstance(),m,this.JSC$14904_clientRoot)},zK4,lZi,BJl,M94,UZF;
_.n(BT,dZP);BT.prototype.reload=function(){_.pr(window.location.href)};
var f$K=function(m){m.currentEndpoint&&_.Q(m.currentEndpoint,_.lw)?m.reload():m.currentEndpoint&&m.navigate(m.currentEndpoint,!0,void 0,{disableCache:!0})};
BT.prototype.navigate=function(m,G,K,W,L,A,O,c){G=G===void 0?!1:G;K=K===void 0?{}:K;W=W===void 0?{}:W;var u=_.xS().resolve(ln),h;if(!O&&IZ4(u,(h=this.currentEndpoint)!=null?h:void 0,m))return u.showConfirmationDialog(this.JSC$14904_clientRoot.parentElement,{endpoint:m,reload:G,params:K,tempData:W,requestType:L,createScreenConfig:A}),!1;var J=_.tf();_.Fi(J,"eocs")||J.parkOrScheduleJob(function(){J.processSignal("eocs")},10,"eor");
spo();O=Uv(m);u=W.autonav==="1";h=_.gU();zM.instance||(zM.instance=new zM);var N=zM.instance.verifyUser(),D;if(_.F("enable_dark_theme_only_on_shorts")){var t=document.documentElement.hasAttribute("dark"),a=_.Ng(!0)==="USER_INTERFACE_THEME_DARK";if(O==="shorts"){if(!t)if(_.F("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var v;_.pr((v=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:v.url,void 0,void 0,window.top)}}else{var I;_.pr(_.y3((I=_.Q(m==
null?void 0:m.commandMetadata,_.RQ))==null?void 0:I.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.F("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!t){var Z;_.pr(_.y3((Z=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:Z.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(a!==t){var k;_.pr(_.y3((k=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:k.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(O==="watch"){if(XKk(_.xS().resolve(_.pY),
m)&&(N||_.F("fix_miniplayer_navigation_killswitch")))return!1;_.F("block_all_player_prefetch_requests")||(D=y0R(_.Ix(_.yU),m,u))}else{var z,X=(z=_.Q(this.currentEndpoint,_.QQ))==null?void 0:z.videoId;X&&_.W3.getInstance().then(function(kG){kG&&kG.set("yt-miniplayer-shown-video-id",X)})}D&&(K.frags=D.missingFragments_.join(","));
v=null;var f;I=(f=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:f.ignoreNavigation;if(!I)if(_.F("kevlar_command_url")){var U;v=(U=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?void 0:U.url}else v=_.aEd(m,K);if(v&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&v==this.lastNavigationUrl)return _.g9({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Sq(hj(),"CANCELLED")}v&&(this.lastNavigationUrl=v);VLG();_.qC("IS_HOMEPAGE_COLD",
!1);_.qC("IS_RESULTS_PAGE_COLD",!1);_.qC("IS_WATCH_PAGE_COLD",!1);m.loggingUrls&&m.loggingUrls.forEach(function(kG){kG.baseUrl&&_.HG(kG.baseUrl)});
_.y1P(m,A?A.layer:0)&&_.F("kevlar_flush_logs_on_away_navigation")&&_.Qb();if(Zxf(m))return!1;QHR(O,L);if(!v)return I||_.nc(new _.cw("Can't construct url for endpoint",m)),_.Sq(hj(),"FAILURE"),!1;_.q_G();f=m&&_.Q(m,_.S8)&&_.Q(m,_.S8).browseId.startsWith("UC");K=(U=_.F("enable_dark_theme_only_on_shorts")&&O==="shorts"?!1:_.D7()&&document.documentElement.hasAttribute("dark")!==_.JK())?{themeRefresh:1}:{};U&&!_.w8()&&_.Ng()==="USER_INTERFACE_THEME_DARK"&&(K.theme="dark");f=U||SI2(v)&&!f&&!_.F("kevlar_disable_url_allowlist");
N||(f=!0);if(f||_.E8("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var l;var Ls=(l=window.top)==null?void 0:l.location.href}catch(kG){var gd;Ls=(gd=kG)==null?void 0:gd.message}_.nc(new _.cw("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Ls}))}m=_.F("kevlar_redirect_on_window_killswitch")?window.top:window;hK(v);_.pr(_.y3(v,K),void 0,void 0,m);_.Sq(hj(),"ABORTED");return!1}_.F("kevlar_early_popup_close")&&_.dU(this.JSC$14904_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14881_chunkHandler=void 0;var Qf;Ls=Uv((Qf=this.currentEndpoint)!=null?Qf:void 0);(Qf=O==="shorts"&&Ls==="shorts")||_.ebd();_.kS(EV9)("nr",void 0);u&&_.g9({webInfo:{navigationReason:"an"}});m.clickTrackingParams&&(W.itct=m.clickTrackingParams,W.csn=h);H1M(W);W.endpoint=JSON.stringify(m);_.F("enable_unknown_lact_fix_on_html5")&&(_.xS().resolve(_.zk),W.lact=_.Xu());_.Y2.isEmpty(W)||_.nJ(v,W);!_.F("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(A=Object.assign({},{layer:0},A,{parentLayer:3}));this.pendingNavigationPromise=A=CRi(this.pageFetcher,m,W,this.currentEndpoint,this.JSC$14904_isNetworkPromiseStale.bind(this),A,c);A=A.then(this.handleNavigateSuccess.bind(this,A,m,D,W),this.handleNavigateFail.bind(this,A,m));_.U7().navigationFinishPromise=A;G={endpoint:m,pageType:O,url:Cz(v),reload:!!G,noProgressBar:Qf};L&&(G.type=L);var JV;L=_.XQ((JV=this.currentEndpoint)!=null?JV:null);JV=_.XQ(m!=null?m:null);this.fireEvent("yt-navigate-start",
G);var DF;(DF=_.xS().resolve(_.fn(_.ZI2)))==null||DF.publish("navigation-start",{sourcePageSubtype:L,destinationPageSubtype:JV});D&&V9i(this.pageFetcher,m,D,W,this.currentEndpoint);return!0};
BT.prototype.JSC$14904_isNetworkPromiseStale=function(m){return m!=this.pendingNavigationPromise};
var RKo=function(m,G,K,W,L){var A=Uv(G);G={endpoint:G,pageType:A};L&&(G.errorMessage=L);_.nc(K);G.navigationDoneMs=_.Yt("nd");G.navigationErrorReason=W;m.fireEvent("yt-navigate-error",G)};
BT.prototype.handleNavigateFail=function(m,G,K){var W=void 0;K instanceof _.uG&&(W=K,FnJ(K));if(this.JSC$14904_isNetworkPromiseStale(m))return _.KN(W);_.Sq(hj(),"FAILURE");RKo(this,G,K,"101");return _.KN(K)};
BT.prototype.handleNavigateSuccess=function(m,G,K,W,L){if(this.JSC$14904_isNetworkPromiseStale(m))return _.fJ();this.pendingNavigationPromise=null;if(!L)return G=new _.cw("Missing data in response for navigation endpoint",G),_.KN(G);if(L.reload)return window.location.reload(!0),_.fJ();K&&(m={},_.Y2.extend(m,_.PoR(K),L),L=m);var A,O;K=(A=L)==null?void 0:(O=A.timing)==null?void 0:O.responseStart;K!=null&&_.Yt("srt",K);_.Yt("pdc");var c,u;A=(c=L)==null?void 0:(u=c.timing)==null?void 0:u.info;A!=null&&
(c=_.kS(_.jnd)(A),_.g9(c));_.Sq(hj(),"SUCCESS");UZF(this,G,L,1,W);return _.fJ()};
var SI2=function(m){var G=m;_.F("kevlar_no_redirect_to_classic_2_ks")||(G=(new _.aQ(m)).getPath());if(G==="/"||G==="/red")return!1;var K=!0;fZ4.forEach(function(W){m.indexOf(W)===0&&(K=!1)});
xZX.forEach(function(W){var L=W.url;_.F(W.expFlag)&&m.indexOf(L)===0&&(K=!1)});
return K};
BT.prototype.publishPageData=function(m){this.fireEvent("yt-page-data-fetched",{pageData:m})};
zK4=function(m,G,K,W,L,A){var O=null;G.page!=="watch"&&G.page!=="learning_journey_watch"||W?G.filler||_.dU(m.JSC$14904_clientRoot,"yt-stop-old-player",[G]):O=kOG(m.pageFetcher,L,G,K,!1,A,void 0,m.currentEndpoint);if(O)return O.then(m.publishPageData.bind(m,G));m.publishPageData(G);return _.fJ()};
lZi=function(m,G,K){var W=null;if(!K)return W=new _.cw("Empty data",m.debugString,G);var L=K.response;if(!L)return W;var A={endpointType:Uv(G)||"unknown"};L.responseContext?(L=L.responseContext.errors)&&(W=new _.cw("Errors in response context",m.debugString,G,L,A)):W=L.error||L.errorMetadata?new _.cw("Errors in response",m.debugString,G,L.error,L.errorMetadata,A):new _.cw("responseContext missing",m.debugString,G,Object.keys(L).sort().join(","),A);var O,c,u,h;if(m=K==null?void 0:(O=K.response)==null?
void 0:(c=O.responseContext)==null?void 0:(u=c.webResponseContextExtensionData)==null?void 0:(h=u.webResponseContextDebugData)==null?void 0:h.debugErrorMessages)for(O=0;O<m.length;O++);return W};
BJl=function(m){var G,K,W,L;return m==null?void 0:(G=m.response)==null?void 0:(K=G.responseContext)==null?void 0:(W=K.errors)==null?void 0:(L=W.error)==null?void 0:L["0"]};
M94=function(m,G){var K;if(K=G.url&&!G.url.startsWith("/clip"))K=G.url,K=!_.F("webfe_parse_debug_param_in_resolveurl_service")&&m.searchDebugUrlMatcher.test(K)||IQF(K)?!0:!1;if(K)IQF(G.url)&&_.PO(window.location.href).themeRefresh?(G=_.mi(G.url,"themeRefresh"),_.Xa(m.historyManager,G)):G.url&&!oQG(G.url)&&_.Xa(m.historyManager,G.url);else if(G.endpoint){var W,L,A;(K=(W=G.endpoint)==null?void 0:(L=W.commandMetadata)==null?void 0:(A=L.webCommandMetadata)==null?void 0:A.url)&&!oQG(K)&&_.Xa(m.historyManager,
K);K&&G.url&&K!=G.url&&!G.url.match("playnext=1")&&new _.cw("Response url mismatch in response data",m.debugString,K,G.url)}};
_.TJ4=function(m,G,K,W,L,A,O,c){A=A===void 0?!1:A;var u=_.xS().resolve(ln),h;if(!c&&IZ4(u,(h=m.currentEndpoint)!=null?h:void 0,G))return u.showConfirmationDialog(m.JSC$14904_clientRoot.parentElement,{endpoint:G,data:K,navigationType:W,tempData:L,isMiniplayer:A,isForwardHistoryNavigation:O==null?void 0:O.forward}),_.fJ();m.pageFetcher.JSC$14881_chunkHandler=void 0;return UZF(m,G,K,W,L,A)};
UZF=function(m,G,K,W,L,A){A=A===void 0?!1:A;m.isMiniplayerExpansion=A;var O=W===2;m.currentEndpoint=G;m.numNavigations++;m.numNavigations&&(tjo.navigationCount=m.numNavigations);_.qC("NUM_NAV",m.numNavigations);var c=lZi(m,G,K);if(c)return RKo(m,G,c,"102",BJl(K)),_.KN(c);var u,h,J,N;c=K.rootVe||(K==null?void 0:(u=K.response)==null?void 0:(h=u.responseContext)==null?void 0:(J=h.webResponseContextExtensionData)==null?void 0:(N=J.ytConfigData)==null?void 0:N.rootVisualElementType);!O&&K&&M94(m,K);var D,
t;u=K==null?void 0:(D=K.response)==null?void 0:(t=D.responseContext)==null?void 0:t.maxAgeSeconds;if(!O&&!isNaN(u)){var a;_.F("kevlar_use_response_ttl_to_invalidate_cache")?a=(0,_.xD)()+1E3*u:_.F("kevlar_always_invalidate_cache")&&(a=0);isNaN(a)||(K.expirationTime=a)}_.Ix(_.yU).prefetchCache_.clear();O||K.page!=="watch"||W!==1?W=zK4(m,K,O,!!A,G,L):(m.publishPageData(K),W=_.fJ());L=W.then(function(){var v=Uv(G);v={endpoint:G,pageType:v,fromHistory:O,response:K};v.navigationDoneMs=_.Yt("nd");m.fireEvent("yt-navigate-finish",
v);var I;(I=_.xS().resolve(_.fn(_.ZI2)))==null||I.publish("navigation-end")});
K.csn&&c&&K.clientSideGrafts&&W.then(m.attachClientSideGrafts.bind(m,K,_.wU()));return L};
_.w=BT.prototype;_.w.attachClientSideGrafts=function(m,G){m.clientSideGrafts&&G&&m.clientSideGrafts.forEach(function(K){if(G&&K){var W=_.m5(K);_.F("combine_ve_grafts")?_.l1().graftServerVe(K,G):_.tW(m.csn,G,W)}})};
_.w.handleSignalActionHistoryBack=function(){window.history.back()};
_.w.handleSignalActionCloseWindow=function(){window.close()};
_.w.handleSignalActionReloadPage=function(){this.reload()};
_.w.handleSignalActionSoftReloadPage=function(){f$K(this)};
_.w.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.w.fireEvent=function(m,G){m=new CustomEvent(m,{bubbles:!0,cancelable:!1,composed:!0,detail:G});this.dispatchEvent(m)};
_.w.addEventListener=function(m,G){this.JSC$14904_clientRoot.addEventListener(m,G)};
_.w.dispatchEvent=function(m){return this.JSC$14904_clientRoot.dispatchEvent(m)};
_.w.removeEventListener=function(m,G){this.JSC$14904_clientRoot.removeEventListener(m,G)};
BT[XF]=[PR4,_.SB];var m0B;var iF0=function(){return _.d.apply(this,arguments)||this};
_.n(iF0,_.d);_.e_.Object.defineProperties(iF0,{template:{configurable:!0,enumerable:!0,get:function(){if(m0B===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);m0B=m}m=m0B;return m}}});
_.x([_.q(iIl.YtPlayerBehavior),_.S("design:type",Object)],iF0.prototype,"ytPlayerBehavior",void 0);_.x([_.Ye({is:"ytd-player"})],iF0);var GKl;var K20;var W2o;var MS=function(){var m=_.d.apply(this,arguments)||this;m.forceModernIconButton=!1;m.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return m};
_.n(MS,_.d);MS.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]]"}}}}}};
MS.prototype.handleAccountLinkingStateChangedCommand=function(m){if(m=_.Q(m,bU0)){var G,K=(G=this.data)==null?void 0:G.providerKey;G=m.providerKey;K&&G&&K.id===G.id&&K.subject===G.subject&&(m=m.linked,m!==void 0&&(this.set("data.linked",m),this.notifyPath("data.linked"),_.F("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(m)))}};
MS.prototype.setPlayerAccountLinkState=function(m){var G=new ePG;fjR(G,PuF(new dVC,m));var K=_.qW();K&&K.getPlayerPromise().then(function(W){W.setAccountLinkState(_.Md(G.JSC$12632_serializeBinary(),4));W.updateAccountLinkingConfig(m)})};
MS.prototype.handleShowAccountLinkDialog=function(){var m=this.get("button.buttonRenderer.command");m&&_.XA([m],this.hostElement)};
_.e_.Object.defineProperties(MS.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}}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.x([_.q([_.Pq.YtActionHandlerBehavior]),_.S("design:type",Object)],MS.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MS.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],MS.prototype,"overrides",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],MS.prototype,"forceModernIconButton",void 0);_.x([_.V({value:"bottom"}),_.S("design:type",String)],MS.prototype,"buttonTooltipPosition",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],MS.prototype,"forceIconButton",void 0);_.x([_.V(),_.S("design:type",Boolean)],MS.prototype,"disableTextTransform",void 0);
_.x([_.E("data","data.linked","data.isWarning"),_.S("design:type",Object),_.S("design:paramtypes",[])],MS.prototype,"button",null);_.x([_.Ye({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],MS);
_.y(MS,"ytd-account-link-button-renderer",function(){if(W2o!==void 0)return W2o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return W2o=m},{mode:1});var L2B;var AB4=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],TM=function(){return _.d.apply(this,arguments)||this};
_.n(TM,_.d);TM.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
TM.prototype.updateButtonActiveState=function(){var m=this,G=!!AB4.find(function(K){return m.currentState===K});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.F("enable_web_delhi_icons")&&(G=!1);this.button&&(this.button.isPressed=G)};
_.e_.Object.defineProperties(TM.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.playlistLoopStateEntity)==null?void 0:m.state)||((G=this.data)==null?void 0:G.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var m=void 0,G;if(this.currentState&&((G=this.data)==null?0:G.states)){G=_.g(this.data.states);for(var K=G.next();!K.done;K=G.next()){K=_.Q(K.value,_.erP);var W=void 0;if(((W=K)==null?void 0:W.state)===this.currentState){m=K;break}}}return m}}});
TM.prototype.updateButtonActiveState=TM.prototype.updateButtonActiveState;_.x([_.q(_.OW),_.S("design:type",Object)],TM.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],TM.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.im.playlistLoopStateEntitySelector}),_.S("design:type",Object)],TM.prototype,"playlistLoopStateEntity",void 0);_.x([_.V(),_.S("design:type",Object)],TM.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],TM.prototype,"forceIconOnly",void 0);_.x([_.UM("ytd-button-renderer"),_.S("design:type",_.sD)],TM.prototype,"button",void 0);
_.x([_.E("data","playlistLoopStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],TM.prototype,"currentState",null);_.x([_.Sb("currentButtonStateRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TM.prototype,"updateButtonActiveState",null);_.x([_.E("currentState"),_.S("design:type",Object),_.S("design:paramtypes",[])],TM.prototype,"currentButtonStateRenderer",null);
_.x([_.Ye({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],TM);
_.y(TM,"ytd-playlist-loop-button-renderer",function(){if(L2B!==void 0)return L2B;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return L2B=m},
{mode:1});var wnk;var gdl=_.zq("DOWNLOAD",{},"Download"),OFF=_.zq("DOWNLOADING",{},"Downloading"),cBG=_.zq("DOWNLOADED",{},"Downloaded"),YzG=_.zq("RETRY",{},"Retry"),mB=function(){var m=_.d.apply(this,arguments)||this;m.forceIconButton=!1;m.forceIconOnly=!1;m.overrides=!1;m.buttonTooltipPosition=!1;m.styleActionButton=!1;m.disableTextTransform=!1;m.downloadProgress=0;m.isDownloadComplete=!1;m.isHidden=!0;m.transferState="TRANSFER_STATE_UNKNOWN";m.isVideoDeletedByUser=!1;m.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return m};
_.n(mB,_.d);_.w=mB.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.dataChanged=function(){var m;(m=this.data)!=null&&m.text||(m=_.uw(_.$R().getState(),this.videoId),this.updateButtonState(m))};
_.w.computeVideoId=function(m){return m};
_.w.computePlayerStateEntityKey=function(m){return m};
_.w.showHideButton=function(){this.updateButtonVisibility()};
_.w.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var m;((m=this.playerStateEntity)==null?void 0:m.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.w.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.w.updateButtonState=function(m){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==OFF||!_.Mc(m))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(m){case "TRANSFER_STATE_UNKNOWN":m=gdl;var G="OFFLINE_DOWNLOAD";var K="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":m=YzG;G="OFFLINE_DOWNLOAD";K="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":m=cBG;G="OFFLINE_PIN";K="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":m=
OFF;G="OFFLINE_DOWNLOADING_ZERO";K="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":m=YzG;G="OFFLINE_DOWNLOAD";K="ACTION_RETRY";break;default:m=gdl,G="OFFLINE_DOWNLOAD",K="ACTION_ADD"}this.isVideoDeletedByUser&&(m=gdl,G="OFFLINE_DOWNLOAD",K="ACTION_ADD");var W=Object.assign({},this.data);W.text=_.nG(m);W.tooltip=m;W.icon={iconType:G};W.size="SIZE_DEFAULT";W.style="STYLE_DEFAULT";_.Q(W.command,_.xg)&&(_.Q(W.command,_.xg).action=K);this.set("data",W)}};
_.w.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var m="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?m="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?m="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?m="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?m="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?m="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(m="OFFLINE_PIN",this.isDownloadComplete=!0);var G;m!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.text=_.nG(OFF),G.tooltip=OFF,G.icon={iconType:m},_.Q(G.command,_.xg)&&(_.Q(G.command,_.xg).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
mB.prototype.updateProgress=mB.prototype.updateProgress;mB.prototype.onTransferStateChanged=mB.prototype.onTransferStateChanged;mB.prototype.showHideButton=mB.prototype.showHideButton;mB.prototype.dataChanged=mB.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],mB.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"forceIconButton",void 0);
_.x([_.V(),_.S("design:type",Object)],mB.prototype,"forceIconOnly",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"overrides",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"buttonTooltipPosition",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"styleActionButton",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"disableTextTransform",void 0);
_.x([_.V({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.S("design:type",String)],mB.prototype,"videoId",void 0);_.x([_.V({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.S("design:type",String)],mB.prototype,"playerStateEntityKey",void 0);_.x([_.V(),_.S("design:type",Object)],mB.prototype,"data",void 0);_.x([_.V({selector:pG,selectorArgs:["videoId"]}),_.S("design:type",Object)],mB.prototype,"downloadProgress",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],mB.prototype,"isDownloadComplete",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],mB.prototype,"isHidden",void 0);_.x([_.V({selector:_.uw,selectorArgs:["videoId"]}),_.S("design:type",String)],mB.prototype,"transferState",void 0);_.x([_.V({selector:_.rrJ,selectorArgs:["videoId"]}),_.S("design:type",Object)],mB.prototype,"isVideoDeletedByUser",void 0);
_.x([_.V({selector:Ar9,selectorArgs:["videoId"]}),_.S("design:type",Object)],mB.prototype,"offlineabilityState",void 0);_.x([_.V({selector:_.ZJ,selectorArgs:["playerStateEntityKey"]}),_.S("design:type",Object)],mB.prototype,"playerStateEntity",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],mB.prototype,"showTooltips",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],mB.prototype,"sendCommandWhenDisabled",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],mB.prototype,"disabled",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mB.prototype,"dataChanged",null);_.x([_.Mg("offlineabilityState","playerStateEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mB.prototype,"showHideButton",null);
_.x([_.Mg("transferState","isVideoDeletedByUser"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mB.prototype,"onTransferStateChanged",null);_.x([_.Mg("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mB.prototype,"updateProgress",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],mB);
_.y(mB,"ytd-download-button-renderer",function(){if(wnk!==void 0)return wnk;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return wnk=m},{mode:2});var rBK;var urX,hc4=function(){if(urX!==void 0)return urX;var m=document.createElement("template");_.b(m,'\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 urX=m};var pnS=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live"),JBl=_.U8("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,iC=function(){var m=_.d.apply(this,arguments)||this;m.isPressed=!1;m.forceIconButton=!1;m.forceIconOnly=!1;m.forceModernIconButton=!1;m.alignByText=!1;m.isShorts=!1;m.animatedText=!1;m.shouldAnimate=!1;m.JSC$14942_browserSupportsAnimation=_.F("web_supports_animations_api");m.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};m.onTap=function(){var G;if((G=m.data)==null||!G.defaultNavigationEndpoint){var K;G=!((K=m.data)==null?0:K.isToggled);var W;if((W=m.data)==null||!W.preventAutoToggle){m.shouldAnimate=!1;m.disableTextUpdateJobId&&_.Fu.cancelJob(m.disableTextUpdateJobId);m.disableTextUpdateJobId=_.Fu.addLowPriorityJob(function(){m.disableTextUpdateJobId=void 0},JBl);
var L;m.set("data.isToggled",!((L=m.data)==null?0:L.isToggled));K=m.getInnertubeIcon();W={toggled:G,actions:{}};K&&(W.actions[K.toLowerCase()]=G);_.Zw(m.hostElement,"yt-toggle-button",W)}}};
return m};
_.n(iC,_.d);_.w=iC.prototype;_.w.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Fu.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.toggle=function(m){var G;this.set("data.isToggled",m!==void 0?m:!((G=this.data)==null?0:G.isToggled))};
_.w.handleUpdateToggleButtonStateCommand=function(m){if(this.data){m=_.Q(m,IWP);var G,K,W,L=(G=this.data)==null?void 0:(K=G.toggleButtonSupportedData)==null?void 0:(W=K.toggleButtonIdData)==null?void 0:W.id;L&&m&&L===(m==null?void 0:m.buttonId)&&this.set("data.isToggled",m.toggled)}};
_.w.handleUpdateToggleButtonTextAction=function(m){if(this.data){m=_.Q(m,Gll);var G,K,W,L=(G=this.data)==null?void 0:(K=G.toggleButtonSupportedData)==null?void 0:(W=K.toggleButtonIdData)==null?void 0:W.id;L&&m&&L===(m==null?void 0:m.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=m.defaultNumericalValue,this.set("data.defaultText",m.defaultText),this.set("data.toggledText",m.toggledText),this.shouldAnimate=!1)}};
_.w.getInnertubeIcon=function(){var m=this.data;if(m){var G,K,W=((G=m.defaultIcon)==null?0:G.iconType)?(K=m.defaultIcon)==null?void 0:K.iconType:null,L,A;G=((L=m.toggledIcon)==null?0:L.iconType)?(A=m.toggledIcon)==null?void 0:A.iconType:W;return m.isToggled?G:W}};
_.w.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.e_.Object.defineProperties(iC.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var m={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$14942_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var G=m.renderer;var K=m.element;var W=m.toggled;var L=m.onTapCallback;var A=m.commandClientArgs;var O=m.overrides;var c=m.forceIcon;var u=m.forceModernIconButton;var h=m.forceDisabled;var J=m.useAnimatedText;var N=m.animatedTextProps;m=xXM(G,W);c=!G.defaultIcon||!c&&G.defaultText?G.defaultIcon?"leading":void 0:u?"icon-only":"icon-only-40";c==="icon-only-40"&&(m.type="text");var D;u=Object;var t=u.assign,a;a:switch((a=
G.style)==null?void 0:a.styleType){case "STYLE_COMPACT_GRAY":a={size:"S"};break a;default:a={size:"M"}}var v=!!W;var I=(I=W&&G.toggledText||G.defaultText)?_.A$(I):void 0;J?(J=_.bw(W&&G.toggledText||G.defaultText))&&N&&!isNaN(Number(N.numberValue))?(N.numberText=J,W&&(N.numberValue+=1),J=N):J=void 0:J=void 0;var Z,k,z,X;var f=(N=((k=W?G.toggledAccessibilityData||((f=G.toggledText)==null?void 0:f.accessibility):G.accessibilityData||((Z=G.defaultText)==null?void 0:Z.accessibility))==null?void 0:(z=k.accessibilityData)==
null?void 0:z.label)||((X=G.accessibility)==null?void 0:X.label))?N:_.bw(W&&G.toggledText||G.defaultText);h=h===void 0?G.isDisabled:h;K=fYP(G,W,L,K,A);W=efV(G,W);W!=null&&W.length?(W=_.rn({innertubeCommand:StG(W),forceNewState:!0}),W=uK(W)?W:void 0):W=void 0;G=t.call(u,{},m,a,{iconPosition:c},O,{focused:!1,toggled:v,toggleable:!0,formattedButtonText:I,animatedTextProps:J,accessibilityLabel:f,disabled:h,onTap:K,aTagConfig:W},ii6((D=G.colorData)==null?void 0:D.basicColorPaletteData));G.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(G.type="filled");return G}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var m=this.getInnertubeIcon();if(m)return _.ew(m)}}});
iC.prototype.resetAnimation=iC.prototype.resetAnimation;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],iC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],iC.prototype,"isPressed",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"forceIconButton",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"forceIconOnly",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"forceModernIconButton",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"alignByText",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"overrides",void 0);
_.x([_.V(),_.S("design:type",Boolean)],iC.prototype,"disabled",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"isShorts",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"buttonTooltipPosition",void 0);_.x([_.V(),_.S("design:type",Object)],iC.prototype,"animatedText",void 0);_.x([_.V(),_.S("design:type",String)],iC.prototype,"textNumberValue",void 0);_.x([_.V({computed:"computeTooltip(data, data.isToggled)"}),_.S("design:type",Object)],iC.prototype,"tooltip",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iC.prototype,"resetAnimation",null);_.x([_.E("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.S("design:type",Object),_.S("design:paramtypes",[])],iC.prototype,"computedButtonShape",null);_.x([_.E("data.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],iC.prototype,"computedIcon",null);
_.x([_.Ye({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],iC);pnS&&_.y(iC,"ytd-toggle-button-renderer",hc4,{mode:2});var Nek=_.P(function(m){function G(h){var J;return _.Y(function(N){if(N.nextAddress==1)return(J=!S_J(h,c())||!c().enabled)?N.jumpTo(2):N.yield(B79(),3);N.nextAddress!=2&&(J=N.yieldResult);if(J)return N.return();K();setTimeout(function(){O(!1)},1500);
_.ey(N)})}
function K(){setTimeout(function(){O(!0);var h;(h=W.lottieEl)==null||h.goToAndPlay(0)},150)}
var W=_.e5(),L=_.g(_.g_(!1,void 0,"UfUosc")),A=L.next().value,O=L.next().value,c=_.sQ(m.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.bX(function(){var h,J;((h=m.settings)==null?void 0:(J=h.call(m))==null?void 0:J.uniqueId)==="this is not intended behavior"&&_.nc(new _.cw("Smartimation Settings is undefined"))});
_.$O(function(){c().experimentEnabled&&(c().enabled?RfM(G):(O(!1),UXJ(G)),_.sZ(function(){UXJ(G)}))},"IHhVmc");
_.$O(function(){c().timings.join("");c().experimentEnabled&&(zfV(c()),_.sZ(function(){lYP(c())}))},"fsfhOe");
var u=_.pT(function(){var h=W,J=c().uniqueId+"-border",N,D;var t="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((D=(N=_.xS().resolve(_.fn(_.l_)))==null?void 0:N())!=null&&D?"dark":"light")+"_v2.json";return{animationRef:h,animationConfig:{name:J,autoplay:!1,loop:!1,path:t}}},void 0,"UWvUGe");
L={};return _.r("yt-smartimation",{class:_.VO(m.className,"smartimation",(L["smartimation--experiment-enabled"]=function(){return c().experimentEnabled},L["smartimation--active-border"]=A,L["smartimation--enable-masking"]=McM(),L))},_.r(_.p,{cond:function(){return c().experimentEnabled},
then:function(){return _.r("div",{class:"smartimation__border"},_.r(_.yr,{className:"smartimation__border-gradient",data:u,animationName:function(){return u().animationConfig.name}}))}}),_.r("div",{class:"smartimation__content"},m.children))},"ja");
Nek.idomCompat=!0;_.sh(Nek,"yt-smartimation",{props:{className:_.Dd,settings:_.Dd}});var Gl=function(){var m=_.d.apply(this,arguments)||this;m.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};m.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};m.shouldEnableSmartimation=!1;return m};
_.n(Gl,_.d);Gl.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Gl.prototype.onDataChanged=function(){var m,G;this.shouldEnableSmartimation=(((m=this.data)==null?void 0:(G=m.timedAnimationData)==null?void 0:G.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
Gl.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var m=_.Q(this.data.likeButton,_.h6),G=_.Q(this.data.dislikeButton,_.h6);return!!((m==null?0:m.isToggled)||(G==null?0:G.isToggled))};
Gl.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]]"}}}}}};
_.e_.Object.defineProperties(Gl.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var m,G,K=((m=this.data)==null?void 0:(G=m.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"like-dislike",timings:K,enabled:this.shouldEnableSmartimation,experimentEnabled:K.length>0}}}});
Gl.prototype.onDataChanged=Gl.prototype.onDataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Gl.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Gl.prototype,"likeButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],Gl.prototype,"dislikeButtonOverride",void 0);
_.x([_.E("shouldEnableSmartimation"),_.S("design:type",Object),_.S("design:paramtypes",[])],Gl.prototype,"smartimationSettings",null);_.x([_.Sb("data"),_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gl.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],Gl);
_.y(Gl,"ytd-segmented-like-dislike-button-renderer",function(){if(rBK!==void 0)return rBK;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return rBK=m},{mode:1});var D0K;var t3F;(t3F=document.body)==null||t3F.setAttribute("rounded-container","");var F22={};F22.YtToggleButtonBehavior=[_.Pq.YtActionHandlerBehavior,RE.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 m=this.data.isToggled;if(!this.isModal_(m)){if(!this.data.preventAutoToggle){this.toggle();var G={toggled:this.data.isToggled,actions:{}};G.actions[this.buttonIcon]=this.data.isToggled;_.Zw(this.hostElement,"yt-toggle-button",G)}G=this.data.defaultServiceEndpoint||null;var K=this.data.toggledServiceEndpoint||null;if(G&&K||G&&this.data.preventAutoToggle)m=m?K:G,G=this.disableCommandHandlerOverride,_.F("killswitch_toggle_button_behavior_resolve_command")||G?_.yQ(this.hostElement,
[m]):_.Xj(m,this.hostElement),_.Zw(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:m})}},
stateChanged_:function(){var m=this.data;if(m){var G=m.isToggled;this._setEndpoint(this.computeEndpoint_(m));this._setServiceEndpoint(this.computeServiceEndpoint_(m));this._setButtonIcon(this.computeButtonIcon_(m,G));this._setButtonText(this.computeButtonText_(m,G));this._setButtonAccessibility(this.computeAccessibility_(m,G));this._setButtonTooltip(this.computeTooltip_(m,G));this._setButtonClass(this.computeButtonClass_(m,G));this._setIconPositionType(this.computeIconPositionType_(m));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=G):this.elements_.button.setAttribute("aria-pressed",G));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=G)}},
shouldSetIconActiveState_:function(){return _.F("kevlar_system_icons")},
toggle:function(m){this.set("data.isToggled",m!==void 0?m:!this.data.isToggled);_.F("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(m){if(m){var G,K;return!!((G=this.data)==null?0:(K=G.toggledServiceEndpoint)==null?0:K.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(m){return m&&m.defaultNavigationEndpoint||null},
computeButtonIcon_:function(m,G){var K=m&&m.defaultIcon?_.ew(m.defaultIcon.iconType):null;m=m&&m.toggledIcon?_.ew(m.toggledIcon.iconType):K;return G?m:K},
handleUpdateToggleButtonStateCommand_:function(m){m=m.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==m.buttonId&&this.toggle(m.toggled)},
computeButtonText_:function(m,G){return m?G&&m.toggledText||m.defaultText||null:null},
computeAccessibility_:function(m,G){return m?(G?this.get("toggledAccessibilityData.accessibilityData",m):this.get("accessibilityData.accessibilityData",m))||m.accessibility||null:null},
computeTooltip_:function(m,G){return m?G&&m.toggledTooltip||m.defaultTooltip||null:null},
computeButtonClass_:function(m,G){if(!m)return"";var K="",W=m.toggledStyle||m.style;if(G=G?W:m.style){G.styleType&&(G=G.styleType);try{K+=G.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.bO(L,G,typeof G),_.nc(L)}}if(m=m.size){m.sizeType&&(m=m.sizeType);try{K+=m.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.bO(L,m,typeof m),_.nc(L)}}return K.trim()},
computeIconPositionType_:function(m){return m&&m.iconPosition||null},
computeServiceEndpoint_:function(m){var G=m&&m.serviceEndpoint,K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return G?G:K&&m.command?m.command:null},
handleUpdateToggleButtonTextAction_:function(m){m=m.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==m.buttonId&&(this.set("data.defaultText",m.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",m.toggledText),this.notifyPath("data.toggledText"))}}];_.Kz("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var QA0=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live"),Kk=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.roundedContainer=!0;return m};
_.n(Kk,_.d);Kk.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
Kk.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var m=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var G={toggled:!!this.data.isToggled,actions:{}};G.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var K,W;G.actions.playlistId=(K=this.data.defaultServiceEndpoint)==null?void 0:(W=K.playlistEditEndpoint)==null?void 0:W.playlistId;_.Zw(this.hostElement,"yt-toggle-button",G)}(m=m?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(m)}};
Kk.prototype.onYtNavigate=function(m){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(m.detail.endpoint);G&&(m.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(G))};
_.e_.Object.defineProperties(Kk,{template:{configurable:!0,enumerable:!0,get:function(){if(D0K===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);D0K=m}m=D0K;return m}}});
Kk.prototype.onYtNavigate=Kk.prototype.onYtNavigate;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Kk.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],Kk.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(F22.YtToggleButtonBehavior),_.S("design:type",Object)],Kk.prototype,"ytToggleButtonBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Kk.prototype,"data",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],Kk.prototype,"showTooltips",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Kk.prototype,"systemIcons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Kk.prototype,"roundedContainer",void 0);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Kk.prototype,"onYtNavigate",null);
_.x([_.Ye({is:"ytd-toggle-button-renderer",disableElementRegistration:QA0})],Kk);var aiB,od2;_.Wx=new _.sX("PANEL_CONTROLLER_TOKEN");_.Lk=new _.sX("SHEET_CONTROLLER_TOKEN");_.Ar=new _.sX("DIALOG_CONTROLLER_TOKEN");aiB=new _.sX("DIALOG_CONTAINER_TOKEN");od2=new _.sX("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.w0=new _.sX("PERSISTENT_PANEL_CONTROLLER_TOKEN");var wKf=_.zq("DOWNLOAD",{},"Download"),gcs=_.zq("DOWNLOADING",{},"Downloading"),OIf=_.zq("DOWNLOADED",{},"Downloaded"),cFJ=_.zq("RETRY",{},"Retry");var ndB=_.P(function(m){var G=pKd,K=function(){return""},W=YIF(m.data),L=rFs(m.data),A=u89(m.data),O=hKd(m.data);
G=function(){var c=m.data(),u=L0V(c,W(),L(),A(),O()),h=!!c.videoId,J=u.text;return{title:h?J:void 0,tooltip:h?void 0:J,accessibilityText:J,onTap:u.onTap,iconName:u.iconType,style:c.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:u.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:c.buttonSize}};
K={};K=_.VO("ytDownloadButtonViewModelHost",(K.ytDownloadButtonViewModelIsHidden=function(){var c=m.data(),u=O();return c.playlistId||u()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||u()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},K));
return _.r("download-button-view-model",{class:K},_.r(_.kP,{data:G}))},"ka");
ndB.idomCompat=!0;var ncf=new _.sX("SUBMIT_API_SERVICE_TOKEN");var Q6v,aZ6,bIo={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var xZf=new _.sX("RENDERER_LOGGER_TOKEN");var PR9=new _.sX("RENDERER_STAMPER_OPTIONS_TOKEN");var $ZG;_.UT=new Lzd;$ZG=new Map;var yFJ="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),fZ9=["notificationTextRenderer","notificationMultiActionRenderer"],
eKG="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),dZF=s6G(function(m){return _.EZ(m==null?void 0:m.targetId)}).useUpdatableData;var ZIJ=0,CRV=new Set;_.z$.debugName="EjJbCe";var bFX=_.P(function(m){var G=m.data;m=m.className;_.nn(function(){G().formId||_.am(Error("Eh"))});
var K=_.F0G(function(){return G().formId},function(){return G().beforeSubmitCommand},function(){return G().afterSubmitCommand}),W=K.submitForm,L=K.isValid,A=K.isSubmitting,O=function(){return{state:G().isDisabled||!L()||A()?"disabled":"active"}};
return _.r("yt-submit-button-view-model",{class:_.VO("ytSubmitButtonViewModelHost",m)},_.r(_.z$,{data:function(){return G().button}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
buttonOverrides:O,onClick:W})}}))},"na");var $04=_.P(function(m){var G=m.backgroundLottieRef;var K=m.foregroundLottieRef;var W=m.children;var L=m.wrapperClass;var A=m.disableAnimation;m=function(){return(_.F("web_animated_actions")||_.F("web_animated_actions_v2"))&&!(A==null?0:A())};
return _.r("yt-animated-action",{class:_.VO("ytAnimatedActionHost",L)},_.r("div",{class:"ytAnimatedActionContentWithBackground"},_.r(_.p,{cond:m,then:function(){return _.r(vd4,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(XKG()?"dark":"light")+"_v5.json"}}}})}}),W),_.r(_.p,{cond:m,
then:function(){return _.r(vd4,{lottiePlayerProps:function(){return{animationRef:K==null?void 0:K(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(XKG()?"dark":"light")+"_v4.json"}}}})}}))},"oa");
$04.idomCompat=!0;var vd4=_.P(function(m){var G=m.wrapperClass;var K=m.lottieClass;var W=m.lottiePlayerProps;return _.r("div",{class:_.VO("ytAnimatedActionLottie",G),"aria-hidden":"true"},_.r(_.yr,{className:K,data:W,animationName:function(){return W().animationConfig.name}}))},"pa");var SIJ={isOpen:!1};var UZM={isAllowed:!1};var lZV={errorMessage:"",title:"",privacy:"",isDisabled:!0};var M99={isOpen:!1};var m0G={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var sAP={response:void 0};var GKs=function(m,G){m=m===void 0?sAP:m;switch(G.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},m,{response:G.payload});default:return m}};var qzR={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var K2o=function(m,G){m=m===void 0?qzR:m;switch(G.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},m,{nextDisabled:G.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},m,{nextCommand:G.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},m,{footerSubmissionData:G.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},m,{isImpersonationValid:G.payload});default:return m}};var Edi={reportFormData:void 0,reportDetailsFormData:void 0};var W2d=function(m,G){m=m===void 0?Edi:m;switch(G.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},m,{reportFormData:G.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},m,{reportDetailsFormData:G.payload});default:return m}};var HF2=void 0;_.F("mweb_enable_redux_store_on_demand")||(HF2=new vU(L2G()));var g0=_.F("enable_web_delhi_icons");var Ii4=_.P(function(m){m=_.ql(m,{themeOverride:void 0,animationRef:{}});var G=m.animatedIconType,K=m.active,W=m.themeOverride,L=m.animationRef;m=m.staticIconFn;var A=_.g(_.g_(void 0,void 0,"l48agc")),O=A.next().value,c=A.next().value,u=function(){a:{var I=G();var Z=W==null?void 0:W();var k;Z=(Z==null?void 0:Z.useDarkTheme)||((k=_.xS().resolve(_.fn(_.l_)))==null?void 0:k());switch(I){case "LIKE":HF2||(HF2=new vU(L2G()));I=(I=Itd(HF2.getState()))&&I.animationLightUrl&&I.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:Z?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:Z?I.animationDarkUrl:I.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(I){Z=I;break a}Z="animated_like_icon_"+(Z?"dark":"light")+"_"+(g0?"v5":"v4");Z={lottiePlayerProps:{animationConfig:{name:Z,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+Z+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(g0?" animated-like-icon-delhi":"")}}},totalFrames:g0?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":Z={lottiePlayerProps:{animationConfig:{name:Z?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(Z?"dark":"light")+(g0?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(g0?" animated-subscribe-icon-delhi":"")}}},totalFrames:g0?120:79,lazyLoad:!1};break a}Z=
void 0}return Z},h=function(){var I,Z;
return(Z=(I=u())==null?void 0:I.lottiePlayerProps.animationConfig.name)!=null?Z:""},J=function(){if(u()){var I=u().lottiePlayerProps.animationConfig.path;
return My.get(I)||O()}};
A=_.g(_.g_(!1,void 0,"sDrGId"));var N=A.next().value;A=A.next().value;var D=wnG(A),t=function(){var I=u(),Z,k,z;return(z=I==null?void 0:(Z=I.lottiePlayerProps.animationConfig)==null?void 0:(k=Z.rendererSettings)==null?void 0:k.className)!=null?z:""},a=void 0,v=void 0;
_.$O(function(){var I=u(),Z=h(),k=J(),z=N(),X=K();if(I&&(v!==Z&&(v=Z,a=X,Z=L(),D.animationConfig=I.lottiePlayerProps.animationConfig,D.animationRef=Z,k&&(D.animationConfig.animationData=k,D.animationConfig.path=void 0),Z=I.lottiePlayerProps.animationConfig.path,!My.get(Z)&&I.lazyLoad&&Z&&AB9(Z,c)),!(z||I.lazyLoad&&!k))){if(k=!L().lottieEl)X?(z=I.totalFrames,D.animationConfig.initialSegment=[z-1,z]):D.animationConfig.initialSegment=void 0;if(a!==X&&!k)if(k=L(),X){var f;(f=k.lottieEl)==null||f.playSegments([0,
I.totalFrames],!0)}else{var U;(U=k.lottieEl)==null||U.playSegments([0,1],!0)}a=X}},"RQVZ1d");
return _.r("animated-icon",{class:"ytAnimatedIconHost"},_.r(_.p,{cond:function(){var I,Z;return!((I=u())==null||!I.lottiePlayerProps.animationConfig.path||((Z=u())==null?0:Z.lazyLoad)&&!J()||N())},
then:function(){return _.r(_.yr,{data:D,animationName:h,className:t,animationRef:L})},
else:m}))},"ra");_.Ox=_.P(function(m){var G=_.Q3("yt-subscribe-button-view-model"),K=_.Q3("div"),W=_.Q3("div"),L=_.e5(),A=_.e5(),O=_.e5(),c=_.S5(Yzd,function(){return m.data().stateEntityStoreKey}),u=_.S5(rBd,function(){var So,ti;
return(ti=(So=m.data().notificationStateEntityStoreKeys)==null?void 0:So.subsNotificationStateKey)!=null?ti:""}),h=function(){return!m.data().enableSubscribeButtonPostClickAnimation},J=_.g(_.g_(0,void 0,"YtsSKb")),N=J.next().value,D=J.next().value;
J=_.g(_.g_(0,void 0,"V6JxRe"));var t=J.next().value,a=J.next().value;J=_.g(_.g_(!1,void 0,"JUCSZ"));var v=J.next().value,I=J.next().value;J=_.g(_.g_(!1,void 0,"oV6jwf"));var Z=J.next().value,k=J.next().value;J=_.g(_.g_(!1,void 0,"hK1Whe"));var z=J.next().value,X=J.next().value,f;J=_.g(_.g_(!1,void 0,"Asaolf"));var U=J.next().value,l=J.next().value,Ls=function(){k(!0);_.mn(_.Fu,function(){k(!1)},1500)};
_.$O(function(){var So=Z();_.w_(function(){So&&!h()&&c()&&bFf(L,A,O)})},"Qq6Hsf");
_.$O(function(){var So=c();_.w_(function(){if(!h()&&So){var ti;((ti=m.animateWidth)==null?0:ti.call(m))&&ndG(G.value,!!So.subscribed,N(),t());var bS,NG;((bS=f)==null?0:bS.subscribed)||!So.subscribed||So.key!==((NG=f)==null?void 0:NG.key)||Ls();f=So}})},"hog8te");
J=_.pT(function(){var So,ti,bS,NG=m.data(),EO=!((So=c())==null||!So.subscribed);So=!((ti=m.isOverlay)==null||!ti.call(m));ti=v()?G:void 0;var gz=(bS=u())==null?void 0:bS.state;bS=U();odJ(NG,gz);return cBd({model:NG,subscribed:EO,isOverlay:So,element:ti,notificationState:gz,disableTextEllipsis:!0,focused:bS})},void 0,"hc1PRd");
var gd=function(){var So;if(!h()&&((So=m.animateWidth)==null?0:So.call(m))&&(K==null?0:K.value)&&(W==null?0:W.value)&&!z()){So=c();var ti=_.g((So==null?0:So.subscribed)?[K,W]:[W,K]),bS=ti.next().value;ti=ti.next().value;bS=Math.ceil(bS.value.getBoundingClientRect().width);ti=Math.ceil(ti.value.getBoundingClientRect().width);D(bS);a(ti);ndG(G.value,!(So==null||!So.subscribed),bS,ti);X(!0)}},Qf=_.dn(function(So){gd();
var ti=c();ti&&(So.detail.endpoint.subscribeEndpoint||So.detail.endpoint.unsubscribeEndpoint)&&F2J(G.value,!ti.subscribed,ti)}),JV=function(){var So=_.xS().resolve(_.fn(_.sH));
So&&l(So.isKeyBoardInUse())},DF=function(){l(!1)};
_.Cc("yt-player-subscribe",function(So){var ti=c();ti&&So===m.data().channelId&&F2J(G.value,!0,ti)});
_.Cc("yt-player-unsubscribe",function(So){var ti=c();ti&&So===m.data().channelId&&F2J(G.value,!1,ti)});
_.Cc("yt-update-subscribe-button-action",function(So){So=_.Q(So,pFi);var ti=c();ti&&So&&So.channelId===m.data().channelId&&F2J(G.value,!!So.subscribed,ti)});
_.bX(function(){G.value&&(G.value.addEventListener("focusin",JV),G.value.addEventListener("focusout",DF));var So=_.rC(_.Fu,function(){gd()});
I(!0);_.sZ(function(){_.Fu.cancelJob(So);G.value&&(G.value.removeEventListener("focusin",JV),G.value.removeEventListener("focusout",DF))})});
var kG=function(){var So,ti,bS;if(bS=!((So=c())==null||!So.subscribed))So=!!m.data().disableNotificationBell,bS=(ti=u())==null?void 0:ti.state,bS=!So&&!!bS;return bS},eo=function(){var So;
return!((So=c())==null?0:So.subscribed)},xG=function(){var So,ti;
if(ti=eo()){ti=!!m.data().disableNotificationBell;var bS=(So=u())==null?void 0:So.state;ti=!ti&&!!bS}return ti},Ji={},rK={};
return _.r("yt-subscribe-button-view-model",{class:_.VO(m.className,"ytSubscribeButtonViewModelHost",(Ji.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var So,ti;return!((So=c())==null||!So.subscribed)&&((ti=m.animateWidth)==null?void 0:ti.call(m))&&Z()},Ji.ytSubscribeButtonViewModelHostHidden=function(){var So;
return!((So=c())==null?0:So.subscribed)&&m.data().hideWhenUnsubscribed},Ji)),
el:G,"on:yt-service-request-sent":Qf},_.r($04,{backgroundLottieRef:L,foregroundLottieRef:A,wrapperClass:_.VO("ytSubscribeButtonViewModelAnimatedActionWrapper",(rK.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var So;return((So=m.animateWidth)==null?void 0:So.call(m))&&Z()},rK.ytSubscribeButtonViewModelStaticWidth=function(){var So;
return!((So=m.animateWidth)==null?0:So.call(m))},rK)),
disableAnimation:h},_.r("div",{el:K,class:"ytSubscribeButtonViewModelContainer"},_.r(_.jd,{data:J,icon:function(){return _.r(_.p,{cond:kG,then:function(){var So=function(){var ti;return t3M((ti=u())==null?void 0:ti.state)};
return _.r(_.p,{cond:function(){return h()||So()!=="NOTIFICATIONS_NONE"},
then:function(){return _.r(_.fN,{icon:So})},
else:function(){return _.r(Ii4,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:O})}})}})},
secondaryIconName:function(){return kG()?"EXPAND":void 0}}))),_.r("div",{el:W,
class:"ytSubscribeButtonViewModelInvisible"},_.r(_.p,{cond:function(){var So;return((So=m.animateWidth)==null?void 0:So.call(m))&&!h()&&!z()},
then:function(){return _.r(_.jd,{data:_.pT(function(){var So;return cBd({model:m.data(),subscribed:eo(),isOverlay:!((So=m.isOverlay)==null||!So.call(m)),element:G,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var So;return xG()?t3M((So=u())==null?void 0:So.state):void 0},
secondaryIconName:function(){return xG()?"EXPAND":void 0}})}})))},"ua");
_.Ox.idomCompat=!0;var jAC=_.P(function(m){var G=m.data;var K=_.S5(Yzd,function(){return G().subscriptionStateEntityKey});
return _.r(_.p,{cond:function(){var W=G(),L=K();return!W.hideWhenUnsubscribed||(L==null?0:L.subscribed)?_.Q(G().button,_.J6):void 0},
then:function(W){return _.r("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.r(_.kP,{data:W,buttonOverrides:function(){return{toggled:!0}}}))}})},"va");
jAC.idomCompat=!0;var kKS,cx;kKS=_.P(function(m){return _.r(_.z$,{data:function(){return m.actionRow().actions}},{buttonViewModel:function(G){var K=G.data;
return _.r(cx,{isRow:m.isRow,isIconOnlyButton:function(){return vd9(K())},
useIntrinsicWidth:m.useIntrinsicWidth},_.r(_.kP,{data:K}))},
subscribeButtonViewModel:function(G){return _.r(cx,{isRow:m.isRow},_.r(_.Ox,{data:G.data,isOverlay:!1,animateWidth:function(){return!m.isRow()}}))},
downloadButtonViewModel:function(G){var K=G.data;return _.r(cx,{isRow:m.isRow,isIconOnlyButton:function(){return!!K().playlistId}},_.r(ndB,{data:K}))},
submitButtonViewModel:function(G){var K=G.data;return _.r(cx,{isRow:m.isRow,isIconOnlyButton:function(){var W=K();return vd9(_.Q(W==null?void 0:W.button,_.J6))}},_.r(bFX,{data:K}))},
toggleButtonViewModel:function(G){var K=G.data;return _.r(cx,{isRow:m.isRow,isIconOnlyButton:function(){var W=K();return vd9(_.Q(W.isToggled?W.toggledButtonViewModel:W.defaultButtonViewModel,_.J6))}},_.r(_.Gx,{data:K}))},
subscribePlusButtonViewModel:function(G){return _.r(cx,{isRow:m.isRow},_.r(jAC,{data:G.data}))}})},"wa");
cx=_.P(function(m){var G={};return _.r("div",{class:_.VO("ytFlexibleActionsViewModelAction",(G.ytFlexibleActionsViewModelActionRowAction=m.isRow,G.ytFlexibleActionsViewModelActionIntrinsicWidth=m.useIntrinsicWidth,G.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,G.ytFlexibleActionsViewModelActionIconOnlyButton=m.isIconOnlyButton,G))},m.children)},"xa");
_.Y8=_.P(function(m){var G=function(){var W;return((W=m.layout)==null?void 0:W.call(m))===1},K={};
return _.r("yt-flexible-actions-view-model",{class:_.VO("ytFlexibleActionsViewModelHost",m.className,(K.ytFlexibleActionsViewModelInline=function(){return!G()},K.ytFlexibleActionsViewModelScrollable=function(){return m.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},K))},_.r(_.D0,{each:function(){return m.data().actionsRows||[]}},function(W){return _.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"ytFlexibleActionsViewModelActionRow"},_.r(kKS,{actionRow:W,isRow:G,useIntrinsicWidth:function(){return!!m.data().respectActionIntrinsicWidth}}))},
else:function(){return _.r(kKS,{actionRow:W,isRow:G})}})}))},"ya");_.sh(_.Y8,"yt-flexible-actions-view-model",{props:{data:_.Dd,layout:_.Dd,justifyContentOverride:_.Dd,className:_.Dd}});_.r0=_.P(function(m){var G=_.S5(_.cp,function(){var L;return(L=m.data().dislikeEntityKey)!=null?L:""}),K=_.pT(function(){var L=G();
return L?L.likeStatus==="DISLIKE":_.Q(m.data().toggleButtonViewModel,_.Dj).isToggled},void 0,"fNr9he"),W=_.pT(function(){return Object.assign({},_.Q(m.data().toggleButtonViewModel,_.Dj),{isToggled:K()})},void 0,"AezoCc");
return _.r("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.r(_.Gx,{data:W,buttonShapeOverrides:m.buttonShapeOverrideables,onToggle:function(L){var A=G();A&&L!==(A.likeStatus==="DISLIKE")&&A.key&&_.$e(_.wS("likeStatusEntity",A.key,{likeStatus:L?"DISLIKE":"INDIFFERENT",hadUserInteraction:L}))}}))},"za");
_.r0.idomCompat=!0;_.uC=_.P(function(m){var G=_.F("web_supports_animations_api"),K=yy6(function(D){var t=h();if(!D){var a,v;return{numberText:(v=t==null?void 0:(a=t.likeCountIfIndifferent)==null?void 0:a.content)!=null?v:"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var I;a=(t==null?void 0:(I=t.likeCountIfIndifferent)==null?void 0:I.content)!==D.numberText;if(c()||!a)return D;var Z;return{numberText:(t==null?void 0:(Z=t.likeCountIfIndifferent)==null?void 0:Z.content)||
"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!t}}),W=yy6(function(D){var t=h();
if(!D){var a,v;return{numberText:(v=t==null?void 0:(a=t.likeCountIfLiked)==null?void 0:a.content)!=null?v:"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var I;a=(t==null?void 0:(I=t.likeCountIfIndifferent)==null?void 0:I.content)!==D.numberText;if(c()||!a)return D;var Z;return{numberText:(t==null?void 0:(Z=t.likeCountIfLiked)==null?void 0:Z.content)||"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!t}}),L=_.g(_.g_(void 0,
void 0,"xYSlUe")),A=L.next().value,O=L.next().value,c=A,u=_.S5(_.cp,function(){var D,t;
return(t=(D=m.data())==null?void 0:D.likeStatusEntityKey)!=null?t:""}),h=_.S5(p5d,function(){var D,t;
return((D=m.likeCountEntity)==null?void 0:(t=D.call(m))==null?void 0:t.key)||""}),J=_.pT(function(){var D;
return((D=u())==null?void 0:D.likeStatus)==="LIKE"},void 0,"DG5Osd"),N=function(){var D;
return G&&!((D=m.likeCountEntity)==null||!D.call(m))};
return _.r("like-button-view-model",{class:_.VO("ytLikeButtonViewModelHost",m.className)},_.r(_.Gx,{data:function(){var D=Object,t=D.assign,a;var v=_.Q((a=m.data())==null?void 0:a.toggleButtonViewModel,_.Dj);return t.call(D,{},v||{},{isToggled:J()})},
buttonShapeOverrides:m.buttonShapeOverrideables,animatedTextPropsDefault:function(){return N()?K():void 0},
animatedTextPropsToggled:function(){return N()?W():void 0},
onToggle:function(D){$09(D,u(),c(),O)},
style:function(){var D;return((D=m.disableIconAnimation)==null?0:D.call(m))?void 0:{animateIcon:"true"}}}))},"Aa");
_.uC.idomCompat=!0;var CV2=_.P(function(m){var G=function(){return _.Q(m.data().likeButtonViewModel,_.JA)},K=function(){var L;
return((L=G())==null?void 0:L.likeStatusEntityKey)||""},W=_.pT(function(){var L,A;
var O=(A=_.S5(_.cp,K)())!=null?A:(L=G())==null?void 0:L.likeStatusEntity;L=m.data();var c;L=(L==null?void 0:(c=L.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:L,enabled:(O==null?void 0:O.likeStatus)==="INDIFFERENT"&&L.length>0,experimentEnabled:L.length>0}},void 0,"zZ3GQb");
return _.r("segmented-like-dislike-button-view-model",{class:_.VO("ytSegmentedLikeDislikeButtonViewModelHost",m.className),"button-renderer":!0},_.r(Nek,{settings:W},_.r("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.r(_.p,{cond:G,then:function(L){return _.r(_.uC,{data:L,likeCountEntity:function(){return m.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.F("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.r(_.p,{cond:function(){return _.Q(m.data().dislikeButtonViewModel,_.NP)},
then:function(L){return _.r(_.r0,{data:L,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"Ba");
CV2.idomCompat=!0;_.sh(CV2,"segmented-like-dislike-button-view-model",{props:{data:_.Dd,className:_.Dd}});var V3X=_.P(function(m){var G=m.data;var K=m.className;var W=m.setMinWidth;var L=m.forceIconOnly;var A=_.Q3("account-link-button-view-model"),O=_.S5(_.sAF,function(){var D;return(D=G().accountLinkStatusEntityKey)!=null?D:""}),c=_.S5(_.sAF,function(){var D;
return(D=G().accountLinkStatusSecondaryEntityKey)!=null?D:""}),u=function(){if(!_.F("web_account_link_secondary_killswitch")){var D,t;
return((D=O())==null?void 0:D.linked)||((t=c())==null?void 0:t.linked)}var a;return(a=O())==null?void 0:a.linked};
_.$O(function(){var D=O();if(D){var t=fjR(new ePG,PuF(new dVC,!!D.linked));_.Pp().then(function(a){a&&(a.setAccountLinkState(_.Md(t.JSC$12632_serializeBinary(),4)),a.updateAccountLinkingConfig(!!D.linked))})}},"IvZF7");
var h=function(){return _.Q(G().toggleButtonViewModel,_.Dj)};
_.Cc("yt-signal-action-show-account-link-dialog",function(){if(h()){var D=u()?h().toggledButtonViewModel:h().defaultButtonViewModel;D=_.Q(D,_.J6);var t;if((t=O())==null?0:t.isWarning){t=_.Q(G().warningButtonViewModel,_.J6);if(!t){_.V3(Error("Fh"));return}D=t}var a;(t=_.c8((a=D)==null?void 0:a.onTap))&&_.XA([t],A.value)}else _.V3(Error("Gh"))});
var J=function(){var D=h();return Object.assign({},D,{isToggled:u()})},N=function(){return(L==null?0:L())?{iconPosition:"icon-only"}:{}};
return _.r("account-link-button-view-model",{class:_.VO("ytwAccountLinkButtonViewModelHost",K,function(){return(W==null?0:W())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:A,"button-renderer":!0},_.r("div",null,_.r(_.p,{cond:function(){var D;if((D=O())==null?0:D.isWarning)return(D=_.Q(G().warningButtonViewModel,_.J6))||_.V3(Error("Fh")),D},
then:function(D){return _.r(_.kP,{data:D,buttonOverrides:N})},
else:function(){return _.r(_.Gx,{data:J,buttonShapeOverrides:N})}})))},"Da");_.sh(V3X,"account-link-button-view-model",{props:{data:_.Dd,className:_.nN,setMinWidth:_.nN,forceIconOnly:_.nN}});_.Kz("menuRenderer","menuRenderer","ytd-menu-renderer");
var ZFl={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"}},
d04=_.F("web_fix_missing_action_buttons")?100:200,hr=function(){var m=_.d.apply(this,arguments)||this;m.safeArea=!_.F("kevlar_flex_menu_safe_area_killswitch");m.tonalOverride=!1;m.threeDotSize="M";m.isOverlay=!1;m.useOverlayDark=!1;m.topLevelIconsOnly=!1;m.JSC$15076_lastWidth=0;m.maybeUpdateFlexibleMenu=function(){_.F("web_fix_missing_action_buttons")?requestAnimationFrame(m.maybeUpdateFlexibleMenuImpl):m.maybeUpdateFlexibleMenuImpl()};
m.maybeUpdateFlexibleMenuImpl=function(){var G;if((G=m.data)!=null&&G.flexibleItems){m.maybeFlushDebouncer();G=m.hostElement.clientWidth;var K=G>m.JSC$15076_lastWidth,W,L=((W=m.topLevelButtonsContainer)==null?void 0:W.scrollHeight)||0,A;W=((A=m.flexibleItemButtonsContainer)==null?void 0:A.scrollHeight)||0;A=m.hostElement.scrollHeight>Math.max(L,W)+8;K?(m.resetFlexibleItems(),m.JSC$15076_lastWidth=m.hostElement.clientWidth,m.maybeUpdateFlexibleMenu()):A&&(m.shrinkFlexibleMenu(),m.JSC$15076_lastWidth=
G)}};
m.computeThreeDotButtonShape=function(){if(m.tonalOverride)return Object.assign({},{onTap:function(){m.onOverflowTap()},
iconPosition:"icon-only",style:m.isOverlay?m.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:m.threeDotSize,state:"active",accessibilityLabel:m.computeAccessibilityLabel(m.data)},m.threeDotButtonOverride)};
m.onOverflowTap=function(){var G,K,W,L,A,O,c,u,h,J,N;_.Y(function(D){switch(D.nextAddress){case 1:if((G=m.data)==null?0:G.fetchMenuCommand)return K=_.xS().resolve(_.S1),K.resolveCommand(m.data.fetchMenuCommand,{form:{element:m.hostElement}}),D.return();if(((W=m.data)==null?0:W.isDisabled)&&((L=m.data)==null?0:L.disabledCommand))return _.Xj(m.data.disabledCommand,m.hostElement),D.return();A=m.createMenuRendererVe();O={items:m.items};if((c=m.data)==null?0:c.menuPopupAccessibility)O.menuPopupAccessibility=
m.data.menuPopupAccessibility;if((u=m.data)==null?0:u.footer)O.footer=m.data.footer;h={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:O},veData:A}};J=_.xS().resolve(_.Lk);if(!_.F("ytd-menu-singleton-sheet-killswitch")){D.jumpTo(2);break}return D.yield(J.openSheet({openPopupActionCommand:h},m.hostElement),3);case 3:return D.return();case 2:return D.yield(J.isSheetOpen(),4);case 4:return(N=D.yieldResult)?D.yield(J.closeSheet(),0):D.yield(J.openSheet({openPopupActionCommand:h},m.hostElement),
0)}})};
return m};
_.n(hr,_.d);_.w=hr.prototype;_.w.updateButtonOverrides=function(){if(!_.F("menu_renderer_label_update_upkillswitch")){var m=_.VL(this.hostElement).querySelector("yt-button-view-model");m&&(m.buttonOverrides=this.buttonOverrides)}};
_.w.computeHasItems=function(){var m;return((m=this.topLevelButtonData)==null?void 0:m.length)||this.hasFlexibleItems};
_.w.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.w.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.eb(this.hostElement,{"--ytd-menu-renderer-button-color":_.OM(this.data.iconColor)}))};
_.w.onStamperFinished=function(){this.JSC$15076_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.w.setupFlexibleMenu=function(){var m=this,G;(G=this.data)!=null&&G.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.yO(this.maybeUpdateFlexibleMenu,d04,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){m.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))};
_.w.maybeFlushDebouncer=function(){if(_.F("web_replace_formatted_with_attributed_string")){var m;(m=this.topLevelButtons)==null||m.forEach(function(K){var W;(K=(W=K.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0])&&GJd(K)});
var G;(G=this.flexibleItemButtons)==null||G.forEach(function(K){var W;(K=(W=K.getElementsByTagName("yt-attributed-string"))==null?void 0:W[0])&&GJd(K)})}};
_.w.resetFlexibleItems=function(){var m;if((m=this.data)!=null&&m.flexibleItems){_.F("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var G;this.flexAsTopLevelButtons=(G=this.data.flexibleItems)==null?void 0:G.map(function(K){return _.Q(K,_.b5l).topLevelButton});
_.F("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.w.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.w.shrinkFlexibleMenu=function(){var m;(m=this.flexAsTopLevelButtons)!=null&&m.length&&(this.flexAsTopLevelButtons=[].concat(_.Bz(this.flexAsTopLevelButtons.slice(0,-1))))};
_.w.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:ZFl,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:ZFl,events:!0}}};
_.w.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.w.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.w.detached=function(){this.icon="MORE_VERT"};
_.w.computeTopLevelButtonData=function(m){if(!m)return[];var G;m=(G=m==null?void 0:m.topLevelButtons)!=null?G:[];return _.Y2.unsafeClone([].concat(_.Bz(m)))};
_.w.computeItems=function(m,G){if(!m)return[];var K=[];if(G){var W=(m.flexibleItems||[]).map(function(O){return _.Q(O,_.b5l)});
W=_.g(W);for(var L=W.next();!L.done;L=W.next())L=L.value,G.includes(L.topLevelButton)||(L=L.menuItem)&&K.push(L)}var A;m=(A=m==null?void 0:m.items)!=null?A:[];return[].concat(_.Bz(K),_.Bz(m))};
_.w.computeMenuActive=function(m,G){return m||G};
_.w.onPopupOpened=function(){this.overlayOpen=!0;_.Zw(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.w.onPopupClosed=function(){this.overlayOpen=!1;_.Zw(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.w.onPopupCanceled=function(){this.overlayOpen=!1;_.Zw(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.w.computeAccessibilityLabel=function(m){return this.get("accessibility.accessibilityData.label",m)};
_.w.isHidden=function(m,G){return this.tonalOverride||!m?!0:m.fetchMenuCommand||m.isDisabled&&m.disabledCommand?!1:!(G==null?0:G.length)};
_.w.isModernOverflowHidden=function(m,G){return this.tonalOverride&&m?m.fetchMenuCommand?!1:!(G==null?0:G.length):!0};
_.w.createMenuRendererVe=function(){var m=this.data.trackingParams,G=_.gU(),K=_.wU();return m&&G&&K?(m=_.m5(m),K=_.dq(7591),_.F("combine_ve_grafts")?_.yw(_.l1(),K,m):_.tW(G,m,K),K):null};
_.e_.Object.defineProperties(hr.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.flexAsTopLevelButtons)==null||!m.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
hr.prototype.onPopupCanceled=hr.prototype.onPopupCanceled;hr.prototype.onPopupClosed=hr.prototype.onPopupClosed;hr.prototype.onPopupOpened=hr.prototype.onPopupOpened;hr.prototype.tonalOverrideChanged=hr.prototype.tonalOverrideChanged;hr.prototype.resetFlexibleItems=hr.prototype.resetFlexibleItems;hr.prototype.setupFlexibleMenu=hr.prototype.setupFlexibleMenu;hr.prototype.iconButtonColorChanged=hr.prototype.iconButtonColorChanged;hr.prototype.updateButtonOverrides=hr.prototype.updateButtonOverrides;
_.x([_.q(_.vi),_.S("design:type",Object)],hr.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],hr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#button-shape"),_.S("design:type",HTMLElement)],hr.prototype,"buttonShape",void 0);_.x([_.UM("#button"),_.S("design:type",Object)],hr.prototype,"button",void 0);
_.x([_.V(),_.S("design:type",Object)],hr.prototype,"data",void 0);_.x([_.V({computed:"computeTopLevelButtonData(data)"}),_.S("design:type",Array)],hr.prototype,"topLevelButtonData",void 0);_.x([_.V(),_.S("design:type",Array)],hr.prototype,"flexAsTopLevelButtons",void 0);_.x([_.V({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.S("design:type",Array)],hr.prototype,"items",void 0);_.x([_.V({value:"MORE_VERT"}),_.S("design:type",String)],hr.prototype,"icon",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hr.prototype,"safeArea",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.S("design:type",Boolean)],hr.prototype,"menuActive",void 0);_.x([_.V(),_.S("design:type",Boolean)],hr.prototype,"menuFocused",void 0);_.x([_.V({value:"bottom"}),_.S("design:type",String)],hr.prototype,"buttonTooltipPosition",void 0);_.x([_.V(),_.S("design:type",Boolean)],hr.prototype,"overlayOpen",void 0);
_.x([_.V({value:!0}),_.S("design:type",Boolean)],hr.prototype,"forceIconButton",void 0);_.x([_.V(),_.S("design:type",Boolean)],hr.prototype,"styleActionButton",void 0);_.x([_.V(),_.S("design:type",Boolean)],hr.prototype,"disableTextTransformOnButtons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hr.prototype,"tonalOverride",void 0);_.x([_.V(),_.S("design:type",Object)],hr.prototype,"threeDotSize",void 0);
_.x([_.V(),_.S("design:type",Object)],hr.prototype,"threeDotButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],hr.prototype,"isOverlay",void 0);_.x([_.V(),_.S("design:type",Object)],hr.prototype,"useOverlayDark",void 0);_.x([_.V({computed:"computeButtonOverride(tonalOverride)"}),_.S("design:type",Object)],hr.prototype,"buttonOverride",void 0);_.x([_.V(),_.S("design:type",Boolean)],hr.prototype,"minimizePipBreakages",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],hr.prototype,"hasCustomIconColor",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("flexAsTopLevelButtons"),_.S("design:type",Object),_.S("design:paramtypes",[])],hr.prototype,"hasFlexibleItems",null);_.x([_.V({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.S("design:type",Boolean)],hr.prototype,"hasItems",void 0);_.x([_.V(),_.S("design:type",Object)],hr.prototype,"topLevelIconsOnly",void 0);
_.x([_.Sb("topLevelIconsOnly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"updateButtonOverrides",null);_.x([_.E("topLevelIconsOnly"),_.S("design:type",Object),_.S("design:paramtypes",[])],hr.prototype,"buttonOverrides",null);_.x([_.UM("#top-level-buttons-computed"),_.S("design:type",HTMLElement)],hr.prototype,"topLevelButtonsContainer",void 0);_.x([_.zh(".top-level-buttons > *"),_.S("design:type",Array)],hr.prototype,"topLevelButtons",void 0);
_.x([_.UM("#flexible-item-buttons"),_.S("design:type",HTMLElement)],hr.prototype,"flexibleItemButtonsContainer",void 0);_.x([_.zh("#flexible-item-buttons > *"),_.S("design:type",Array)],hr.prototype,"flexibleItemButtons",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"iconButtonColorChanged",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"setupFlexibleMenu",null);_.x([_.Mg("topLevelIconsOnly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"resetFlexibleItems",null);_.x([_.Sb("tonalOverride"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"tonalOverrideChanged",null);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"onPopupOpened",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"onPopupClosed",null);_.x([_.XC("yt-popup-canceled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hr.prototype,"onPopupCanceled",null);
_.y(hr,"ytd-menu-renderer",function(){if(K20===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);K20=m}m=K20;return m},{mode:2});var PVo;var yBX;_.pk=_.P(function(m){var G=m.data;var K=function(){if(G().icon)a:{var L={iconName:G().icon};for(var A=_.xS().resolve(_.fD),O=_.g([12,24]),c=O.next();!c.done;c=O.next()){var u=c.value;c=Object.assign({},L,{iconStyle:"youtube_fill",iconSize:u});u=Object.assign({},L,{iconStyle:"youtube_outline",iconSize:u});if(A.resolveIcon(c)){L=c;break a}if(A.resolveIcon(u)){L=u;break a}}L=void 0}else L=void 0;return L};
m={};var W={};return _.r("badge-shape",{class:_.VO("yt-badge-shape",function(){return kK6(G().type)},(m["yt-badge-shape--overlay"]=function(){return G().isOverlay},m["yt-badge-shape--ads-include-dot"]=function(){return G().adsIncludeDot},m["yt-badge-shape--thumbnail-badge"]=function(){a:switch(G().type){case 17:case 18:case 19:var L=!0;
break a;default:L=!1}return L},m["yt-badge-shape--status-badge"]=function(){a:switch(G().type){case 12:case 13:case 14:case 15:case 16:var L=!0;
break a;default:L=!1}return L},m["yt-badge-shape--no-text"]=function(){return!G().text},m["yt-badge-shape--modern"]=function(){return G().modern||_.F("web_modern_badge_shape")},m["yt-badge-shape--typography"]=function(){a:{var L=G();
if(L.shouldInheritTypography)switch(L.type){case 0:case 1:case 9:L=!0;break a;default:L=!1}else L=!1}return!L},m)),
style:_.eA({"background-color":function(){var L;return(L=G().customColors)==null?void 0:L.backgroundColor}}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},_.r(_.p,{cond:function(){return G().animation},
then:function(L){return _.r(_.yr,{className:"yt-badge-shape__icon",data:L,animationName:function(){return L().animationConfig.name||""}})}}),_.r(_.p,{cond:function(){var L;
return K()&&!((L=G())==null?0:L.animation)},
then:function(){return _.r("div",{class:"yt-badge-shape__icon"},_.r(_.Tk,{data:function(){return K()}}))}}),_.r("div",{class:_.VO("yt-badge-shape__text",(W["yt-badge-shape__text--clip-text-overflow"]=function(){return G().clipTextOverflow},W["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(G().numBadgesInRow||0)>1},W))},function(){var L;
return(L=G())==null?void 0:L.text}))},"Ea");
_.pk.idomCompat=!0;_.sh(_.pk,"badge-shape",{props:{data:_.Dd}});var Jr=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.animated=_.F("animated_live_badge_icon");m.useBadgeShape=_.F("web_badge_shape_defrag");return m};
_.n(Jr,_.d);_.w=Jr.prototype;_.w.addTooltips=function(){for(var m=_.VL(this.hostElement).querySelectorAll(".badge"),G=0,K;K=m[G++];){var W=this.repeatElement.itemForElement(K);K=_.VL(K);K.lastChild&&K.lastChild.is==="tp-yt-paper-tooltip"&&K.removeChild(K.lastChild);if(W=W.metadataBadgeRenderer&&W.metadataBadgeRenderer.tooltip){var L=_.na("tp-yt-paper-tooltip");(0,_.yL)(L).textContent=W;L.setAttribute("position","top");L.setAttribute("aria-hidden","true");K.appendChild(L)}}};
_.w.badgesChanged=function(){var m=this;_.tf().parkOrScheduleJob(function(){m.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.w.standaloneRoundedBadgeChanged=function(){var m=this.useRoundedBadge?this.useRoundedBadge:void 0;m&&(this.useRoundedBadge=m)};
_.w.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.w.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.w.computeStyle=function(m){_.F("kevlar_ytb_live_badges")&&m==="BADGE_STYLE_TYPE_LIVE_NOW"&&(m="badge-style-type-live-now-alternate");return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeRole=function(m){return this.computeAriaLabel(m)?"img":"status"};
_.w.computeAriaLabel=function(m){var G;return(m==null?void 0:(G=m.accessibilityData)==null?void 0:G.label)||(m==null?void 0:m.label)};
_.w.computeBadgeShape=function(m){if(m){var G,K;var W=Ii9(m.style);var L=jAv(m.style),A=m.label,O=((G=m.accessibilityData)==null?void 0:G.label)||m.label;a:switch(m.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":G=!0;break a;default:G=!1}var c=(K=m.icon)==null?void 0:K.iconType;a:switch(m.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":m=!0;break a;default:m=!1}W={type:W,brNzRatingBadgeType:L,text:A,accessibilityText:O,
isOverlay:G,icon:c!=="PREMIUM"?c:void 0,modern:_.F("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:m}}else W={};return W};
_.w.updateComputedBadges=function(m,G,K){var W=this;(G=G?[G]:K?[K]:void 0)?this.computedBadges=G:this.computedBadges=m==null?void 0:m.filter(function(L){var A;if((A=L.metadataBadgeRenderer)==null?0:A.groups){A=!1;L=_.g(L.metadataBadgeRenderer.groups);for(var O=L.next();!O.done;O=L.next()){O=O.value;var c=void 0;A=A||((c=W.hiddenBadgeGroups)==null?void 0:c.includes(O))}return!A}return!0})};
_.w.useFilledIcons=function(m){return _.F("kevlar_system_icons")&&(m==="AUDIO_BADGE"||m==="CHECK_CIRCLE_THICK"||m==="OFFICIAL_ARTIST_BADGE"||m==="SPONSORSHIP_STAR"||m==="PERSON_RADAR_FILLED"||m==="PERSON_RADAR")};
_.w.computeBadgeShapeStyle=function(m){return this.useBadgeShape?m==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||m==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":m==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.w.computeIcon=function(m){var G,K;m=m==null?void 0:(G=m.metadataBadgeRenderer)==null?void 0:(K=G.icon)==null?void 0:K.iconType;if(m!=="PREMIUM"&&m)return _.ew(m)};
_.w.computeStandaloneBadge=function(m){var G;m=m==null?void 0:(G=m.icon)==null?void 0:G.iconType;return m==="PREMIUM_STANDALONE"||m==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Jr.prototype.hiddenBadgeGroupsChanged=Jr.prototype.hiddenBadgeGroupsChanged;Jr.prototype.standaloneBadgeChanged=Jr.prototype.standaloneBadgeChanged;Jr.prototype.standaloneRoundedBadgeChanged=Jr.prototype.standaloneRoundedBadgeChanged;Jr.prototype.badgesChanged=Jr.prototype.badgesChanged;_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"hidden",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Jr.prototype,"componentBehavior",void 0);
_.x([_.V(),_.S("design:type",Array)],Jr.prototype,"badges",void 0);_.x([_.V(),_.S("design:type",Object)],Jr.prototype,"topStandaloneBadge",void 0);_.x([_.V(),_.S("design:type",Object)],Jr.prototype,"bottomStandaloneBadge",void 0);_.x([_.V(),_.S("design:type",Object)],Jr.prototype,"computedBadges",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"mediumFontAdBadge",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"useRoundedBadge",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"largeFontAdBadge",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"overlayAd",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"overlayPremium",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"noDotAdBadge",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"collectionTruncate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"isThumbnailBadge",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Jr.prototype,"wrapBadges",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],Jr.prototype,"numBadgesInRow",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Jr.prototype,"systemIcons",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Jr.prototype,"animated",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Jr.prototype,"useBadgeShape",void 0);_.x([_.V({value:[]}),_.S("design:type",Array)],Jr.prototype,"hiddenBadgeGroups",void 0);_.x([_.UM("#repeat"),_.S("design:type",A9)],Jr.prototype,"repeatElement",void 0);_.x([_.Mg("badges"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jr.prototype,"badgesChanged",null);
_.x([_.Mg("useRoundedBadge"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jr.prototype,"standaloneRoundedBadgeChanged",null);_.x([_.Mg("topStandaloneBadge","bottomStandaloneBadge"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jr.prototype,"standaloneBadgeChanged",null);_.x([_.Mg("hiddenBadgeGroups"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jr.prototype,"hiddenBadgeGroupsChanged",null);
_.x([_.Ye({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Jr);
var ecX=_.Vz()(Jr,"ytd-badge-supported-renderer",function(){if(yBX===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);yBX=m}m=yBX;return m},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:2});var NU=function(){var m=_.d.apply(this,arguments)||this;m.iconType="STAR";m.plaMedium=_.F("enable_pla_resizing_for_desktop_medium");m.plaLarge=_.F("enable_pla_resizing_for_desktop_large");m.plaExtraLarge=_.F("enable_pla_resizing_for_desktop_extra_large");m.standardizeIconSize=_.F("kevlar_system_icons");m.mediaHoverOverlayInitialVisibility=_.F("enable_top_landscape_image_button_command_web");m.noBottomMargin=!1;m.thumbnailObjectFit="CONTAIN";m.thumbnailFitHeight=!0;m.actionMap={"yt-mute-ad-action":"handleMuteAd"};
return m};
_.n(NU,_.d);_.w=NU.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.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"}}}};
_.w.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",NU.JSC$15089_DEFAULT_CLICK_LOCATION_BEHAVIOR,NU.JSC$15089_CLICK_LOCATION_ID_MAP))};
_.w.onTap=function(m){this.onTapOrClick(m)};
_.w.onTapOrClick=function(m){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,m,!1)};
_.w.updateMediaBackgroundImage=function(){var m=this.get("data.image.thumbnail.thumbnails");m&&(m=_.qy(m,0))&&_.eb(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+m+")"})};
_.w.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var m=0;m<this.data.impressionEndpoints.length;m++){var G=this.data.impressionEndpoints[m];G.clickTrackingParams&&delete G.clickTrackingParams;_.xS().resolve(_.S1).resolveCommand(G,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var K;((K=this.data)==null?0:K.activeView)&&V$(this.activeView,this.data.activeView)}};
_.w.handleMuteAd=function(){};
_.w.attached=function(){var m=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.detached=function(){_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
_.e_.Object.defineProperties(NU.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.titleText)return"";var G;return _.zq("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((G=this.data)==null?void 0:G.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.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 m;return!((m=this.data)==null||!m.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"}}});
NU.prototype.onTap=NU.prototype.onTap;NU.prototype.dataChanged=NU.prototype.dataChanged;
NU.JSC$15089_CLICK_LOCATION_ID_MAP=_.F("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"]]);
NU.JSC$15089_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.F("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"}];_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Yj),_.S("design:type",Object)],NU.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],NU.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],NU.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.q([_.Pq.YtActionHandlerBehavior]),_.S("design:type",Object)],NU.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],NU.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],NU.prototype,"clickCommand",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],NU.prototype,"miniMode",void 0);_.x([_.V(),_.S("design:type",String)],NU.prototype,"iconType",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"plaMedium",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"plaLarge",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"plaExtraLarge",void 0);_.x([_.E("data.titleText"),_.S("design:type",String),_.S("design:paramtypes",[])],NU.prototype,"titleAriaLabel",null);_.x([_.E("data.rating"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"getRating",null);_.x([_.E("data.price"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"getPrice",null);
_.x([_.E("data.thirdLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"getThirdLine",null);_.x([_.E("data.fourthLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"getFourthLine",null);_.x([_.E("data.fifthLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"getFifthLine",null);_.x([_.E("getRating"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computeRatingHidden",null);
_.x([_.E("getPrice"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computePriceHidden",null);_.x([_.E("getThirdLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computeThirdLineHidden",null);_.x([_.E("getFourthLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computeFourthLineHidden",null);_.x([_.E("getFifthLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computeFifthLineHidden",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.energyIcon"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"hasEnergyIcon",null);_.x([_.E("computePriceHidden","computeRatingHidden"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"computeSecondaryTextHidden",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"standardizeIconSize",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NU.prototype,"noBottomMargin",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.layout"),_.S("design:type",String),_.S("design:paramtypes",[])],NU.prototype,"layout",null);_.x([_.E("data.layout"),_.S("design:type",Object),_.S("design:paramtypes",[])],NU.prototype,"mediaThumbnailWidth",null);
_.x([_.E("layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NU.prototype,"useRoundedBadge",null);_.x([_.V(),_.S("design:type",String)],NU.prototype,"thumbnailObjectFit",void 0);_.x([_.V(),_.S("design:type",Object)],NU.prototype,"thumbnailFitHeight",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NU.prototype,"dataChanged",null);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NU.prototype,"onTap",null);_.x([_.Ye({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],NU);
_.y(NU,"ytd-display-ad-renderer",function(){if(PVo!==void 0)return PVo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PVo=m},{mode:1});var fiS;var x0F;var XnF;var CVJ=new Map;var SzB=!1;var DT=function(){var m=_.d.apply(this,arguments)||this;m.DEFAULT_TOOLTIP_OFFSET="10";m.TOOLTIP_OFFSET_NO_BANNER="-8";m.badges=null;m.noEndpoints=!1;m.wrapText=!1;m.forceVerified=!1;m.tooltipPosition="top";m.compactStyle=!1;m.height=0;m.lineHeight=0;return m};
_.n(DT,_.d);_.w=DT.prototype;_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.w.attached=function(){var m=this;this.observer=new MutationObserver(function(G,K){m.handleResized();K.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.w.detached=function(){this.observer&&this.observer.disconnect()};
_.w.logTooltipEvent=function(){_.F("kevlar_wiz_tooltip_event_killswitch")||SzB||(_.V3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),SzB=!0)};
_.w.handleWindowResized=function(){this.handleResized()};
_.w.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")))};
_.w.onHeightChanged=function(){if(this.verified){var m=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.E8("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=m:this.textContainerEl.style.marginRight=m}};
_.w.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")};
_.w.handleResized=function(){var m=this;this.verified&&_.Fu.addLowPriorityJob(function(){m.fitBackgroundToText();var G=getComputedStyle(m.hostElement).lineHeight;G&&(G=G.match(/\d+/))&&G.length&&(m.lineHeight=Number(G[0]));m.height=m.lineHeight&&!m.wrapText?m.lineHeight:m.textEl.offsetHeight})};
_.w.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var m=document.createRange(),G=_.VL(this.textEl).children;G.length>0?m.selectNodeContents(G[0]):m.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(m.getBoundingClientRect().width)+"px"}};
_.w.computeChannelBadgeStyle=function(m){var G;if((m==null?0:(G=m.runs)==null?0:G.length)&&m.runs[0].textColor)return"--ytd-badge-icon-color:"+_.OM(m.runs[0].textColor)+";"};
_.e_.Object.defineProperties(DT.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"?_.nG(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var m=this.get("badges.0.metadataBadgeRenderer.tooltip");if(m)return m}return _.bw(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
DT.prototype.onLineHeightChanged=DT.prototype.onLineHeightChanged;DT.prototype.onHeightChanged=DT.prototype.onHeightChanged;DT.prototype.onChannelNameChanged=DT.prototype.onChannelNameChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],DT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"badges",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"channelName",void 0);
_.x([_.V(),_.S("design:type",Object)],DT.prototype,"noEndpoints",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"wrapText",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"forceVerified",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"tooltipPosition",void 0);_.x([_.V(),_.S("design:type",String)],DT.prototype,"tooltip",void 0);_.x([_.V(),_.S("design:type",Boolean)],DT.prototype,"hasChannelArt",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],DT.prototype,"compactStyle",void 0);_.x([_.UM("#text-container"),_.S("design:type",HTMLElement)],DT.prototype,"textContainerEl",void 0);_.x([_.UM("#text"),_.S("design:type",Object)],DT.prototype,"textEl",void 0);_.x([_.UM("#verified-tooltip"),_.S("design:type",HTMLElement)],DT.prototype,"verifiedTooltip",void 0);_.x([_.V(),_.S("design:type",Object)],DT.prototype,"height",void 0);
_.x([_.V(),_.S("design:type",Object)],DT.prototype,"lineHeight",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("badges","forceVerified"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],DT.prototype,"verified",null);_.x([_.E("badges","verified"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],DT.prototype,"hideBadges",null);_.x([_.E("channelName"),_.S("design:type",Object),_.S("design:paramtypes",[])],DT.prototype,"formattedName",null);
_.x([_.E("badges","verified","formattedName"),_.S("design:type",String),_.S("design:paramtypes",[])],DT.prototype,"tooltipText",null);_.x([_.E("hasChannelArt"),_.S("design:type",String),_.S("design:paramtypes",[])],DT.prototype,"tooltipOffset",null);_.x([_.Sb("channelName"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DT.prototype,"onChannelNameChanged",null);
_.x([_.Sb("height"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DT.prototype,"onHeightChanged",null);_.x([_.Sb("lineHeight","height"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DT.prototype,"onLineHeightChanged",null);_.x([_.Ye({is:"ytd-channel-name",disableElementRegistration:!0})],DT);
_.y(DT,"ytd-channel-name",function(){if(XnF!==void 0)return XnF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XnF=m},{mode:2});var tr=function(){var m=_.d.apply(this,arguments)||this;m.standardizeIconSize=_.F("kevlar_system_icons");return m};
_.n(tr,_.d);tr.prototype.basicPaletteChanged=function(){var m;(m=this.data.color)!=null&&m.basicColorPaletteData&&_.mr(this.hostElement,this.data.color.basicColorPaletteData)};
tr.prototype.useFilledIcons=function(m){return _.F("kevlar_system_icons")&&(m==="CHECK_CIRCLE_THICK"||m==="OFFICIAL_ARTIST_BADGE")};
_.e_.Object.defineProperties(tr.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return this.data.authorCreator||((m=this.data)==null?void 0:(G=m.color)==null?void 0:(K=G.basicColorPaletteData)==null?void 0:K.backgroundColor)}}});
tr.prototype.basicPaletteChanged=tr.prototype.basicPaletteChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tr.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tr.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],tr.prototype,"standardizeIconSize",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.authorUnifiedVerified"),_.S("design:type",Object),_.S("design:paramtypes",[])],tr.prototype,"verified",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],tr.prototype,"creator",null);_.x([_.Sb("data.color.basicColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tr.prototype,"basicPaletteChanged",null);_.x([_.Ye({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],tr);
_.y(tr,"ytd-author-comment-badge-renderer",function(){if(x0F!==void 0)return x0F;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return x0F=m},{mode:1});var Rci;var FB=function(){return _.d.apply(this,arguments)||this};
_.n(FB,_.d);FB.prototype.computeThumbnailWidth=function(m){if(m==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FB.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],FB.prototype,"icon",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],FB.prototype,"surface",void 0);
_.x([_.V({reflectToAttribute:!0,value:_.F("enable_shrink_image_size_on_web_posts_singleton")}),_.S("design:type",Boolean)],FB.prototype,"searchSxsUx",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.S("design:type",Boolean)],FB.prototype,"useSmallerPostImageAttachments",void 0);_.x([_.Ye({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],FB);
_.y(FB,"ytd-backstage-image-renderer",function(){if(Rci!==void 0)return Rci;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Rci=m},{mode:1});var U02;var QF=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;m.selectedItemIndex=-1;return m};
_.n(QF,_.d);_.w=QF.prototype;_.w.computeIsChannelOwner=function(m){if(!m)return!0;m=m[0];return!(m&&(m.signinEndpoint||m.selectServiceEndpoint))};
_.w.computeIsImagePoll=function(m){return(m==null?void 0:m.type)==="POLL_TYPE_IMAGE"};
_.w.computeIsTotalVotesDisabled=function(m){return!(m==null?0:m.totalVotes)};
_.w.thumbnailSrc=function(m){var G,K,W,L;return(m==null?0:(G=m.thumbnails)==null?0:(K=G[0])==null?0:K.url)?_.MI((W=m.thumbnails)==null?void 0:(L=W[0])==null?void 0:L.url):void 0};
_.w.progressWidth=function(m){return"width:"+(m?m*100:0)+"%;"};
_.w.textAreaWidth=function(m){return this.isImagePoll?null:"width:"+(m?m*100:0)+"%;"};
_.w.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.w.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var m=this.data.choices,G=0;G<m.length;G++)if(m[G].selected){this.selectedItemIndex=G;break}};
_.w.onPopupClosed=function(m,G){m=Number(this.pollVotes.selected);G.confirmed&&(this.selectChoice(m,!1),_.dU(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.w.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.w.onYtCommentPollRevert=function(m,G){G&&(this.selectChoice(G.selectedChoiceIndex,!0),this.set("data.totalVotes",G.totalVotes))};
_.w.onYtServiceRequestSent=function(m,G){if(G.actions)for(m=0;m<G.actions.length;m++){var K=G.actions[m];_.Q(K,lN)&&this.set("data.totalVotes",_.Q(K,lN).totalVotes)}};
_.w.onYtServiceRequestCompleted=function(m){var G=this.get("detail.data.actionResults.0.feedback",m);m=this.get("detail.data.actionResults.0.status",m);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,m==="STATUS_FAILED"?_.Zw(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.w.getEndpoint=function(m,G){return G===m?this.data.choices[G].deselectServiceEndpoint||null:this.data.choices[m].selectServiceEndpoint||null};
_.w.selectChoice=function(m,G){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var K=0;K<this.data.choices.length;K++){var W;if(m===this.selectedItemIndex){var L=!1;var A=W=null}else W=(L=K===m)?this.data.choices[K].voteRatioIfSelected:this.data.choices[K].voteRatioIfNotSelected,A=L?this.data.choices[K].votePercentageIfSelected:this.data.choices[K].votePercentageIfNotSelected;this.set("data.choices."+K+".voteRatio",W);
this.set("data.choices."+K+".votePercentage",A);this.set("data.choices."+K+".selected",L)}G||(this.isLoading=!0,(G=this.getEndpoint(m,this.selectedItemIndex))&&_.xS().resolve(_.S1).resolveCommand(G,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===m?-1:m};
_.e_.Object.defineProperties(QF.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
QF.prototype.onYtServiceRequestCompleted=QF.prototype.onYtServiceRequestCompleted;QF.prototype.onYtServiceRequestSent=QF.prototype.onYtServiceRequestSent;QF.prototype.onYtCommentPollRevert=QF.prototype.onYtCommentPollRevert;QF.prototype.onPopupClosed=QF.prototype.onPopupClosed;QF.prototype.dataChanged=QF.prototype.dataChanged;_.x([_.q(_.tp),_.S("design:type",Object)],QF.prototype,"paperItemBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],QF.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],QF.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],QF.prototype,"isLoading",void 0);_.x([_.V({computed:"computeIsChannelOwner(data.choices)"}),_.S("design:type",Boolean)],QF.prototype,"isChannelOwner",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.S("design:type",Boolean)],QF.prototype,"isImagePoll",void 0);_.x([_.V({computed:"computeIsTotalVotesDisabled(data)"}),_.S("design:type",Boolean)],QF.prototype,"isTotalVotesDisabled",void 0);_.x([_.V(),_.S("design:type",Object)],QF.prototype,"previousPollInfo",void 0);_.x([_.V(),_.S("design:type",Object)],QF.prototype,"selectedItemIndex",void 0);_.x([_.UM("#poll-votes"),_.S("design:type",Object)],QF.prototype,"pollVotes",void 0);
_.x([_.E("isChannelOwner"),_.S("design:type",Object),_.S("design:paramtypes",[])],QF.prototype,"endpointStyle",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QF.prototype,"dataChanged",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],QF.prototype,"onPopupClosed",null);
_.x([_.XC("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],QF.prototype,"onYtCommentPollRevert",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],QF.prototype,"onYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],QF.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],QF);
_.y(QF,"ytd-backstage-poll-renderer",function(){if(U02!==void 0)return U02;var m=document.createElement("template");_.b(m,'\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" aria-selected$="[[item.selected]]">\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return U02=m},{mode:2});var zcB;var li2={autoplay:!1,loop:!1},BeC={simpleText:""},af=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;m.usesPanelLockup=!1;m.selectedItemIndex=-1;m.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},li2,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});m.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},li2,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});m.correctnessAnimationProps=[];m.correctnessAnimationRefs=[];return m};
_.n(af,_.d);_.w=af.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.w.computeIsChannelOwner=function(m){if(!m)return!0;m=m[0];return!(m&&(m.signinEndpoint||m.selectServiceEndpoint))};
_.w.computeIsTotalVotesDisabled=function(m){return!(m==null?0:m.totalVotes)};
_.w.computeIsImageQuiz=function(m){return(m==null?void 0:m.type)==="POLL_TYPE_IMAGE"};
_.w.onExplanationChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var m=this.data.choices;if(m){this.maybeInitializeQuizLotties(m);for(var G=0;G<m.length;G++)if(m[G].isSelected||this.isChannelOwner&&m[G].isCorrect){this.selectedItemIndex=G;return}this.selectedItemIndex=-1}}};
_.w.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var m=this.selectedItemIndex,G=Number(this.quizVotes.selected);this.selectChoice(G);this.sendVoteAction(G,m);this.quizVotes.selected=-1;var K;m=!((K=this.data)==null?0:K.enableAnimation);this.maybePlayAnswerAnimations(m)}};
_.w.onYtCommentPollRevert=function(m,G){G&&(this.selectChoice(G.selectedChoiceIndex),this.set("data.totalVotes",G.totalVotes))};
_.w.onYtServiceRequestSent=function(m,G){if(G.actions)for(m=_.g(G.actions),G=m.next();!G.done;G=m.next())(G=_.Q(G.value,lN))&&this.set("data.totalVotes",G.totalVotes)};
_.w.onYtServiceRequestCompleted=function(m){var G=this.get("detail.data.actionResults.0.feedback",m);m=this.get("detail.data.actionResults.0.status",m);if(G==="FEEDBACK_DESELECT"||G==="FEEDBACK_SELECT")this.isLoading=!1,m==="STATUS_FAILED"?_.Zw(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.w.getAnimationPropsForChoiceIndex=function(m,G){return G[m]};
_.w.maybePlayAnswerAnimations=function(m){m=m===void 0?!1:m;var G;if((G=this.data)!=null&&G.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){G=_.g(this.correctnessAnimationRefs);for(var K=G.next();!K.done;K=G.next()){var W=void 0,L=void 0;(W=K.value)==null||(L=W.lottieEl)==null||L.stop()}if(!(this.selectedItemIndex<0)){G=0;m&&(G=this.isCorrect?37:25);var A,O;(A=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(O=A.lottieEl)==null||O.goToAndPlay(m?G:0,!0);if(!(this.isCorrect||
(A=this.data.choices.findIndex(function(J){return J.isCorrect}),A<0))){var c,u;
(u=(c=this.correctnessAnimationRefs[A])==null?void 0:c.lottieEl)==null||u.goToAndPlay(37,!0);var h;c=(h=this.fadeContainers)==null?void 0:h.item(A);!m&&c&&this.fadeIn(c)}}}};
_.w.thumbnailSrc=function(m){var G,K,W,L;return(m==null?0:(G=m.thumbnails)==null?0:(K=G[0])==null?0:K.url)?_.MI((W=m.thumbnails)==null?void 0:(L=W[0])==null?void 0:L.url):void 0};
_.w.a11yVotedText=function(m,G){var K,W,L=((K=this.data)==null?void 0:(W=K.correctVotedText)==null?void 0:W.simpleText)||"",A,O;K=((A=this.data)==null?void 0:(O=A.votedText)==null?void 0:O.simpleText)||"";if(!G)return"";var c,u;if((c=this.data)==null?0:(u=c.choices)==null?0:u[m].isCorrect)return L;var h,J;return((h=this.data)==null?0:(J=h.choices)==null?0:J[m].isSelected)?K:""};
_.w.getEndpoint=function(m,G){return G===m?this.data.choices[m].deselectServiceEndpoint||null:this.data.choices[m].selectServiceEndpoint||null};
_.w.sendVoteAction=function(m,G){if(m=this.getEndpoint(m,G))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(m)};
_.w.selectChoice=function(m){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++)this.set("data.choices."+G+".isSelected",m===this.selectedItemIndex?!1:G===m);this.selectedItemIndex=this.selectedItemIndex===m?-1:m};
_.w.maybeInitializeQuizLotties=function(m){var G=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=m.map(function(K){return{animationConfig:K.isCorrect?G.baseCorrectLottiePlayerAnimationConfig:G.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){G.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(K){return K.animationRef||{}})};
_.w.fadeIn=function(m){m.classList.add("fade-in");_.jA(_.Fu,function(){m.classList.remove("fade-in")},900)};
_.e_.Object.defineProperties(af.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.bw(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 m,G;return((m=this.data)==null?void 0:(G=m.choices)==null?void 0:G.some(function(K){return K.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null||!m.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?BeC:this.data.choices[this.selectedItemIndex].explanation||BeC}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null||!m.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
af.prototype.onYtServiceRequestCompleted=af.prototype.onYtServiceRequestCompleted;af.prototype.onYtServiceRequestSent=af.prototype.onYtServiceRequestSent;af.prototype.onYtCommentPollRevert=af.prototype.onYtCommentPollRevert;af.prototype.dataChanged=af.prototype.dataChanged;af.prototype.onExplanationChanged=af.prototype.onExplanationChanged;_.x([_.q(_.tp),_.S("design:type",Object)],af.prototype,"paperItemBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],af.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.oE.YtTaskEmitterBehavior),_.S("design:type",Object)],af.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],af.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],af.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],af.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Object)],af.prototype,"usesPanelLockup",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.S("design:type",Boolean)],af.prototype,"isChannelOwner",void 0);_.x([_.V({computed:"computeIsTotalVotesDisabled(data)"}),_.S("design:type",Boolean)],af.prototype,"isTotalVotesDisabled",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.S("design:type",Boolean)],af.prototype,"isImageQuiz",void 0);_.x([_.V(),_.S("design:type",Object)],af.prototype,"previousQuizInfo",void 0);_.x([_.V(),_.S("design:type",Object)],af.prototype,"selectedItemIndex",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data","usesPanelLockup"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"shouldUseModernUi",null);
_.x([_.zh(".fade-container"),_.S("design:type",Object)],af.prototype,"fadeContainers",void 0);_.x([_.V(),_.S("design:type",Array)],af.prototype,"correctnessAnimationProps",void 0);_.x([_.E("explanation","showCorrectAnswer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"showExplanation",null);_.x([_.E("isChannelOwner","isAttempted"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"showCorrectAnswer",null);
_.x([_.E("isChannelOwner","isAttempted","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"isQuizAnsweringDisabled",null);_.x([_.E("isQuizAnsweringDisabled"),_.S("design:type",Object),_.S("design:paramtypes",[])],af.prototype,"endpointStyle",null);_.x([_.E("data","selectedItemIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"isAttempted",null);
_.x([_.E("data","selectedItemIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],af.prototype,"explanation",null);_.x([_.E("data","selectedItemIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],af.prototype,"isCorrect",null);_.x([_.UM("ytd-expander"),_.S("design:type",Object)],af.prototype,"expander",void 0);_.x([_.UM("#quiz-votes"),_.S("design:type",Object)],af.prototype,"quizVotes",void 0);
_.x([_.Sb("explanation"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],af.prototype,"onExplanationChanged",null);_.x([_.Sb("data","isChannelOwner"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],af.prototype,"dataChanged",null);_.x([_.XC("yt-comment-quiz-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],af.prototype,"onYtCommentPollRevert",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],af.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],af.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],af);
_.y(af,"ytd-backstage-quiz-renderer",function(){if(zcB!==void 0)return zcB;var m=document.createElement("template");_.b(m,'\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="correctness-lottie style-scope ytd-backstage-quiz-renderer" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]">\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return zcB=m},{mode:1});var M3S;var of=function(){return _.d.apply(this,arguments)||this};
_.n(of,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],of.prototype,"data",void 0);_.x([_.Ye({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],of);
_.y(of,"ytd-post-uploaded-video-renderer",function(){if(M3S!==void 0)return M3S;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return M3S=m},{mode:1});var Te4;var nk=function(){return _.d.apply(this,arguments)||this};
_.n(nk,_.d);nk.prototype.useFilledIcons=function(m){return m==="SPONSORSHIP_STAR"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nk.prototype,"data",void 0);_.x([_.Ye({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],nk);
var mDR=_.Vz()(nk,"ytd-sponsors-only-badge-renderer",function(){if(Te4===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);Te4=m}m=Te4;return m},{allowedProps:["data"],
mode:1});var iHi;var bC=function(){return _.d.apply(this,arguments)||this};
_.n(bC,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],bC.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bC.prototype,"data",void 0);_.x([_.Ye({is:"ytd-child-video-renderer",disableElementRegistration:!0})],bC);
_.y(bC,"ytd-child-video-renderer",function(){if(iHi!==void 0)return iHi;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return iHi=m},{mode:1});var GVG;var Kwo;var vx=function(){var m=_.d.apply(this,arguments)||this;m.size=0;m.fallbackImageSize={height:void 0,width:9999};m.webModernCollections=!1;return m};
_.n(vx,_.d);_.w=vx.prototype;_.w.computeBlurredImageSize=function(m){return m?{height:m*2,width:m*2}:this.fallbackImageSize};
_.w.computeImageSize=function(m){return m?{height:m,width:m}:this.fallbackImageSize};
_.w.computeObjectFit=function(m){return m?"FILL":"CONTAIN"};
_.w.computePreserve=function(m){return m?!0:!1};
_.w.setBackground=function(){var m,G;if((m=this.data)==null?0:(G=m.thumbnail)==null?0:G.sampledThumbnailColor)m=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+m.red+","+m.green+","+m.blue+",1)"};
vx.prototype.setBackground=vx.prototype.setBackground;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vx.prototype,"ytRendererBehavior",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],vx.prototype,"watchFeedThumbnail",void 0);_.x([_.V(),_.S("design:type",Object)],vx.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],vx.prototype,"size",void 0);
_.x([_.V({computed:"computeBlurredImageSize(size)"}),_.S("design:type",Object)],vx.prototype,"blurredImageSize",void 0);_.x([_.V({computed:"computeImageSize(size)"}),_.S("design:type",Object)],vx.prototype,"imageSize",void 0);_.x([_.V({computed:"computePreserve(size)"}),_.S("design:type",String)],vx.prototype,"preserve",void 0);_.x([_.V({computed:"computeObjectFit(size)"}),_.S("design:type",String)],vx.prototype,"objectFit",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],vx.prototype,"webModernCollections",void 0);_.x([_.Sb("data.thumbnail.sampledThumbnailColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vx.prototype,"setBackground",null);_.x([_.Ye({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],vx);
_.y(vx,"ytd-playlist-custom-thumbnail-renderer",function(){if(Kwo!==void 0)return Kwo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Kwo=m},{mode:1});var WwP;var $8=function(){return _.d.apply(this,arguments)||this};
_.n($8,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$8.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],$8.prototype,"width",void 0);_.x([_.Ye({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],$8);
_.y($8,"ytd-playlist-video-thumbnail-renderer",function(){if(WwP!==void 0)return WwP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return WwP=m},{mode:1});var Lw2;var sx=function(){return _.d.apply(this,arguments)||this};
_.n(sx,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sx.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],sx.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],sx.prototype,"width",void 0);_.x([_.Ye({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],sx);
_.y(sx,"ytd-show-custom-thumbnail-renderer",function(){if(Lw2!==void 0)return Lw2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Lw2=m},{mode:1});var AnX;var qU=function(){return _.d.apply(this,arguments)||this};
_.n(qU,_.d);qU.prototype.useFilledIcons=function(m){return m==="MUSIC"||m==="COURSE"};
qU.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=YC(this.overlayColor,"0.8");else if(this.overlayColor){var m=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+m.red+","+m.green+","+m.blue+",0.8)"}};
_.e_.Object.defineProperties(qU.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)}}});
qU.prototype.overlayColorChanged=qU.prototype.overlayColorChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qU.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],qU.prototype,"overlayColor",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.icon","data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],qU.prototype,"overlayStyle",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.icon","data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],qU.prototype,"overlayTextStyle",null);_.x([_.Sb("overlayColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qU.prototype,"overlayColorChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],qU);
_.y(qU,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(AnX!==void 0)return AnX;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return AnX=m},{mode:1});var w6l;var Ex=function(){var m=_.d.apply(this,arguments)||this;m.active=!1;return m};
_.n(Ex,_.d);Ex.prototype.computeIsSpinnerHidden=function(m){return(m==null?void 0:m.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Ex.prototype.computeOverlayIcon=function(m){return(m==null?void 0:m.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(m==null?void 0:m.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ex.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ex.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ex.prototype,"active",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Ex);
_.y(Ex,"ytd-thumbnail-overlay-downloading-renderer",function(){if(w6l!==void 0)return w6l;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return w6l=m},{mode:1});var gsC;var Hx=function(){return _.d.apply(this,arguments)||this};
_.n(Hx,_.d);_.e_.Object.defineProperties(Hx.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hx.prototype,"data",void 0);_.x([_.E("data.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],Hx.prototype,"text",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Hx);
_.y(Hx,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(gsC!==void 0)return gsC;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return gsC=m},{mode:1});var OHo,cnk=function(){if(OHo!==void 0)return OHo;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return OHo=m};var If=function(){return _.d.apply(this,arguments)||this};
_.n(If,_.d);_.e_.Object.defineProperties(If,{template:{configurable:!0,enumerable:!0,get:function(){return cnk()}}});
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],If.prototype,"animateEqualizer",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],If);_.Vz()(If,"ytd-thumbnail-overlay-equalizer",function(){return cnk()},{allowedProps:["animateEqualizer"],
mode:1});var YuR;var jx=function(){var m=_.d.apply(this,arguments)||this;m.nowPlayingBadge=_.F("web_now_playing_badge");m.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return m};
_.n(jx,_.d);jx.prototype.activeChanged=function(){var m=this;_.F("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Pv(this,function(){_.Zw(m.hostElement,"yt-playlist-lockup-now-playing-active",m)})};
jx.prototype.onMiniplayerPlayStateChanged=function(m){var G,K=(G=_.Q(_.U7().currentEndpoint,_.QQ))==null?void 0:G.videoId;this.isVideoPlaying=m&&(_.F("web_limit_now_playing_animation_killswitch")||this.videoId===K)};
jx.prototype.activeChanged=jx.prototype.activeChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],jx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jx.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],jx.prototype,"isVideoPlaying",void 0);_.x([_.V(),_.S("design:type",String)],jx.prototype,"videoId",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],jx.prototype,"equalizerOnly",void 0);_.x([_.V(),_.S("design:type",Boolean)],jx.prototype,"isActive",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jx.prototype,"nowPlayingBadge",void 0);_.x([_.Sb("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jx.prototype,"activeChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],jx);
_.y(jx,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(YuR!==void 0)return YuR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return YuR=m},{mode:1});var rno;var k8=function(){return _.d.apply(this,arguments)||this};
_.n(k8,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],k8.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],k8);
_.y(k8,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(rno!==void 0)return rno;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return rno=m},{mode:2});var uIR;var Ck=function(){return _.d.apply(this,arguments)||this};
_.n(Ck,_.d);Ck.prototype.onDurationChanged=function(){var m,G;_.VL(this.hostElement).querySelector("#progress").style.width=((G=(m=this.data)==null?void 0:m.percentDurationWatched)!=null?G:0)+"%"};
Ck.prototype.onDurationChanged=Ck.prototype.onDurationChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ck.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ck.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ck.prototype,"isLive",void 0);_.x([_.Sb("data.percentDurationWatched"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ck.prototype,"onDurationChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Ck);
_.y(Ck,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(uIR!==void 0)return uIR;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return uIR=m},{mode:1});var h1S;var VF=function(){var m=_.d.apply(this,arguments)||this;m.bottomPanel=!1;m.richGridOverlay=!1;m.watchFeedOverlay=!1;m.isCompact=!1;return m};
_.n(VF,_.d);VF.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.e_.Object.defineProperties(VF.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType)==="PLAY_ALL"&&_.F("kevlar_system_icons")}}});
VF.prototype.widthChanged=VF.prototype.widthChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VF.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],VF.prototype,"width",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VF.prototype,"bottomPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VF.prototype,"richGridOverlay",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VF.prototype,"watchFeedOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VF.prototype,"isCompact",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],VF.prototype,"isIconFilled",null);_.x([_.Sb("width","watchFeedOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VF.prototype,"widthChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],VF);
_.y(VF,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(h1S!==void 0)return h1S;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return h1S=m},{mode:1});var p6B;var JnC=["CLIP","SHORTS"],ZT=function(){var m=_.d.apply(this,arguments)||this;m.animated=_.F("animated_live_badge_icon");m.hasIcon=!1;m.updateTimerIntervalId=0;m.timeSinceLive=0;return m};
_.n(ZT,_.d);_.w=ZT.prototype;_.w.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.w.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.w.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.w.hasIconOrText=function(){var m,G;return!!(((m=this.data)==null?0:m.icon)||((G=this.data)==null?0:G.text))};
_.w.initializeLiveBadgeTimer=function(){var m=this,G,K=(G=this.liveBadgeData)==null?void 0:G.startTimestampSec;if(K&&this.canShowLiveBadgeTimer()){var W;G=Number((W=this.liveBadgeData)==null?void 0:W.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(K);this.updateTimerIntervalId=_.Tf(function(){m.canShowLiveBadgeTimer()?m.timeSinceLive++:(m.timeSinceLive=0,window.clearInterval(m.updateTimerIntervalId))},G)}else this.timeSinceLive=0};
_.w.canShowLiveBadgeTimer=function(){var m=Date.now(),G,K;return m<(Number((G=this.liveBadgeData)==null?void 0:G.endTimestampSec)-1)*1E3&&m>Number((K=this.liveBadgeData)==null?void 0:K.startTimestampSec)*1E3};
_.e_.Object.defineProperties(ZT.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.ZFs(this.data,this.timeSinceLive):{}}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.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 JnC.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ZT.prototype.initializeLiveBadgeTimer=ZT.prototype.initializeLiveBadgeTimer;ZT.prototype.dataChanged=ZT.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ZT.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ZT.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],ZT.prototype,"icon",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ZT.prototype,"animated",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.S("design:type",Boolean)],ZT.prototype,"hideTimeStatus",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZT.prototype,"hasIcon",void 0);_.x([_.V(),_.S("design:type",Object)],ZT.prototype,"timeSinceLive",void 0);_.x([_.E("data","timeSinceLive"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZT.prototype,"badgeShapeData",null);
_.x([_.E("data","overlayType"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZT.prototype,"hideBadgeShape",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZT.prototype,"dataChanged",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZT.prototype,"overlayStyle",null);
_.x([_.E("data.liveBadgeData"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZT.prototype,"liveBadgeData",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.type"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZT.prototype,"overlayType",null);_.x([_.E("overlayType","overlayStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZT.prototype,"useFilledIcon",null);
_.x([_.Mg("liveBadgeData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZT.prototype,"initializeLiveBadgeTimer",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ZT);
_.y(ZT,"ytd-thumbnail-overlay-time-status-renderer",function(){if(p6B!==void 0)return p6B;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return p6B=m},{mode:2});var Ngo;var d0=function(){return _.d.apply(this,arguments)||this};
_.n(d0,_.d);d0.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"}}}}};
d0.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(m){if(this.hasPlaybackProgressBar)return{percentDurationWatched:m.percentDurationWatched}};
d0.prototype.computeHasPlaybackProgressBar=function(m){return!!m.percentDurationWatched&&m.percentDurationWatched>0};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],d0.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.S("design:type",Boolean)],d0.prototype,"hasPlaybackProgressBar",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],d0);
_.y(d0,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Ngo!==void 0)return Ngo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Ngo=m},{mode:1});var DD2;var tto=_.P(function(m){var G=m.data;var K=m.children;var W=function(){return!!G().doubleStack},L=function(){return!!G().includeStackHeight};
return _.r("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!G().experimentEnabled}},_.r(_.p,{cond:G,
then:function(){var A={};return _.r(_.zL,null,_.r(_.p,{cond:L,then:function(){var O={};return _.r("div",{class:_.VO("ytCollectionsStackSpacer",(O.ytCollectionsStackSpacerDoubleStack=W,O))})}}),_.r("div",{class:_.VO((A.ytCollectionsStackRelativeStack=L,A))},_.r(_.p,{cond:W,
then:function(){var O={};return _.r("div",{class:_.VO("ytCollectionsStackCollectionStack2",function(){return G().customClassName2ndStack},(O.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return G().enableResponsiveMode},O)),
style:_.eA({"background-color":function(){return PVd(G())}})})}}),_.r("div",{class:_.VO("ytCollectionsStackCollectionStack1",function(){return G().customClassName1stStack},function(){return d09(G().thumbnailSize?G().thumbnailSize:"medium")}),
style:_.eA({"background-color":function(){return PVd(G())}})}),K))}}))},"Fa");_.sh(tto,"yt-collections-stack",{props:{data:_.Dd}});var Px=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};m.webModernCollections=!1;m.isSearch=!1;m.isDoubleStack=!1;m.thumbnailSize="medium";return m};
_.n(Px,_.d);_.w=Px.prototype;
_.w.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]]"}}}}}};
_.w.getThumbnailDetails=function(m){if(m!=null&&m.thumbnailRenderer){var G=m.thumbnailRenderer,K;if((K=G.playlistVideoThumbnailRenderer)==null?0:K.thumbnail)return G.playlistVideoThumbnailRenderer.thumbnail;var W;if((W=G.playlistCustomThumbnailRenderer)==null?0:W.thumbnail)return G.playlistCustomThumbnailRenderer.thumbnail;m=m.thumbnailRenderer;var L;if((L=m.showCustomThumbnailRenderer)==null?0:L.thumbnail)return m.showCustomThumbnailRenderer.thumbnail}};
_.w.computeOverlayColor=function(m){var G,K;if((G=this.getThumbnailDetails(m))==null?0:(K=G.darkColorPalette)==null?0:K.section2Color)return this.getThumbnailDetails(m).darkColorPalette.section2Color;var W;return(W=this.getThumbnailDetails(m))==null?void 0:W.sampledThumbnailColor};
_.w.computeWebModernCollections=function(m){if(m==null||!m.thumbnailOverlays)return!1;m=_.g(m.thumbnailOverlays);for(var G=m.next();!G.done;G=m.next()){var K=void 0;if((K=G.value)==null?0:K.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.w.computeNavigationEndpoint=function(m){return adF(m==null?void 0:m.navigationEndpoint)};
_.e_.Object.defineProperties(Px.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var m=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:m==null?void 0:m.sampledThumbnailColor,vibrantColorPalette:m==null?void 0:m.vibrantColorPalette,darkColorPalette:m==null?void 0:m.darkColorPalette,experimentEnabled:!0}}}});
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q($XP),_.S("design:type",Object)],Px.prototype,"ytdThumbnailBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Px.prototype,"componentBehavior",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],Px.prototype,"watchFeedThumbnail",void 0);_.x([_.V(),_.S("design:type",Number)],Px.prototype,"customThumbnailSize",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],Px.prototype,"hideAria",void 0);_.x([_.V(),_.S("design:type",Object)],Px.prototype,"data",void 0);_.x([_.V({computed:"computeOverlayColor(data)"}),_.S("design:type",Object)],Px.prototype,"overlayColor",void 0);
_.x([_.V({computed:"computeWebModernCollections(data)"}),_.S("design:type",Object)],Px.prototype,"webModernCollections",void 0);_.x([_.V({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],Px.prototype,"computedNavigationEndpoint",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Px.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Px.prototype,"isDoubleStack",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Px.prototype,"thumbnailSize",void 0);_.x([_.E("data","isDoubleStack","thumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],Px.prototype,"collectionStack",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Px);
_.y(Px,"ytd-playlist-thumbnail",function(){if(DD2!==void 0)return DD2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return DD2=m},{mode:2});var Fw0;_.sh(_.P(function(m){return _.r("yt-text-view-model",{class:_.VO("ytTextViewModelHost")},_.r(_.Nm,{text:function(){return m.data().text}}))},"Ga"),"yt-text-view-model",{props:{data:_.Dd}});var yF=function(){var m=_.d.apply(this,arguments)||this;m.noEndpoints=!1;m.amsterdamPostMvp=_.F("web_amsterdam_post_mvp_playlists");m.badges=[];m.transferState="TRANSFER_STATE_UNKNOWN";return m};
_.n(yF,_.d);_.w=yF.prototype;_.w.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.w.getMetadata=function(m){if(!m)return[];var G=[],K=m.shortViewCountText||m.viewCountText;K&&G.push(_.bw(K));m.publishedTimeText&&G.push(_.bw(m.publishedTimeText));m.upcomingEventData&&m.upcomingEventData.upcomingEventText&&G.push(_.ik(_.bw(m.upcomingEventData.upcomingEventText),Number(m.upcomingEventData.startTime)));return G};
_.w.observeDataForBylineSeparator=function(){this.data&&_.dF(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.w.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.OM(this.metadataColor)};
_.w.getSimpleString=function(m){return _.bw(m)};
_.w.isBylineHidden=function(m){return this.noByline||!((m==null?0:m.longBylineText)||(m==null?0:m.shortBylineText))};
_.w.isMetadataHidden=function(m){var G;return((G=this.getMetadata(m))==null?void 0:G.length)===0};
_.w.isBylineMetadataSeparatorHidden=function(m){return this.isMetadataHidden(m)||!this.shouldShowVideoInfo};
_.w.isLongByline=function(m,G){return G&&!(m==null||!m.longBylineText)};
_.e_.Object.defineProperties(yF.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var m;return this.amsterdamPostMvp&&!((m=this.data)==null||!m.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
yF.prototype.metadataColorChanged=yF.prototype.metadataColorChanged;yF.prototype.observeDataForBylineSeparator=yF.prototype.observeDataForBylineSeparator;_.x([_.q(_.OW),_.S("design:type",Object)],yF.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yF.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],yF.prototype,"noEndpoints",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"isSlimShort",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"radioMeta",void 0);_.x([_.V({selector:_.OT}),_.S("design:type",Object)],yF.prototype,"isGridViewEnabled",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"richMeta",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yF.prototype,"amsterdamPostMvp",void 0);
_.x([_.V(),_.S("design:type",Boolean)],yF.prototype,"noByline",void 0);_.x([_.V({computed:"isLongByline(data, radioMeta)"}),_.S("design:type",Boolean)],yF.prototype,"longByline",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"truncateMetadataLine",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"miniMode",void 0);_.x([_.V(),_.S("design:type",Number)],yF.prototype,"metadataColor",void 0);
_.x([_.V(),_.S("design:type",Array)],yF.prototype,"badges",void 0);_.x([_.V({selector:_.uw,selectorArgs:["data.videoId"]}),_.S("design:type",String)],yF.prototype,"transferState",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"isDownloading",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yF.prototype,"typographyBump",void 0);_.x([_.UM("#metadata-line"),_.S("design:type",HTMLElement)],yF.prototype,"metadataLine",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yF.prototype,"observeDataForBylineSeparator",null);_.x([_.Sb("metadataColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yF.prototype,"metadataColorChanged",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],yF.prototype,"shouldShowVideoInfo",null);
_.x([_.E("badges"),_.S("design:type",String),_.S("design:paramtypes",[])],yF.prototype,"inlineBadgeClass",null);_.x([_.E("longByline"),_.S("design:type",String),_.S("design:paramtypes",[])],yF.prototype,"longBylineClass",null);_.x([_.E("data","longByline"),_.S("design:type",Object),_.S("design:paramtypes",[])],yF.prototype,"bylineText",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yF.prototype,"hasAttributedBylineText",null);
_.x([_.E("isGridViewEnabled","data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yF.prototype,"watchFeedBigThumbs",null);_.x([_.Ye({is:"ytd-video-meta-block",disableElementRegistration:!0})],yF);
_.y(yF,"ytd-video-meta-block",function(){if(Fw0!==void 0)return Fw0;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Fw0=m},{mode:2});_.Kz("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var ex=function(){var m=_.d.apply(this,arguments)||this;m.displayItemCount=2;m.isBackstagePlaylist=!1;m.isPostCompactPlaylist=!1;m.shouldShowChannelThumbnail=!1;return m};
_.n(ex,_.d);_.w=ex.prototype;_.w.computeFirstVideos=function(m,G){return m===void 0||G===void 0?[]:m.slice(0,G)};
_.w.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var m=this.data.thumbnailRenderer;m.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",m.playlistVideoThumbnailRenderer.thumbnail);m.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",m.playlistCustomThumbnailRenderer.thumbnail)}};
_.w.computeThumbnailHeight=function(m,G,K,W,L){return W?L==="BIG"?280:L==="MASSIVE"?337:234:K?240:G?72:m?118:138};
_.w.computeThumbnailWidth=function(m,G,K,W,L){return W?L==="MEDIUM"?450:L==="BIG"?500:L==="MASSIVE"?600:420:K?360:G?128:m?210:246};
_.w.computeUseBiggerThumbs=function(m){return m&&_.F("enable_desktop_search_bigger_thumbs")};
_.w.computeShouldShowChannelThumbnail=function(m,G){return m&&!(G==null||!G.channelThumbnail)};
_.e_.Object.defineProperties(ex.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
ex.prototype.dataChanged=ex.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],ex.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],ex.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ex.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ex.prototype,"displayItemCount",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ex.prototype,"isBackstagePlaylist",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ex.prototype,"isPostCompactPlaylist",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ex.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.S("design:type",Boolean)],ex.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],ex.prototype,"biggerThumbsStyle",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ex.prototype,"isDownloads",void 0);_.x([_.V({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.S("design:type",Object)],ex.prototype,"shouldShowChannelThumbnail",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ex.prototype,"dataChanged",null);
_.x([_.E("isSearch"),_.S("design:type",String),_.S("design:paramtypes",[])],ex.prototype,"stackThumbnailSize",null);_.x([_.Ye({is:"ytd-playlist-renderer",disableElementRegistration:!0})],ex);
_.y(ex,"ytd-playlist-renderer",function(){if(GVG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);GVG=m}m=GVG;return m},{mode:1});var Qj2;var au0;var fk=function(){var m=_.d.apply(this,arguments)||this;m.startX=0;return m};
_.n(fk,_.d);fk.prototype.onEndpointMouseDown=function(m){this.startX=m.clientX};
fk.prototype.onEndpointClick=function(m){this.startX!==m.clientX&&(m.preventDefault(),m.stopPropagation())};
fk.prototype.computeObjectFit=function(m){return m==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||m==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||m==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
fk.prototype.computeCardStyle=function(m){return m?m.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.e_.Object.defineProperties(fk.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.searchRefinementCardRendererStyle)==null?void 0:G.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fk.prototype,"data",void 0);_.x([_.V({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.S("design:type",Number)],fk.prototype,"objectFit",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.S("design:type",String)],fk.prototype,"cardStyle",void 0);
_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],fk.prototype,"roundContainer",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],fk.prototype,"isAlbumCard",null);_.x([_.E("data","isAlbumCard"),_.S("design:type",Object),_.S("design:paramtypes",[])],fk.prototype,"collectionStack",null);_.x([_.Ye({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],fk);
_.y(fk,"ytd-search-refinement-card-renderer",function(){if(au0!==void 0)return au0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return au0=m},{mode:1});var osi;var x8=function(){var m=_.d.apply(this,arguments)||this;m.isRichGrid=!1;return m};
_.n(x8,_.d);_.x([_.V(),_.S("design:type",Object)],x8.prototype,"data",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],x8.prototype,"componentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],x8.prototype,"ytdReduxBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],x8.prototype,"isRichGrid",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],x8.prototype,"miniMode",void 0);
_.x([_.Ye({is:"ytd-game-details-renderer",disableElementRegistration:!0})],x8);
_.y(x8,"ytd-game-details-renderer",function(){if(osi!==void 0)return osi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return osi=m},{mode:1});var ns4;var bHi;var XB=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return m};
_.n(XB,_.d);_.w=XB.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.currentStateData=function(m){var G=m||this.data;return G&&G.states&&G.currentStateId!=null?G.states.find(function(K){return K.stateId===G.currentStateId})||null:null};
_.w.currentStateRendererData=function(m){return(m=this.currentStateData(m))&&m.state&&m.state.buttonRenderer?m.state.buttonRenderer:null};
_.w.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())};
_.w.computeButtonIcon=function(m){m=this.currentStateRendererData(m);var G;return(m==null?0:(G=m.icon)==null?0:G.iconType)?m.icon.iconType.toLowerCase():null};
_.w.computeAccessibility=function(m){return(m=this.currentStateRendererData(m))&&m.accessibilityData?m.accessibilityData.accessibilityData||null:null};
_.w.computeButtonClass=function(m){var G=this.currentStateRendererData(m);if(!G)return"";m="";var K=G.style;K&&(m+=K.toLowerCase().replace(/_/g,"-")+" ");(G=G.size)&&(m+=G.toLowerCase().replace(/_/g,"-")+" ");return m.trim()};
_.w.computeServiceEndpoint=function(m){if(!m)return null;var G=m&&m.serviceEndpoint,K=this.get("command.commandMetadata.webCommandMetadata.sendPost",m);return G?G:K&&m.command?m.command:null};
_.w.computeBellMenuItemParams=function(m){var G;m=(G=_.Q(m==null?void 0:m.command,_.xu))==null?void 0:G.commands;if(!m||m.length===0)return null;G=_.Q(m[0],_.BM);var K,W;return(G==null?0:(K=G.popup)==null?0:(W=K.menuPopupRenderer)==null?0:W.items)?G.popup.menuPopupRenderer.items.map(function(L){return L.menuServiceItemRenderer.trackingParams}):null};
_.w.handleBellMenuOpenSelectedAction=function(m){var G=m.trackingParams,K=this.computeBellMenuItemParams(this.data);this.data&&G&&K&&K.includes(G)&&this.ytRenderButtonBehavior._setButtonIcon(m.icon.iconType.toLowerCase())};
_.w.onYtServiceRequestCompleted=function(m,G){(m=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))&&this.set("data",m)};
_.w.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.w.resetState=function(){this.set("data.currentStateId",3)};
_.w.onYtButtonTapHandler=function(){if(this.data){var m=this.currentStateRendererData(this.data);m&&this.ytRendererBehavior.logExplicitClick(m)}};
XB.prototype.onYtServiceRequestError=XB.prototype.onYtServiceRequestError;XB.prototype.onYtServiceRequestCompleted=XB.prototype.onYtServiceRequestCompleted;XB.prototype.stateChanged=XB.prototype.stateChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],XB.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(RE.YtRenderButtonBehavior),_.S("design:type",Object)],XB.prototype,"ytRenderButtonBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],XB.prototype,"data",void 0);_.x([_.Mg("data","data.currentStateId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XB.prototype,"stateChanged",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],XB.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],XB.prototype,"onYtServiceRequestError",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],XB);
_.y(XB,"ytd-subscription-notification-toggle-button-renderer",function(){if(bHi!==void 0)return bHi;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return bHi=m},{mode:1});var vsX;var Sx=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};m.tapHandler=function(){if(m.data){var G=m.currentStateRendererData();G&&m.ytRendererBehavior.logExplicitClick(G)}};
return m};
_.n(Sx,_.d);_.w=Sx.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.currentStateData=function(){var m=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(G){return G.stateId===m.data.currentStateId})||null:null};
_.w.currentStateRendererData=function(){var m=this.currentStateData();return m&&m.state&&m.state.buttonRenderer?m.state.buttonRenderer:null};
_.w.computeAccessibilityLabel=function(){var m,G,K;return(m=this.currentStateRendererData())==null?void 0:(G=m.accessibilityData)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label};
_.w.computeBellMenuItemParams=function(){var m,G,K=(G=_.Q((m=this.data)==null?void 0:m.command,_.xu))==null?void 0:G.commands;if(!K||K.length===0)return null;m=_.Q(K[0],_.BM);var W,L;return(m==null?0:(W=m.popup)==null?0:(L=W.menuPopupRenderer)==null?0:L.items)?m.popup.menuPopupRenderer.items.map(function(A){return A.menuServiceItemRenderer.trackingParams}):null};
_.w.handleBellMenuOpenSelectedAction=function(m){var G=m.trackingParams,K=this.computeBellMenuItemParams();if(this.data&&G&&K&&K.includes(G)&&(m==null||!m.isDisabled)){var W;((W=_.Q(m.serviceEndpoint,_.SD))==null?void 0:W.signal)!=="CLIENT_SIGNAL"&&(this.icon=m.icon.iconType)}};
_.w.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.w.onYtServiceRequestCompleted=function(m,G){if(m=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",G))this.icon=void 0,this.set("data",m)};
_.w.onYtServiceRequestError=function(){this.icon=void 0};
_.e_.Object.defineProperties(Sx.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var m=this.data,G=this.textLabel,K=this.hostElement,W=this.computeAccessibilityLabel(),L=this.tapHandler,A=this.isOverlay?"overlay":"mono",O=(m==null?0:m.disableButton)?"disabled":"active";G=G?_.A$(G):void 0;return{style:A,type:"tonal",state:O,size:"M",focused:!1,formattedButtonText:G,iconPosition:"leading-trailing",onTap:ecf(m,L,K),accessibilityLabel:W}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var m=this.currentStateRendererData(),G,K,W=(K=this.icon)!=null?K:m==null?void 0:(G=m.icon)==null?void 0:G.iconType;if(W)return _.ew(W)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.secondaryIcon)==null?void 0:G.iconType;if(K)return _.ew(K)}}});
Sx.prototype.onYtServiceRequestError=Sx.prototype.onYtServiceRequestError;Sx.prototype.onYtServiceRequestCompleted=Sx.prototype.onYtServiceRequestCompleted;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Sx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Sx.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Sx.prototype,"textLabel",void 0);
_.x([_.V(),_.S("design:type",String)],Sx.prototype,"icon",void 0);_.x([_.V(),_.S("design:type",Boolean)],Sx.prototype,"isOverlay",void 0);_.x([_.E("data.*","textLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sx.prototype,"computedButtonShape",null);_.x([_.E("data.*","icon"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sx.prototype,"computedIcon",null);_.x([_.E("computedIcon"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sx.prototype,"computedAnimateIcon",null);
_.x([_.E("data.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],Sx.prototype,"computedSecondaryIcon",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],Sx.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Sx.prototype,"onYtServiceRequestError",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],Sx);_.y(Sx,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(vsX!==void 0)return vsX;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return vsX=m},{mode:2});var $DP;_.sh($04,"yt-animated-action",{props:{backgroundLottieRef:_.Dd,foregroundLottieRef:_.Dd,wrapperClass:_.Dd,disableAnimation:_.Dd},unsafeExternallySettableAttributes:new Set(["key"])});var Rf=function(){var m=_.d.apply(this,arguments)||this;m.animatedActionEnabled=_.F("web_animated_actions");m.foregroundLottieRef={};m.backgroundLottieRef={};m.forceIconOnly=!1;m.showTextWhileAnimating=!1;m.keyboardFocused=!1;m.isAnimating=!1;m.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return m};
_.n(Rf,_.d);_.w=Rf.prototype;_.w.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.w.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]]"}}}}}};
_.w.attached=function(){this.keyboardFocused=!1};
_.w.onYtServiceRequestSent=function(m,G){(this.get("endpoint.subscribeEndpoint",G)||this.get("endpoint.unsubscribeEndpoint",G))&&this.updateSubscriptionState(!this.subscribed)};
_.w.onYtServiceRequestCompleted=function(m,G){(m=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",G.data))&&this.bellButton&&(this.bellButton.data=m)};
_.w.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.eb(this.hostElement)};
_.w.onPlayerSubscribe=function(m){this.isCompactRed()||m!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.w.onPlayerUnsubscribe=function(m){this.isCompactRed()||m!==this.data.channelId||this.updateSubscriptionState(!1)};
_.w.handleUpdateSubscribeButtonAction=function(m){m=_.Q(m,pFi);var G;m&&m.channelId===((G=this.data)==null?void 0:G.channelId)&&this.updateSubscriptionState(!!m.subscribed)};
_.w.computeButtonStyle=function(m){return this.get("style.styleType",m)||null};
_.w.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.w.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.w.updateSubscriptionState=function(m){if(m!==this.subscribed){this.set("data.subscribed",m);var G,K=(G=this.data)==null?void 0:G.subscribedEntityKey;K&&this.ytdReduxBehavior.dispatch(_.Bp("subscriptionStateEntity",K,{key:K,subscribed:m}));this.isCompactRed()||_.Zw(this.hostElement,"yt-subscription-changed",m);m||(_.dU(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!m),m&&this.hasBellButton&&this.startAnimation())}};
_.w.startAnimation=function(){var m=this;if(!this.isAnimating){var G=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var K;(K=this.backgroundLottieRef.lottieEl)==null||K.goToAndPlay(0);var W;(W=this.foregroundLottieRef.lottieEl)==null||W.goToAndPlay(0);_.Fu.addJob(function(){m.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Fu.addJob(function(){m.updateContainerToFitContent(!!m.subscribed,!0)},2,1500);
_.Fu.addJob(function(){m.isAnimating=!1},2,G)}};
_.w.maybeAnimateBellIcon=function(){var m=_.Z7(this.hostElement).querySelector("yt-animated-icon");if(m){var G;(G=m.animationRef.lottieEl)==null||G.goToAndPlay(0)}};
_.w.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.w.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.w.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var m;this.unsubscribedWidth=(m=this.subscribeButtonShape)==null?void 0:m.getBoundingClientRect().width}var G;this.subscribedWidth=(G=this.bellButton)==null?void 0:G.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.w.updateContainerToFitContent=function(m,G){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(m?(m=this.subscribedWidth,G=this.isAnimating&&!G,this.subscribedIconOnlyWidth===void 0||G||(m=this.subscribedIconOnlyWidth),this.hostElement.style.width=m+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.w.clearContainerSize=function(){this.hostElement.style.width=""};
_.w.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.w.maybeSetSubscribedButtonIconOnlyWidth=function(){var m=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 G;m.subscribedIconOnlyWidth=(G=m.bellButton)==null?void 0:G.getBoundingClientRect().width;requestAnimationFrame(function(){if(m.bellButton){var K;m.bellButton.textLabel=
(K=m.data)==null?void 0:K.subscribedButtonText}})})))};
_.e_.Object.defineProperties(Rf.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 m;return(m=this.data)==null?void 0:m.subscribedButtonText}var G;return this.forceIconOnly?void 0:(G=this.data)==null?void 0:G.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var m,G,K=((m=this.data)==null?void 0:(G=m.timedAnimationData)==null?void 0:G.animationTiming)||[];return{uniqueId:"subscribe",timings:K,enabled:K.length>0&&!this.subscribed,experimentEnabled:K.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var m;return!this.subscribed&&((m=this.data)==null?void 0:m.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 m={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var G=m.renderer;var K=m.element;var W=m.subscribed;var L=m.commandController;var A=m.isOverlay;m=m.stopPropagation;var O=SzG(G,W);A&&(O.style="overlay");A=Object;var c=A.assign,u;a:switch((u=G.style)==null?void 0:u.styleType){case "COMPACT_GRAY":case "COMPACT_RED":u={size:"S"};break a;default:u={size:"M"}}var h=XnM(G,
W);var J=(J=W?G.subscribedButtonText:G.unsubscribedButtonText)?_.A$(J):void 0;return c.call(A,{},O,u,{focused:!1,toggled:W,accessibilityLabel:h,formattedButtonText:J,onTap:x0M(G,W,K,L,m)})}}}});
Rf.prototype.onMouseDown=Rf.prototype.onMouseDown;Rf.prototype.onDataChanged=Rf.prototype.onDataChanged;Rf.prototype.observedSubscribed=Rf.prototype.observedSubscribed;Rf.prototype.onYtServiceRequestCompleted=Rf.prototype.onYtServiceRequestCompleted;Rf.prototype.onYtServiceRequestSent=Rf.prototype.onYtServiceRequestSent;Rf.prototype.maybeUpdateBellButtonText=Rf.prototype.maybeUpdateBellButtonText;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Rf.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Rf.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Rf.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Rf.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.subscribedEntityKey"],selector:Yzd}),_.S("design:type",Object)],Rf.prototype,"subscriptionStateEntity",void 0);_.x([_.V({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Rf.prototype,"subscribed",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Rf.prototype,"branded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Rf.prototype,"animatedActionEnabled",void 0);
_.x([_.V(),_.S("design:type",Object)],Rf.prototype,"foregroundLottieRef",void 0);_.x([_.V(),_.S("design:type",Object)],Rf.prototype,"backgroundLottieRef",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Rf.prototype,"overlayButton",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.S("design:type",Object)],Rf.prototype,"buttonStyle",void 0);_.x([_.V(),_.S("design:type",Object)],Rf.prototype,"forceIconOnly",void 0);
_.x([_.V(),_.S("design:type",Object)],Rf.prototype,"showTextWhileAnimating",void 0);_.x([_.V({value:function(){return!!_.xS().resolve(_.fn(_.sH))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.S("design:type",Boolean)],Rf.prototype,"useKeyboardFocused",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Rf.prototype,"keyboardFocused",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Rf.prototype,"isAnimating",void 0);_.x([_.E("data.notificationPreferenceButton.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"hasBellButton",null);
_.x([_.Sb("subscribedButtonText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rf.prototype,"maybeUpdateBellButtonText",null);_.x([_.E("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"subscribedButtonText",null);_.x([_.E("data.timedAnimationData.animationTiming","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"smartimationSettings",null);
_.x([_.V({reflectToAttribute:!0}),_.E("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"subscribeButtonHidden",null);_.x([_.V({reflectToAttribute:!0}),_.E("subscribed","hasBellButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"subscribeButtonInvisible",null);
_.x([_.V({reflectToAttribute:!0}),_.E("subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"unsubscribeButtonHidden",null);_.x([_.UM("ytd-subscription-notification-toggle-button-renderer-next"),_.S("design:type",Object)],Rf.prototype,"bellButton",void 0);_.x([_.UM("#subscribe-button-shape"),_.S("design:type",HTMLElement)],Rf.prototype,"subscribeButtonShape",void 0);
_.x([_.E("overlayButton","subscribed","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rf.prototype,"buttonShape",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],Rf.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],Rf.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Sb("subscribed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rf.prototype,"observedSubscribed",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rf.prototype,"onDataChanged",null);_.x([_.XC("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Rf.prototype,"onMouseDown",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Rf);
_.y(Rf,"ytd-subscribe-button-renderer",function(){if($DP!==void 0)return $DP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $DP=m},{mode:1});var Ux=function(){var m=_.d.apply(this,arguments)||this;m.isRichGrid=!1;return m};
_.n(Ux,_.d);Ux.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ux.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ux.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ux.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ux.prototype,"isRichGrid",void 0);_.x([_.Ye({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Ux);
_.y(Ux,"ytd-game-card-renderer",function(){if(ns4!==void 0)return ns4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ns4=m},{mode:1});var zl={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.F("defer_menus")&&!GJG?0:void 0,waitForSignal:"eocs"};var sjC;var quX;var lC=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return m};
_.n(lC,_.d);_.w=lC.prototype;_.w.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.w.onSeriesReminderStateEntityChange=function(){var m,G,K;((m=this.eventReminderStateEntity)==null?0:m.key)&&((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((K=this.eventReminderStateEntity)==null?void 0:K.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Bp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.w.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.w.onYtServiceRequestError=function(){var m;this.updateReminderStateEntitiesFromButtonState((m=this.data)==null?void 0:m.currentState)};
_.w.handleUpdateUpcomingEventReminderButtonStateCommand=function(m){if(m=_.Q(m,NtB)){var G,K=(G=this.data)==null?void 0:G.targetId;K&&m.targetId===K&&_.Dh(this.updateReminderStateEntitiesFromButtonState.bind(this,m.state))}};
_.w.getButtonStateFromReminderState=function(){var m;if(((m=this.seriesReminderStateEntity)==null?void 0:m.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var G;if(((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var K,W;if(((K=this.seriesReminderStateEntity)==null?void 0:K.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((W=this.eventReminderStateEntity)==
null?void 0:W.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var L;return(L=this.data)==null?void 0:L.currentState};
_.w.updateReminderStateEntitiesFromButtonState=function(m){if(m){switch(m){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":m="UPCOMING_EVENT_REMINDER_STATE_NONE";var G="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":m="UPCOMING_EVENT_REMINDER_STATE_SINGLE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":m="UPCOMING_EVENT_REMINDER_STATE_NONE";G="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var K;
((K=this.eventReminderStateEntity)==null?0:K.key)&&this.ytdReduxBehavior.dispatch(_.Bp("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:m})));var W;((W=this.seriesReminderStateEntity)==null?0:W.key)&&this.ytdReduxBehavior.dispatch(_.Bp("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:G})))}};
_.e_.Object.defineProperties(lC.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var m=this.getButtonStateFromReminderState(),G,K;if(m&&((G=this.data)==null?0:(K=G.states)==null?0:K.length))for(G=_.g(this.data.states),K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;if(((W=_.Q(K,DSG))==null?void 0:W.state)===m)return _.Q(K,DSG)}}}});
lC.prototype.onYtServiceRequestError=lC.prototype.onYtServiceRequestError;lC.prototype.onYtServiceRequestCompleted=lC.prototype.onYtServiceRequestCompleted;lC.prototype.onSeriesReminderStateEntityChange=lC.prototype.onSeriesReminderStateEntityChange;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],lC.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lC.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:urf}),_.S("design:type",Object)],lC.prototype,"eventReminderStateEntity",void 0);
_.x([_.V({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(m,G){return _.yx(m.entities,"sportsSeriesReminderStateEntity",G)}}),
_.S("design:type",Object)],lC.prototype,"seriesReminderStateEntity",void 0);_.x([_.E("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],lC.prototype,"currentButtonStateRenderer",null);_.x([_.Sb("seriesReminderStateEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lC.prototype,"onSeriesReminderStateEntityChange",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lC.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lC.prototype,"onYtServiceRequestError",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],lC);
_.y(lC,"ytd-upcoming-event-reminder-button-renderer",function(){if(quX!==void 0)return quX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return quX=m},{mode:1});var Es2;var Bx=function(){return _.d.apply(this,arguments)||this};
_.n(Bx,_.d);Bx.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.e_.Object.defineProperties(Bx.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(_.F("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bx.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bx.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Bx.prototype,"shelfDismissal",void 0);_.x([_.E("data.responseText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Bx.prototype,"text",null);
_.x([_.E("data.responseText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Bx.prototype,"textAriaLabel",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Bx);
_.y(Bx,"ytd-notification-multi-action-renderer",function(){if(Es2!==void 0)return Es2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Es2=m},{mode:1});var HH4;var MU=function(){return _.d.apply(this,arguments)||this};
_.n(MU,_.d);MU.prototype.ready=function(){var m=this;_.VL(this.hostElement).querySelector("#undo").addEventListener("tap",function(){m.onUndoTap()})};
MU.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MU.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],MU);
_.y(MU,"ytd-notification-text-renderer",function(){if(HH4!==void 0)return HH4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HH4=m},{mode:1});var IuF;var Tl=function(){var m=_.d.apply(this,arguments)||this;m.mouseOverDelayJobId=0;m.fadeInImageDelayJobId=0;m.startTimeMs=-1;m.loadingStartTimeMs=-1;m.loadingEndTimeMs=-1;m.hasVideoPreview=!1;return m};
_.n(Tl,_.d);_.w=Tl.prototype;_.w.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.w.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.w.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.w.showThumbnail=function(){var m=this;this.csn=_.gU();_.r9("fmth");_.Fu.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.jA(_.Fu,function(){m.loadingStartTimeMs=(0,_.xD)();var G=_.VL(m.hostElement).querySelector("#thumbnail");G.complete?m.displayMouseOverImage():G.addEventListener("load",_.xC(m,m.displayMouseOverImage))},150):_.dF(_.VL(this.hostElement).querySelector("#play"),"show",!0)};
_.w.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.w.onTap=function(){this.removeVideoPreview()};
_.w.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var m=this.videoId,G=this.csn,K=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,W=this.startTimeMs,L=this.hasVideoPreview,A=_.m5(this.trackingParams),O={isMovingThumbnail:L};L&&W>0&&(K>0&&(O.movingThumbnailLoadingDurationMs=Math.round(K)),O.durationHoveredMs=Math.round((0,_.xD)()-W));m&&(O.videoId=m);_.bd(G,A,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:O});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.w.removeVideoPreview=function(){_.Fu.cancelJob(this.mouseOverDelayJobId);_.Fu.cancelJob(this.fadeInImageDelayJobId);var m=_.VL(this.hostElement).querySelector("#thumbnail");_.dF(m,"fade-in",!1);m.removeEventListener("load",_.xC(this,this.displayMouseOverImage));m=_.VL(this.hostElement).querySelector("#play");_.dF(m,"fade-in",!1);_.dF(m,"show",!1)};
_.w.displayMouseOverImage=function(){var m=_.VL(this.hostElement).querySelector("#thumbnail"),G=_.VL(this.hostElement).querySelector("#play");this.isImageAvailable(m)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.xD)(),this.startTimeMs=(0,_.xD)(),this.fadeInImageDelayJobId=_.jA(_.Fu,function(){_.dF(m,"fade-in",!0)},50)):_.dF(G,"fade-in",!0)};
_.w.computeThumbnail=function(m,G){var K;m&&m.movingThumbnailDetails&&m.movingThumbnailDetails.thumbnails&&G?K=_.qy(m.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):K=G?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(K)return _.MI(K)};
_.w.isImageAvailable=function(m){return!(!m.src||m.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||m.naturalWidth===120)};
Tl.prototype.onTap=Tl.prototype.onTap;Tl.prototype.dataChanged=Tl.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Tl.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Tl.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Tl.prototype,"csn",void 0);_.x([_.V(),_.S("design:type",Object)],Tl.prototype,"trackingParams",void 0);
_.x([_.V(),_.S("design:type",String)],Tl.prototype,"videoId",void 0);_.x([_.V(),_.S("design:type",Boolean)],Tl.prototype,"isAttachedAndDataSet",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tl.prototype,"dataChanged",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Tl.prototype,"onTap",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Tl);
_.y(Tl,"ytd-moving-thumbnail-renderer",function(){if(IuF!==void 0)return IuF;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IuF=m},{mode:1});var jjS;_.eq=function(m){this.hostElement=m;this.eventSink=null;this.eventList=[]};
_.eq.prototype.shouldForward=function(){var m,G;return(G=(m=this.eventSink)==null?void 0:m.isConnected)!=null?G:document.body.contains(this.eventSink)};
_.eq.prototype.start=function(m,G){this.eventSink&&this.stop();for(var K=0;K<m.length;K++)this.hostElement.addEventListener(m[K],_.xC(this,this.forwardEvent));var W;this.eventSink=(W=G.hostElement)!=null?W:G;this.eventList=m};
_.eq.prototype.stop=function(){for(var m=0;m<this.eventList.length;m++)this.hostElement.removeEventListener(this.eventList[m],_.xC(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.eq.prototype.forwardEvent=function(m,G){this.shouldForward()&&(m.stopPropagation(),this.eventSink instanceof Element?_.Zw(this.eventSink,m.type,G):_.nc(new _.cw("eventSink is not an element")))};_.mM={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.eq(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(m,G){this.forwarder_.start(m,G)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var iv=function(){return _.d.apply(this,arguments)||this};
_.n(iv,_.d);_.w=iv.prototype;_.w.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"};
_.w.dataChanged=function(){this.popupOpen=!1};
_.w.computeAriaLabel=function(m){return _.Q(m,H_0).label};
_.w.onTap=function(m){m.stopPropagation();m.preventDefault();this.data.command&&_.xS().resolve(_.S1).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.w.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.w.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
iv.prototype.onPopupClosed=iv.prototype.onPopupClosed;iv.prototype.onPopupOpened=iv.prototype.onPopupOpened;iv.prototype.onTap=iv.prototype.onTap;iv.prototype.dataChanged=iv.prototype.dataChanged;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],iv.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.Gc),_.S("design:type",Object)],iv.prototype,"ironButtonState",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],iv.prototype,"componentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],iv.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:-1}),_.S("design:type",Number)],iv.prototype,"tabindex",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.S("design:type",Object)],iv.prototype,"ariaLabel",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],iv.prototype,"disableTooltips",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],iv.prototype,"popupOpen",void 0);
_.x([_.V(),_.S("design:type",Element)],iv.prototype,"eventSink",void 0);_.x([_.UM("#tooltip"),_.S("design:type",Object)],iv.prototype,"tooltip",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iv.prototype,"dataChanged",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],iv.prototype,"onTap",null);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iv.prototype,"onPopupOpened",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iv.prototype,"onPopupClosed",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],iv);
_.y(iv,"ytd-thumbnail-overlay-button-renderer",function(){if(jjS!==void 0)return jjS;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return jjS=m},{mode:1});var kVR;var Gw=function(){return _.d.apply(this,arguments)||this};
_.n(Gw,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Gw.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Gw.prototype,"disableAnimation",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Gw.prototype,"rounded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Gw.prototype,"transparentBackground",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Gw.prototype,"noPadding",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Gw);
_.y(Gw,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(kVR!==void 0)return kVR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return kVR=m},{mode:1});var Cjk;var Kf=function(){return _.d.apply(this,arguments)||this};
_.n(Kf,_.d);Kf.prototype.computeIconPosition=function(m){return this.get("iconPosition",m)||null};
Kf.prototype.computeIconStyle=function(m){return this.get("iconStyle",m)||null};
Kf.prototype.computeIsIconStyleFilled=function(m){if(!m)return!1;var G;return m.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((G=m.icon)==null?void 0:G.iconType)==="ERROR_BLACK"};
_.x([_.V(),_.S("design:type",Object)],Kf.prototype,"data",void 0);_.x([_.V({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.S("design:type",Object)],Kf.prototype,"iconPosition",void 0);_.x([_.V({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.S("design:type",Object)],Kf.prototype,"iconStyle",void 0);_.x([_.V({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Kf.prototype,"iconStyleFilled",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Kf);
_.y(Kf,"ytd-thumbnail-overlay-icon-renderer",function(){if(Cjk!==void 0)return Cjk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Cjk=m},{mode:1});var VtG;var Wr=function(){return _.d.apply(this,arguments)||this};
_.n(Wr,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wr.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Wr);
_.y(Wr,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(VtG!==void 0)return VtG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return VtG=m},{mode:1});var ZH4;var Lf=function(){var m=_.d.apply(this,arguments)||this;m.isPreviewLoading=!1;return m};
_.n(Lf,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lf.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lf.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lf.prototype,"isPreviewLoading",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Lf);
_.y(Lf,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(ZH4!==void 0)return ZH4;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZH4=m},{mode:1});var dD4;var AG=function(){return _.d.apply(this,arguments)||this};
_.n(AG,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],AG.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],AG);
_.y(AG,"ytd-thumbnail-overlay-pinking-renderer",function(){if(dD4!==void 0)return dD4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dD4=m},{mode:1});var Pj0;var wI=function(){var m=_.d.apply(this,arguments)||this;m.disableTooltips=!1;m.isLoading=!1;m.useExpandableTooltip=!1;m.toggled=!1;m.hovered=!1;m.mouseoverDelayJobId=0;m.toggleDelayJobId=0;m.expandAnimationDelayJobId=0;return m};
_.n(wI,_.d);_.w=wI.prototype;_.w.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");_.VL(this.hostElement).querySelector("#tooltip").position=_.E8("HTML_DIR")==="rtl"?"right":"left"};
_.w.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Fu.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Fu.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Fu.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.w.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Fu.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Fu.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Fu.cancelJob(this.expandAnimationDelayJobId)};
_.w.computeIcon=function(m,G,K){return(m=K?G:m)&&m.iconType?_.ew(m.iconType):void 0};
_.w.computeAriaLabel=function(m,G,K){return _.Q(K?G:m,H_0).label};
_.w.computeTooltip=function(m,G,K){return K?G:m};
_.w.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.w.computeIconOnHover=function(m,G){if((m==null?0:m.iconType)&&!G)return _.ew(m.iconType)};
_.w.onTap=function(m){var G=this;m.stopPropagation();m.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(m=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(m),this.useExpandableTooltip&&(this.toggleDelayJobId=_.jA(_.Fu,function(){G.hovered=!1;G.data&&!G.data.toggledServiceEndpoint&&(G.expandAnimationDelayJobId=_.jA(_.Fu,function(){G.set("data.isToggled",
!1)},200))},2E3))};
_.w.onMouseenter=function(){var m=this;this.mouseoverDelayJobId=_.jA(_.Fu,function(){m.hovered=!0},300)};
_.w.onMouseleave=function(){_.Fu.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.w.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.w.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.w.onServiceRequestCompleted=function(m,G){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(G)||this.set("data.isToggled",!this.data.isToggled)};
_.w.serviceRequestWasSuccessful=function(m){return _.Q(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.cB)?m.data.status==="STATUS_SUCCEEDED":!0};
wI.prototype.onServiceRequestCompleted=wI.prototype.onServiceRequestCompleted;wI.prototype.onPopupClosed=wI.prototype.onPopupClosed;wI.prototype.onPopupOpened=wI.prototype.onPopupOpened;wI.prototype.onMouseleave=wI.prototype.onMouseleave;wI.prototype.dataChanged=wI.prototype.dataChanged;_.x([_.q(_.Gc),_.S("design:type",Object)],wI.prototype,"ironButtonState",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],wI.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wI.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.S("design:type",Object)],wI.prototype,"ariaLabel",void 0);_.x([_.V(),_.S("design:type",Object)],wI.prototype,"disableTooltips",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],wI.prototype,"popupOpen",void 0);_.x([_.V(),_.S("design:type",Object)],wI.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Element)],wI.prototype,"eventSink",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wI.prototype,"useExpandableTooltip",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.S("design:type",Object)],wI.prototype,"toggled",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wI.prototype,"hovered",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.S("design:type",Object)],wI.prototype,"iconOnHover",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wI.prototype,"dataChanged",null);
_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wI.prototype,"onMouseleave",null);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wI.prototype,"onPopupOpened",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wI.prototype,"onPopupClosed",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],wI.prototype,"onServiceRequestCompleted",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],wI);
_.y(wI,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Pj0!==void 0)return Pj0;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Pj0=m},{mode:2});var ynK;var e1F=_.P(function(m){var G=m.data;var K=m.thumbnailSize;var W=function(){return G().enableSegmentView};
return _.r("yt-thumbnail-overlay-progress-bar-view-model",{class:_.VO("ytThumbnailOverlayProgressBarHost",function(){return RcV(K==null?void 0:K())})},_.r(_.p,{cond:W,
then:function(){return _.r("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.r("div",{class:_.KQ("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+G().startPercent+"%"}}),_.r("div",{class:_.KQ("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+G().segmentDurationPercent+"%"}},_.r("div",{class:_.KQ("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.r("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.r("div",null," ",function(){return G().segmentLabel})),_.r("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.r("div",{class:_.KQ("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.r(_.p,{cond:function(){return!W()&&G().startPercent},
then:function(){var L={};return _.r("div",{class:_.KQ("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(L.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.F("web_enable_modern_progress_bar_overlay"),L))},_.r("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+G().startPercent+"%"}}))}}))},"Ha");
e1F.idomCompat=!0;_.fuk=_.P(function(m){var G=_.e5(),K=_.RC(function(L){var A,O,c;a:{var u=(A=m.data())==null?void 0:A.animationActivationTargetId;A=((O=m.data())==null?void 0:O.animationActivationEntityKey)||"";O=(c=m.data())==null?void 0:c.animationActivationEntitySelectorType;if(A&&u)switch(O){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":L=_.ZJ(L,A);c=_.xS().resolve(_.fn(_.pY));u=!!(L&&L.videoId===u&&(c==null?0:c.isMiniplayerActive()));u={activated:u,playAnimation:u&&L.playerState==="PLAYER_STATE_PLAYING"};
break a}u=void 0}return u});
_.$O(function(){var L;if((L=K())==null?0:L.activated){var A;if((A=K())==null?0:A.playAnimation){var O;(O=G.lottieEl)==null||O.goToAndPlay(0)}else{var c;(c=G.lottieEl)==null||c.goToAndStop(0)}}},"DbQiXd");
var W=function(){var L,A=!((L=K())==null||!L.activated);if(m.data()){L=m.data();var O=void 0;L.icon&&(O=_.NXP(L.icon),O=vH9(O));var c=void 0,u;if((u=L.backgroundColor)==null?0:u.lightTheme){var h;c={backgroundColor:YC((h=L.backgroundColor)==null?void 0:h.lightTheme,"0.8")}}if(L.text||O||A){if(A&&L.lottieData&&G){h=L.lottieData;var J,N,D;u={animationConfig:{name:h.url,path:h.url,autoplay:(J=h.settings)==null?void 0:J.autoplay,loop:(D=(N=h.settings)==null?void 0:N.loop)!=null?D:!0},animationRef:G}}else u=
void 0;if(A)J=17;else b:switch(L.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":J=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":J=19;break b;default:J=17}A={type:J,text:A&&L.animatedText?L.animatedText:L.text,icon:O,customColors:c,animation:u}}else A=void 0}else A=void 0;return A};
return _.r("yt-thumbnail-badge-view-model",{class:_.VO("ytThumbnailBadgeViewModelHost",m.class)},_.r(_.p,{cond:W,then:function(){return _.r(_.pk,{data:function(){return W()}})}}))},"Ja");var xD2=_.P(function(m){var G={},K={};return _.r("yt-thumbnail-bottom-overlay-view-model",{class:_.VO("ytThumbnailBottomOverlayViewModelHost",(G.ytThumbnailBottomOverlayViewModelHostBackground=function(){return m.data().enableGradientBackground},G))},_.r(_.z$,{data:function(){return m.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(W){return _.r(e1F,{data:W.data,
thumbnailSize:m.thumbnailSize})}}),_.r("div",{class:_.VO("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var W;
return U0J((W=m.thumbnailSize)==null?void 0:W.call(m))},(K.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var W;
return(W=m.isClip)==null?void 0:W.call(m)},K.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var W;
return!_.F("web_enable_modern_progress_bar_overlay")&&((W=m.thumbnailSize)==null?void 0:W.call(m))==="small"},K))},_.r(_.z$,{data:function(){return m.data().badge}},{thumbnailBadgeViewModel:function(W){return _.r(_.fuk,{data:W.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.r(_.z$,{data:function(){return m.data().badges}},{thumbnailBadgeViewModel:function(W){return _.r(_.fuk,{data:W.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ka");
xD2.idomCompat=!0;_.sh(xD2,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.nN,thumbnailSize:_.nN,isClip:_.nN}});var gI=_.P(function(m){var G=m.data;var K=m.className;m=m.alwaysShow;var W=_.liJ(),L={};return _.r("thumbnail-hover-overlay-view-model",{el:_.aC(_.On(function(){return G().rendererContext})),
class:_.VO("ytThumbnailHoverOverlayViewModelHost",K,(L.ytThumbnailHoverOverlayViewModelHostForceHover=m,L)),"aria-label":function(){var A;return(A=_.Q(G().rendererContext,_.MB))==null?void 0:A.label},
role:function(){return _.wH(G().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.wH(G().rendererContext)!==void 0?0:void 0},
"on:keypress":W},_.r("div",{class:_.VO("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(G().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var A="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:A="ytThumbnailHoverOverlayViewModelStyleCover"}return A})},_.r(_.p,{cond:function(){return G().icon},
then:function(A){return _.r(_.oC,{data:A,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.r(_.p,{cond:function(){return G().text},
then:function(A){return _.r(_.Nm,{text:A,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ma");
gI.idomCompat=!0;var X6B=_.P(function(m){var G=m.data;return _.r(_.z$,{data:function(){return G==null?void 0:G().overlays}},{thumbnailHoverOverlayViewModel:gI})},"Na");
X6B.idomCompat=!0;var SuS={};var R12=_.P(function(m){var G=m.data;var K=m.image;var W=m.state;var L=m.iconType;var A=m.overlays;var O=m.isOverlay;var c=_.aP("div");m=_.g(_.g_(!0,void 0,"AA4e7b"));var u=m.next().value,h=m.next().value,J=function(){return!!G().onTap},N=_.sQ(L,"LIVE");
_.$O(function(){var t=G();requestAnimationFrame(function(){if(c.value===null)var a=!0;else{var v=c.value;a=t.badgeText;var I=WwF(t.size);a in SuS?v=SuS[a]:(v=v.clientWidth,SuS[a]=v);(a=v>I)?c.value.style.display="none":c.value.style.visibility="visible"}h(a)})},"vNdN8b");
var D=function(){var t={};return t["yt-spec-avatar-shape__image"]=!0,t["yt-spec-avatar-shape__image--ads-app"]=G().type===1,t["yt-spec-avatar-shape__image--inscribed-square"]=G().type===2,t};
return _.r("yt-avatar-shape",null,_.r("div",{el:_.aC(Anf(J,{keydown:function(t){if(t.key==="Enter"){var a;(a=t.currentTarget)==null||a.click()}},
click:function(t){var a,v;return void((v=(a=G()).onTap)==null?void 0:v.call(a,t))}})),
class:function(){var t={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},a=G();t=(t[a.clusterLayoutConfig?OHd(a.clusterLayoutConfig):cnG(a.size)]=!0,t["yt-spec-avatar-shape__button--tappable"]=J(),t);(a=G().avatarButtonCustomClassName)&&(t[a]=!0);return _.KQ(t)},
"aria-label":function(){return J()?G().accessibilityText:""},
role:function(){return J()?"button":void 0},
tabindex:function(){return J()?0:void 0}},_.r("div",{class:function(){var t,a=G(),v=W==null?void 0:W(),I=O==null?void 0:O(),Z=!((t=a.decorations)==null||!t.includes(2)||a.size!=="medium"&&a.size!=="large"),k=a.size==="tiny"||a.size==="extra-small",z,X,f,U,l={};
t=(l["yt-spec-avatar-shape--live-ring"]=!!(((z=a.decorations)==null?0:z.includes(0))&&rnd(a.size)),l["yt-spec-avatar-shape--stories-watched"]=Z&&!(v==null||!v.storiesWatched),l["yt-spec-avatar-shape--stories-unwatched"]=Z&&!(v==null?0:v.storiesWatched),l["yt-spec-avatar-shape--background-border"]=uIP(a.decorations)&&!k,l["yt-spec-avatar-shape--background-border-thin"]=uIP(a.decorations)&&k,l["yt-spec-avatar-shape__on-select-border"]=!((X=a.decorations)==null||!X.includes(4)),l["yt-spec-avatar-shape__white-border"]=
!((f=a.decorations)==null||!f.includes(5)),l["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((U=a.decorations)==null?0:U.includes(5))&&k),l["yt-spec-avatar-shape--is-overlay"]=!!I,l);return _.KQ(t)},
style:function(){a:{var t=G().clusterLayoutConfig;if(t){b:{var a=t.numAvatarsInCluster;var v=t.avatarIndex;if(v!==a-1){switch(t.clusterSize){case "small":t="32";break;case "medium":t="36";break;case "40":t="40";break;default:a=void 0;break b}a="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+t+"x"+t+"_avatars_"+a+"_index_"+v+".svg"}else a=void 0}if(a){a=_.eA({"-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}},_.r("div",{class:function(){var t={};
var a=G();t=(t[a.clusterLayoutConfig?w6s(a.clusterLayoutConfig):gsv(a.size)]=!0,t["yt-spec-avatar-shape--no-margin"]=uIP(G().decorations),t["yt-spec-avatar-shape--square"]=G().type===2,t);return _.KQ(t)}},_.r(_.oC,{data:K,
alt:function(){return!J()&&G().accessibilityText?G().accessibilityText:""},
targetWidth:function(){return YuP(G().size)},
targetHeight:function(){return YuP(G().size)},
className:function(){return _.KQ(D())}}),_.r(_.p,{cond:function(){var t;
return((t=G().decorations)==null?void 0:t.includes(0))&&rnd(G().size)},
then:function(){return _.r("div",{class:function(){var t={};t=(t["yt-spec-avatar-shape__live-badge"]=!0,t["yt-spec-avatar-shape__live-badge--badge-small"]=G().size==="small",t["yt-spec-avatar-shape__live-badge--badge-medium"]=G().size==="medium"||G().size==="48",t["yt-spec-avatar-shape__live-badge--badge-large"]=G().size==="large",t["yt-spec-avatar-shape__live-badge--badge-extra-large"]=G().size==="extra-large"||G().size==="extra-extra-large"||G().size==="giant",t);return _.KQ(t)}},_.r(_.p,{cond:function(){return G().badgeText},
then:function(t){return _.r("div",{class:"yt-spec-avatar-shape__badge-text",el:c},t)}}),_.r(_.p,{cond:u,
then:function(){return _.r("div",{class:"yt-spec-avatar-shape__badge-icon"},_.r(_.fN,{icon:N,size:function(){a:switch(G().size){case "extra-large":var t=16;break a;default:t=13}return t}}))}}))}}),_.r(_.p,{cond:function(){var t,a;
return((t=G().decorations)==null?void 0:t.includes(1))||((a=G().decorations)==null?void 0:a.includes(0))&&!rnd(G().size)},
then:function(){return _.r("div",{class:function(){var t=G(),a,v,I={};var Z=(I["yt-spec-avatar-shape__live-dot"]=!((a=t.decorations)==null||!a.includes(0)||rnd(t.size)),I["yt-spec-avatar-shape__new-content"]=!((v=t.decorations)==null||!v.includes(1)),I);return _.KQ(Z)}})}}),_.r(_.p,{cond:function(){return!!A},
then:function(){return _.r("div",{class:function(){var t={};t=Object.assign((t["yt-spec-avatar-shape__image-overlays"]=!0,t),D());return _.KQ(t)}},A==null?void 0:A())}})))))},"Qa");
R12.idomCompat={callbacks:{overlays:!0}};_.O9=_.P(function(m){function G(){K().endpoint&&_.h$(K().endpoint)}
var K=m.data;var W=m.decorations;var L=m.avatarButtonCustomClassName;var A=m.isOverlay;var O=m.clusterLayoutConfig;return _.r("avatar-view-model",null,_.r(_.p,{cond:function(){return K().image},
then:function(c){return _.r(R12,{data:function(){return p6G({data:K(),onTap:K().endpoint?G:void 0,decorations:W==null?void 0:W(),badgeText:void 0,accessibilityText:K().accessibilityText,avatarButtonCustomClassName:L==null?void 0:L(),clusterLayoutConfig:O==null?void 0:O()})},
image:c,iconType:"RADAR_LIVE",overlays:function(){return _.r(X6B,{data:K})},
isOverlay:A})}}))},"Ra");
_.O9.idomCompat=!0;_.cr=_.P(function(m){var G=m.data;m=m.className;var K=_.aP("yt-decorated-avatar-view-model"),W=function(){return _.Q(G().avatar,_.YA)},L=_.pT(function(){var A,O=G(),c=W(),u=_.wH(G().rendererContext),h=(A=K.value)!=null?A:void 0,J;
if(c){h={data:O,avatar:c,onTap:u,element:h};A=h.data;O=h.avatar;c=h.onTap;u=h.element;h=h.commandController;c=c?ttd(c,u,h):void 0;u=[];A.liveData&&u.push(0);var N;h=(N=A.liveData)==null?void 0:N.liveBadgeText;N=(J=_.Q(A.rendererContext,_.MB))==null?void 0:J.label;J=p6G({data:O,onTap:c,decorations:u,badgeText:h,accessibilityText:N?N:A.a11yLabel})}else J={size:"medium"};return J},void 0,"c00kWd");
return _.r("yt-decorated-avatar-view-model",{class:_.VO("ytDecoratedAvatarViewModelHost",m),el:K},_.r(_.p,{cond:function(){var A;return(A=W())==null?void 0:A.image},
then:function(A){return _.r(R12,{data:L,image:A,iconType:"RADAR_LIVE",overlays:function(){return _.r(X6B,{data:W})}})}}))},"Sa");
_.cr.idomCompat=!0;_.YU=_.P(function(m){var G=function(){var c;return Object.assign({},m.data(),(c=m.overrides)==null?void 0:c.call(m))},K=function(){return _.gH(G().rendererContext)},W=function(){var c=G().avatars,u,h;
return(h=(u=(c==null?0:c[0])?_.Q(c[0],_.YA):void 0)==null?void 0:u.avatarImageSize)!=null?h:"AVATAR_SIZE_UNKNOWN"},L=function(){return DDJ(G())},A=function(){if(G().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var c=void 0;
else if((c=m.decorations)==null?0:c.call(m))c=m.decorations();else{c=G();var u=0;c.avatars&&(u+=c.avatars.length);c.decoratedText&&(u+=1);c=u>1?[3]:[]}return c},O={};
return _.r("yt-avatar-stack-view-model",{el:_.aC(_.On(function(){return G().rendererContext})),
class:_.VO("yt-avatar-stack-view-model",m.className,(O["yt-avatar-stack-view-model--tappable"]=K,O["yt-avatar-stack-view-model--is-overlay"]=m.isOverlay,O["yt-avatar-stack-view-model--medium-text"]=m.useMediumText,O)),tabindex:function(){return K()?0:void 0},
role:function(){return K()?"link":void 0},
"aria-label":function(){var c,u;return(u=(c=_.Q(G().rendererContext,_.MB))==null?void 0:c.label)!=null?u:""}},_.r(_.p,{cond:function(){var c;
return G().avatars&&!((c=m.hideAvatar)==null?0:c.call(m))},
then:function(){return _.r("div",{class:"yt-avatar-stack-view-model__avatars"},_.r(_.p,{cond:function(){return G().decoratedText},
then:function(c){var u={};return _.r("div",{class:_.VO("yt-avatar-stack-view-model__text-container",(u["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return W()==="AVATAR_SIZE_XXS"||W()==="AVATAR_SIZE_XS"},u["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var h;
return((h=m.isOverlay)==null?void 0:h.call(m))&&(W()==="AVATAR_SIZE_XXS"||W()==="AVATAR_SIZE_XS")},u)),
style:_.eA({width:function(){return L().avatarSizeInPx+"px"},
height:function(){return L().avatarSizeInPx+"px"}})},_.r(_.Nm,{text:c,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.r("div",{style:function(){return _.eA(L().avatarStackStyle)()},
class:function(){return L().avatarStackClass}},_.r(_.z$,{data:function(){return L().avatars.reverse()}},{avatarViewModel:function(c,u){return _.r("div",{style:function(){var h,J;
return _.eA((J=(h=L()).avatarStyle)==null?void 0:J.call(h,u()))()},
class:function(){return L().avatarClass}},_.r(_.O9,{data:c.data,
decorations:A,avatarButtonCustomClassName:function(){return L().avatarButtonCustomClassName},
isOverlay:m.isOverlay,clusterLayoutConfig:function(){var h,J;return(J=(h=L()).clusterLayoutConfig)==null?void 0:J.call(h,u())}}))},
decoratedAvatarViewModel:function(c,u){return _.r("div",{style:function(){var h,J;return _.eA((J=(h=L()).avatarStyle)==null?void 0:J.call(h,u()))()},
class:function(){return L().avatarClass}},_.r(_.cr,{data:c.data}))}})))}}),_.r(_.p,{cond:function(){return G().text},
then:function(c){return _.r(_.Nm,{text:c,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ta");
_.YU.idomCompat=!0;_.sh(_.P(function(m){var G=m.data;var K=m.thumbnailSize;return _.r("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.r("div",{class:_.VO("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Fwo(K==null?void 0:K())})},_.r(_.z$,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(W){return _.r(_.YU,{data:W.data,
decorations:[5]})}})))},"Ua"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Dd,
thumbnailSize:_.Dd}});var UDk=_.P(function(m){m=_.ql(m,{hidden:!1});var G=m.data;m=m.hidden;return _.r("yt-thumbnail-overlay-title-view-model",{class:_.VO("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(G().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var K="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:K="ytThumbnailOverlayTitleViewModelPositionTop"}return K}),
hidden:m},_.r(_.p,{cond:function(){return G().leadingContent},
then:function(K){return _.r("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.r(_.z$,{data:K},{decoratedAvatarViewModel:_.cr}))}}),_.r("div",null,_.r(_.Nm,{text:function(){return G().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(){return _.r(_.Nm,{text:function(){return G().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Va");
UDk.idomCompat=!0;_.sh(UDk,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Dd,hidden:_.Dd}});_.z1l=_.P(function(m){m=_.ql(m,{isClip:!1});var G=m.data,K=m.thumbnailSize,W={};return _.r("yt-thumbnail-overlay-badge-view-model",{class:_.VO("yt-thumbnail-overlay-badge-view-model",function(){a:switch(G().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var L="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:L="yt-thumbnail-overlay-badge-view-model--bottom-end"}return L},function(){return QjJ(K==null?void 0:K())},(W["yt-thumbnail-overlay-badge-view-model--clip"]=m.isClip,
W))},_.r(_.z$,{data:function(){return G().thumbnailBadges}},{thumbnailBadgeViewModel:function(L){return _.r(_.fuk,{data:L.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Wa");
_.z1l.idomCompat=!0;_.sh(_.z1l,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Dd,thumbnailSize:_.Dd,isClip:_.Dd}});var luP=_.P(function(m){var G=m.data;m=m.hidden;var K=_.pT(function(){return G().indicatorCount||0},void 0,"AbKnMc"),W={};
return _.r("yt-page-indicator-view-model",{class:_.VO("ytPageIndicatorViewModelHost",(W.ytPageIndicatorViewModelIndicatorHidden=function(){return!G().indicatorCount},W)),
hidden:m},_.r(_.D0,{each:function(){return Array(K())}},function(L,A){var O={};
return _.r("div",{class:_.VO("ytPageIndicatorViewModelIndicator",(O.ytPageIndicatorViewModelIndicatorSelected=function(){return G().selectedIndex===A()},O))})}))},"Xa");
luP.idomCompat=!0;_.sh(luP,"yt-page-indicator-view-model",{props:{data:_.Dd,hidden:_.Dd}});var rI=function(){var m=_.d.apply(this,arguments)||this;m.eventSink=function(){return m};
m.disableInteraction=!1;m.noRoundedCorners=!1;m.isPreviewLoading=!1;m.isOriginalAspectRatio=!1;m.computedObjectFit=!1;m.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return m};
_.n(rI,_.d);_.w=rI.prototype;
_.w.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:_.F("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"}}};
_.w.onImageLoaded=function(){this.loaded=!0};
_.w.onImageUnloaded=function(){this.loaded=!1};
_.w.computeRichThumbnail=function(m,G,K,W){if(m&&G&&!W&&!_.F("disable_moving_thumbs_handling")&&!K)return G};
_.w.computeImageWidth=function(m,G){return G||9999};
_.w.computeIsOriginalAspectRatio=function(m){return m};
_.w.computeIsLive=function(m){if(m==null?0:m.badges)for(var G=0;G<m.badges.length;G++){var K=m.badges[G];if(K.metadataBadgeRenderer&&K.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(m==null?0:m.thumbnailOverlays)for(G=0;G<m.thumbnailOverlays.length;G++)if(K=m.thumbnailOverlays[G],K.thumbnailOverlayTimeStatusRenderer&&K.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.w.computeObjectFit=function(m,G){return G||(m?"CONTAIN":"")};
_.w.computeNavigationEndpoint=function(m,G,K){return m?G:K};
_.w.computeHasClip=function(m){m=_.g(m||[]);for(var G=m.next();!G.done;G=m.next())if(G.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.w.computeOverlayColor=function(m){var G;return(m==null?0:(G=m.darkColorPalette)==null?0:G.section2Color)?m.darkColorPalette.section2Color:m==null?void 0:m.sampledThumbnailColor};
_.e_.Object.defineProperties(rI.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.zQv(this.width)}}});
rI.prototype.onImageUnloaded=rI.prototype.onImageUnloaded;rI.prototype.onImageLoaded=rI.prototype.onImageLoaded;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],rI.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q($XP),_.S("design:type",Object)],rI.prototype,"ytdThumbnailBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rI.prototype,"componentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],rI.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rI.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],rI.prototype,"circular",void 0);
_.x([_.V({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.S("design:type",Object)],rI.prototype,"richThumbnail",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.S("design:type",Boolean)],rI.prototype,"hasClip",void 0);_.x([_.V(),_.S("design:type",Object)],rI.prototype,"eventSink",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],rI.prototype,"queued",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],rI.prototype,"richGridThumbnail",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],rI.prototype,"useExpandableTooltip",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],rI.prototype,"useUntranslatedNavigationEndpoint",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rI.prototype,"disableInteraction",void 0);
_.x([_.V({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.S("design:type",Object)],rI.prototype,"computedNavigationEndpoint",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],rI.prototype,"nowPlayingEqualizerOnly",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],rI.prototype,"hidePlaybackStatus",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],rI.prototype,"objectFit",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rI.prototype,"noRoundedCorners",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],rI.prototype,"watchFeedThumbnail",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rI.prototype,"isPreviewLoading",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.S("design:type",Object)],rI.prototype,"isOriginalAspectRatio",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.S("design:type",Object)],rI.prototype,"computedObjectFit",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.S("design:type",Boolean)],rI.prototype,"isLiveVideo",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],rI.prototype,"loaded",void 0);_.x([_.V({computed:"computeOverlayColor(data.thumbnail)"}),_.S("design:type",Object)],rI.prototype,"overlayColor",void 0);_.x([_.V(),_.S("design:type",Boolean)],rI.prototype,"minimizePipBreakages",void 0);_.x([_.V({selector:_.Quf}),_.S("design:type",Boolean)],rI.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.V(),_.S("design:type",Number)],rI.prototype,"width",void 0);
_.x([_.E("inlinePreviewIsEnabled"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rI.prototype,"isPreviewDisabled",null);_.x([_.E("width"),_.S("design:type",String),_.S("design:paramtypes",[])],rI.prototype,"thumbnailSize",null);_.x([_.XC("image-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rI.prototype,"onImageLoaded",null);
_.x([_.XC("image-unloaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rI.prototype,"onImageUnloaded",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-thumbnail"})],rI);
_.Vz()(rI,"ytd-thumbnail",function(){if(ynK===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);ynK=m}m=ynK;return m},{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 minimizePipBreakages".split(" "),mode:2});var ns9=function(m){var G=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15349_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15349_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(K){BgK(G,K)};
this.onLockupMouseLeaveFn=function(K){K=K.relatedTarget;var W,L;((W=document.getElementsByTagName("ytd-video-preview"))==null?0:(L=W.item(0))==null?0:L.contains(K))||(G.terminateVideoPreview(),uv(G))};
this.onThumbnailMouseDownFn=function(){G.terminateVideoPreview();uv(G)};
this.onTouchStart=function(){G.JSC$15349_touched=!0};
this.mediaRenderer=m.mediaRenderer;this.thumbnailElement=m.thumbnailElement;this.lockupElement=m.lockupElement;this.videoPreviewOptsInput=m.videoPreviewOpts;MtP(this);hG(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)):
_.nc(Error("Hh")):_.nc(Error("Ih")):Tgi(this)},qa=function(m){Tgi(m);
var G;(G=m.lockupElement)==null||G.removeEventListener("mouseenter",m.onMouseMoveFn);var K;(K=m.lockupElement)==null||K.removeEventListener("mouseleave",m.onLockupMouseLeaveFn);var W;(W=m.lockupElement)==null||W.removeEventListener("touchstart",m.onTouchStart);var L;(L=m.thumbnailElement)==null||L.removeEventListener("mousedown",m.onThumbnailMouseDownFn);uv(m)},MtP=function(m){m.inlinePreviewIsEnabledForUser=_.$R().getState().ui.inlinePreviewIsEnabled;
m.unsubscribeFromInlinePreviewIsEnabled=_.BB(_.$R(),_.Quf,function(G){(m.inlinePreviewIsEnabledForUser=G)||uv(m)});
m.JSC$15349_unsubscribeFromInlinePreviewIsActive=_.BB(_.$R(),_.FsP,function(G){(m.inlinePreviewIsActive=G)||uv(m)})},Tgi=function(m){m.unsubscribeFromInlinePreviewIsEnabled();
m.unsubscribeFromInlinePreviewIsEnabled=function(){};
m.JSC$15349_unsubscribeFromInlinePreviewIsActive();m.JSC$15349_unsubscribeFromInlinePreviewIsActive=function(){}},BgK=function(m,G){G.buttons>0||(G=_.U8("kevlar_lockup_hover_delay",-1),m.JSC$15349_touched&&G>=0?(_.Fu.cancelJob(m.videoPreviewJobId),m.videoPreviewJobId=_.jA(_.Fu,function(){m5X(m)},G),m.JSC$15349_touched=!1):m5X(m))},FRd=function(m){m.videoPreviewJobId=_.jA(_.Fu,function(){return _.Y(function(G){return G.yield(ijF(m,{isAutoplay:!0}),0)})})},m5X=function(m){!m.previewTriggered&&hG(m)&&
(m.inlinePreviewIsActive&&m.terminateVideoPreview(),m.previewTriggered=!0,m.mediaRenderer.isInlinePreviewTriggered=!0,_.Fu.cancelJob(m.videoPreviewJobId),m.videoPreviewJobId=_.jA(_.Fu,function(){return _.Y(function(G){return G.yield(ijF(m),0)})}))},ijF=function(m,G){G=G===void 0?{}:G;
var K=G.isAutoplay===void 0?!1:G.isAutoplay;var W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){if(!hG(m))return c.return();W=m.getVideoPreviewOpts();if(!W)return c.return();K&&(W.isAutoplay=!0);return(A=(L=_.PH(m.mediaRenderer.hostElement,"yt-open-video-preview-action",[W]))&&L[0])?c.yield(L[0],3):c.jumpTo(2)}c.nextAddress!=2&&(A=c.yieldResult===1);if(A){var u=(O=m.mediaRenderer)==null?void 0:O.data;u&&(osV(u)?delete u.inlinePlayerData:"inlinePlaybackEndpoint"in u&&delete u.inlinePlaybackEndpoint)}_.ey(c)})};
ns9.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var m,G;if((G=(m=this.videoPreviewOptsInput)==null?void 0:m.videoPreviewData)!=null)m=G;else if(m=this.mediaRenderer.data)if(osV(m))m={inlinePlaybackEndpoint:_.c8(m.inlinePlayerData.onVisible),navigationEndpoint:_.c8(m.onTap),thumbnail:"image"in m?m.image:m.thumbnail,thumbnailOverlays:void 0,accessibilityText:auo(m)};else if("multipleInlinePlaybackEndpoint"in m){var K=_.Q(_.Q(m.multipleInlinePlaybackEndpoint,BN4),t6M);if(K!=
null&&K.playerDescriptors){G=[];K=_.g(K.playerDescriptors);for(var W=K.next();!W.done;W=K.next())W=W.value,G.push({inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:auo(m)});m=G}else m=void 0}else m={inlinePlaybackEndpoint:m.inlinePlaybackEndpoint,navigationEndpoint:m.navigationEndpoint,thumbnail:m.thumbnail,thumbnailOverlays:m.thumbnailOverlays,accessibilityText:auo(m)};else m=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:m,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var hG=function(m){var G;if(G=m.inlinePreviewIsEnabledForUser)G=(m=m.mediaRenderer.data)?"inlinePlaybackEndpoint"in m&&m.inlinePlaybackEndpoint||osV(m)&&m.inlinePlayerData||"multipleInlinePlaybackEndpoint"in m&&m.multipleInlinePlaybackEndpoint?!0:!1:!1;return G};
ns9.prototype.terminateVideoPreview=function(){_.dU(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var uv=function(m){_.Fu.cancelJob(m.videoPreviewJobId);m.inlinePreviewIsActive=!1;m.previewTriggered=!1;m.mediaRenderer.isInlinePreviewTriggered=!1};var GAC=_.nY(["#"]),pf=function(){var m=_.d.apply(this,arguments)||this;m.isDisabled=!1;return m};
_.n(pf,_.d);_.w=pf.prototype;
_.w.configureRendererStamper=function(){return{"data.menu":zl,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.getMetadata=function(m){var G=[];if(m.metadataText&&Object.keys(m.metadataText).length>0){var K=this.ytRendererBehavior.getSimpleString(m.metadataText);m.upcomingEventData&&m.upcomingEventData.upcomingEventText&&(K=_.ik(K,Number(m.upcomingEventData.startTime)));G.push(K)}else m.shortViewCountText&&G.push(this.ytRendererBehavior.getSimpleString(m.shortViewCountText)),m.publishedTimeText&&G.push(this.ytRendererBehavior.getSimpleString(m.publishedTimeText)),m.upcomingEventData&&m.upcomingEventData.upcomingEventText&&
(K=this.ytRendererBehavior.getSimpleString(m.upcomingEventData.upcomingEventText),G.push(_.ik(K,Number(m.upcomingEventData.startTime))));return G};
_.w.calculateBylineText=function(m){return m.shortBylineText?m.shortBylineText:m.bylineText?m.bylineText:null};
_.w.calculateIsDisabled=function(m){return!!m.isDisabled};
_.w.computeHrefWithDefault=function(m){return this.ytComponentBehavior.computeHref_(m)||_.ord(GAC)};
_.w.onDetailsTap=function(m){var G=this.data&&this.data.navigationEndpoint;G&&!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.F("kevlar_grid_video_renderer_killswitch")?_.Zw(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.w.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15356_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:_.VL(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.VL(this.hostElement).querySelector("ytd-thumbnail")})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$15356_inlinePreviewHoverListener)==null||qa(m)};
_.w.computeThumbnailWidth=function(m,G){return G&&G>0?G:m?360:210};
_.w.computeNumBadgesInRow=function(m){var G;return((G=m.badges)==null?void 0:G.length)||0};
_.w.computeShowChannelThumbnail=function(m,G){var K;return G&&!!(m==null?0:(K=m.channelThumbnailSupportedRenderers)==null?0:K.channelThumbnailWithLinkRenderer)};
_.e_.Object.defineProperties(pf.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$15356_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
pf.prototype.dataChanged=pf.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],pf.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],pf.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.Dn),_.S("design:type",Object)],pf.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],pf.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pf.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],pf.prototype,"noEndpoints",void 0);_.x([_.V({computed:"calculateBylineText(data)"}),_.S("design:type",Object)],pf.prototype,"bylineText",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pf.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pf.prototype,"isDownloading",void 0);_.x([_.V({reflectToAttribute:!0,value:0}),_.S("design:type",Number)],pf.prototype,"width",void 0);_.x([_.V({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.S("design:type",Object)],pf.prototype,"isDisabled",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pf.prototype,"dataChanged",null);_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pf.prototype,"isHovered",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pf.prototype,"hasAttributedBylineText",null);
_.x([_.E("bylineText","hasAttributedBylineText"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],pf.prototype,"showBylineText",null);_.x([_.Ye({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],pf);
_.y(pf,"ytd-grid-video-renderer",function(){if(sjC!==void 0)return sjC;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sjC=m},{mode:2});var Kki;var JG=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.skipRoundingTop=!1;m.disableTopPadding=!1;m.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");m.extractOverlay=!1;return m};
_.n(JG,_.d);JG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
JG.prototype.onClick=function(m){var G,K=(G=this.data)==null?void 0:G.sourceEndpoint;!_.b_(_.ve(m),this.hostElement,["A".toString()])&&K&&_.Zw(this.hostElement,"yt-navigate",{endpoint:K})};
_.e_.Object.defineProperties(JG.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 m;return!((m=this.data)==null||!m.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.data)==null?void 0:m.paragraphMaxLines)!=null?G:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],JG.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JG.prototype,"showVerticalDividers",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JG.prototype,"roundedContainer",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JG.prototype,"skipRoundingTop",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JG.prototype,"disableTopPadding",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],JG.prototype,"amsterdamEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JG.prototype,"extractOverlay",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"showMetadataAtTop",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"showMetadataBelowTitle",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"hasMenu",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.truncateParagraphs"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"truncateParagraphs",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.paragraphMaxLines"),_.S("design:type",Number),_.S("design:paramtypes",[])],JG.prototype,"paragraphMaxLines",null);
_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.E("data.background"),_.S("design:type",Object),_.S("design:paramtypes",[])],JG.prototype,"background",null);_.x([_.Ye({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],JG);
_.y(JG,"ytd-info-panel-content-renderer",function(){if(Kki!==void 0)return Kki;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Kki=m},{mode:2});var Wkl;var LkF;var A2K;var wQK;var No=function(){return _.d.apply(this,arguments)||this};
_.n(No,_.d);No.prototype.computeStyle=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],No.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],No.prototype,"style_",void 0);_.x([_.cL({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],No);
_.y(No,"yt-channel-thumbnail-with-link-renderer",function(){if(wQK===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;A2K===void 0&&(A2K=document.createElement("template"));var W=A2K;K.call(G,W.content.cloneNode(!0),m.content.firstChild);wQK=m}m=wQK;return m},{mode:2});var Da=function(){return _.d.apply(this,arguments)||this};
_.n(Da,_.d);Da.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"}}}};
Da.prototype.computeTitleStyle=function(m){return m||null};
Da.prototype.computeAvatarStyle=function(m){return m||null};
Da.prototype.computeShowNavigationButton=function(m,G){return!(m==null||!m.navigationButton||G)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Da.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.S("design:type",String)],Da.prototype,"titleStyle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.S("design:type",String)],Da.prototype,"avatarStyle",void 0);_.x([_.V(),_.S("design:type",Boolean)],Da.prototype,"hideNavigationButton",void 0);_.x([_.Ye({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Da);
_.y(Da,"ytd-rich-list-header-renderer",function(){if(LkF!==void 0)return LkF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return LkF=m},{mode:2});var tG=function(){return _.d.apply(this,arguments)||this};
_.n(tG,_.d);tG.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]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tG.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],tG.prototype,"isSearch",void 0);_.x([_.Ye({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],tG);
_.y(tG,"ytd-preview-card-renderer",function(){if(Wkl!==void 0)return Wkl;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Wkl=m},{mode:1});var g0R;var Fn=function(){return _.d.apply(this,arguments)||this};
_.n(Fn,_.d);Fn.prototype.configureRendererStamper=function(){return{"data.menu":zl}};
Fn.prototype.dataChanged=function(){var m=this.get("colorExtractionPalette.section1Color",this.data);m=_.OM(m);_.eb(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":m})};
Fn.prototype.computeCardStyle=function(m){return this.get("style.value",m)||null};
Fn.prototype.dataChanged=Fn.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Fn.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Fn.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.S("design:type",String)],Fn.prototype,"cardStyle",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fn.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Fn);
_.y(Fn,"ytd-compact-channel-recommendation-card-renderer",function(){if(g0R!==void 0)return g0R;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return g0R=m},{mode:1});var Oji;var c20;var QA=function(){var m=_.d.apply(this,arguments)||this;m.alignAuto=!1;m.collapsed=!0;m.isToggled=!1;m.alwaysCollapsed=!1;m.canToggle=!0;m.collapsedHeight=80;m.disableToggle=!1;m.alwaysToggleable=!1;m.reversed=!1;m.shouldUseNumberOfLines=!1;m.recomputeOnResize=!1;m.canToggleJobId=0;m.lastReversed=!1;return m};
_.n(QA,_.d);_.w=QA.prototype;_.w.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.w.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.w.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var m=_.VL(this.hostElement),G=m.childNodes,K=document.createDocumentFragment(),W=m.childNodes.length-1;W>=0;W--)_.VL(K).appendChild(G[W]);_.F("enable_shadydom_free_scoped_node_methods")?_.Z7(this.hostElement).appendChild(K):m.appendChild(K)}};
_.w.ready=function(){var m=this;_.Dh(function(){m.initChildrenObserver()},1)};
_.w.attached=function(){var m;(m=this.resizeObserver)==null||m.observe(this.content)};
_.w.detached=function(){this.detachObserver()};
_.w.toggle=function(m,G){this.canToggle&&(this.isToggled=G,_.Zw(this.hostElement,"yt-refit"),m&&m.stopPropagation())};
_.w.reset=function(){this.childrenChanged()};
_.w.onIronResize=function(){this.recomputeOnResize&&!_.F("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.w.computeIsMoreVisible=function(m,G){return m&&!G};
_.w.computeShouldUseNumberOfLines=function(m){try{return!!m&&window.CSS.supports("-webkit-line-clamp","1")}catch(G){}return!1};
_.w.computeIsLessVisible=function(m,G){return m&&G};
_.w.observeCollapsedHeightAndMaxLines=function(){var m=this.collapsedHeight,G=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.eb(this.hostElement,{"--ytd-expander-max-lines":""+G,"--ytd-expander-collapsed-height":""}):_.eb(this.hostElement,{"--ytd-expander-collapsed-height":m+"px","--ytd-expander-max-lines":""})};
_.w.handleMoreTap=function(m){this.disableToggle||(_.Zw(this.hostElement,"yt-expander-more-tapped"),this.toggle(m,!0))};
_.w.handleLessTap=function(m){_.Zw(this.hostElement,"yt-expander-less-tapped");this.toggle(m,!1)};
_.w.initChildrenObserver=function(){var m=this;this.observer=new MutationObserver(function(){m.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.F("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.yO(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var G;(G=m.resizeThrottle)==null||G.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.w.childrenChanged=function(){var m=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){IC(function(){m.canToggleJobId=0;m.calculateCanCollapse()})}))};
_.w.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};
_.w.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.w.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("collapsed-changed",this.collapsed))};
_.w.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("is-toggled-changed",this.isToggled))};
_.w.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("can-toggle-changed",this.canToggle))};
_.e_.Object.defineProperties(QA.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
QA.prototype.canToggleChangedForBinding=QA.prototype.canToggleChangedForBinding;QA.prototype.isToggledChangedForBinding=QA.prototype.isToggledChangedForBinding;QA.prototype.collapsedChangedForBinding=QA.prototype.collapsedChangedForBinding;QA.prototype.observeCollapsedHeightAndMaxLines=QA.prototype.observeCollapsedHeightAndMaxLines;QA.prototype.onIronResize=QA.prototype.onIronResize;QA.prototype.reversedChanged=QA.prototype.reversedChanged;QA.prototype.toggledChanged=QA.prototype.toggledChanged;
QA.prototype.alwaysToggleableChanged=QA.prototype.alwaysToggleableChanged;_.x([_.q(_.mH),_.S("design:type",Object)],QA.prototype,"ironResizableBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],QA.prototype,"alignAuto",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],QA.prototype,"collapsed",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"isToggled",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"alwaysCollapsed",void 0);
_.x([_.V(),_.S("design:type",Object)],QA.prototype,"canToggle",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"collapsedHeight",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"disableToggle",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"alwaysToggleable",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"reversed",void 0);_.x([_.V(),_.S("design:type",Number)],QA.prototype,"maxNumberOfLines",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.S("design:type",Object)],QA.prototype,"shouldUseNumberOfLines",void 0);_.x([_.V(),_.S("design:type",Object)],QA.prototype,"recomputeOnResize",void 0);_.x([_.UM("#content"),_.S("design:type",HTMLDivElement)],QA.prototype,"content",void 0);_.x([_.Mg("alwaysToggleable"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"alwaysToggleableChanged",null);
_.x([_.Mg("isToggled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"toggledChanged",null);_.x([_.E("canToggleJobId"),_.S("design:type",Object),_.S("design:paramtypes",[])],QA.prototype,"isResetting",null);_.x([_.Sb("reversed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"reversedChanged",null);
_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"onIronResize",null);_.x([_.Sb("maxNumberOfLines","collapsedHeight"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"observeCollapsedHeightAndMaxLines",null);_.x([_.Sb("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"collapsedChangedForBinding",null);
_.x([_.Sb("isToggled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"isToggledChangedForBinding",null);_.x([_.Sb("canToggle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QA.prototype,"canToggleChangedForBinding",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-expander"})],QA);
_.y(QA,"ytd-expander",function(){if(c20!==void 0)return c20;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return c20=m},{mode:1});var a_=function(){return _.d.apply(this,arguments)||this};
_.n(a_,_.d);a_.prototype.computeIsCarousel=function(m){return!!m.isCarousel};
a_.prototype.observeLightsourcePalette=function(){var m,G=(m=this.data)==null?void 0:m.vibrantsourceColorPaletteData;G&&_.mr(this.hostElement,G)};
a_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
a_.prototype.observeLightsourcePalette=a_.prototype.observeLightsourcePalette;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a_.prototype,"data",void 0);_.x([_.V({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],a_.prototype,"isCarousel",void 0);
_.x([_.Sb("data.vibrantsourceColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],a_.prototype,"observeLightsourcePalette",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],a_);
_.y(a_,"ytd-media-upsell-renderer",function(){if(Oji!==void 0)return Oji;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Oji=m},{mode:2});var YS4;var o_=function(){var m=_.d.apply(this,arguments)||this;m.JSC$15383_playerEvents=new Map;m.listeningToPlayer=!1;m.startX=0;m.active=!1;m.shouldShowButtons=_.F("web_buttons_hidden_killswitch");m.isHighlighted=!1;m.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");m.enableProblemWalkthrough=_.F("problem_walkthrough_sd");return m};
_.n(o_,_.d);_.w=o_.prototype;
_.w.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}}}}}};
_.w.created=function(){this.JSC$15383_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.w.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.xC(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.xC(this,this.onActiveUpdate))};
_.w.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.xC(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.xC(this,this.onActiveUpdate))};
_.w.onDataChanged=function(){this.removePlayerListeners()};
_.w.onColorPaletteChange=function(){var m={},G;if(_.Ng()==="USER_INTERFACE_THEME_DARK"&&((G=this.data)==null?0:G.darkColorPalette)){var K=this.data.darkColorPalette;m["--ytd-macro-markers-list-item-background-color"]=_.ce(this.get("section2Color",K))}else{var W;_.Ng()==="USER_INTERFACE_THEME_LIGHT"&&((W=this.data)==null?0:W.lightColorPalette)&&(K=this.data.lightColorPalette,m["--ytd-macro-markers-list-item-background-color"]=_.ce(this.get("section3Color",K)))}K?(m["--ytd-macro-markers-list-item-title-color"]=
_.ce(this.get("primaryTitleColor",K)),m["--ytd-macro-markers-list-item-secondary-color"]=_.ce(this.get("secondaryTitleColor",K)),m["--ytd-macro-markers-list-item-timestamp-background-color"]=_.ce(this.get("section1Color",K)),this.customButtonProperties={customColors:{color:_.ce(this.get("primaryTitleColor",K))}},this.useColorSampling=!0):(m["--ytd-macro-markers-list-item-background-color"]="initial",m["--ytd-macro-markers-list-item-title-color"]="initial",m["--ytd-macro-markers-list-item-secondary-color"]=
"initial",m["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.eb(this.hostElement,m)};
_.w.onEndpointMouseDown=function(m){this.startX=m.clientX};
_.w.onEndpointClick=function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1){if(G.startX!==m.clientX)return m.preventDefault(),A.return();G.data&&G.ytRendererBehavior.logExplicitClick(G.data);if(!G.seekWithAnimationOnClick)return A.jumpTo(0);if(m.button!==0||m.shiftKey||m.altKey||m.metaKey||m.ctrlKey||_.b_(_.ve(m),G.hostElement,["BUTTON".toString()]))return A.return();m.stopPropagation();m.preventDefault();return G.data?A.yield(_.ET().getPlayerPromise(),3):A.return()}K=A.yieldResult;
L=(W=_.Q(G.data.onTap,_.QQ))==null?void 0:W.startTimeSeconds;L!==void 0&&K.seekToTimeWithAnimation(L*1E3,_.bw(G.data.title));_.ey(A)})};
_.w.computeLayout=function(m){return m};
_.w.computeIsHighlighted=function(m){return!!m};
_.w.computeCarouselType=function(m){return m};
_.w.hideCarousel=function(m){return this.hideThumbnail(m)};
_.w.hideThumbnail=function(m){return this.enableProblemWalkthrough&&m!==null&&m==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.w.onRepeatButtonToggle=function(m){var G=this;m.detail.toggled&&_.ET().getPlayerPromise().then(function(K){G.ytPlayerListenerBehavior.listenToPlayerEvents(K,G.JSC$15383_playerEvents);G.listeningToPlayer=!0})};
_.w.onLoopRangeChange=function(m){var G=_.VL(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(G){var K=G.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",G.polymerController.data);if(K){var W=Number(K.endTimeMs);if(Number(K.startTimeMs)!==(m==null?void 0:m.startTimeMs)||W!==(m==null?void 0:m.endTimeMs))G.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.w.removePlayerListeners=function(){var m=this;this.listeningToPlayer&&_.ET().getPlayerPromise().then(function(G){m.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,m.JSC$15383_playerEvents);m.listeningToPlayer=!1})};
_.w.onActiveUpdate=function(m){this.active=m.detail.active};
o_.prototype.onColorPaletteChange=o_.prototype.onColorPaletteChange;o_.prototype.onDataChanged=o_.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],o_.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],o_.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],o_.prototype,"useCustomColors",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],o_.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],o_.prototype,"shouldShowButtons",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.S("design:type",String)],o_.prototype,"layout",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.S("design:type",Object)],o_.prototype,"isHighlighted",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],o_.prototype,"useHighlightStyling",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],o_.prototype,"enableProblemWalkthrough",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.S("design:type",String)],o_.prototype,"carouselType",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],o_.prototype,"useColorSampling",void 0);_.x([_.V(),_.S("design:type",Boolean)],o_.prototype,"seekWithAnimationOnClick",void 0);_.x([_.V(),_.S("design:type",Object)],o_.prototype,"customButtonProperties",void 0);
_.x([_.UM("#repeat-button"),_.S("design:type",HTMLElement)],o_.prototype,"repeatButton",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o_.prototype,"onDataChanged",null);_.x([_.Sb("data.lightColorPalette","data.darkColorPalette"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o_.prototype,"onColorPaletteChange",null);
_.x([_.Ye({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],o_);
_.y(o_,"ytd-macro-markers-list-item-renderer",function(){if(YS4!==void 0)return YS4;var m=document.createElement("template");_.b(m,'\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="[[hideCarousel(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="[[!hideCarousel(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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return YS4=m},{mode:1});var r2S;var uLk;var nf=function(){return _.d.apply(this,arguments)||this};
_.n(nf,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nf.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nf.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],nf);
_.y(nf,"ytd-title-and-button-list-header-renderer",function(){if(uLk!==void 0)return uLk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return uLk=m},{mode:1});var hkk;var pQX=new _.sX("BUTTON_RENDERER_TOKEN");_.bv=_.P(function(m){var G=_.xS().resolve(pQX);return _.r(G,Object.assign({},m,{overrides:m.buttonOverrides}))},"Ya");var J2o=_.P(function(m){var G=m.data,K=_.sQ(m.useSquareAspectRatio,!1);return _.r("dismissed-mini-game-card-view-model",null,_.r(_.p,{cond:function(){var W,L;return(W=G().responseText)==null?void 0:(L=W.runs)==null?void 0:L.length},
then:function(){var W={};return _.r("div",{class:_.VO("yt-mini-game-card-view-model__dismissed-card",(W["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!K()},W["yt-mini-game-card-view-model--dismissed-portrait-card-2by3-aspect-ratio"]=function(){return!!_.F("web_game_card_force_2_by_3")},W["yt-mini-game-card-view-model--dismissed-square-card"]=K,W))},_.r("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.r(_.p,{cond:function(){return G().responseText.runs[0].text},
then:function(L){return _.r("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:L},L)}}),_.r(_.z$,{data:function(){return G().buttons}},{buttonRenderer:_.bv,
buttonViewModel:_.kP})))}}))},"Za");var NcB=_.P(function(m){var G=m.data;return _.r("br-nz-badge-shape",{class:_.VO(function(){return bHV(G().brNzRatingBadgeType)}),
role:function(){return G().accessibilityText?"img":void 0},
"aria-label":function(){return G().accessibilityText}},function(){var K;
return(K=G())==null?void 0:K.text})},"$a");_.vr=_.P(function(m){var G=function(){var K=m.data(),W,L,A,O,c;if(K){var u=!((W=m.workaroundShortsIsThumbnailBadge)==null||!W.call(m));W=(L=m.modern)==null?void 0:L.call(m);L=(A=m.numBadgesInRow)==null?void 0:A.call(m);A=(O=m.clipTextOverflow)==null?void 0:O.call(m);O=(c=m.inheritTypography)==null?void 0:c.call(m);var h;a:switch(K.badgeStyle){case "BADGE_OVERLAY":c=!0;break a;default:c=!1}K={type:u?17:vsf(K.badgeStyle),brNzRatingBadgeType:$DF(K.badgeStyle),text:K.badgeText,icon:K.iconName,isOverlay:c,
modern:W||_.F("web_modern_badge_view_model"),accessibilityText:K.accessibilityLabel||((h=_.Q(K.rendererContext,_.MB))==null?void 0:h.label),numBadgesInRow:L,clipTextOverflow:A,shouldInheritTypography:O}}else K=void 0;return K};
return _.r("yt-badge-view-model",{class:_.VO("ytBadgeViewModelHost",m.class)},_.r(_.tw,null,_.r(_.Jw,{when:function(){var K;return!((K=G())==null||!K.brNzRatingBadgeType)}},function(){return _.r(NcB,{data:function(){return G()}})}),_.r(_.Jw,{when:function(){return!!G()&&!G().brNzRatingBadgeType}},function(){return _.r(_.pk,{data:function(){return G()}})})))},"ab");
_.vr.idomCompat=!0;var bjK=_.P(function(m){m=_.ql(m,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var G=m.data,K=m.useFullWidth,W=m.isDesktopWeb,L=m.addSearchResultTopMargin,A=function(){return G().layout},O=function(){return G().title},c=function(){return G().metadataText?G().metadataText:G().genre},u=function(){return G().channelName},h=function(){return G().image},J=function(){return G().colorPalette},N=function(){return G().actionButton},D=function(){return G().overflowButton},
t=function(){return G().avatar},a=function(){return G().ageRating},v=function(){var z={};
z=_.VO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(z["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return W()},z));
return _.r("div",{class:z},_.r(D50,{imageData:h,colorPalette:J}),_.r(tVB,{onTap:function(){return G().onTap},
imageData:h,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
isDesktopWeb:W}),_.r(_.p,{cond:function(){return!W()},
then:function(){return _.r(_.zL,null,_.r(FkX,{layout:A,colorPalette:J,isDesktopWeb:W,overflowButton:D,avatar:t,onTap:function(){return G().onTap},
genre:c,title:O,channelName:u}),_.r(Q8S,{actionButton:N}))}}))},I=function(){var z={};
z=_.VO((z["yt-mini-game-card-view-model--search-result-desktop"]=function(){return W()},z["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!W()},z["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return L()},z));
return _.r("div",{class:z},v(),_.r(ao0,{description:function(){return G().description},
isDesktopWeb:W,title:O,genre:c,onTap:function(){return G().onTap},
actionButton:N,overflowButton:D,avatar:t,channelName:u}))},Z=function(){var z={};
z=_.VO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(z["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return W()},z["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return W()&&G().width===135},z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return W()},z["yt-mini-game-card-view-model--big-metadata-font"]=function(){return G().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},z["yt-mini-game-card-view-model--use-full-width"]=
function(){return K()},z["yt-mini-game-card-view-model--portrait-card-force-2by3-aspect-ratio"]=function(){return!!_.F("web_game_card_force_2_by_3")},z));
return _.r("div",{class:z},_.r(o0i,{colorPalette:J,isDesktopWeb:W,onTap:function(){return G().onTap},
accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
actionButton:N,imageData:h}),_.r(FkX,{layout:A,colorPalette:J,isDesktopWeb:W,overflowButton:D,avatar:t,onTap:function(){return G().onTap},
genre:c,title:O,channelName:u}),_.r(_.p,{cond:a,then:function(X){return _.r(n0S,{ageRating:X})}}))},k=function(){var z={};
z=_.VO("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(z["yt-mini-game-card-view-model--square-card-desktop"]=function(){return W()},z["yt-mini-game-card-view-model--use-full-width"]=function(){return K()},z));
return _.r("div",{class:z},_.r(tVB,{onTap:function(){return G().onTap},
imageData:h,accessibilityText:function(){return G().accessibilityText},
overlayBadgeText:function(){return G().overlayBadgeText},
iconName:function(){return G().iconName},
unplayableInlinePlaybackIconName:function(){return G().unplayableInlinePlaybackIconName},
isDesktopWeb:W}),_.r(FkX,{layout:A,colorPalette:J,isDesktopWeb:W,overflowButton:D,avatar:t,onTap:function(){return G().onTap},
genre:c,title:O,channelName:u}),_.r(_.p,{cond:a,then:function(X){return _.r(n0S,{ageRating:X})}}))};
return _.r("mini-game-card-view-model",{class:m.className},_.r(_.tw,null,_.r(_.Jw,{when:function(){return A()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return Z()}),_.r(_.Jw,{when:function(){return A()==="MINI_APP_LAYOUT_SQUARE"}},function(){return k()}),_.r(_.Jw,{when:function(){return A()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return I()})))},"bb");
bjK.idomCompat=!0;var Q8S=_.P(function(m){var G=_.sQ(m.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.r(_.z$,{data:m.actionButton},{buttonViewModel:function(K){return _.r("div",{class:G},_.r(_.kP,{data:K.data}))}})},"cb"),tVB=_.P(function(m){var G=m.onTap;
var K=m.imageData;var W=m.accessibilityText;var L=m.overlayBadgeText;var A=m.iconName;var O=m.unplayableInlinePlaybackIconName;m=m.isDesktopWeb;return _.r(_.qm,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:G},_.r(_.oC,{data:K,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(W==null?void 0:W())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.r(v0P,{overlayBadgeText:L,iconName:A,unplayableInlinePlaybackIconName:O,isDesktopWeb:m}))},"db"),v0P=_.P(function(m){var G=m.overlayBadgeText;
var K=m.iconName;var W=m.unplayableInlinePlaybackIconName;var L=m.isDesktopWeb;return _.r("div",{class:"yt-mini-game-card-view-model__badge-container"},_.r(_.p,{cond:K,then:function(A){return _.r("div",{class:"yt-mini-game-card-view-model__badge"},_.r("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.r(_.fN,{icon:A,className:"yt-mini-game-card-view-model__icon",size:12}),_.r("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},G)))}}),_.r(_.p,{cond:function(){return!K()&&
G()},
then:function(){return _.r("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},G)}}),_.r(_.p,{cond:function(){return W()&&L()},
then:function(){return _.r("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.r(_.fN,{icon:W,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"eb"),D50=_.P(function(m){var G=m.colorPalette;
var K=m.imageData;var W=function(){return G().vibrantColorPalette?G().vibrantColorPalette.section2Color:G().sectionTwoColor};
return _.r(_.zL,null,_.r("div",{class:"yt-mini-game-card-view-model__background-base",style:_.eA({"background-color":function(){return YC(W(),"1")}})}),_.r("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.eA({"background-image":function(){return"url("+K().sources[0].url+")"}})}),_.r("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.eA({background:function(){return"linear-gradient(180deg,\n    "+YC(W(),".8")+" 0%,\n    "+YC(W(),".4")+" 25%,\n    "+YC(G().vibrantColorPalette?G().vibrantColorPalette.section4Color:G().sectionFourColor,".8")+" 100%)"}})}))},"fb"),FkX=_.P(function(m){var G=m.layout;
var K=m.colorPalette;var W=m.overflowButton;var L=m.avatar;var A=m.onTap;var O=m.title;var c=m.channelName;var u=m.genre;var h=function(){var J;return G()!=="MINI_APP_LAYOUT_SQUARE"&&((J=K())==null?0:J.textPrimaryColor)?"color: "+YC(K().textPrimaryColor,".7"):""};
return _.r("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.r(_.p,{cond:L,then:function(){return _.r("div",{class:"yt-mini-game-card-view-model__avatar"},_.r(_.z$,{data:L},{avatarViewModel:_.O9}))}}),_.r(_.qm,{command:A,
className:"yt-mini-game-card-view-model__metadata-details"},_.r("h3",{class:"yt-mini-game-card-view-model__title",title:O},O),_.r(_.p,{cond:L,then:function(){return _.r("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.r("span",{class:"yt-mini-game-card-view-model__genre",title:c,style:h},c),_.r("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:h},u))},
else:function(){return _.r("span",{class:"yt-mini-game-card-view-model__genre",title:u},u)}})),_.r("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.r(_.z$,{data:W},{buttonViewModel:function(J){var N=J.data;
return _.r(_.kP,{data:function(){return Object.assign({},N(),{customFontColor:G()==="MINI_APP_LAYOUT_SINGLETON"?N().customFontColor:void 0})}})}})))},"gb"),o0i=_.P(function(m){var G=m.colorPalette;
var K=m.isDesktopWeb;var W=m.onTap;var L=m.accessibilityText;var A=m.overlayBadgeText;var O=m.iconName;var c=m.unplayableInlinePlaybackIconName;var u=m.actionButton;m=m.imageData;return _.r("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.r(D50,{imageData:m,colorPalette:G}),_.r(tVB,{onTap:W,imageData:m,accessibilityText:L,overlayBadgeText:A,iconName:O,unplayableInlinePlaybackIconName:c,isDesktopWeb:K}),_.r(_.p,{cond:function(){return u==null?void 0:u()},
then:function(){return _.r(Q8S,{actionButton:u})}}))},"hb"),ao0=_.P(function(m){var G=m.description;
var K=m.isDesktopWeb;var W=m.title;var L=m.genre;var A=m.onTap;var O=m.actionButton;var c=m.overflowButton;var u=m.avatar;m=m.channelName;var h={};h=_.VO("yt-mini-game-card-view-model--search-result-metadata-wrapper",(h["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=K,h["yt-mini-game-card-view-model--show-unplayable-on-hover"]=K,h["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!K()},h));
var J={};J=_.VO("yt-mini-game-card-view-model__search-result-info-row",(J["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!K()},J));
return _.r("div",{class:h},_.r("div",{class:J},_.r(_.qm,{command:A,className:"yt-mini-game-card-view-model__metadata-details"},_.r("h3",{class:"yt-mini-game-card-view-model__title",title:W},W),_.r("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)),_.r(Q8S,{actionButton:O,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.r("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.r(_.z$,{data:c},{buttonViewModel:_.kP}))),_.r("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.r("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.r("div",{class:"yt-mini-game-card-view-model__avatar"},_.r(_.z$,{data:u},{avatarViewModel:function(N){var D=N.data;return _.r(_.O9,{data:function(){return Object.assign({},D(),{avatarImageSize:K()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.r(_.qm,{command:A,
className:"yt-mini-game-card-view-model__description"},_.r("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},m)),_.r(_.qm,{command:A,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.r("div",null)))),_.r(_.p,{cond:K,then:function(){return _.r(_.qm,{command:A,className:"yt-mini-game-card-view-model__description"},G)}}))},"ib"),n0S=_.P(function(m){var G=m.ageRating;
return _.r("div",{class:"yt-mini-game-card-view-model__age-rating-wrapper"},_.r(_.oC,{data:function(){return{sources:[{url:G().imageUrl||"",width:16,height:16}]}},
className:"yt-mini-game-card-view-model__age-rating-image",alt:"",targetHeight:16,targetWidth:16,preserveWidth:!0,preserveHeight:!0}),_.r(_.vr,{data:function(){return{badgeText:G().label||"",badgeStyle:"BADGE_MEDIA"}},
modern:!0,class:"yt-mini-game-card-view-model__age-rating-badge",clipTextOverflow:!0}))},"jb");_.sh(bjK,"mini-game-card-view-model",{props:{data:_.Dd,className:_.Dd,useFullWidth:_.Dd,isDesktopWeb:_.Dd,addSearchResultTopMargin:_.Dd}});_.sh(J2o,"dismissed-mini-game-card-view-model",{props:{data:_.Dd,useSquareAspectRatio:_.Dd}});var $U=function(){var m=_.d.apply(this,arguments)||this;m.isSearch=!1;m.isRichGrid=!1;return m};
_.n($U,_.d);_.w=$U.prototype;_.w.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.w.dismissibleItemOnYtServiceRequestSent=function(m,G){G.actions&&this.dismissibleItemProcessActions(m,G.actions)};
_.w.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.w.dataChanged=function(){this.dismissibleItemReset()};
_.w.dismissibleItemProcessActions=function(m,G){for(var K=0;K<G.length;K++){var W=G[K];_.Q(W,_.Rk)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Q(W,_.Rk)),m.stopPropagation())}};
_.w.dismissibleItemHandleReplaceEnclosingAction=function(m){this.dismissedRenderer=m.item;this.isDismissed=!0};
_.e_.Object.defineProperties($U.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var m;return!!this.data&&!((m=this.dismissedRenderer)==null?0:m.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.dismissedRenderer)==null||!m.notificationMultiActionRenderer)}}});
$U.prototype.dataChanged=$U.prototype.dataChanged;$U.prototype.dismissibleItemOnRequestSent=$U.prototype.dismissibleItemOnRequestSent;$U.prototype.dismissibleItemOnYtServiceRequestSent=$U.prototype.dismissibleItemOnYtServiceRequestSent;_.x([_.V(),_.S("design:type",Object)],$U.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],$U.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],$U.prototype,"isDismissed",void 0);
_.x([_.V(),_.S("design:type",Object)],$U.prototype,"dismissedRenderer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],$U.prototype,"isRichGrid",void 0);_.x([_.E("data.layout"),_.S("design:type",Object),_.S("design:paramtypes",[])],$U.prototype,"useSquareAspectRatio",null);_.x([_.E("data","dismissedRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],$U.prototype,"showCard",null);
_.x([_.E("data","dismissedRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],$U.prototype,"showDismissed",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],$U.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],$U.prototype,"dismissibleItemOnRequestSent",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$U.prototype,"dataChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],$U);
_.y($U,"ytd-mini-game-card-view-model",function(){if(hkk!==void 0)return hkk;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return hkk=m},{mode:2});var $5K;var s8K;var s9=function(){return _.fC.apply(this,arguments)||this};
_.n(s9,_.fC);s9.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
s9.prototype.getContinuationUrl=function(m){var G={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.BE(m,G)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],s9.prototype,"data",void 0);_.x([_.cL({is:"yt-reload-continuation",noInjection:!0})],s9);var qSo;var E0R;var qo=function(){var m=_.d.apply(this,arguments)||this;m.notificationData={};return m};
_.n(qo,_.d);_.w=qo.prototype;_.w.isMenuExpanded=function(m){return m&&m.length<=1?"undefined":"false"};
_.w.dataChanged_=function(){this.selected=void 0;var m=this.computeSelectedIndex_(this.data);m>=0&&(this.selected=m);m=this.data&&this.data.length>1;_.dF(this.hostElement,"has-items",m);_.VL(this.hostElement).querySelector("#label").tabIndex=m?0:-1};
_.w.onDropdownOpen=function(){var m=_.gU();if(this.parentTrackingParams&&this.data){var G=_.m5(this.parentTrackingParams);this.data.forEach(function(K){m&&G&&K.trackingParams&&(K=_.m5(K.trackingParams),_.tW(m,G,K),_.a7(m,[K]))})}else this.parentTrackingParams||_.nc(new _.cw("No parent tracking params passed in for yt-dropdown-menu."))};
_.w.hasNotification=function(m){var G;if(m.targetId&&((G=this.notificationData)==null?0:G.targetId)){var K;return m.targetId===((K=this.notificationData)==null?void 0:K.targetId)}};
_.w.computeSelectedIndex_=function(m){if(m)for(var G=0,K=m.length;G<K;G++)if(m[G].selected)return G;return-1};
_.w.computeLabel_=function(m){return this.data&&m!=void 0?this.data[m].title:""};
_.w.computeShowIcon_=function(m,G){return!G&&!!m};
_.w.computeVerticalOffset_=function(m){return m?36:0};
_.w.computeEndpoint_=function(m){return m.endpoint||m.navigationEndpoint};
_.w.onLabelClick_=function(m){this.data&&this.data.length<=1?m.stopPropagation():this.menuExpanded="true"};
_.w.onIronActivate_=function(m){m=m.detail.item;var G=_.VL(this.hostElement).querySelector("#repeat").itemForElement(m);if(G&&G.trackingParams){var K=_.gU(),W=_.m5(G.trackingParams);K&&_.nW(K,W)}if(G&&G.serviceEndpoint)_.F("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(G.serviceEndpoint):_.yQ(this.hostElement,[G.serviceEndpoint]),_.Zw(this.hostElement,"yt-playlist-reloading");else a:{if((G=m.querySelector("yt-supported-renderers"))&&
(G=G.rendererElement)&&G.is=="yt-reload-continuation"){G.trigger();break a}(m=m.querySelector("yt-reload-continuation"))&&m.trigger()}};
_.w.onTap_=function(m){m.preventDefault()};
_.w.onItemTap_=function(m){this.ytEndpointBehavior.onEndpointTap_(m)};
_.w.onLinkFocus_=function(m){try{var G=m.target}catch(W){}if(G){var K=G.querySelector("tp-yt-paper-item");K&&_.t9(this,"focus",function(){K.focus()})}};
_.w.onMenuClose_=function(){this.menuExpanded="false"};
_.w.isLabelIconActive_=function(m){return m==="true"};
_.w.computeHasSubtitle_=function(m){return!!m};
_.w.computeHrefForItem_=function(m){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(m))};
_.w.updateSelectedFromBinding=function(m){this.selected=m.detail.value};
_.e_.Object.defineProperties(qo.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
qo.prototype.onMenuClose_=qo.prototype.onMenuClose_;qo.prototype.onTap_=qo.prototype.onTap_;qo.prototype.onIronActivate_=qo.prototype.onIronActivate_;qo.prototype.onDropdownOpen=qo.prototype.onDropdownOpen;qo.prototype.dataChanged_=qo.prototype.dataChanged_;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],qo.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],qo.prototype,"ytEndpointBehavior",void 0);
_.x([_.V(),_.S("design:type",Array)],qo.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],qo.prototype,"parentTrackingParams",void 0);_.x([_.V(),_.S("design:type",Object)],qo.prototype,"selected",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],qo.prototype,"useLabel",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],qo.prototype,"useComputedAriaLabel",void 0);_.x([_.V(),_.S("design:type",String)],qo.prototype,"icon",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],qo.prototype,"iconLabel",void 0);_.x([_.V(),_.S("design:type",String)],qo.prototype,"ariaLabel",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],qo.prototype,"disabled",void 0);_.x([_.V({computed:"isMenuExpanded(data)"}),_.S("design:type",String)],qo.prototype,"menuExpanded",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],qo.prototype,"closeOnActivate",void 0);
_.x([_.V({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.S("design:type",Boolean)],qo.prototype,"modernButtons",void 0);_.x([_.V(),_.S("design:type",Object)],qo.prototype,"notificationData",void 0);_.x([_.E("ariaLabel, selected"),_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],qo.prototype,"computedAriaLabel",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qo.prototype,"dataChanged_",null);
_.x([_.XC("paper-dropdown-open"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],qo.prototype,"onDropdownOpen",null);_.x([_.XC("iron-activate"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],qo.prototype,"onIronActivate_",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],qo.prototype,"onTap_",null);
_.x([_.XC("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],qo.prototype,"onMenuClose_",null);_.x([_.cL({is:"yt-dropdown-menu",disableElementRegistration:!0})],qo);
_.y(qo,"yt-dropdown-menu",function(){if(E0R===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;qSo===void 0&&(qSo=document.createElement("template"));var W=qSo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);E0R=m}m=E0R;return m},{mode:2});var E9=function(){var m=_.d.apply(this,arguments)||this;m.hasNotification=!1;return m};
_.n(E9,_.d);E9.prototype.computeId=function(m){return m};
E9.prototype.computeHorizontalAlign=function(m){return m?"right":"left"};
E9.prototype.computeAccessibilityLabel=function(m){var G,K;return((G=m.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)||null};
E9.prototype.notificationDataChanged=function(){var m;this.hasNotification=!!this.notificationData&&!((m=this.data)==null?0:m.icon)};
E9.prototype.notificationDataChanged=E9.prototype.notificationDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OH.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],E9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],E9.prototype,"data",void 0);_.x([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",String)],E9.prototype,"id",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],E9.prototype,"isRightAligned",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],E9.prototype,"disabled",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],E9.prototype,"closeOnActivate",void 0);_.x([_.V(),_.S("design:type",Object)],E9.prototype,"notificationData",void 0);_.x([_.V(),_.S("design:type",Object)],E9.prototype,"hasNotification",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],E9.prototype,"useComputedAriaLabel",void 0);_.x([_.Sb("notificationData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],E9.prototype,"notificationDataChanged",null);_.x([_.cL({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],E9);
_.y(E9,"yt-sort-filter-sub-menu-renderer",function(){if(s8K===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;$5K===void 0&&($5K=document.createElement("template"));var W=$5K;K.call(G,W.content.cloneNode(!0),m.content.firstChild);s8K=m}m=s8K;return m},{mode:2});var Hji=_.P(function(m){var G=m.data;var K=_.dn(function(){var A=G().onTap;(A=_.Q(A,_.Oh))&&_.xS().resolve(_.S1).resolveCommand(A);return!1}),W=function(){return{sources:[{url:G().thumbnailUrl,
width:120,height:90}]}},L=function(){return G().rating&&G().ratingA11yLabel&&G().reviewsCount&&G().reviewsCountA11yLabel};
return _.r("place-data-view-model",null,_.r(_.p,{cond:function(){return G().placeName&&G().placeCategory},
then:function(){return _.r("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":K},_.r(_.oC,{data:W,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.r(_.qm,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return G().onTap}},_.r("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return G().placeName}},function(){return G().placeName})),_.r("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.r(_.p,{cond:L,
then:function(){return _.r("div",{class:_.VO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.r("span",{class:"score",title:function(){return G().ratingA11yLabel}},function(){return G().rating}),_.r("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.r(_.fN,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.r("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return G().reviewsCountA11yLabel}},function(){return G().reviewsCount}))},
else:function(){return _.r("div",{class:_.VO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.r("div",{class:_.VO("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.r("span",{class:"category",
title:function(){return G().placeCategory}},function(){return G().placeCategory}))))}}))},"kb");
Hji.idomCompat=!0;_.sh(Hji,"place-data-view-model",{props:{data:_.Dd}});var Io4=new _.sX("INLINE_PLAYBACK_HOOK_TOKEN");var j8k=Lz({sharedUi:g$C});_.DE=Ao(j8k)(j8k.sharedUi,{animatedThumbnailEnabledSelector:function(m){return m.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(m){return m.inlinePreviewEnabled},
currentPageTypeSelector:function(m){return m.currentPageType},
currentPageSubTypeSelector:function(m){return m.currentPageSubType},
persistentPanelVisibleSelector:function(m){return m.persistentPanelVisible}});var kAK=function(m){this.setActiveSlideIndex=m;this.jobIds=[];this.isSlideshowPlaying=!1},ZjR=function(m,G){m.isSlideshowPlaying||(m.isSlideshowPlaying=!0,Cz2(m),VVR(m,G,0))},Cz2=function(m){_.jA(_.Fu,function(){m.setActiveSlideIndex(0)},1)},VVR=function(m,G,K){m.jobIds.push(_.jA(_.Fu,function(){var W=K<G-1?K+1:0;
m.setActiveSlideIndex(W);VVR(m,G,W)},1800))};var d5o,y24;d5o=new _.sX("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");_.PzC=new _.sX("AI_COMPANION_ATTACHMENT_VIEW_MODEL_TOKEN");y24=new _.sX("COMMON_MARK_VIEW_MODEL_TOKEN");var ekl=new _.sX("IMAGE_ON_LOAD_HANDLER_TOKEN");var foi=_.P(function(m){return _.r("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.r(_.p,{cond:function(){var G;return(G=m.data())==null?void 0:G.thumbnail},
then:function(G){return _.r(_.oC,{data:G,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"lb");_.x5K=_.P(function(m){var G=m.data;var K=m.lockupExperiments;m={};return _.r("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.r("div",{class:_.VO("ytThumbnailOverlayButtonViewModelButton",(m.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var W;return K&&((W=K())==null?void 0:W.useLegacySizedIconButton)},m))},_.r(_.z$,{data:function(){return G().overlayButton}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
buttonOverrides:function(){var L;return K&&((L=K())==null?0:L.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"mb");
_.x5K.idomCompat=!0;var XQS=_.P(function(m){return _.r("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.dn(function(G){G.preventDefault();return!1})},_.r(_.z$,{data:function(){return m.data().buttons}},{toggleButtonViewModel:function(G){return _.r("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.r(_.Gx,{data:G.data}))}}))},"nb");
XQS.idomCompat=!0;var SSR=_.P(function(m){var G=function(){var K;return((K=_.Q(m.data().rendererContext,_.MB))==null?void 0:K.label)||""};
return _.r("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.r(_.p,{cond:function(){return m.data().image},
then:function(){return _.r("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.r(_.oC,{data:function(){return m.data().image},
alt:G}))}}),_.r(_.p,{cond:function(){return m.data().text},
then:function(){return _.r("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return m.data().text})}}))},"ob");var Rk2=_.DE.animatedThumbnailEnabledSelector,Hr=_.P(function(m){var G=[],K=function(){var D,t;return _.zQv((D=m.width)==null?void 0:D.call(m),(t=m.height)==null?void 0:t.call(m))},W=_.xS().resolve(_.fn(ekl)),L=_.Q3("yt-thumbnail-view-model",function(){G.push("elRef.value set");
var D;(D=m.playbackRef)==null||D.call(m,{thumbnailElRef:L,thumbnail:m.data().image,thumbnailOverlays:m.data().overlays,thumbnailSize:K()})});
_.bX(function(){G.push("onInit");_.sZ(function(){G.push("onCleanup")})});
var A=_.RC(Rk2),O=function(){var D,t;return(t=(D=m.aspectRatio)==null?void 0:D.call(m))!=null?t:0},c=function(){return(m.data().image?_.Jyd(m.data().image):O())<=1&&O()===0},u=function(){return c()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},h=function(){L.value||_.nc(new _.cw("Thumbnail elRef.value is null",G.join("\n")));
W&&L.value&&W(L.value)},J=function(){var D,t;
return((D=m.hovered)==null?void 0:D.call(m))&&K()!=="large"&&((t=m.data().overlays)==null?void 0:t.some(function(a){return _.Q(a,PnP)}))},N={};
return _.r("yt-thumbnail-view-model",{class:_.VO("ytThumbnailViewModelHost",m.className,function(){return quf(O())},function(){var D,t;
a:{var a=K(),v=(D=m.disableRounding)==null?void 0:D.call(m);D=(t=m.isClip)==null?void 0:t.call(m);if(!v&&!D)switch(a){case "large":t="ytThumbnailViewModelLarge";break a;case "small":t="ytThumbnailViewModelSmall";break a;default:t="ytThumbnailViewModelMedium";break a}t=void 0}return t},(N.ytThumbnailViewModelCinematic=c,N)),
style:_.eA({"background-color":function(){var D,t=c()?(D=m.data().backgroundColor)==null?void 0:D.lightTheme:void 0;return t?YC(t,"1"):void 0}}),
el:L},_.r(_.p,{cond:c,then:function(){return _.r("div",{class:"ytThumbnailViewModelBlurredImage"},_.r(_.oC,{data:function(){return m.data().image},
alt:"",contentMode:u,targetWidth:m.width,onload:h}))}}),_.r("div",{class:"ytThumbnailViewModelImage"},_.r(_.oC,{data:function(){return m.data().image},
alt:"",contentMode:u,targetWidth:m.width,onload:h}),null),_.r(_.z$,{data:function(){return J()?void 0:m.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:UDk,thumbnailOverlayBadgeViewModel:function(D){return _.r(_.z1l,{data:D.data,thumbnailSize:K,isClip:m.isClip})},
thumbnailBottomOverlayViewModel:function(D){return _.r(xD2,{data:D.data,thumbnailSize:K,isClip:m.isClip})},
thumbnailOverlayFullViewModel:SSR,thumbnailOverlayButtonViewModel:function(D){return _.r(_.x5K,{data:D.data,lockupExperiments:m.lockupExperiments})},
channelDisclosureViewModel:function(D){D=D.data;var t;return _.r("div",null,(t=_.xS().resolve(_.fn(d5o)))==null?void 0:t({data:D}))}}),_.r(_.z$,{data:function(){var D;
return((D=m.hovered)==null?0:D.call(m))?m.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(D){return _.r(gI,{data:D.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:XQS}),_.r(_.z$,{data:function(){var D;return((D=m.hovered)==null?0:D.call(m))&&A()?m.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:foi}),_.r(_.p,{cond:m.isClip,then:function(){return _.r("div",{class:"ytPinkingNsHost"},_.r("svg",{class:"ytPinkingNsPinkingLeft"},_.r("defs",null,_.r("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.r("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.r("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.r("svg",{class:"ytPinkingNsPinkingRight"},_.r("defs",null,_.r("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.r("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.r("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"pb");
Hr.idomCompat={callbacks:{playbackRef:!0}};var U52=_.P(function(m){var G=_.g(_.g_(-1,void 0,"RW2Ole")),K=G.next().value,W=G.next().value;_.bX(function(){var L=new kAK(W);ZjR(L,m.data().thumbnails.length);_.sZ(function(){if(L.isSlideshowPlaying){L.isSlideshowPlaying=!1;for(var A=L.jobIds,O=0,c=A.length;O<c;O++)_.Fu.cancelJob(A[O]);L.jobIds.length=0}})});
return _.r("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.r(_.z$,{data:function(){return m.data().thumbnails}},{thumbnailViewModel:function(L,A){return _.r("div",{class:function(){var O=!m.data().primaryThumbnail,c=A(),u=K(),h=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
O&&c===0&&h.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");c<=u&&h.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return h.join(" ")}},_.r(Hr,{data:L.data,
disableRounding:m.disableRounding}))}}))},"qb");
U52.idomCompat=!0;var EsJ=new _.sX("DWELL_DETECTOR_REGISTRY_TOKEN");var loX=_.P(function(m){var G=HH9(m.triggeringElement),K=function(){return!!m.data().primaryThumbnail},W=function(){var A,O=(A=m.data())==null?void 0:A.maxHeight,c;
A=(c=m.maxHeight)==null?void 0:c.call(m);return O!=null&&A!=null?Math.min(O,A):A!=null?A:O},L=function(){var A=W();
if(A){var O;if(K()&&(O=m.includeStackHeight)!=null&&O.call(m)){var c;O=((c=m.doubleStack)==null?0:c.call(m))?8:4}else O=0;A=A-O-1;if(!(A<0)){c=Math;O=c.ceil;var u,h;var J=UnP((h=(u=m.aspectRatio)==null?void 0:u.call(m))!=null?h:0);return O.call(c,A*J)}}};
return _.r("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.eA({height:function(){return W()?W()+"px":void 0},
width:function(){return L()?L()+"px":void 0}})},_.r(zk0,{stackEnabled:K,
thumbnailSize:function(){var A,O;return _.zQv((A=m.width)==null?void 0:A.call(m),(O=m.height)==null?void 0:O.call(m))},
doubleStack:m.doubleStack,stackColor:function(){return m.data().stackColor},
includeStackHeight:m.includeStackHeight},_.r(_.z$,{data:function(){return m.data().primaryThumbnail}},{thumbnailViewModel:function(A){var O={};
return _.r(Hr,{data:A.data,width:m.width,height:m.height,aspectRatio:m.aspectRatio,disableRounding:m.disableRounding,className:_.VO((O.ytCollectionThumbnailViewModelHostHasStacks=K,O)),hovered:m.hovered,playbackRef:m.playbackRef})}}),_.r(_.p,{cond:function(){var A;
return G()&&((A=m.data().thumbnails)==null?void 0:A.length)},
then:function(){return _.r("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.r(U52,{data:m.data,disableRounding:function(){return!K()}}))}})))},"rb");
loX.idomCompat={callbacks:{playbackRef:!0}};
var zk0=_.P(function(m){var G=m.children;var K=m.stackEnabled;var W=m.thumbnailSize;var L=m.doubleStack;var A=m.stackColor;var O=m.includeStackHeight;var c,u=(c=_.xS().resolve(_.fn(_.l_)))==null?void 0:c();return _.r(_.p,{cond:K,then:function(){return _.r(tto,{data:function(){var h,J;return{experimentEnabled:!0,thumbnailSize:W(),doubleStack:L==null?void 0:L(),color:u?A==null?void 0:(h=A())==null?void 0:h.darkTheme:A==null?void 0:(J=A())==null?void 0:J.lightTheme,enableResponsiveMode:!1,includeStackHeight:O==
null?void 0:O()}}},G)},
else:function(){return G}})},"sb");var BcP=new _.sX("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");_.MVR=_.P(function(m){var G=m.data;m=_.Q3("ad-card-badge-view-model");return _.r("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:m},_.r(_.p,{cond:function(){return G().imageBadge},
then:function(K){return _.r(_.oC,{data:K,alt:""})}}))},"tb");var jS;_.I_={calledOnce:!0,state:"visible"};jS={calledOnce:!0,state:"hidden"};_.kU=_.P(function(m){var G=_.ql(m,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});m=Object.assign({},G);var K=G.data;G=G.customCommandResolver;var W=(delete m.data,delete m.customCommandResolver,m);m=_.eN({visibilityCallback:function(c,u){var h,J=(h=K().interaction)==null?void 0:h.onFirstVisible;c&&(J&&_.h$(J),W.setOnErrorHandler()&&IuM(u))},
showOption:_.I_});G=_.h3(function(){return K().interaction},G,function(){var c;
return(c=W.listenToTapEvent)==null?void 0:c.call(W)});
var L=_.g(_.g_(!1,void 0,"wAC0Lc")),A=L.next().value,O=L.next().value;L=_.dn(function(c){var u;((u=W.setTouchEndHandler)==null?0:u.call(W))&&!A()&&(c.currentTarget.click(),O(!0),setTimeout(function(){O(!1)},100));
return!1});
return _.r("ad-image-view-model",{class:function(){var c,u=[((c=K().interaction)==null?0:c.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],h;((h=W.isGridViewEnabled)==null?0:h.call(W))&&u.push("ytwAdImageViewModelHostInGridView");return u.join(" ")},
el:_.aC(m,G),"on:touchend":L},_.r("div",{class:"ytwAdImageViewModelHostImageContainer"},_.r(_.oC,{data:function(){var c;return{sources:K().imageSources,contentMode:(c=K().imageProperties)==null?void 0:c.contentMode}},
alt:function(){var c,u;return((c=K().interaction)==null?void 0:(u=c.accessibility)==null?void 0:u.label)||""},
targetHeight:W.targetHeight,targetWidth:W.targetWidth,preserveHeight:W.preserveHeight,preserveWidth:W.preserveWidth,useWidth:W.useWidth,style:function(){var c,u;return"vertical-align: bottom;"+(((c=K().background)==null?0:c.color)?"background-color:"+_.OM((u=K().background)==null?void 0:u.color)+";":"")},
className:function(){return W.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var c,u;return(u=(c=W.setDraggable)==null?void 0:c.call(W))!=null?u:void 0}})))},"vb");var Tci=_.P(function(m){var G=m.data;var K=m.customCommandResolver;return _.r("carousel-ad-card-image-view-model",{class:function(){var W;return((W=G().interaction)==null?0:W.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_}),_.h3(function(){return G().interaction},K)),
"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(W){return _.r(_.kU,{data:W.data,
customCommandResolver:K})}}),_.r("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.r(_.z$,{data:function(){return G().badge}},{adCardBadgeViewModel:_.MVR})),_.r(_.EH,{model:{color:4}}))},"wb");var ms2=_.P(function(m){var G=_.g(_.g_(0,void 0,"JJ0QQc")),K=G.next().value;G.next();var W=G.next().value,L=_.g(_.g_(!1,void 0,"f6YICe"));G=L.next().value;var A=L.next().value,O;_.sZ(function(){clearTimeout(O)});
L=_.dn(function(){var h;((h=m.animate)==null?0:h.call(m))?(A(!0),O=setTimeout(function(){A(!1);c()},200)):c();
return!1});
var c=function(){W(function(h){return(h+m.numShownItems())%m.data().length})},u={};
return _.r("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.r("div",{class:_.VO("ytwHorizontalCarouselCarouselWrapper")},_.r("div",{class:_.VO("ytwHorizontalCarouselCarouselInnerWrapper",(u.ytwHorizontalCarouselAnimating=G,u))},_.r(_.D0,{each:m.data,keyBy:"INDEX"},function(h,J){return _.r("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.eA({"flex-basis":function(){return"calc((100% - (8px * "+(m.numShownItems()-1)+")) / "+m.numShownItems()+")"},
order:function(){var N=J-K();N<0&&(N+=m.data().length);return N}})},m.children(h,J))}))),_.r("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":L},m.nextButton()))},"xb");var KYS=_.P(function(m){var G=m.data;var K=m.customCommandResolver;var W=m.expansive;var L=m.isLockupAttachment;return _.r("carousel-ad-card-collection-view-model",{el:_.aC(_.eN({visibilityCallback:function(A){var O,c=(O=G().interaction)==null?void 0:O.onFirstVisible;A&&c&&_.h$(c)},
showOption:_.I_})),class:"ytwCarouselAdCardCollectionViewModelHost"},_.r(_.p,{cond:function(){return L==null?void 0:L()},
then:function(){return _.r(ioB,{data:G,customCommandResolver:K})},
else:function(){return _.r(GD4,{data:G,customCommandResolver:K,expansive:W})}}))},"yb"),ioB=_.P(function(m){var G=m.data;
var K=m.customCommandResolver;return _.r("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarousel",tabindex:0},_.r(_.z$,{data:function(){return G().carouselAdCards||[]}},{carouselAdCardImageViewModel:function(W){return _.r("div",{class:"ytwCarouselAdCardCollectionViewModelMetadataAttachmentCarouselItem"},_.r(Tci,{data:W.data,
customCommandResolver:K}))}}))},"zb"),GD4=_.P(function(m){var G=m.data;
var K=m.customCommandResolver;var W=m.expansive;return _.r(ms2,{data:function(){var L;return((L=G())==null?void 0:L.carouselAdCards)||[]},
nextButton:function(){return _.r(_.z$,{data:function(){return G().nextButton}},{buttonViewModel:function(L){var A=L.data;
return _.r(_.kP,{data:function(){return(W==null?0:W())?Object.assign({},A(),{style:"mono"}):A()},
className:_.F("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(L){return _.r(_.z$,{data:L},{carouselAdCardImageViewModel:function(A){return _.r(Tci,{data:A.data,customCommandResolver:K})}})})},"Ab");_.Cf=_.P(function(m){var G=m.data;var K=m.customCommandResolver;var W=m.className;var L=m.delayedClassName;var A=m.animationEntityKey;var O=m.isCompactWidth;var c=m.isContentWidth;m=_.g(_.g_(!1,void 0,"pC3tUb"));var u=m.next().value,h=m.next().value,J=_.sQ(A,""),N=_.S5(EpG,J),D=function(){var JV,DF;return(DF=(JV=N())==null?void 0:JV.value)!=null?DF:!1},t=function(){_.$e(_.Bp("booleanEntity",J(),{key:J(),
value:!0}));f=void 0};
A=_.g(_.EQ(D));var a=A.next().value,v=A.next().value;A=_.g(_.EQ(D));var I=A.next().value,Z=A.next().value;A=_.g(_.EQ(function(){var JV;return D()?(JV=G().styleTransitionConfig)==null?void 0:JV.destinationStyle:void 0}));
var k=A.next().value,z=A.next().value,X=function(){var JV=Object.assign({},G(),k()&&{style:k()});var DF,kG,eo=JV.label,xG=(DF=JV.interaction)==null?void 0:(kG=DF.accessibility)==null?void 0:kG.label;DF=JV.iconImage?JV.label&&JV.label.content?JV.iconLeading?"leading":"trailing":"icon-only":void 0;JV={formattedButtonText:eo,accessibilityLabel:xG,style:Vtd(JV.style),type:ZH9(JV.style),state:"active",size:CjG(JV.size),iconPosition:DF,disabled:!1,aTagConfig:kVP(JV,K)};_.F("enable_desktop_vdcbg_components")&&
(JV.focused=u());return JV},f;
A=_.eN({visibilityCallback:function(JV){var DF,kG=(DF=G().interaction)==null?void 0:DF.onFirstVisible;JV&&kG&&_.h$(kG)},
showOption:_.I_});var U=function(){return KlV(X(),!!G().iconImage)};
m={};var l={};W=_.VO(function(){return"ytwAdButtonViewModelHost"},function(){return G().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var JV=!!G().delayedAppearanceConfig,DF=a();
return JV?DF?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var JV=!!G().delayedAppearanceConfig,DF=I();
return JV?DF?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!G().delayedAppearanceConfig||a()?L==null?void 0:L():""},(m.ytwAdButtonViewModelHostCompactWidth=function(){return O==null?void 0:O()},m),(l.ytwAdButtonViewModelHostContentWidth=function(){return c==null?void 0:c()},l),W!=null?W:"");
var Ls=function(){var JV,DF=(JV=G().delayedAppearanceConfig)==null?void 0:JV.delayedInvisibleSeconds;DF&&(f=_.mn(_.Fu,function(){v(!0);gd()},DF*1E3))},gd=function(){var JV,DF=(JV=G().delayedAppearanceConfig)==null?void 0:JV.delayedVisibleSeconds;
DF&&(f=_.mn(_.Fu,function(){Z(!0);Qf()},DF*1E3))},Qf=function(){var JV,DF=(JV=G().styleTransitionConfig)==null?void 0:JV.styleTransitionSeconds,kG,eo=(kG=G().styleTransitionConfig)==null?void 0:kG.destinationStyle;
DF&&eo?f=_.mn(_.Fu,function(){z(eo);t()},DF*1E3):t()};
_.bX(function(){Ls()});
_.sZ(function(){f&&_.Fu.cancelJob(f)});
return _.r("ad-button-view-model",{"on:focusin":_.dn(_.F("enable_desktop_vdcbg_components")?function(){var JV=_.xS().resolve(_.fn(_.sH));JV&&h(JV.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.dn(_.F("enable_desktop_vdcbg_components")?function(){h(!1);return!1}:void 0),
class:W,el:_.aC(A),style:_.eA({"transition-duration":"0.3s"})},_.r(_.p,{cond:X,then:function(){return _.r(_.jd,{data:X,icon:function(){return _.r(_.p,{cond:function(){return G().iconImage},
then:function(JV){return _.r(_.oC,{data:JV,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Bb");var WYR=_.P(function(m){var G=m.data;m=function(){return G().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var K=_.eN({visibilityCallback:function(A){var O,c=(O=G().interaction)==null?void 0:O.onFirstVisible;A&&c&&_.h$(c)},
showOption:_.I_}),W={},L={};return _.r("ad-button-group-view-model",{class:_.VO("ytwAdButtonGroupViewModelHost",(W.ytwAdButtonGroupViewModelHostCompactWidth=m,W)),el:_.aC(K)},_.r("div",{class:_.VO("ytwAdButtonGroupViewModelHostSecondaryButton",(L.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=m,L))},_.r(_.z$,{data:function(){return G().secondaryAdButton}},{adButtonViewModel:function(A){return _.r(_.Cf,{data:A.data})}})),_.r("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.r(_.z$,
{data:function(){return G().primaryAdButton}},{adButtonViewModel:function(A){return _.r(_.Cf,{data:A.data})}})))},"Cb");var LYk=_.P(function(m){var G=function(){var K;return((K=m.data())==null?void 0:K.answers)||[]};
return _.r("yt-survey-icons",{class:"ytSurveyIconsHost"},_.r("div",{class:"ytSurveyIconsHeader"},_.r("div",{class:"ytSurveyIconsTitle"},function(){var K;return(K=m.data())==null?void 0:K.text}),_.r("div",null,_.r(_.jd,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var K;(K=m.onDismiss)==null||K.call(m)}}},
iconName:"DISMISSAL"}))),_.r("div",null,_.r("div",{class:"ytSurveyIconsAnswers"},_.r(_.D0,{each:function(){return G()},
keyBy:"INDEX"},function(K,W){return _.r("div",null,_.r(_.jd,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var L;(L=m.onSelect)==null||L.call(m,K(),W)}}},
icon:function(){return _.r(_.fN,{icon:function(){var L,A;return(L=K())==null?void 0:(A=L.icon)==null?void 0:A.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.r("div",{class:"ytSurveyIconsAnswersText"},_.r("div",null,function(){return G().length?G()[0].text:""}),_.r("div",null,function(){return G().length?G()[G().length-1].text:""}))))},"Db");var AT2=_.P(function(m){var G=_.aC(_.On(function(){var u;return(u=m.data())==null?void 0:u.rendererContext},void 0,void 0,void 0,!0)),K=_.g(_.g_(!1,void 0,"GW0yjf")),W=K.next().value,L=K.next().value,A=_.S5(qzP,function(){var u;
return(u=m.data().keys)==null?void 0:u.surveyEntityKey}),O=_.S5(EdV,function(){var u;
return(u=m.data().keys)==null?void 0:u.surveyStateEntityKey});
_.Cc("ytd-slimline-survey-show-action",function(){L(!1)});
var c=function(){var u,h;var J=(u=O())==null?void 0:(h=u.questionStack)==null?void 0:h[0];if(J!==void 0){var N,D;return(N=A())==null?void 0:(D=N.questions)==null?void 0:D[J]}};
K={};return _.r("yt-slimline-survey-view-model",{el:G,class:_.VO("ytSlimlineSurveyViewModelHost",(K.ytSlimlineSurveyViewModelCollapsed=function(){return W()},K))},_.r("div",{class:"ytSlimlineSurveyViewModelContainer"},_.r(_.p,{cond:function(){var u;
return((u=c())==null?void 0:u.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.r(LYk,{data:function(){return c()},
onSelect:function(u,h){var J,N;return _.Y(function(D){L(!0);if(N=(J=m.data())==null?void 0:J.onSelectRating)_.h$(N),_.$e(Q4K(h));_.ey(D)})},
onDismiss:function(){L(!0);var u;var h=(u=A())==null?void 0:u.dismissalFeedbackToken;u=h?{feedbackEndpoint:{feedbackToken:h}}:void 0;u&&_.YE(u,{form:{element:G.value}})}})}})))},"Eb");var wV2=_.P(function(m){return _.r("yt-table-view-model",{class:_.VO("ytTableViewModelHost",m.className)},_.r(_.D0,{each:function(){return m.data().rows||[]}},function(G){var K={};
return _.r("div",{class:_.VO("ytTableViewModelRow",(K.ytTableViewModelRowBottomBorder=function(){return m.data().showSeparators},K))},_.r(_.D0,{each:function(){return(G==null?void 0:G.cells)||[]}},function(W,L){var A,O={};
return _.r("span",{class:_.VO((O.ytTableViewModelRowLabel=function(){return L()===0&&m.data().showHorizontalHeaders},O.ytTableViewModelCell=function(){return!m.data().showHorizontalHeaders||L()>0},O))},(A=W.text)==null?void 0:A.content)}))}))},"Fb");var gw0=_.P(function(m){return _.r("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.r(_.z$,{data:function(){var G;return(G=m.data())==null?void 0:G.attachments}},{flexibleActionsViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(_.Y8,{data:G.data,
layout:function(){var K;return((K=m.lockupStyle())==null?void 0:K.arrangement)===1?0:1},
justifyContentOverride:function(){var K;return((K=m.lockupStyle())==null?void 0:K.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(AT2,{data:G.data}))},
expandableMetadataViewModel:function(G){G=G.data;var K;return _.r("div",{class:_.VO("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(K=_.xS().resolve(_.fn(BcP)))==null?void 0:K({data:G}))},
adButtonGroupViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(WYR,{data:G.data}))},
adButtonViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(_.Cf,{data:G.data,isCompactWidth:!0}))},
tableViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(wV2,{data:G.data}))},
aiCompanionAttachmentViewModel:function(G){G=G.data;var K;return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},(K=_.xS().resolve(_.fn(_.PzC)))==null?void 0:K({data:G}))},
carouselAdCardCollectionViewModel:function(G){return _.r("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.r(KYS,{data:G.data,isLockupAttachment:!0}))}}))},"Gb");var xDJ=_.U8("rich_grid_min_item_width",310),e1M=_.U8("rich_grid_max_item_width",500);var TgV,MtF;TgV=16/9;MtF=2/3;_.VA=_.P(function(m){var G=m.data;var K=m.className;var W=m.imageSizeConfig;var L=m.notifyOnLoaded;var A=function(){return G().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},O=function(){var D;
return _.gH((D=G())==null?void 0:D.rendererContext)};
m={};m=(m.ytContentPreviewImageViewModelHost=!0,m.ytContentPreviewImageViewModelCircleImage=function(){return A()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},m.ytContentPreviewImageViewModelTappable=function(){return O()},m);
var c=function(){var D,t;return(t=(D=_.Q(G().rendererContext,_.MB))==null?void 0:D.label)!=null?t:""},u=function(){return ijM(G())},h=function(){var D=m5f(A(),G().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",W==null?void 0:W(),GAv(u()),G().layoutWidth,G().layoutHeight),t=Object.assign({},D);
D.width&&(t.width=Math.round(D.width));D.height&&(t.height=Math.round(D.height));D.maxWidth&&(t.maxWidth=Math.round(D.maxWidth));D.maxHeight&&(t.maxHeight=Math.round(D.maxHeight));return t},J=_.pT(function(){return h().height},void 0,"CxFlJb"),N=_.pT(function(){return h().width},void 0,"lb8Jhd");
return _.r("yt-content-preview-image-view-model",{el:_.aC(_.On(function(){var D;return(D=G())==null?void 0:D.rendererContext})),
role:function(){return O()?"link":void 0},
tabindex:function(){return O()?0:void 0},
class:_.VO(K,m,function(){var D=A();var t=W==null?void 0:W();D=D==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||D==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(t==null?void 0:t.size)!=null&&t.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(t==null?void 0:t.size)!=null&&t.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return D}),
style:function(){var D=h(),t=[];D.width&&t.push("width: "+D.width+"px");D.height&&t.push("height: "+D.height+"px");D.maxWidth&&t.push("max-width: "+D.maxWidth+"px");D.maxHeight&&t.push("max-height: "+D.maxHeight+"px");D.fullWidth&&t.push("width: 100%");return t.join(";")}},_.r(_.p,{cond:u,
then:function(D){return _.r(_.oC,{data:D,alt:c,"data-disabled$":function(){return!c()},
notifyOnLoaded:L,targetWidth:N,targetHeight:J,preserveWidth:function(){return!!N()},
preserveHeight:function(){return!!J()}})}}),_.r(_.z$,{data:function(){var D;
return(D=G())==null?void 0:D.overlays}},{thumbnailHoverOverlayViewModel:gI,
thumbnailOverlayButtonViewModel:_.x5K}))},"Hb");
_.VA.idomCompat=!0;var Za=_.P(function(m){var G=m.data;var K=m.className;var W=m.useSmallLayout;var L=m.useMediumText;var A=m.useHeavyText;var O=function(){return!(L==null||!L())||!(A==null||!A())};
m={};return _.r("yt-attribution-view-model",{el:_.aC(_.On(function(){var c;return(c=G())==null?void 0:c.rendererContext})),
class:_.VO(K,(m.ytAttributionViewModelHost=!0,m.ytAttributionViewModelMediumText=L,m.ytAttributionViewModelHeavyText=A,m))},_.r(_.p,{cond:function(){return _.gH(G().rendererContext)},
then:function(){return _.r("button",{class:"ytAttributionViewModelTappable"},_.r(OoF,{data:G,useSmallLayout:W,badgesShouldInheritTypography:O}))},
else:function(){return _.r(OoF,{data:G,useSmallLayout:W,badgesShouldInheritTypography:O})}}))},"Ib"),OoF=_.P(function(m){var G=m.data;
var K=m.useSmallLayout;var W=m.badgesShouldInheritTypography;var L=function(){return{size:(K==null?0:K())?16:24}};
return _.r(_.zL,null,_.r(_.z$,{data:function(){return G().contentPreviewImage}},{contentPreviewImageViewModel:function(A){return _.r(_.VA,{data:A.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:L})}}),_.r(_.z$,{data:function(){return G().badge}},{badgeViewModel:function(A){return _.r(_.vr,{data:A.data,
class:"ytAttributionViewModelBadge",modern:!0,inheritTypography:W})}}),_.r(_.p,{cond:function(){return G().text},
then:function(){return _.r(_.Nm,{text:function(){return G().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.r(_.p,{cond:function(){return G().suffix},
then:function(){return _.r(_.Nm,{text:function(){return G().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"Jb");
Za.idomCompat=!0;var cTk,Y2C,rTX,uhR,hyi;cTk=_.P(function(m){var G=m.delimiter;var K=m.max;var W=m.index;var L=m.isStandalone;return _.r(_.p,{cond:function(){return K()-1>W()},
then:function(){var A={};return _.r("span",{class:_.VO("yt-content-metadata-view-model__delimiter",(A["yt-content-metadata-view-model__delimiter--standalone"]=L,A)),"aria-hidden":!0},G)}})},"Kb");
Y2C=_.P(function(m){var G=m.metadataPart;var K=m.maxLines;return _.r(_.Nm,{text:function(){return G().text},
linkInheritColor:!0,className:function(){return KkV(K())},
userInput:!0})},"Lb");
rTX=_.P(function(m){var G=m.metadataPart;var K=m.maxLines;return _.r(_.p,{cond:function(){return G().tooltip},
then:function(W){return _.r("span",{title:W,role:"tooltip"},_.r(Y2C,{metadataPart:G,maxLines:K}))},
else:function(){return _.r(Y2C,{metadataPart:G,maxLines:K})}})},"Mb");
uhR=_.P(function(m){var G=m.metadataPart;var K=m.isOverlay;var W=m.useMediumText;var L=m.hideAvatar;var A=function(){return G().maxLines!==void 0?G().maxLines:1};
return _.r(_.zL,null,_.r(_.z$,{data:function(){return G().avatarStack}},{avatarStackViewModel:function(O){return _.r(_.YU,{data:O.data,
isOverlay:K,useMediumText:W,hideAvatar:L})},
badgeViewModel:_.vr}),_.r(_.p,{cond:function(){return G().leadingIcon},
then:function(O){return _.r(_.fN,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return O().name},
size:function(){return O().width}})}}),_.r(_.p,{cond:function(){return G().text},
then:function(){return _.r(rTX,{metadataPart:G,maxLines:A})}}),_.r(_.p,{cond:function(){return G().icon},
then:function(O){return _.r(_.fN,{className:"yt-content-metadata-view-model__icon",icon:function(){return O().name},
size:function(){return O().width}})}}))},"Nb");
hyi=_.P(function(m){var G=m.metadataRow;var K=m.isInline;var W=m.delimiter;var L=m.isOverlay;var A=m.useMediumText;var O=m.extensions;var c=function(){var h,J=O==null?void 0:(h=O())==null?void 0:h.lockupMetadata;h=G();var N,D;return!!((J==null?0:(N=J.byline)==null?0:N.hideAvatar)&&((D=_.Q(h,H9F))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},u=function(){return G().metadataParts||[]};
m={};return _.r("div",{class:_.VO("yt-content-metadata-view-model__metadata-row",(m["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=K,m["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var h,J=O==null?void 0:(h=O())==null?void 0:h.lockupMetadata;h=G();var N,D;return!!((J==null?0:(N=J.byline)==null?0:N.addPadding)&&((D=_.Q(h,H9F))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},m["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var h;
return!!(O==null?0:(h=O())==null?0:h.lockupMetadata)&&G().badges&&!G().metadataParts},m))},_.r(_.z$,{data:function(){return G().badges}},{badgeViewModel:function(h){return _.r("div",{class:"yt-content-metadata-view-model__badge"},_.r(_.vr,{data:h.data,
numBadgesInRow:function(){var J,N;return((J=G())==null?void 0:(N=J.badges)==null?void 0:N.length)||0}}))}}),_.r(_.D0,{each:u},function(h,J){return _.r(_.zL,null,_.r(uhR,{metadataPart:h,
isOverlay:L,useMediumText:A,hideAvatar:c}),_.r(cTk,{delimiter:W,max:function(){return u().length},
index:J,isStandalone:!1}))}),_.r(_.p,{cond:function(){return G().isSpacerRow&&!K()},
then:function(){return _.r("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Ob");
_.dI=_.P(function(m){m=_.ql(m,{layout:0,isOverlay:!1});var G=m.data,K=m.layout,W=m.isOverlay,L=m.useMediumText,A=m.extensions,O=function(){return K()===0},c=function(){var h;
return((h=G().metadataRows)==null?void 0:h.filter(function(J){var N,D=A==null?void 0:(N=A())==null?void 0:N.lockupMetadata,t,a;N=!!((D==null?0:(t=D.description)==null?0:t.hideDescription)&&((a=_.Q(J,H9F))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var v,I;return!((D==null?0:(v=D.spacer)==null?0:v.hideSpacer)&&((I=_.Q(J,H9F))==null?void 0:I.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||N)}))||[]},u={};
return _.r("yt-content-metadata-view-model",{class:_.VO(m.className,"yt-content-metadata-view-model",(u["yt-content-metadata-view-model--inline"]=O,u["yt-content-metadata-view-model--tappable"]=function(){return _.gH(G().rendererContext)},u["yt-content-metadata-view-model--medium-text"]=L,u)),
el:_.aC(_.On(function(){return G().rendererContext}))},_.r(_.D0,{each:c},function(h,J){return _.r(_.zL,null,_.r(hyi,{metadataRow:h,
isInline:O,delimiter:function(){return G().delimiter},
isOverlay:W,useMediumText:L,extensions:A}),_.r(_.p,{cond:function(){return O()&&!h.isSpacerRow},
then:function(){return _.r(cTk,{delimiter:function(){return G().delimiter},
max:function(){return c().length},
index:J,isStandalone:!0})}}))}))},"Pb");
_.dI.idomCompat=!0;var pVB=_.P(function(m){var G=_.xS().resolve(_.fn(_.l_)),K={};return _.r("yt-lockup-metadata-view-model",{class:_.VO("yt-lockup-metadata-view-model",function(){a:{var W=m.lockupStyle();if(W==null?0:W.isOverlay)W="yt-lockup-metadata-view-model--overlay";else switch(W==null?void 0:W.arrangement){case 1:W="yt-lockup-metadata-view-model--horizontal";break a;default:W="yt-lockup-metadata-view-model--vertical"}}return W},function(){a:{var W=m.lockupStyle();
switch(W==null?void 0:W.titleMaxLines){case 1:W="yt-lockup-metadata-view-model--title-max-lines-1";break a}W=void 0}return W},function(){a:{var W=m.lockupStyle();
if(W==null?0:W.isTiny)W="yt-lockup-metadata-view-model--tiny";else switch(W==null?void 0:W.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":W="yt-lockup-metadata-view-model--compact";break a;default:W="yt-lockup-metadata-view-model--standard"}}return W},(K["yt-lockup-metadata-view-model--overlay"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.isOverlay},K["yt-lockup-metadata-view-model--card"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.isCard},K["yt-lockup-metadata-view-model--centered"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.isCentered},K["yt-lockup-metadata-view-model--typography-bump"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.typographyBump},K["yt-lockup-metadata-view-model--legacy-typography"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.useLegacyTypography},K["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var W;
return(W=m.lockupStyle())==null?void 0:W.useRichGridLegacyTypography},K))},_.r(_.z$,{data:function(){return m.data().image}},{avatarStackViewModel:function(W){return _.r("div",{class:"yt-lockup-metadata-view-model__avatar"},_.r(_.YU,{data:W.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(W){return _.r("div",{class:"yt-lockup-metadata-view-model__avatar"},_.r(_.O9,{data:W.data}))},
decoratedAvatarViewModel:function(W){return _.r("div",{class:"yt-lockup-metadata-view-model__avatar"},_.r(_.cr,{data:W.data}))}}),_.r("div",{class:"yt-lockup-metadata-view-model__text-container"},_.r("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var W;return(W=m.data().title)==null?void 0:W.content}},_.r(_.p,{cond:function(){return m.data().title},
then:function(W){return _.r(_.qm,{command:m.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.eA({color:function(){var L;a:{var A=m.lockupStyle();var O=(L=m.hovered)==null?void 0:L.call(m);L=!(G==null||!G());var c;if((A==null?0:(c=A.onFocusEffect)==null?0:c.textPrimaryColor)&&O&&(A=L?A.onFocusEffect.textPrimaryColor.darkTheme:A.onFocusEffect.textPrimaryColor.lightTheme)){A=rF(A);break a}A=void 0}return A}}),
ariaLabel:m.lockupAccessibilityLabel},_.r(_.Nm,{text:W,userInput:!0}))}})),_.r("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.eA({color:function(){var W;a:{var L=m.lockupStyle();var A=(W=m.hovered)==null?void 0:W.call(m);W=!(G==null||!G());var O;if((L==null?0:(O=L.onFocusEffect)==null?0:O.textSecondaryColor)&&A&&(L=W?L.onFocusEffect.textSecondaryColor.darkTheme:L.onFocusEffect.textSecondaryColor.lightTheme)){L=rF(L);break a}L=void 0}return L}})},_.r(_.z$,{data:function(){return m.data().metadata}},{contentMetadataViewModel:function(W){return _.r(_.dI,{data:W.data,
layout:function(){var L,A;return(A=(L=m.layout)==null?void 0:L.call(m))!=null?A:1},
useMediumText:function(){var L,A;return((L=m.lockupStyle())==null?void 0:L.typographyBump)||((A=m.lockupStyle())==null?void 0:A.useRichGridLegacyTypography)},
extensions:function(){var L,A,O,c;return{lockupMetadata:{byline:{hideAvatar:((L=m.lockupStyle())==null?void 0:L.arrangement)===0,addPadding:((A=m.lockupStyle())==null?void 0:A.arrangement)===1},description:{hideDescription:!((O=m.lockupStyle())==null||!O.compactMetadata)},spacer:{hideSpacer:!((c=m.lockupStyle())==null||!c.compactMetadata)}}}}})}})),_.r(_.z$,{data:function(){return m.data().attribution}},{attributionViewModel:function(W){return _.r("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.r(Za,{data:W.data,
useSmallLayout:!0}))}})),_.r("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.r(_.z$,{data:function(){return m.data().menuButton}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
buttonOverrides:function(){var L;return((L=m.lockupStyle())==null?0:L.isOverlay)?{style:"overlay"}:void 0}})}})))},"Qb");
pVB.idomCompat=!0;var JTS=_.P(function(m){var G=_.Q3("notification-multi-action-renderer");_.nn(function(){requestAnimationFrame(function(){_.dW(G.value)})});
var K={},W={},L={};return _.r("notification-multi-action-renderer",{class:_.VO("ytNotificationMultiActionRendererHost",(K.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var A;return(A=m.useLegacyShelfStyle)==null?void 0:A.call(m)},K)),
el:G},_.r("span",{"aria-live":"polite",class:_.VO("ytNotificationMultiActionRendererTextContainer",(W.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var A;return(A=m.useLegacyShelfStyle)==null?void 0:A.call(m)},W))},_.r(_.Nm,{text:function(){return m.data().responseText}})),_.r("div",{class:_.VO("ytNotificationMultiActionRendererButtonContainer",(L.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var A;
return(A=m.useLegacyShelfStyle)==null?void 0:A.call(m)},L))},_.r(_.z$,{data:function(){var A;
return(A=m.data().buttons)==null?void 0:A.map(function(O){if(O=O.buttonRenderer){var c,u=Object,h=u.assign,J=(c=O.icon)==null?void 0:c.iconType;c=(c=O.command||O.serviceEndpoint||O.navigationEndpoint)?{innertubeCommand:c}:void 0;O={buttonViewModel:h.call(u,{},{iconName:J,onTap:c,trackingParams:O.trackingParams,titleFormatted:O.text?_.A$(O.text):void 0},LkM(O))}}else O=void 0;return O}).filter(function(O){return!!O})}},{buttonViewModel:function(A,O){return _.r("div",null,_.r(_.kP,{data:A.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var c;return((c=m.useModernStyles)==null?0:c.call(m))?{type:O()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Sb");var Na4=_.P(function(m){var G=_.Q3("notification-text-renderer");_.nn(function(){requestAnimationFrame(function(){_.dW(G.value)})});
return _.r("notification-text-renderer",{el:G,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.r(_.Nm,{text:function(){return m.data().successResponseText}}))},"Ub");_.Pr=_.P(function(m){var G=_.S5(D0d,function(){var W;return A2d((W=m.contentId)==null?void 0:W.call(m))}),K=function(){var W;
return _.Q((W=G())==null?void 0:W.command,_.Rk)};
return _.r(_.p,{cond:function(){var W;if(!(W=K())){var L;W=_.Q((L=G())==null?void 0:L.command,PBC)}return W},
then:function(){return _.r(_.p,{cond:K,then:function(){var W={};return _.r("div",{class:_.VO("ytDismissibleItemReplacedContent",function(){var L;return wQd((L=m.aspectRatio)==null?void 0:L.call(m))})},_.r("div",{class:_.VO((W.ytDismissibleItemAspectRatioContainer=function(){var L;
return((L=m.aspectRatio)==null?void 0:L.call(m))!==void 0},W))},_.r(_.z$,{data:function(){var L;
return(L=K())==null?void 0:L.item}},{notificationMultiActionRenderer:function(L){return _.r(JTS,{data:L.data,
useModernStyles:m.useModernStyle,useLegacyShelfStyle:m.useLegacyShelfStyle})},
notificationTextRenderer:Na4})))}})},
else:m.children})},"Vb");_.DsX=_.P(function(m){var G=m.data;var K=m.customCommandResolver;m=_.aC(_.eN({visibilityCallback:function(A){var O,c=(O=G().interaction)==null?void 0:O.onFirstVisible;A&&c&&_.h$(c)},
showOption:_.I_}));var W=function(){var A;return((A=G().interaction)==null?0:A.onTap)?function(O){var c;jj6(O,(c=G().interaction)==null?void 0:c.onTap,K)}:void 0},L=function(){var A,O=G(),c=W(),u=(A=_.Q(G().rendererContext,_.MB))==null?void 0:A.label;
a:switch(O.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":A=1;break a;default:A=0}return{size:c2o(O.size),type:A,onTap:c,accessibilityText:u}};
return _.r("ad-avatar-view-model",{class:function(){var A;return((A=G().interaction)==null?0:A.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:m},_.r(_.p,{cond:function(){return G().image},
then:function(A){return _.r(R12,{data:L,image:A})}}))},"Wb");_.yA=_.P(function(m){var G=_.ql(m,{hasDot:!1,usedInMasthead:!1}),K=Object.assign({},G),W=G.data,L=G.hasDot;m=G.customCommandResolver;var A=G.usedInMasthead,O=(delete K.data,delete K.hasDot,delete K.customCommandResolver,delete K.usedInMasthead,K);G=function(){return W().style};
G!==void 0&&G!==null||_.V3(Error("Jh"));m=_.h3(function(){return W().interaction},m);
return _.r("ad-badge-view-model",{class:_.VO(function(){var c;return((c=W().interaction)==null?0:c.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var c=O.adRenderingContextType(),u=A();
W();return c!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||u?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.aC(m)},_.r(_.pk,{data:function(){var c;W();return{type:2,text:(c=W().label)==null?void 0:c.content,adsIncludeDot:L(),isOverlay:W().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xb");var tsB;_.eS=_.P(function(m){var G=m.data;var K=m.customCommandResolver;var W=m.adRenderingContextType;return _.r("ad-details-line-view-model",{class:function(){var L;return((L=G().interaction)==null?0:L.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(L){var A,O=(A=G().interaction)==null?void 0:A.onFirstVisible;L&&O&&_.h$(O)},
showOption:_.I_}),_.h3(function(){return G().interaction},K))},_.r(_.p,{cond:function(){return G().style},
then:function(L){return _.r(_.D0,{each:function(){var A;return((A=G())==null?void 0:A.attributes)||[]},
keyBy:"INDEX"},function(A){return _.r(tsB,{attribute:A,style:L,adRenderingContextType:function(){return W()}})})}}))},"Yb");
tsB=_.P(function(m){var G=m.attribute;var K=m.style;var W=m.adRenderingContextType;return _.r(_.p,{cond:function(){return G().text},
then:function(L){return _.r(_.Nm,{text:L,className:function(){var A=W();K();return A==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Zb");var FYF=_.P(function(m){var G=m.data;var K=m.typographyBump;var W=function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"},L=function(){return{size:"M"}};
m={};return _.r(_.zL,null,_.r("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.r(_.Nm,{text:function(){return G().headline},
className:_.VO((m.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineLegacy=function(){return!_.F("enable_desktop_vdc_components")},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline=function(){return _.F("enable_desktop_vdc_components")},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return W==null?void 0:W()},m.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(K==null?void 0:K())&&!(W==null?0:W())},m)),
linkInheritColor:!0}),_.r(_.p,{cond:function(){return G().description},
then:function(A){var O={};return _.r(_.Nm,{text:A,className:_.VO("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return W==null?void 0:W()},O.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(K==null?void 0:K())&&!(W==null?0:W())},O)),
linkInheritColor:!0})}}),_.r(_.p,{cond:function(){return G().secondaryDescription},
then:function(A){var O={};return _.r(_.Nm,{text:A,className:_.VO("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(O.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return K==null?void 0:K()},O)),
linkInheritColor:!0})}}),_.r("div",{class:function(){return W()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.r(_.p,{cond:function(){return G().adAvatar},
then:function(){return _.r("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.r(_.z$,{data:function(){return G().adAvatar}},{adAvatarViewModel:_.DsX}))}}),_.r(_.z$,{data:function(){return G().adBadge}},{adBadgeViewModel:function(A){return _.r(_.yA,{data:A.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.r(_.z$,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(A){return _.r(_.eS,{data:A.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}}))),_.r("div",{class:function(){return _.F("enable_desktop_vdc_components")?"ytwFeedAdMetadataViewModelHostMenuButton":W()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:function(A){return _.r(_.kP,{data:A.data,
buttonOverrides:_.F("enable_desktop_vdc_components")?L:function(){a:switch(G().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var O="S";break a;default:O="M"}return{size:O}}})}})))},"$b"),Q5K=_.P(function(m){var G=m.data;
var K=m.noBottomMargin;var W=m.useVideoLockupTopPadding;var L=m.typographyBump;m={};m=_.VO("ytwFeedAdMetadataViewModelHostMetadata",(m.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return K==null?void 0:K()},m.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return W==null?void 0:W()},m));
var A=function(){return G().adBadge};
A!==void 0&&A!==null||_.V3(Error("Kh"));A={};var O={};return _.r(_.zL,null,_.r(_.p,{cond:function(){return G().adAvatar},
then:function(){return _.r("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.r(_.z$,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(c){return _.r(_.DsX,{data:c.data})}}))}}),_.r("div",{class:m},_.r("div",{class:_.VO("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return L==null?void 0:L()},A.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(L==
null?void 0:L())&&_.F("web_enable_typography_bump_v2")},A))},_.r(_.Nm,{text:function(){return G().headline},
linkInheritColor:!0})),_.r(_.p,{cond:function(){return G().description},
then:function(c){return _.r(_.Nm,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.r("div",{class:function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.F("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.r(_.z$,{data:function(){return G().adBadge}},
{adBadgeViewModel:function(c){return _.r(_.yA,{data:c.data,
hasDot:function(){return!!G().adDetailsLine},
adRenderingContextType:function(){return G().adRenderingContextType}})}}),_.r(_.z$,{data:function(){return G().adDetailsLine}},{adDetailsLineViewModel:function(c){return _.r(_.eS,{data:c.data,
adRenderingContextType:function(){return G().adRenderingContextType}})}})),_.r(_.p,{cond:function(){return G().secondaryDescription},
then:function(c){return _.r(_.Nm,{text:c,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.r("div",{class:_.VO("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(O.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return W==null?void 0:W()},O))},_.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:_.kP})))},"ac"),ff=_.P(function(m){var G=m.data;
var K=m.noBottomMargin;var W=m.listenToTapEvent;var L=m.setTouchEndHandler;var A=m.useVideoLockupTopPadding;var O=m.typographyBump;m=_.eN({visibilityCallback:function(N){var D,t=(D=G().interaction)==null?void 0:D.onFirstVisible;N&&t&&_.h$(t)},
showOption:_.I_});var c=_.h3(function(){return G().interaction},void 0,function(){return W==null?void 0:W()}),u=_.g(_.g_(!1,void 0,"KSFskc")),h=u.next().value,J=u.next().value;
u=_.dn(function(N){(L==null?0:L())&&!h()&&(N.currentTarget.click(),J(!0),setTimeout(function(){J(!1)},100));
return!1});
return _.r("feed-ad-metadata-view-model",{class:function(){var N;return((N=G().interaction)==null?0:N.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.aC(m,c),"on:touchend":u},_.r(_.tw,null,_.r(_.Jw,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.r(FYF,{data:G,
typographyBump:O})}),_.r(_.Jw,{when:function(){return G().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.r(Q5K,{data:G,
noBottomMargin:K,useVideoLockupTopPadding:A,typographyBump:O})})))},"bc");var as2,owX;as2=_.DE.inlinePreviewEnabledSelector;_.xU=_.P(function(m){return _.r("yt-lockup-view-model",{class:_.VO(m.className,"yt-lockup-view-model--wrapper")},_.r(_.Pr,{contentId:function(){return m.data().contentId},
useModernStyle:!0,aspectRatio:function(){var G,K;return((G=m.containerType)==null?void 0:G.call(m))!==3?luF(m.data().contentType,(K=m.force16By9ThumbnailAspectRatio)==null?void 0:K.call(m)):void 0}},function(){return _.r(owX,Object.assign({},m))}))},"cc");
owX=_.P(function(m){m=_.ql(m,{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,useOverlayStyling:void 0});var G=m.data,K=m.containerLayoutConfig,W=m.containerType,L=m.sizing,A=m.protectBackground,O=m.typographyBump,c=m.force16By9ThumbnailAspectRatio,u=m.thumbnailFixedWidth,h=m.thumbnailTargetWidth,J=m.lockupExperiments,
N=m.elementsPerRow,D=m.useOverlayStyling,t=_.xS().resolve(_.fn(_.l_));m=_.aC(_.On(function(){var xG;return(xG=G())==null?void 0:xG.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 a=_.RC(as2),v=_.xS().resolve(_.fn(Io4)),I=v?{}:void 0,Z=function(){var xG,Ji,rK;return(rK=(Ji=_.Q((xG=G())==null?void 0:xG.rendererContext,_.MB))==null?void 0:Ji.label)!=null?rK:void 0},k=function(){var xG;
return(xG=_.Q(G().metadata,_.InF))==null?void 0:xG.endorsement},z=function(){var xG=K==null?void 0:K(),Ji;
if(xG==null?0:xG.containerType){var rK=(Ji=G())==null?void 0:Ji.contentType;Ji=J();var So=O(),ti=h(),bS=A();xG=Object.assign({},Bgd(Su6(xG),J3(xG.responsiveSize),So,rK,xG.force16By9ThumbnailAspectRatio,ti,bS,void 0,Ji),{thumbnailFixedWidth:xG.contentPreviewWidth})}else xG=Bgd(W(),L(),O(),(rK=G())==null?void 0:rK.contentType,c(),h(),A(),D(),J());return xG};
v&&I&&v({enabled:function(){return a()},
itemPlaybackModel:function(){return G().itemPlayback},
thumbnailElRef:function(){return I.thumbnailElRef},
containerElRef:m,options:function(){var xG=I.thumbnailOverlays||[],Ji=k(),rK;!Ji||((rK=J())==null?0:rK.onFocusEffect)||xG.push(Ji);var So,ti;return{thumbnail:I.thumbnail,thumbnailOverlays:xG,accessibilityText:Z(),thumbnailSize:I.thumbnailSize,enableRounding:z().isCollection,containPlayerWithinThumbnail:z().isCollection,mouseleaveCallback:function(){U(!1)},
trackingParams:(So=_.Q(G().rendererContext,_.BL))==null?void 0:(ti=So.loggingDirectives)==null?void 0:ti.trackingParams}}});
var X=0;v=_.g(_.g_(!1,void 0,"v0iGab"));var f=v.next().value,U=v.next().value;v=_.g(_.g_(!1,void 0,"PVKcBd"));var l=v.next().value,Ls=v.next().value;v=_.dn(function(){l()?(_.Fu.cancelJob(X),X=_.Fu.addJob(function(){U(!0)},8,32)):U(!0);
return!0});
var gd=_.dn(function(xG){xG=xG.relatedTarget;var Ji=document.querySelector("ytd-video-preview");xG&&Ji&&Ji.contains(xG)||(X&&(_.Fu.cancelJob(X),X=0),U(!1))});
_.sZ(function(){X&&(_.Fu.cancelJob(X),X=0)});
var Qf=OjV(function(){Ls(!0)}),JV=Qf.touchFeedbackEvents,DF=Qf.touchFeedbackOnPointerUp,kG=Qf.touchFeedbackOnPointerDown;
Qf=Qf.touchFeedbackOnPointerLeave;var eo={};return _.r(_.zL,null,_.r("div",{el:m,class:_.VO("yt-lockup-view-model",function(){a:{var xG=z();if(xG.metadataOnThumbnail)xG="yt-lockup-view-model--metadata-on-thumbnail";else switch(xG.arrangement){case 1:xG="yt-lockup-view-model--horizontal";break a;default:xG="yt-lockup-view-model--vertical"}}return xG},function(){a:{var xG=z();
if(xG.metadataOnThumbnail)xG="yt-lockup-view-model--metadata-on-thumbnail";else{switch(xG.collectionStackNumber){case 1:xG="yt-lockup-view-model--collection-stack-1";break a;case 2:xG="yt-lockup-view-model--collection-stack-2";break a}xG=void 0}}return xG},function(){var xG;
return _.Wks((xG=G())==null?void 0:xG.contentId)},(eo["yt-lockup-view-model--card"]=function(){return z().isCard},eo["yt-lockup-view-model--compact"]=function(){return z().isTiny||z().sizing!=="STANDARD"},eo["yt-lockup-view-model--protect-background"]=A,eo["yt-lockup-view-model--add-margins"]=function(){return z().addMarginForFullbleed},eo["yt-lockup-view-model--centered"]=function(){return z().isCentered},eo["yt-lockup-view-model--fullbleed"]=function(){return z().fullbleed},eo["yt-lockup-view-model--single-column-grid"]=
function(){return N()===1&&W()===2},eo["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var xG;
return(xG=J())==null?void 0:xG.useRichGridLegacyMargin},eo["yt-lockup-view-model--flex-none"]=function(){return!_.F("lockup_flex_none_killswitch")},eo)),
"on:mousedown":kG,"on:mouseleave":gd,"on:mouseup":DF,"on:mouseover":v,"on:touchstart":kG,"on:touchend":DF,"on:pointerleave":Qf},_.r(_.EH,{model:function(){var xG,Ji,rK=Object,So=rK.assign,ti=(I==null?void 0:I.thumbnailSize)||"small";a:{var bS=z();var NG=!!(k()&&((xG=J())==null?0:xG.onFocusEffect));switch((I==null?void 0:I.thumbnailSize)||"small"){case "small":xG=4;break;case "large":xG=12;break;default:xG=8}if(NG)bS=xG+12;else{switch(bS.collectionStackNumber){case 1:bS=xG+8;break a;case 2:bS=xG+12;
break a}bS=void 0}}ti={thumbnailSize:ti,triggerEvents:!0,customTopExtend:bS};var EO;bS=(Ji=J())==null?void 0:Ji.onFocusEffect;NG=!(t==null||!t());if(bS){var gz,ps;Ji=NG?(gz=bS.onFocusColor)==null?void 0:gz.darkTheme:(ps=bS.onFocusColor)==null?void 0:ps.lightTheme;var ZF,DP;gz=NG?(ZF=bS.keyLightColor)==null?void 0:ZF.darkTheme:(DP=bS.keyLightColor)==null?void 0:DP.lightTheme;var lS;ZF=NG?(EO=bS.touchResponseColor)==null?void 0:EO.darkTheme:(lS=bS.touchResponseColor)==null?void 0:lS.lightTheme;EO={background:Ji!==
void 0?rF(Ji):void 0,keyLight:gz!==void 0?rF(gz):void 0};lS=[];DP=_.g(bS.lightingTechniques||[]);for(gz=DP.next();!gz.done;gz=DP.next())switch(gz.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":lS.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":lS.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":lS.push(3)}EO={hoverEffect:{palette:EO,lightingTechniques:lS},touchEffect:{palette:{background:ZF!==void 0?rF(ZF):void 0}}}}else EO={};return So.call(rK,{},ti,EO)},
hovered:function(){return f()},
pointerDownEvent:JV.pointerDownEvent,pointerUpEvent:JV.pointerUpEvent,pointerLeaveEvent:JV.pointerLeaveEvent}),_.r(_.p,{cond:function(){var xG;return k()&&f()&&((xG=J())==null?void 0:xG.onFocusEffect)},
then:function(){return _.r("div",{class:"yt-lockup-view-model__endorsement"},_.r(_.z$,{data:function(){return k()}},{attributionViewModel:function(xG){return _.r(Za,{data:xG.data,
useHeavyText:!0})}}))}}),_.r(_.qm,{command:function(){var xG;
return _.wH((xG=G())==null?void 0:xG.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return(u()||z().thumbnailFixedWidth)&&z().arrangement===1?"width: "+(u()||z().thumbnailFixedWidth):""}},_.r(_.z$,{data:function(){var xG;
return(xG=G())==null?void 0:xG.contentImage}},{thumbnailViewModel:function(xG){return _.r(Hr,{data:xG.data,
aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:h,hovered:function(){return f()&&!(a()&&G().itemPlayback)},
isClip:function(){var Ji;return((Ji=G())==null?void 0:Ji.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:sjv(I),lockupExperiments:function(){return J()}})},
collectionThumbnailViewModel:function(xG){return _.r(loX,{data:xG.data,aspectRatio:function(){return z().aspectRatio},
disableRounding:function(){return z().disableRounding},
width:h,doubleStack:function(){return z().collectionStackNumber===2},
hovered:function(){return f()&&!(a()&&G().itemPlayback)},
playbackRef:sjv(I)})},
decoratedAvatarViewModel:_.cr})),_.r("div",{class:"yt-lockup-view-model__metadata"},_.r(_.z$,{data:function(){var xG;return(xG=G())==null?void 0:xG.metadata}},{lockupMetadataViewModel:function(xG){return _.r(pVB,{data:xG.data,
hovered:f,lockupStyle:z,lockupCommand:function(){var Ji;return _.wH((Ji=G())==null?void 0:Ji.rendererContext)},
lockupAccessibilityLabel:function(){return Z()},
layout:function(){var Ji;return((Ji=J())==null?0:Ji.useInlineContentMetadata)?0:void 0}})},
feedAdMetadataViewModel:function(xG){return _.r(ff,{data:xG.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:O})}}),_.r(_.z$,{data:function(){var xG;
return(xG=G())==null?void 0:xG.attachmentSlot}},{lockupAttachmentsViewModel:function(xG){return _.r(gw0,{data:xG.data,
lockupStyle:z})}}))),_.r(_.z$,{data:function(){var xG;
return(xG=G())==null?void 0:xG.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(xG){return _.r(gw0,{data:xG.data,
lockupStyle:z})}}))},"dc");
_.xU.idomCompat=!0;_.sh(_.xU,"yt-lockup-view-model",{props:{data:_.Dd,containerLayoutConfig:_.Dd,containerType:_.Dd,sizing:_.Dd,protectBackground:_.Dd,typographyBump:_.Dd,thumbnailFixedWidth:_.Dd,thumbnailTargetWidth:_.Dd,force16By9ThumbnailAspectRatio:_.Dd,className:_.Dd,lockupExperiments:_.Dd,elementsPerRow:_.Dd,useOverlayStyling:_.Dd}});var hkG,nwK=_.P(function(m){var G=_.ql(m,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),K=G.text,W=G.alwaysShowTruncationText;m=G.truncationText;var L=G.onTextClick,A=G.maxLines,O=G.disableTextMask,c=G.textStyle,u=G.accessibilityLabel,h=G.textSize,J=G.alwaysTruncateAtMaxLines,N=G.expandOnClick;G=_.g(_.g_(!1,void 0,"EzA1q"));var D=G.next().value,t=G.next().value;G=_.dn(function(){N()&&t(!D());L==null||L()});
var a=function(){a:switch(h()){case "medium":var l=2;break a;case "large":l=2.2;break a;default:l=1.8}return l},v=NcG(K,function(){return D()?Infinity:A()},a,O,J,D),I=v.isTruncated;
K=v.displayText;J=v.contentRef;var Z=v.hiddenRef,k=v.placeholderTruncationTextRef,z=v.hiddenTruncationTextRef;v=v.truncationTextRef;var X={},f={},U={};return _.r("truncated-text",{class:_.VO((X["yt-truncated-text"]=!0,X["yt-truncated-text--overlay"]=function(){return c()==="overlay"},X["yt-truncated-text--medium-text"]=function(){return h()==="medium"},X["yt-truncated-text--large-text"]=function(){return h()==="large"},X["yt-truncated-text--primary-text"]=function(){return c()==="primary-text"},X)),
"on:click":G,style:function(){return"line-height: "+a()+"rem;"}},_.r("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:J,style:function(){return D()?"":"max-height: "+A()*a()+"rem;"}},_.r(_.Nm,{text:K}),_.r("button",{"aria-disabled":!0,
disabled:!0,class:_.VO((f["yt-truncated-text__inline-button"]=!0,f["yt-truncated-text--hidden"]=function(){return!(!D()&&(W!=null&&W()||I()))},f)),
el:k,style:function(){return"line-height: "+a()+"rem;"}},_.r(_.Nm,{text:m}))),_.r("truncated-text-content",{class:_.VO("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:Z,style:function(){return D()?"":"max-height: "+A()*a()+"rem;"},
"aria-hidden":"true"},_.r(_.Nm,{text:K}),_.r("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:z,style:function(){return"line-height: "+a()+"rem;"}},_.r(_.Nm,{text:m}))),_.r("button",{"aria-label":u,
class:_.VO((U["yt-truncated-text__absolute-button"]=function(){return!O()},U["yt-truncated-text__bottom-button"]=function(){return O()},U["yt-truncated-text--hidden"]=function(){return!(!D()&&(W!=null&&W()||I()))},U)),
el:v,style:function(){return"line-height: "+a()+"rem;"}},_.r(_.Nm,{text:m})))},"fc");
nwK.idomCompat={callbacks:{onTextClick:!0}};var $sF=_.P(function(m){var G=m.data;m=m.className;var K=_.pT(function(){return tVG(G())},void 0,"uDhDke"),W=_.r(_.zL,null,_.r(_.p,{cond:function(){return G().heroText||G().image},
then:function(){return _.r(boR,{data:G})}}),_.r(vwB,{data:G,
sizeSmall:function(){return G().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.r("yt-video-attribute-view-model",{class:m},_.r("div",{class:function(){var L=G();a:switch(L.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var A="yt-video-attribute-view-model--vertical";break a;default:A="yt-video-attribute-view-model--horizontal"}a:switch(L.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var O="yt-video-attribute-view-model--image-small";break a;default:O="yt-video-attribute-view-model--image-large"}a:switch(L.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var c=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":c="yt-video-attribute-view-model--image-avatar";break a;default:c=""}a:switch(L.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var u="yt-video-attribute-view-model--metadata-header";break a;default:u=""}a:switch(L.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var h="yt-video-attribute-view-model--container-card";break a;default:h=""}return["yt-video-attribute-view-model",A,O,
c,u,h,tVG(L)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.eA({"background-color":function(){var L=G();if(L.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var A="";else{A=L.lightColorPalette;L=L.darkColorPalette;var O,c=((O=_.xS().resolve(_.fn(_.l_)))==null?0:O())&&L?L:A;A=(A=c==null?void 0:c.section2Color)?_.ce(A):""}return A}})},_.r(_.p,{cond:K,
then:function(){return _.r(_.qm,{className:"yt-video-attribute-view-model__content-container",command:K,role:"group",ariaLabel:function(){return G().title}},W)},
else:function(){return _.r("div",{class:"yt-video-attribute-view-model__content-container"},W)}})))},"gc");
$sF.idomCompat=!0;var boR=_.P(function(m){var G=m.data;var K,W=(K=_.xS().resolve(_.fn(_.l_)))==null?void 0:K(),L=function(){return W&&G().darkThemeImage?G().darkThemeImage:G().image},A=_.pT(function(){return Fkf(G())},void 0,"UDqj0b");
return _.r("div",{class:"yt-video-attribute-view-model__hero-section"},_.r(_.tw,null,_.r(_.Jw,{when:L},function(){return _.r(_.oC,{data:function(){return L()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.r(_.Jw,{when:function(){return G().heroText}},function(){return _.r("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.r("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return G().heroText}))})),_.r(_.p,{cond:function(){return G().overflowMenuOnTap},
then:function(){return _.r("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.r(_.jd,{data:A,iconName:"MORE_VERT"}))}}))},"hc");
boR.idomCompat=!0;var vwB=_.P(function(m){var G=m.data;m=m.sizeSmall;var K=function(){return G().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},W=_.pT(function(){return uK(_.rn({innertubeCommand:tVG(G())}))?"link":tVG(G())?"button":"group"},void 0,"e2MmYe"),L={};
return _.r("div",{class:_.VO("yt-video-attribute-view-model__metadata",(L["yt-video-attribute-view-model--small-font"]=m,L)),role:W},_.r("h1",{class:"yt-video-attribute-view-model__title"},function(){return G().title}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(){return _.r("h4",{class:"yt-video-attribute-view-model__subtitle"},_.r(_.p,{cond:K,then:function(){return _.r(nwK,{text:function(){return D5o(G().subtitle)},
truncationText:function(){return D5o(G().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.r("span",null,function(){return G().subtitle})}}))}}),_.r(_.p,{cond:function(){return G().secondarySubtitle},
then:function(A){return _.r("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.r(_.Nm,{text:function(){var O=A();if(O!=null&&O.attachmentRuns){for(var c=[],u=_.g(O.attachmentRuns),h=u.next();!h.done;h=u.next())h=h.value,h.element&&c.push(Object.assign({},h,{element:Object.assign({},h.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));O=Object.assign({},O,{attachmentRuns:c})}return O}}))}}),_.r(_.z$,
{data:function(){return G().buttonViewModel}},{buttonViewModel:function(A){return _.r(_.kP,{data:A.data,
className:"yt-video-attribute-view-model__button"})}}))},"ic");
vwB.idomCompat=!0;_.sh($sF,"yt-video-attribute-view-model",{props:{data:_.Dd,className:_.Dd}});var Xn=function(){var m=_.d.apply(this,arguments)||this;m.useHighlightStyling=_.F("web_enable_deeper_metadata_highlight_styling");m.isSearch=!1;m.JSC$15608_lastScrollContainerWidth=NaN;m.pageLoadingFromNavigation=!1;m.currentIndex=0;m.supportComponentResize=!1;return m};
_.n(Xn,_.d);_.w=Xn.prototype;
_.w.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}}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.xC(this,this.onPageChange))};
_.w.detached=function(){document.removeEventListener("yt-page-type-changed",_.xC(this,this.onPageChange))};
_.w.getItemsPath=function(){return"data.cards"};
_.w.onIronResize=function(){this.updateListStyles()};
_.w.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var m;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(m=this.data)==null?void 0:m.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.F("problem_walkthrough_sd")&&!!this.centerItems};
_.w.computeCardListStyle=function(m){return m||null};
_.w.computeEmpty=function(m){return!this.get("cards.length",m)};
_.w.computeThumbnailStyle=function(m){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",m)||null};
_.w.computeHasSubtitle=function(m){return!!this.get("header.richListHeaderRenderer.subtitle",m)};
_.w.computeInitialCountNumber=function(m){return this.hasSquareMiniApp&&m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.w.computeUseFloorScrolling=function(m){return m==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.w.computeHasGameCard=function(m){return(m=this.get("cards",m))?m.some(function(G){return G.gameCardRenderer}):!1};
_.w.computeCenterHeaderTitle=function(m){return!(m==null||!m.centerHeaderTitle)};
_.w.computeHasPortraitMiniApp=function(m){return(m=m==null?void 0:m.cards)?m.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.w.computeHasSquareMiniApp=function(m){return(m=m==null?void 0:m.cards)?m.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.w.computeHasSkinnyWidthPortraitMiniApp=function(m){return(m=m==null?void 0:m.cards)?m.some(function(G){return G.miniGameCardViewModel&&G.miniGameCardViewModel.width===135}):!1};
_.w.computeCenterItems=function(m){return!!m};
_.w.computeHasInfoPanel=function(m){var G;return m==null?void 0:(G=m.cards)==null?void 0:G.some(function(K){return K.infoPanelContentRenderer})};
_.w.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.w.getItemByIndex=function(m){var G=this.items.children;return G&&G.length>m?G[m]:void 0};
_.w.onPageChange=function(){var m=this;this.pageLoadingFromNavigation=!0;_.Fu.addJob(function(){m.pageLoadingFromNavigation=!1;_.PH(m.hostElement,"yt-terminate-video-preview-action")},8)};
_.w.updateListStyles=function(){if(_.F("problem_walkthrough_sd")&&this.JSC$15608_scrollContainer!==void 0){var m=this.JSC$15608_scrollContainer.clientWidth;m!==this.JSC$15608_lastScrollContainerWidth&&(this.JSC$15608_lastScrollContainerWidth=m,_.eb(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(m*.8,415)+"px"}),_.Zw(this.hostElement,"iron-resize"))}};
_.e_.Object.defineProperties(Xn.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.F("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.cards)==null?0:(K=G[0])==null?0:K.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.cards)==null?0:(K=G[0])==null?0:K.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return _.F("enable_desktop_amsterdam_info_panels")&&!!((m=this.data)==null?0:(G=m.cards)==null?0:(K=G[0])==null?0:K.infoPanelContentRenderer)}}});
Xn.prototype.dataChanged=Xn.prototype.dataChanged;Xn.prototype.onIronResize=Xn.prototype.onIronResize;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],Xn.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.q(_.Yj),_.S("design:type",Object)],Xn.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Xn.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Xn.prototype,"useCustomColors",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xn.prototype,"useHighlightStyling",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.S("design:type",Object)],Xn.prototype,"cardListStyle",void 0);_.x([_.V({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.S("design:type",Boolean)],Xn.prototype,"empty",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasSubtitle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.S("design:type",Boolean)],Xn.prototype,"thumbnailStyle",void 0);_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasGameCard",void 0);_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.S("design:type",Boolean)],Xn.prototype,"centerHeaderTitle",void 0);
_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasPortraitMiniApp",void 0);_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasSquareMiniApp",void 0);_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.x([_.V({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.S("design:type",Boolean)],Xn.prototype,"hasInfoPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xn.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Xn.prototype,"inlineStructuredDescription",void 0);_.x([_.UM("#scroll-container"),_.S("design:type",HTMLDivElement)],Xn.prototype,"JSC$15608_scrollContainer",void 0);
_.x([_.V({computed:"computeInitialCountNumber(data.style.type)"}),_.S("design:type",Number)],Xn.prototype,"initialCount",void 0);_.x([_.V({computed:"computeUseFloorScrolling(data.style.type)"}),_.S("design:type",Boolean)],Xn.prototype,"useFloorScrolling",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.S("design:type",Boolean)],Xn.prototype,"centerItems",void 0);_.x([_.V(),_.S("design:type",Object)],Xn.prototype,"pageLoadingFromNavigation",void 0);
_.x([_.V(),_.S("design:type",Object)],Xn.prototype,"currentIndex",void 0);_.x([_.V(),_.S("design:type",Number)],Xn.prototype,"scrollCount",void 0);_.x([_.V(),_.S("design:type",Object)],Xn.prototype,"supportComponentResize",void 0);_.x([_.UM("#items"),_.S("design:type",HTMLDivElement)],Xn.prototype,"items",void 0);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xn.prototype,"onIronResize",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xn.prototype,"dataChanged",null);_.x([_.V({reflectToAttribute:!0}),_.E("inlineStructuredDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xn.prototype,"hideNavigationButton",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xn.prototype,"modernChapters",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xn.prototype,"hasVideoAttributeViewModels",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xn.prototype,"modernInfoPanels",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Xn);
_.y(Xn,"ytd-horizontal-card-list-renderer",function(){if(r2S!==void 0)return r2S;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return r2S=m},{mode:2});var s50=_.P(function(m){var G=m.data;var K={};return _.r("video-summary-content-view-model",{class:_.VO("videoSummaryContentViewModelHost",m.className,(K.videoSummaryContentViewModelHostIsSearch=m.isSearch,K))},_.r(_.D0,{each:function(){var W=[],L=G().paragraphs;if(L==null||!L.length)return[];for(var A=0;A<L.length;A++){var O=_.Q(L[A],EV4),c=void 0;A>0&&(c=_.Q(L[A-1],EV4));c&&!!c.marker===!!O.marker?W[W.length-1].paragraphs.push(O):W.push({isList:!!O.marker,paragraphs:[O]})}return W},
keyBy:"INDEX"},function(W){return _.r(_.p,{cond:function(){return W().isList},
then:function(){return _.r("ul",{class:"videoSummaryContentViewModelList"},_.r(_.D0,{each:function(){return W().paragraphs},
keyBy:"INDEX"},function(L){return _.r("li",{class:"videoSummaryContentViewModelListItem"},_.r(_.Nm,{text:function(){return L().text}}))}))},
else:function(){return _.r("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.r(_.D0,{each:function(){return W().paragraphs},
keyBy:"INDEX"},function(L){return _.r("p",{class:"videoSummaryContentViewModelParagraph"},_.r(_.Nm,{text:function(){return L().text}}))}))}})}),_.r(_.p,{cond:function(){return!!_.Q(G().likeButtonViewModel,_.JA)&&!!_.Q(G().dislikeButtonViewModel,_.NP)},
then:function(){return _.r("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.r("div",{class:"videoSummaryContentViewModelLikeButton"},_.r(_.uC,{data:function(){return _.Q(G().likeButtonViewModel,_.JA)},
disableIconAnimation:!0})),_.r(_.r0,{data:function(){return _.Q(G().dislikeButtonViewModel,_.NP)}}))}}))},"jc");
s50.idomCompat=!0;_.sh(s50,"video-summary-content-view-model",{props:{data:_.Dd,isSearch:_.Dd,className:_.Dd}});var SS=function(){var m=_.d.apply(this,arguments)||this;var G,K;m.isExpanded=(K=(G=m.data)==null?void 0:G.isExpanded)!=null?K:!1;m.disableExpand=!1;m.showProminentLabel=!1;m.showRightSideLabel=!0;m.toggleExpandableContent=function(W){m.disableExpand||(W.stopPropagation(),_.vp(_.ve(W),m.hostElement,["info","expanded-subtitle"])||(m.isExpanded=!m.isExpanded,m.ytRendererBehavior.logExplicitClick(m.data),m.JSC$15619_cardList&&!_.F("expandable_metadata_a11y_fix_ks")&&_.Pv(m,function(){_.ZD(m.hostElement)})))};
m.useSquareThumbnail=!1;m.startX=0;return m};
_.n(SS,_.d);_.w=SS.prototype;_.w.computeUseSquareThumbnail=function(){var m;return(m=this.data)==null?void 0:m.useSquareThumbnail};
_.w.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"}}}}};
_.w.dataChanged=function(){if(this.data){var m,G;this.isExpanded=(G=(m=this.data)==null?void 0:m.isExpanded)!=null?G:!1;var K,W,L,A;if(m=this.isDarkTheme()?(K=this.data)==null?void 0:(W=K.colorData)==null?void 0:W.darkColorPalette:(L=this.data)==null?void 0:(A=L.colorData)==null?void 0:A.lightColorPalette){var O,c;if((O=this.data)==null?0:(c=O.colorData)==null?0:c.vibrantColorPalette)m.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.mr(this.hostElement,m)}}};
_.w.isExpandedChanged=function(){this.isExpanded&&this.JSC$15619_cardList&&_.Zw(this.JSC$15619_cardList,"iron-resize")};
_.w.computeIsExpanded=function(m){return!!m.isExpanded};
_.w.computeShowProminentLabel=function(m,G){var K;return!!(m==null?0:(K=m.header)==null?0:K.showLeadingCollapsedLabel)&&!G};
_.w.computeShowRightSideLabel=function(m,G){var K;return!(m==null?0:(K=m.header)==null?0:K.showLeadingCollapsedLabel)&&!G};
_.w.captureContentClick=function(m){if(!this.disableExpand)if(_.F("expandable_metadata_fix_killswitch")){var G=m.target;_.Pri(G,"ytd-macro-markers-list-item-renderer")||m.stopPropagation();(G==null?void 0:G.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.vp(_.ve(m),this.hostElement,["items"])||_.b_(_.ve(m),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.w.timestampClick=function(m){m.stopPropagation();var G,K;(m=(G=this.data)==null?void 0:(K=G.header)==null?void 0:K.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(m)};
_.w.onDown=function(m){m.stopPropagation();this.startX=m.detail?m.detail.x:0};
_.w.onUp=function(m){this.skipKeyInteraction(m)&&m.stopPropagation()};
_.w.skipKeyInteraction=function(m){var G=m.target;if((G==null?void 0:G.id)==="scroll-container"||(G==null?void 0:G.id)==="items"||m.detail&&m.detail.x!==this.startX)return!0;m=_.ve(m);m=_.g(m);for(G=m.next();!G.done;G=m.next()){G=G.value;if(G===this.hostElement)break;if(G.hasAttribute&&G.hasAttribute("skip-key-interaction"))return!0}return!1};
_.w.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.e_.Object.defineProperties(SS.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var m;return!!_.Q((m=this.data)==null?void 0:m.expandedContent,qbF)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var m;return!!_.Q((m=this.data)==null?void 0:m.expandedContent,juC)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.useCustomColors)&&!((G=this.data)==null||!G.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.data)==null?0:(G=m.header)==null?0:G.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.data)==null?0:(G=m.header)==null?0:G.expandedSubtitle)&&this.isExpanded}},
expandedSubtitleTarget:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.header)==null?void 0:G.expandedSubtitleTapCommand;m=K&&_.Q(K,_.H$);return _.F("web_open_ai_support_links_external_window")&&(m==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"_blank":null}},
expandedSubtitleRel:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.header)==null?void 0:G.expandedSubtitleTapCommand;m=K&&_.Q(K,_.H$);return _.F("web_open_ai_support_links_external_window")&&(m==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"noopener":null}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.data)==null?0:(G=m.header)==null?0:G.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
SS.prototype.onUp=SS.prototype.onUp;SS.prototype.onDown=SS.prototype.onDown;SS.prototype.isExpandedChanged=SS.prototype.isExpandedChanged;SS.prototype.dataChanged=SS.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],SS.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],SS.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SS.prototype,"isExpanded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SS.prototype,"disableExpand",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],SS.prototype,"isSearch",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],SS.prototype,"isWatch",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.S("design:type",Object)],SS.prototype,"showProminentLabel",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.S("design:type",Object)],SS.prototype,"showRightSideLabel",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"hasVideoSummary",null);_.x([_.V({value:!1,reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"hasLockupViewModel",null);_.x([_.V({reflectToAttribute:!0}),_.E("data","isWatch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"useCustomColors",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"showInfoButton",null);_.x([_.E("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"showTimestamp",null);_.x([_.E("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"showExpandedSubtitle",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],SS.prototype,"expandedSubtitleTarget",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],SS.prototype,"expandedSubtitleRel",null);_.x([_.E("data","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SS.prototype,"showThumbnail",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],SS.prototype,"useVppShoppingDestinationStyle",null);
_.x([_.V(),_.S("design:type",Object)],SS.prototype,"toggleExpandableContent",void 0);_.x([_.UM("ytd-horizontal-card-list-renderer"),_.S("design:type",Object)],SS.prototype,"JSC$15619_cardList",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.S("design:type",Object)],SS.prototype,"useSquareThumbnail",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SS.prototype,"dataChanged",null);
_.x([_.Sb("isExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SS.prototype,"isExpandedChanged",null);_.x([_.XC("down"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],SS.prototype,"onDown",null);_.x([_.XC("up"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],SS.prototype,"onUp",null);
_.x([_.Ye({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],SS);
_.y(SS,"ytd-expandable-metadata-renderer",function(){if(Qj2!==void 0)return Qj2;var m=document.createElement("template");_.b(m,'\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]]" target$="[[expandedSubtitleTarget]]" rel$="[[expandedSubtitleRel]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Qj2=m},{mode:1});var q2F,Ew4=function(){if(q2F!==void 0)return q2F;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" hidden="[[hasAttributedBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return q2F=m};_.sh(_.YU,"yt-avatar-stack-view-model",{props:{className:_.Dd,data:_.Dd,overrides:_.Dd,isOverlay:_.Dd,useMediumText:_.Dd,decorations:_.Dd,hideAvatar:_.Dd}});_.Kz("itemSectionRenderer","videoRenderer","ytd-video-renderer");var R_=function(){var m=_.d.apply(this,arguments)||this;m.disableExpand=!1;m.shouldShowChannelInfo=!1;m.hasAttributedBylineText=!1;m.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return m};
_.n(R_,_.d);_.w=R_.prototype;_.w.computeUseSearchUi=function(){var m,G;return this.isSearch||((m=this.data)==null?void 0:(G=m.style)==null?void 0:G.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.w.computeUseThreeLineTitle=function(){var m;return((m=this.data)==null?void 0:m.maxTitleLines)===3};
_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.F("polymer_video_renderer_defer_menu")&&!GJG?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.w.attached=function(){_.dF(this.hostElement,"blue-links",_.F("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Pe(_.VL(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var m=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;m&&((G=_.Q(m.commandMetadata,_.MA))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(m);this.updateInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15624_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.JSC$15624_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$15624_inlinePreviewHoverListener)==null||qa(m)};
_.w.onTextWrapperClick=function(m){var G,K,W=this.hideTranslation?(G=this.data)==null?void 0:G.untranslatedNavigationEndpoint:(K=this.data)==null?void 0:K.navigationEndpoint;G=_.vp(_.ve(m),this.hostElement,["expandable-metadata"]);!W||G&&!_.F("expandable_metadata_fix_killswitch")||_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Zw(this.hostElement,"yt-navigate",{endpoint:W})};
_.w.computeThumbnailWidth=function(m,G,K,W,L){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:W?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:K?360:G?128:m?210:246};
_.w.computeUseBiggerThumbs=function(m){return m&&_.F("enable_desktop_search_bigger_thumbs")};
_.w.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.w.computeHasAttributedBylineText=function(){var m;return!((m=this.data)==null||!m.attributedBylineText)};
_.w.computeVideoStyle=function(){if(_.F("enable_video_style")){var m,G;return(m=this.data)==null?void 0:(G=m.style)==null?void 0:G.value}};
_.w.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.w.handleHideItemSectionVideosByIdCommand=function(m){var G;m=(G=_.Q(m,MMK))==null?void 0:G.videoId;this.data&&this.data.videoId===m&&(this.isHidden=!0)};
_.w.getMetadataSnippetContainerClass=function(m){return m?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.w.computeTitleText=function(m,G,K){return m?K:G};
_.w.computeDescriptionSnippet=function(m,G,K){return m?K:G};
_.w.computeSnippetText=function(m,G,K){return m?K:G};
_.w.computeNavigationEndpoint=function(m,G){return m?G==null?void 0:G.untranslatedNavigationEndpoint:G==null?void 0:G.navigationEndpoint};
_.w.hideInlineTitleIcon=function(m,G){return m||!G};
_.e_.Object.defineProperties(R_.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 m;return(m=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?m:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!(this==null?0:(m=this.data)==null?0:(G=m.channelThumbnailSupportedRenderers)==null?0:(K=G.channelThumbnailWithLinkRenderer)==null?0:K.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var m;return!!_.Q((m=this.data)==null?void 0:m.avatar,kMB)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$15624_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.e_.Object.defineProperties(R_,{template:{configurable:!0,enumerable:!0,get:function(){return Ew4()}}});
R_.prototype.dataChanged=R_.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],R_.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],R_.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.Dn),_.S("design:type",Object)],R_.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],R_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],R_.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],R_.prototype,"isBackstageVideo",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],R_.prototype,"isPostCompactVideo",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],R_.prototype,"isHistory",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],R_.prototype,"isRichGridVideoPost",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],R_.prototype,"isHidden",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],R_.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.S("design:type",Boolean)],R_.prototype,"useSearchUi",void 0);_.x([_.V({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.S("design:type",Boolean)],R_.prototype,"useThreeLineTitle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.S("design:type",Boolean)],R_.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.S("design:type",Object)],R_.prototype,"videoStyle",void 0);_.x([_.V({computed:"computeDisableExpand(videoStyle)"}),_.S("design:type",Object)],R_.prototype,"disableExpand",void 0);
_.x([_.V({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.S("design:type",Object)],R_.prototype,"shouldShowChannelInfo",void 0);_.x([_.V({computed:"computeHasAttributedBylineText(data)"}),_.S("design:type",Object)],R_.prototype,"hasAttributedBylineText",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],R_.prototype,"biggerThumbsStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.S("design:type",String)],R_.prototype,"inlineTitleIcon",void 0);_.x([_.V({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.S("design:type",Object)],R_.prototype,"computedNavigationEndpoint",void 0);_.x([_.V({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(m,G){return _.yx(m.entities,"searchVideoResultEntity",G)}}),
_.S("design:type",Object)],R_.prototype,"searchVideoResultEntity",void 0);_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],R_.prototype,"thumbnail",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],R_.prototype,"JSC$15624_dismissibleMedia",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R_.prototype,"dataChanged",null);
_.x([_.E("searchVideoResultEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],R_.prototype,"hideTranslation",null);_.x([_.E("searchVideoResultEntity"),_.S("design:type",Array),_.S("design:paramtypes",[])],R_.prototype,"hiddenBadgeGroups",null);_.x([_.E("data","useAvatar"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],R_.prototype,"shouldShowChannelThumbnail",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],R_.prototype,"useAvatar",null);
_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],R_.prototype,"isHovered",null);_.x([_.Ye({is:"ytd-video-renderer",disableElementRegistration:!0})],R_);_.y(R_,"ytd-video-renderer",function(){return Ew4()},{mode:2});var U9=function(){var m=_.d.apply(this,arguments)||this;m.editDialog=null;m.roundedContainer=!0;m.isLoading=!1;m.isRichGrid=!1;m.isRichGridRepost=!1;m.reduceSidePaddings=_.F("reduce_side_paddings_in_shelf");m.JSC$15631_spinnerEl=null;return m};
_.n(U9,_.d);_.w=U9.prototype;
_.w.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"}}}};
_.w.contentTextChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){var m=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var G=0,K=this.data.actions&&this.data.actions.length;G<K;G++)this.openEditDialog(_.Q(this.data.actions[G],k1i));if((G=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(G=this.get("buttonRenderer.hint.hintRenderer.hintId",G))&&G.startsWith("share-post-hint")){var W=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(W){_.Zq.getInstance();var L=dG(_.nG(_.zq("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Fu.addLowPriorityJob(function(){_.eD(m.hostElement,L,W)})}}}};
_.w.updatePoll=function(m){m>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.w.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15631_spinnerEl||(this.JSC$15631_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.VL(this.hostElement).appendChild(this.JSC$15631_spinnerEl));this.JSC$15631_spinnerEl&&(this.JSC$15631_spinnerEl.active=this.isLoading)};
_.w.onYtNavigate=function(m){var G=this.get("updateCommentDialogEndpoint",m.detail.endpoint);G&&(this.openEditDialog(G),m.stopPropagation())};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.onYtCommentPollRevert=function(m,G){G&&this.updatePoll(G.selectedChoiceIndex)};
_.w.onYtServiceRequestSent=function(m,G){var K;G.endpoint&&(_.Q(G.endpoint,zhi)||_.Q(G.endpoint,UR2)&&((K=_.Q(G.endpoint,UR2))==null||!K.clientActions))&&(this.isLoading=!0);if(G.actions)for(m=0;m<G.actions.length;m++)K=G.actions[m],_.Q(K,lN)&&(K=this.get("updateBackstagePollAction.selectedChoiceIndex",K),K==void 0&&(K=-1),this.updatePoll(K))};
_.w.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.w.openEditDialog=function(m){m&&m.dialog&&(this.editDialog=m.dialog,m=this.editDialogEl.firstElementChild)&&(m.focus(),m.openDialog&&m.openDialog())};
_.w.computeIsPostHidden=function(m,G){return!!m||G};
_.w.computeSurfaceType=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeUsesCompactLockup=function(m){return m==="BACKSTAGE_SURFACE_TYPE_HOME"||m==="BACKSTAGE_SURFACE_TYPE_SEARCH"||m==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||m==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||m==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||m==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.w.computeShowWithoutToolbar=function(m){return!m.actionButtons&&!m.actionMenu};
_.w.computePostAttachment=function(m){if(m.backstageAttachment){if(_.Q(m.backstageAttachment,v6C))return"poll";if(_.Q(m.backstageAttachment,O5l))return"quiz";if(_.Q(m.backstageAttachment,_.CmG))return"video";if(_.Q(m.backstageAttachment,cxB))return"uploaded-videos";if(_.Q(m.backstageAttachment,W70))return m.contentText?"image":"image-only";if(_.Q(m.backstageAttachment,L_G))return"playlist"}return"none"};
_.w.computePostTabIndex=function(m){return m?0:-1};
_.w.computeButtonTooltipPosition=function(m){return this.computeUsesCompactLockup(m)?"top":"bottom"};
_.w.computeHasText=function(m){return!(m==null||!m.contentText)};
_.w.onTap=function(m){var G,K;if(((G=this.data)==null?0:G.navigationEndpoint)&&((K=this.data)==null?void 0:K.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var W;((W=this.data)==null?0:W.navigationEndpoint)&&!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.e_.Object.defineProperties(U9.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.voteCount)||_.nG("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,v6C))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,cxB))}}});
U9.prototype.onYtServiceRequestCompleted=U9.prototype.onYtServiceRequestCompleted;U9.prototype.onYtServiceRequestSent=U9.prototype.onYtServiceRequestSent;U9.prototype.onYtCommentPollRevert=U9.prototype.onYtCommentPollRevert;U9.prototype.onYtCommentboxDismiss=U9.prototype.onYtCommentboxDismiss;U9.prototype.onYtNavigate=U9.prototype.onYtNavigate;U9.prototype.isLoadingChanged=U9.prototype.isLoadingChanged;U9.prototype.dataChanged=U9.prototype.dataChanged;U9.prototype.contentTextChanged=U9.prototype.contentTextChanged;
_.x([_.q(_.Yj),_.S("design:type",Object)],U9.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],U9.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],U9.prototype,"editDialog",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],U9.prototype,"roundedContainer",void 0);_.x([_.V(),_.S("design:type",Object)],U9.prototype,"isLoading",void 0);_.x([_.V({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.S("design:type",String)],U9.prototype,"surface",void 0);
_.x([_.V({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.S("design:type",Boolean)],U9.prototype,"usesCompactLockup",void 0);_.x([_.V({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],U9.prototype,"showWithoutToolbar",void 0);_.x([_.V({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.S("design:type",String)],U9.prototype,"attachment",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],U9.prototype,"isRichGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],U9.prototype,"isRichGridRepost",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("use_better_post_dismissals")}),_.S("design:type",Boolean)],U9.prototype,"useBetterPostDismissals",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],U9.prototype,"reduceSidePaddings",void 0);
_.x([_.V({computed:"computeHasText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],U9.prototype,"hasText",void 0);_.x([_.UM("#expander"),_.S("design:type",Object)],U9.prototype,"expander",void 0);_.x([_.UM("#action-buttons"),_.S("design:type",Object)],U9.prototype,"actionButtons",void 0);_.x([_.UM("#edit-dialog"),_.S("design:type",HTMLElement)],U9.prototype,"editDialogEl",void 0);
_.x([_.Sb("data.contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U9.prototype,"contentTextChanged",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U9.prototype,"dataChanged",null);_.x([_.Sb("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U9.prototype,"isLoadingChanged",null);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],U9.prototype,"onYtNavigate",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],U9.prototype,"onYtCommentboxDismiss",null);_.x([_.XC("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],U9.prototype,"onYtCommentPollRevert",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],U9.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],U9.prototype,"onYtServiceRequestCompleted",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],U9.prototype,"voteCount",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],U9.prototype,"commentCount",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],U9.prototype,"hasPoll",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],U9.prototype,"hasUploadedVideo",null);_.x([_.Ye({is:"ytd-post-renderer",disableElementRegistration:!0})],U9);
_.y(U9,"ytd-post-renderer",function(){if(fiS!==void 0)return fiS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fiS=m},{mode:1});var HoC;var IsK;var zw=function(){return _.d.apply(this,arguments)||this};
_.n(zw,_.d);zw.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],zw.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],zw.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zw.prototype,"data",void 0);
_.x([_.V({value:"$.items.children"}),_.S("design:type",String)],zw.prototype,"itemsPath",void 0);_.x([_.V({value:1}),_.S("design:type",Number)],zw.prototype,"initialCount",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.S("design:type",Boolean)],zw.prototype,"useSmallerPostImageAttachments",void 0);_.x([_.V(),_.S("design:type",String)],zw.prototype,"surface",void 0);_.x([_.Ye({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],zw);
_.y(zw,"ytd-post-multi-image-renderer",function(){if(IsK!==void 0)return IsK;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IsK=m},{mode:2});var j5G={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
lv=function(){var m=_.d.apply(this,arguments)||this;m.hasInlineCommentSection=!1;m.editDialog=null;m.isLoading=!1;m.shouldHideAuthor=!1;m.shouldShowVideoTime=!1;m.isInEngagementPanel=!1;m.hideBorder=!1;m.usesFullLockup=!1;m.shouldShowMenuInCompactView=!1;m.JSC$15646_spinnerEl=null;m.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return m};
_.n(lv,_.d);_.w=lv.prototype;_.w.configureRendererStamper=function(){return j5G};
_.w.computeIsPollHeaderEnabled=function(m){return(m==null?void 0:m.pollMetadataIcon)!=null};
_.w.getPublishTimeStampString=function(m,G){G=new Date((Number(G)-60*((new Date).getTimezoneOffset()-(new Date(Number(G)*1E3)).getTimezoneOffset()))*1E3);G=(new oW(10)).format(G);if(m&&m.runs&&m.runs.length)for(var K=0;K<m.runs.length;K++)m.runs[K].text&&(m.runs[K].text=m.runs[K].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",G));return m};
_.w.created=function(){this.JSC$15646_spinnerEl=null};
_.w.contentTextChanged=function(){this.expander.reset()};
_.w.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var m;if((m=this.data)==null?0:m.actions){m=_.g(this.data.actions);for(var G=m.next();!G.done;G=m.next())this.openEditDialog(_.Q(G.value,k1i))}};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){_.VL(this.hostElement).querySelector("#action-buttons").reply()};
_.w.updatePoll=function(m,G){G&&this.set("data.pollMetadataVoteCountText",G);this.hasInlineCommentSection&&(m=m>=0,G=_.VL(this.hostElement).querySelector("#action-buttons"),m?G.reply():G.hideReplyDialog())};
_.w.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15646_spinnerEl||(this.JSC$15646_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.VL(this.hostElement).appendChild(this.JSC$15646_spinnerEl));this.JSC$15646_spinnerEl&&(this.JSC$15646_spinnerEl.active=this.isLoading)};
_.w.onYtNavigate=function(m){var G=this.get("updateCommentDialogEndpoint",m.detail.endpoint);G&&(this.openEditDialog(G),m.stopPropagation())};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.onYtCommentPollRevert=function(m,G){G&&this.updatePoll(G.selectedChoiceIndex,G.totalVotes)};
_.w.onYtServiceRequestSent=function(m,G){m.stopPropagation();m=_.Q(G.endpoint,UR2);if(_.Q(G.endpoint,zhi)||m&&!m.clientActions)this.isLoading=!0;if(G.actions)for(m=0;m<G.actions.length;m++){var K=G.actions[m],W=_.Q(K,lN);W&&(K=this.get("updateBackstagePollAction.selectedChoiceIndex",K),K===void 0&&(K=-1),this.updatePoll(K,W.totalVotes))}};
_.w.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.w.openEditDialog=function(m){m&&m.dialog&&(this.editDialog=m.dialog,m=this.editDialogElement.firstElementChild)&&(m.focus(),m.openDialog&&m.openDialog())};
_.w.computeIsBodyHidden=function(m,G){return!!m||G};
_.e_.Object.defineProperties(lv.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var m=this.data,G=m.showPostAuthorBackgroundHighlight,K=m.postAuthorBadgeType,W=m.authorEndpoint;if(!G&&K!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&K!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var L,A,O;m=_.nG(((L=m.authorText)==null?void 0:(A=L.runs)==null?void 0:(O=A[0])==null?void 0:O.text)||"");L=void 0;switch(K){case "POST_AUTHOR_BADGE_TYPE_ARTIST":L={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":L={iconType:G?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:m,authorEndpoint:W,authorCreator:G,icon:L}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var m,G;if((m=this.data)==null?0:(G=m.pollMetadataIcon)==null?0:G.iconType)return _.ew(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.voteCount)||_.nG("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,v6C))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,O5l))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Q(this.data.backstageAttachment,cxB))}}});
lv.prototype.onYtServiceRequestCompleted=lv.prototype.onYtServiceRequestCompleted;lv.prototype.onYtServiceRequestSent=lv.prototype.onYtServiceRequestSent;lv.prototype.onYtCommentPollRevert=lv.prototype.onYtCommentPollRevert;lv.prototype.onYtCommentboxDismiss=lv.prototype.onYtCommentboxDismiss;lv.prototype.onYtNavigate=lv.prototype.onYtNavigate;lv.prototype.isLoadingChanged=lv.prototype.isLoadingChanged;lv.prototype.dataChanged=lv.prototype.dataChanged;lv.prototype.contentTextChanged=lv.prototype.contentTextChanged;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],lv.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lv.prototype,"rendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],lv.prototype,"rendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],lv.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.UM("#contentTextExpander"),_.S("design:type",Object)],lv.prototype,"expander",void 0);_.x([_.UM("#edit-dialog"),_.S("design:type",Element)],lv.prototype,"editDialogElement",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"hasInlineCommentSection",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"editDialog",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"isLoading",void 0);
_.x([_.V({computed:"computeIsPollHeaderEnabled(data)"}),_.S("design:type",Boolean)],lv.prototype,"isPollHeaderEnabled",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"shouldHideAuthor",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"shouldShowVideoTime",void 0);_.x([_.V(),_.S("design:type",Object)],lv.prototype,"isInEngagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lv.prototype,"hideBorder",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lv.prototype,"usesFullLockup",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lv.prototype,"shouldShowMenuInCompactView",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],lv.prototype,"authorCommentBadge",null);_.x([_.E("isInEngagementPanel"),_.S("design:type",Number),_.S("design:paramtypes",[])],lv.prototype,"postTextMaxLines",null);
_.x([_.E("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],lv.prototype,"pollIcon",null);_.x([_.Sb("data.contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lv.prototype,"contentTextChanged",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lv.prototype,"dataChanged",null);
_.x([_.Sb("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lv.prototype,"isLoadingChanged",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lv.prototype,"onYtNavigate",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lv.prototype,"onYtCommentboxDismiss",null);
_.x([_.XC("yt-comment-poll-revert"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],lv.prototype,"onYtCommentPollRevert",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],lv.prototype,"onYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lv.prototype,"onYtServiceRequestCompleted",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],lv.prototype,"voteCount",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],lv.prototype,"commentCount",null);
_.x([_.E("data.backstageAttachment"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lv.prototype,"hasPoll",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lv.prototype,"hasQuiz",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lv.prototype,"hasUploadedVideo",null);_.x([_.Ye({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],lv);
_.y(lv,"ytd-backstage-post-renderer",function(){if(HoC!==void 0)return HoC;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return HoC=m},{mode:1});var kDG;var Br=function(){var m=_.d.apply(this,arguments)||this;m.editDialog=null;m.showExpandButton=!1;m.isRichGrid=!1;m.usesFullLockup=!1;return m};
_.n(Br,_.d);_.w=Br.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.w.computeShowExpandButton=function(m){return this.usesCompactLockup||m&&m.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.w.computeUsesCompactLockup=function(m){return!!m.condensedContent};
_.w.computeShowFullContentText=function(m){return!m};
_.w.onYtNavigate=function(m){m=this.get("updateCommentDialogEndpoint",m.detail.endpoint);this.openEditDialog(m)};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null};
_.w.openEditDialog=function(m){m&&m.dialog&&(this.editDialog=m.dialog,m=this.repostEditDialogEl.firstElementChild)&&(m.focus(),m.openDialog&&m.openDialog())};
_.w.onTap=function(m){if(this.data){var G=null;this.usesCompactLockup&&!_.b_(_.ve(m)||[],this.hostElement,["YT-IMG-SHADOW"])?G=this.get("navigationEndpoint",this.data):m.target===this.moreButtonEl&&(G=this.get("navigationEndpoint",m.target.data));G&&_.Zw(this.hostElement,"yt-navigate",{endpoint:G})}};
Br.prototype.onYtCommentboxDismiss=Br.prototype.onYtCommentboxDismiss;Br.prototype.onYtNavigate=Br.prototype.onYtNavigate;Br.prototype.dataChanged=Br.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Br.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Br.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],Br.prototype,"editDialog",void 0);_.x([_.V({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Br.prototype,"usesCompactLockup",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Br.prototype,"showExpandButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Br.prototype,"isRichGrid",void 0);
_.x([_.V({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Br.prototype,"showFullContentText",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Br.prototype,"usesFullLockup",void 0);_.x([_.UM("#more"),_.S("design:type",Object)],Br.prototype,"moreButtonEl",void 0);_.x([_.UM("#repost-content-text"),_.S("design:type",HTMLElement)],Br.prototype,"repostContentTextEl",void 0);
_.x([_.UM("#repost-edit-dialog"),_.S("design:type",HTMLElement)],Br.prototype,"repostEditDialogEl",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Br.prototype,"dataChanged",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Br.prototype,"onYtNavigate",null);
_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Br.prototype,"onYtCommentboxDismiss",null);_.x([_.Ye({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Br);
_.y(Br,"ytd-shared-post-renderer",function(){if(kDG!==void 0)return kDG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return kDG=m},{mode:1});var Ca0;var VsF;var Mo=function(){return _.d.apply(this,arguments)||this};
_.n(Mo,_.d);Mo.prototype.attached=function(){var m=this;this.networkStatusManager||(this.networkStatusManager=new _.k3,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){m.onlineHandler()}))};
Mo.prototype.detached=function(){var m=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){m.onlineHandler()}),delete this.networkStatusManager)};
Mo.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mo.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Mo.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mo.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Mo);
_.y(Mo,"ytd-reload-page-button-renderer",function(){if(VsF!==void 0)return VsF;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return VsF=m},{mode:1});var ZoR={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"},Tw=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(Tw,_.d);_.w=Tw.prototype;_.w.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.w.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.w.computeHasBodyText=function(m){return!!m.bodyText};
_.w.computeButtons=function(m){var G=[];m.ctaButton&&G.push(m.ctaButton);m.secondaryButton&&G.push(m.secondaryButton);return G};
_.w.computeRendererStyle=function(m){return m.style?m.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():m.icon?"":"no-icon"};
_.w.getIconName=function(m,G){G=G===void 0?!1:G;if(m===void 0)return"";m=this.get("icon.iconType",m);var K;_.F("enable_hlp_client_icon_pick")?K=this.getThemedIcon(m,G):K=m;(G=ZoR[K])||(G="yt-icons");return[G,K].join(":")};
_.w.getThemedIcon=function(m,G){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(m)?G?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(m)?G?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":m};
_.w.isThumbnail=function(m){return!!m.thumbnail};
_.w.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Tw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Tw.prototype,"data",void 0);
_.x([_.V({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],Tw.prototype,"rendererStyle",void 0);_.x([_.V({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.S("design:type",String)],Tw.prototype,"iconName",void 0);_.x([_.V({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tw.prototype,"thumbnail",void 0);_.x([_.V({computed:"computeButtons(data)"}),_.S("design:type",Array)],Tw.prototype,"buttons",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tw.prototype,"isDarkTheme",void 0);_.x([_.V({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Tw.prototype,"hasBodyText",void 0);_.x([_.Ye({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Tw);
_.Vz()(Tw,"ytd-background-promo-renderer",function(){if(Ca0===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);Ca0=m}m=Ca0;return m},{allowedProps:["data"],
mode:1});var dsX;var mq=function(){return _.d.apply(this,arguments)||this};
_.n(mq,_.d);_.e_.Object.defineProperties(mq.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(W=K.thumbnail)==null?void 0:W.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(A=L.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mq.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],mq.prototype,"collectionStack",null);_.x([_.Ye({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],mq);
_.y(mq,"ytd-compact-station-renderer",function(){if(dsX!==void 0)return dsX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dsX=m},{mode:1});var PaS;var ic=function(){var m=_.d.apply(this,arguments)||this;m.isRichGrid=!1;return m};
_.n(ic,_.d);ic.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]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ic.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ic.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ic.prototype,"isRichGrid",void 0);_.x([_.Ye({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ic);
_.y(ic,"ytd-grid-channel-renderer",function(){if(PaS!==void 0)return PaS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return PaS=m},{mode:1});var yTk;var Gy=function(){return _.d.apply(this,arguments)||this};
_.n(Gy,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Gy.prototype,"data",void 0);_.x([_.Ye({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Gy);
_.y(Gy,"ytd-grid-movie-playlist-renderer",function(){if(yTk!==void 0)return yTk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yTk=m},{mode:1});var eyX;var K4=function(){var m=_.d.apply(this,arguments)||this;m.downloadProgress=0;m.transferState="TRANSFER_STATE_UNKNOWN";m.modernButtons=_.F("web_modern_buttons");return m};
_.n(K4,_.d);K4.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
K4.prototype.configureRendererStamper=function(){return{"data.menu":zl}};
K4.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
K4.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.F("woffle_playlist_renderer_killswitch")){var m,G=Sxd(this.entityInfo,this.transferState,this.downloadProgress,(m=this.data)==null?void 0:m.playlistId,this.isOnline);m=G.viewPlaylistText;var K=G.badges;G=G.thumbnailOverlays;this.isDownloads=!!m||!!K;this.set("data.viewPlaylistText",m);K&&K.length>0&&this.set("data.badges",K);G&&G.length>0&&this.set("data.thumbnailOverlays",
G)}};
_.e_.Object.defineProperties(K4.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 m;return!((m=this.data)==null?0:m.menu)}}});
K4.prototype.transferStateChanged=K4.prototype.transferStateChanged;K4.prototype.dataChanged=K4.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],K4.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V({selector:_.qWo,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],K4.prototype,"downloadProgress",void 0);_.x([_.V({selector:_.hM,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],K4.prototype,"transferState",void 0);_.x([_.V({selector:suM,selectorArgs:["data.playlistId"]}),_.S("design:type",Object)],K4.prototype,"entityInfo",void 0);_.x([_.V({selector:_.r6}),_.S("design:type",Boolean)],K4.prototype,"isOnline",void 0);
_.x([_.V(),_.S("design:type",Object)],K4.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],K4.prototype,"downloadRenderData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],K4.prototype,"modernButtons",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],K4.prototype,"isDownloads",void 0);_.x([_.E("transferState"),_.V({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],K4.prototype,"downloadState",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],K4.prototype,"menuHidden",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K4.prototype,"dataChanged",null);_.x([_.Mg("transferState","downloadProgress","isOnline"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K4.prototype,"transferStateChanged",null);
_.x([_.Ye({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],K4);
_.y(K4,"ytd-grid-playlist-renderer",function(){if(eyX!==void 0)return eyX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return eyX=m},{mode:1});var fso;var Wj=function(){return _.d.apply(this,arguments)||this};
_.n(Wj,_.d);Wj.prototype.configureRendererStamper=function(){return{"data.menu":zl,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e_.Object.defineProperties(Wj.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(W=K.thumbnail)==null?void 0:W.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(A=L.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Wj.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],Wj.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wj.prototype,"data",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Wj.prototype,"collectionStack",null);_.x([_.Ye({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Wj);
_.y(Wj,"ytd-grid-radio-renderer",function(){if(fso!==void 0)return fso;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return fso=m},{mode:1});var xsR;var L4=function(){return _.d.apply(this,arguments)||this};
_.n(L4,_.d);L4.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
L4.prototype.computeNavigationEndpoint=function(m){return adF(m==null?void 0:m.navigationEndpoint)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],L4.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L4.prototype,"data",void 0);_.x([_.V({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],L4.prototype,"computedNavigationEndpoint",void 0);
_.x([_.Ye({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],L4);
_.y(L4,"ytd-grid-show-renderer",function(){if(xsR!==void 0)return xsR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xsR=m},{mode:1});var XVP;_.Ae=function(m){this.playerClient=m};
_.S24=function(m,G,K){K=K===void 0?{}:K;return m.playerClient.setOption("ad",G,K)};
_.Ae.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Ae.prototype.executeCommand=function(m,G){this.getOptions().includes("executeCommand")?_.S24(this,"executeCommand",{command:m,layoutId:G}):_.F9("Calling executeCommand when adModule is not loaded")};var wr=function(){return _.d.apply(this,arguments)||this};
_.n(wr,_.d);wr.prototype.getLayoutId=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.layoutId:null};
wr.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var m=_.qW(),G=this.getLayoutId(),K=this.data.clickthroughEndpoint;m&&G&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?m.getPlayerPromise().then(function(W){(new _.Ae(W)).executeCommand(K,G)}):_.Zw(this.hostElement,"yt-navigate",{endpoint:K})}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wr.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wr.prototype,"data",void 0);_.x([_.Ye({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],wr);
_.y(wr,"ytd-shopping-companion-item-renderer",function(){if(XVP!==void 0)return XVP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XVP=m},{mode:1});var Ryi;var gr=function(){var m=_.d.apply(this,arguments)||this;m.isExpandableContent=!1;return m};
_.n(gr,_.d);_.e_.Object.defineProperties(gr.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?void 0:m.price)||((G=this.data)==null?void 0:(K=G.dealsData)==null?void 0:K.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var m,G;if((m=this.data)!=null&&m.dealsData&&((G=this.data)==null||!G.priceReplacementText)){m=this.data.dealsData;var K,W,L;return((K=m.salesData)==null?void 0:K.originalPrice)||((W=m.priceDropData)==null?void 0:W.referencePrice)||((L=m.promotionData)==null?void 0:L.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var m,G;return(m=this.data)==null?void 0:(G=m.dealsData)==null?void 0:G.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],gr.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gr.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],gr.prototype,"isExpandableContent",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"showCta",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"ctaText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"hasPriceTopPosition",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"hasPriceBottomPosition",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"useNewStyle",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"showPriceReplacementText",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"priceValue",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"showDeal",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"showAffiliateDisclaimer",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"useSaleStyle",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"useFromBrandCtaStyle",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"useFromVendorCtaStyle",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gr.prototype,"useShoppingCollectionCtaStyle",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],gr);
_.y(gr,"ytd-vertical-product-card-renderer",function(){if(Ryi!==void 0)return Ryi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Ryi=m},{mode:1});var UsC;var OP=function(){return _.d.apply(this,arguments)||this};
_.n(OP,_.d);OP.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],OP.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],OP.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],OP);
_.y(OP,"ytd-grid-movie-renderer",function(){if(UsC!==void 0)return UsC;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return UsC=m},{mode:1});var zyP;var cj=function(){var m=_.d.apply(this,arguments)||this;m.roundedFix=_.F("web_enable_merch_item_rounding_fix");m.itemStyle="small-item";return m};
_.n(cj,_.d);cj.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var m,G,K,W,L=(G=_.Q((m=this.data)==null?void 0:m.buttonCommand,_.dzi))==null?void 0:(K=G.item)==null?void 0:(W=K.notificationTextRenderer)==null?void 0:W.successResponseText;L&&_.Q86(this.hostElement,L)}};
_.e_.Object.defineProperties(cj.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.isProductPlaceholder)!==void 0&&((G=this.data)==null?void 0:G.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.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}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],cj.prototype,"roundedFix",void 0);_.x([_.V(),_.S("design:type",Object)],cj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],cj.prototype,"itemStyle",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"hasPrice",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"hasPriceReplacementText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"hasAdditionalFeesText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"hasAffiliateDisclaimer",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"isProductPlaceholder",null);
_.x([_.V(),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"hideOpenInNewIcon",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],cj.prototype,"ariaLabel",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],cj);
_.y(cj,"ytd-merch-shelf-item-renderer",function(){if(zyP!==void 0)return zyP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zyP=m},{mode:1});_.sh(_.P(function(m){return _.r("button-card-view-model",{el:_.aC(_.On(function(){return m.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return m.data().title},
role:"button"},_.r(_.EH,{model:{}}),_.r("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.r("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.r(_.p,{cond:function(){return m.data().image},
then:function(G){return _.r(_.oC,{data:G,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.r("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return m.data().title})))},"kc"),"button-card-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){m=_.ql(m,{className:void 0});var G=m.data;m=m.className;var K=_.pT(function(){return G().onTapCommand},void 0,"SXkP9e");
return _.r("ytd-shopping-item-card",{class:_.VO("ytdShoppingItemCardHost",m)},_.r(_.qm,{command:K,className:"ytdShoppingItemCardHostLink"},_.r("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.r(_.z$,{data:function(){return G().thumbnailViewModel}},{thumbnailViewModel:function(W){return _.r(Hr,{data:W.data,
aspectRatio:3})}})),_.r("div",null,_.r("p",{class:"ytdShoppingItemCardHostItemTitle"},_.r(_.Nm,{text:function(){return G().itemTitle}})),_.r("p",{class:"ytdShoppingItemCardHostPrice"},_.r(_.Nm,{text:function(){return G().priceOrStatus}})))))},"lc"),"ytd-shopping-item-card",{props:{data:_.Dd,
className:_.Dd}});var lsl={isAdsVideo:!0},BaG={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},MsF={showPlayerControls:!1,videoPreviewDurationMs:15E3},TaS={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0},miP={showPlayerControls:!0,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0,hideTimeDisplay:!0,hideCaptionsToggleButton:!0,hideScrubber:!0};var aT=null,aoo={};var bjd="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(" "),Ym={},v0F=(Ym.FEwhat_to_watch="home",Ym.FEhashtag="hashtag",Ym.FEtrending="trending",Ym.FEhistory="history",Ym.SPunlimited="premium",Ym.FEmemberships_and_purchases="paid_memberships",Ym.SPredeem_code="redeem",Ym.SPverify_location="locate",Ym.SPminor_moment="minor_moment",
Ym.FEmini_app_container="mini_app",Ym.FEnews_destination="news",Ym.SPopen_in_app="open_in_app",Ym.FEexplore="explore",Ym.FEsubscriptions="subscriptions",Ym.FEsfv_audio_pivot="sfv_audio_pivot",Ym.FEplaylist_aggregation="playlist_aggregation",Ym);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");_.fJ("init");var idl,GYP,WxR,ARB,Kx0;idl=function(){};
_.LxG=_.P(function(m){var G=m.data;var K=m.inlineMetadata;var W=m.aspectRatio;var L=m.scrimStyle;var A=m.className;var O=m.useDefaultStyle;var c=m.titleStyle;var u=new idl,h=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",J=_.pT(function(){return(O==null?0:O())?h==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"CIGaAf"),N=_.pT(function(){return _.EZ(K)||J()||!1},void 0,"SEL6Qd"),D=function(){return(L==null?void 0:
L())!==void 0?L==null?void 0:L():1},t=_.pT(function(){return G().belowThumbnailMetadata||!N()},void 0,"KAqk1b");
m=_.eN({visibilityCallback:function(Ls){var gd=G().onFirstVisible;Ls&&gd&&_.h$(gd)},
showOption:{calledOnce:!0,state:"visible"}});var a=_.aC(),v={},I=_.VO(function(){return J(),"shortsLockupViewModelHostThumbnailContainer"},(v.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.EZ(W)===1},v.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.EZ(W)===2},v.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.F("web_shorts_2_by_3_lockups_study")&&!_.F("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
v)),Z=_.pT(function(){if(_.EZ(W)===1)return 1;
_.EZ(W);return 2},void 0,"Bg5Es"),k,z=function(){if(u){var Ls;
(Ls=k)==null||qa(Ls);var gd;if(u.hostElement&&((gd=u.data)==null?0:gd.inlinePlayerData)){var Qf,JV;Ls=((Qf=u.data)==null?0:(JV=Qf.inlinePlayerData)==null?0:JV.enableAudioControl)?Object.assign({},miP):Object.assign({},TaS);var DF,kG;((DF=u.data)==null?void 0:(kG=DF.inlinePlayerData)==null?void 0:kG.maxPlaybackLengthSec)!==void 0&&(Ls.videoPreviewDurationMs=u.data.inlinePlayerData.maxPlaybackLengthSec*1E3);k=rH({mediaRenderer:u,lockupElement:u.hostElement,thumbnailElement:a.value,videoPreviewOpts:Ls})}}};
_.$O(function(){u&&(u.data=G(),z())},"wo9C7e");
var X=_.pT(function(){return G().thumbnail},void 0,"haijYd");
v=_.pT(function(){return G().badge},void 0,"RpDeSe");
var f=_.pT(function(){return G().onTap},void 0,"hOfuOb"),U={},l={};
return _.r("ytm-shorts-lockup-view-model",{el:_.aC(function(Ls){u&&(u.hostElement=Ls)},z,m),
class:_.VO("shortsLockupViewModelHost",A)},_.r(_.zL,null,_.r(_.qm,{command:f,className:_.VO("shortsLockupViewModelHostEndpoint",(U.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!t()},U),"reel-item-endpoint",""),
ariaHidden:function(){return!N()},
tabIndex:function(){return N()?0:-1}},_.r("div",{el:a,
class:_.VO("shortsLockupViewModelHostThumbnailParentContainer",(l.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!J()},l))},_.r(_.p,{cond:X,
then:function(){return _.r("div",{class:I},_.r(_.oC,{data:function(){var Ls;return(Ls=X==null?void 0:X())!=null?Ls:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.r(_.z$,{data:function(){return G().thumbnailViewModel}},{thumbnailViewModel:function(Ls){return _.r(Hr,{data:Ls.data,
aspectRatio:function(){return Z()},
disableRounding:function(){return J()}})}}),null),_.r(_.p,{cond:N,
then:function(){return _.r(GYP,{data:G,scrimStyle:D,useDefaultStyle:O,titleStyle:c})}}),_.r(_.z$,{data:v},{badgeViewModel:function(Ls){return _.r(_.vr,{data:Ls.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.r(_.p,{cond:function(){return N()&&G().menuOnTap},
then:function(){return _.r(Kx0,{data:G,inlineMetadata:!0})}}),_.r(_.p,{cond:t,
then:function(){return _.r(WxR,{data:G,useDefaultStyle:O,inlineMetadata:N})}})))},"nc");
GYP=_.P(function(m){var G=m.data;var K=m.scrimStyle;var W=m.useDefaultStyle;var L=m.titleStyle;var A=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",O=W&&_.F("web_hide_primary_text_for_pivot_panel"),c=_.pT(function(){return(W==null?0:W())?A==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c5smEd");
m={};m=_.VO("shortsLockupViewModelHostInlineMetadata",(m.shortsLockupViewModelHostMetadataRounded=function(){return!c()},m.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(K==null?void 0:K())===3&&!_.F("enable_shorts_lockup_new_scrim")},m.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(K==null?void 0:K())===3&&_.F("enable_shorts_lockup_new_scrim")},m.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(K==null?void 0:K())===2||(K==null?void 0:
K())===4},m.shortsLockupViewModelHostShowOverPlayer=function(){return!0},m),"image-overlay-text");
var u={};return _.r("div",{class:m},_.r("h3",{class:_.VO("shortsLockupViewModelHostMetadataTitle",(u.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(K==null?void 0:K())===4},u.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return G().belowThumbnailMetadata},u.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(L==null?void 0:L())===1},u.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(L==null?void 0:L())===2},u)),
"aria-label":function(){return G().accessibilityText}},_.r(_.p,{cond:function(){var h;
return!((h=G().overlayMetadata)==null||!h.primaryText)&&!O},
then:function(){return _.r(_.Nm,{text:function(){var h;return(h=G().overlayMetadata)==null?void 0:h.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.r(_.p,{cond:function(){var h;
return(h=G().overlayMetadata)==null?void 0:h.secondaryText},
then:function(){return _.r(ARB,{data:G,scrimStyle:K,className:void 0})}}))},"oc");
WxR=_.P(function(m){var G=m.data;var K=m.useDefaultStyle;var W=m.inlineMetadata;var L=_.F("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",A=_.pT(function(){return(K==null?0:K())?L==="SHORTS_LOCKUP_STYLE_SLIM":G().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"hn3pLe"),O=_.aC(),c;
m=_.dn(function(t){if(_.A3(_.LQ(t),O.value,["AVATAR-VIEW-MODEL"]))return!1;var a;(a=c)==null||a.click();return!1});
var u=_.pT(function(){return G().belowThumbnailMetadata||G().overlayMetadata},void 0,"GwezKf"),h=function(){return G().menuOnTap&&!W()},J=function(){var t;
return(t=u())==null?void 0:t.avatar},N={},D={};
return _.r("div",{class:_.VO(function(){return A()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(N.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!J()},N.shortsLockupViewModelHostOutsideMetadataHasMenu=h,N)),
"on:click":m,el:O,role:"presentation"},_.r(_.z$,{data:J},{avatarViewModel:function(t){return _.r(_.O9,{data:t.data,avatarButtonCustomClassName:"shortsLockupViewModelHostOutsideMetadataAvatar"})}}),_.r("div",null,_.r("h3",{class:_.VO("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(D.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var t,a;
return!((t=u())==null?0:(a=t.primaryText)==null?0:a.content)},D.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=W,D)),
role:"presentation"},_.r(_.qm,{ref:function(t){return void(c=t)},
command:function(){return G().onTap},
className:_.VO("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var t,a;return(t=u())==null?void 0:(a=t.primaryText)==null?void 0:a.content},
"aria-label":function(){return G().accessibilityText}},_.r(_.p,{cond:function(){var t;
return(t=u())==null?void 0:t.primaryText},
then:function(t){return _.r(_.Nm,{text:t,noEndpoints:!0,noStyleRuns:!0})}}))),_.r(_.p,{cond:function(){var t;
return(t=u())==null?void 0:t.secondaryText},
then:function(t){return _.r("div",{class:_.VO("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.r(_.Nm,{text:t,noStyleRuns:!0}))}})),_.r(_.p,{cond:h,
then:function(){return _.r(Kx0,{data:G,inlineMetadata:!1})}}))},"pc");
ARB=_.P(function(m){var G=m.data;var K=m.scrimStyle;m=m.className;var W={};return _.r("div",{class:_.VO((W.shortsLockupViewModelHostMetadataSubhead=function(){return(K==null?void 0:K())!==4},W.shortsLockupViewModelHostMetadataSubheadNew=_.F("enable_shorts_lockup_new_scrim"),W.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(K==null?void 0:K())===4},W),m),
"aria-hidden":"true"},_.r(_.Nm,{text:function(){var L;return(L=G().overlayMetadata)==null?void 0:L.secondaryText},
noStyleRuns:!0}))},"qc");
Kx0=_.P(function(m){var G=m.data;var K=m.inlineMetadata;m={};m=_.VO((m.shortsLockupViewModelHostInlineMetadataMenu=function(){return K()},m.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!K()},m.shortsLockupViewModelHostShowOverPlayer=function(){return!0},m),"image-overlay-text");
return _.r("div",{class:m},_.r(_.jd,{data:function(){return{style:K()?"overlay":"mono",accessibilityLabel:G().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(W){W.preventDefault();W.stopPropagation();var L=_.rn({elementsCommand:G().menuOnTap,forceNewState:!0});if(L==null?0:L.onclick)L.onclick(W)}}},
iconName:"MORE_VERT"}))},"rc");var wAG=_.P(function(m){var G=m.data;var K=m.inlineMetadata;var W=m.aspectRatio;var L=m.scrimStyle;var A=m.className;var O=m.useDefaultStyle;m=_.pT(function(){var c=G().entityId;return c?c.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.r("ytm-shorts-lockup-view-model-v2",{class:_.VO("shortsLockupViewModelHost",A)},_.r(_.Pr,{contentId:m,aspectRatio:function(){return(W==null?void 0:W())===1?1:(W==null?void 0:W())===2?2:4}},function(){return _.r(_.LxG,{data:G,
inlineMetadata:K,aspectRatio:W,scrimStyle:L,className:A,useDefaultStyle:O})}))},"sc");_.sh(wAG,"ytm-shorts-lockup-view-model-v2",{props:{data:_.nN,inlineMetadata:_.nN,aspectRatio:_.nN,scrimStyle:_.nN,className:_.nN,useDefaultStyle:_.nN,titleStyle:_.nN}});var gMS=16/9*210,rr=function(){var m=_.d.apply(this,arguments)||this;m.isExpandableContent=!1;m.hideShelfHeader=!1;m.engagementPanel=!1;m.buttonClasses=["arrow"];m.isSearch=!1;m.disableScrollEventListener=!1;m.containsLockup=!1;m.overrideArrowPositionForProductCard=!1;m.overrideArrowPositionForShoppingItemCard=!1;m.overrideArrowPositionForReelItems=!1;m.overrideArrowPositionForGridMovie=!1;m.overrideArrowPositionToCenter=!1;m.isSearchPostShelf=!1;m.overrideArrowPositionForMixedShelf=!1;m.overrideArrowPositionForMixedShelfShortsOnly=
!1;m.hasBigThumbsReelItems=!1;m.shouldUseMixedListHeight=!1;m.shouldUseShortsListHeight=!1;m.gridVideoWidth=0;m.isSearchVodShelf=!1;m.disableWheelScroll=!1;m.sizing="COMPACT";m.shortsLockupAspectRatio=0;return m};
_.n(rr,_.d);_.w=rr.prototype;
_.w.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]]"}}}}};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.F("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.w.computeInitialCountNumber=function(m){if(!m)return 6;var G=m.items.some(function(A){return!!A.topicRecommendationsChipRenderer}),K=m.items.some(function(A){return!!A.displayAdRenderer}),W=this.computeShouldListItemsHaveEqualHeight(m),L=m.items.some(function(A){return!!A.gridPlaylistRenderer});
m=m.items.some(function(A){return!!A.shoppingItemCardViewModel});
return G?9:K?8:L||W?10:m?7:6};
_.w.computeContainsPost=function(m){return!!m&&!!m.items&&m.items.some(function(G){return!!G.postRenderer})};
_.w.computeContainsLockup=function(){if(_.F("web_horizontal_list_lockup_arrow_killswitch"))return!1;var m,G;return(m=this.data)==null?void 0:(G=m.items)==null?void 0:G.some(function(K){return!!K.lockupViewModel})};
_.w.maybeUpdateLockupAspectRatio=function(){var m,G;if(this.computeContainsLockup()&&((m=this.data)==null?0:(G=m.items)==null?0:G.length)){var K;m=luF((K=this.data.items[0].lockupViewModel)==null?void 0:K.contentType,this.data.force16By9ThumbnailAspectRatio);K=lt9(m);K=this.computeLockupWidth()/K;_.eb(this.hostElement,{"--yt-horizontal-list-content-height":K+"px"})}};
_.w.computeOverrideArrowPositionForProductCard=function(m){if(this.isExpandableContent)return!1;var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){return!!K.verticalProductCardRenderer}))};
_.w.computeOverrideArrowPositionForShoppingItemCard=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){return!!K.shoppingItemCardViewModel}))};
_.w.computeOverrideArrowPositionForReelItemRenderer=function(m){return this.containsReelItemRenderer(m)};
_.w.computeHasBigThumbsReelItems=function(m,G){return m&&this.containsReelItemRenderer(G)};
_.w.computeShouldListItemsHaveEqualHeight=function(m){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(m==null?void 0:m.itemSizeConstraint)};
_.w.computeShouldListItemsHaveShortsHeight=function(m){return this.computeShouldListItemsHaveEqualHeight(m)&&!this.containsGridVideoRenderer(m)};
_.w.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.w.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.w.containsReelItemRenderer=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){return!(!K.reelItemRenderer&&!K.shortsLockupViewModel)}))};
_.w.containsGridVideoRenderer=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){return!!K.gridVideoRenderer||!!K.lockupViewModel}))};
_.w.computeContainsGridMovieRenderer=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){return!!K.gridMovieRenderer}))};
_.w.computeOverrideArrowPositionToCenter=function(m){return this.computeIsSearchPostShelf(m)};
_.w.computeIsSearchPostShelf=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){var W,L;return((L=(W=K.postRenderer)==null?void 0:W.surface)!=null?L:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.w.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(m){var G;return!!(m==null?0:(G=m.items)==null?0:G.some(function(K){var W,L,A;return((A=(W=K.backgroundPromoRenderer)==null?void 0:(L=W.style)==null?void 0:L.value)!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.w.computeIsSearchVodShelf=function(m,G){return m&&this.containsGridVideoRenderer(G)};
_.w.computeDisableWheelScroll=function(m,G){return this.computeIsSearchVodShelf(m,G)};
_.w.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.w.computeShortsLockupAspectRatio=function(){return 1};
_.w.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.eb(this.hostElement,{"--ytd-reel-item-thumbnail-height":gMS+"px"})};
rr.prototype.dataChanged=rr.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],rr.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rr.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],rr.prototype,"isExpandableContent",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"hideShelfHeader",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Array)],rr.prototype,"buttonClasses",void 0);_.x([_.V(),_.S("design:type",Object)],rr.prototype,"isSearch",void 0);
_.x([_.V(),_.S("design:type",Object)],rr.prototype,"disableScrollEventListener",void 0);_.x([_.V({computed:"computeInitialCountNumber(data)"}),_.S("design:type",Number)],rr.prototype,"initialCount",void 0);_.x([_.V({computed:"computeContainsPost(data)"}),_.S("design:type",Boolean)],rr.prototype,"supportComponentResize",void 0);_.x([_.V({computed:"computeContainsPost(data)"}),_.S("design:type",Boolean)],rr.prototype,"containsPost",void 0);
_.x([_.V({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"containsLockup",void 0);_.x([_.V({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],rr.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.x([_.V({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForProductCard",void 0);_.x([_.V({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.x([_.V({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForReelItems",void 0);_.x([_.V({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForGridMovie",void 0);
_.x([_.V({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionToCenter",void 0);_.x([_.V({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"isSearchPostShelf",void 0);_.x([_.V({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.x([_.V({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.x([_.V({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"hasBigThumbsReelItems",void 0);
_.x([_.V({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"shouldUseMixedListHeight",void 0);_.x([_.V({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"shouldUseShortsListHeight",void 0);_.x([_.V({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"gridVideoWidth",void 0);
_.x([_.V({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"isSearchVodShelf",void 0);_.x([_.V({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.S("design:type",Object)],rr.prototype,"disableWheelScroll",void 0);_.x([_.V({computed:"computeSizing(isSearch)"}),_.S("design:type",Object)],rr.prototype,"sizing",void 0);
_.x([_.V({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.S("design:type",Object)],rr.prototype,"shortsLockupAspectRatio",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rr.prototype,"dataChanged",null);
_.y(rr,"yt-horizontal-list-renderer",function(){if(GKl===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);GKl=m}m=GKl;return m},{mode:1});var OdP=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
OdP.prototype.subscribe=function(m,G){var K=this.subscriptions.get(m);if(!K)return function(){};
K.add(G);return function(){K.delete(G)}};
OdP.prototype.unsubscribe=function(m,G){(m=this.subscriptions.get(m))&&m.delete(G)};
OdP.prototype.publish=function(m,G){G=G===void 0?{}:G;(m=this.subscriptions.get(m))&&m.forEach(function(K){K(G)})};var cR4;var YqX=[10,12,14,16,18,20,24,28,32,36],rRi=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],uc=function(){var m=_.d.apply(this,arguments)||this;m.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";m.hideOverflow=!1;m.useRoboto=!1;m.fontClass="";m.overflown=!1;m.actionMap={"yt-window-resized":"resize"};return m};
_.n(uc,_.d);_.w=uc.prototype;
_.w.attached=function(){var m=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();_.Pv(this,function(){m.resize()});
if(!_.PX){var G,K,W;(G=document)==null||(K=G.fonts)==null||(W=K.ready)==null||W.then(function(){m.resize()})}};
_.w.dataChanged=function(){this.resize()};
_.w.guideIsExpandedChanged=function(){this.resize()};
_.w.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 m=this.getMaxNumLines(),G=this.getMinFont(),K=this.getMaxFont(),W=this.useRoboto?YqX:rRi;for(W=W.filter(function(A){return A<=K&&A>=G});W.length>1;){var L=Math.floor(W.length/2);
this.updateFontSize(W[L]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=m)W=W.slice(L,W.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>m)W=W.slice(0,L);else break}this.updateFontSize(W[W.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(m)}};
_.w.handleOverflow=function(m){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>m&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",m.toString()))};
_.w.updateFontSize=function(m){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+m;this.textNode.classList.add(this.fontClass)};
_.w.getMaxFont=function(){var m=this.useRoboto?YqX:rRi;m=m[m.length-1];return this.maxFontSize&&this.maxFontSize<=m?this.maxFontSize:m};
_.w.getMinFont=function(){var m=(this.useRoboto?YqX:rRi)[0];return this.minFontSize&&this.minFontSize>=m?this.minFontSize:m};
_.w.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.w.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.w.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.bw(this.text).split("\n").length-1:Infinity};
_.w.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("Lh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
uc.prototype.guideIsExpandedChanged=uc.prototype.guideIsExpandedChanged;uc.prototype.dataChanged=uc.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],uc.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],uc.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uc.prototype,"text",void 0);
_.x([_.V(),_.S("design:type",String)],uc.prototype,"fontFamily",void 0);_.x([_.V(),_.S("design:type",Number)],uc.prototype,"maxWidth",void 0);_.x([_.V(),_.S("design:type",Number)],uc.prototype,"maxHeight",void 0);_.x([_.V(),_.S("design:type",Number)],uc.prototype,"maxFontSize",void 0);_.x([_.V(),_.S("design:type",Number)],uc.prototype,"minFontSize",void 0);_.x([_.V(),_.S("design:type",Number)],uc.prototype,"maxLines",void 0);_.x([_.V(),_.S("design:type",Object)],uc.prototype,"hideOverflow",void 0);
_.x([_.V({selector:_.JSd}),_.S("design:type",Boolean)],uc.prototype,"guideIsExpanded",void 0);_.x([_.UM("#container"),_.S("design:type",HTMLElement)],uc.prototype,"containerNode",void 0);_.x([_.UM("#text"),_.S("design:type",HTMLElement)],uc.prototype,"textNode",void 0);_.x([_.Mg("text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uc.prototype,"dataChanged",null);
_.x([_.Mg("guideIsExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uc.prototype,"guideIsExpandedChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],uc);
_.y(uc,"yt-dynamic-sizing-formatted-string",function(){if(cR4!==void 0)return cR4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return cR4=m},{mode:1});var ucF;_.h7k=function(m){_.mv.call(this,m)};
_.n(_.h7k,_.mv);var pAl=function(m){_.mv.call(this,m)};
_.n(pAl,_.h7k);var he=function(){return _.d.apply(this,arguments)||this};
_.n(he,_.d);he.prototype.onTapSuspendedChannel=function(){var m;if((m=this.data)!=null&&m.serviceEndpoint){var G,K;(m=(K=_.Q((G=this.data)==null?void 0:G.serviceEndpoint,_.H$))==null?void 0:K.url)?_.pr(m,void 0,void 0,window.top):(G=new pAl("Did not handle suspended account tap. No appealUrl."),_.am(G))}else G=new pAl("Did not handle suspended account tap. No serviceEndpoint."),_.am(G)};
he.prototype.onTap=function(){var m=this,G=_.l1(),K,W=(K=_.zg(G,{veType:7116}))!=null?K:void 0;_.Jo(G,{visualElement:W});_.u0();this.saveRoleText();var L;if((L=this.data)==null?0:L.youtubeSuspended)this.onTapSuspendedChannel();else{var A=!1,O,c;(G=(c=_.Q((O=this.data)==null?void 0:O.serviceEndpoint,_.i9S))==null?void 0:c.supportedTokens)&&G.forEach(function(u){if(u.accountSigninToken)if(A=!0,m.onAccountItemTap)m.onAccountItemTap(u.accountSigninToken.signinUrl);else _.pr(u.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!A){if(O=this.get("serviceEndpoint",this.data))A=!0,this.ytComponentBehavior.resolveCommand(O);A||_.om(new pAl("Did not handle account switch tap. No token."))}}};
he.prototype.saveRoleText=function(){if(this.data){var m=this.data,G=m.channelDelegationRole;if(G){var K,W=(K=_.Q(m==null?void 0:m.serviceEndpoint,_.i9S))==null?void 0:K.supportedTokens;if(!W){var L,A,O,c;W=(L=_.Q(m==null?void 0:m.serviceEndpoint,_.BM))==null?void 0:(A=L.popup)==null?void 0:(O=A.confirmDialogRenderer)==null?void 0:(c=O.confirmButton)==null?void 0:c.buttonRenderer;var u;W=(u=_.Q(W==null?void 0:W.command,_.xu))==null?void 0:u.commands;if(!W)return;var h;W=(h=_.Q(W[1],_.i9S))==null?
void 0:h.supportedTokens}if(W){u=void 0;h=_.g(W);for(W=h.next();!W.done;W=h.next())if(W=W.value,W.datasyncIdToken){u=W.datasyncIdToken.datasyncIdToken;break}if(u){var J;a:{if(_.nf6()&&(h=_.JH(u+"::pom"))){h=new Ub(h);break a}h=void 0}(J=h)==null||J.set("role_text",G);if((Z1f?Z1f:window.location).href.indexOf("studio")!==-1&&(J=b19())){h=J.src?(new URL(J.src)).origin:"*";var N;(N=J.contentWindow)==null||N.postMessage({action:"save_pom_role",datasyncId:u,roleText:G},h)}}}}}};
_.e_.Object.defineProperties(he.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.accountPhoto)==null?void 0:G.thumbnails;return K&&K.length>0&&(K[0].height===36||K[0].height===48)?K[0].height:40}}});
he.prototype.onTap=he.prototype.onTap;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],he.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],he.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],he.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Function)],he.prototype,"onAccountItemTap",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],he.prototype,"enableRingForActiveAccount",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],he.prototype,"thumbnailSize",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],he.prototype,"onTap",null);_.x([_.Ye({is:"ytd-account-item-renderer",disableElementRegistration:!0})],he);
_.y(he,"ytd-account-item-renderer",function(){if(ucF!==void 0)return ucF;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ucF=m},{mode:1});var JRP;var p4=function(){return _.d.apply(this,arguments)||this};
_.n(p4,_.d);p4.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.xS().resolve(_.S1).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],p4.prototype,"data",void 0);_.x([_.Ye({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],p4);
_.y(p4,"ytd-identity-chip-renderer",function(){if(JRP!==void 0)return JRP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return JRP=m},{mode:1});var NPk;var DiS;var tzl;var FxP;var Je=function(){var m=_.d.apply(this,arguments)||this;m.richItemMinWidth=_.U8("wn_grid_min_item_width",310);m.isShorts=!1;m.isWatchNext=!1;m.isExploreHub=!1;return m};
_.n(Je,_.d);_.e_.Object.defineProperties(Je.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var m=[],G=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.eb(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var K;if(((K=this.data)==null?0:K.rows)&&G)for(G*=this.data.rows,K=0;K<G;K++)m.push({});return m}}});
_.x([_.q(_.OW),_.S("design:type",Object)],Je.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Je.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Je.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.Ov,value:3}),_.S("design:type",Number)],Je.prototype,"itemsPerRow",void 0);_.x([_.V({selector:_.pTP,value:6}),_.S("design:type",Number)],Je.prototype,"slimItemsPerRow",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],Je.prototype,"richItemMinWidth",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],Je.prototype,"miniMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Je.prototype,"isShorts",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Je.prototype,"isWatchNext",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Je.prototype,"isExploreHub",void 0);
_.x([_.E("isExploreHub"),_.V({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],Je.prototype,"shimmerAnimation",null);_.x([_.E("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.S("design:type",Array),_.S("design:paramtypes",[])],Je.prototype,"cardItems",null);_.x([_.Ye({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Je);
_.Q1o=_.Vz()(Je,"ytd-ghost-grid-renderer",function(){if(FxP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);FxP=m}m=FxP;return m},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.sh(_.P(function(m){var G=_.ql(m,{numberOfComments:3}).numberOfComments,K=_.ql(m,{isInitialLoad:!1}).isInitialLoad,W=_.ql(m,{engagementPanel:!1}).engagementPanel,L=function(){return Math.min(Number(G==null?void 0:G())||20,20)};
return _.r("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.r(_.p,{cond:function(){return!(W==null?0:W())&&(K==null?void 0:K())},
then:function(){return _.r("div",{class:"ytGhostCommentsComments"},_.r("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.r("div",{class:_.VO("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.r("div",{class:_.VO("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.r("div",{class:"ytGhostCommentsGhostCard"},_.r("div",{class:"ytGhostCommentsAvatar"},_.r("div",{class:"ytGhostCommentsCircle"})),_.r("div",{class:"ytGhostCommentsComments"},_.r("div",{class:"ytGhostCommentsMeta"},
_.r("div",{class:_.VO("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.r("div",{class:_.VO("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.r("div",{class:"ytGhostCommentsComments"},_.r(_.D0,{each:function(){return Array((L==null?void 0:L())||3)}},function(){return _.r("div",{class:"ytGhostCommentsGhostCard"},_.r("div",{class:"ytGhostCommentsAvatar"},_.r("div",{class:"ytGhostCommentsCircle"})),_.r("div",{class:"ytGhostCommentsHost"},_.r("div",{class:"ytGhostCommentsMeta"},
_.r("div",{class:_.VO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.r("div",{class:_.VO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.r("div",{class:_.VO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.r("div",{class:"ytGhostCommentsGhostLikeDislike"},_.r("div",{class:_.VO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.r("div",{class:_.VO("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"tc"),"yt-ghost-comments",{props:{numberOfComments:_.Dd,
isInitialLoad:_.Dd,engagementPanel:_.Dd},unsafeExternallySettableAttributes:new Set(["hidden"])});_.Kz("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Ne=function(){var m=_.d.apply(this,arguments)||this;m.isOverridable=!1;m.spinnerActive=!1;m.showButton=!1;m.isCommentsSection=!1;m.engagementPanel=!0;m.isShortsGrid=!1;m.isShortsPage=!1;m.isWatchPage=!1;m.originalShowButton=!1;m.endOfList=!1;return m};
_.n(Ne,_.d);_.w=Ne.prototype;_.w.resetIntersectionObserver=function(){var m;(m=this.observer)==null||m.disconnect();this.observer=void 0};
_.w.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var m,G;((m=this.data)==null?void 0:m.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((G=this.data)==null?0:G.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.w.initializeIntersectionObserver=function(){var m=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(G){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K.value.isIntersecting&&(m.triggerContinuation(),m.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.w.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},showGhostCardComments:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.w.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var m;((m=this.data)==null?0:m.continuationEndpoint)&&(m=_.Q(this.data.continuationEndpoint,_.Yg))&&this.ytdReduxBehavior.dispatch(_.kt({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:m}}))};
_.w.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.w.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.w.onServiceRequestCompleted=function(m,G){if(!_.F("kevlar_hide_spinner_on_empty_continuation_killswitch")){var K;(K=G.actions)!=null&&K.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.w.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.w.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.w.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.w.numberOfGhostCommentsChanged=function(){var m=3;if(this.engagementPanel){var G,K,W;m=Math.floor(((((G=this.hostElement)==null?void 0:(K=G.parentElement)==null?void 0:(W=K.parentElement)==null?void 0:W.scrollHeight)||108)-108)/108);m=this.isInitialLoad?Math.max(m,3):3}G=[].concat(_.Bz(this.hostElement.querySelectorAll("yt-ghost-comments")));G=_.g(G);for(K=G.next();!K.done;K=G.next())K=K.value,K.numberOfComments=m,K.isInitialLoad=this.isInitialLoad,K.engagementPanel=this.engagementPanel};
_.w.detached=function(){this.resetIntersectionObserver()};
_.e_.Object.defineProperties(Ne.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Ne.prototype.numberOfGhostCommentsChanged=Ne.prototype.numberOfGhostCommentsChanged;Ne.prototype.continuationTriggerOffsetChanged=Ne.prototype.continuationTriggerOffsetChanged;Ne.prototype.showButtonChanged=Ne.prototype.showButtonChanged;Ne.prototype.onYtServiceRequestCompletedForButtonRenderer=Ne.prototype.onYtServiceRequestCompletedForButtonRenderer;Ne.prototype.onServiceRequestCompleted=Ne.prototype.onServiceRequestCompleted;Ne.prototype.onYtServiceRequestSentForButtonRenderer=Ne.prototype.onYtServiceRequestSentForButtonRenderer;
Ne.prototype.observeData=Ne.prototype.observeData;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],Ne.prototype,"ytVisibilityBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],Ne.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"isOverridable",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"spinnerActive",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"showButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ne.prototype,"isCommentsSection",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ne.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"isShortsGrid",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.tBd}),_.S("design:type",Object)],Ne.prototype,"isShortsPage",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.DSd}),_.S("design:type",Object)],Ne.prototype,"isWatchPage",void 0);_.x([_.V(),_.S("design:type",Number)],Ne.prototype,"continuationTriggerOffset",void 0);
_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"endOfList",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ne.prototype,"isInitialLoad",void 0);_.x([_.UM("ytd-button-renderer"),_.S("design:type",_.sD)],Ne.prototype,"buttonRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],Ne.prototype,"buttonOverrides",void 0);
_.x([_.V(),_.E("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ne.prototype,"showGhostCardComments",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"observeData",null);
_.x([_.XC("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],Ne.prototype,"onServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-completed-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.x([_.Mg("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"showButtonChanged",null);
_.x([_.Mg("continuationTriggerOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"continuationTriggerOffsetChanged",null);_.x([_.Sb("isInitialLoad","engagementPanel"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ne.prototype,"numberOfGhostCommentsChanged",null);_.x([_.Ye({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Ne);
_.y(Ne,"ytd-continuation-item-renderer",function(){if(tzl!==void 0)return tzl;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return tzl=m},{mode:1});var amK;var DB=function(){var m=_.d.apply(this,arguments)||this;m.downloadProgress=0;m.transferState="TRANSFER_STATE_UNKNOWN";m.downloadState="DOWNLOAD_STATE_UNKNOWN";m.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";m.offlineVideoPolicyExpirationTimestamp=0;m.downloadedVideoPlaybackPosition=0;return m};
_.n(DB,_.d);DB.prototype.dataChanged=function(){var m;this.videoData=_.Q((m=this.data)==null?void 0:m.renderer,H5S);this.transferStateChanged()};
DB.prototype.downloadProgressChanged=function(){if(this.entityInfo){var m=Object.assign({},this.videoData),G=Rpo(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),K=G.publishedTimeText,W=G.badges;m.shortViewCountText=G.shortViewCountText;m.publishedTimeText=K;m.badges=W;this.set("videoData",m)}};
DB.prototype.transferStateChanged=function(){if(this.entityInfo){var m=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",G=_.Mc(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bk(this.entityInfo.policyEntity),K=Object.assign({},this.videoData),W=Rpo(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),L=W.publishedTimeText,A=W.badges;K.shortViewCountText=
W.shortViewCountText;K.publishedTimeText=L;K.badges=A;K.isDisabled=G;K.isWatched=this.downloadedVideoPlaybackPosition>0;K.navigationEndpoint=G?void 0:Fhd(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var O;m&&((O=this.videoData)==null?0:O.videoId)&&!_.F("dl_resume_click_killswitch")&&(K.isDisabled=!1,K.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});K.thumbnailOverlays=Xxs(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",K)}};
DB.prototype.transferStateChanged=DB.prototype.transferStateChanged;DB.prototype.downloadProgressChanged=DB.prototype.downloadProgressChanged;DB.prototype.dataChanged=DB.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],DB.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],DB.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],DB.prototype,"videoData",void 0);_.x([_.V({selector:pG,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"downloadProgress",void 0);_.x([_.V(),_.S("design:type",Number)],DB.prototype,"relativeDateReference",void 0);_.x([_.V({selector:_.uw,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"transferState",void 0);
_.x([_.V({selector:uBV,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"downloadState",void 0);_.x([_.V({selector:njF,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"offlinePolicyAction",void 0);_.x([_.V({selector:b9G,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.x([_.V({selector:JM,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"downloadedVideoPlaybackPosition",void 0);_.x([_.V({selector:$SM,selectorArgs:["videoData.videoId"]}),_.S("design:type",Object)],DB.prototype,"entityInfo",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],DB.prototype,"isDownloading",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DB.prototype,"dataChanged",null);
_.x([_.Mg("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DB.prototype,"downloadProgressChanged",null);_.x([_.Mg("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DB.prototype,"transferStateChanged",null);
_.x([_.Ye({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],DB);
_.y(DB,"ytd-downloaded-video-grid-video-renderer",function(){if(amK!==void 0)return amK;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return amK=m},{mode:2});var oMR;var te=function(){};
te.prototype.resolve=function(m,G){var K=this;return _.Y(function(W){return W.yield(K.resolveCommand(m,G),0)})};var nMo,Fp;nMo=s6G(function(m){return m.targetId},{shouldPersist:!1});
Fp=nMo.updateData;_.Qs=nMo.useUpdatableData;var bdX,vMC;bdX=s6G(function(m){return m.targetId});
vMC=bdX.updateData;_.$iS=bdX.useUpdatableData;var s1K=qSd.bind(null,Fp),qq2=qSd.bind(null,vMC);(function(m,G,K){var W=_.Q(K==null?void 0:K.updatedRenderer,_.Ax0);return W?m({targetId:G},function(){return W}):!1}).bind(null,Fp);var aX=function(){};
_.n(aX,te);aX.prototype.resolveCommand=function(m){var G;return _.Y(function(K){G=_.Q(m,ykd);if(!G)return K.return();s1K(G.targetId,G);_.ey(K)})};var oX=function(){var m=_.l0.apply(this,arguments)||this;m.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-restore-cached-continuable-data-command":"handleRestoreCachedContinuableDataCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return m};
_.n(oX,_.l0);_.w=oX.prototype;_.w.configureContinuationPathMap=function(){return{}};
_.w.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.w.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.w.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.w.observeData=function(){this.data&&(this.continuationIsReloading=!1,this.reloadUiContent=void 0)};
_.w.handleAppendContinuationItemsAction=function(m){var G=_.Q(m,_.lz4);if(this.data&&this.data.targetId&&G&&this.continuationPathMap&&G.targetId===this.data.targetId){var K=vAf(m),W=K&&this.continuationPathMap[K];if(W&&K)if(m=this.get(W,this.data)){a:{for(K=0;K<m.length;K++){var L=m[K],A=void 0,O=!!_.Q((A=_.Q(L,Z$i))==null?void 0:A.content,_.$Ri);if(_.Q(L,_.EU)||O)break a}K=m.length}W="data."+W;G.continuationItems?K===m.length-1?(this.pop(W),this.push.apply(this,[W].concat(_.Bz(G.continuationItems)))):
K===m.length?this.push.apply(this,[W].concat(_.Bz(G.continuationItems))):this.splice.apply(this,[W,K,1].concat(_.Bz(G.continuationItems))):this.splice(W,K,1);(_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation"))&&_.Zw(this.hostElement,"yt-append-continuation-items-action-finished");_.Zw(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.nc(new _.cw("append continuation items does not exist",K));else _.nc(new _.cw("append continuation path does not exist",
K))}};
_.w.handleReloadContinuationItemsCommand=function(m){var G=_.Q(m,ykd);if(this.data&&G){if(!_.F("web_reload_continuation_items_command_resolver_killswitch")){var K=_.xS().resolve(_.fn(aX));K&&K.resolveCommand(m)}if(this.data.targetId&&this.continuationPathMap&&G.targetId===this.data.targetId&&(!_.F("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||G.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var W;K=(W=G.slot)==null?void 0:W.replace("RELOAD_CONTINUATION_SLOT_",
"");W=(m=vAf(m)+"-"+(K==null?void 0:K.toLowerCase()))&&this.continuationPathMap[m];if(!W||!m||!K)_.nc(new _.cw("reload continuation path does not exist",m));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(G)){if(G.replaceWithFirstItem){var L;this.set("data."+W,((L=G.continuationItems)==null?0:L.length)?G.continuationItems[0]:{})}else this.set("data."+W,G.continuationItems?G.continuationItems:[]);EMB(this)}}}};
_.w.handleRestoreCachedContinuableDataCommand=function(m){m=_.Q(m,O$G);var G;(G=this.data)!=null&&G.targetId&&(m==null?void 0:m.targetId)===this.data.targetId&&EMB(this)};
var EMB=function(m){m.continuationIsReloading=!1;m.reloadUiContent=void 0;_.Zw(m.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})};
oX.prototype.handleShowReloadUiCommand=function(m){m=_.Q(m,rdK);var G;((G=this.data)==null?0:G.targetId)&&(m==null?0:m.targetId)&&m.targetId===this.data.targetId&&(this.continuationIsReloading=!0,m.content&&(this.reloadUiContent=m.content))};
oX.prototype.observeData=oX.prototype.observeData;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],oX.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],oX.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oX.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],oX.prototype,"continuationIsReloading",void 0);
_.x([_.V(),_.S("design:type",Object)],oX.prototype,"reloadUiContent",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oX.prototype,"observeData",null);_.x([_.Be()],oX);_.n4=[_.cq.YtComponentBehavior,_.Pq.YtActionHandlerBehavior,oX.prototype];_.bc={};_.bc.YtNextContinuationBehavior=[_.oE.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",_.xC(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.xC(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(m,G){m.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,G,{}):(m={locationRetrieved:function(K){this.makeNextContinuationRequest_(K,G,{})}.bind(this)},_.Zw(this.hostElement,"yt-retrieve-location",m))},
makeNextContinuationRequest_:function(m,G,K){_.r9("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();m=G(m);var W;this.canUseContextualNetworkManager_()&&(W=this.getNetworkManager());W||(W=_.xS().resolve(_.M_));G=_.NW.instance;if(_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&G){W=_.sv([m.startsWith("/")?m.substr(1):m]);var L,A;K=_.Jf(G,{},W,K==null?void 0:(L=K.context)==null?void 0:(A=L.clickTracking)==null?void 0:A.clickTrackingParams).then(function(O){return{response:O}})}else K=
this.nextContinuation.usePost?W.postData(m,K):W.fetchData(m);
K.then(this.updateNextContinuationData_.bind(this,m));this.pendingContinuationRequest_=K;this.startListeningForNavigate_()},
updateNextContinuationData_:function(m,G){var K=this;_.r9("ncl");this.pendingContinuationRequest_=void 0;if(G){var W={};this.nextContinuation&&(W=this.nextContinuation);if(G.response&&G.response.continuationContents&&G.response.continuationContents[W.continuationType]){m=G.response.continuationContents[W.continuationType];var L=W.header||"data.header",A=m[W.responseHeaderKey||"header"];A&&this.set(L,A);L=W.contentsArray||"data.contents";A=this.getContents_(m,W.responseContentsKey||"contents")||[];
this.pathExists_(L)?(A.unshift(L),this.push.apply(this,A)):this.set(L,A);A&&(E0P(_.l1(),G.response,this.hostElement,function(O){_.dU(K.hostElement,"yt-store-grafted-ve-action",[O])}),_.Zw(this.hostElement,"yt-next-continuation-data-updated",{continuationData:G,
page:this,contentsArray:L}));this.set(W.continuationsArray||"data.continuations",m[W.responseContinuationsKey||"continuations"]||[])}else G.reload?_.nc(new _.cw("Reloading from continuation is unsupported")):G.responseContext&&G.responseContext.errors||(delete G.xsrf_token,delete G.timing,delete G.endpoint,delete G.csn,G.responseContext&&delete G.responseContext.serviceTrackingParams,L={request:_.y3(m,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(G).sort()},G.response&&(L.responseContentKeys=
Object.keys(G.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(L.continuationType=this.nextContinuation.continuationType.substr(0,256)),G=new _.cw("Malformed continuation",L),m.indexOf("/comment_service_ajax")==0?_.nc(G):_.am(G)),this.set(W.continuationsArray||"data.continuations",[])}else _.om(new _.cw("Missing continuation response",m))},
getContents_:function(m,G){G=G.split(".");return _.Y2.getValueByKeys(m,G)},
pathExists_:function(m){var G=this;m=m.toString().split(".");for(var K=0;K<m.length;K++)if(G=G[m[K]],G===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var HdS;var ImG;var vj=function(){var m=_.d.apply(this,arguments)||this;m.triggered_=!1;return m};
_.n(vj,_.d);_.w=vj.prototype;_.w.attached=function(){this.maybeTriggerAutoload()};
_.w.detached=function(){this.hasBeenTriggered_=!1};
_.w.onPrescanVisible=function(){this.onShow()};
_.w.onShow=function(){this.showButton||this.trigger()};
_.w.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Zw(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.w.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.w.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.w.computeLabel_=function(m,G){return m===void 0?null:m.label||!G?m.label:this.showMoreText_};
_.w.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.w.getContinuationUrl=function(m){var G={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(G.itct=this.data.clickTrackingParams);return _.BE(m,G)};
_.w.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
vj.prototype.showButtonChanged_=vj.prototype.showButtonChanged_;vj.prototype.observeData_=vj.prototype.observeData_;_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],vj.prototype,"ytVisibilityBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vj.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],vj.prototype,"showButton",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],vj.prototype,"showIcon",void 0);_.x([_.V({computed:"computeLabel_(data, showButton)"}),_.S("design:type",Object)],vj.prototype,"label",void 0);_.x([_.V({value:_.nG(_.zq("SHOW_MORE",void 0,"Show More"))}),_.S("design:type",Object)],vj.prototype,"showMoreText_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],vj.prototype,"spinnerActive_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],vj.prototype,"hasBeenTriggered_",void 0);
_.x([_.V({value:void 0}),_.S("design:type",String)],vj.prototype,"observeVisibleOption",void 0);_.x([_.V({value:void 0}),_.S("design:type",String)],vj.prototype,"observeHiddenOption",void 0);_.x([_.V({value:"observe_once"}),_.S("design:type",Object)],vj.prototype,"observePrescanOption",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vj.prototype,"observeData_",null);
_.x([_.Sb("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vj.prototype,"showButtonChanged_",null);_.x([_.cL({is:"yt-next-continuation",disableElementRegistration:!0})],vj);
_.y(vj,"yt-next-continuation",function(){if(ImG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;HdS===void 0&&(HdS=document.createElement("template"));var W=HdS;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ImG=m}m=ImG;return m},{mode:2});var j1i;var kYX;var $m=function(){return _.d.apply(this,arguments)||this};
_.n($m,_.d);$m.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$m.prototype,"data",void 0);_.x([_.cL({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],$m);
_.y($m,"yt-music-pass-small-feature-info-renderer",function(){if(kYX===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;j1i===void 0&&(j1i=document.createElement("template"));var W=j1i;K.call(G,W.content.cloneNode(!0),m.content.firstChild);kYX=m}m=kYX;return m},{mode:2});_.Kz("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var sP=function(){var m=_.d.apply(this,arguments)||this;m.isCollapsible=!1;m.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return m};
_.n(sP,_.d);_.w=sP.prototype;_.w.computeIsCollapsible=function(m){return!!(((m==null?0:m.showMoreText)||(m==null?0:m.visibleRowCount))&&(m==null?0:m.isCollapsible))};
_.w.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"}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.w.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.w.onIronResize=function(){var m=this;_.t9(this,"updateGridInitItems",function(){m.maybeUpdateInitialItemsDisplayed()})};
_.w.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var m=this.getVisibleWidth();m!==0&&(m=Math.floor(m/214)*(this.data.visibleRowCount||2),m!==this.initialCount&&(this.initialCount=m,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.w.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.w.computeExpandVisible=function(m,G,K,W){return m&&G&&K&&!!W&&!!W.showMoreText};
_.w.computeShowMoreButton=function(m){return{text:m,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.w.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.w.initCollapsed=function(){var m=this;this.ytLazyListBehavior.canShowMore=!1;var G;(this.collapsed=!((G=this.data)==null||!G.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Pv(this,function(){_.PH(m.hostElement,"yt-refit-popups-action")})};
_.w.fillRestIfNotCollapsible=function(){var m=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!m||this.ytLazyListBehavior.fillRemainingListItems()};
_.w.computeViewAllHidden=function(m,G){return m||!G.viewAllEndpoint};
sP.prototype.fillRestIfNotCollapsible=sP.prototype.fillRestIfNotCollapsible;sP.prototype.initCollapsed=sP.prototype.initCollapsed;sP.prototype.onIronResize=sP.prototype.onIronResize;sP.prototype.persistentGuideChanged=sP.prototype.persistentGuideChanged;_.x([_.q(_.mH),_.S("design:type",Object)],sP.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],sP.prototype,"ytLazyListBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],sP.prototype,"ytNextContinuationBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],sP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.q(_.n4),_.S("design:type",Object)],sP.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],sP.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],sP.prototype,"collapsed",void 0);_.x([_.V(),_.S("design:type",Number)],sP.prototype,"initialCount",void 0);_.x([_.V({computed:"computeShowMoreButton(data.showMoreText)"}),_.S("design:type",Object)],sP.prototype,"showMoreButton",void 0);
_.x([_.V({computed:"computeIsCollapsible(data)"}),_.S("design:type",Object)],sP.prototype,"isCollapsible",void 0);_.x([_.UM("#items"),_.S("design:type",HTMLElement)],sP.prototype,"items",void 0);_.x([_.Mg("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sP.prototype,"persistentGuideChanged",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sP.prototype,"onIronResize",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sP.prototype,"initCollapsed",null);_.x([_.Mg("canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sP.prototype,"fillRestIfNotCollapsible",null);_.x([_.Ye({is:"ytd-grid-renderer",disableElementRegistration:!0})],sP);
_.y(sP,"ytd-grid-renderer",function(){if(oMR!==void 0)return oMR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oMR=m},{mode:2});var qe=function(){return _.d.apply(this,arguments)||this};
_.n(qe,_.d);
qe.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"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qe.prototype,"data",void 0);_.x([_.Ye({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],qe);
_.y(qe,"ytd-carousel-ad-renderer",function(){if(DiS!==void 0)return DiS;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return DiS=m},{mode:1});var Ce0;var EP=function(){return _.d.apply(this,arguments)||this};
_.n(EP,_.d);_.w=EP.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,EP.JSC$15831_CLICK_LOCATION_ID_MAP))};
_.w.onSitelinkTap=function(m){m.stopPropagation();var G,K,W=m==null?void 0:(G=m.model)==null?void 0:(K=G.item)==null?void 0:K.onTap;W&&this.ytSparklesClickLocationBehavior.handleClick(W,m,!1)};
_.w.onTap=function(m){var G=this.data&&this.data.content&&this.data.content.navigationEndpoint;G&&this.ytSparklesClickLocationBehavior.handleClick(G,m,!1)};
_.w.sendImpression=function(){if(this.data&&this.data.content)for(var m=_.g(this.data.content.impressionEndpoints||[]),G=m.next();!G.done;G=m.next()){G=_.g(G.value.loggingUrls||[]);for(var K=G.next();!K.done;K=G.next())K=K.value,K.baseUrl&&IR(K.baseUrl,K.attributionSrcMode)}};
EP.prototype.onTap=EP.prototype.onTap;EP.prototype.dataChanged=EP.prototype.dataChanged;EP.JSC$15831_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"]]);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],EP.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],EP.prototype,"data",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],EP.prototype,"dataChanged",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],EP.prototype,"onTap",null);_.x([_.Ye({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],EP);
_.y(EP,"ytd-promoted-sparkles-text-search-renderer",function(){if(Ce0!==void 0)return Ce0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ce0=m},{mode:1});var VzC;var Hj=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-mute-ad-action":"handleMuteAd"};return m};
_.n(Hj,_.d);_.w=Hj.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.configureRendererStamper=function(){return{"data.menu":{id:_.F("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]]"}}}}}};
_.w.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.w.computeHasAdBadge=function(m){return!(m==null||!m.adBadge)};
_.w.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",Hj.JSC$15840_DEFAULT_AD_BADGE_RENDERER),_.dF(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&V$(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,Hj.JSC$15840_CLICK_LOCATION_ID_MAP))};
_.w.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var m;(((m=this.data)==null?void 0:m.impressionCommands)||[]).forEach(function(G){G=_.g(G.loggingUrls||[]);for(var K=G.next();!K.done;K=G.next())K=K.value,K.baseUrl&&IR(K.baseUrl,K.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.w.onTap=function(m){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint,W;(G=(W=this.data)==null?void 0:W.thumbnailNavigationEndpoint)&&_.vp(_.ve(m),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(G,m,!1):K&&this.ytSparklesClickLocationBehavior.handleClick(K,m,!1)};
_.w.handleMuteAd=function(){this.collapsed=!0};
_.w.attached=function(){var m=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.detached=function(){_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
_.e_.Object.defineProperties(Hj.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var m;return!(((m=this.data)==null?void 0:m.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var m;return!(((m=this.data)==null?void 0:m.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.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}}});
Hj.prototype.dataChanged=Hj.prototype.dataChanged;
Hj.JSC$15840_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"]]);
Hj.JSC$15840_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Hj.prototype,"actionHandlerBehavior",void 0);
_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],Hj.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Hj.prototype,"collapsed",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],Hj.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],Hj.prototype,"biggerThumbsStyle",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.S("design:type",Boolean)],Hj.prototype,"fixAlignmentSmallScreens",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs_square")}}),
_.S("design:type",Boolean)],Hj.prototype,"useBiggerThumbsSquare",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.mediaHoverOverlay"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"hideHoverOverlay",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"webSearchLayout",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"webSearchLayoutLandscape",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"webSearchLayoutSquare",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"sparklesCtaNoBackground",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.actionButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"hideActionButton",null);_.x([_.V({computed:"computeButtonOverride(uiUpdate)"}),_.S("design:type",Object)],Hj.prototype,"buttonOverride",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.S("design:type",Boolean)],Hj.prototype,"hasNewAdBadge",void 0);_.x([_.E("data.promotedSparklesWebStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Hj.prototype,"useRoundedBadge",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Hj.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],Hj);
_.y(Hj,"ytd-promoted-sparkles-web-renderer",function(){if(VzC!==void 0)return VzC;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return VzC=m},{mode:1});var ZdK;var IX=function(){var m=_.d.apply(this,arguments)||this;m.isInlinePreviewTriggered=!1;m.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");return m};
_.n(IX,_.d);_.w=IX.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.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]]"}}}}}};
_.w.computeShowCta=function(m){return!(m==null||!m.ctaRenderer)};
_.w.onCtaClick=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.ctaRenderer)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.command;W&&this.ytComponentBehavior.resolveCommand(W)};
_.w.onWatchButtonClick=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.watchButtonRenderer)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.command;W&&this.ytComponentBehavior.resolveCommand(W)};
_.w.onTap=function(){};
_.w.dataChanged=function(){if(this.data){var m;_.F("enable_inline_muted_playback_on_web_search")&&((m=this.data)==null?0:m.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",IX.JSC$15844_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&V$(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",IX.JSC$15844_DEFAULT_CLICK_LOCATION_BEHAVIOR,IX.JSC$15844_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(m=this.thumbnail.getElementsByTagName("a"),m.length>0&&(m=m.namedItem("thumbnail"))&&m.removeAttribute("href"));var G;if(((G=this.data)==null?0:G.forceImpAutoplay)&&_.F("enable_force_imp_autoplay_on_desktop_search")){var K;(K=this.JSC$15845_inlinePreviewHoverListener)==null||FRd(K)}}};
_.w.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var m=_.g(this.data.impressionUrls),G=m.next();!G.done;G=m.next())G=G.value,r$6(G,had(G));this.data.impressionsFired=!0}};
_.w.maybeComputeHref=function(){return null};
_.w.computeIsShortDR=function(m){return!(m==null||!m.watchButtonRenderer)&&!(m==null||!m.ctaRenderer)&&!!this.enableShortDR};
_.w.computeIsNewUiOrShortDr=function(m){return!!this.enableUiUpdate||this.computeIsShortDR(m)};
_.w.computeIsNewUiAndNotShortDr=function(m){return!!this.enableUiUpdate&&!this.computeIsShortDR(m)};
_.w.computeHideAvatar=function(m){return!((m==null?0:m.channelThumbnail)&&this.computeIsNewUiOrShortDr(m))};
_.w.onClick=function(m){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;if(this.enableShortDR&&K&&(_.Q(K,_.QQ)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(K,m,!!_.Q(K,_.QQ)),m.stopPropagation();else if(K&&_.Q(K,_.QQ))this.ytSparklesClickLocationBehavior.handleClick(K,m,!0),m.stopPropagation();else if(K){var W,L;((W=this.data)==null?0:W.navigationEndpoint)&&((L=this.data)==null?0:L.adPlaybackContextParams)&&(G=this.data.navigationEndpoint,m=this.data.adPlaybackContextParams,
G.commandMetadata&&_.Q(G.commandMetadata,_.RQ)&&_.Q(G.commandMetadata,_.RQ).url&&(G=_.PO(_.Q(G.commandMetadata,_.RQ).url).adurl)&&_.pkP(G)&&_.nJ(_.XJ(G),{encoded_ad_playback_context:m}));this.ytComponentBehavior.resolveCommand(K)}};
_.w.computeButtonOverride=function(m){if(this.computeIsNewUiOrShortDr(m))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.w.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.w.onThumbnailContainerClick=function(m){this.onClick(m)};
_.w.computeThumbnailWidth=function(m,G){return m?G==="MASSIVE"?600:G==="BIG"?500:G==="MEDIUM"?450:420:360};
_.w.attached=function(){var m=this,G;_.F("enable_inline_muted_playback_on_web_search")&&((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.detached=function(){var m;_.F("enable_inline_muted_playback_on_web_search")&&((m=this.data)==null?0:m.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15845_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:lsl})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$15845_inlinePreviewHoverListener)==null||qa(m)};
IX.prototype.dataChanged=IX.prototype.dataChanged;IX.prototype.onTap=IX.prototype.onTap;IX.JSC$15844_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};IX.JSC$15844_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
IX.JSC$15844_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"}];_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],IX.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.UM("#main-container"),_.S("design:type",HTMLElement)],IX.prototype,"mainContainer",void 0);
_.x([_.V(),_.S("design:type",Object)],IX.prototype,"isInlinePreviewTriggered",void 0);_.x([_.V(),_.S("design:type",Object)],IX.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],IX.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_video_display_compact_button_group_for_desktop_search")}}),
_.S("design:type",Boolean)],IX.prototype,"enableShortDR",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_vac_ui_update_for_desktop_search")}}),
_.S("design:type",Boolean)],IX.prototype,"enableUiUpdate",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],IX.prototype,"biggerThumbsStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.S("design:type",Boolean)],IX.prototype,"showCta",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.S("design:type",Boolean)],IX.prototype,"isShortDr",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.S("design:type",Boolean)],IX.prototype,"isShortDrOrNewUi",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.S("design:type",Boolean)],IX.prototype,"isNewUiAndNotShortDr",void 0);_.x([_.V({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],IX.prototype,"buttonOverride",void 0);_.x([_.V({computed:"computeSecondaryButtonOverride(data)"}),_.S("design:type",Object)],IX.prototype,"secondaryButtonOverride",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],IX.prototype,"enableMonoStyle",void 0);
_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],IX.prototype,"thumbnail",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IX.prototype,"onTap",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IX.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],IX);
_.y(IX,"ytd-promoted-video-renderer",function(){if(ZdK!==void 0)return ZdK;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ZdK=m},{mode:1});var di0;var jL=function(){var m=_.d.apply(this,arguments)||this;m.useRoundedBadge=!0;m.sitelinkIds=[];return m};
_.n(jL,_.d);_.w=jL.prototype;
_.w.configureRendererStamper=function(){return{"data.menu":{id:_.F("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]]"}}}}}};
_.w.dataChanged=function(){var m;(m=this.data)!=null&&m.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,jL.JSC$15850_CLICK_LOCATION_ID_MAP)};
_.w.onTap=function(m){var G,K=(G=this.data)==null?void 0:G.navigationCommand;K&&!_.vp(_.ve(m),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(K,m,!1)};
_.w.onSitelinkTap=function(m){var G,K,W=m==null?void 0:(G=m.model)==null?void 0:(K=G.item)==null?void 0:K.onTap;W&&this.ytSparklesClickLocationBehavior.handleClick(W,m,!1)};
_.w.configureSitelinkClickTargets=function(){var m=this,G,K,W=(G=this.data)==null?void 0:(K=G.clickLocationTargets)==null?void 0:K.find(function(L){return L.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
W&&_.VL(this.hostElement).querySelectorAll(".sitelink").forEach(function(L){_.dF(L,"yt-simple-endpoint",!0);m.sitelinkIds.push(L.id);var A,O;(A=m.ytSparklesClickLocationBehavior)==null||(O=A.clickTargetMap)==null||O.set(L.id,W)})};
_.w.sendImpression=function(){var m,G,K=((m=this.data)==null?void 0:(G=m.impressionCommand)==null?void 0:G.loggingUrls)||[];m=_.g(K);for(G=m.next();!G.done;G=m.next())G=G.value,G.baseUrl&&IR(G.baseUrl,G.attributionSrcMode)};
_.w.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.e_.Object.defineProperties(jL.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
jL.prototype.onTap=jL.prototype.onTap;jL.prototype.dataChanged=jL.prototype.dataChanged;jL.JSC$15850_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"]]);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],jL.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jL.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jL.prototype,"showFavicon",null);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],jL.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],jL.prototype,"biggerThumbsStyle",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.S("design:type",Boolean)],jL.prototype,"enableThumbnailScalingFix",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jL.prototype,"dataChanged",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],jL.prototype,"onTap",null);_.x([_.Ye({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],jL);
_.y(jL,"ytd-text-image-no-button-layout-renderer",function(){if(di0!==void 0)return di0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return di0=m},{mode:2});var PeB;var km=function(){var m=_.d.apply(this,arguments)||this;m.isInlinePlaybackState=!1;m.uiUpdate=_.F("web_modern_buttons");m.hideCta=_.F("hide_cta_for_home_web_video_ads");m.noBottomMargin=!1;m.animateInTimeStamp=_.U8("hide_cta_for_home_web_video_ads_animate_in_time");m.animateInCta=!1;m.isHovered=!1;m.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");m.player=null;m.JSC$15857_playerEvents=new Map;m.JSC$15857_preventProgressSaveTimer=null;m.delayedCtaJobId=null;return m};
_.n(km,_.d);_.w=km.prototype;_.w.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]]"}}}}}};
_.w.attached=function(){this.JSC$15857_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15857_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.F("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.w.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15857_playerEvents)};
_.w.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",km.JSC$15856_DEFAULT_CLICK_LOCATION_BEHAVIOR,km.JSC$15856_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.w.hoverChanged=function(){var m=this;this.delayedCtaJobId&&(_.Fu.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.F("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.mn(_.Fu,function(){m.buttonContainer.classList.add("show-delayed-buttons")},_.U8("delayed_cta_on_web_delay_milliseconds")))};
_.w.setPlayer=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return(G=_.PH(m.hostElement,"yt-get-inline-preview-player-action"))&&G[0]?K.yield(G[0].getPlayerPromise(),3):K.jumpTo(0);m.player=K.yieldResult;m.ytPlayerListenerBehavior.listenToPlayerEvents(m.player,m.JSC$15857_playerEvents);_.ey(K)})};
_.w.onPlaybackStart=function(){var m=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15857_preventProgressSaveTimer=_.jA(_.Fu,function(){m.JSC$15857_preventProgressSaveTimer=null},1E4))};
_.w.onVideoProgress=function(m){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&m>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.w.resetPreventProgressSaveTimer=function(){_.Fu.cancelJob(this.JSC$15857_preventProgressSaveTimer);this.JSC$15857_preventProgressSaveTimer=null};
_.w.getSimpleString=function(m){return _.bw(m)};
_.w.onClick=function(m){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint,W;G=(W=this.data)==null?void 0:W.channelEndpoint;var L,A;((A=_.Q((L=this.data)==null?void 0:L.adCtaButton,_.uu))==null?0:A.command)&&_.vp(_.ve(m),this.hostElement,["call-to-action"])||(G&&_.vp(_.ve(m),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(G,m,!1):!_.vp(_.ve(m),this.hostElement,
["secondary-button"])&&K&&(_.F("enable_short_dr_for_desktop_launchable")?(W=!!_.Q(K,_.QQ),this.isInlinePlaybackState&&W&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(K,m,W)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(K,m,!0))))}};
_.w.updateWatchEndpointStartTime=function(){var m,G;this.player&&((m=this.data)==null?0:m.inlinePlaybackEndpoint)&&((G=this.data)==null?0:G.navigationEndpoint)&&!this.JSC$15857_preventProgressSaveTimer&&(m=Math.floor(this.player.getCurrentTime()),_.Q(this.data.navigationEndpoint,_.QQ).startTimeSeconds=m,_.Q(this.data.inlinePlaybackEndpoint,_.QQ).startTimeSeconds=m)};
_.w.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.w.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.e_.Object.defineProperties(km.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.F("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.watchButton)&&!((G=this.data)==null||!G.adCtaButton)}}});
km.prototype.hoverChanged=km.prototype.hoverChanged;km.prototype.dataChanged=km.prototype.dataChanged;
km.JSC$15856_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"]]);
km.JSC$15856_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"}];
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],km.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],km.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],km.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],km.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],km.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"isInlinePlaybackState",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],km.prototype,"miniMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"uiUpdate",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"hideCta",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"noBottomMargin",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"animateInCta",void 0);_.x([_.V({computed:"computeButtonOverride(uiUpdate)"}),_.S("design:type",Object)],km.prototype,"buttonOverride",void 0);
_.x([_.V({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.S("design:type",Object)],km.prototype,"secondaryButtonOverride",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"isHovered",void 0);_.x([_.UM("#button-container"),_.S("design:type",HTMLElement)],km.prototype,"buttonContainer",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],km.prototype,"typographyBump",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("typographyBump"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],km.prototype,"typographyBumpV2",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],km.prototype,"enableMonoStyle",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],km.prototype,"dataChanged",null);
_.x([_.Sb("isHovered"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],km.prototype,"hoverChanged",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],km.prototype,"isButtonGroup",null);_.x([_.Ye({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],km);
_.y(km,"ytd-ad-inline-playback-meta-block",function(){if(PeB!==void 0)return PeB;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PeB=m},{mode:2});var yRP;var C4=function(){var m=_.d.apply(this,arguments)||this;m.noBottomMargin=!1;m.isInlinePreviewTriggered=!1;m.JSC$15862_activeViewMeasurementDataResolver=_.Qo();return m};
_.n(C4,_.d);_.w=C4.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){var m=this;this.updateInlinePreviewHoverListeners();this.JSC$15862_activeViewMeasurementDataResolver.promise.then(function(G){V$(m.activeView,G)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.detached=function(){this.clearInlinePreviewHoverListeners();_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15862_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.JSC$15862_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lsl})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$15862_inlinePreviewHoverListener)==null||qa(m)};
_.w.onDataChanged=function(){var m;((m=this.data)==null?0:m.activeView)&&this.JSC$15862_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",C4.JSC$15861_DEFAULT_CLICK_LOCATION_BEHAVIOR,C4.JSC$15861_CLICK_LOCATION_ID_MAP);this.thumbnail&&(m=this.thumbnail.getElementsByTagName("a"),m.length>0&&(m=m.namedItem("thumbnail"))&&m.removeAttribute("href"));var G;if((G=this.data)==
null?0:G.forceImpAutoplay){var K;(K=this.JSC$15862_inlinePreviewHoverListener)==null||FRd(K)}};
_.w.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.w.onThumbnailContainerClick=function(m){if(this.data&&this.data.navigationEndpoint){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(K,m,!!_.Q(K,_.QQ));m.stopPropagation()}};
_.w.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.w.impressionLog=function(){var m=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,K,W=(K=_.Q((G=this.data)==null?void 0:G.onImpression,_.xu))==null?void 0:K.commands;W&&(W.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;m.ytComponentBehavior.resolveCommand(L)}),this.data.impressionsFired=!0)}};
_.e_.Object.defineProperties(C4.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$15862_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
C4.prototype.onTypographyBumpChanged=C4.prototype.onTypographyBumpChanged;C4.prototype.onDataChanged=C4.prototype.onDataChanged;C4.JSC$15861_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);C4.JSC$15861_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"}];
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],C4.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],C4.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],C4.prototype,"ytdLockupBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],C4.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],C4.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],C4.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],C4.prototype,"noBottomMargin",void 0);_.x([_.V(),_.S("design:type",Object)],C4.prototype,"isInlinePreviewTriggered",void 0);
_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],C4.prototype,"miniMode",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],C4.prototype,"typographyBump",void 0);_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],C4.prototype,"thumbnail",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],C4.prototype,"JSC$15862_dismissibleMedia",void 0);
_.x([_.UM("ytd-ad-inline-playback-meta-block"),_.S("design:type",HTMLElement)],C4.prototype,"adInlinePlaybackMetaBlock",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C4.prototype,"onDataChanged",null);_.x([_.Mg("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C4.prototype,"onTypographyBumpChanged",null);
_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],C4.prototype,"isHovered",null);_.x([_.Ye({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],C4);
_.y(C4,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(yRP!==void 0)return yRP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yRP=m},{mode:1});var e74;var Vs=function(){var m=_.d.apply(this,arguments)||this;m.isInlinePreviewTriggered=!1;m.JSC$15865_activeViewMeasurementDataResolver=_.Qo();return m};
_.n(Vs,_.d);_.w=Vs.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.attached=function(){var m=this;this.updateInlinePreviewHoverListeners();this.JSC$15865_activeViewMeasurementDataResolver.promise.then(function(G){V$(m.activeView,G)})};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15865_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.JSC$15865_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:lsl})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$15865_inlinePreviewHoverListener)==null||qa(m)};
_.w.onDataChanged=function(){var m;((m=this.data)==null?0:m.activeView)&&this.JSC$15865_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Vs.JSC$15864_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vs.JSC$15864_CLICK_LOCATION_ID_MAP);this.thumbnail&&(m=this.thumbnail.getElementsByTagName("a"),m.length>0&&(m=m.namedItem("thumbnail"))&&m.removeAttribute("href"))};
_.w.onThumbnailContainerClick=function(m){if(this.data&&this.data.navigationEndpoint){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(K,m,!0);m.stopPropagation()}};
_.w.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.w.impressionLog=function(){var m=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var G,K,W=(K=_.Q((G=this.data)==null?void 0:G.onImpression,_.xu))==null?void 0:K.commands;W&&(W.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.xS().resolve(_.S1).resolveCommand(L,{form:{element:m.hostElement}})}),this.data.impressionsFired=!0)}};
_.e_.Object.defineProperties(Vs.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$15865_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Vs.prototype.onDataChanged=Vs.prototype.onDataChanged;Vs.JSC$15864_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Vs.JSC$15864_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"}];_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Vs.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],Vs.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Vs.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],Vs.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Vs.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Vs.prototype,"isInlinePreviewTriggered",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],Vs.prototype,"miniMode",void 0);_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],Vs.prototype,"thumbnail",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],Vs.prototype,"JSC$15865_dismissibleMedia",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vs.prototype,"onDataChanged",null);_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Vs.prototype,"isHovered",null);_.x([_.Ye({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Vs);
_.y(Vs,"ytd-video-display-full-buttoned-renderer",function(){if(e74!==void 0)return e74;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e74=m},{mode:1});var En=function(m,G,K,W){W=W===void 0?!1:W;_.mv.call(this,m);this.adsClientErrorMessage=K;this.aggressivelySample=W;this.args=[];G&&this.args.push(G)};
_.n(En,_.mv);var sn=function(m,G,K,W){W=W===void 0?!1:W;_.mv.call(this,m);this.adsClientErrorMessage=K;this.aggressivelySample=W;this.args=[];G&&this.args.push(G)};
_.n(sn,_.mv);var fmS=function(m){_.Lt.call(this);var G=this;this.initializationFunction=m;this.instance=null;this.addOnDisposeCallback(function(){_.I$(G.instance);G.instance=null})};
_.n(fmS,_.Lt);fmS.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.F9("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var d5d=function(){var m=new Map;[].forEach(function(G){m.set(G.JSC$31538_getType(),G)});
this.getters=m};new Promise(function(){});var j8G=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"]]),HjV=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"}]]),xiB=function(m){this.experimentApiProvider=m;m=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=m<.1};var ZB=function(m,G,K,W){_.Lt.call(this);this.adsControlFlowEventListeners=G;this.adEventLogger=K;this.experimentApiProvider=W;this.adsControlFlowManagerHelper=m(this,this,this,this,this);_.UR(this,this.adsControlFlowManagerHelper);m=_.g(G);for(G=m.next();!G.done;G=m.next())_.UR(this,G.value)};
_.n(ZB,_.Lt);var XAB=function(m,G,K,W){dr(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",G,K,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,W);m=_.g(m.adsControlFlowEventListeners);for(W=m.next();!W.done;W=m.next())XAB(W.value,G,K)};
_.w=ZB.prototype;_.w.onOpportunityProcessedExternallyManaged=function(m,G,K,W){dr(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",m,K,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,W)};
_.w.onSlotReceivedExternallyManaged=function(m,G){Pj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",m,G)};
_.w.onSlotEntered=function(m){if(ys(this.adsControlFlowManagerHelper,m)!=null){Pj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",m);this.adsControlFlowManagerHelper.onSlotEntered(m);for(var G=_.g(this.adsControlFlowEventListeners),K=G.next();!K.done;K=G.next())K.value.onSlotEntered(m);if(ys(this.adsControlFlowManagerHelper,m)!=null&&ys(this.adsControlFlowManagerHelper,m).isOccupyingSlotType()&&eL(this.adsControlFlowManagerHelper,m)&&!SqB(this.adsControlFlowManagerHelper,m)){var W;f4(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",m,(W=eL(this.adsControlFlowManagerHelper,m))!=null?W:void 0);m=ys(this.adsControlFlowManagerHelper,m);m.slotLifecycleStage!=="entered"&&xm(m.slot,m.slotLifecycleStage,"enterLayoutForSlot");m.slotLifecycleStage="rendering";m.registeredLayoutRenderingAdapter.startRendering(m.layout)}}};
_.w.onSlotExited=function(m){if(ys(this.adsControlFlowManagerHelper,m)!=null){Pj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",m);this.adsControlFlowManagerHelper.onSlotExited(m);for(var G=_.g(this.adsControlFlowEventListeners),K=G.next();!K.done;K=G.next())K.value.onSlotExited(m);ys(this.adsControlFlowManagerHelper,m)!=null&&ys(this.adsControlFlowManagerHelper,m).markedForUnscheduleAfterOutboundAdapterRequests&&R70(this,m)}};
_.w.onLayoutReceivedExternallyManaged=function(m,G,K){m.managerLayer!=="core"&&f4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",m,G,K)};
var Uio=function(m,G,K){if(ys(m.adsControlFlowManagerHelper,G)!=null){f4(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,K);m=_.g(m.adsControlFlowEventListeners);for(var W=m.next();!W.done;W=m.next())Uio(W.value,G,K)}};
ZB.prototype.onLayoutExited=function(m,G,K){if(ys(this.adsControlFlowManagerHelper,m)!=null){f4(this.adEventLogger,Io9(K),m,G);this.adsControlFlowManagerHelper.onLayoutExited(m,G);for(var W=_.g(this.adsControlFlowEventListeners),L=W.next();!L.done;L=W.next())L.value.onLayoutExited(m,G,K);(K=eL(this.adsControlFlowManagerHelper,m))&&G.layoutId===K.layoutId&&z70(this,m)}};
ZB.prototype.disposeInternal=function(){var m=lm0(this.adsControlFlowManagerHelper);m=_.g(m);for(var G=m.next();!G.done;G=m.next())R70(this,G.value);_.Lt.prototype.disposeInternal.call(this)};
var R70=function(m,G){if(ys(m.adsControlFlowManagerHelper,G)!=null)if(ys(m.adsControlFlowManagerHelper,G).JSC$31568_isSlotExitRequested()||ys(m.adsControlFlowManagerHelper,G).JSC$31568_isLayoutExitRequested())ys(m.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(ys(m.adsControlFlowManagerHelper,G).isOccupyingSlotType())ys(m.adsControlFlowManagerHelper,G).markedForUnscheduleAfterOutboundAdapterRequests=!0,z70(m,G);else if(ys(m.adsControlFlowManagerHelper,G).JSC$31568_isSlotFillRequested())ys(m.adsControlFlowManagerHelper,
G).markedForUnscheduleAfterOutboundAdapterRequests=!0,ys(m.adsControlFlowManagerHelper,G)!=null&&(Pj(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",G),G=ys(m.adsControlFlowManagerHelper,G),G.fulfillmentLifecycleStage="fill_cancel_requested",G.registeredFulfillmentAdapter.cancelSlotFilling());else{var K=eL(m.adsControlFlowManagerHelper,G),W;m.experimentApiProvider.get();(W=_.F("h5_enable_layout_unscheduling_events"))&&(K?BPC(m,G,K):_.F9(Error("Nh"),G,K,void 0,!1));Pj(m.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",G);var L=ys(m.adsControlFlowManagerHelper,G),A=G.slotEntryTrigger,O=L.registeredSlotEntryTriggerAdapters.get(A.triggerId);O&&(O.unregisterTrigger(A),L.registeredSlotEntryTriggerAdapters.delete(A.triggerId));A=_.g(G.slotFulfillmentTriggers);for(O=A.next();!O.done;O=A.next()){O=O.value;var c=L.registeredFulfillmentTriggerAdapters.get(O.triggerId);c&&(c.unregisterTrigger(O),L.registeredFulfillmentTriggerAdapters.delete(O.triggerId))}A=_.g(G.slotExpirationTriggers);
for(O=A.next();!O.done;O=A.next())if(O=O.value,c=L.registeredExpirationTriggerAdapters.get(O.triggerId))c.unregisterTrigger(O),L.registeredExpirationTriggerAdapters.delete(O.triggerId);L.hasLayout()&&(A=L.layout,Xp(L,A.layoutExitNormalTriggers),Xp(L,A.layoutExitSkipTriggers),Xp(L,A.layoutExitMuteTriggers),Xp(L,A.layoutExitUserInputSubmittedTriggers),Xp(L,A.layoutExitUserCancelledTriggers));L.registeredFulfillmentAdapter=void 0;L.registeredSlotAdapter!=null&&(L.registeredSlotAdapter.release(),L.registeredSlotAdapter=
void 0);L.registeredLayoutRenderingAdapter!=null&&(L.registeredLayoutRenderingAdapter.release(),L.registeredLayoutRenderingAdapter=void 0);L=m.adsControlFlowManagerHelper;ys(L,G)&&(L=Mzi(L,G.slotType+"_"+G.slotPhysicalPosition))&&L.delete(G.slotId);Pj(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);m=_.g(m.adsControlFlowEventListeners);for(L=m.next();!L.done;L=m.next())L=L.value,L.onSlotUnscheduled(G),K&&!W&&BPC(L,G,K)}},BPC=function(m,G,K){f4(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
G,K);
f4(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",G,K);m=_.g(m.adsControlFlowEventListeners);for(var W=m.next();!W.done;W=m.next())W=W.value,K&&BPC(W,G,K)},z70=function(m,G){if(ys(m.adsControlFlowManagerHelper,G)!=null&&ys(m.adsControlFlowManagerHelper,G).isOccupyingSlotType()){var K=eL(m.adsControlFlowManagerHelper,G);
if(K&&SqB(m.adsControlFlowManagerHelper,G)){if(ys(m.adsControlFlowManagerHelper,G)!=null){var W=m.adEventLogger,L;var A=((L=HjV.get("abandoned"))==null?void 0:L.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f4(W,A,G,K);m=ys(m.adsControlFlowManagerHelper,G);m.slotLifecycleStage!=="rendering"&&xm(m.slot,m.slotLifecycleStage,"exitLayout");m.slotLifecycleStage="rendering_stop_requested";m.registeredLayoutRenderingAdapter.stopRendering(K,"abandoned")}}else{Pj(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
G);try{W=ys(m.adsControlFlowManagerHelper,G);if(!W)throw new sn("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");W.slotLifecycleStage!=="enter_requested"&&W.slotLifecycleStage!=="entered"&&W.slotLifecycleStage!=="rendering"&&xm(W.slot,W.slotLifecycleStage,"exitSlot");W.slotLifecycleStage="exit_requested";if(W.registeredSlotAdapter===void 0)throw W.slotLifecycleStage="scheduled",new sn("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
W.registeredSlotAdapter.exit()}catch(O){O instanceof sn&&O.adsClientErrorMessage?(TP0(m.adEventLogger,O.adsClientErrorMessage,G),_.F9(O,G,void 0,void 0,O.aggressivelySample)):(TP0(m.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",G),_.F9(O,G))}}}};var SL=function(m,G,K,W,L,A){_.Lt.call(this);this.registry=m;this.experimentApiProvider=A;this.slotMap=new Map};
_.n(SL,_.Lt);var Mzi=function(m,G){return(m=m.slotMap.get(G))?m:new Map},ys=function(m,G){return Mzi(m,G.slotType+"_"+G.slotPhysicalPosition).get(G.slotId)},lm0=function(m){var G=[];
m.slotMap.forEach(function(K){K=_.g(K.values());for(var W=K.next();!W.done;W=K.next())G.push(W.value.slot)});
return G};
SL.prototype.onSlotEntered=function(m){m=ys(this,m);m.slotLifecycleStage!=="enter_requested"&&xm(m.slot,m.slotLifecycleStage,"onSlotEntered");m.slotLifecycleStage="entered"};
var SqB=function(m,G){m=ys(m,G);return m.hasLayout()&&m.isRendering()},eL=function(m,G){(m=ys(m,G))?m.hasLayout()&&!m.layout&&_.F9("Unexpected empty layout",G):_.F9("Unexpected undefined slotState",G);
return(m==null?void 0:m.layout)||null};
SL.prototype.onSlotExited=function(m){m=ys(this,m);m.slotLifecycleStage!=="exit_requested"&&xm(m.slot,m.slotLifecycleStage,"onSlotExited");m.slotLifecycleStage="scheduled"};
SL.prototype.onLayoutExited=function(m,G){m=ys(this,m);m.isPrimaryLayout(G)&&(m.slotLifecycleStage!=="rendering_stop_requested"&&xm(m.slot,m.slotLifecycleStage,"onLayoutExited"),m.slotLifecycleStage="entered")};
var Xp=function(m,G){G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=m.registeredLayoutExitTriggerAdapters.get(K.triggerId);W&&(W.unregisterTrigger(K),m.registeredLayoutExitTriggerAdapters.delete(K.triggerId))}},xm=function(m,G,K){_.F9("Slot stage was "+G+" when calling method "+K,m)};var ihF=function(m){_.Lt.call(this);this.deps=m;this.JSC$15918_adsControlFlowManager=mYo(this)};
_.n(ihF,_.Lt);var mYo=function(m){var G=new ZB(function(K,W,L,A){return new SL(m.deps.registry,K,W,L,A,m.deps.experimentApiProvider)},new Set(ZjP(m.deps.registry).concat(m.deps.listeners)),m.deps.adEventLogger,m.deps.experimentApiProvider);
_.UR(m,G);return G};var FQ9=function(){};var G2P=function(m,G){_.Lt.call(this);this.experimentApiProvider=m;this.eventLoggingSettingsProvider=G;this.eventCount=0;this.premiumAdSeenEventLogger=Q7G()()};
_.n(G2P,_.Lt);G2P.prototype.logEvent=function(m){dr(this,m)};
var Pj=function(m,G,K,W){dr(m,G,void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,void 0,W)},f4=function(m,G,K,W,L){dr(m,G,void 0,void 0,void 0,K,W?W:void 0,void 0,void 0,K.adSlotLoggingData,W?W.adLayoutLoggingData:void 0,void 0,L);
K=_.xS().resolve(_.fn(uO))==null?void 0:hu();G=K==null?void 0:K.adsSeenHotConfig;K=K==null?void 0:K.adsHotConfig;(G==null?0:G.logOnAdsSeen)&&(K==null?0:K.webEnablePremiumAdsSeenLogging)&&KVX(m,W?W:void 0,L)},TP0=function(m,G,K){dr(m,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,K,void 0,void 0,void 0,K.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:G})},dr=function(m,G,K,W,L,A,O,c,u,h,J,N,D){D=D===void 0?0:D;
WVK(m.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+G,"slot:",A,"layout:",O,"ping:",c,"Opportunity:",{opportunityType:K,associatedSlotId:W,slotsFromOpportunity:L,triggerBundle:u,adSlotLoggingData:h,adLayoutLoggingData:J});try{var t=function(){m.experimentApiProvider.get();if(G!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){G||_.F9("Empty PACF event type",A,O);var a=m.eventLoggingSettingsProvider.get();var v;(v=a.alwaysIncludeDebugData)||(a.experimentApiProvider.get(),v=
!1);a=v;v={eventType:G,eventOrder:++m.eventCount};var I={};A&&(I.slotData=CzJ(a,A));if(O){var Z={type:O.layoutType,controlFlowManagerLayer:j8G.get(O.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(Z.debugData={layoutId:O.layoutId});I.layoutData=Z}c&&(I.pingData={pingDispatchStatus:c.dispatchStatus,serializedAdPingMetadata:c.ping.serializedAdPingMetadata,pingIndex:c.index});u&&(I.triggerData=kAd(u.trigger,u.category));K&&(I.opportunityData=VVP(a,K,W,L));v.adClientData=I;h&&(v.serializedSlotAdServingData=
h.serializedSlotAdServingDataEntry);J&&(v.serializedAdServingData=J.serializedAdServingDataEntry);N&&(v.errorInfo=N);_.Fx("adsClientStateChange",{adsClientEvent:v})}};
D&&D>0?_.rC(_.AA(),function(){return t()},D):t()}catch(a){WVK(m.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.rC(_.AA(),function(){_.F9(a instanceof Error?a:String(a),A,O,{pacf_message:"exception during pacf logging"})})}},KVX=function(m,G,K){if(G){var W=G.adLayoutLoggingData;
_.rC(_.AA(),function(){m.premiumAdSeenEventLogger!=null&&W&&_.Fx("adsSeenClientLogging",{serializedAdServingDataEntry:W.serializedAdServingDataEntry})},K!=null?K:0)}};var LVR=function(m,G){G2P.call(this,m,G)};
_.n(LVR,G2P);var AqP=function(){},WVK=function(m,G){return _.F(G)};var gBK=function(){var m=new wPP;this.JSC$15943_adsControlFlowManager=(new ihF(m)).JSC$15918_adsControlFlowManager},wPP=function(){_.Lt.call(this);
var m=this;this.experimentApiProvider=new fmS(function(){return new AqP});
var G=new fmS(function(){return new xiB(m.experimentApiProvider)});
this.adEventLogger=new LVR(this.experimentApiProvider,G);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.n(wPP,_.Lt);var OhK=function(){},cqS,RX=function(){cqS||(cqS=new OhK);
return cqS},UP=function(m){if(!m.JSC$15954_externallyManagedSlotAdapterCallback){var G=(new gBK).JSC$15943_adsControlFlowManager;
m.JSC$15954_externallyManagedSlotAdapterCallback=G}return m.JSC$15954_externallyManagedSlotAdapterCallback},YCo=function(m,G,K){var W=G.opportunityType,L=Error("Oh");
if(W!==void 0){var A=UP(m);XAB(A,W,void 0,K)}else _.F9(L,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});A=[];if(G.adSlotAndLayoutMetadata!==void 0){G=_.g(G.adSlotAndLayoutMetadata);for(var O=G.next();!O.done;O=G.next()){var c=O.value;if(O=c.adSlotMetadata)if(A.push(O),m.onSlotReceivedExternallyManaged(O,K),c.adLayoutMetadata){c=_.g(c.adLayoutMetadata);for(var u=c.next();!u.done;u=c.next())m.onLayoutReceivedExternallyManaged(O,u.value,K)}else K>0&&_.F9("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else K>0&&_.F9("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else K>0&&_.F9("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+W,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(W!==void 0)m.onOpportunityProcessedExternallyManaged(W,A,void 0,K);else _.F9(L,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
OhK.prototype.onSlotReceivedExternallyManaged=function(m,G){m=qB(m);if(m instanceof sn)_.F9(m,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else UP(this).onSlotReceivedExternallyManaged(m,G)};
OhK.prototype.onLayoutReceivedExternallyManaged=function(m,G,K){m=qB(m);G=Pzv(G);if(m instanceof sn)_.F9(m,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(G instanceof En)_.F9(G,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else UP(this).onLayoutReceivedExternallyManaged(m,G,K)};
OhK.prototype.onOpportunityProcessedExternallyManaged=function(m,G,K,W){var L=[];G=_.g(G);for(var A=G.next();!A.done;A=G.next())A=qB(A.value),A instanceof sn?_.F9(A,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):L.push(A);UP(this).onOpportunityProcessedExternallyManaged(m,L,K,W)};
var rq2=function(m,G){G=qB(G);if(G instanceof sn)_.F9(G,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var K=UP(m);Pj(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",G);K=_.g(K.adsControlFlowEventListeners);for(var W=K.next();!W.done;W=K.next())W=ys(W.value,G),W.slotLifecycleStage!=="not_scheduled"&&xm(W.slot,W.slotLifecycleStage,"onSlotScheduled"),W.slotLifecycleStage="scheduled";m=UP(m);Pj(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",G);m=_.g(m.adsControlFlowEventListeners);
for(K=m.next();!K.done;K=m.next())K.value.onSlotEntered(G)}},utk=function(m,G){G=qB(G);
if(G instanceof sn)_.F9(G,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var K=UP(m);Pj(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",G);K=_.g(K.adsControlFlowEventListeners);for(var W=K.next();!W.done;W=K.next())W.value.onSlotExited(G);m=UP(m);Pj(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",G);m=_.g(m.adsControlFlowEventListeners);for(K=m.next();!K.done;K=m.next())K.value.onSlotUnscheduled(G)}},hW4=function(m,G,K){G=qB(G);
K=Pzv(K);if(G instanceof sn)_.F9(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(K instanceof En)_.F9(K,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var W=UP(m);f4(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",G,K);W=_.g(W.adsControlFlowEventListeners);for(var L=W.next();!L.done;L=W.next())L.value.onLayoutScheduled(G,K);m=UP(m);f4(m.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",G,K);m=_.g(m.adsControlFlowEventListeners);
for(W=m.next();!W.done;W=m.next())Uio(W.value,G,K)}},zy=function(m,G,K){G=qB(G);
K=Pzv(K);if(G instanceof sn)_.F9(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(K instanceof En)_.F9(K,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var W=UP(m);f4(W.adEventLogger,Io9("normal"),G,K);W=_.g(W.adsControlFlowEventListeners);for(var L=W.next();!L.done;L=W.next())L.value.onLayoutExited(G,K,"normal");m=UP(m);m=_.g(m.adsControlFlowEventListeners);for(W=m.next();!W.done;W=m.next())BPC(W.value,G,K)}};var pPX=_.P(function(m){var G=m.data,K=m.listenToTapEvent,W=function(){};
return _.r("ad-button-hover-overlay-view-model",{"on:click":_.dn(function(L){if(_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")){var A,O=(A=G().interaction)==null?void 0:A.onTap;O&&_.Zw(L.currentTarget,"yt-navigate",{endpoint:_.c8(O)})}}),
class:function(){var L;return((L=G().interaction)==null?0:L.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(L){var A,O=(A=G().interaction)==null?void 0:A.onFirstVisible;L&&O&&_.h$(O)},
showOption:_.I_}),_.h3(function(){return G().interaction},void 0,function(){return!_.F("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(K==null?void 0:K())}))},function(){return _.F("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.r(_.z$,{data:function(){return G().button}},{adButtonViewModel:function(L){return _.r(_.Cf,{data:L.data,
customCommandResolver:W})}}):_.r(_.z$,{data:function(){return G().button}},{adButtonViewModel:_.Cf})}())},"uc");var HR;_.sh(_.P(function(m){var G=m.data;m=_.eN({visibilityCallback:function(c,u){if(c){var h;(c=(h=G().interaction)==null?void 0:h.onFirstVisible)&&_.h$(c);var J;if(h=(J=G().adLayoutData)==null?void 0:J.activeViewData)IT(u,h),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&jF(u)})}else _.F("stop_av_measurement_on_detach")&&jF(u)},
showOption:_.I_,hideOption:jS});var K=_.h3(function(){return G().interaction},void 0,function(){return!0}),W=_.g(_.g_(!1,void 0,"VNDDT")),L=W.next().value,A=W.next().value;
W=_.dn(function(){A(!0)});
var O=_.dn(function(){A(!1)});
return _.r("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.aC(m,RkJ,K),"on:mouseenter":W,"on:mouseleave":O},_.r("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.eA({"max-width":function(){return _.F("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.r("div",{class:function(){var c;
a:{var u;switch((c=_.Q(G().thumbnailImage,MC4))==null?void 0:(u=c.imageProperties)==null?void 0:u.renderingAspect){case "RENDERING_ASPECT_SQUARE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}c=void 0}return c}},_.r(_.z$,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(c){return _.r(_.kU,
{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})),_.r("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.r(_.p,{cond:function(){var c,u,h;
return(c=_.Q(G().thumbnailImage,MC4))==null?void 0:(u=c.imageProperties)==null?void 0:(h=u.overlayIcon)==null?void 0:h.iconImage},
then:function(c){return _.r(_.oC,{data:c,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.r("div",{class:function(){return L()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.r(_.z$,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(c){return _.r(pPX,
{data:c.data,
listenToTapEvent:!0})}}))),_.r("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.r(_.z$,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.r(ff,{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.F("enable_top_landscape_image_experiment_dom_id_web")})}})))},"vc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;m=_.eN({visibilityCallback:function(c,u){if(c){var h;(c=(h=G().interaction)==null?void 0:h.onFirstVisible)&&_.h$(c);var J;if(h=(J=G().adLayoutData)==null?void 0:J.activeViewData)IT(u,h),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&jF(u)})}else _.F("stop_av_measurement_on_detach")&&jF(u)},
showOption:_.I_,hideOption:jS});var K=_.RC(_.OT),W=_.h3(function(){return G().interaction}),L={},A={},O={};
return _.r("square-image-layout-view-model",{class:_.VO("ytwSquareImageLayoutViewModelHost",(L.ytwSquareImageLayoutViewModelHostColumn=K,L)),el:_.aC(m,U5J,W)},_.r("div",{class:_.VO("ytwSquareImageLayoutViewModelHostImage",(A.ytwSquareImageLayoutViewModelHostColumnImage=K,A))},function(){return _.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(c){return _.r(_.kU,{data:c.data,
isGridViewEnabled:K,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.r("div",{class:_.VO("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(O.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=K,O))},_.r(_.z$,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:ff}),function(){return _.r(_.z$,{data:function(){return G().adButton}},{adButtonViewModel:function(c){var u={};
return _.r(_.Cf,{data:c.data,className:_.VO((u.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,u.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=K,u))})}})}()))},"wc"),"square-image-layout-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.noBottomMargin;var W=m.typographyBump;m=_.eN({visibilityCallback:function(N,D){if(N){var t;(N=(t=G().interaction)==null?void 0:t.onFirstVisible)&&_.h$(N);var a;if(t=(a=G().adLayoutData)==null?void 0:a.activeViewData)IT(D,t),_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&jF(D)})}else _.F("stop_av_measurement_on_detach")&&jF(D)},
showOption:_.I_,hideOption:jS});var L=_.h3(function(){return G().interaction},void 0,function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")}),A=function(){return G().interaction};
A!==void 0&&A!==null||_.V3(Error("Ph"));var O=function(){var N,D,t;return(N=_.Q(G().thumbnailImage,MC4))==null?void 0:(D=N.background)==null?void 0:(t=D.backgroundImageSource)==null?void 0:t.imageSources};
A=_.g(_.g_(!1,void 0,"NFjwje"));var c=A.next().value,u=A.next().value;A=_.dn(function(){u(!0)});
var h=_.dn(function(){u(!1)}),J=function(){return c()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.r("top-landscape-image-layout-view-model",{class:function(){var N;return((N=G().interaction)==null?0:N.onTap)&&_.F("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.aC(m,zko,L),"on:mouseenter":A,"on:mouseleave":h},_.r("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.r(_.p,{cond:function(){return O()&&O().length>0},
then:function(){return _.r("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.eA({top:"0","background-image":function(){return"url("+String(O()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.r(_.p,{cond:function(){return!!G().adButtonHoverOverlay},
then:function(){return _.r("div",{class:J},_.r(_.z$,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:pPX}))}}),_.r("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.r(_.z$,{data:function(){return G().thumbnailImage}},{adImageViewModel:function(N){return _.r(_.kU,{data:N.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.F("enable_web_home_top_landscape_image_layout_level_click")})}})),_.r("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.r(_.oC,{data:{sources:[{clientResource:{imageName:_.F("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.r("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.r(_.z$,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(N){return _.r(ff,{data:N.data,
noBottomMargin:function(){return K==null?void 0:K()},
listenToTapEvent:function(){return _.F("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return W==null?void 0:W()}})}})))},"xc"),"top-landscape-image-layout-view-model",{props:{data:_.Dd,
noBottomMargin:_.Dd,typographyBump:_.Dd}});var Jq2=_.P(function(m){var G=m.data,K=_.eN({visibilityCallback:function(L){var A,O=(A=G().interaction)==null?void 0:A.onFirstVisible;L&&O&&_.h$(O)},
showOption:_.I_});m=_.h3(function(){return G().interaction},m.customCommandResolver);
var W={};return _.r("ad-text-image-view-model",{class:_.VO("ytwAdTextImageViewModelHost",(W.ytwAdTextImageViewModelHostDarkBackground=function(){return G().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},W)),
el:_.aC(K,m),"aria-label":function(){var L,A;return(L=G().interaction)==null?void 0:(A=L.accessibility)==null?void 0:A.label}},_.r("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.r(_.Nm,{text:function(){return G().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.r(_.p,{cond:function(){return G().overlayIcon},
then:function(L){return _.r("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.r(_.oC,{data:L,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"yc");var N4R=_.P(function(m){var G=m.data;return _.r("feed-ad-sitelink-view-model",{class:function(){var K;return((K=G().interaction)==null?0:K.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.aC(_.h3(function(){return G().interaction},m.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var K,W;return(K=G().interaction)==null?void 0:(W=K.accessibility)==null?void 0:W.label},
role:"link",tabindex:0},_.r(_.Nm,{text:function(){return G().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"zc");var DYK=_.P(function(m){var G=m.data;m={};return _.r("feed-ad-sitelinks-carousel-view-model",{el:_.aC(_.eN({visibilityCallback:function(K){var W,L=(W=G().interaction)==null?void 0:W.onFirstVisible;K&&L&&_.h$(L)},
showOption:_.I_})),class:_.VO("ytwFeedAdSitelinksCarouselViewModelHost",(m.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return G().style==="FEED_AD_SITELINKS_STYLE_NONE"},m))},_.r(_.z$,{data:function(){return G().sitelinks}},{feedAdSitelinkViewModel:N4R}))},"Ac");_.sh(_.P(function(m){var G=m.data;m=_.eN({visibilityCallback:function(O,c){if(O){var u;(O=(u=G().interaction)==null?void 0:u.onFirstVisible)&&_.h$(O);var h;(u=(h=G().adLayoutData)==null?void 0:h.activeViewData)&&IT(c,u)}},
showOption:_.I_});var K=_.g(_.g_(!1,void 0,"BzPhl")),W=K.next().value,L=K.next().value;K=_.dn(function(){L(!0)});
var A=_.dn(function(){L(!1)});
return _.r("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.aC(m),"on:mouseenter":K,"on:mouseleave":A},_.r("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.r("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.r(_.z$,{data:function(){return G().textImage}},{adTextImageViewModel:Jq2})),_.r("div",{class:function(){return W()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.r(_.z$,{data:function(){return G().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(O){return _.r(pPX,{data:O.data,
listenToTapEvent:!0})}}))),_.r("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.r(_.z$,{data:function(){return G().feedAdMetadata}},{feedAdMetadataViewModel:function(O){return _.r(ff,{data:O.data,
listenToTapEvent:!0})}}),_.r(_.z$,{data:function(){return G().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:DYK})))},"Bc"),"text-image-no-button-layout-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.typographyBump;return _.r("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.aC(_.eN({visibilityCallback:function(W,L){if(W){var A;(W=(A=G().interaction)==null?void 0:A.onFirstVisible)&&_.h$(W);var O;(A=(O=G().adLayoutData)==null?void 0:O.activeViewData)&&IT(L,A)}},
showOption:_.I_,hideOption:jS}))},_.r("div",null,_.r(_.z$,{data:function(){return G().videoLockup}},{lockupViewModel:function(W){return _.r(_.xU,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:K})}})))},"Cc"),"video-display-button-group-layout-view-model",{props:{data:_.Dd,
noBottomMargin:_.Dd,typographyBump:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.className;var W=m.typographyBump;return _.r("video-display-compact-button-group-layout-view-model",{el:_.aC(_.eN({visibilityCallback:function(L,A){if(L){var O;(L=(O=G().interaction)==null?void 0:O.onFirstVisible)&&_.h$(L);var c;(O=(c=G().adLayoutData)==null?void 0:c.activeViewData)&&IT(A,O)}},
showOption:_.I_})),class:_.VO("videoDisplayCompactButtonGroupLayoutViewModelHost",K)},_.r(_.z$,{data:function(){return G().videoLockup}},{lockupViewModel:function(L){return _.r(_.xU,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:W})}}))},"Dc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Dd,
className:_.Dd,typographyBump:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.className;var W=m.typographyBump;return _.r("video-display-compact-buttoned-layout-view-model",{el:_.aC(_.eN({visibilityCallback:function(L,A){if(L){var O;(L=(O=G().interaction)==null?void 0:O.onFirstVisible)&&_.h$(L);var c;(O=(c=G().adLayoutData)==null?void 0:c.activeViewData)&&IT(A,O)}},
showOption:_.I_})),class:_.VO("videoDisplayCompactButtonedLayoutViewModelHost",K)},_.r(_.z$,{data:function(){return G().videoLockup}},{lockupViewModel:function(L){return _.r(_.xU,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:W})}}))},"Ec"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Dd,
className:_.Dd,typographyBump:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.className;var W=m.typographyBump;var L=function(){return G().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},A=_.RC(_.OT);
m=_.eN({visibilityCallback:function(h,J){if(h){var N=G();h=N.adLayoutData;var D;(N=(D=N.interaction)==null?void 0:D.onFirstVisible)&&_.h$(N);(D=h==null?void 0:h.activeViewData)&&IT(J,D)}},
showOption:_.I_});var O=_.pT(function(){return{containerType:L()&&A()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST",responsiveSize:L()?"RESPONSIVE_SIZE_COMPACT":void 0}},void 0,"Ikxfhe"),c=_.pT(function(){return L()&&A()?"":L()?"168px":"50%"},void 0,"Om6kNe"),u=_.pT(function(){return L()&&A()?9999:void 0},void 0,"S71lKd");
return _.r("video-display-compact-layout-view-model",{el:_.aC(m),class:_.VO("videoDisplayCompactLayoutViewModelHost",K)},_.r(_.z$,{data:function(){return G().videoLockup}},{lockupViewModel:function(h){return _.r(_.xU,{data:h.data,
containerLayoutConfig:O,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:c,thumbnailTargetWidth:u,typographyBump:W})}}))},"Fc"),"video-display-compact-layout-view-model",{props:{data:_.Dd,
className:_.Dd,typographyBump:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=m.typographyBump;return _.r("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.aC(_.eN({visibilityCallback:function(W,L){if(W){var A;(W=(A=G().interaction)==null?void 0:A.onFirstVisible)&&_.h$(W);var O;(A=(O=G().adLayoutData)==null?void 0:O.activeViewData)&&IT(L,A)}},
showOption:_.I_,hideOption:jS}))},_.r("div",null,_.r(_.z$,{data:function(){return G().videoLockup}},{lockupViewModel:function(W){return _.r(_.xU,{data:W.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:K})}})))},"Gc"),"video-display-full-layout-view-model",{props:{data:_.Dd,
noBottomMargin:_.Dd,typographyBump:_.Dd}});var tQi=_.P(function(m){var G=m.data;var K=m.customCommandResolver;var W=m.className;var L=m.buttonClassName;var A=m.animationEntityKey;var O=m.expansive;return _.r("carousel-button-view-model",{class:_.VO("ytwCarouselButtonViewModelHost",W)},_.r(_.z$,{data:function(){return G().carousel}},{carouselAdCardCollectionViewModel:function(c){return _.r(KYS,{data:c.data,
customCommandResolver:K,expansive:O})}}),_.r(_.z$,{data:function(){return G().button}},{adButtonViewModel:function(c){var u=c.data;
return _.r(_.Cf,{data:function(){return(O==null?0:O())?Object.assign({},u(),{style:"AD_BUTTON_STYLE_TONAL"}):u()},
className:L,customCommandResolver:K,animationEntityKey:A})}}))},"Hc");_.FV0=_.P(function(m){var G=m.data;m=m.className;var K=_.Q3("pivot-button-view-model");_.bX(function(){var W;((W=G())==null?0:W.backgroundColor)&&K.value.setAttribute("data-background-color",String(G().backgroundColor))});
return _.r("pivot-button-view-model",{el:K,class:_.VO("ytwPivotButtonViewModelHost",m)},_.r(_.qm,{command:function(){var W=G();W=W.onClickCommand?_.c8(W.onClickCommand):W.contentDescription?_.Ev(W.contentDescription):void 0;return W},
ariaLabel:function(){return G().contentDescription}},_.r(_.p,{cond:function(){return G().thumbnail},
then:function(W){return _.r(_.oC,{data:W,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.r(_.p,{cond:function(){return G().icon},
then:function(W){return _.r(_.fN,{icon:function(){return W().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Ic");_.QrR=_.P(function(m){var G=m.data;var K=m.buttonShapeOverrideables;m={};return _.r("reel-action-bar-view-model",{class:_.VO("ytwReelActionBarViewModelHost",(m.ytwReelActionBarViewModelHostDecluttered=function(){return _.F("enable_shorts_declutter_ui")},m))},_.r(_.z$,{data:function(){return G().buttonViewModels}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
buttonOverrides:K})},
likeButtonViewModel:function(W){return _.r(_.uC,{data:W.data,buttonShapeOverrideables:K})},
dislikeButtonViewModel:function(W){return _.r(_.r0,{data:W.data,buttonShapeOverrideables:K})},
toggleButtonViewModel:function(W){return _.r(_.Gx,{data:W.data,buttonShapeOverrides:K})}}))},"Jc");var aH0=_.P(function(m){var G=m.avatar;var K=m.headline;var W=m.badge;var L=m.description;var A=m.expansive;m={};return _.r("yt-ad-metadata-shape",{class:_.VO("ytAdMetadataShapeHost",(m.ytAdMetadataShapeHostLarge=A,m.ytAdMetadataShapeHostDecluttered=function(){return _.F("enable_desktop_small_title_on_immersive_shorts")},m))},_.r("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.r(_.p,{cond:G,
then:function(O){return _.r(_.DsX,{data:function(){return(A==null?0:A())?Object.assign({},O(),{size:"AD_AVATAR_SIZE_M"}):O()}})}}),_.r("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.r(_.Nm,{text:K,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.r(_.p,{cond:W,then:function(O){return _.r(_.yA,{data:function(){return(A==null?0:A())?Object.assign({},O(),{style:"AD_BADGE_STYLE_STARK"}):O()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.r("h2",{class:"ytAdMetadataShapeHostDescription"},_.r(_.Nm,{text:L,
linkInheritColor:!0,isHeadline:function(){return A==null?void 0:A()}})))},"Kc");var oBK=_.P(function(m){var G=m.data;var K=m.onShow;var W=m.expansive;m=_.h3(function(){return G().interaction});
_.bX(function(){var A,O=(A=G().animatedRenderingConfig)==null?void 0:A.delayedSecondsToVisible;if(O){var c=setTimeout(K,O*1E3);_.sZ(function(){clearTimeout(c)})}});
var L={};return _.r("reels-ad-card-buttoned-view-model",{class:_.VO(function(){var A;return((A=G().interaction)==null?0:A.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(L.ytwReelsAdCardButtonedViewModelHostExpansive=W,L)),
el:_.aC(m)},_.r(aH0,{avatar:function(){return _.Q(G().avatar,zlK)},
headline:function(){return G().headline},
badge:function(){return _.Q(G().adBadge,lRF)},
description:function(){return G().description},
expansive:W}),_.r(_.z$,{data:function(){return G().ctaButton}},{adButtonViewModel:function(A){var O=A.data;
return _.r(_.Cf,{data:function(){return(W==null?0:W())?Object.assign({},O(),{style:"AD_BUTTON_STYLE_FILLED"}):O()}})}}))},"Lc");var nBF=_.P(function(m){var G=m.data;m=m.expansive;var K=_.F("web_ad_metadata_clickable")?_.h3(function(){return G().interaction},void 0,function(){return _.F("web_ad_metadata_clickable")}):void 0,W={};
W=_.KQ("ytwReelsAdMetadataViewModelHost",(W.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.F("web_ad_metadata_clickable"),W));return _.r("reels-ad-metadata-view-model",{class:W,el:_.aC(K)},_.r(aH0,{avatar:function(){return _.Q(G().avatar,zlK)},
headline:function(){return G().headline},
badge:function(){return _.Q(G().adBadge,lRF)},
description:function(){return G().description},
expansive:m}))},"Mc");var bhP=_.P(function(){return _.r("div",{class:"ytwVideoFilteringOverlayHost",style:_.eA({"background-color":function(){return _.ce(_.U8("exp_shorts_ads_mvp_filtering_hex_value_web"))}})})},"Nc");var vBk={iconPosition:"icon-with-label",size:"L"},$YX=_.P(function(m){var G=m.data;var K=m.overlayDensity;var W=m.extractOverlay;var L=m.extractActionBar;m=_.Q3("reels-player-overlay-layout-view-model");var A=_.sQ(K,0),O=function(){var t;return(t=G().reelsAdCardButtonedEntityKey)!=null?t:""},c=function(){return O()+"/ad_button"},u=_.S5(EpG,O),h=function(){var t,a;
return(a=(t=u())==null?void 0:t.value)!=null?a:!1},J=_.RC(lof),N=function(){var t,a=Object.assign({},vBk,(J()||!((t=L==null?void 0:L())!=null&&t))&&{style:"overlay-dark"});
return _.F("mweb_shorts_rhs_no_background_protection")?Object.assign({},a,{type:"text",style:"overlay"}):a};
K={};var D={};return _.r("reels-player-overlay-layout-view-model",{class:_.VO("ytwReelsPlayerOverlayLayoutViewModelHost",(K.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!G().extension},K.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},K.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return A()===1&&!(W==null?0:W())},K.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var t;
return(t=W==null?void 0:W())!=null?t:!1},K.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var t;
return(t=L==null?void 0:L())!=null?t:!1},K)),
"overlay-density":function(){return String(A())},
el:m},_.r("div",{class:_.VO("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(D.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},D))},_.r("div",{"aria-hidden":function(){return h()},
class:_.VO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.eA({"transition-duration":function(){return msJ(G())}})},_.r(_.z$,{data:function(){return G().adMetadata}},{reelsAdMetadataViewModel:function(t){return _.r(nBF,{data:t.data,
expansive:function(){return A()===1}})}}),_.r(_.p,{cond:function(){return G().extension},
then:function(t){return _.r("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.r(_.z$,{data:t},{adButtonViewModel:function(a){return _.r(_.Cf,{data:a.data,animationEntityKey:c,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(a){return _.r(tQi,{data:a.data,animationEntityKey:c,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return A()===1}})}}))}})),_.r("div",{"aria-hidden":function(){return!h()},
class:_.VO("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return h()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.eA({"transition-duration":function(){return msJ(G())}})},_.r(_.z$,{data:function(){return G().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(t){return _.r(oBK,{data:t.data,
onShow:function(){_.$e(_.Bp("booleanEntity",O(),{key:O(),value:!0}))},
expansive:function(){var a;return(a=W==null?void 0:W())!=null?a:!1}})}}))),_.r("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.r(_.z$,{data:function(){return G().actions}},{reelActionBarViewModel:function(t){return _.r(_.QrR,{data:t.data,
buttonShapeOverrideables:N})}}),_.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:function(t){return _.r(_.kP,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},{type:"tonal"},N())}})}}),_.r(_.z$,{data:function(){return G().pivotButton}},{pivotButtonViewModel:function(t){return _.r(_.FV0,{data:t.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})),_.r(_.p,{cond:function(){return _.F("exp_shorts_ads_mvp_filtering_web")},
then:function(){return _.r(_.BUd,{root:"ytd-reel-video-renderer[is-active] #video-filtering-overlay-container"},function(){return _.r(bhP,null)})}}))},"Oc");_.sh($YX,"reels-player-overlay-layout-view-model",{props:{data:_.Dd,overlayDensity:_.Dd,extractOverlay:_.Dd,extractActionBar:_.Dd}});var lc=function(){var m=_.d.apply(this,arguments)||this;m.noBottomMargin=!1;m.overlayDensity=0;m.extractOverlay=!1;m.extractActionBar=!1;return m};
_.n(lc,_.d);_.w=lc.prototype;
_.w.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.F("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.w.ready=function(){var m=this;hfM(function(){m.isAttached&&vR(m.JSC$15993_storedAdSlotMetadata,m.JSC$15993_storedAdLayoutMetadata,m.adSlotMetadata,m.adLayoutMetadata)&&zy(RX(),m.JSC$15993_storedAdSlotMetadata,m.JSC$15993_storedAdLayoutMetadata)})};
_.w.attached=function(){vR(this.JSC$15993_storedAdSlotMetadata,this.JSC$15993_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&hW4(RX(),this.JSC$15993_storedAdSlotMetadata,this.JSC$15993_storedAdLayoutMetadata)};
_.w.detached=function(){vR(this.JSC$15993_storedAdSlotMetadata,this.JSC$15993_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zy(RX(),this.JSC$15993_storedAdSlotMetadata,this.JSC$15993_storedAdLayoutMetadata)};
_.w.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.w.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15993_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15993_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15993_storedAdLayoutMetadata!==void 0&&this.JSC$15993_storedAdSlotMetadata!==void 0&&zy(RX(),this.JSC$15993_storedAdSlotMetadata,this.JSC$15993_storedAdLayoutMetadata),hW4(RX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15993_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15993_storedAdSlotMetadata=this.adSlotMetadata)};
_.e_.Object.defineProperties(lc.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.adLayoutMetadata}}});
lc.prototype.onAdMetadataChanged=lc.prototype.onAdMetadataChanged;lc.prototype.onTypographyBumpChanged=lc.prototype.onTypographyBumpChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lc.prototype,"rendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],lc.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],lc.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],lc.prototype,"noBottomMargin",void 0);_.x([_.V(),_.S("design:type",Object)],lc.prototype,"overlayDensity",void 0);_.x([_.V(),_.S("design:type",Object)],lc.prototype,"extractOverlay",void 0);_.x([_.V(),_.S("design:type",Object)],lc.prototype,"extractActionBar",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],lc.prototype,"typographyBump",void 0);
_.x([_.E("data.adLayoutMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],lc.prototype,"adLayoutMetadata",null);_.x([_.V(),_.S("design:type",Object)],lc.prototype,"adSlotMetadata",void 0);_.x([_.UM("ytd-video-display-full-buttoned-and-button-group-renderer"),_.S("design:type",HTMLElement)],lc.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.x([_.Sb("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lc.prototype,"onTypographyBumpChanged",null);_.x([_.Sb("adLayoutMetadata","adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lc.prototype,"onAdMetadataChanged",null);_.x([_.Ye({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],lc);
_.y(lc,"ytd-in-feed-ad-layout-renderer",function(){if(NPk!==void 0)return NPk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return NPk=m},
{mode:2});var srk;var qCK;_.sh(_.yA,"ad-badge-view-model",{props:{data:_.Dd,hasDot:_.Dd,customCommandResolver:_.nN,adRenderingContextType:_.nN,usedInMasthead:_.nN}});_.sh(_.Cf,"ad-button-view-model",{props:{data:_.Dd,customCommandResolver:_.nN,className:_.nN,delayedClassName:_.nN,animationEntityKey:_.nN,isCompactWidth:_.nN,isContentWidth:_.nN}});var Bj=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return m};
_.n(Bj,_.d);_.w=Bj.prototype;_.w.computeHasLiveDescription=function(m){return!(m==null||!m.liveDescription)};
_.w.computeHasByline=function(m){return!(m==null||!m.byline)};
_.w.computeUsesAdButtonViewModel=function(m){return!!_.Q(m==null?void 0:m.cta,BiK)};
_.w.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.w.onYtToggleButton=function(m){var G,K=(G=this.data)==null?void 0:G.videoReminderEntityKey;K&&this.ytdReduxBehavior.dispatch(_.Bp("upcomingEventReminderStateEntity",K,{key:K,state:m.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.w.attached=function(){this.updateChannelBanner()};
_.w.dataChanged=function(){this.updateChannelBanner()};
_.w.videoReminderStateChanged=function(){var m;this.videoReminderState&&_.Q((m=this.data)==null?void 0:m.cta,_.h6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.w.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var m=_.qy(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);m&&(m.startsWith("//")&&(m="https:"+m),this.hostElement.classList.add("channel-banner"),_.eb(this.hostElement,{"--ytvmh-channel-banner":"url("+m+")"}))}else _.F("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.w.onPlayerReady=function(){this.onIronResize()};
_.w.maybeFlushDebouncer=function(){_.F("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(m){var G;m=(G=m.getElementsByTagName("yt-attributed-string"))==null?void 0:G[0];GJd(m==null?void 0:m.polymerController)})};
_.w.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var m=_.VL(this.hostElement).querySelector("#live-description"),G;m&&((G=this.data)==null?0:G.shortLiveDescription)&&m.clientWidth<m.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Bj.prototype.onIronResize=Bj.prototype.onIronResize;Bj.prototype.videoReminderStateChanged=Bj.prototype.videoReminderStateChanged;Bj.prototype.dataChanged=Bj.prototype.dataChanged;Bj.prototype.onYtToggleButton=Bj.prototype.onYtToggleButton;_.x([_.q(_.mH),_.S("design:type",Object)],Bj.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Bj.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bj.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.videoReminderEntityKey"],selector:urf}),_.S("design:type",Object)],Bj.prototype,"videoReminderState",void 0);
_.x([_.V({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.S("design:type",Boolean)],Bj.prototype,"rounded",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.S("design:type",Boolean)],Bj.prototype,"hasLiveDescription",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.S("design:type",Boolean)],Bj.prototype,"hasByline",void 0);
_.x([_.V({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.S("design:type",String)],Bj.prototype,"adRenderingContextType",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],Bj.prototype,"isMasthead",void 0);_.x([_.V({computed:"computeUsesAdButtonViewModel(data)"}),_.S("design:type",Boolean)],Bj.prototype,"usesAdButtonViewModel",void 0);
_.x([_.V({reflectToAttribute:!0,value:_.F("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.S("design:type",Boolean)],Bj.prototype,"resizableAdBannerSafariFix",void 0);_.x([_.zh("yt-formatted-string"),_.S("design:type",Array)],Bj.prototype,"formattedStrings",void 0);_.x([_.UM("#cta-button"),_.S("design:type",HTMLElement)],Bj.prototype,"ctaButton",void 0);
_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bj.prototype,"onYtToggleButton",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bj.prototype,"dataChanged",null);_.x([_.Sb("videoReminderState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bj.prototype,"videoReminderStateChanged",null);
_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bj.prototype,"onIronResize",null);_.x([_.Ye({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Bj);
_.y(Bj,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(qCK!==void 0)return qCK;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qCK=m},{mode:1});var EBF;var Me=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};m.isLocked=!1;return m};
_.n(Me,_.d);_.w=Me.prototype;_.w.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.w.onExpandedChanged=function(){this.expanded&&_.PH(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.w.onMouseOver=function(){this.maybeExpand()};
_.w.onTap=function(){this.maybeExpand()};
_.w.onExpandableTileExpanding=function(m){m!==this&&(this.expanded=!1)};
_.w.onExpandableTileLockAndCollapse=function(m){this.isLocked=!0;m!==this&&(this.expanded=!1)};
_.w.onExpandableTileUnlock=function(){this.isLocked=!1};
Me.prototype.onTap=Me.prototype.onTap;Me.prototype.onMouseOver=Me.prototype.onMouseOver;Me.prototype.onExpandedChanged=Me.prototype.onExpandedChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Me.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Me.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Me.prototype,"expanded",void 0);_.x([_.Mg("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Me.prototype,"onExpandedChanged",null);_.x([_.XC("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Me.prototype,"onMouseOver",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Me.prototype,"onTap",null);
_.x([_.Ye({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Me);
_.y(Me,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(EBF!==void 0)return EBF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return EBF=m},{mode:1});var Hho;var Ty=function(){var m=_.d.apply(this,arguments)||this;m.buttonOverrides={style:"overlay"};m.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");m.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};m.playbackFinished=!1;m.JSC$16007_playerManager=null;m.JSC$16007_mastheadCounter=new l_2;return m};
_.n(Ty,_.d);_.w=Ty.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$16007_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$16007_playerManager=new zX)};
_.w.ready=function(){var m=this;this.JSC$16007_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var G=_.VL(this.hostElement).querySelector("#player");this.useYtdPlayer?G.style.display="none":(this.ytdPlayer.style.display="none",pyl(this.JSC$16007_playerManager,G,function(){m.onPlaybackEnded()}),_.VL(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var K;
((K=m.data)==null?0:K.navigationEndpoint)&&_.Zw(m.hostElement,"yt-navigate",{endpoint:m.data.navigationEndpoint})}))};
_.w.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$16007_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.w.attached=function(){var m=this;_.Dh(function(){m.maybePlayVideo()})};
_.w.maybePlayVideo=function(){var m=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$16007_playerManager.playVideo(),this.getPlayerPromise().then(function(){m.JSC$16007_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.w.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16007_playerManager.stopVideo()};
_.w.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var m,G={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((m=this.data.playbackStartMs)!=null?m:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(G);this.setupYtdPlayer()}else NVP(this.JSC$16007_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(J7G(this.JSC$16007_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.w.getPlayerPromise=function(){return this.JSC$16007_playerManager.getPlayerPromise()};
_.w.onYtToggleButton=function(m){this.useYtdPlayer?this.toggleMute(m.detail.toggled):m.detail.toggled?this.JSC$16007_playerManager.mute():this.JSC$16007_playerManager.unMute()};
_.w.onYtNavigate=function(m){var G=PFP(m.detail.endpoint),K=y5s(this.data.clickthroughReportingData);G&&K&&(m.detail.endpoint.watchEndpoint?m.detail.tempData=K:_.nJ(G,K,30))};
_.w.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.w.onExpandedChanged=function(){this.expanded?(_.PH(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.w.onMouseOver=function(){this.maybeExpand()};
_.w.onTap=function(){this.maybeExpand()};
_.w.onExpandableTileExpanding=function(m){m!==this&&(this.stopVideo(),this.expanded=!1)};
_.w.onExpandableTileLockAndCollapse=function(m){m!==this&&(this.isLocked=!0,this.expanded=!1)};
_.w.onExpandableTileUnlock=function(){this.isLocked=!1};
_.w.lockAndCollapseExpandableTiles=function(){_.dU(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.w.unlockExpandableTiles=function(){_.dU(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.w.setupYtdPlayer=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.ytdPlayer.getPlayerPromise(),2);G=K.yieldResult;G.addEventListener("onStateChange",function(W){m.onPlayerStateChange(W)});
G.addEventListener("onCueRangeExit",function(W){m.onCueRangeExit(W)});
_.ey(K)})};
_.w.onPlayerStateChange=function(m){if(m===1&&(m=this.ytdPlayer.getPlayer())){var G=m.getCurrentTime(),K,W,L=G+((W=(K=this.data)==null?void 0:K.playbackDurationMs)!=null?W:0)/1E3;m.addCueRange("playback",G,L);this.JSC$16007_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.w.onCueRangeExit=function(m){m==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.w.toggleMute=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.ytdPlayer.getPlayerPromise(),2);K=W.yieldResult;m?K.mute():K.unMute();_.ey(W)})};
Ty.prototype.onTap=Ty.prototype.onTap;Ty.prototype.onMouseOver=Ty.prototype.onMouseOver;Ty.prototype.onExpandedChanged=Ty.prototype.onExpandedChanged;Ty.prototype.onYtNavigate=Ty.prototype.onYtNavigate;Ty.prototype.onYtToggleButton=Ty.prototype.onYtToggleButton;Ty.prototype.dataChanged=Ty.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ty.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ty.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ty.prototype,"expanded",void 0);_.x([_.V(),_.S("design:type",Object)],Ty.prototype,"buttonOverrides",void 0);
_.x([_.V(),_.S("design:type",Object)],Ty.prototype,"useYtdPlayer",void 0);_.x([_.UM("#ytd-player"),_.S("design:type",Object)],Ty.prototype,"ytdPlayer",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ty.prototype,"dataChanged",null);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ty.prototype,"onYtToggleButton",null);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ty.prototype,"onYtNavigate",null);_.x([_.Mg("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ty.prototype,"onExpandedChanged",null);_.x([_.XC("mouseover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ty.prototype,"onMouseOver",null);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ty.prototype,"onTap",null);_.x([_.Ye({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Ty);
_.y(Ty,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(Hho!==void 0)return Hho;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Hho=m},{mode:1});var IHi;var mt=function(){return _.d.apply(this,arguments)||this};
_.n(mt,_.d);mt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mt.prototype.onShow=function(){var m=_.VL(this.hostElement).querySelector("#live-description"),G;m&&((G=this.data)==null?0:G.shortLiveDescription)&&m.clientWidth<m.scrollWidth&&this.hostElement.classList.add("short-live-description")};
mt.prototype.onYtToggleButton=function(m){var G,K=(G=this.data)==null?void 0:G.videoReminderEntityKey;K&&this.ytdReduxBehavior.dispatch(_.Bp("upcomingEventReminderStateEntity",K,{key:K,state:m.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
mt.prototype.videoReminderStateChanged=function(){var m;this.videoReminderState&&_.Q((m=this.data)==null?void 0:m.cta,_.h6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
mt.prototype.videoReminderStateChanged=mt.prototype.videoReminderStateChanged;mt.prototype.onYtToggleButton=mt.prototype.onYtToggleButton;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],mt.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mt.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.videoReminderEntityKey"],selector:urf}),_.S("design:type",Object)],mt.prototype,"videoReminderState",void 0);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],mt.prototype,"onYtToggleButton",null);_.x([_.Sb("videoReminderState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mt.prototype,"videoReminderStateChanged",null);
_.x([_.Ye({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],mt);
_.y(mt,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(IHi!==void 0)return IHi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IHi=m},{mode:2});var jrk;var iF=function(){var m=_.d.apply(this,arguments)||this;m.useYtdPlayer=_.F("use_ytd_player_for_desktop_masthead");m.buttonOverrides={style:"overlay"};m.JSC$16015_playerManager=null;m.JSC$16015_mastheadCounter=new l_2;m.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return m};
_.n(iF,_.d);_.w=iF.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$16015_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$16015_playerManager=new zX)};
_.w.ready=function(){var m=this;this.JSC$16015_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var G;(G=this.embeddedPlayer)==null||G.remove()}else{var K;(K=this.ytdPlayer)==null||K.remove();pyl(this.JSC$16015_playerManager,this.embeddedPlayer,function(){m.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){m.data&&m.data.navigationEndpoint&&_.Zw(m.hostElement,"yt-navigate",{endpoint:m.data.navigationEndpoint})})}};
_.w.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$16015_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.w.dataChanged=function(){var m=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var G=!this.data.disableAutoPlayback,K,W={autoplay:G,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.hostElement.classList.add(G?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(W);this.setupYtdPlayer()}else NVP(this.JSC$16015_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(J7G(this.JSC$16015_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$16015_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.dU(m.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");m.JSC$16015_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.w.getPlayerPromise=function(){return this.JSC$16015_playerManager.getPlayerPromise()};
_.w.onYtToggleButton=function(m){this.useYtdPlayer?this.toggleMute(m.detail.toggled):m.detail.toggled?this.JSC$16015_playerManager.mute():this.JSC$16015_playerManager.unMute()};
_.w.onYtNavigate=function(m){var G=PFP(m.detail.endpoint),K=y5s(this.data.clickthroughReportingData);G&&K&&(m.detail.endpoint.watchEndpoint?m.detail.tempData=K:_.nJ(G,K,30))};
_.w.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$16015_playerManager.stopVideo()};
_.w.setupYtdPlayer=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.ytdPlayer.getPlayerPromise(),2);G=K.yieldResult;G.addEventListener("onStateChange",function(W){m.onPlayerStateChange(W)});
G.addEventListener("onCueRangeExit",function(W){m.onCueRangeExit(W)});
_.ey(K)})};
_.w.onPlayerStateChange=function(m){if(m===1&&(m=this.ytdPlayer.getPlayer())){var G=m.getCurrentTime(),K,W,L=G+((W=(K=this.data)==null?void 0:K.playbackDurationMs)!=null?W:0)/1E3;m.addCueRange("playback",G,L);_.dU(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$16015_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.w.onCueRangeExit=function(m){m==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.w.toggleMute=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.ytdPlayer.getPlayerPromise(),2);K=W.yieldResult;m?K.mute():K.unMute();_.ey(W)})};
_.e_.Object.defineProperties(iF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var m,G;if(!((m=this.data)==null?0:(G=m.accessibilityData)==null?0:G.label))return"Ad primary link";var K,W;return _.zq("AD_TITLE",{title:(K=this.data)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label})}}});
iF.prototype.onYtMastheadHidden=iF.prototype.onYtMastheadHidden;iF.prototype.onYtNavigate=iF.prototype.onYtNavigate;iF.prototype.onYtToggleButton=iF.prototype.onYtToggleButton;iF.prototype.dataChanged=iF.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],iF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iF.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],iF.prototype,"useYtdPlayer",void 0);_.x([_.UM("ytd-toggle-button-renderer"),_.S("design:type",Object)],iF.prototype,"muteButton",void 0);_.x([_.V(),_.S("design:type",Object)],iF.prototype,"buttonOverrides",void 0);
_.x([_.E("data.accessibilityData.label"),_.S("design:type",String),_.S("design:paramtypes",[])],iF.prototype,"titleAriaLabel",null);_.x([_.UM("#replay-button"),_.S("design:type",Object)],iF.prototype,"replayButton",void 0);_.x([_.UM("#player-container"),_.S("design:type",Object)],iF.prototype,"playerContainer",void 0);_.x([_.UM("#player"),_.S("design:type",Object)],iF.prototype,"embeddedPlayer",void 0);_.x([_.UM("#ytd-player"),_.S("design:type",Object)],iF.prototype,"ytdPlayer",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iF.prototype,"dataChanged",null);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],iF.prototype,"onYtToggleButton",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],iF.prototype,"onYtNavigate",null);
_.x([_.XC("yt-masthead-hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iF.prototype,"onYtMastheadHidden",null);_.x([_.Ye({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],iF);
_.y(iF,"ytd-video-masthead-ad-primary-video-renderer",function(){if(jrk!==void 0)return jrk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jrk=m},{mode:2});var k2o;var GQ=function(){var m=_.d.apply(this,arguments)||this;m.collapsed=!1;m.impressionResolver=_.Qo();m.JSC$16019_activeViewMeasurementDataResolver=_.Qo();m.actionMap={"yt-mute-ad-action":"handleMuteAd"};return m};
_.n(GQ,_.d);_.w=GQ.prototype;_.w.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"}}}};
_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.ready=function(){var m=this;_.VL(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){m.expandAd()});
this.hostElement.addEventListener("yt-action",function(G){if(G.detail.actionName==="yt-service-request"){var K=G.detail.args[1];K.videoMastheadAdMuteCommand&&(m.collapseAd(K.videoMastheadAdMuteCommand.encryptedMastheadId),G.stopPropagation())}})};
_.w.attached=function(){var m=this;_.Dh(function(){m.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(G){if(!m.collapsed){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,IR(K.baseUrl,K.attributionSrcMode);m.data.impressionCommand=void 0}});
this.JSC$16019_activeViewMeasurementDataResolver.promise.then(function(G){V$(m.activeView,G)});
_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.dataChanged=function(){var m;((m=this.data.impressionCommand)==null?0:m.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var G;((G=this.data)==null?0:G.activeView)&&this.JSC$16019_activeViewMeasurementDataResolver.resolve(this.data.activeView);(m=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(m.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.w.computeWidescreen=function(m){var G;return!!(m&&((G=_.Q(m,xzK))==null?0:G.isWidescreen))};
_.w.computeExpandable=function(m){return!!(m&&m.length>0)};
_.w.onIronResize=function(){if(this.expandable){var m=_.VL(this.hostElement).querySelector("#expandable-tile-container :first-child");m&&!m.expanded&&(m.expanded=!0)}};
_.w.handleMuteAd=function(){this.collapseAd(null)};
_.w.restoreCollapsedState=function(m){this.collapsed=_.M$().get("HIDDEN_MASTHEAD_ID")===m};
_.w.collapseAd=function(m){if(m){var G=_.M$();G.set("HIDDEN_MASTHEAD_ID",m);G.save()}(m=_.VL(this.hostElement).querySelector("#video"))&&_.Zw(m,"yt-masthead-hidden");this.collapsed=!0};
_.w.expandAd=function(){var m=_.M$();m.set("HIDDEN_MASTHEAD_ID",!1);m.save();location.reload()};
_.w.detached=function(){_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
GQ.prototype.onIronResize=GQ.prototype.onIronResize;GQ.prototype.dataChanged=GQ.prototype.dataChanged;_.x([_.q(_.mH),_.S("design:type",Object)],GQ.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.un),_.S("design:type",Object)],GQ.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],GQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GQ.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.S("design:type",Boolean)],GQ.prototype,"widescreen",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.S("design:type",Boolean)],GQ.prototype,"expandable",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GQ.prototype,"collapsed",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GQ.prototype,"dataChanged",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GQ.prototype,"onIronResize",null);_.x([_.Ye({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],GQ);
_.y(GQ,"ytd-video-masthead-ad-v3-renderer",function(){if(k2o!==void 0)return k2o;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return k2o=m},{mode:2});var K1=function(){return _.d.apply(this,arguments)||this};
_.n(K1,_.d);_.w=K1.prototype;_.w.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.w.ready=function(){var m=this;hfM(function(){m.isAttached&&vR(m.JSC$16024_storedAdSlotMetadata,m.JSC$16024_storedAdLayoutMetadata,m.adSlotMetadata,m.adLayoutMetadata)&&zy(RX(),m.JSC$16024_storedAdSlotMetadata,m.JSC$16024_storedAdLayoutMetadata)})};
_.w.attached=function(){vR(this.JSC$16024_storedAdSlotMetadata,this.JSC$16024_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&hW4(RX(),this.JSC$16024_storedAdSlotMetadata,this.JSC$16024_storedAdLayoutMetadata)};
_.w.detached=function(){vR(this.JSC$16024_storedAdSlotMetadata,this.JSC$16024_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&zy(RX(),this.JSC$16024_storedAdSlotMetadata,this.JSC$16024_storedAdLayoutMetadata)};
_.w.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$16024_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$16024_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$16024_storedAdLayoutMetadata!==void 0&&this.JSC$16024_storedAdSlotMetadata!==void 0&&zy(RX(),this.JSC$16024_storedAdSlotMetadata,this.JSC$16024_storedAdLayoutMetadata),hW4(RX(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$16024_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$16024_storedAdSlotMetadata=this.adSlotMetadata)};
_.e_.Object.defineProperties(K1.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.adLayoutMetadata}}});
K1.prototype.onAdMetadataChanged=K1.prototype.onAdMetadataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],K1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],K1.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],K1.prototype,"data",void 0);_.x([_.E("data.adLayoutMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],K1.prototype,"adLayoutMetadata",null);
_.x([_.V(),_.S("design:type",Object)],K1.prototype,"adSlotMetadata",void 0);_.x([_.Sb("adLayoutMetadata","adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K1.prototype,"onAdMetadataChanged",null);_.x([_.Ye({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],K1);
_.y(K1,"ytd-page-top-ad-layout-renderer",function(){if(srk!==void 0)return srk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return srk=
m},{mode:2});var ClP;var Wc=function(){var m=_.d.apply(this,arguments)||this;m.noBottomMargin=!1;m.overlayDensity=0;m.typographyBump=!1;m.extractOverlay=!1;m.extractActionBar=!1;return m};
_.n(Wc,_.d);_.w=Wc.prototype;
_.w.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.w.ready=function(){var m=this;hfM(function(){m.isAttached&&m.adSlotMetadata&&utk(RX(),m.adSlotMetadata)})};
_.w.attached=function(){if(this.adSlotMetadata){var m;if(this.adSlotMetadata===((m=this.data)==null?void 0:m.adSlotMetadata))rq2(RX(),this.adSlotMetadata);else{var G;_.nc(Error("Qh`"+this.adSlotMetadata+"`"+((G=this.data)==null?void 0:G.adSlotMetadata)))}}};
_.w.detached=function(){this.adSlotMetadata&&utk(RX(),this.adSlotMetadata)};
_.w.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.w.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&utk(RX(),this.adSlotMetadata),rq2(RX(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.e_.Object.defineProperties(Wc.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.SXo),W;return(m=(W=_.Q(K==null?void 0:K.renderingContent,XZS))==null?void 0:W.layout)?m.toLowerCase().replace(/_/g,"-"):""}}});
Wc.prototype.onAdSlotMetadataChanged=Wc.prototype.onAdSlotMetadataChanged;Wc.prototype.onTypographyBumpChanged=Wc.prototype.onTypographyBumpChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Wc.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wc.prototype,"rendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"noBottomMargin",void 0);_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"overlayDensity",void 0);_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"typographyBump",void 0);_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"extractOverlay",void 0);_.x([_.V(),_.S("design:type",Object)],Wc.prototype,"extractActionBar",void 0);
_.x([_.UM("ytd-in-feed-ad-layout-renderer"),_.S("design:type",HTMLElement)],Wc.prototype,"inFeedAdLayoutRenderer",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Wc.prototype,"layout",null);_.x([_.Sb("typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wc.prototype,"onTypographyBumpChanged",null);
_.x([_.Sb("data.adSlotMetadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wc.prototype,"onAdSlotMetadataChanged",null);_.x([_.Ye({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Wc);
_.y(Wc,"ytd-ad-slot-renderer",function(){if(ClP!==void 0)return ClP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ClP=m},{mode:2});var VQ2;var L1=function(){return _.d.apply(this,arguments)||this};
_.n(L1,_.d);_.w=L1.prototype;_.w.created=function(){this.activeView=new C9(this.hostElement)};
_.w.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"}}}};
_.w.maybeComputeHref=function(){return null};
_.w.onTap=function(){};
_.w.onThumbnailContainerClick=function(m){this.onClick(m)};
_.w.onClick=function(m){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;K&&_.Q(K,_.QQ)&&(this.ytSparklesClickLocationBehavior.handleClick(K,m,!1),m.stopPropagation())};
_.w.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var m=_.g(this.data.impressionUrls),G=m.next();!G.done;G=m.next())G=G.value,r$6(G,had(G));this.data.activeView&&V$(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",L1.JSC$16032_DEFAULT_CLICK_LOCATION_BEHAVIOR,L1.JSC$16032_CLICK_LOCATION_ID_MAP);this.thumbnail&&(m=this.thumbnail.getElementsByTagName("a"),m.length>0&&(m=m.namedItem("thumbnail"))&&m.removeAttribute("href"))}};
_.w.attached=function(){var m=this;_.F("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zn(m.activeView)})};
_.w.detached=function(){_.F("stop_av_measurement_on_detach")&&Zn(this.activeView)};
_.e_.Object.defineProperties(L1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
L1.prototype.dataChanged=L1.prototype.dataChanged;L1.prototype.onTap=L1.prototype.onTap;L1.JSC$16032_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
L1.JSC$16032_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"}];_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],L1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],L1.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],L1.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],L1.prototype,"ytSparklesClickLocationBehavior",void 0);
_.x([_.V({selector:_.OT}),_.S("design:type",Object)],L1.prototype,"isGridViewEnabled",void 0);_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],L1.prototype,"watchFeedBigThumbs",null);_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],L1.prototype,"thumbnailWidth",null);_.x([_.V(),_.S("design:type",Object)],L1.prototype,"data",void 0);
_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],L1.prototype,"thumbnail",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L1.prototype,"onTap",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L1.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],L1);
_.y(L1,"ytd-compact-promoted-video-renderer",function(){if(VQ2!==void 0)return VQ2;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return VQ2=m},{mode:1});var Zhl;_.Kz("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var A5=function(){return _.d.apply(this,arguments)||this};
_.n(A5,_.d);A5.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],A5.prototype,"data",void 0);_.x([_.Ye({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],A5);
_.y(A5,"ytd-search-pyv-renderer",function(){if(Zhl!==void 0)return Zhl;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Zhl=m},{mode:1});var dYB;_.Kz("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var wY=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.JSC$16040_handleOpenPostCommentDialogActionAfterStamp=!1;m.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return m};
_.n(wY,_.d);_.w=wY.prototype;
_.w.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}}};
_.w.onStampFinished=function(){this.JSC$16040_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){var m=_.VL(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");m?m.openDialog():this.JSC$16040_handleOpenPostCommentDialogActionAfterStamp=!0};
_.w.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.w.computeHideBorder=function(){return this.isInEngagementPanel};
_.w.computeIsCompact=function(){return this.isInEngagementPanel};
_.w.computeUsesCompactLockup=function(m){return m==="BACKSTAGE_SURFACE_TYPE_HOME"||m==="BACKSTAGE_SURFACE_TYPE_SEARCH"||m==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||m==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||m==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||m==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.w.computeUsesFullLockup=function(){var m,G=(m=this.data)==null?void 0:m.post,K;m=(K=_.Q(G,L7i))==null?void 0:K.surface;var W;K=(W=_.Q(G,gKl))==null?void 0:W.originalPost;var L;if(W=m||((L=_.Q(K,L7i))==null?void 0:L.surface))return!this.computeUsesCompactLockup(W)&&this.useUpdatedRepostUi;var A;return((A=_.Q(G,gKl))==null?void 0:A.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.e_.Object.defineProperties(wY.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var m,G;return((G=_.Q((m=this.data)==null?void 0:m.post,L7i))==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.useUpdatedRepostUi}}});
wY.prototype.onYtCommentModerationPanelEmpty=wY.prototype.onYtCommentModerationPanelEmpty;wY.prototype.onStampFinished=wY.prototype.onStampFinished;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],wY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wY.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wY.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],wY.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wY.prototype,"roundedContainer",void 0);_.x([_.V({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.S("design:type",Boolean)],wY.prototype,"hideBorder",void 0);_.x([_.V({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.S("design:type",Boolean)],wY.prototype,"isCompact",void 0);
_.x([_.V({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.S("design:type",Boolean)],wY.prototype,"usesFullLockup",void 0);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wY.prototype,"onStampFinished",null);
_.x([_.XC("ytd-comment-moderation-panel-empty"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],wY.prototype,"onYtCommentModerationPanelEmpty",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wY.prototype,"isInEngagementPanel",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],wY.prototype,"useUpdatedRepostUi",null);
_.x([_.Ye({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],wY);
_.y(wY,"ytd-backstage-post-thread-renderer",function(){if(dYB!==void 0)return dYB;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dYB=m},{mode:1});var Pl4;var uF=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(uF,_.d);uF.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
uF.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var m=this.data.thumbnail.thumbnails;this.isDarkTheme&&(m=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(m=_.qy(m,24,void 0,"height"))?m:void 0}};
uF.prototype.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
uF.prototype.computeHasText=function(){var m;return!((m=this.data)==null||!m.text)};
_.e_.Object.defineProperties(uF.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.MI(this.bannerImageUrl))+'");'}}});
uF.prototype.computeHasText=uF.prototype.computeHasText;uF.prototype.computeBannerImageUrl=uF.prototype.computeBannerImageUrl;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],uF.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],uF.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],uF.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",String)],uF.prototype,"bannerImageUrl",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.S("design:type",Boolean)],uF.prototype,"hasText",void 0);_.x([_.Sb("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uF.prototype,"computeBannerImageUrl",null);
_.x([_.Sb("data.text"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uF.prototype,"computeHasText",null);_.x([_.E("bannerImageUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],uF.prototype,"bannerStyle",null);_.x([_.Ye({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],uF);
_.y(uF,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Pl4!==void 0)return Pl4;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Pl4=m},{mode:1});var yqP;var h5=function(){return _.d.apply(this,arguments)||this};
_.n(h5,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],h5.prototype,"data",void 0);_.x([_.Ye({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],h5);
_.y(h5,"ytd-backstage-zero-state-renderer",function(){if(yqP!==void 0)return yqP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yqP=m},{mode:1});var eWo;var p1=function(){return _.d.apply(this,arguments)||this};
_.n(p1,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],p1.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],p1.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],p1.prototype,"icon",void 0);_.x([_.Ye({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],p1);
_.y(p1,"ytd-post-filter-zero-state-renderer",function(){if(eWo!==void 0)return eWo;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return eWo=m},{mode:1});var fH4;var xY4={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},J5=function(){return _.d.apply(this,arguments)||this};
_.n(J5,_.d);J5.prototype.configureRendererStamper=function(){return xY4};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],J5.prototype,"rendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],J5.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],J5.prototype,"icon",void 0);_.x([_.Ye({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],J5);
_.y(J5,"ytd-post-scheduling-zero-state-renderer",function(){if(fH4!==void 0)return fH4;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fH4=m},{mode:1});var XPi;var NM=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return m};
_.n(NM,_.d);NM.prototype.onTabsActivate=function(m){this.data&&this.data.tabs&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[m.detail.selected].navigationEndpoint})};
NM.prototype.shouldShowTotalCount=function(m){return m&&m.totalCount!==void 0};
NM.prototype.handleUpdatePostsTotalCountAction=function(m){var G=this.get(["data.tabs",1,"totalCount"]),K=this.get("updatePostsTotalCountAction.updateType",m);m=this.get("updatePostsTotalCountAction.number",m);G!==void 0&&K!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&m&&(K==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(G)+m):K==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(G)-m))};
_.e_.Object.defineProperties(NM.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var m=0,G=this.data.tabs.length;m<G;m++)if(this.data.tabs[m].selected)return m;return 0}}});
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],NM.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],NM.prototype,"rendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],NM.prototype,"data",void 0);_.x([_.E("data.tabs"),_.S("design:type",Number),_.S("design:paramtypes",[])],NM.prototype,"selected",null);_.x([_.Ye({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],NM);
_.y(NM,"ytd-post-stream-filter-renderer",function(){if(XPi!==void 0)return XPi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return XPi=m},{mode:1});var SC0;var D2=function(){return _.d.apply(this,arguments)||this};
_.n(D2,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],D2.prototype,"kevlarBehaviors",void 0);_.x([_.V(),_.S("design:type",Object)],D2.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],D2);
_.y(D2,"ytd-channel-age-gate-renderer",function(){if(SC0!==void 0)return SC0;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return SC0=m},{mode:1});var RWK;_.Kz("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var t5=function(){var m=_.d.apply(this,arguments)||this;m.data=null;return m};
_.n(t5,_.d);t5.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e_.Object.defineProperties(t5.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?0:(G=m.title)==null?0:(K=G.runs)==null?0:K.length)?147:160}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],t5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],t5.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],t5.prototype,"imageSizePx",null);_.x([_.Ye({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],t5);
_.y(t5,"ytd-channel-owner-empty-state-renderer",function(){if(RWK!==void 0)return RWK;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return RWK=m},{mode:1});var UYR;var zWP;var FK=function(){var m=_.d.apply(this,arguments)||this;m.boundSubmitSearch=function(){m.submitSearch()};
m.boundClearSearch=function(){m.clearSearch()};
return m};
_.n(FK,_.d);_.w=FK.prototype;_.w.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]]"}}}}}};
_.w.toggleClearButton=function(){this.hideClearButton=lPF||!this.input.value};
_.w.submitOnEnterKeyUp=function(m){m.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.w.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.w.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.w.submit=function(){_.Zw(this.hostElement,"search-query-changed",this.input.value)};
FK.prototype.toggleClearButton=FK.prototype.toggleClearButton;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FK.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],FK.prototype,"hideClearButton",void 0);_.x([_.V(),_.S("design:type",Object)],FK.prototype,"boundSubmitSearch",void 0);_.x([_.V(),_.S("design:type",Object)],FK.prototype,"boundClearSearch",void 0);_.x([_.UM("#input"),_.S("design:type",Object)],FK.prototype,"input",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FK.prototype,"toggleClearButton",null);
_.x([_.Ye({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],FK);
_.y(FK,"ytd-channel-switcher-search-box-renderer",function(){if(zWP!==void 0)return zWP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zWP=m},{mode:1});var lHR;var QR=function(){var m=_.d.apply(this,arguments)||this;m.boundSubmit=function(){m.submit()};
return m};
_.n(QR,_.d);_.w=QR.prototype;_.w.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"}}}}};
_.w.ready=function(){var m=this;this.form.addEventListener("submit",function(G){return m.onSubmit(G)})};
_.w.onSubmit=function(m){m.preventDefault();return!1};
_.w.toggleClearButton=function(){this.hideClearButton=lPF||!this.input.value};
_.w.submitOnEnterKeyUp=function(m){m.keyCode===13&&this.submit()};
_.w.submit=function(){var m=this.data.endpoint,G=(0,_.Y2.unsafeClone)(m);_.Q(G,_.S8)?_.Q(G,_.S8).query=this.input.value:_.Q(G,_.RW)&&(_.Q(G,_.RW).query=this.input.value);var K=_.Q(G.commandMetadata,_.RQ);(K==null?0:K.url)?(K.url=_.ir(K.url,"query",this.input.value),_.Zw(this.hostElement,"yt-navigate",{endpoint:G})):_.Q(G,Z_F)?(_.Q(G,Z_F).channelSwitcherQuery=this.input.value,_.xS().resolve(_.S1).resolveCommand(G,{form:{element:this.hostElement}})):(m=Error("Rh`"+JSON.stringify(m)),_.am(m))};
_.w.getUrl=function(m){return this.get("commandMetadata.webCommandMetadata.url",m)};
QR.prototype.toggleClearButton=QR.prototype.toggleClearButton;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],QR.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],QR.prototype,"hideClearButton",void 0);
_.x([_.V(),_.S("design:type",Object)],QR.prototype,"boundSubmit",void 0);_.x([_.UM("#form"),_.S("design:type",HTMLFormElement)],QR.prototype,"form",void 0);_.x([_.UM("#input"),_.S("design:type",Object)],QR.prototype,"input",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QR.prototype,"toggleClearButton",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],QR);
_.y(QR,"ytd-search-box-renderer",function(){if(lHR!==void 0)return lHR;var m=document.createElement("template");_.b(m,'\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  </tp-yt-paper-input>\n  <div id="search-button" class="style-scope ytd-search-box-renderer"></div>\n  <div id="clear-button" class="style-scope ytd-search-box-renderer"></div>\n</form>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return lHR=m},{mode:2});var ay=function(){var m=_.d.apply(this,arguments)||this;m.showSearchBox=!0;return m};
_.n(ay,_.d);ay.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ay.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ay.prototype,"showSearchBox",void 0);_.x([_.Ye({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],ay);
_.y(ay,"ytd-channel-switcher-header-renderer",function(){if(UYR!==void 0)return UYR;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return UYR=m},{mode:1});var B40;var MQo;var oy=function(){var m=_.d.apply(this,arguments)||this;m.isDisplayed=!0;return m};
_.n(oy,_.d);_.w=oy.prototype;_.w.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.dataChanged=function(){this.isDisplayed=!0};
_.w.computeType=function(m){return m||"UNKNOWN"};
_.w.onYtServiceRequestCompleted=function(m){m.stopPropagation();this.isDisplayed=!1};
_.w.onClose=function(){this.isDisplayed=!1};
oy.prototype.onYtServiceRequestCompleted=oy.prototype.onYtServiceRequestCompleted;oy.prototype.dataChanged=oy.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oy.prototype,"data",void 0);
_.x([_.V({computed:"computeType(data.type)",reflectToAttribute:!0}),_.S("design:type",String)],oy.prototype,"type",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],oy.prototype,"isDisplayed",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oy.prototype,"dataChanged",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],oy.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],oy);
_.y(oy,"ytd-alert-with-button-renderer",function(){if(MQo!==void 0)return MQo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return MQo=m},{mode:1});var n1=function(){var m=_.d.apply(this,arguments)||this;m.noResult=!1;m.enableAlertBanner=!1;m.dismissedAlertBanner=!1;m.hideCreateChannelButton=!1;m.boundDismissAlertBanner=function(){m.dismissAlertBanner()};
m.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return m};
_.n(n1,_.d);_.w=n1.prototype;_.w.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.w.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.w.updateChannelSwitcherAction=function(m){var G;m=(G=_.Q(m,Vi4))==null?void 0:G.page;_.Q(m,ChP)!==void 0&&(this.data=_.Q(m,ChP))};
_.w.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]]"}}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.w.searchQueryChanged=function(m,G){if(this.data&&this.data.contents&&this.data.contents.length){m=[];var K=[];this.hideCreateChannelButton=this.noResult=!1;for(var W=document.querySelectorAll("ytd-account-item-renderer"),L=_.g(W),A=L.next();!A.done;A=L.next())A=A.value,K.push(A),A.style.display="block";this.resetRightBorder(K);if(G){this.hideCreateChannelButton=!0;for(K=1;K<this.data.contents.length;K++)if(A=this.data.contents[K],_.Q(A,kNX)){var O=void 0,c=void 0;L=(O=_.Q(A,kNX))==null?void 0:(c=
O.accountName)==null?void 0:c.simpleText;c=O=void 0;A=(O=_.Q(A,kNX))==null?void 0:(c=O.channelHandle)==null?void 0:c.simpleText;(O=W[K-1])&&L&&_.rd(L,G)?m.push(O):_.F("enable_handle_search_on_channel_switcher")&&O&&A&&_.rd(A.toString(),G.toString())?m.push(O):O.style.display="none"}m.length===0&&(this.noResult=!0);this.resetRightBorder(m)}}};
_.w.resetRightBorder=function(m){for(var G=0;G<m.length;G++)m[G].style.borderRight=!this.hideCreateChannelButton&&(G+2)%3===0||this.hideCreateChannelButton&&(G+1)%3===0?"none":"1px solid var(--yt-spec-outline)"};
_.w.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.w.setShowSearchBox=function(m){if(m&&m.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var G=0;G<m.contents.length;G++)_.Q(m.contents[G],_.EU)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.w.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.e_.Object.defineProperties(n1.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null?0:m.contents)}}});
n1.prototype.onContinuationItemsUpdated=n1.prototype.onContinuationItemsUpdated;n1.prototype.searchQueryChanged=n1.prototype.searchQueryChanged;n1.prototype.onDataChanged=n1.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],n1.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],n1.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],n1.prototype,"data",void 0);_.x([_.UM("ytd-channel-switcher-header-renderer"),_.S("design:type",Object)],n1.prototype,"channelSwitcherHeaderRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],n1.prototype,"noResult",void 0);
_.x([_.V(),_.S("design:type",Object)],n1.prototype,"enableAlertBanner",void 0);_.x([_.V(),_.S("design:type",Object)],n1.prototype,"dismissedAlertBanner",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],n1.prototype,"hideCreateChannelButton",void 0);_.x([_.E("data.contents"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],n1.prototype,"isLoading",null);_.x([_.V(),_.S("design:type",Object)],n1.prototype,"boundDismissAlertBanner",void 0);
_.x([_.V({computed:"computeButtonOverride()"}),_.S("design:type",Object)],n1.prototype,"buttonOverride",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n1.prototype,"onDataChanged",null);_.x([_.XC("search-query-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],n1.prototype,"searchQueryChanged",null);
_.x([_.XC("yt-next-continuation-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],n1.prototype,"onContinuationItemsUpdated",null);_.x([_.Ye({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],n1);
_.y(n1,"ytd-channel-switcher-page-renderer",function(){if(B40!==void 0)return B40;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return B40=m},{mode:1});var T4k;var mvX;var bF=function(){var m=_.d.apply(this,arguments)||this;m.images=[];m.selectedImageIndex=0;return m};
_.n(bF,_.d);_.w=bF.prototype;
_.w.ready=function(){_.oi(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.oi(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.oi(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.oi(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,!1,this)};
_.w.onThumbnailClick=function(m){if(m=m.event_.detail)this.selectedImageIndex=this.images.indexOf(m)};
_.w.updateImageThumbnails=function(m){m=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:m.event_.detail});this.images.splice(this.selectedImageIndex,1,m);this.images=[].concat(_.Bz(this.images))};
_.w.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Zw(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.w.saveImageRepositions=function(){this.selectedImageIndex=0;_.Zw(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.e_.Object.defineProperties(bF.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var m=this;return(this.images||[]).map(function(G,K){return{image:G,selected:K===m.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("ytd-backstage-image-preview-renderer"),_.S("design:type",Object)],bF.prototype,"imagePreviewContainer",void 0);_.x([_.UM(".thumbnail-images-container"),_.S("design:type",HTMLElement)],bF.prototype,"thumbnailImagesContainer",void 0);_.x([_.V(),_.S("design:type",Array)],bF.prototype,"images",void 0);
_.x([_.V(),_.S("design:type",Object)],bF.prototype,"repositionInstructions",void 0);_.x([_.V(),_.S("design:type",Object)],bF.prototype,"selectedImageIndex",void 0);_.x([_.E("images","selectedImageIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],bF.prototype,"thumbnailRendererDatas",null);_.x([_.E("images","selectedImageIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],bF.prototype,"selectedImageData",null);
_.x([_.Ye({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],bF);
_.Vz()(bF,"ytd-backstage-multi-image-reposition-renderer",function(){if(mvX===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);mvX=m}m=mvX;return m},{allowedProps:["images",
"repositionInstructions"],mode:1});var vc=function(m,G){_.ai.call(this);this.uploadUrl=m;this.channelId=G;this.imagesUploadData=[]};
_.n(vc,_.ai);vc.prototype.getAllUploadStatuses=function(){var m=this,G,K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(i04(m),2);G=L.yieldResult;K=G.get("succeed");W=G.get("failed");return L.return(K.concat(W))})};
var K8o=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(i04(m),2);G=W.yieldResult;K=G.get("failed");K.length>0&&G3F(m,K);return W.return(m.getAllUploadStatuses())})},i04=function(m){var G,K,W,L,A,O,c;
return _.Y(function(u){if(u.nextAddress==1)return G=new Map,u.yield(Promise.allSettled(m.imagesUploadData.map(function(h){return h.uploadPromise})),2);
K=u.yieldResult;W=[];L=_.g(K);for(A=L.next();!A.done;A=L.next())O=A.value,O.status==="fulfilled"&&W.push(O.value);c=m.imagesUploadData.map(function(h){return h.image}).filter(function(h){return W.every(function(J){return J.id!==h.id})});
G.set("succeed",W);G.set("failed",c);return u.return(G)})},G3F=function(m,G){G=_.g(G);
for(var K=G.next();!K.done;K=G.next()){var W=m;K=K.value;W8K(W,K.id)>=0&&W.cancel(K.id);var L=new L8k(K),A=_.oWk(W.uploadUrl,{"X-YouTube-ChannelId":W.channelId},K.imageBlob);L.transfer=A;L.uploadPromise=AEG(A,K);W.imagesUploadData.push(L);A.run()}};
vc.prototype.cancel=function(m){var G=W8K(this,m);G!==-1&&((G=this.imagesUploadData[G].transfer)&&G.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(K){return K.image.id!==m}))};
var W8K=function(m,G){return m.imagesUploadData.findIndex(function(K){return K.image.id===G})},AEG=function(m,G){return new Promise(function(K,W){m.listen("l",function(){var L=m.getResponseText();
L?(L=JSON.parse(L).encryptedBlobId,G.encryptedBlobId=L,K(G)):W("upload failed")});
m.listen("n",function(){W("upload failed")})})},L8k=function(m){this.image=m};var ioG=function(m,G,K,W,L){this.id=m;this.imageBlob=G;this.localImageSrc=K;this.naturalWidth=W;this.naturalHeight=L;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 wIP=[".jpeg",".jpg",".png"],$f=function(){var m=_.d.apply(this,arguments)||this;m.showImagesPreview=!1;m.pollOptions=[];m.errorMessage="";m.optionPlaceholderText="";m.optionDefaultText="";m.JSC$16096_imageId=0;m.maxFileSizeMb=0;m.maxAspectRatio=0;m.invalidFileSizeError="";m.invalidAspectRatioError="";m.invalidFileTypeError="";m.imageSelector=new Zp(null,"single_file",wIP);return m};
_.n($f,_.d);_.w=$f.prototype;_.w.ready=function(){_.oi(this.imageSelector,"j",this.onImageSelect,!1,this);_.oi(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.oi(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.w.dataChanged=function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.cellTemplate)==null?void 0:G.onEmptyCellTap,DmF);if(K&&K.uploadUrl&&K.channelId){var W;this.maxFileSizeMb=((W=K.imageValidationInfo)==null?void 0:W.maxFileSizeMb)||0;var L;this.maxAspectRatio=((L=K.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0;var A;this.invalidFileSizeError=this.getSimpleString((A=this.data)==null?void 0:A.invalidFileSizeError);var O;this.invalidAspectRatioError=this.getSimpleString((O=this.data)==
null?void 0:O.invalidAspectRatioError);var c;this.invalidFileTypeError=this.getSimpleString((c=this.data)==null?void 0:c.invalidFileTypeError);this.uploadManager=new vc(K.uploadUrl,K.channelId)}};
_.w.onEditorInfoChange=function(){this.optionPlaceholderText=_.bw(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.bw(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.w.observeAddImageError=function(){this.errorMessage!==""&&_.Zw(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.w.onPollOptionsChange=function(){for(var m=!1,G=[],K=0;K<this.pollOptions.length;K++){var W=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(K+1);this.pollOptions[K].placeholderText!==W?(m=!0,G.push(Object.assign({},this.pollOptions[K],{placeholderText:W}))):G.push(this.pollOptions[K])}m&&(this.pollOptions=G);this.isValid()?_.Zw(this.hostElement,"yt-commentbox-post-enable"):_.Zw(this.hostElement,"yt-commentbox-post-disable")};
_.w.createPollOptions=function(m){var G=[],K;m=(K=m==null?void 0:m.minPollOptions)!=null?K:0;for(K=0;K<m;K++)G.push(this.createPollOption());return G};
_.w.onImageSelect=function(m){var G=this,K,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1){if(G.selectedImageIndex===void 0)return u.jumpTo(0);K=m.files[0];G.errorMessage="";W=G.validateImage(K);if(W!=="")return G.errorMessage=W,u.return();L=new nK(G.maxAspectRatio,!1,!0);return u.yield(L.transform(K),3)}if(u.nextAddress!=4)return A=u.yieldResult,A.transformedData?A.invalidAspectRatio?(G.errorMessage=G.invalidAspectRatioError,u.return()):u.yield(GD9(G.JSC$16096_imageId,m.files[0],A.transformedData),
4):(G.errorMessage=G.invalidFileTypeError,u.return());O=u.yieldResult;G.JSC$16096_imageId++;G3F(G.uploadManager,[O]);c=Object.assign({},G.pollOptions[G.selectedImageIndex],{image:O});G.pollOptions.splice(G.selectedImageIndex,1,c);G.refreshPollOptions();_.Zw(G.hostElement,"yt-backstage-poll-image-select");_.ey(u)})};
_.w.validateImage=function(m){return m.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.w.refreshPollOptions=function(){this.pollOptions=[].concat(_.Bz(this.pollOptions))};
_.w.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Bz(this.pollOptions),[this.createPollOption()]))};
_.w.onRemovePollOption=function(m){var G=this.pollOptions[m.model.index];G&&G.image&&this.uploadManager.cancel(G.image.id);this.pollOptions.splice(m.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Zw(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.w.onTextInput=function(){this.refreshPollOptions()};
_.w.onImageButtonClick=function(m){this.selectedImageIndex=m.model.index;this.imageSelector.click()};
_.w.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.w.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.w.saveImageRepositions=function(m){m=m.event_.detail;for(var G=0,K=[],W=_.g(this.pollOptions),L=W.next();!L.done;L=W.next())L=L.value,L.image!==void 0?(L=Object.assign({},L,{image:m[G]}),K.push(L),G++):K.push(L);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Bz(K))};
_.w.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 m=0,G=_.g(this.pollOptions),K=G.next();!K.done;K=G.next())if(K=K.value,K.optionText.trim()!==""||K.image!==void 0){if(!K.image||this.hasCustomOptionText&&K.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;m++}return m>=Number(this.editorInfo.minPollOptions)};
_.w.getAllUploadStatuses=function(){var m=this,G,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return A.yield(m.uploadManager.getAllUploadStatuses(),2);G=A.yieldResult;K=_.g(G);for(W=K.next();!W.done;W=K.next())if(L=W.value,L.encryptedBlobId===void 0)return A.return(K8o(m.uploadManager));return A.return(G)})};
_.w.getPostCreateOptions=function(){for(var m=[],G=_.g(this.pollOptions),K=G.next();!K.done;K=G.next())K=K.value,K.image!==void 0&&m.push({text:this.hasCustomOptionText?K.optionText:K.placeholderText,image:K.image});return m};
_.w.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.w.createButtonRenderer=function(m,G){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:m,accessibilityData:{accessibilityData:{label:this.getSimpleString(m)}},isDisabled:G}};
_.w.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.w.computeThumbnailRendererData=function(m){return m?{image:m,selected:!1}:void 0};
_.w.getSimpleString=function(m){return _.bw(m)};
_.w.updateOptionTextFromBinding=function(m){if(m.target){var G=Array.from(_.VL(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(m.target);if(G>=0){var K;this.pollOptions[G].optionText=(K=m.detail.value)!=null?K:""}}};
_.e_.Object.defineProperties($f.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var m,G;return this.pollOptions.length<((G=(m=this.editorInfo)==null?void 0:m.maxPollOptions)!=null?G:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(m){return m.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(m){return m.image}).map(function(m){return m.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(m){return m.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.data)==null?void 0:m.addOptionButtonText;return G?this.createButtonRenderer(G,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.data)==null?void 0:m.repositionImagesButtonLabel;return G?this.createButtonRenderer(G,!this.hasImages):void 0}}});
$f.prototype.onPollOptionsChange=$f.prototype.onPollOptionsChange;$f.prototype.observeAddImageError=$f.prototype.observeAddImageError;$f.prototype.onEditorInfoChange=$f.prototype.onEditorInfoChange;$f.prototype.dataChanged=$f.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$f.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("ytd-backstage-multi-image-reposition-renderer"),_.S("design:type",Object)],$f.prototype,"imageRepositionContainer",void 0);
_.x([_.V(),_.S("design:type",Object)],$f.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],$f.prototype,"editorInfo",void 0);_.x([_.V(),_.S("design:type",vc)],$f.prototype,"uploadManager",void 0);_.x([_.V(),_.S("design:type",Object)],$f.prototype,"showImagesPreview",void 0);_.x([_.V(),_.S("design:type",Array)],$f.prototype,"pollOptions",void 0);_.x([_.V(),_.S("design:type",Object)],$f.prototype,"errorMessage",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$f.prototype,"dataChanged",null);_.x([_.Mg("editorInfo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$f.prototype,"onEditorInfoChange",null);_.x([_.Sb("errorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$f.prototype,"observeAddImageError",null);
_.x([_.Mg("pollOptions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$f.prototype,"onPollOptionsChange",null);_.x([_.E("pollOptions","editorInfo"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"isAllowedToAddOption",null);_.x([_.E("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"hasImages",null);
_.x([_.E("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"imagesToReposition",null);_.x([_.E("pollOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"hasCustomOptionText",null);_.x([_.E("data","isAllowedToAddOption"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"addOptionButton",null);_.x([_.E("data","hasImages"),_.S("design:type",Object),_.S("design:paramtypes",[])],$f.prototype,"repositionImagesButton",null);
_.x([_.Ye({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],$f);
_.y($f,"ytd-backstage-image-poll-editor-renderer",function(){if(T4k!==void 0)return T4k;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return T4k=m},{mode:2});var gxl={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 O0i;var sm=function(){var m=_.d.apply(this,arguments)||this;m.a11yConfig=gxl;m.imageDisplayOffsetTop=0;m.imageDisplayOffsetLeft=0;m.pickerDisplayOffsetTop=0;m.pickerDisplayOffsetLeft=0;m.showPreviewContainer=!0;m.startPicker=!1;m.repositionOptional=!1;m.editOnlyMode=!1;m.savedImageDisplayOffsetTop=0;m.savedImageDisplayOffsetLeft=0;return m};
_.n(sm,_.d);_.w=sm.prototype;_.w.created=function(){_.YY.requestAvailability()};
_.w.ready=function(){};
_.w.onArrowKeysDown=function(m){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){m.detail.keyboardEvent.preventDefault();var G=0,K=0,W="";switch(m.detail.keyboardEvent.key){case "ArrowUp":KY6(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?W=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":KY6(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?W=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":KY6(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?W=this.a11yConfig.reachRightOfImage:K=this.imageWidth*.05*-1;break;case "ArrowRight":KY6(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?W=this.a11yConfig.reachLeftOfImage:K=this.imageWidth*.05}W&&_.zq(W)&&_.Zw(this.hostElement,"iron-announce",{text:_.zq(W)});if(K||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),m=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),m=_.zq(this.a11yConfig.imageVerticalPosition,{x_percent:""+m,y_percent:""+(100-m)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+K)),m=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),m=_.zq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+m,y_percent:""+(100-m)})),m&&_.Zw(this.hostElement,"iron-announce",{text:m})}};
_.w.getPreviewPosition=function(m,G,K,W){return Math.round(100*(m+G*.5-K)/W)};
_.w.calculateDisplayPosition=function(){var m=this.imageData.naturalWidth,G=this.imageData.naturalHeight;this.displayScale=Math.max(200/m,200/G);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var K=m*this.displayScale*this.imageData.previewCoordinates.left,W=G*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=G>m?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-K;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=m>G?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-W;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=m*this.displayScale;this.imageHeight=G*this.displayScale};
_.w.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.w.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.w.getSignedPosition=function(m,G,K){return G==="X"&&_.E8("HTML_DIR")==="rtl"?K==="-"?m+"px":m*-1+"px":K==="-"?m*-1+"px":m+"px"};
_.w.pickerMove=function(m){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-m.clientX,K=this.pickerOffsetY-m.clientY;this.pickerOffsetX=m.clientX;this.pickerOffsetY=m.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
K)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.w.pickerMoveStart=function(m){this.startPicker=!0;this.pickerOffsetX=m.clientX;this.pickerOffsetY=m.clientY};
_.w.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var m=this.generateCropPreview();m&&_.Zw(this.hostElement,"ytd-backstage-image-preview-coordinates-update",m)};
_.w.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Zw(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.w.deleteImage=function(){_.Zw(this.hostElement,"ytd-backstage-image-preview-delete")};
_.w.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.w.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var m=this.generateCropPreview();m&&_.Zw(this.hostElement,"ytd-backstage-image-preview-coordinates-save",m)};
_.w.getPreviewOffset=function(m,G,K){return G&&m?(K==="X"&&_.E8("HTML_DIR")==="rtl"?300/G*m:300/G*m*-1)+"px":"0px"};
_.w.getSimpleText=function(m){return m?_.bw(m):""};
_.w.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}};
_.e_.Object.defineProperties(sm.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var m=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zq(this.a11yConfig.imageVerticalPosition,{x_percent:""+m,y_percent:""+(100-m)})+"\n"+_.zq(this.a11yConfig.verticalRepositionInstruction)}m=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+m,y_percent:""+(100-m)})+"\n"+_.zq(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 m,G,K=(m=this.instruction)==null?void 0:(G=m.previewInstruction)==null?void 0:G.editButtonLabel;return K?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L=this.editOnlyMode?(m=this.instruction)==null?void 0:(G=m.editInstruction)==null?void 0:G.saveImagesButtonLabel:(K=this.instruction)==null?void 0:(W=K.editInstruction)==null?void 0:W.saveButtonLabel;return L?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:L,accessibilityData:{accessibilityData:{label:this.getSimpleText(L)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.instruction)==null?void 0:(G=m.previewInstruction)==null?void 0:G.deleteButtonLabel;return K?{size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.instruction)==null?void 0:(G=m.editInstruction)==null?void 0:G.cancelButtonLabel;m=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return K?{style:m,size:"SIZE_SMALL",text:K,accessibilityData:{accessibilityData:{label:this.getSimpleText(K)}}}: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"}}});
sm.prototype.onEditOnlyModeUpdate=sm.prototype.onEditOnlyModeUpdate;sm.prototype.onImageChange=sm.prototype.onImageChange;_.x([_.V(),_.S("design:type",ioG)],sm.prototype,"imageData",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"instruction",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"a11yConfig",void 0);_.x([_.V(),_.S("design:type",Number)],sm.prototype,"imageWidth",void 0);_.x([_.V(),_.S("design:type",Number)],sm.prototype,"imageHeight",void 0);
_.x([_.V(),_.S("design:type",Number)],sm.prototype,"displayScale",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"imageDisplayOffsetTop",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"showPreviewContainer",void 0);
_.x([_.V(),_.S("design:type",Object)],sm.prototype,"startPicker",void 0);_.x([_.V(),_.S("design:type",Number)],sm.prototype,"pickerOffsetX",void 0);_.x([_.V(),_.S("design:type",Number)],sm.prototype,"pickerOffsetY",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"repositionOptional",void 0);_.x([_.V(),_.S("design:type",Object)],sm.prototype,"editOnlyMode",void 0);_.x([_.UM("#picker-container"),_.S("design:type",HTMLElement)],sm.prototype,"JSC$16109_pickerContainer",void 0);
_.x([_.UM("#picker"),_.S("design:type",HTMLElement)],sm.prototype,"picker",void 0);_.x([_.UM("#preview-clipper"),_.S("design:type",HTMLElement)],sm.prototype,"previewClipper",void 0);_.x([_.UM("#image-in-picker-background"),_.S("design:type",HTMLImageElement)],sm.prototype,"JSC$16109_imageInBackground",void 0);_.x([_.UM("#image-in-picker"),_.S("design:type",HTMLImageElement)],sm.prototype,"JSC$16109_imageInPicker",void 0);
_.x([_.UM("#image-in-preview-clipper"),_.S("design:type",HTMLImageElement)],sm.prototype,"JSC$16109_imageInPreviewClipper",void 0);_.x([_.E("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"altLabelForImage",null);_.x([_.E("imageHeight","imageWidth"),_.S("design:type",Number),_.S("design:paramtypes",[])],sm.prototype,"pickerSize",null);
_.x([_.E("imageHeight","imageWidth"),_.S("design:type",Object),_.S("design:paramtypes",[])],sm.prototype,"imageOrientationStyle",null);_.x([_.E("instruction"),_.S("design:type",Object),_.S("design:paramtypes",[])],sm.prototype,"editButton",null);_.x([_.E("instruction","editOnlyMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],sm.prototype,"saveButton",null);_.x([_.E("instruction"),_.S("design:type",Object),_.S("design:paramtypes",[])],sm.prototype,"deleteButton",null);
_.x([_.E("instruction","editOnlyMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],sm.prototype,"cancelButton",null);_.x([_.E("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.S("design:type",Number),_.S("design:paramtypes",[])],sm.prototype,"cropOffsetTop",null);_.x([_.E("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.S("design:type",Number),_.S("design:paramtypes",[])],sm.prototype,"cropOffsetLeft",null);
_.x([_.E("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"pickerBackgroundStyle",null);_.x([_.E("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"pickerDisplayStyle",null);_.x([_.E("cropOffsetLeft","cropOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"imageInPickerStyle",null);
_.x([_.E("cropOffsetLeft","cropOffsetTop","pickerSize"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"previewClipperStyle",null);_.x([_.Mg("imageData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sm.prototype,"onImageChange",null);_.x([_.Mg("editOnlyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sm.prototype,"onEditOnlyModeUpdate",null);
_.x([_.E("showPreviewContainer"),_.S("design:type",String),_.S("design:paramtypes",[])],sm.prototype,"pickerModeStyle",null);_.x([_.Ye({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],sm);
_.y(sm,"ytd-backstage-image-preview-renderer",function(){if(O0i!==void 0)return O0i;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return O0i=m},{mode:1});var cEK;var YkC={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 rEC;var u_l;var qM=function(){var m=_.d.apply(this,arguments)||this;m.a11yConfig=YkC;m.imageDisplayOffsetTop=0;m.imageDisplayOffsetLeft=0;m.pickerDisplayOffsetTop=0;m.pickerDisplayOffsetLeft=0;m.cropCoordinatesSaved=!1;m.previewSize=0;m.startPicker=!1;m.repositionOptional=!1;return m};
_.n(qM,_.d);_.w=qM.prototype;_.w.created=function(){_.YY.requestAvailability()};
_.w.ready=function(){};
_.w.onArrowKeysDown=function(m){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){m.detail.keyboardEvent.preventDefault();var G=0,K=0,W="";switch(m.detail.keyboardEvent.key){case "ArrowUp":WYP(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?W=this.a11yConfig.reachBottomOfImage:G=this.imageHeight*.05*-1;break;case "ArrowDown":WYP(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?W=this.a11yConfig.reachTopOfImage:
G=this.imageHeight*.05;break;case "ArrowLeft":WYP(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?W=this.a11yConfig.reachRightOfImage:K=this.imageWidth*.05*-1;break;case "ArrowRight":WYP(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?W=this.a11yConfig.reachLeftOfImage:K=this.imageWidth*.05}W&&_.zq(W)&&_.Zw(this.hostElement,"iron-announce",{text:_.zq(W)});if(K||G)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+G)),m=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),m=_.zq(this.a11yConfig.imageVerticalPosition,{x_percent:""+m,y_percent:""+(100-m)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+K)),m=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),m=_.zq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+m,y_percent:""+(100-m)})),m&&_.Zw(this.hostElement,"iron-announce",{text:m})}};
_.w.getPreviewPosition=function(m,G,K,W){return Math.round(100*(m+G*.5-K)/W)};
_.w.displayImage=function(){var m=this.JSC$16120_pickerContainer.getBoundingClientRect().width,G=this.JSC$16120_pickerContainer.getBoundingClientRect().height,K=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),W=this.JSC$16120_imageInBackground.naturalWidth,L=this.JSC$16120_imageInBackground.naturalHeight;this.displayScale=Math.max(K/W,K/L);this.imageWidth=W*this.displayScale;this.imageHeight=L*this.displayScale;this.pickerDisplayOffsetLeft=(m-K)/2;this.pickerDisplayOffsetTop=
(G-K)/2;this.imageDisplayOffsetLeft=L>W?this.pickerDisplayOffsetLeft:(m-this.imageWidth)/2;this.imageDisplayOffsetTop=W>L?this.pickerDisplayOffsetTop:(G-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.w.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$16120_imageInBackground.src=this.imageData.toString(),this.JSC$16120_imageInPicker.src=this.imageData.toString(),this.JSC$16120_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.w.getSignedPosition=function(m,G,K){return G==="X"&&_.E8("HTML_DIR")==="rtl"?K==="-"?m+"px":m*-1+"px":K==="-"?m*-1+"px":m+"px"};
_.w.pickerMove=function(m){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var G=this.pickerOffsetX-m.clientX,K=this.pickerOffsetY-m.clientY;this.pickerOffsetX=m.clientX;this.pickerOffsetY=m.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
K)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-G))}};
_.w.pickerMoveStart=function(m){this.startPicker=!0;this.pickerOffsetX=m.clientX;this.pickerOffsetY=m.clientY};
_.w.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.w.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Zw(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.w.getPreviewOffset=function(m,G,K,W){return G&&m&&K?(W==="X"&&_.E8("HTML_DIR")==="rtl"?K/G*m:K/G*m*-1)+"px":"0px"};
_.w.getSimpleText=function(m){return m?_.bw(m):""};
_.w.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var m=this.cropOffsetTop/this.imageHeight,G=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,K=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,W=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.VL(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Zw(this.hostElement,"yt-img-crop-coordinates-update",{top:m,right:G,bottom:K,left:W})}};
_.e_.Object.defineProperties(qM.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var m=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.zq(this.a11yConfig.imageVerticalPosition,{x_percent:""+m,y_percent:""+(100-m)})+"\n"+_.zq(this.a11yConfig.verticalRepositionInstruction)}m=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.zq(this.a11yConfig.imageHorizontalPosition,{x_percent:""+m,y_percent:""+(100-m)})+"\n"+_.zq(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 m,G=(m=this.learnMore.runs[0])==null?void 0:m.navigationEndpoint,K;return((K=_.Q(G,_.H$))==null?void 0:K.url)||void 0}}}});
qM.prototype.onImageDataChange=qM.prototype.onImageDataChange;_.x([_.V(),_.S("design:type",Object)],qM.prototype,"imageData",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"instruction",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"a11yConfig",void 0);_.x([_.V(),_.S("design:type",Number)],qM.prototype,"imageWidth",void 0);_.x([_.V(),_.S("design:type",Number)],qM.prototype,"imageHeight",void 0);_.x([_.V(),_.S("design:type",Number)],qM.prototype,"displayScale",void 0);
_.x([_.V(),_.S("design:type",Object)],qM.prototype,"imageDisplayOffsetTop",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"imageDisplayOffsetLeft",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"pickerDisplayOffsetTop",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"pickerDisplayOffsetLeft",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"cropCoordinatesSaved",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"previewSize",void 0);
_.x([_.V(),_.S("design:type",Object)],qM.prototype,"startPicker",void 0);_.x([_.V(),_.S("design:type",Number)],qM.prototype,"pickerOffsetX",void 0);_.x([_.V(),_.S("design:type",Number)],qM.prototype,"pickerOffsetY",void 0);_.x([_.V(),_.S("design:type",Object)],qM.prototype,"repositionOptional",void 0);_.x([_.UM("#picker-container"),_.S("design:type",HTMLElement)],qM.prototype,"JSC$16120_pickerContainer",void 0);_.x([_.UM("#picker"),_.S("design:type",HTMLElement)],qM.prototype,"picker",void 0);
_.x([_.UM("#image-in-picker-background"),_.S("design:type",HTMLImageElement)],qM.prototype,"JSC$16120_imageInBackground",void 0);_.x([_.UM("#image-in-picker"),_.S("design:type",HTMLImageElement)],qM.prototype,"JSC$16120_imageInPicker",void 0);_.x([_.UM("#image-in-preview-clipper"),_.S("design:type",HTMLImageElement)],qM.prototype,"JSC$16120_imageInPreviewClipper",void 0);_.x([_.UM("#full-image-as-preview"),_.S("design:type",HTMLImageElement)],qM.prototype,"imageAsPreview",void 0);
_.x([_.E("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"altLabelForImage",null);_.x([_.E("imageHeight","imageWidth"),_.S("design:type",Number),_.S("design:paramtypes",[])],qM.prototype,"pickerSize",null);_.x([_.E("imageHeight","imageWidth"),_.S("design:type",Object),_.S("design:paramtypes",[])],qM.prototype,"imageOrientationStyle",null);
_.x([_.E("instruction.previewInstruction.editButtonLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],qM.prototype,"editButton",null);_.x([_.E("instruction.editInstruction.saveButtonLabel"),_.S("design:type",Object),_.S("design:paramtypes",[])],qM.prototype,"saveButton",null);_.x([_.E("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.S("design:type",Number),_.S("design:paramtypes",[])],qM.prototype,"cropOffsetTop",null);
_.x([_.E("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.S("design:type",Number),_.S("design:paramtypes",[])],qM.prototype,"cropOffsetLeft",null);_.x([_.E("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"pickerBackgroundStyle",null);_.x([_.E("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"pickerDisplayStyle",null);
_.x([_.E("cropOffsetLeft","cropOffsetTop"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"imageInPickerStyle",null);_.x([_.E("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"previewClipperStyle",null);_.x([_.Sb("imageData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qM.prototype,"onImageDataChange",null);
_.x([_.E("cropCoordinatesSaved"),_.S("design:type",String),_.S("design:paramtypes",[])],qM.prototype,"pickerModeStyle",null);_.x([_.E("instruction.editInstruction.learnMore"),_.S("design:type",Object),_.S("design:paramtypes",[])],qM.prototype,"learnMore",null);_.x([_.E("learnMore"),_.S("design:type",Object),_.S("design:paramtypes",[])],qM.prototype,"learnMoreUrl",null);_.x([_.cL({is:"yt-img-crop-picker",disableElementRegistration:!0})],qM);
_.y(qM,"yt-img-crop-picker",function(){if(u_l===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;rEC===void 0&&(rEC=document.createElement("template"));var W=rEC;K.call(G,W.content.cloneNode(!0),m.content.firstChild);u_l=m}m=u_l;return m},{mode:2});var Em=function(){var m=_.d.apply(this,arguments)||this;m.errorMessage="";m.hasPreview=!1;m.isBackstagePost=!1;m.dismissButtonOverrides={size:"XS"};return m};
_.n(Em,_.d);_.w=Em.prototype;_.w.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"}}}};
_.w.detached=function(){this.removeOverlay()};
_.w.setPreview=function(m){_.VL(this.hostElement).querySelector("#preview-picker").imageData=m;this.hasPreview=!0;_.Zw(this.hostElement,"yt-backstage-image-select-preview")};
_.w.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var m=_.VL(this.hostElement).querySelector("#dropzone");m.classList.remove("dragover");m.classList.remove("error");_.Zw(this.hostElement,"yt-backstage-image-select-cancel")};
_.w.setupOverlay=function(){var m=this.imageUploadEndpoint;this.removeOverlay();if(m&&m.imageValidationInfo){var G=_.VL(this.hostElement).querySelector("#dropzone"),K=_.VL(this.hostElement).querySelector("#select");this.overlay=new vB(m.uploadUrl,m.channelId,m.imageValidationInfo.maxFileSizeMb,m.imageValidationInfo.allowedMaxAspectRatio,G,K,!0);_.oi(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.oi(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.oi(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.oi(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.oi(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.w.removeOverlay=function(){this.overlay&&(_.Lb(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Lb(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Lb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Lb(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Lb(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.w.onDragOver=function(m){var G=_.VL(this.hostElement).querySelector("#dropzone");_.dF(G,"dragover",m.value)};
_.w.onPreview=function(m){this.setPreview(m.value)};
_.w.onImageError=function(m){if(m.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var G;m=(G=this.data)==null?void 0:G.fileSizeError}else if(m.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var K;m=(K=this.data)==null?void 0:K.invalidError}else if(m.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var W;m=(W=this.data)==null?void 0:W.invalidAspectRatioError}else return;this.errorMessage=_.bw(m);_.VL(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.w.onImageAlert=function(m){this.onImageError(m)};
_.w.uploadPromise=function(){var m=this,G=this.overlay&&this.overlay.uploadPromise();if(G)return G.catch(function(){throw Error(m.data?_.bw(m.data.uploadFailureError):"");})};
_.e_.Object.defineProperties(Em.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var m,G;if((m=this.data)==null?0:(G=m.icon)==null?0:G.iconType)return _.ew(this.data.icon.iconType)}}});
Em.prototype.setupOverlay=Em.prototype.setupOverlay;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Em.prototype,"rendererStamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Em.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Em.prototype,"imageUploadEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],Em.prototype,"errorMessage",void 0);
_.x([_.V(),_.S("design:type",vB)],Em.prototype,"overlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Em.prototype,"hasPreview",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Em.prototype,"isBackstagePost",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Em.prototype,"selectionCancel",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Em.prototype,"previewCancel",null);
_.x([_.E("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Em.prototype,"icon",null);_.x([_.V(),_.S("design:type",Object)],Em.prototype,"dismissButtonOverrides",void 0);_.x([_.Sb("imageUploadEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Em.prototype,"setupOverlay",null);_.x([_.Ye({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Em);
_.y(Em,"ytd-backstage-image-select-renderer",function(){if(cEK!==void 0)return cEK;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return cEK=m},{mode:1});var h8B;var pIk;var Hc=function(){var m=_.d.apply(this,arguments)||this;m.selected=!1;return m};
_.n(Hc,_.d);_.w=Hc.prototype;_.w.computeSelected=function(m){return m==null?void 0:m.selected};
_.w.computeTransform=function(m,G,K){var W,L,A=(L=(W=this.imageContainer)==null?void 0:W.getBoundingClientRect())!=null?L:{width:0,height:0};W=Math.max(A.width/G,A.height/K);K=K*W*m.top;return"translateX("+this.getSignedPosition(G*W*m.left,"X","-")+") translateY("+this.getSignedPosition(K,"Y","-")+")"};
_.w.getSignedPosition=function(m,G,K){return G==="X"&&_.E8("HTML_DIR")==="rtl"?K==="-"?m+"px":m*-1+"px":K==="-"?m*-1+"px":m+"px"};
_.w.onClick=function(){var m;_.Zw(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(m=this.data)==null?void 0:m.image)};
_.w.onKeyPress=function(m){if(m.keyCode===13)this.onClick()};
_.e_.Object.defineProperties(Hc.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.image)==null?void 0:G.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)!=null&&m.image){var G;m=(G=this.data)==null?void 0:G.image;return m.previewCoordinates.top!==0||m.previewCoordinates.left!==0?(G=this.computeTransform(m.previewCoordinates,m.naturalWidth,m.naturalHeight),m.naturalHeight>=m.naturalWidth?"width:inherit;transform:"+G+";":"height:inherit;transform:"+G+";"):m.naturalHeight>=m.naturalWidth?"width:inherit;":"height:inherit;"}}}});
Hc.prototype.onKeyPress=Hc.prototype.onKeyPress;_.x([_.UM(".image-container"),_.S("design:type",HTMLElement)],Hc.prototype,"imageContainer",void 0);_.x([_.V(),_.S("design:type",Object)],Hc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.S("design:type",Object)],Hc.prototype,"selected",void 0);_.x([_.E("data.image"),_.S("design:type",Object),_.S("design:paramtypes",[])],Hc.prototype,"thumbnailUrl",null);
_.x([_.E("data.image","data.image.previewCoordinates"),_.S("design:type",Object),_.S("design:paramtypes",[])],Hc.prototype,"thumbnailStyle",null);_.x([_.XC("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Hc.prototype,"onKeyPress",null);_.x([_.Ye({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],Hc);
_.Vz()(Hc,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(pIk===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);pIk=m}m=pIk;return m},{allowedProps:["data"],
mode:2});var Iy=function(m,G,K){K=K===void 0?!1:K;_.ai.call(this);var W=this;this.dropZoneOverlay=new Vm(m);this.selectOverlay=K?new Zp(G,"multiple_file",["image/*"]):new Zp(G,"single_file",["image/*"]);this.handler=new _.gM(this);_.UR(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(G,"click",function(){W.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.n(Iy,_.ai);Iy.prototype.onChange=function(m){var G;(G=m.files)!=null&&G.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:m.files}))};var jj=function(){var m=_.d.apply(this,arguments)||this;m.addImageErrorMessage="";m.errorMessage="";m.images=[];m.selectedImageIndex=0;m.modern=_.F("web_modern_buttons");m.maxNumImagesPerPost=_.U8("max_num_images_per_post_web_ui");m.JSC$16135_imageId=0;return m};
_.n(jj,_.d);_.w=jj.prototype;_.w.created=function(){var m=this;this.JSC$16135_ytReorderableController=new _.qIo(100,function(G){m.handleDrop(G)})};
_.w.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Zw(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.w.observeDragToReorder=function(){var m=this;if(this.showImagesPreview){var G,K=koK(_.Zq.getInstance(),(G=this.data)==null?void 0:G.dragToReorderTooltip);_.Fu.addLowPriorityJob(function(){_.eD(m.hostElement,K,m.thumbnailDragDropArea)})}};
_.w.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}}};
_.w.computeThumbnail=function(m){return(m==null?void 0:m.localImageSrc)||void 0};
_.w.onRendererstamperFinished=function(){_.EcB(this.JSC$16135_ytReorderableController,_.VL(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.VL(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.w.handleDrop=function(m){var G=m.currDragItem;if(G!=null&&G.data){m=this.images[this.selectedImageIndex];var K=G.data.image,W=this.images.indexOf(K)||0;G=_.Cs(G.parentNode.children,G);this.images.splice(W,1);this.images.splice(G,0,K);this.images=[].concat(_.Bz(this.images));this.selectedImageIndex=this.images.indexOf(m)}};
_.w.setUpImagePicker=function(){var m=this.imageUploadEndpoint;m&&m.imageValidationInfo&&(this.uploadManager=new vc(m.uploadUrl,m.channelId),this.initialPicker||(this.initialPicker=new Iy(this.dropzone,this.selectLink,!0),_.oi(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Iy(this.addImageButtonContainer,this.addImageSelectButton),_.oi(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.oi(this.imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.oi(this.imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.oi(_.VL(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.w.detached=function(){this.initialPicker&&(_.Lb(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Lb(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.UW(this.JSC$16135_ytReorderableController)};
_.w.onInitialSelectImages=function(m){var G=this;return _.Y(function(K){return K.yield(G.onSelectImages(m,!1),0)})};
_.w.onAddImage=function(m){var G=this;return _.Y(function(K){return K.yield(G.onSelectImages(m,!0),0)})};
_.w.onSelectImages=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U;return _.Y(function(l){switch(l.nextAddress){case 1:G?K.addImageErrorMessage="":(K.images=[],K.errorMessage="");W=m.detail;L=K.validateImages([].concat(_.Bz(W)));if(L!=="")return G?K.addImageErrorMessage=L:K.errorMessage=L,l.return();A=[].concat(_.Bz(W)).map(function(Ls){return(new nK(K.maxAspectRatio,!1,!0)).transform(Ls)});
return l.yield(Promise.allSettled(A),2);case 2:O=l.yieldResult,c=_.g(O.entries()),u=c.next();case 3:if(u.done){l.jumpTo(5);break}h=u.value;J=_.g(h);N=J.next().value;D=J.next().value;t=N;a=D;if(a.status!=="fulfilled"){Z=I=v=void 0;G?K.addImageErrorMessage=_.bw((v=K.data)==null?void 0:v.invalidError):K.errorMessage=K.errorMessage===""?_.bw((I=K.data)==null?void 0:I.invalidError):_.bw((Z=K.data)==null?void 0:Z.multiFileError);l.jumpTo(4);break}k=a.value;k.cropped&&_.Zw(K.hostElement,"yt-backstage-multi-image-cropped");
if(k.invalidAspectRatio){f=X=z=void 0;G?K.addImageErrorMessage=_.bw((z=K.data)==null?void 0:z.invalidAspectRatioError):K.errorMessage=K.errorMessage===""?_.bw((X=K.data)==null?void 0:X.invalidAspectRatioError):_.bw((f=K.data)==null?void 0:f.multiFileError);l.jumpTo(4);break}return l.yield(GD9(K.JSC$16135_imageId,m.detail[t],k.transformedData),8);case 8:U=l.yieldResult,K.images.push(U),K.JSC$16135_imageId++;case 4:u=c.next();l.jumpTo(3);break;case 5:if(K.errorMessage!==""||K.addImageErrorMessage!==
"")return l.return();G?G3F(K.uploadManager,[K.images[K.images.length-1]]):G3F(K.uploadManager,K.images);K.images=[].concat(_.Bz(K.images));K.selectedImageIndex=G?Math.max(K.images.length-1,0):0;_.Zw(K.hostElement,"yt-backstage-multi-image-select");_.ey(l)}})};
_.w.onThumbnailClick=function(m){if(m=m.event_.detail)this.selectedImageIndex=this.images.indexOf(m)};
_.w.validateImages=function(m){if(m.length>this.maxNumImagesPerPost){var G;return _.bw((G=this.data)==null?void 0:G.multiImageExceedMaxImageCountError)}var K=1048576*this.maxFileSizeMb;m=m.filter(function(A){return A.size>K}).length;
if(m===0)return"";var W,L;m=m>1?(W=this.data)==null?void 0:W.multiFileError:(L=this.data)==null?void 0:L.fileSizeError;return _.bw(m)};
_.w.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Bz(this.images));this.selectedImageIndex=0};
_.w.repositionImage=function(m){this.images[this.selectedImageIndex].previewCoordinates=m.event_.detail;this.images=[].concat(_.Bz(this.images))};
_.w.getAllUploadStatuses=function(){var m=this,G,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return A.yield(m.uploadManager.getAllUploadStatuses(),2);G=A.yieldResult;K=_.g(G);for(W=K.next();!W.done;W=K.next())if(L=W.value,L.encryptedBlobId===void 0)return A.return(K8o(m.uploadManager));return A.return(G)})};
_.w.hasImages=function(){return this.images.length>0};
_.w.cancel=function(){for(var m=this.uploadManager,G=_.g(m.imagesUploadData),K=G.next();!K.done;K=G.next())m.cancel(K.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Zw(this.hostElement,"yt-backstage-multi-image-cancel")};
_.e_.Object.defineProperties(jj.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.imageUploadEndpoint)==null?void 0:(G=m.imageValidationInfo)==null?void 0:G.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.imageUploadEndpoint)==null?void 0:(G=m.imageValidationInfo)==null?void 0:G.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var m,G;if((m=this.data)==null?0:(G=m.icon)==null?0:G.iconType)return _.ew(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.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 m=this;return(this.images||[]).map(function(G,K){return{renderer:{image:G,selected:K===m.selectedImageIndex}}})}}});
jj.prototype.setUpImagePicker=jj.prototype.setUpImagePicker;jj.prototype.onRendererstamperFinished=jj.prototype.onRendererstamperFinished;jj.prototype.observeDragToReorder=jj.prototype.observeDragToReorder;jj.prototype.observeAddImageError=jj.prototype.observeAddImageError;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jj.prototype,"rendererStamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);
_.x([_.UM("#dropzone"),_.S("design:type",HTMLElement)],jj.prototype,"dropzone",void 0);_.x([_.UM("#select-link"),_.S("design:type",HTMLElement)],jj.prototype,"selectLink",void 0);_.x([_.UM("#thumbnail-drag-drop-area"),_.S("design:type",HTMLElement)],jj.prototype,"thumbnailDragDropArea",void 0);_.x([_.UM("#add-image-button-container"),_.S("design:type",HTMLElement)],jj.prototype,"addImageButtonContainer",void 0);
_.x([_.UM("#add-image-button"),_.S("design:type",HTMLElement)],jj.prototype,"addImageSelectButton",void 0);_.x([_.UM("#image-preview-container"),_.S("design:type",Object)],jj.prototype,"imagePreviewContainer",void 0);_.x([_.V(),_.S("design:type",Object)],jj.prototype,"addImageErrorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],jj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],jj.prototype,"errorMessage",void 0);
_.x([_.V(),_.S("design:type",Object)],jj.prototype,"imageUploadEndpoint",void 0);_.x([_.V(),_.S("design:type",Array)],jj.prototype,"images",void 0);_.x([_.V(),_.S("design:type",Iy)],jj.prototype,"initialPicker",void 0);_.x([_.V(),_.S("design:type",Iy)],jj.prototype,"addImagePicker",void 0);_.x([_.V(),_.S("design:type",vc)],jj.prototype,"uploadManager",void 0);_.x([_.V(),_.S("design:type",Object)],jj.prototype,"selectedImageIndex",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jj.prototype,"modern",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jj.prototype,"maxNumImagesPerPost",void 0);_.x([_.E("imageUploadEndpoint"),_.S("design:type",Number),_.S("design:paramtypes",[])],jj.prototype,"maxAspectRatio",null);_.x([_.E("imageUploadEndpoint"),_.S("design:type",Number),_.S("design:paramtypes",[])],jj.prototype,"maxFileSizeMb",null);
_.x([_.E("data.icon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],jj.prototype,"dropIcon",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],jj.prototype,"selectionCancel",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],jj.prototype,"previewCancel",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],jj.prototype,"dataForAddImageButton",null);
_.x([_.E("errorMessage"),_.S("design:type",String),_.S("design:paramtypes",[])],jj.prototype,"dropzoneClass",null);_.x([_.E("images"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jj.prototype,"showImagesPreview",null);_.x([_.E("images"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jj.prototype,"containMaxImages",null);_.x([_.Sb("addImageErrorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jj.prototype,"observeAddImageError",null);
_.x([_.Sb("showImagesPreview"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jj.prototype,"observeDragToReorder",null);_.x([_.E("images","selectedImageIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],jj.prototype,"selectedImageData",null);_.x([_.E("images","selectedImageIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],jj.prototype,"thumbnailRenderers",null);
_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jj.prototype,"onRendererstamperFinished",null);_.x([_.Sb("imageUploadEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jj.prototype,"setUpImagePicker",null);_.x([_.Ye({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],jj);
_.y(jj,"ytd-backstage-multi-image-select-renderer",function(){if(h8B!==void 0)return h8B;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return h8B=m},{mode:1});var JE4;var NZi;var Dvi;var kf=function(){var m=_.d.apply(this,arguments)||this;m.boundCaptureFocus=function(G){m.onCaptureFocus(G)};
return m};
_.n(kf,_.d);_.w=kf.prototype;_.w.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.w.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.w.onCaptureFocus=function(m){_.ve(m).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.w.getIconType=function(m){return m?"yt-icons:"+m.toLowerCase():null};
_.w.onSelect=function(){var m;if((m=this.data)==null?0:m.onSelectCommand)if(_.F("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var G;((G=_.Q(this.data.onSelectCommand.commandMetadata,_.RQ))==null?0:G.url)?_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.xS().resolve(_.S1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.e_.Object.defineProperties(kf.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.bw(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}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],kf.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kf.prototype,"data",void 0);_.x([_.UM("#item"),_.S("design:type",HTMLElement)],kf.prototype,"item",void 0);_.x([_.E("data.label"),_.S("design:type",String),_.S("design:paramtypes",[])],kf.prototype,"label",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],kf.prototype,"value",null);_.x([_.Ye({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],kf);
_.y(kf,"ytd-privacy-dropdown-item-renderer",function(){if(Dvi!==void 0)return Dvi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Dvi=m},{mode:1});var C1=function(){var m=_.d.apply(this,arguments)||this;m.value="";m.label="";m.disabled=!1;return m};
_.n(C1,_.d);_.w=C1.prototype;_.w.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"}}}};
_.w.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.w.dataChanged=function(){this.reset()};
_.w.valueChanged=function(){var m;if(this.value&&(m=this.data)!=null&&m.entries){m=_.g(this.data.entries);for(var G=m.next();!G.done;G=m.next())if((G=this.getRendererForEntry(G.value))&&this.getItemRendererValue(G)===this.value){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}}};
_.w.setInitialLabel=function(){if(this.data&&this.data.entries)for(var m=_.g(this.data.entries),G=m.next();!G.done;G=m.next())if(G=this.getRendererForEntry(G.value)){if(G.isSelected){this.label=this.ytComponentBehavior.getSimpleString(G.label);break}this.data.label&&(this.label=this.data.label)}};
_.w.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var m=_.g(this.data.entries),G=m.next();!G.done;G=m.next()){G=this.getRendererForEntry(G.value);var K=void 0;if((K=G)==null?0:K.isSelected)return this.getItemRendererValue(G)||-1}return-1};
_.w.getItemRendererValue=function(m){return"stringValue"in m||"int32Value"in m?m.stringValue||m.int32Value||null:null};
_.w.getRendererForEntry=function(m){return m.dropdownItemRenderer||m.privacyDropdownItemRenderer||m.navigationDropdownItemRenderer||null};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("value-changed",this.value))};
_.w.updateValueFromBinding=function(m){this.value=m.detail.value};
C1.prototype.valueChangedForBinding=C1.prototype.valueChangedForBinding;C1.prototype.valueChanged=C1.prototype.valueChanged;C1.prototype.dataChanged=C1.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],C1.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],C1.prototype,"value",void 0);_.x([_.V(),_.S("design:type",Object)],C1.prototype,"label",void 0);_.x([_.UM("#entries"),_.S("design:type",Object)],C1.prototype,"entries",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],C1.prototype,"disabled",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C1.prototype,"dataChanged",null);
_.x([_.Mg("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C1.prototype,"valueChanged",null);_.x([_.Sb("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C1.prototype,"valueChangedForBinding",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],C1);
_.y(C1,"ytd-flat-dropdown-renderer",function(){if(NZi!==void 0)return NZi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return NZi=m},{mode:1});var t7C;var VR=function(){var m=_.d.apply(this,arguments)||this;m.quizOptions=[];m.explanationPlaceholderText="";m.optionPlaceholderText="";m.correctAnswerIndex=-1;m.isMarkAnswerTooltipShown=!1;m.timer=0;return m};
_.n(VR,_.d);_.w=VR.prototype;_.w.dataChanged=function(){this.optionPlaceholderText=_.bw(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.bw(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.w.onMarkCorrectAnswer=function(m){var G,K=((G=this.quizOptions[this.correctAnswerIndex])==null?void 0:G.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[m.model.index]=Object.assign({},this.quizOptions[m.model.index],{explanationText:K,isCorrect:!0});this.correctAnswerIndex=m.model.index;this.quizOptions=[].concat(_.Bz(this.quizOptions))};
_.w.updatePlaceholderTexts=function(){for(var m=!1,G=[],K=0;K<this.quizOptions.length;K++){var W=this.optionPlaceholderText+" "+(K+1),L=void 0;((L=this.quizOptions[K])==null?void 0:L.placeholderText)!==W?(m=!0,G.push(Object.assign({},this.quizOptions[K],{placeholderText:W}))):G.push(this.quizOptions[K])}m&&(this.quizOptions=G);this.isValid()?_.Zw(this.hostElement,"yt-commentbox-post-enable"):_.Zw(this.hostElement,"yt-commentbox-post-disable")};
_.w.getSimpleString=function(m){return _.bw(m)};
_.w.createQuizOptions=function(m){var G=[],K;m=(K=m==null?void 0:m.minQuizOptions)!=null?K:0;for(K=0;K<m;K++)G.push(this.createQuizOption());return G};
_.w.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Bz(this.quizOptions),[this.createQuizOption()]))};
_.w.onInput=function(){this.quizOptions=[].concat(_.Bz(this.quizOptions))};
_.w.onExplanationInput=function(){_.Zw(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.w.onRemoveQuizOption=function(m){this.quizOptions.splice(m.model.index,1);m.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:m.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Bz(this.quizOptions));this.quizOptions.length===0&&_.Zw(this.hostElement,"yt-quiz-attachment-dismiss")};
_.w.updateHintRenderer=function(){var m=this;clearTimeout(this.timer);this.timer=setTimeout(function(){m.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.w.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var m=0,G=0,K=_.g(this.quizOptions),W=K.next();!W.done;W=K.next()){W=W.value;var L=void 0;if(((L=W.optionText)==null?void 0:L.trim())!==""||W.isCorrect){W.isCorrect&&G++;L=void 0;if(this.hasCustomOptionText&&((L=W.optionText)==null?void 0:L.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;m++}}return m>=
Number(this.editorInfo.minQuizOptions)&&G===1};
_.w.getPostCreateOptions=function(){for(var m=[],G=_.g(this.quizOptions),K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;((W=K.optionText)==null?void 0:W.trim())!==""&&m.push({pollOption:{text:K.optionText,explanation:K.explanationText},isCorrect:K.isCorrect})}return m};
_.w.getExplanationText=function(){var m;return((m=this.quizOptions[this.correctAnswerIndex])==null?void 0:m.explanationText)||""};
_.w.maybeDisplayMarkAnswerEduToolTip=function(){var m,G,K,W,L,A,O;this.shouldShowMarkAnswerTooltip()&&((m=this.editorInfo)==null?0:(G=m.markAnswerButton)==null?0:(K=G.buttonRenderer)==null?0:(W=K.hint)==null?0:(L=W.hintRenderer)==null?0:(A=L.content)==null?0:(O=A.bubbleHintRenderer)==null?0:O.text)&&(_.Zq.getInstance(),m=dG(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,(m==null?void 0:m.length)>0&&this.optionSelectors&&_.Xj(m[0],this.optionSelectors[0]))};
_.w.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var m=0,G=_.g(this.quizOptions),K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;((W=K.optionText)==null?void 0:W.trim())!==""&&m++;if(K.isCorrect)return!1}return m<2?!1:!0};
_.w.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.w.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.w.updateOptionTextFromBinding=function(m){if(m.target){var G=Array.from(_.VL(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(m.target);if(G>=0){var K;this.quizOptions[G].optionText=(K=m.detail.value)!=null?K:""}}};
_.e_.Object.defineProperties(VR.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.editorInfo)==null?void 0:(G=m.addOptionButton)==null?void 0:G.buttonRenderer;K&&(K.style="STYLE_SUGGESTIVE",K.size="SIZE_SMALL",K.isDisabled=!this.isAllowedToAddOption);return(K==null?0:K.text)?K:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var m,G;return this.quizOptions.length<((G=(m=this.editorInfo)==null?void 0:m.maxQuizOptions)!=null?G:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(m){var G;return(G=m.optionText)==null?void 0:G.trim()})}}});
VR.prototype.updatePlaceholderTexts=VR.prototype.updatePlaceholderTexts;VR.prototype.dataChanged=VR.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],VR.prototype,"editorInfo",void 0);_.x([_.V(),_.S("design:type",Array)],VR.prototype,"quizOptions",void 0);_.x([_.V(),_.S("design:type",Object)],VR.prototype,"explanationPlaceholderText",void 0);_.x([_.zh(".option-selector-button"),_.S("design:type",Array)],VR.prototype,"optionSelectors",void 0);
_.x([_.Mg("editorInfo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VR.prototype,"dataChanged",null);_.x([_.E("editorInfo","isAllowedToAddOption","quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],VR.prototype,"addAnswerButton",null);_.x([_.E("editorInfo","quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],VR.prototype,"isAllowedToAddOption",null);
_.x([_.Mg("quizOptions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VR.prototype,"updatePlaceholderTexts",null);_.x([_.E("quizOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],VR.prototype,"hasCustomOptionText",null);_.x([_.Ye({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],VR);
_.y(VR,"ytd-backstage-quiz-editor-renderer",function(){if(t7C!==void 0)return t7C;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return t7C=m},{mode:2});var F80;var QJo=(xA.FIRSTDAYOFWEEK+1)%7;var acF;var oxR=[],nxG=0,b0S=0;nxG=0;b0S=24;if(.25*(b0S-nxG)<0)acF=[];else{for(var vxS=nxG;vxS<b0S;vxS+=.25)oxR.push(vxS);acF=oxR}var $vP=acF.map(function(m){m=m*60*60;return{secondsSinceMidnight:m,text:(new oW(7)).format(new Date(0,0,0,0,0,m))}});var sJR;var Z2=function(){var m=_.d.apply(this,arguments)||this;m.skipNextOpenDialog=!1;m.errorMessage="";m.previousMonthLabel=_.zq("PREVIOUS_MONTH_LABEL");m.nextMonthLabel=_.zq("NEXT_MONTH_LABEL");return m};
_.n(Z2,_.d);_.w=Z2.prototype;_.w.attached=function(){var m=this,G=new MutationObserver(function(){m.JSC$16177_calendarMain.scrollHeight>0&&(G.disconnect(),m.calendarConfig&&m.calendarConfig.selectedDate&&m.scrollToDate())});
G.observe(this.JSC$16177_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){G.disconnect()},1E3)};
_.w.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.w.onDateTextChange=function(){if(this.calendarConfig){var m=this.validateDateText();m.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(m.details)):this.textbox.setAttribute("invalid","")}};
_.w.handleDayClick=function(m){m.model.day.date&&(this.commitDate(m.model.day.date),this.dialog.close())};
_.w.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var m=uhP(this.calendarConfig.selectedDate,this.renderData);m!==void 0&&this.JSC$16177_calendarMain.scrollToIndex(m)}};
_.w.scrollToNextMonth=function(){this.JSC$16177_calendarMain.scrollToIndex(this.JSC$16177_calendarMain.firstVisibleIndex+1)};
_.w.scrollToPrevMonth=function(){this.JSC$16177_calendarMain.firstVisibleIndex===0&&this.JSC$16177_calendarMain.scrollTo(0,0);this.JSC$16177_calendarMain.scrollToIndex(this.JSC$16177_calendarMain.firstVisibleIndex-1)};
_.w.onFormSubmit=function(m){m.preventDefault();this.calendarConfig&&(m=this.validateDateText(),m.isValid&&(this.commitDate(m.details),this.dialog.close()))};
_.w.onEscOrClickingOutside=function(m){m=m.detail.path&&!!m.detail.path.length&&m.detail.path[0];if(m.classList.contains("ytd-calendar-date-picker")){m===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var G=0;G<this.dropdownButton.children.length;G++)this.dropdownButton.children[G]===m&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}m=this.textbox.value!==this.dateText;G=this.validateDateText();m&&G.isValid&&this.commitDate(G.details);this.dialog.close();this.textbox.value=
this.dateText};
_.w.commitDate=function(m){this.calendarConfig&&(this.set("calendarConfig.selectedDate",m),_.Zw(this.hostElement,"ytd-calendar-date-selected",m))};
_.w.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var m=this.textbox.value;var G=new Date;m=(new Isd(2)).parse(m,G,{validate:!0})===m.length?Y2v(G):void 0;if(!m)return this.errorMessage=_.zq("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};G=this.calendarConfig.start;var K=this.calendarConfig.end;if(ATJ(m,G))return this.errorMessage=_.zq("ENTER_DATE_OR_LATER",{allowed_date:cTG(G)}),{isValid:!1,details:void 0};if(ATJ(K,m))return this.errorMessage=
_.zq("ENTER_DATE_OR_EARLIER",{allowed_date:cTG(K)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:m}};
_.e_.Object.defineProperties(Z2.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?cTG(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var m=this.calendarConfig,G=[],K=0;K<7;K++)G.push(xA.NARROWWEEKDAYS[(K+QJo)%7]);K=[];for(var W=new Date(m.start.year,m.start.month);W.getFullYear()<m.end.year||W.getFullYear()===m.end.year&&W.getMonth()<=m.end.month;){var L=K,A=L.push,O=W.getFullYear(),c=W.getMonth(),u=m,h=void 0,J=[],N=Object.freeze({extraCssClass:"invisible",debugClass:""}),D=new Date(O,c),t=Y2v(D);D=D.getDay();for(var a=Y2v(new Date);t.month===
c;){D!==QJo&&h||(h=Array.from({length:7}).fill(N),J.push(h));var v={date:{year:O,month:c,day:t.day},extraCssClass:"",debugClass:""};u.selectedDate&&v.date&&LYG(v.date,u.selectedDate)&&(v.extraCssClass+=" selected");if(ATJ(t,u.start)||ATJ(u.end,t))v.extraCssClass+=" disabled";LYG(t,a)&&(v.extraCssClass+=" today");v.extraCssClass=v.extraCssClass.trim();h[(D-QJo+7)%7]=v;t=gwo(t);D=(D+1)%7}A.call(L,{weeks:J,monthLabel:xA.SHORTMONTHS[c]+" "+O,year:O,month:c,monthLabelExtraCssClass:J[0][2]===N?"shift-down-label":
""});W.setMonth(W.getMonth()+1)}return{months:K,daysOfWeekLabel:G}}}}});
Z2.prototype.onEscOrClickingOutside=Z2.prototype.onEscOrClickingOutside;Z2.prototype.scrollToDate=Z2.prototype.scrollToDate;_.x([_.V(),_.S("design:type",Object)],Z2.prototype,"calendarConfig",void 0);_.x([_.V(),_.S("design:type",Object)],Z2.prototype,"skipNextOpenDialog",void 0);_.x([_.V(),_.S("design:type",Object)],Z2.prototype,"errorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],Z2.prototype,"previousMonthLabel",void 0);
_.x([_.V(),_.S("design:type",Object)],Z2.prototype,"nextMonthLabel",void 0);_.x([_.UM("#textbox"),_.S("design:type",HTMLInputElement)],Z2.prototype,"textbox",void 0);_.x([_.UM("#calendar-dialog"),_.S("design:type",Object)],Z2.prototype,"dialog",void 0);_.x([_.UM("#calendar-main"),_.S("design:type",Object)],Z2.prototype,"JSC$16177_calendarMain",void 0);_.x([_.UM("#date-picker"),_.S("design:type",HTMLElement)],Z2.prototype,"dropdownButton",void 0);
_.x([_.E("calendarConfig.selectedDate"),_.S("design:type",String),_.S("design:paramtypes",[])],Z2.prototype,"dateText",null);_.x([_.E("calendarConfig","calendarConfig.selectedDate"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z2.prototype,"renderData",null);_.x([_.Sb("renderData","calendarConfig.selectedDate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Z2.prototype,"scrollToDate",null);
_.x([_.XC("iron-overlay-canceled"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Z2.prototype,"onEscOrClickingOutside",null);_.x([_.cL({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Z2);
_.y(Z2,"ytd-calendar-date-picker",function(){if(sJR!==void 0)return sJR;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sJR=m},{mode:2});var qkK=_.zq("UTC_OFFSET_FORMAT",{utc_offset:(new oW("Z")).format(new Date)}),Exi=(new Date).getTimezoneOffset()*-60,H0i=new Date,Ici,jJ2=aW(H0i.getTimezoneOffset());Ici=Ozi(YT0(jJ2,H0i));var k3K=_.zq("LOCAL_TIME_GMT_LABEL",{gmt_text:Ici.replace("+0","+").replace("-0","-").replace(":00","")}),dY=function(){var m=_.d.apply(this,arguments)||this;m.selectedTimeIndex=0;m.selectedTimezoneIndex=0;m.timeOfDayOptions=$vP;return m};
_.n(dY,_.d);_.w=dY.prototype;_.w.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var m=OoM();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=m,this.selectedTimeIndex=0;else{var G=rTf(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},m,{selectedDate:G.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(K){return K.secondsSinceMidnight===G.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.w.onDatePicked=function(m){this.selectedDate=m.detail};
_.w.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Zw(this.hostElement,"ytd-date-time-selection-cancelled")};
_.w.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var m=this.selectedDate;m=new Date(m.year,m.month,m.day);_.Zw(this.hostElement,"ytd-date-time-selection-update",Math.floor(m.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+m.getTimezoneOffset()*60))}};
_.w.getTimezoneFormat=function(m){return m.localizedDisplayText?m.localizedDisplayText:_.zq("TIMEZONE_FORMAT",{utc_offset_text:""+m.localizedUtcOffset,city_name:""+m.localizedName})};
_.w.updateSelectedTimeIndexFromBinding=function(m){this.selectedTimeIndex=m.detail.value};
_.w.updateSelectedTimezoneIndexFromBinding=function(m){this.selectedTimezoneIndex=m.detail.value};
_.e_.Object.defineProperties(dY.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var m=this.data.timezoneOptions;var G={name:"Etc/Unknown",localizedName:_.zq("LOCAL_TIME_LABEL"),localizedUtcOffset:qkK,utcOffsetSec:""+Exi,localizedDisplayText:k3K};m?m.length&&m[0].name!==G.name&&(m[0].localizedDisplayText||(G.localizedDisplayText=""),m.unshift(G)):m=[G];return m}}},
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]}}});
dY.prototype.onDateTimeTimezoneChange=dY.prototype.onDateTimeTimezoneChange;dY.prototype.onDatePicked=dY.prototype.onDatePicked;dY.prototype.updateDefaultSelectedValue=dY.prototype.updateDefaultSelectedValue;_.x([_.V(),_.S("design:type",Object)],dY.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],dY.prototype,"calendarConfig",void 0);_.x([_.V(),_.S("design:type",Object)],dY.prototype,"selectedDate",void 0);_.x([_.V(),_.S("design:type",Object)],dY.prototype,"selectedTimeIndex",void 0);
_.x([_.V(),_.S("design:type",Object)],dY.prototype,"selectedTimezoneIndex",void 0);_.x([_.UM("#time-listbox"),_.S("design:type",Object)],dY.prototype,"timeListBox",void 0);_.x([_.UM("#timezone-listbox"),_.S("design:type",Object)],dY.prototype,"timezoneListBox",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dY.prototype,"rendererStamperBehavior",void 0);_.x([_.E("data.timezoneOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],dY.prototype,"timeZones",null);
_.x([_.Mg("data","timeZones"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dY.prototype,"updateDefaultSelectedValue",null);_.x([_.E("selectedTimezoneIndex","timeZones"),_.S("design:type",Object),_.S("design:paramtypes",[])],dY.prototype,"selectedTimezone",null);_.x([_.E("selectedTimeIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],dY.prototype,"selectedTime",null);
_.x([_.XC("ytd-calendar-date-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],dY.prototype,"onDatePicked",null);_.x([_.Sb("selectedTimezone","selectedTime","selectedDate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dY.prototype,"onDateTimeTimezoneChange",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],dY);
_.y(dY,"ytd-date-time-picker-renderer",function(){if(F80!==void 0)return F80;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return F80=m},{mode:1});var C4o;var Pc=function(){var m=_.d.apply(this,arguments)||this;m.boundOnTapDismissButton=function(){m.dismissTapHandler()};
m.dismissButtonOverrides={size:"XS"};return m};
_.n(Pc,_.d);Pc.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}}}}}};
Pc.prototype.dismissTapHandler=function(){_.Zw(this.hostElement,"yt-backstage-attachment-dismissed")};
Pc.prototype.computeAttachmentType=function(m){return m?m.backstageImageRenderer?"image":m.videoRenderer?"video":"none":"none"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Pc.prototype,"attachmentPreview",void 0);_.x([_.V(),_.S("design:type",Object)],Pc.prototype,"dismissButton",void 0);_.x([_.V(),_.S("design:type",Object)],Pc.prototype,"boundOnTapDismissButton",void 0);
_.x([_.V(),_.S("design:type",Object)],Pc.prototype,"dismissButtonOverrides",void 0);_.x([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.S("design:type",String)],Pc.prototype,"attachmentType",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Pc);
_.y(Pc,"ytd-backstage-dismissable-attachment",function(){if(C4o!==void 0)return C4o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return C4o=m},{mode:1});var V7C;var yR=function(){var m=_.d.apply(this,arguments)||this;m.selectedVideoId=void 0;m.picker=void 0;m.dismissButtonOverrides={size:"XS"};m.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return m};
_.n(yR,_.d);_.w=yR.prototype;_.w.onServiceRequestCompleted=function(m){m.stopPropagation()};
_.w.handleAddVideoPreviewAction=function(m){m=this.get("addVideoPreviewAction",m);this.onGetVideoPreviewSuccess(m)};
_.w.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}}}}}};
_.w.onLaunchVideoPicker=function(m){var G=this,K=_.bw(this.get("addVideoLinkAction.title",m)),W=this.get("addVideoLinkAction.onePickHostId",m);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",m);W&&(this.picker||(K=_.aGP(_.Uef(W).setTitle(K).addView(Dk2()).addView(NlR()),function(L){G.onPickVideo(L)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",m)||K.addView("youtube"),this.picker=K.build()),this.picker.setVisible(!0))};
_.w.onPickVideo=function(m){if(m)if(m.action==="cancel")_.Zw(this.hostElement,"yt-video-link-button-cancel");else if(m.action==="picked"){m=m.docs;if(!m||m.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(m=(m==null?0:m.length)?m[0]:void 0)?m.id:void 0;this.setVideoPreview()}};
_.w.setVideoPreview=function(){var m=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){m.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.w.onGetVideoPreviewSuccess=function(m){if(m&&m.videoPreview&&m.cancelButton)this.videoPreview=m.videoPreview,this.cancelButton=m.cancelButton,_.Zw(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.w.onGetVideoPreviewError=function(){this.cancel()};
_.w.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Zw(this.hostElement,"yt-video-link-cancel")};
_.w.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
yR.prototype.onServiceRequestCompleted=yR.prototype.onServiceRequestCompleted;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],yR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yR.prototype,"videoPreview",void 0);_.x([_.V(),_.S("design:type",Object)],yR.prototype,"cancelButton",void 0);_.x([_.V(),_.S("design:type",Object)],yR.prototype,"getVideoPreviewCommand",void 0);_.x([_.V(),_.S("design:type",Object)],yR.prototype,"dismissButtonOverrides",void 0);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],yR.prototype,"onServiceRequestCompleted",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],yR);
_.y(yR,"ytd-backstage-video-link-attachment",function(){if(V7C!==void 0)return V7C;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return V7C=m},{mode:1});var Z0o;var dvG;var P4B;var ej=function(){return _.d.apply(this,arguments)||this};
_.n(ej,_.d);ej.prototype.dataChanged=function(){this.active=!1};
ej.prototype.onTap=function(){_.Zw(this.hostElement,"yt-select-emoji-suggestion",this.data)};
ej.prototype.identity=function(m){return m};
_.e_.Object.defineProperties(ej.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;if((m=this.data)==null?0:(G=m.image)==null?0:(K=G.thumbnails)==null?0:(W=K[0])==null?0:W.url)return m=this.data.image.thumbnails[0].url,m.startsWith("data:image/svg+xml")?S4(m):_.MI(m)}}});
ej.prototype.dataChanged=ej.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],ej.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ej.prototype,"active",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ej.prototype,"dataChanged",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ej.prototype,"imageSrc",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],ej);
_.y(ej,"ytd-emoji-suggestion",function(){if(P4B!==void 0)return P4B;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return P4B=m},{mode:1});var yEk=/.*([:@#].*?)$/,f1=function(){var m=_.d.apply(this,arguments)||this;m.suggestions=[];m.suggestionIndex=-1;m.JSC$16205_lastSuggestionRange=null;return m};
_.n(f1,_.d);_.w=f1.prototype;_.w.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.w.getSuggestions=function(m){var G=[],K=gh2(this.emojiManager,m.substr(0,3));if(K)for(var W in K)if(W.toLocaleLowerCase().indexOf(m)===0){var L=K[W];if(L&&L.emojiId){L=p5(this.emojiManager,L.emojiId);var A=void 0,O=void 0,c=void 0,u=void 0,h=((A=L)==null?0:A.isCustomEmoji)?(O=L)==null?void 0:(c=O.shortcuts)==null?void 0:c[0]:(u=L)==null?void 0:u.emojiId;A=void 0;G.push({suggestion:{image:(A=L)==null?void 0:A.image,alt:h,text:W}});if(G.length>=64)break}}return G?G.sort(function(J,N){return N.suggestion.text<
J.suggestion.text?-1:N.suggestion.text===J.suggestion.text?0:1}):null};
_.w.insertSuggestion=function(m){_.Zw(this.hostElement,"yt-insert-suggestion",{range:this.JSC$16205_lastSuggestionRange,text:m.alt});this.dropdown.opened=!1};
_.w.updateSuggestionsAtCaret=function(m){this.updateSuggestions(m,this.retrieveTextBeforeRange(m))};
_.w.offsetStartOfRangeBy=function(m,G){m.startOffset>=G&&m.setStart(m.startContainer,m.startOffset-G)};
_.w.updateSuggestions=function(m,G){var K=this;this.JSC$16205_lastSuggestionRange&&(this.JSC$16205_lastSuggestionRange.detach(),this.JSC$16205_lastSuggestionRange=null);if((G=yEk.exec(G))&&G.length&&(G=G[G.length-1].toLocaleLowerCase(),G.length>2||G===":_")&&(this.offsetStartOfRangeBy(m,G.length),this.JSC$16205_lastSuggestionRange=m,(m=this.getSuggestions(G))&&m.length)){this.suggestions=m;_.Pv(this,function(){K.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(m.length-1);return}this.dropdown.opened=!1};
_.w.onKeyDown=function(m){if(this.dropdown.opened)switch(m.key){case "Escape":this.dropdown.opened=!1;m.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);m.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);m.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),m.preventDefault()}};
_.w.onKeyUp=function(m,G){switch(m.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(G);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(G)}};
_.w.onKeyPress=function(m){m.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),m.preventDefault())};
_.w.changeSuggestionIndex=function(m){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(m+this.suggestions.length)%this.suggestions.length,m=this.dropdownContent.children[this.suggestionIndex],m.active=!0,this.dropdownContent.scrollTop=m.offsetTop)};
_.w.retrieveTextBeforeRange=function(m){var G=m.startContainer;return G&&G.nodeType===Node.TEXT_NODE?G.textContent.substr(0,m.startOffset):""};
f1.prototype.onKeyPress=f1.prototype.onKeyPress;f1.prototype.onKeyUp=f1.prototype.onKeyUp;f1.prototype.onKeyDown=f1.prototype.onKeyDown;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],f1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Array)],f1.prototype,"suggestions",void 0);_.x([_.V(),_.S("design:type",_.um)],f1.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Number)],f1.prototype,"verticalSuggestionsOffset",void 0);
_.x([_.UM("#dropdown"),_.S("design:type",Object)],f1.prototype,"dropdown",void 0);_.x([_.UM("#dropdown-content"),_.S("design:type",HTMLDivElement)],f1.prototype,"dropdownContent",void 0);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],f1.prototype,"onKeyDown",null);_.x([_.XC("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent,Range]),_.S("design:returntype")],f1.prototype,"onKeyUp",null);
_.x([_.XC("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],f1.prototype,"onKeyPress",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-emoji-input"})],f1);
_.y(f1,"ytd-emoji-input",function(){if(dvG!==void 0)return dvG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dvG=m},{mode:2});var e8o;var xf=function(){var m=_.d.apply(this,arguments)||this;m.hasMaxOptions=!1;return m};
_.n(xf,_.d);_.w=xf.prototype;_.w.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.w.setPrefilledChoices=function(m){var G=this;this.set("pollOptions",[]);var K;for(K=0;K<Math.min(m.length,this.data.maxPollOptions);K++)this.push("pollOptions",m[K].substring(0,this.data.maxPollOptionChars));for(;K<this.data.minPollOptions;K++)this.push("pollOptions","");this.hasMaxOptions=K>=this.data.maxPollOptions;_.Pv(this,function(){for(var W=G.pollOptions,L=_.VL(G.hostElement).querySelectorAll(".poll-option-input"),A=0;A<L.length;A++)L[A].value=W[A]})};
_.w.focusChanged=function(){_.eb(this.hostElement)};
_.w.onInput=function(){var m=this;_.t9(this,"onInput",function(){m.isValid()?_.Zw(m.hostElement,"yt-commentbox-post-enable"):_.Zw(m.hostElement,"yt-commentbox-post-disable")},300)};
_.w.setPollOptions=function(){var m=[],G,K=((G=this.data)==null?0:G.minPollOptions)?this.data.minPollOptions:0;for(G=0;G<K;G++)m.push("");return m};
_.w.addPollOption=function(){var m=this;_.Zw(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Fu.addLowPriorityJob(function(){var G;(G=_.VL(m.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||G.focus()})};
_.w.onRemovePollOption=function(m){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Zw(this.hostElement,"yt-poll-attachment-dismiss")):(m=this.repeat.indexForElement(m.target.parentNode),m!==null&&(this.splice("pollOptions",m,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Zw(this.hostElement,"yt-commentbox-post-enable"))))};
_.w.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.w.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var m=0,G=this.pollOptions.length;m<G;m++)if(this.pollOptions[m].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.w.getPollOptions=function(){return this.pollOptions};
_.w.setPollOptionsFromInputs=function(){for(var m=_.VL(this.hostElement).querySelectorAll(".poll-option-input"),G=0;G<m.length;G++)this.pollOptions[G]=m[G].value.trim()};
_.w.clearPollOptions=function(){var m=_.VL(this.hostElement).querySelectorAll(".poll-option-input");m=_.g(m);for(var G=m.next();!G.done;G=m.next())G.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.w.getSimpleString=function(m){return _.bw(m)};
_.w.updateValueFromBinding=function(m){if(m.target&&this.pollOptions){var G=Array.from(_.VL(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(m.target);if(G>=0){var K;this.pollOptions[G]=(K=m.detail.value)!=null?K:"";this.notifyPath("pollOptions."+G)}}};
xf.prototype.dataChanged=xf.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xf.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],xf.prototype,"pollOptions",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],xf.prototype,"hasMaxOptions",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],xf.prototype,"enableCreationBox",void 0);
_.x([_.UM("#repeat"),_.S("design:type",A9)],xf.prototype,"repeat",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xf.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-poll-attachment"})],xf);
_.y(xf,"ytd-poll-attachment",function(){if(e8o!==void 0)return e8o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e8o=m},{mode:2});var fcl;var xv0;var XI2;var Skl;var XK=function(){return _.d.apply(this,arguments)||this};
_.n(XK,_.d);_.e_.Object.defineProperties(XK.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XK.prototype,"rendererBehaviors",void 0);_.x([_.V(),_.S("design:type",Object)],XK.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],XK.prototype,"focused",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("focused"),_.S("design:type",Object),_.S("design:paramtypes",[])],XK.prototype,"ariaSelected",null);_.x([_.cL({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],XK);
_.y(XK,"yt-user-mention-suggestion-renderer",function(){if(Skl===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;XI2===void 0&&(XI2=document.createElement("template"));var W=XI2;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Skl=m}m=Skl;return m},{mode:2});var R8F;var Uvk;var Sj=function(){var m=_.d.apply(this,arguments)||this;m.focusedSuggestionIndex=-1;return m};
_.n(Sj,_.d);_.w=Sj.prototype;_.w.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.w.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.w.setFocusedSuggestionIndex=function(m){!this.data||!this.data.suggestions||m<0||m>=this.data.suggestions.length||(this.focusedSuggestionIndex=m,m=this.getSuggestionId(m),this._setFocusedSuggestionId(m))};
_.w.advanceSuggestion=function(m){this.focusedSuggestionIndex===-1||m!==-1&&m!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+m),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.w.ensureSuggestionVisible=function(m){m=this.getSuggestionId(m);m=_.VL(this.hostElement).querySelector("[id="+m+"]");m!=null&&(m.offsetTop<this.hostElement.scrollTop?m.scrollIntoView(!0):m.offsetTop+m.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&m.scrollIntoView(!1))};
_.w.getSuggestionId=function(m){return"user-mention-suggestion-"+m};
_.w.onSuggestionTap=function(m){var G=_.Q(m.model.item,ua0);this.ytRendererBehavior.logExplicitClick(G);_.Zw(this.hostElement,"yt-user-mention-suggestion-selected",{data:G,index:m.model.index})};
_.w.onSuggestionMouseMove=function(m){m.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(m.model.index)};
_.w.isSuggestionFocused=function(m,G){return m===G};
_.w.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.w.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("focused-suggestion-id-changed",this.focusedSuggestionId))};
Sj.prototype.focusedSuggestionIdChangedForBinding=Sj.prototype.focusedSuggestionIdChangedForBinding;Sj.prototype.onDomChange=Sj.prototype.onDomChange;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Sj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Sj.prototype,"focusedSuggestionIndex",void 0);_.x([_.V({readOnly:!0}),_.S("design:type",String)],Sj.prototype,"focusedSuggestionId",void 0);
_.x([_.XC("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Sj.prototype,"onDomChange",null);_.x([_.Sb("focusedSuggestionId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Sj.prototype,"focusedSuggestionIdChangedForBinding",null);_.x([_.cL({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Sj);
_.y(Sj,"yt-user-mention-suggestions-dropdown",function(){if(Uvk===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;R8F===void 0&&(R8F=document.createElement("template"));var W=R8F;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Uvk=m}m=Uvk;return m},{mode:2});var Ry=function(){var m=_.d.apply(this,arguments)||this;m.suggestionsResponse=null;m.activeMention=null;m.selectionChangeListener=m.onSelectionChange.bind(m);m.handlesEnabled=_.F("enable_handles_in_mention_suggest_posts");m.handlesInMentionSuggestionsEnabled=_.F("handles_in_mention_suggest_posts");m.zeroPrefixMentionSuggestionEnabled=_.F("enable_zero_prefix_mention_suggestion_web");m.pendingQuery=null;m.flowNonce=null;return m};
_.n(Ry,_.d);_.w=Ry.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.w.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.w.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.w.hasSuggestions=function(m){return!!(m&&m.suggestions&&m.suggestions.length>0)};
_.w.onInput=function(){var m=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var G=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),K=this.activeMention.JSC$11657_getText().slice(-1)===" ",W=this.activeMention.JSC$11657_getText().slice(-2,-1)===" ",L="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11657_getText().slice(-2,
-1))>=0;L=this.zeroPrefixMentionSuggestionEnabled&&L;if(this.activeMention.isCollapsed()||(G||W||L)&&K)this.cancelActiveMention();else{var A=this.activeMention.JSC$11657_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.t9(this,"requestSuggestions",function(){m.requestSuggestions(A)},100)}}}};
_.w.onServiceRequestSent=function(m){m.stopPropagation()};
_.w.onServiceRequestCompleted=function(m){m.stopPropagation();m=m.detail.data;m.query&&(!this.pendingQuery||this.pendingQuery!==m.query)||!this.zeroPrefixMentionSuggestionEnabled&&m.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=m,this.hasSuggestions(m)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.w.onServiceRequestError=function(m){m.stopPropagation()};
_.w.onUserMentionSuggestionSelected=function(m){this.selectSuggestion(m.detail.data,m.detail.index)};
_.w.onSelectionChange=function(){if(this.activeMention){var m=_.Bv(),G=this.activeMention.JSC$11657_containsRange(m);m=m&&this.containsHelper(this.dropdown,m.getContainer());G||m||this.cancelActiveMention()}};
_.w.containsHelper=function(m,G){var K;if(((K=window.ShadyDOM)==null?void 0:K.noPatch)===!0)return m.contains(G);for(;G;){if(G===m)return!0;G=G instanceof ShadowRoot?G.host:G.parentNode}return!1};
_.w.maybeStartSuggest=function(){var m=_.Bv();if(m&&m.isCollapsed()){var G=m.JSC$11657_getStartNode(),K=m.JSC$11657_getStartOffset();if(G instanceof Text&&!(K<1)){var W=G.textContent;!(W=W&&W.charAt(K-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(W)<0||(this.activeMention=_.iL(G,K-1,m.JSC$11657_getEndNode(),m.JSC$11657_getEndOffset()),this.flowNonce=LJ(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.w.updateActiveMention=function(){if(this.activeMention){var m=_.Bv();m&&m.isCollapsed()&&(this.activeMention=_.iL(this.activeMention.JSC$11657_getStartNode(),this.activeMention.JSC$11657_getStartOffset(),m.JSC$11657_getEndNode(),m.JSC$11657_getEndOffset()))}};
_.w.requestSuggestions=function(m){if(this.activeMention){var G={suggestions_query:m};this.pendingQuery=m;_.yQ(this.hostElement,[this.suggestionsEndpoint,G])}};
_.w.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()};
_.w.focusPreviousSuggestion=function(m){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),m.preventDefault())};
_.w.focusNextSuggestion=function(m){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),m.preventDefault())};
_.w.selectFocusedSuggestion=function(m){if(this.hasSuggestions(this.suggestionsResponse)){var G=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Q(G,ua0)&&(this.selectSuggestion(_.Q(G,ua0),this.dropdown.focusedSuggestionIndex),m.preventDefault())}};
_.w.selectSuggestion=function(m,G){if(m){var K=this.activeMention;if(K){var W=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&m.handle?_.tY(W,"\u00a0\u2068@"+m.handle+"\u2069\u00a0"):this.handlesEnabled?_.tY(W,"\u00a0"+m.displayName+"\u00a0"):_.tY(W,"\u00a0@"+m.displayName+"\u00a0");Gp(W,"/channel/"+m.channelId);W.classList.add("yt-formatted-string","yt-simple-endpoint");W.setAttribute("spellcheck","false");K.isCollapsed()||K.JSC$11657_removeContents();K.insertNode(W,!0);m=document.createTextNode(" ");
W.parentNode.insertBefore(m,W.nextSibling);window.getSelection().collapse(m,1);G={suggestionSelected:{suggestionIndex:G}};if(this.zeroPrefixMentionSuggestionEnabled){var L;G.suggestionSelected.isZeroPrefix=((L=this.suggestionsResponse)==null?void 0:L.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",G);this.cancelActiveMention();_.Zw(this.hostElement,"yt-mention-inserted")}}};
_.w.getPositionTarget=function(m){return m&&m.getBrowserRangeObject()};
_.w.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.w.onFocusedSuggestionIdChanged=function(m){var G=_.Gmf(this.hostElement)[0];G&&(m.detail.value?G.setAttribute("aria-activedescendant",m.detail.value):G.removeAttribute("aria-activedescendant"))};
_.w.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.w.logGELEvent=function(m,G){m={eventType:m,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};G&&(m=Object.assign(m,G));_.Fx("userMentionAutoCompleteBoxEvent",m)};
Ry.prototype.onDomChange=Ry.prototype.onDomChange;Ry.prototype.onUserMentionSuggestionSelected=Ry.prototype.onUserMentionSuggestionSelected;Ry.prototype.onServiceRequestError=Ry.prototype.onServiceRequestError;Ry.prototype.onServiceRequestCompleted=Ry.prototype.onServiceRequestCompleted;Ry.prototype.onServiceRequestSent=Ry.prototype.onServiceRequestSent;Ry.prototype.onInput=Ry.prototype.onInput;_.x([_.q(_.x4),_.S("design:type",Object)],Ry.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Ry.prototype,"suggestionsEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],Ry.prototype,"suggestionsResponse",void 0);_.x([_.V(),_.S("design:type",Object)],Ry.prototype,"activeMention",void 0);_.x([_.UM("#dropdown"),_.S("design:type",Object)],Ry.prototype,"dropdown",void 0);_.x([_.UM("#iron-dropdown"),_.S("design:type",Object)],Ry.prototype,"ironDropdown",void 0);
_.x([_.XC("input"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Ry.prototype,"onInput",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ry.prototype,"onServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ry.prototype,"onServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ry.prototype,"onServiceRequestError",null);_.x([_.XC("yt-user-mention-suggestion-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ry.prototype,"onUserMentionSuggestionSelected",null);
_.x([_.XC("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ry.prototype,"onDomChange",null);_.x([_.cL({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Ry);
_.y(Ry,"yt-user-mention-autosuggest-input",function(){if(xv0===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;fcl===void 0&&(fcl=document.createElement("template"));var W=fcl;K.call(G,W.content.cloneNode(!0),m.content.firstChild);xv0=m}m=xv0;return m},{mode:2});var Um=null;
_.LD({is:"ytd-commentbox",_template:function(){if(Z0o!==void 0)return Z0o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Z0o=m},
behaviors:[_.j4J.YtHostElementBehavior,_.x4,_.Pq.YtActionHandlerBehavior,_.cq.YtComponentBehavior,_.$P.YtRendererstamperBehavior,_.vQF.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(m,G){return _.yx(m.entities,"aadcGuidelinesStateEntityPayload",G)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(m,G){return _.yx(m.entities,"commentboxStateEntity",G)},
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 _.Jx}},
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:_.F("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.F("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",_.xC(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(m){this.fire(m?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(m){this.set("submitButtonDisabled",void 0);this.clear();m&&this.computeIsEmojiButtonDisplayed_(m)&&(m=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&m.updateEmojiCategories()},
observePrefilledImage_:function(m,G,K){this.isValidPrefilledImage_(m,G,K)&&(this.prefilledAttachment_="image",this.prefilledImageData_=G,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(m,G){this.isValidPrefilledVideo_(m,G)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(m){m&&m.pollData&&m.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(m.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.yv();this.focus()},
detached:function(){document.removeEventListener("tap",_.xC(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(m){m=m.detail;m=m.isCustomEmoji?m.shortcuts[0]:m.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,m);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var m=_.Bv();if(m){m=m.getBrowserRangeObject();for(var G=m.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return m;G=G.parentNode}}m=this.getEditableTextArea_();m=_.mU(m,m.childNodes.length);m.select();return m.getBrowserRangeObject()},
insertTextWithEmojis_:function(m,G,K){(G=this.emojiManager.createDocumentFragment(G,!0,!1,K===void 0?!0:K))&&G.childNodes.length!==0&&(m.collapsed||m.deleteContents(),K=G.lastChild,m.insertNode(G),_.kko(K).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var m=_.Bv();if(m){var G=m.JSC$11657_getStartNode(),K=m.JSC$11657_getEndNode();if(hyV(G)&&hyV(K)){var W=m.JSC$11657_getStartOffset(),L;if(_.eI&&G.nodeType===Node.ELEMENT_NODE&&(L=_.N$o(G)))_.mU(L,0).select();else{L=VH(G)?G:_.N7(G,VH);var A=VH(K)?K:_.N7(K,VH);if(L||A)if(m.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){m=!0;W===G.length&&(m=!1);if(Um==="end"||Um==="right")m=!1;G=G.parentNode;m=[].concat(_.Bz(G.parentNode.childNodes)).indexOf(G)+(m?0:1);_.mU(G.parentNode,
m).select()}}else L?L.previousSibling&&L.previousSibling.length>0?_.iL(K,m.JSC$11657_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),L.parentNode.insertBefore(G,L),_.iL(K,m.JSC$11657_getEndOffset(),G,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.iL(G,m.JSC$11657_getStartOffset(),A.nextSibling,1).select():(K=document.createTextNode("\u200b"),A.parentNode.insertBefore(K,A.nextSibling),_.iL(G,m.JSC$11657_getStartOffset(),K,K.length).select()));
Um=null}}else Um=null}else Um=null},
leftKeyPressed_:function(){Um="left"},
rightKeyPressed_:function(){Um="right"},
endKeyPressed_:function(){Um="end"},
maybeDeleteChip_:function(){var m=FYM(!0);if(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();_.Tb(K,G,m,m.childNodes.length).select()}},
maybeBackspaceChip_:function(){var m=FYM(!1);if(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();_.Tb(K,G,m,0).select()}},
maybeBackspaceChipWordMode_:function(m){var G=_.Bv();if(G.isCollapsed()){var K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();var W=Q5d(K,G,!0);W&&(_.Tb(K,G,W,0).select(),document.execCommand("delete"),m.preventDefault(),m.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(m){var G=_.Bv();if(G.isCollapsed()){var K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();var W=Q5d(K,G,!1);W&&(_.Tb(K,G,W,W.childNodes.length).select(),document.execCommand("delete"),m.preventDefault(),m.stopImmediatePropagation())}},
onTap_:function(m){if(!m.defaultPrevented&&(m.currentTarget.tagName==="YTD-COMMENTBOX"&&VH(m.target)&&m.preventDefault(),this.isEmojiPickerDisplayed)){var G=this.$$("#emojis"),K=this.$$("#emoji-button"),W=this.getEditableTextArea_();if((m=m.path?m.path:m.composedPath&&m.composedPath())&&!m.includes(G)&&!m.includes(W)&&!m.includes(K))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(m,G,K){return m==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G!==void 0&&G.encryptedBlobId!==null&&G.sourceExternalVideoId!==null&&K!==void 0&&K.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(m,G){return m==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!G&&!!G.videoRenderer&&!!G.videoRenderer.videoId},
isValidPrefilledAttachment_:function(m,G,K){return this.isValidPrefilledImage_(m,G,K)||this.isValidPrefilledVideo_(m,K)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.F("enable_multi_image_post_creation")){var m=this.$$("ytd-backstage-multi-image-select-renderer");m&&m.hasImages()&&m.cancel()}else(m=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&m.cancel();(m=this.$["poll-attachment"])&&this.hasPoll_&&m.clearPollOptions();(m=this.$["image-poll-attachment"])&&this.hasImagePoll_&&m.resetPollOptions();(m=this.$["quiz-attachment"])&&this.hasQuiz_&&m.resetQuizOptions();
(m=this.$["video-link-attachment"])&&this.hasVideo_&&m.cancel();(m=this.$["access-restrictions-selector"].firstElementChild)&&m.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 _.VL(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.VL(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(m,G){m=JT6(m,this.emojiManager,G).cloneNode(!0);for(G=m.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var K=_.u7();_.bBS(K,G);G=K.nextSibling;break;case "DIV":(K=G.lastChild)&&G.nextSibling&&_.NN(_.u7(),K);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.JY(_.u7(),G);K&&K.nodeName==="BR"&&_.mX(K);K=G;G.hasChildNodes()?(G=G.firstChild,
_.v2F(K)):(G=G.nextSibling,_.mX(K));break;default:G=G.nextSibling}return asJ(m)},
onAddImageError_:function(m){m.stopPropagation();this.errorMessage_=_.nG(m.detail)},
setTextAreaValue_:function(m){m||(m="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof m==="string"&&(m={runs:[{text:m}]});G.text=m},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Um=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var m=this.getEditableTextArea_();m&&(_.mU(m,m.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.E8("HTML_DIR")==="rtl"){var m=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";m.setAttribute("dir",G)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var m;return fpV((m=this.$["quiz-attachment"])==null?void 0:m.getExplanationText())||fpV(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var m=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(m=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(m,!0);this.updateCharCount_();this.setSubmitButton_();m=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=m.scrollHeight>m.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var m=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:m})},
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(m){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(m)},
onPasteEmoji_:function(m){m.preventDefault();m.stopImmediatePropagation();m=m.clipboardData.getData("text/plain");this.insertText_(m,!1,!1)},
insertText_:function(m,G,K){G=G===void 0?!1:G;K=K===void 0?!0:K;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&m){var W=this.getInputRange_().cloneRange();this.emojiManager&&W&&(G&&this.emojiInput.offsetStartOfRangeBy(W,m.length),this.insertTextWithEmojis_(W,m,K),pVG(this.getEditableTextArea_().lastChild)||(W=this.getInputRange_().cloneRange()),W&&(this.emojiInput.updateSuggestions(W,m),this.updateSuggestionOffset_(W)))}},
setSubmitButton_:function(){if(this.data){var m=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",G=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(m||G){var K=this.getTextAreaValue().trim();G=K===this.previousText_;K=!K||this.aboveCharLimit_;m&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(K=this.aboveCharLimit_);this.submitButtonDisabled=
G||K||!this.getTextLength();m&&_.F("enable_post_scheduling")&&(this.submitButtonDisabled=G&&!this.scheduledPublishTimeSec_||K)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.bw,computeCreationBoxClass_:function(m){return m?"focused":"not-focused"},
computeFooterMessageClass_:function(m,G){return G?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(m,G){return G?G:m},
computeFooterMessageHidden_:function(m,G){return!G&&!m},
computePlaceholderText_:function(m,G,K){return(K==="video"||K==="image")&&(m==null?0:m.prefilledPlaceholderText)?m==null?void 0:m.prefilledPlaceholderText:G==="poll"||G==="image-poll"?m==null?void 0:m.pollPostPlaceholderText:G==="quiz"?m==null?void 0:m.quizPostPlaceholderText:G==="image"?m==null?void 0:m.imagePostPlaceholderText:m==null?void 0:m.placeholderText},
computeHideAttachmentButtons_:function(m,G,K,W){return m===void 0?!1:W&&this.getSimpleString(W)===this.getSimpleString(m.rateLimitErrorMessage)?!0:G!=="none"||K!=="none"||!m.videoLinkButton&&!m.pollButton&&!m.imagePollButton&&!m.quizButton&&!m.imageButton},
computeHideDismissableAttachment_:function(m){return m!=="image"&&m!=="video"},
computeHasVideo_:function(m){return m==="video"},
computeHasImage_:function(m){return m==="image"},
computeHasPoll_:function(m){return m==="poll"},
computeHasImagePoll_:function(m){return m==="image-poll"},
computeHasQuiz_:function(m){return m==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(m){return m&&m.backstageAttachment?m.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!m.backstageAttachment.quizRenderer&&!m.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(m){if(this.isValidPrefilledAttachment_(m.purpose,m.prefilledImageData,m.backstageAttachment))return m.backstageAttachment},
computeEditAttachment_:function(m){if(this.computePrefilledContent_(m)===void 0)return m.backstageAttachment},
computeAuthorThumbnailDimension_:function(m,G){return m&&!G?24:40},
computeImageUploadEndpoint_:function(m){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",m)},
computeRateLimitErrorCommands_:function(m){var G,K;return m==null?void 0:(G=m.advancedTierFeatures)==null?void 0:(K=G.rateLimit)==null?void 0:K.rateLimitCommands},
computeIsBackstageComment_:function(m){return!(!m||m!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(m){return this.get("submitButton.buttonRenderer.serviceEndpoint",m)||this.get("replyButton.buttonRenderer.serviceEndpoint",m)||this.get("postButton.buttonRenderer.serviceEndpoint",m)},
computeSubmitButtonOverride:function(){if(_.F("web_modern_buttons")){var m,G;return{segmentedPosition:this.dropdownSchedulePanel_||!((m=this.data)==null?0:(G=m.postOptionsMenu)==null?0:G.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.F("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(m,G){m=this.get("submitButton.buttonRenderer",m)||this.get("replyButton.buttonRenderer",m)||this.get("postButton.buttonRenderer",m);G&&(m=G);m&&(m=Object.assign({},m),m.serviceEndpoint=void 0,m.isDisabled=this.submitButtonDisabled);return m},
computeHasExternalLinksAccess_:function(m){if(_.F("enable_rfa_external_links")){var G,K,W;return(W=m==null?void 0:(G=m.advancedTierFeatures)==null?void 0:(K=G.externalLinks)==null?void 0:K.allowExternalLinks)!=null?W:!0}return!0},
computeIsEmojiButtonDisplayed_:function(m){return m.emojiButton&&m.emojiPicker&&m.emojiPicker.emojiPickerRenderer&&m.emojiPicker.emojiPickerRenderer.categories?m.emojiPicker.emojiPickerRenderer.categories.find(function(G){return G.emojiPickerCategoryRenderer?G.emojiPickerCategoryRenderer.emojiIds&&G.emojiPickerCategoryRenderer.emojiIds.length>0:G.emojiPickerUpsellCategoryRenderer?G.emojiPickerUpsellCategoryRenderer.emojis&&G.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(m){return m.charLimit?m.charLimit:null},
computeDropdownSchedulingPanel_:function(m,G){if(m==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&G)return G},
computeInlineSchedulingPanel_:function(m,G){if(m==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&G)return G},
computeHideAuthorThumbnail_:function(m,G){return m||this.computeUseIdentityChip_(G)},
computeHideIdentityChipRenderer_:function(m,G){return m||!this.computeUseIdentityChip_(G)},
computeUseIdentityChip_:function(m){return!!m&&!!m.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(m){var G,K,W,L;(m==null?0:(G=m.detail)==null?0:(K=G.endpoint)==null?0:K.ypcGetOffersEndpoint)||(m==null?0:(W=m.detail)==null?0:(L=W.endpoint)==null?0:L.ypcOffersEndpoint)?(m.stopPropagation(),_.yQ(this,[m.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",m)&&(m.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(m){this.addedAttachment="video";this.selectedVideoId_=m.detail.videoId},
commentboxStateEntityChanged_:function(m){var G=this;(m==null?void 0:m.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(m==null?void 0:m.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){G.focus()})},
onYtServiceRequestSent_:function(m,G){if(G.actions)for(m=_.g(G.actions),G=m.next();!G.done;G=m.next())G.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(m){this.isLoading=!1;var G=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",m),K,W,L,A=m==null?void 0:(K=m.detail)==null?void 0:(W=K.data)==null?void 0:(L=W.actionResult)==null?void 0:L.commentboxStateEntityKey;if(G)this.errorMessage_=G;else if(A){var O;this.dismissData_=m==null?void 0:(O=m.detail)==null?void 0:O.data;this.commentboxStateKey_=A}else{this.clear();var c;this.fire("yt-commentbox-dismiss",m==null?void 0:(c=m.detail)==
null?void 0:c.data)}},
onYtServiceRequestError_:function(m){m.stopPropagation();this.isLoading=!1;var G,K;if(((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((K=this.data)==null?void 0:K.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(G=this.get("detail.error.args",m)||[],G.length>1&&G[1].message){this.handlePostsServiceRequestError_(G[1].message);return}(m=this.get("detail.error.message",m))?this.errorMessage_=this.data.errorMessage||_.nG(m):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(m){if(_.F("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var G=_.g(this.rateLimitErrorCommands),K=G.next();!K.done;K=G.next())if(K=K.value,K.errorLabel===m){_.Xj(K.command,this.hostElement);return}this.errorMessage_=_.nG(m)},
submitIfNotBackstagePost_:function(m){if(!this.isBackstagePost)this.onSubmit_(m)},
onSubmit_:function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I;return _.Y(function(Z){switch(Z.nextAddress){case 1:m.stopPropagation();if(!G.serviceEndpoint||!G.isValidInput_())return Z.return();if(G.shouldShowPostAadcNotice_())return G.showPostAadcNotice_(),Z.return();if(G.shouldShowCommentAadcNotice_())return G.showCommentAadcNotice_(),Z.return();if(!(G.$$("ytd-backstage-multi-image-select-renderer")&&G.hasImage_&&_.F("enable_multi_image_post_creation"))){Z.jumpTo(2);break}K=G.$$("ytd-backstage-multi-image-select-renderer");
return Z.yield(K.getAllUploadStatuses(),3);case 3:W=Z.yieldResult;if(!W)return Z.return();L=_.g(W);for(A=L.next();!A.done;A=L.next())if(O=A.value,O.encryptedBlobId===void 0)return G.isLoading=!1,u=c=void 0,G.errorMessage_=(u=(c=G.imageUploadEndpoint_)==null?void 0:c.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?u:null,Z.return();return Z.return(G.submitForm_(void 0,void 0,void 0,void 0,K.images,G.taggedVideoId_));case 2:if(!G.hasImagePoll_||!G.$["image-poll-attachment"]){Z.jumpTo(4);
break}return Z.yield(G.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:h=Z.yieldResult;if(!h)return Z.return();J=_.g(h);for(N=J.next();!N.done;N=J.next())if(D=N.value,!D.encryptedBlobId)return G.isLoading=!1,t=void 0,G.errorMessage_=(t=G.data.errorMessage)!=null?t:null,Z.return();case 4:v=(a=G.$$("ytd-backstage-image-select-renderer"))&&a.uploadPromise(),I=G.getSharedPostId_(),v?v.then(function(){G.submitForm_.apply(G,_.Bz(_.mb.apply(0,arguments)))}).catch(function(k){G.isLoading=!1;
G.errorMessage_=_.nG(k.message)}):G.selectedVideoId_?G.submitForm_(void 0,G.selectedVideoId_):G.prefilledAttachment_==="image"?G.submitForm_(G.prefilledImageData_.encryptedBlobId,void 0,void 0,G.prefilledImageData_.sourceExternalVideoId,void 0,G.taggedVideoId_):G.prefilledAttachment_==="video"?G.submitForm_(void 0,G.data.backstageAttachment.videoRenderer.videoId):I?G.submitForm_(void 0,void 0,I):G.taggedVideoId_!==void 0?G.submitForm_(void 0,void 0,void 0,void 0,void 0,G.taggedVideoId_):G.submitForm_(),
_.ey(Z)}})},
openSchedulingPanel:function(m){m&&m.scheduleButton&&m.scheduleButton.buttonRenderer&&(this.scheduleButton_=m.scheduleButton.buttonRenderer);m&&m.dateTimePicker&&this.set("data.schedulingDateTimePicker",m.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(m){m.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(m){m.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(m){m.stopPropagation();m.detail.alertMessage&&(this.alertMessage_=m.detail.alertMessage)},
onImageSelected_:function(m){m.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(m){m.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(m){m.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(m.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(m){m.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(m){var G=this.$["video-link-attachment"];G&&G.onLaunchVideoPicker(m)},
onAttachmentDismiss_:function(m){m.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"&&_.F("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.F("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 m;if(this.addedAttachment==="image-poll"&&((m=this.$["image-poll-attachment"])==null||!m.isValid()))return!1;var G;if(this.addedAttachment==="quiz"&&((G=this.$["quiz-attachment"])==null||!G.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;m=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(m=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")m=!0;return m||!!this.getTextAreaValue().trim()},
submitForm_:function(m,G,K,W,L,A){var O=this.getTextAreaValue().trim(),c={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&O===this.previousText_&&(O=void 0);O!==void 0&&(c.comment_text=O);this.isLoading=!0;A!=void 0&&(c.tagged_video_id=A);m?(c.image_blob_id=m,this.imagePreviewCoordinates_&&(c.image_preview_coordinates=this.imagePreviewCoordinates_)):G?c.attached_video_id=G:K?c.shared_post_id=K:L&&L.length>0&&(c.images_data=L.map(function(u){return{encryptedBlobId:u.encryptedBlobId,
previewCoordinates:u.previewCoordinates}}));
W&&(c.source_video_id=W);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(c.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(c.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(c.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());this.addedAttachment==="quiz"&&(c.quiz_options=
this.$["quiz-attachment"].getPostCreateOptions());_.F("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(c.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.yQ(this,[this.serviceEndpoint,c])},
onIsInputFocusChanged_:function(m,G){m?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(m){var G=this.getEditableTextArea_();[].concat(_.Bz(m.dataTransfer.items)).forEach(function(K){K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(W){G.appendChild(document.createTextNode(W))})});
m.preventDefault()},
preventDefault_:function(m){m.preventDefault()},
onSuggestionInsert_:function(m){this.insertTextWithEmojis_(m.detail.range,m.detail.text)},
onEmojiSuggestionClick_:function(m){this.emojiInput.insertSuggestion(m.detail)},
computeSubmitButtonClass_:function(m,G){return!G||m?"":"with-options"},
updateSuggestionOffset_:function(m){if(this.emojiInput&&_.VL(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,K=m.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-K)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;m=m.getBoundingClientRect().left-G;_.VL(this.emojiInput).querySelector("#dropdown").style.marginLeft=m+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(m){if(_.F("enable_post_scheduling")&&this.data&&this.data.purpose){m=m.detail;if(Math.floor(Date.now()/1E3)>=m)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var G=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(G)||G!==m?this.scheduledPublishTimeSec_=m:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=m;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var m=["image-button","image-poll-button","poll-button","quiz-button"];_.F("auto_convert_posts_video_tag")||m.push("video-link-button");return m},
getButtonRenderer:function(m,G){if(m)switch(G){case "video-link-button":var K;return((K=m.videoLinkButton)==null?void 0:K.buttonRenderer)||void 0;case "image-button":var W;return((W=m.imageButton)==null?void 0:W.buttonRenderer)||void 0;case "poll-button":var L;return((L=m.pollButton)==null?void 0:L.buttonRenderer)||void 0;case "image-poll-button":var A;return((A=m.imagePollButton)==null?void 0:A.buttonRenderer)||void 0;case "quiz-button":var O;return((O=m.quizButton)==null?void 0:O.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var m;return(m=this.data)==null||!m.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var m,G;return!((m=this.data)==null||!m.openAadcDialog)&&!((G=this.aadcGuidelinesState_)==null||!G.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.E8("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var m;((m=this.data)==null?0:m.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.bs("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(m){m.clickTrackingParams&&_.l1().clickCommand(m);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.dU(this,"yt-close-popup-action")},
onHideIdentityChip:function(m){var G;this.set("data.placeholderText",(G=m.hideIdentityChipAction)==null?void 0:G.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var zQ=function(){var m=_.d.apply(this,arguments)||this;m.isOpen=!1;m.modern=_.F("web_modern_buttons");m.roundedContainer=!0;m.dropdownButtonOverride=_.F("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;m.inPopupContainer=!1;m.isCommentboxLoading=!1;var G=["image-button","image-poll-button","poll-button"];_.F("enable_quiz_creation")&&G.push("quiz-button");_.F("auto_convert_posts_video_tag")||G.push("video-link-button");m.attachmentButtonIds=G;m.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 m};
_.n(zQ,_.d);_.w=zQ.prototype;_.w.computeButtonOverride=function(){var m;return((m=this.data)==null?0:m.postOptionsMenu)&&_.F("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.w.configureRendererStamper=function(){var m={"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]]"}}}}};_.F("auto_convert_posts_video_tag")||(m["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return m};
_.w.ready=function(){var m=this,G=_.VL(this.hostElement).querySelector("#placeholder-area"),K=function(W){m.onOpen(W)};
G.addEventListener("tap",K);G.addEventListener("keypress",K)};
_.w.showButtonEduTooltip=function(){var m,G,K,W,L,A,O;if(_.F("enable_quiz_creation")&&((m=this.data)==null?0:(G=m.quizButton)==null?0:(K=G.buttonRenderer)==null?0:(W=K.hint)==null?0:(L=W.hintRenderer)==null?0:(A=L.content)==null?0:(O=A.bubbleHintRenderer)==null?0:O.text)&&(_.Zq.getInstance(),m=dG(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(m==null?void 0:
m.length)>0)){this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.quizButton}});return}var c;if((c=this.data)==null?0:c.imagePollButtonTooltip)if(_.Zq.getInstance(),c=dG(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(c==null?void 0:c.length)>0){this.ytComponentBehavior.resolveCommand(c[0],{form:{element:this.imagePollButton}});return}var u;_.F("enable_multi_image_post_creation")&&
((u=this.data)==null?0:u.multiImageButtonTooltip)&&(_.Zq.getInstance(),u=dG(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(u==null?void 0:u.length)>0&&this.ytComponentBehavior.resolveCommand(u[0],{form:{element:this.imageButton}}))};
_.w.onCreatePollAction=function(m){_.Q(m,Iz4)&&(this.JSC$16260_commentbox.addedAttachment="poll",this.openDialog())};
_.w.onAddVideoLinkAction=function(m){if(_.Q(m,s9F))this.JSC$16260_commentbox.onAddVideoLink(m)};
_.w.onShowSchedulingPanelCommand=function(m){(m=_.Q(m,G1C))&&this.openSchedulingPanel(m)};
_.w.onCreateImagePollCommand=function(m){_.Q(m,wik)&&(this.JSC$16260_commentbox.openImagePollComponent(),this.openDialog())};
_.w.onCreateQuizCommand=function(m){_.Q(m,g60)&&(this.JSC$16260_commentbox.openQuizComponent(),this.openDialog())};
_.w.openSchedulingPanel=function(m){_.F("enable_post_scheduling")&&(this.openDialog(),this.JSC$16260_commentbox.openSchedulingPanel(m))};
_.w.onCreateCommentAction=function(m){this.get("createCommentAction.contents",m)&&(this.JSC$16260_commentbox.clear(),this.closeDialog())};
_.w.onOpen=function(m){m instanceof KeyboardEvent&&m.type==="keypress"&&m.keyCode!==13&&m.keyCode!==32||(this.data.prepareAccountEndpoint?_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.w.onYtCommentboxDismiss=function(){this.closeDialog()};
_.w.onYtCommentboxLoadingStart=function(m){m.stopPropagation();this.isCommentboxLoading=!0};
_.w.onYtCommentboxLoadingEnd=function(m){m.stopPropagation();this.isCommentboxLoading=!1};
_.w.onYtVideoLinkButtonCancel=function(m){m.stopPropagation();this.onOpen(m)};
_.w.onYtVideoLinkSelected=function(m){m.stopPropagation();this.onOpen(m)};
_.w.onIronSelect=function(m){m.stopPropagation();m.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=m.detail.item.value&&(this.accessRestriction?(this.accessRestriction=m.detail.item.value,this.onOpen(m)):this.accessRestriction=m.detail.item.value)};
_.w.onYtNavigate=function(m){this.get("detail.endpoint.backstageImageUploadEndpoint",m)&&(this.JSC$16260_commentbox.addedAttachment="image",this.JSC$16260_commentbox.submitButtonDisabled=!0,this.onOpen(m))};
_.w.onRequestSent=function(m){for(var G=_.g(m.detail),K=G.next();!K.done;K=G.next())_.Q(K.value,DmF)&&(this.JSC$16260_commentbox.addedAttachment="image",this.JSC$16260_commentbox.submitButtonDisabled=!0,this.onOpen(m))};
_.w.openDialog=function(){var m;(m=this.data)!=null&&m.isIneligibleForCommunityPagePostCreation||(this.JSC$16260_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$16260_commentbox.focus())};
_.w.onPopupClosed=function(){_.Zq.getInstance()};
_.w.computeCreationDisabled=function(m){return!!m};
_.w.computeIsCreationDialog=function(m){return!!m&&m==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.w.computeDisabledPostButton=function(m){if(!m)return null;m.isDisabled=!0;return m};
_.w.computeIsCreationDialogWithHeader=function(m){return!this.inPopupContainer&&!!m&&!!m.authorText&&m.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.w.computeIsHeaderHidden=function(m,G){return!m||G};
_.w.computeDropdownRendererClasses=function(m){return m?["text-secondary-style"]:[]};
_.w.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var m=_.VL(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;m&&m.reset()};
zQ.prototype.onPopupClosed=zQ.prototype.onPopupClosed;zQ.prototype.onRequestSent=zQ.prototype.onRequestSent;zQ.prototype.onYtNavigate=zQ.prototype.onYtNavigate;zQ.prototype.onIronSelect=zQ.prototype.onIronSelect;zQ.prototype.onYtVideoLinkSelected=zQ.prototype.onYtVideoLinkSelected;zQ.prototype.onYtVideoLinkButtonCancel=zQ.prototype.onYtVideoLinkButtonCancel;zQ.prototype.onYtCommentboxLoadingEnd=zQ.prototype.onYtCommentboxLoadingEnd;zQ.prototype.onYtCommentboxLoadingStart=zQ.prototype.onYtCommentboxLoadingStart;
zQ.prototype.onYtCommentboxDismiss=zQ.prototype.onYtCommentboxDismiss;zQ.prototype.showButtonEduTooltip=zQ.prototype.showButtonEduTooltip;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],zQ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],zQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zQ.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zQ.prototype,"isOpen",void 0);_.x([_.V({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],zQ.prototype,"buttonOverride",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zQ.prototype,"modern",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zQ.prototype,"roundedContainer",void 0);_.x([_.V(),_.S("design:type",Object)],zQ.prototype,"dropdownButtonOverride",void 0);_.x([_.V({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.S("design:type",Boolean)],zQ.prototype,"creationDisabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],zQ.prototype,"enableCreationBox",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.S("design:type",Boolean)],zQ.prototype,"isCreationDialog",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zQ.prototype,"inPopupContainer",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.S("design:type",Boolean)],zQ.prototype,"isCreationDialogWithHeader",void 0);_.x([_.V(),_.S("design:type",Object)],zQ.prototype,"accessRestriction",void 0);
_.x([_.V({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.S("design:type",Array)],zQ.prototype,"dropdownRendererClasses",void 0);_.x([_.V(),_.S("design:type",Object)],zQ.prototype,"isCommentboxLoading",void 0);_.x([_.V(),_.S("design:type",Array)],zQ.prototype,"attachmentButtonIds",void 0);_.x([_.UM("#image-button"),_.S("design:type",HTMLElement)],zQ.prototype,"imageButton",void 0);
_.x([_.UM("#image-poll-button"),_.S("design:type",HTMLElement)],zQ.prototype,"imagePollButton",void 0);_.x([_.UM("#quiz-button"),_.S("design:type",HTMLElement)],zQ.prototype,"quizButton",void 0);_.x([_.UM("#commentbox"),_.S("design:type",Object)],zQ.prototype,"JSC$16260_commentbox",void 0);_.x([_.Sb("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zQ.prototype,"showButtonEduTooltip",null);
_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtCommentboxDismiss",null);_.x([_.XC("yt-commentbox-loading-start"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtCommentboxLoadingStart",null);
_.x([_.XC("yt-commentbox-loading-end"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtCommentboxLoadingEnd",null);_.x([_.XC("yt-video-link-button-cancel"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtVideoLinkButtonCancel",null);
_.x([_.XC("yt-video-link-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtVideoLinkSelected",null);_.x([_.XC("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onIronSelect",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onYtNavigate",null);
_.x([_.XC("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],zQ.prototype,"onRequestSent",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zQ.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],zQ);
_.y(zQ,"ytd-backstage-post-dialog-renderer",function(){if(JE4!==void 0)return JE4;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return JE4=m},{mode:1});var z8k;var lcK;var lF=function(){return _.d.apply(this,arguments)||this};
_.n(lF,_.d);_.w=lF.prototype;_.w.computeHeartButtonStyle=function(m){return(m==null?0:m.styleType)?m.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.w.onYtButtonTap=function(){if(this.data.isEnabled){var m=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(m=this.getEndpoint(m))&&_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})}else(m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(m)};
_.w.toggle=function(m){this.set("data.isHearted",m!==void 0?m:!this.data.isHearted)};
_.w.getEndpoint=function(m){var G,K=(G=this.data)==null?void 0:G.heartEndpoint,W;G=(W=this.data)==null?void 0:W.unheartEndpoint;if(K&&G)return m?G:K};
_.w.computeButtonAccessibility=function(m,G){var K,W,L=m==null?void 0:(K=m.heartedAccessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label,A,O;m=m==null?void 0:(A=m.unheartedAccessibility)==null?void 0:(O=A.accessibilityData)==null?void 0:O.label;return G?L:m};
_.e_.Object.defineProperties(lF.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 m;return _.F("kevlar_system_icons")&&!((m=this.data)==null||!m.isHearted)}}});
lF.prototype.onYtButtonTap=lF.prototype.onYtButtonTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],lF.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lF.prototype,"data",void 0);_.x([_.E("data.isHearted"),_.S("design:type",Object),_.S("design:paramtypes",[])],lF.prototype,"heartTooltip",null);
_.x([_.E("data.isHearted"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lF.prototype,"iconFilled",null);_.x([_.V({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.S("design:type",String)],lF.prototype,"buttonAccessibility",void 0);_.x([_.V({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],lF.prototype,"heartButtonStyle",void 0);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lF.prototype,"onYtButtonTap",null);_.x([_.Ye({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],lF);
_.y(lF,"ytd-creator-heart-renderer",function(){if(lcK!==void 0)return lcK;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lcK=m},{mode:1});var Bc=function(){var m=_.d.apply(this,arguments)||this;m.hasCreatorReply=!1;m.buttonOverrides={size:"S",iconPosition:"icon-only"};m.replyButtonOverrides={size:"S",type:"text"};m.forceIconButton=!_.F("web_modern_buttons");m.modern=_.F("web_modern_buttons");m.buttonTooltipPosition="bottom";m.systemIcons=_.F("kevlar_system_icons");m.replyDialog=null;return m};
_.n(Bc,_.d);_.w=Bc.prototype;
_.w.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]]"}}}}}};
_.w.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.w.dataChange=function(){this.replyDialog&&_.VL(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var m,G,K;this.isLiked=this.systemIcons&&!!((m=this.data)==null?0:(G=m.likeButton)==null?0:(K=G.toggleButtonRenderer)==null?0:K.isToggled)};
_.w.computeShowVoteCountBeginning=function(m,G){return m===void 0||G===void 0?!0:m.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.w.computeShowVoteCountEnd=function(m,G){return m===void 0||G===void 0?!0:m.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.w.computeShowCommentCount=function(m,G){return m===void 0||G===void 0?!0:m.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!G&&this.ytRendererBehavior.getSimpleString(G)!=="0"};
_.w.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.w.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.w.showReplyDialog=function(m){m&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.VL(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=m,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.w.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.w.onRequestSent=function(m){m=_.g(m.detail);for(var G=m.next();!G.done;G=m.next())(G=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",G.value))&&this.showReplyDialog(G)};
_.w.onYtNavigate=function(m){var G,K;(m=(G=_.Q(m.detail.endpoint,_.FhG))==null?void 0:(K=G.dialog)==null?void 0:K.commentReplyDialogRenderer)&&this.showReplyDialog(m)};
_.w.onYtServiceRequestSent=function(m,G){m.stopPropagation();if(G.actions)for(m=0;m<G.actions.length;m++){var K=_.Q(G.actions[m],dh2);K&&this.handleUpdateCommentVoteAction(K)}};
_.w.handleUpdateCommentVoteAction=function(m){this.voteCount=m.voteCount||_.nG("0");m.voteStatus==="LIKE"?this.JSC$16272_ytdDislikeToggleButtonRenderer.toggle(!1):m.voteStatus==="DISLIKE"?this.JSC$16272_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$16272_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$16272_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.w.computeReplyButtonHidden=function(m){return m};
_.w.computeReplyButtonBeginning=function(m){return(m==null?0:m.replyButton)&&m.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?m.replyButton:void 0};
_.w.computeReplyButtonEnd=function(m){return(m==null?0:m.replyButton)&&m.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?m.replyButton:void 0};
_.w.computeActionButtonStyle=function(m){return(m==null?0:m.style)?m.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.w.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.w.onYtToggleButton=function(m){var G,K;this.isLiked=this.systemIcons&&!!((G=m.detail)==null?0:(K=G.actions)==null?0:K.like)};
Bc.prototype.onYtToggleButton=Bc.prototype.onYtToggleButton;Bc.prototype.onButtonTooltipPositionChanged=Bc.prototype.onButtonTooltipPositionChanged;Bc.prototype.onYtServiceRequestSent=Bc.prototype.onYtServiceRequestSent;Bc.prototype.onYtNavigate=Bc.prototype.onYtNavigate;Bc.prototype.onRequestSent=Bc.prototype.onRequestSent;Bc.prototype.onYtCommentboxDismiss=Bc.prototype.onYtCommentboxDismiss;Bc.prototype.dataChange=Bc.prototype.dataChange;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"voteCount",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"commentCount",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"replyThumbnail",void 0);
_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"hasCreatorReply",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bc.prototype,"enableCreationBox",void 0);_.x([_.V({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],Bc.prototype,"actionButtonsStyle",void 0);_.x([_.V({computed:"computeReplyButtonBeginning(data)"}),_.S("design:type",Object)],Bc.prototype,"replyButtonBeginning",void 0);
_.x([_.V({computed:"computeReplyButtonEnd(data)"}),_.S("design:type",Object)],Bc.prototype,"replyButtonEnd",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"buttonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"replyButtonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"forceIconButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bc.prototype,"useCommentIcon",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Bc.prototype,"modern",void 0);_.x([_.V(),_.S("design:type",Object)],Bc.prototype,"buttonTooltipPosition",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Bc.prototype,"systemIcons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bc.prototype,"isLiked",void 0);_.x([_.UM("ytd-button-renderer"),_.S("design:type",Object)],Bc.prototype,"ytdReplyButtonRenderer",void 0);
_.x([_.UM("#like-button"),_.S("design:type",Object)],Bc.prototype,"JSC$16272_ytdLikeToggleButtonRenderer",void 0);_.x([_.UM("#dislike-button"),_.S("design:type",Object)],Bc.prototype,"JSC$16272_ytdDislikeToggleButtonRenderer",void 0);_.x([_.UM("#reply-dialog"),_.S("design:type",HTMLElement)],Bc.prototype,"replyDialogElement",void 0);_.x([_.UM("#reply-button"),_.S("design:type",HTMLElement)],Bc.prototype,"replyButtonElement",void 0);
_.x([_.UM("#reply-button-end"),_.S("design:type",HTMLElement)],Bc.prototype,"replyButtonEndElement",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bc.prototype,"dataChange",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bc.prototype,"onYtCommentboxDismiss",null);
_.x([_.XC("yt-service-request-sent-button-renderer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bc.prototype,"onRequestSent",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bc.prototype,"onYtNavigate",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],Bc.prototype,"onYtServiceRequestSent",null);_.x([_.Sb("buttonTooltipPosition"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bc.prototype,"onButtonTooltipPositionChanged",null);
_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bc.prototype,"onYtToggleButton",null);_.x([_.Ye({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Bc);
_.y(Bc,"ytd-comment-action-buttons-renderer",function(){if(z8k!==void 0)return z8k;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return z8k=m},{mode:1});var BZR;var MM=function(){return _.d.apply(this,arguments)||this};
_.n(MM,_.d);MM.prototype.focus=function(){_.VL(this.hostElement).querySelector("#commentbox").focus()};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MM.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],MM.prototype,"zeroStepChannelCreationRenderer",void 0);_.x([_.Ye({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],MM);
_.y(MM,"ytd-comment-dialog-renderer",function(){if(BZR!==void 0)return BZR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return BZR=m},{mode:1});var M7l;var TQ=function(){var m=_.d.apply(this,arguments)||this;m.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.F("enable_web_delhi_icons")};m.replyButtonOverrides={size:"S",type:"text"};return m};
_.n(TQ,_.d);_.w=TQ.prototype;_.w.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.w.detached=function(){this.replyBox&&this.replyBox.remove()};
_.w.showReplyDialog=function(m){if(m){var G=this.replyBox;G||(G=document.createElement("ytd-comment-reply-dialog-renderer"),G.id="replybox",_.VL(this.replyDialogDiv).appendChild(G));G.data=m;this.replyDialogDiv.hidden=!1;G.openDialog()}};
_.w.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.w.handleReplyButtonClick=function(){if(this.isSuperfanOnlyCommentsEligibleUser){var m,G=_.Q((m=this.toolbarSurface)==null?void 0:m.superfanOnlySnackbarCommand,_.Oh);G&&_.Zw(this.hostElement,"yt-show-superfan-only-snackbar",{command:G})}else this.isSubsOnlyCommentsEligibleUser&&(m=_.Q((G=this.toolbarSurface)==null?void 0:G.subscribersOnlyDisclaimerSnackbarCommand,_.Oh))&&_.Zw(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:m})};
_.w.onYtServiceRequestSent=function(m,G){m.stopPropagation();if(G.actions)for(var K=0;K<G.actions.length;K++){var W=_.Q(G.actions[K],dh2);W?this.handleUpdateCommentVoteAction(W):m.target===this.heartButton&&this.toggleHeartState()}};
_.w.handleUpdateCommentVoteAction=function(m){var G;(G=this.toolbarState)!=null&&G.key&&this.ytdReduxBehavior.dispatch(_.wS("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:m.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":m.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.w.toggleHeartState=function(){var m;(m=this.toolbarState)!=null&&m.key&&this.ytdReduxBehavior.dispatch(_.wS("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.e_.Object.defineProperties(TQ.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return(((m=this.toolbarState)==null?void 0:m.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(G=this.toolbarData)==null?void 0:G.likeCountLiked:(K=this.toolbarData)==null?void 0:K.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.toolbarSurface)==null?void 0:m.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.toolbarSurface)==null?void 0:m.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
isSuperfanOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.toolbarSurface)==null?void 0:m.superfanOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.toolbarSurface)==null?void 0:m.prepareAccountCommand)!==void 0&&!_.F("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G=_.Q((m=this.toolbarSurface)==null?void 0:m.prepareAccountCommand,_.Oh),K,W,L,A,O,c,u,h,J;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((K=this.toolbarSharedData)==null||!K.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:G!=null?G:_.Q((L=this.toolbarSurface)==null?void 0:L.likeCommand,_.Oh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Q((A=this.toolbarSurface)==null?void 0:A.unlikeCommand,_.Oh),defaultCommand:this.isVisiblyDisabled?_.Q((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.Oh):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.likeInactiveTooltip,toggledTooltip:(u=this.toolbarData)==null?void 0:u.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(h=this.toolbarData)==null?void 0:h.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G=_.Q((m=this.toolbarSurface)==null?void 0:m.prepareAccountCommand,_.Oh),K,W,L,A,O,c,u,h,J,N;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((K=this.toolbarSharedData)==null||!K.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Q((L=this.toolbarSurface)==null?void 0:L.dislikeCommand,_.Oh),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:G!=null?G:_.Q((A=this.toolbarSurface)==null?void 0:A.undislikeCommand,_.Oh),defaultCommand:this.isVisiblyDisabled?_.Q((O=this.toolbarSurface)==null?void 0:O.commentDisabledActionCommand,_.Oh):void 0,defaultTooltip:(c=this.toolbarData)==null?void 0:c.dislikeInactiveTooltip,toggledTooltip:(u=this.toolbarData)==null?void 0:
u.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(h=this.toolbarSharedData)==null?void 0:h.dislikeReplyButtonA11y:(J=this.toolbarSharedData)==null?void 0:J.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(N=this.toolbarSharedData)==null?void 0:N.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G,K;if(((m=this.toolbarState)==null?void 0:m.heartState)!==void 0&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((K=this.toolbarState)==null?void 0:K.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var W,L,A,O,c,u,h,J,N,D,t,a,v,I;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(W=this.toolbarData)==null?void 0:W.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((O=this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Q((u=this.toolbarSurface)==null?void 0:u.heartCommand,
_.Oh),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Q((h=this.toolbarSurface)==null?void 0:h.unheartCommand,_.Oh),disabledEndpoint:this.isVisiblyDisabled?_.Q((J=this.toolbarSurface)==null?void 0:J.commentDisabledActionCommand,_.Oh):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(N=this.toolbarData)==null?void 0:N.heartActiveTooltip,unheartedTooltip:(D=this.toolbarData)==null?void 0:D.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((t=
this.toolbarState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(a=this.toolbarSharedData)==null?void 0:a.unheartButtonA11y:(v=this.toolbarSharedData)==null?void 0:v.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.toolbarSurface)==null||!m.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.commentStrings)!=null&&m.replyButtonText){var G,K,W,L;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(G=this.commentStrings)==null?void 0:G.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.Q((K=this.toolbarSurface)==null?void 0:K.replyCommand,_.Oh),command:this.isVisiblyDisabled?
_.Q((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand,_.Oh):this.isSubsOnlyCommentsIneligibleUser?_.Q((L=this.toolbarSurface)==null?void 0:L.subscribersOnlySnackbarCommand,_.Oh):void 0}}}}});
TQ.prototype.onYtServiceRequestSent=TQ.prototype.onYtServiceRequestSent;TQ.prototype.hideReplyDialogDiv=TQ.prototype.hideReplyDialogDiv;_.x([_.V(),_.S("design:type",Object)],TQ.prototype,"commentStrings",void 0);_.x([_.V(),_.S("design:type",Boolean)],TQ.prototype,"isReply",void 0);_.x([_.V(),_.S("design:type",Object)],TQ.prototype,"toolbarData",void 0);_.x([_.V(),_.S("design:type",Object)],TQ.prototype,"toolbarSharedData",void 0);
_.x([_.V(),_.S("design:type",String)],TQ.prototype,"toolbarStateKey",void 0);_.x([_.V(),_.S("design:type",String)],TQ.prototype,"toolbarSurfaceKey",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],TQ.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.vi),_.S("design:type",Object)],TQ.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.UM("#reply-dialog"),_.S("design:type",HTMLElement)],TQ.prototype,"replyDialogDiv",void 0);_.x([_.UM("#replybox"),_.S("design:type",Object)],TQ.prototype,"replyBox",void 0);_.x([_.UM("ytd-creator-heart-renderer"),_.S("design:type",Object)],TQ.prototype,"heartButton",void 0);_.x([_.V({selector:function(m,G){return _.yx(m.entities,"engagementToolbarStateEntityPayload",G)},
selectorArgs:["toolbarStateKey"]}),_.S("design:type",Object)],TQ.prototype,"toolbarState",void 0);_.x([_.V({selector:pn6,selectorArgs:["toolbarSurfaceKey"]}),_.S("design:type",Object)],TQ.prototype,"toolbarSurface",void 0);_.x([_.V(),_.S("design:type",Object)],TQ.prototype,"buttonOverrides",void 0);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TQ.prototype,"hideReplyDialogDiv",null);
_.x([_.E("toolbarData","toolbarState"),_.S("design:type",String),_.S("design:paramtypes",[])],TQ.prototype,"likeCount",null);_.x([_.E("likeCount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"showLikeCount",null);_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"isVisiblyDisabled",null);_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"isSubsOnlyCommentsEligibleUser",null);_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"isSuperfanOnlyCommentsEligibleUser",null);_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"hasPrepareAccountCommand",null);
_.x([_.E("toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],TQ.prototype,"likeToggleButtonRenderer",null);_.x([_.E("isReply","toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],TQ.prototype,"dislikeToggleButtonRenderer",null);_.x([_.E("toolbarData","toolbarState","toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],TQ.prototype,"creatorHeartSupportedRenderer",null);
_.x([_.E("toolbarSurface"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TQ.prototype,"hasReplyCommand",null);_.x([_.E("toolbarSurface","commentStrings","isVisiblyDisabled"),_.S("design:type",Object),_.S("design:paramtypes",[])],TQ.prototype,"replyButtonRenderer",null);_.x([_.V(),_.S("design:type",Object)],TQ.prototype,"replyButtonOverrides",void 0);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],TQ.prototype,"onYtServiceRequestSent",null);_.x([_.Ye({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],TQ);
_.y(TQ,"ytd-comment-engagement-bar",function(){if(M7l!==void 0)return M7l;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return M7l=m},{mode:1});var TZX;var mL=function(){return _.d.apply(this,arguments)||this};
_.n(mL,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mL.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mL.prototype,"data",void 0);_.x([_.Ye({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],mL);
_.y(mL,"ytd-comment-inline-thumbnail-renderer",function(){if(TZX!==void 0)return TZX;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return TZX=m},{mode:1});var mwK;var iP=function(){return _.d.apply(this,arguments)||this};
_.n(iP,_.d);iP.prototype.onMessageTap=function(){if(this.onTapCommand){var m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);m&&this.ytdOpenPopupBehavior.openPopup(m)}};
_.e_.Object.defineProperties(iP.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return(m=this.data)==null?void 0:(G=m.button)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.command}}});
_.x([_.q(_.vi),_.S("design:type",Object)],iP.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iP.prototype,"data",void 0);_.x([_.E("data.button.buttonRenderer.command"),_.S("design:type",Object),_.S("design:paramtypes",[])],iP.prototype,"onTapCommand",null);_.x([_.Ye({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],iP);
_.y(iP,"ytd-comment-pause-composer-renderer",function(){if(mwK!==void 0)return mwK;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return mwK=m},{mode:1});var i7F;var Ga0;var GE=function(){var m=_.d.apply(this,arguments)||this;m.isOpen=!1;return m};
_.n(GE,_.d);_.w=GE.prototype;_.w.dataChanged=function(){this.isOpen=!1};
_.w.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.w.focus=function(){this.JSC$16301_commentbox.focus()};
_.w.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.w.openDialog=function(){this.isOpen=!0;this.JSC$16301_commentbox.focus();this.JSC$16301_commentbox.maybeHeightChanged()};
GE.prototype.onYtCommentboxDismiss=GE.prototype.onYtCommentboxDismiss;GE.prototype.dataChanged=GE.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],GE.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GE.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],GE.prototype,"isOpen",void 0);_.x([_.UM("#commentbox"),_.S("design:type",Object)],GE.prototype,"JSC$16301_commentbox",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GE.prototype,"dataChanged",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],GE.prototype,"onYtCommentboxDismiss",null);_.x([_.Ye({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],GE);
_.y(GE,"ytd-comment-reply-dialog-renderer",function(){if(Ga0!==void 0)return Ga0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ga0=m},{mode:1});var KRF;var K3=function(){return _.d.apply(this,arguments)||this};
_.n(K3,_.d);_.e_.Object.defineProperties(K3.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType;return K?"yt-icons:"+K.toLowerCase():null}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],K3.prototype,"data",void 0);_.x([_.V(),_.E("data.icon"),_.S("design:type",Object),_.S("design:paramtypes",[])],K3.prototype,"icon",null);_.x([_.Ye({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],K3);
_.y(K3,"ytd-pinned-comment-badge-renderer",function(){if(KRF!==void 0)return KRF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return KRF=m},{mode:1});var WRS;var LRk={},Ac2={input:!0,meta:!0,br:!0,link:!0,img:!0},Wh=null;LRk.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(){Wh==null&&(Wh=document.createElement("tp-yt-paper-tooltip"),Wh.offset=8,Wh.fitToVisibleBounds=!0)},
onMouseOver_:function(m){if(m=_.N7(m.target,function(L){return L==this||L.getAttribute&&L.getAttribute("shared-tooltip-text")}.bind(this),!0)){var G=m.getAttribute("shared-tooltip-text");
if(G){var K=this,W=null;m!=this&&(m.tagName.toLowerCase()in Ac2?K=m.parentElement:K=m,m.id&&(W=m.id));this.polymerController.createTooltipIfRequired_();if(Wh.parentElement!=K||Wh.for!=W)(0,_.yL)(Wh).textContent=G,_.VL(K).appendChild(Wh),Wh.for=W,Wh.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Wh.position=this.polymerController.sharedTooltipPosition}}}};var L3=function(){return _.d.apply(this,arguments)||this};
_.n(L3,_.d);L3.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]]"}}}}}};
L3.prototype.attached=function(){if(!this.hostElement.hasAttribute("role")){this.hostElement.setAttribute("role","img");var m;((m=this.data)==null?0:m.tooltip)&&this.hostElement.setAttribute("alt",this.data.tooltip)}var G;((G=this.data)==null?0:G.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
L3.prototype.colorChanged=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.color)==null?void 0:(K=G.basicColorPaletteData)==null?void 0:K.foregroundBodyColor;W&&(this.rgbBadgeColor=_.OM(W));_.VL(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
L3.prototype.tooltipChanged=function(){var m;((m=this.data)==null?0:m.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
L3.prototype.tooltipChanged=L3.prototype.tooltipChanged;L3.prototype.colorChanged=L3.prototype.colorChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(LRk.YtSharedTooltipBehavior),_.S("design:type",Object)],L3.prototype,"ytSharedTooltipBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L3.prototype,"data",void 0);
_.x([_.V({value:"#4285F4"}),_.S("design:type",String)],L3.prototype,"rgbBadgeColor",void 0);_.x([_.Sb("data.color"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L3.prototype,"colorChanged",null);_.x([_.Sb("data.tooltip"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L3.prototype,"tooltipChanged",null);_.x([_.Ye({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],L3);
_.y(L3,"ytd-sponsor-comment-badge-renderer",function(){if(WRS!==void 0)return WRS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return WRS=m},{mode:1});var waC;var gak;var A8=function(){return _.d.apply(this,arguments)||this};
_.n(A8,_.d);A8.prototype.computeState=function(m){switch(m==null?void 0:m.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"}};
A8.prototype.updateStateIdentifier=function(m){if(this.viewModel.triStateKey){var G=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.wS("triStateButtonStateEntityPayload",G,{key:G,stateIdentifier:m}))}};
A8.prototype.onClick=function(){var m=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(){m.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){m.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.e_.Object.defineProperties(A8.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 m;return((m=this.data)==null?void 0:m.buttonText)||""}}});
_.x([_.V(),_.S("design:type",Object)],A8.prototype,"viewModel",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],A8.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],A8.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.x([_.V({selector:JBs,selectorArgs:["viewModel.triStateKey"]}),_.S("design:type",Object)],A8.prototype,"triStateButtonStateEntity",void 0);
_.x([_.V({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.S("design:type",String)],A8.prototype,"state",void 0);_.x([_.E("viewModel","state"),_.S("design:type",Object),_.S("design:paramtypes",[])],A8.prototype,"data",null);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],A8.prototype,"buttonText",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],A8);
_.y(A8,"ytd-tri-state-button-view-model",function(){if(gak!==void 0)return gak;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return gak=m},{mode:1});var O7P;var cc2;var ww=function(){var m=_.d.apply(this,arguments)||this;m.defaultIconToFilled=!_.F("kevlar_fill_comment_chip_icon_killswitch");return m};
_.n(ww,_.d);ww.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
ww.prototype.dataChanged=function(){if(this.data){var m,G;((m=this.data.chipColorPalette)==null?0:m.backgroundColor)&&((G=this.data.chipColorPalette)==null?0:G.foregroundTitleColor)&&_.eb(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.ce(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.ce(this.data.chipColorPalette.foregroundTitleColor)});var K;((K=this.data)==null?0:K.command)?(_.eb(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.eb(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}};
ww.prototype.onTap=function(){var m;if(this.data&&(m=this.data)!=null&&m.command){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.command)}};
ww.prototype.getIconSize=function(){return _.F("kevlar_fill_comment_chip_icon_killswitch")?24:12};
ww.prototype.onTap=ww.prototype.onTap;ww.prototype.dataChanged=ww.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ww.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.x4),_.S("design:type",Object)],ww.prototype,"ironA11yKeysBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ww.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],ww.prototype,"basePriceText",void 0);_.x([_.V(),_.S("design:type",Object)],ww.prototype,"chipIcon",void 0);_.x([_.V(),_.S("design:type",Object)],ww.prototype,"defaultIconToFilled",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ww.prototype,"dataChanged",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ww.prototype,"onTap",null);
_.x([_.cL({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],ww);
_.y(ww,"yt-pdg-comment-chip-renderer",function(){if(cc2===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;O7P===void 0&&(O7P=document.createElement("template"));var W=O7P;K.call(G,W.content.cloneNode(!0),m.content.firstChild);cc2=m}m=cc2;return m},{mode:2});var gw=function(){var m=_.d.apply(this,arguments)||this;m.useSmallAvatars=_.F("small_avatars_for_comments");m.commentThreadingEnabled=_.F("web_delhi_comment_threads");m.webWatchCompactComments=_.F("web_watch_compact_comments");m.editDialog=null;return m};
_.n(gw,_.d);_.w=gw.prototype;_.w.onShow=function(){_.r9("cmv",void 0,"wn_comments")};
_.w.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"}}}};
_.w.detached=function(){this.editDialog=null;this.expander.reset()};
_.w.updateBackgroundColor=function(){if(this.backgroundColor){var m={"--ytd-comment-paid-background-color":_.ce(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.eb(this.hostElement,m)}else _.eb(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.w.resetExpander=function(){var m;(m=this.expander)==null||m.reset()};
_.w.openEditDialog=function(m){m.dialog&&(this.editDialog=m.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.w.onYtNavigate=function(m){var G=m.detail.endpoint;if(G=_.Q(G,_.QEo)||_.Q(G,_.adP))m.stopPropagation(),this.openEditDialog(G)};
_.w.onYtCommentboxDismiss=function(){this.editDialog=null;_.eb(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.w.onAuthorThumbnailClicked=function(){_.F("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.w.onYtCommentboxResize=function(m){var G;(m==null?0:(G=m.detail)==null?0:G.height)&&_.eb(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":m.detail.height+"px"})};
_.e_.Object.defineProperties(gw.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 m,G=(m=this.commentEntity)==null?void 0:m.author;return G&&(G.isCreator||G.isVerified||G.isArtist)?{renderer:{authorEndpoint:G.channelPageEndpoint?_.Q(G.channelPageEndpoint,_.Oh):_.Q(G.channelCommand,_.Oh),authorText:{runs:[{text:G.displayName}]},color:G.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:G.isArtist?{iconType:"AUDIO_BADGE"}:
G.isVerified?{iconType:G.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:G.isArtist||G.isVerified?G.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.commentEntity)==null?void 0:m.author;return G!=null&&G.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:G.sponsorBadgeUrl}]},tooltip:G.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.commentSurfaceEntity)==null?void 0:m.pdgCommentChip,_.BRG)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var m;return this.voiceReplyContainerViewModel&&((m=this.voiceReplyContainerViewModel)==null?void 0:m.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.commentSurfaceEntity)==null?void 0:m.voiceReplyContainerViewModel,UhX)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var m;return this.voiceReplyContainerViewModel&&(m=this.voiceReplyContainerViewModel)!=null&&m.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.commentSurfaceEntity)==null?void 0:m.commentBackgroundColor)!=null?G:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var m,G;return(((m=this.commentEntity)==null?void 0:(G=m.properties)==null?void 0:G.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var m,G;if(_.F("enable_profile_cards_on_comments")&&((m=this.commentEntity)==null?0:(G=m.author)==null?0:G.profileCardEndpoint)&&this.viewModel.allowProfileCard){var K,W;return _.Q((K=this.commentEntity)==null?void 0:(W=K.author)==null?void 0:W.profileCardEndpoint,_.Oh)}var L,A;return _.Q((L=this.commentEntity)==null?void 0:(A=L.avatar)==null?void 0:A.endpoint,_.Oh)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var m,G;if(_.F("enable_profile_cards_on_comments")&&((m=this.commentEntity)==null?0:(G=m.author)==null?0:G.channelPageEndpoint)){var K,W;return _.Q((K=this.commentEntity)==null?void 0:(W=K.author)==null?void 0:W.channelPageEndpoint,_.Oh)}var L,A;return _.Q((L=this.commentEntity)==null?void 0:(A=L.avatar)==null?void 0:A.endpoint,_.Oh)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L=(m=this.commentEntity)==null?void 0:(G=m.avatar)==null?void 0:(K=G.image)==null?void 0:(W=K.sources)==null?void 0:W[0];return L?{thumbnails:[{url:L.url,width:L.width,height:L.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.commentEntity)==null?0:(G=m.author)==null?0:G.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.commentEntity)==null?void 0:(G=m.author)==null?void 0:G.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.commentEntity)==null?void 0:(G=m.properties)==null?void 0:G.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.commentSurfaceEntity)==null?void 0:m.publishedTimeCommand,_.Oh)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var m,G;if(((m=this.commentEntity)==null?0:m.translatedContent)&&((G=this.translateButtonState)==null?void 0:G.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var K;if((K=this.voiceReplyContainerViewModel)==null?0:K.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var W,L;return((W=this.commentEntity)==null?void 0:(L=W.properties)==null?void 0:L.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.commentSharedEntity)==null?void 0:(G=m.strings)==null?void 0:G.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.commentSharedEntity)==null?void 0:(G=m.strings)==null?void 0:G.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.commentEntity)==null||!m.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var m,G,K=(G=_.Q((m=this.viewModel)==null?void 0:m.translateButton,RAC))!=null?G:{},W,L,A,O,c,u,h,J,N,D,t;return Object.assign({},K,{untoggledStateData:Object.assign({},K.untoggledStateData,{buttonText:(W=this.commentEntity)==null?void 0:(L=W.translateData)==null?void 0:L.text}),togglingStateData:Object.assign({},K.togglingStateData,{buttonText:(A=this.commentSharedEntity)==null?
void 0:(O=A.strings)==null?void 0:O.translatingText}),toggledStateData:Object.assign({},K.toggledStateData,{buttonText:(c=this.commentSharedEntity)==null?void 0:(u=c.strings)==null?void 0:u.seeOriginalText}),transitionCommand:((h=this.commentEntity)==null?0:h.translatedContent)?void 0:_.Q((J=this.commentEntity)==null?void 0:(N=J.translateData)==null?void 0:N.translateComment,_.Oh),triStateKey:(D=this.commentEntity)==null?void 0:(t=D.properties)==null?void 0:t.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((G=_.Q(_.Q((m=this.toolbarSurface)==null?void 0:m.menuCommand,_.Oh),oPX))==null?void 0:(K=G.menu)==null?void 0:K.menuRenderer)||null}}});
gw.prototype.onYtCommentboxResize=gw.prototype.onYtCommentboxResize;gw.prototype.onYtCommentboxDismiss=gw.prototype.onYtCommentboxDismiss;gw.prototype.onYtNavigate=gw.prototype.onYtNavigate;gw.prototype.resetExpander=gw.prototype.resetExpander;gw.prototype.updateBackgroundColor=gw.prototype.updateBackgroundColor;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],gw.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#author-thumbnail > button"),_.S("design:type",HTMLElement)],gw.prototype,"authorThumbnailAnchor",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gw.prototype,"linked",null);
_.x([_.E("viewModel","linked"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"linkedCommentBadge",null);_.x([_.V({reflectToAttribute:!0}),_.E("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gw.prototype,"pinned",null);_.x([_.E("viewModel","pinned"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"pinnedCommentBadge",null);
_.x([_.E("commentEntity","commentSharedEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"authorCommentBadge",null);_.x([_.V({reflectToAttribute:!0}),_.E("authorCommentBadge"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"hasAuthorBadge",null);_.x([_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"sponsorCommentBadge",null);
_.x([_.V({reflectToAttribute:!0}),_.E("sponsorCommentBadge"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"hasSponsorBadge",null);_.x([_.E("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"pdgCommentChipRenderer",null);_.x([_.V({reflectToAttribute:!0}),_.E("voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"hasVoiceReply",null);
_.x([_.E("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"voiceReplyContainerViewModel",null);_.x([_.E("voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"voiceReplyUnavailableText",null);_.x([_.V(),_.S("design:type",Object)],gw.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"viewModel",null);
_.x([_.V({selector:function(m,G){return _.yx(m.entities,"commentSharedEntityPayload",G)},
selectorArgs:["viewModel.sharedKey"]}),_.S("design:type",Object)],gw.prototype,"commentSharedEntity",void 0);_.x([_.V({selector:hc9,selectorArgs:["viewModel.commentKey"]}),_.S("design:type",Object)],gw.prototype,"commentEntity",void 0);_.x([_.V({selector:function(m,G){return _.yx(m.entities,"commentSurfaceEntityPayload",G)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.S("design:type",Object)],gw.prototype,"commentSurfaceEntity",void 0);_.x([_.V({selector:pn6,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.S("design:type",Object)],gw.prototype,"toolbarSurface",void 0);_.x([_.V({selector:JBs,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.S("design:type",Object)],gw.prototype,"translateButtonState",void 0);
_.x([_.E("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"backgroundColor",null);_.x([_.V({reflectToAttribute:!0}),_.E("viewModel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gw.prototype,"optimalReadingWidthComments",null);_.x([_.UM("ytd-expander"),_.S("design:type",Object)],gw.prototype,"expander",void 0);
_.x([_.Sb("backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gw.prototype,"updateBackgroundColor",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],gw.prototype,"useSmallAvatars",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],gw.prototype,"engagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],gw.prototype,"commentThreadingEnabled",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],gw.prototype,"webWatchCompactComments",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"isReply",null);_.x([_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"authorThumbnailEndpoint",null);_.x([_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"authorNameEndpoint",null);
_.x([_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"authorThumbnail",null);_.x([_.E("commentEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],gw.prototype,"authorTextClass",null);_.x([_.E("commentEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],gw.prototype,"authorChannelName",null);_.x([_.E("commentEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"publishedTime",null);
_.x([_.E("commentSurfaceEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"publishedTimeCommand",null);_.x([_.E("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"contentText",null);_.x([_.Sb("contentText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gw.prototype,"resetExpander",null);
_.x([_.E("commentEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gw.prototype,"shouldShowReadMoreInitially",null);_.x([_.E("commentSharedEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],gw.prototype,"expandText",null);_.x([_.E("commentSharedEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],gw.prototype,"collapseText",null);_.x([_.E("commentEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gw.prototype,"shouldShowTranslateButton",null);
_.x([_.E("commentEntity","commentSharedEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"translateButton",null);_.x([_.E("toolbarSurface"),_.S("design:type",Object),_.S("design:paramtypes",[])],gw.prototype,"overflowMenuRenderer",null);_.x([_.V(),_.S("design:type",Object)],gw.prototype,"editDialog",void 0);_.x([_.UM("ytd-comment-dialog-renderer"),_.S("design:type",Object)],gw.prototype,"editCommentDialogContainer",void 0);
_.x([_.UM("ytd-comment-reply-dialog-renderer"),_.S("design:type",Object)],gw.prototype,"editReplyDialogContainer",void 0);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],gw.prototype,"onYtNavigate",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],gw.prototype,"onYtCommentboxDismiss",null);
_.x([_.XC("yt-commentbox-resize"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],gw.prototype,"onYtCommentboxResize",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-comment-view-model"})],gw);
_.y(gw,"ytd-comment-view-model",function(){if(waC!==void 0)return waC;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return waC=m},{mode:_.Zh("kevlar_poly_si_batch_j025")?1:2});_.sh(_.P(function(m){var G={},K={};return _.r("yt-sub-thread",{class:_.VO("ytSubThreadHost",(G.ytSubThreadHasButton=m.isButton,G.ytSubThreadHovered=m.hovered,G.ytSubThreadTopLevelThread=function(){var W,L;return((W=m.topLevelThread)==null?void 0:W.call(m))&&!(_.F("small_avatars_for_comments")&&((L=m.engagementPanel)==null?0:L.call(m)))},G))},_.r("div",{class:"ytSubThreadThreadline"},_.r(_.p,{cond:function(){var W;
return!((W=m.isTeaser)==null?0:W.call(m))},
then:function(){return _.r("div",{class:"ytSubThreadConnection"})}}),_.r("div",{class:"ytSubThreadContinuation"}),_.r("div",{class:"ytSubThreadShadow"})),_.r("div",{class:_.VO("ytSubThreadSubThreadContent",(K.ytSubThreadSubThreadContentEngagementPanel=m.engagementPanel,K))},m.children))},"Pc"),"yt-sub-thread",{props:{isButton:_.Dd,
isTeaser:_.Dd,hovered:_.Dd,topLevelThread:_.Dd,engagementPanel:_.Dd}});var O3=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_modern_buttons");m.commentThreadingEnabled=_.F("web_delhi_comment_threads");m.isWatchGrid=_.F("kevlar_watch_grid");m.buttonOverrides=m.commentThreadingEnabled?_.F("web_delhi_comment_threads_call_to_action")?{iconPosition:"trailing",type:"text",style:"call-to-action"}:{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};m.JSC$16347_spinnerEl=null;return m};
_.n(O3,_.d);_.w=O3.prototype;_.w.configureContinuationPathMap=function(){return _.F("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.w.shouldShowLegacyTeasers=function(m,G){return m&&!G};
_.w.shouldShowExpandedThreads=function(m,G){return this.commentThreadingEnabled&&G&&(m==null?void 0:m.length)>0};
_.w.shouldShowCollapsedThreads=function(m,G){return this.commentThreadingEnabled&&!G&&m};
_.w.computeCommentViewModel=function(m){return _.Q(m,SLX)};
_.w.computeThreadRenderer=function(m){return _.Q(m,PDG)};
_.w.computeIsContinuationItem=function(m){return!!this.computeContinuationItemRenderer(m)};
_.w.computeButtonRenderer=function(m){return _.Q(m,_.uu)};
_.w.computeContinuationItemRenderer=function(m){return _.Q(m,_.EU)};
_.w.computeShowButton=function(m){var G;return!((G=this.computeContinuationItemRenderer(m))==null||!G.button)};
_.w.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]]"}}}}}};
_.w.attached=function(){this.isShowRepliesVisible=!0};
_.w.dataChanged=function(){var m=this.expanderContents;m&&(m.hidden=!0);this.isLoading=!1};
_.w.endsInContinuation=function(m){return!!m&&m.length>0&&!!this.computeContinuationItemRenderer(m[m.length-1])};
_.w.computeShouldShowHideRepliesButton=function(m,G){return!m&&G};
_.w.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.w.isLoadingChanged=function(){this.isLoading&&!this.JSC$16347_spinnerEl&&(this.JSC$16347_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.VL(this.expanderContents).appendChild(this.JSC$16347_spinnerEl));this.JSC$16347_spinnerEl&&(this.JSC$16347_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var m;(m=this.contents)==null||m.classList.remove("reloading")}};
_.w.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var m=_.Q(this.data.viewReplies,_.uu);m&&this.ytRendererBehavior.logExplicitClick(m);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.w.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var m=_.Q(this.data.hideReplies,_.uu);m&&this.ytRendererBehavior.logExplicitClick(m);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.w.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var m=_.VL(this.hostElement).querySelector("#expander-contents");m&&(m.hidden=this.isShowRepliesVisible)}};
_.w.computeAlign=function(){if(this.modern){var m;return!((m=this.data)==null?0:m.viewRepliesCreatorThumbnail)}};
_.e_.Object.defineProperties(O3.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var m,G;return this.endsInContinuation((m=this.data)==null?void 0:m.contents)||this.commentThreadingEnabled&&this.endsInContinuation((G=this.data)==null?void 0:G.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var m;return(m=this.data)==null?void 0:m.teaserContents}}});
O3.prototype.isShowMoreChanged=O3.prototype.isShowMoreChanged;O3.prototype.isLoadingChanged=O3.prototype.isLoadingChanged;O3.prototype.triggerFirstContinuation=O3.prototype.triggerFirstContinuation;O3.prototype.dataChanged=O3.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.n4),_.S("design:type",Object)],O3.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],O3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],O3.prototype,"modern",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],O3.prototype,"commentThreadingEnabled",void 0);_.x([_.V(),_.S("design:type",Boolean)],O3.prototype,"expanded",void 0);
_.x([_.V(),_.S("design:type",Function)],O3.prototype,"toggleExpanded",void 0);_.x([_.V(),_.S("design:type",Array)],O3.prototype,"addedReplies",void 0);_.x([_.V(),_.S("design:type",Boolean)],O3.prototype,"hovered",void 0);_.x([_.V(),_.S("design:type",Boolean)],O3.prototype,"topLevelThread",void 0);_.x([_.V(),_.S("design:type",Boolean)],O3.prototype,"isLoading",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],O3.prototype,"isShowRepliesVisible",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],O3.prototype,"useNewFormatting",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],O3.prototype,"engagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],O3.prototype,"isWatchGrid",void 0);_.x([_.V(),_.S("design:type",Object)],O3.prototype,"buttonOverrides",void 0);_.x([_.UM("#expander-contents"),_.S("design:type",HTMLElement)],O3.prototype,"expanderContents",void 0);
_.x([_.UM("ytd-continuation-item-renderer"),_.S("design:type",Object)],O3.prototype,"continuationItemRenderer",void 0);_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],O3.prototype,"contents",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O3.prototype,"dataChanged",null);_.x([_.E("data.contents","data.subThreads.*"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],O3.prototype,"hasContinuation",null);
_.x([_.E("data.teaserContents"),_.S("design:type",Object),_.S("design:paramtypes",[])],O3.prototype,"subThreadTeasers",null);_.x([_.XC("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O3.prototype,"triggerFirstContinuation",null);_.x([_.Sb("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O3.prototype,"isLoadingChanged",null);
_.x([_.Sb("isShowRepliesVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O3.prototype,"isShowMoreChanged",null);_.x([_.Ye({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],O3);
_.y(O3,"ytd-comment-replies-renderer",function(){if(i7F!==void 0)return i7F;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!shouldShowLegacyTeasers(isShowRepliesVisible, commentThreadingEnabled)]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div id="expanded-threads" hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[subThreadTeasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-teaser="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-view-model data="[[computeCommentViewModel(item)]]" class="style-scope ytd-comment-replies-renderer"> </ytd-comment-view-model>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-repeat" items="[[addedReplies]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-threads" hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="[[computeIsContinuationItem(item)]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" engagement-panel="[[engagementPanel]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer class="replies-continuation style-scope ytd-comment-replies-renderer" button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" restamp="" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread engagement-panel="[[engagementPanel]]" hovered="[[hovered]]" is-button="" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return i7F=m},{mode:1});var YN2;var ch=function(){var m=_.d.apply(this,arguments)||this;m.isOpen=!1;m.commentDialog=null;m.useSmallAvatars=_.F("small_avatars_for_comments");m.useSmallAvatarsEngagementPanelOnly=_.F("small_avatars_for_comments_ep");m.placeholderFocusListener=null;m.hasOpenedDialog=!1;m.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return m};
_.n(ch,_.d);_.w=ch.prototype;_.w.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]]"}}}}}};
_.w.ready=function(){var m=this,G=_.VL(this.hostElement).querySelector("#placeholder-area"),K=_.VL(this.hostElement).querySelector("#simplebox-placeholder"),W=function(L){L.stopPropagation();L instanceof KeyboardEvent&&L.type==="keypress"&&L.keyCode!==13&&L.keyCode!==32||m.openDialog()};
this.placeholderFocusListener=W;K.addEventListener("focus",this.placeholderFocusListener);G.addEventListener("tap",W);G.addEventListener("keypress",W)};
_.w.maybeRemoveFocusEventListener=function(){var m;(m=this.data)!=null&&m.prepareAccountEndpoint&&!_.F("web_comments_simplebox_modal_focus_on_tap_ks")&&(m=_.VL(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(m.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.w.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.w.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.F("web_comment_simplebox_resolve_polymer_command_ks")?_.xe.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Xj(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.superfanOnlySnackbarCommand&&!this.hasOpenedDialog){var m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.superfanOnlySnackbarCommand);m&&this.ytdOpenPopupBehavior.openPopup(m);this.hasOpenedDialog=!0}this.data.subscribersOnlySnackbarCommand&&
!this.hasOpenedDialog&&((m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand))&&this.ytdOpenPopupBehavior.openPopup(m),this.hasOpenedDialog=!0);this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.VL(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.w.onYtCommentboxDismiss=function(m){m.stopPropagation();this.isOpen=!1};
_.w.onCreateCommentAction=function(m){this.get("createCommentAction.contents",m)&&(this.isOpen=!1)};
_.w.computeCommentDialog=function(m){return{placeholderText:m.placeholderText,authorThumbnail:m.authorThumbnail,submitButton:m.submitButton,imageButton:m.imageButton,cancelButton:m.cancelButton,emojiButton:m.emojiButton,emojis:m.emojis,emojiPicker:m.emojiPicker,aadcGuidelinesStateEntityKey:m.aadcGuidelinesStateEntityKey,openAadcDialog:m.openAadcDialog,unicodeEmojisUrl:m.unicodeEmojisUrl}};
_.w.onHideIdentityChip=function(m){_.Q(m,j9F)&&this.set("data.placeholderText",_.Q(m,j9F).placeholderText)};
ch.prototype.onYtCommentboxDismiss=ch.prototype.onYtCommentboxDismiss;ch.prototype.dataChanged=ch.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ch.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],ch.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ch.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ch.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ch.prototype,"isOpen",void 0);_.x([_.V(),_.S("design:type",Object)],ch.prototype,"commentDialog",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ch.prototype,"engagementPanel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ch.prototype,"useSmallAvatars",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ch.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ch.prototype,"enableCreationBox",void 0);_.x([_.V(),_.S("design:type",Boolean)],ch.prototype,"showCreateDialog",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ch.prototype,"dataChanged",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ch.prototype,"onYtCommentboxDismiss",null);_.x([_.Ye({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],ch);
_.y(ch,"ytd-comment-simplebox-renderer",function(){if(YN2!==void 0)return YN2;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return YN2=m},{mode:1});var rck;_.Kz("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var YF=function(){var m=_.d.apply(this,arguments)||this;m.addHoverEffect=_.F("swatcheroo_comments_hover_effect");m.useSmallAvatars=_.F("small_avatars_for_comments");m.scrollingEnabled=_.F("web_comment_threading_scroll_on_collapse");m.isSubThread=!1;m.threadHovered=!1;m.expanded=!1;m.removed=!1;m.addedReplies=[];m.actionMap=m.configureActionMap();m.toggleExpanded=function(){m.expanded=!m.expanded;!m.expanded&&m.scrollingEnabled&&_.dU(m.hostElement,"yt-scroll-to-comment-element",[m.commentElement])};
return m};
_.n(YF,_.d);_.w=YF.prototype;_.w.configureActionMap=function(){return _.F("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.w.createCommentReplyAction=function(m){m=_.Q(m,H2K);if(m!=null&&m.contents){var G=m.replyToCommentId,K=m.parentCommentId,W,L=(W=this.commentViewModel)==null?void 0:W.commentId;(L===G||L===K&&!G)&&this.maybeAttachReply(m.contents)}};
_.w.maybeAttachReply=function(m){var G,K;(((G=this.commentEntity)==null?void 0:(K=G.properties)==null?void 0:K.replyLevel)||0)>=3?_.Zw(this.hostElement,"yt-pushed-create-comment-reply",m):this.attachReply(m)};
_.w.onPushedCreateCommentReply=function(m){var G,K;(((G=this.commentEntity)==null?void 0:(K=G.properties)==null?void 0:K.replyLevel)||0)>=3||(this.attachReply(m.detail),m.stopPropagation())};
_.w.attachReply=function(m){var G;((G=this.data)==null?0:G.replies)?(G=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+G+".continuationItemRenderer")?G===0?this.push("addedReplies",m):this.splice("data.replies.commentRepliesRenderer.subThreads",G,0,m):this.push("data.replies.commentRepliesRenderer.subThreads",m)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[m],viewReplies:{buttonRenderer:{text:_.Hk(_.zq("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.w.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Bz(this.addedReplies))),this.set("addedReplies",[]))};
_.w.removeCommentAction=function(m){m=_.Q(m,VgG);var G=m==null?void 0:m.commentId,K;G&&((K=this.commentViewModel)==null?void 0:K.commentId)===G&&this.maybeRemoveComment(m.actionResult)};
_.w.banAuthorAction=function(m){m=_.Q(m,qLo);var G=m==null?void 0:m.commentId,K;G&&((K=this.commentViewModel)==null?void 0:K.commentId)===G&&this.maybeRemoveComment(m.actionResult)};
_.w.hideReportedCommentAction=function(m){m=_.Q(m,MgB);var G=m==null?void 0:m.commentId,K;G&&((K=this.commentViewModel)==null?void 0:K.commentId)===G&&this.maybeRemoveComment(m.actionResult)};
_.w.maybeRemoveComment=function(m){m&&m.status==="STATUS_SUCCEEDED"&&(this.feedbackText=m.feedbackText||_.Hk("Reply removed"),this.removed=!0)};
_.w.onTap=function(m){if(this.addHoverEffect&&!this.engagementPanel&&!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||_.Xj({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.w.attached=function(){var m=this;this.isSubThread&&(this.expanded=!0);var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseover",function(){m.threadHovered=!0});
var K;(K=this.commentThreadHitbox)==null||K.addEventListener("mouseout",function(){m.threadHovered=!1});
var W;(W=this.commentThreadHitbox)==null||W.addEventListener("click",function(){m.maybeToggleExpanded()})};
_.w.onDataChanged=function(){var m=_.F("web_delhi_comment_threads")?"data.replies.commentRepliesRenderer.subThreads":"data.replies.commentRepliesRenderer.contents";this.get("data.replies.commentRepliesRenderer.teaserContents")&&!this.get(m)&&this.set(m,[{commentThreadRenderer:{commentViewModel:this.get("data.replies.commentRepliesRenderer.teaserContents")[0]}}])};
_.w.maybeToggleExpanded=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.replies)==null?void 0:(K=G.commentRepliesRenderer)==null?void 0:K.subThreads,L;(W==null?void 0:W.length)===1&&((L=_.Q(W[0],_.EU))==null?0:L.button)&&this.expanded||this.toggleExpanded()};
_.e_.Object.defineProperties(YF.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.data)==null?void 0:m.commentViewModel,SLX)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return _.F("web_delhi_comment_threads")&&!!((m=this.data)==null?0:(G=m.replies)==null?0:(K=G.commentRepliesRenderer)==null?0:K.subThreads)}}});
YF.prototype.onDataChanged=YF.prototype.onDataChanged;YF.prototype.onTap=YF.prototype.onTap;YF.prototype.onAppendContinuationItemsActionFinished=YF.prototype.onAppendContinuationItemsActionFinished;YF.prototype.onPushedCreateCommentReply=YF.prototype.onPushedCreateCommentReply;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],YF.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],YF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"addHoverEffect",void 0);_.x([_.V(),_.S("design:type",Object)],YF.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"useSmallAvatars",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"scrollingEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"isSubThread",void 0);_.x([_.UM(".thread-hitbox"),_.S("design:type",HTMLElement)],YF.prototype,"commentThreadHitbox",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"threadHovered",void 0);_.x([_.UM("#comment"),_.S("design:type",HTMLElement)],YF.prototype,"commentElement",void 0);
_.x([_.V(),_.S("design:type",Object)],YF.prototype,"expanded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],YF.prototype,"removed",void 0);_.x([_.V(),_.S("design:type",Object)],YF.prototype,"feedbackText",void 0);_.x([_.V(),_.S("design:type",Array)],YF.prototype,"addedReplies",void 0);_.x([_.V({selector:hc9,selectorArgs:["commentViewModel.commentKey"]}),_.S("design:type",Object)],YF.prototype,"commentEntity",void 0);
_.x([_.XC("yt-pushed-create-comment-reply"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],YF.prototype,"onPushedCreateCommentReply",null);_.x([_.XC("yt-append-continuation-items-action-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YF.prototype,"onAppendContinuationItemsActionFinished",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],YF.prototype,"commentViewModel",null);
_.x([_.E("data.replies.commentRepliesRenderer.subThreads"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],YF.prototype,"hasSubThreading",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],YF.prototype,"engagementPanel",void 0);_.x([_.XC("tap"),_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],YF.prototype,"onTap",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YF.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],YF);
_.y(YF,"ytd-comment-thread-renderer",function(){if(rck!==void 0)return rck;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" engagement-panel="[[engagementPanel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" engagement-panel="[[engagementPanel]]" expanded="[[expanded]]" hovered="[[threadHovered]]" toggle-expanded="[[toggleExpanded]]" top-level-thread="[[!isSubThread]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return rck=m},{mode:2});var uUG;var rw=function(){var m=_.d.apply(this,arguments)||this;m.compactHeader=_.F("web_watch_compact_comments_header");m.hidePanelButton=!1;m.isPostSchedulingEnabled=_.F("enable_post_scheduling");m.hasFinishedStamping=!1;m.JSC$16370_handleOpenPostCommentDialogActionAfterStamp=!1;m.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return m};
_.n(rw,_.d);_.w=rw.prototype;
_.w.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"}}}};
_.w.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.w.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16370_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.w.onYtServiceRequestSent=function(m,G){if(!_.F("kevlar_command_handler")&&G.actions)for(m=0;m<G.actions.length;m++){var K=G.actions[m];_.Q(K,G1C)&&_.VL(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Q(K,G1C))}};
_.w.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var m;if(this.getPrefilledBackstagePostDialog((m=this.data)==null?void 0:m.actions)){_.VL(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var G=_.VL(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;G&&_.Pv(this,function(){G.focus();G.openDialog&&G.openDialog()})}}else this.hasActionsChange=!0};
_.w.computeIsBackstage=function(m){return m};
_.w.onYtCommentboxDismiss=function(){_.VL(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.w.removePrefilledDialog=function(m){if(m==null?0:m.actions){for(var G=m.actions.length-1;G>=0;G--){var K=void 0;((K=_.Q(m.actions[G],tdX))==null?0:K.dialog)&&delete m.actions[G]}this.set("data",void 0);this.set("data",m)}};
_.w.getPrefilledBackstagePostDialog=function(m){if(m)for(var G=0;G<m.length;G++){var K=m[G],W=void 0;if((W=_.Q(K,tdX))==null?0:W.dialog)return _.Q(K,tdX).dialog}return null};
_.w.computeBackstagePostDialog=function(m){return m&&(this.getPrefilledBackstagePostDialog(m.actions)||m.createRenderer)};
_.w.dataChanged=function(){if(this.data){var m=this.data.customEmojis,G=this.data.unicodeEmojisUrl;_.Jx.clear();G&&_.Kli(_.Jx,G);m&&_.Jx.load(m)}};
_.w.handleSignalActionOpenPostCommentDialogAction=function(){var m=_.VL(this.hostElement).querySelector("ytd-comment-simplebox-renderer");m?m.openDialog():this.JSC$16370_handleOpenPostCommentDialogActionAfterStamp=!0};
_.w.onPostHeaderTap=function(){var m;((m=this.data)==null?0:m.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.e_.Object.defineProperties(rw.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.F("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A,O;return!this.hidePanelButton&&_.F("kevlar_watch_comments_panel_button")&&((O=_.Q((m=this.data)==null?void 0:(G=m.sortMenu)==null?void 0:(K=G.sortFilterSubMenuRenderer)==null?void 0:(W=K.subMenuItems)==null?void 0:(L=W[0])==null?void 0:(A=L.serviceEndpoint)==null?void 0:A.commandMetadata,_.RQ))==null?void 0:O.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.zq("MINIPLAYER_EXPAND_LABEL"),text:_.nG(_.zq("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
rw.prototype.dataChanged=rw.prototype.dataChanged;rw.prototype.onYtCommentboxDismiss=rw.prototype.onYtCommentboxDismiss;rw.prototype.observePrefilledBackstagePostDialog=rw.prototype.observePrefilledBackstagePostDialog;rw.prototype.onYtServiceRequestSent=rw.prototype.onYtServiceRequestSent;rw.prototype.onStampFinished=rw.prototype.onStampFinished;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rw.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],rw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rw.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rw.prototype,"compactHeader",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],rw.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],rw.prototype,"hidePanelButton",void 0);_.x([_.V({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.S("design:type",Boolean)],rw.prototype,"isBackstage",void 0);_.x([_.V({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.S("design:type",Object)],rw.prototype,"backstagePostDialog",void 0);
_.x([_.V(),_.S("design:type",Object)],rw.prototype,"isPostSchedulingEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data","showCommentsPanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],rw.prototype,"useSpaceBetween",null);_.x([_.V({reflectToAttribute:!0}),_.E("data","hidePanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],rw.prototype,"showCommentsPanelButton",null);
_.x([_.E("data","showCommentsPanelButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],rw.prototype,"commentsPanelButtonData",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rw.prototype,"onStampFinished",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],rw.prototype,"onYtServiceRequestSent",null);
_.x([_.Sb("data.actions"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rw.prototype,"observePrefilledBackstagePostDialog",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],rw.prototype,"onYtCommentboxDismiss",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rw.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],rw);
_.y(rw,"ytd-comments-header-renderer",function(){if(uUG!==void 0)return uUG;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return uUG=m},{mode:1});var h4X;var uP=function(){return _.d.apply(this,arguments)||this};
_.n(uP,_.d);_.x([_.V(),_.S("design:type",Object)],uP.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.x([_.Ye({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],uP);
_.y(uP,"ytd-destination-button-renderer",function(){if(h4X!==void 0)return h4X;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return h4X=m},{mode:1});var paB;var h8=function(){var m=_.d.apply(this,arguments)||this;m.isRichGrid=!1;m.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return m};
_.n(h8,_.d);_.w=h8.prototype;_.w.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.w.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.w.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.w.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var m;if((m=this.data)==null||!m.isExpanded){m=this.hostElement.clientWidth;var G;if(m&&(G=this.data)!=null&&G.destinationButtons){G=Math.floor((m+4)/214);m=this.data.destinationButtons.length;var K=Math.ceil(m/G);this.fullyVisibleRows=m%G===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}}}};
_.w.updateRichGridDestinationButtonsVisibility=function(){var m,G;if(this.isRichGrid&&((m=this.data)==null||!m.isExpanded)&&(G=this.data)!=null&&G.destinationButtons){m=this.richGridItemsPerRow+1;G=this.data.destinationButtons.length;var K=Math.ceil(G/m);this.fullyVisibleRows=G%m===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}};
_.w.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
h8.prototype.updateRichGridDestinationButtonsVisibility=h8.prototype.updateRichGridDestinationButtonsVisibility;_.x([_.V(),_.S("design:type",Object)],h8.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],h8.prototype,"fullyVisibleRows",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],h8.prototype,"isShowMoreVisible",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],h8.prototype,"isRichGrid",void 0);
_.x([_.V({selector:_.Ov,value:0}),_.S("design:type",Number)],h8.prototype,"richGridItemsPerRow",void 0);_.x([_.V(),_.S("design:type",Object)],h8.prototype,"gridStateActionMap",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],h8.prototype,"ytdReduxBehavior",void 0);_.x([_.Sb("data","richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],h8.prototype,"updateRichGridDestinationButtonsVisibility",null);_.x([_.Ye({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],h8);
_.y(h8,"ytd-destination-shelf-renderer",function(){if(paB!==void 0)return paB;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return paB=m},{mode:1});var Jc4;var p3=function(){return _.d.apply(this,arguments)||this};
_.n(p3,_.d);p3.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],p3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],p3);
_.y(p3,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Jc4!==void 0)return Jc4;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Jc4=m},{mode:1});var NuF;var J8=function(){var m=_.d.apply(this,arguments)||this;m.disableAnimation=!1;m.isSlimlineSurvey=!1;m.isSlimlineSurveyFollowUp=!1;m.isShortsStyle=!1;return m};
_.n(J8,_.d);J8.prototype.onTap=function(m){m.preventDefault();this.data&&_.Zw(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.e_.Object.defineProperties(J8.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 m,G,K,W,L;return((m=this.data)==null?0:m.checked)?(G=this.data)==null?void 0:(K=G.onStateIcon)==null?void 0:K.iconType:(W=this.data)==null?void 0:(L=W.defaultStateIcon)==null?void 0:L.iconType}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],J8.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],J8.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],J8.prototype,"disableAnimation",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],J8.prototype,"isSlimlineSurvey",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],J8.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],J8.prototype,"isShortsStyle",void 0);_.x([_.E("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],J8.prototype,"isAnimatedIcon",null);
_.x([_.E("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Number),_.S("design:paramtypes",[])],J8.prototype,"iconSize",null);_.x([_.E("isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],J8.prototype,"isDarkTheme",null);_.x([_.E("data.checked"),_.S("design:type",Object),_.S("design:paramtypes",[])],J8.prototype,"icon",null);_.x([_.Ye({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],J8);
_.y(J8,"ytd-rating-survey-option-renderer",function(){if(NuF!==void 0)return NuF;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return NuF=m},{mode:2});var Dw0;var Nr=function(){var m=_.d.apply(this,arguments)||this;m.firstResponseText=null;m.lastResponseText=null;m.selectedNonStarOption=null;m.hideOptions=!1;m.hideUndoButton=!0;m.disableAnimation=!1;m.showResponseRangeText=!1;m.selectedRatingIndex=-1;m.isSlimlineSurvey=!1;m.isSlimlineSurveyFollowUp=!1;m.isShortsStyle=!1;m.slimlineSurveyRatingSelectedIndex=-1;return m};
_.n(Nr,_.d);_.w=Nr.prototype;_.w.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.w.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.w.onOptionChange=function(m,G){var K=this;m=G.onStateIcon&&G.defaultStateIcon&&G.onStateIcon.iconType===G.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(O,c){O.responseText===G.responseText?K.isSlimlineSurvey?(K.selectedRatingIndex=c,K.ytdReduxBehavior.dispatch(Q4K(c))):(K.setSurveyOptionValue(c,!0,"checked"),K.setSurveyOptionValue(c,!0,"selected")):(K.setSurveyOptionValue(c,!1,"checked"),K.setSurveyOptionValue(c,
!1,"selected"))});
else if(m)this.selectedNonStarOption=G,this.hideOptions=!0;else{var W=this.ytRendererBehavior.getSimpleString(G.responseText),L=!0;this.getOptionRenderers().forEach(function(O,c){K.setSurveyOptionValue(c,L,"checked");K.setSurveyOptionValue(c,!1,"selected");K.ytRendererBehavior.getSimpleString(O.responseText)===W&&(L=!1,K.setSurveyOptionValue(c,!0,"selected"))})}m=G.responseEndpoint;
var A;G.followUpCommand&&(A=_.Q(G.followUpCommand,OUR));this.isSlimlineSurvey?(this.resetComponent(),_.dU(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.dU(this.hostElement,"ytd-inline-survey-rating-select-action",[m,A])};
_.w.showSelectedOption=function(){var m=this;_.Fu.addJob(function(){var G=m.getOptionRenderers()[m.slimlineSurveyRatingSelectedIndex];m.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),G)},8,100)};
_.w.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(m){var G;return(G=_.Q(m,Y4F))!=null?G:{}}):[]};
_.w.onUndoClick=function(){this.resetComponent();_.dU(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.w.setSurveyOptionValue=function(m,G,K){this.notifyPath("data.ratings."+m+".ratingSurveyOptionRenderer."+K);this.set("data.ratings."+m+".ratingSurveyOptionRenderer."+K,G)};
_.w.resetComponent=function(){var m=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var G=this.getOptionRenderers(),K,W;this.firstResponseText=(W=(K=G[0])==null?void 0:K.responseText)!=null?W:null;var L,A;this.lastResponseText=(A=(L=G[G.length-1])==null?void 0:L.responseText)!=null?A:null;G.forEach(function(O,c){m.setSurveyOptionValue(c,!1,"checked");m.setSurveyOptionValue(c,!1,"selected")})};
_.e_.Object.defineProperties(Nr.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
Nr.prototype.onOptionChange=Nr.prototype.onOptionChange;Nr.prototype.dataChanged=Nr.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Nr.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"firstResponseText",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"lastResponseText",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"selectedNonStarOption",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"hideOptions",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"hideUndoButton",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"disableAnimation",void 0);
_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"showResponseRangeText",void 0);_.x([_.V(),_.S("design:type",Object)],Nr.prototype,"selectedRatingIndex",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Nr.prototype,"isSlimlineSurvey",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Nr.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Nr.prototype,"isShortsStyle",void 0);_.x([_.V({selector:function(m){return m.ui.slimlineSurveyRatingSelectedIndex}}),
_.S("design:type",Object)],Nr.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.x([_.E("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Nr.prototype,"isSingleSelect",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nr.prototype,"dataChanged",null);
_.x([_.XC("ytd-rating-survey-option-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],Nr.prototype,"onOptionChange",null);_.x([_.Ye({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],Nr);
_.y(Nr,"ytd-rating-survey-renderer",function(){if(Dw0!==void 0)return Dw0;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Dw0=m},{mode:1});var t6F;var FRG;var QVR;var q2M=(xA.FIRSTDAYOFWEEK+1)%7,aK0=function(m,G,K,W){var L="";if(W.selection&&boP(W.selection))yH(m,W.selection)&&(L+=" selected");else if(W.selection&&vwG(W.selection)){var A=W.selection.selectionState||"START_DATE";yH(m,W.selection.start)&&(L+=" period-start ",A==="START_DATE"&&(L+="selected"));yH(m,W.selection.end)&&(L+=" period-end ",A==="END_DATE"&&(L+="selected"));eF(m,W.selection.start)||eF(W.selection.end,m)||(L+=" highlighted")}if(eF(G,W.start)||eF(W.end,G))L+=" disabled";W.circleToday&&
yH(G,K)&&(L+=" today");return L};var DN=function(){return _.d.apply(this,arguments)||this};
_.n(DN,_.d);_.w=DN.prototype;_.w.attached=function(){var m=this;_.Pv(this,function(){m.JSC$16404_calendarMain.scrollHeight>0&&(m.calendarConfig.selection?m.scrollToDate($sM(m.calendarConfig.selection)):m.scrollToDate(m.calendarConfig.end))})};
_.w.updateSelection=function(m){m=Ew9(Object.assign({},this.calendarConfig,{selection:m}),aK0);this.splice.apply(this,["renderData.months",0,m.length].concat(_.Bz(m)))};
_.w.scrollToDate=function(m){this.renderData&&(m=Hov(m,this.renderData),m!==void 0&&this.JSC$16404_calendarMain.scrollToIndex(m))};
_.w.scrollToNextMonth=function(){this.JSC$16404_calendarMain.scrollToIndex(this.JSC$16404_calendarMain.firstVisibleIndex+1)};
_.w.scrollToPrevMonth=function(){this.JSC$16404_calendarMain.firstVisibleIndex===0&&this.JSC$16404_calendarMain.scrollTo(0,0);this.JSC$16404_calendarMain.scrollToIndex(this.JSC$16404_calendarMain.firstVisibleIndex-1)};
_.w.handleDayClick=function(m){_.dU(this.hostElement,"ytd-calendar-date-clicked",[m.model.day.date])};
_.w.handleDayMouseDown=function(m){m.preventDefault();_.dU(this.hostElement,"ytd-calendar-date-mousedown",[m.model.day.date])};
_.w.handleDayMouseUp=function(m){_.dU(this.hostElement,"ytd-calendar-date-mouseup",[m.model.day.date])};
_.w.handleDayMouseEnter=function(m){m.preventDefault();_.dU(this.hostElement,"ytd-calendar-date-mouseenter",[m.model.day.date])};
_.w.handleDayMouseLeave=function(m){_.dU(this.hostElement,"ytd-calendar-date-mouseleave",[m.model.day.date])};
_.e_.Object.defineProperties(DN.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var m=this.calendarConfig,G=aK0;G=G===void 0?aK0:G;for(var K=[],W=0;W<7;W++)K.push(xA.NARROWWEEKDAYS[(W+q2M)%7]);return{months:Ew9(m,G),daysOfWeekLabel:K}}}});
_.x([_.V(),_.S("design:type",Object)],DN.prototype,"calendarConfig",void 0);_.x([_.UM("#calendar-main"),_.S("design:type",Object)],DN.prototype,"JSC$16404_calendarMain",void 0);_.x([_.E("calendarConfig"),_.S("design:type",Object),_.S("design:paramtypes",[])],DN.prototype,"renderData",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],DN);
_.y(DN,"ytd-scrollable-calendar",function(){if(QVR!==void 0)return QVR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QVR=m},{mode:2});var oal;var naX;var t8=function(){var m=_.d.apply(this,arguments)||this;m.hideCharCounter=!1;m.hideLabel=!1;m.noLabelFloat=!1;m.autoValidate=!0;m.invalid=!1;m.disabled=!1;m.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return m};
_.n(t8,_.d);_.w=t8.prototype;_.w.reset=function(m){this.value=m&&this.data?this.data.value=m:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.w.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.w.focusTextInput=function(){this.input.focus()};
_.w.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()};
_.w.valueChanged=function(){var m,G;if(((m=this.data)==null?0:m.value)||((G=this.data)==null?void 0:G.value)==="")this.value=this.data.value;else{var K;((K=this.data)==null?void 0:K.value)!==void 0||this.value||(this.value="")}};
_.w.computeLabel=function(m,G){return G?"":_.bw(m)};
_.w.computeAriaLabel=function(m,G){return G?_.bw(m):""};
_.w.computeErrorMessage=function(m,G,K,W){return!m&&G?K||this.strings.REQUIRED_LABEL:_.uJK(_.bw(W))};
_.w.computeType=function(m){return m==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.w.onTextValueChanged=function(m){this.value=m.detail.value;var G;(G=this.onValueChanged)==null||G.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.w.handleUpdateTextInputFormFieldRendererCommand=function(m){(m=_.Q(m,H$R))&&this.data&&this.data.id===m.id&&(m.invalid!==void 0&&(this.invalid=m.invalid),m.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",m.invalidValueErrorMessage))};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("value-changed",this.value))};
_.w.updateInvalidFromBinding=function(m){this.invalid=m.detail.value};
_.e_.Object.defineProperties(t8.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var m;return!((m=this.data)==null||!m.isMultiline)}}});
t8.prototype.valueChangedForBinding=t8.prototype.valueChangedForBinding;t8.prototype.valueChanged=t8.prototype.valueChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],t8.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],t8.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],t8.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],t8.prototype,"value",void 0);_.x([_.V(),_.S("design:type",String)],t8.prototype,"pattern",void 0);_.x([_.V(),_.S("design:type",String)],t8.prototype,"errorMessage",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],t8.prototype,"componentStyle",void 0);_.x([_.V(),_.S("design:type",Object)],t8.prototype,"hideCharCounter",void 0);
_.x([_.V(),_.S("design:type",Object)],t8.prototype,"hideLabel",void 0);_.x([_.V(),_.S("design:type",Object)],t8.prototype,"noLabelFloat",void 0);_.x([_.V(),_.S("design:type",Function)],t8.prototype,"onValueChanged",void 0);_.x([_.V(),_.S("design:type",Boolean)],t8.prototype,"isMultilineOverride",void 0);_.x([_.V(),_.S("design:type",Object)],t8.prototype,"autoValidate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t8.prototype,"invalid",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t8.prototype,"disabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],t8.prototype,"enableOverlayTheme",void 0);_.x([_.V({value:{REQUIRED_LABEL:_.zq("REQUIRED_LABEL",void 0,"Required")}}),_.S("design:type",Object)],t8.prototype,"strings",void 0);_.x([_.UM("#input"),_.S("design:type",Object)],t8.prototype,"input",void 0);
_.x([_.E("data","isMultilineOverride"),_.S("design:type",Object),_.S("design:paramtypes",[])],t8.prototype,"isMultiline",null);_.x([_.Mg("data.value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t8.prototype,"valueChanged",null);_.x([_.Sb("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t8.prototype,"valueChangedForBinding",null);_.x([_.cL({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],t8);
_.y(t8,"yt-text-input-form-field-renderer",function(){if(naX===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;oal===void 0&&(oal=document.createElement("template"));var W=oal;K.call(G,W.content.cloneNode(!0),m.content.firstChild);naX=m}m=naX;return m},{mode:2});var FT=function(){var m=_.d.apply(this,arguments)||this;m.data=void 0;m.selectionState="START_DATE";m.isStartDateInvalid=!1;m.isEndDateInvalid=!1;m.autoapply=!1;m.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 m};
_.n(FT,_.d);_.w=FT.prototype;_.w.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"}}}}};
_.w.focus=function(){this.startDateInput.focus()};
_.w.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:fQ(this.data.selection.start),end:fQ(this.data.selection.end)})};
_.w.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.w.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.GG(this.selectionState)}};
_.w.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.w.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.w.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.w.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var m=this.calendar.calendarConfig,G=m.end;m=j5d({start:m.start,end:this.endDate||G},this.startDateInput.value||"");this.isStartDateInvalid=!m.isValid;m.isValid&&(m=m.value,this.selection=this.endDate?{start:m,end:this.endDate}:m,this.calendar.scrollToDate(m));this.updateInvalidState()}};
_.w.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var m=this.calendar.calendarConfig,G=m.start;m=j5d({start:this.startDate||G,end:m.end},this.endDateInput.value||"");this.isEndDateInvalid=!m.isValid;m.isValid&&(m=m.value,this.selection={start:this.startDate,end:m},this.calendar.scrollToDate(m));this.updateInvalidState()}};
_.w.handleCalendarDateClicked=function(m){var G=this.selection&&$sM(this.selection),K=this.selection&&s5o(this.selection);G&&!eF(m,G)&&this.selectionState==="END_DATE"?(this.selection={start:G,end:m},this.selectionState="START_DATE"):(K&&!eF(K,m)?this.selection={start:m,end:K}:this.selection=m,this.selectionState="END_DATE")};
_.w.handleCalendarDateMouseDown=function(m){this.selection&&!boP(this.selection)&&(this.dragPivot=yH(m,this.selection.start)?this.selection.end:yH(m,this.selection.end)?this.selection.start:m)};
_.w.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.w.handleCalendarDateMouseEnter=function(m){this.dragPivot&&(this.selection={start:function(G,K){return eF(G,K)?G:K}(this.dragPivot,m),
end:function(G,K){return eF(G,K)?K:G}(this.dragPivot,m)},this.dragPivot||(this.selectionState="START_DATE"))};
_.w.handleCalendarDateMouseLeave=function(){};
_.w.handleCalendarSubmitDateRange=function(){this.selection&&!boP(this.selection)&&_.dU(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.w.updateInvalidState=function(){var m=function(G,K){K?G.setAttribute("invalid",""):G.removeAttribute("invalid")};
m(this.startDateInput,this.isStartDateInvalid);m(this.endDateInput,this.isEndDateInvalid)};
_.w.updateDateStrings=function(){this.selection&&(boP(this.selection)?nwd(this.selection):(nwd(this.selection.start),nwd(this.selection.end)))};
_.w.updateCalendarSelection=function(m){this.calendar.updateSelection(Object.assign({},m,{selectionState:this.selectionState}))};
_.w.updateIsStartDateInvalidFromBinding=function(m){this.isStartDateInvalid=m.detail.value};
_.w.updateIsEndDateInvalidFromBinding=function(m){this.isEndDateInvalid=m.detail.value};
_.w.updateStartDateStringFromBinding=function(){};
_.w.updateEndDateStringFromBinding=function(){};
_.e_.Object.defineProperties(FT.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:fQ(this.data.dateRangeStart),end:fQ(this.data.dateRangeEnd),selection:{start:fQ(this.data.selection.start),end:fQ(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&$sM(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&s5o(this.selection)}}});
FT.prototype.resetTextboxes=FT.prototype.resetTextboxes;FT.prototype.observeSelection=FT.prototype.observeSelection;FT.prototype.dataChanged=FT.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],FT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],FT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#calendar"),_.S("design:type",Object)],FT.prototype,"calendar",void 0);
_.x([_.UM("#start-date"),_.S("design:type",Object)],FT.prototype,"startDateInput",void 0);_.x([_.UM("#end-date"),_.S("design:type",Object)],FT.prototype,"endDateInput",void 0);_.x([_.V(),_.S("design:type",Object)],FT.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],FT.prototype,"selection",void 0);_.x([_.V(),_.S("design:type",String)],FT.prototype,"selectionState",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],FT.prototype,"calendarConfig",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],FT.prototype,"errorMessage",null);_.x([_.E("selection"),_.S("design:type",Object),_.S("design:paramtypes",[])],FT.prototype,"startDate",null);_.x([_.E("selection"),_.S("design:type",Object),_.S("design:paramtypes",[])],FT.prototype,"endDate",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FT.prototype,"dataChanged",null);
_.x([_.Sb("selection","selectionState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FT.prototype,"observeSelection",null);_.x([_.Sb("selectionState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FT.prototype,"resetTextboxes",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],FT);
_.y(FT,"ytd-date-period-picker-renderer",function(){if(FRG!==void 0)return FRG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return FRG=m},{mode:1});var Q6=function(){var m=_.d.apply(this,arguments)||this;var G={};m.actionMap=(G["ytd-date-period-picker-apply"]="handleDateRangeUpdated",G);return m};
_.n(Q6,_.d);Q6.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Q6.prototype.handleDateRangeUpdated=function(){};
_.x([_.V(),_.S("design:type",Object)],Q6.prototype,"data",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Q6.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Q6.prototype,"rendererstamperBehavior",void 0);_.x([_.Ye({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Q6);
_.y(Q6,"ytd-report-history-section-header-renderer",function(){if(t6F!==void 0)return t6F;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return t6F=m},{mode:1});var b7G;var vak;var $wX;var ad=function(){return _.d.apply(this,arguments)||this};
_.n(ad,_.d);_.e_.Object.defineProperties(ad.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?0:(G=m.icon)==null?0:G.iconType)?_.ew(this.data.icon.iconType):""}}});
_.x([_.V(),_.S("design:type",Object)],ad.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],ad.prototype,"icon",null);_.x([_.Ye({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],ad);
_.y(ad,"ytd-report-history-table-text-cell-renderer",function(){if($wX!==void 0)return $wX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $wX=m},{mode:1});var od=function(){return _.d.apply(this,arguments)||this};
_.n(od,_.d);od.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],od.prototype,"data",void 0);_.x([_.Ye({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],od);
_.y(od,"ytd-report-history-table-reason-cell-renderer",function(){if(vak!==void 0)return vak;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vak=m},{mode:1});var n3=function(){return _.d.apply(this,arguments)||this};
_.n(n3,_.d);n3.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"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],n3.prototype,"rendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],n3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],n3);
_.y(n3,"ytd-report-history-table-cell-renderer",function(){if(b7G!==void 0)return b7G;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return b7G=m},{mode:1});var sV2;var bP=function(){var m=_.d.apply(this,arguments)||this;m.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 m};
_.n(bP,_.d);bP.prototype.onDataChanged=function(){var m;if((m=this.data)==null?0:m.style)this.componentStyle=this.getStyleName(this.data.style)};
bP.prototype.getCellForColumn=function(m){return this.cells.find(function(G){var K;return((K=_.Q(G==null?void 0:G.cell,hiK)||_.Q(G==null?void 0:G.cell,uVK))==null?void 0:K.columnId)===m.type})};
bP.prototype.getClassForColumn=function(m){switch(m){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
bP.prototype.getStyleName=function(m){switch(m){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.e_.Object.defineProperties(bP.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.cells)||[]).map(function(G){return _.Q(G,rpl)})}}});
bP.prototype.onDataChanged=bP.prototype.onDataChanged;_.x([_.V(),_.S("design:type",Object)],bP.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],bP.prototype,"columnRenderData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],bP.prototype,"componentStyle",void 0);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],bP.prototype,"cells",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bP.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],bP);
_.y(bP,"ytd-report-history-table-row-renderer",function(){if(sV2!==void 0)return sV2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sV2=m},{mode:1});var qN2;var Eal;var kDd={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Cao={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var vh=function(){return _.d.apply(this,arguments)||this};
_.n(vh,_.d);vh.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"}}}}}};
vh.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.e_.Object.defineProperties(vh.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.columns)?yTG(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return dsf(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var m=this.tableSpec,G=kDd;G=G===void 0?Cao:G;G=Pa6(m.columnDimensions,m.columnsToShow||[],G);m=0;G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,m+=K.minWidth+K.paddingLeft+K.paddingRight;return m}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.x([_.q(_.n4),_.S("design:type",Object)],vh.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vh.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],vh.prototype,"tableSpec",null);_.x([_.E("tableSpec"),_.S("design:type",Array),_.S("design:paramtypes",[])],vh.prototype,"columnRenderData",null);
_.x([_.E("tableSpec"),_.S("design:type",Number),_.S("design:paramtypes",[])],vh.prototype,"totalMinWidth",null);_.x([_.E("totalMinWidth"),_.S("design:type",String),_.S("design:paramtypes",[])],vh.prototype,"tableWidthStyle",null);_.x([_.Ye({is:"ytd-table-renderer",disableElementRegistration:!0})],vh);
_.y(vh,"ytd-table-renderer",function(){if(Eal!==void 0)return Eal;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Eal=m},{mode:1});var $F=function(){return _.d.apply(this,arguments)||this};
_.n($F,_.d);$F.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}}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$F.prototype,"data",void 0);_.x([_.Ye({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],$F);
_.y($F,"ytd-report-reason-history-modal-renderer",function(){if(qN2!==void 0)return qN2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qN2=m},{mode:1});var H7X;var IKk;var jVP;var s3=function(){return _.d.apply(this,arguments)||this};
_.n(s3,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],s3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],s3);
_.y(s3,"ytd-profile-column-stats-entry-renderer",function(){if(jVP!==void 0)return jVP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jVP=m},{mode:1});var kai;var qr=function(){return _.d.apply(this,arguments)||this};
_.n(qr,_.d);qr.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qr.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qr.prototype,"data",void 0);_.x([_.Ye({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],qr);
_.y(qr,"ytd-profile-column-stats-renderer",function(){if(kai!==void 0)return kai;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return kai=m},{mode:1});var Cy2;var E3=function(){return _.d.apply(this,arguments)||this};
_.n(E3,_.d);_.e_.Object.defineProperties(E3.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.useThumbnailSize)return 80;var G,K;m=(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.thumbnails;var W;return m&&((W=m[0])==null?void 0:W.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.useThumbnailSize)return 80;var G,K;m=(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.thumbnails;var W;return m&&((W=m[0])==null?void 0:W.height)||80}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],E3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],E3.prototype,"componentStyle",void 0);_.x([_.E("data.useThumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],E3.prototype,"thumbnailWidth",null);
_.x([_.E("data.useThumbnailSize"),_.S("design:type",Object),_.S("design:paramtypes",[])],E3.prototype,"thumbnailHeight",null);_.x([_.Ye({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],E3);
_.y(E3,"ytd-profile-column-user-info-renderer",function(){if(Cy2!==void 0)return Cy2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Cy2=m},{mode:1});var Hh=function(){return _.d.apply(this,arguments)||this};
_.n(Hh,_.d);Hh.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]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hh.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],Hh.prototype,"componentStyle",void 0);_.x([_.Ye({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],Hh);
_.y(Hh,"ytd-profile-column-renderer",function(){if(IKk!==void 0)return IKk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IKk=m},{mode:1});var Id=function(){var m=_.d.apply(this,arguments)||this;m.componentStyle="NON_CENTERED_PROFILE";return m};
_.n(Id,_.d);Id.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Id.prototype.getIcon=function(m){return m?"settings:"+m.toLowerCase():null};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Id.prototype,"data",void 0);_.x([_.Ye({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Id);
_.y(Id,"ytd-page-introduction-renderer",function(){if(H7X!==void 0)return H7X;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return H7X=m},{mode:1});var V6K;var jE=function(){return _.d.apply(this,arguments)||this};
_.n(jE,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jE.prototype,"data",void 0);_.x([_.Ye({is:"ytd-report-description-renderer",disableElementRegistration:!0})],jE);
_.y(jE,"ytd-report-description-renderer",function(){if(V6K!==void 0)return V6K;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return V6K=m},{mode:1});var Z70;var dwl;var kF=function(){return _.d.apply(this,arguments)||this};
_.n(kF,_.d);kF.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kF.prototype,"data",void 0);_.x([_.Ye({is:"ytd-video-report-renderer",disableElementRegistration:!0})],kF);
_.y(kF,"ytd-video-report-renderer",function(){if(dwl!==void 0)return dwl;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dwl=m},{mode:1});var PyF;_.Kz("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Kz("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var C3=function(){return _.d.apply(this,arguments)||this};
_.n(C3,_.d);C3.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]]"}}}}}};
C3.prototype.computeMessageStyle=function(m){return m};
C3.prototype.computeButtonOverride=function(m){var G;if((m==null?0:(G=m.style)==null?0:G.value)&&m.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],C3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],C3.prototype,"shelf",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],C3.prototype,"panel",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.S("design:type",Boolean)],C3.prototype,"componentStyle",void 0);_.x([_.V({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],C3.prototype,"buttonOverride",void 0);_.x([_.Ye({is:"ytd-message-renderer",disableElementRegistration:!0})],C3);
_.y(C3,"ytd-message-renderer",function(){if(PyF!==void 0)return PyF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PyF=m},{mode:1});var V6=function(){return _.d.apply(this,arguments)||this};
_.n(V6,_.d);V6.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"}}}};
V6.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
V6.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.e_.Object.defineProperties(V6.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!(((m=this.data)==null?0:m.header)&&((G=this.data)==null?0:G.table))}}});
V6.prototype.onRequestError=V6.prototype.onRequestError;_.x([_.q(_.n4),_.S("design:type",Object)],V6.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],V6.prototype,"data",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],V6.prototype,"isUnifiedReportHistory",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V6.prototype,"onRequestError",null);_.x([_.Ye({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],V6);
_.y(V6,"ytd-report-history-section-renderer",function(){if(Z70!==void 0)return Z70;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Z70=m},{mode:1});var yck;var ZN=function(){var m=_.d.apply(this,arguments)||this;m.answerExpanded=!1;return m};
_.n(ZN,_.d);ZN.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ZN.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZN.prototype,"answerExpanded",void 0);_.x([_.Ye({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],ZN);
_.y(ZN,"ytd-handles-claiming-faq-renderer",function(){if(yck!==void 0)return yck;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return yck=m},{mode:1});var e4o;var fKG=function(){return _.d.apply(this,arguments)||this};
_.n(fKG,_.d);_.x([_.V(),_.S("design:type",Object)],fKG.prototype,"data",void 0);_.x([_.Ye({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],fKG);
_.y(fKG,"ytd-handles-claiming-faq-section-renderer",function(){if(e4o!==void 0)return e4o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e4o=m},{mode:1});var xwk;var dw=function(){var m=_.d.apply(this,arguments)||this;m.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";m.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";m.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";m.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";m.leftSquiggly=m.leftSquigglyLight;m.rightSquiggly=m.rightSquigglyLight;
m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};m.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return m};
_.n(dw,_.d);_.w=dw.prototype;_.w.updateLeftSquigglyStyle=function(){_.eb(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.w.updateRightSquigglyStyle=function(){_.eb(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.w.ready=function(){var m=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(m)};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.set("isDarkTheme",m),m?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
dw.prototype.updateRightSquigglyStyle=dw.prototype.updateRightSquigglyStyle;dw.prototype.updateLeftSquigglyStyle=dw.prototype.updateLeftSquigglyStyle;_.x([_.V(),_.S("design:type",Object)],dw.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],dw.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",String)],dw.prototype,"leftSquiggly",void 0);_.x([_.V(),_.S("design:type",String)],dw.prototype,"rightSquiggly",void 0);
_.x([_.Sb("leftSquiggly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dw.prototype,"updateLeftSquigglyStyle",null);_.x([_.Sb("rightSquiggly"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dw.prototype,"updateRightSquigglyStyle",null);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dw.prototype,"actionButtonOverride",void 0);_.x([_.Ye({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],dw);
_.y(dw,"ytd-handles-claiming-header-renderer",function(){if(xwk!==void 0)return xwk;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return xwk=m},{mode:1});var XaC;var Ph=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};m.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";m.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";m.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";m.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
m.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";m.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";m.image0SquigglyBackground=m.image0LightSquigglyBackground;m.image1SquigglyBackground=m.image1LightSquigglyBackground;m.image3SquigglyBackground=m.image3LightSquigglyBackground;return m};
_.n(Ph,_.d);_.w=Ph.prototype;_.w.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.w.onDataChanged=function(){this.updateTitleAndImages()};
_.w.onThemeChanged=function(){this.updateTitleAndImages()};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.isDarkTheme=m)};
_.w.updateImage0SquigglyBackground=function(){_.eb(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.w.updateImage1SquigglyBackground=function(){_.eb(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.w.updateImage3SquigglyBackground=function(){_.eb(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.w.updateTitleAndImages=function(){var m,G;((m=this.data)==null?void 0:(G=m.titleImages)==null?void 0:G.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))};
Ph.prototype.updateImage3SquigglyBackground=Ph.prototype.updateImage3SquigglyBackground;Ph.prototype.updateImage1SquigglyBackground=Ph.prototype.updateImage1SquigglyBackground;Ph.prototype.updateImage0SquigglyBackground=Ph.prototype.updateImage0SquigglyBackground;Ph.prototype.onThemeChanged=Ph.prototype.onThemeChanged;Ph.prototype.onDataChanged=Ph.prototype.onDataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Ph.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"title0",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"title1",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"title2",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"title3",void 0);
_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"title4",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"image0",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"image1",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"image2",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"image3",void 0);_.x([_.V(),_.S("design:type",Object)],Ph.prototype,"image4",void 0);_.x([_.V(),_.S("design:type",String)],Ph.prototype,"image0SquigglyBackground",void 0);
_.x([_.V(),_.S("design:type",String)],Ph.prototype,"image1SquigglyBackground",void 0);_.x([_.V(),_.S("design:type",String)],Ph.prototype,"image3SquigglyBackground",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ph.prototype,"onDataChanged",null);_.x([_.Sb("isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ph.prototype,"onThemeChanged",null);
_.x([_.Sb("image0SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ph.prototype,"updateImage0SquigglyBackground",null);_.x([_.Sb("image1SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ph.prototype,"updateImage1SquigglyBackground",null);
_.x([_.Sb("image3SquigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ph.prototype,"updateImage3SquigglyBackground",null);_.x([_.Ye({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Ph);
_.y(Ph,"ytd-handles-claiming-title-images-section-renderer",function(){if(XaC!==void 0)return XaC;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XaC=m},{mode:1});var SNS;var y6=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(y6,_.d);y6.prototype.ready=function(){var m=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(m)};
y6.prototype.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&this.set("isDarkTheme",m)};
y6.prototype.onCopyButtonClick=function(){var m=this,G,K,W;return _.Y(function(L){return(G=m.data)!=null&&G.primaryChannelUrl?L.yield(navigator.clipboard.writeText(((K=m.data)==null?0:K.encodedChannelUrl)?m.data.encodedChannelUrl:"https://"+_.bw((W=m.data)==null?void 0:W.primaryChannelUrl)),0):L.jumpTo(0)})};
_.x([_.V(),_.S("design:type",Object)],y6.prototype,"data",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],y6.prototype,"ytComponentBehavior",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],y6.prototype,"isDarkTheme",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],y6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Ye({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],y6);
_.y(y6,"ytd-handles-claiming-update-social-renderer",function(){if(SNS!==void 0)return SNS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return SNS=m},{mode:1});var R4G;var eE=function(){var m=_.d.apply(this,arguments)||this;m.JSC$16498_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";m.JSC$16498_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};m.squigglyBackground=m.JSC$16498_squigglyBackgroundLight;return m};
_.n(eE,_.d);eE.prototype.updateSquigglyBackgroundStyle=function(){_.eb(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
eE.prototype.ready=function(){var m=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",m);this.squigglyBackground=m?this.JSC$16498_squigglyBackgroundDark:this.JSC$16498_squigglyBackgroundLight};
eE.prototype.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.set("isDarkTheme",m),this.squigglyBackground=m?this.JSC$16498_squigglyBackgroundDark:this.JSC$16498_squigglyBackgroundLight)};
eE.prototype.updateSquigglyBackgroundStyle=eE.prototype.updateSquigglyBackgroundStyle;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],eE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],eE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],eE.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],eE.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",String)],eE.prototype,"squigglyBackground",void 0);_.x([_.Sb("squigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eE.prototype,"updateSquigglyBackgroundStyle",null);_.x([_.Ye({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],eE);
_.y(eE,"ytd-handles-claiming-vanity-info-renderer",function(){if(R4G!==void 0)return R4G;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return R4G=m},{mode:1});var Uw4;var f3=function(){var m=_.d.apply(this,arguments)||this;m.JSC$16501_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";m.JSC$16501_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";m.squigglyBackground=m.JSC$16501_squigglyBackgroundLight;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(f3,_.d);_.w=f3.prototype;_.w.ready=function(){var m=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(m)};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.set("isDarkTheme",m),this.squigglyBackground=m?this.JSC$16501_squigglyBackgroundDark:this.JSC$16501_squigglyBackgroundLight)};
_.w.updateSquigglyBackgroundStyle=function(){_.eb(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.w.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.w.detached=function(){this.stop()};
_.w.stop=function(){this.playerElement.stop()};
_.w.setupVideoPlayer=function(){var m=this,G,K;return _.Y(function(W){G=m.data.videoId;K="http://i1.ytimg.com/vi/"+G+"/maxresdefault.jpg";m.playerElement.loadVideoWithPlayerVars({video_id:G,iurlhq:K});_.ey(W)})};
f3.prototype.onDataChanged=f3.prototype.onDataChanged;f3.prototype.updateSquigglyBackgroundStyle=f3.prototype.updateSquigglyBackgroundStyle;_.x([_.V({value:!1}),_.S("design:type",Boolean)],f3.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",String)],f3.prototype,"squigglyBackground",void 0);_.x([_.UM("#player"),_.S("design:type",Object)],f3.prototype,"playerElement",void 0);_.x([_.V(),_.S("design:type",Object)],f3.prototype,"data",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],f3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Sb("squigglyBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f3.prototype,"updateSquigglyBackgroundStyle",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f3.prototype,"onDataChanged",null);
_.x([_.Ye({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],f3);
_.y(f3,"ytd-handles-claiming-video-item-renderer",function(){if(Uw4!==void 0)return Uw4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Uw4=m},{mode:1});var z4o;var XT=function(){var m=_.l0.apply(this,arguments)||this;m.dragging=!1;m.dragMouseStart=0;m.dragOffsetStart=0;m.containerWidthDiff=0;m.boundPrevClick=function(){m.set("offset",xF(m,m.offset-(m.scrollDistance||320)))};
m.boundNextClick=function(){m.set("offset",xF(m,m.offset+(m.scrollDistance||320)))};
m.boundScrollContainerMouseDown=function(G){m.dragMouseStart=G.clientX;m.dragOffsetStart=m.offset;m.dragging=!0};
m.boundScrollContainerDrag=function(G){m.dragging&&m.set("offset",xF(m,m.dragOffsetStart-(G.clientX-m.dragMouseStart)))};
m.boundMouseUp=function(){m.onMouseUp()};
m.boundWheelScroll=function(G){var K=0;Math.abs(G.deltaX)>=Math.abs(G.deltaY)?K=G.deltaX:G.shiftKey&&(K=G.deltaY);K!==0&&(m.offset+=K,G.stopPropagation(),G.preventDefault())};
m.boundChipCloudChipScrollIntoView=function(G){(G=G.detail)&&m.scrollChipIntoView(G)};
return m};
_.n(XT,_.l0);XT.prototype.attached=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container");m.addEventListener("wheel",this.boundWheelScroll);m.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);m.style.touchAction="pan-y";m.addEventListener("pointerdown",this.boundScrollContainerMouseDown);m.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
XT.prototype.detached=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container");m.removeEventListener("wheel",this.boundWheelScroll);m.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);m.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);m.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
XT.prototype.reset=function(){this.set("offset",0);_.Pv(this,this.setContainerWidthDiff);_.Pv(this,this.setButtonsState)};
var xF=function(m,G){return Math.min(Math.max(G,0),m.containerWidthDiff)};
_.w=XT.prototype;_.w.onMouseUp=function(){this.dragging=!1};
_.w.transformContainer=function(){this.offset=xF(this,this.offset);var m=_.E8("HTML_DIR")==="rtl"?"":"-";_.VL(this.hostElement).querySelector("#chips").style.transform="translateX("+m+this.offset+"px)";_.Pv(this,this.setButtonsState)};
_.w.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=xF(this,this.offset));this.atStart=this.offset<=0};
_.w.setContainerWidthDiff=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container"),G=_.VL(this.hostElement).querySelector("#chips");m&&G&&(this.containerWidthDiff=G.clientWidth-m.clientWidth)};
_.w.scrollChipIntoView=function(m){var G=_.VL(this.hostElement).querySelector("#scroll-container");if(G){var K=this.atStart?0:106,W=this.atEnd?0:106;m.offsetLeft<this.offset+K?this.offset=xF(this,m.offsetLeft-K):m.offsetLeft+m.clientWidth>this.offset+G.clientWidth-W&&(this.offset=xF(this,m.offsetLeft+m.clientWidth+W-G.clientWidth))}};
XT.prototype.transformContainer=XT.prototype.transformContainer;_.x([_.V({value:0}),_.S("design:type",Number)],XT.prototype,"offset",void 0);_.x([_.V({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],XT.prototype,"atStart",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],XT.prototype,"atEnd",void 0);_.x([_.V(),_.S("design:type",Number)],XT.prototype,"scrollDistance",void 0);
_.x([_.Sb("offset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XT.prototype,"transformContainer",null);_.x([_.Be()],XT);var lKK;var BuX;_.SE=_.P(function(m){var G=m.data;m=_.g(_.g_(!1,void 0,"bob3J"));var K=m.next().value,W=m.next().value;m=function(A){if((G==null?void 0:G().state)!==1){var O,c;(c=(O=G()).onTap)==null||c.call(O,A)}};
var L={};return _.r("chip-shape",{class:"ytChipShapeHost","on:focusin":_.dn(function(){var A=_.xS().resolve(_.fn(_.sH));if(A){W(A.isKeyBoardInUse());var O,c;(c=(O=G()).onFocusIn)==null||c.call(O)}return!1}),
"on:focusout":_.dn(function(){W(!1);return!1})},_.r(M60,{shouldWrapInButton:function(){return G().type!==2},
selected:function(){return G().state===0},
onClick:m,isDropdown:function(){return G().type===1},
accessibilityLabel:function(){return G().type===1?void 0:G().accessibilityLabel}},_.r("div",{class:_.VO("ytChipShapeChip",function(){a:switch(G==null?void 0:G().state){case 0:var A="ytChipShapeActive";
break a;case 1:A="ytChipShapeDisabled";break a;default:A="ytChipShapeInactive"}return A},function(){var A=G().type===1||G().type===2,O=G();
return A||O!=null&&O.startIcon?O==null||!O.startIcon||O!=null&&O.text?A?"ytChipShapeEndIconPadding":(O==null?0:O.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var A=G();
if((A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0){var O;A=((O=_.xS().resolve(_.fn(_.l_)))==null?0:O())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else A="";return A},(L.ytChipShapeFocused=function(){var A;
return K()&&((A=G())==null?void 0:A.state)!==1},L))},_.r(_.p,{cond:function(){return G().startIcon},
then:function(){return _.r(_.fN,{icon:function(){var A;return(A=G())==null?void 0:A.startIcon},
className:_.VO(function(){return G().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var A=G(),O,c=(O=_.xS().resolve(_.fn(_.l_)))==null?void 0:O();
return(A==null?void 0:A.style)===0&&(A==null?void 0:A.state)===0&&c?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return G().text},_.r(TuP,{shape:G,
onClick:m}),_.r(_.EH,{model:{borderRadius:"8px"}}))))},"Qc");
_.SE.idomCompat=!0;var M60=_.P(function(m){var G=_.dn(function(K){m.onClick(K);return!1});
return _.r(_.p,{cond:m.shouldWrapInButton,then:function(){return _.r("button",{class:"ytChipShapeButtonReset","on:click":G,role:function(){return m.isDropdown()?"combobox":"tab"},
"aria-label":m.accessibilityLabel,"aria-selected":m.selected},m.children)},
else:function(){return m.children}})},"Rc"),TuP=_.P(function(m){var G=m.shape;
var K=m.onClick;var W=_.dn(function(L){K(L);return!1});
return _.r(_.tw,null,_.r(_.Jw,{when:function(){return G().type===1}},function(){return _.r(_.fN,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.r(_.Jw,{when:function(){return G().type===2}},function(){return _.r("button",{class:"ytChipShapeButtonReset",
"on:click":W},_.r(_.fN,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.r(_.Jw,{when:function(){return G().type===0}},function(){return _.r(_.zL,null)}))},"Sc");_.sh(_.SE,"chip-shape",{props:{data:_.Dd}});var Rd=function(){var m=_.d.apply(this,arguments)||this;m.disableDeselectEvent=!1;m.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return m};
_.n(Rd,_.d);_.w=Rd.prototype;_.w.onSelectChipCommand=function(m){if(!this.selected&&this.data&&(m=_.Q(m,QU2),m.targetId&&m.targetId===this.data.targetId))this.onTap()};
_.w.onFilterChipTransformCommand=function(m){if(!this.selected&&this.data){var G;(m=(G=_.Q(m,rZR))==null?void 0:G.chipUniqueId)&&m===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.w.dataChanged=function(){var m=this;_.Pv(this,function(){m.data&&m.data.isSelected&&!m.selected&&(m.scrollChipIntoView(),m.onTap())})};
_.w.computeChipStyle=function(m){return m!=null?m:"STYLE_DEFAULT"};
_.w.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint?_.dU(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.dU(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.w.onFocus=function(){var m=_.xS().resolve(_.fn(_.sH));m&&m.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.w.scrollChipIntoView=function(){_.Zw(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.e_.Object.defineProperties(Rd.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.icon)}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Usv({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
Rd.prototype.onFocus=Rd.prototype.onFocus;Rd.prototype.onTap=Rd.prototype.onTap;Rd.prototype.dataChanged=Rd.prototype.dataChanged;_.x([_.q(_.RU),_.S("design:type",Object)],Rd.prototype,"ironButtonState",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Rd.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Rd.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.x4),_.S("design:type",Object)],Rd.prototype,"ironA11yKeysBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Rd.prototype,"disableDeselectEvent",void 0);_.x([_.V(),_.S("design:type",Object)],Rd.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.icon"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Rd.prototype,"hasIcon",null);
_.x([_.V({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.S("design:type",String)],Rd.prototype,"chipStyle",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Rd.prototype,"selected",void 0);_.x([_.E("data","selected"),_.S("design:type",Object),_.S("design:paramtypes",[])],Rd.prototype,"chipShapeData",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rd.prototype,"dataChanged",null);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rd.prototype,"onTap",null);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rd.prototype,"onFocus",null);_.x([_.cL({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],Rd);
_.y(Rd,"yt-chip-cloud-chip-renderer",function(){if(BuX===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;lKK===void 0&&(lKK=document.createElement("template"));var W=lKK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);BuX=m}m=BuX;return m},{mode:2});var Bad=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.mLk=_.P(function(m){function G(){if(Bad.has(m.data().displayType)){var h=!W(),J;if((J=m.disableDeselection)==null||!J.call(m)||h){m.data().selected=h;J=Object.assign({},O(),{selected:h});c(J);var N;(N=m.callback)==null||N.call(m,J,h)}}}
var K=_.Q3("chip-view-model",function(h){var J=m.data().tooltipTargetId,N=_.Xi();J&&_.xV(N,J,h);return function(){f8(N,h)}}),W=function(){var h,J;
return!!(((h=m.selected)==null?void 0:h.call(m))!==void 0?(J=m.selected)==null?0:J.call(m):O().selected)},L=_.g(_.EQ(m.data)),A=L.next().value;
L=L.next().value;var O=A,c=L,u=_.S5(lss,function(){return m.data().chipEntityKey||""});
return _.r("chip-view-model",{class:"ytChipViewModelHost",el:K},_.r(_.SE,{data:function(){var h,J=Object.assign({},O(),{selected:W()}),N=u(),D=(h=m.disableDeselection)==null?void 0:h.call(m);a:switch(J.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":h=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":h=3;break a;default:h=0}return{text:(N==null?void 0:N.text)||J.text,state:J.disabled?1:J.selected?0:2,type:h,onTap:MsM(J,K,G,
D),accessibilityLabel:J.accessibilityLabel||J.text}}}))},"Tc");
_.mLk.idomCompat={callbacks:{callback:!0}};_.U3=_.P(function(m){m=_.ql(m,{nextButtonStyle:0});var G=m.data,K=m.callback,W=m.selectionBehavior,L=m.disableChipsScrollAnimation,A=m.nextButtonStyle,O=_.aP("div");m=_.g(_.g_(!0,void 0,"VwW6Jc"));var c=m.next().value,u=m.next().value;m=_.g(_.g_(!1,void 0,"OIoagd"));var h=m.next().value,J=m.next().value,N=!1,D=0,t=function(){switch(A()){case 0:return"ytChipsShelfViewModelGradientButton";case 1:return"ytChipsShelfViewModelFloatingButton";default:return"ytChipsShelfViewModelGradientButton"}};
_.nn(function(){u(I());J(Z())});
m=_.g(_.EQ(function(){var gd={};return G().autoselectedChipIndex!=null?(gd[G().autoselectedChipIndex]=!0,gd):{}}));
var a=m.next().value,v=m.next().value,I=function(){var gd=O.value;return gd==null||gd.scrollLeft-1<=0},Z=function(){var gd=O.value;
return gd==null?!1:gd.scrollLeft+1>=(gd==null?NaN:gd.scrollWidth)-(gd==null?NaN:gd.clientWidth)},k=function(){return G().isHorizontallyScrollable},z=function(gd){O.value!=null&&(_.E8("HTML_DIR")==="rtl"&&(gd=-gd),O.value.scrollBy({left:gd,
behavior:(L==null?0:L())?"instant":"smooth"}))},X=function(){z(-320)},f=function(){z(320)},U=_.dn(function(gd){N=!0;
D=gd.clientX}),l=_.dn(function(gd){if(N){gd=gd.clientX;
var Qf=gd-D;D=gd;var JV;(JV=O.value)==null||JV.scrollBy({left:-Qf})}}),Ls=_.dn(function(){var gd=I(),Qf=Z();
gd!==c()&&u(gd);Qf!==h()&&J(Qf)});
_.P$("pointerup",function(){N&&(N=!1)});
return _.r("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.r(_.Pr,{contentId:function(){return G().contentId},
useModernStyle:!0},function(){var gd={},Qf={};return _.r("div",null,_.r(_.p,{cond:function(){return G().title},
then:function(){return _.r("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.r("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return G().title}),_.r(_.z$,{data:function(){return G().overflowButton}},{buttonViewModel:_.kP}))}}),_.r("div",{class:_.VO("ytChipsShelfViewModelChipsShelfContent",t)},_.r(_.p,{cond:function(){return G().previousButton},
then:function(){var JV={};return _.r("div",{class:_.VO("ytChipsShelfViewModelLeftArrowContainer",(JV.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return c()},JV))},_.r(_.z$,{data:function(){return G().previousButton}},{buttonViewModel:function(DF){return _.r(_.kP,{data:DF.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:X})}}))}}),_.r("div",{el:O,
"on:pointerdown":U,"on:pointermove":l,"on:scroll":Ls,class:_.VO("ytChipsShelfViewModelChipsScrollContainer",(gd.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=k,gd))},_.r("div",{class:_.VO("ytChipsShelfViewModelChipsContainer",(Qf.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=k,Qf.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Qf)),role:"tablist"},_.r(_.z$,{data:function(){return G().contents}},{chipViewModel:function(JV,DF){return _.r("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.r(_.mLk,{data:JV.data,
callback:function(kG,eo){var xG=DF(),Ji,rK=(Ji=W==null?void 0:W())!=null?Ji:0;rK===1||rK===2?(Ji={},v((Ji[xG]=eo,Ji))):rK===0&&(Ji={},v(Object.assign({},a(),(Ji[xG]=eo,Ji))));K==null||K(kG,eo,xG)},
disableDeselection:function(){return(W==null?void 0:W())===1},
selected:function(){return!!a()[DF()]}}))}}))),_.r(_.p,{cond:function(){return G().nextButton},
then:function(){var JV={};return _.r("div",{class:_.VO("ytChipsShelfViewModelRightArrowContainer",(JV.ytChipsShelfViewModelRightArrowContainerIsHidden=h,JV))},_.r(_.z$,{data:function(){return G().nextButton}},{buttonViewModel:function(DF){return _.r(_.kP,{data:DF.data,
className:"ytChipsShelfViewModelRightArrow",onClick:f})}}))}})))}))},"Vc");
_.U3.idomCompat={callbacks:{callback:!0}};var ivP=_.P(function(m){var G=m.data;var K=m.showChips;var W=m.isUpdateInProgress;var L=m.chipClickCallback;m=_.g(_.g_(!1,void 0,"uth3se"));var A=m.next().value,O=m.next().value;m=_.g(_.g_(!1,void 0,"qED0bb"));var c=m.next().value,u=m.next().value,h=function(){var N,D;return!((N=G())==null?0:N.responseMessage)&&!((D=G())==null||!D.chipsShelf)},J=void 0;
_.$O(function(){u(!0);var N=(K()||h())&&!W();requestAnimationFrame(function(){O(N)});
J&&clearTimeout(J);J=setTimeout(function(){u(!1)},300)},"OBQBmf");
_.sZ(function(){J&&clearTimeout(J)});
m={};return _.r("ytd-ai-response-box-view-model",{class:_.VO("ytdAiResponseBoxViewModelHost")},_.r("div",{class:_.VO("ytdAiResponseBoxViewModelResponseMessageContainer",(m.ytdAiResponseBoxViewModelResponseMessageContainerHidden=A,m.ytdAiResponseBoxViewModelNotShown=function(){return A()&&!c()},m))},_.r(_.p,{cond:W,
then:function(){return _.r("div",null,_.r(_.Nm,{text:function(){return G().responsePendingMessage}}))},
else:function(){return _.r(_.zL,null,_.r(_.p,{cond:function(){var N;return(N=G().responseMessageIcon)==null?void 0:N.iconType},
then:function(N){return _.r("div",{class:"ytdAiResponseBoxViewModelResponseMessageIcon"},_.r(_.fN,{icon:N}))}}),_.r("div",null,_.r(_.Nm,{text:function(){return G().responseMessage}})))}})),_.r(_.z$,{data:function(){return G().chipsShelf}},{chipsShelfViewModel:function(N){N=N.data;
var D={};return _.r("div",{class:_.VO("ytdAiResponseBoxViewModelChipsShelfContainer",(D.ytdAiResponseBoxViewModelChipsShelfContainerShown=A,D.ytdAiResponseBoxViewModelNotShown=function(){return!A()&&!c()},D))},_.r(_.U3,{data:N,
selectionBehavior:3,nextButtonStyle:1,callback:L}))}}))},"Xc");var G0X;G0X=Object.assign({},{continuation:chi,download:KTG,canvas:Mxv,reportChannelAbuse:JhK,ui:moM,share:N2C,talkToRecs:FTl,watch:YV,ypc:v$R,radioButtonGroup:lTf,collabInviteLink:UU9},OuK,{voiceSearch:KMd,shorts:c3});_.KGl=Lz(G0X);_.WGi=Ao(_.KGl);_.LGP=(0,_.WGi)(_.KGl.talkToRecs,{talkToRecsStateSelector:function(m){return m}});var wsi=_.P(function(m){var G=_.g((0,_.Qs)(m.data)).next().value,K=_.pT(function(){var ZF;a:{if(ZF=G().onUpdateText)if(ZF=_.Q(ZF,_.Oh)){var DP;ZF=(DP=_.Q(ZF,p04))==null?void 0:DP.stepId;break a}ZF=void 0}return ZF},void 0,"olO2Rd");
m=_.g(_.g_(!1,void 0,"QCzl5d"));var W=m.next().value,L=m.next().value;m=_.g(_.g_(!1,void 0,"cQ7jrd"));var A=m.next().value,O=m.next().value;m=_.g(zyF());var c=m.next().value;m=m.next().value;var u=_.RC(_.LGP.talkToRecsStateSelector),h=_.g(_.g_("",void 0,"ry2Eac")),J=h.next().value,N=h.next().value;h=_.g(_.g_(!1,void 0,"EwWXmb"));var D=h.next().value,t=h.next().value,a=_.g(_.g_(!1,void 0,"hORmtb"));h=a.next().value;var v=a.next().value;a=_.g(_.g_(!1,void 0,"fBzwv"));var I=a.next().value,Z=a.next().value;
a=_.g(_.g_(!1,void 0,"BCC4Zc"));var k=a.next().value,z=a.next().value,X=_.Q3("div");a=_.g(_.g_(void 0,void 0,"Xvb7gd"));var f=a.next().value,U=a.next().value,l=void 0,Ls=function(ZF){ZF!==W()&&(O(!0),L(ZF),l&&clearTimeout(l),l=setTimeout(function(){O(!1)},300))},gd=function(){if(f()!==void 0){var ZF=f();
Ls(window.scrollY>ZF)}},Qf=function(){var ZF;
U((ZF=X.value)==null?void 0:ZF.offsetHeight);c("yt-feed-filter-chip-bar-resize")},JV="";
_.$O(function(){JV=J()},"UJeAbb");
_.bX(function(){var ZF,DP,lS,Eo=(lS=(DP=Ta6(K(),u()))!=null?DP:(ZF=G().textInputValue)==null?void 0:ZF.content)!=null?lS:"";N(Eo);kG(Eo);t(!!G().welcomeBannerTitle&&!Eo);Qf();document.addEventListener("scroll",gd);_.sZ(function(){document.removeEventListener("scroll",gd);l&&clearTimeout(l)})});
_.$O(function(){D();Qf()},"AySmPb");
a=_.dn(function(){Z(!0);v(!0)});
var DF=_.dn(function(){v(!1)});
_.$O(function(){var ZF=G();Z(!1);z(!1);var DP,lS;((lS=_.Q((DP=ZF.contents)==null?void 0:DP[0],dQ2))==null?0:lS.responseMessageIcon)?N(Aml.cachedUserQuery):Aml.cachedUserQuery=JV},"k7MS8d");
var kG=function(ZF){var DP=G().onUpdateText;DP&&_.h$(DP,{form:{userQuery:ZF}})},eo=_.AY(function(ZF){kG(ZF)},150),xG=_.dn(function(ZF){ZF=ZF.target.value;
N(ZF);eo(ZF);return!1});
_.$O(function(){var ZF=Ta6(K(),u());ZF!==void 0&&ZF!==JV&&N(ZF)},"RLNF0b");
var Ji=function(){z(!0);t(!1)},rK=function(){var ZF=_.Q(G().submitButton,_.J6);
if(ZF==null?0:ZF.trackingParams){var DP=_.m5(ZF.trackingParams),lS=_.gU();lS&&DP&&_.bd(lS,DP,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}if(ZF=ZF==null?void 0:ZF.onTap)_.h$(ZF),Ji()},So=_.dn(function(ZF){ZF.key==="Enter"&&(kG(ZF.target.value.trim()),rK());
return!1}),ti=function(){rK()},bS=_.dn(function(){c("yt-feed-customization-scroll-up")}),NG={},EO={},gz={},ps={};
return _.r("ytd-feed-customization-form-view-model",{class:_.VO("ytdFeedCustomizationFormViewModelHost",(NG.ytdFeedCustomizationFormViewModelHostCollapsed=W,NG)),el:_.aC(m)},_.r("div",{class:"ytdFeedCustomizationFormViewModelBodyContainer",el:X},_.r("div",{class:_.VO("ytdFeedCustomizationFormViewModelExpandedContent",(EO.ytdFeedCustomizationFormViewModelNotShown=function(){return W()&&!A()},EO))},_.r(_.p,{cond:function(){return G().disclaimer},
then:function(){return _.r("div",{class:"ytdFeedCustomizationFormViewModelDisclaimer"},_.r(_.Nm,{text:function(){return G().disclaimer}}))}}),_.r(_.p,{cond:D,
then:function(){return _.r("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerContainer"},_.r("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerTitle"},_.r(_.Nm,{text:function(){return G().welcomeBannerTitle}})),_.r("div",{class:"ytdFeedCustomizationFormViewModelWelcomeBannerSubtitle"},_.r(_.Nm,{text:function(){return G().welcomeBannerSubtitle}})))}}),_.r("div",{class:_.VO("ytdFeedCustomizationFormViewModelInputContainer",(gz.ytdFeedCustomizationFormViewModelInputContainerHighlighted=
h,gz))},_.r("input",{class:"ytdFeedCustomizationFormViewModelInput",
type:"text",placeholder:function(){var ZF;return(ZF=G().textInputPlaceholder)==null?void 0:ZF.content},
"prop:value":J,"on:focus":a,"on:blur":DF,"on:input":xG,"on:keyup":So,maxlength:300,disabled:k}),_.r(_.p,{cond:function(){return!!J()&&!k()},
then:function(){return _.r(_.z$,{data:function(){return G().clearButton}},{buttonViewModel:function(ZF){return _.r("div",{class:"ytdFeedCustomizationFormViewModelClearButtonContainer"},_.r(_.kP,{data:ZF.data}))}})}}),_.r(_.p,{cond:function(){return k()},
then:function(){return _.r(_.z$,{data:function(){return G().inProgressButton}},{buttonViewModel:function(ZF){return _.r("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.r(_.kP,{data:ZF.data,
buttonOverrides:{disabled:!0}}))}})},
else:function(){return _.r(_.z$,{data:function(){return G().submitButton}},{buttonViewModel:function(ZF){return _.r("div",{class:"ytdFeedCustomizationFormViewModelSubmitButtonContainer"},_.r(_.kP,{data:ZF.data,
onClick:Ji}))}})}}),_.r(_.z$,{data:function(){return G().menuButton}},{buttonViewModel:function(ZF){return _.r("div",{class:"ytdFeedCustomizationFormViewModelMenuButtonContainer"},_.r(_.kP,{data:ZF.data,
buttonOverrides:function(){return{disabled:k()}}}))}})),_.r(_.z$,{data:function(){return G().contents}},{aiResponseBoxViewModel:function(ZF){return _.r("div",{class:"ytdFeedCustomizationFormViewModelResponseContainer"},_.r(ivP,{data:ZF.data,
showChips:I,isUpdateInProgress:k,chipClickCallback:ti}))}})),_.r("div",{class:_.VO("ytdFeedCustomizationFormViewModelCollapsedContent",(ps.ytdFeedCustomizationFormViewModelNotShown=function(){return!W()&&!A()},ps)),
"on:click":bS},_.r("div",{class:"ytdFeedCustomizationFormViewModelCollapsedText"},function(){var ZF;return J()||((ZF=G().textInputPlaceholder)==null?void 0:ZF.content)}))))},"bd"),gn2=function(){this.cachedUserQuery=""};
gn2.prototype.reset=function(){this.cachedUserQuery=""};
var Aml=new gn2;_.sh(wsi,"ytd-feed-customization-form-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=_.g((0,_.Qs)(m.data)).next().value;return _.r("yt-chip-content-loader-view-model",{class:"ytChipContentLoaderViewModelHost"},_.r(_.z$,{data:function(){return G().content}},{feedCustomizationFormViewModel:function(K){return _.r(wsi,{data:K.data})}}))},"cd"),"yt-chip-content-loader-view-model",{props:{data:_.Dd}});var OvX=_.DE.persistentPanelVisibleSelector,zE=function(){var m=_.d.apply(this,arguments)||this;m.isDarkTheme=!1;m.notSticky=!1;m.transparentBackground=!1;m.shouldHide=!1;m.disableSticky=!1;m.fluidWidth=!1;m.isClipList=!1;m.defaultChipIndex=0;m.hasSelectedChipContent=!1;m.isPlaylist=!1;m.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");m.toolbarHeight=0;m.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction",
"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(zE,_.d);_.w=zE.prototype;
_.w.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},selectedChipContent:{id:"selected-chip-content",mapping:{feedCustomizationFormViewModel:{component:"ytd-feed-customization-form-view-model"},chipContentLoaderViewModel:{component:"yt-chip-content-loader-view-model"}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.w.attached=function(){var m=this;document.addEventListener("scroll",_.xC(this,this.updateChipBarWidthAndTop));document.addEventListener("yt-feed-filter-chip-bar-resize",_.xC(this,this.onFeedFilterChipBarResize));this.isDarkTheme=document.documentElement.hasAttribute("dark");var G;this.toolbarHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(K){m.handleIntersect(K)},{rootMargin:"-"+
(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){m.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.w.detached=function(){var m;(m=this.intersectionObserver)==null||m.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect();document.removeEventListener("scroll",_.xC(this,this.updateChipBarWidthAndTop));document.removeEventListener("yt-feed-filter-chip-bar-resize",_.xC(this,this.onFeedFilterChipBarResize))};
_.w.dataChanged=function(){var m=this,G,K,W=(G=this.data)==null?void 0:(K=G.contents)==null?void 0:K.findIndex(function(A){var O;return!((O=_.Q(A,qDC))==null?0:O.navigationEndpoint)});
W&&(this.defaultChipIndex=W);this.updating=!0;var L=this.findSelectedChipIndex();this.selectedIndex!==L&&(this.selectedIndex=-1);_.Pv(this,function(){m.selectedIndex=L;m.updateSelectedChipContent(m.selectedIndex);m.updating=!1;m.ytScrollableChipCloudBehavior.reset()})};
_.w.findSelectedChipIndex=function(){var m;if((m=this.data)==null||!m.contents)return 0;m=this.data.contents;for(var G=0;G<m.length;G++){var K=void 0;if((K=_.Q(m[G],qDC))==null?0:K.isSelected)return G}return 0};
_.w.computeStyle=function(m){return m};
_.w.handleChipCloudChipSelectAction=function(m){m=this.JSC$16548_chipsSelector.indexOf(m);m>-1&&(this.JSC$16548_chipsSelector.selectIndex(m),this.updateSelectedChipContent(m))};
_.w.updateSelectedChipContent=function(m){var G;if((G=this.data)==null||!G.contents||m<0||m>=this.data.contents.length)this.selectedChipContent=void 0;else{var K;this.selectedChipContent=(K=_.Q(this.data.contents[m],qDC))==null?void 0:K.content}};
_.w.handleChipCloudChipDeselectAction=function(){if(_.F("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[this.defaultChipIndex],qDC))==null?void 0:K.navigationEndpoint;W&&_.dU(this.hostElement,"yt-browse-section-list-reload-endpoint",[W]);this.JSC$16548_chipsSelector.selectIndex(this.defaultChipIndex);this.updateSelectedChipContent(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.w.onSelectedChipContentChanged=function(){this.hasSelectedChipContent=!!this.selectedChipContent};
_.w.onFeedFilterChipBarResize=function(){this.updateDynamicHeight()};
_.w.updateDynamicHeight=function(){var m=this;this.hasSelectedChipContent&&!this.notSticky?_.Pv(this,function(){var G=_.VL(m.hostElement).querySelector("#chips-wrapper");G&&_.eb(m.hostElement,{"--ytd-chips-bar-dynamic-height":G.clientHeight+"px"})}):_.eb(this.hostElement,{"--ytd-chips-bar-dynamic-height":""})};
_.w.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.w.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.w.onResize=function(){this.updateLayout()};
_.w.updateLayout=function(){var m=this.ytScrollableChipCloudBehavior;_.Pv(m,m.setContainerWidthDiff);m=this.ytScrollableChipCloudBehavior;_.Pv(m,m.setButtonsState)};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.w.handleIntersect=function(m){this.notSticky=this.isChannelPageGrid||this.disableSticky||m[0].intersectionRatio===1};
_.w.updateDimensions=function(){var m=this.ytRendererBehavior.parentComponent;if(m){var G,K=(G=m.headerElement)!=null?G:m;_.eb(this.hostElement,{"--ytd-rich-grid-chips-bar-width":K.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.w.updateSelectedIndexFromBinding=function(m){this.selectedIndex=m.detail.value};
_.w.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var m;(m=this.sortFilterHeaderRendererElement)==null||m.setAttribute("is-playlist-page-with-filters","")}};
_.w.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(n$B(!this.notSticky))};
_.e_.Object.defineProperties(zE.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 m,G,K=(m=this.data)==null?void 0:(G=m.contents)==null?void 0:G.find(function(W){return _.Q(W,kxR)});
return{sortFilterHeaderRenderer:_.Q(K,kxR)}}}});
zE.prototype.dispatchChipBarIsSticky=zE.prototype.dispatchChipBarIsSticky;zE.prototype.isPlaylistPageChanged=zE.prototype.isPlaylistPageChanged;zE.prototype.updateChipBarWidthAndTop=zE.prototype.updateChipBarWidthAndTop;zE.prototype.onResize=zE.prototype.onResize;zE.prototype.onPersistentPanelVisibleChanged=zE.prototype.onPersistentPanelVisibleChanged;zE.prototype.onGuideIsExpandedChanged=zE.prototype.onGuideIsExpandedChanged;zE.prototype.updateDynamicHeight=zE.prototype.updateDynamicHeight;
zE.prototype.onSelectedChipContentChanged=zE.prototype.onSelectedChipContentChanged;zE.prototype.dataChanged=zE.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],zE.prototype,"actionHandlerBehavior",void 0);
_.x([_.q(_.mH),_.S("design:type",Object)],zE.prototype,"ironResizableBehavior",void 0);_.x([_.q(),_.S("design:type",XT)],zE.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],zE.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zE.prototype,"data",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],zE.prototype,"selectedIndex",void 0);_.x([_.V({value:320}),_.S("design:type",Number)],zE.prototype,"scrollDistance",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"notSticky",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"transparentBackground",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.S("design:type",String)],zE.prototype,"componentStyle",void 0);
_.x([_.V({selector:_.JSd}),_.S("design:type",Boolean)],zE.prototype,"guideIsExpanded",void 0);_.x([_.V({selector:OvX}),_.S("design:type",Boolean)],zE.prototype,"persistentPanelVisible",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"shouldHide",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"disableSticky",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"fluidWidth",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"isClipList",void 0);_.x([_.V(),_.S("design:type",Object)],zE.prototype,"defaultChipIndex",void 0);_.x([_.V(),_.S("design:type",Object)],zE.prototype,"selectedChipContent",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"hasSelectedChipContent",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zE.prototype,"isPlaylist",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],zE.prototype,"playlistVotingAnimationEnabled",void 0);_.x([_.UM("#chips"),_.S("design:type",Object)],zE.prototype,"JSC$16548_chipsSelector",void 0);_.x([_.UM("ytd-sort-filter-header-renderer"),_.S("design:type",HTMLElement)],zE.prototype,"sortFilterHeaderRendererElement",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],zE.prototype,"updating",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"dataChanged",null);_.x([_.Sb("selectedChipContent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"onSelectedChipContentChanged",null);_.x([_.Sb("hasSelectedChipContent","notSticky"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"updateDynamicHeight",null);
_.x([_.Sb("guideIsExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"onGuideIsExpandedChanged",null);_.x([_.Sb("persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"onPersistentPanelVisibleChanged",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"onResize",null);
_.x([_.Mg("isChannelPageGrid","disableSticky","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"updateChipBarWidthAndTop",null);_.x([_.E("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],zE.prototype,"isChannelPageGrid",null);_.x([_.E("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],zE.prototype,"isHashtagLandingPage",null);
_.x([_.Sb("isPlaylistPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"isPlaylistPageChanged",null);_.x([_.E("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],zE.prototype,"isPlaylistPage",null);_.x([_.E("componentStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],zE.prototype,"isDisableDeselectEvent",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],zE.prototype,"sortFilterHeaderRendererData",null);_.x([_.V({reflectToAttribute:!0,selector:_.ojd}),_.S("design:type",String)],zE.prototype,"frostedGlassMode",void 0);_.x([_.Sb("notSticky"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zE.prototype,"dispatchChipBarIsSticky",null);_.x([_.Ye({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],zE);
_.y(zE,"ytd-feed-filter-chip-bar-renderer",function(){if(z4o!==void 0)return z4o;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n  <div id="selected-chip-content" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n</div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return z4o=m},{mode:1});var cm4;var YsB=_.P(function(m){var G=m.data;var K=m.buttonIndex;var W=m.selectedIndex;var L=m.onSelect;var A=function(){return K()===W()},O=function(){var c,u;
return(u=(c=G().text)==null?void 0:c.content)!=null?u:""};
m=_.WR();return _.r("yt-toggleable-image-button-view-model",{class:function(){var c={};c=(c.toggleableImageButtonViewModelHost=!0,c[""]=!0,c.toggleableImageButtonViewModelSemiTransparent=W()!==-1&&!A(),c);return _.KQ(c)},
tabindex:0,"aria-label":O,"aria-pressed":A,role:"button","on:keydown":m,"on:click":_.dn(function(){L(G().onSubmitCommand);return!1})},_.r(_.p,{cond:function(){return G().logo},
then:function(c){return _.r(_.oC,{data:c,className:function(){var u={};u=(u.toggleableImageButtonViewModelImage=!0,u.toggleableImageButtonViewModelCircularRadius=!(!G().backgroundColor||!G().backgroundColorDarkMode),u.toggleableImageButtonViewModelGradientRing=!!(A()&&G().backgroundColor&&G().backgroundColorDarkMode),u);return _.KQ(u)},
alt:O,useWidth:!1,style:function(){if(A()&&G().backgroundColor&&G().backgroundColorDarkMode){var u=YC(Number(G().backgroundColorDarkMode),"1");var h=YC(Number(G().backgroundColor),"1");u="background: linear-gradient(180deg,"+u+","+h+") border-box;"}else u="";return u}})}}),_.r(_.EH,{model:{borderRadius:"16px"}}),_.r("p",{class:function(){var c={};
c=(c.toggleableImageButtonViewModelLabel=!0,c.toggleableImageButtonViewModelBoldText=A(),c);return _.KQ(c)}},_.r(_.Nm,{text:function(){return G().text}})))},"dd");
YsB.idomCompat=!0;var uG4=_.P(function(m){var G=m.data;m=_.g(_.g_({index:-1,command:{}},void 0,"GM3umb"));var K=m.next().value,W=m.next().value;return _.r("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.r("div",{class:"nudgeFormViewModelFormOptions"},_.r(_.z$,{data:function(){return G().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(L,A){return _.r(YsB,{data:L.data,buttonIndex:A,selectedIndex:function(){return K().index},
onSelect:function(O){W({index:A(),command:O})}})}})),_.r(_.Nm,{text:function(){return G().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.r("div",{class:"nudgeFormViewModelSubmit"},_.r(_.z$,{data:function(){return G().submitButton}},{buttonViewModel:function(L){return _.r(rmB,{data:L.data,
isDisabled:function(){return K().index===-1},
onClick:function(){_.h$(K().command)}})}})))},"ed");
uG4.idomCompat=!0;var rmB=_.P(function(m){var G=_.pT(function(){return Object.assign({},m.data(),{state:m.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.r(_.kP,{data:G,onClick:m.onClick})},"fd");_.sh(uG4,"yt-nudge-form-view-model",{props:{data:_.Dd}});var lP=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.buttonUpdate=_.F("web_modern_buttons");m.isDarkMode=!1;m.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return m};
_.n(lP,_.d);_.w=lP.prototype;_.w.computeNudgeStyle=function(m){return m?"modernized-nudge":""};
_.w.handleDarkModeToggledAction=function(m){this.isDarkMode=m};
_.w.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.w.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"}}}};
_.w.computeIsHorizontalButtons=function(m){return m?!!m.applyModernizedStyle&&!!m.enableHorizontalButtons&&!!m.secondaryButton:!1};
_.e_.Object.defineProperties(lP.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.data)==null?void 0:m.backgroundStyle)!=null?G:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.data)==null?void 0:m.contentsLocation)!=null?G:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null?0:m.lightIconImage)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],lP.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],lP.prototype,"actionHandlerBehavior",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("isHideEnclosingAction"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lP.prototype,"isHidden",null);_.x([_.V(),_.S("design:type",Object)],lP.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lP.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lP.prototype,"buttonUpdate",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.S("design:type",String)],lP.prototype,"nudgeStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.trimStyle"),_.S("design:type",String),_.S("design:paramtypes",[])],lP.prototype,"trimStyle",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.backgroundStyle"),_.S("design:type",String),_.S("design:paramtypes",[])],lP.prototype,"backgroundStyle",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.contentsLocation"),_.S("design:type",String),_.S("design:paramtypes",[])],lP.prototype,"contentsLocation",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.disableDropShadow"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lP.prototype,"noShadow",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.lightIconImage"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],lP.prototype,"noIcon",null);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.S("design:type",Boolean)],lP.prototype,"isHorizontalButtons",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],lP.prototype,"isDarkMode",void 0);_.x([_.Ye({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],lP);
_.y(lP,"ytd-feed-nudge-renderer",function(){if(cm4!==void 0)return cm4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return cm4=m},{mode:2});var hqR;var psK;var Bh=function(){var m=_.d.apply(this,arguments)||this;m.collapsed=!1;m.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return m};
_.n(Bh,_.d);Bh.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"}}}};
Bh.prototype.handleRatingSelect=function(){var m;((m=this.data)==null?0:m.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Bh.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Bh.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Bh.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bh.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Yj),_.S("design:type",Object)],Bh.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bh.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Bh.prototype,"collapsed",void 0);_.x([_.Ye({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Bh);
_.y(Bh,"ytd-slimline-survey-renderer",function(){if(psK!==void 0)return psK;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return psK=m},{mode:1});var JmS;var Mr=function(){return _.d.apply(this,arguments)||this};
_.n(Mr,_.d);Mr.prototype.maybeGetBackgroundColor=function(m){return this.isDarkMode?m.section2Color:m.section3Color};
Mr.prototype.colorPaletteChanged=function(){var m=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;m&&(m==null?0:m.secondaryTitleColor)&&this.maybeGetBackgroundColor(m)?(this.hostElement.style.backgroundColor=_.OM(this.maybeGetBackgroundColor(m)),this.hostElement.style.color=_.OM(m.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Mr.prototype.colorPaletteChanged=Mr.prototype.colorPaletteChanged;_.x([_.q(_.OW),_.S("design:type",Object)],Mr.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mr.prototype,"data",void 0);_.x([_.V({selector:function(m){return m.ui.darkModeIsEnabled}}),
_.S("design:type",Boolean)],Mr.prototype,"isDarkMode",void 0);_.x([_.V(),_.S("design:type",Object)],Mr.prototype,"lightColorPalette",void 0);_.x([_.V(),_.S("design:type",Object)],Mr.prototype,"darkColorPalette",void 0);_.x([_.Sb("darkColorPalette","lightColorPalette","data","isDarkMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Mr.prototype,"colorPaletteChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Mr);
_.y(Mr,"ytd-endorsement-header-renderer",function(){if(JmS!==void 0)return JmS;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return JmS=m},{mode:1});_.sh(_.cr,"yt-decorated-avatar-view-model",{props:{data:_.Dd,className:_.Dd}});_.TE=new _.sX("VIEW_TRANSITION_MANAGER_TOKEN");var mT=function(){var m=_.d.apply(this,arguments)||this;m.fullHeight=_.F("web_rich_grid_media_full_height");m.showChannelAvatar=!0;m.hasPlaylistThumbnail=!1;m.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};m.registerThumbnailForPageTransition=function(){_.F("web_thumbnail_to_watch_transition")&&_.Nml(_.xS().resolve(_.TE),m.thumbnail)};
return m};
_.n(mT,_.d);_.w=mT.prototype;
_.w.configureRendererStamper=function(){return{lazyLoadMenu:zl,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"}}}};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.shouldLazyLoadMenu=function(){var m=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.F("kevlar_modern_downloads_page")||!m};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16572_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.JSC$16572_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.w.getVideoPreviewOpts=function(){var m={},G;if((G=this.data)==null?0:G.multipleInlinePlaybackEndpoint)m=MsF;this.isRadio&&(m=BaG);return m};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$16572_inlinePreviewHoverListener)==null||qa(m)};
_.w.getOwner=function(){var m,G,K;return((m=this.data)==null?void 0:(G=m.channelThumbnailSupportedRenderers)==null?void 0:G.channelThumbnailWithLinkRenderer)||_.Q((K=this.data)==null?void 0:K.showProviderChannelThumbnail,oKG)};
_.w.updateLockupSize=function(){var m;((m=this.getOwner())==null?0:m.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.w.getFeedbackEndpoint=function(m){if(_.Q(m,_.cX))return m;var G,K;m=(K=(G=_.Q(m,_.xu))==null?void 0:G.commands)!=null?K:[];G=_.g(m);for(K=G.next();!K.done;K=G.next())if(K=this.getFeedbackEndpoint(K.value))return K;return null};
_.w.computeNavigationEndpoint=function(m){return adF(m==null?void 0:m.navigationEndpoint)};
_.w.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var m=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(m)!==JSON.stringify(this.data)&&this.set("data",m)}};
_.w.onDataChanged=function(){var m=this,G=this.getOwner();if(G){this.set("data.owner",G);var K,W,L,A,O,c=((K=this.data)==null?void 0:(W=K.shortBylineText)==null?void 0:(L=W.runs)==null?void 0:(A=L[0])==null?void 0:A.text)||((O=G.name)==null?void 0:O.simpleText);this.set("data.owner.title",c)}var u,h,J,N,D,t;G=((u=this.data)==null?void 0:(h=u.thumbnailRenderer)==null?void 0:h.playlistVideoThumbnailRenderer)||((J=this.data)==null?void 0:(N=J.thumbnailRenderer)==null?void 0:N.playlistCustomThumbnailRenderer)||
((D=this.data)==null?void 0:(t=D.thumbnailRenderer)==null?void 0:t.showCustomThumbnailRenderer);var a;((a=this.data)==null?0:a.thumbnail)||!G||this.set("data.thumbnail",G.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){m.updateLockupSize()});
var v;if(u=((v=this.data)==null?void 0:v.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(u);var I;((I=this.dismissActionToReplayEntity)==null?0:I.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.w.onHiddenChanged=function(){this.updateLockupSize()};
_.w.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.dU(this.hostElement,"yt-terminate-video-preview-action");else{var m;(m=this.videoTitleLink)==null||m.focus()}};
_.w.metadataColorChanged=function(){var m;if(this.metadataColor&&((m=this.videoTitle)==null?0:m.style))this.videoTitle.style.color=_.OM(this.metadataColor);else{var G,K;!this.metadataColor&&((G=this.videoTitle)==null?0:(K=G.style)==null?0:K.color)&&(this.videoTitle.style.color="")}};
_.w.onDetailsClick=function(m){var G=this.computedNavigationEndpoint;G&&(_.b_(_.ve(m),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Zw(this.hostElement,"yt-navigate",{endpoint:G}))};
_.w.onRendererTap=function(){this.registerThumbnailForPageTransition();var m,G,K=((m=this.data)==null?void 0:m.serviceEndpoint)||this.getFeedbackEndpoint((G=this.data)==null?void 0:G.navigationEndpoint);K&&_.Q(K,_.cX)&&this.ytComponentBehavior.resolveCommand(K)};
_.w.onMouseDown=function(m){var G=m.target,K=this.computedNavigationEndpoint,W;m=G.href||((W=_.Q(K==null?void 0:K.commandMetadata,_.RQ))==null?void 0:W.url);W=G.data||K;m&&W&&ZR6(m,W)};
_.w.computeVideoTitleText=function(){var m;if((m=this.data)==null?0:m.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.w.computeHasPlaylistThumbnail=function(m){var G,K,W,L,A;if((((G=m.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((K=m.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer)||((W=m.thumbnailRenderer)==null?0:W.showCustomThumbnailRenderer)||((L=m.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((A=m.thumbnailRenderer)==null?0:A.playlistCustomThumbnailRenderer))&&m.thumbnailOverlays)for(G=0;G<m.thumbnailOverlays.length;G++)if(K=void 0,(K=m.thumbnailOverlays[G])==
null?0:K.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.e_.Object.defineProperties(mT.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.F("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var m;return(m=this.data)==null?void 0:m.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var m;return(m=this.data)==null?void 0:m.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$16572_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.eeM(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.videoId)||((G=this.data)==null?void 0:G.playlistId)||""}}});
mT.prototype.onMouseDown=mT.prototype.onMouseDown;mT.prototype.metadataColorChanged=mT.prototype.metadataColorChanged;mT.prototype.onIsDismissedChanged=mT.prototype.onIsDismissedChanged;mT.prototype.onHiddenChanged=mT.prototype.onHiddenChanged;mT.prototype.onDataChanged=mT.prototype.onDataChanged;mT.prototype.handleReloadDownloadsInfo=mT.prototype.handleReloadDownloadsInfo;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],mT.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],mT.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],mT.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],mT.prototype,"ytdReduxBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],mT.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],mT.prototype,"entitySelectorType",void 0);_.x([_.V(),_.S("design:type",Boolean)],mT.prototype,"noEndpoints",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],mT.prototype,"isRadio",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],mT.prototype,"miniMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],mT.prototype,"fullHeight",void 0);
_.x([_.V(),_.S("design:type",Boolean)],mT.prototype,"showDarkVideoMetadata",void 0);_.x([_.V(),_.S("design:type",Boolean)],mT.prototype,"showLightVideoMetadata",void 0);_.x([_.V(),_.S("design:type",Number)],mT.prototype,"metadataColor",void 0);_.x([_.V(),_.S("design:type",Object)],mT.prototype,"showChannelAvatar",void 0);_.x([_.V(),_.S("design:type",Boolean)],mT.prototype,"hidden",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],mT.prototype,"showYtInteraction",void 0);
_.x([_.V(),_.S("design:type",String)],mT.prototype,"dismissedContentId",void 0);_.x([_.V({selectorArgs:["dismissedContentId"],selector:D0d}),_.S("design:type",Object)],mT.prototype,"dismissActionToReplayEntity",void 0);
_.x([_.V({selectorArgs:["entitySelectorType","mediaId"],selector:function(m,G,K){if(_.F("kevlar_modern_downloads_page")&&K&&G&&G!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var W=$SM(m,K);if(W){G=_.uw(m,K);var L=pG(m,K),A=uBV(m,K);m=JM(m,K);var O=Rpo(W,G,L,A);L=O.shortViewCountText;var c=O.publishedTimeText;O=O.badges;var u=m>0;A=Xxs(W,G,A,m);W=_.Mc(G)||G==="TRANSFER_STATE_FAILED"||G==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Bk(W.policyEntity)?
void 0:Fhd(K,m,W.videoEntity.lengthSeconds);G==="TRANSFER_STATE_PAUSED_BY_USER"&&K&&!_.F("dl_resume_click_killswitch")&&(W={offlineVideoEndpoint:{videoId:K,action:"ACTION_RESUME"}});K={shortViewCountText:L,publishedTimeText:c,badges:O,isWatched:u,navigationEndpoint:W,thumbnailOverlays:A}}else K=void 0;return K;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(G=suM(m,K))if(W=_.hM(m,K),A=_.qWo(m,K),W!=="TRANSFER_STATE_UNKNOWN"){K=Sxd(G,W,A,K,_.r6(m));break a}K=void 0}return K;default:_.nc(new _.cw("Error: entitySelectorType defined but not matched in selector.",
m,G))}}}),
_.S("design:type",Object)],mT.prototype,"entityDrivenState",void 0);_.x([_.V({computed:"computeVideoTitleText(data)"}),_.S("design:type",Object)],mT.prototype,"videoTitleText",void 0);_.x([_.V({computed:"computeHasPlaylistThumbnail(data)"}),_.S("design:type",Object)],mT.prototype,"hasPlaylistThumbnail",void 0);_.x([_.V({computed:"computeNavigationEndpoint(data)"}),_.S("design:type",Object)],mT.prototype,"computedNavigationEndpoint",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],mT.prototype,"typographyBump",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("typographyBump"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],mT.prototype,"typographyBumpV2",null);_.x([_.UM("#video-title"),_.S("design:type",HTMLElement)],mT.prototype,"videoTitle",void 0);_.x([_.UM("#video-title-link"),_.S("design:type",HTMLElement)],mT.prototype,"videoTitleLink",void 0);
_.x([_.UM("#thumbnail"),_.S("design:type",HTMLElement)],mT.prototype,"thumbnail",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],mT.prototype,"JSC$16572_dismissibleMedia",void 0);_.x([_.E("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],mT.prototype,"lazyLoadMenu",null);_.x([_.E("data.menu"),_.S("design:type",Object),_.S("design:paramtypes",[])],mT.prototype,"immediateLoadMenu",null);
_.x([_.Mg("entityDrivenState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mT.prototype,"handleReloadDownloadsInfo",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mT.prototype,"onDataChanged",null);_.x([_.Mg("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mT.prototype,"onHiddenChanged",null);
_.x([_.Sb("isDismissed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mT.prototype,"onIsDismissedChanged",null);_.x([_.Sb("metadataColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mT.prototype,"metadataColorChanged",null);_.x([_.XC("mousedown"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],mT.prototype,"onMouseDown",null);
_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],mT.prototype,"isHovered",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],mT.prototype,"useAvatar",null);_.x([_.E("data","entitySelectorType"),_.S("design:type",String),_.S("design:paramtypes",[])],mT.prototype,"mediaId",null);_.x([_.Ye({is:"ytd-rich-grid-media",disableElementRegistration:!0})],mT);
var DL4=_.Vz()(mT,"ytd-rich-grid-media",function(){if(hqR!==void 0)return hqR;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return hqR=m},{mode:2});var tHR;var i3=function(){var m=_.d.apply(this,arguments)||this;m.removeMaxWidth=!0;m.insetMetadata=!1;return m};
_.n(i3,_.d);_.w=i3.prototype;_.w.configureRendererStamper=function(){return{innerMenu:zl,outerMenu:Object.assign({},zl,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.onDataChanged=function(){var m,G=((m=this.data)==null?void 0:m.trackingParams)||"";G&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(G));var K;((K=this.dismissActionToReplayEntity)==null?0:K.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16577_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.JSC$16577_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:TaS})};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$16577_inlinePreviewHoverListener)==null||qa(m)};
_.w.onRendererTap=function(){var m,G,K=(m=this.data)==null?void 0:(G=m.serviceEndpoints)==null?void 0:G[0];_.Q(K,_.cX)&&this.componentBehavior.resolveCommand(K)};
_.w.onDetailsClick=function(m){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;K&&(_.b_(_.ve(m),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(K))};
_.w.onShow=function(){var m=this.data;m.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(m.onFirstVisibleCommand),delete m.onFirstVisibleCommand)};
_.e_.Object.defineProperties(i3.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var m;return this.insetMetadata?void 0:(m=this.data)==null?void 0:m.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var m;return this.insetMetadata?(m=this.data)==null?void 0:m.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var m=this.data;if(m!=null&&m.badge&&(m=_.Q(m.badge,afl))){var G,K,W;return[{metadataBadgeRenderer:{label:((G=m.label)==null?void 0:(K=G.runs)==null?void 0:K[0].text)||((W=m.label)==null?void 0:W.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var m=this.data;return Object.assign({},m.headline,{accessibility:m.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return this.isSlimShort?(m=this.computedTitle)==null?void 0:(G=m.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.F("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$16577_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
i3.prototype.onDataChanged=i3.prototype.onDataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],i3.prototype,"componentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],i3.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Yj),_.S("design:type",Object)],i3.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],i3.prototype,"ytdReduxBehavior",void 0);_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],i3.prototype,"thumbnail",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],i3.prototype,"JSC$16577_dismissibleMedia",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i3.prototype,"removeMaxWidth",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i3.prototype,"insetMetadata",void 0);_.x([_.V(),_.S("design:type",String)],i3.prototype,"dismissedContentId",void 0);_.x([_.V({selectorArgs:["dismissedContentId"],selector:D0d}),_.S("design:type",Object)],i3.prototype,"dismissActionToReplayEntity",void 0);_.x([_.E("insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"thumbnailObjectFit",null);
_.x([_.E("data","insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"innerMenu",null);_.x([_.E("data","insetMetadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"outerMenu",null);_.x([_.V(),_.S("design:type",Object)],i3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],i3.prototype,"miniMode",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i3.prototype,"onDataChanged",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"shortsBadges",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i3.prototype,"isShort",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i3.prototype,"isSlimShort",null);_.x([_.E("data","isShort"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"computedTitle",null);_.x([_.E("isSlimShort","computedTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],i3.prototype,"computedAccessibilityLabel",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i3.prototype,"shouldForce2By3",null);_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i3.prototype,"isHovered",null);_.x([_.Ye({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],i3);
_.y(i3,"ytd-rich-grid-slim-media",function(){if(tHR!==void 0)return tHR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return tHR=m},{mode:2});var FGS;var Q0C;var Gm=function(){return _.d.apply(this,arguments)||this};
_.n(Gm,_.d);Gm.prototype.computeIcon=function(m){return m&&m.iconType?"yt-sys-icons:"+m.iconType.toLowerCase():""};
Gm.prototype.onMouseEnter=function(){this.isHovered=!0};
Gm.prototype.onMouseLeave=function(){this.isHovered=!1};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Gm.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Gm.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Gm.prototype,"isHovered",void 0);
_.x([_.Ye({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],Gm);
_.y(Gm,"ytd-expand-on-hover-card-renderer",function(){if(Q0C!==void 0)return Q0C;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Q0C=m},{mode:1});var aAo,onK=function(){if(aAo!==void 0)return aAo;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return aAo=m};_.Kz("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Ku=function(){var m=_.d.apply(this,arguments)||this;m.compactStyle=!1;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(Ku,_.d);_.w=Ku.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.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"}}}};
_.w.computeHideDot=function(m){return!(m&&m.subscriberCountText&&m.videoCountText)||this.compactStyle};
_.w.hasDualButtons=function(m){return m&&m.purchaseButton&&m.subscribeButton};
_.w.backgroundColorChanged=function(){if(this.data!==void 0){var m=this.data.backgroundColor;this.isDarkTheme&&(m=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=m!=null?_.OM(m):"transparent"}};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.onTap=function(m){var G,K,W=((G=this.data)==null?void 0:G.navigationEndpoint)||((K=this.data)==null?void 0:K.serviceEndpoint);_.Q(W,_.nQ)&&(W&&_.xS().resolve(_.S1).resolveCommand(W,{form:{element:this.hostElement}}),m.preventDefault())};
_.w.computeChannelEndpoint=function(m){return _.Q(m,_.nQ)?null:m};
_.w.computeHrefEndpoint=function(m){return _.Q(m,_.nQ)?null:this.componentBehavior.computeHref_(m)};
_.w.computeChannelRendererStyle=function(m){return m};
_.w.computeIconSize=function(m){return m?108:136};
_.e_.Object.defineProperties(Ku,{template:{configurable:!0,enumerable:!0,get:function(){return onK()}}});
Ku.prototype.backgroundColorChanged=Ku.prototype.backgroundColorChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ku.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],Ku.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ku.prototype,"componentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Ku.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],Ku.prototype,"isDarkTheme",void 0);_.x([_.V({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.S("design:type",String)],Ku.prototype,"channelRendererStyle",void 0);_.x([_.V({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Ku.prototype,"dualButtons",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],Ku.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],Ku.prototype,"biggerThumbStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ku.prototype,"compactStyle",void 0);_.x([_.Sb("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ku.prototype,"backgroundColorChanged",null);_.x([_.Ye({is:"ytd-channel-renderer",disableElementRegistration:!0})],Ku);_.y(Ku,"ytd-channel-renderer",function(){return onK()},{mode:1});var nnP;var bvX;_.Kz("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Wf=function(){var m=_.d.apply(this,arguments)||this;m.displayItemCount=2;m.hasPlaylistThumbnail=!1;m.stackThumbnailSize="large";return m};
_.n(Wf,_.d);_.w=Wf.prototype;_.w.attached=function(){this.updateInlinePreviewHoverListeners()};
_.w.detached=function(){this.clearInlinePreviewHoverListeners()};
_.w.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.w.computeFirstVideos=function(m,G){return m&&G?m.slice(0,G):[]};
_.w.computeThumbnailWidth=function(m,G){return m?G==="BIG"?500:G==="MASSIVE"?600:G==="MEDIUM"?450:420:360};
_.w.computeThumbnailHeight=function(m,G){return m?G==="BIG"?280:G==="MASSIVE"?337:234:202};
_.w.clearInlinePreviewHoverListeners=function(){var m;(m=this.JSC$16590_inlinePreviewHoverListener)==null||qa(m)};
_.w.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16590_inlinePreviewHoverListener=rH({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:MsF,thumbnailElement:this.thumbnail})};
_.w.computeHasPlaylistThumbnail=function(m){var G,K;if((((G=m.thumbnailRenderer)==null?0:G.playlistVideoThumbnailRenderer)||((K=m.thumbnailRenderer)==null?0:K.playlistCustomThumbnailRenderer))&&m.thumbnailOverlays)for(G=0;G<m.thumbnailOverlays.length;G++)if(K=void 0,(K=m.thumbnailOverlays[G])==null?0:K.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.e_.Object.defineProperties(Wf.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.JSC$16590_inlinePreviewHoverListener)==null?0:hG(m))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Wf.prototype.dataChanged=Wf.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],Wf.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wf.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Wf.prototype,"displayItemCount",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],Wf.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],Wf.prototype,"biggerThumbsStyle",void 0);_.x([_.V({computed:"computeHasPlaylistThumbnail(data)"}),_.S("design:type",Object)],Wf.prototype,"hasPlaylistThumbnail",void 0);_.x([_.V(),_.S("design:type",String)],Wf.prototype,"stackThumbnailSize",void 0);_.x([_.UM("ytd-thumbnail"),_.S("design:type",HTMLElement)],Wf.prototype,"thumbnail",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wf.prototype,"dataChanged",null);
_.x([_.E("lockupIsHovered"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Wf.prototype,"isHovered",null);_.x([_.Ye({is:"ytd-radio-renderer",disableElementRegistration:!0})],Wf);
_.y(Wf,"ytd-radio-renderer",function(){if(bvX!==void 0)return bvX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return bvX=m},{mode:2});var vnB;_.Kz("itemSectionRenderer","showRenderer","ytd-show-renderer");var Lu=function(){return _.d.apply(this,arguments)||this};
_.n(Lu,_.d);Lu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Lu.prototype.computeThumbnailWidth=function(m){return m?360:246};
Lu.prototype.computeUseProminentThumbs=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Lu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lu.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Lu.prototype,"isSearch",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.S("design:type",Boolean)],Lu.prototype,"useProminentThumbs",void 0);_.x([_.Ye({is:"ytd-show-renderer",disableElementRegistration:!0})],Lu);
_.y(Lu,"ytd-show-renderer",function(){if(vnB!==void 0)return vnB;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vnB=m},{mode:1});_.Kz("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Ah=function(){var m=_.d.apply(this,arguments)||this;m.isRichGrid=!1;return m};
_.n(Ah,_.d);Ah.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"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ah.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ah.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ah.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ah.prototype,"isRichGrid",void 0);_.x([_.Ye({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Ah);
_.y(Ah,"ytd-feed-entry-renderer",function(){if(nnP!==void 0)return nnP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return nnP=m},{mode:1});var $LF;var w2=function(){return _.d.apply(this,arguments)||this};
_.n(w2,_.d);w2.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.x([_.q(_.OW),_.S("design:type",Object)],w2.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],w2.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],w2.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.Ov,value:3}),_.S("design:type",Number)],w2.prototype,"itemsPerRow",void 0);
_.x([_.Ye({is:"ytd-link-card-renderer",disableElementRegistration:!0})],w2);
_.y(w2,"ytd-link-card-renderer",function(){if($LF!==void 0)return $LF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $LF=m},{mode:1});var s0K;var g2=function(){return _.d.apply(this,arguments)||this};
_.n(g2,_.d);_.w=g2.prototype;_.w.configureRendererStamper=function(){return{"data.menu":zl,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.w.onRendererTap=function(m){if(!this.ytdDismissibleItemBehavior.isDismissed){var G,K=(G=this.data)==null?void 0:G.navigationEndpoint;K&&!_.b_(_.ve(m),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(K)?_.b_(_.ve(m),this.hostElement,["A"])||_.Zw(this.hostElement,"yt-navigate",{endpoint:K}):this.ytComponentBehavior.resolveCommand(K,{}))}};
_.w.maybeComputeHref=function(m){return this.ytComponentBehavior.computeHref_(m,!0)};
_.w.getNavigationCommand=function(m){return this.isNavigationCommand(m)?m:null};
_.w.isNavigationCommand=function(m){return m?_.Q(m,_.S8)||_.Q(m,_.QQ)||_.Q(m,_.H$)?!0:!1:!1};
g2.prototype.onRendererTap=g2.prototype.onRendererTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],g2.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],g2.prototype,"data",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],g2.prototype,"onRendererTap",null);_.x([_.Ye({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],g2);
_.y(g2,"ytd-lumiere-promo-item-image-renderer",function(){if(s0K!==void 0)return s0K;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return s0K=m},{mode:1});var qs0;var Oc=function(){return _.d.apply(this,arguments)||this};
_.n(Oc,_.d);Oc.prototype.computeLandscapeThumbnail=function(){var m;return((m=this.data)==null?void 0:m.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Oc.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Oc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],Oc.prototype,"miniMode",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.Ov}),_.S("design:type",Number)],Oc.prototype,"itemsPerRow",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.S("design:type",Boolean)],Oc.prototype,"landscapeThumbnail",void 0);_.x([_.Ye({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Oc);
_.y(Oc,"ytd-lumiere-shelf-details-renderer",function(){if(qs0!==void 0)return qs0;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qs0=m},{mode:2});var Enk;var cf=function(){return _.d.apply(this,arguments)||this};
_.n(cf,_.d);cf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cf.prototype,"data",void 0);_.x([_.Ye({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],cf);
_.y(cf,"ytd-primetime-promo-details-renderer",function(){if(Enk!==void 0)return Enk;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Enk=m},{mode:1});var HvP;var Y$=function(){return _.d.apply(this,arguments)||this};
_.n(Y$,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Y$.prototype,"data",void 0);_.x([_.Ye({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Y$);
_.y(Y$,"ytd-panel-show-style-metadata-renderer",function(){if(HvP!==void 0)return HvP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HvP=m},{mode:1});var IAR;var r2=function(){return _.d.apply(this,arguments)||this};
_.n(r2,_.d);_.w=r2.prototype;_.w.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.w.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.w.computeThumbnail=function(m){if(m)return m.smallFormFactorBackgroundThumbnail||m.largeFormFactorBackgroundThumbnail};
_.w.maybeComputeHref=function(m){return this.ytComponentBehavior.computeHref_(m,!0)};
_.w.isNavigationCommand=function(m){return m?_.Q(m,_.S8)||_.Q(m,_.QQ)||_.Q(m,_.H$)?!0:!1:!1};
_.w.getNavigationCommand=function(m){return this.isNavigationCommand(m)?m:null};
r2.prototype.onPanelTap=r2.prototype.onPanelTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],r2.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],r2.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],r2.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("web_modern_buttons")}),_.S("design:type",Boolean)],r2.prototype,"modernButtons",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r2.prototype,"onPanelTap",null);_.x([_.Ye({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],r2);
_.y(r2,"ytd-primetime-promo-panel-renderer",function(){if(IAR!==void 0)return IAR;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IAR=m},{mode:1});_.sh(_.P(function(m){m=_.ql(m,{data:{},useFullWidth:!1});var G=m.data,K=m.useFullWidth;m={};return _.r("teaser-card-view-model",{class:_.VO("ytTeaserCardViewModelHost",(m.ytTeaserCardViewModelUseFullWidth=function(){return K()},m))},_.r(_.p,{cond:function(){return G().onTap},
then:function(W){return _.r(_.qm,{className:"ytTeaserCardViewModelLink",command:W},_.r("div",{class:"ytTeaserCardViewModelImageContainer"},_.r(_.p,{cond:function(){return G().image},
then:function(L){return _.r(_.oC,{data:L,className:"ytTeaserCardViewModelImage",alt:""})}})),_.r("p",{class:"ytTeaserCardViewModelCaption"},function(){return G().caption}))}}))},"gd"),"teaser-card-view-model",{props:{data:_.Dd,
useFullWidth:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=function(){var W;return _.NB((W=G())==null?void 0:W.iconThemedImage)};
return _.r("yt-edu-card-view-model",null,_.r(_.Pr,{contentId:function(){return G().nudgeId}},function(){return _.r("div",{class:_.VO("ytEduCardViewModelHost",function(){return G().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.r("div",{class:"ytEduCardViewModelTopCornerButton"},_.r(_.z$,{data:function(){return G().dismissButton}},{buttonViewModel:_.kP})),_.r("div",{class:"ytEduCardViewModelContentWrapper"},_.r("div",{class:"ytEduCardViewModelHeaderImage"},_.r(_.p,
{cond:K,
then:function(W){return _.r(_.oC,{data:W,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.r("div",{class:"ytEduCardViewModelTextContainer"},_.r("div",{class:"ytEduCardViewModelTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytEduCardViewModelSubtitle"},_.r(_.Nm,{text:function(){return G().subtitle}}))),_.r("div",{class:"ytEduCardViewModelContent"},_.r(_.z$,{data:function(){return G().form}},{nudgeFormViewModel:uG4}))),_.r("div",{class:_.VO("ytEduCardViewModelButtonWrapper",
function(){return G().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.r(_.z$,{data:function(){return G().primaryButton}},{buttonViewModel:function(W){return _.r("div",{class:"ytEduCardViewModelPrimaryButton"},_.r(_.kP,{data:W.data}))}}),_.r(_.z$,{data:function(){return G().secondaryButton}},{buttonViewModel:function(W){return _.r("div",{class:"ytEduCardViewModelSecondaryButton"},_.r(_.kP,{data:W.data}))}})))}))},"hd"),"yt-edu-card-view-model",{props:{data:_.Dd}});var j0S=new _.sX("RICH_GRID_VIDEO_RENDERER_TOKEN");_.sh(_.P(function(m){var G=m.data;var K=m.showYtInteractionInContent;var W=function(){return!!G().selectableFeedback};
m=_.g(_.g_(!1,void 0,"qxtgaf"));var L=m.next().value,A=m.next().value;_.bX(function(){var D=_.Q(G().primaryButton,_.Dj);(D==null?0:D.isToggled)&&A(D.isToggled)});
m=_.dn(function(D){if(!W())return!1;if(L()){var t;var a=(t=G().selectableFeedback)==null?void 0:t.onDeselect}else{var v;a=(v=G().selectableFeedback)==null?void 0:v.onSelect}a&&_.h$(a,{form:{element:D.target}});A(!L());if(D=_.Q(G().primaryButton,_.Dj))D.isToggled=L();return!1});
var O=function(){if(!W()){var D,t=(D=G().loggingDirectives)==null?void 0:D.trackingParams;t&&_.xq(_.xS().resolve(_.m_),t)}},c=_.liJ(),u=function(){var D;
return W()?(D=G().selectableFeedback)==null?void 0:D.a11yLabel:void 0},h=function(){return W()?{toggled:L()}:{}},J=_.xS().resolve(_.fn(j0S)),N={};
return _.r("yt-feedback-item-renderer",{class:_.VO("ytFeedbackItemRendererHost",(N.ytFeedbackItemRendererSelectableFeedback=W,N)),"on:click":m,"on:keydown":c,title:u,"aria-label":u,"aria-pressed":function(){return W()?L():void 0},
tabindex:function(){return W()?0:void 0},
role:function(){return W()?"button":void 0}},_.r("div",{class:"ytFeedbackItemRendererContentContainer"},_.r(_.z$,{data:function(){return G().content}},{videoRenderer:function(D){return _.r(J,{data:D.data,
showYtInteraction:K})},
lockupViewModel:function(D){return _.r(_.xU,{data:D.data,containerType:2})}})),_.r("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.r(_.z$,{data:function(){return G().primaryButton}},{toggleButtonViewModel:function(D){return _.r(_.Gx,{data:D.data,
buttonShapeOverrides:h,disableExplicitClickLogging:!0,onToggle:O})}})))},"id"),"yt-feedback-item-renderer",{props:{data:_.Dd,
showYtInteractionInContent:_.Dd}});var u3=function(){var m=_.d.apply(this,arguments)||this;m.isShortsGrid=!1;m.isCompactGrid=!1;m.isShortsPanelGrid=!1;m.renderedFromRichGrid=!1;m.isInFirstColumn=!1;m.noGutterMargins=!1;m.noBottomMargin=!1;m.halfBottomMargin=!1;m.isInlineGroupItem=!1;m.insetMetadata=!1;m.noBottomMarginInAds=!0;m.force16By9ThumbnailAspectRatio=!1;m.useCompactList=!1;m.containerType=2;m.thumbnailTargetWidth=9999;m.isResponsiveGrid=!1;m.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};m.hoverListener=
m.hover.bind(m);m.leaveListener=m.leave.bind(m);m.highlighted=!1;m.JSC$16626_unsubscribeFromInlinePreviewIsActive=function(){};
return m};
_.n(u3,_.d);_.w=u3.prototype;_.w.computeContainerType=function(){return this.useCompactList?3:2};
_.w.itemWidthChanged=function(){var m;this.thumbnailTargetWidth=(m=this.itemWidth)!=null?m:9999};
_.w.updateIsInFirstColumn=function(){var m;this.isInFirstColumn=((m=this.data)==null?void 0:m.colIndex)===0};
_.w.observerContainerType=function(){if(this.lockup){var m=this.lockup;m.containerType=this.containerType;m.sizing=this.sizing;m.typographyBump=this.typographyBump;m.itemWidth=this.itemWidth}this.richGridMedia&&_.F("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.F("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.w.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.w.leave=function(m){m=m.relatedTarget;var G=document.querySelector("ytd-video-preview");m&&G&&_.Z7(G).contains(m)||this.removeAndCleanupHighlight()};
_.w.hover=function(){var m;!this.highlighted&&(m=this.data)!=null&&m.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(m=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:m,boxShadow:"0 0 0 10px "+m})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.w.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};
_.w.registerHoverHighlightListeners=function(){var m=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16626_unsubscribeFromInlinePreviewIsActive=_.BB(_.$R(),_.FsP,function(G){m.highlighted&&!G&&m.removeAndCleanupHighlight()})};
_.w.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16626_unsubscribeFromInlinePreviewIsActive()};
_.w.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.w.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.w.getBackgroundColor=function(){var m,G,K=(m=this.data)==null?void 0:(G=m.onFocusEffect)==null?void 0:G.onFocusColor;if(K){if(document.documentElement.hasAttribute("dark")&&(K==null?0:K.darkTheme))return rF(K==null?void 0:K.darkTheme);if(K==null?0:K.lightTheme)return rF(K==null?void 0:K.lightTheme)}};
_.w.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var m=_.gU(),G,K,W;m&&((G=this.data)==null?0:G.trackingParams)&&((K=this.data)==null?void 0:K.colIndex)!=null&&((W=this.data)==null?void 0:W.rowIndex)!=null&&_.vk(m,_.m5(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.w.isSlimMediaRenderer=function(m){return!!_.Q(m==null?void 0:m.content,_.zbK)||!!_.Q(m==null?void 0:m.content,UQG)||!!_.Q(m==null?void 0:m.content,_.rp)||!!_.Q(m==null?void 0:m.content,tp4)};
_.w.isPostRenderer=function(){var m,G;return!!_.Q((m=this.data)==null?void 0:m.content,w04)||!!_.Q((G=this.data)==null?void 0:G.content,gKl)};
_.w.computeIsGameCardShelf=function(){var m;return!!_.Q((m=this.data)==null?void 0:m.content,nYF)};
_.w.computeIsMiniGameCardShelf=function(){var m,G;return!!_.Q((m=this.data)==null?void 0:m.content,dAR)||!!_.Q((G=this.data)==null?void 0:G.content,PN0)};
_.w.computeIsTeaserCard=function(){var m;return!!_.Q((m=this.data)==null?void 0:m.content,PN0)};
_.w.computeIsSelectableFeedbackItem=function(){var m,G;return!((G=_.Q((m=this.data)==null?void 0:m.content,eil))==null||!G.selectableFeedback)};
_.w.computeContainsLumierePosters=function(){var m,G;return((G=_.Q((m=this.data)==null?void 0:m.content,DhS))==null?void 0:G.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.w.computeIsExpandOnHoverCardShelf=function(){var m;return!!_.Q((m=this.data)==null?void 0:m.content,NvP)};
_.w.computeIsLinkCardShelf=function(){var m;return!!_.Q((m=this.data)==null?void 0:m.content,j_0)};
_.w.computeIsReelItemStyleAvatarCircle=function(m){var G;return((G=_.Q(m==null?void 0:m.content,_.rp))==null?void 0:G.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.w.computeIsLinkCardFullWidth=function(m,G){var K;return((K=_.Q(m==null?void 0:m.content,j_0))==null?void 0:K.useFullWidth)||G<=2};
_.e_.Object.defineProperties(u3.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var m;return _.F("web_hover_effect_refactor")&&_.Q((m=this.data)==null?void 0:m.content,juC)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.F("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var m;if(_.F("web_hover_effect_refactor")&&_.Q((m=this.data)==null?void 0:m.content,juC))return!1;var G;return!((G=this.data)==null||!G.onFocusEffect)||_.F("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var m;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.F("web_hover_effect_refactor")?(m=this.data)==null?void 0:m.onFocusEffect:void 0}}}});
u3.prototype.richGridHoverHighlightChanged=u3.prototype.richGridHoverHighlightChanged;u3.prototype.observerContainerType=u3.prototype.observerContainerType;u3.prototype.updateIsInFirstColumn=u3.prototype.updateIsInFirstColumn;u3.prototype.itemWidthChanged=u3.prototype.itemWidthChanged;_.x([_.q(_.OW),_.S("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],u3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],u3.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],u3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.S("design:type",Boolean)],u3.prototype,"isPost",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.S("design:type",Boolean)],u3.prototype,"containsLumierePosters",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.S("design:type",Boolean)],u3.prototype,"isSlimMedia",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.S("design:type",Boolean)],u3.prototype,"isGameCardShelf",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.S("design:type",Boolean)],u3.prototype,"isMiniGameCardShelf",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.S("design:type",Boolean)],u3.prototype,"isTeaserCard",void 0);_.x([_.V({computed:"computeIsSelectableFeedbackItem(data)"}),_.S("design:type",Boolean)],u3.prototype,"isSelectableFeedbackItem",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isShortsGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],u3.prototype,"isSlimGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isCompactGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isShortsPanelGrid",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.S("design:type",Boolean)],u3.prototype,"isExpandOnHoverCardShelf",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.S("design:type",Boolean)],u3.prototype,"isLinkCardShelf",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.Ov,value:3}),_.S("design:type",Number)],u3.prototype,"itemsPerRow",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"renderedFromRichGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isInFirstColumn",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"noGutterMargins",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"noBottomMargin",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"halfBottomMargin",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isInlineGroupItem",void 0);_.x([_.V(),_.S("design:type",Object)],u3.prototype,"insetMetadata",void 0);_.x([_.V(),_.S("design:type",Object)],u3.prototype,"noBottomMarginInAds",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],u3.prototype,"isShelfItem",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.S("design:type",Boolean)],u3.prototype,"isReelItemStyleAvatarCircle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.S("design:type",Boolean)],u3.prototype,"isLinkCardFullWidth",void 0);_.x([_.V(),_.S("design:type",Object)],u3.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"useCompactList",void 0);_.x([_.V(),_.S("design:type",String)],u3.prototype,"sizing",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],u3.prototype,"typographyBump",void 0);_.x([_.V(),_.S("design:type",Number)],u3.prototype,"itemWidth",void 0);_.x([_.V(),_.S("design:type",Boolean)],u3.prototype,"isHomeShelf",void 0);_.x([_.V(),_.S("design:type",Boolean)],u3.prototype,"isHomeGrid",void 0);
_.x([_.UM("yt-lockup-view-model"),_.S("design:type",HTMLElement)],u3.prototype,"lockup",void 0);_.x([_.UM("ytd-rich-grid-media"),_.S("design:type",HTMLElement)],u3.prototype,"richGridMedia",void 0);_.x([_.UM("ytd-ad-slot-renderer"),_.S("design:type",HTMLElement)],u3.prototype,"adSlotRenderer",void 0);_.x([_.V({computed:"computeContainerType(useCompactList)"}),_.S("design:type",Object)],u3.prototype,"containerType",void 0);_.x([_.V(),_.S("design:type",Object)],u3.prototype,"thumbnailTargetWidth",void 0);
_.x([_.E("showYtInteractionOnRichItem"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u3.prototype,"showYtInteractionOnRichGridMedia",null);_.x([_.E("isSelectableFeedbackItem","richGridHoverHighlight"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u3.prototype,"showYtInteractionOnRichItem",null);_.x([_.E("typographyBump","isHomeGrid"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u3.prototype,"richTypographyBump",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data","isShortsGrid","isCompactGrid"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],u3.prototype,"richGridHoverHighlight",null);_.x([_.E("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.S("design:type",Number),_.S("design:paramtypes",[])],u3.prototype,"shortsLockupViewModelAspectRatio",null);_.x([_.E("isInlineGroupItem"),_.S("design:type",Number),_.S("design:paramtypes",[])],u3.prototype,"shortsLockupViewModelScrimStyle",null);
_.x([_.Sb("itemWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],u3.prototype,"itemWidthChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],u3.prototype,"updateIsInFirstColumn",null);_.x([_.Sb("containerType","sizing","typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],u3.prototype,"observerContainerType",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],u3.prototype,"isResponsiveGrid",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],u3.prototype,"lockupExperiments",null);_.x([_.Sb("richGridHoverHighlight"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],u3.prototype,"richGridHoverHighlightChanged",null);_.x([_.Ye({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],u3);
_.k0X=_.Vz()(u3,"ytd-rich-item-renderer",function(){if(FGS===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);FGS=m}m=FGS;return m},{mode:2});var wAd={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var FxF=_.nG(_.zq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var OdF={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},Yqf={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},rRV={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var CUk;var hh=function(){var m=_.d.apply(this,arguments)||this;m.useResponsiveGrid=!1;m.hidden=!1;m.isShowMoreHidden=!1;m.isShowLessHidden=!0;m.hasExpansionButton=!1;m.isInnerShelf=!1;m.allVideosCount=0;m.allPlaylistCount=0;m.haveSmartDownloadsCompleted=!1;m.restrictContentsOverflow=!1;m.firstShownIndex=0;m.horizontalOffset=0;m.atEnd=!0;m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
m.disableServiceRequestPropagation=function(G){G.stopPropagation()};
m.nextClick=function(){var G;(G=m.data)!=null&&G.contents&&(m.firstShownIndex+=m.currentElementsPerRow,m.updateHorizontalOffset(),m.updateHorizontalItemVisibility())};
m.previousClick=function(){var G;(G=m.data)!=null&&G.contents&&(m.firstShownIndex-=m.currentElementsPerRow,m.updateHorizontalOffset(),m.updateHorizontalItemVisibility())};
return m};
_.n(hh,_.d);_.w=hh.prototype;
_.w.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.E8("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.w.attached=function(){this.requestElementsPerRow();_.F("disable_service_request_rich_shelf_killswitch")||this.contents.addEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.w.detached=function(){_.F("disable_service_request_rich_shelf_killswitch")||this.contents.removeEventListener("yt-service-request-sent",this.disableServiceRequestPropagation)};
_.w.refreshGridLayoutNew=function(){var m;if((m=this.data)!=null&&m.contents&&this.containerWidth){var G;((G=this.data.responsiveContainerConfiguration)==null?0:G.responsiveSize)?(m=_.amd(this.data.responsiveContainerConfiguration,this.containerWidth,2),m=_.pQ(Object.assign({},m,{standardUnitMinWidth:this.standardUnitMinWidth}))):m=_.pQ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=m.typographyBump;if(this.elementsPerRow!==
m.numItems||this.gutter!==m.gutter)this.elementsPerRow=m.numItems,this.gutter=m.gutter,this.itemWidth=m.itemWidth,_.eb(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":m.gutter+"px"})}};
_.w.computeSizing=function(){if(!this.isLumiere){var m=_.X6G(this.data);return m?m:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.w.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.w.computeButton=function(m){var G=_.Q(m,_.uu);m=Object.assign({},_.Q(m,_.uu));return G?(m.text||(m.text={simpleText:m.tooltip}),m.style="STYLE_MONO_OUTLINE",m.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",m):G};
_.w.onRowIndexChange=function(){var m=_.gU(),G,K;((G=this.data)==null?0:G.trackingParams)&&((K=this.data)==null?void 0:K.rowIndex)!=null&&m&&_.vk(m,_.m5(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.w.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var m,G=((m=this.getRichItemRenderers()[0])==null?void 0:m.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*G;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
_.w.onUpdateElementsPerRowAction=function(m,G,K,W,L,A){if(this.containerWidth!==A&&(this.containerWidth=A,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&m&&G&&K&&W&&L&&(this.elementsPerRow!==m||this.postsPerRow!==G||this.slimItemsPerRow!==K||this.gameCardsPerRow!==W||this.miniGameCardsPerRow!==L)&&(this.elementsPerRow=m,this.postsPerRow=G,this.slimItemsPerRow=K,this.gameCardsPerRow=W,this.miniGameCardsPerRow=L,this.updateItemVisibility())};
_.w.isExpandedChanged=function(){var m=this.getRichItemRenderers(),G=this.isExpanded;m.forEach(function(K){K.halfBottomMargin=G})};
_.w.isCollapsedChanged=function(){var m=this.getRichItemRenderers(),G=this.isCollapsed;m.forEach(function(K){K.noBottomMargin=G})};
_.w.getRichItemRenderers=function(){return _.VL(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.w.updateItemVisibility=function(){var m=this;if(this.data&&this.data.contents){var G=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(W,L){var A;((A=m.data)==null?0:A.isExpanded)?(W.hidden=L>G-1,W.ytRendererBehavior.markDirty()):W.hidden=L>m.currentElementsPerRow-1||L>G-1});
var K=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||K||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||K||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.w.setHeightToSingleRow=function(){var m=this.getRichItemRenderers(),G=Number.parseInt(getComputedStyle(m[0]).marginBottom,10)||0;m=m.slice(0,this.currentElementsPerRow).reduce(function(K,W){return Math.max(K,W.getBoundingClientRect().height+G)},0);
this.contents.style.height=m+"px"};
_.w.focusNextExpandedItem=function(){var m;((m=this.data)==null?0:m.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.w.focusItem=function(m,G){var K=this.getRichItemRenderers();if(K[m]&&(m=K[m].querySelector(".focus-on-expand"))){if(G){var W;(W=K[this.currentElementsPerRow])==null||W.scrollIntoView({behavior:"smooth",block:"center"})}m.focus({preventScroll:!0})}};
_.w.onDataChange=function(){var m=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var G;if((G=this.data)==null?0:G.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Pv(this,function(){m.updateItemVisibility()});
var K;if((K=this.data)==null?0:K.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.eb(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),G=0;G<this.data.contents.length;G++)K=_.Q(this.data.contents[G],_.Tc)||{},K.colIndex=G,K.rowIndex=this.data.rowIndex};
_.w.handleRerenderDownloadsData=function(){_.F("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())};
_.w.blockInlinePreview=function(m){var G=this,K;return _.Y(function(W){(K=G.inlinePreviewIsEnabled)&&G.ytdReduxBehavior.dispatch(_.o$0(!1));return W.return(new Promise(function(L){m(function(){K&&G.ytdReduxBehavior.dispatch(_.o$0(!0));L()})}))})};
_.w.expandShelf=function(){var m=this;if(this.data){var G,K=(G=_.Q(this.data.showMoreButton,_.uu))==null?void 0:G.trackingParams;K&&_.xq(_.l1(),K);this.set("data.isExpanded",!0);this.blockInlinePreview(function(W){m.setHeightToSingleRow();m.updateItemVisibility();m.contents.style.height=m.contents.scrollHeight+"px";_.Fu.addJob(function(){m.contents.style.height="auto";m.focusNextExpandedItem();W()},2,200)})}};
_.w.collapseShelf=function(){var m=this;return _.Y(function(G){if(G.nextAddress==1){if(!m.data)return G.return();m.set("data.isExpanded",!1);return G.yield(m.blockInlinePreview(function(K){m.contents.style.height=m.contents.scrollHeight+"px";m.setHeightToSingleRow();_.Fu.addJob(function(){m.updateItemVisibility();m.contents.style.height="auto";K()},2,200)}),2)}_.Zw(m.hostElement,"yt-rich-shelf-renderer-collapse",m.data.trackingParams);
m.focusItem(0,!1);_.ey(G)})};
_.w.updateArrowButtonStatus=function(){this.getRichItemRenderers();var m,G;var K=((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=K};
_.w.onChildElementFocus=function(m){this.hasChevronButtons&&(m=m.target.closest("#contents > *"),this.contents.contains(m)&&(m.offsetLeft<this.horizontalOffset?this.previousClick():m.offsetLeft+m.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.w.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.E8("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.w.updateHorizontalOffset=function(){var m=this.getRichItemRenderers(),G,K;var W=((G=this.data)==null?void 0:(K=G.contents)==null?void 0:K.length)||0;var L;m=((L=m[0])==null?void 0:L.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>W?this.firstShownIndex=W-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*m};
_.w.isSlimMediaShelfRenderer=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!!(_.Q(W,_.zbK)||_.Q(W,UQG)||_.Q(W,_.rp)||_.Q(W,tp4))};
_.w.isGameCardShelf=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!!_.Q(W,nYF)};
_.w.isMiniGameCardShelf=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!!_.Q(W,dAR)||!!_.Q(W,PN0)};
_.w.hasGameBoxArtAvatarStyle=function(){var m;return((m=this.data)==null?void 0:m.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.w.hasRoundedGameBoxArtAvatarStyle=function(){var m;return((m=this.data)==null?void 0:m.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.w.isShortsShelf=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!!_.Q(W,_.rp)||!!_.Q(W,tp4)};
_.w.isPostShelfRenderer=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!(!_.Q(W,w04)&&!_.Q(W,gKl))};
_.w.isLumiereShelf=function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc);return!!_.Q(K==null?void 0:K.content,DhS)};
_.w.isLumiereShelfWithPosters=function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc),W;return((W=_.Q(K==null?void 0:K.content,DhS))==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.w.isExpandOnHoverCardShelf=function(){var m,G,K,W=(K=_.Q((m=this.data)==null?void 0:(G=m.contents)==null?void 0:G[0],_.Tc))==null?void 0:K.content;return!!_.Q(W,NvP)};
_.w.computeHasFeaturedBadge=function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.badges)==null?void 0:G[0],_.PhX);return K?K.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.w.computeHasPaygatedFeaturedBadge=function(){var m,G,K=_.Q((m=this.data)==null?void 0:(G=m.badges)==null?void 0:G[0],_.PhX);return K?(K==null?void 0:K.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.w.computeHeaderHidden=function(){var m,G,K,W,L,A;return!((m=this.data)==null?0:m.icon)&&!((G=this.data)==null?0:G.title)&&!((K=this.data)==null?0:K.subtitle)&&!((W=this.data)==null?0:W.thumbnail)&&!((L=this.data)==null?0:L.badges)&&!((A=this.data)==null?0:A.menu)};
_.w.showCtaButton=function(){var m;return!((m=this.data)==null||!m.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.w.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.w.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.w.computeForce16By9ThumbnailAspectRatio=function(){var m,G;return((m=this.data)==null?void 0:(G=m.responsiveContainerConfiguration)==null?void 0:G.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.w.onSectionReactiveDismissal=function(m,G,K){var W,L;var A=(W=this.data)==null?void 0:(L=W.targetingContext)==null?void 0:L.targetGroupId;this&&A&&G.targetGroupId&&A.includes(G.targetGroupId)?(W=this.rowIndex,m=W===void 0?!1:!(G.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&W<=m)):m=!1;m&&(this.hidden=K)};
_.e_.Object.defineProperties(hh.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null?0:m.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var m=this.elementsPerRow;this.isPostShelfRenderer()?m=this.postsPerRow:this.isSlimMediaShelfRenderer()?m=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?m=this.slimItemsPerRow-1:this.isGameCardShelf()?m=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(m=this.miniGameCardsPerRow);return m}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null?0:m.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.previousButton)&&!((G=this.data)==null||!G.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 m;return((m=_.xS().resolve(_.$g).getCurrentPage())==null?void 0:m.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return!((m=this.data)==null?0:(G=m.thumbnail)==null?0:(K=G.accessibility)==null?0:(W=K.accessibilityData)==null?0:W.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
hh.prototype.onChildElementFocus=hh.prototype.onChildElementFocus;hh.prototype.handleRerenderDownloadsData=hh.prototype.handleRerenderDownloadsData;hh.prototype.onDataChange=hh.prototype.onDataChange;hh.prototype.isCollapsedChanged=hh.prototype.isCollapsedChanged;hh.prototype.isExpandedChanged=hh.prototype.isExpandedChanged;hh.prototype.onRowIndexChange=hh.prototype.onRowIndexChange;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],hh.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],hh.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],hh.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],hh.prototype,"ytdReduxBehavior",void 0);
_.x([_.V({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.S("design:type",Object)],hh.prototype,"useResponsiveGrid",void 0);_.x([_.V(),_.S("design:type",Object)],hh.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],hh.prototype,"standardUnitMinWidth",void 0);_.x([_.V({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],hh.prototype,"elementsPerRow",void 0);_.x([_.V({value:3}),_.S("design:type",Number)],hh.prototype,"postsPerRow",void 0);
_.x([_.V({value:6}),_.S("design:type",Number)],hh.prototype,"slimItemsPerRow",void 0);_.x([_.V({value:6}),_.S("design:type",Number)],hh.prototype,"gameCardsPerRow",void 0);_.x([_.V({value:6}),_.S("design:type",Number)],hh.prototype,"miniGameCardsPerRow",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hh.prototype,"hidden",void 0);_.x([_.V(),_.S("design:type",Object)],hh.prototype,"isShowMoreHidden",void 0);
_.x([_.V(),_.S("design:type",Object)],hh.prototype,"isShowLessHidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hh.prototype,"hasExpansionButton",void 0);_.x([_.E("data.isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"isExpanded",null);_.x([_.E("data.isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"isCollapsed",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hh.prototype,"isInnerShelf",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.S("design:type",Boolean)],hh.prototype,"isShorts",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.S("design:type",Boolean)],hh.prototype,"isLumiere",void 0);_.x([_.V({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.S("design:type",Boolean)],hh.prototype,"hasBoxArtThumbnailStyle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.S("design:type",Boolean)],hh.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.S("design:type",Boolean)],hh.prototype,"hasFeaturedBadge",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.S("design:type",Boolean)],hh.prototype,"hasPaygatedFeaturedBadge",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.S("design:type",Boolean)],hh.prototype,"isHeaderHidden",void 0);_.x([_.V({selector:_.vjd}),_.S("design:type",Object)],hh.prototype,"allVideosCount",void 0);_.x([_.V({selector:Q1d}),_.S("design:type",Object)],hh.prototype,"allPlaylistCount",void 0);_.x([_.V({selector:crP}),_.S("design:type",Object)],hh.prototype,"haveSmartDownloadsCompleted",void 0);
_.x([_.V({selectorArgs:["entitySelectorType"],selector:function(m,G){if(_.F("kevlar_modern_downloads_page")&&G&&G!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var K=m.entities;switch(G){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":G=_.LG(K);m=SF(G);var W=_.Tz(G);K=_.w6(K);K=_.Hk(h7G(W,K,G.length));return{contents:m,subtitle:K};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return K=_.LG(K),{contents:SF(K)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return K=
_.AM(K),{contents:SF(K)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return K=_.Ks9(K),{contents:SF(K)};default:_.nc(new _.cw("Error: entitySelectorType defined but not matched in selector.",m,G))}}}}),
_.S("design:type",Object)],hh.prototype,"entityDrivenRichShelfData",void 0);_.x([_.V({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.S("design:type",Boolean)],hh.prototype,"hasTopCtaButton",void 0);_.x([_.V({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.S("design:type",Boolean)],hh.prototype,"hasBottomCtaButton",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.S("design:type",Boolean)],hh.prototype,"force16By9ThumbnailAspectRatio",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hh.prototype,"restrictContentsOverflow",void 0);_.x([_.V({selector:_.Quf}),_.S("design:type",Boolean)],hh.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.V({computed:"computeSizing(data)"}),_.S("design:type",String)],hh.prototype,"sizing",void 0);
_.x([_.V(),_.S("design:type",Boolean)],hh.prototype,"typographyBump",void 0);_.x([_.V(),_.S("design:type",Number)],hh.prototype,"itemWidth",void 0);_.x([_.V(),_.S("design:type",Object)],hh.prototype,"firstShownIndex",void 0);_.x([_.V(),_.S("design:type",Object)],hh.prototype,"horizontalOffset",void 0);_.x([_.V(),_.S("design:type",Object)],hh.prototype,"atEnd",void 0);_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],hh.prototype,"contents",void 0);
_.x([_.Sb("data.rowIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hh.prototype,"onRowIndexChange",null);_.x([_.Sb("isExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hh.prototype,"isExpandedChanged",null);_.x([_.Sb("isCollapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hh.prototype,"isCollapsedChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hh.prototype,"onDataChange",null);_.x([_.Sb("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hh.prototype,"handleRerenderDownloadsData",null);_.x([_.XC("focusin"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],hh.prototype,"onChildElementFocus",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data","isHomePage"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"isTruncated",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"showBottomDivider",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],hh.prototype,"hasChevronButtons",null);
_.x([_.E("firstShownIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],hh.prototype,"previousButtonOverride",null);_.x([_.E("atEnd"),_.S("design:type",Object),_.S("design:paramtypes",[])],hh.prototype,"nextButtonOverride",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"isHomePage",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hh.prototype,"thumbnailAriaHidden",null);
_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],hh.prototype,"entitySelectorType",null);_.x([_.Ye({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],hh);
_.VHS=_.Vz()(hh,"ytd-rich-shelf-renderer",function(){if(CUk===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);CUk=m}m=CUk;return m},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:2});var ZvR;_.sh(Hr,"yt-thumbnail-view-model",{props:{data:_.Dd,aspectRatio:_.Dd,width:_.Dd,height:_.Dd,disableRounding:_.Dd,isClip:_.Dd,className:_.Dd,hovered:_.Dd,playbackRef:_.Dd,lockupExperiments:_.Dd}});_.sh(_.vr,"yt-badge-view-model",{props:{data:_.Dd,class:_.Dd,workaroundShortsIsThumbnailBadge:_.Dd,modern:_.Dd,numBadgesInRow:_.Dd,clipTextOverflow:_.Dd,inheritTypography:_.Dd}});_.sh(AT2,"yt-slimline-survey-view-model",{props:{data:_.Dd}});var pu=function(){var m=_.d.apply(this,arguments)||this;m.tileLottieAnimationRef={};m.backgroundLottieAnimationRef={};m.isOnHoverBehaviorForLottieEnabled=!0;m.useBiggerShowcaseImage=_.F("enable_desktop_search_bigger_thumbs");m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return m};
_.n(pu,_.d);_.w=pu.prototype;_.w.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.w.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",toggleButtonViewModel:"yt-toggle-button-view-model",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",
mapping:{menuRenderer:"ytd-menu-renderer"}},tileImageViewModel:{id:"tile-image-view-model",mapping:{thumbnailViewModel:{component:"yt-thumbnail-view-model"}}},"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",
mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.w.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var m=this.hasStaticTile(this.data)||this.hasTileLottie(this.data)||this.hasThumbnailViewModel(this.data);m!==this.hasTile&&this.set("hasTile",m);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.set("tileImageViewModel",this.getCurrentTileImageViewModel(this.data,this.isDarkTheme));this.maybeInitializeTileLottie();this.maybeInitializeBackgroundLottie()}};
_.w.hoveredChanged=function(){var m=this.thumbnail;m&&(m.hovered=this.hovered)};
_.w.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.w.currentColorChanged=function(){this.updateButtonPalette()};
_.w.computeBackgroundStyle=function(m){if(m&&this.data){var G=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var K=_.Eh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);K&&G.push('background-image: url("'+K+'");')}var W;((W=m.basicColorData)==null?void 0:W.backgroundColor)!==void 0&&G.push("background-color: "+_.ce(m.basicColorData.backgroundColor)+";");return G.join("")}};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&this.set("isDarkTheme",m)};
_.w.getCurrentLogo=function(m,G){if(m)return G?m.darkLogoImage:m.lightLogoImage};
_.w.getCurrentTileImageViewModel=function(m,G){if(m)return m.darkTileImageViewModel?G?m.darkTileImageViewModel:m.tileImageViewModel:m.tileImageViewModel};
_.w.getCurrentStaticTileImage=function(m,G){if(this.hasStaticTile(m))return m.darkTileImage?G?m.darkTileImage:m.tileImage:m.tileImage};
_.w.computeTitleStyle=function(m){if(this.data&&this.data.title&&m&&m.basicColorData&&m.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.OM(m.basicColorData.foregroundTitleColor)+";"};
_.w.computeSubtitleStyle=function(m){if(this.data&&this.data.subtitle&&m&&m.basicColorData&&m.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.OM(m.basicColorData.foregroundBodyColor)+";"};
_.w.computeSupplementalStyle=function(m){if(this.data&&this.data.supplementalText&&m&&m.supplementalTextColor!==void 0)return m=_.OM(m.supplementalTextColor),"color:"+m+";--yt-endpoint-color:"+m+";--yt-endpoint-hover-color:"+m+";--yt-endpoint-visited-color:"+m+";--yt-formatted-string-bold-font-weight:700;"};
_.w.computeDismissIconStyle=function(m){var G,K;if((m==null?0:(G=m.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(m==null?0:(K=m.dismissButtonColorData)==null?0:K.backgroundColor))return"--yt-button-color:"+_.ce(m.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ce(m.dismissButtonColorData.backgroundColor)+";"};
_.w.computeOverflowIconStyle=function(m){var G,K;if((m==null?0:(G=m.dismissButtonColorData)==null?0:G.foregroundTitleColor)&&(m==null?0:(K=m.dismissButtonColorData)==null?0:K.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.ce(m.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.ce(m.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.ce(m.dismissButtonColorData.foregroundTitleColor)+";"};
_.w.computeBannerStyle=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeLocation=function(m){switch(m==null?void 0:m.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.w.shouldShowTileSection=function(m,G,K){return!this.shouldExpandLogo(m,G,K)&&G};
_.w.shouldShowExpandedLogoSection=function(m,G,K){return this.shouldExpandLogo(m,G,K)&&m!==void 0&&this.hasLogo(m)};
_.w.shouldExpandLogo=function(m,G,K){return m&&G?!1:K>=2};
_.w.hasStaticTile=function(m){return!(m==null||!m.tileImage)};
_.w.hasThumbnailViewModel=function(m){return!(m==null||!m.tileImageViewModel)};
_.w.hasTileLottie=function(m){var G;return!!(m==null?0:(G=m.tileLottie)==null?0:G.url)};
_.w.hasLogo=function(m){return this.getCurrentLogo(m,this.isDarkTheme)!==void 0};
_.w.getLogoHeight=function(m){return this.logoWithPadding(m)?"26":"20"};
_.w.getExpandedLogoHeight=function(m){return this.logoWithPadding(m)?"31":"24"};
_.w.getLogoImageId=function(m){return this.logoWithPadding(m)?"logo-image-with-padding":"logo-image"};
_.w.getMaxTitleFontSize=function(m){return m.overrideTitleMaxFontSize?String(m.overrideTitleMaxFontSize):"36"};
_.w.hasBackgroundLottie=function(m){var G;return!!(m==null?0:(G=m.backgroundLottie)==null?0:G.url)};
_.w.onMouseOver=function(){if(this.isOnHoverBehaviorForLottieEnabled){var m,G;(m=this.tileLottieAnimationRef)==null||(G=m.lottieEl)==null||G.play();var K,W;(K=this.backgroundLottieAnimationRef)==null||(W=K.lottieEl)==null||W.play()}this.hovered=!0};
_.w.onMouseLeave=function(){if(this.isOnHoverBehaviorForLottieEnabled){var m,G;(m=this.tileLottieAnimationRef)==null||(G=m.lottieEl)==null||G.pause();var K,W;(K=this.backgroundLottieAnimationRef)==null||(W=K.lottieEl)==null||W.pause()}this.hovered=!1};
_.w.pauseLottie=function(){var m,G;(m=this.tileLottieAnimationRef)==null||(G=m.lottieEl)==null||G.pause();var K,W;(K=this.backgroundLottieAnimationRef)==null||(W=K.lottieEl)==null||W.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.w.performPrimaryButtonAction=function(){var m,G,K;((m=this.data)==null?0:(G=m.primaryButton)==null?0:(K=G.buttonRenderer)==null?0:K.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
_.w.updateButtonPalette=function(){if(this.data&&this.currentColorData){var m;((m=this.data.dismissButton)==null?0:m.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 G;if((G=this.data.primaryButton)==null?0:G.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 K;if((K=this.data.secondaryButton)==
null?0:K.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 W;((W=this.data.primaryButton)==null?0:W.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var L;((L=this.data.primaryButton)==null?0:L.toggleButtonViewModel)&&this.set("primaryButton",{toggleButtonViewModel:Object.assign({},this.data.primaryButton.toggleButtonViewModel)});var A;((A=this.data.secondaryButton)==null?0:A.toggleButtonRenderer)&&this.set("secondaryButton",
{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var O;((O=this.data.primaryButton)==null?0:O.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},this.data.primaryButton.buttonViewModel)})}};
_.w.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var m=this.getTileLottieDataBasedOnTheme(),G,K;if(m.url!==((G=this.tileLottiePlayerProps)==null?void 0:(K=G.animationConfig)==null?void 0:K.path)){var W,L;(W=this.tileLottieAnimationRef)==null||(L=W.lottieEl)==null||L.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=m.settings)==null?0:A.autoplay);var O,c;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(c=(O=m.settings)==null?void 0:O.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(m.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof m.url==="string"?this.tileLottiePlayerProps.animationConfig.path=m.url:this.tileLottiePlayerProps.animationConfig.animationData=m.url}}};
_.w.getOverflowButton=function(m){return _.Q(m.overflowButton,n6R)};
_.w.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var m=this.getBackgroundLottieDataBasedOnTheme(),G,K;if(m.url!==((G=this.backgroundLottiePlayerProps)==null?void 0:(K=G.animationConfig)==null?void 0:K.path)){var W,L;(W=this.backgroundLottieAnimationRef)==null||(L=W.lottieEl)==null||L.destroy();var A;this.isOnHoverBehaviorForLottieEnabled=!((A=m.settings)==null?0:A.autoplay);var O,c;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(c=(O=m.settings)==null?void 0:O.autoplay)!=null?c:!1,loop:this.getLottieLoopValue(m.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof m.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=m.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
m.url}}};
_.w.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var m;((m=this.tileLottieAnimationRef)==null?void 0:m.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var G;((G=this.backgroundLottieAnimationRef)==null?void 0:G.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.w.getTileLottieDataBasedOnTheme=function(){var m;if(this.isDarkTheme&&((m=this.data)==null?0:m.darkThemeTileLottie))return this.data.darkThemeTileLottie;var G;return((G=this.data)==null?0:G.tileLottie)?this.data.tileLottie:{}};
_.w.getBackgroundLottieDataBasedOnTheme=function(){var m;if(this.isDarkTheme&&((m=this.data)==null?0:m.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var G;return((G=this.data)==null?0:G.backgroundLottie)?this.data.backgroundLottie:{}};
_.w.onUpdateElementsPerRowAction=function(m){m&&this.elementsPerRow!==m&&(this.elementsPerRow=m)};
_.w.getLottieLoopValue=function(m){return m?m.loop!==void 0?m.loop:m.loopCount?m.loopCount-1:!0:!0};
_.w.logoWithPadding=function(m){var G,K,W;return(m=(G=this.getCurrentLogo(m,this.isDarkTheme))==null?void 0:(K=G.thumbnails)==null?void 0:(W=K[0])==null?void 0:W.height)&&m%31===0?!0:!1};
pu.prototype.currentColorChanged=pu.prototype.currentColorChanged;pu.prototype.themeChanged=pu.prototype.themeChanged;pu.prototype.hoveredChanged=pu.prototype.hoveredChanged;pu.prototype.dataChanged=pu.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Yj),_.S("design:type",Object)],pu.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],pu.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],pu.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"primaryButton",void 0);
_.x([_.V(),_.S("design:type",Object)],pu.prototype,"tileImageViewModel",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"secondaryButton",void 0);_.x([_.V({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],pu.prototype,"elementsPerRow",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pu.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pu.prototype,"hasTile",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pu.prototype,"hasMetadata",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pu.prototype,"showLogoImage",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],pu.prototype,"hovered",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"currentColorData",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.S("design:type",String)],pu.prototype,"bannerStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.S("design:type",String)],pu.prototype,"location",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"tileLottiePlayerProps",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"tileLottieAnimationRef",void 0);
_.x([_.V(),_.S("design:type",Object)],pu.prototype,"backgroundLottiePlayerProps",void 0);_.x([_.V(),_.S("design:type",Object)],pu.prototype,"backgroundLottieAnimationRef",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],pu.prototype,"useBiggerShowcaseImage",void 0);_.x([_.UM("yt-thumbnail-view-model"),_.S("design:type",HTMLElement)],pu.prototype,"thumbnail",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],pu.prototype,"isHideEnclosingAction",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pu.prototype,"dataChanged",null);_.x([_.Sb("hovered"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pu.prototype,"hoveredChanged",null);_.x([_.Mg("isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pu.prototype,"themeChanged",null);
_.x([_.Mg("currentColorData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pu.prototype,"currentColorChanged",null);_.x([_.Ye({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],pu);
_.y(pu,"ytd-statement-banner-renderer",function(){if(ZvR!==void 0)return ZvR;var m=document.createElement("template");_.b(m,'\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="onMouseLeave" on-mouseover="onMouseOver" 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          <div id="tile-image-view-model" hidden="[[!hasThumbnailViewModel(data)]]" class="style-scope ytd-statement-banner-renderer"></div>\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZvR=m},{mode:1});var dLi;var Jh=function(){var m=_.d.apply(this,arguments)||this;m.isSearch=!1;m.hideShelfHeader=!1;m.engagementPanel=!1;m.disableMouseScroll=!0;m.useFloorScrolling=!0;return m};
_.n(Jh,_.d);Jh.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.zq("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.zq("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Jh.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Jh.prototype.onDataChanged=Jh.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Jh.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Jh.prototype,"hideShelfHeader",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Jh.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],Jh.prototype,"disableMouseScroll",void 0);_.x([_.V(),_.S("design:type",Object)],Jh.prototype,"useFloorScrolling",void 0);_.x([_.V(),_.S("design:type",Object)],Jh.prototype,"data",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jh.prototype,"onDataChanged",null);
_.x([_.Ye({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Jh);
_.y(Jh,"ytd-reel-shelf-renderer",function(){if(dLi!==void 0)return dLi;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-img-shadow>\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n    <h2 class="style-scope ytd-reel-shelf-renderer">\n      <div id="title-text" class="style-scope ytd-reel-shelf-renderer">\n        <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n        <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n      </div>\n      <div id="subtitle-text" class="style-scope ytd-reel-shelf-renderer">\n        <dom-repeat as="badge" items="[[data.badges]]" class="style-scope ytd-reel-shelf-renderer">\n          <template class="style-scope ytd-reel-shelf-renderer">\n            <yt-badge-view-model data="[[badge.badgeViewModel]]" class="style-scope ytd-reel-shelf-renderer"></yt-badge-view-model>\n          </template>\n        </dom-repeat>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n      </div>\n    </h2>\n  </div>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dLi=m},{mode:_.Zh("kevlar_poly_si_batch_j028")?1:2});var PUi;var ymG;ymG=_.nY(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.eqP=_.vE(ymG);var fAl=_.P(function(m){var G=m.data;m=m.useSmallFont;var K={},W={};return _.r("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.r(_.p,{cond:function(){return G().favicon},
then:function(L){return _.r(_.oC,{data:L,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.r("div",{class:"ytChannelExternalLinkViewModelContainer"},_.r(_.Nm,{text:function(){return G().title},
className:_.VO("ytChannelExternalLinkViewModelTitle",(K.ytChannelExternalLinkViewModelTitleSmallFont=m,K)),ellipsisTruncate:!0,userInput:!0}),_.r(_.Nm,{text:function(){return G().link},
className:_.VO("ytChannelExternalLinkViewModelLink",(W.ytChannelExternalLinkViewModelLinkSmallFont=m,W)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"jd");
fAl.idomCompat=!0;_.sh(fAl,"yt-channel-external-link-view-model",{props:{data:_.Dd,useSmallFont:_.Dd}});_.Kz("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var NO=function(){var m=_.d.apply(this,arguments)||this;m.revealButtonClass="button";m.businessEmailDisplayState="HIDE_SECTION";return m};
_.n(NO,_.d);_.w=NO.prototype;_.w.refit=function(){var m=this;_.Dh(function(){_.PH(m.hostElement,"yt-refit-popups-action")});
_.Pv(this,function(){_.PH(m.hostElement,"yt-refit-popups-action")})};
_.w.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.pJ(_.eqP),this.businessEmailDisplayState="CAPTCHA")};
_.w.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"};
_.w.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.w.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"}}}};
_.w.computeEmailHref=function(m){return"mailto:"+m};
_.w.computeSafeUrl=function(m){if(m)return _.MI(m)};
_.w.linkEndpoint=function(m){return _.Q(m.onTap,_.Oh)};
_.w.linkEndpointToHref=function(m){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(m))};
_.w.onYtServiceRequestCompleted=function(m){var G;if((G=m.detail.data)==null?0:G.businessEmail)this.businessEmail=m.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var K;if((K=m.detail.data)==null?0:K.errorMessage)this.businessEmailErrorMessage=m.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.w.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var m=this.JSC$16741_captchaTextarea.value;if(m){m={recaptcha_response_token:m,channel_id:this.metadata.channelId};var G=_.Q(this.metadata.onBusinessEmailRevealClickCommand,_.Oh);G&&this.ytComponentBehavior.resolveCommand(G,{form:m})}}};
_.w.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.e_.Object.defineProperties(NO.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.data)==null?void 0:m.metadata,azF)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.metadata.businessEmailRevealButton,_.J6)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var m=new URL(this.metadata.canonicalChannelUrl);return m.host+m.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 _.Q(this.metadata.learnMoreOnTap,_.Oh)}}});
NO.prototype.onYtServiceRequestCompleted=NO.prototype.onYtServiceRequestCompleted;NO.prototype.businessEmailMetadataChanged=NO.prototype.businessEmailMetadataChanged;NO.prototype.refit=NO.prototype.refit;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],NO.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],NO.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],NO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#g-recaptcha-response"),_.S("design:type",HTMLTextAreaElement)],NO.prototype,"JSC$16741_captchaTextarea",void 0);_.x([_.V(),_.S("design:type",Object)],NO.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],NO.prototype,"revealButtonClass",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],NO.prototype,"metadata",null);
_.x([_.E("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],NO.prototype,"revealButton",null);_.x([_.E("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],NO.prototype,"channelDisplayUrl",null);_.x([_.Mg("metadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NO.prototype,"refit",null);_.x([_.E("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],NO.prototype,"formattedDescription",null);
_.x([_.E("metadata","learnMoreCommand"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],NO.prototype,"shouldRendereVerifiedPhoneStatus",null);_.x([_.E("metadata"),_.S("design:type",Object),_.S("design:paramtypes",[])],NO.prototype,"learnMoreCommand",null);_.x([_.V(),_.S("design:type",String)],NO.prototype,"businessEmailDisplayState",void 0);_.x([_.V(),_.S("design:type",String)],NO.prototype,"businessEmail",void 0);
_.x([_.V(),_.S("design:type",String)],NO.prototype,"businessEmailErrorMessage",void 0);_.x([_.Mg("metadata"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NO.prototype,"businessEmailMetadataChanged",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],NO.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Ye({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],NO);
_.y(NO,"ytd-about-channel-renderer",function(){if(PUi!==void 0)return PUi;var m=document.createElement("template");_.b(m,'\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" aria-label$="[[metadata.learnMoreA11yLabel]]">\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PUi=m},{mode:1});var xLl;var Dy=function(){return _.d.apply(this,arguments)||this};
_.n(Dy,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Dy.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Dy);
_.y(Dy,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(xLl!==void 0)return xLl;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xLl=m},{mode:1});var XsG;var th=function(){return _.d.apply(this,arguments)||this};
_.n(th,_.d);th.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],th.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],th.prototype,"aligment",void 0);_.x([_.Ye({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],th);
_.y(th,"ytd-channel-list-sub-menu-renderer",function(){if(XsG!==void 0)return XsG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return XsG=
m},{mode:1});var Ss2;var FZ=function(){return _.d.apply(this,arguments)||this};
_.n(FZ,_.d);FZ.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],FZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FZ.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],FZ);
_.y(FZ,"ytd-channel-sub-menu-renderer",function(){if(Ss2!==void 0)return Ss2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Ss2=m},{mode:1});var Rqk;var ULk;var Qc=function(){var m=_.d.apply(this,arguments)||this;m.isCompact=!1;return m};
_.n(Qc,_.d);_.e_.Object.defineProperties(Qc.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var m,G;return((G=_.Q((m=this.data)==null?void 0:m.endpoint,_.H$))==null?void 0:G.target)==="TARGET_NEW_WINDOW"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Qc.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Qc.prototype,"isCompact",void 0);_.x([_.E("isCompact"),_.S("design:type",Number),_.S("design:paramtypes",[])],Qc.prototype,"thumbnailWidth",null);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Qc.prototype,"openNewWindow",null);_.x([_.Ye({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Qc);
_.y(Qc,"ytd-media-lockup-renderer",function(){if(ULk!==void 0)return ULk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ULk=m},{mode:1});var zqo;var a4=function(){return _.d.apply(this,arguments)||this};
_.n(a4,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],a4.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a4.prototype,"data",void 0);_.x([_.Ye({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],a4);
_.y(a4,"ytd-structured-description-channel-lockup-renderer",function(){if(zqo!==void 0)return zqo;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return zqo=m},{mode:1});var lAl;var o4=function(){var m=_.d.apply(this,arguments)||this;m.isCompact=!1;m.collectionsStackColor=_.F("modernize_structured_description_playlist_lockups_v2");return m};
_.n(o4,_.d);o4.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:_.F("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.e_.Object.defineProperties(o4.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(K=this.data)==null?void 0:(W=K.thumbnail)==null?void 0:W.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(L=this.data)==null?void 0:(A=L.thumbnail)==null?
void 0:A.vibrantColorPalette:void 0}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],o4.prototype,"componentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],o4.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],o4.prototype,"showSidePanelThumbnailOverlay",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],o4.prototype,"isCompact",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],o4.prototype,"collectionsStackColor",void 0);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],o4.prototype,"twoLineTitle",null);_.x([_.E("data","collectionsStackColor"),_.S("design:type",Object),_.S("design:paramtypes",[])],o4.prototype,"collectionStack",null);
_.x([_.Ye({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],o4);
_.y(o4,"ytd-structured-description-playlist-lockup-renderer",function(){if(lAl!==void 0)return lAl;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lAl=m},{mode:1});var BmX;var nu=function(){return _.d.apply(this,arguments)||this};
_.n(nu,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],nu.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nu.prototype,"data",void 0);_.x([_.Ye({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],nu);
_.y(nu,"ytd-structured-description-video-lockup-renderer",function(){if(BmX!==void 0)return BmX;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return BmX=m},{mode:2});var b3=function(){return _.d.apply(this,arguments)||this};
_.n(b3,_.d);
b3.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],b3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],b3);
_.y(b3,"ytd-compact-infocard-renderer",function(){if(Rqk!==void 0)return Rqk;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Rqk=m},{mode:1});var MH2;var vf=function(){return _.d.apply(this,arguments)||this};
_.n(vf,_.d);vf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.e_.Object.defineProperties(vf.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],vf.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.x([_.V({selector:_.OT}),_.S("design:type",Object)],vf.prototype,"isGridViewEnabled",void 0);
_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],vf.prototype,"watchFeedBigThumbs",null);_.x([_.E("isGridViewEnabled","data"),_.V({reflectToAttribute:!0,value:"168"}),_.S("design:type",String),_.S("design:paramtypes",[])],vf.prototype,"thumbnailWidth",null);_.x([_.E("isGridViewEnabled","data"),_.V({reflectToAttribute:!0,value:"94"}),_.S("design:type",String),_.S("design:paramtypes",[])],vf.prototype,"customThumbnailSize",null);
_.x([_.V(),_.S("design:type",Object)],vf.prototype,"data",void 0);_.x([_.Ye({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],vf);
_.y(vf,"ytd-compact-playlist-renderer",function(){if(MH2!==void 0)return MH2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return MH2=m},{mode:1});var TmK;var $$=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return m};
_.n($$,_.d);_.w=$$.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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"}}}};
_.w.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.w.computeViewStyle=function(m){return m.style?m.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.w.onUpdateElementsPerRowAction=function(m){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&m===1};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
$$.prototype.dataChanged=$$.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],$$.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],$$.prototype,"actionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],$$.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],$$.prototype,"hideThumbnail",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.S("design:type",String)],$$.prototype,"viewStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],$$.prototype,"roundedContainer",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$$.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],$$);
_.y($$,"ytd-compact-promoted-item-renderer",function(){if(TmK!==void 0)return TmK;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return TmK=m},{mode:1});var m9S;var sc=function(){return _.d.apply(this,arguments)||this};
_.n(sc,_.d);sc.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
sc.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
sc.prototype.onYtNavigate=function(m,G){var K=this;if(G.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",G)){var W=this.get("watchEndpoint.videoId",G.endpoint),L=_.PH(this.hostElement,"yt-get-current-video-id-action")[0];_.F("kevlar_mix_handle_first_endpoint_different")&&W&&L&&W!==L||(m.stopPropagation(),_.ET().getPlayerPromise().then(function(A){if(A.getPlayerState()===0&&K.data.secondaryNavigationEndpoint)var O=K.data.secondaryNavigationEndpoint;else{O=
Object.assign({},G.endpoint);var c=_.Q(O.commandMetadata,_.RQ);c&&(A=Math.floor(A.getCurrentTime()),c.url=_.BE(c.url,{t:A}),!_.F("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(c=_.Q(O,_.QQ)))&&(c.startTimeSeconds=A)}_.Zw(K.hostElement,"yt-navigate",{endpoint:O})}))}};
_.e_.Object.defineProperties(sc.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(m=this.data)==null?void 0:(G=m.thumbnail)==null?void 0:G.sampledThumbnailColor,vibrantColorPalette:(K=this.data)==null?void 0:(W=K.thumbnail)==null?void 0:W.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(A=L.thumbnail)==null?void 0:A.darkColorPalette,experimentEnabled:!0}}}});
sc.prototype.onYtNavigate=sc.prototype.onYtNavigate;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],sc.prototype,"ytEndpointBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],sc.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.Dn),_.S("design:type",Object)],sc.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],sc.prototype,"ytdReduxBehavior",void 0);_.x([_.V({selector:_.OT}),_.S("design:type",Object)],sc.prototype,"isGridViewEnabled",void 0);_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],sc.prototype,"watchFeedBigThumbs",null);
_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],sc.prototype,"thumbnailWidth",null);_.x([_.V(),_.S("design:type",Object)],sc.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],sc.prototype,"collectionStack",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],sc.prototype,"onYtNavigate",null);
_.x([_.Ye({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],sc);
_.y(sc,"ytd-compact-radio-renderer",function(){if(m9S!==void 0)return m9S;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return m9S=m},{mode:1});var iyG;var qO=function(){return _.d.apply(this,arguments)||this};
_.n(qO,_.d);qO.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
qO.prototype.computeRendererStyle=function(m){return m.style?m.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.x([_.V(),_.S("design:type",Object)],qO.prototype,"data",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qO.prototype,"rendererBehavior",void 0);_.x([_.V({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.S("design:type",String)],qO.prototype,"rendererStyle",void 0);_.x([_.Ye({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],qO);
_.y(qO,"ytd-compact-text-promo-renderer",function(){if(iyG!==void 0)return iyG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return iyG=m},{mode:1});var GrP;var Ec=function(){var m=_.d.apply(this,arguments)||this;m.isShortsStyle=!1;return m};
_.n(Ec,_.d);_.w=Ec.prototype;_.w.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"}}}};
_.w.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Zw(this.hostElement,"yt-disable-lockup-interaction"):_.Zw(this.hostElement,"yt-enable-lockup-interaction"))};
_.w.isMetaBlockEmpty=function(m){return!m||!m.longBylineText&&!m.shortBylineText&&!m.shortViewCountText&&!m.viewCountText};
_.w.computeHasOneLineTitle=function(m){return this.forceOneLineTitle||!(m==null||!m.buttons)};
_.w.computeDisableInteraction=function(){var m;return!((m=this.data)==null?0:m.navigationEndpoint)};
_.w.hasSingularTopStandaloneBadge=function(){var m;return!((m=this.data)==null||!m.topStandaloneBadge)};
_.e_.Object.defineProperties(Ec.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("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 m;return this.hasSingularTopStandaloneBadge()?[(m=this.data)==null?void 0:m.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var m;return this.shouldShowTopBadges?((m=this.data)==null?void 0:m.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Ec.prototype.disableInteractionChanged=Ec.prototype.disableInteractionChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Ec.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],Ec.prototype,"ytdLockupBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],Ec.prototype,"ytdReduxBehavior",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.S("design:type",Boolean)],Ec.prototype,"metaBlockEmpty",void 0);_.x([_.V({selector:_.OT}),_.S("design:type",Object)],Ec.prototype,"isGridViewEnabled",void 0);_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ec.prototype,"watchFeedBigThumbs",null);
_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],Ec.prototype,"thumbnailWidth",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ec.prototype,"isShortsStyle",void 0);_.x([_.V(),_.S("design:type",Object)],Ec.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.S("design:type",Boolean)],Ec.prototype,"hasOneLineTitle",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Ec.prototype,"hideThumbnail",void 0);_.x([_.V(),_.S("design:type",Boolean)],Ec.prototype,"forceOneLineTitle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.S("design:type",Boolean)],Ec.prototype,"disableInteraction",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ec.prototype,"musicMetadataVideoLockup",void 0);
_.x([_.Sb("disableInteraction"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ec.prototype,"disableInteractionChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ec.prototype,"shouldShowTopBadges",null);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],Ec.prototype,"topBadges",null);
_.x([_.E("shouldShowTopBadges","data"),_.S("design:type",Array),_.S("design:paramtypes",[])],Ec.prototype,"inlineMetadataBadges",null);_.x([_.E("shouldShowTopBadges"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ec.prototype,"shouldShowBadgesBelowMetadata",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ec.prototype,"compactTitleClass",null);_.x([_.Ye({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Ec);
_.y(Ec,"ytd-compact-video-renderer",function(){if(GrP!==void 0)return GrP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return GrP=m},{mode:2});var K6R;_.Kz("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Hf=function(){return _.d.apply(this,arguments)||this};
_.n(Hf,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hf.prototype,"data",void 0);_.x([_.Ye({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Hf);
_.y(Hf,"ytd-counterfactual-renderer",function(){if(K6R!==void 0)return K6R;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return K6R=m},{mode:1});var W6l;var I4=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;return m};
_.n(I4,_.d);I4.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.xS().resolve(_.S1).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
I4.prototype.computeHidden=function(m){return!!m};
_.e_.Object.defineProperties(I4.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}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],I4.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.S("design:type",Object)],I4.prototype,"hidden",void 0);_.x([_.E("data.label"),_.S("design:type",String),_.S("design:paramtypes",[])],I4.prototype,"label",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],I4.prototype,"value",null);
_.x([_.Ye({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],I4);
_.y(I4,"ytd-dropdown-item-renderer",function(){if(W6l!==void 0)return W6l;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return W6l=m},{mode:1});var L6B;var AQi;var ju=function(){return _.d.apply(this,arguments)||this};
_.n(ju,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ju.prototype,"data",void 0);_.x([_.V({computed:"getSimpleString(data.label)"}),_.S("design:type",String)],ju.prototype,"label",void 0);_.x([_.Ye({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ju);
_.y(ju,"ytd-navigation-dropdown-item-renderer",function(){if(AQi!==void 0)return AQi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return AQi=m},{mode:1});var k$=function(){var m=_.d.apply(this,arguments)||this;m.disabled=!1;m.value="";m.noLabelFloat=!1;m.noUnderline=!1;m.usePrimaryColor=!1;m.hasBackground=!1;m.verticalAlign="top";m.autosize=!1;m.minAutosizeWidth=100;m.autosizeFont="14px Roboto";return m};
_.n(k$,_.d);_.w=k$.prototype;_.w.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"}}}};
_.w.open=function(){this.inputEl.open()};
_.w.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.w.dataChanged=function(){this.reset()};
_.w.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("value-changed",this.value))};
_.w.stopPropagation=function(m){m.stopPropagation()};
_.w.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var m=this.canvas.getContext("2d");m&&(m.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(m.measureText(this.inputEl.value).width)+24)+"px")}};
_.w.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var m=0,G=this.data.entries.length;m<G;m++){var K=this.data.entries[m],W;for(W in K)if(K.hasOwnProperty(W)){var L=K[W];if("isSelected"in L&&L.isSelected)return"stringValue"in L?L.stringValue||"":"int32Value"in L?L.int32Value||0:0}}return null};
_.w.updateValueFromBinding=function(m){this.value=m.detail.value};
_.e_.Object.defineProperties(k$.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 m=0,G=this.data.entries.length;m<G;m++){var K=this.data.entries[m],W;for(W in K)if(K.hasOwnProperty(W)){var L=K[W];if("isSelected"in L&&L.isSelected&&"label"in L)return this.ytRendererBehavior.getSimpleString(L.label)}}return null}}});
k$.prototype.autoSizeLabel=k$.prototype.autoSizeLabel;k$.prototype.stopPropagation=k$.prototype.stopPropagation;k$.prototype.valueChangedForBinding=k$.prototype.valueChangedForBinding;k$.prototype.dataChanged=k$.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],k$.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],k$.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],k$.prototype,"disabled",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"value",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"noLabelFloat",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],k$.prototype,"noUnderline",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],k$.prototype,"theme",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],k$.prototype,"usePrimaryColor",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],k$.prototype,"hasBackground",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"verticalAlign",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"autosize",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"minAutosizeWidth",void 0);_.x([_.V(),_.S("design:type",Object)],k$.prototype,"autosizeFont",void 0);
_.x([_.UM("#entries"),_.S("design:type",Object)],k$.prototype,"entries",void 0);_.x([_.UM("#input"),_.S("design:type",Object)],k$.prototype,"inputEl",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k$.prototype,"dataChanged",null);_.x([_.Mg("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k$.prototype,"valueChangedForBinding",null);
_.x([_.XC("iron-overlay-opened"),_.XC("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],k$.prototype,"stopPropagation",null);_.x([_.XC("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k$.prototype,"autoSizeLabel",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],k$.prototype,"label",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],k$);
_.y(k$,"ytd-dropdown-renderer",function(){if(L6B!==void 0)return L6B;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return L6B=m},{mode:1});var w1C;var Cu=function(){var m=_.d.apply(this,arguments)||this;m.isConstrainedList=!1;return m};
_.n(Cu,_.d);Cu.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"}}}};
Cu.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Cu.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Cu.prototype.computeViewAllHidden=function(m,G){return m||!G.viewAllEndpoint};
Cu.prototype.fillRestIfNoShowMore=Cu.prototype.fillRestIfNoShowMore;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],Cu.prototype,"ytLazyListBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Cu.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cu.prototype,"isConstrainedList",void 0);_.x([_.Mg("data","canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cu.prototype,"fillRestIfNoShowMore",null);_.x([_.Ye({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Cu);
_.y(Cu,"ytd-expanded-shelf-contents-renderer",function(){if(w1C!==void 0)return w1C;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return w1C=m},{mode:2});var gX0;var Vc=function(){return _.d.apply(this,arguments)||this};
_.n(Vc,_.d);Vc.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Vc.prototype,"data",void 0);_.x([_.Ye({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Vc);
_.y(Vc,"ytd-feed-channel-filter-header-renderer",function(){if(gX0!==void 0)return gX0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return gX0=m},{mode:1});var Oy2;var cQR;var Y6k;var Zy=function(){return _.d.apply(this,arguments)||this};
_.n(Zy,_.d);_.w=Zy.prototype;_.w.onClick=function(m){var G,K=(G=this.data)==null?void 0:G.sectionEndpoint;!_.b_(_.ve(m),this.hostElement,["A".toString()])&&K&&_.Zw(this.hostElement,"yt-navigate",{endpoint:K})};
_.w.computeHasSectionEndpoint=function(m){return(m==null?void 0:m.sectionEndpoint)!==void 0};
_.w.computeShowHeaderAsLink=function(m){return(m==null?void 0:m.header)!==void 0&&(m==null?void 0:m.sectionEndpoint)!==void 0};
_.w.computeShowSubheaderAsLink=function(m){return(m==null?void 0:m.subheader)!==void 0&&(m==null?void 0:m.sectionEndpoint)!==void 0&&(m==null?void 0:m.header)===void 0};
_.w.getHeaderAsLinkClass=function(m){var G=[],K;(m==null?0:(K=m.headerIcon)==null?0:K.iconType)&&G.push("header-link-active");return G.join(" ")};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Zy.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Zy.prototype,"data",void 0);
_.x([_.V({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Zy.prototype,"hasSectionEndpoint",void 0);_.x([_.V({computed:"computeShowHeaderAsLink(data)"}),_.S("design:type",Boolean)],Zy.prototype,"showHeaderAsLink",void 0);_.x([_.V({computed:"computeShowSubheaderAsLink(data)"}),_.S("design:type",Boolean)],Zy.prototype,"showSubheaderAsLink",void 0);_.x([_.Ye({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Zy);
_.y(Zy,"ytd-medical-panel-section-renderer",function(){if(Y6k!==void 0)return Y6k;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Y6k=m},{mode:1});var d2=function(){var m=_.d.apply(this,arguments)||this;m.isExpanded=!1;m.roundedContainer=!0;m.skipRoundingTop=!1;m.toggleExpandableSection=function(){m.isExpanded=!m.isExpanded};
return m};
_.n(d2,_.d);
d2.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]]"}}}}}};
d2.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
d2.prototype.dataChanged=d2.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],d2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],d2.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],d2.prototype,"isExpanded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],d2.prototype,"roundedContainer",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],d2.prototype,"skipRoundingTop",void 0);_.x([_.V(),_.S("design:type",Object)],d2.prototype,"toggleExpandableSection",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],d2.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],d2);
_.y(d2,"ytd-medical-panel-content-renderer",function(){if(cQR!==void 0)return cQR;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return cQR=m},{mode:1});_.Kz("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Pf=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.extractOverlay=!1;m.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");m.hasTitle=!1;m.linkIcon="OPEN_IN_NEW";m.isDismissed=!1;return m};
_.n(Pf,_.d);Pf.prototype.onOverlayConditionsChange=function(){var m=_.VL(this.hostElement).querySelector("ytd-info-panel-content-renderer");m&&(m.set("extractOverlay",this.extractOverlay),m.set("roundedContainer",this.roundedContainer))};
Pf.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Pf.prototype.computeHasTitle=function(m){return!(m==null||!m.title)};
Pf.prototype.onClick=function(m){var G,K=(G=this.data)==null?void 0:G.headerEndpoint;!_.b_(_.ve(m),this.hostElement,["BUTTON".toString()])&&K&&this.ytComponentBehavior.resolveCommand(K)};
_.e_.Object.defineProperties(Pf.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 m;return((m=this.data)==null?void 0:m.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.disableBottomDivider)||!((G=this.data)==null?0:G.title)}}});
Pf.prototype.onOverlayConditionsChange=Pf.prototype.onOverlayConditionsChange;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Pf.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Pf.prototype,"ytdReduxBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Pf.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Pf.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Pf.prototype,"extractOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Pf.prototype,"amsterdamEnabled",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.S("design:type",Object)],Pf.prototype,"hasTitle",void 0);
_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.E("data.background"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pf.prototype,"background",null);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.E("data.titleStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pf.prototype,"titleStyle",null);
_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.E("data.titleStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pf.prototype,"showLinkIcon",null);_.x([_.V(),_.S("design:type",String)],Pf.prototype,"linkIcon",void 0);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pf.prototype,"hideDivider",null);
_.x([_.V({selectorArgs:["data.dismissStateEntityKey"],selector:function(m,G){m=_.yx(m.entities,"dismissState",G);return(m==null?void 0:m.isDismissed)||(m==null?void 0:m.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(m==null?void 0:m.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.S("design:type",Object)],Pf.prototype,"isDismissed",void 0);_.x([_.Sb("roundedContainer","extractOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Pf.prototype,"onOverlayConditionsChange",null);_.x([_.Ye({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Pf);
_.y(Pf,"ytd-info-panel-container-renderer",function(){if(Oy2!==void 0)return Oy2;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Oy2=m},{mode:1});var rQ0;_.Kz("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var yc=function(){return _.d.apply(this,arguments)||this};
_.n(yc,_.d);yc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yc.prototype.computeStyle=function(m){return m?m:""};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.S("design:type",String)],yc.prototype,"titleStyle",void 0);
_.x([_.Ye({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],yc);
_.Vz()(yc,"ytd-item-section-header-renderer",function(){if(rQ0===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);rQ0=m}m=rQ0;return m},{allowedProps:["data"],
mode:1});var u44;var hXo,p1G=function(){return hXo!==void 0?hXo:hXo=document.createElement("template")};
document.head.appendChild(p1G().content);var JQP;_.eu=new _.sX("VOTING_ANIMATION_CONTROLLER_TOKEN");var D9o=_.P(function(m){var G=m.data;var K=_.Q3("div"),W=_.Q3("div");m=_.g(_.g_("VOTE_STATUS_NONE",void 0,"YPH5mf"));var L=m.next().value,A=m.next().value,O=_.S5(oMP,function(){var D;return(D=G())==null?void 0:D.entityKey}),c=_.F("web_enable_voting_animation")||_.F("enable_music_web_cairo_voting_animation");
_.bX(function(){var D;((D=G().initialState)==null?0:D.status)&&A(G().initialState.status)});
var u=function(){var D,t,a=(t=(D=G().initialState)==null?void 0:D.votes)!=null?t:0,v;D=(v=G().initialState)==null?void 0:v.status;return D==="VOTE_STATUS_UPVOTED"?a-1:D==="VOTE_STATUS_DOWNVOTED"?a+1:a},h=function(){return L()==="VOTE_STATUS_UPVOTED"?u()+1:L()==="VOTE_STATUS_DOWNVOTED"?u()-1:u()},J=function(D){var t=D?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
A(t);var a=h(),v=_.xS().resolve(_.fn(_.eu)),I=O();I&&(D&&(I==null?0:I.upvoteDefaultButtonOnTap)?_.h$(I.upvoteDefaultButtonOnTap,{form:{element:K.value},disableClickTracking:!0}):(I==null?0:I.upvoteToggledButtonOnTap)&&_.h$(I.upvoteToggledButtonOnTap,{form:{element:K.value},disableClickTracking:!0}));var Z;D=(Z=I==null?void 0:I.enableOptimisticReordering)!=null?Z:G().enableOptimisticReordering;c&&v&&G().itemId&&D&&Njl(v,G().itemId,a,t)},N=function(D){var t=D?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
A(t);var a=h(),v=_.xS().resolve(_.fn(_.eu)),I=O();I&&(D&&(I==null?0:I.downvoteDefaultButtonOnTap)?_.h$(I.downvoteDefaultButtonOnTap,{form:{element:W.value},disableClickTracking:!0}):(I==null?0:I.downvoteToggledButtonOnTap)&&_.h$(I.downvoteToggledButtonOnTap,{form:{element:W.value},disableClickTracking:!0}));var Z;D=(Z=I==null?void 0:I.enableOptimisticReordering)!=null?Z:G().enableOptimisticReordering;c&&v&&G().itemId&&D&&Njl(v,G().itemId,a,t)};
m={};m=_.VO("ytVotingViewModelVoteCount",(m.ytVotingViewModelVoteCountDisabled=function(){return G().isDisabled},m));
return _.r("voting-view-model",{class:"ytVotingViewModelHost"},_.r("div",{el:K},_.r(_.z$,{data:function(){var D=_.Q(G().upvoteButton,_.Dj);return{toggleButtonViewModel:Object.assign({},D,{isToggled:L()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(D){return _.r(_.Gx,{data:D.data,
onToggle:J})}})),_.r("div",{class:m},function(){var D,t,a;
return L()==="VOTE_STATUS_UPVOTED"?(D=G().initialState)==null?void 0:D.compactVotesUpvoted:L()==="VOTE_STATUS_DOWNVOTED"?(t=G().initialState)==null?void 0:t.compactVotesDownvoted:(a=G().initialState)==null?void 0:a.compactVotes}),_.r("div",{el:W},_.r(_.z$,{data:function(){var D=_.Q(G().downvoteButton,_.Dj);
return{toggleButtonViewModel:Object.assign({},D,{isToggled:L()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(D){return _.r(_.Gx,{data:D.data,
onToggle:N})}})))},"kd");_.sh(_.P(function(m){var G=m.data;return _.r("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.r("div",{class:_.VO("ytEngagementBarViewModelEngagementBarWrapper",m.className)},_.r(_.z$,{data:function(){return G().actions}},{votingViewModel:D9o})))},"ld"),"engagement-bar-view-model",{props:{data:_.Dd,
className:_.Dd}});var fu=function(){var m=_.d.apply(this,arguments)||this;m.playlistVotingAnimationEnabled=_.F("web_enable_voting_animation");m.downloadProgress=0;m.transferState="TRANSFER_STATE_UNKNOWN";m.downloadState="DOWNLOAD_STATE_UNKNOWN";m.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";m.offlineVideoPolicyExpirationTimestamp=0;return m};
_.n(fu,_.d);_.w=fu.prototype;_.w.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"}}}};
_.w.canReorderChanged=function(){this.persistentDragHandle=_.F("kevlar_playlist_drag_handles")&&this.canReorder};
_.w.onDrag=function(){if(this.thumbnail){var m=_.VL(this.thumbnail).querySelector("yt-image");m&&(m.shouldRenderLazy=!1)}};
_.w.onMenuOverlayChanged=function(m,G){this.menuOpened=G};
_.w.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.w.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.w.onContentsTap=function(m){var G,K=(G=this.data)==null?void 0:G.serviceEndpoints;if(K&&K.length===1&&_.Q(K[0],$5d)&&!_.b_(_.ve(m),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(K[0]);else{var W;(G=(W=this.data)==null?void 0:W.navigationEndpoint)&&_.F("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?tTo(_.xS().resolve(_.pY),G):(_.U7().playlistSuggestionsShelfActivation=
!0,_.F6R(_.xS().resolve(_.pY),G)):G&&!_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.F("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Zw(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G))}};
_.w.computeStyle=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeThumbnailWidth=function(m){return m==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.w.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=Rpo(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))}};
_.w.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.w.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.w.dataChanged=function(){if(this.data){var m,G,K,W=((m=this.downloadRenderData)==null?void 0:m.badges)&&((G=this.downloadRenderData)==null?void 0:G.badges)!==((K=this.data)==null?void 0:K.badges),L,A,O;m=((L=this.downloadRenderData)==null?void 0:L.thumbnailOverlays)&&((A=this.downloadRenderData)==null?void 0:A.thumbnailOverlays)!==((O=this.data)==null?void 0:O.thumbnailOverlays);(!this.downloadRenderData||W||m)&&this.downloadStateChanged()}};
_.w.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var m,G,K=(m=this.data.menu)==null?void 0:(G=m.menuRenderer)==null?void 0:G.items;if(K)for(m=_.g(K),G=m.next();!G.done;G=m.next())if(G=G.value,K=void 0,_.Q((K=G.menuServiceItemRenderer)==null?void 0:K.serviceEndpoint,_.cB)){var W=K=void 0,L=void 0;G=(K=G)==null?void 0:(W=K.menuServiceItemRenderer)==null?void 0:(L=W.serviceEndpoint)==null?void 0:L.playlistEditEndpoint;L=W=void 0;if(K=(W=G)==null?void 0:(L=W.actions)==null?void 0:
L[0])W=void 0,K.setVideoId=(W=this.data)==null?void 0:W.setVideoId;L=W=K=void 0;if(G=(K=G)==null?void 0:(W=K.clientActions)==null?void 0:(L=W[0])==null?void 0:L.playlistRemoveVideosAction)K=void 0,G.setVideoIds=[(K=this.data)==null?void 0:K.setVideoId]}}};
_.e_.Object.defineProperties(fu.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
fu.prototype.setVideoIdChanged=fu.prototype.setVideoIdChanged;fu.prototype.dataChanged=fu.prototype.dataChanged;fu.prototype.downloadStateChanged=fu.prototype.downloadStateChanged;fu.prototype.onMenuOverlayChanged=fu.prototype.onMenuOverlayChanged;fu.prototype.canReorderChanged=fu.prototype.canReorderChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],fu.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],fu.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fu.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"canReorder",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"menuOpened",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"handleIsHovered",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"persistentDragHandle",void 0);_.x([_.V(),_.S("design:type",Object)],fu.prototype,"downloadRenderData",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],fu.prototype,"styleType",void 0);_.x([_.V({computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],fu.prototype,"thumbnailWidth",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"isDownloads",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fu.prototype,"playlistVotingAnimationEnabled",void 0);
_.x([_.V({selector:pG,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"downloadProgress",void 0);_.x([_.V(),_.S("design:type",Number)],fu.prototype,"relativeDateReference",void 0);_.x([_.V({selector:_.uw,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"transferState",void 0);_.x([_.V({selector:uBV,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"downloadState",void 0);
_.x([_.V({selector:njF,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"offlinePolicyAction",void 0);_.x([_.V({selector:b9G,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.x([_.V({selector:$SM,selectorArgs:["data.videoId"]}),_.S("design:type",Object)],fu.prototype,"entityInfo",void 0);_.x([_.V({selector:_.cU}),_.S("design:type",Boolean)],fu.prototype,"miniplayerIsActive",void 0);
_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],fu.prototype,"playlistVideoId",null);_.x([_.UM("#thumbnail"),_.S("design:type",Object)],fu.prototype,"thumbnail",void 0);_.x([_.Mg("canReorder"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fu.prototype,"canReorderChanged",null);
_.x([_.XC("yt-menu-overlay-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Boolean]),_.S("design:returntype")],fu.prototype,"onMenuOverlayChanged",null);_.x([_.Mg("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fu.prototype,"downloadStateChanged",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fu.prototype,"dataChanged",null);_.x([_.Mg("data.setVideoId"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fu.prototype,"setVideoIdChanged",null);_.x([_.Ye({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],fu);
_.y(fu,"ytd-playlist-video-renderer",function(){if(JQP!==void 0)return JQP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);m.content.insertBefore(p1G().content.cloneNode(!0),m.content.firstChild);return JQP=m},{mode:1});var QNF;var x$=function(){return _.d.apply(this,arguments)||this};
_.n(x$,_.d);_.x([_.V(),_.S("design:type",Object)],x$.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],x$.prototype,"rendererBehavior",void 0);_.x([_.Ye({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],x$);
_.y(x$,"ytd-premium-browse-footer-renderer",function(){if(QNF!==void 0)return QNF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QNF=m},{mode:1});var aVB;var XZ=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return m};
_.n(XZ,_.d);_.w=XZ.prototype;_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.handleDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.computeHeaderLogoThumbnail=function(m,G){if(m)return G?m.darkLogo:m.lightLogo};
_.w.computeHeaderLogoHeight=function(m,G){var K,W,L;return(m=(K=this.computeHeaderLogoThumbnail(m,G))==null?void 0:(W=K.thumbnails)==null?void 0:(L=W[0])==null?void 0:L.height)&&m%31===0?"31":"24"};
_.w.computeHeaderLogoMarginBottom=function(m,G){return this.computeHeaderLogoHeight(m,G)==="24"?"0":"-7"};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],XZ.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XZ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],XZ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],XZ.prototype,"isDarkTheme",void 0);_.x([_.V({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.S("design:type",Object)],XZ.prototype,"themeLogo",void 0);
_.x([_.V({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.S("design:type",String)],XZ.prototype,"logoHeight",void 0);_.x([_.V({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.S("design:type",String)],XZ.prototype,"logoMarginBottom",void 0);_.x([_.Ye({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],XZ);
_.y(XZ,"ytd-primetime-promo-header-renderer",function(){if(aVB!==void 0)return aVB;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return aVB=m},{mode:1});var oXR;_.Su=_.P(function(m){var G=m.className;var K=m.data;var W=m.isOverlay;var L=m.maxLinesOverride;var A=m.useMediumText;var O=function(){return K().alwaysShowTruncationText},c=function(){return K().truncationText},u=function(){return A!==void 0&&A()?"medium":"small"},h=function(){return W!==void 0&&W()?"overlay":"default"},J=function(){var a,v;
return(v=(a=_.Q(K().rendererContext,_.MB))==null?void 0:a.label)!=null?v:""};
m=_.g(_.g_(!1,void 0,"llBUm"));var N=m.next().value,D=m.next().value;m=_.dn(function(){K().expandOnTap&&D(!N());return!1});
var t={};return _.r("yt-description-preview-view-model",{el:_.aC(_.On(function(){return K().rendererContext})),
class:_.VO("ytDescriptionPreviewViewModelHost",G,(t.ytDescriptionPreviewViewModelClickable=function(){var a;return!((a=_.Q(K().rendererContext,_.cR))==null||!a.onTap)},t.ytDescriptionPreviewViewModelIsOverlay=W,t)),
"on:click":m},_.r(_.p,{cond:function(){return K().description},
then:function(a){return _.r(_.p,{cond:N,then:function(){var v={};return _.r("div",{class:_.VO("ytDescriptionPreviewViewModelDescription",(v.ytDescriptionPreviewViewModelDescriptionMediumText=A,v))},_.r(_.Nm,{text:a}))},
else:function(){return _.r(nwK,{text:a,alwaysShowTruncationText:O,truncationText:c,maxLines:function(){var v;return(v=L==null?void 0:L())!=null?v:K().maxLines},
textStyle:h,accessibilityLabel:J,textSize:u})}})}}))},"md");
_.Su.idomCompat=!0;var by2=_.P(function(m){var G=_.dn(function(L){var A;(A=m.onClick)==null||A.call(m,L)}),K={},W={};
return _.r("yt-shelf-header-layout",{class:_.VO("yt-shelf-header-layout",(K["yt-shelf-header-layout--disable-horizontal-padding"]=m.disableHorizontalPadding,K["yt-shelf-header-layout--disable-vertical-padding"]=m.disableVerticalPadding,K["yt-shelf-header-layout--responsive"]=m.useResponsiveLayout,K["yt-shelf-header-layout--narrow"]=function(){var L,A;return((L=m.useResponsiveLayout)==null?void 0:L.call(m))&&((A=m.forceSmallLayout)==null?void 0:A.call(m))},K["yt-shelf-header-layout--is-overlay"]=m.isOverlay,
K["yt-shelf-header-layout--tappable"]=m.isInteractive,K["yt-shelf-header-layout--optional-medium-layout-padding"]=m.useUpdatedPadding,K)),
"on:click":G,tabindex:function(){var L;return((L=m.isInteractive)==null?0:L.call(m))?0:void 0}},_.r("div",{class:"yt-shelf-header-layout__header-row"},_.r(_.p,{cond:m.leadingIcon,
then:function(L){return _.r("div",{class:"yt-shelf-header-layout__leading-icon"},_.r(_.fN,{icon:L}))},
else:function(){return _.r(_.p,{cond:m.hasLeadingImage,then:function(){var L,A={};return _.r("div",{class:_.VO("yt-shelf-header-layout__leading-image",(A["yt-shelf-header-layout__leading-image--circular-image"]=m.circularImage,A))},(L=m.leadingImage)==null?void 0:L.call(m))}})}}),_.r("div",{class:"yt-shelf-header-layout__label-container"},_.r(_.p,{cond:m.hasSuperlabel,
then:function(){var L;return _.r("div",{class:"yt-shelf-header-layout__superlabel"},(L=m.superlabel)==null?void 0:L.call(m))}}),_.r("div",{class:"yt-shelf-header-layout__title-row"},_.r(nXF,{text:m.title,
className:_.VO("yt-shelf-header-layout__title",(W["yt-shelf-header-layout__title--small-title"]=m.forceSmallLayout,W)),tagLevel:m.tagLevel}),_.r(_.p,{cond:m.hasDetail,then:function(){var L;return _.r("div",{class:"yt-shelf-header-layout__detail"},(L=m.detail)==null?void 0:L.call(m))}})),_.r(_.p,{cond:m.hasSublabel,
then:function(){var L;return _.r("div",{class:"yt-shelf-header-layout__sublabel"},(L=m.sublabel)==null?void 0:L.call(m))}})),_.r(_.p,{cond:m.hasTrailingActions,
then:function(){var L;return _.r("div",{class:"yt-shelf-header-layout__trailing-actions"},(L=m.trailingActions)==null?void 0:L.call(m))}})),_.r(_.p,{cond:m.hasBottomAccessory,
then:function(){var L;return _.r("div",{class:"yt-shelf-header-layout__bottom-accessory"},(L=m.bottomAccessory)==null?void 0:L.call(m))}}))},"nd");
by2.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var nXF=_.P(function(m){var G=m.text;var K=m.className;var W=m.tagLevel;return _.r(_.tw,null,_.r(_.Jw,{when:function(){return(W==null?void 0:W())===0}},function(){return _.r("h2",{class:K},G())}),_.r(_.Jw,{when:function(){return(W==null?void 0:W())===1}},function(){return _.r("h3",{class:K},G())}),_.r(_.Jw,{when:function(){return(W==null?void 0:W())===2}},function(){return _.r("h4",{class:K},G())}),_.r(_.NC,null,function(){return _.r("h2",{class:K},G())}))},"od");var sN2,vXX,$9X;_.R4=_.P(function(m){var G=m.className;var K=m.data;var W=m.disableHorizontalPadding;var L=m.disableVerticalPadding;var A=m.forceSmallLayout;var O=m.useResponsiveLayout;var c=m.isOverlay;m=m.useUpdatedPadding;return _.r("yt-section-header-view-model",{class:_.VO("ytSectionHeaderViewModelHost",G),style:_.eA({"background-color":function(){return RT(K().backgroundColor)?_.ce(RT(K().backgroundColor)):void 0}})},_.r(by2,{hasDetail:!1,
title:function(){return _.r(_.Nm,{text:function(){return K().headline}})},
hasTitle:!0,sublabel:function(){return _.r(vXX,{data:K})},
hasSublabel:function(){return!!K().sublabel||!!K().bottomBadge},
superlabel:function(){return _.r($9X,{data:K})},
hasSuperlabel:function(){return!!K().superlabel||!!K().topBadge},
leadingImage:function(){return _.r(sN2,{leadingAccessory:function(){return K().leadingAccessory}})},
hasLeadingImage:function(){return!!K().leadingAccessory},
trailingActions:function(){return _.r(_.z$,{data:function(){return K().trailingActions}},{flexibleActionsViewModel:_.Y8})},
hasTrailingActions:function(){return!!K().trailingActions},
disableHorizontalPadding:function(){return(W==null?void 0:W())||K().disableHorizontalPadding},
disableVerticalPadding:L,forceSmallLayout:A,useResponsiveLayout:O,isOverlay:c,isInteractive:function(){return!!_.wH(K().rendererContext)},
onClick:function(u){if(_.gH(K().rendererContext)){var h=_.wH(K().rendererContext);h&&_.YE(h,{form:{element:u.target,event:u}})}},
bottomAccessory:function(){return _.r(_.z$,{data:function(){return K().bottomAccessory}},{descriptionPreviewViewModel:function(u){return _.r(_.Su,{data:u.data,
useMediumText:!0})},
commonMarkViewModel:function(u){u=u.data;var h;return _.r(_.zL,null,(h=_.xS().resolve(_.fn(y24)))==null?void 0:h({data:u}))}})},
hasBottomAccessory:function(){return!!K().bottomAccessory},
useUpdatedPadding:m}))},"pd");
sN2=_.P(function(m){var G=m.leadingAccessory;return _.r(_.zL,null,_.r(_.p,{cond:function(){var K;return(K=G().image)!=null?K:_.NB(G().themedImage)},
then:function(K){return _.r(_.oC,{data:K,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.r(_.p,{cond:function(){return _.Q(G().avatar,_.YA)},
then:function(K){return _.r(_.O9,{data:K})}}))},"qd");
vXX=_.P(function(m){var G=m.data;return _.r(_.zL,null,_.r(_.p,{cond:function(){return _.Q(G().bottomBadge,$SF)},
then:function(K){var W={};return _.r(_.vr,{data:K,class:_.VO((W.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!K()&&!!G().sublabel},W))})}}),_.r(_.p,{cond:function(){return G().sublabel},
then:function(K){return _.r(_.Nm,{text:K})}}))},"rd");
$9X=_.P(function(m){var G=m.data;return _.r(_.zL,null,_.r(_.p,{cond:function(){return _.Q(G().topBadge,$SF)},
then:function(K){var W={};return _.r(_.vr,{data:K,class:_.VO((W.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!K()&&!!G().superlabel},W))})}}),_.r(_.p,{cond:function(){return G().superlabel},
then:function(K){return _.r(_.Nm,{text:K})}}))},"sd");_.sh(_.R4,"yt-section-header-view-model",{props:{data:_.Dd,className:_.Dd,disableHorizontalPadding:_.Dd,disableVerticalPadding:_.Dd,forceSmallLayout:_.Dd,useResponsiveLayout:_.Dd,isOverlay:_.Dd,useUpdatedPadding:_.Dd}});_.Kz("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Uc=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return m};
_.n(Uc,_.d);_.w=Uc.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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"}}}};
_.w.onDataChange=function(){var m=this;_.Pv(this,function(){m.updateItemVisibility()})};
_.w.onUpdateElementsPerRowAction=function(m){m&&this.elementsPerRow!==m&&(this.elementsPerRow=m,this.updateItemVisibility())};
_.w.updateItemVisibility=function(){var m=this;this.data&&this.data.panels&&_.VL(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(G,K){G.hidden=K>m.elementsPerRow-1})};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
Uc.prototype.onDataChange=Uc.prototype.onDataChange;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Uc.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Uc.prototype,"actionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Uc.prototype,"data",void 0);_.x([_.V({value:3}),_.S("design:type",Number)],Uc.prototype,"elementsPerRow",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uc.prototype,"onDataChange",null);_.x([_.Ye({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Uc);
_.y(Uc,"ytd-primetime-promo-renderer",function(){if(oXR!==void 0)return oXR;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oXR=m},{mode:1});var q6S;var zm=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return m};
_.n(zm,_.d);zm.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
zm.prototype.handleButtonRefreshAction=function(m){if(m=_.Q(m,ysS))this.set("data.button",m.membershipButton),this.notifyPath("data.button")};
_.e_.Object.defineProperties(zm.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.avatars)==null?void 0:G.slice(0,8))||[]}}});
_.x([_.V(),_.S("design:type",Object)],zm.prototype,"data",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],zm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zm.prototype,"rendererBehavior",void 0);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],zm.prototype,"avatars",null);
_.x([_.Ye({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],zm);
_.y(zm,"ytd-recognition-shelf-renderer",function(){if(q6S!==void 0)return q6S;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return q6S=m},{mode:1});var EXR;var Hy0;var l3=function(){var m=_.d.apply(this,arguments)||this;m.modernButtons=_.F("web_modern_buttons");return m};
_.n(l3,_.d);_.w=l3.prototype;
_.w.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]]"}}}}}};
_.w.dataChanged=function(){this.collapsed=!0};
_.w.computeVisibleItems=function(m,G){return m!==void 0&&m.items?G?m.items.slice(0,this.data.collapsedItemCount):m.items:[]};
_.w.computeHideShowMore=function(m,G,K){return m>=G||!K};
_.w.computeHideShowAll=function(m,G,K){return!(m&&G)||K};
_.w.onMoreClick=function(){this.collapsed=!1};
_.e_.Object.defineProperties(l3.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.F("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.zf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.F("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
l3.prototype.dataChanged=l3.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],l3.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],l3.prototype,"isSearch",void 0);
_.x([_.V({computed:"computeVisibleItems(data,collapsed)"}),_.S("design:type",Array)],l3.prototype,"visibleItems",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],l3.prototype,"collapsed",void 0);_.x([_.V({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.S("design:type",Boolean)],l3.prototype,"hideShowMore",void 0);
_.x([_.V({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.S("design:type",Boolean)],l3.prototype,"hideShowAll",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],l3.prototype,"modernButtons",void 0);_.x([_.E("isSearch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],l3.prototype,"typographyBump",null);
_.x([_.E("isSearch"),_.S("design:type",Object),_.S("design:paramtypes",[])],l3.prototype,"lockupExperiments",null);_.x([_.E("isSearch"),_.S("design:type",String),_.S("design:paramtypes",[])],l3.prototype,"thumbnailWidth",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l3.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],l3);
_.y(l3,"ytd-vertical-list-renderer",function(){if(Hy0!==void 0)return Hy0;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Hy0=m},{mode:1});var IVo=_.nY(["#"]);_.Kz("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Bf=function(){var m=_.d.apply(this,arguments)||this;m.isConstrainedList=!1;return m};
_.n(Bf,_.d);_.w=Bf.prototype;
_.w.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"}}}};
_.w.computeThumbnailStyle=function(m){return m||""};
_.w.computePlaceAnnotationUnderTitle=function(){var m;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((m=this.data)==null?void 0:m.thumbnailStyle)||"")};
_.w.computeHrefWithDefault=function(m){return this.ytComponentBehavior.computeHref_(m)||_.ord(IVo)};
_.w.computeIsPromoShelf=function(m){var G;return(m=m==null?void 0:(G=m[0])==null?void 0:G.metadataBadgeRenderer)?m.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.w.computePlaceBadgeBesideTitle=function(m){var G;return(m==null?0:(G=m[0])==null?0:G.metadataBadgeRenderer)?!this.computeIsPromoShelf(m):!1};
_.w.computeMenuIcon=function(m){return this.computeIsPromoShelf(m)?"yt-icons:more_vert":"yt-icons:more"};
_.w.onDataChange=function(){var m,G;((m=this.data)==null?0:(G=m.content)==null?0:G.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.w.onLockupRequested=function(m){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&m.detail&&m.detail.videoIds){for(var G=this.data.content.gridRenderer.items,K=new Set,W=_.g(m.detail.videoIds),L=W.next();!L.done;L=W.next())K.add(L.value);m.detail.returnValue=G.filter(function(A){return A.gridVideoRenderer&&A.gridVideoRenderer.videoId&&K.has(A.gridVideoRenderer.videoId)}).map(function(A){return A.gridVideoRenderer})}};
_.w.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Bf.prototype.onLockupRequested=Bf.prototype.onLockupRequested;Bf.prototype.onDataChange=Bf.prototype.onDataChange;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],Bf.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Bf.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],Bf.prototype,"ironResizableBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bf.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Bf.prototype,"isSearch",void 0);_.x([_.V(),_.S("design:type",Object)],Bf.prototype,"isConstrainedList",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("kevlar_fluid_dismiss")}}),
_.S("design:type",Boolean)],Bf.prototype,"enableFluidDismiss",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.S("design:type",String)],Bf.prototype,"thumbnailStyle",void 0);_.x([_.V({computed:"computeMenuIcon(data.badges)"}),_.S("design:type",String)],Bf.prototype,"menuIcon",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.S("design:type",Boolean)],Bf.prototype,"featuredPromo",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bf.prototype,"onDataChange",null);_.x([_.XC("yt-lockup-requested"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Bf.prototype,"onLockupRequested",null);_.x([_.Ye({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Bf);
_.y(Bf,"ytd-shelf-renderer",function(){if(EXR!==void 0)return EXR;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n            <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n            </ytd-badge-supported-renderer>\n          </div>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return EXR=m},{mode:1});var jNX;var MO=function(){return _.d.apply(this,arguments)||this};
_.n(MO,_.d);MO.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.e_.Object.defineProperties(MO.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MO.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],MO.prototype,"isPlaylist",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],MO.prototype,"isClipList",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],MO.prototype,"isPlaylistPageWithFilters",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],MO.prototype,"hasTitle",null);_.x([_.V(),_.E("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.S("design:type",Object),_.S("design:paramtypes",[])],MO.prototype,"isRightAligned",null);
_.x([_.Ye({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],MO);
_.y(MO,"ytd-sort-filter-header-renderer",function(){if(jNX!==void 0)return jNX;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jNX=m},{mode:1});var kr2;var Tm=function(){var m=_.d.apply(this,arguments)||this;m.enableRightArrowHidden=_.F("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return m};
_.n(Tm,_.d);Tm.prototype.attached=function(){var m=this;this.enableRightArrowHidden&&(this.JSC$16870_throttledOnResize=new _.yO(function(){var G;(G=m.ytdHorizontalListBehavior)==null||G.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var G;
(G=m.JSC$16870_throttledOnResize)==null||G.fire()}),this.resizeObserver.observe(this.hostElement))};
Tm.prototype.detached=function(){if(this.enableRightArrowHidden){var m;(m=this.resizeObserver)==null||m.disconnect();var G;(G=this.JSC$16870_throttledOnResize)==null||G.dispose()}};
Tm.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]]"}}}}}};
Tm.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.e_.Object.defineProperties(Tm.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.F("enable_creator_details_shelf_m2")){var m=[],G;((G=this.data)==null?0:G.creatorVideosButton)&&m.push(this.data.creatorVideosButton);var K;((K=this.data)==null?0:K.creatorAboutButton)&&m.push(this.data.creatorAboutButton);G=_.g(this.data.creatorCustomUrlButtons||[]);for(K=G.next();!K.done;K=G.next())m.push(K.value);return m}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.F("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Tm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],Tm.prototype,"ytdHorizontalListBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Tm.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Tm.prototype,"engagementPanel",void 0);
_.x([_.V(),_.S("design:type",Object)],Tm.prototype,"enableRightArrowHidden",void 0);_.x([_.E("enableRightArrowHidden","atEnd"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tm.prototype,"hideRightArrow",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Tm.prototype,"creatorCustomUrlButtons",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data","creatorCustomUrlButtons"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Tm.prototype,"showCreatorCustomUrlButtons",null);_.x([_.E("showCreatorCustomUrlButtons"),_.S("design:type",Number),_.S("design:paramtypes",[])],Tm.prototype,"channelAvatarSize",null);_.x([_.Ye({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],Tm);
_.y(Tm,"ytd-video-description-infocards-section-renderer",function(){if(kr2!==void 0)return kr2;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return kr2=m},{mode:2});var CfP;var mS=function(){return _.d.apply(this,arguments)||this};
_.n(mS,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mS.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.infoIcon)"}),_.S("design:type",Object)],mS.prototype,"infoIcon",void 0);_.x([_.Ye({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],mS);
_.y(mS,"ytd-eom-settings-disclaimer-renderer",function(){if(CfP!==void 0)return CfP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return CfP=m},{mode:1});var VTF;var io=function(){return _.d.apply(this,arguments)||this};
_.n(io,_.d);_.e_.Object.defineProperties(io.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.suppressPaddingDisclaimer)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],io.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],io.prototype,"componentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],io.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],io.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],io.prototype,"suppressPaddingDisclaimer",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],io);
_.y(io,"ytd-product-list-header-renderer",function(){if(VTF!==void 0)return VTF;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return VTF=m},{mode:1});var ZyC;var Go=function(){return _.d.apply(this,arguments)||this};
_.n(Go,_.d);Go.prototype.computeThumbnailStyle=function(m){if(m&&(m=_.OM(m)))return"background-color:"+m+";"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Go.prototype,"rendererBehaviors",void 0);_.x([_.V(),_.S("design:type",Object)],Go.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Go);
_.y(Go,"ytd-hashtag-tile-renderer",function(){if(ZyC!==void 0)return ZyC;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZyC=m},{mode:1});var d9l;var KM=function(){return _.d.apply(this,arguments)||this};
_.n(KM,_.d);KM.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],KM.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],KM);
_.y(KM,"ytd-sponsorships-alert-renderer",function(){if(d9l!==void 0)return d9l;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return d9l=m},{mode:1});var Pfk;var W9=function(){return _.d.apply(this,arguments)||this};
_.n(W9,_.d);W9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.e_.Object.defineProperties(W9.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.F("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.x([_.q(_.Yj),_.S("design:type",Object)],W9.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],W9.prototype,"ytdLockupBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);_.x([_.V({selector:_.OT}),_.S("design:type",Object)],W9.prototype,"isGridViewEnabled",void 0);
_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],W9.prototype,"watchFeedBigThumbs",null);_.x([_.E("isGridViewEnabled"),_.V({reflectToAttribute:!0}),_.S("design:type",String),_.S("design:paramtypes",[])],W9.prototype,"thumbnailWidth",null);_.x([_.V(),_.S("design:type",Object)],W9.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],W9);
_.y(W9,"ytd-compact-movie-renderer",function(){if(Pfk!==void 0)return Pfk;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Pfk=m},{mode:1});var yQP;var eX2;var fVB=_.E8("HTML_DIR")==="rtl",LM=function(){var m=_.d.apply(this,arguments)||this;m.engagementPanel=!1;m.maxLines=2;m.expandButtonOffset=0;m.showExpandButton=!1;m.isTruncated=!1;m.isExpanded=!1;m.currentSnippetType=2;m.alwaysShowExpandButton=!1;m.JSC$16887_lastWidth=NaN;m.observer=null;m.left=0;m.right=0;m.mid=0;m.longestSnippetLength=0;m.isFinalSnippet=!1;m.isFirstMutation=!1;m.isResetMutation=!1;m.OVERFLOW_THRESHOLD=5;return m};
_.n(LM,_.d);_.w=LM.prototype;_.w.onClick=function(m){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;if((G=window.getSelection())==null||!G.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.w.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.w.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.w.updateTextOnSnippetTypeChange=function(){_.F("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.w.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.w.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.nc(new _.cw("AttributedSnippet is empty when the description is not empty",this.text))};
_.w.mutationCallback=function(){if(this.observer!=null){var m=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var G=Math.floor(m*this.maxLines/8);this.setSnippetText(this.text,G);G!==0||this.attributedTextIsEmpty()||_.nc(new _.cw("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;m=m*this.maxLines/8;this.left=0;var K;this.right=Math.min(m*2,(K=(G=this.simpleText)==null?void 0:G.length)!=null?K: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)}}};
_.w.mutationObserve=function(m){var G=this;this.observer||(this.observer=new MutationObserver(function(){G.mutationCallback()}));
this.observer.observe(m,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.w.attached=function(){var m=this;_.Pv(this,function(){m.resize()})};
_.w.isExpandedChanged=function(){_.Zw(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.w.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)};
_.w.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var m="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((fVB?"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",m);this.snippetContainer.style.setProperty("mask-image",
m)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(fVB?"right":"left",this.expandButtonOffset+"px")};
_.w.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.w.setSnippetText=function(m,G){m||(m={});if(_.t$(m)){var K=DJ(m,G);K.attachmentRuns||K.commandRuns||K.decorationRuns||K.styleRuns||K.alignment||K.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:DJ(m,G),headerRuns:AyJ(G,this.headerRuns)},this.currentSnippetType=0):_.nc(new _.cw("Tried to set snippet text when HTML element was null",m)):(this.plainSnippetText.textContent=J$(m.content||"",G),this.currentSnippetType=2)}else{a:{K=nMd(m,G);if(K.runs){K=_.g(K.runs);for(var W=
K.next();!W.done;W=K.next())if(W=W.value,W.bold||W.deemphasize||W.italics||W.strikethrough||W.textColor||W.navigationEndpoint||_.Q(W,wn)){K=!0;break a}}K=!1}K?this.formattedSnippetText?(this.formattedSnippetText.text=nMd(m,G),this.currentSnippetType=1):_.nc(new _.cw("Tried to set snippet text when HTML element was null",m)):(this.plainSnippetText.textContent=J$(_.bw(m),G),this.currentSnippetType=2)}};
_.w.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.w.attributedTextIsEmpty=function(){var m=this.text;if(!_.t$(m))return!0;var G;return((G=m.content)==null?void 0:G.length)===0?!0:!1};
_.w.resize=function(m){if(this.snippetText){if(m===void 0?0:m)this.JSC$16887_lastWidth=NaN;var G=this.hostElement.offsetWidth;if(G!==this.JSC$16887_lastWidth&&!this.isExpanded)if(this.JSC$16887_lastWidth=G,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;m=0;var K,W;G=Math.min(G*this.maxLines/8*2,(W=(K=this.simpleText)==null?void 0:K.length)!=null?W:0)-1;for(K=0;m<=G;)W=Math.floor(m+(G-m)/2),this.setSnippetText(this.text,W),this.isOverflowing()?G=W-1:(m=W+1,K=W);this.setSnippetText(this.text,K);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.w.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.w.onExpandClick=function(){var m=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.F("inline_expander_reset_focus_killswitch")||_.Pv(this,function(){var G;((G=_.xS().resolve(_.fn(_.sH)))==null?0:G.isKeyBoardInUse())&&_.ZD(m.hostElement)});
_.Zw(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.w.onCollapseClick=function(){this.collapse();_.Zw(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.w.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.w.computeExpandButtonOffset=function(){var m=this.expandSizer;return m?fVB?m.offsetParent?m.offsetParent.offsetWidth-m.offsetWidth-m.offsetLeft:0:m.offsetLeft:0};
_.e_.Object.defineProperties(LM.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.t$(this.text)?this.text.content||"":_.bw(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 _.t$(this.text)?!0:this.text&&_.F("web_replace_formatted_with_attributed_string")&&IxG(this.text)?(this.text=_.A$(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}}});
LM.prototype.onTextChanged=LM.prototype.onTextChanged;LM.prototype.updateMaskAndExpandButtonOffset=LM.prototype.updateMaskAndExpandButtonOffset;LM.prototype.updateSnippetContainerMaxHeight=LM.prototype.updateSnippetContainerMaxHeight;LM.prototype.isExpandedChanged=LM.prototype.isExpandedChanged;LM.prototype.updateTextOnSnippetTypeChange=LM.prototype.updateTextOnSnippetTypeChange;LM.prototype.updateIsFormattedExpanded=LM.prototype.updateIsFormattedExpanded;LM.prototype.updateIsAttributedExpanded=LM.prototype.updateIsAttributedExpanded;
LM.prototype.onClick=LM.prototype.onClick;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],LM.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"text",void 0);_.x([_.V(),_.S("design:type",Array)],LM.prototype,"headerRuns",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],LM.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"maxLines",void 0);
_.x([_.V(),_.S("design:type",String)],LM.prototype,"expandLabel",void 0);_.x([_.V(),_.S("design:type",String)],LM.prototype,"collapseLabel",void 0);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"expandCommand",void 0);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"expandButtonOffset",void 0);_.x([_.E("text"),_.S("design:type",String),_.S("design:paramtypes",[])],LM.prototype,"simpleText",null);
_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],LM.prototype,"onClick",null);_.x([_.E("text","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"expandedText",null);_.x([_.E("headerRuns","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"expandedHeaderRuns",null);
_.x([_.E("text"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],LM.prototype,"hasAttributedStringText",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],LM.prototype,"showExpandButton",void 0);_.x([_.E("collapseLabel","isExpanded"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"showCollapseButton",null);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"isTruncated",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],LM.prototype,"isExpanded",void 0);_.x([_.V(),_.S("design:type",Boolean)],LM.prototype,"isAttributedExpanded",void 0);_.x([_.Sb("isExpanded","hasAttributedStringText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"updateIsAttributedExpanded",null);_.x([_.V(),_.S("design:type",Boolean)],LM.prototype,"isFormattedExpanded",void 0);
_.x([_.Sb("isExpanded","hasAttributedStringText"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"updateIsFormattedExpanded",null);_.x([_.V(),_.S("design:type",Number)],LM.prototype,"currentSnippetType",void 0);_.x([_.E("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"useAttributedSnippet",null);
_.x([_.E("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"useFormattedSnippet",null);_.x([_.E("currentSnippetType"),_.S("design:type",Object),_.S("design:paramtypes",[])],LM.prototype,"usePlainSnippet",null);_.x([_.V(),_.S("design:type",Object)],LM.prototype,"alwaysShowExpandButton",void 0);_.x([_.Sb("currentSnippetType"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"updateTextOnSnippetTypeChange",null);
_.x([_.V(),_.S("design:type",Object)],LM.prototype,"attributedSnippetText",void 0);_.x([_.UM("#snippet"),_.S("design:type",HTMLElement)],LM.prototype,"snippetContainer",void 0);_.x([_.UM("#snippet-text"),_.S("design:type",HTMLElement)],LM.prototype,"snippetText",void 0);_.x([_.UM("#plain-snippet-text"),_.S("design:type",HTMLElement)],LM.prototype,"plainSnippetText",void 0);_.x([_.UM("#formatted-snippet-text"),_.S("design:type",Object)],LM.prototype,"formattedSnippetText",void 0);
_.x([_.UM("#attributed-snippet-text"),_.S("design:type",HTMLElement)],LM.prototype,"attributedSnippetTextEl",void 0);_.x([_.UM("#expand"),_.S("design:type",HTMLElement)],LM.prototype,"expandButton",void 0);_.x([_.UM("#expand-sizer"),_.S("design:type",HTMLElement)],LM.prototype,"expandSizer",void 0);_.x([_.Mg("isExpanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"isExpandedChanged",null);
_.x([_.Sb("isExpanded","maxLines"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"updateSnippetContainerMaxHeight",null);_.x([_.Sb("isTruncated","showExpandButton","expandButtonOffset"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"updateMaskAndExpandButtonOffset",null);
_.x([_.Mg("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],LM.prototype,"onTextChanged",null);_.x([_.Ye({is:"ytd-text-inline-expander",disableElementRegistration:!0})],LM);
_.y(LM,"ytd-text-inline-expander",function(){if(eX2===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);eX2=m}m=eX2;return m},{mode:2});var A0=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return m};
_.n(A0,_.d);A0.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
A0.prototype.handleUpdateDescriptionAction=function(m){if(m=_.Q(m,_.ik2))if(m.attributedDescription)this.set("data.attributedDescriptionBodyText",m.attributedDescription);else if(m.description){var G;((G=this.data)==null?0:G.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.A$(m.description)):this.set("data.descriptionBodyText",m.description)}};
_.e_.Object.defineProperties(A0.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.attributedDescriptionBodyText)||!((G=this.data)==null||!G.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null?0:m.collapsedLineCount){var G;return(G=this.data)==null?void 0:G.collapsedLineCount}m=_.U8("web_watch_description_collapsed_default_lines",12);if(_.F("ww_desc_line_page_size_ks"))return m;G=Math.round(_.zv().height*_.U8("web_watch_description_screen_height_percentage",.5)/20);return Math.max(G,m)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return(K=(m=this.data)==null?void 0:m.descriptionBodyText)!=null?K:(G=this.data)==null?void 0:G.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.sourceAttributions}}});
A0.prototype.panelContentVisibleChanged=A0.prototype.panelContentVisibleChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],A0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],A0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],A0.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],A0.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],A0.prototype,"panelContentVisible",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],A0.prototype,"engagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],A0.prototype,"shortsPanel",void 0);_.x([_.UM("#inline-expander"),_.S("design:type",Object)],A0.prototype,"inlineExpander",void 0);
_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A0.prototype,"panelContentVisibleChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],A0.prototype,"hasDescriptionText",null);_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],A0.prototype,"collapsedLines",null);
_.x([_.E("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.S("design:type",Object),_.S("design:paramtypes",[])],A0.prototype,"descriptionText",null);_.x([_.E("data","data.headerRuns"),_.S("design:type",Object),_.S("design:paramtypes",[])],A0.prototype,"headerRuns",null);_.x([_.E("data","data.sourceAttributions"),_.S("design:type",Object),_.S("design:paramtypes",[])],A0.prototype,"sourceAttributions",null);
_.x([_.Ye({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],A0);
_.y(A0,"ytd-expandable-video-description-body-renderer",function(){if(yQP!==void 0)return yQP;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yQP=m},{mode:2});var x9X;var X1G=_.P(function(m){var G=m.data;return _.r("factoid-renderer",{class:"ytwFactoidRendererHost"},_.r("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return G().accessibilityText}},_.r("span",{class:"ytwFactoidRendererValue"},_.r(_.Nm,{text:function(){return G().value}})),_.r("span",{class:"ytwFactoidRendererLabel"},_.r(_.Nm,{text:function(){return G().label}}))))},"td");_.sh(X1G,"factoid-renderer",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;return _.r("upload-time-factoid-renderer",null,_.r(_.z$,{data:function(){return G().factoid}},{factoidRenderer:X1G}))},"ud"),"upload-time-factoid-renderer",{props:{data:_.nN}});_.sh(_.P(function(m){var G=m.data;return _.r("view-count-factoid-renderer",null,_.r(_.z$,{data:function(){return G().factoid}},{factoidRenderer:X1G}))},"vd"),"view-count-factoid-renderer",{props:{data:_.nN}});var wA=function(){var m=_.d.apply(this,arguments)||this;m.shortsPanel=!1;m.engagementPanel=!1;m.watchWhileSdp=_.F("shorts_desktop_watch_while_sdp");return m};
_.n(wA,_.d);wA.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"}}}}};
_.e_.Object.defineProperties(wA.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var m;return(m=this.data)==null?void 0:m.channel}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wA.prototype,"componentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wA.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wA.prototype,"shortsPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wA.prototype,"engagementPanel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wA.prototype,"watchWhileSdp",void 0);_.x([_.E("shortsPanel","engagementPanel","data.channel"),_.S("design:type",Object),_.S("design:paramtypes",[])],wA.prototype,"showChannelInfo",null);_.x([_.Ye({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],wA);
_.y(wA,"ytd-video-description-header-renderer",function(){if(x9X!==void 0)return x9X;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return x9X=m},{mode:1});var S60;var gA=function(){return _.d.apply(this,arguments)||this};
_.n(gA,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],gA.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gA.prototype,"ytRendererBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],gA.prototype,"noPadding",void 0);_.x([_.V(),_.S("design:type",Object)],gA.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],gA);
_.y(gA,"ytd-list-item-view-model",function(){if(S60!==void 0)return S60;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return S60=m},{mode:1});var RXK;var U9C;var zXR;var lVo;var Of=function(){var m=_.d.apply(this,arguments)||this;m.adaptiveFullWidth=!1;m.modernButtons=_.F("web_modern_buttons");m.buttonOverrides={style:"call-to-action",type:"filled"};m.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return m};
_.n(Of,_.d);Of.prototype.handleSetTimestamp_=function(m){this.data&&this.data.shortUrl&&(_.VL(this.hostElement).querySelector("#share-url").value=m.isSet?_.Mj(this.data.shortUrl,"t",m.timestamp):this.data.shortUrl)};
Of.prototype.handleSignalActionCopyShareUrl_=function(m,G){(_.F("killswitch_copy_link_target_check")||_.VL(this.hostElement).querySelector("#copy-button")===G)&&this.copyUrlToClipboard()};
Of.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.VL(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Of.prototype.computeStyle_=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Of.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Of.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.S("design:type",String)],Of.prototype,"rendererStyle",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Of.prototype,"adaptiveFullWidth",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Of.prototype,"modernButtons",void 0);_.x([_.V(),_.S("design:type",Object)],Of.prototype,"buttonOverrides",void 0);_.x([_.cL({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Of);
_.y(Of,"yt-copy-link-renderer",function(){if(lVo===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;zXR===void 0&&(zXR=document.createElement("template"));var W=zXR;K.call(G,W.content.cloneNode(!0),m.content.firstChild);lVo=m}m=lVo;return m},{mode:2});_.Kz("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var c9=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return m};
_.n(c9,_.d);_.w=c9.prototype;_.w.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.w.attached=function(){this.keyboardFocused=!1};
_.w.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var m=_.xS().resolve(_.fn(_.sH));m&&(this.keyboardFocused=m.isKeyBoardInUse())}};
_.w.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.w.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}};
_.w.onChange_=function(){if(this.data){var m=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;m&&this.ytComponentBehavior.resolveCommand(m);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.w.handleUpdateToggleAction_=function(m){(m=_.Q(m,Jd4))&&this.data&&m.targetId==this.data.targetId&&this.set("data.toggled",m.toggled)};
_.w.toBoolean_=function(m){return!!m};
_.w.reset=function(){};
_.w.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("data-changed",this.data))};
_.w.updateDataToggledFromBinding=function(m){this.set("data.toggled",m.detail.value)};
c9.prototype.dataChangedForBinding=c9.prototype.dataChangedForBinding;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],c9.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],c9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],c9.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],c9.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],c9.prototype,"data",void 0);_.x([_.V({computed:"computeDescription_(data.*)"}),_.S("design:type",Object)],c9.prototype,"description_",void 0);_.x([_.V({value:function(){return!!_.xS().resolve(_.fn(_.sH))&&_.F("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.S("design:type",Boolean)],c9.prototype,"useKeyboardFocused",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],c9.prototype,"keyboardFocused",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],c9.prototype,"dataChangedForBinding",null);_.x([_.cL({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],c9);
_.y(c9,"yt-toggle-form-field-renderer",function(){if(U9C===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;RXK===void 0&&(RXK=document.createElement("template"));var W=RXK;K.call(G,W.content.cloneNode(!0),m.content.firstChild);U9C=m}m=U9C;return m},{mode:2});var Bj0;var MTS;var Yb=function(){var m=_.d.apply(this,arguments)||this;m.isDarkTheme=!1;m.isSearch=!1;m.noTopMargin=_.F("kevlar_watch_no_top_margin");m.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 m};
_.n(Yb,_.d);_.w=Yb.prototype;_.w.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}}}}}};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.w.dataChanged=function(){var m=this.getSelectedIndex();if(m>0)this.selected=m;else{this.selected=0;var G,K;(G=this.ytScrollableChipCloudBehavior)==null||(K=G.reset)==null||K.call(G)}};
_.w.getSelectedIndex=function(){var m;if((m=this.data)==null||!m.chips)return-1;m=-1;for(var G,K=0;K<((G=this.data)==null?void 0:G.chips.length);K++){var W=void 0,L=void 0;if((W=this.data)==null?0:(L=W.chips[K].chipCloudChipRenderer)==null?0:L.isSelected){m=K;break}}return m};
_.w.onResize=function(){var m=this.ytScrollableChipCloudBehavior;_.Pv(m,m.setContainerWidthDiff);m=this.ytScrollableChipCloudBehavior;_.Pv(m,m.setButtonsState)};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.handleRelatedChipCommand=function(m,G){m=this.JSC$16913_chipsSelector.indexOf(G);m!==-1&&this.JSC$16913_chipsSelector.selectIndex(m)};
_.w.handleChipCloudChipSelectAction=function(m){m=this.JSC$16913_chipsSelector.indexOf(m);m>-1&&this.JSC$16913_chipsSelector.selectIndex(m)};
_.w.handleChipCloudChipDeselectAction=function(){var m=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16913_chipsSelector&&((m==null?0:m.continuationCommand)?_.yQ(this.hostElement,[m]):(m==null?0:m.searchEndpoint)?this.ytComponentBehavior.resolveCommand(m):m&&_.eD(this.hostElement,[m],this.hostElement),this.JSC$16913_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.w.updateSelectedFromBinding=function(m){this.selected=m.detail.value};
Yb.prototype.onResize=Yb.prototype.onResize;Yb.prototype.dataChanged=Yb.prototype.dataChanged;Yb.prototype.isSearchChanged=Yb.prototype.isSearchChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Yb.prototype,"actionHandlerBehavior",void 0);
_.x([_.q(_.mH),_.S("design:type",Object)],Yb.prototype,"ironResizableBehavior",void 0);_.x([_.q(),_.S("design:type",XT)],Yb.prototype,"ytScrollableChipCloudBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Yb.prototype,"data",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],Yb.prototype,"selected",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yb.prototype,"isDarkTheme",void 0);_.x([_.V({value:160}),_.S("design:type",Number)],Yb.prototype,"scrollDistance",void 0);_.x([_.V(),_.S("design:type",Object)],Yb.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yb.prototype,"noTopMargin",void 0);_.x([_.UM("#chips"),_.S("design:type",Object)],Yb.prototype,"JSC$16913_chipsSelector",void 0);
_.x([_.Sb("isSearch"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yb.prototype,"isSearchChanged",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yb.prototype,"dataChanged",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yb.prototype,"onResize",null);_.x([_.cL({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Yb);
_.y(Yb,"yt-chip-cloud-renderer",function(){if(MTS===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Bj0===void 0&&(Bj0=document.createElement("template"));var W=Bj0;K.call(G,W.content.cloneNode(!0),m.content.firstChild);MTS=m}m=MTS;return m},{mode:2});var TjF,m10=function(){return TjF!==void 0?TjF:TjF=document.createElement("template")};
document.head.appendChild(m10().content);var iXC;var GCk=document.head,KO2=GCk.appendChild,WOB;if(iXC===void 0){var LO0=document.createElement("template");_.b(LO0,"");LO0.content.insertBefore(m10().content.cloneNode(!0),LO0.content.firstChild);iXC=LO0}WOB=iXC;KO2.call(GCk,WOB.content);var APk=_.P(function(m){var G=m.data;return _.r("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.r("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.r("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.r(_.p,{cond:function(){return _.NB(G().image)},
then:function(K){return _.r("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.r(_.oC,{data:K,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.r("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.r(_.Nm,{text:function(){return G().subtitle}})))),_.r(_.p,{cond:function(){var K;
return(K=G())==null?void 0:K.hasBottomDivider},
then:function(){return _.r("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"wd");var wmK=_.P(function(m){var G=m.data;return _.r("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.r("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.r(_.z$,{data:function(){var K;return(K=G().offerPlanDetailsItem)!=null?K:[]}},{offerPlanDetailsItemViewModel:function(K){return _.r("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.r(APk,{data:K.data}))}})),_.r("div",null,_.r(_.p,{cond:function(){return G().hasBottomDivider},
then:function(){return _.r("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.r("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.r("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.r("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.r("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"xd");var g_R=_.P(function(m){var G=m.data;m=_.g(_.g_(!1,void 0,"MrXxy"));var K=m.next().value,W=m.next().value,L=_.dn(function(){W(!K());return!1}),A=function(){var O;
return(O=G().offerPlanDetailsContainer)!=null?O:[]};
return _.r("lp-complex-offer-card-details-view-model",null,_.r("div",null,_.r(_.p,{cond:function(){return K()},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.r("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":L,"aria-expanded":K},_.r(_.Nm,{text:function(){return G().expandedTitle}})),_.r("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.r(_.z$,{data:A},{offerPlanDetailsContainerViewModel:function(O){return _.r("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.r(wmK,{data:O.data}))}})),_.r("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.r(_.Nm,{text:function(){return G().legalText}})))},
else:function(){return _.r("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":L,"aria-expanded":K},_.r(_.Nm,{text:function(){return G().collapsedTitle}}),_.r("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.r(_.fN,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"yd");var OXk=_.P(function(m){var G=m.data;return _.r("lp-complex-offer-card-option-view-model",null,_.r("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.r(_.p,{cond:function(){return G().topDividerText},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.r("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.r("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.r("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.r(_.Nm,{text:function(){return G().topDividerText}}))))}}),_.r(_.p,{cond:function(){return G().description},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.r(_.Nm,{text:function(){return G().description}}))}}),_.r(_.p,{cond:function(){return G().planPricingPrimary},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.r(_.Nm,{text:function(){return G().planPricingPrimary}}))}}),_.r(_.p,{cond:function(){return G().planPricingSecondary},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.r(_.Nm,{text:function(){return G().planPricingSecondary}}))}}),_.r(_.p,{cond:function(){return G().primaryButton},
then:function(){return _.r("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.r(_.z$,{data:function(){return G().primaryButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"zd");var cP4=_.P(function(m){var G=m.data;var K=function(){var A;return((A=G())==null?void 0:A.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
m={};var W={},L={};return _.r("ytm-lp-complex-offer-card-view-model",null,_.r("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.r("div",{class:_.VO((m.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=K,m),"ytmLpComplexOfferCardViewModelCardContainer")},_.r(_.p,{cond:function(){var A;return(A=G())==null?void 0:A.bannerText},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.r("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.r(_.Nm,{text:function(){return G().bannerText}})))}}),_.r(_.p,{cond:function(){return _.NB(G().logo)},
then:function(A){var O={};return _.r("div",{class:_.VO((O.ytmLpComplexOfferCardViewModelLogoAlignLeft=K,O),"ytmLpComplexOfferCardViewModelLogo")},_.r(_.oC,{data:A,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.r("div",{class:_.VO((W.ytmLpComplexOfferCardViewModelTitleAlignLeft=K,W),"ytmLpComplexOfferCardViewModelTitle")},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.p,{cond:function(){var A;
return(A=G())==null?void 0:A.subtitle},
then:function(){var A={};return _.r("div",{class:_.VO((A.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=K,A),"ytmLpComplexOfferCardViewModelSubtitle")},_.r(_.Nm,{text:function(){return G().subtitle}}))}}),_.r(_.p,{cond:function(){return G().planPricingPrimary},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.r(_.Nm,{text:function(){return G().planPricingPrimary}}))}}),_.r(_.p,{cond:function(){return G().planPricingSecondary},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.r(_.Nm,{text:function(){return G().planPricingSecondary}}))}}),_.r(_.p,{cond:function(){return G().purchaseButton},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.r(_.z$,{data:function(){return G().purchaseButton}},{buttonViewModel:function(A){return _.r(_.kP,{data:A.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.r(_.p,{cond:function(){var A;
return(A=G())==null?void 0:A.offerOptions},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.r(_.z$,{data:function(){return G().offerOptions}},{lpComplexOfferCardOptionViewModel:OXk}))}}),_.r("div",{class:_.VO((L.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=K,L),"ytmLpComplexOfferCardViewModelLegalText")},_.r(_.Nm,{text:function(){return G().legalText}})),_.r(_.p,{cond:function(){var A;
return(A=G())==null?void 0:A.offerCardDetails},
then:function(){return _.r("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.r(_.z$,{data:function(){return G().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:g_R}))}}))))},"Ad");var Y00=_.P(function(m){var G=m.data;var K=function(){var O;return((O=G())==null?void 0:O.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
m={};var W={},L={},A={};return _.r("ytm-lp-complex-offer-card-section-view-model",null,_.r("div",{class:_.VO("ytmLpComplexOfferCardSectionViewModelHost")},_.r("div",{class:_.VO((m.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=K,m),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.r("div",{class:_.VO((W.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=K,W),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.r("h2",{class:_.VO((L.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
K,L),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.r(_.Nm,{text:function(){return G().title}}))),_.r(_.p,{cond:function(){var O;
return(O=G())==null?void 0:O.subtitle},
then:function(){var O={},c={};return _.r("div",{class:_.VO((O.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=K,O),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.r("div",{class:_.VO((c.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=K,c),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.r(_.Nm,{text:function(){return G().subtitle}})))}}),_.r("div",{class:_.VO((A.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=K,A),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.r(_.z$,{data:function(){var O;
return(O=G().offerPlans)!=null?O:[]}},{lpComplexOfferCardViewModel:function(O){return _.r("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.r(cP4,{data:O.data}))}})))))},"Bd");var rPR=_.P(function(m){return _.r("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.r("div",{class:"ytLpCouponBannerViewModelIcon"},_.r(_.fN,{icon:function(){return"price_tag"}})),_.r("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.r("div",{class:"ytLpCouponBannerViewModelContent"},_.r("div",{class:"ytLpCouponBannerViewModelHeading"},_.r(_.Nm,{text:function(){var G;
return(G=m.data())==null?void 0:G.title}})),_.r("div",{class:"ytLpCouponBannerViewModelBody"},_.r(_.Nm,{text:function(){var G;
return(G=m.data())==null?void 0:G.subtitle}})))))},"Cd");
rPR.idomCompat=!0;_.rA=dK9.getInstance();var uDS;uDS=_.P(function(m){return _.r("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":m.shouldAriaHideContent},_.r("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:m.questionId},_.r(_.Nm,{text:m.question})))},"Dd");
_.hEC=_.P(function(m){var G=m.data;var K=m.themeOverride;m=_.g(_.g_(!1,void 0,"pNli2b"));var W=m.next().value,L=m.next().value;m=_.dn(function(){L(!W());return!1});
var A=function(){return W()?"EXPAND_LESS":"EXPAND_MORE"},O=("faq-container"+_.cZ(_.rA)).toString(),c="faq-question-and-answers-section-question"+_.cZ(_.rA),u={},h={};
return _.r("faq-entry-view-model",null,_.r("div",{class:_.VO("ytLpFaqEntryViewModelHost",(u.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return K==null?void 0:K().useDarkTheme},u))},_.r("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":m,role:"button","aria-expanded":W,"aria-labelledby":c.toString(),"tab-index":"0"},_.r(uDS,{question:function(){return G().question},
questionId:c,shouldAriaHideContent:!0}),_.r(_.p,{cond:function(){return W()!==void 0},
then:function(){return _.r("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.r(_.fN,{icon:A,ariaHidden:!0}),_.r("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.r("div",{class:_.VO("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(h.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!W()},h))},_.r("div",{id:O},_.r(_.D0,{each:function(){return G().answers||[]}},function(J){return _.r("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.r(_.Nm,
{text:J}))})))))},"Ed");
_.hEC.idomCompat=!0;var pmR=_.P(function(m){var G=m.data;var K=m.themeOverride;m={};return _.r("lp-faq-section-view-model",null,_.r("div",{class:_.VO("yt-lp-faq-section-view-model",(m["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},m["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(K==null||!K().useDarkTheme)},m))},_.r("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.r(_.p,{cond:function(){return G().header},
then:function(W){return _.r("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.r(_.Nm,{text:W}))}}),_.r("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.r(_.z$,{data:function(){return G().faqs}},{faqEntryViewModel:function(W){return _.r(_.hEC,{data:W.data,
themeOverride:K})}})),_.r("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.r(_.D0,{each:function(){return G().footers||[]}},function(W){return _.r(_.Nm,{text:W})})),_.r(_.p,{cond:function(){return G().legal},
then:function(W){return _.r("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.r(_.Nm,{text:W}))}}))))},"Fd");
pmR.idomCompat=!0;var JPB=_.P(function(m){var G=m.data;var K=m.themeOverride;_.bX(function(){var O=G().gtmId;O&&_.MQ(O,_.E8("GL",""))});
var W={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var O,c,u;return(u=(O=G().logo)==null?void 0:(c=O.accessibilityData)==null?void 0:c.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},L=_.xS().resolve(_.fn(_.l_)),A=function(){return L&&L()||(K==null?void 0:K().useDarkTheme)};
return _.r("lp-header-section-view-model",null,_.r("div",{class:function(){var O=G().layoutType,c=G().marginType==="LP_SECTION_MARGIN_TYPE_TOP",u=K==null?void 0:K().useDarkTheme,h=["lp-header-section-view-model"];switch(O){case "LP_MODULE_LAYOUT_TYPE_PTC":h.push("lp-header-section-view-model--ptc-layout-type");break;case "LP_MODULE_LAYOUT_TYPE_NARROW_HEADER":h.push("lp-header-section-view-model--narrow-header-layout-type")}c&&h.push("lp-header-section-view-model__lp-header-section-margin");u&&h.push("lp-header-section-view-model--premium-force-dark-mode");
return h.join(" ")}},_.r(_.p,{cond:function(){return G().logo},
then:function(){return _.r("div",null,_.r(_.p,{cond:A,then:function(){return _.r(_.p,{cond:function(){var O;return(O=G().logo)==null?void 0:O.imageDark},
then:function(O){return _.r(_.oC,Object.assign({},{data:O},W))}})},
else:function(){return _.r(_.p,{cond:function(){var O;return(O=G().logo)==null?void 0:O.imageLight},
then:function(O){return _.r(_.oC,Object.assign({},{data:O},W))}})}}))}}),_.r(_.p,{cond:function(){return G().title},
then:function(O){return _.r("div",{class:"lp-header-section-view-model__lp-header-title"},_.r(_.Nm,{text:O}))}}),_.r("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.r(_.p,{cond:function(){return G().subtitles},
then:function(O){return _.r(_.D0,{each:O},function(c){return _.r("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.r(_.Nm,{text:c}))})}})),_.r(_.p,{cond:function(){return G().additionalInfo},
then:function(O){return _.r("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.r(_.Nm,{text:O}))}}),_.r("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.r(_.p,{cond:function(){return G().primaryButton},
then:function(O){return _.r("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.r(_.z$,{data:O},{buttonViewModel:_.kP}))}}),_.r(_.p,{cond:function(){return G().secondaryButton},
then:function(O){return _.r("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.r(_.z$,{data:O},{buttonViewModel:_.kP}))}})),_.r(_.p,{cond:function(){return G().otherOffersInfo},
then:function(O){return _.r("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.r(_.Nm,{text:O}))}}),_.r("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.r(_.p,{cond:function(){return G().billingInfo},
then:function(O){return _.r(_.D0,{each:O},function(c){return _.r("div",null,_.r(_.Nm,{text:c}))})}}))))},"Gd");
JPB.idomCompat=!0;var NhP=_.P(function(m){return _.r("lp-header-upsell-banner-view-model",{class:_.VO("lpHeaderUpsellBannerViewModelHost",m.className,{})},_.r("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.r(_.fN,{icon:function(){return"CAMPAIGN"}})),_.r("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.r("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.r("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.r("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.r(_.Nm,{text:function(){var G;
return(G=m.data())==null?void 0:G.description}})))),_.r(_.z$,{data:function(){var G;
return(G=m.data())==null?void 0:G.purchaseButton}},{buttonViewModel:function(G){return _.r(_.kP,{data:G.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"Hd");var D1l=_.P(function(m){var G=m.data;var K=_.sQ(m.themeOverride,{useDarkTheme:!1});m={};m=_.VO("ytmLpHeadlineSectionViewModelHost",(m.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return K().useDarkTheme},m));
return _.r("lp-headline-section-view-model",null,_.r("div",{class:m},_.r(_.p,{cond:function(){return G().title},
then:function(W){return _.r("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.r(_.Nm,{text:W}))}}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(W){return _.r("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.r(_.Nm,{text:W}))}})))},"Id");var t$4=_.P(function(m){var G=m.data;var K=m.themeOverride;var W=_.xS().resolve(_.fn(_.l_)),L=function(){return W&&W()||(K==null?void 0:K().useDarkTheme)},A=function(){var h,J;
var N=L()?(h=G().textBackgroundImage)==null?void 0:h.imageDark:(J=G().textBackgroundImage)==null?void 0:J.imageLight;return pDf((N==null?void 0:N.sources)||[])},O=function(){var h,J;
return L()?(h=G().featureImage)==null?void 0:h.imageDark:(J=G().featureImage)==null?void 0:J.imageLight},c=function(){return G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},u=function(){var h,J;
return L()?(h=G().logo)==null?void 0:h.imageDark:(J=G().logo)==null?void 0:J.imageLight};
return _.r("ytm-lp-large-feature-section-view-model",null,_.r("div",{class:function(){var h=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",J=G().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",N=(G().index||0)%2===1,D=K==null?void 0:K().useDarkTheme,t=["yt-lp-large-feature-section-view-model"];h?t.push("yt-lp-large-feature-section-view-model--music-feature-type"):J?t.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):N||t.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
D&&t.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return t.join(" ")}},_.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.r(_.p,{cond:O,
then:function(){return _.r(_.oC,{data:function(){return O()},
alt:function(){var h,J,N;return(N=(h=G().featureImage)==null?void 0:(J=h.accessibilityData)==null?void 0:J.label)!=null?N:""},
contentMode:c})}})),_.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var h;return((h=A())==null?0:h.url)?"background-image: url("+_.MI(A().url)+");":""}},_.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.r(_.p,{cond:u,
then:function(){return _.r(_.oC,{data:function(){return u()},
alt:function(){var h,J,N;return(N=(h=G().logo)==null?void 0:(J=h.accessibilityData)==null?void 0:J.label)!=null?N:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.r(_.p,{cond:function(){return G().eyebrowText},
then:function(){return _.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.r(_.Nm,{text:function(){return G().eyebrowText}}))}}),_.r(_.p,{cond:function(){return G().title},
then:function(){return _.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.r(_.Nm,{text:function(){return G().title}}))}}),_.r(_.p,{cond:function(){return G().subtitles},
then:function(){return _.r("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.r(_.D0,{each:function(){return G().subtitles||[]}},function(h){return _.r(_.Nm,{text:h})}))}})))))},"Jd");
t$4.idomCompat=!0;var FOl=_.P(function(m){return _.r("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.r("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.r(_.fN,{icon:function(){var G;return(G=m.data())==null?void 0:G.iconType},
className:function(){var G;switch((G=m.data())==null?void 0:G.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var G;return((G=m.data())==null?void 0:G.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.r("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.r(_.Nm,{text:function(){var G;
return(G=m.data())==null?void 0:G.text},
className:function(){var G;return((G=m.data())==null?void 0:G.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"Kd");var QIC=_.P(function(m){m=_.ql(m,{config:void 0,themeOverride:void 0});var G=m.data,K=m.config,W=m.themeOverride;m={};m=_.VO("ytmLpOfferCardOptionViewModelHost",(m.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var c;return(c=W())==null?void 0:c.useDarkTheme},m));
var L=_.dn(function(){var c,u;(c=K())==null||(u=c.handleRadioButtonClick)==null||u.call(c,G());return!1}),A=function(){var c;
return(c=K())==null?void 0:c.shouldDisplayRadioButton},O=function(){var c;
return(c=G().featureListItems)!=null?c:[]};
return _.r("ytm-lp-offer-card-option-view-model",null,_.r("div",{class:m,"on:click":_.dn(function(){if(A()){var c,u;(c=K())==null||(u=c.handleRadioButtonClick)==null||u.call(c,G())}return!1})},_.r(_.p,{cond:A,
then:function(){return _.r("div",null,_.r("input",{type:"radio","on:click":L,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var c;return!((c=K())==null||!c.isOptionSelected)}}))}}),_.r("div",null,_.r("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.r(_.Nm,{text:function(){return G().eyebrowText}})),_.r("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.r(_.Nm,
{text:function(){return G().subtitle}})),_.r(_.p,{cond:function(){return O().length>0},
then:function(){return _.r("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.r(_.z$,{data:O},{lpFeatureListItemViewModel:FOl}))}}),_.r("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.r(_.Nm,{text:function(){return G().description}})))))},"Ld");
QIC.idomCompat=!0;var aUB=_.P(function(m){var G=m.data;var K=m.themeOverride;m=_.g(_.EQ(function(){var A,O=(A=G().offerOptions)==null?void 0:A[0];return _.Q(O,rxk)||{}}));
var W=m.next().value,L=m.next().value;m={};return _.r("ytm-lp-offer-card-view-model",null,_.r("div",{class:_.VO("ytmLpOfferCardViewModelHost",(m.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(K==null||!K().useDarkTheme)},m))},_.r("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.r(_.p,{cond:function(){return G().titleIconType},
then:function(){return _.r("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.r(_.fN,{icon:function(){var A;return((A=G().titleIconType)==null?void 0:A.toString())||""}}))}}),_.r("div",{class:"ytmLpOfferCardViewModelTitleText"},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.z$,{data:function(){return G().titleBadge}},{badgeViewModel:function(A){return _.r("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.r(_.vr,{data:A.data}))}})),_.r("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.r(_.z$,{data:function(){return G().offerOptions}},{lpOfferCardOptionViewModel:function(A){var O=A.data;
return _.r(_.zL,null,_.r("div",{class:"ytmLpOfferCardViewModelDivider"}),_.r(QIC,{data:O,config:function(){var c;return{shouldDisplayRadioButton:(G().offerOptions||[]).length>1,isOptionSelected:O().id===((c=W())==null?void 0:c.id),handleRadioButtonClick:function(u){return void L(u)}}},
themeOverride:K}))}})),_.r("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.r(_.z$,{data:function(){var A;
return(A=W())==null?void 0:A.purchaseButtonOverride}},{buttonViewModel:_.kP}))))},"Md");
aUB.idomCompat=!0;var o_R=_.P(function(m){var G=m.data;var K=m.themeOverride;m={};m=_.VO("ytmLpOfferCardSectionViewModelHost",(m.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var W;return K==null?void 0:(W=K())==null?void 0:W.useDarkTheme},m));
return _.r("ytm-lp-offer-card-section-view-model",null,_.r("div",{class:m},_.r(_.p,{cond:function(){return G().title!==void 0},
then:function(){return _.r("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.r("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.p,{cond:function(){return G().subtitle},
then:function(){return _.r("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.r(_.Nm,{text:function(){return G().subtitle}}))}}))}}),_.r("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.r(_.z$,{data:function(){return G().offerCards}},{lpOfferCardViewModel:function(W){return _.r("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.r(aUB,{data:W.data,
themeOverride:K}))}})),_.r(_.p,{cond:function(){return G().footer},
then:function(){return _.r("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.r(_.Nm,{text:function(){return G().footer}}))}})))},"Nd");var n_X=_.P(function(m){var G=m.data;return _.r("lp-offer-table-cell-content-view-model",null,_.r("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.r(_.tw,null,_.r(_.Jw,{when:function(){return G().title}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return G().title}})}),_.r(_.Jw,{when:function(){return G().subTitle}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return G().subTitle}})}),_.r(_.Jw,{when:function(){return G().featureDescription}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return G().featureDescription}})}),_.r(_.Jw,{when:function(){return G().description}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return G().description}})}),_.r(_.Jw,{when:function(){return G().iconType}},function(){return _.r("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.r(_.fN,{icon:function(){return G().iconType.toString()}}))}),_.r(_.Jw,{when:function(){return G().purchaseButton}},function(){return _.r(_.z$,{data:function(){return G().purchaseButton}},{buttonViewModel:function(K){return _.r("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.r(_.kP,
{data:K.data}))}})}),_.r(_.Jw,{when:function(){return G().note}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return G().note}})}),_.r(_.Jw,{when:function(){return G().featureDetail}},function(){return _.r(_.Nm,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return G().featureDetail}})}),_.r(_.Jw,{when:function(){return G().badge}},function(){return _.r(_.z$,{data:function(){return G().badge}},{badgeViewModel:_.vr})}))))},"Od");
n_X.idomCompat=!0;var bXl=_.P(function(m){var G=m.data;return _.r("lp-offer-table-cell-view-model",null,_.r("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(G().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.r(_.z$,{data:function(){return G().contents}},{lpOfferTableCellContentViewModel:n_X})))},
"Pd");
bXl.idomCompat=!0;var v_P=_.P(function(m){var G=m.data;var K=m.lpTableIsFirstRow;var W=m.lpTableIsLastRow;var L=function(){return(K==null?0:K())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},A=function(){return(K==null?0:K())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(W==null?0:W())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.r("ytm-lp-offer-table-row-view-model",null,_.r("div",{class:"ytLpOfferTableRowViewModelHost"},_.r(_.z$,{data:function(){return G().rowHeaderCell}},{lpOfferTableCellViewModel:function(O){return _.r("div",{class:L},_.r(bXl,{data:O.data}))}}),_.r(_.z$,{data:function(){return G().contentCells}},{lpOfferTableCellViewModel:function(O){return _.r("div",{class:A},_.r(bXl,{data:O.data}))}})))},"Qd");
v_P.idomCompat=!0;var $1F=_.P(function(m){var G=m.data;var K=m.themeOverride;var W=_.xS().resolve(_.fn(_.l_)),L=function(){return _.Q(G().logo,CvS)||{}};
m={};return _.r("ytm-lp-offer-table-section-view-model",null,_.r("div",{class:"ytLpOfferTableViewModelHost"},_.r(_.p,{cond:function(){var A,O;return W&&W()||(K==null?0:K().useDarkTheme)?(A=L())==null?void 0:A.imageDark:(O=L())==null?void 0:O.imageLight},
then:function(A){return _.r(_.oC,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var O,c,u;return(u=(O=L())==null?void 0:(c=O.accessibilityData)==null?void 0:c.label)!=null?u:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.r(_.Nm,{text:function(){return G().subtitle}})),_.r(_.p,{cond:function(){return G().disclaimers},
then:function(A){return _.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.r(_.D0,{each:A},function(O){return _.r("div",null,_.r(_.Nm,{text:O}))}))}}),_.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.r(_.z$,{data:function(){return G().rows}},{lpOfferTableRowViewModel:function(A,O){return _.r(v_P,{data:A.data,
lpTableIsFirstRow:function(){return O()===0},
lpTableIsLastRow:function(){return O()===G().rows.length-1}})}})),_.r("div",{class:_.VO((m.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return G().hasFooterBackground},m))},_.r(_.p,{cond:function(){return G().footer},
then:function(){return _.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.r(_.Nm,{text:function(){return G().footer}}))}}),_.r(_.p,{cond:function(){return G().footerTitle},
then:function(){return _.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.r(_.Nm,{text:function(){return G().footerTitle}}))}}),_.r(_.p,{cond:function(){return G().footerDescription},
then:function(){return _.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.r(_.Nm,{text:function(){return G().footerDescription}}))}}),_.r(_.p,{cond:function(){return G().footerDescriptions},
then:function(A){return _.r("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.r(_.D0,{each:A},function(O){return _.r("div",null,_.r(_.Nm,{text:O}))}))}}))))},"Rd");
$1F.idomCompat=!0;var sIB=_.P(function(m){var G=m.data;var K=m.themeOverride;var W=_.xS().resolve(_.fn(_.l_)),L=function(){var c;return K==null?void 0:(c=K())==null?void 0:c.useDarkTheme},A=function(){var c,u;
return W&&W()||L()?(c=G().image)==null?void 0:c.imageDark:(u=G().image)==null?void 0:u.imageLight};
m={};m=_.VO("ytmLpSmallFeatureSectionViewModelHost",(m.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=L,m));var O=function(){var c,u,h;return(h=(c=G().image)==null?void 0:(u=c.accessibilityData)==null?void 0:u.label)!=null?h:""};
return _.r("ytm-lp-small-feature-section-view-model",{class:m},_.r(_.p,{cond:function(){return A()&&!uLG},
then:function(){return _.r("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.r(_.oC,{data:function(){return A()},
alt:O,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.r("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.r("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.r(_.p,{cond:function(){return G().title},
then:function(c){return _.r(_.Nm,{text:c})}})),_.r("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.r(_.Nm,{text:function(){return G().description}}))))},"Sd");
sIB.idomCompat=!0;var q04=_.P(function(m){var G=m.data;var K=m.themeOverride;m={};return _.r("ytm-lp-small-feature-section-group-view-model",null,_.r("div",{class:_.VO("ytmLpSmallFeatureSectionGroupViewModelHost",(m.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(K==null||!K().useDarkTheme)},m))},_.r("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.r(_.z$,{data:function(){return G().smallFeatures}},{lpSmallFeatureSectionViewModel:function(W){return _.r("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.r(sIB,{data:W.data,
themeOverride:K}))}}))))},"Td");
q04.idomCompat=!0;_.sh(_.P(function(m){var G=m.data;var K=function(){return G().forcedTheme==="USER_INTERFACE_THEME_DARK"},W=function(){return G().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},L=function(){var O="",c,u;
var h=_.xS().resolve(_.fn(_.l_));h=K()||(h==null?0:h())?(c=G().themedImageViewModel)==null?void 0:c.imageDark:(u=G().themedImageViewModel)==null?void 0:u.imageLight;(c=pDf((h==null?void 0:h.sources)||[]))&&c.url&&(O=W()?"background-image: linear-gradient(to bottom, transparent, "+(G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"80%")+", var(--premium-yt-spec-base-background)), url("+_.MI(c.url)+");":"background-image: url("+_.MI(c.url)+");");return O},A=function(){return{useDarkTheme:K()}};
m={};return _.r("yt-section-group-view-model",null,_.r("div",{class:_.VO("yt-lp-section-group-view-model",(m["yt-lp-section-group-view-model--premium-force-dark-mode"]=K,m["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return G().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},m))},_.r(_.p,{cond:function(){return L().length},
then:function(){var O={};return _.r("div",{class:_.VO("yt-lp-section-group-view-model__bg-image",(O["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=W,O)),style:L})}}),_.r("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.r(_.z$,{data:function(){return G().sections}},{lpHeaderUpsellBannerViewModel:function(O){return _.r(NhP,{data:O.data})},
lpFaqSectionViewModel:function(O){return _.r(pmR,{data:O.data,themeOverride:A})},
lpHeaderSectionViewModel:function(O){return _.r(JPB,{data:O.data,themeOverride:A})},
lpHeadlineSectionViewModel:function(O){return _.r(D1l,{data:O.data,themeOverride:A})},
lpLargeFeatureSectionViewModel:function(O){return _.r(t$4,{data:O.data,themeOverride:A})},
lpOfferCardSectionViewModel:function(O){return _.r(o_R,{data:O.data,themeOverride:A})},
lpComplexOfferCardSectionViewModel:function(O){return _.r(Y00,{data:O.data})},
lpOfferTableSectionViewModel:function(O){return _.r($1F,{data:O.data,themeOverride:A})},
lpSmallFeatureSectionGroupViewModel:function(O){return _.r(q04,{data:O.data,themeOverride:A})},
lpCouponBannerViewModel:function(O){return _.r(rPR,{data:O.data})}}))))},"Ud"),"yt-section-group-view-model",{props:{data:_.Dd}});_.E_0=_.P(function(m){var G=_.S5(bdf,function(){var O;return(O=m.data())==null?void 0:O.chipBarStateEntityKey}),K=function(){return m.data().disableDeselection},W=_.g(_.EQ(function(){var O;
if(((O=G())==null?void 0:O.selectedIndex)!=void 0)return G().selectedIndex;var c,u;O=_.g(((c=m.data())==null?void 0:(u=c.chips)==null?void 0:u.entries())||[]);for(c=O.next();!c.done;c=O.next()){c=_.g(c.value);u=c.next().value;c=c.next().value;var h=void 0;if((h=_.Q(c,_.NV))==null?0:h.selected)return u}return-1})),L=W.next().value,A=W.next().value;
return _.r("chip-bar-view-model",{class:_.VO("ytChipBarViewModelHost",m.className),role:"tablist"},_.r(_.z$,{data:function(){return m.data().chips}},{chipViewModel:function(O,c){return _.r("div",{class:"ytChipBarViewModelChipWrapper"},_.r(_.mLk,{data:O.data,
selected:function(){return c()===L()},
callback:function(u,h){u=!!h;h=c();A(u?h:-1);var J,N=(J=m.data())==null?void 0:J.chipBarStateEntityKey;N&&u&&_.$e(_.Bp("chipBarStateEntity",N,{key:N,selectedIndex:h}))},
disableDeselection:m.disableDeselection||K}))}}))},"Vd");_.sh(_.E_0,"chip-bar-view-model",{props:{data:_.nN,className:_.nN,disableDeselection:_.nN}});_.HXk=_.P(function(m){var G=m.data;m={};return _.r("divider-view-model",{class:_.VO("dividerViewModelHost",(m.dividerViewModelInsetThinPadding=function(){return G().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},m))},_.r("div",{class:_.VO("dividerViewModelBaseDivider",function(){return vMv(G().dividerStyle)})}))},"Wd");
_.HXk.idomCompat=!0;_.sh(_.HXk,"divider-view-model",{props:{data:_.Dd}});var Un=new Map,z_=new Map,qqJ=0,lk;var Ceo=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],dio={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var IUo,jIX;IUo=function(m){return function(G){return function(){return(G==null?void 0:G())!==void 0?String(G())+m:void 0}}};
_.uo=IUo("px");jIX=IUo("s");var kCS=s6G(function(m){return m.targetGroupId}).useUpdatableData;_.h0=_.P(function(m){function G(Ls){return function(){var gd=I().numItemsPerGridRow,Qf=Ls()*gd;gd=Qf+gd;var JV,DF;return(DF=(JV=W().contents)==null?void 0:JV.slice(Qf,gd))!=null?DF:[]}}
var K=_.ql(m,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1,useUpdatedMargin:!1}),W=K.data,L=K.layoutContainerWidth,A=K.shouldUseOwnContainerSize,O=K.marginSettings,c=K.useUpdatedMargin,u=rvP(),h=_.g(kCS(function(){var Ls,gd;return{targetGroupId:(Ls=W().targetingContext)==null?void 0:(gd=Ls.targetGroupId)==null?void 0:gd[0]}})).next().value;
K=_.g(_.g_(!0,void 0,"CC9Rdb"));var J=K.next().value,N=K.next().value,D=function(){var Ls,gd=(Ls=_.Q(W().showMoreButton,_.J6))==null?void 0:Ls.trackingParams;gd&&_.xq(_.l1(),gd);N(!1)},t=function(){var Ls,gd=(Ls=_.Q(W().showLessButton,_.J6))==null?void 0:Ls.trackingParams;
gd&&_.xq(_.l1(),gd);N(!0)};
K=_.g(_.BR({canHaveZeroSize:!1}));var a=K.next().value;K=K.next().value;var v=function(){var Ls;return(Ls=W().contentAspectRatio)!=null?Ls:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.pT(function(){var Ls=A()&&a.width()>0?a.width()||L():L(),gd,Qf=(gd=m.data())==null?void 0:gd.responsiveContainerConfiguration;
Ls=_.pQ({containerWidth:Ls,sizing:Qf?J3(Qf==null?void 0:Qf.responsiveSize):"EXTRA_COMPACT",marginSettings:O(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:Ls.maxContainerWidth,numItemsPerGridRow:Ls.numItems,contentPadding:A()?Ls.margin:Ls.contentMargin,itemWidth:Ls.itemWidth,itemMargin:Ls.gutter/2}},void 0,"YIvnde"),Z=function(){if(W().enableVerticalExpansion){if(J())return k();
var Ls,gd,Qf=(gd=(Ls=W().contents)==null?void 0:Ls.length)!=null?gd:0;return Math.ceil(Qf/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},k=function(){var Ls;
return Math.ceil(((Ls=W().minCollapsedItemCount)!=null?Ls:1)/I().numItemsPerGridRow)},z=function(){return W().enableVerticalExpansion&&W().showLessButton&&!J()&&Z()>k()},X=function(){var Ls,gd;
return W().enableVerticalExpansion&&W().showMoreButton&&J()&&((gd=(Ls=W().contents)==null?void 0:Ls.length)!=null?gd:0)>I().numItemsPerGridRow*k()},f=function(){return!z()},U=function(){return!X()},l={};
return _.r("grid-shelf-view-model",{class:_.VO("ytGridShelfViewModelHost",m.className,(l.ytGridShelfViewModelHostHasBottomButton=function(){return z()||X()},l.ytGridShelfViewModelHostIsDismissed=function(){var Ls,gd=(Ls=h())!=null?Ls:{};
Ls=gd.behavior;var Qf=gd.isDismissed,JV=gd.stamperContextTargetId;gd=gd.stamperIndex;if(!(_.F("mweb_see_fewer_shorts_group_dismissal")&&Qf&&Ls&&JV))return!1;var DF;Qf=u;for(var kG,eo,xG=((kG=Qf)==null?0:kG.targetId)?_.EZ((eo=Qf)==null?void 0:eo.targetId):void 0;((DF=Qf)==null?0:DF.parent)&&xG!==JV;)Qf=Qf.parent,eo=kG=void 0,xG=((kG=Qf)==null?0:kG.targetId)?_.EZ((eo=Qf)==null?void 0:eo.targetId):void 0;DF=xG===JV?Qf:void 0;if(!DF)return!1;var Ji;JV=DF==null?void 0:(Ji=DF.stamperIndex)==null?void 0:
Ji.call(DF);return Ls==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||Ls==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&JV!=null&&gd!=null&&JV>gd},l.ytGridShelfViewModelHostOptionalMediumLayoutMargin=c,l)),
el:_.aC(K),style:_.eA({"margin-left":(0,_.uo)(function(){return I().contentPadding}),
"margin-right":(0,_.uo)(function(){return I().contentPadding})})},_.r(_.p,{cond:function(){return _.Q(W().header,ewl)},
then:function(Ls){return _.r(_.R4,{data:Ls,useUpdatedPadding:c,disableHorizontalPadding:!0})}}),_.r("div",null,_.r(_.D0,{each:function(){return Array(Z())}},function(Ls,gd){return _.r(Cbl,{className:m.className,
items:G(gd),responsiveGridShelfLayout:I,contentAspectRatio:v})})),_.r("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.r(_.z$,{data:function(){return W().showMoreButton}},{buttonViewModel:function(Ls){return _.r("div",{hidden:U},_.r(_.kP,{data:Ls.data,
onClick:D}))}}),_.r(_.z$,{data:function(){return W().showLessButton}},{buttonViewModel:function(Ls){return _.r("div",{hidden:f},_.r(_.kP,{data:Ls.data,
onClick:t}))}})))},"Yd");
_.h0.idomCompat=!0;var Cbl=_.P(function(m){var G=m.items;var K=m.responsiveGridShelfLayout;var W=m.contentAspectRatio;m=m.className;var L=(0,_.uo)(function(){return-K().itemMargin});
return _.r("div",{el:_.aC(s1d(function(A){a:{for(var O=G(),c=[],u=0;u<O.length;u++){var h=_.Q(O[u],tp4);if(!h||h==null||!h.inlinePlayerData){A=null;break a}var J=A.children.item(u);if(!J){A=null;break a}c.push({thumbnailElement:J,videoData:h})}A={gridVideoPreviewData:{gridItems:c}}}return A})),
class:_.VO("ytGridShelfViewModelGridShelfRow",m),style:_.eA({"margin-left":L,"margin-right":L})},_.r(_.z$,{data:G,replacementWrapper:function(A){return _.r(V$X,{responsiveGridShelfLayout:K},A)}},{shortsLockupViewModel:function(A){return _.r(V$X,{responsiveGridShelfLayout:K},_.r(wAG,{data:A.data,
aspectRatio:function(){return W()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.F("mweb_enable_one_line_title_on_shorts")?1:_.F("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(A){return _.r(V$X,{responsiveGridShelfLayout:K},_.r(_.xU,{data:A.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Zd"),V$X=_.P(function(m){return _.r("div",{style:_.eA({width:(0,_.uo)(function(){return m.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+m.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},m.children)},"$d");
_.h0.idomCompat=!0;_.sh(_.h0,"grid-shelf-view-model",{props:{data:_.Dd,layoutContainerWidth:_.Dd,shouldUseOwnContainerSize:_.Dd,marginSettings:_.Dd,useUpdatedMargin:_.Dd,className:_.Dd}});_.ZXR=_.P(function(m){var G=_.g(_.g_(!1,void 0,"FVl30c")),K=G.next().value,W=G.next().value;G={};return _.r("yt-alert-banner-view-model",{class:_.VO("ytAlertBannerViewModelHost",m.className,function(){var L;a:switch((L=m.data())==null?void 0:L.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":L="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":L="ytAlertBannerViewModelWarning";break a;default:L="ytAlertBannerViewModelInformational"}return L},(G.ytAlertBannerViewModelDismissed=
K,G.ytAlertBannerViewModelFullbleed=m.fullbleed,G.ytAlertBannerViewModelNarrow=m.narrow,G.ytAlertBannerViewModelIsInRichGrid=m.isInRichGrid,G))},_.r(_.p,{cond:function(){var L;
return!((L=m.data())==null?0:L.hideIcon)},
then:function(){return _.r("div",{class:"ytAlertBannerViewModelIcon"},_.r(_.fN,{icon:function(){return"info_circle"}}))}}),_.r("div",{class:"ytAlertBannerViewModelOuterContainer"},_.r("div",{class:"ytAlertBannerViewModelContainer"},_.r("div",{class:"ytAlertBannerViewModelContent"},_.r("div",{class:"ytAlertBannerViewModelHeading"},_.r(_.Nm,{text:function(){var L;
return(L=m.data())==null?void 0:L.heading}})),_.r("div",{class:"ytAlertBannerViewModelBody"},_.r(_.Nm,{text:function(){var L;
return(L=m.data())==null?void 0:L.body}})))),_.r(_.z$,{data:function(){var L;
return(L=m.data())==null?void 0:L.actionButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.r(_.z$,{data:function(){var L;
return(L=m.data())==null?void 0:L.dismissButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var A;((A=m.data())==null?0:A.disableLocalDismissBehavior)||W(!0)}})}}))},"ae");_.sh(_.ZXR,"yt-alert-banner-view-model",{props:{data:_.Dd,fullbleed:_.Dd,narrow:_.Dd,isInRichGrid:_.Dd,className:_.Dd}});var d1k;_.pM=_.P(function(m){return _.r("basic-content-view-model",{class:_.VO("ytBasicContentViewModelHost",_.sQ(m.className))},_.r(_.p,{cond:function(){return m.data().headline},
then:function(G){return _.r("div",{class:"ytBasicContentViewModelHeadline"},_.r(_.Nm,{text:G}))}}),_.r(_.D0,{each:function(){return m.data().paragraphs||[]},
keyBy:"INDEX"},function(G){return _.r("div",{class:"ytBasicContentViewModelParagraph"},_.r(_.p,{cond:function(){var K=G();return!!(K.header||K.customHeader||K.headline)},
then:function(){return _.r(d1k,{paragraph:G})}}),_.r(_.p,{cond:function(){return G().asset||G().text},
then:function(){return _.r("div",{class:"ytBasicContentViewModelParagraphContent"},_.r(_.p,{cond:function(){return G().asset},
then:function(K){return _.r("div",{class:"ytBasicContentViewModelParagraphAsset"},_.r(_.z$,{data:K},{contentPreviewImageViewModel:_.VA}))}}),_.r(_.p,{cond:function(){return G().text},
then:function(K){return _.r("div",{class:"ytBasicContentViewModelParagraphText"},_.r(_.Nm,{text:K}))}}))}}))}))},"be");
d1k=_.P(function(m){var G=m.paragraph;return _.r(_.zL,null,_.r(_.p,{cond:function(){return G().headline},
then:function(K){return _.r(_.Nm,{text:K,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.r(_.z$,{data:function(){return G().header||G().customHeader}},{sectionHeaderViewModel:function(K){return _.r(_.R4,{data:K.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ce");_.Pb0=_.P(function(m){function G(){var t,a;u((a=(t=L)==null?void 0:t.isKeyBoardInUse())!=null?a:!1)}
function K(){u(!1)}
function W(){var t;return c()?(t=m.focusedClassName)==null?void 0:t.call(m):""}
var L=_.xS().resolve(_.fn(_.sH)),A=_.g(_.g_(!1,void 0,"SgkTXc")),O=A.next().value;A=A.next().value;var c=O,u=A,h=function(){var t,a;return((t=m.toggleable)==null?0:t.call(m))?(a=m.toggled)==null?void 0:a.call(m):void 0},J=_.dn(function(t){var a,v=(a=m.command)==null?void 0:a.call(m);
v&&_.xS().resolve(_.S1).resolveCommand(v);var I;(I=m.onClick)==null||I.call(m,t)}),N=_.dn(G),D=_.dn(K);
return _.r(_.p,{cond:function(){var t;if(t=m.command){t=m.command();t=yLF(t);var a=t.href;t=!(!t.navigatingCommand||!a)}return t},
then:function(){return _.r(_.qm,Object.assign({},{command:m.command,style:m.style,ariaDescribedby:m.ariaDescribedby,ariaHidden:m.ariaHidden,ariaLabel:m.ariaLabel,ariaLabelledby:m.ariaLabelledby,ariaSelected:m.ariaSelected,disabled:m.disabled,dir:m.dir,tabIndex:m.tabIndex,target:m.target,title:m.title,onClick:m.onClick},{className:_.VO("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",m.className,function(){return W()}),
onFocusin:G,onFocusout:K,ariaCurrent:function(){var t,a;return(a=(t=m.ariaCurrent)==null?void 0:t.call(m))!=null?a:h()}}),m.children)},
else:function(){return _.r("button",{"on:click":J,"on:focusin":N,"on:focusout":D,class:_.VO("ytButtonOrAnchorHost","ytButtonOrAnchorButton",m.className,function(){return W()}),
style:m.style,"aria-describedby":m.ariaDescribedby,"aria-hidden":m.ariaHidden,"aria-label":m.ariaLabel,"aria-labelledby":m.ariaLabelledby,"aria-pressed":h,dir:m.dir,disabled:m.disabled,tabindex:m.tabIndex,title:m.title},m.children)}})},"de");var yPX=_.P(function(m){m=_.ql(m,{disabled:!1});var G=m.active,K=m.disabled;m={};m=_.VO("ytSwitchShapeTrack",(m.ytSwitchShapeTrackActive=function(){return G()},m.ytSwitchShapeTrackDisabled=function(){return K()},m));
var W={};W=_.VO("ytSwitchShapeKnob",(W.ytSwitchShapeKnobActive=function(){return G()},W));
return _.r("switch-shape",{class:"ytSwitchShapeHost"},_.r("div",{class:m}),_.r("div",{class:W}))},"ee");var eEG=_.P(function(m){var G=_.ql(m,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),K=G.data;m=G.className;var W=G.handleOnTapEventInParent,L=G.parentActive,A=G.onTap;G=_.g(_.EQ(function(){var D;return(D=L())!=null?D:K().switchedOnByDefault||!1}));
var O=G.next().value,c=G.next().value,u=function(){return K().isDisabled},h=_.Q3("button");
G=_.dn(function(D){return D.key==="Enter"?(D.preventDefault(),h.value.click(),!1):!0});
var J=_.dn(function(D){if(K().handleOnTapEventInParent||W())return!0;if(u())return!1;if(A)return A(D),!0;e79(K(),O(),D);c(!O());return!1}),N={};
N=_.VO("ytSwitchButtonViewModelButton",(N.ytSwitchButtonViewModelTappable=function(){return!u()},N));
return _.r("switch-button-view-model",{class:_.VO("ytSwitchButtonViewModelHost",m)},_.r("button",{el:h,class:N,"on:click":J,"on:keydown":G,"aria-label":function(){return O()?K().a11yLabelSwitchedOn:K().a11yLabelSwitchedOff},
"aria-checked":O,"aria-disabled":u,role:"switch"},_.r(yPX,{active:O,disabled:u})))},"fe");var fU4=_.P(function(m){var G=m.data;var K=m.isLeading;var W=m.hideSelectionTextChevron;var L=m.isToggled;var A=m.shouldNotFillIcon;var O=function(){if(K())var N=G().leadingImage;else{var D;N=(D=G().trailingImage)!=null?D:_.NB(G().themedTrailingImage)}return N},c=function(){a:switch(G().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var N="expand_more";
break a;default:N="chevron_right"}return N};
m={};var u=_.VO("yt-list-item-view-model__image-container",(m["yt-list-item-view-model__leading"]=K,m["yt-list-item-view-model__trailing"]=function(){return!K()},m)),h=_.VO("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
m={};var J=_.VO("yt-list-item-view-model__accessory",(m["yt-list-item-view-model__leading"]=K,m["yt-list-item-view-model__trailing"]=function(){return!K()},m));
return _.r(_.p,{cond:function(){var N=G(),D=K();return!!(D&&(N.leadingImage||N.leadingAccessory)||!D&&(N.trailingImage||N.trailingButton||N.trailingButtons||N.selectionText||N.themedTrailingImage||N.trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"))},
then:function(){return _.r(_.zL,null,_.r(_.p,{cond:O,then:function(N){return _.r("div",{class:u,"aria-hidden":"true"},_.r(_.oC,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:function(){var D=(K()?G().leadingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON":G().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON")?K()?XAG(G().leadingIconAccessorySize):XAG(G().trailingIconAccessorySize):void 0;return D},
className:h,isToggled:function(){return!(A==null?0:A())&&(L==null?void 0:L())}}))}}),_.r(_.p,{cond:function(){return K()&&G().leadingAccessory},
then:function(){return _.r("div",{class:u},_.r(_.z$,{data:function(){return G().leadingAccessory}},{avatarViewModel:function(N){return _.r(_.O9,{data:N.data,
avatarButtonCustomClassName:h})},
collectionThumbnailViewModel:function(N){return _.r(loX,{data:N.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.r(_.p,{cond:function(){return!K()&&G().trailingButton},
then:function(){return _.r("div",{class:"yt-list-item-view-model__button-container"},_.r(_.z$,{data:function(){return G().trailingButton}},{buttonViewModel:function(N){return _.r(_.kP,{data:N.data,
className:J})}}))}}),_.r(_.p,{cond:function(){var N;
return!K()&&((N=G().trailingButtons)==null?void 0:N.buttons)},
then:function(){return _.r("div",{class:"yt-list-item-view-model__button-container"},_.r(_.z$,{data:function(){var N;return(N=G().trailingButtons)==null?void 0:N.buttons}},{buttonViewModel:function(N){return _.r(_.kP,{data:N.data,
className:J})},
accountLinkButtonViewModel:function(N){return _.r(V3X,{data:N.data,className:J})},
switchButtonViewModel:function(N){return _.r(eEG,{data:N.data,className:J})},
subscribeButtonViewModel:function(N){return _.r(_.Ox,{data:N.data,isOverlay:!1,animateWidth:!1,className:J})},
toggleButtonViewModel:function(N){return _.r(_.Gx,{data:N.data,className:J})}}))}}),_.r(_.p,{cond:function(){return!K()&&!!G().selectionText},
then:function(){return _.r(_.zL,null,_.r(_.Nm,{text:function(){return G().selectionText},
className:_.VO("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.r(_.p,{cond:function(){return!(W==null?0:W())},
then:function(){return _.r(_.fN,{icon:c,className:"yt-list-item-view-model__chevron-icon"})}}))}}),_.r(_.p,{cond:function(){return!K()&&G().trailingImageAccessoryType==="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR"},
then:function(){return _.r("div",{class:"yt-list-item-view-model__new-content-indicator"})}}))}})},"ge");var x10=_.P(function(m){var G=m.data;return _.r(_.p,{cond:function(){return G().title||G().subtitle},
then:function(){return _.r("div",{class:"yt-list-item-view-model__text-wrapper"},_.r(_.p,{cond:function(){return G().title},
then:function(K){return _.r("div",{class:"yt-list-item-view-model__title-wrapper"},_.r(_.Nm,{text:K,className:"yt-list-item-view-model__title"}))}}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(K){return _.r(_.Nm,{text:K,className:"yt-list-item-view-model__subtitle"})}}))}})},"he");var Xml=_.P(function(m){var G=m.data;var K=m.hideSelectionTextChevron;var W=m.TrailingAccessory;var L=m.isToggled;var A=m.disabled;var O=m.isSelectItem;var c=m.isCompact;var u=m.inPopup;var h=m.disableHorizontalPadding;var J=m.isTappableWithoutSelect;var N=m.useButtonOrAnchor;var D=m.onTap;var t=m.shouldNotFillIcon;var a=function(){return _.r(x10,{data:G,onTap:D,useButtonOrAnchor:N,isTappableWithoutSelect:J,isToggled:L})};
m={};return _.r("div",{class:_.VO("yt-list-item-view-model__label",(m["yt-list-item-view-model__container"]=function(){return!(O==null?0:O())},m["yt-list-item-view-model__container--disabled"]=function(){return!!G().isDisabled||!(A==null||!A())},m["yt-list-item-view-model__container--has-subtitle"]=function(){return!!G().subtitle},m["yt-list-item-view-model__container--compact"]=c,m["yt-list-item-view-model__container--tappable"]=J,m["yt-list-item-view-model__container--in-popup"]=u,m["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(h==null?void 0:h())&&!(O==null?0:O())},m))},_.r(fU4,{data:G,
isLeading:!0,hideSelectionTextChevron:K,isToggled:L,shouldNotFillIcon:t}),_.r(_.p,{cond:function(){return(N==null?void 0:N())&&(J==null?void 0:J())},
then:function(){return _.r(_.Pb0,{command:function(){return _.wH(G().rendererContext)},
onClick:D,className:"yt-list-item-view-model__button-or-anchor",toggleable:L!==void 0,toggled:L},_.r(a,null))},
else:function(){return _.r(a,null)}}),_.r(_.p,{cond:function(){return!!W},
then:function(){return _.r("div",{class:"yt-list-item-view-model__trailing"},W&&_.r(W,null))},
else:function(){return _.r(fU4,{data:G,isLeading:!1,hideSelectionTextChevron:K,isToggled:L,shouldNotFillIcon:t})}}))},"ie");var REi=_.P(function(m){var G=_.ql(m,{checked:!1,disabled:!1});m=G.name;var K=G.onChange,W=G.onClick,L=G.checked,A=G.labelRenderable,O=G.hasLeadingLabel,c=G.labelClass,u=G.isCompact,h=G.selectElementClass,J=G.disableHorizontalPadding;G=G.disabled;var N="checkbox"+_.cZ(_.rA),D=_.dn(function(v){W==null||W(v);return!1}),t=_.dn(function(v){K==null||K(v);
return!1}),a={};
return _.r("checkbox-shape",null,_.r("label",{class:_.VO("ytCheckboxShapeHost",c,(a.ytCheckboxShapeHostCompact=u,a.ytCheckboxShapeDisableHorizontalPadding=J,a))},_.r("input",{class:"ytCheckboxShapeInput",id:N,checked:L,name:m,type:"checkbox",disabled:G,"prop:checked":L,"on:change":t,"on:click":D}),_.r(_.p,{cond:function(){return!(O==null?0:O())},
then:function(){return _.r(S0o,{isLeading:!0,selectElementClass:h})}}),_.r(_.p,{cond:function(){return!!A},
then:function(){return _.r("div",{class:"ytCheckboxShapeLabel"},A==null?void 0:A())}}),_.r(_.p,{cond:O,
then:function(){return _.r(S0o,{isLeading:!1,selectElementClass:h})}})))},"je");
REi.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var S0o=_.P(function(m){var G=m.selectElementClass;m={};return _.r("div",{class:_.VO("ytCheckboxShapeCheckbox",G,(m.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(G==null?0:G())},m)),
"aria-hidden":"true"},_.r(_.fN,{icon:_.F("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.r(_.fN,{icon:_.F("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"ke");_.J0=_.P(function(m){var G=m.name;var K=m.onChange;var W=m.onClick;var L=m.checked;var A=m.labelRenderable;var O=m.useCheckIcon;var c=m.hasLeadingLabel;var u=m.labelClass;var h=m.isCompact;var J=m.selectElementClass;var N=m.ariaLabel;var D=m.className;m=m.disabled;var t="radio"+_.cZ(_.rA),a=_.Q3("input"),v=_.F("enable_ios_webview_radio_button_responsiveness"),I=_.dn(function(l){a.value.checked=!(L==null||!L());K==null||K(l);return!1}),Z=_.dn(function(l){W==null||W(l);
return!1}),k=_.g(_.g_(!1,void 0,"Ucg5gd")),z=k.next().value,X=k.next().value;
k=_.dn(function(){var l;((l=_.xS().resolve(_.fn(_.sH)))==null?0:l.isKeyBoardInUse())&&X(!0)});
var f=_.dn(function(){X(!1)}),U={};
return _.r("radio-shape",{class:_.VO("yt-radio-shape",D)},_.r("input",{el:a,class:"yt-radio-shape__input",id:t,"prop:checked":L,name:G,type:"radio",disabled:m,"on:change":I,"on:click":Z,"aria-label":N,"on:focusin":k,"on:focusout":f}),_.r("label",{class:_.VO("yt-radio-shape__label-container",u,(U["yt-radio-shape--compact"]=h,U["yt-radio-shape__label-container--keyboard-focused"]=z,U)),for:t},_.r(_.p,{cond:function(){return!(c==null?0:c())},
then:function(){return _.r(U1G,{checked:L,useCheckIcon:O,isLeading:!0,selectElementClass:J,usePassthrough:v})}}),_.r(_.p,{cond:function(){return!!A},
then:function(){var l={};return _.r("div",{class:_.VO("yt-radio-shape__label",(l["yt-radio-shape--event-passthrough"]=v,l)),"aria-hidden":function(){return(N==null?0:N())?"true":"false"}},A==null?void 0:A())}}),_.r(_.p,{cond:c,
then:function(){return _.r(U1G,{checked:L,useCheckIcon:O,isLeading:!1,selectElementClass:J,usePassthrough:v})}})))},"le");
_.J0.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};
var U1G=_.P(function(m){var G=m.useCheckIcon;var K=m.selectElementClass;m=m.usePassthrough;var W=_.F("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE",L=_.F("enable_web_delhi_icons")?"CIRCLE_FULL":W,A={};return _.r("div",{class:_.VO("yt-radio-shape__radio",K,(A["yt-radio-shape__radio--check-icon"]=G,A["yt-radio-shape__radio--radio-default-style"]=function(){return!(K==null?0:K())},A["yt-radio-shape--event-passthrough"]=m,A)),
"aria-hidden":"true"},_.r(_.fN,{icon:function(){return(G==null?0:G())?"CHECK":W}}),_.r(_.fN,{icon:function(){return(G==null?0:G())?"CHECK":L},
active:function(){return!(G==null?0:G())}}))},"me");_.Nb=_.P(function(m){var G=m.data;var K=m.isMenuItem;var W=m.isCompact;var L=m.onTap;var A=m.trailingAccessory;var O=m.hideSelectionTextChevron;var c=m.disabled;var u=m.inPopup;var h=m.disableHorizontalPadding;var J=m.isOverlay;var N=m.isToggled;var D=m.ariaLabel;var t=m.ariaPressed;var a=m.shouldNotFillIcon;var v=!_.F("web_enable_killswitch_for_selectable_list_item_on_tap_fix");m=!_.F("web_enable_killswitch_for_skip_child_tags");var I=_.RC(function(rK){return SqG(G(),rK)}),Z=function(){return(h==
null?void 0:h())||G().disableHorizontalPadding},k=function(){var rK;
return!((rK=G())==null||!rK.entitySelectorType)},z=function(){return k()?Object.assign({},G(),I().data):G()},X=function(){return!!z().isDisabled||!(c==null||!c())},f=_.Uid(function(){return z().rendererContext}),U=function(){return!(z().isSelected===void 0||!z().selectionStyle||z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},l=function(){return(_.gH(z().rendererContext)||L)&&!U()},Ls={},gd=_.VO("yt-list-item-view-model__container",(Ls["yt-list-item-view-model__container--tappable"]=
function(){return _.gH(z().rendererContext)||U()},Ls["yt-list-item-view-model__container--compact"]=W,Ls["yt-list-item-view-model__container--in-popup"]=u,Ls["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(Z==null?void 0:Z())&&U()},Ls)),Qf=function(){return z().leadingImage||z().leadingAccessory},JV=_.VO("yt-list-item-view-model__image-container",function(){return Qf()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
Ls=_.WR();var DF=_.g(_.g_(!1,void 0,"ef0FO")),kG=DF.next().value,eo=DF.next().value,xG=function(){return _.r(Xml,{data:z,hideSelectionTextChevron:O,TrailingAccessory:A,isToggled:N,disabled:c,isSelectItem:U,isCompact:W,inPopup:u,disableHorizontalPadding:Z,isTappableWithoutSelect:l,useButtonOrAnchor:Ji,onTap:L,shouldNotFillIcon:a})},Ji=_.F("web_button_or_anchor_list_item");
DF={};return _.r("yt-list-item-view-model",{el:_.aC(_.On(function(){return X()?void 0:z().rendererContext},void 0,void 0,Ji?["A".toString(),
"BUTTON".toString()]:[]),R7o(function(rK){if(!X()){var So;if(So=v)So=z().selectionStyle,So=So==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||So==="LIST_ITEM_SELECTION_STYLE_RADIO"||So==="LIST_ITEM_SELECTION_STYLE_DEFAULT";So||L==null||L(rK)}},m?["A".toString(),
"BUTTON".toString()]:[]),Anf(function(){return l==null?void 0:l()},{focusin:function(){var rK;
((rK=_.xS().resolve(_.fn(_.sH)))==null?0:rK.isKeyBoardInUse())&&eo(!0)},
focusout:function(){eo(!1)}})),
class:_.VO("yt-list-item-view-model",(DF["yt-list-item-view-model--is-overlay"]=J,DF["yt-list-item-view-model--keyboard-focused"]=kG,DF["yt-list-item-view-model--hidden"]=function(){return k()?I().isHidden:!1},DF)),
role:function(){return(K==null?0:K())?"menuitem":"listitem"},
tabindex:function(){var rK=l();var So=Ji;U();rK=So?void 0:_.F("web_enable_killswitch_tabindex_fix")?L||rK?0:void 0:rK?0:void 0;return rK},
"on:keydown":Ls,"aria-label":function(){var rK;return(D==null?void 0:D())||((rK=f())==null?void 0:rK.label)},
"aria-pressed":t},_.r(_.p,{cond:U,then:function(){return _.r(_.tw,null,_.r(_.Jw,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.r(REi,{labelRenderable:xG,
isCompact:W,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Qf()},
labelClass:gd,selectElementClass:JV,disableHorizontalPadding:Z,onClick:v?L:void 0,disabled:X})}),_.r(_.Jw,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.r(_.J0,{labelRenderable:xG,
isCompact:W,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Qf()},
labelClass:gd,selectElementClass:JV,onClick:v?L:void 0,disabled:X})}),_.r(_.Jw,{when:function(){return z().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.r(_.J0,{labelRenderable:xG,
isCompact:W,checked:function(){return z().isSelected},
hasLeadingLabel:function(){return!!Qf()},
labelClass:gd,selectElementClass:JV,useCheckIcon:!0,onClick:v?L:void 0,disabled:X})}),_.r(_.NC,null,xG))},
else:xG}))},"ne");
_.Nb.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.D$=_.P(function(m){var G=_.g(_.BR({canHaveZeroSize:!1})),K=G.next().value;G=G.next().value;var W=function(){return AqF(K.width(),m.data().responsiveContainerConfiguration)||ihM(K.width(),m.data().linearLayoutContainerConfiguration)};
return _.r("yt-linear-layout-view-model",{el:_.aC(G),class:"ytLinearLayoutViewModelHost"},_.r("div",{class:_.VO("ytLinearLayoutViewModelContainer",function(){a:switch(m.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var L="ytLinearLayoutViewModelHorizontal";break a;default:L="ytLinearLayoutViewModelVertical"}return L},function(){var L=m.data().linearLayoutContainerConfiguration;
return L?[MzV(L.flexDirection),TPo(L.justifyContent),mYd(L.alignItems)].join(" "):""}),
style:function(){var L;var A=((L=W())==null?void 0:L.containerStyles)||{};return _.eA(A)()}},_.r(_.z$,{data:function(){return m.data().items},
wrapper:function(L,A,O){return _.r("div",{style:function(){var c=O(),u;if((u=W())==null)c=void 0;else{var h=u.itemStyles,J,N;var D=(N=(J=m.data().items)==null?void 0:J.length)!=null?N:0;c=h.call(u,c===0,c===D-1)}return _.eA(c||{})()}},L())}},{lockupViewModel:function(L){return _.r(_.xU,{data:L.data,
containerLayoutConfig:function(){var A;return(A=W())==null?void 0:A.containerLayoutConfig}})},
basicContentViewModel:_.pM,buttonViewModel:_.kP,linearLayoutViewModel:_.D$,thumbnailViewModel:Hr,descriptionPreviewViewModel:_.Su,listItemViewModel:_.Nb,sectionHeaderViewModel:_.R4})))},"oe");_.sh(_.D$,"yt-linear-layout-view-model",{props:{data:_.Dd}});_.sh(_.U3,"chips-shelf-view-model",{props:{data:_.Dd,callback:_.nN,selectionBehavior:_.Dd,disableChipsScrollAnimation:_.Dd,nextButtonStyle:_.Dd}});_.sh(_.P(function(m){return _.r("yt-comment-filter-context-view-model",{class:_.VO("ytCommentFilterContextHost",m.className)},_.r(_.Nm,{text:function(){return m.data().text}}))},"pe"),"yt-comment-filter-context-view-model",{props:{data:_.Dd,
className:_.nN}});_.zE4=_.P(function(m){var G=m.data;var K=m.onTap;var W=m.onSwitch;var L=m.overrideDisabled;m=m.disableHorizontalPadding;var A=_.g(_.EQ(function(){var D;return((D=xiG(J()))==null?void 0:D.switchedOnByDefault)||!1})),O=A.next().value,c=A.next().value;
A=_.g(_.g_(!1,void 0,"V0hCrd"));var u=A.next().value,h=A.next().value,J=function(){var D;if(!(D=G().switchButton)){var t=G();D=L==null?void 0:L();t={switchOnCommand:t.switchOnCommand,switchOffCommand:t.switchOffCommand,switchedOnByDefault:t.switchedOnByDefault,isDisabled:t.isDisabled,a11yLabelSwitchedOn:t.a11yLabelSwitchedOn,a11yLabelSwitchedOff:t.a11yLabelSwitchedOff};D!==void 0&&(t.isDisabled=D);D={switchButtonViewModel:t}}return D},N=function(D){var t=xiG(J());
!t||t.isDisabled||G().ignoreTapUntilCommandCompletes&&u()||(K==null||K(D),e79(t,O(),D,G().ignoreTapUntilCommandCompletes,h),c(!O()),W==null||W(O()))};
return _.r("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.r(_.Nb,{data:function(){return{title:G().title,subtitle:G().attributedSubtitle,leadingImage:G().leadingImage,leadingAccessory:G().leadingAccessory,isDisabled:G().isDisabled}},
onTap:N,isToggled:O,shouldNotFillIcon:!0,trailingAccessory:function(){return _.r(_.z$,{data:J},{switchButtonViewModel:function(D){return _.r(eEG,{data:D.data,parentActive:O,onTap:N})}})},
disableHorizontalPadding:m}))},"qe");var lUK=_.P(function(m){var G=m.data;m=m.className;var K=function(){var c;return((c=W())==null?void 0:c.isToggled)!==void 0},W=_.RC(function(c){a:{var u=G().entityKey,h=G().entitySelectorType;
if(h)switch(h){case "TOGGLEABLE_LIST_ITEM_ENTITY_SELECTOR_TYPE_TOGGLE_MENU_SERVICE_ITEM_ENTITY":if(!u)break;var J,N;c={isToggled:(N=(J=_.im.toggleMenuServiceItemEntitySelector(c,u))==null?void 0:J.isToggled)!=null?N:!1};break a;default:_.nc(new _.cw("Error: entitySelectorType defined but not matched in selector.",c,h))}c=void 0}return c}),L=_.g(_.EQ(function(){var c,u,h;
return K()?(c=W())==null?void 0:c.isToggled:(u=G())==null?void 0:(h=u.initialState)==null?void 0:h.isToggled})),A=L.next().value,O=L.next().value;
return _.r("toggleable-list-item-view-model",{el:_.aC(_.On(function(){return G().rendererContext},{onTap:function(c,u){u();
K()||O(!A())}})),
class:_.VO("toggleableListItemViewModelHost",m)},_.r(_.p,{cond:function(){if(A()){var c=G().toggledListItem;c=_.Q(c,_.T$)}else c=G().defaultListItem,c=_.Q(c,_.T$);return c},
then:function(c){return _.r(_.Nb,{data:c,isToggled:A,ariaLabel:function(){var u=A()?G().toggledListItem:G().defaultListItem,h;u=(h=_.Q(u,_.T$))==null?void 0:h.rendererContext;var J;return(J=_.Q(u,_.MB))==null?void 0:J.label},
ariaPressed:function(){return A()}})}}))},"re");var BhR=_.zq("DOWNLOAD",{},"Download"),M$2=_.zq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Thi=_.zq("RETRY",{},"Retry"),mdO=_.zq("PAUSE_DOWNLOADING",{},"Pause downloading"),isu=_.zq("RESUME_DOWNLOAD",{},"Resume download"),wPF={text:BhR,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},T_={text:M$2,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},cq6={text:Thi,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
gBd={text:mdO,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ohd={text:isu,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var G9O=_.P(function(m){var G=function(){var c=m.data();c=_.wH(c.rendererContext);var u;return(u=_.Q(c,_.xg))==null?void 0:u.videoId},K=_.RC(function(c){var u=G(),h=utG(m.data());
return u?_.uw(c,u):h?_.hM(c,h):"TRANSFER_STATE_UNKNOWN"}),W=_.S5(_.rrJ,G),L=_.RC(function(c){return _.LBo(c,G(),utG(m.data()))}),A=function(){return rqJ(K(),W(),_.wH(m.data().rendererContext),!!utG(m.data()))},O=function(){return L()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.r("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:O},_.r(_.p,{cond:function(){return!O()},
then:function(){return _.r(_.p,{cond:A,then:function(c){return _.r(_.D0,{each:c},function(u){return _.r(_.Nb,{data:u,isCompact:m.isCompact,isMenuItem:m.isMenuItem,inPopup:m.inPopup,disableHorizontalPadding:m.disableHorizontalPadding})})}})}}))},"se");
G9O.idomCompat=!0;_.Kvq=_.P(function(m){var G=m.data;var K=m.isCompact;var W=m.hideSelectionTextChevron;var L=m.inPopup;var A=m.isOverlay;var O=m.disableHorizontalPadding;var c=function(){return hW9(G())&&(L==null?void 0:L())},u=_.F("web_list_view_model_listbox_killswitch")?"menu":"listbox";
m=_.dn(function(J){if(L!=null&&L()&&_.F("web_enable_arrow_key_navigation_in_dropdown")){var N=_.wJ6(J.currentTarget);if(N.length!==0){var D=Array.prototype.indexOf.call(N,document.activeElement);switch(J.key){case "ArrowDown":J.preventDefault();pPf(N,D);break;case "ArrowUp":J.preventDefault();JqJ(N,D);break;case "Tab":J.preventDefault(),J.shiftKey?JqJ(N,D):pPf(N,D)}}}});
var h={};return _.r("yt-list-view-model",{class:_.VO("ytListViewModelHost",(h.ytListViewModelHostKaiosSpatNav=uLG&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",h)),role:function(){return c()?u:"list"},
style:_.eA({"max-height":function(){var J,N=(J=G())==null?void 0:J.visibleElementCount;if(N)return(N+.5)*40+"px"}}),
"on:keydown":m},_.r(_.z$,{data:function(){return G().listItems}},{listItemViewModel:function(J){return _.r(_.Nb,{data:J.data,
isMenuItem:c,isCompact:K,hideSelectionTextChevron:W,inPopup:L,isOverlay:A,disableHorizontalPadding:O})},
toggleableListItemViewModel:function(J){return _.r(lUK,{data:J.data})},
downloadListItemViewModel:function(J){return _.r(G9O,{data:J.data,isMenuItem:c,isCompact:K,inPopup:L,disableHorizontalPadding:O})},
switchListItemViewModel:function(J){return _.r(_.zE4,{data:J.data,disableHorizontalPadding:O})}}))},"te");
_.Kvq.idomCompat=!0;var Wvz=_.P(function(m){var G=m.data;var K=m.isOverlay;m={};return _.r("yt-course-perks-view-model",{class:_.VO("ytwCoursePerksViewModelHost",(m.ytwCoursePerksViewModelHostOverlay=K,m))},_.r("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",null,_.r(_.p,{cond:function(){return G().perks},
then:function(W){return _.r(_.Kvq,{data:function(){return{listItems:W()}},
isCompact:!0,isOverlay:K})}})))},"ue");_.sh(Wvz,"yt-course-perks-view-model",{props:{data:_.nN,isOverlay:_.nN}});_.sh(_.P(function(m){var G=m.data;return _.r("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.r("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.r(_.Nm,{text:function(){return G().progressSummary}})),_.r("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.r("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.eA({width:function(){return G().progressPercentage*100+"%"}})})))},"ve"),"yt-course-progress-view-model",{props:{data:_.Dd}});var Lv6=_.P(function(m){var G={};return _.r("yt-progress-view-model",{class:_.VO("ytwProgressViewModelHost",(G.ytwProgressViewModelHostOverlay=_.sQ(m.isOverlay,!1),G))},_.r(_.p,{cond:function(){return m.data().progressSummary},
then:function(K){return _.r("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.r(_.Nm,{text:K}))}}),_.r("div",{class:"ytwProgressViewModelHostProgressContainer"},_.r(_.p,{cond:function(){return m.data().leadingLabel},
then:function(K){return _.r("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.r(_.Nm,{text:K}))}}),_.r("div",{class:"ytwProgressViewModelHostProgressBar"},_.r("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(m.data().progressPercentage||0)*100+"%"}}))))},"we");var t0=_.P(function(m){var G=m.starNumber;var K=m.data;var W=function(){var L;return((L=K())==null?void 0:L.rating)||0};
return _.r(_.p,{cond:function(){return G()},
then:function(L){return _.r(_.tw,null,_.r(_.Jw,{when:function(){return W()>=L()-.25}},function(){return _.r("div",{class:"ytStarRatingViewModelHostStar"},_.r(_.fN,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.r(_.Jw,{when:function(){return W()>=L()-.75}},function(){return _.r("div",{class:"ytStarRatingViewModelHostStar"},_.r(_.fN,{icon:"STAR_HALF",
active:!0,size:function(){return 24}}))}),_.r(_.NC,null,function(){return _.r("div",{class:"ytStarRatingViewModelHostStar"},_.r(_.fN,{icon:"STAR",
size:function(){return 24}}))}))}})},"xe"),AVG=_.P(function(m){m=m.data;
return _.r("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.r(t0,{starNumber:1,data:m}),_.r(t0,{starNumber:2,data:m}),_.r(t0,{starNumber:3,data:m}),_.r(t0,{starNumber:4,data:m}),_.r(t0,{starNumber:5,data:m}))},"ye");_.sh(_.P(function(m){var G=_.ql(m,{}).data;return _.r("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.r("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.r(_.Nm,{text:function(){var K;return(K=G())==null?void 0:K.title}})),_.r("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.r(_.p,{cond:function(){return G().starProgressViewModels},
then:function(K){return _.r("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.r(_.z$,{data:K},{progressViewModel:Lv6}))}}),_.r("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.r("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.r(_.Nm,{text:function(){var K;
return(K=G())==null?void 0:K.averageRatingLabel}})),_.r(_.p,{cond:function(){return G().zeroStateText},
then:function(K){return _.r("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.r(_.Nm,{text:K}))}}),_.r(_.p,{cond:function(){return G().starRatingViewModel},
then:function(K){return _.r("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.r(_.z$,{data:K},{starRatingViewModel:AVG}))}}),_.r("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.r(_.Nm,{text:function(){var K;
return(K=G())==null?void 0:K.totalRatingsCountLabel}})))))},"ze"),"yt-course-ratings-view-model",{props:{data:_.nN}});var wJq;wJq={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.gGz=_.P(function(m){var G=_.Q3("yt-learning-journey-loader-view-model"),K=_.e5();_.nn(function(){requestAnimationFrame(function(){var L;(L=K.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var A;(A=m.onLottieLoaded)==null||A.call(m)})});
var W=m.data().browseEndpoint;W&&_.h$(W)});
return _.r("yt-learning-journey-loader-view-model",{class:_.VO("learningJourneyLoaderViewModelHost",m.className),"data-target-id":function(){return m.data().targetId||""},
el:G},_.r(_.yr,{className:_.VO("learningJourneyLoaderViewModelLoader",m.className),animationName:function(){return wJq.animationConfig.name},
data:wJq,animationRef:K}))},"Be");_.sh(_.gGz,"yt-learning-journey-loader-view-model",{props:{data:_.Dd,className:_.nN,onLottieLoaded:_.nN}});var OsD=_.P(function(m){var G=function(){return m.data()},K=function(){return!!_.Gn(_.mF(G())).optionColor},W=_.g(_.g_(-1,void 0,"gXOYR")),L=W.next().value,A=W.next().value,O=function(N){return L()===N},c=function(N){return G().correctAnswerIndex===N},u=function(){return L()!==-1};
W=_.g(_.g_("",void 0,"BFwDQb"));var h=W.next().value,J=W.next().value;return _.r("learning-journey-quiz-view-model",{class:_.VO("learningQuizComponentHost","learningJourneyQuizYoututorHost",m.className),style:_.eA({background:function(){return _.Gn(_.mF(G())).backgroundColor}})},_.r("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},h),_.r("div",{class:"learningQuizComponentQuizContainer"},_.r("div",{class:"learningQuizComponentQuiz"},_.r("div",{class:"learningQuizComponentQuizContent"},_.r(_.p,{cond:function(){return!!G().aiGeneratedQuizLabel},
then:function(){return _.r("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.r(_.Nm,{text:function(){return G().aiGeneratedQuizLabel}}))}}),_.r("div",{class:"learningQuizComponentQuizHeader",
style:_.eA({"align-items":function(){return G().overflowMenu?"start":"center"}})},_.r("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.eA({"min-height":function(){return G().overflowMenu?"48px":"26px"}})},_.r("div",{class:"learningJourneyQuizYoututorText",
style:_.eA({color:function(){return _.Gn(_.mF(G())).primaryTextColor}})},_.r(_.Nm,{text:function(){return G().questionHeaderText}})))),_.r("div",{class:"learningQuizComponentQuizSubheader",
style:_.eA({color:function(){return _.Gn(_.mF(G())).secondaryTextColor}})},_.r(_.Nm,{text:function(){var N=G();
return u()?N.explanationText:N.questionSubheaderText}}))),_.r("div",{role:"group",
class:_.VO("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.r(_.D0,{each:function(){return G().optionsData||[]}},function(N,D){var t={};
return _.r("button",{class:_.VO("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(t.learningQuizComponentQuizHover=function(){return!u()},t.learningQuizComponentQuizOptionWithCustomColor=K,t.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return u()&&c(D())},t.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return L()!==G().correctAnswerIndex&&O(D())},t.learningQuizComponentQuizIncorrectShake=
function(){return L()!==G().correctAnswerIndex&&O(D())},t)),
"on:click":_.dn(function(){_.Jo(_.l1(),{data:N});if(u())return!1;A(D());var a,v;J(c(D())?((a=G().successTitle)==null?void 0:a.content)||"":((v=G().failureTitle)==null?void 0:v.content)||"");return!1}),
style:_.eA({background:"transparent"}),"aria-description":function(){var a,v;return u()?c(D())?(a=G().successTitle)==null?void 0:a.content:(v=G().failureTitle)==null?void 0:v.content:""},
"aria-disabled":u},_.r("div",{class:"learningQuizComponentQuizOptionContainer"},_.r(_.Nm,{text:N.optionText}),_.r(_.p,{cond:function(){var a=D();return u()&&(O(a)||c(a))},
then:function(){var a={};return _.r(_.fN,{className:_.VO("learningJourneyQuizYoututorOptionIcon",(a.learningQuizComponentQuizPulse=function(){return L()===G().correctAnswerIndex&&c(D())},a)),
size:24,icon:function(){return c(D())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.r(_.p,{cond:u,
then:function(){return _.r("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.r("div",{class:"learningJourneyQuizYoututorExplanationText"},_.r(_.Nm,{text:function(){return G().explanationHeaderText}})),_.r(_.Nm,{text:function(){return G().optionsData[L()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"Ce");
OsD.idomCompat=!0;Object.freeze&&Object.freeze(Object.create(null));var FVo=function(){},cVz;
(cVz=window.requestIdleCallback)==null||cVz.bind(window);var DYd=new Set,N4P=null;var YdO;_.rVO=_.P(function(m){var G=null,K=null,W=null,L=function(){return m.data()},A=function(){return _.Gn(_.mF(L()))},O=function(){return!!A().optionColor},c=_.g(_.g_(-1,void 0,"H2gnQb")),u=c.next().value,h=c.next().value,J=function(X){return u()===X},N=function(X){return L().correctAnswerIndex===X},D=function(){return u()!==-1},t=function(){return u()===L().correctAnswerIndex},a=function(){var X=L(),f=D(),U=t();
return f?U?X.successTitle:X.failureTitle:X.questionHeaderText},v=function(){var X=D(),f=t();
return X?f?264685:264684:264683},I=function(){var X=L();
return D()?X.explanationText:X.questionSubheaderText},Z=function(){return!!L().video},k=function(X){return t()&&N(X)},z=_.dn(function(){h(-1);
return!1});
return _.r(_.p,{cond:function(){return L().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.r(OsD,{data:function(){return L()}})},
else:function(){return _.r("learning-journey-quiz-view-model",{class:_.VO("learningQuizComponentHost",m.className),style:_.eA({background:function(){return A().backgroundColor}})},_.r(_.p,{cond:Z,
then:function(){return _.r("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.eA({background:function(){return A().videoBackgroundColor}})},_.r(_.z$,{data:function(){return L().video}},{lockupViewModel:function(X){return _.r(_.xU,{data:X.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.r("div",{class:"learningQuizComponentQuizContainer"},_.r("div",{class:"learningQuizComponentQuiz"},_.r("div",{class:"learningQuizComponentQuizContent"},_.r(_.p,{cond:function(){return!!L().aiGeneratedQuizLabel},
then:function(){return _.r("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.r(_.Nm,{text:function(){return L().aiGeneratedQuizLabel}}))}}),_.r("div",{class:"learningQuizComponentQuizHeader",
style:_.eA({"align-items":function(){return L().overflowMenu?"start":"center"}})},_.r("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.eA({"min-height":function(){return L().overflowMenu?"48px":"26px"}})},_.r("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.aC(function(X){_.Km(v(),X,G,function(f){G=f})}),
style:_.eA({color:function(){return A().primaryTextColor}}),
"client-ve-type":v},_.r(_.Nm,{text:a}))),_.r("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.r(_.p,{cond:D,then:function(){return _.r("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.aC(function(X){_.Km(264687,X,K,function(f){K=f})}),
"on:click":z,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.r("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.eA({fill:function(){return A().primaryTextColor}})},_.r("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.r(_.z$,{data:function(){return L().overflowMenu}},{buttonViewModel:function(X){return _.r(_.kP,{data:X.data})}}))),_.r("div",{class:"learningQuizComponentQuizSubheader",
el:_.aC(function(X){_.Km(264688,X,W,function(f){W=f})}),
style:_.eA({color:function(){return A().secondaryTextColor}}),
"client-ve-type":264688},_.r(_.Nm,{text:I}))),_.r("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.r(_.D0,{each:function(){return L().optionsData||[]}},function(X,f){var U={};
return _.r("button",{class:_.VO("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(U.learningQuizComponentQuizHover=function(){return!D()},U.learningQuizComponentQuizOptionWithCustomColor=O,U.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return k(f())},U.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!t()&&J(f())},U.learningQuizComponentQuizIncorrectShake=function(){return!t()&&
J(f())},U.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return D()&&!J(f())},U)),
"on:click":_.dn(function(){_.Jo(_.l1(),{data:X});if(D())return!1;h(f());return!1}),
style:_.eA({background:function(){var l=f();return D()&&J(l)?"":O()?A().optionColor:"transparent"}}),
"aria-disabled":D},_.r("div",{class:"learningQuizComponentQuizOptionContainer"},_.r(_.p,{cond:D,then:function(){return _.r(YdO,{isOptionCorrect:N,optionIndex:f,isOptionSelectedAndCorrect:k,colors:A})}}),_.r(_.Nm,{text:X.optionText})))})))))}})},"De");
YdO=_.P(function(m){var G={};return _.r("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var K=m.optionIndex();return m.isOptionCorrect(K)?"0 0 24 24":"0 -960 960 960"},
class:_.VO("learningJourneyQuizViewModelQuizOptionIconLeading",(G.learningQuizComponentQuizPulse=function(){return m.isOptionSelectedAndCorrect(m.optionIndex())},G)),
style:_.eA({fill:function(){return m.colors().primaryTextColor}})},_.r("path",{d:function(){var K=m.optionIndex();
return m.isOptionCorrect(K)?"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"}}))},"Ee");
_.rVO.idomCompat=!0;_.sh(_.rVO,"learning-journey-quiz-view-model",{props:{data:_.Dd,className:_.Dd}});var uPz=_.P(function(m){var G=_.g((0,_.Qs)(function(){var O;return{targetId:(O=m.data().config)==null?void 0:O.suspenseKey,contents:[m.data()]}})).next().value,K=_.xS().resolve(_.S1),W=function(){var O=G().contents.length>0?G().contents[0]:void 0;
return O==null?void 0:O.config},L=function(){var O;
return(O=W())==null?void 0:O.entityTriggerConfig},A=_.S5(NfV,function(){var O,c;
return(c=(O=L())==null?void 0:O.entityKey)!=null?c:""});
_.$O(function(){var O,c,u,h=(u=Number((O=L())==null?void 0:(c=O.invalidationTimestamp)==null?void 0:c.seconds))!=null?u:0,J,N,D;if(((D=Number((J=A())==null?void 0:(N=J.lastUpdated)==null?void 0:N.seconds))!=null?D:0)>h){var t;(O=(t=W())==null?void 0:t.continuationCommand)&&K.resolveCommand(O)}},"tC8nKe");
return _.r("yt-suspense-view-model",{class:_.VO("ytSuspenseViewModelHost")},_.r(_.z$,{data:function(){var O;return(O=W())==null?void 0:O.contents}},{lockupViewModel:_.xU}))},"Ge");var hGO=_.P(function(m){var G=_.ql(m,{palette:void 0,isLastItem:!1}),K=G.palette,W=G.isLastItem,L=function(){return m.data().isHighlighted},A=function(){var u;
return QrP((u=K())==null?void 0:u.iconDisabledColor)},O=function(){var u;
return QrP((u=K())==null?void 0:u.primaryTitleColor)},c=function(){var u;
return QrP((u=K())==null?void 0:u.secondaryTitleColor)};
G={};return _.r("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.aC(_.On(function(){return m.data().rendererContext}))},_.r(_.z$,{data:function(){return m.data().thumbnail}},{thumbnailViewModel:Hr}),_.r("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.r("div",{class:_.VO("ytMacroMarkerListItemViewModelTimeDescription",(G.ytMacroMarkerListItemViewModelHighlighted=L,G)),
style:_.eA({"background-color":function(){return L()?O():A()},
color:function(){return L()?"":c()}})},_.r(_.Nm,{text:function(){return m.data().timestamp}})),_.r("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.eA({"background-color":function(){return W()?"transparent":A()}})}),_.r("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(L()?O():c())}},_.r(_.Nm,{text:function(){return m.data().title}}))))},"He");_.FW=_.P(function(m){function G(ZF){k("transform:translateX("+(_.E8("HTML_DIR")==="rtl"?"":"-")+ZF+"px)")}
function K(ZF){return Math.min(Math.max(ZF,0),Z()-l())}
function W(ZF){var DP=f()+JV();if(!L())return 0;ZF===void 0&&(ZF=Math.round(l()/DP)||1);return ZF*DP}
var L=function(){return m.data().items||[]},A=function(){return m.data().previousButton},O=function(){return m.data().nextButton},c=function(){var ZF,DP;
return(DP=(ZF=m.disableArrows)==null?void 0:ZF.call(m))!=null?DP:!1},u=function(){var ZF;
return!((ZF=m.forceNarrowLayout)==null||!ZF.call(m))},h=_.pT(function(){var ZF;
return!((ZF=m.centerAlignItems)==null||!ZF.call(m))&&Z()<=l()},void 0,"iGOqxd"),J=_.Q3("horizontal-shelf-view-model"),N=_.Q3("div"),D=_.g(_.g_(0,void 0,"tieKmf")),t=D.next().value,a=D.next().value;
D=_.g(_.g_(0,void 0,"W2lvv"));var v=D.next().value,I=D.next().value,Z=v;v=_.g(_.g_("",void 0,"PEePkc"));D=v.next().value;var k=v.next().value;v=_.g(_.g_(0,void 0,"c7a4W"));var z=v.next().value,X=v.next().value,f=z;v=_.g(_.g_(0,void 0,"KGhRJf"));z=v.next().value;var U=v.next().value,l=z;v=_.g(_.g_(!1,void 0,"fgWgyc"));var Ls=v.next().value,gd=v.next().value;v=_.g(_.g_(0,void 0,"pe79rc"));z=v.next().value;var Qf=v.next().value,JV=z;v=_.g(_.g_(0,void 0,"CTqisc"));var DF=v.next().value,kG=v.next().value;
v=_.g(_.g_(0,void 0,"S2Yf1b"));var eo=v.next().value,xG=v.next().value;v=_.g(_.g_("50%",void 0,"kjP5ke"));var Ji=v.next().value,rK=v.next().value,So=function(){var ZF,DP=(ZF=m.data())==null?void 0:ZF.responsiveContainerConfiguration,lS,Eo;return DP?J3(DP==null?void 0:DP.responsiveSize):(Eo=(lS=m.sizing)==null?void 0:lS.call(m))!=null?Eo:"STANDARD"},ti=function(){var ZF,DP=(ZF=m.data())==null?void 0:ZF.responsiveContainerConfiguration;
return DP?DP.enableContentSpecificAspectRatio===!1:!1};
v=_.pT(function(){return!c()&&t()>0},void 0,"jT8Bud");
z=_.pT(function(){return!c()&&t()<Z()-l()},void 0,"mt4gsb");
var bS=function(){J.value!==null&&EO()},NG;
_.bX(function(){EO();window.ResizeObserver?(NG=new ResizeObserver(_.AY(bS,0)),NG.observe(J.value)):window.addEventListener("resize",bS)});
_.sZ(function(){if(window.ResizeObserver){var ZF;(ZF=NG)==null||ZF.disconnect()}else window.removeEventListener("resize",bS)});
var EO=function(){var ZF=J.value.clientWidth,DP=m.includeMargin!==void 0?m.includeMargin():!1,lS;var Eo=m.hasPeek!==void 0?m.hasPeek():!((lS=m.data())==null||!lS.hasPeek);ZF=_.pQ({containerWidth:ZF,hasPeek:Eo,sizing:So(),marginSettings:DP?u()?4:1:0});Qf(ZF.gutter);kG(ZF.margin);X(ZF.itemWidth);gd(ZF.maxContainerWidth<528||u());U(ZF.maxContainerWidth);L()&&I((ZF.itemWidth+ZF.gutter)*L().length-ZF.gutter);if(L()){var iq;if(((iq=m.thumbnailAspectRatio)==null?void 0:iq.call(m))!==void 0){var jy;rK(f()/
UnP((jy=m.thumbnailAspectRatio)==null?void 0:jy.call(m))/2+"px")}else rK("50%")}},gz={},ps={};
return _.r("horizontal-shelf-view-model",{class:_.VO("ytwHorizontalShelfViewModelHost",m.className),el:J},_.r(_.p,{cond:function(){var ZF;return m.data().header&&!((ZF=m.horizontalShelfExperiments)==null?0:ZF.call(m).hideHeader)},
then:function(){return _.r("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.eA({width:function(){return l()+"px"},
padding:function(){return"0 "+DF()+"px"}})},_.r(_.z$,{data:function(){return m.data().header}},{sectionHeaderViewModel:function(ZF){return _.r(_.R4,{data:ZF.data,
disableHorizontalPadding:!0,forceSmallLayout:Ls,useResponsiveLayout:!0})}}))}}),_.r("div",{class:_.VO("ytwHorizontalShelfViewModelOuterContainer",(gz.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return h()},gz)),
style:_.eA({"margin-top":function(){var ZF,DP=m.data().header&&!((ZF=m.horizontalShelfExperiments)==null?0:ZF.call(m).hideHeader),lS;return(((lS=m.ensureMarginTop)==null?0:lS.call(m))&&!DP?12:0)+"px"}})},_.r("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.eA({width:function(){return l()+"px"},
padding:function(){return"0 "+DF()+"px"},
overflow:function(){return c()?"auto":"hidden"}})},_.r("div",{class:_.VO("ytwHorizontalShelfViewModelItems",(ps.ytwHorizontalShelfViewModelCenterAlignItems=function(){return h()},ps)),
el:N,style:D},_.r(_.z$,{data:L},{macroMarkerListItemViewModel:function(ZF,DP){return _.r("div",{style:_.eA({width:function(){return f()+"px"},
"margin-right":function(){return(DP()===L().length-1?0:JV())+"px"}})},_.r(hGO,{data:ZF.data,
palette:_.sQ(m.palette),isLastItem:function(){return DP()===L().length-1}}))},
lockupViewModel:function(ZF,DP){var lS=ZF.data;return _.r("div",{"on:focusin":_.dn(function(){var Eo=DP();Eo!==eo()&&(Eo<eo()?a(K(t()-W(1))):a(K(t()+W(1))),G(t()),xG(Eo));return!0}),
style:_.eA({width:function(){return f()+"px"},
"margin-right":function(){return(DP()===L().length-1?0:JV())+"px"}})},_.r(_.xU,{data:lS,
containerType:4,sizing:So,protectBackground:m.protectBackground,thumbnailFixedWidth:function(){return aHo(lS())+"px"},
thumbnailTargetWidth:function(){return aHo(lS())},
force16By9ThumbnailAspectRatio:ti}))},
suspenseViewModel:function(ZF,DP){return _.r("div",{style:_.eA({width:function(){return f()+"px"},
"margin-right":function(){return(DP()===L().length-1?0:JV())+"px"}})},_.r(uPz,{data:ZF.data}))}}))),_.r(_.p,{cond:v,
then:function(){return _.r("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.eA({top:function(){return Ji()}})},_.r(_.z$,{data:A},{buttonViewModel:function(ZF){return _.r(_.kP,{data:ZF.data,
onClick:function(){a(K(t()-W(void 0)));G(t())}})}}))}}),_.r(_.p,{cond:z,
then:function(){return _.r("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.eA({top:function(){return Ji()}})},_.r(_.z$,{data:O},{buttonViewModel:function(ZF){return _.r(_.kP,{data:ZF.data,
onClick:function(){a(K(t()+W(void 0)));G(t())}})}}))}})))},"Ie");
_.FW.idomCompat=!0;var pJG=_.P(function(m){var G=function(){return m.data().targetId||""},K=function(){var v;
return((v=m.data())==null?void 0:v.expansionEntityKey)||""},W=_.S5(_.JkM,K),L=!0,A=function(){var v;
return((v=W())==null?void 0:v.value)===G()},O=function(v){_.$e(_.Bp("stringEntity",K(),{key:K(),
value:v?G():""}))};
_.nn(function(){L=!1;m.data().isExpanded&&O(!0)});
var c=function(){if(A()){var v=!0;m.onCollapse!==void 0&&(v=m.onCollapse());v&&O(!1)}else O(!0)},u=_.dn(c),h=function(){var v;
return(((v=m.accordionStyle)==null?void 0:v.call(m))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},J=_.Q3("div"),N=function(){var v,I;
return(I=(v=_.Q(m.data().rendererContext,_.MB))==null?void 0:v.label)!=null?I:""},D=function(){var v,I;
return{disabled:(v=m.hideIfNotExpanded)==null?void 0:v.call(m),ariaHidden:(I=m.hideIfNotExpanded)==null?void 0:I.call(m)}},t={},a={};
return _.r("yt-accordion-item-view-model",{class:_.VO("ytAccordionItemViewModelHost",m.className,(t.ytAccordionItemViewModelExpanded=function(){return A()},t.ytAccordionItemViewModelHidden=function(){var v;
return(v=m.hideIfNotExpanded)==null?void 0:v.call(m)},t.ytAccordionItemViewModelMini=h,t)),
"data-target-id":G},_.r("div",{class:"ytAccordionItemViewModelContainer"},_.r("div",{class:"ytAccordionItemViewModelLeftSection","on:click":u,title:N,"aria-hidden":function(){var v;return(v=m.hideIfNotExpanded)==null?void 0:v.call(m)}},_.r(_.Nm,{text:function(){return m.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:N})),_.r("div",{class:"ytAccordionItemViewModelRightSection"},_.r(_.z$,{data:function(){return A()?m.data().expandButton:m.data().collapseButton}},{buttonViewModel:function(v){return _.r(_.kP,{data:v.data,
className:"ytAccordionItemViewModelToggleButton",onClick:c,buttonOverrides:D})}}))),_.r("div",{class:"ytAccordionItemViewModelContainer"},_.r("div",{class:_.VO("ytAccordionItemViewModelContent",(a.ytAccordionItemViewModelExpandedSubtitle=function(){return A()},a)),
el:J,style:_.eA({"max-height":function(){return L?"auto":A()?J.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!A()}},_.r(_.p,{cond:function(){return!h()},
then:function(){return _.r(_.Nm,{text:function(){return m.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.r(_.z$,{data:function(){return m.data().content}},{horizontalShelfViewModel:function(v){return _.r(_.FW,{data:v.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Ke");_.JVO=_.P(function(m){var G=_.g((0,_.Qs)(m.data)).next().value,K=function(){return m.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},W=function(){return K()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.g(_.g_(!0,void 0,"VFpYAb")),A=L.next().value,O=L.next().value,c=function(){return W()&&A()},u=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){O(!A())}}},h=_.dn(function(){G().onTitleTap&&_.h$(G().onTitleTap||{})});
L={};return _.r("yt-accordion-view-model",{class:_.VO("ytAccordionViewModelHost",(L.ytAccordionViewModelMinimized=function(){return c()},L)),
"data-target-id":function(){return m.data().targetId||""}},_.r(_.p,{cond:function(){return W()||!!G().title},
then:function(){return _.r("div",{class:"ytAccordionViewModelHeader"},_.r("div",{class:"ytAccordionViewModelTitleSection"},_.r("div",{class:"ytAccordionViewModelTitleWrapper"},_.r(_.p,{cond:function(){return!!m.data().headerIcon},
then:function(){return _.r(_.fN,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var J;return(J=m.data().headerIcon)==null?void 0:J.iconType}})}}),_.r("div",{class:"ytAccordionViewModelTitle",
"on:click":h},_.r(_.Nm,{className:"ytAccordionViewModelTitleText",text:function(){return G().title}})))),_.r("div",{class:"ytAccordionViewModelButtonSection"},_.r(_.p,{cond:W,
then:function(){return _.r(_.jd,{data:u,iconName:function(){return c()?"chevron_down":"chevron_collapse"}})}})))}}),_.r("div",{class:"ytAccordionViewModelContent"},_.r(_.z$,{data:function(){return G().contents}},{accordionItemViewModel:function(J){return _.r(pJG,{data:J.data,
className:"ytAccordionViewModelRow",accordionStyle:K,hideIfNotExpanded:c,onCollapse:function(){return W()?(O(!0),!1):!0}})}})),_.r("div",null,_.r(_.p,{cond:function(){return!W()&&(!!G().disclaimerFooter||!!G().footer)},
then:function(){return _.r("div",{class:"ytAccordionViewModelFooter"},_.r(_.Nm,{text:function(){return G().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.r(_.z$,{data:function(){return m.data().footer}},{flexibleActionsViewModel:function(J){return _.r(_.Y8,{data:J.data,
layout:0})}}))}})))},"Le");_.sh(_.JVO,"yt-accordion-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=null,K=null,W,L=(W=_.xS().resolve(_.fn(_.l_)))==null?void 0:W(),A=_.g(_.g_(!1,void 0,"CmEVtc"));W=A.next().value;var O=A.next().value;A=_.g(_.g_(!0,void 0,"yo9dR"));var c=A.next().value,u=A.next().value,h=_.Q3("textarea",function(I){_.Km(264503,I,G,function(Z){G=Z})}),J=function(I){O(!0);
I={learningJourneyFormData:{query:I}};_.h$(m.data().searchEndpoint||{},{form:{formData:I}});return!1},N=_.dn(function(I){I.target.closest("button-view-model")&&O(!0)});
A=_.dn(function(){u(h.value.value.length===0)});
var D=_.dn(function(I){if(I.key==="Enter"&&!I.shiftKey&&!c()){var Z=I.target;I.preventDefault();J(Z.value)}}),t={},a={},v={};
return _.r("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.r("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.r(_.oC,{data:function(){return m.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.r("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.r("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.r("div",{class:_.VO("ytLearningJourneyZeroStateSearchBar",(t.ytLearningJourneyZeroStateSearchBarDark=L,t))},_.r("textarea",{class:_.VO("ytLearningJourneyZeroStateTextInput",(a.ytLearningJourneyZeroStateTextInputDark=L,a)),el:h,"on:keyup":A,"on:keydown":D,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.r("div",{class:_.VO("ytLearningJourneyZeroStateSearchButtonContainer",(v.ytLearningJourneyZeroStateSearchButtonContainerDark=L,v))},_.r(_.kP,{data:function(){return _.Q(m.data().searchButton,_.J6)},
className:"search-button",onClick:function(){return J(h.value.value)},
buttonOverrides:function(){return{disabled:c(),style:L?"mono-inverse":"mono",size:"XL"}}}))),_.r(_.p,{cond:function(){return!!m.data().errorBanner},
then:function(){return _.r("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.aC(function(I){_.Km(264617,I,K,function(Z){K=Z})})},_.r(_.z$,{data:function(){return m.data().errorBanner}},{alertBannerViewModel:function(I){return _.r(_.ZXR,{data:I.data,
"client-ve-type":264617})}}))}})),_.r(_.p,{cond:W,
then:function(){return _.r("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.r(_.z$,{data:function(){return m.data().loader}},{learningJourneyLoaderViewModel:function(I){return _.r(_.gGz,{data:I.data})}}))},
else:function(){return _.r("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.r(_.p,{cond:function(){return!!m.data().learningJourneyShelf},
then:function(){return _.r("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.r("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return m.data().learningJourneySectionTitle}),_.r(_.z$,{data:function(){return m.data().learningJourneyShelf}},{horizontalShelfViewModel:function(I){return _.r(_.FW,{data:I.data,
centerAlignItems:!0})}}))}}),_.r("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.r("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return m.data().suggestedJourneySectionTitle}),_.r("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":N},_.r(_.z$,{data:function(){return m.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(I){return _.r(_.Y8,{data:I.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Me"),"yt-learning-journey-zero-state",{props:{data:_.Dd}});var NdD=_.P(function(m){var G=m.data;return _.r("ytvl-live-leaderboard-item-action-content-view-model",{class:_.VO("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.r(_.Nm,{text:function(){var K;return(K=G())==null?void 0:K.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.r(_.z$,{data:function(){return G().actionButton}},{buttonViewModel:function(K){return _.r(_.kP,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:K.data})}}))},"Ne");var DdD=_.P(function(m){var G=m.data;return _.r("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.VO("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.r(_.Nm,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var K;return(K=G())==null?void 0:K.displayName},
ellipsisTruncate:!0}),_.r(_.z$,{data:function(){return G().badge}},{buttonViewModel:function(K){return _.r(_.kP,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:K.data})}}))},"Oe");_.sh(_.P(function(m){var G=m.data;return _.r("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.r("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.r(_.Nm,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var K;return(K=G())==null?void 0:K.rank}})),_.r("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9})),_.r("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.r(_.z$,{data:function(){return G().content}},{liveLeaderboardItemChannelContentViewModel:DdD,
liveLeaderboardItemActionContentViewModel:NdD})),_.r(_.Nm,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var K;return(K=G())==null?void 0:K.points}}))},"Pe"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;return _.r("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.r(_.Nm,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var K,W;return(K=G())==null?void 0:(W=K.ranking)==null?void 0:W.rank}}),_.r("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9})),_.r(_.Nm,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var K,W;return(K=G())==null?void 0:(W=K.channelContent)==null?void 0:W.channelName}}),_.r(_.Nm,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var K;return(K=G())==null?void 0:K.points}}))},"Qe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Dd}});var tou=_.P(function(m){m=_.ql(m,{wrapper:!1}).wrapper;return _.r(_.p,{cond:m,then:function(){return _.r("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.r("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.r("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Re");
tou.idomCompat=!0;var Fvq=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],QMW=_.P(function(m){var G=m.data;var K=_.aC(),W=_.pT(function(){return G().command},void 0,"fyYsT");
_.$O(function(){W()&&_.YE(W(),{form:{element:K.value}})},"B0nxdb");
return _.r("div",{el:K,class:"YtQrCodeRendererHostContainer"},_.r(_.p,{cond:function(){return G().qrCodeImage},
then:function(L){return _.r(_.oC,{data:L,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.r(_.p,{cond:function(){return G().spinner},
then:function(){return _.r(tou,null)}})}}),_.r(_.p,{cond:function(){return G().label},
then:function(L){return _.r(_.Nm,{text:L,className:"YtQrCodeRendererHostLabel"})}}),_.r(_.p,{cond:function(){return G().labels},
then:function(L){return _.r("div",{class:"YtQrCodeRendererHostLabels"},_.r(_.D0,{each:L},function(A){return _.r(_.Nm,{text:A})}))}}))},"Ue");_.sh(_.P(function(m){var G=m.data;var K=_.pT(function(){return G().qrEntityKey},void 0,"LmZ2xf"),W=_.pT(function(){return G().deleteEntityOnDismiss},void 0,"my0Tzb"),L=_.pT(function(){return G().command},void 0,"hzECIb"),A=_.S5(HEf,K);
m=_.pT(function(){return G().qrCodeImage},void 0,"AnD9rc");
var O=_.pT(function(){return G().style&&Fvq.includes(G().style)},void 0,"f5fZv"),c=_.eN({visibilityCallback:function(u){u&&L()&&_.YE(L())},
showOption:{calledOnce:!0,state:"visible"}});_.bX(function(){_.sZ(function(){W()&&K()&&_.nD().dispatch(_.Bp("qrCodeEntity",K()))})});
return _.r("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.aC(c)},_.r(_.p,{cond:O,then:function(){return _.r(_.p,{cond:A,then:function(u){return _.r(QMW,{data:u})}})}}),_.r(_.p,{cond:m,
then:function(u){return _.r(_.oC,{data:u,alt:""})}}))},"Se"),"yt-qr-code-renderer",{props:{data:_.Dd}});var oGO=_.P(function(m){var G=function(){return _.ce(1728053247&(m.barColor!==void 0?RT(m.barColor()):4278190080))};
return _.r("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},null,_.r("div",{class:"ytVideoOverviewGhostCardDetails"},_.r(aFG,{animationDelay:0,percentWidth:100,barColor:function(){return G()}}),_.r(aFG,{animationDelay:600,
percentWidth:60,barColor:function(){return G()}})))},"Ve"),aFG=_.P(function(m){return _.r("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+m.percentWidth()+"%"}},_.r("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var G=m.animationDelay(),K=m.barColor();return"animation-delay:"+G+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+K+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"We");var nGD,bsP;nGD=_.DE.inlinePreviewEnabledSelector;_.vGW=_.P(function(m){function G(Z){O(Z)}
var K=m.data;var W=_.aP("yt-video-overview-view-model"),L=_.aC();m=_.g(_.g_(-1,void 0,"kc60qe"));var A=m.next().value,O=m.next().value;m=_.g(_.g_(0,void 0,"YSTbVe"));var c=m.next().value,u=m.next().value,h={},J=_.S5(oBd,function(){return K().asyncDataEntityKey}),N=_.RC(nGD);
m=_.xS().resolve(_.fn(Io4));var D=function(){var Z;if((Z=J())==null?0:Z.videoOverviewViewModel){var k;return _.Q((k=J())==null?void 0:k.videoOverviewViewModel,yxR)}return K()};
m&&W&&m({enabled:function(){return N()},
itemPlaybackModel:function(){var Z;return(Z=D())==null?void 0:Z.itemPlayback},
thumbnailElRef:function(){return h.thumbnailElRef},
containerElRef:W,options:function(){return{thumbnail:h.thumbnail,thumbnailOverlays:h.thumbnailOverlays||[],thumbnailSize:h.thumbnailSize,mouseleaveCallback:function(){}}}});
_.bX(function(){var Z,k=W==null?void 0:(Z=W.value)==null?void 0:Z.clientWidth;k&&u(Math.min((k-24)/4-8,72))});
var t=function(){var Z;return((Z=D())==null?void 0:Z.headerSubtext)!==void 0?!0:!1},a=function(){var Z,k=RT((Z=D())==null?void 0:Z.titleColor);
return k?"color: "+_.ce(k)+";":void 0},v=function(){var Z,k=RT((Z=D())==null?void 0:Z.subtextColor);
return k?"color: "+_.ce(k)+";":void 0},I=function(){return _.r("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.r("div",{class:"ytGenAiVideoOverviewViewModelTitle",
style:function(){return a()}},_.r(_.Nm,{text:function(){var Z;
return(Z=D())==null?void 0:Z.headerText}})),_.r(_.p,{cond:t,
then:function(){return _.r("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.r("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return v()}},_.r(_.fN,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.r("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return v()}},_.r(_.Nm,{text:function(){var Z;
return(Z=D())==null?void 0:Z.headerSubtext}})))}}))};
m={};return _.r("yt-video-overview-view-model",{class:_.VO("ytGenAiVideoOverviewViewModelHost",(m.ytGenAiVideoOverviewViewModelMweb=!1,m.ytGenAiVideoOverviewViewModelDesktop=!0,m)),el:W,style:function(){var Z,k=RT((Z=D())==null?void 0:Z.backgroundColor);return k?"background-color: "+_.ce(k)+";":void 0}},_.r(_.p,{cond:function(){var Z;
return(Z=D())==null?void 0:Z.isLoading},
then:function(){return _.r(oGO,{barColor:function(){var Z;return(Z=D())==null?void 0:Z.titleColor}})},
else:function(){return _.r(_.zL,null,null,_.r("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.r(_.z$,{data:function(){var Z;return(Z=D())==null?void 0:Z.thumbnail}},{thumbnailViewModel:function(Z){return _.r(Hr,{data:Z.data,
aspectRatio:0,playbackRef:sjv(h),width:9999})}})),_.r("div",{class:"ytGenAiVideoOverviewViewModelDetails"},I(),_.r(_.p,{cond:function(){var Z,k,z,X;
return((Z=D())==null?void 0:(k=Z.listItems)==null?void 0:k.length)!==void 0&&((z=D())==null?void 0:(X=z.listItems)==null?void 0:X.length)>0?!0:!1},
then:function(){return _.r("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:L},_.r(_.D0,{each:function(){var Z;return(Z=D())==null?void 0:Z.listItems}},function(Z,k){return _.r(bsP,{image:Z.image,
index:k,isSelected:function(){return k()===A()},
onClick:G,itemWidth:c})}))}}),_.r("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.r("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return a()}},_.r(_.Nm,{text:function(){var Z,k,z,X,f,U,l;
return(l=(Z=D())==null?void 0:(k=Z.listItems)==null?void 0:(z=k[A()])==null?void 0:z.headline)!=null?l:(X=D())==null?void 0:(f=X.listItems)==null?void 0:(U=f[0])==null?void 0:U.headline}})),_.r("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return v()}},_.r(_.Nm,{text:function(){var Z,k,z,X,f,U,l;
return(l=(Z=D())==null?void 0:(k=Z.listItems)==null?void 0:(z=k[A()])==null?void 0:z.subtext)!=null?l:(X=D())==null?void 0:(f=X.listItems)==null?void 0:(U=f[0])==null?void 0:U.subtext}})))))}}))},"Xe");
bsP=_.P(function(m){var G=m.image;var K=m.itemWidth;var W=m.index;var L=m.isSelected;var A=m.onClick;m=_.dn(function(){W!==void 0&&A!==void 0&&A(W());return!1});
var O={};return _.r("div",{class:_.VO("ytGenAiVideoOverviewViewModelCarouselItem",(O.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return L==null?void 0:L()},O)),
style:function(){return"width: "+K()+"px;"},
"on:click":m},_.r(_.oC,{data:G,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.r(_.p,{cond:function(){return L==null?void 0:L()},
then:function(){return _.r("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.r("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ye");
_.vGW.idomCompat=!0;_.sh(_.vGW,"yt-video-overview-view-model",{props:{data:_.Dd}});_.$d5=_.P(function(m){var G=m.data;var K=m.topbarOffset;var W,L=((W=_.xS().resolve(_.fn(_.l_)))==null?void 0:W())||!1;return _.r("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var A=G();var O,c,u=L?(O=A.config)==null?void 0:O.darkThemeBackgroundColor:(c=A.config)==null?void 0:c.lightThemeBackgroundColor;A=u?_.OM(u):void 0;A="background-color: "+A+";";K!==void 0&&(A+="top: -"+K()+"px;");return A},
"aria-hidden":!0},_.r(_.p,{cond:function(){var A,O,c;return!!((A=G().backgroundImageConfig)==null?0:(O=A.image)==null?0:(c=O.sources)==null?0:c.length)},
then:function(){return _.r(_.oC,{data:function(){var A;return(A=G().backgroundImageConfig)==null?void 0:A.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.r("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+nBM(L,G().gradientColorConfig)+";"}}))},"Ze");
_.$d5.idomCompat=!0;var sM5=_.P(function(m){var G=m.data;var K=m.isOverlay;return _.r("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.r("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.r(_.z$,{data:function(){return G().header}},{sectionHeaderViewModel:function(W){return _.r(_.R4,{data:W.data,
isOverlay:K})}})),_.r("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.r(_.z$,{data:function(){return G().channelInfoButtons}},{flexibleActionsViewModel:_.Y8})),_.r("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.r(_.z$,{data:function(){return G().description}},{descriptionPreviewViewModel:function(W){return _.r(_.Su,{data:W.data,
isOverlay:K})}})))},"$e");
sM5.idomCompat=!0;var qds=_.P(function(m){var G=m.data;var K={};return _.r("factoid-view-model",{class:_.VO("ytwFactoidViewModelHost",(K.ytwFactoidViewModelHostOverlay=m.isOverlay,K))},_.r(_.Nm,{text:function(){return G().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.r(_.Nm,{text:function(){return G().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"af");
qds.idomCompat=!0;var EGs=_.P(function(m){var G=m.data;var K=m.isOverlay;return _.r("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.r(_.z$,{data:function(){return G().factoids}},{factoidViewModel:function(W){return _.r(qds,{data:W.data,
isOverlay:K})}}))},"bf");
EGs.idomCompat=!0;_.HsE=_.P(function(m){var G=m.data;var K=m.isOverlay;return _.r("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.r(_.z$,{data:function(){return G().items}},{channelInfoViewModel:function(W){return _.r("div",{class:"ytwCourseMetadataViewModelHostItem"},_.r(sM5,{data:W.data,
isOverlay:K}))},
coursePerksViewModel:function(W){return _.r("div",{class:"ytwCourseMetadataViewModelHostItem"},_.r(Wvz,{data:W.data,isOverlay:K}))},
descriptionPreviewViewModel:function(W){return _.r("div",{class:"ytwCourseMetadataViewModelHostItem"},_.r(_.Su,{data:W.data,isOverlay:K}))},
factoidsRowViewModel:function(W){return _.r("div",{class:"ytwCourseMetadataViewModelHostItem"},_.r(EGs,{data:W.data,isOverlay:K}))},
progressViewModel:function(W){return _.r("div",{class:"ytwCourseMetadataViewModelHostItem"},_.r(Lv6,{data:W.data,isOverlay:K}))}}))},"cf");var IFO=_.P(function(m){return _.r("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.r(_.z$,{data:function(){return m.data().content}},{courseMetadataViewModel:function(G){return _.r(_.HsE,{data:G.data,
isOverlay:m.isOverlay})},
progressViewModel:function(G){return _.r(Lv6,{data:G.data})}}))},"df");var jME=_.P(function(m){var G=m.data;m=m.className;var K=function(){var L;return _.gH((L=G())==null?void 0:L.rendererContext)},W={};
W=(W.dynamicTextViewModelHost=!0,W.dynamicTextViewModelHostTappable=function(){return K()},W);
return _.r("yt-dynamic-text-view-model",{el:_.aC(_.On(function(){var L;return(L=G())==null?void 0:L.rendererContext})),
role:function(){return K()?"link":void 0},
tabindex:function(){return K()?0:void 0},
class:_.VO(m,W)},_.r("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var L,A,O;return(O=(A=_.Q((L=G())==null?void 0:L.rendererContext,_.MB))==null?void 0:A.label)!=null?O:""}},_.r(_.Nm,{text:function(){return G().text},
userInput:!0})))},"ef");
jME.idomCompat=!0;_.QD=_.P(function(m){var G=m.data;var K=m.isPositionRelative;var W=_.vBG("(max-width: 527.9px)"),L=function(){var A,O;return(O=(A=G())==null?void 0:A.style)!=null?O:"IMAGE_BANNER_STYLE_FULL_BLEED"};
m={};return _.r("yt-image-banner-view-model",{el:_.aC(_.On(function(){var A;return(A=G())==null?void 0:A.rendererContext})),
class:_.VO((m.ytImageBannerViewModelHost=!0,m.ytImageBannerViewModelInset=function(){return $Yf(L())},m.ytImageBannerViewModelPositionAbsolute=function(){return _.EZ(!0)&&!(K==null?0:K())},m.ytImageBannerViewModelSmallInset=function(){return $Yf(L())&&W()},m.ytImageBannerViewModelTappable=function(){var A;
return _.gH((A=G())==null?void 0:A.rendererContext)},m))},_.r(_.p,{cond:function(){var A;
return(A=G())==null?void 0:A.image},
then:function(){return _.r(_.oC,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.r(_.z$,{data:function(){var A;
return(A=G())==null?void 0:A.overlays}},{thumbnailHoverOverlayViewModel:gI}))},"ff");
_.QD.idomCompat=!0;var k9D;k9D=_.P(function(m){var G=m.condition;var K=m.content;return _.r(_.p,{cond:G,then:function(){return _.r("div",{class:"yt-page-header-view-model__scroll-container"},K())},
else:function(){return K()}})},"gf");
_.C6W=_.P(function(m){var G=m.data;var K=m.noPadding;var W=m.enableBanner;var L=m.cinematicContainerTopbarOffset;var A=m.allowCinematicContainerOverflow;var O=m.displayAsSidebar;var c=m.displayAsPanel;var u=m.alwaysUseMediumTextDescription;var h=srG(),J=function(){return!!G().image||!!G().animatedImage},N=function(){return!!G().background},D=function(){return(O==null?0:O())||(c==null?0:c())?1:h()},t=function(){return D()===1},a=function(){return t()||D()===2},v=function(){return D()===4},I=function(){var DF=
G();
var kG=!!G().heroImage;var eo=D(),xG=qCd(G()),Ji=O==null?void 0:O(),rK=!DF.metadata,So;if(So=kG?_.Q(DF.heroImage,suF):_.Q(DF.animatedImage||DF.image,suF)){DF=So.style;var ti=So.layoutMode;if(ti!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(So=GAv(ijM(So)),kG)kG=bhF(eo,DF,ti,So,Ji);else b:if(rK)kG=eo===1?{size:48}:{size:72};else switch(eo){case 1:kG={size:72};break b;case 2:kG={size:120};break b;default:kG=xG<4?{size:120}:{size:160}}else kG=void 0}else kG={size:0};return kG};
m={};m=_.VO((m["yt-page-header-view-model"]=!0,m["yt-page-header-view-model--no-padding"]=function(){return!(K==null||!K())},m["yt-page-header-view-model--small-top-padding"]=function(){return t()&&!G().actions&&!(c==null?0:c())||D()===2&&!(J()||G().heroImage)},m["yt-page-header-view-model--small-bottom-padding"]=function(){return a()&&!G().actions&&!(c==null?0:c())},m["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(A==null?0:A())},m["yt-page-header-view-model--display-as-sidebar"]=
O,m));
var Z={},k=_.VO((Z["yt-page-header-view-model__page-header-headline"]=!0,Z["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var DF;return(DF=I())==null?void 0:DF.allowFullWidth},Z)),z=function(){var DF;
return a()&&!((DF=I())==null?0:DF.allowFullWidth)},X=function(){return t()&&(!!G().heroImage||J())&&qCd(G())>0},f=function(){return X()&&(c==null?void 0:c())};
Z={};var U=_.VO((Z["yt-page-header-view-model__page-header-title"]=!0,Z["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!X()},Z["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return X()&&!f()},Z["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=f,Z["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=N,Z));
Z={};var l=_.VO((Z["yt-page-header-view-model__page-header-headline-image"]=!0,Z["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!G().heroImage&&a()},Z));
Z={};var Ls=_.VO((Z["yt-page-header-view-model__page-header-banner-container"]=W,Z["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var DF;return(W==null?void 0:W())&&((DF=_.Q(G().banner,_.Ej2))==null?void 0:DF.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},Z));
Z={};var gd=_.VO((Z["yt-page-header-view-model__page-header-content-metadata"]=!0,Z["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=N,Z));Z={};var Qf=_.VO((Z["yt-page-header-view-model__page-header-flexible-actions"]=!0,Z["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!G().metadata||a()},Z["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!a()},Z));
Z={};var JV=_.VO((Z["yt-page-header-view-model__page-header-attribution"]=!0,Z["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=N,Z));return _.r("yt-page-header-view-model",{class:m},_.r(_.p,{cond:N,then:function(){return _.r("div",{class:"yt-page-header-view-model__page-header-background"},_.r(_.z$,{data:function(){return G().background}},{cinematicContainerViewModel:function(DF){return _.r(_.$d5,{data:DF.data,
topbarOffset:L})}}))}}),_.r(k9D,{condition:function(){return!(O==null||!O())},
content:function(){return _.r("div",{class:"yt-page-header-view-model__page-header-content"},_.r(_.p,{cond:function(){return(W==null?void 0:W())&&G().banner},
then:function(){return _.r("div",{class:Ls},_.r(_.z$,{data:function(){return G().banner}},{imageBannerViewModel:_.QD}))}}),_.r("div",{class:k},_.r(_.p,{cond:J,
then:function(){return _.r(_.z$,{data:function(){var DF;if(!(DF=G().animatedImage)){DF=G();if(J()){var kG=DF=Object.assign({},DF),eo=D(),xG=qCd(G()),Ji=kG.image,rK=_.Q(Ji,qW0),So=rK==null?void 0:rK.avatar,ti=_.Q(So,_.YA);if(Ji&&So&&ti){switch(eo){case 1:ti.avatarImageSize="AVATAR_SIZE_XL";break;case 2:ti.avatarImageSize="AVATAR_SIZE_XXL";break;default:xG<4?ti.avatarImageSize="AVATAR_SIZE_XXL":ti.avatarImageSize="AVATAR_SIZE_XXXL"}_.LN(So,_.YA,Object.assign({},ti));rK.avatar=Object.assign({},So);_.LN(Ji,
qW0,Object.assign({},rK));kG.image=Object.assign({},Ji)}}DF=DF.image}return DF}},{contentPreviewImageViewModel:function(DF){return _.r(_.VA,{data:DF.data,
className:l,imageSizeConfig:I})},
decoratedAvatarViewModel:function(DF){return _.r(_.cr,{data:DF.data,className:l})}})}}),_.r(_.p,{cond:function(){return!!G().heroImage&&!z()},
then:function(){return _.r(_.z$,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function(DF){return _.r(_.VA,{data:DF.data,
className:l,imageSizeConfig:I})}})}}),_.r("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.r(_.p,{cond:function(){return!!G().heroImage&&z()},
then:function(){return _.r("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.r(_.z$,{data:function(){return G().heroImage}},{contentPreviewImageViewModel:function(DF){return _.r(_.VA,{data:DF.data,
className:l,imageSizeConfig:I})}}))}}),_.r(_.z$,{data:function(){return G().title}},{dynamicTextViewModel:function(DF){return _.r(jME,{data:DF.data,
className:U})}}),_.r(_.z$,{data:function(){return G().metadata}},{contentMetadataViewModel:function(DF){return _.r(_.dI,{data:DF.data,
layout:function(){return t()?1:0},
className:gd,isOverlay:N,useMediumText:v})}}),_.r(_.p,{cond:function(){return G().description&&!t()},
then:function(){return _.r(_.z$,{data:function(){return G().description}},{descriptionPreviewViewModel:function(DF){return _.r(_.Su,{data:DF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:N,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(u==null?void 0:u())||v()}})}})}}),_.r(_.p,{cond:function(){return G().attribution&&!a()},
then:function(){return _.r(_.z$,{data:function(){return G().attribution}},{attributionViewModel:function(DF){return _.r(Za,{data:DF.data,
className:JV,useMediumText:v})}})}}),_.r(_.p,{cond:function(){return G().actions&&!a()},
then:function(){return _.r(_.z$,{data:function(){return G().actions}},{flexibleActionsViewModel:function(DF){return _.r(_.Y8,{data:DF.data,
layout:function(){return EBM(D())},
className:Qf})}})}}))),_.r("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.r(_.p,{cond:function(){return G().description&&t()},
then:function(){return _.r(_.z$,{data:function(){return G().description}},{descriptionPreviewViewModel:function(DF){return _.r(_.Su,{data:DF.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:N,maxLinesOverride:function(){return t()?void 0:1},
useMediumText:function(){return(u==null?void 0:u())||v()}})}})}}),_.r(_.p,{cond:function(){return G().attribution&&a()},
then:function(){return _.r(_.z$,{data:function(){return G().attribution}},{attributionViewModel:function(DF){return _.r(Za,{data:DF.data,
className:JV,useMediumText:v})}})}}),_.r(_.p,{cond:function(){return G().actions&&a()},
then:function(){return _.r(_.z$,{data:function(){return G().actions}},{flexibleActionsViewModel:function(DF){return _.r(_.Y8,{data:DF.data,
layout:function(){return EBM(D())},
className:Qf})}})}})),_.r("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.r(_.z$,{data:function(){return G().bottomMetadataFlexibleContainer}},{flexibleContainer:function(DF){return _.r(IFO,{data:DF.data,
isOverlay:N})}})))}}))},"hf");
_.C6W.idomCompat=!0;_.sh(_.P(function(m){var G=_.g(_.g_(!1,void 0,"qvRy4d")),K=G.next().value,W=G.next().value;return _.r("yt-official-card-view-model",{class:_.VO("ytOfficialCardViewModelHost",m.className),style:_.eA({"background-color":function(){var L,A=RT((L=m.data())==null?void 0:L.backgroundColor);return A?_.ce(A):void 0}})},_.r(_.z$,{data:function(){return m.data().header}},{pageHeaderViewModel:function(L){return _.r(_.C6W,{data:L.data,
noPadding:!0})}}),_.r(_.z$,{data:function(){return m.data().contents}},{horizontalShelfViewModel:function(L){return _.r(_.FW,{data:L.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.r(_.p,{cond:K,
then:function(){return _.r("div",{class:"ytOfficialCardViewModelExpandedContent"},_.r(_.z$,{data:function(){return m.data().expandedContents}},{horizontalShelfViewModel:function(L){return _.r(_.FW,{data:L.data,
sizing:"MINI"})}}),_.r("div",{class:"ytOfficialCardViewModelCollapseButton"},_.r(_.z$,{data:function(){return m.data().collapseButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
onClick:function(){W(!K())}})}})))},
else:function(){return _.r("div",{class:"ytOfficialCardViewModelExpandButton"},_.r(_.z$,{data:function(){return m.data().expandButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
onClick:function(){W(!K())}})}}))}}))},"jf"),"yt-official-card-view-model",{props:{data:_.Dd,
className:_.Dd}});var VoD=_.P(function(m){var G,K=(G=_.xS().resolve(_.fn(_.l_)))==null?void 0:G();return _.r("ytw-search-friction-view-model",{class:_.VO("ytwSearchFrictionViewModelHost",m.className)},_.r("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.r("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.r(_.p,{cond:function(){return K&&m.data().darkThemeImage?m.data().darkThemeImage:m.data().image},
then:function(W){return _.r(_.oC,{data:W,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.r(_.z$,{data:function(){return m.data().overflowMenuButton}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.r(_.Nm,{text:function(){return m.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.r(_.D0,{each:function(){return m.data().bodyText||[]}},function(W){return _.r(_.Nm,{text:W,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.r(_.z$,{data:function(){return m.data().actions}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.r(_.Nm,{text:function(){return m.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.r(_.Nm,{text:function(){return m.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"kf");
VoD.idomCompat=!0;_.sh(VoD,"ytw-search-friction-view-model",{props:{data:_.Dd,className:_.Dd}});_.ah=_.P(function(m){var G=_.Q3("markdown-div"),K,W=(K=_.xS().resolve(_.fn(_.l_)))==null?void 0:K();_.$O(function(){var L=G.value;var A=new g2X,O=new Map(A.JSC$9605_sanitizerTable.globalAttributePolicies);O.set("style",{policyAction:4});A.JSC$9605_sanitizerTable=new w3(A.JSC$9605_sanitizerTable.allowedElements,A.JSC$9605_sanitizerTable.elementPolicies,A.JSC$9605_sanitizerTable.allowedGlobalAttributes,O,A.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes);var c=["data-time"];if(c===void 0)O=
new Set(A.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes),O.add("data-"),A.JSC$9605_sanitizerTable=new w3(A.JSC$9605_sanitizerTable.allowedElements,A.JSC$9605_sanitizerTable.elementPolicies,A.JSC$9605_sanitizerTable.allowedGlobalAttributes,A.JSC$9605_sanitizerTable.globalAttributePolicies,O);else{O=new Set(A.JSC$9605_sanitizerTable.allowedGlobalAttributes);c=_.g(c);for(var u=c.next();!u.done;u=c.next()){u=u.value;if(u.indexOf("data-")!==0)throw Error("la`"+u);O.add(u)}A.JSC$9605_sanitizerTable=
new w3(A.JSC$9605_sanitizerTable.allowedElements,A.JSC$9605_sanitizerTable.elementPolicies,O,A.JSC$9605_sanitizerTable.globalAttributePolicies,A.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes)}O=new Set(A.JSC$9605_sanitizerTable.allowedGlobalAttributes);O.add("class");A.JSC$9605_sanitizerTable=new w3(A.JSC$9605_sanitizerTable.allowedElements,A.JSC$9605_sanitizerTable.elementPolicies,O,A.JSC$9605_sanitizerTable.globalAttributePolicies,A.JSC$9605_sanitizerTable.globallyAllowedAttributePrefixes);
_.Np(L,_.KiX(A.build(),IHV(m.text())));jrG(G.value)},"CUInJc");
K={};return _.r("div",null,_.r("markdown-div",{class:_.VO("ytwMarkdownDivHost",m.className,(K.ytwMarkdownDivDark=W,K.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var L;return((L=m.isSmallText)==null?void 0:L.call(m))||!1},K.ytwMarkdownDivHostWrapCodeBlocks=function(){var L;
return((L=m.wrapCodeBlocks)==null?void 0:L.call(m))||!1},K.ytwMarkdownDivHostEnableDefaultStyling=function(){var L;
return!((L=m.disableDefaultStyling)==null?0:L.call(m))},K)),
el:G}))},"mf");
_.ah.idomCompat=!0;var Zsz=_.P(function(m){var G=m.imageData;var K=_.sQ(m.isInList,!1),W=function(){return K()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.r("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.r(_.p,{cond:function(){return G().image},
then:function(L){return _.r(_.oC,{data:L,alt:function(){return W().alt},
contentMode:function(){return W().contentMode},
targetWidth:function(){return W().targetWidth},
targetHeight:function(){return W().targetHeight},
className:function(){return W().className}})}}),_.r("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.r("div",{class:_.VO("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.D0,{each:function(){var L;
return(L=G().description)!=null?L:[]}},function(L){return _.r("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.r(oh,{content:L}))})))},"nf"),ddD=_.P(function(m){var G=m.list;
var K=function(){var W;return(W=G().items)!=null?W:[]};
return _.r("div",{class:"ytwGenAiRichTextViewModelListContent"},_.r(_.p,{cond:function(){return G().title},
then:function(W){return _.r("div",{class:_.VO("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.r(_.Nm,{text:W}))}}),_.r(_.p,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.r("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.r(_.D0,{each:K},function(W){return _.r("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.r(oh,{content:W,isInList:!0}))}))}}),_.r(_.p,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.r("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.r(_.D0,{each:K},function(W){return _.r("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.r(oh,{content:W,isInList:!0}))}))}}),_.r(_.p,{cond:function(){return G().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.r("div",{class:"ytwGenAiRichTextViewModelImageList"},_.r(_.D0,{each:K},function(W){return _.r("div",{class:"ytwGenAiRichTextViewModelListItem"},_.r(oh,{content:W,isInList:!0}))}))}}))},"of"),P6D=_.P(function(m){var G=m.table;
return _.r("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.r("thead",null,_.r("tr",null,_.r(_.D0,{each:function(){var K,W;return(W=(K=G().header)==null?void 0:K.cells)!=null?W:[]}},function(K){return _.r("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.r(_.D0,{each:function(){return K.contents}},function(W){return _.r(oh,{content:W})}))}))),_.r("tbody",null,_.r(_.D0,{each:function(){var K;
return(K=G().rows)!=null?K:[]}},function(K){return _.r("tr",null,_.r(_.D0,{each:function(){return K.cells}},function(W){return _.r("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.r(_.D0,{each:function(){return W.contents}},function(L){return _.r(oh,{content:L})}))}))})))},"pf"),oh=_.P(function(m){var G=m.content;
var K=_.sQ(m.isInList,!1),W=function(){var L,A;return(A=(L=G().contentBlock)==null?void 0:L.contents)!=null?A:[]};
return _.r("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.r(_.p,{cond:function(){return G().text},
then:function(L){return _.r(_.Nm,{className:"ytwGenAiRichTextViewModelText",text:L})}}),_.r(_.p,{cond:function(){return G().image},
then:function(L){return _.r(Zsz,{imageData:L,isInList:K})}}),_.r(_.p,{cond:function(){return G().list},
then:function(L){return _.r(ddD,{list:L})}}),_.r(_.p,{cond:function(){return G().contentBlock},
then:function(){return _.r("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.r(_.D0,{each:W},function(L){return _.r(oh,{content:L,isInList:!1})}))}}),_.r(_.p,{cond:function(){return G().table},
then:function(L){return _.r(P6D,{table:L})}}))},"qf"),yVP=_.P(function(m){var G={};
G=_.KQ("ytwGenAiRichTextViewModelHost",(G.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.zf("search_overview_link_style")),G));return _.r("gen-ai-rich-text-view-model",{class:G},_.r(oh,{content:function(){return m.data().content}}))},"rf");_.eGq=_.P(function(m){var G=m.data;var K=function(){var v;return((v=G().loadingUi)!=null?v:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},W=function(){return G().isLoading&&(K()==="UNSPECIFIED"||K()==="GHOST_CARD")},L=function(){return!G().isLoading},A=function(){return!!G().content&&!G().contents},O=function(){return!!G().contents},c=function(){return!!G().nextQueryButtons},u=function(){return G().isLoading&&K()==="INVISIBLE"},h=function(){var v,I;
return(I=(v=G().headerIcon)==null?void 0:v.iconType)!=null?I:""},J=function(){var v;
return(v=G().content)!=null?v:""},N=function(){return!!G().sourcesSection},D,t=!((D=_.xS().resolve(_.fn(_.l_)))==null||!D()),a=_.pT(function(){var v=[],I=G().contents;
if(I)for(var Z=0;Z<I.length;Z++){var k=_.Q(I&&I[Z],Pm0);k&&v.push(k)}return v},void 0,"gcCsZb");
_.bX(function(){G().isLoading||_.Yt("so_re",void 0,"search_overview_answer")});
return _.r("ytd-overview-answer-view-model",{class:function(){var v={};v=(v.ytdOverviewAnswerViewModelHost=!0,v.ytdOverviewAnswerViewModelDarkBackground=t&&!u(),v.ytdOverviewAnswerViewModelLightBackground=!t&&!u(),v);return _.KQ(v)}},_.r(_.p,{cond:function(){return!u()},
then:function(){return _.r(_.zL,null,_.r("h2",null,_.r("div",{class:"ytdOverviewAnswerViewModelHeader"},_.r(_.p,{cond:h,then:function(v){return _.r("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.r(_.fN,{icon:v}))}}),_.r("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.r("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return G().headerText}),_.r("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.r(_.Nm,{text:function(){return G().headerSubtext}}))))),_.r(_.p,{cond:W,
then:function(){return _.r(k2d,null)}}),_.r(_.p,{cond:L,
then:function(){return _.r(_.zL,null,_.r(_.p,{cond:A,then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelText"},_.r(_.ah,{text:J,isSmallText:!0}))}}),_.r(_.p,{cond:O,
then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelRichText"},_.r(_.D0,{each:a},function(v){return _.r(yVP,{data:v})}))}}),_.r(_.p,{cond:c,
then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.r(_.z$,{data:function(){return G().nextQueryButtons}},{buttonViewModel:function(v){return _.r(_.kP,{data:v.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.FW}))}}),_.r("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.r("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.r(_.p,{cond:function(){return!!_.Q(G().likeButtonViewModel,_.JA)&&!!_.Q(G().dislikeButtonViewModel,_.NP)},
then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.r(_.uC,{data:function(){return _.Q(G().likeButtonViewModel,_.JA)},
disableIconAnimation:!0}),_.r(_.r0,{data:function(){return _.Q(G().dislikeButtonViewModel,_.NP)}}))}})),_.r(_.p,{cond:function(){var v;
return(v=G().sourcesSection)==null?void 0:v.headerText},
then:function(v){return _.r("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.r(_.Nm,{text:v}))}})),_.r(_.p,{cond:N,
then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelSources"},_.r(_.z$,{data:function(){var v;return(v=G().sourcesSection)==null?void 0:v.sourcesShelf}},{buttonViewModel:_.kP,
horizontalShelfViewModel:function(v){return _.r(_.FW,{data:v.data,includeMargin:!0,hasPeek:!0})}}))}}),_.r(_.p,{cond:function(){return G().disclaimerText},
then:function(){return _.r("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.r(_.Nm,{text:function(){return G().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"sf");var fF6=_.P(function(m){var G=_.ql(m,{}).data;return _.r("yt-shopping-content-line-item-view-model",{class:_.VO("ytShoppingContentLineItemViewModelHost")},_.r(_.Nm,{text:function(){var K;return(K=G().text)==null?void 0:K.attributedString}}))},"tf");_.nM=_.P(function(m){m=_.ql(m,{});var G=m.data,K={};return _.r("yt-shopping-content-line-view-model",{class:_.VO("ytShoppingContentLineViewModelHost",m.className,(K.ytShoppingContentLineViewModelTruncateText=function(){return!G().wrapContent},K)),
style:_.eA({"--shopping-content-line-gap":function(){return G().itemGap?G().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return G().lineHeight?G().lineHeight+"px":void 0}})},_.r(_.D0,{each:function(){return(G().items||[]).map(function(W){return _.Q(W,SbP)}).filter(function(W){return!!W})}},function(W){return _.r(fF6,{data:W})}))},"uf");var xdE=_.P(function(m){var G=m.data;var K=function(){var A;return((A=G().image)==null?void 0:A.height)||48},W=function(){var A;
return((A=G().image)==null?void 0:A.width)||48},L=function(){return"width: "+W()+"px; height: "+K()+"px;"};
return _.r("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var A,O,c,u=((A=_.xS().resolve(_.fn(_.l_)))==null?0:A())?(O=G())==null?void 0:O.darkThemeBackgroundColor:(c=G())==null?void 0:c.lightThemeBackgroundColor;return"background-color: "+(u?_.ce(u):"")+";"},
el:_.aC(_.On(function(){var A;return(A=G())==null?void 0:A.rendererContext})),
role:"link",tabindex:0},_.r(_.p,{cond:function(){var A,O;return(O=(A=G().image)==null?void 0:A.image)!=null?O:G().thumbnail},
then:function(A){return _.r("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var O;return"background-color: "+(((O=G().image)==null?0:O.backgroundColor)?_.ce(G().image.backgroundColor):"")+";"+L()}},_.r(_.oC,{data:A,
height:K,width:W,style:L,alt:""}))}}),_.r("div",{class:"ytShoppingDescriptionItemViewModelText"},_.r(_.z$,{data:function(){return G().line1}},{shoppingContentLineViewModel:function(A){return _.r(_.nM,{data:A.data})}}),_.r(_.z$,{data:function(){return G().line2}},{shoppingContentLineViewModel:function(A){return _.r(_.nM,{data:A.data})}}),_.r(_.z$,{data:function(){return G().line3}},{shoppingContentLineViewModel:function(A){return _.r(_.nM,{data:A.data})}})))},"vf");var XJD=_.P(function(m){var G=m.data;var K=m.active;var W=_.Q3("transcript-segment-view-model");_.$O(function(){var L,A,O,c=((L=_.xS().resolve(_.fn(_.l_)))==null?0:L())?(A=G())==null?void 0:A.darkThemeColorPalette:(O=G())==null?void 0:O.lightThemeColorPalette;c&&(c.additiveBackground&&W.value.style.setProperty("--timestamp-active-background-color",_.ce(c.additiveBackground)),c.textSecondary&&W.value.style.setProperty("--timestamp-active-color",_.OM(c.textSecondary)))},"TnVCnb");
m={};return _.r("transcript-segment-view-model",{class:_.VO("ytwTranscriptSegmentViewModelHost",(m.ytwTranscriptSegmentViewModelHostActive=K,m.ytwTranscriptSegmentViewModelHostModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),m)),el:W},_.r(_.p,{cond:function(){var L;return(L=G())==null?void 0:L.timestamp},
then:function(L){var A={};return _.r(_.zL,null,_.r("div",{class:_.VO("ytwTranscriptSegmentViewModelTimestamp",(A.ytwTranscriptSegmentViewModelTimestampActive=K,A)),"aria-hidden":!0},L),_.r("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var O=L().split(":").map(Number),c=_.g(O.reverse());O=c.next().value;var u=c.next().value;c=c.next().value;return _.txf({hours:c,minutes:u,seconds:O})}))}}),_.r(_.Nm,{text:function(){var L,A,O;
return(O=(L=G())==null?void 0:L.attributedText)!=null?O:{content:(A=G())==null?void 0:A.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"xf");var Sdz=_.P(function(m){var G=m.data;return _.r("div",{class:"videoAttributesSectionViewModelHeader"},_.r("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.r("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return G().headerTitle}),_.r(_.p,{cond:function(){return G().headerInfoButton},
then:function(){return _.r(_.z$,{data:function(){return G().headerInfoButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.r(_.p,{cond:function(){return G().headerSubtitle},
then:function(){return _.r("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return G().headerSubtitle})}}))},"yf"),RGW=_.P(function(m){function G(v){return Math.max(Math.min(v,0),h()-c())}
var K=m.data;var W;m=_.Q3("div",function(v){var I=function(){J(v.clientWidth)};
I();window.ResizeObserver&&(W=new ResizeObserver(I),W.observe(v))});
var L=_.Q3("div",function(v){u(v.scrollWidth)}),A=_.g(_.g_(0,void 0,"C3XQAe")),O=A.next().value;
A=A.next().value;var c=O,u=A;A=_.g(_.g_(0,void 0,"db7y3"));O=A.next().value;A=A.next().value;var h=O,J=A;O=_.g(_.g_(0,void 0,"RchC7"));var N=O.next().value,D=O.next().value;_.sZ(function(){var v;(v=W)==null||v.disconnect()});
var t=function(){D(G(N()+h()))},a=function(){D(G(N()-h()))};
return _.r("yt-video-attributes-section-view-model",null,_.r("div",{class:"videoAttributesSectionViewModelHost"},_.r(_.p,{cond:function(){return K().headerTitle},
then:function(){return _.r(Sdz,{data:K})}}),_.r("div",{class:_.VO("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:m},_.r("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.eA({transform:function(){var v=N();_.E8("HTML_DIR")==="rtl"&&(v*=-1);return"translateX("+v+"px)"}}),
el:L},_.r(_.z$,{data:function(){return K().videoAttributeViewModels}},{videoAttributeViewModel:$sF}))),_.r(_.z$,{data:function(){return K().footerButton}},{buttonViewModel:function(v){return _.r(_.kP,{data:v.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.r(_.p,{cond:function(){return N()<0&&K().previousButton},
then:function(){return _.r("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.r(_.z$,{data:function(){return K().previousButton}},{buttonViewModel:function(v){return _.r(_.kP,{data:v.data,
onClick:t})}}))}}),_.r(_.p,{cond:function(){return N()>h()-c()&&K().nextButton},
then:function(){return _.r("div",{class:"videoAttributesSectionViewModelRightArrow"},_.r(_.z$,{data:function(){return K().nextButton}},{buttonViewModel:function(v){return _.r(_.kP,{data:v.data,
onClick:a})}}))}})))},"zf");
RGW.idomCompat=!0;var Uds=_.P(function(m){var G=m.data;var K=m.active;var W={},L={};return _.r("timeline-item-view-model",{class:_.VO("ytwTimelineItemViewModelHost",(W.ytwTimelineItemViewModelHostChapterChild=m.chapterChild,W.ytwTimelineItemViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),W))},_.r("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.r("div",{class:_.VO("ytwTimelineItemViewModelTimestamp",(L.ytwTimelineItemViewModelTimestampActive=
K,L))},function(){return G().timestamp})),_.r("div",{class:"ytwTimelineItemViewModelContentItems"},_.r(_.z$,{data:function(){return G().contentItems}},{transcriptSegmentViewModel:function(A){return _.r(XJD,{data:A.data,
active:K})},
videoAttributesSectionViewModel:RGW})))},"Af");var zGu=_.P(function(m){var G=m.data;m={};return _.r("timeline-chapter-view-model",{class:_.VO("ytwTimelineChapterViewModelHost")},_.r("div",{class:_.VO("ytwTimelineChapterViewModelTitle",(m.ytwTimelineChapterViewModelModern=_.F("enable_timeline_view_modern_transcript")||_.F("enable_timeline_view_modern_transcript_fe"),m))},function(){return G().title}),_.r(_.z$,{data:function(){return G().contents}},{timelineItemViewModel:function(K){return _.r(Uds,{data:K.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(K){return _.r(RGW,{data:K.data})}}))},"Bf");var lFi=_.P(function(m){var G=m.data;var K=_.Q3("macro-markers-panel-item-view-model"),W=_.S5(_.vpf,function(){var A;return(A=G().markersEngagementPanelSyncEntityKey)!=null?A:""}),L=function(){var A;
return((A=W())==null?void 0:A.activeItemIndex)===G().index};
m=_.dn(function(A){var O,c,u,h,J;return _.Y(function(N){if(N.nextAddress==1)return A.stopPropagation(),_.A3(_.LQ(A),K.value,["A".toString(),"BUTTON".toString()])?N.return():(O=_.c8(G().onTap))?N.yield(_.Pp(),2):N.return();c=N.yieldResult;h=(u=_.Q(O,_.QQ))==null?void 0:u.startTimeSeconds;h===void 0||(J=c)!=null&&J.seekTo(h,!0);_.ey(N)})});
return _.r("macro-markers-panel-item-view-model",{class:_.VO("ytwMacroMarkersPanelItemViewModelHost",{"is-active":L}),el:K,"on:click":m,tabindex:function(){return _.Q(G().item,RbS)?void 0:0},
role:function(){return _.Q(G().item,RbS)?void 0:"button"}},_.r(_.z$,{data:function(){var A;
return(A=G())==null?void 0:A.item}},{timelineChapterViewModel:function(A){return _.r(zGu,{data:A.data,
active:L})},
timelineItemViewModel:function(A){return _.r(Uds,{data:A.data,active:L})},
videoAttributeViewModel:$sF,shoppingDescriptionItemViewModel:xdE}))},"Cf");
lFi.idomCompat=!0;_.sh(lFi,"macro-markers-panel-item-view-model",{props:{data:_.Dd}});_.sh(RGW,"yt-video-attributes-section-view-model",{props:{data:_.Dd}});var BdP=_.P(function(m){var G=function(){var K,W,L;return(L=(K=m.data().leadingLogoAccessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)!=null?L:""};
return _.r("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.r(_.p,{cond:function(){return m.data().leadingLogo},
then:function(K){return _.r(_.oC,{className:"ytwFantasySectionHeaderViewModelLogo",data:K,alt:G})}}),_.r("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.r(_.Nm,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return m.data().title}}),_.r(_.Nm,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return m.data().subtitle}})),_.r(_.z$,{data:function(){return m.data().trailingButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Df");var Mo6=_.P(function(m){var G={};G=_.VO("ytwFantasyTeamViewModelHost",(G.ytwFantasyTeamViewModelCompact=function(){var L;return!((L=m.compact)==null||!L.call(m))},G.ytwFantasyTeamViewModelUser=function(){return m.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},G.ytwFantasyTeamViewModelOpponent=function(){return m.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},G));
var K=function(){var L,A,O;return(O=(L=m.data().teamLogoAccessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label)!=null?O:""},W=_.S5(scf,function(){return m.data().teamEntityKey});
return _.r("ytw-fantasy-team-view-model",{class:G},_.r(_.p,{cond:function(){return m.data().teamLogo},
then:function(L){return _.r(_.oC,{className:"ytwFantasyTeamViewModelLogo",data:L,alt:K})}}),_.r("div",{class:"ytwFantasyTeamViewModelMetadata"},_.r("div",{class:"ytwFantasyTeamViewModelHeader"},_.r(_.Nm,{className:"ytwFantasyTeamViewModelScore",
text:function(){var L;return(L=W())==null?void 0:L.score}}),_.r(_.fN,{icon:function(){var L;
return(L=W())==null?void 0:L.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.r(_.Nm,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var L;return(L=W())==null?void 0:L.projectedScore}})),_.r(_.Nm,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return m.data().primaryText}}),_.r(_.Nm,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return m.data().secondaryText}}),_.r(_.Nm,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return m.data().tertiaryText}})),_.r(_.Nm,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var L;return(L=W())==null?void 0:L.score}}))},"Ef");_.sh(_.P(function(m){return _.r("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.r("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.r(_.z$,{data:function(){return m.data().summaryHeader}},{fantasySectionHeaderViewModel:BdP})),_.r(_.z$,{data:function(){return m.data().userTeam}},{fantasyTeamViewModel:Mo6}),_.r(_.z$,{data:function(){return m.data().opponentTeam}},{fantasyTeamViewModel:Mo6}))},"Ff"),"fantasy-league-summary-view-model",{props:{data:_.Dd}});var Tdi=_.P(function(m){var G=_.ql(m,{shape:{},useCustomTabRenderable:!1}),K=G.shape;G=G.useCustomTabRenderable;var W=m.customTabRenderable,L=function(){return K().disabled},A=function(){return K().selected},O=function(){return K().title},c=function(){return K().icon},u=_.Q3("yt-tab-shape");
m=_.dn(function(N){var D;if(!L()&&((D=K().aTagConfig)==null?0:D.onclick))K().aTagConfig.onclick(N);return!1});
var h=_.dn(function(N){if(N.key==="Enter"||N.key==="ArrowUp"||N.key==="ArrowDown")N.preventDefault(),u.value.click();return!1}),J={};
return _.r("yt-tab-shape",{class:_.VO("yt-tab-shape",function(){return K().className},(J["yt-tab-shape__tab--last-tab"]=function(){return K().isLastTab},J["yt-tab-shape--host-disabled"]=L,J["yt-tab-shape--host-clickable"]=!W,J)),
role:W?void 0:"tab","aria-selected":A!=null?A:!1,"aria-disabled":L,tabindex:W?void 0:0,"on:click":m,"on:keydown":h,el:u,"tab-identifier":function(){return K().identifier},
"tab-title":O},_.r(_.p,{cond:G,then:function(){return W()},
else:function(){var N={},D={};return _.r(_.zL,null,_.r("div",{class:_.VO("yt-tab-shape__tab",(N["yt-tab-shape__tab--tab-selected"]=A,N))},_.r(_.p,{cond:c,then:function(t){return _.r(_.fN,{className:"yt-tab-shape__tab-icon",icon:function(){return t().iconType}})}}),O),_.r("div",{class:_.VO("yt-tab-shape__tab-bar",(D["yt-tab-shape__tab-bar--tab-bar-selected"]=A,D))}))}}))},"Gf");
Tdi.idomCompat={callbacks:{customTabRenderable:!0}};_.ilD=_.P(function(m){var G=m.shape;m=_.g(_.g_(48,void 0,"nDAx4"));var K=m.next().value,W=m.next().value;m=_.g(_.g_(0,void 0,"GCgjqb"));var L=m.next().value,A=m.next().value,O=function(){return G().tabs},c=_.Q3("yt-tab-group-shape"),u=function(){var D,t;
return(t=(D=O())==null?void 0:D.findIndex(function(a){return a.selected}))!=null?t:-1};
m=_.g(_.g_(!1,void 0,"SU01tf"));var h=m.next().value,J=m.next().value,N=function(){h()||_.Fu.addJob(function(){J(!0)},0)};
_.$O(function(){var D=u(),t=_.Fu.addJob(function(){var a,v=((a=c.value)==null?void 0:a.querySelectorAll("yt-tab-shape"))||[],I;W(((I=D>-1?v[D]:void 0)==null?void 0:I.getBoundingClientRect().width)||0);for(I=a=0;I<D;I++)a+=v[I].offsetWidth+24;_.E8("HTML_DIR")==="rtl"&&(a=-a);A(a);N()},8,0);
_.sZ(function(){_.Fu.cancelJob(t)})},"PMwgb");
m={};return _.r("yt-tab-group-shape",{class:_.VO("tabGroupShapeHost",(m.tabGroupShapeOverflowHidden=function(){return G().isOverflowHidden},m)),
el:c},_.r(_.p,{cond:O,then:function(D){return _.r(_.zL,null,_.r("div",{class:"tabGroupShapeTabs",role:"tablist"},_.r(_.D0,{each:D},function(t,a){return _.r(Tdi,{shape:function(){return Object.assign({},t,{isLastTab:a()===D().length-1})},
customTabRenderable:t.customTabRenderable,useCustomTabRenderable:!!t.customTabRenderable})})),_.r(mGu,{width:K,
sliderOffset:L,enableTransition:h}))}}))},"If");
_.ilD.idomCompat=!0;var mGu=_.P(function(m){var G=_.sQ(m.sliderOffset,0),K=m.width,W=m.enableTransition;m={};return _.r("div",{class:_.VO("tabGroupShapeSlider",(m.tabGroupShapeSliderTransition=function(){return W()},m)),
style:_.eA({width:function(){return K()+"px"},
transform:function(){return"translateX("+G()+"px)"}})})},"Jf");var G4D=_.P(function(m){var G=function(){var A,O,c;return(c=(A=m.data().playerLogoAccessibility)==null?void 0:(O=A.accessibilityData)==null?void 0:O.label)!=null?c:""},K=_.S5(qFd,function(){return m.data().playerEntityKey}),W={};
W=_.VO("ytwFantasyPlayerViewModelHost",(W.ytwFantasyPlayerViewModelPlaying=function(){var A;return!((A=K())==null||!A.isPlayerPlaying)},W.ytwFantasyPlayerViewModelOnField=function(){var A;
return((A=K())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},W.ytwFantasyPlayerViewModelRedZone=function(){var A;
return((A=K())==null?void 0:A.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},W));
var L=function(){var A,O,c,u=((A=_.xS().resolve(_.fn(_.l_)))==null?0:A())?(O=m.data().playerLogoBackgroundColor)==null?void 0:O.darkTheme:(c=m.data().playerLogoBackgroundColor)==null?void 0:c.lightTheme;return u===void 0?"":_.ce(u)};
return _.r("ytw-fantasy-player-view-model",{class:W},_.r(_.p,{cond:function(){return m.data().playerLogo},
then:function(A){return _.r("div",{class:"ytwFantasyPlayerViewModelLogo"},_.r("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.r(_.oC,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.eA({"background-color":L}),data:A,alt:G})),_.r("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.r(_.fN,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.r("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.r("div",{class:"ytwFantasyPlayerViewModelHeader"},_.r(_.Nm,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var A;return(A=m.data())==null?void 0:A.playerNameText}}),_.r(_.Nm,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var A;return(A=m.data())==null?void 0:A.playerDescriptionText}})),_.r("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.r(_.Nm,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=K())==null?void 0:A.gamePeriodText}}),_.r(_.Nm,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=m.data())==null?void 0:A.opponentTeamText}}),_.r(_.Nm,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var A;return(A=K())==null?void 0:A.gameStatusText}}),_.r(_.Nm,{className:_.VO("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var A;return(A=K())==null?void 0:A.playerStatusText}})),_.r("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.r(_.Nm,{text:function(){var A;
return(A=K())==null?void 0:A.playerStatsText}}))),_.r(_.Nm,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var A;return(A=K())==null?void 0:A.fantasyScore}}))},"Kf");var KC6=_.P(function(m){return _.r("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.r(_.p,{cond:function(){return m.data().players},
then:function(G){return _.r(_.z$,{data:G},{fantasyPlayerViewModel:G4D})}}))},"Lf");var WC6=_.P(function(m){var G=_.g(_.EQ(function(){var L;return(L=m.data().selectedTabIdentifierKey)!=null?L:""})),K=G.next().value,W=G.next().value;
_.nn(function(){var L;(L=m.setSelectedTabSignal)==null||L.call(m,K)});
return _.r("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.r("div",{class:"ytTabbedViewModelTabGroup"},_.r(_.ilD,{shape:function(){var L=m.data(),A=[],O={tabs:A};if(!L.tabs)return O;L=_.g(L.tabs);for(var c=L.next(),u={};!c.done;u={tabViewModel:void 0},c=L.next())if(u.tabViewModel=_.Q(c.value,MBo),u.tabViewModel){var h=c=void 0;A.push({aTagConfig:{onclick:function(J){return function(){var N;W((N=J.tabViewModel.tabIdentifier)!=null?N:"")}}(u)},
identifier:u.tabViewModel.tabIdentifier,selected:K()===u.tabViewModel.tabIdentifier,title:(h=(c=u.tabViewModel.title)==null?void 0:c.content)!=null?h:""})}return O}})),_.r(_.z$,{data:function(){var L,A=_.g((L=m.data().tabs)!=null?L:[]);
for(L=A.next();!L.done;L=A.next())if((L=_.Q(L.value,MBo))&&L.tabIdentifier===K())return L.content}},{fantasyRosterViewModel:KC6}))},"Nf");_.sh(_.P(function(m){var G=_.g(ClF()),K=G.next().value,W=G.next().value;return _.r("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.r(_.Nm,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return m.data().title}}),_.r(_.p,{cond:function(){return m.data().tabbedViewModel},
then:function(L){return _.r(_.z$,{data:L},{tabbedViewModel:function(A){return _.r(WC6,{data:A.data,setSelectedTabSignal:W})}})}}),_.r(_.p,{cond:function(){var L,A=(L=_.Q(m.data().tabbedViewModel,Tti))==null?void 0:L.tabs;
L=_.Q(A==null?void 0:A[0],MBo);A=_.Q(A==null?void 0:A[1],MBo);var O=L==null?void 0:L.tabIdentifier;if(K()===O){var c,u;if(!((c=_.Q(L==null?void 0:L.content,gY2))==null?0:(u=c.players)==null?0:u.length))return m.data().noUserTeamPlayersText}else{var h,J;if(!((h=_.Q(A==null?void 0:A.content,gY2))==null?0:(J=h.players)==null?0:J.length))return m.data().noOpponentTeamPlayersText}},
then:function(L){return _.r(_.Nm,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:L})}}))},"Of"),"ytw-fantasy-matchup-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){return _.r("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.r(_.Nm,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return m.data().title}}),_.r(_.p,{cond:function(){return m.data().matchupTeamPairs},
then:function(G){return _.r(_.D0,{each:G,keyBy:"INDEX"},function(K){return _.r("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.r(_.z$,{data:function(){return[K().firstTeam,K().secondTeam]}},{fantasyTeamViewModel:function(W){return _.r(Mo6,{data:W.data,
compact:!0})}}))})}}))},"Pf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=function(){var L,A,O;return(O=(L=m.data().userLogoAccessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label)!=null?O:""},K=function(){var L,A,O;
return(O=(L=m.data().opponentLogoAccessibility)==null?void 0:(A=L.accessibilityData)==null?void 0:A.label)!=null?O:""},W=_.S5($n9,function(){return m.data().entityKey});
return _.r("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.r("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.r(_.p,{cond:function(){return m.data().userLogo},
then:function(L){return _.r(_.oC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:G})}}),_.r("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.r(_.Nm,{text:function(){return m.data().title}})),_.r(_.p,{cond:function(){return m.data().opponentLogo},
then:function(L){return _.r(_.oC,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:K})}})),_.r("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.r("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.r(_.Nm,{text:function(){var L;
return(L=W())==null?void 0:L.userWinNumberLabel}})),_.r("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.r("div",{class:_.VO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.eA({flex:function(){var L,A;return(A=(L=W())==null?void 0:L.userWinNumber)!=null?A:50}})}),_.r("div",{class:_.VO("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.eA({flex:function(){var L,A;return(A=(L=W())==null?void 0:L.opponentWinNumber)!=null?A:50}})})),_.r("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.r(_.Nm,{text:function(){var L;
return(L=W())==null?void 0:L.opponentWinNumberLabel}}))))},"Qf"),"fantasy-win-probability-view-model",{props:{data:_.Dd}});var LCO={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},Aiz=_.P(function(m){return _.r(_.z$,{data:m.button},{buttonViewModel:function(G){return _.r(_.kP,{data:G.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Rf"),w25=_.P(function(m){return _.r("ytd-backstage-locked-post-view-model",{class:_.VO("ytdBackstageLockedPostViewModelHost",m.className)},_.r("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.r("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.r(_.z$,
{data:function(){return m.data().authorAvatar}},{decoratedAvatarViewModel:_.cr})),_.r("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.r("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.r(_.Nm,{text:function(){return m.data().authorText}})),_.r("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.r(_.Nm,{text:function(){return m.data().publishedTimeText}}),_.r(_.z$,{data:function(){return m.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(G){return _.r(mDR,
{data:G.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.r("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.r(_.Nm,{text:function(){return m.data().contentText}})),_.r(_.tw,null,_.r(_.Jw,{when:function(){return m.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.r("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.r(_.oC,{data:LCO,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.r(_.Nm,{text:function(){return m.data().lockedText}}))}),_.r(_.Jw,{when:function(){return m.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.r("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.r("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.r(_.oC,{data:LCO,
alt:""})),_.r(_.Nm,{text:function(){return m.data().lockedText}}))})),_.r("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.r(Aiz,{button:function(){return m.data().likeButton}}),_.r("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return m.data().voteCountA11y}},_.r(_.Nm,{text:function(){return m.data().voteCount}})),_.r(Aiz,{button:function(){return m.data().dislikeButton}}),_.r(Aiz,{button:function(){return m.data().commentButton}}),_.r("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return m.data().commentCountA11y}},_.r(_.Nm,{text:function(){return m.data().commentCount}}))))},"Sf");
w25.idomCompat=!0;_.sh(w25,"ytd-backstage-locked-post-view-model",{props:{data:_.Dd,className:_.Dd}});_.Kz("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var bo=function(){var m=_.d.apply(this,arguments)||this;m.darkerPanels=_.F("web_watch_darker_panels");m.commentsHidePanelButton=!1;m.isWatchGrid=!1;m.continuationShowButton=!1;m.isSearch=!1;m.isConstrainedList=!1;m.isWatch=!1;m.eligibleToSwitchToGrid=!1;m.useBigThumbs=!1;m.epRestyle=!1;m.isCarouselInFeed=!0;m.topSpacingZero=!1;m.continuationIsInitialLoad=!0;m.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");m.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");m.notSticky=
!0;m.mastheadHeight=0;m.isStickyChipBarSetup=!1;m.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};m.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return m};
_.n(bo,_.d);_.w=bo.prototype;_.w.updateLockupContainerTypes=function(m){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||G.forEach(function(K){K.containerType=m})}};
_.w.getItemsPath=function(){return"data.contents"};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.F("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.F("kevlar_low_priority_continuation")}}};
_.w.created=function(){};
_.w.updateStickySetup=function(){_.F("web_fix_sticky_playlist_header_v2")&&this.pageSubtype==="playlist"?this.setupStickyChipBar():this.teardownStickyChipBar()};
_.w.dispatchChipBarIsSticky=function(){this.isStickyChipBarSetup&&this.ytdReduxBehavior.dispatch(n$B(!this.notSticky))};
_.w.setupStickyChipBar=function(){var m=this;if(!this.isStickyChipBarSetup&&_.F("web_fix_sticky_playlist_header_v2")){this.isStickyChipBarSetup=!0;document.addEventListener("scroll",_.xC(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;this.updateHeaderCssVariables();window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(K){m.handleIntersect(K)},{rootMargin:"-"+(this.mastheadHeight+
1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){m.updateHeaderState();m.updateHeaderCssVariables()}),this.resizeObserver.observe(this.hostElement))}};
_.w.teardownStickyChipBar=function(){if(this.isStickyChipBarSetup){this.isStickyChipBarSetup=!1;document.removeEventListener("scroll",_.xC(this,this.updateHeaderState));var m;(m=this.intersectionObserver)==null||m.disconnect();var G;(G=this.resizeObserver)==null||G.disconnect()}};
_.w.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.w.handleIntersect=function(m){this.notSticky=m[0].intersectionRatio===1};
_.w.updateHeaderCssVariables=function(){this.hostElement.style.setProperty("--ytd-item-section-header-width",this.hostElement.clientWidth+"px");this.hostElement.style.setProperty("--ytd-item-section-header-top",this.mastheadHeight+"px")};
_.w.detached=function(){this.teardownStickyChipBar()};
_.w.updated=function(m){m.has("data")&&this.isStickyChipBarSetup&&(this.updateHeaderState(),this.updateHeaderCssVariables())};
_.w.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var m=_.VL(this.hostElement).querySelector("ytd-comments-header-renderer");m&&(m.hidePanelButton=this.commentsHidePanelButton)}};
_.w.onRetrieveLocation=function(m,G){this.containsComments()&&(this.firstCommentsLoaded=G.hasComments=!0)};
_.w.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.w.onLoadReloadContinuation=function(m,G){var K=this;m.stopPropagation();this.isReloading=!0;_.Zw(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(W){var L=_.xS().resolve(_.M_);W=G(W);L.postData(W).then(function(A){K.onReloadContinuationData(A)})}})};
_.w.onReloadContinuationData=function(m){if(m=this.get("response.continuationContents.itemSectionContinuation",m)||this.get("response.contents.itemSectionRenderer",m)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",m)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",m))this.set("data.contents",m.contents||m.results),m.header&&this.set("data.header",m.header),this.set("data.continuations",
m.continuations||[]);this.isReloading=!1};
_.w.computeContentsClass=function(m){return m?"reloading":""};
_.w.computeSectionIdentifier=function(m){return m==null?void 0:m.sectionIdentifier};
_.w.computeFitContainer=function(m){return(m==null?void 0:m.sectionIdentifier)==="youchat-item-section"};
_.w.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.F("kevlar_disable_comments_auto_load")};
_.w.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.w.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.w.computeHasDestinationShelfRenderer=function(m){var G,K;return!!(m==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.destinationShelfRenderer)};
_.w.computeHasSectionGroupViewModel=function(m){var G,K;return!!(m==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.sectionGroupViewModel)};
_.w.computeHasQrCodeRenderer=function(m){var G,K;return!!(m==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.qrCodeRenderer)};
_.w.computeStaticCommentsHeader=function(m){return m&&this.containsComments()};
_.w.computeEpRestyle=function(m){return _.F("web_ep_restyling")&&m&&this.containsComments()};
_.w.computeIsContinuationCommentSection=function(m){return(m==null?void 0:m.targetId)==="shorts-engagement-panel-comments-section"||(m==null?void 0:m.targetId)==="comments-section"||(m==null?void 0:m.targetId)==="engagement-panel-comments-section"};
_.w.computeSuppressPaddingDisclaimer=function(){var m,G,K,W;return!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:(W=K.productListHeaderRenderer)==null?0:W.suppressPaddingDisclaimer)};
_.w.computeHeaderStyle=function(m){switch(m==null?void 0:m.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.w.dataChanged=function(){this.firstCommentsLoaded=!1};
_.w.observeDataContentsLength=function(){var m,G;((m=this.data)==null?0:(G=m.contents)==null?0:G.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.w.onYtDismissibleItemDismissedChange=function(m){this._setItemDismissed(m.type==="yt-dismissible-item-dismissed")};
_.w.triggerContinuations=function(){for(var m=_.VL(this.hostElement).querySelector("#continuations").children,G=0;G<m.length;G++)m[G].trigger()};
_.w.triggerInitialContinuations=function(){for(var m=_.VL(this.hostElement).querySelector("#continuations").children,G=0;G<m.length;G++)m[G].triggerIfNotPreviouslyTriggered()};
_.w.handleYtItemSectionContinuation=function(m,G){var K;G&&((K=this.data)==null?void 0:K.sectionIdentifier)!==G||(this.set("data.continuations",[m]),this.triggerContinuations())};
_.w.handleYtItemSectionReplace=function(m,G){var K;G&&((K=this.data)==null?void 0:K.sectionIdentifier)!==G||(this.set("data.contents",m),this.set("data.continuations",[]))};
_.w.computeUseHeightHack=function(m){return m&&!_.F("kevlar_disable_height_hack")};
_.w.computeTopSpacingZero=function(m){return m};
_.w.continuationShowButtonChanged=function(){var m=_.VL(this.hostElement).querySelector("ytd-continuation-item-renderer");m&&(m.showButton=this.continuationShowButton)};
_.w.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("data-changed",this.data))};
_.e_.Object.defineProperties(bo.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.F("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?"STANDARD":this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W,L,A,O;return!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:(W=K.shelfRenderer)==null?0:(L=W.content)==null?0:(A=L.gridRenderer)==null?0:(O=A.targetId)==null?0:O.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G[0])==null?0:K.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.zf("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.F("use_modern_typography_on_search")};if(this.isWatch)return{useInlineContentMetadata:this.useBigThumbs&&_.F("web_watch_next_big_thumbs_compact_layout"),useRichGridLegacyMargin:this.useBigThumbs}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.F("use_modern_typography_on_search")}},
useChipBarViewModelHeader:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.data)==null?0:(G=m.header)==null?0:G.chipBarViewModel)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.F("web_fix_sticky_playlist_header")}},
expFixPlaylistHeaderV2:{configurable:!0,enumerable:!0,get:function(){return _.F("web_fix_sticky_playlist_header_v2")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
bo.prototype.dataChangedForBinding=bo.prototype.dataChangedForBinding;bo.prototype.continuationShowButtonChanged=bo.prototype.continuationShowButtonChanged;bo.prototype.onYtDismissibleItemDismissedChange=bo.prototype.onYtDismissibleItemDismissedChange;bo.prototype.observeDataContentsLength=bo.prototype.observeDataContentsLength;bo.prototype.dataChanged=bo.prototype.dataChanged;bo.prototype.onServiceRequestCompleted=bo.prototype.onServiceRequestCompleted;bo.prototype.onLoadReloadContinuation=bo.prototype.onLoadReloadContinuation;
bo.prototype.onRetrieveLocation=bo.prototype.onRetrieveLocation;bo.prototype.commentsHidePanelButtonChanged=bo.prototype.commentsHidePanelButtonChanged;bo.prototype.dispatchChipBarIsSticky=bo.prototype.dispatchChipBarIsSticky;bo.prototype.updateStickySetup=bo.prototype.updateStickySetup;bo.prototype.updateLockupContainerTypes=bo.prototype.updateLockupContainerTypes;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],bo.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],bo.prototype,"ytLazyListBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],bo.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.q(_.n4),_.S("design:type",Object)],bo.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],bo.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],bo.prototype,"ytdReduxBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],bo.prototype,"darkerPanels",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],bo.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"commentsHidePanelButton",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"isWatchGrid",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"continuationShowButton",void 0);_.x([_.V({computed:"computeIsContinuationCommentSection(data)"}),_.S("design:type",Boolean)],bo.prototype,"continuationIsCommentsSection",void 0);
_.x([_.V({value:!0}),_.S("design:type",Boolean)],bo.prototype,"autoFill",void 0);_.x([_.V(),_.S("design:type",Boolean)],bo.prototype,"continuationDisablePrescanVisibility",void 0);_.x([_.V(),_.S("design:type",Boolean)],bo.prototype,"isReloading",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"isSearch",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"isConstrainedList",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"isWatch",void 0);
_.x([_.V(),_.S("design:type",Object)],bo.prototype,"eligibleToSwitchToGrid",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"useBigThumbs",void 0);_.x([_.V({selector:_.OT,reflectToAttribute:!0}),_.S("design:type",Object)],bo.prototype,"isGridViewEnabled",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.S("design:type",Object)],bo.prototype,"epRestyle",void 0);
_.x([_.E("isWatch"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"hideShortsShelfHeader",null);_.x([_.E("isSearch","isWatch"),_.S("design:type",String),_.S("design:paramtypes",[])],bo.prototype,"thumbnailWidth",null);_.x([_.E("isSearch","containerWidth"),_.S("design:type",Object),_.S("design:paramtypes",[])],bo.prototype,"thumbnailTargetWidth",null);
_.x([_.E("isSearch","isWatch","useBigThumbs"),_.S("design:type",String),_.S("design:paramtypes",[])],bo.prototype,"sizing",null);_.x([_.E("isWatch","isGridViewEnabled","useBigThumbs","data"),_.V({reflectToAttribute:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],bo.prototype,"lockupContainerType",null);_.x([_.Sb("lockupContainerType","data"),_.S("design:type",Function),_.S("design:paramtypes",[Number]),_.S("design:returntype")],bo.prototype,"updateLockupContainerTypes",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],bo.prototype,"pageSubtype",void 0);_.x([_.V(),_.S("design:type",Number)],bo.prototype,"containerWidth",void 0);_.x([_.V(),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"isPlaylist",null);_.x([_.V(),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"isClipList",null);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"isCarouselInFeed",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"isPlaylistVideoContainer",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"isSearchFrictionPage",null);_.x([_.V({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.S("design:type",Boolean)],bo.prototype,"useHeightHack",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.S("design:type",Object)],bo.prototype,"topSpacingZero",void 0);_.x([_.V({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.S("design:type",Boolean)],bo.prototype,"showButton",void 0);_.x([_.V(),_.S("design:type",Boolean)],bo.prototype,"firstCommentsLoaded",void 0);_.x([_.V(),_.S("design:type",Object)],bo.prototype,"continuationIsInitialLoad",void 0);
_.x([_.V({reflectToAttribute:!0,readOnly:!0}),_.S("design:type",Boolean)],bo.prototype,"itemDismissed",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.S("design:type",String)],bo.prototype,"sectionIdentifier",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.S("design:type",String)],bo.prototype,"fitContainer",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.S("design:type",Boolean)],bo.prototype,"hasDestinationShelfRenderer",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.S("design:type",Boolean)],bo.prototype,"staticCommentsHeader",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],bo.prototype,"enableSqueezebackPanels",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],bo.prototype,"enableAnchoredPanel",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.S("design:type",Boolean)],bo.prototype,"hasSectionGroupViewModel",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.S("design:type",Boolean)],bo.prototype,"hasQrCodeRenderer",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.S("design:type",Boolean)],bo.prototype,"suppressDisclaimerSeparator",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.S("design:type",String)],bo.prototype,"headerStyle",void 0);_.x([_.E("isSearch","isWatch","useBigThumbs"),_.S("design:type",Object),_.S("design:paramtypes",[])],bo.prototype,"lockupExperiments",null);
_.x([_.E("isSearch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"typographyBump",null);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],bo.prototype,"header",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],bo.prototype,"notSticky",void 0);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],bo.prototype,"useChipBarViewModelHeader",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"expFixPlaylistHeader",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],bo.prototype,"expFixPlaylistHeaderV2",null);_.x([_.Sb("pageSubtype"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"updateStickySetup",null);
_.x([_.Sb("notSticky"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"dispatchChipBarIsSticky",null);_.x([_.Sb("commentsHidePanelButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"commentsHidePanelButtonChanged",null);_.x([_.XC("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bo.prototype,"onRetrieveLocation",null);
_.x([_.XC("yt-load-reload-continuation"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Function]),_.S("design:returntype")],bo.prototype,"onLoadReloadContinuation",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"onServiceRequestCompleted",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"dataChanged",null);
_.x([_.Mg("data.contents.length"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"observeDataContentsLength",null);_.x([_.XC("yt-dismissible-item-dismissed"),_.XC("yt-dismissible-item-undismissed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],bo.prototype,"onYtDismissibleItemDismissedChange",null);
_.x([_.Sb("continuationShowButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"continuationShowButtonChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bo.prototype,"dataChangedForBinding",null);_.x([_.Ye({is:"ytd-item-section-renderer",disableElementRegistration:!0})],bo);
_.y(bo,"ytd-item-section-renderer",function(){if(u44!==void 0)return u44;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return u44=m},{mode:1});var gk6;var dYG=_.nG(_.zq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Ol6={},Zhs=(Ol6[0]={title:_.Hk(_.zq("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.qc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Ol6[1]={title:_.Hk(_.zq("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.qc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Ol6);_.Kz("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var v9=function(){var m=_.d.apply(this,arguments)||this;m.allVideosCount=0;m.allPlaylistCount=0;m.isOnline=!1;m.shouldRenderDownloadsBanner=!1;m.shouldRenderDownloadsBannerUpsell=!1;m.hasOptedIntoSmartDownloads=!1;m.areAllSmartDownloadsDeleted=!1;m.smartDownloadsCompleted=!1;return m};
_.n(v9,_.d);v9.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
v9.prototype.attached=function(){this.downloadsToRenderChanged()};
v9.prototype.detached=function(){this.set("renderableData",{})};
v9.prototype.downloadsToRenderChanged=function(){var m=_.$R().getState().entities,G=_.LG(m),K=_.F("kevlar_playlist_dl_page_killswitch")?uao(m):_.AM(m),W=_.AS6(m),L=_.cSG(m),A=_.Tz(G);m=_.w6(m);this.set("renderableData",yqF(K,G,W,L,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,A,m))};
v9.prototype.downloadsToRenderChanged=v9.prototype.downloadsToRenderChanged;_.x([_.q(_.OW),_.S("design:type",Object)],v9.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],v9.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],v9.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],v9.prototype,"renderableData",void 0);_.x([_.V({selector:_.vjd}),_.S("design:type",Object)],v9.prototype,"allVideosCount",void 0);_.x([_.V({selector:Q1d}),_.S("design:type",Object)],v9.prototype,"allPlaylistCount",void 0);_.x([_.V({selector:_.r6}),_.S("design:type",Object)],v9.prototype,"isOnline",void 0);_.x([_.V({selector:_.wxJ}),_.S("design:type",Object)],v9.prototype,"shouldRenderDownloadsBanner",void 0);
_.x([_.V({selector:_.Yxd}),_.S("design:type",Object)],v9.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.x([_.V({selector:_.g8o}),_.S("design:type",Object)],v9.prototype,"hasOptedIntoSmartDownloads",void 0);_.x([_.V({selector:_.Oko}),_.S("design:type",Object)],v9.prototype,"areAllSmartDownloadsDeleted",void 0);_.x([_.V({selector:crP}),_.S("design:type",Object)],v9.prototype,"smartDownloadsCompleted",void 0);
_.x([_.Mg("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v9.prototype,"downloadsToRenderChanged",null);_.x([_.Ye({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],v9);
_.y(v9,"ytd-offline-item-section-renderer",function(){if(gk6!==void 0)return gk6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return gk6=m},
{mode:1});var ciW;var Yos;var $b=function(){return _.d.apply(this,arguments)||this};
_.n($b,_.d);
$b.prototype.onDataChanged=function(){if(this.JSC$17181_lastData){var m=this.getFilterClass(this.JSC$17181_lastData.status);m&&this.hostElement.classList.remove(m)}var G;(m=this.getFilterClass((G=this.data)==null?void 0:G.status))&&this.hostElement.classList.add(m);m==="selected"?_.VL(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.VL(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");m==="disabled"?_.VL(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.VL(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$17181_lastData=this.data};
$b.prototype.getFilterClass=function(m){switch(m){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
$b.prototype.onDataChanged=$b.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$b.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$b.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],$b);
_.y($b,"ytd-search-filter-renderer",function(){if(Yos!==void 0)return Yos;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Yos=m},{mode:2});var sf=function(){return _.d.apply(this,arguments)||this};
_.n(sf,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],sf.prototype,"data",void 0);_.x([_.Ye({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],sf);
_.y(sf,"ytd-search-filter-group-renderer",function(){if(ciW!==void 0)return ciW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ciW=m},{mode:2});var riG;var qb=function(){return _.d.apply(this,arguments)||this};
_.n(qb,_.d);qb.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.yv());this.isCollapsed=!this.isCollapsed};
qb.prototype.navigateToAboutTheseResultsPage=function(){var m=_.lg("https://www.youtube.com/howyoutubeworks/product-features/search/");m?_.Oy(window,m,"_blank"):_.j1(Error("Wh"))};
qb.prototype.dataChanged=function(){this.isCollapsed=!0};
qb.prototype.computeShowBottomBorder=function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.button)==null?0:G.toggleButtonRenderer)||!((K=this.data)==null||!K.aboutTheseResultsButton)};
qb.prototype.dataChanged=qb.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qb.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qb.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.S("design:type",Boolean)],qb.prototype,"showBottomBorder",void 0);_.x([_.V(),_.S("design:type",Boolean)],qb.prototype,"renderCollapsibleMenu",void 0);
_.x([_.V(),_.S("design:type",Boolean)],qb.prototype,"isCollapsed",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qb.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],qb);
_.y(qb,"ytd-search-sub-menu-renderer",function(){if(riG!==void 0)return riG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return riG=m},{mode:1});var uRz;var hBD=new _.sX("SECTION_LIST_RENDERER_TOKEN");var p2i;var Ef=function(){return _.d.apply(this,arguments)||this};
_.n(Ef,_.d);Ef.prototype.computeStyle=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ef.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],Ef.prototype,"headerStyle",void 0);_.x([_.Ye({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Ef);
_.y(Ef,"ytd-text-header-renderer",function(){if(p2i!==void 0)return p2i;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return p2i=m},{mode:1});var Jiu;var H9=function(){return _.d.apply(this,arguments)||this};
_.n(H9,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],H9.prototype,"data",void 0);_.x([_.Ye({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],H9);
_.y(H9,"ytd-minor-moment-header-renderer",function(){if(Jiu!==void 0)return Jiu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Jiu=m},{mode:1});var NKq;var Ih=function(){return _.d.apply(this,arguments)||this};
_.n(Ih,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ih.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ih.prototype,"data",void 0);_.x([_.Ye({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],Ih);
_.y(Ih,"ytd-minor-moment-setting-alert-renderer",function(){if(NKq!==void 0)return NKq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return NKq=m},{mode:1});var DGD;var t0D;var jR=function(){var m=_.d.apply(this,arguments)||this;m.booleanSettingById=!1;m.smartDownloadsEnabledVE=_.dq(128287);m.smartDownloadsDisabledVE=_.dq(128286);m.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return m};
_.n(jR,_.d);_.w=jR.prototype;_.w.attachSmartDownloadsSettingVes=function(){var m;this.activeVeForLogging||((m=this.data)==null?void 0:m.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.yw(_.l1(),this.smartDownloadsEnabledVE),_.yw(_.l1(),this.smartDownloadsDisabledVE))};
_.w.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Zw(this.hostElement,"yt-settings-switch-ready")};
_.w.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.w.onSwitchChange=function(m){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(m=_.$C(m).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.F("kevlar_settings_switch_resolve_command_killswitch")?_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(m)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.w.handleUpdateSettingsSwitch=function(m){(m=_.Q(m,sUC))&&this.data&&this.data.id===m.id&&this.set("data.enabled",!!m.enabled)};
_.w.onToggleSettingsSwitch=function(m,G){this.data&&this.data.id===m&&this.set("data.enabled",G!=null?G:!this.data.enabled)};
_.w.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.qV.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.w.maybeLogSmartDownloadsSettingVisibility=function(){var m=_.gU(),G;m&&((G=this.data)==null?void 0:G.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.a7(m,[this.smartDownloadsEnabledVE]),_.o7(m,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.a7(m,[this.smartDownloadsDisabledVE]),_.o7(m,[this.smartDownloadsEnabledVE])))};
_.w.maybeLogSmartDownloadsSettingClick=function(){var m;((m=this.data)==null?void 0:m.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.fK(_.l1(),this.activeVeForLogging)};
_.w.updateDataEnabledFromBinding=function(m){this.set("data.enabled",m.detail.value)};
_.e_.Object.defineProperties(jR.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var m=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!m&&(m=this.ytRendererBehavior.getSimpleString(this.data.title));return m}}});
jR.prototype.dataChanged=jR.prototype.dataChanged;_.x([_.q(_.OW),_.S("design:type",Object)],jR.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],jR.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],jR.prototype,"data",void 0);_.x([_.V({selector:function(m,G){if(Object.keys(m==null?void 0:m.entities).length)switch(G){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return hwd(m.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.S("design:type",Object)],jR.prototype,"booleanSettingById",void 0);_.x([_.V(),_.S("design:type",_.Aj)],jR.prototype,"activeVeForLogging",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],jR.prototype,"toggleAriaLabel",null);_.x([_.Mg("data"),_.Mg("booleanSettingById"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jR.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],jR);
_.y(jR,"ytd-settings-switch-renderer",function(){if(t0D!==void 0)return t0D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return t0D=m},{mode:1});var kb=function(){return _.d.apply(this,arguments)||this};
_.n(kb,_.d);kb.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}}}}};
_.e_.Object.defineProperties(kb.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var m=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(m+=" remove-left-margin");this.data.extraBottomSpace&&(m+=" extra-bottom-space");return m}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kb.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kb.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],kb.prototype,"contentsClassName",null);_.x([_.Ye({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],kb);
_.y(kb,"ytd-minor-moment-setting-section-renderer",function(){if(DGD!==void 0)return DGD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return DGD=m},{mode:1});var FC6;var CM=function(){return _.d.apply(this,arguments)||this};
_.n(CM,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],CM.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],CM.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],CM);
_.y(CM,"ytd-empty-product-details-renderer",function(){if(FC6!==void 0)return FC6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return FC6=m},{mode:1});var QFO;var aPD;var VD=function(){var m=_.d.apply(this,arguments)||this;m.expanded=!0;return m};
_.n(VD,_.d);VD.prototype.getBadgeRowClass=function(m,G,K){for(var W=_.g(this.hostElement.querySelectorAll("yt-img-shadow")),L=W.next();!L.done;L=W.next())L.value.onShow();m=m.selected;return K?m!==-1?m===G?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(m!==void 0?m:0)===G?"badge-line":"badge-hidden"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VD.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],VD.prototype,"expanded",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],VD);
_.y(VD,"ytd-sponsorships-loyalty-badges-renderer",function(){if(aPD!==void 0)return aPD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return aPD=m},{mode:1});var ok5;var Z$=function(){var m=_.d.apply(this,arguments)||this;m.expanded=!0;return m};
_.n(Z$,_.d);Z$.prototype.getContainerClasses=function(m,G){m=m?"expanded":"collapsed";G&&(m+=" item");return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Z$.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Z$.prototype,"expanded",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Z$);
_.y(Z$,"ytd-sponsorships-perk-renderer",function(){if(ok5!==void 0)return ok5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ok5=m},{mode:1});var nkz;var dA=function(){var m=_.d.apply(this,arguments)||this;m.expanded=!0;return m};
_.n(dA,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],dA.prototype,"expanded",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],dA);
_.y(dA,"ytd-sponsorships-perks-renderer",function(){if(nkz!==void 0)return nkz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return nkz=m},{mode:1});var P9=function(){var m=_.d.apply(this,arguments)||this;m.isCollapsed=!1;return m};
_.n(P9,_.d);P9.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
P9.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
P9.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var m;this.expandCollapseButton=_.Q((m=this.data)==null?void 0:m.expandButton,_.uu)}else{var G;this.expandCollapseButton=_.Q((G=this.data)==null?void 0:G.collapseButton,_.uu)}};
P9.prototype.updateExpandCollapseButton=P9.prototype.updateExpandCollapseButton;P9.prototype.onDataChanged=P9.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],P9.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],P9.prototype,"isCollapsed",void 0);_.x([_.V(),_.S("design:type",Object)],P9.prototype,"expandCollapseButton",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P9.prototype,"onDataChanged",null);_.x([_.Mg("data","isCollapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],P9.prototype,"updateExpandCollapseButton",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],P9);
_.y(P9,"ytd-sponsorships-expandable-perks-renderer",function(){if(QFO!==void 0)return QFO;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return QFO=m},{mode:1});var blu;var yD=function(){return _.d.apply(this,arguments)||this};
_.n(yD,_.d);yD.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],yD.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yD.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],yD);
_.y(yD,"ytd-sponsorships-actionable-message-renderer",function(){if(blu!==void 0)return blu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return blu=m},{mode:1});var vkO;var eR=function(){return _.d.apply(this,arguments)||this};
_.n(eR,_.d);_.w=eR.prototype;_.w.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.w.getExpansionIcon=function(m){return m?"COLLAPSE":"EXPAND"};
_.w.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.w.computeMessageContainerStyle=function(m){var G=m.expandableItems?" style-clickable":"";return m.messageContainerStyle?m.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+G:"style-unspecified"+G};
_.w.isSinglePerk=function(m){return!!m.messageContainerStyle&&(m.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||m.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.w.onExpandedChanged=function(){var m=this;if(this.expanded)for(var G=_.g(this.hostElement.querySelectorAll("yt-img-shadow")),K=G.next();!K.done;K=G.next())K.value.onShow();_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit")})};
_.w.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
eR.prototype.onDataChanged=eR.prototype.onDataChanged;eR.prototype.onExpandedChanged=eR.prototype.onExpandedChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],eR.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],eR.prototype,"expanded",void 0);
_.x([_.Sb("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eR.prototype,"onExpandedChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eR.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],eR);
_.y(eR,"ytd-sponsorships-expandable-message-renderer",function(){if(vkO!==void 0)return vkO;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return vkO=m},{mode:2});var $G6;var fM=function(){return _.d.apply(this,arguments)||this};
_.n(fM,_.d);fM.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"}}}}};
fM.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Q(this.data.endButton,_.uu).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
fM.prototype.onDataChanged=fM.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fM.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fM.prototype,"onDataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],fM);
_.y(fM,"ytd-sponsorships-heading-renderer",function(){if($G6!==void 0)return $G6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $G6=m},{mode:1});var sF6;var xb=function(){return _.d.apply(this,arguments)||this};
_.n(xb,_.d);_.x([_.V(),_.S("design:type",Object)],xb.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],xb);
_.y(xb,"ytd-sponsorships-links-renderer",function(){if(sF6!==void 0)return sF6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sF6=m},{mode:1});var qo5;var XW=function(){return _.d.apply(this,arguments)||this};
_.n(XW,_.d);_.w=XW.prototype;_.w.onDataChanged=function(){if(this.data&&this.data.expandableItems){var m;(m=_.VL(this.hostElement).querySelector("tp-yt-paper-button"))==null||m.setAttribute("role","button")}else{var G;(G=_.VL(this.hostElement).querySelector("tp-yt-paper-button"))==null||G.removeAttribute("role")}};
_.w.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.w.getExpansionIcon=function(m){return m?"COLLAPSE":"EXPAND"};
_.w.getTileClasses=function(m){return m?"tile expandable-tile":"tile"};
_.w.getButtonDisabled=function(m){return m?void 0:""};
XW.prototype.onDataChanged=XW.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],XW.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],XW.prototype,"expanded",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XW.prototype,"onDataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],XW);
_.y(XW,"ytd-sponsorships-list-tile-renderer",function(){if(qo5!==void 0)return qo5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qo5=m},{mode:1});var EkP;var Hls;var SR=function(){return _.d.apply(this,arguments)||this};
_.n(SR,_.d);SR.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],SR.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],SR);
_.y(SR,"ytd-sponsorships-promotion-renderer",function(){if(Hls!==void 0)return Hls;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Hls=m},{mode:1});var IP5;var Rh=function(){return _.d.apply(this,arguments)||this};
_.n(Rh,_.d);Rh.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Rh.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Rh);
_.y(Rh,"ytd-sponsorships-purchase-option-renderer",function(){if(IP5!==void 0)return IP5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IP5=m},{mode:1});var jF6;var k45;var CSi=function(){return _.d.apply(this,arguments)||this};
_.n(CSi,_.d);_.x([_.V(),_.S("design:type",Object)],CSi.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],CSi);
_.y(CSi,"ytd-ypc-offer-promo-renderer",function(){if(k45!==void 0)return k45;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return k45=m},{mode:1});var Uf=function(){return _.d.apply(this,arguments)||this};
_.n(Uf,_.d);_.w=Uf.prototype;
_.w.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"}}}}};
_.w.expansionCTA=function(m,G){return m&&(G?m.collapseCallToAction:m.expansionCallToAction)};
_.w.getExpansionIcon=function(m){return m?"COLLAPSE":"EXPAND"};
_.w.expansionCallToActionTap=function(){var m=this;this.expanded=!this.expanded;_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit")})};
_.w.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var m,G=(m=this.data)==null?void 0:m.onVisible;G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.computeDisplayTitle=function(m){return!(!m||this.titledisplaystatus!=="show")};
_.w.computeDisplaySeparator=function(){return!1};
_.w.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Uf.prototype.onDataChanged=Uf.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Uf.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Uf.prototype,"data",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],Uf.prototype,"expanded",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Uf.prototype,"purchaseButtonClicked",void 0);_.x([_.V({reflectToAttribute:!0,value:"show"}),_.S("design:type",String)],Uf.prototype,"titledisplaystatus",void 0);_.x([_.V({computed:"computeDisplayTitle(data.title)"}),_.S("design:type",Boolean)],Uf.prototype,"displayTitle",void 0);
_.x([_.V({computed:"computeDisplaySeparator(data)"}),_.S("design:type",Boolean)],Uf.prototype,"displaySeparator",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uf.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Uf);
_.y(Uf,"ytd-sponsorships-tier-renderer",function(){if(jF6!==void 0)return jF6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jF6=m},{mode:2});var zo=function(){return _.d.apply(this,arguments)||this};
_.n(zo,_.d);
zo.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zo.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zo.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],zo);
_.y(zo,"ytd-sponsorships-management-renderer",function(){if(EkP!==void 0)return EkP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return EkP=m},{mode:1});var V0W;var lo=function(){return _.d.apply(this,arguments)||this};
_.n(lo,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lo.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],lo);
_.y(lo,"ytd-open-in-native-app-view-model",function(){if(V0W!==void 0)return V0W;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return V0W=m},{mode:2});var ZlD;var dGP;var PS5=_.nY(["top-"]),yiP=_.nY(["bottom-"]),eBP=_.nY(["left-"]),fP6=_.nY(["right-"]),xGi={},X2z=function(m,G,K){m.removeAttribute("top-"+K);m.removeAttribute("bottom-"+K);m.removeAttribute("left-"+K);m.removeAttribute("right-"+K);G&&(G.top&&_.DO([_.ob(PS5)],m,"top-"+K,G.top),G.bottom&&_.DO([_.ob(yiP)],m,"bottom-"+K,G.bottom),G.left&&_.DO([_.ob(eBP)],m,"left-"+K,G.left),G.right&&_.DO([_.ob(fP6)],m,"right-"+K,G.right))};
xGi.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(m){var G,K=_.VL((G=this.hostElement)!=null?G:this),W;G=this.cardItemBoxBehaviorMarginTargetId&&K?K.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(W=this.hostElement)!=null?W:this;X2z(G,m,"margin")},
cardItemContainerPaddingChanged_:function(m){var G,K=_.VL((G=this.hostElement)!=null?G:this),W;G=this.cardItemBoxBehaviorPaddingTargetId&&K?K.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(W=this.hostElement)!=null?W:this;X2z(G,m,"padding")}}];var B9={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-text-primary)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-text-primary)",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 SoD;var RBG;var Mb=function(){return _.d.apply(this,arguments)||this};
_.n(Mb,_.d);Mb.prototype.textColorChanged_=function(){this.hostElement.style.color=B9[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
Mb.prototype.textColorChanged_=Mb.prototype.textColorChanged_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mb.prototype,"ytRendererBehavior",void 0);_.x([_.q(xGi.YtCardItemBoxBehavior),_.S("design:type",Object)],Mb.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mb.prototype,"data",void 0);_.x([_.Sb("data.textColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Mb.prototype,"textColorChanged_",null);
_.x([_.cL({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],Mb);
_.y(Mb,"yt-card-item-text-renderer",function(){if(RBG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;SoD===void 0&&(SoD=document.createElement("template"));var W=SoD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);RBG=m}m=RBG;return m},{mode:2});var UGs;var zBP;var To=function(){return _.d.apply(this,arguments)||this};
_.n(To,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],To.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],To.prototype,"data",void 0);_.x([_.cL({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],To);
_.y(To,"yt-card-item-badge-renderer",function(){if(zBP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;UGs===void 0&&(UGs=document.createElement("template"));var W=UGs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);zBP=m}m=zBP;return m},{mode:2});var lPs;var BKs;var m$=function(){return _.d.apply(this,arguments)||this};
_.n(m$,_.d);m$.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],m$.prototype,"data",void 0);_.x([_.cL({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],m$);
_.y(m$,"yt-card-item-text-collection-renderer",function(){if(BKs===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;lPs===void 0&&(lPs=document.createElement("template"));var W=lPs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);BKs=m}m=BKs;return m},{mode:2});var M06;var TKO;var ii=function(){return _.d.apply(this,arguments)||this};
_.n(ii,_.d);ii.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]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ii.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ii.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],ii.prototype,"iconSize",void 0);_.x([_.cL({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],ii);
_.y(ii,"yt-card-item-text-with-button-renderer",function(){if(TKO===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;M06===void 0&&(M06=document.createElement("template"));var W=M06;K.call(G,W.content.cloneNode(!0),m.content.firstChild);TKO=m}m=TKO;return m},{mode:2});var GJ=function(){return _.d.apply(this,arguments)||this};
_.n(GJ,_.d);GJ.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],GJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],GJ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],GJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GJ.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],GJ);
_.y(GJ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(dGP!==void 0)return dGP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return dGP=m},{mode:1});_.Kz("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var KO=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;return m};
_.n(KO,_.d);_.w=KO.prototype;_.w.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"}}}}};
_.w.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.w.updateSummary=function(){var m=this.commerceCartCheckoutButtonEntity,G;if(((G=this.data)==null?0:G.cartButton)&&m.checkoutSummaryText){var K,W=Lm((K=this.data)==null?void 0:K.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+W+".cardItemTextRenderer.text",AX(m.checkoutSummaryText));if(m.checkoutDetailText){var L;K=Lm((L=this.data)==null?void 0:L.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",AX(m.checkoutDetailText))}if(m.checkoutAdditionalMetadataText){var A;
L=Lm((A=this.data)==null?void 0:A.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+L+".cardItemTextRenderer.text",AX(m.checkoutAdditionalMetadataText))}}else m.estimatedTotalPrice&&(A=Lm((W=this.data)==null?void 0:W.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+A+".cardItemTextRenderer.text",AX(m.estimatedTotalPrice)))};
_.w.updateIsHidden=function(){var m,G=(m=this.commerceCartCheckoutButtonEntity)==null?void 0:m.isHidden;G!==void 0&&(this.hidden=G)};
_.w.updateCheckoutButton=function(){var m,G=(m=this.commerceCartCheckoutButtonEntity)==null?void 0:m.isDisabled;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",G);var K;m=(K=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:K.innertubeCommand;m!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",m);var W;K=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutButtonText;K!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:K})};
KO.prototype.entityChanged=KO.prototype.entityChanged;_.x([_.q(_.OW),_.S("design:type",Object)],KO.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],KO.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],KO.prototype,"fullWidth",void 0);_.x([_.V(),_.S("design:type",Object)],KO.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],KO.prototype,"compact",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],KO.prototype,"hidden",void 0);
_.x([_.V({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:NeG}),_.S("design:type",Object)],KO.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.Sb("commerceCartCheckoutButtonEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KO.prototype,"entityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],KO);
_.y(KO,"ytd-commerce-cart-checkout-button-renderer",function(){if(ZlD!==void 0)return ZlD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ZlD=m},{mode:2});var m6O;_.iPD={};
_.iPD.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",_.xC(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.xC(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(m){!this.tappableItemBehaviorTapEnabled||m.keyCode!==13&&m.keyCode!==32||m.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var m=this.data.onTap;m.ypcGetCartEndpoint?(_.yQ(this.hostElement,[m]),this.tappableItemBehaviorTapEnabled=!1):m.ypcOffersEndpoint?_.yQ(this.hostElement,[m]):_.eD(this.hostElement,[m],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(m){this.tappableItemBehaviorTapEnabled=!!m},
tappableItemBehaviorOnTapEnabledChanged_:function(){var m=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(m.setAttribute("tabIndex",0),m.setAttribute("role","button")):(m.removeAttribute("tabIndex"),m.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(m){m.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var GGq;var KD6;var Wy=function(){return _.d.apply(this,arguments)||this};
_.n(Wy,_.d);Wy.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Wp("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Wp("sharingToggleButtonAndDefaultButton")}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wy.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wy.prototype,"data",void 0);_.x([_.cL({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],Wy);
_.y(Wy,"yt-card-item-actions-renderer",function(){if(KD6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;GGq===void 0&&(GGq=document.createElement("template"));var W=GGq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);KD6=m}m=KD6;return m},{mode:2});var WDs;var LDu;var ADs;var wuq;var g5E;var OP5;var LO=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return m};
_.n(LO,_.d);LO.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
LO.prototype.handleDarkModeToggledAction_=function(m){this.isDarkTheme_=m};
LO.prototype.computeThemeImage_=function(m,G){if(!m||!m.imageLight)return!1;this.isCircular_=m.isCircular;m.imageWidth&&(this.hostElement.style.width=m.imageWidth+"px");m.imageHeight&&(this.hostElement.style.height=m.imageHeight+"px");m.borderWidth&&(this.image.style.borderWidth=m.borderWidth+"px",this.image.style.borderStyle="solid");m.borderColor&&(this.image.style.borderColor=_.ce(m.borderColor));return G&&m.imageDark?m.imageDark:m.imageLight};
LO.prototype.computeThemeIcon_=function(m){var G,K;if(!(m==null?0:(G=m.themedIcon)==null?0:(K=G.icon)==null?0:K.iconType))return!1;this.icon.style.color=B9[m.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(m.imageWidth||18)+"px";this.icon.style.height=(m.imageHeight||18)+"px";return _.ew(m.themedIcon.icon.iconType)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(xGi.YtCardItemBoxBehavior),_.S("design:type",Object)],LO.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],LO.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],LO.prototype,"data",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],LO.prototype,"fit",void 0);_.x([_.V(),_.S("design:type",Boolean)],LO.prototype,"isDarkTheme_",void 0);_.x([_.V({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.S("design:type",Object)],LO.prototype,"themeImage_",void 0);_.x([_.V({computed:"computeThemeIcon_(data)"}),_.S("design:type",Object)],LO.prototype,"themeIcon_",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Object)],LO.prototype,"isCircular_",void 0);
_.x([_.UM("#image"),_.S("design:type",Object)],LO.prototype,"image",void 0);_.x([_.UM("#icon"),_.S("design:type",Object)],LO.prototype,"icon",void 0);_.x([_.cL({is:"yt-themed-image-renderer",disableElementRegistration:!0})],LO);
_.y(LO,"yt-themed-image-renderer",function(){if(OP5===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;g5E===void 0&&(g5E=document.createElement("template"));var W=g5E;K.call(G,W.content.cloneNode(!0),m.content.firstChild);OP5=m}m=OP5;return m},{mode:2});var A7=function(){return _.d.apply(this,arguments)||this};
_.n(A7,_.d);A7.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"}}}}};
A7.prototype.computeImagePlacement_=function(m){return m||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],A7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],A7.prototype,"data",void 0);_.x([_.V({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.S("design:type",String)],A7.prototype,"imagePlacement",void 0);
_.x([_.cL({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],A7);
_.y(A7,"yt-card-item-text-with-image-renderer",function(){if(wuq===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ADs===void 0&&(ADs=document.createElement("template"));var W=ADs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);wuq=m}m=wuq;return m},{mode:2});var wV=function(){return _.d.apply(this,arguments)||this};
_.n(wV,_.d);wV.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"}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wV.prototype,"data",void 0);_.x([_.cL({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],wV);
_.y(wV,"yt-card-item-error-renderer",function(){if(LDu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;WDs===void 0&&(WDs=document.createElement("template"));var W=WDs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);LDu=m}m=LDu;return m},{mode:2});var cDO;var YOq;_.Kz("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var gV=function(){return _.d.apply(this,arguments)||this};
_.n(gV,_.d);_.w=gV.prototype;
_.w.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"}}}}};
_.w.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.w.backgroundColorChanged_=function(){var m,G=(m=this.data)==null?void 0:m.backgroundColor;m=B9[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.VL(this.hostElement).querySelector("#main-content").style.backgroundColor=m};
_.w.headerPromoBackgroundColorChanged_=function(){var m,G=(m=this.data)==null?void 0:m.headerPromoBackgroundColor;m=B9[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.VL(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=m};
_.w.errorRendererVisibilityChanged_=function(){var m=this.isExpanded_,G;this.isErrorRendererVisible_=!((G=this.data)==null||!G.errorRenderer)&&!m};
_.w.onYtToggleButton_=function(m,G){this.isExpanded_=G.toggled};
gV.prototype.onYtToggleButton_=gV.prototype.onYtToggleButton_;gV.prototype.errorRendererVisibilityChanged_=gV.prototype.errorRendererVisibilityChanged_;gV.prototype.headerPromoBackgroundColorChanged_=gV.prototype.headerPromoBackgroundColorChanged_;gV.prototype.backgroundColorChanged_=gV.prototype.backgroundColorChanged_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(xGi.YtCardItemBoxBehavior),_.S("design:type",Object)],gV.prototype,"ytCardItemBoxBehavior",void 0);_.x([_.q(_.iPD.YtTappableItemBehavior),_.S("design:type",Object)],gV.prototype,"ytTappableItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gV.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],gV.prototype,"isExpanded_",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],gV.prototype,"isErrorRendererVisible_",void 0);_.x([_.Sb("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gV.prototype,"backgroundColorChanged_",null);_.x([_.Sb("data.headerPromoBackgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gV.prototype,"headerPromoBackgroundColorChanged_",null);
_.x([_.Sb("data.errorRenderer","isExpanded_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gV.prototype,"errorRendererVisibilityChanged_",null);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],gV.prototype,"onYtToggleButton_",null);_.x([_.cL({is:"yt-card-item-renderer",disableElementRegistration:!0})],gV);
_.y(gV,"yt-card-item-renderer",function(){if(YOq===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;cDO===void 0&&(cDO=document.createElement("template"));var W=cDO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);YOq=m}m=YOq;return m},{mode:2});_.Kz("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var O$=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;return m};
_.n(O$,_.d);_.w=O$.prototype;_.w.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.w.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.w.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var m,G=(m=this.commerceCartHeaderEntity)==null?void 0:m.isHidden;G!==void 0&&(this.hidden=G)}};
_.w.updateTitle=function(){var m=this.commerceCartHeaderEntity.isDisabled,G,K,W=(K=_.Q((G=this.data)==null?void 0:G.item,EUC))==null?void 0:K.headingRenderer;W&&(G=Lm(W,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".0.cardItemTextRenderer.textColor",m?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.w.updateSummaryText=function(){var m=this.commerceCartHeaderEntity;if(this.compact){var G,K,W=(K=_.Q((G=this.data)==null?void 0:G.item,EUC))==null?void 0:K.headingRenderer;W&&(G=Lm(W,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+G+".1.cardItemTextRenderer.text",m.shortHeaderSummaryText?AX(m.shortHeaderSummaryText):m.headerSummaryText?AX(m.headerSummaryText):""))}else{var L;if(G=(L=_.Q((W=this.data)==null?void 0:W.item,EUC))==null?void 0:L.additionalInfoRenderer)G=Lm(G,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".text",m.headerSummaryText?AX(m.headerSummaryText):"")}};
_.w.updateCheckoutButton=function(){var m=this.commerceCartHeaderEntity,G,K,W=(K=_.Q((G=this.data)==null?void 0:G.item,EUC))==null?void 0:K.additionalInfoRenderer;G=Lm(W,"buttonRenderer");var L;K=(L=this.commerceCartHeaderEntity)==null?void 0:L.isButtonDisabled;var A;L=(A=this.commerceCartHeaderEntity)==null?void 0:A.isButtonHidden;K!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.isDisabled",K);L!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
L);var O;m=(O=m.checkoutButtonCommand)==null?void 0:O.innertubeCommand;m!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+G+".buttonRenderer.command",m)};
O$.prototype.entityChanged=O$.prototype.entityChanged;_.x([_.q(_.OW),_.S("design:type",Object)],O$.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],O$.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],O$.prototype,"compact",void 0);_.x([_.V({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(m,G){return _.yx(m.entities,"commerceCartHeaderEntity",G)}}),
_.S("design:type",Object)],O$.prototype,"commerceCartHeaderEntity",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],O$.prototype,"hidden",void 0);_.x([_.Sb("commerceCartHeaderEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O$.prototype,"entityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],O$);
_.y(O$,"ytd-commerce-cart-header-renderer",function(){if(m6O!==void 0)return m6O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return m6O=m},{mode:1});var rDu;var uEO=_.AY(function(m,G){var K;return(K=m.onChangeCallback)==null?void 0:K.call(m,G)},1E3),h6q=_.P(function(m){var G=m.data;
var K=m.iconMinus;m=m.iconPlus;var W=function(){return!!G().disabled},L=_.g(_.g_(0,void 0,"mKh0af")),A=L.next().value,O=L.next().value;
L=_.dn(function(){if(A()===1){var N,D;(D=(N=G()).onRemoveCommand)==null||D.call(N)}N=A()>G().maxValue?G().maxValue:A()-1;O(N);uEO(G(),N);return!1});
var c=_.dn(function(){if(A()===G().maxValue)return!1;var N=A()+1;O(N);uEO(G(),N);return!1});
_.nn(function(){O(G().value)});
var u={},h={},J={};return _.r("quantity-incrementer-shape",null,_.r("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.r("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return A()===(G().onRemoveCommand?0:1)||W()},
"aria-label":function(){return A()!==1?G().minusLabel:G().minimumReachedLabel},
"on:click":L},_.r(_.EH,{model:{circular:!0}}),_.r("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.r("div",{class:_.VO("ytSpecQuantityIncrementerShapeIcon",(u.ytSpecQuantityIncrementerShapeIconDisabled=function(){return W()||A()===(G().onRemoveCommand?0:1)},u))},K()))),_.r("div",{class:_.VO("ytSpecQuantityIncrementerShapeText",(h.ytSpecQuantityIncrementerShapeTextInvalid=function(){return A()>G().maxValue},h.ytSpecQuantityIncrementerShapeTextDisabled=W,h))},A),_.r("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return A()>=G().maxValue||W()},
"aria-label":function(){return A()!==G().maxValue?G().plusLabel:G().maximumReachedLabel},
"on:click":c},_.r(_.EH,{model:{circular:!0}}),_.r("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.r("div",{class:_.VO("ytSpecQuantityIncrementerShapeIcon",(J.ytSpecQuantityIncrementerShapeIconDisabled=function(){return A()>=G().maxValue||W()},J))},m())))))},"Uf");_.sh(_.P(function(m){function G(){K().onRemoveCommand&&_.h$(K().onRemoveCommand)}
var K=m.data;var W=_.S5(HFJ,function(){return K().quantityIncrementerEntityKey});
return _.r("yt-quantity-incrementer-view-model",null,_.r(h6q,{data:function(){var L=K(),A;var O=W()?!((A=W())==null||!A.disabled):!1;var c;A=W()?(c=W())==null?void 0:c.quantity:K().quantity;return xY9(L,O,G,A)},
iconMinus:function(){return _.r(_.fN,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.r(_.fN,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Vf"),"yt-quantity-incrementer-view-model",{props:{data:_.Dd}});var cy=function(){var m=_.d.apply(this,arguments)||this;m.compact=!1;m.hasQuantityIncrementer=!1;return m};
_.n(cy,_.d);cy.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"}}}};
cy.prototype.computeHasQuantityIncrementer=function(){var m;return!!_.Q((m=this.data)==null?void 0:m.picker,kwo)};
cy.prototype.onLabelClick=function(){var m;(m=this.dropdownEl)==null||m.open()};
_.x([_.UM("ytd-dropdown-renderer"),_.S("design:type",Object)],cy.prototype,"dropdownEl",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cy.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],cy.prototype,"quantityColor",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],cy.prototype,"compact",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.S("design:type",Object)],cy.prototype,"hasQuantityIncrementer",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],cy);
_.y(cy,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(rDu!==void 0)return rDu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return rDu=m},{mode:1});var pui;var JDW;var YL=function(){return _.d.apply(this,arguments)||this};
_.n(YL,_.d);YL.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
YL.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
YL.prototype.updateTitle=function(){var m=this.disabledCartItemEntity;m.disableActionName&&this.set("data.title",AX(m.disableActionName))};
YL.prototype.updateButton=function(){var m,G=(m=this.disabledCartItemEntity.undoCommand)==null?void 0:m.innertubeCommand;G!==void 0&&(this.set("data.actionButton.buttonRenderer.command",G),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
YL.prototype.entityChanged=YL.prototype.entityChanged;_.x([_.q(_.OW),_.S("design:type",Object)],YL.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(m,G){return _.yx(m.entities,"disabledCartItemEntity",G)}}),
_.S("design:type",Object)],YL.prototype,"disabledCartItemEntity",void 0);_.x([_.V(),_.S("design:type",Object)],YL.prototype,"data",void 0);_.x([_.Sb("disabledCartItemEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YL.prototype,"entityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],YL);
_.y(YL,"ytd-disabled-cart-item-renderer",function(){if(JDW!==void 0)return JDW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return JDW=m},{mode:1});_.Kz("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var rV=function(){var m=_.d.apply(this,arguments)||this;m.compact=!1;m.hidden=!1;m.errorHidden=!1;m.noOnTap=!1;return m};
_.n(rV,_.d);_.w=rV.prototype;
_.w.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"}}}};
_.w.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.w.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var m=this.firstButtonElement;m.alignByText=!0;m.iconAlignByText=!0}};
_.w.computeNoOnTap=function(m){return!m};
_.w.updateQuantityColor=function(){if(this.pickerElement){var m,G=(m=this.commerceCartItemEntity)==null?void 0:m.quantityColor;this.pickerElement.quantityColor=G}};
_.w.updateTotalPriceColor=function(){var m,G=(m=this.commerceCartItemEntity)==null?void 0:m.totalPriceColor;if(G){var K;m=_.Q((K=this.data)==null?void 0:K.quantityPicker,Iak);if(K=_.Q(m==null?void 0:m.price,HfS))K.textColor=G}};
_.w.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var m,G=(m=this.commerceCartItemEntity)==null?void 0:m.isHidden;G!==void 0&&(this.hidden=G)}};
_.w.updateHideErrorMessage=function(){var m,G=(m=this.commerceCartItemEntity)==null?void 0:m.hideErrorMessage;G!==void 0&&(this.errorHidden=G)};
_.w.updateQuantity=function(){var m=this,G,K=(G=this.commerceCartItemEntity)==null?void 0:G.quantity,W;G=(W=this.commerceCartItemEntity)==null?void 0:W.totalPrice;if(K){this.updateTotalPriceColor();this.updateQuantityColor();var L;W=_.Q((L=this.data)==null?void 0:L.quantityPicker,Iak);if(L=_.Q(W==null?void 0:W.price,HfS))L.text=G?{simpleText:G.content}:void 0;if(G=_.Q(W==null?void 0:W.picker,kwo))G.quantity=K;var A;if(L=(A=_.Q(W==null?void 0:W.picker,E6i))==null?void 0:A.entries){A=!1;G=void 0;L=
_.g(L);for(W=L.next();!W.done;W=L.next())W=W.value,W.dropdownItemRenderer&&(G||(G=W.dropdownItemRenderer),W.dropdownItemRenderer.isSelected=!1,K===W.dropdownItemRenderer.int32Value&&(A=!0,W.dropdownItemRenderer.isSelected=!0));!A&&G&&(G.isSelected=!0)}_.Pv(this,function(){var O;m.set("data.quantityPicker",_.Y2.unsafeClone((O=m.data)==null?void 0:O.quantityPicker))})}};
rV.prototype.onYtRendererstamperFinished=rV.prototype.onYtRendererstamperFinished;rV.prototype.entityChanged=rV.prototype.entityChanged;_.x([_.V(),_.S("design:type",Object)],rV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rV.prototype,"compact",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rV.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(m,G){return _.yx(m.entities,"commerceCartItemEntity",G)}}),
_.S("design:type",Object)],rV.prototype,"commerceCartItemEntity",void 0);_.x([_.V(),_.S("design:type",Object)],rV.prototype,"quantityPicker",void 0);_.x([_.V(),_.S("design:type",Object)],rV.prototype,"compactQuantityPicker",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rV.prototype,"hidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rV.prototype,"errorHidden",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.S("design:type",Object)],rV.prototype,"noOnTap",void 0);_.x([_.UM("ytd-commerce-cart-item-quantity-picker-renderer"),_.S("design:type",Object)],rV.prototype,"pickerElement",void 0);_.x([_.UM("yt-button-renderer"),_.S("design:type",Element)],rV.prototype,"firstButtonElement",void 0);
_.x([_.Sb("commerceCartItemEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rV.prototype,"entityChanged",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rV.prototype,"onYtRendererstamperFinished",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],rV);
_.y(rV,"ytd-commerce-cart-item-renderer",function(){if(pui!==void 0)return pui;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return pui=m},{mode:2});var Nzz;var D6q;var ui=function(){return _.d.apply(this,arguments)||this};
_.n(ui,_.d);ui.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}}}}}};
ui.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
ui.prototype.updateCheckoutLineItems=function(){var m,G=(m=this.commerceCartCheckoutButtonEntity)==null?void 0:m.checkoutLineItems;G&&(m=G.map(function(K){a:{var W=K.price,L=K.description;switch(K.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":K={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:AX(L),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:AX(W),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:K={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:AX(L),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:AX(W),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 K}),this.set("data.summaryLineItems",m))};
ui.prototype.updateIsHidden=function(){var m,G=(m=this.commerceCartCheckoutButtonEntity)==null?void 0:m.isHidden;G!==void 0&&(this.hostElement.hidden=G)};
ui.prototype.entityChanged=ui.prototype.entityChanged;_.x([_.q(_.OW),_.S("design:type",Object)],ui.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ui.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ui.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],ui.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:NeG}),_.S("design:type",Object)],ui.prototype,"commerceCartCheckoutButtonEntity",void 0);_.x([_.Sb("commerceCartCheckoutButtonEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ui.prototype,"entityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],ui);
_.y(ui,"ytd-commerce-cart-summary-renderer",function(){if(D6q!==void 0)return D6q;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return D6q=m},{mode:1});var tWO={};tWO.InjectBehavior=[E$G.InjectBehavior];var FDG;var QsD;var h7=function(){return _.d.apply(this,arguments)||this};
_.n(h7,_.d);
h7.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:_.Wp("menuRenderer")}}};
h7.prototype.onMenuTap=function(m){m.stopPropagation()};
_.e_.Object.defineProperties(h7.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 m,G;return!(((m=this.data)==null||!m.sectionHeading)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var m,G;return!(((m=this.data)==null||!m.image)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var m,G;return!(((m=this.data)==null||!m.menu)&&((G=this.data)==null?void 0:G.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.iPD.YtTappableItemBehavior),_.S("design:type",Object)],h7.prototype,"ytTappableItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],h7.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data.accessibilityData"),_.S("design:type",String),_.S("design:paramtypes",[])],h7.prototype,"ariaLabel",null);_.x([_.E("data.sectionHeading","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],h7.prototype,"sectionHeadingVisible",null);_.x([_.E("data.image","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],h7.prototype,"imageVisible",null);
_.x([_.E("data.menu","data.layout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],h7.prototype,"menuVisible",null);_.x([_.cL({is:"yt-activity-item-renderer",disableElementRegistration:!0})],h7);
_.y(h7,"yt-activity-item-renderer",function(){if(QsD===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;FDG===void 0&&(FDG=document.createElement("template"));var W=FDG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);QsD=m}m=QsD;return m},{mode:2});var a6O;var o5O;var n5i;var bPD;var pO=function(){return _.d.apply(this,arguments)||this};
_.n(pO,_.d);
pO.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"}}}}};
pO.prototype.backgroundColorChanged_=function(){var m,G=(m=this.data)==null?void 0:m.backgroundColor;this.hostElement.style.backgroundColor=B9[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
pO.prototype.backgroundColorChanged_=pO.prototype.backgroundColorChanged_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pO.prototype,"data",void 0);
_.x([_.Sb("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pO.prototype,"backgroundColorChanged_",null);_.x([_.cL({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],pO);
_.y(pO,"yt-offer-item-upsell-renderer",function(){if(bPD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;n5i===void 0&&(n5i=document.createElement("template"));var W=n5i;K.call(G,W.content.cloneNode(!0),m.content.firstChild);bPD=m}m=bPD;return m},{mode:2});_.Kz("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var J7=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};m.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return m};
_.n(J7,_.d);_.w=J7.prototype;
_.w.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:_.Wp("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.w.computeContainerStyle_=function(m){return m};
_.w.computeContainerIsHidden_=function(m){return m&&!!m.isHidden};
_.w.computeShowSpinner_=function(m,G){return m&&G==="in-progress"};
_.w.computeShowMoreContentsButton_=function(m,G,K,W,L){return!(!(W&&W.length||L&&L.length&&K)||!m||G)};
_.w.onToggleButton_=function(m){var G=this;m.stopPropagation();this.isExpanded_=m.detail&&m.detail.toggled;var K,W;this.isExpanded_&&!this.data.continuationSection.length&&((K=this.data)==null?0:(W=K.continuation)==null?0:W.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Zw(this.hostElement,"yt-load-next-continuation",function(L){return G.getContinuationUrl_(G.data.continuation.onClickContinuationData,L)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.yQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.w.onShowMoreContentsButtonClicked_=function(m){var G=this;m.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Zw(this.hostElement,"yt-load-next-continuation",function(K){return G.getContinuationUrl_(G.data.continuations[0].nextContinuationData,K)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.yQ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.w.getContinuationUrl_=function(m,G){var K=m.continuation;m=m.clickTrackingParams;var W=_.gU();m&&W&&_.nW(W,_.m5(m));return _.BE(G,{continuation:K})};
_.w.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var m=_.VL(this.hostElement).querySelector("#continuation-section");m&&(m=m.querySelectorAll("ytmusic-item-section-renderer"))&&m.forEach(function(G){return G.classList.add("memberships-and-purchases")})};
_.w.dataChanged_=function(){var m;this.isExpanded_=!((m=this.data)==null||!m.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.w.updateCardOnClickCommand_=function(m){m=_.Q(m,aaS);var G,K;this.data&&((G=this.data)==null?0:G.targetId)&&m&&m.targetId===((K=this.data)==null?void 0:K.targetId)&&m.onClickCommand&&(this.data.onClickCommand=m.onClickCommand,this.isOnClickCommand_=!0)};
_.w.backgroundColorChanged_=function(){var m,G=(m=this.data)==null?void 0:m.backgroundColor;this.hostElement.style.backgroundColor=B9[G||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
J7.prototype.backgroundColorChanged_=J7.prototype.backgroundColorChanged_;J7.prototype.dataChanged_=J7.prototype.dataChanged_;J7.prototype.nextContinuationDataUpdated_=J7.prototype.nextContinuationDataUpdated_;J7.prototype.onToggleButton_=J7.prototype.onToggleButton_;_.x([_.q(_.n4),_.S("design:type",Object)],J7.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],J7.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],J7.prototype,"ytNextContinuationBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.x([_.q(tWO.InjectBehavior),_.S("design:type",Object)],J7.prototype,"injectBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],J7.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],J7.prototype,"compact",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],J7.prototype,"isExpanded_",void 0);_.x([_.V({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.S("design:type",String)],J7.prototype,"containerStyle_",void 0);_.x([_.V({value:"not-started"}),_.S("design:type",String)],J7.prototype,"continuationStatus_",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.S("design:type",Boolean)],J7.prototype,"showSpinner_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],J7.prototype,"isOnClickCommand_",void 0);_.x([_.V({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.S("design:type",Boolean)],J7.prototype,"showMoreContentsButton_",void 0);
_.x([_.V({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(m,G){return!G||m.entities?null:_.yx(m.entities,"cardItemContainerEntity",G)}}),
_.S("design:type",Object)],J7.prototype,"cardItemContainerEntity_",void 0);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],J7.prototype,"onToggleButton_",null);_.x([_.XC("yt-next-continuation-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],J7.prototype,"nextContinuationDataUpdated_",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],J7.prototype,"dataChanged_",null);_.x([_.Sb("data.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],J7.prototype,"backgroundColorChanged_",null);_.x([_.cL({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],J7);
_.y(J7,"yt-card-item-container-renderer",function(){if(o5O===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;a6O===void 0&&(a6O=document.createElement("template"));var W=a6O;K.call(G,W.content.cloneNode(!0),m.content.firstChild);o5O=m}m=o5O;return m},{mode:2});var Nu=function(){return _.d.apply(this,arguments)||this};
_.n(Nu,_.d);Nu.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"}}}};
Nu.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Nu.prototype.computeLoadingHidden=function(){var m;return!((m=this.commerceCartPageStateEntity)==null?0:m.cartActionInProgress)};
Nu.prototype.updateNotification=function(){var m,G=(m=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:m.summaryText;G&&this.set("data.cartNotification",AX(G))};
Nu.prototype.notificationEntityChanged=Nu.prototype.notificationEntityChanged;_.x([_.q(_.OW),_.S("design:type",Object)],Nu.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Nu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Nu.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Nu.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(m,G){return _.yx(m.entities,"commerceCartExpandableNotificationEntity",G)}}),
_.S("design:type",Object)],Nu.prototype,"commerceCartExpandableNotificationEntity",void 0);_.x([_.V({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(m,G){return _.yx(m.entities,"commerceCartPageStateEntity",G)}}),
_.S("design:type",Object)],Nu.prototype,"commerceCartPageStateEntity",void 0);_.x([_.UM("#spinner"),_.S("design:type",HTMLElement)],Nu.prototype,"spinner",void 0);_.x([_.Sb("commerceCartExpandableNotificationEntity","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nu.prototype,"notificationEntityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Nu);
_.y(Nu,"ytd-commerce-cart-renderer",function(){if(Nzz!==void 0)return Nzz;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Nzz=m},{mode:1});var v56;var D9=function(){var m=_.d.apply(this,arguments)||this;m.bigImage=!1;return m};
_.n(D9,_.d);_.e_.Object.defineProperties(D9.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.placeholderImageUrl}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],D9.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],D9.prototype,"bigImage",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],D9.prototype,"placeholderImageUrl",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],D9);
_.y(D9,"ytd-empty-product-shelf-renderer",function(){if(v56!==void 0)return v56;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return v56=m},{mode:1});var $6E;var t7=function(){var m=_.d.apply(this,arguments)||this;m.itemStyle="link-item";m.watchMetadataRefresh=!1;m.skinnyMode=!1;m.metaPanel=!1;m.inStructuredDescription=!1;m.detailedDescriptionOverride=!1;m.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};m.updateOnResizeDebouncer=null;return m};
_.n(t7,_.d);_.w=t7.prototype;_.w.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.w.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"}}}}};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.w.attachVEs=function(m){m.trackingParams&&_.l1().graftServerVe(m.trackingParams)};
_.w.handleUpdateMerchShelfAction=function(m){var G=this,K=_.Q(m.updateMerchandiseShelfAction.merchandiseShelf,_.X3C);K&&(K.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){G.attachVEs(K);G.data=K},Number(K.renderDelayMs))):(this.attachVEs(K),this.data=K))};
_.w.updateOnResize=function(){if(this.JSC$17349_scrollContainer!==void 0&&this.JSC$17349_scrollContainer.clientWidth!==0&&this.items!==void 0){var m=this.JSC$17349_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-m));this.ytdHorizontalListBehavior.reposition_();var G;switch((G=this.data)==null?void 0:G.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var K,
W;((K=this.data)==null?void 0:(W=K.items)==null?void 0:W.length)===1?this.itemStyle="cta-item":this.itemStyle=m>=740?"large-item":"small-item"}}};
_.w.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.C2(this.updateOnResizeDebouncer,_.o9.after(100),this.updateOnResize)};
t7.prototype.debouncedUpdateOnResize=t7.prototype.debouncedUpdateOnResize;t7.prototype.dataChanged=t7.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],t7.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],t7.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],t7.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],t7.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"itemStyle",void 0);_.x([_.V({value:6}),_.S("design:type",Number)],t7.prototype,"initialCount",void 0);
_.x([_.V({value:"data.items"}),_.S("design:type",String)],t7.prototype,"itemsPath",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"watchMetadataRefresh",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"skinnyMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"metaPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"inStructuredDescription",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],t7.prototype,"detailedDescriptionOverride",void 0);_.x([_.UM("#items"),_.S("design:type",HTMLDivElement)],t7.prototype,"items",void 0);_.x([_.UM("#scroll-container"),_.S("design:type",HTMLDivElement)],t7.prototype,"JSC$17349_scrollContainer",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t7.prototype,"dataChanged",null);
_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],t7.prototype,"debouncedUpdateOnResize",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],t7);
_.y(t7,"ytd-merch-shelf-renderer",function(){if($6E!==void 0)return $6E;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $6E=m},{mode:2});var sss;var F3=function(){var m=_.d.apply(this,arguments)||this;m.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 m};
_.n(F3,_.d);_.w=F3.prototype;
_.w.addBackstagePostAction=function(m){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(m=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",m))&&(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:m}):this.set("data.contents",[{backstagePostThreadRenderer:m}]))};
_.w.addBackstageCommentAction=function(m){var G=this.get("addBackstageCommentAction.parentId",m);m=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",m);if(G&&m){G=this.postIdToIndices(G);for(var K=0;K<G.length;K++){var W=G[K];if(W<0)break;W="data.contents."+W+".backstagePostThreadRenderer.comments";this.get(W)&&(this.get(W+".backstageCommentsRenderer.contents")&&this.push(W+".backstageCommentsRenderer.contents",{commentThreadRenderer:m}),this.get(W+".backstageCommentsRenderer.teaserContents")?
this.push(W+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:m}):this.set(W+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:m}]))}}};
_.w.addBackstageReplyAction=function(m){var G=this.get("addBackstageReplyAction.parentId",m);m=this.get("addBackstageReplyAction.renderer.commentRenderer",m);G&&m&&this.setCreatorReply(G,m)};
_.w.banAuthorAction=function(m){var G=this.get("banAuthorAction.commentId",m);G&&(m=this.get("banAuthorAction.parentCommentId",m)||this.getParentPostId(G),this.removeFromStream(G,m))};
_.w.hideReportedCommentAction=function(m){var G=this.get("hideReportedCommentAction.commentId",m);G&&((m=this.get("hideReportedCommentAction.parentCommentId",m))||(m=this.getParentPostId(G)),this.removeFromStream(G,m))};
_.w.replaceBackstageCommentAction=function(m){var G=this.get("replaceBackstageCommentAction.commentId",m),K=this.get("replaceBackstageCommentAction.parentId",m);m=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",m);if(G&&K&&m){K=this.postIdToIndices(K);for(var W=0;W<K.length;W++){var L=K[W];if(L<0)break;var A=this.commentIdToIndex(G,L,!1);if(A>=0){var O=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A+".commentThreadRenderer.replies.commentRepliesRenderer");
O&&(m.replies={commentRepliesRenderer:O});this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",A,1,{commentThreadRenderer:m})}A=this.commentIdToIndex(G,L,!0);if(A>=0){if(O=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(A+".commentThreadRenderer.replies.commentRepliesRenderer")))m.replies={commentRepliesRenderer:O};this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
A,1,{commentThreadRenderer:m})}}}};
_.w.replaceBackstagePostAction=function(m){var G=this.get("replaceBackstagePostAction.itemId",m);if(G){G=this.postIdToIndices(G);for(var K=0;K<G.length;K++){var W=G[K];if(W<0)break;var L=this.getPostRendererType(W),A=this.get("replaceBackstagePostAction.renderer."+L,m);if(!A&&L!=="sharedPostRenderer")break;var O=!1;A||(O=!0,A=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",m));if(!A)break;var c={};O?(_.LN(c,L7i,A),this.set("data.contents."+W+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
c)):(_.LN(c,new _.$W(L),A),this.set("data.contents."+W+".backstagePostThreadRenderer.post",c))}}};
_.w.replaceBackstageReplyAction=function(m){var G=this.get("replaceBackstageReplyAction.replyId",m),K=this.get("replaceBackstageReplyAction.parentId",m);m=this.get("replaceBackstageReplyAction.renderer.commentRenderer",m);G&&m&&K&&this.setCreatorReply(K,m)};
_.w.removeCommentAction=function(m){var G=this.get("removeCommentAction.commentId",m);if(G){var K=this.get("removeCommentAction.parentCommentId",m);K&&this.get("removeCommentAction.isCreatorReply",m)?this.setCreatorReply(K,void 0):(K||(K=this.getParentPostId(G)),this.removeFromStream(G,K))}};
_.w.setCreatorReply=function(m,G){var K=this.getParentPostId(m);if(K){K=this.postIdToIndices(K);for(var W=0;W<K.length;W++){var L=K[W];if(L<0)break;var A=this.commentIdToIndex(m,L,!1);if(A>=0){var O="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+A;A=O+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";O+=".commentThreadRenderer.replies";G==void 0?(this.set(O,{}),this.set(A,!1)):(this.set(O,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),
this.set(O+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(A,!0))}A=this.commentIdToIndex(m,L,!0);A>=0&&(A="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+A,L=A+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",A+=".commentThreadRenderer.replies",G==void 0?(this.set(A,{}),this.set(L,!1)):(this.set(A,{commentRepliesRenderer:{teaserContents:[{commentRenderer:G}]}}),this.set(L,!0)))}}};
_.w.removeFromStream=function(m,G){if(G){G=this.postIdToIndices(G);for(var K=0;K<G.length;K++){var W=G[K];if(W<0)break;var L=this.commentIdToIndex(m,W,!1);L>=0&&this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",L,1);L=this.commentIdToIndex(m,W,!0);L>=0&&this.splice("data.contents."+W+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",L,1);W="data.contents."+W+".backstagePostThreadRenderer.post.backstagePostRenderer";
L=W+".backstageAttachment.pollRenderer.votedCommentId";this.get(L)===m&&(this.set(L,null),this.set(W+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(G=this.postIdToIndices(m).reverse(),K=0;K<G.length;K++){W=G[K];if(W<0)break;L=this.getPostRendererType(W);var A=this.get("backstagePostThreadRenderer.post."+L,this.data.contents[W]);A.postId===m?this.splice("data.contents",W,1):L==="sharedPostRenderer"&&this.set("data.contents."+W+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);A.scheduledPublishTimeSec&&_.dU(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.w.postIdToIndices=function(m){for(var G=[],K=0;K<this.data.contents.length;K++){var W=this.getPostRendererType(K);this.get("backstagePostThreadRenderer.post."+W+".postId",this.data.contents[K])===m&&G.push(K);if(W==="sharedPostRenderer"){var L=this.get("backstagePostThreadRenderer.post."+W+".originalPost.backstagePostRenderer.postId",this.data.contents[K]);W=this.get("backstagePostThreadRenderer.post."+W+".originalPost.postRenderer.postId",this.data.contents[K]);L!==m&&W!==m||G.push(K)}}return G};
_.w.commentIdToIndex=function(m,G,K){if(G<0)return-1;var W,L,A,O,c=_.Q((W=this.data)==null?void 0:(L=W.contents)==null?void 0:(A=L[G])==null?void 0:(O=A.backstagePostThreadRenderer)==null?void 0:O.comments,K7G);return(G=K?c==null?void 0:c.teaserContents:c==null?void 0:c.contents)&&G.length?G.findIndex(function(u){return _.Q(u,PDG).comment.commentRenderer.commentId===m}):-1};
_.w.getParentPostId=function(m){m=m.split(".");if(m[1])return m[0]};
_.w.getPostRendererType=function(m){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[m])?"sharedPostRenderer":"backstagePostRenderer"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],F3.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],F3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("enable_community_page_on_desktop")}),_.S("design:type",Boolean)],F3.prototype,"useSmallerPostContainer",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-backstage-items"})],F3);
_.y(F3,"ytd-backstage-items",function(){if(sss!==void 0)return sss;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return sss=
m},{mode:1});var qO6;var E5W={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},QJ=function(){var m=_.d.apply(this,arguments)||this;m.disablePrescanVisibility=!0;m.canScheduleJobs=!0;m.engagementPanel=!1;m.hidePanelButton=!1;m.isWatchGrid=
!1;m.hasShownSubscribersOnlyDisclaimer=!1;m.hasShownSuperfanOnlyDisclaimer=!1;m.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};m.TEST_ONLY=void 0;return m};
_.n(QJ,_.d);_.w=QJ.prototype;_.w.created=function(){this.initCommentsCsi_();_.F("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.F("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.w.contentsChanged_=function(){var m;(m=this.data)!=null&&m.contents&&this.tickForCommentsTimer_("cml")};
_.w.headerChanged_=function(){var m;(m=this.data)!=null&&m.header&&this.tickForCommentsTimer_("cmhl")};
_.w.initCommentsCsi_=function(){_.ck("wn_comments");var m=_.gU();m&&_.g9({clientScreenNonce:m},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.w.createCommentAction_=function(m){m=_.Y2.unsafeClone(m);var G,K;if(m=(G=_.Q(m,EKF))==null?void 0:(K=G.contents)==null?void 0:K.commentThreadRenderer){var W,L,A,O,c,u;!this.isBackstage&&((W=this.data)==null?0:(L=W.header)==null?0:(A=L.commentsHeaderRenderer)==null?0:(O=A.createRenderer)==null?0:(c=O.commentSimpleboxRenderer)==null?0:(u=c.zeroStep)==null?0:u.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var h,
J,N;this.isBackstage&&_.Q((h=this.data)==null?void 0:(J=h.header)==null?void 0:(N=J.commentsHeaderRenderer)==null?void 0:N.zeroStateMessage,AZ2)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(m)}};
_.w.doReplyInsert_=function(m,G,K,W){W?this.splice(m,W,0,G):this.push(m,G)};
_.w.getRepliesPath_=function(m){return"data.contents."+m+".commentThreadRenderer.replies"};
_.w.getRepliesContentsPath_=function(m,G){m=this.getRepliesPath_(m);return G?m+".commentRepliesRenderer.teaserContents":m+".commentRepliesRenderer.contents"};
_.w.showSubscribersOnlyDisclaimer_=function(m){(m=m.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(m))&&(_.dU(this.hostElement,"yt-open-popup-action",[m,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.w.showSuperfanOnlyDisclaimer_=function(m){(m=m.detail.command)&&!this.hasShownSuperfanOnlyDisclaimer&&(m=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(m))&&(_.dU(this.hostElement,"yt-open-popup-action",[m,this]),this.hasShownSuperfanOnlyDisclaimer=!0)};
_.w.createCommentReplyAction_=function(m){m=_.Y2.unsafeClone(m);var G=_.Q(m,H2K);if(m=G==null?void 0:G.contents){var K=this.commentIdToIndex_(G==null?void 0:G.parentCommentId);if(!(K<0)){var W=this.getRepliesPath_(K);if(this.get(W)){G=G.replyToCommentId;W=this.getRepliesContentsPath_(K,!1);if(this.get(W)){var L=this.get(W).length,A=W+"."+(L-1)+".continuationItemRenderer";this.get(A+".button")?(A=this.replyIdToIndex_(G,K,!1),this.doReplyInsert_(W,m,A,L-1)):this.get(A)||(L=this.replyIdToIndex_(G,K,
!1),this.doReplyInsert_(W,m,L,null))}W=this.getRepliesContentsPath_(K,!0);this.get(W)?(K=this.replyIdToIndex_(G,K,!0),(!G||K>=0)&&this.doReplyInsert_(W,m,K,null)):this.set(W,[m])}else this.set(W,{commentRepliesRenderer:{teaserContents:[m]}})}}};
_.w.hideReportedCommentAction_=function(m){var G=_.Q(m,MgB);if(m=G==null?void 0:G.commentId)(G=this.get("parentCommentId",G))||(G=this.getParentCommentId_(m)),this.remove_(m,G)};
_.w.getParentCommentId_=function(m){m=m.split(".");if(m[1])return m[0]};
_.w.removeCommentAction_=function(m){var G=_.Q(m,VgG);if(m=G==null?void 0:G.commentId)G=(G==null?void 0:G.parentCommentId)||this.getParentCommentId_(m),this.remove_(m,G)};
_.w.pinCommentAction_=function(m){m=_.Y2.unsafeClone(m);var G=_.Q(m,CDK);G!=null&&G.commentId&&(m=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",m))&&(this.remove_(G.commentId),this.insert_(m,!0))};
_.w.unpinCommentAction_=function(m){m=_.Y2.unsafeClone(m);m=_.Q(m,Z2o);if(m!=null&&m.commentId){var G,K,W=(G=m.actionResult)==null?void 0:(K=G.update)==null?void 0:K.commentThreadRenderer;W&&(this.remove_(m.commentId),this.insert_(W))}};
_.w.banAuthorAction_=function(m){var G=_.Q(m,qLo);G!=null&&G.commentId&&(m=G.commentId,G=G.parentCommentId||this.getParentCommentId_(m),this.remove_(m,G))};
_.w.handleScrollToCommentElement_=function(m){this.hostElement.contains(m)&&(this.nearestScrollParent||(this.nearestScrollParent=XPV(m)),this.isCommentVisibleInScrollParent(m)||m.scrollIntoView({behavior:"smooth",block:"nearest"}))};
_.w.isCommentVisibleInScrollParent=function(m){if(!this.nearestScrollParent)return!1;m=m.getBoundingClientRect();var G=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return m.top>=G.top&&m.bottom<=G.bottom};
_.w.commentIdToIndex_=function(m){var G;return m&&(G=this.data)!=null&&G.contents?this.data.contents.findIndex(function(K){K=K.commentThreadRenderer;var W;return m===((K==null?void 0:K.commentViewModel)&&((W=_.Q(K.commentViewModel,SLX))==null?void 0:W.commentId))}):-1};
_.w.insert_=function(m,G){G=G===void 0?!1:G;var K,W;if((K=this.data)==null?0:(W=K.contents)==null?0:W.some(function(A){return!!A.commentThreadRenderer}))for(K=0,W=this.data.contents.length;K<W;K++){var L=this.data.contents[K].commentThreadRenderer;
if(E5W[m.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=E5W[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){G&&E5W[m.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===E5W[L.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",K,1,{commentThreadRenderer:m}):this.splice("data.contents",K,0,{commentThreadRenderer:m});break}}else this.set("data.contents",[{commentThreadRenderer:m}])};
_.w.doReplyRemove_=function(m,G,K){m=this.replyIdToIndex_(m,G,K);m<0||(G=this.getRepliesContentsPath_(G,K),this.splice(G,m,1))};
_.w.remove_=function(m,G){G=this.commentIdToIndex_(G);G<0?(G=this.commentIdToIndex_(m),G<0||this.splice("data.contents",G,1)):_.F("web_delhi_comment_threads")||(this.doReplyRemove_(m,G,!1),this.doReplyRemove_(m,G,!0))};
_.w.replyIdToIndex_=function(m,G,K){if(G<0)return-1;G=this.getRepliesContentsPath_(G,K);G=this.get(G);if(!G||!G.length)return-1;K=0;for(var W=G.length;K<W;K++){var L=void 0,A=void 0;if(((L=G[K])==null?void 0:(A=L.commentViewModel)==null?void 0:A.commentId)===m)return K}return-1};
_.w.tickForCommentsTimer_=function(m){_.r9(m,void 0,"wn_comments")};
_.w.reloadComments_=function(m){m=_.Q(m,xh4);_.Q(m==null?void 0:m.command,_.Yg)&&_.yQ(this.hostElement,[m==null?void 0:m.command])};
_.e_.Object.defineProperties(QJ.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.data)==null?0:(G=m.header)==null?0:(K=G.commentsHeaderRenderer)==null?0:K.isBackstageContent)}}});
_.e_.Object.defineProperties(QJ,{template:{configurable:!0,enumerable:!0,get:function(){if(qO6===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);qO6=m}m=qO6;return m}}});
QJ.prototype.showSuperfanOnlyDisclaimer_=QJ.prototype.showSuperfanOnlyDisclaimer_;QJ.prototype.showSubscribersOnlyDisclaimer_=QJ.prototype.showSubscribersOnlyDisclaimer_;QJ.prototype.headerChanged_=QJ.prototype.headerChanged_;QJ.prototype.contentsChanged_=QJ.prototype.contentsChanged_;_.x([_.q(_.vi),_.S("design:type",Object)],QJ.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",Function)],QJ.prototype,"ytPlayerListenerBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],QJ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.header.commentsHeaderRenderer.isBackstageContent"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],QJ.prototype,"isBackstage",null);
_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"disablePrescanVisibility",void 0);_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"canScheduleJobs",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],QJ.prototype,"engagementPanel",void 0);_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"hidePanelButton",void 0);_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"isWatchGrid",void 0);_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.x([_.V(),_.S("design:type",Object)],QJ.prototype,"hasShownSuperfanOnlyDisclaimer",void 0);_.x([_.Sb("data.contents"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QJ.prototype,"contentsChanged_",null);_.x([_.Sb("data.header"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QJ.prototype,"headerChanged_",null);
_.x([_.XC("yt-show-subscribers-only-disclaimer"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],QJ.prototype,"showSubscribersOnlyDisclaimer_",null);_.x([_.XC("yt-show-superfan-only-snackbar"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],QJ.prototype,"showSuperfanOnlyDisclaimer_",null);_.x([_.Ye({is:"ytd-comments"})],QJ);var aH=function(){return _.l0.apply(this,arguments)||this};
_.n(aH,_.l0);_.w=aH.prototype;_.w.bindIf=function(m,G,K){return m?G:K};
_.w.bindIfDefined=function(m,G){return m!==void 0?m:G};
_.w.booleanString=function(m){return(!!m).toString()};
_.w.equals=function(){for(var m=_.mb.apply(0,arguments),G=m[0],K=1;K<m.length;K++)if(G!=m[K])return!1;return!0};
_.w.isGreaterThan=function(m,G){return m>G};
_.w.isLessThan=function(m,G){return m<G};
_.w.logicalAND=function(){for(var m=_.mb.apply(0,arguments),G=!!m[0],K=1;K<m.length;K++)G=G&&!!m[K];return G};
_.w.logicalOR=function(){for(var m=_.mb.apply(0,arguments),G=!!m[0],K=1;K<m.length;K++)G=G||!!m[K];return G};
_.w.toBool=function(m){return!!m};
aH.prototype.toBool=aH.prototype.toBool;aH.prototype.logicalOR=aH.prototype.logicalOR;aH.prototype.logicalAND=aH.prototype.logicalAND;aH.prototype.isLessThan=aH.prototype.isLessThan;aH.prototype.isGreaterThan=aH.prototype.isGreaterThan;aH.prototype.equals=aH.prototype.equals;aH.prototype.booleanString=aH.prototype.booleanString;aH.prototype.bindIfDefined=aH.prototype.bindIfDefined;aH.prototype.bindIf=aH.prototype.bindIf;_.x([_.Be()],aH);_.HPG=[aH.prototype];var I6u;var jsu;var oH=function(){return _.d.apply(this,arguments)||this};
_.n(oH,_.d);oH.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
oH.prototype.onBackIconTap_=function(){window.history.back()};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oH.prototype,"data",void 0);_.x([_.cL({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],oH);
_.y(oH,"yt-header-with-back-renderer",function(){if(jsu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;I6u===void 0&&(I6u=document.createElement("template"));var W=I6u;K.call(G,W.content.cloneNode(!0),m.content.firstChild);jsu=m}m=jsu;return m},{mode:2});var kGE;var CqE;var nO=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(nO,_.d);_.w=nO.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&(this.isDarkTheme=m,this.setUrl())};
_.w.dataChanged=function(){var m=this;if(this.data){var G=this.setUrl();G&&_.Po({destination:window,iframe:this.iframe,origin:_.zLJ(G.toString()),channelName:"yt-iframe",onMessage:function(K){(K=m.getCommunicationCommand(K.data))&&m.ytComponentBehavior.resolveCommand(K)},
onEstablished:function(){}})}};
_.w.setUrl=function(){if(this.data&&this.data.iframeUrl){var m=_.Ql(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(m)return _.w5(this.iframe,m),m}};
_.w.getCommunicationCommand=function(m){var G;if((G=this.data)!=null&&G.onCommunicationCommandsMap){G=this.data.onCommunicationCommandsMap.find(function(L){return L.key===m});
if(G==null?0:G.value)return G==null?void 0:G.value;try{var K=YxK(_.T9(m)),W=this.data.onCommunicationCommandsMap.find(function(L){return L.key===(K==null?void 0:K.getMethodName())});
if(W==null?0:W.value)return W==null?void 0:W.value}catch(L){}}};
nO.prototype.dataChanged=nO.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],nO.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],nO.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nO.prototype,"data",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],nO.prototype,"isDarkTheme",void 0);_.x([_.UM("#iframe"),_.S("design:type",HTMLIFrameElement)],nO.prototype,"iframe",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nO.prototype,"dataChanged",null);_.x([_.cL({is:"yt-iframe-renderer",disableElementRegistration:!0})],nO);
_.y(nO,"yt-iframe-renderer",function(){if(CqE===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;kGE===void 0&&(kGE=document.createElement("template"));var W=kGE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);CqE=m}m=CqE;return m},{mode:2});_.bi=function(m){_.Lt.call(this);this.callback=m;this.bezier=new ibo(0,0,.4,0,.2,1,1,1);this.delay=new _.Xg(this.next,window,this);this.JSC$17389_animating=!1;_.UR(this,this.delay)};
_.n(_.bi,_.Lt);_.bi.prototype.isAnimating=function(){return this.JSC$17389_animating};
_.bi.prototype.start=function(m,G,K){this.config={from:m,to:G,duration:K,startTime:(0,_.xD)()};this.JSC$17389_animating=!0;this.next()};
_.bi.prototype.stop=function(){this.delay.stop();this.JSC$17389_animating=!1;this.config=void 0};
_.bi.prototype.next=function(){if(this.config){var m=this.config,G=m.from,K=m.to,W=m.duration;m=m.startTime;var L=(0,_.xD)()-m;m=this.bezier;W=QTR(m,L/W);if(W==0)m=m.y0;else if(W==1)m=m.y3;else{L=g3(m.y0,m.y1,W);var A=g3(m.y1,m.y2,W);m=g3(m.y2,m.y3,W);L=g3(L,A,W);A=g3(A,m,W);m=g3(L,A,W)}m=_.YJ(m,0,1);this.callback(G+(K-G)*m);m<1?this.delay.start():this.JSC$17389_animating=!1}};_.vy=new _.sX("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var VWq={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},d6z=function(m,G,K,W){_.Lt.call(this);this.JSC$17400_miniAppId=m;this.localReleaseId=G;this.derivedDeviceInterface=K;this.isForeground=W;this.JSC$17400_playNonceResolver=new _.yY;this.playPingTimerId=NaN;this.playPingIntervalMs=_.U8("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.U8("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.F("enable_displaying_ppn");this.JSC$17400_miniAppClientDataProvider=_.xS().resolve(_.vy);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ZPi(this);var L=setTimeout(function(){_.nc(new _.cw("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17400_playNonceResolver.promise.then(function(){clearTimeout(L)})};
_.n(d6z,_.Lt);var yDP=function(m,G){m.JSC$17400_playNonceResolver.resolve(G!=null?G:LJ(8));m.enableDisplayingPpn&&PqE(m).then(function(K){m.JSC$17400_miniAppClientDataProvider.clientData.set("post_play_nonce",K)})},PqE=function(m){return _.Y(function(G){return G.nextAddress==1?G.yield(m.JSC$17400_playNonceResolver.promise,2):G.return(G.yieldResult)})},ZPi=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$17400_playNonceResolver.promise,2);G=W.yieldResult;K={miniAppInfo:{externalPostId:m.JSC$17400_miniAppId,localReleaseId:m.localReleaseId,postPlayNonce:G,derivedDeviceInterface:m.derivedDeviceInterface}};_.g9(K);_.ey(W)})},f6E=function(m){m.state!==0?_.nc(new _.cw("[MiniAppPlayLogger] recordPlayStart failed with state "+VWq[m.state])):(m.state=1,$L(m,"ma_cl"),s$(m,"PLAY_EVENT_TYPE_PLAY_START"),e66(m))},x6O=function(m){m.isForeground=!1;
s$(m,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Xui=function(m){m.state!==1&&m.state!==2?_.nc(new _.cw("[MiniAppPlayLogger] recordPlayEnd failed with state "+VWq[m.state])):(m.state=3,window.clearInterval(m.playPingTimerId),m.playPingTimerId=NaN,fqd(),s$(m,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},SO5=function(m,G){m.state===2&&m.gameReady&&(m.firstClickRecorded?Date.now()-m.clickRecordedMs<m.playClickIntervalMs||(m.clickRecordedMs=Date.now(),s$(m,"PLAY_EVENT_TYPE_PLAY_CLICK")):G&&($L(m,"ma_fua"),s$(m,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),m.firstClickRecorded=!0,m.clickRecordedMs=Date.now()))};
d6z.prototype.logError=function(m){var G=this,K;_.Y(function(W){if(W.nextAddress==1)return m.metadata.externalPostId=G.JSC$17400_miniAppId,K=m.metadata,W.yield(Promise.race([G.JSC$17400_playNonceResolver.promise,new Promise(function(L){setTimeout(function(){L("")},3E4)})]),2);
K.postPlayNonce=W.yieldResult;m.metadata.localReleaseId=G.localReleaseId;m.loggingError.level="WARNING";_.am(m.loggingError,m.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:m.metadata});_.ey(W)})};
var R6q=function(m,G,K,W){var L,A,O,c,u,h;_.Y(function(J){if(J.nextAddress==1)return J.yield(m.JSC$17400_playNonceResolver.promise,2);L=J.yieldResult;A={externalPostId:m.JSC$17400_miniAppId,localReleaseId:m.localReleaseId,postPlayNonce:L,sdkVersion:K,api:G};W!==void 0&&(A.networkRequestsMeasurement={networkRequests:_.Z5(W,1),cachedRequests:_.Z5(W,2),transferredBytes:_.Z5(W,3)},(O=W)==null?0:_.l5(O,ak,6))&&(A.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((c=_.RG(W,
ak,6))==null?void 0:OA(c,1))||"0",cacheHits:((u=_.RG(W,ak,6))==null?void 0:OA(u,2))||"0",cachedBytes:((h=_.RG(W,ak,6))==null?void 0:OA(h,3))||"0"});_.Fx("miniAppSdkUsage",A);_.ey(J)})},z6O=function(m,G,K){var W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k;
_.Y(function(z){if(z.nextAddress==1)return z.yield(m.JSC$17400_playNonceResolver.promise,2);W=z.yieldResult;L={externalPostId:m.JSC$17400_miniAppId,localReleaseId:m.localReleaseId,postPlayNonce:W,sdkVersion:K,measurementWindow:{startTimestampMs:String(Lg(G,1)),endTimestampMs:String(Lg(G,2))},frameRate:{averageFrameTimeDeltaMs:Al(G,3),averageFrameIdleTimeMs:Al(G,4)}};_.l5(G,ok,5)&&(L.networkRequests={networkRequests:(A=E4(G))==null?void 0:_.Z5(A,1),cachedRequests:(O=E4(G))==null?void 0:_.Z5(O,2),transferredBytes:(c=
E4(G))==null?void 0:_.Z5(c,3),sameOriginStatusCodeToCounts:U6s((u=E4(G))==null?void 0:_.Xuf(u,4,void 0,TKd,TKd)),crossOriginStatusCodeToCounts:U6s((h=E4(G))==null?void 0:_.Xuf(h,5,void 0,TKd,TKd))},(J=E4(G))==null?0:_.l5(J,ak,6))&&(L.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((N=E4(G))==null?void 0:(D=_.RG(N,ak,6))==null?void 0:OA(D,1))||"0",cacheHits:((t=E4(G))==null?void 0:(a=_.RG(t,ak,6))==null?void 0:OA(a,2))||"0",cachedBytes:((v=E4(G))==null?void 0:(I=_.RG(v,ak,6))==
null?void 0:OA(I,3))||"0"});_.l5(G,BOK,7)&&(L.gameCapture={averageFrameTimeDeltaMs:(Z=_.RG(G,BOK,7))==null?void 0:Al(Z,1),averageFrameIdleTimeMs:(k=_.RG(G,BOK,7))==null?void 0:Al(k,2)});_.Fx("miniAppPerformanceMetrics",L);_.ey(z)})},l6s=function(m,G){var K,W;
return _.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$17400_playNonceResolver.promise,2);K=L.yieldResult;W={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:m.JSC$17400_miniAppId,postPlayNonce:K,miniAppReleaseId:m.localReleaseId},derivedDeviceInterface:m.derivedDeviceInterface,adTriggerType:G,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Fx("miniAppAdEvent",W);_.ey(L)})};
d6z.prototype.disposeInternal=function(){_.Lt.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var s$=function(m,G,K,W){K=K===void 0?{}:K;W=W===void 0?!1:W;var L,A,O,c;_.Y(function(u){if(u.nextAddress==1)return L=m.isForeground,A=m.beforeReady,u.yield(m.JSC$17400_playNonceResolver.promise,2);O=u.yieldResult;c={externalPostId:m.JSC$17400_miniAppId,localReleaseId:m.localReleaseId,derivedDeviceInterface:m.derivedDeviceInterface,postPlayNonce:O,type:G};K.sequenceGroup=O;c.playState=A?"PLAY_STATE_NOT_READY":L?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Fx("miniAppPlayEvent",c,
K);W&&_.Qb();_.ey(u)})},$L=function(m,G){var K;
_.Y(function(W){if(W.nextAddress==1)return K=(0,_.xD)(),W.yield(m.JSC$17400_playNonceResolver.promise,2);_.Yt(G,K);_.ey(W)})},e66=function(m){isNaN(m.playPingTimerId)&&(m.playPingTimerId=_.Tf(function(){m.state!==1&&m.state!==2?_.nc(new _.cw("[MiniAppPlayLogger] reportPlayPing failed with state "+VWq[m.state])):s$(m,"PLAY_EVENT_TYPE_PLAY_PING")},m.playPingIntervalMs))},U6s=function(m){return Array.from(m.entries()).map(function(G){var K=_.g(G);
G=K.next().value;K=K.next().value;return{key:G,value:K}})};var BzD=function(){},MWO=function(m,G){m.showMiniAppAdCommand=G.showMiniAppAdCommand;
m.isEmbeddedInWebview=G.isEmbeddedInWebview;m.playLogger=G.playLogger},mIG=function(m){return _.Y(function(G){return G.return(Tzz(m,1))})},ipz=function(m){return _.Y(function(G){return G.return(Tzz(m,2))})},Kui=function(m,G){return _.Y(function(K){return G?K.return(Tzz(m,3,G)):K.return(G7W(m,3))})},Tzz=function(m,G,K){var W;
return _.Y(function(L){if(L.nextAddress==1){if(!m.showMiniAppAdCommand||!m.isEmbeddedInWebview)return L.return(G7W(m,G));m.adResolver=new _.yY;var A=new Gj;A=_.UV(A,3,G);W=_.LB(A,5,K);cY(m.showMiniAppAdCommand,VP0(W));return L.yield(m.adResolver.promise,2)}return L.return(L.yieldResult)})};
BzD.prototype.onAdFinished=function(m){m=$3S(m);var G;(G=this.adResolver)==null||G.resolve(m)};
var G7W=function(m,G){var K;return _.Y(function(W){if(W.nextAddress==1)W=W.yield((K=m.playLogger)==null?void 0:l6s(K,T4G(G)),2);else{var L=W.return;var A=new vZB;A=_.UV(A,1,2);W=L.call(W,A)}return W})};var Wuu=new _.sX("INNERTUBE_MANAGER_TOKEN");var Lu6=function(){this.callbacks={}};
Lu6.prototype.initialize=function(m){var G=this;this.callbacks=m;window.youtubewebview?window.youtubewebview.onmessage=function(K){ACW(G,K)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(K){ACW(G,K)})};
var ACW=function(m,G){if(G.data)try{var K=YxK(G.data);if(_.q6(_.ze(K,1))!=null){var W=EYP(_.wL(K,2));switch(K.getMethodName()){case "yt-mini-app-load-audio-state":var L,A;(A=(L=m.callbacks).onAudioStateLoaded)==null||A.call(L,_.Wo(W,gC(W,iu,1)));break;case "yt-mute-mini-app":var O,c;(c=(O=m.callbacks).onMuteMiniApp)==null||c.call(O);break;case "yt-unmute-mini-app":var u,h;(h=(u=m.callbacks).onUnmuteMiniApp)==null||h.call(u);break;case "yt-playable-exit":var J,N;(N=(J=m.callbacks).onExit)==null||N.call(J);
break;case "yt-post-play-nonce":var D,t;(t=(D=m.callbacks).onPostPlayNonceReceived)==null||t.call(D,co(W,2,iu));break;case "yt-confirm-exit-mini-app":var a,v;(v=(a=m.callbacks).confirmExitMiniApp)==null||v.call(a);break;case "yt-confirm-exit-mini-app-edu":var I,Z;(Z=(I=m.callbacks).confirmExitMiniAppEdu)==null||Z.call(I);break;case "yt-benchmarking-response":var k,z;(z=(k=m.callbacks).onNativeBenchmarkingMessageReceived)==null||z.call(k,co(W,2,iu));break;case "yt-mini-app-load-3p-consent-state":var X,
f;(f=(X=m.callbacks).multiplayer3pAckStateLoaded)==null||f.call(X,_.Wo(W,gC(W,iu,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var U,l;(l=(U=m.callbacks).exitMiniAppSeenStateLoaded)==null||l.call(U,_.Wo(W,gC(W,iu,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Ls,gd;(gd=(Ls=m.callbacks).onNavigateToNewMiniApp)==null||gd.call(Ls);break;case "yt-game-data-available":var Qf,JV;(JV=(Qf=m.callbacks).onGameDataAvailable)==null||JV.call(Qf,co(W,2,iu));break;case "yt-pause-mini-app":var DF,
kG;(kG=(DF=m.callbacks).onPauseMiniApp)==null||kG.call(DF);break;case "yt-resume-mini-app":var eo,xG;(xG=(eo=m.callbacks).onResumeMiniApp)==null||xG.call(eo);break;case "yt-pause-playable-dialog":var Ji,rK;(rK=(Ji=m.callbacks).onPausePlayableDialog)==null||rK.call(Ji);break;case "yt-resume-playable-dialog":var So,ti;(ti=(So=m.callbacks).onResumePlayableDialog)==null||ti.call(So);break;case "yt-playable-ad-finished":var bS,NG;(NG=(bS=m.callbacks).onAdFinished)==null||NG.call(bS,co(W,2,iu))}}else _.nc(Error("Xh"))}catch(EO){_.am(Error("Yh"))}else _.nc(Error("Zh"))};var i09=function(m){this.rpcErrorCode=m};var qu=function(m,G,K){this.intervalMs=m;this.apiFunc=G;this.type=K;this.schedulerReady=!0};
qu.prototype.call=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1){if(G.type!==1&&m===G.cachedValue)return W.return();G.pendingApiRequestResolver||(G.pendingApiRequestResolver=new _.yY);K=G.pendingApiRequestResolver.promise;G.cachedValue=m;return W.yield(wN5(G),2)}return W.return(K)})};
qu.prototype.flush=function(m){m=m===void 0?!1:m;var G=this;return _.Y(function(K){return G.cachedValue===void 0?K.return():K.yield(G.apiFunc(G.cachedValue,m),0)})};
var wN5=function(m){var G,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!m.schedulerReady||!m.pendingApiRequestResolver)return L.return();m.schedulerReady=!1;G=m.pendingApiRequestResolver;m.pendingApiRequestResolver=void 0;_.IO(L,2);if(m.cachedValue===void 0){L.jumpTo(4);break}return L.yield(m.apiFunc(m.cachedValue),5);case 5:K=L.yieldResult,G.resolve(K);case 4:_.IG(L,3);break;case 2:W=_.ye(L),G.reject(W);case 3:setTimeout(function(){return _.Y(function(A){m.schedulerReady=!0;return A.yield(wN5(m),
0)})},m.intervalMs),_.ey(L)}})};var W8d=window.location.origin+"/miniapp_cloudsaves",G3M=[400,401],goE=_.U8("cloud_save_game_data_rate_limit_ms",3E3),cCD=function(m){var G=this;this.JSC$17444_miniAppId=m;this.loadAttempts=0;this.cloudSaveIntervalMs=goE;this.initialDownloadDataSucceeded=!1;this.JSC$17444_playNonceResolver=new _.yY;this.scottyUploadRateLimiter=new qu(this.cloudSaveIntervalMs,function(K,W){return G.uploadData(K,W)},2);
this.downloadDataPromise=Op6(this);this.downloadDataPromise.then(function(){G.initialDownloadDataSucceeded=!0}).catch(function(){})},YeD=function(m,G){G.then(function(K){return m.JSC$17444_playNonceResolver.resolve(K)})},rCD=function(m){return _.Y(function(G){return m.cachedData===void 0?G.return(m.downloadDataPromise):G.return(m.cachedData)})},uO5=function(m,G){return _.Y(function(K){m.cachedData=G;
if(!m.initialDownloadDataSucceeded)throw Error("$h");return K.yield(m.scottyUploadRateLimiter.call(G),0)})},hCq=function(){return new Promise(function(m){setTimeout(m,1E3,"")})},pNP=function(m,G){var K,W;
return _.Y(function(L){if(L.nextAddress==1)return K=m.JSC$17444_miniAppId,L.yield(Promise.race([m.JSC$17444_playNonceResolver.promise,hCq()]),2);W={"X-YouTube-MiniAppId":K,"X-YouTube-PostPlayNonce":L.yieldResult};"DELEGATED_SESSION_ID"in _.s8&&kzV(G,W);return L.return(W)})};
cCD.prototype.uploadData=function(m,G){G=G===void 0?!1:G;var K=this;return _.Y(function(W){return mvf()?_.F("enable_cloud_save_error_popup_after_retry")?W.return(new Promise(function(L,A){var O,c,u,h,J;return _.Y(function(N){switch(N.nextAddress){case 1:O=0,c=!0,h=u=null;case 2:if(!(c&&O++<2)){N.jumpTo(4);break}_.IO(N,5);return N.yield(JCE(K,m,G),7);case 7:u=N.yieldResult;c=u.ok?!1:!G3M.includes(u.status);_.IG(N,2);break;case 5:h=J=_.ye(N);c=K8d(h);N.jumpTo(2);break;case 4:u?u.ok?(E$(K,goE),L()):
(E$(K,K.cloudSaveIntervalMs*2),A(Error("ai`"+String(u.status),{cause:{rpcErrorCode:u.status}}))):(E$(K,K.cloudSaveIntervalMs*2),A(h||Error("bi"))),_.ey(N)}})})):W.return(new Promise(function(L,A){var O,c;
return _.Y(function(u){if(u.nextAddress==1){if(K.JSC$17444_miniAppId==="")return A(Error("ci")),u.return();_.IO(u,2);return u.yield(JCE(K,m,G),4)}if(u.nextAddress!=2)return O=u.yieldResult,O.ok?(E$(K,goE),L()):(E$(K,K.cloudSaveIntervalMs*2),A(Error("ai`"+String(O.status),{cause:{rpcErrorCode:O.status}}))),_.IG(u,0);c=_.ye(u);E$(K,K.cloudSaveIntervalMs*2);A(c);_.ey(u)})})):W.return()})};
var JCE=function(m,G,K){K=K===void 0?!1:K;var W,L,A;return _.Y(function(O){if(O.nextAddress==1)return W=_.Md((new TextEncoder).encode(G)),L=L8G(),O.yield(pNP(m,L),2);A=O.yieldResult;return O.return(fetch(L,{method:"POST",body:new Blob([W]),headers:A,keepalive:K}))})},Op6=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1){if(!mvf())return W.return("");if(m.JSC$17444_miniAppId==="")throw Error("ci");if(m.loadAttempts>2)return W.return(m.downloadDataPromise);_.IO(W,2);return W.yield(Nxq(m),4)}if(W.nextAddress!=2)return G=W.yieldResult,W.return(G);K=_.ye(W);if(K8d(K)&&++m.loadAttempts<2)return W.return(Op6(m));throw K;})},Nxq=function(m){var G,K,W,L,A;
return _.Y(function(O){switch(O.nextAddress){case 1:return _.IO(O,2),G=L8G(),O.yield(pNP(m,G),4);case 4:return K=O.yieldResult,O.yield(fetch(G,{method:"GET",headers:K}),5);case 5:return W=O.yieldResult,W.ok?O.yield(W.text(),6):O.return(Promise.reject(Error("di`"+String(W.status),{cause:new i09(W.status)})));case 6:return L=O.yieldResult,O.return((new TextDecoder).decode(_.T9(L)));case 2:return A=_.ye(O),O.return(Promise.reject(A))}})},E$=function(m,G){m.cloudSaveIntervalMs=G;
m.scottyUploadRateLimiter.intervalMs=m.cloudSaveIntervalMs};
cCD.prototype.flush=function(){var m=this;return _.Y(function(G){return m.initialDownloadDataSucceeded?G.yield(m.scottyUploadRateLimiter.flush(!0),0):G.return()})};var DI6=s4($Y(1),bN(1)),Hy=s4($Y(1),bN(3)),IH=function(m){this.callbacks=m};
_.w=IH.prototype;_.w.onAudioToggled=function(m,G){(G===void 0||G)&&_.i0("yt-mini-app-is-audio-enabled",m,2592E3)};
_.w.onPause=function(){this.onAudioToggled(!1,!1)};
_.w.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.w.returnNativeBenchmarkingMessage=function(){};
_.w.sendGameData=function(){};
_.w.sendStartGameFrameCapture=function(){};
var AEd=function(m,G,K){this.callbacks=m;var W=this;this.sdkVersion=new _.yY;this.channel=new Dp4(_.Po({destination:window,iframe:G,origin:(new URL(K.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var L=jf;var A=$Y(5);var O=new Vml;O=_.rL(O,1,1E4);A=_.Cp(A,4,XWX,O);L(W,A);W.onAudioToggled(W.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){W.sdkVersion.resolve("")},1E4)};
_.n(AEd,IH);_.w=AEd.prototype;_.w.onAudioToggled=function(m,G){IH.prototype.onAudioToggled.call(this,m,G===void 0?!0:G);G=jf;var K=$Y(2),W=new k52;m=_.x2(W,1,m);m=_.Cp(K,3,XWX,m);G(this,m)};
_.w.onPause=function(){IH.prototype.onPause.call(this);jf(this,$Y(3))};
_.w.onResume=function(){IH.prototype.onResume.call(this);jf(this,$Y(4))};
_.w.returnNativeBenchmarkingMessage=function(m){var G=jf,K=$Y(6);var W=bN(_.l5(m,qN,1)?1:2);m=_.l5(m,qN,1)?m:null;W=_.Cp(W,5,vM,m);G(this,s4(K,W))};
_.w.sendGameData=function(m){var G=jf,K=$Y(7);m=_.Cp(K,5,XWX,m);G(this,m)};
_.w.sendStartGameFrameCapture=function(){jf(this,$Y(9))};
var kL=function(m,G,K){var W,L,A;return _.Y(function(O){if(O.nextAddress==1)return W=m.callbacks,L=W.onSdkCalled,A=G,O.yield(m.sdkVersion.promise,2);L.call(W,A,O.yieldResult,K);_.ey(O)})};
AEd.prototype.onMessage=function(){var m=this;return QOS(HM,function(G){var K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji,rK,So,ti,bS,NG,EO,gz,ps,ZF,DP,lS,Eo,iq,jy,T4,JD,S0,zG,c2,N6;return _.Y(function(pl){switch(pl.nextAddress){case 1:if(!i_4(G.data))return _.nc(Error("ei")),pl.return();K=_.gL(G.data,1);_.F("enable_iframe_message_get_type_via_fields")&&(W=G.data,K=L=_.gL(W,1));switch(K){case 8:if(G.data.hasMetadata()){var Uo=m.sdkVersion,dK=Uo.resolve;var cu=G.data.getMetadata();
cu=_.wL(cu,1);dK.call(Uo,cu);clearTimeout(m.sdkVersionTimeoutId)}break;case 6:return pl.jumpTo(2);case 16:if(!_.BX(G.data,U3l,14,Ik))return pl.return();A=_.Yi(G.data,U3l,14,Ik);(c=(O=m.callbacks).onGameFrameReceived)==null||c.call(O,A);return pl.return();case 17:if(!_.BX(G.data,RVC,15,Ik))return pl.return();(h=(u=m.callbacks).onGameAudioReceived)==null||h.call(u,_.Yi(G.data,RVC,15,Ik));return pl.return();case 1:if(Uo=_.Yi(G.data,PZR,2,Ik))switch(_.gL(Uo,1)){case 1:m.callbacks.onFirstFrameReady();
if(_.F("enable_network_request_logging_on_game_events")&&_.l5(Uo,ok,4)){kL(m,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.RG(Uo,ok,4));break}kL(m,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(cu=(dK=m.callbacks).onGameReady)==null||cu.call(dK);if(_.F("enable_network_request_logging_on_game_events")&&_.l5(Uo,ok,4)){kL(m,"MINI_APP_SDK_API_GAME_READY",_.RG(Uo,ok,4));break}kL(m,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.BX(Uo,nU,3,yz4))m.callbacks.onResourceLoaded(_.Yi(Uo,nU,3,yz4))}return pl.return();
case 3:return pl.jumpTo(3);case 4:return pl.jumpTo(4);case 2:return pl.jumpTo(5);case 9:return pl.jumpTo(6);case 10:return m.callbacks.onClick(),pl.return();case 5:return pl.jumpTo(7);case 11:if(!_.BX(G.data,FV,9,Ik))return pl.return();J=_.Yi(G.data,FV,9,Ik);(D=(N=m.callbacks).onBenchmarkingMessageReceived)==null||D.call(N,J);Uo=G.reply;dK=$Y(1);cu=bN(1);var xo=new FV;var fl=new Uint8Array(kGR(J,gC(J,q5P,6))|0);xo=Gi(xo,5,q5P,_.j0(fl,!1));cu=_.Cp(cu,5,vM,xo);Uo.call(G,s4(dK,cu));return pl.return();
case 12:return pl.jumpTo(8);case 13:return pl.jumpTo(9);case 15:return pl.jumpTo(10);case 14:return pl.jumpTo(11);case 18:return pl.jumpTo(12);default:return pl.return()}pl.jumpTo(0);break;case 2:if(!_.BX(G.data,qA,5,Ik))return pl.return();dK=G.data;Uo=gC(dK,Ik,5);dK=dK.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=z6d(dK,dK[_.Ai]|0,qA,Uo)||qA[lPM]||(qA[lPM]=BKM(qA));Uo=_.CB(t,Qm,1,_.Vp());a=_.g(Uo);v=a.next();case 14:if(v.done){pl.jumpTo(16);break}I=v.value;Z=new _.cw;Z.level=_.gL(I,2)===
1?"WARNING":"ERROR";k=gxs(I.getSource());return pl.yield(m.sdkVersion.promise,17);case 17:z={source:k,sdkVersion:pl.yieldResult};_.Y5(_.ze(I,6))!=null?(Z.message=I.getMessage(),Z.stack=_.wL(I,5),z.sdkErrorType=O0V(_.gL(I,6)),_.Y5(_.ze(I,7))!=null&&(z.sdkApi=cEd(_.gL(I,7)))):Z.stack=void 0;f=X=void 0;(f=(X=m.callbacks).onError)==null||f.call(X,{loggingError:Z,metadata:z});v=a.next();pl.jumpTo(14);break;case 16:return pl.return();case 3:return _.IO(pl,18),Uo=pl.yield,dK=m.callbacks,cu=dK.onSave,xo=
_.Yi(G.data,CZR,4,Ik),xo=_.wL(xo,1),Uo.call(pl,cu.call(dK,xo),20);case 20:G.reply(DI6);_.IG(pl,19);break;case 18:return U=_.ye(pl),l=Y1,Ls=U,gd=m.callbacks,Qf="MINI_APP_SDK_API_SAVE_DATA",pl.yield(m.sdkVersion.promise,21);case 21:l(Ls,gd,Qf,pl.yieldResult),G.reply(Hy);case 19:return pl.yield(kL(m,"MINI_APP_SDK_API_SAVE_DATA"),22);case 22:return pl.return();case 4:return _.IO(pl,23),pl.yield(m.callbacks.onLoad(),25);case 25:JV=pl.yieldResult;Uo=G.reply;dK=$Y(1);cu=bN(1);xo=new CZR;xo=_.LB(xo,1,JV);
cu=_.Cp(cu,3,vM,xo);Uo.call(G,s4(dK,cu));_.IG(pl,24);break;case 23:return DF=_.ye(pl),kG=Y1,eo=DF,xG=m.callbacks,Ji="MINI_APP_SDK_API_LOAD_DATA",pl.yield(m.sdkVersion.promise,26);case 26:kG(eo,xG,Ji,pl.yieldResult),G.reply(Hy);case 24:return pl.yield(kL(m,"MINI_APP_SDK_API_LOAD_DATA"),27);case 27:return pl.return();case 5:_.IO(pl,28);m.callbacks.onSendHighScore(QN(_.Yi(G.data,TOo,3,Ik).getValue()));G.reply(s4($Y(1),bN(1)));_.IG(pl,29);break;case 28:return rK=_.ye(pl),So=Y1,ti=rK,bS=m.callbacks,NG=
"MINI_APP_SDK_API_SEND_SCORE",pl.yield(m.sdkVersion.promise,30);case 30:So(ti,bS,NG,pl.yieldResult),G.reply(Hy);case 29:return pl.yield(kL(m,"MINI_APP_SDK_API_SEND_SCORE"),31);case 31:return pl.return();case 6:if(!_.BX(G.data,mz4,8,Ik)){pl.jumpTo(32);break}Uo=pl.yield;dK=_.Yi(G.data,mz4,8,Ik);dK=_.gL(dK,1);return Uo.call(pl,kL(m,cEd(dK)),32);case 32:return pl.return();case 7:return Uo=G.reply,dK=$Y(1),cu=bN(1),xo=m.callbacks.getLanguage(),cu=Gi(cu,4,vM,sO(xo)),Uo.call(G,s4(dK,cu)),pl.yield(kL(m,"MINI_APP_SDK_API_GET_LANGUAGE"),
34);case 34:return pl.return();case 8:if(!_.BX(G.data,MmF,10,Ik))return pl.return();EO=_.Yi(G.data,MmF,10,Ik);gz=m.callbacks;ps=gz.onSdkPerformanceUpdate;return pl.yield(m.sdkVersion.promise,35);case 35:return ps.call(gz,EO,pl.yieldResult),pl.return();case 9:Uo=G.data;dK=gC(Uo,Ik,11);if(_.q6(_.ze(Uo,dK))==null)return G.reply(s4($Y(1),bN(2))),pl.return();ZF=co(G.data,11,Ik);m.callbacks.onShareInviteCode(ZF);G.reply(DI6);return pl.yield(kL(m,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),36);case 36:return pl.return();
case 10:if(!_.F("enable_open_yt_content"))return G.reply(Hy),pl.return();if(!_.BX(G.data,S5k,12,Ik))return G.reply(s4($Y(1),bN(2))),pl.return();Uo=_.Yi(G.data,S5k,12,Ik);DP=_.wL(Uo,1);m.callbacks.onOpenYTContent(DP);G.reply(DI6);return pl.yield(kL(m,"MINI_APP_SDK_API_OPEN_CONTENT"),37);case 37:return pl.return();case 11:if(_.BX(G.data,jaP,13,Ik)){pl.jumpTo(38);break}return pl.yield(m.callbacks.onShowMiniAppAd(2),39);case 39:return lS=pl.yieldResult,G.reply(s4($Y(1),fLB(lS))),pl.yield(kL(m,"MINI_APP_SDK_API_REQUEST_AD"),
40);case 40:return pl.return();case 38:Uo=_.Yi(G.data,jaP,13,Ik);a:switch(_.gL(Uo,1)){case 1:Uo={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:Uo={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Uo={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Eo=Uo;iq=Eo.adType;jy=Eo.sdkApi;Uo=pl.yield;dK=m.callbacks;cu=dK.onShowMiniAppAd;xo=_.Yi(G.data,jaP,13,Ik);xo=_.wL(xo,2);return Uo.call(pl,cu.call(dK,iq,xo||void 0),41);case 41:return T4=pl.yieldResult,
G.reply(s4($Y(1),fLB(T4))),pl.yield(kL(m,jy),42);case 42:return pl.return();case 12:_.IO(pl,43);Uo=m.callbacks;dK=Uo.onMakeIapPurchase;cu=_.Yi(G.data,zVG,16,Ik);cu=_.wL(cu,1);dK.call(Uo,cu);G.reply(s4($Y(1),bN(1)));_.IG(pl,44);break;case 43:return JD=_.ye(pl),S0=Y1,zG=JD,c2=m.callbacks,N6="MINI_APP_SDK_API_MAKE_IAP_PURCHASE",pl.yield(m.sdkVersion.promise,45);case 45:S0(zG,c2,N6,pl.yieldResult),G.reply(Hy);case 44:return pl.yield(kL(m,"MINI_APP_SDK_API_MAKE_IAP_PURCHASE"),46);case 46:return pl.return()}})})};
var jf=function(m,G){_.Y(function(K){m.channel.send(G);_.ey(K)})},rS=function(m,G,K){this.callbacks=m;
var W=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;m=hjs(G,(new URL(K.toString())).origin);this.gameSnacks=new kpG(m);this.gameSnacks.page.onReady(function(){W.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){W.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var L,A;(A=(L=W.callbacks).onGameReady)==null||A.call(L)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(L,A){try{W.callbacks.onSendHighScore(A)}catch(O){Y1(O,W.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(L,A){var O;return _.Y(function(c){if(c.nextAddress==1)return _.IO(c,2),c.yield(W.callbacks.onSave(W.decoder.decode(A)),4);if(c.nextAddress!=2)return _.IG(c,0);O=_.ye(c);Y1(O,W.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return c.return()})});
this.gameSnacks.storage.onLoad(function(){var L,A;return _.Y(function(O){if(O.nextAddress==1)return _.IO(O,2),O.yield(W.callbacks.onLoad(),4);if(O.nextAddress!=2)return L=O.yieldResult,O.return(W.encoder.encode(L));A=_.ye(O);Y1(A,W.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return O.return(W.encoder.encode(""))})});
this.gameSnacks.init()};
_.n(rS,IH);rS.prototype.onAudioToggled=function(m,G){IH.prototype.onAudioToggled.call(this,m,G===void 0?!0:G);var K;(K=this.gameSnacks)==null||K.audio.update(m)};
rS.prototype.onPause=function(){IH.prototype.onPause.call(this);var m;(m=this.gameSnacks)==null||m.game.pause()};
rS.prototype.onResume=function(){IH.prototype.onResume.call(this);var m;(m=this.gameSnacks)==null||m.game.resume()};var t46=Ykv,Fu6=_.P(function(m){var G=m.data;var K=m.loadingProgress;var W=m.forPaused;m=_.g(_.g_("",void 0,"LYYTdd"));var L=m.next().value,A=m.next().value;m=_.g(_.g_(!1,void 0,"K0waae"));var O=m.next().value,c=m.next().value,u=[],h=function(){return"transform: scaleX("+(_.EZ(K)||0)+")"},J=null,N=function(){return G()&&J!==null&&J!==void 0?J:J=G().showAnniversaryAnimation?6:t46()};
_.$O(function(){var v;if(G().timeOutMessages&&((v=G().timeOutMessages)==null?0:v.length)){J=null;v=_.g(u);for(var I=v.next();!I.done;I=v.next())clearTimeout(I.value);u.length=0;rEv(G().timeOutMessages,u,A,c)}},"BNu9j");
var D=function(){return!!G().persistentErrorMessageTitle},t=function(){return K!==void 0},a=function(){return G().title};
return _.r("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.r("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.r("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.r("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var v,I=(v=G().backgroundImage)==null?void 0:v.sources,Z;return(I==null?0:I.length)?"background-image: url("+((Z=I[0])==null?void 0:Z.url)+")":""}}),_.r("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.r(_.p,{cond:function(){return!D()&&!(W==null?0:W())},
then:function(){var v={};return _.r("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.r("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.r(_.yr,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+N()},
data:function(){var I="loading_animation_"+N();return{animationConfig:{name:I,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+I+".json",loop:!0,autoplay:!0}}}})),_.r("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.r(_.p,{cond:a,
then:function(){return _.r("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},a)}}),_.r("p",{class:_.VO("miniAppSplashScreenViewModelTimeoutMessage",(v.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return O()},v)),
"aria-live":"polite"},L),_.r(_.p,{cond:t,then:function(){return _.r("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.r("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:h}))}})))}}),_.r(_.p,{cond:D,
then:function(){return _.r("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.r("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return G().persistentErrorMessageTitle}),_.r(_.p,{cond:function(){return!!G().persistentErrorMessageDescription},
then:function(){return _.r("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return G().persistentErrorMessageDescription})}}))}}),_.r(_.p,{cond:W,
then:function(){return _.r("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.r("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.r("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},a))}})))},"Xf");var Qe6=new _.sX("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var a3O=xO;xO=function(m){function G(K){if(K){var W,L;(W=K.__spec)==null||(L=W.didUnmount)==null||L.call(W);for(W=0;W<K.childNodes.length;W++)G(K.childNodes[W])}}
a3O==null||a3O(m);W8(function(){for(var K=0;K<m.length;K++)G(m[K])})};var ooq=_.P(function(m){var G=m.data;var K=m.score;var W=m.formattedScore;var L=m.onScoreChanged;var A=m.isEmbeddedInWebview;var O=_.aP("yt-mini-app-score-button-view-model"),c=function(){var t;return _.Q(G==null?void 0:(t=G())==null?void 0:t.buttonViewModel,_.J6)},u=function(){var t;
return(K==null?void 0:K())||Number(G==null?void 0:(t=G())==null?void 0:t.lastScore)||0},h=function(){var t;
return(W==null?void 0:W())||((t=c())==null?void 0:t.title)||""},J,N=1;
if(m=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))m=Number(m),N=isNaN(m)?1:m/100;_.$O(function(){L==null||L(u());var t;var a=_.c8((t=c())==null?void 0:t.onTap);if(a){t=_.Q(a,ojo);var v,I,Z;t=_.Q(t==null?void 0:(v=t.panelLoadingStrategy)==null?void 0:(I=v.inlineContent)==null?void 0:(Z=I.dialogViewModel)==null?void 0:Z.customContent,ZUK)}else t=void 0;if(v=t)v.score=h()},"Aekez");
m=_.dn(function(){var t,a,v=G==null?void 0:(t=G())==null?void 0:(a=t.loggingDirectives)==null?void 0:a.trackingParams;v&&_.xq(_.xS().resolve(_.m_),v);return!1});
_.bX(function(){if(O.value){var t=O.value.querySelector("button"),a=c();t&&a&&h8G(t,a);_.P$("yt-share-playable-with-high-score",function(){var v=u().toString(),I=G==null?void 0:G().onShareHighScoreCommand,Z=G==null?void 0:G().highScoreShareClientParamIdentifier,k=A==null?void 0:A();I&&(k?(Z=new cSk,v=_.LB(Z,2,v),cY(I,v.JSC$12839_serializeBinary())):Z&&(_.xS().resolve(Qe6).clientParams.set(Z,{miniAppClientParams:{highScore:v}}),UYP(I,!1)))})}});
var D=function(){var t=c();t&&(K==null?0:K())&&t.accessibilityText&&(t.accessibilityText=t.accessibilityText.replace(J,h()));J=h();return{numberValue:u(),numberText:h(),heightPx:36,fontSizeMultiplier:N,shouldAnimate:!(K==null||!K())&&!0}};
return _.r("yt-mini-app-score-button-view-model",{class:function(){var t={};return _.KQ("miniAppScoreButtonViewModelHost",(t.miniAppScoreButtonViewModelIsVisible=u()!==0,t))},
el:O,"on:click":m},NWP(!1,function(){return _.r("span",{style:"display:none;"},u)}),_.r(_.z$,{data:function(){var t;
return G==null?void 0:(t=G())==null?void 0:t.buttonViewModel}},{buttonViewModel:function(t){return _.r(_.kP,{data:t.data,
animatedTextProps:D})}}))},"Zf");var se6=_.P(function(m){var G,K=(G=_.Gh("yt-mini-app-is-theater-mode-enabled"))!=null?G:!1,W=_.F("enable_playable_container_save_button"),L=_.F("enable_play_next_destination_page_in_toolbar");G={};return _.r("ytm-mini-app-top-bar-view-model",null,_.r("div",{class:_.VO("yt-mini-app-top-bar-view-model",(G["yt-mini-app-top-bar-view-model--mobile"]=!1,G["yt-mini-app-top-bar-view-model--desktop"]=!0,G))},_.r("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.r(_.p,{cond:function(){var A;return!!m.data().backButtonEdu&&
!((A=m.isExitMiniAppSeen)==null?0:A.call(m))},
then:function(){return _.r(_.z$,{data:function(){return m.data().backButtonEdu}},{buttonViewModel:_.kP})},
else:function(){return _.r(_.z$,{data:function(){return m.data().backButton}},{buttonViewModel:_.kP})}}),_.r(_.p,{cond:function(){return m.data().viewAllButton&&!0},
then:function(){return _.r(_.z$,{data:function(){return m.data().viewAllButton}},{buttonViewModel:_.kP})}}),_.r(_.p,{cond:function(){return m.data().title&&!0},
then:function(){return _.r("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return m.data().title})}})),_.r("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.r(_.p,{cond:function(){var A;
return(A=m.isDesktopPlayPage)==null?void 0:A.call(m)},
then:function(){return _.r(_.zL,null,_.r(noz,{highScoreButton:function(){return m.data().highScoreButton},
score:m.score,formattedScore:m.formattedScore,onScoreChanged:m.onScoreChanged,isEmbeddedInWebview:m.isEmbeddedInWebview}),_.r(bp6,{enableSaveButton:function(){return _.EZ(W)},
saveButton:function(){return m.data().saveButton},
isSaved:m.isSaved,onSaveToggled:function(){return m.onSaveToggled}}),_.r(voi,{menuButton:function(){return m.data().menuButton}}))},
else:function(){return _.r(_.p,{cond:function(){return!1},
then:function(){return _.r(_.z$,{data:function(){return m.data().playPageButton}},{buttonViewModel:function(A){return _.r(_.kP,{data:A.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.r(noz,{highScoreButton:function(){return m.data().highScoreButton},
score:m.score,formattedScore:m.formattedScore,onScoreChanged:m.onScoreChanged,isEmbeddedInWebview:m.isEmbeddedInWebview})}})}})),_.r("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.r(_.z$,{data:function(){return m.data().muteButton}},{toggleButtonViewModel:function(A){var O=A.data;
return _.r(_.Gx,{data:function(){var c,u;return Object.assign({},O(),{isToggled:(u=(c=m.isAudioEnabled)==null?void 0:c.call(m))!=null?u:!0})},
onToggle:m.onAudioToggled,useOutlinedIcon:!0})}}),_.r(_.z$,{data:function(){return m.data().theatreModeButton}},{toggleButtonViewModel:function(A){var O=A.data;
return _.r("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.r(_.Gx,{data:function(){return Object.assign({},O(),{isToggled:K})},
useOutlinedIcon:!0}))}}),_.r($I6,{fullscreenButton:function(){return m.data().fullscreenButton}}),_.r(_.p,{cond:function(){return _.EZ(L)&&m.data().viewAllButton&&!1},
then:function(){return _.r(_.z$,{data:function(){return m.data().viewAllButton}},{buttonViewModel:_.kP})}}),_.r(_.p,{cond:function(){var A;
return!((A=m.isDesktopPlayPage)==null?0:A.call(m))},
then:function(){return _.r(_.zL,null,_.r(bp6,{enableSaveButton:function(){return _.EZ(W)},
saveButton:function(){return m.data().saveButton},
isSaved:m.isSaved,onSaveToggled:function(){return m.onSaveToggled}}),_.r(voi,{menuButton:function(){return m.data().menuButton}}))}}))))},"$f");
se6.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var voi=_.P(function(m){return _.r(_.z$,{data:m.menuButton},{buttonViewModel:_.kP})},"ag"),bp6=_.P(function(m){var G=m.enableSaveButton;
var K=m.saveButton;var W=m.isSaved;var L=m.onSaveToggled;return _.r(_.p,{cond:function(){return G()&&!(K==null||!K())},
then:function(){return _.r(_.z$,{data:function(){var A=_.Q(K==null?void 0:K(),_.Dj),O;return{toggleButtonViewModel:Object.assign({},A,{isToggled:(O=W==null?void 0:W())!=null?O:!(A==null||!A.isToggled)})}}},{toggleButtonViewModel:function(A){return _.r(_.Gx,{data:A.data,
onToggle:L})}})}})},"bg"),noz=_.P(function(m){var G=m.highScoreButton;
var K=m.score;var W=m.formattedScore;var L=m.onScoreChanged;var A=m.isEmbeddedInWebview;return _.r(_.z$,{data:G},{miniAppScoreButtonViewModel:function(O){return _.r(ooq,{data:O.data,score:K,formattedScore:W,onScoreChanged:L,isEmbeddedInWebview:A})}})},"cg"),$I6=_.P(function(m){m=m.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.r(_.zL,null):_.r(_.z$,{data:m},{buttonViewModel:_.kP})},"dg");_.qe6=_.P(function(m){var G=m.data;var K=m.extractOverlay;m={};return _.r("player-disclosure-view-model",{class:_.VO("ytwPlayerDisclosureViewModelHost",(m.ytwPlayerDisclosureViewModelExtractOverlay=function(){return K==null?void 0:K()},m))},_.r(_.qm,{command:function(){return G().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.r(_.p,{cond:function(){return G().iconName},
then:function(W){return _.r(_.fN,{icon:W})}}),_.r(_.p,{cond:function(){return G().iconName?void 0:G().image},
then:function(W){return _.r(_.oC,{data:W,alt:function(){return G().title||""},
className:"ytwPlayerDisclosureViewModelImage"})}}),_.r(_.p,{cond:function(){return G().title||G().secondaryText},
then:function(){return _.r("div",null,_.r("div",{class:"ytwPlayerDisclosureViewModelTitle"},function(){return G().title}),_.r("div",{class:"ytwPlayerDisclosureViewModelText"},function(){return G().text}),_.r(_.p,{cond:function(){return G().secondaryText},
then:function(W){return _.r(_.zL,null,_.r("div",{class:"ytwPlayerDisclosureViewModelDivider"}),_.r("div",{class:"ytwPlayerDisclosureViewModelText"},W))}}))},
else:function(){return _.r("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return G().text})}}),_.r(_.p,{cond:function(){return G().showEndChevron},
then:function(){return _.r(_.fN,{icon:"CHEVRON_RIGHT"})}})))},"eg");_.Eo6=new _.sX("DESKTOP_CURRENT_PAGE");var V46=_.P(function(m){var G=m.data;var K=_.F("force_active_time_logging_webview"),W=!1,L=new Lu6,A=void 0,O=void 0,c=_.xS().resolve(Wuu),u=new BzD,h=void 0,J=void 0,N=[],D=void 0,t=void 0,a=!1,v=!1,I=!1,Z=!1,k=new _.yY,z=_.xS().resolve(Qe6),X=_.xS().resolve(_.vy),f=_.xS().resolve(_.fn(ln)),U,l=(U=_.xS().resolve(_.fn(_.Eo6)))==null?void 0:U.getCurrentPage(),Ls=!1,gd=0,Qf=function(iS){iS.preventDefault();return iS.returnValue=""},JV,DF=_.g(_.g_(!((JV=_.Gh("yt-mini-app-is-audio-enabled"))!=null&&!JV),
void 0,"y7Nkqd")),kG=DF.next().value,eo=DF.next().value,xG,Ji=_.g(_.g_(!((xG=_.Gh("exit-mini-app-seen-state"))==null||!xG),void 0,"ZP6Oxc")),rK=Ji.next().value,So=Ji.next().value,ti=_.g(_.g_(!1,void 0,"BCKP1c")),bS=ti.next().value,NG=ti.next().value,EO=_.g(_.g_(void 0,void 0,"bswUUd")),gz=EO.next().value,ps=EO.next().value,ZF=_.g(_.g_(void 0,void 0,"sXcJfc")),DP=ZF.next().value,lS=ZF.next().value,Eo=_.g(_.g_(!0,void 0,"DDj4gb")),iq=Eo.next().value,jy=Eo.next().value,T4=_.g(_.g_(!1,void 0,"qXUljf")),
JD=T4.next().value,S0=T4.next().value,zG=_.g(_.g_(!1,void 0,"XqvjOc")),c2=zG.next().value,N6=zG.next().value,pl=_.g(_.g_(void 0,void 0,"S1uX2")),Uo=pl.next().value,dK=pl.next().value,cu=_.g(_.g_(0,void 0,"CGS0ze")),xo=cu.next().value,fl=cu.next().value,Qi=_.Q3("mini-app-container-view-model"),ig=_.g(_.g_(!1,void 0,"AVpgJ")),gx=ig.next().value,xl=ig.next().value,xr=function(){return G().isEmbeddedInWebview},Gf=function(){return G().hasPlayNextShelf};
_.nn(function(){var iS,D6=(iS=_.Q(G().contentDisclosure,Gxl))==null?void 0:iS.animationParams;if((D6==null?0:D6.shouldHide)&&(D6==null?0:D6.hideDelaySecs)){var CP=setTimeout(function(){xl(!0)},D6.hideDelaySecs*1E3);
_.sZ(function(){clearTimeout(CP)})}});
_.P$("yt-page-type-changed",function(iS){if(_.F("enable_is_mini_app_page_active_bugfix"))iS.detail.newPageSubtype==="mini_app"&&iS.detail.newPageType==="ytd-browse"||!iq()||Td();else if(iS=_.bk()==="mini_app",iS!==iq())if(jy(iS),iS){var D6;iS=(D6=G().playableId)==null?void 0:D6.toString();iS!==void 0&&window.location.href.includes(iS)&&!v&&(Z=!0,X6(),b9.value&&b1(b9.value))}else iS||Td()});
_.P$("yt-action",function(iS){iS.detail.actionName==="yt-engagement-panel-visible-changed"&&iS.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&iS.detail.args[2]==="PAmini_app_panel"&&Td();_.F("enable_is_mini_app_page_active_bugfix")?iS.detail.actionName==="yt-history-load"&&!iq()&&(l==null?0:l.active)?(jy(!0),X6(),b9.value&&b1(b9.value)):iS.detail.actionName==="yt-history-load"&&iq()&&!G().isEmbeddedInWebview&&QX():iq()&&iS.detail.actionName==="yt-history-load"&&(Z?Z=!1:G().isEmbeddedInWebview||
QX())});
_.sZ(function(){ht()});
_.$O(function(){X6()},"Jr1tnc");
var X6=function(){var iS=G().playableId,D6=G().localReleaseId,CP=G().derivedDeviceInterface;if(v)_.nc(new _.cw("[MiniAppContainerViewModel] onEnter was called more than once"));else{v=!0;A=new d6z(iS,D6,CP,document.visibilityState==="visible");f6E(A);O=new cCD(iS);HpD(c,iS);MWO(u,{showMiniAppAdCommand:G().showMiniAppAdCommand,isEmbeddedInWebview:G().isEmbeddedInWebview,playLogger:A});t8P()&&(t=document.body.style.backgroundColor,_.Fo(document.body,"background-color","black"));U1();vH();k=new _.yY;
if(G().isEmbeddedInWebview){if(iS=(new URLSearchParams(window.location.search)).get("postPlayNonce"))yDP(A,iS),Ls=!0;L.initialize({onAudioStateLoaded:function(lq){l6(lq)},
onMuteMiniApp:function(){l6(!1)},
onUnmuteMiniApp:function(){l6(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(lq){Ls||(yDP(A,lq),Ls=!0)},
confirmExitMiniApp:function(){var lq,Pz,xy;return _.Y(function(UJ){if(UJ.nextAddress==1)return G().confirmExitMiniAppCommand?UJ.yield(Promise.race([k.promise,Promise.resolve(!1)]),2):UJ.return();(lq=UJ.yieldResult)?!G().confirmExitMiniAppCommandEdu||(xy=(Pz=rK)==null?void 0:Pz())!=null&&xy?Ti(G().confirmExitMiniAppCommand):(Ti(G().confirmExitMiniAppCommandEdu),_.i0("exit-mini-app-seen-state","true",2592E6)):Ti(G().closeMiniAppCommand);_.ey(UJ)})},
onNativeBenchmarkingMessageReceived:function(lq){lq=HbC(_.fFd(lq));if(_.BX(lq,_.gS,3,sai)){var Pz=_.Yi(lq,_.gS,3,sai),xy=zWF();var UJ=QN(xy.getSeconds())-QN(Pz.getSeconds());Pz=_.Z5(xy,2)-_.Z5(Pz,2);UJ<0&&Pz>0?(UJ+=1,Pz-=1E9):UJ>0&&Pz<0&&(--UJ,Pz+=1E9);UJ=(new qN).setSeconds(UJ);UJ=_.AC(UJ,2,_.rz(Pz),0);_.ko(lq,1,UJ)}var fW;(fW=J)==null||fW.returnNativeBenchmarkingMessage(lq)},
multiplayer3pAckStateLoaded:function(lq){QX(lq)},
exitMiniAppSeenStateLoaded:function(lq){G().confirmExitMiniAppCommandEdu&&So(lq)},
onNavigateToNewMiniApp:function(){Ti(G().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(lq){lq=new URLSearchParams(lq);var Pz=void 0;lq.has("invite_code")&&(Pz=new d3X,lq=lq.get("invite_code"),Pz=_.LB(Pz,1,lq));if(lq=Pz){var xy;(xy=J)==null||xy.sendGameData(lq)}},
onPauseMiniApp:function(){W=!0;sd()},
onResumeMiniApp:function(){W=!0;dd()},
onPausePlayableDialog:function(){I=!0;sd()},
onResumePlayableDialog:function(){I=!1;dd()},
onAdFinished:function(lq){u.onAdFinished(lq)}});
G().showMultiplayer3pConsentDialogCommand||k.resolve(!0);Ti(G().onContainerReadyCommand)}else yDP(A),k.resolve(!0),G().runAttestationCommand&&PqE(A).then(function(lq){var Pz=_.Q(SCo(G().runAttestationCommand),_.qXC);Pz&&Pz.ids&&(Pz.ids.push({postPlayNonce:lq}),Ti(G().runAttestationCommand))});
YeD(O,PqE(A));PqE(A).then(function(lq){lq={miniAppPlayData:{postPlayNonce:lq}};var Pz,xy=(Pz=G().loggingDirectives)==null?void 0:Pz.trackingParams;xy&&_.l1().stateChanged(xy,lq)});
iS=G().showSignInDialogCommand;!mvf()&&iS&&(_.i0("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Ti(iS));G().confirmExitMiniAppCommand&&f&&(iS=SCo(G().confirmExitMiniAppCommand))&&(f.customConfirmationCommand=iS)}},ht=function(){t&&_.Fo(document.body,"background-color",t);
a=!1;D&&D.release();O.flush().catch(function(iS){_.nc(iS)});
c.flush().catch(function(iS){_.nc(iS)});
Xui(A);WF();J=void 0;I3z(z)},Td=function(){jy(!1);
ht();NG(!1);dK(void 0);ps(void 0);lS(void 0);gd=0;fl(0);v=!1},sd=function(){var iS;
(iS=J)==null||iS.onPause();D&&D.release();O.flush().catch(function(D6){_.nc(D6)});
c.flush().catch(function(D6){_.nc(D6)});
x6O(A);S0(!0)},dd=function(){var iS;
(iS=J)==null||iS.onResume();vH();iS=A;iS.isForeground=!0;s$(iS,"PLAY_EVENT_TYPE_PLAY_RESUME");S0(!1)},l6=function(iS){var D6;
(D6=J)==null||D6.onAudioToggled(iS);eo(iS)},QX=function(iS){G().showMultiplayer3pConsentDialogCommand&&(G().isEmbeddedInWebview&&iS!==void 0&&k.resolve(iS),!iS&&_.bk()==="mini_app"&&Ti(G().showMultiplayer3pConsentDialogCommand))},$5=function(){var iS,D6,CP,lq;
return _.Y(function(Pz){if(Pz.nextAddress==1){!G().isLivestream||G().disableVideoCapture||(iS=J)!=null&&iS.sendStartGameFrameCapture();D6=(new URL(window.location.href)).searchParams;if(D6.has("invite_code")){var xy=new d3X,UJ=D6.get("invite_code");CP=_.LB(xy,1,UJ);(lq=J)==null||lq.sendGameData(CP)}bS()||(NG(!0),xy=A,xy.state!==1?_.nc(new _.cw("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+VWq[xy.state])):(_.lX("mini_app_ids_without_game_ready").includes(xy.JSC$17400_miniAppId)&&(xy.gameReady=
!0),xy.state=2,xy.beforeReady=!1,$L(xy,"ma_ffr"),s$(xy,"PLAY_EVENT_TYPE_PLAY_READY")));return Pz.yield(k.promise,2)}Ti(G().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();G().isEmbeddedInWebview||QX();_.ey(Pz)})},Ee=function(){var iS=A;
iS.gameReady=!0;$L(iS,"ma_gr")},Is=function(iS){var D6;
return _.Y(function(CP){if(CP.nextAddress==1)return _.IO(CP,2),CP.yield(uO5(O,iS),4);if(CP.nextAddress!=2)return _.IG(CP,0);D6=_.ye(CP);Ti(G().showSavingErrorPopupCommand);throw D6;})},$k=function(){var iS,D6;
return _.Y(function(CP){if(CP.nextAddress==1)return _.IO(CP,2),CP.yield(rCD(O),4);if(CP.nextAddress!=2)return iS=CP.yieldResult,CP.return(iS);D6=_.ye(CP);Ti(G().showLoadingErrorDialogCommand);throw D6;})},v2=function(iS){A.logError(iS)},XE=function(iS,D6,CP){R6q(A,iS,D6,CP)},Oe=function(iS,D6){z6O(A,iS,D6)},FR=function(){!K&&G().isEmbeddedInWebview||_.x3();
SO5(A,!0);a||(window.addEventListener("beforeunload",Qf,{capture:!0}),a=!0)},C6=function(iS){var D6,CP,lq,Pz,xy,UJ,fW;
return _.Y(function(Na){if(Na.nextAddress==1)return c&&(!h||h<iS)&&iS>0?Na.yield(jeq(c,iS),3):Na.jumpTo(0);D6=Na.yieldResult;CP=_.g(D6);lq=CP.next().value;Pz=CP.next().value;xy=lq;UJ=Pz;((fW=xy)==null?0:fW.displayString)&&UJ&&(ps(UJ),lS(xy.displayString));_.ey(Na)})},yp=function(iS){var D6=G().onBenchmarkingMessageReceivedCommand;
if(D6){var CP=zWF();_.Cp(iS,3,sai,CP);cY(D6,ILG(iS))}},XO=function(){var iS=G().iapPurchaseCommand;
iS&&cY(iS)},JI=function(iS){var D6=G().onGameFrameReceivedCommand;
if(D6){var CP=new Gj;var lq=new IpF;var Pz=Lg(iS,1);lq=_.c$(lq,1,Pz);iS=_.wL(iS,2);iS=_.LB(lq,2,iS);CP=_.ko(CP,2,iS);cY(D6,VP0(CP))}},KL=function(iS){var D6=G().onGameAudioDataReceivedCommand;
if(D6){var CP=new Gj;var lq=new kcR;iS=_.wL(iS,1);lq=_.LB(lq,1,iS);CP=_.ko(CP,4,lq);cY(D6,VP0(CP))}},$S=function(){var iS=new URLSearchParams(window.location.search);
if(G().isEmbeddedInWebview&&iS&&iS.get("override_hl")==="true"&&iS.get("hl"))return iS.get("hl");iS=document.documentElement.lang;return iS!==""?iS:N_},TI=function(iS){var D6=G().onShareInviteCodeCommand;
if(D6)if(G().isEmbeddedInWebview){var CP=new cSk;iS=_.LB(CP,1,iS);cY(D6,rSR(iS))}else CP=G().inviteCodeShareClientParamIdentifier,z.clientParams.set(CP,{miniAppClientParams:{inviteCode:iS}}),Ti(D6)},bW=function(iS){var D6,CP,lq;
return _.Y(function(Pz){if(Pz.nextAddress==1)return D6=G().onMiniAppOpenYtContentRequested,c&&_.F("enable_open_yt_content")&&D6?Pz.yield(k7z(c,iS),3):Pz.jumpTo(0);CP=Pz.yieldResult;if(CP==="OK")if(G().isEmbeddedInWebview){var xy=new sko;lq=Gi(xy,2,iu,sO(iS));cY(D6,HUi(lq))}else X.clientData.set("video_id",iS),Ti(D6);_.ey(Pz)})},Rn=function(iS){gd+=_.Z5(iS,3);
iS=Math.min(Math.log(1+gd/15E6*9)/Math.log(10),.99);fl(iS);$3(iS)},$3=_.AY(function(iS){var D6=G().updateLoadingProgressCommand;
if(D6){var CP=new sko;iS=Gi(CP,3,iu,_.KP(iS));cY(D6,HUi(iS))}},100),K$=function(iS,D6){switch(iS){case 1:return mIG(u);
case 2:return ipz(u);case 3:return Kui(u,D6);default:return Promise.reject(Error("fi"))}},vH=function(){var iS,D6;
((iS=_.EnG())==null?void 0:(D6=iS.wakeLock)==null?void 0:D6.request)!=null&&_.EnG().wakeLock.request("screen").then(function(CP){D=CP}).catch(function(){})},b9=_.aP("iframe");
_.$O(function(){G().isSupportedCountry&&(mvf()||_.F("enable_sign_in_promo")||!G().showSignInDialogCommand?b9.value&&b1(b9.value):Ti(G().onMiniAppReadyCommand))},"I8Fvz");
var RS=function(){return _.r("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return bS()?0:-1},
title:function(){return G().title},
el:b9})},b1=function(iS,D6){D6=D6===void 0?!1:D6;
var CP=vL();if(CP&&(D6||CP.toString()!==iS.getAttribute("src"))){J=wIF(G().source,{isAudioEnabled:kG,onFirstFrameReady:$5,onGameReady:Ee,onSave:Is,onLoad:$k,onError:v2,onSdkCalled:XE,onSdkPerformanceUpdate:Oe,onClick:FR,onSendHighScore:C6,onBenchmarkingMessageReceived:yp,getLanguage:$S,onShareInviteCode:TI,onResourceLoaded:Rn,onOpenYTContent:bW,onShowMiniAppAd:K$,onGameFrameReceived:JI,onGameAudioReceived:KL,onMakeIapPurchase:XO},iS,CP);JO(iS,"load",function(){$L(A,"ma_il");JO(iS,"load",function(){b1(iS,
!0)})});
var lq=_.U8("mini_app_container_iframe_src_update_delay_ms");G().isEmbeddedInWebview&&!D6&&lq>0?MQd(iS,CP,lq):_.w5(iS,CP)}},vL=function(){var iS=G().url;
if(iS&&(iS=_.Ql(iS),iS!==null)){if(G().source&&G().source==="MINI_APP_SOURCE_GAMESNACKS")iS=_.$y(iS,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.F("enable_origin_query_parameter_bugfix")){var D6=_.yu(_.RLs(iS.toString()));D6=new URLSearchParams(D6||"");D6.set("origin",window.location.origin);D6=D6.toString();iS=_.yG(iS).toString();iS=_.PN(OBB.exec(iS)[0]+(D6.trim()?"#"+D6:""))}return iS}},i_=function(){var iS={};
iS=_.VO("yt-mini-app-container-view-model__loading-screen",(iS["yt-mini-app-container-view-model__loading-screen--fade-out"]=bS,iS));var D6=function(){return bS()?1:xo()};
return _.r("div",{class:iS},_.r(_.z$,{data:function(){return G().splashScreen}},{miniAppSplashScreenViewModel:function(CP){return _.r(Fu6,{data:CP.data,
loadingProgress:D6})}}))},RB=function(){var iS={};
return _.r("div",{class:_.VO("yt-mini-app-container-view-model__pause-interstitial",(iS["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!JD()},iS["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=JD,iS))},_.r(_.z$,{data:function(){return G().splashScreen}},{miniAppSplashScreenViewModel:function(D6){return _.r(Fu6,{data:D6.data,
forPaused:!0})}}))},U1=function(){N=[];
N.push(_.oi(window,"visibilitychange",function(){I||W&&xr()||(document.visibilityState==="visible"?dd():sd())}));
N.push(_.oi(window,"pagehide",function(){ht()}));
N.push(_.oi(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Qi.value.dispatchEvent(new Event("tap"))},0)}));
N.push(_.oi(Qi.value,"pointerdown",function(){SO5(A,!1)},!0));
N.push(_.oi(Qi.value,"pause",function(){I=!0;sd()}));
N.push(_.oi(Qi.value,"play",function(){I=!1;dd()}));
N.push(_.oi(Qi.value,"exit",function(){ht()}));
var iS=navigator.keyboard,D6=iS&&iS.lock;N.push(_.oi(window,VAC,function(){N6(RTP());RTP()?(G().hasPlayNextShelf&&UH("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Ua("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),D6&&iS.lock(["Escape"])):(G().hasPlayNextShelf&&Ua("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),UH("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),D6&&iS.unlock())}));
G().showMultiplayer3pConsentDialogCommand&&N.push(_.oi(window,"yt-playables-ack-3p-data-usage",function(){CgP(c)}));
G().confirmExitMiniAppCommandEdu&&N.push(_.oi(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.i0("exit-mini-app-seen-state","true",2592E6)}));
G().onGameAudioDataReceivedCommand&&N.push(_.oi(window,"message",function(CP){CP=CP.event_;var lq,Pz=(lq=b9.value)==null?void 0:lq.src;if(Pz&&CP.origin===(new URL(Pz)).origin&&CP.data&&CP.data.type==="GAME_AUDIO"&&CP.data.audio&&CP.data.audio.length>0)if(_.F("enable_sending_unwrapped_game_audio_as_serialized_metadata"))B4o(G().onGameAudioDataReceivedCommand,CP.data.audio);else{var xy=new FileReader;xy.onload=function(){var UJ=new Gj;var fW=new kcR;fW=_.LB(fW,1,xy.result);UJ=_.ko(UJ,4,fW);cY(G().onGameAudioDataReceivedCommand,
VP0(UJ))};
xy.readAsDataURL(new Blob([CP.data.audio]))}}))},WF=function(){N.forEach(function(iS){Tg(iS)});
window.removeEventListener("beforeunload",Qf,{capture:!0})},Ti=function(iS){iS&&UYP(iS,G().isEmbeddedInWebview||!1)},Ua=function(iS,D6){iS=_.g(Qi.value.getElementsByClassName(iS));
for(var CP=iS.next();!CP.done;CP=iS.next())CP.value.classList.add(D6)},UH=function(iS,D6){iS=_.g(Qi.value.getElementsByClassName(iS));
for(var CP=iS.next();!CP.done;CP=iS.next())CP.value.classList.remove(D6)};
return function(){var iS={};iS=_.VO("yt-mini-app-container-view-model",(iS["yt-mini-app-container-view-model--desktop"]=!0,iS["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iS["yt-mini-app-container-view-model--ios-web-view"]=t8P(),iS["yt-mini-app-container-view-model--no-top-bar"]=function(){return!G().topBar},iS["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return G().hasPlayNextShelf},iS["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return G().hasPlayNextShelf},iS["yt-mini-app-container-view-model--show-peek-below"]=function(){return!c2()&&G().hasPlayNextShelf},iS));
var D6={};D6=_.VO("yt-mini-app-container-view-model__content",(D6["yt-mini-app-container-view-model__content--desktop-content"]=!0,D6["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return G().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},D6["yt-mini-app-container-view-model--desktop-play-page"]=function(){return G().hasPlayNextShelf},D6));
return _.r("mini-app-container-view-model",{el:Qi},_.r("div",{class:iS},_.r(_.p,{cond:function(){return G().topBar&&!c2()},
then:function(){return _.r(_.z$,{data:function(){return G().topBar}},{miniAppTopBarViewModel:function(CP){return _.r(se6,{data:CP.data,
isAudioEnabled:kG,onAudioToggled:function(lq){l6(lq)},
score:gz,formattedScore:DP,onScoreChanged:function(lq){h=lq},
isEmbeddedInWebview:xr,isSaved:Uo,onSaveToggled:function(lq){dK(lq)},
isExitMiniAppSeen:rK,isDesktopPlayPage:Gf})}})}}),_.r("div",{class:D6},_.r(_.p,{cond:iq,
then:function(){return RS()}}),_.r(_.p,{cond:function(){return G().isLivestream},
then:function(){return RB()}}),_.r(_.p,{cond:function(){return!G().isEmbeddedInWebview},
then:function(){return i_()}}),_.r(_.z$,{data:function(){return G().contentDisclosure}},{playerDisclosureViewModel:function(CP){CP=CP.data;
var lq={};return _.r("div",{class:_.VO("yt-mini-app-container-view-model__content-disclosure-overlay",(lq["yt-mini-app-container-view-model__content-disclosure-overlay--hidden"]=gx,lq))},_.r(_.qe6,{data:CP}))}}))))}()},"ig");
V46.idomCompat=!0;_.sh(V46,"mini-app-container-view-model",{props:{data:_.Dd}});var ZpP=_.P(function(m){var G=m.data;return _.r("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.r("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.dn(function(){var K=G().onTap;K&&_.h$(K)})},_.r(_.p,{cond:function(){return G().icon},
then:function(K){return _.r(_.fN,{icon:function(){return K().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.r("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return G().title})))},"jg");
ZpP.idomCompat=!0;var dIq=_.P(function(m){var G=_.Q3("div"),K=_.g(_.g_(void 0,void 0,"dg3xff")),W=K.next().value,L=K.next().value;K=_.g(_.g_(void 0,void 0,"AgHNfc"));var A=K.next().value,O=K.next().value;K=_.g(_.g_(void 0,void 0,"fuTKCc"));var c=K.next().value,u=K.next().value,h=function(){var Z=W();return Z!==void 0?Math.abs(Z):void 0},J=function(){var Z=h();
return Z===void 0||Z<=3},N=function(){var Z=h();
var k=A(),z=c();Z=Z!==void 0&&k!==void 0&&z!==void 0?k-z-Z:void 0;return Z===void 0||Z<=3},D=function(Z){G.value&&G.value.scrollBy({top:0,
left:(_.E8("HTML_DIR")==="rtl"?-1:1)*Z*G.value.clientWidth,behavior:"smooth"})},t=function(){var Z;
L((Z=G.value)==null?void 0:Z.scrollLeft);var k;O((k=G.value)==null?void 0:k.scrollWidth);var z;u((z=G.value)==null?void 0:z.clientWidth)},a=function(){D(-.5)},v=function(){D(.5)};
K=_.dn(function(){t()});
_.nn(function(){t();if(G.value&&window.ResizeObserver){var Z=new ResizeObserver(t);Z.observe(G.value);_.sZ(function(){Z.disconnect()})}});
var I={};return _.r("yt-sponsorships-scrollable-shelf",{class:_.VO("ytdSponsorshipsScrollableShelfHost",m.className)},_.r("div",{class:_.VO("ytdSponsorshipsScrollableShelfContent",(I.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return m.data().previousButton&&m.data().nextButton&&!J()&&!N()},I.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return m.data().previousButton&&!J()&&N()},I.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return m.data().nextButton&&
J()&&!N()},I)),
el:G,"on:scroll":K},m.children),_.r(_.p,{cond:function(){return!J()},
then:function(){return _.r(_.z$,{data:function(){return m.data().previousButton}},{buttonViewModel:function(Z){return _.r(_.kP,{data:Z.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:a})}})}}),_.r(_.p,{cond:function(){return!N()},
then:function(){return _.r(_.z$,{data:function(){return m.data().nextButton}},{buttonViewModel:function(Z){return _.r(_.kP,{data:Z.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:v})}})}}))},"lg");
dIq.idomCompat=!0;var yCE=_.P(function(m){var G=m.data;m={};return _.r("yt-sponsorships-hub",{class:_.VO("ytdSponsorshipsHubHost",(m.ytdSponsorshipsHubHostIndented=function(){return G().indented},m))},_.r("div",{class:"ytdSponsorshipsHubHeader"},_.r("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.r("div",{class:"ytdSponsorshipsHubAvatar"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9})),_.r(_.p,{cond:function(){return G().badgeImage},
then:function(K){return _.r("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.r("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.r("div",{class:"ytdSponsorshipsHubBadge"},_.r(_.oC,{data:K,targetWidth:24,targetHeight:24,alt:""}))))}})),_.r("div",{class:"ytdSponsorshipsHubDetails"},_.r("div",{class:"ytdSponsorshipsHubTierName"},function(){return G().tierName}),_.r("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return G().membershipType}),_.r("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return G().membershipDurationOrExpiry})),_.r("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.r(_.z$,{data:function(){return G().manageButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.r(_.z$,{data:function(){return G().actionMenuButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.r("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return G().perksTitle}),_.r(dIq,{data:function(){return{previousButton:G().previousPerkButton,
nextButton:G().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.r("div",{class:"ytdSponsorshipsHubPerkCards"},_.r(_.z$,{data:function(){return G().perkCards}},{sponsorshipsHubPerkCardViewModel:ZpP}),_.r(_.p,{cond:function(){return G().viewAllPerksButton},
then:function(K){return _.r(Pgq,{data:K})}}))))},"mg");
yCE.idomCompat=!0;var Pgq=_.P(function(m){var G=m.data;return _.r("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.r(_.z$,{data:function(){return G().button}},{buttonViewModel:_.kP}),_.r("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.r("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return G().title}),_.r("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return G().subtitle})))},"ng");
Pgq.idomCompat=!0;_.sh(yCE,"yt-sponsorships-hub",{props:{data:_.Dd}});_.eCW=_.P(function(m){var G=m.data;return _.r("yt-dual-avatar-view-model",{class:_.VO("ytDualAvatarViewModelHost",m.className),style:_.eA({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var K;return((K=G().badgeCutoutRadius)!=null?K:14)+"px"}})},_.r("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.r(_.z$,{data:function(){return G().startAvatar}},{avatarViewModel:_.O9}),_.r(_.z$,{data:function(){return G().endAvatar}},{avatarViewModel:_.O9})),_.r(_.z$,{data:function(){return G().badge}},
{contentPreviewImageViewModel:function(K){return _.r("div",{class:"ytDualAvatarViewModelBadge"},_.r(_.VA,{data:K.data}))}}))},"og");
_.eCW.idomCompat=!0;var xIu=_.P(function(m){var G=m.data;var K,W=!((K=_.xS().resolve(_.fn(_.l_)))==null||!K());m=_.pT(function(){var J,N,D=W?(J=G().header)==null?void 0:J.backgroundColorDarkMode:(N=G().header)==null?void 0:N.backgroundColorLightMode;if(D!==void 0)return _.ce(D)},void 0,"TDdh7d");
K=_.pT(function(){var J,N;return W?(J=G().header)==null?void 0:J.backgroundImagePart1Dark:(N=G().header)==null?void 0:N.backgroundImagePart1Light},void 0,"X0peMe");
var L=_.pT(function(){var J,N;return W?(J=G().header)==null?void 0:J.backgroundImagePart2Dark:(N=G().header)==null?void 0:N.backgroundImagePart2Light},void 0,"an0Hzd"),A=_.pT(function(){return _.E8("HTML_DIR")==="rtl"},void 0,"BltEgb"),O=_.Q3("yt-sponsorships-perks-list"),c=!1,u=function(){var J=O.value;
if(J&&!c){var N,D=(N=J.parentElement)==null?void 0:N.parentElement;if(D)for(J=J.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),N=0;N<J.length;++N){var t=J[N];if(t instanceof HTMLElement){D.scrollTo({top:t.offsetTop+t.clientHeight/2-D.clientHeight/2,behavior:"smooth"});c=!0;break}}}};
_.bX(function(){var J=O.value;if(J&&window.ResizeObserver){var N=new ResizeObserver(u);N.observe(J);_.sZ(function(){N.disconnect()})}});
var h={};return _.r("yt-sponsorships-perks-list",{el:O,class:_.VO("ytdSponsorshipsPerksListHost",(h.ytdSponsorshipsPerksListHorizontalPadding=function(){return G().horizontalPaddingEnabled},h))},_.r("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.r("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.eA({"background-color":m})},_.r("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.r(_.p,{cond:K,then:function(J){var N={};return _.r("div",{class:_.VO((N.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=W,N.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!W,N.ytdSponsorshipsPerksListFlipped=A,N))},_.r(_.oC,{data:J,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.r("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.r(_.p,{cond:L,
then:function(J){var N={};return _.r("div",{class:_.VO((N.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=W,N.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!W,N.ytdSponsorshipsPerksListFlipped=A,N))},_.r(_.oC,{data:J,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.r("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.r(_.z$,{data:function(){var J;
return(J=G().header)==null?void 0:J.dualAvatar}},{dualAvatarViewModel:_.eCW})))),_.r("div",{class:"ytdSponsorshipsPerksListBody"},_.r("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return G().title}),_.r(_.p,{cond:function(){return G().perks},
then:function(J){return _.r(_.D0,{each:J},function(N,D){var t={};return _.r("div",{class:_.VO("ytdSponsorshipsPerksListPerkContainer",(t.ytdSponsorshipsPerksListSelectedPerk=function(){var a=D(),v=G().selectedPerkIndex;return a===v},t))},_.r(_.p,{cond:function(){return D()>0},
then:function(){return _.r("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.r("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.r(_.p,{cond:function(){return N.icon},
then:function(a){return _.r(_.fN,{icon:function(){return a().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.r("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.r("div",{class:"ytdSponsorshipsPerksListPerkTitle"},N.title),_.r("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.r(_.Nm,{text:N.description})),_.r(_.p,{cond:function(){return N.instructions},
then:function(){var a,v;return _.r("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.r("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(a=N.instructions)==null?void 0:a.title),_.r("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.r(_.Nm,{text:(v=N.instructions)==null?void 0:v.text})))}}))),_.r(_.p,{cond:function(){return N.emoji},
then:function(a){return _.r("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.r(_.D0,{each:function(){return a()}},function(v){return _.r(_.oC,{data:v,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.r(f3O,{data:N}))})}})))},"pg");
xIu.idomCompat=!0;var f3O=_.P(function(m){var G=m.data;var K=function(O,c){return O===c},W=function(){var O=G();
O=_.Q(O==null?void 0:O.badgesShelf,JSK);return O!==void 0&&O!==null?O:{previousButton:{},nextButton:{}}},L=_.aP("div"),A=function(){var O=L.value;
if(O){var c=O.parentElement;if(c){O=O.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var u=0;u<O.length;++u){var h=O[u];if(h instanceof HTMLElement){c.scrollTo({left:h.offsetLeft+h.clientWidth/2-c.clientWidth/2,behavior:"instant"});break}}}}};
_.bX(function(){var O=L.value;if(O){var c=new ResizeObserver(A);c.observe(O);_.sZ(function(){c.disconnect()})}});
return _.r("div",null,_.r(_.p,{cond:function(){return G().badges},
then:function(O){return _.r(dIq,{data:W},_.r("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:L},_.r(_.D0,{each:function(){return O()}},function(c,u){var h={},J={},N={};
return _.r("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.r(_.p,{cond:function(){return u()>0},
then:function(){return _.r("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.r("div",{class:_.VO("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(h.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return K(u(),G().currentBadgeIndex)},h.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!K(u(),G().currentBadgeIndex)},h))},_.r("div",{class:_.VO("ytdSponsorshipsPerksListLoyaltyBadge",(J.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return K(u(),
G().currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!K(u(),G().currentBadgeIndex)},J))},_.r(_.p,{cond:function(){return c.image},
then:function(D){var t={};return _.r("div",{class:_.VO((t.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return K(u(),G().currentBadgeIndex)},t.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!K(u(),G().currentBadgeIndex)},t))},_.r(_.oC,{data:D,
alt:""}))}})),_.r("div",{class:_.VO("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(N.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return K(u(),G().currentBadgeIndex)},N))},c.title)))})))}}))},"qg");
f3O.idomCompat=!0;_.sh(xIu,"yt-sponsorships-perks-list",{props:{data:_.Dd}});_.sh(_.P(function(m){return _.r("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.r(_.p,{cond:function(){return m.data().image},
then:function(G){return _.r(_.oC,{className:"ytwFantasyEmptyStateViewModelImage",data:G,ariaHidden:!0,alt:""})}}),_.r(_.Nm,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return m.data().title}}),_.r(_.Nm,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return m.data().subtitle}}),_.r(_.z$,{data:function(){return m.data().primaryButton}},{buttonViewModel:function(G){return _.r(_.kP,{data:G.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"rg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Dd}});var XND;var Se6=_.P(function(m){var G=m.data;var K=m.uniqueId;var W=m.overrides;m=_.pT(function(){var L,A=((L=G().timedAnimationData)==null?void 0:L.animationTiming)||[];return{uniqueId:K(),timings:A,experimentEnabled:A.length>0,enabled:A.length>0}},void 0,"hiuXI");
return _.r("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.r(Nek,{settings:m},_.r(_.z$,{data:function(){return G().buttonRenderer}},{buttonRenderer:function(L){return _.r(_.bv,{data:L.data,
buttonOverrides:W})}})))},"sg");
Se6.idomCompat=!0;_.sh(Se6,"timed-animation-button-renderer",{props:{data:_.Dd,uniqueId:_.Dd,overrides:_.Dd}});var CO=function(){var m=_.d.apply(this,arguments)||this;m.hideJoinButtonBeforeSubscribed=_.F("hide_join_button_before_subscribed");m.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return m};
_.n(CO,_.d);_.w=CO.prototype;_.w.hasShowDialogCommand=function(m){return!!_.Q(m,ojo)};
_.w.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"}}}};
_.w.updateJoinButtonOverrides=function(){var m,G;(m=_.VL(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(G=m.polymerController)==null||G.set("overrides",this.joinButtonOverrides);if(m=_.VL(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))m.overrides=this.joinButtonOverrides};
_.w.handleButtonRefreshAction=function(m){if(m=_.Q(m,ysS))this.set("data.membershipButton",m.membershipButton),this.notifyPath("data.membershipButton")};
_.w.onYtServiceRequestError=function(m){_.QH(this.hostElement,m.detail.error.message)};
_.w.onKeydown=function(m){if(m.key==="Enter"){var G;(G=this.data)!=null&&G.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.w.handleUnsubscribeAction=function(){var m,G,K;((m=this.data)==null?void 0:(G=m.membershipButton)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.style)==="STYLE_PRIMARY"&&_.VL(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.e_.Object.defineProperties(CO.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.subscriptionStateEntity)==null||!m.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.data)==null?void 0:m.membershipButton,K;m=(G==null?void 0:G.buttonRenderer)||_.Q(G==null?void 0:(K=G.timedAnimationButtonRenderer)==null?void 0:K.buttonRenderer,_.uu);return(m==null?void 0:m.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(m==null?void 0:m.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(m==null?void 0:m.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var m;if(this.hasShowDialogCommand((m=this.data)==null?void 0:m.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var m;if(this.hasShowDialogCommand((m=this.data)==null?void 0:m.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.attributedTitle)}}});
CO.prototype.onYtServiceRequestError=CO.prototype.onYtServiceRequestError;CO.prototype.updateJoinButtonOverrides=CO.prototype.updateJoinButtonOverrides;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],CO.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],CO.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],CO.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Gc),_.S("design:type",Object)],CO.prototype,"ironButtonState",void 0);_.x([_.V(),_.S("design:type",Object)],CO.prototype,"data",void 0);_.x([_.E("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"hideJoin",null);
_.x([_.V(),_.S("design:type",String)],CO.prototype,"subscribeKey",void 0);_.x([_.V({selectorArgs:["subscribeKey"],selector:Yzd}),_.S("design:type",Object)],CO.prototype,"subscriptionStateEntity",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],CO.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.x([_.E("subscriptionStateEntity"),_.V({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"subscribed",null);
_.x([_.E("subscribed","data.membershipButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"joinButtonOverrides",null);_.x([_.E("data.navigationEndpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"channelNameTabIndex",null);_.x([_.E("data.navigationEndpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],CO.prototype,"channelNameRole",null);
_.x([_.E("data.attributedTitle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],CO.prototype,"hasAttributedTitle",null);_.x([_.Sb("joinButtonOverrides"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CO.prototype,"updateJoinButtonOverrides",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],CO.prototype,"onYtServiceRequestError",null);
_.x([_.Ye({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],CO);
var RCW=_.Vz()(CO,"ytd-video-owner-renderer",function(){if(XND===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><template is="dom-if" if="[[data.thumbnail]]" class="style-scope ytd-video-owner-renderer"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></template><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);XND=m}m=XND;return m},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.sh(_.P(function(m){var G=m.data;var K;m=_.g(_.g_(!((K=_.Gh("yt-mini-app-is-theater-mode-enabled"))==null||!K),void 0,"i2pjVd"));var W=m.next().value,L=m.next().value;K=_.g(_.g_(!1,void 0,"ga7V5c"));var A=K.next().value,O=K.next().value;_.bX(function(){var h=_.oi(window,VAC,function(){O(RTP())});
_.sZ(function(){Tg(h)})});
var c;K=(c=_.xS().resolve(_.fn(hBD)))!=null?c:function(){return _.r("div",null)};
_.Cc("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){L(!0);_.i0("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Cc("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){L(!1);_.i0("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
c={};m={};var u={};return _.r("mini-app-play-page-renderer",{class:_.VO("miniAppPlayPageRendererHost",(c.miniAppPlayPageRendererHostDetailsView=function(){return!W()},c))},_.r("div",{class:_.VO("miniAppPlayPageRendererGameContainer",(m.miniAppPlayPageRendererGameContainerDetailsView=function(){return!W()},m))},_.r(_.z$,{data:function(){return G().containerViewModel}},{miniAppContainerViewModel:V46}),_.r(_.p,{cond:function(){return G().channel&&G().subscribeButton},
then:function(){var h={};return _.r("div",{class:_.VO("miniAppPlayPageRendererChannelContainer",(h.miniAppPlayPageRendererHideVisibility=function(){return A()},h))},_.r(_.z$,{data:function(){return G().channel}},{videoOwnerRenderer:function(J){return _.r(RCW,{data:J.data})}}),_.r(_.z$,{data:function(){return G().subscribeButton}},{subscribeButtonViewModel:function(J){return _.r(_.Ox,{data:J.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.r(_.p,{cond:function(){return!W()&&G().description},
then:function(){var h={};return _.r("div",{class:_.VO("miniAppPlayPageRendererMiniAppDescriptionWrapper",(h.miniAppPlayPageRendererHideVisibility=function(){return A()},h))},_.r("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return G().description}))}})),_.r("div",{class:_.VO("miniAppPlayPageRendererPlayNextContainer",(u.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!W()},u.miniAppPlayPageRendererHideVisibility=function(){return A()},u))},_.r(_.z$,{data:function(){return G().sectionList}},
{sectionListRenderer:K})))},"tg"),"mini-app-play-page-renderer",{props:{data:_.Dd}});var VJ=function(){var m=_.d.apply(this,arguments)||this;m.isSearch=!1;m.isConstrainedList=!1;m.hasChipsBar=!1;m.inReplyPanel=!1;m.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"}};m.monitorScroll=!0;m.SCROLL_ANIMATION_DURATION_MS=300;m.nextContinuation={continuationType:"sectionListContinuation"};return m};
_.n(VJ,_.d);_.w=VJ.prototype;
_.w.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},alertBannerViewModel:{component:"yt-alert-banner-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(m){switch(m.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.F("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.F("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.w.created=function(){var m=this;this.JSC$17543_scrollAnimation=new _.bi(function(G){m.hostElement.scrollTop=G})};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.w.getItemsPath=function(){return"data.contents"};
_.w.replacePrimaryContent=function(m){this.set("data.contents",m)};
_.w.computeHasSortFilter=function(m){return!!m&&!!m.sortFilterSubMenuRenderer};
_.w.computeShouldScrollInPanel=function(m){var G;return!!(m==null?0:(G=m.scrollPaneStyle)==null?0:G.scrollable)};
_.w.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.dF(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.w.scrollToTop=function(){this.hostElement.scrollTop=0};
_.w.scrollToItemSection=function(m){if(m=this.getItemByIdentifier(m))m=this.getScrollPositionForItem(m),this.hostElement.scrollTop!==m&&this.JSC$17543_scrollAnimation.start(this.hostElement.scrollTop,m,this.SCROLL_ANIMATION_DURATION_MS)};
_.w.getItemByIdentifier=function(m){var G=this.contents.querySelectorAll("ytd-item-section-renderer");if(G&&G.length!==0){var K=Array.from(G).findIndex(function(W){return W.sectionIdentifier===m});
return G[K===-1?0:K]}};
_.w.getScrollPositionForItem=function(m){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===m)return 0;m=_.pB(m).y+this.hostElement.scrollTop-_.pB(this.hostElement).y;return Math.min(m,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.e_.Object.defineProperties(VJ.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.targetId)==="browse-feedFEclips"}}});
VJ.prototype.onScroll=VJ.prototype.onScroll;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],VJ.prototype,"ytLazyListBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],VJ.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.q(_.HPG),_.S("design:type",Object)],VJ.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],VJ.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VJ.prototype,"data",void 0);_.x([_.V({value:2}),_.S("design:type",Number)],VJ.prototype,"initialCount",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],VJ.prototype,"autoFill",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.S("design:type",Boolean)],VJ.prototype,"hasSortFilter",void 0);_.x([_.V({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.S("design:type",Boolean)],VJ.prototype,"hideBottomSeparator",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.S("design:type",Boolean)],VJ.prototype,"shouldScrollInPanel",void 0);
_.x([_.V(),_.S("design:type",Object)],VJ.prototype,"isSearch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VJ.prototype,"isConstrainedList",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],VJ.prototype,"responsiveSizing",void 0);_.x([_.V(),_.S("design:type",Object)],VJ.prototype,"hasChipsBar",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],VJ.prototype,"pageSubtype",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],VJ.prototype,"engagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],VJ.prototype,"liveChatEngagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],VJ.prototype,"inReplyPanel",void 0);_.x([_.UM("#action-button"),_.S("design:type",HTMLElement)],VJ.prototype,"actionButton",void 0);_.x([_.V(),_.S("design:type",Object)],VJ.prototype,"scrollUpButtonData",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],VJ.prototype,"engagementPanelDropdown",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],VJ.prototype,"engagementPanelDialog",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],VJ.prototype,"isClipList",null);_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],VJ.prototype,"monitorScrollElement",void 0);_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],VJ.prototype,"contents",void 0);
_.x([_.XC("scroll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VJ.prototype,"onScroll",null);_.x([_.Ye({is:"ytd-section-list-renderer",disableElementRegistration:!0})],VJ);
var UIu=_.Vz()(VJ,"ytd-section-list-renderer",function(){if(uRz===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);uRz=m}m=uRz;return m},{mode:1});var zCO;var l35;var BxW;var M4D;var Z9=function(){return _.d.apply(this,arguments)||this};
_.n(Z9,_.d);Z9.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Z9.prototype.onLikeButtonClick=function(m){m.stopPropagation();m.preventDefault()};
_.e_.Object.defineProperties(Z9.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)!=null&&m.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)})}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Z9.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Z9.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Z9.prototype,"ytRendererStamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Z9.prototype,"data",void 0);
_.x([_.V({selectorArgs:["data.likeStatusEntityKey"],selector:_.cp}),_.S("design:type",Object)],Z9.prototype,"likeStatusEntity",void 0);_.x([_.E("data","likeStatusEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],Z9.prototype,"likeButtonRenderer",null);_.x([_.Ye({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Z9);
_.y(Z9,"ytd-slim-metadata-toggle-button-renderer",function(){if(M4D!==void 0)return M4D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return M4D=m},{mode:1});var dV=function(){var m=_.d.apply(this,arguments)||this;m.showEqualizer=_.F("web_enable_playlist_video_lockup_equalizer");m.watchColorUpdate=_.F("kevlar_watch_color_update");m.actionMap={};return m};
_.n(dV,_.d);_.w=dV.prototype;_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"},properties:{minimizePipBreakages:"[[minimizePipBreakages]]"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.w.computeEditableClass=function(m){return m&&m.menu?"editable":""};
_.w.computeSelected=function(m){return!(m==null||!m.selected)};
_.w.computeUseColorPalette=function(m){return!!((m==null?0:m.lightColorPalette)&&(m==null?0:m.darkColorPalette))};
_.w.computeLargerPlaylistThumbs=function(m,G){return _.F("web_enable_playlist_bigger_thumbnails")&&!G};
_.w.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.w.onYtServiceRequestSent=function(m,G){G.endpoint&&this.isHideEnclosingAction(G.endpoint)&&!this.selected&&iMS(_.an(),this.data.videoId)};
_.w.isHideEnclosingAction=function(m){var G=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",m);m=this.get("likeEndpoint.status",m)==="INDIFFERENT";return G||m};
_.w.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.w.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.e_.Object.defineProperties(dV.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"play":"play_arrow"}},
minimizePipBreakages:{configurable:!0,enumerable:!0,get:function(){return _.F("web_pip_minimize_breakages")&&!!this.withinMiniplayer}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var m;return!!(this.withinMiniplayer&&((m=this.data)==null?0:m.actionButtons))}}});
dV.prototype.onYtServiceRequestSent=dV.prototype.onYtServiceRequestSent;dV.prototype.canReorderChanged=dV.prototype.canReorderChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Dn),_.S("design:type",Object)],dV.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"withinMiniplayer",void 0);_.x([_.V({computed:"computeSelected(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"selected",void 0);
_.x([_.V({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"useColorPalette",void 0);_.x([_.V({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"largerPlaylistThumbs",void 0);_.x([_.V(),_.S("design:type",Object)],dV.prototype,"showEqualizer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"canReorder",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"touchPersistentDragHandle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],dV.prototype,"handleIsHovered",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],dV.prototype,"watchColorUpdate",void 0);_.x([_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],dV.prototype,"reorderIcon",null);
_.x([_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],dV.prototype,"playIcon",null);_.x([_.V({reflectToAttribute:!0}),_.E("withinMiniplayer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],dV.prototype,"minimizePipBreakages",null);_.x([_.E("largerPlaylistThumbs"),_.S("design:type",Number),_.S("design:paramtypes",[])],dV.prototype,"thumbnailWidth",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],dV.prototype,"showActionButtons",null);_.x([_.Mg("canReorder"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],dV.prototype,"canReorderChanged",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],dV.prototype,"onYtServiceRequestSent",null);
_.x([_.Ye({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],dV);
_.y(dV,"ytd-playlist-panel-video-renderer",function(){if(BxW!==void 0)return BxW;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[selected]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" minimize-pip-breakages="[[minimizePipBreakages]]" 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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return BxW=m},{mode:2});var Py=function(){return _.d.apply(this,arguments)||this};
_.n(Py,_.d);Py.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Py.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Py.prototype,"data",void 0);_.x([_.Ye({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Py);
_.y(Py,"ytd-playlist-panel-supported-items",function(){if(l35!==void 0)return l35;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return l35=
m},{mode:1});ZzG=!0;JlF("\\P{N}");var JE9;var TxP=_.zq("END_OF_PLAYLIST",void 0,"End of playlist"),mpi=_.zq("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),yJ=function(){var m=_.d.apply(this,arguments)||this;m.minimizePipBreakages=_.F("web_pip_minimize_breakages");m.hideHeaderText=!1;m.useColorPalette=!1;m.collapsed=!1;m.collapsedPreServerOverride="not_tracked";m.isHovered=!1;m.expandLabel=_.zq("MINIPLAYER_EXPAND_LABEL");m.collapseLabel=_.zq("MINIPLAYER_COLLAPSE_LABEL");m.isFloating=!1;m.metaPanel=
!1;m.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};m.currentIndex=void 0;return m};
_.n(yJ,_.d);_.w=yJ.prototype;
_.w.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"}}}};
_.w.created=function(){var m=this;this.scrollThrottle=new _.yO(this.onThrottledScroll,1E3,this);this.JSC$17565_ytReorderableController=new _.qIo(56,function(G){m.handleDrop(G)})};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
_.w.computeOverflowMenuData=function(m){return m&&m.menu?m.menu:null};
_.w.computeCollapsible=function(m){return!m};
_.w.computeHasPlaylistButtons=function(m){return!(!m||!m.playlistButtons)};
_.w.computeHasSeparateSaveButton=function(m){return!(!m||!m.saveButton)};
_.w.computeHasToolbarButton=function(m,G){return!(!m||!(G||m.saveButton||m.menu))};
_.w.computePlaylistType=function(m){if(m&&m.playlistId)return m.playlistId.substring(0,4)};
_.w.computeCanReorder=function(m){return m?m.playlistId&&m.playlistId.startsWith("TLPQ")?!0:!!m.isEditable&&!m.isInfinite:!1};
_.w.attached=function(){var m=this;try{_.xS().resolve(_.NQ).setPlaylistComponent(this.hostElement)}catch(G){if(_.F("kevlar_park_on_playlist_token_killswitch"))throw G;_.tf().parkOrScheduleJob(function(){_.xS().resolve(_.NQ).setPlaylistComponent(m.hostElement)},2,"ci")}_.q$(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.w.detached=function(){_.EB(this.hostElement);_.UW(this.JSC$17565_ytReorderableController)};
_.w.computeTrailingIcon=function(m,G,K){return K?G?"yt-icons:collapse":"yt-icons:close":G?"yt-icons:expand":_.F("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.w.computeIndexMessage=function(m,G){return t7v(m+1)+" / "+t7v(G)};
_.w.onRenderStamperFinished=function(){if(this.scrollForStampDom){var m=!0;this.isHovered&&(m=!1);if(this.collapsed||this.hidden)m=!1;m&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.w.collapseChanged=function(){var m=this;this.collapsed||(_.UU(this.ytTaskEmitterBehavior.getTaskManager(),function(){m.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.w.hiddenChanged=function(){var m=this;this.hidden||_.UU(this.ytTaskEmitterBehavior.getTaskManager(),function(){m.scrollToCurrentVideo()})};
_.w.setupReordering=function(){var m=_.VL(this.hostElement).querySelector("#items");GJG?_.EcB(this.JSC$17565_ytReorderableController,m,m,"playlist-drag-handle"):_.EcB(this.JSC$17565_ytReorderableController,m,m)};
_.w.scrollToCurrentVideo=function(){var m=this;_.Fu.addJob(function(){var G=_.VL(m.hostElement).querySelector("#items");if(G){G.style.setProperty("padding-bottom","");var K=_.VL(m.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(K){G=K.parentElement||_.Yv(document);var W=G||_.Yv(document);var L=_.pB(K),A=_.pB(W),O=_.B$S(W);if(W==_.Yv(document)){var c=L.x-W.scrollLeft;L=L.y-W.scrollTop}else c=L.x-A.x-O.left,L=L.y-A.y-O.top;K=RLl(K);A=W.clientHeight-
K.height;O=W.scrollLeft;var u=W.scrollTop;O+=c-(W.clientWidth-K.width)/2;W=new _.si(O,u+(L-A/2));G.scrollLeft=W.x;G.scrollTop=W.y}}},8)};
_.w.dataChanged=function(){var m=this;_.UW(this.JSC$17565_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Pv(this,function(){_.rC(m.ytTaskEmitterBehavior.getTaskManager(),function(){m.ytRendererBehavior.markDirty();m.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.w.onFullBleedPlayerChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.w.onFullscreenChanged=function(){_.F("web_watch_imax_theater_mode")||_.F("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.w.updateNowPlayingOverlay=function(){_.F("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.w.onPlaylistLockupNowPlaying=function(m,G){G&&(this.activeNowPlayingRenderer=G);this.updateNowPlayingOverlay()};
_.w.onScroll=function(){this.scrollThrottle.fire()};
_.w.onThrottledScroll=function(){var m=this;_.rC(this.ytTaskEmitterBehavior.getTaskManager(),function(){m.ytRendererBehavior.markDirty()})};
_.w.onToggleExpanded=function(m){!this.collapsible||m&&(_.$C(m).tagName==="A"||_.b_(_.ve(m),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.w.setCollapsed=function(m){this.collapsible&&(this.collapsed=m,_.PH(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.w.handleCollapsedFromData=function(m){if(m){var G=m.playlistPanelCollapseState;G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||G==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),G=G==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==G&&this.setCollapsed(G)):this.currentPlaylistId!==m.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(G=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==G&&this.setCollapsed(G),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=m.playlistId}};
_.w.handleDrop=function(m){var G=m.currDragItem;m=G.data.playlistSetVideoId;var K=_.Cs(G.parentNode.childNodes,G),W=void 0;K>0&&(W=G.parentNode.childNodes[K-1].data.playlistSetVideoId);G=_.an();if(G.responsePlaylistData&&G.responsePlaylistData.contents){var L=Cv6(m,G.responsePlaylistData);G.responsePlaylistData=(0,_.Y2.unsafeClone)(G.responsePlaylistData);Zsd(G.responsePlaylistData.contents,L,K);G.queueProxy?E$B(G.queueProxy,L,K,m,W):G.playlistProxy&&E$B(G.playlistProxy,L,K,m,W);_.on(G,_.n8(G,G.response?
G.response.autoplayRenderer:void 0))}};
_.w.handleDarkModeChange=function(m){m!==this.isDarkTheme&&(this.isDarkTheme=m)};
_.w.colorPaletteChanged=function(){var m,G=((m=this.data)==null?void 0:m.contents)||[],K;m=_.g(G);for(G=m.next();!G.done;G=m.next()){G=G.value;var W=void 0;if((W=G.playlistPanelVideoRenderer)==null?0:W.selected){m=G.playlistPanelVideoRenderer;W=G=void 0;(K=this.isDarkTheme?(G=m)==null?void 0:G.darkColorPalette:(W=m)==null?void 0:W.lightColorPalette)&&_.mr(this.hostElement,K);break}}this.useColorPalette=!!K};
_.e_.Object.defineProperties(yJ.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.moveThreeDotsMenuToMainHeader)&&_.F("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var m=_.xS().resolve(_.fn(_.NQ)),G;if(((G=this.data)==null?0:G.contents)&&(m==null?0:m.hasAutoplayData())){var K;if(((K=this.playlistLoopStateEntity)==null?void 0:K.state)==="PLAYLIST_LOOP_STATE_ONE"){if(m=this.data.currentIndex,m!==void 0){var W,L;var A=(W=this.data.contents[m])==null?void 0:(L=W.playlistPanelVideoRenderer)==null?void 0:L.title}}else{var O,c=(O=_.Q(m.getAutoplayEndpoint(),_.QQ))==null?void 0:O.videoId,u,h;A=(u=this.data.contents.find(function(J){var N;
return((N=J.playlistPanelVideoRenderer)==null?void 0:N.videoId)===c}))==null?void 0:(h=u.playlistPanelVideoRenderer)==null?void 0:h.title}return A}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)!=null&&m.nextVideoLabel?this.nextVideoTitle?_.bw(this.data.nextVideoLabel)+":":TxP:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var m;if(((m=this.data)==null?0:m.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.F("web_mix_long_byline_from_data"))return _.nG(mpi);var G;return(G=this.data)==null?void 0:G.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.playlistButtons)==null?void 0:(K=G.menuRenderer)==null?void 0:K.topLevelButtons;if(W)for(m=_.g(W),G=m.next();!G.done;G=m.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var m;return!!(this.collapsed&&((m=this.data)==null?0:m.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.F("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
yJ.prototype.colorPaletteChanged=yJ.prototype.colorPaletteChanged;yJ.prototype.onPlaylistLockupNowPlaying=yJ.prototype.onPlaylistLockupNowPlaying;yJ.prototype.updateNowPlayingOverlay=yJ.prototype.updateNowPlayingOverlay;yJ.prototype.onFullscreenChanged=yJ.prototype.onFullscreenChanged;yJ.prototype.onFullBleedPlayerChanged=yJ.prototype.onFullBleedPlayerChanged;yJ.prototype.dataChanged=yJ.prototype.dataChanged;yJ.prototype.hiddenChanged=yJ.prototype.hiddenChanged;yJ.prototype.collapseChanged=yJ.prototype.collapseChanged;
yJ.prototype.onRenderStamperFinished=yJ.prototype.onRenderStamperFinished;yJ.prototype.onMouseLeave=yJ.prototype.onMouseLeave;yJ.prototype.onMouseEnter=yJ.prototype.onMouseEnter;_.x([_.q(_.mH),_.S("design:type",Object)],yJ.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(GO4.YtPlaylistPanelBehavior),_.S("design:type",Object)],yJ.prototype,"ytPlaylistPanelBehavior",void 0);_.x([_.q(_.oE.YtTaskEmitterBehavior),_.S("design:type",Object)],yJ.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],yJ.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"autoplayData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],yJ.prototype,"withinMiniplayer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"minimizePipBreakages",void 0);
_.x([_.V({computed:"setMenuData_(data)"}),_.S("design:type",Object)],yJ.prototype,"menuRendererData",void 0);_.x([_.V({computed:"computeOverflowMenuData(data)"}),_.S("design:type",Object)],yJ.prototype,"overflowMenuDataTopRow",void 0);_.x([_.V({computed:"computeOverflowMenuData(data)"}),_.S("design:type",Object)],yJ.prototype,"overflowMenuData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"hideHeaderText",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"useColorPalette",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.S("design:type",Boolean)],yJ.prototype,"collapsible",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"collapsed",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],yJ.prototype,"hidden",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.S("design:type",Boolean)],yJ.prototype,"hasPlaylistButtons",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.S("design:type",Boolean)],yJ.prototype,"hasSeparateSaveButton",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.S("design:type",Boolean)],yJ.prototype,"hasToolbar",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.S("design:type",String)],yJ.prototype,"playlistType",void 0);_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"isHovered",void 0);_.x([_.V({selectorArgs:["playlistLoopStateEntityKey"],selector:_.im.playlistLoopStateEntitySelector}),_.S("design:type",Object)],yJ.prototype,"playlistLoopStateEntity",void 0);_.x([_.V({computed:"computeCanReorder(data)"}),_.S("design:type",Boolean)],yJ.prototype,"canReorder",void 0);
_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"expandLabel",void 0);_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"collapseLabel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"isFloating",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yJ.prototype,"metaPanel",void 0);_.x([_.V({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.S("design:type",String)],yJ.prototype,"trailingIcon",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yJ.prototype,"isDarkTheme",void 0);_.x([_.V({selector:_.cU}),_.S("design:type",Boolean)],yJ.prototype,"miniplayerIsActive",void 0);_.x([_.V({selector:function(m){return m.watch.playerState}}),
_.S("design:type",Number)],yJ.prototype,"playerState",void 0);_.x([_.V({selector:_.gq}),_.S("design:type",Boolean)],yJ.prototype,"isFullscreen",void 0);_.x([_.V({selector:_.wq}),_.S("design:type",Boolean)],yJ.prototype,"isTheaterMode",void 0);_.x([_.V(),_.S("design:type",Object)],yJ.prototype,"activeNowPlayingRenderer",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yJ.prototype,"moveThreeDotMenuToTopRow",null);
_.x([_.E("data","autoplayData","playlistLoopStateEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],yJ.prototype,"nextVideoTitle",null);_.x([_.E("data","nextVideoTitle"),_.S("design:type",String),_.S("design:paramtypes",[])],yJ.prototype,"nextVideoLabel",null);_.x([_.E("collapsed"),_.S("design:type",String),_.S("design:paramtypes",[])],yJ.prototype,"buttonAriaLabel",null);
_.x([_.E("data","playlistId","longBylineText"),_.S("design:type",Object),_.S("design:paramtypes",[])],yJ.prototype,"mixLongByLine",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],yJ.prototype,"playlistLoopStateEntityKey",null);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"onMouseEnter",null);
_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"onMouseLeave",null);_.x([_.V({reflectToAttribute:!0}),_.E("data","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yJ.prototype,"showNextVideoHeader",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"onRenderStamperFinished",null);
_.x([_.Sb("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"collapseChanged",null);_.x([_.Sb("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"hiddenChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"dataChanged",null);
_.x([_.E("isTheaterMode","isFullscreen"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yJ.prototype,"isFullBleedPlayer",null);_.x([_.Sb("isTheaterMode","isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"onFullBleedPlayerChanged",null);_.x([_.Sb("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"onFullscreenChanged",null);
_.x([_.Sb("playerState","miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"updateNowPlayingOverlay",null);_.x([_.XC("yt-playlist-lockup-now-playing-active"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],yJ.prototype,"onPlaylistLockupNowPlaying",null);
_.x([_.Sb("data","isDarkTheme"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yJ.prototype,"colorPaletteChanged",null);_.x([_.Ye({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],yJ);
_.iZq=_.Vz()(yJ,"ytd-playlist-panel-renderer",function(){if(zCO===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);zCO=m}m=zCO;return m},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});_.GpG={};
_.GpG.YtConditionalRendererBehavior=[_.B.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(m,G){var K=this,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:if(!G)return K.hidden=!0,K.showSpinner=!1,A.return();if((W=m)==null?0:(L=W.visibilityCondition)==null?0:L.mode)switch(m.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return A.jumpTo(5);default:return A.jumpTo(6)}K.showSpinner=
!1;K.hidden=!0;return A.yield(K.shouldShow_(m),4);case 4:K.hidden=!A.yieldResult;A.jumpTo(0);break;case 5:return A.yield(K.shouldShow_(m),8);case 8:K.showSpinner=A.yieldResult;K.hidden=!1;A.jumpTo(0);break;case 6:return K.showSpinner=!1,A.yield(K.shouldShow_(m),9);case 9:K.hidden=!A.yieldResult,_.ey(A)}})},
shouldShow_:function(m){return m&&m.supportedDatas&&m.supportedDatas.rendererVisibilityConditionData&&m.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(m.supportedDatas.rendererVisibilityConditionData.showIf):m&&m.visibilityCondition&&m.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(m.visibilityCondition.showIf):m&&m.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(m.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(m){switch(m){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(m){switch(m){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var m=_.dU(this.hostElement,"yt-get-mdx-status");return m.length==1&&m[0].connected},
isLocationPermissionGranted_:function(){var m;return _.Y(function(G){return G.nextAddress==1?navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2):G.nextAddress!=2?(m=G.yieldResult,G.return(Promise.resolve(m.state==="granted"))):G.return(Promise.resolve(!1))})}}];var KbO=QK6("yt-icon",{callbackProps:["onKeydown"]}),Wb6=_.F("kevlar_use_wil_icons")?_.P(function(m){var G=m.icon;var K=m.active;var W=m.className;var L=m.style;var A=m.title;var O=m.size;var c=m.dataSelected;var u=m.dataDisabled;var h=m.role;var J=m.themeOverride;var N=m.animateIcon;var D=m.ariaHidden;var t=m.ariaExpanded;var a=m.ariaLabel;var v=m.tabindex;var I=m.id;var Z=m.iconFilter;var k=m.gradientColor;var z=m.onKeydown;var X=function(){var l=G==null?void 0:G(),Ls=null,gd=void 0;l&&(l=He0(l),
l=UHG(l),l.length&&(Ls=l[1],gd=l[0]));return{iconName:Ls,iconSetName:gd}},f=function(){return IvR(X().iconName,K==null?void 0:K(),void 0,O==null?void 0:O(),X().iconSetName,_.xS().resolve(_.fD))},U=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:Z==null?void 0:Z(),iconColor:k==null?void 0:k()}};
return _.r(_.p,{cond:N,then:function(){return _.r(KbO,{icon:G,active:K,className:W,style:L,title:A,dataSelected:c,dataDisabled:u,role:h,themeOverride:J,ariaHidden:D,ariaExpanded:t,ariaLabel:a,tabindex:v,id:I,iconFilter:Z,gradientColor:k,onKeydown:z})},
else:function(){return _.r(_.p,{cond:f,then:function(l){return _.r("span",{class:_.VO("ytIconWrapperHost",W),role:h,"aria-label":a,"aria-hidden":D,tabindex:function(){return isNaN(Number(v==null?void 0:v()))?void 0:Number(v==null?void 0:v())},
id:I,style:L,title:A,"on:keydown":_.dn(function(Ls){return void(z==null?void 0:z(Ls))})},_.r(_.Tk,{data:l,
options:U}))}})}})},"ug"):KbO;var LbO=function(m){var G=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];y$f();_.yj("ytglobal.ytUtilActivityCallback_",function(){_.PH(m,"yt-user-activity")});
new fS(function(){return G.JSC$17582_onMouseMove});
document.addEventListener("scroll",function(){return G.onScroll});
window.addEventListener("resize",function(){return G.onResize})},At6=function(m,G,K){G in m.eventJobIds||(K=_.AA().addLowPriorityJob(function(){_.x3();
delete m.eventJobIds[G]},K),m.eventJobIds[G]=K)};
LbO.prototype.onScroll=function(m){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):m.target===document&&At6(this,"scroll",200)};
LbO.prototype.onResize=function(){At6(this,"resize",200)};
LbO.prototype.JSC$17582_onMouseMove=function(){At6(this,"mousemove",100)};
_.sW=function(m){m.scrollEventsToIgnore+=1;m.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){m.scrollEventsToIgnore--},500))};var wzz=function(m){this.element=m;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
wzz.prototype.showFeedbackDialog=function(m,G,K,W){var L=grs();if(!L)return!1;var A=ExV();A.productId=L;G&&(A.flow="submit",A.report={description:G});K&&(grs()==="59"?A.callback=_.kS(function(){_.Fx("userFeedbackEvent",{});K()}):A.callback=_.kS(K));
A.bucket=W||_.E8("GOOGLE_FEEDBACK_BUCKET","Other");OZi(A);m=ctu(this,"GFEEDBACK",m);try{_.swG(A,m)}catch(O){return _.j1(O),!1}return!0};
wzz.prototype.showHelpDialog=function(m,G,K){var W=this,L=grs();if(!L)return!1;var A={helpCenterPath:"/youtube",productData:ctu(this,"GUIDED_HELP",K)};OZi(A);var O=ExV();O.context=m||A.productData.context||"default";O.defaultHelpArticleId=G;O.enableSendFeedback=!0;(_.Cn("gapi.load")||function(c,u){return u()})("client",function(){try{var c=rg0(L,A);
if(_.F("web_always_load_chat_support")&&!W.chatSupportLoaded)try{c.JSC$10282_loadChatSupport(O),W.chatSupportLoaded=!0}catch(u){}c.startHelp(O)}catch(u){_.j1(u)}})};
var grs=function(){var m=_.E8("GOOGLE_FEEDBACK_PRODUCT_ID");m||_.j1(Error("ji"));return m},OZi=function(m){m&&(m.locale=_.F("kevlar_help_use_locale")?_.E8("INNERTUBE_CONTEXT_HL","en"):_.E8("HTML_LANG","en"))},ctu=function(m,G,K){var W=m.productData;
delete W.origin;W.device=_.Nd();var L;a:{if(L=document.createElement("canvas")){var A=L.getContext("experimental-webgl",{stencil:!0});if(A){var O=A.getExtension("WEBGL_debug_renderer_info");if(O){L=A.getParameter(O.UNMASKED_RENDERER_WEBGL);break a}}if(A=L.getContext("webgl")){L=A.getParameter(A.RENDERER);break a}}L=null}W.gpu=L;W.isSDC=!!_.E8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(L=_.E8("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Y2.extend(W,L);_.sJP(G,W);_.qkd(W);(m=_.PH(m.element,"yt-get-autonav-pause-debug-state"))&&
m.length&&(W.autonav_pause_state=m[0]);m=_.GI();W.browser_resolution=m.width+"\u00d7"+m.height+"@"+(window.devicePixelRatio||1)+"x";K&&_.Y2.extend(W,K);return W};
wzz.prototype.resetProductData=function(){this.productData={}};var Yy6=function(m){this.feedbackManager=new wzz(m)};
Yy6.prototype.showFeedbackDialog=function(m,G,K,W){return this.feedbackManager.showFeedbackDialog(m,G,K,W)};
Yy6.prototype.showHelpDialog=function(m,G,K){return this.feedbackManager.showHelpDialog(m,G,K)};var rtW=function(){this.baseUrl="";this.aTag=document.createElement("a")},cvR=function(m,G,K){K=K===void 0?{}:K;
K.pbj||(K.pbj=1);K=_.aEd(G,K);m.baseUrl&&K&&!_.PE(K)[1]&&!_.eh(K)&&(G=m.baseUrl,wd(G,"/")&&(G=G.slice(0,-1)),_.AV(K,"/")&&(K=K.slice(1)),K=G+"/"+K);Gp(m.aTag,_.lg(K||""));return m.aTag.href};
rtW.prototype.fetchData=function(m){return _.acM(m)};
rtW.prototype.postData=function(m,G){var K={method:"POST"};if(G){for(var W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next()){L=L.value;var A=G[L];_.Ud(A)&&(G[L]=JSON.stringify(A))}K.postParams=G}return _.acM(m,K)};
_.YwG=function(m,G,K,W,L){m=cvR(m,G,K);if(!m)throw W=Error("ki"),Object.assign(W,{params:G}),W;return _.acM(m,L,W)};
rtW.prototype.requestDataForServiceEndpoint=function(m,G){if(_.Q(m,_.jzJ))return this.fetchData("/getAccountSwitcherEndpoint");G=G||{};var K=_.Q(m,Xii);K?G.se=K.base64EncodedServiceEndpoint:G.sej=JSON.stringify(m);(K=_.gU())&&_.F("enable_service_ajax_csn")&&(G.csn=K);G.theme=_.Ng();_.Q(m,Hid)&&_.E8("DELEGATION_CONTEXT")&&(G.delegation_context=JSON.stringify(_.E8("DELEGATION_CONTEXT")));K=null;for(var W in m)if(wd(W,"Endpoint")||wd(W,"Command")){K=W;break}if(!K){var L=Error("li");Object.assign(L,{params:m});
_.tF6(L,"WARNING");return new _.iO(function(O,c){c(L)})}W={name:K};
var A;(K=(A=_.Q(m,_.SD))==null?void 0:A.signal)&&(W.signal=K);(A=_.PO(window.location.href))&&A.internalcountrycode&&(W.internalcountrycode=A.internalcountrycode);A="/service_ajax";_.F("debug_forward_web_query_parameters")&&(A=_.dcs(A,window.location.search));A=_.BE(A,W);m.clickTrackingParams&&_.nJ(A,{itct:m.clickTrackingParams});return this.postData(A,G)};_.usD=new _.sX("GFEEDBACK_TOKEN");var hjP;var pzE;var Jti;var N5s;var ef=function(){var m=_.d.apply(this,arguments)||this;m.compact=!1;m.dismissButtonDisabled=!1;m.shouldRenderReasonAsFormattedString=!_.F("web_player_error_message_reason_as_formatted_string_killswitch");return m};
_.n(ef,_.d);ef.prototype.computeHasIcon_=function(m){return!!m};
ef.prototype.isSignInIcon_=function(m){return m=="yt-icons:prompted_sign_in"};
ef.prototype.onDismissButtonClick=function(){var m=this,G=this.data.disableOnClick,K,W=(K=this.data.dismissButton)==null?void 0:K.buttonRenderer;G&&!this.dismissButtonDisabled&&W&&setTimeout(function(){m.dismissButtonDisabled=!0},0)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.GpG.YtConditionalRendererBehavior),_.S("design:type",Object)],ef.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ef.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],ef.prototype,"icon_",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.S("design:type",Boolean)],ef.prototype,"hasIcon_",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.S("design:type",Boolean)],ef.prototype,"signInIcon_",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ef.prototype,"compact",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ef.prototype,"dismissButtonDisabled",void 0);
_.x([_.V({type:Boolean}),_.S("design:type",Object)],ef.prototype,"shouldRenderReasonAsFormattedString",void 0);_.x([_.cL({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],ef);
_.y(ef,"yt-player-error-message-renderer",function(){if(N5s===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <template is="dom-if" if="[[shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <yt-formatted-string id="reason" is-overlay="" text="[[data.reason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    </template>\n    <template is="dom-if" if="[[!shouldRenderReasonAsFormattedString]]" restamp="" class="style-scope yt-player-error-message-renderer">\n      <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    </template>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Jti===void 0&&(Jti=document.createElement("template"));var W=Jti;K.call(G,W.content.cloneNode(!0),m.content.firstChild);N5s=m}m=N5s;return m},{mode:2});var DpG;var ty5;var fO=function(){return _.d.apply(this,arguments)||this};
_.n(fO,_.d);fO.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fO.prototype.computeIcon_=function(m){return m?"yt-icons:"+m.iconType.toLowerCase():"error_outline"};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fO.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],fO.prototype,"icon_",void 0);_.x([_.cL({is:"yt-player-kav-renderer",disableElementRegistration:!0})],fO);
_.y(fO,"yt-player-kav-renderer",function(){if(ty5===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;DpG===void 0&&(DpG=document.createElement("template"));var W=DpG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ty5=m}m=ty5;return m},{mode:2});var jJJ=_.nY(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.sh(_.P(function(m){var G=_.Q3("div"),K=_.g(_.g_(0,void 0,"jxh75d")),W=K.next().value,L=K.next().value;K=_.g(_.g_(null,void 0,"F5Zm8"));var A=K.next().value,O=K.next().value;_.bX(function(){k3d(G.value,L,O);G.value.scrollIntoView()});
K=C4d.bind(null,m.data,W);_.P$("resize",function(){var c=A();if(W()===1&&c!==null){var u;(u=window.grecaptcha)==null||u.reset(c)}});
return _.r("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.r("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.r("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var c,u;return(c=m.data().accessibility)==null?void 0:(u=c.accessibilityData)==null?void 0:u.label}),_.r(_.Nm,{text:K,
className:_.VO("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.r("div",{el:G,class:"ytwPlayerCaptchaViewModelGridItem"})))},"vg"),"yt-player-captcha-view-model",{props:{data:_.nN}});var V7v=!1;_.FbG=_.P(function(m){var G=m.data;return _.r("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.r(_.p,{cond:function(){return G().icon},
then:function(K){return _.r("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.r(_.oC,{data:K,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.r(_.p,{cond:function(){return G().title},
then:function(K){return _.r("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.r(_.Nm,{text:K}))}}),_.r(_.p,{cond:function(){return G().description},
then:function(K){return _.r("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.r(_.Nm,{text:K}))}}),_.r(_.z$,{data:function(){return G().primaryButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"interstitialViewModelFlexItem"})}}),_.r(_.z$,{data:function(){return G().secondaryButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"interstitialViewModelFlexItem"})}}))},"wg");
_.FbG.idomCompat=!0;var QOq=_.P(function(m){var G=m.data;_.Fw();return _.r("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.r("div",{class:"playerInterstitialRendererScrim"},_.r(_.z$,{data:function(){return G().content}},{interstitialViewModel:_.FbG})))},"xg");
QOq.idomCompat=!0;_.sh(QOq,"yt-player-interstitial-renderer",{props:{data:_.Dd}});var xL=function(){var m=_.d.apply(this,arguments)||this;m.noBackground=!1;m.compact=!1;m.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return m};
_.n(xL,_.d);xL.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"}}}};
xL.prototype.onUpdatePlayerErrorMessageCommand_=function(m){if(_.Q(m,i5R)){var G;if(m=(G=_.Q(m,i5R))==null?void 0:G.newPlayerErrorMessageRenderer)this.data=m}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],xL.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xL.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],xL.prototype,"status",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],xL.prototype,"noBackground",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],xL.prototype,"compact",void 0);_.x([_.cL({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],xL);
var aO6=_.Vz()(xL,"yt-playability-error-supported-renderers",function(){if(pzE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;hjP===void 0&&(hjP=document.createElement("template"));var W=hjP;K.call(G,W.content.cloneNode(!0),m.content.firstChild);pzE=m}m=pzE;return m},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var orz=QK6("ytd-button-renderer");var Z0d=void 0,P4G=void 0;var fcs=new B8G;var VM=new _.sX("ENTITY_STATE_TOKEN"),X3=new _.sX("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var nrs=function(m){this.store=m;this.pkP=new _.mqk},qdF=function(m,G,K){var W,L;
if(!(L=((W=G.playabilityStatus)==null?void 0:W.status)!=="OK")){m=m.store;var A;L=G.offlineState&&((A=G.videoDetails)==null?0:A.videoId)?_.F("enable_pl_r_c_cd")?E6V(m.getState().entities,G.videoDetails.videoId):!!Wsv(m.getState().entities,G.videoDetails.videoId):!1}if(L)return!0;L=R8M(G);if(L===1){if(_.F("ab_v_vid_sig")){var O,c=(O=G.videoDetails)==null?void 0:O.videoId;if(!c||!K||c!==K){var u;G=new _.cw("282054944_vid",{jA3:K,dBN:(u=G.videoDetails)==null?void 0:u.videoId});_.am(G)}}return!0}NrP=
0;var h,J;u=(c=G.auxiliaryUi)==null?void 0:(h=c.messageRenderers)==null?void 0:(J=h.bkaEnforcementMessageViewModel)==null?void 0:J.displayType;if(L!==3&&(u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||u==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;u={reason:_.Hk(_.zq("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.F("ks_something_wrong_learn_more")?Kxo("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Hk(_.zq("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:_.Hk("282054944")};bZO(G,{playerErrorMessageRenderer:u});return!1},EGF=function(m,G){if(kyo(G)){_.xR(1,!0);
var K=(K=kyo(G))&&_.dvd()?K:void 0;K?(bZO(G,{enforcementMessageViewModel:K}),m.pkP.increment("IN_PLAYER"),_.xR(5)):(m.pkP.increment("SKIP_DISPLAY"),_.xR(2))}},bZO=function(m,G){m.playabilityStatus=Object.assign({},m.playabilityStatus,{status:"ERROR",
errorScreen:G});m.videoDetails=void 0};
nrs.prototype.handleResponse=function(m,G){if(m.playabilityStatus){var K,W,L,A=(G==null?void 0:(K=G.innerTubeRequest)==null?void 0:K.videoId)||(G==null?void 0:(W=G.innerTubeRequest)==null?void 0:(L=W.playerRequest)==null?void 0:L.videoId);qdF(this,m,A)&&EGF(this,m)}};
nrs[XF]=[VM];var $dk=new _.sX("ADBLOCK_DETECTION_SERVICE_TOKEN");var bG=function(m){this.lbO=m};
bG.prototype.bindInnertubeChallengeFetcher=function(m){this.lbO.bicf(m)};
bG.prototype.registerChallengeFetchedCallback=function(m){this.lbO.bcr(m)};
bG.prototype.getLatestChallengeResponse=function(){return this.lbO.blc()};var vrD;vrD=_.nY(["https://static.doubleclick.net/instream/ad_status.js"]);_.$pq=_.vE(vrD);var HZE;_.Sf=function(m,G,K){var W=this;this.network=m;this.options=G;this.networkStatusManager=K;this.qs=null;if(G.useBotguardEverywhere){var L=new _.yY;this.qs=L.promise;_.Ks.ytAtRC&&_.mn(_.Fu,function(){var A,O;return _.Y(function(c){if(c.nextAddress==1){if(!_.Ks.ytAtRC)return c.return();A=sO6(null);return c.yield(W.wTP(A),2)}O=c.yieldResult;_.Ks.ytAtRC&&_.Ks.ytAtRC(JSON.stringify(O));_.ey(c)})});
TZf().then(function(A){var O,c,u,h;return _.Y(function(J){if(J.nextAddress==1)return A.bindInnertubeChallengeFetcher(function(N){return W.wTP(sO6(N))}),J.yield(a0d(),2);
O=J.yieldResult;c=A.getLatestChallengeResponse();u=c.challenge;if(!u)throw Error("ni");h={challenge:u,rz:ox(u),vm:O,bgChallenge:new QM};L.resolve(h);A.registerChallengeFetchedCallback(function(N){N=N.challenge;if(!N)throw Error("oi");N={challenge:N,rz:ox(N),vm:O,bgChallenge:new QM};W.qs=Promise.resolve(N)});
_.ey(J)})})}else G.preload&&qyi(this,new Promise(function(A){_.rC(_.Fu,function(){A(ErD(W))},0)}))};
HZE=function(m){var G={preload:!0,useBotguardEverywhere:!0},K=!1;if(typeof G==="boolean")var W={preload:G};else typeof G==="undefined"?W={preload:!0}:(W=G,K=!!G.abn);G=K?void 0:new _.k3;_.Sf.instance=new _.Sf(m,W,G);return _.Sf.instance};
_.Sf.prototype.qZM=function(){var m=this;return _.Y(function(G){return G.nextAddress==1?G.yield(Promise.race([m.qs,null]),2):G.return(!!G.yieldResult)})};
_.Sf.prototype.vEt=function(m,G,K){var W=this,L,A,O;return _.Y(function(c){W.qs===null&&qyi(W,ErD(W));L=!1;A={};O=function(){var u,h,J,N,D;return _.Y(function(t){switch(t.nextAddress){case 1:if(!W.options.wi1||!W.options.useBotguardEverywhere){t.jumpTo(2);break}return t.yield(M7s(),3);case 3:return u=t.yieldResult,t.yield((h=u)==null?void 0:h.checkForRefresh(),2);case 2:return t.yield(W.qs,5);case 5:J=t.yieldResult;A.challenge=J.challenge;if(!J.vm){"c1a"in J.rz&&(A.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");
t.jumpTo(6);break}N=Object.assign({},{c:J.challenge,e:m},G);_.IO(t,7);L=!0;return t.yield(J.vm.snapshot({kW:N}),9);case 9:(D=t.yieldResult)?A.webResponse=D:A.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.IG(t,6);break;case 7:_.ye(t),A.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 6:if(m==="ENGAGEMENT_TYPE_PLAYBACK"){var a=J.rz,v={};if(a.c6a){var I=Number(_.E8("DCLKSTAT",0));v.reportingStatus=String(Number(a.c)^(isNaN(I)?0:I))}a.c6b&&(v.broadSpectrumDetectionResult=String(Number(a.c)^Number(_.E8("CATSTAT",
0))));A.adblockReporting=v}return t.return(A)}})};
return c.return(Promise.race([O(),IOO(K,function(){var u=Object.assign({},A);L&&(u.error="ATTESTATION_ERROR_VM_TIMEOUT");return u})]))})};
var sO6=function(m){var G={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};m&&(G.interpreterHash=m);return G},ErD=function(m,G){G=G===void 0?0:G;
var K,W,L,A,O,c,u,h,J,N,D,t;return _.Y(function(a){switch(a.nextAddress){case 1:K=sO6(Tsl().efy);if(_.F("att_fet_ks"))return _.IO(a,7),a.yield(m.wTP(K),9);_.IO(a,4);return a.yield(jOD(m,K),6);case 6:O=a.yieldResult;L=O.sIu;A=O.bje;W=O;_.IG(a,3);break;case 4:return _.ye(a),_.nc(Error("pi`"+G)),kp6(m,864E5),a.return({challenge:"",rz:{},vm:void 0,bgChallenge:void 0});case 9:W=a.yieldResult;if(!W)throw Error("qi");if(!W.challenge)throw Error("ri");L=W.challenge;A=ox(L);if("c1a"in A&&(!W.bgChallenge||
!W.bgChallenge.program))throw Error("si");_.IG(a,3);break;case 7:c=_.ye(a);_.nc(c);G++;if(G>=5)return _.nc(Error("pi`"+G)),kp6(m,864E5),a.return({challenge:"",rz:{},vm:void 0,bgChallenge:void 0});u=1E3*Math.pow(2,G-1)+Math.random()*1E3;return a.return(new Promise(function(v){_.rC(_.Fu,function(){v(ErD(m,G))},u)}));
case 3:h=BZP(A);kp6(m,h*1E3);J=void 0;if(!("c1a"in A&&W.bgChallenge)){a.jumpTo(10);break}N=lcd(W.bgChallenge);_.IO(a,11);return a.yield(iLS(Tsl(),N),13);case 13:_.IG(a,12);break;case 11:return D=_.ye(a),_.nc(D),a.return({challenge:L,rz:A,vm:J,bgChallenge:N});case 12:return _.IO(a,14),J=new _.N3({challenge:N,vvT:{km:"aGIf"}}),a.yield(J.bgc,16);case 16:_.IG(a,10);break;case 14:t=_.ye(a),_.nc(t),J=void 0;case 10:return a.return({challenge:L,rz:A,vm:J,bgChallenge:N})}})},C9q=function(m,G){var K;
return _.Y(function(W){if(W.nextAddress==1)return nm(2),_.IO(W,2),W.yield(m.network.wTP(G),4);if(W.nextAddress!=2)return(K=W.yieldResult)?K.challenge&&!K.bgChallenge?nm(1):nm(4):nm(3),W.return(K);_.ye(W);nm(3);return W.return(void 0)})};
_.Sf.prototype.wTP=function(m){var G=this,K;return _.Y(function(W){K=G.networkStatusManager;if(!K||K.isNetworkAvailable())return W.return(C9q(G,m));_.ud("att_pna",void 0,"attestation_challenge_fetch");return W.return(new Promise(function(L){K.listenOnce("publicytnetworkstatus-online",function(){C9q(G,m).then(L)})}))})};
var VyW=function(m){if(!m)throw Error("qi");if(!m.challenge)throw Error("ri");var G=m.challenge,K=ox(G);if("c1a"in K&&(!m.bgChallenge||!m.bgChallenge.program))throw Error("si");return Object.assign({},m,{sIu:G,bje:K})},jOD=function(m,G){var K,W,L,A,O;
return _.Y(function(c){switch(c.nextAddress){case 1:K=void 0,W=0,L={};case 2:if(!(W<5)){c.jumpTo(4);break}if(!(W>0)){c.jumpTo(5);break}L.j38=1E3*Math.pow(2,W-1)+Math.random()*1E3;return c.yield(new Promise(function(u){return function(h){_.rC(_.Fu,function(){h(void 0)},u.j38)}}(L)),5);
case 5:return _.IO(c,7),c.yield(m.wTP(G),9);case 9:return A=c.yieldResult,c.return(VyW(A));case 7:K=O=_.ye(c),O instanceof Error&&_.nc(O);case 8:W++;L={j38:void 0};c.jumpTo(2);break;case 4:throw K;}})},qyi=function(m,G){m.qs=G},ZZz=function(m){var G,K,W;
return _.Y(function(L){if(L.nextAddress==1)return L.yield(Promise.race([m.qs,null]),2);G=L.yieldResult;var A=ErD(m);m.qs=A;(K=G)==null||(W=K.vm)==null||W.dispose();_.ey(L)})},kp6=function(m,G){var K=Date.now()+G,W=function(){var L;
return _.Y(function(A){L=K-Date.now();return L<1E3?A.yield(ZZz(m),0):(_.rC(_.Fu,W,Math.min(L,6E4)),A.jumpTo(0))})};
W()},IOO=function(m,G){return new Promise(function(K){_.rC(_.Fu,function(){K(G())},m)})};var dpi=function(){};
dpi.prototype.processContext=function(m){var G=_.Sf.instance;if(!G)return _.og();var K=LRG(m);return K?new ag(G.vEt(K,Gao(m),500).then(function(W){var L;(m==null?0:(L=m.innerTubeRequest)==null?0:L.context)||(m.innerTubeRequest.context={});L=m.innerTubeRequest.context;L.request||(L.request={});L.request.attestationResponseData=W})):_.og()};var P9W=function(m){this.innertubeTransportService=m};
P9W.prototype.wTP=function(m){_.ud("att_fsr",void 0,"attestation_challenge_fetch");return _.Jf(this.innertubeTransportService,m,_.sv(_.YPB)).then(function(G){_.ud("att_frr",void 0,"attestation_challenge_fetch");return G})};_.ytE=function(m){this.innertubeTransportService=m};var ejO=new _.sX("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var fO5=function(){},XzE=function(m,G,K,W,L){var A=_.E8("YPC_MB_URL");
_.Xav(A).then(function(){xpO(A,m,G,K,W,L)})},xpO=function(m,G,K,W,L,A){try{var O=_.HY.payments.business.integration,c=_.HY.payments.business.integration.Style.create().withMaterialDesignStyle(),u=O.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.F("enable_window_constrained_buy_flow_dialog")&&(u=u.usingPopupStyle("windowConstrained"));A&&(u=u.usingCloseCallback(A));var h=K?K:_.E8("YPC_GB_LANGUAGE"),J=_.E8("SESSION_INDEX");O.bootstrap.fromPaymentsUrl(m);O.bootstrap.asMashupMode(u).usingGaiaIndex(J).usingLocale(h).usingStyle(c).usingDefaultActivityStatusChangeHandler().inStandaloneContext(O.standaloneContextAuthId.forGaia()).purchaseManager(G,function(N){W&&W(N)}).load(void 0,L)}catch(N){throw L&&L(N),_.am(N),N;
}};var Syz=new _.sX("PURCHASE_MANAGER_TOKEN");var RjW=function(){var m=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return m.videos},
getContinuationsPresent:function(){return m.continuationsPresent},
setVideos:function(G){m.videos=G},
getRecommendedVideos:function(){return m.recommendedVideos},
setRecommendedVideos:function(G){m.recommendedVideos=G}}};
RjW.prototype.addVideos=function(m){m&&(this.videos=m.filter(function(G){return!!_.wav(G)}).map(function(G){var K=_.wav(G);
a:{var W;if(G.playlistVideoRenderer&&((W=G.playlistVideoRenderer)==null?0:W.voteSortTiebreaker))var L=G.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Q(G,$1)){var A;if(W=(L=_.Q(G,$1))==null?void 0:(A=L.playlistItemData)==null?void 0:A.voteSortTiebreaker){L=W;break a}}L=""}}return{itemId:K,videoId:_.ccJ(G),voteCount:_.YNJ(G),voteSortTiebreaker:L}}),this.continuationsPresent=!!_.Q(m[m.length-1],_.EU))};
var Upu=function(m,G){return m.videos.findIndex(function(K){return K.itemId===G})},zj6=function(m,G){return m.recommendedVideos.findIndex(function(K){return K.itemId===G})},lO6=function(m){m={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:m}}}}};_.xS().resolve(_.S1).resolveCommand(m)};var B5D=function(){RjW.apply(this,arguments)};
_.n(B5D,RjW);
var Njl=function(m,G,K,W){if(!m.parentElem)throw Error("xi");var L=Upu(m,G);L===-1&&(L=zj6(m,G),L=L!==-1?L+m.videos.length:-1);if(L===-1)throw Error("yi");var A=L>=m.videos.length?m.recommendedVideos[L-m.videos.length]:m.videos[L];A.voteCount=K;A.voteSortTiebreaker=Date.now().toString();L>=m.videos.length?m.recommendedVideos.splice(L-m.videos.length,1):m.videos.splice(L,1);var O=m.videos;for(var c=0,u=O.length-1;c<=u;){var h=Math.floor((c+u)/2);if(O[h].voteCount<A.voteCount)u=h-1;else if(O[h].voteCount>A.voteCount)c=
h+1;else{a:{var J=A.voteSortTiebreaker;var N=O[h].voteSortTiebreaker;if(J.length!==N.length)J=J.length>N.length;else{for(var D=0;D<J.length;D++){var t=J.charCodeAt(D),a=N.charCodeAt(D);if(t>a){J=!0;break a}if(t<a)break}J=!1}}J?u=h-1:c=h+1}}O=c;if(O===-1)throw Error("zi");m.videos.splice(O,0,A);L!==O&&Myq(m,L,O,G,K,W)},Myq=function(m,G,K,W,L,A){var O,c=(O=m.parentElem)==null?void 0:O.children,u=Math.min(G,K),h=Math.max(G,K);
if(c)for(O=u;O<=h;O++)c[O].style.viewTransitionName="item-"+String(O);document.startViewTransition(function(){if(m.parentElem){var J=m.parentElem.children;if(!(!J||G<0||G>=J.length||K<0||K>=J.length)){var N=J[G];if(N){N.remove();m.showRefreshPill=K>=m.videos.length-1&&m.continuationsPresent;if(!m.showRefreshPill){J=J[K]||null;var D;(D=m.parentElem)==null||D.insertBefore(N,J)}_.Zw(m.parentElem,"yt-update-video-data-voting-animation",{toIdx:K,itemId:W,newVoteCount:L,voteStatus:A,hideItem:m.showRefreshPill})}}}}).finished.then(function(){if(c)for(var J=
u;J<=h;J++)c[J].style.viewTransitionName="";
if(m.showRefreshPill)lO6(_.zq("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var N;if(N=J=(N=m.parentElem)==null?void 0:N.children[K])N=J.getBoundingClientRect(),J=N.bottom,N=!(N.top>=0&&J<=m.clientHeight);N&&(N=_.lW(G>K?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(G-K)),lO6(N))}})};var i6E=function(m,G){var K=this;m?this.innertubeTransportServicePromise=Promise.resolve(m):G&&(this.innertubeTransportServicePromise=G(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new qu(3E3,function(W){return T5i(K,W)},0);
this.validateMiniAppVideoIdRateLimiter=new qu(3E3,function(W){return mjP(K,W)},1)},HpD=function(m,G){m.JSC$17698_miniAppId=G;
m.reportMiniAppValueRateLimiter=new qu(3E3,function(K){return T5i(m,K)},0);
m.validateMiniAppVideoIdRateLimiter=new qu(3E3,function(K){return mjP(m,K)},1)},jeq=function(m,G){var K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.reportMiniAppValueRateLimiter.call(G),2);K=W.yieldResult;return W.return([K,G])})},T5i=function(m,G){var K,W,L,A,O,c,u;
return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(m.innertubeTransportServicePromise,2);case 2:return K=h.yieldResult,W=_.sv(NYk),L=Date.now(),A={externalPostId:m.JSC$17698_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(L/1E3),nanos:Math.round(L%1E3*1E6)},intValue:""+G}},_.IO(h,3),h.yield(_.Jf(K,A,W),5);case 5:O=h.yieldResult;_.IG(h,4);break;case 3:throw c=_.ye(h),c;case 4:if(O){if("error"in O&&O.error)throw O.error;if(O.errorMetadata)throw Error("Ai`"+
O.errorMetadata.status);if(u=O.userStatResult)return h.return(u);throw Error("Bi");}throw Error("Ci");}})},CgP=function(m){var G,K,W,L,A;
_.Y(function(O){switch(O.nextAddress){case 1:return O.yield(m.innertubeTransportServicePromise,2);case 2:return G=O.yieldResult,K=_.sv(NYk),W={externalPostId:m.JSC$17698_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.IO(O,3),O.yield(_.Jf(G,W,K),5);case 5:L=O.yieldResult;_.IG(O,4);break;case 3:throw A=_.ye(O),A;case 4:if(L==null)throw Error("Ci");if("error"in L&&L.error)throw L.error;if(L.errorMetadata)throw Error("Ai`"+L.errorMetadata.status);_.ey(O)}})};
i6E.prototype.flush=function(){var m=this;return _.Y(function(G){return G.nextAddress==1?G.yield(m.reportMiniAppValueRateLimiter.flush(),2):G.yield(m.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var k7z=function(m,G){return _.Y(function(K){return K.nextAddress==1?K.yield(m.validateMiniAppVideoIdRateLimiter.call(G),2):K.return(K.yieldResult)})},mjP=function(m,G){var K,W,L,A,O,c;
return _.Y(function(u){switch(u.nextAddress){case 1:return u.yield(m.innertubeTransportServicePromise,2);case 2:return K=u.yieldResult,W=_.sv(O1i),L={videoId:G},_.IO(u,3),u.yield(_.Jf(K,L,W),5);case 5:A=u.yieldResult;_.IG(u,4);break;case 3:throw O=_.ye(u),O;case 4:if(A){if("error"in A&&A.error)throw A.error;if(A.errorMetadata)throw Error("Ai`"+A.errorMetadata.status);if(c=A.playabilityStatus)return u.return(c.status);throw Error("Di");}throw Error("Ci");}})};
i6E[XF]=[_.fn(_.Tv),_.fn(Scl)];var GFs=function(){this.clientData=new Map};
GFs.prototype.getData=function(m){return this.clientData.get(m)};var KKP=function(m){this.store=m};
KKP.prototype.handleResponse=function(m){(m=_.Q(m.frameworkUpdates,aL))&&_.UG(m,this.store)};
KKP[XF]=[_.wR];var WKO=new _.sX("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var LKW,AU5,wE6;_.RH=new _.sX("FLOW_STATE_MANAGER_TOKEN");LKW=function(){this.flowStates=new Map};
AU5=function(m,G){m=_.g(m.flowStates.values());for(var K=m.next();!K.done;K=m.next())if(K=K.value,K.flowRenderer.targetId===G)return K};
wE6=function(m,G){var K,W=((K=m.flowRenderer.steps)!=null?K:[]).filter(function(L){return!G.includes(_.Q(L,_.mI).stepId)});
m.flowRenderer.steps=W};var gy6=function(m){this.JSC$17722_flowStateManager=m};
_.n(gy6,te);gy6.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c;return _.Y(function(u){K=_.Q(m,Jp0);L=(W=K)==null?void 0:W.stepIds;O=(A=K)==null?void 0:A.targetId;if(!L||!O)return u.return();c=AU5(G.JSC$17722_flowStateManager,O);if(!c)return u.return();wE6(c,L);_.ey(u)})};
var U$=function(){gy6.apply(this,arguments)};
_.n(U$,gy6);U$[XF]=[_.RH];var O6q=function(m,G){this.JSC$17728_reduxStore=m;this.JSC$17728_flowStateManager=G};
_.n(O6q,te);
O6q.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a;return _.Y(function(v){K=_.Q(m,_.Nb4);W=K.stepId;L=K.targetId;A=AU5(G.JSC$17728_flowStateManager,L);c=(O=A)==null?void 0:O.flowRenderer;u=c.flowStateEntityKey;h=_.sU(G.JSC$17728_reduxStore.getState(),u);if(!h)return v.return();J=h.currentStepId;t=(D=(N=h)==null?void 0:N.stepIdStack)!=null?D:[];a=J===t[t.length-1]?W:J;G.JSC$17728_reduxStore.dispatch(_.wS("flowStateEntity",u,{currentStepId:W,stepIdStack:[a]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.ey(v)})};
var zJ=function(){O6q.apply(this,arguments)};
_.n(zJ,O6q);zJ[XF]=[_.wR,_.RH];var cUG=function(m,G,K){this.JSC$17735_reduxStore=m;this.JSC$17735_flowStateManager=G;this.JSC$17735_commandHandler=K};
_.n(cUG,te);
cUG.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v;return _.Y(function(I){W=_.Q(m,_.DAP);L=W.targetId;A=AU5(K.JSC$17735_flowStateManager,L);c=(O=A)==null?void 0:O.flowRenderer;u=c.flowStateEntityKey;h=_.sU(K.JSC$17735_reduxStore.getState(),u);D=[].concat(_.Bz((N=(J=h)==null?void 0:J.stepIdStack)!=null?N:[]));t=D.pop();((a=h)==null?void 0:a.currentStepId)===t&&(t=D[D.length-1]);if(!t)return(v=W.onFirstStepCommand)&&K.JSC$17735_commandHandler.resolveCommand(v,G),I.return();
K.JSC$17735_reduxStore.dispatch(_.wS("flowStateEntity",u,{currentStepId:t,stepIdStack:D}));_.ey(I)})};
var li=function(){cUG.apply(this,arguments)};
_.n(li,cUG);li[XF]=[_.wR,_.RH,_.S1];var Yii=function(m,G){this.innertubeTransportService=m;this.JSC$17740_commandHandler=G};
_.n(Yii,te);Yii.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1){W=_.Q(m,tP0);if(!W)return u.return();_.IO(u,2);return u.yield(_.to(K.innertubeTransportService,m),4)}if(u.nextAddress!=2){L=u.yieldResult;if(!L)return u.return();(A=L.updateFlowCommand)&&K.JSC$17740_commandHandler.resolveCommand(A,G);return _.IG(u,0)}_.ye(u);(c=(O=W)==null?void 0:O.onFailureCommand)&&K.JSC$17740_commandHandler.resolveCommand(c,G);_.ey(u)})};
var By=function(){Yii.apply(this,arguments)};
_.n(By,Yii);By[XF]=[_.Tv,_.S1];var rUq=function(m,G){this.JSC$17746_flowStateManager=m;this.JSC$17746_commandHandler=G};
_.n(rUq,te);
rUq.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O;return _.Y(function(c){W=_.Q(m,_.Qk4);L=W.targetId;A=AU5(K.JSC$17746_flowStateManager,L);if(!A)return c.return(Promise.resolve());var u=A,h=(O=W.steps)!=null?O:[],J,N=(J=u.flowRenderer.steps)!=null?J:[];h=[].concat(_.Bz(N),_.Bz(h));u.flowRenderer.steps=h;W.flowContinuationCommand&&(A.flowRenderer.flowContinuationCommand=W.flowContinuationCommand);W.entityUpdateCommand&&K.JSC$17746_commandHandler.resolveCommand(W.entityUpdateCommand,G);
return c.return(Promise.resolve())})};
var Mu=function(){rUq.apply(this,arguments)};
_.n(Mu,rUq);Mu[XF]=[_.RH,_.S1];var uJz={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]],android_messenger:[[0,1,192]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,
1,24]],countdown_to_close:[[0,1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var h_q=new _.sX("ICON_SET_TOKEN"),pEs=new _.sX("ICON_URL_PROVIDER_TOKEN"),JU6=new _.sX("PREFETCH_ICONS_TOKEN"),NDD=new _.sX("ICON_MAP_FN_TOKEN");var TJ={},Dj5=(TJ.ACCESS_TIME="clock",TJ.ACCOUNT_BOX=_.E8("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",TJ.ACCOUNT_BOX_CAIRO="person_account_cairo",TJ.ACCOUNT_CIRCLE="person_circle",TJ.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",TJ.ACCOUNT_LINKED="account_link_success",TJ.ACCOUNT_UNLINKED="account_link",TJ.ADD_FRIEND="people",TJ.ADD_MODERATOR="shield_add",TJ.ADD_TO_LIBRARY="bookmark",TJ.ADD_TO_PLAYLIST="add",TJ.ADD_TO_QUEUE_TAIL="list_queue",TJ.ADD_TO_REMOTE_QUEUE="list_music",
TJ.ADD_TO_WATCH_LATER="clock",TJ.ADD_VIDEO_LINK="film_strip_add",TJ.ALERT_WARN_RED="alert_triangle",TJ.ARROW_BACK="arrow_left",TJ.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",TJ.ARROW_DROP_DOWN="chevron_down",TJ.ARROW_DROP_UP="chevron_up",TJ.ARROW_FORWARD="arrow_right",TJ.ARTIST="person_music",TJ.AUDIOTRACK="audio",TJ.AUTO_AWESOME="sparkle",TJ.AVATAR_ANONYMOUS="person_circle",TJ.AVATAR_LOGGED_OUT="person_circle",TJ.BACK="arrow_left",TJ.BAR_CHART="bar_graph",TJ.BLOCK="slash_circle_left",
TJ.BLOCK_USER="slash_circle_left",TJ.BOOKMARK_BORDER="bookmark",TJ.BREAKING_NEWS_ALT_1="article_alert",TJ.BROADCAST_CAIRO="podcast_cairo",TJ.BUG_REPORT="bug",TJ.CAMERA_ALT="camera",TJ.CAMPAIGN="megaphone",TJ.CANCEL="x_circle",TJ.CAPTIONS="closed_caption",TJ.CAST_OUTLINE="chromecast",TJ.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",TJ.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",TJ.CHAT="message_bubble_left",TJ.CHAT_BUBBLE="message_bubble_empty",TJ.CHAT_SPARK="spark_message_bubble_left",TJ.CHECK_BOX_OUTLINE_BLANK=
"box_empty",TJ.CHECK_CIRCLE_OUTLINE="check_circle",TJ.CHECK_CIRCLE_THICK="check_circle",TJ.CLARIFY="article_clarify",TJ.CLOSED_CAPTION_SELECTED="closed_caption",TJ.CLOSE="x_mark",TJ.CLOUD_UPLOAD="cloud_arrow_up",TJ.COLLAPSE="chevron_up",TJ.COLLAPSE_CAIRO="chevron_up_cairo",TJ.COLLECTION="layers",TJ.COLOR_LENS="palette",TJ.COMMENT="message_bubble_right",TJ.CONSENT_SHIELD="person_shield",TJ.CONTENT_CUT="scissors",TJ.CONTENT_CUT_CAIRO="scissors_cairo",TJ.COURSE=_.F("web_enable_course_icon_update")?"creator_academy":
"lightbulb",TJ.COURSE_CAIRO=_.F("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",TJ.CREATION_LIVE="radar_live",TJ.CREATION_POST="box_pencil",TJ.CREATION_UPLOAD="my_videos",TJ.CREATION_UPLOAD_RED="upload",TJ.CREATOR_METADATA_MONETIZATION="dollar_sign",TJ.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",TJ.CREATOR_STUDIO="youtube_studio",TJ.DASHBOARD="grid_asymmetrical",TJ.DELETE="trash_can",TJ.DELETE_SWEEP="trash_can",TJ.DESKTOP="laptop",TJ.DISLIKE="thumb_down",TJ.DISLIKE_SELECTED=
"thumb_down",TJ.DISMISSAL="x_mark",TJ.DISMISS_QUEUE="list_remove",TJ.DONE_ALL="check_double",TJ.DOWN_ARROW="arrow_down",TJ.DO_NOT_DISTURB="slash_circle_left",TJ.DRAFT="paper_corner_folded",TJ.DRAG_HANDLE="bars_2",TJ.EDIT="pencil",TJ.EMOJI="face_very_happy",TJ.EMOJI_FLAGS="flag",TJ.EMOJI_OBJECTS="lightbulb",TJ.EMOJI_PEOPLE="face_very_happy",TJ.EMOJI_RECENT="clock",TJ.EMPTY_HEART="heart",TJ.EMPTY_LIKE="thumb_up",TJ.ERROR_BLACK="alert_circle",TJ.ERROR_OUTLINE="alert_circle",TJ.EXIT_APP="arrow_in",TJ.EXIT_TO_APP=
"arrow_in",TJ.EXPAND="chevron_down",TJ.EXPAND_ALL="chevron_expand",TJ.EXPAND_CAIRO="chevron_down_cairo",TJ.EXPAND_LESS="chevron_up",TJ.EXPAND_MORE="chevron_down",TJ.EXPLORE="compass",TJ.EXPLORE_DESTINATION="compass",TJ.EXTERNAL_LINK="open_new",TJ.FAB_UPLOAD="upload",TJ.FACE_HAPPY_OUTLINE="face_happy",TJ.FACT_CHECK="article_check",TJ.FASHION_LOGO="fashion",TJ.FASHION_LOGO_CAIRO="fashion_cairo",TJ.FAVORITE="heart",TJ.FEEDBACK="message_bubble_alert",TJ.FEEDBACK_CAIRO="message_bubble_alert_cairo",TJ.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",TJ.FILL_ARROW_SOLID_UP_16="arrow_solid_up",TJ.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",TJ.FILTER="menu_filter",TJ.FIRST_PAGE="chevron_first",TJ.FLAG="flag",TJ.FULL_HEART="heart",TJ.GAME_CONSOLE_DPAD="game_console_dpad",TJ.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",TJ.GAMING_LOGO="gaming",TJ.GAMING_LOGO_CAIRO="gaming_cairo",TJ.GO_TO_PAGE="arrow_right",TJ.GROUPS="people_group",TJ.HAPPY="face_happy",TJ.HEALTH_AND_SAFETY="shield_plus",TJ.HELP="question_circle",TJ.HELP_CAIRO=
"question_circle_cairo",TJ.HELP_OUTLINE="question_circle",TJ.HIDE="slash_circle_left",TJ.IMAGE="image",TJ.INFINITY_ICON="infinity",TJ.INFO="info_circle",TJ.INFO_OUTLINE="info_circle",TJ.INSERT_CHART="bar_graph_box_vertical",TJ.INSERT_CHART_OUTLINED="bar_graph_box_vertical",TJ.INSERT_PHOTO="image",TJ.KEEP="pin",TJ.KEEP_OFF="pin_off",TJ.KEYBOARD="keyboard",TJ.KEYBOARD_ARROW_DOWN="chevron_down",TJ.KEYBOARD_ARROW_UP="chevron_up",TJ.KIDS_BLOCK="slash_circle_left",TJ.LANGUAGE="globe",TJ.LAST_PAGE="chevron_last",
TJ.LAUNCH="open_new",TJ.LEARNING="lightbulb",TJ.LEARNING_CAIRO="lightbulb_cairo",TJ.LIBRARY_ADD=paG("library_add"),TJ.LIBRARY_OUTLINE="library",TJ.LIBRARY_REMOVE=paG(),TJ.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",TJ.LIKES_PLAYLIST="thumb_up",TJ.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",TJ.LIKE="thumb_up",TJ.LIKE_SELECTED="thumb_up",TJ.LIVE="radar_live",TJ.LIVE_CAIRO="radar_live_cairo",TJ.LIVE_UNLISTED="link",TJ.LOCATION_ON="location_point",TJ.LOCATION_PIN="location_point",TJ.LOOP="arrow_repeat",TJ.LOOP_ACTIVE=
"arrow_repeat",TJ.LOOP_ONE="arrow_repeat_1",TJ.LOOP_ONE_ACTIVE="arrow_repeat_1",TJ.MEH="face_meh",TJ.MEMBERS_ONLY_MODE_OFF="message_bubble_left",TJ.MESSAGE="message_bubble_left",TJ.MICROPHONE_ON="mic",TJ.MIX="youtube_mix",TJ.MONETIZATION_ON="dollar_sign_circle",TJ.MONEY_FILL="dollar_sign_container",TJ.MONEY_FILL_JPY="yen_sign_container",TJ.MONEY_HEART="dollar_sign_heart",TJ.MORE_HORIZ="overflow_horizontal",TJ.MORE_VERT="overflow_vertical",TJ.MUSIC="audio",TJ.MUSIC_CAIRO="audio_cairo",TJ.MUSIC_NOTE_SYMBOL=
"music",TJ.MUSIC_SHUFFLE="arrow_shuffle",TJ.MY_CHANNEL="person_circle",TJ.MY_LOCATION="location_point",TJ.NEWS_STORY="news",TJ.NEXT="chevron_right",TJ.NOTIFICATIONS="bell",TJ.NOTIFICATIONS_ACTIVE="bell_on",TJ.NOTIFICATIONS_CAIRO="bell_cairo",TJ.NOTIFICATIONS_DONE_CHECKMARK="check",TJ.NOTIFICATIONS_INBOX="bell",TJ.NOTIFICATIONS_NONE="bell",TJ.NOTIFICATIONS_OFF="bell_off",TJ.NOT_INTERESTED="slash_circle_left",TJ.OFFICIAL_ARTIST_BADGE="audio",TJ.OFFLINE_CLOUD="cloud_off",TJ.OFFLINE_DOWNLOAD="download",
TJ.OFFLINE_DOWNLOAD_CAIRO="download_cairo",TJ.OFFLINE_PAUSE="pause",TJ.OPEN_IN_NEW="open_new",TJ.OUTLINE_ADJUST="adjust",TJ.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",TJ.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",TJ.OUTLINE_BAG="bag",TJ.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",TJ.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",TJ.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",TJ.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",TJ.PAID="dollar_sign",TJ.PAUSE_OUTLINED="pause",TJ.PAYMENT=
"credit_card",TJ.PERSON_RADAR_FILLED="person_radar",TJ.PHONE_DOWNLOAD="mobile_download",TJ.PLAYABLES_LOGO="tic_tac_toe",TJ.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",TJ.PLAYLISTS="list_play_arrow",TJ.PLAYLISTS_CAIRO="list_play_arrow_cairo",TJ.PLAYLIST_ADD=paG("list_add"),TJ.PLAYLIST_ADD_CHECK=paG("list_check"),TJ.PLAYLIST_PLAY="list_play_arrow",TJ.PLAY_ALL="play_arrow",TJ.PLAY_CIRCLE="play_arrow_circle",TJ.PLAY_OUTLINED="play_arrow_circle",TJ.PRIVACY_INFO="shield",TJ.PRIVACY_PRIVATE="lock",TJ.PRIVACY_PUBLIC=
"earth",TJ.PRIVACY_UNLISTED="link",TJ.PROMOTE="megaphone",TJ.PURCHASES="price_tag",TJ.PURCHASE_SUPER_CHAT="super_chat",TJ.PURCHASE_SUPER_STICKER="super_sticker",TJ.QUESTION_ANSWER="message_bubble_question",TJ.QUEUE_PLAY_LAST="list_queue_last",TJ.QUEUE_PLAY_NEXT="list_play_arrow",TJ.REMIX_FILLED="youtube_shorts_remix",TJ.REMOVE="bar_circle",TJ.REMOVE_CIRCLE="bar_circle",TJ.REMOVE_CIRCLE_OUTLINE="bar_circle",TJ.REMOVE_DONE="check_double_off",TJ.REMOVE_FROM_HISTORY="bar_circle",TJ.REMOVE_FROM_PLAYLIST=
"bar_circle",TJ.REMOVE_MODERATOR="shield_off",TJ.REPLAY="arrow_circle",TJ.REPLAY_10="skip_back_10",TJ.REPORT_PROBLEM="alert_triangle",TJ.SAD="face_sad",TJ.SAVE_PLAYLIST="bookmark",TJ.SCHEDULE="clock",TJ.SCHOOL="creator_academy",TJ.SCREEN_FULLSCREEN="screen_full",TJ.SEARCH_HISTORY="arrow_time",TJ.SELL="price_tag",TJ.SETTINGS="gear",TJ.SETTINGS_CAIRO="gear_cairo",TJ.SETTINGS_LIGHT="gear",TJ.SETTINGS_MATERIAL="gear",TJ.SHARE_ARROW="share",TJ.SHIELD_WITH_AVATAR="person_shield",TJ.SHOPPING_BAG="bag",TJ.SHOPPING_BAG_CAIRO=
"bag_cairo",TJ.SHOPPING_CART="cart",TJ.SHORTS_COMMENT="youtube_shorts_message_bubble_right",TJ.SHORTS_DISLIKE="youtube_shorts_thumb_down",TJ.SHORTS_LIKE="youtube_shorts_thumb_up",TJ.SHORTS_SHARE="youtube_shorts_share",TJ.SHUFFLE="arrow_shuffle",TJ.SLOW_MODE_OFF="message_bubble_left",TJ.SOCIAL="people",TJ.SORT="menu_sort",TJ.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",TJ.SPEED_1X="1x",TJ.SPEED_1_POINT_2X="1_point_2x",TJ.SPEED_1_POINT_5X="1_point_5x",TJ.SPEED_1_POINT_8X="1_point_8x",TJ.SPEED_2X="2x",
TJ.SPEED_POINT_2X="point_2x",TJ.SPEED_POINT_8X="point_8x",TJ.SPONSORSHIP_STAR="star_circle",TJ.STAFF_PICK="spotlight",TJ.START_DVR="add",TJ.STAR_BORDER="star",TJ.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",TJ.STICKER_EMOTICON="face_happy",TJ.STOP_DVR="stop",TJ.SUBSCRIBE="youtube_logo_icon",TJ.SUBSCRIBE_PLUS="add_cairo",TJ.SUBSCRIPTION_MANAGER="gear",TJ.SUPERVISOR_ACCOUNT="people",TJ.SUPER_CHAT_FOR_GOOD="hands_heart",TJ.SWAP_HORIZ="arrow_swap_horizontal",TJ.SWITCH_ACCOUNTS="person_account",TJ.TAB_ACCOUNT=
"person",TJ.TAB_ACTIVITY="bell",TJ.TAB_BOOKMARK="bookmark",TJ.TAB_EXPLORE="compass",TJ.TAB_HOME="home",TJ.TAB_HOME_CAIRO="home_cairo",TJ.TAB_INBOX="mail",TJ.TAB_LIKED="thumb_up",TJ.TAB_MUSIC_PREMIUM="youtube_music",TJ.TAB_SHORTS="youtube_shorts",TJ.TAB_SHORTS_CAIRO="youtube_shorts_cairo",TJ.TAB_SUBSCRIPTIONS="subscriptions",TJ.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",TJ.TAB_TRENDING="fire",TJ.TIMER="stopwatch",TJ.TRAILER="youtube_originals",TJ.TRENDING="fire",TJ.TRENDING_CAIRO="fire_cairo",TJ.TRENDING_DOWN=
"rating_down",TJ.TRENDING_UP="rating_up",TJ.TROPHY="trophy",TJ.TROPHY_CELEBRATIONS="fireworks",TJ.TUNE="adjust",TJ.UNBLOCK_USER="bar_circle",TJ.UNLIMITED="youtube_logo_icon",TJ.UNPLUGGED_LIVE_GUIDE="radar_live",TJ.UNPLUGGED_SPORTS="eye_off",TJ.UPLOADS="library",TJ.UP_ARROW="arrow_up",TJ.VERTICAL_ALIGN_BOTTOM="download",TJ.VERY_HAPPY="face_very_happy",TJ.VERY_SAD="face_very_sad",TJ.VIDEOGAME_ASSET="gaming",TJ.VIDEOS="play_arrow_circle",TJ.VIDEO_CALL="video_camera_add",TJ.VIDEO_LIBRARY_WHITE="library",
TJ.VIDEO_YOUTUBE="youtube_logo_icon",TJ.VIEW_LIST="list_view",TJ.VIEW_LIST_CAIRO="list_view_cairo",TJ.VISIBILITY="eye",TJ.VISIBILITY_OFF="eye_off",TJ.VOLUME_MUTE="volume_off",TJ.VOLUME_UP="volume_on",TJ.WALLPAPER="image",TJ.WARNING="alert_triangle",TJ.WATCH_HISTORY="arrow_time",TJ.WATCH_HISTORY_CAIRO="arrow_time_cairo",TJ.WATCH_LATER="clock",TJ.WATCH_LATER_CAIRO="clock_cairo",TJ.WATCH_RELATED_MIX="youtube_mix",TJ.WHAT_TO_WATCH="home",TJ.YOUTUBE_MUSIC_MONOCHROME="youtube_music",TJ.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",TJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",TJ.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",TJ.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",TJ.YT_OUTLINE_MUSIC_24="music",TJ);var me={},th6=(me.ACCESS_TIME="clock",me.ACCOUNT_BOX="person_square",me.ACCOUNT_BOX_CAIRO="person_square",me.ACCOUNT_CIRCLE="person_circle",me.ACCOUNT_CIRCLE_CAIRO="person_circle",me.ACCOUNT_LINKED="account_link",me.ACCOUNT_UNLINKED="account_link",me.ADD_CIRCLE="add_circle",me.ADD_CIRCLE_OUTLINE="add_circle",me.ADD_FRIEND="person_child",me.ADD_MODERATOR="shield_add",me.ADD_TO_LIBRARY="bookmark",me.ADD_TO_PLAYLIST="add",me.ADD_TO_QUEUE_TAIL="queue",me.ADD_TO_REMOTE_QUEUE="playlist_audio",me.ADD_TO_WATCH_LATER=
"clock",me.ADD_VIDEO_LINK="film_strip_add",me.ADMIN_PANEL_SETTINGS="person_gear",me.ALERT_WARN_RED="alert_triangle",me.ALIGN_LEFT="text_align_left",me.ARROWS_ALERT="arrow_split_alert",me.ARROW_BACK="arrow_left",me.ARROW_CIRCLE="arrow_counterclockwise",me.ARROW_CIRCLE_PLAY="replay",me.ARROW_CIRCLE_RIGHT="arrow_clockwise",me.ARROW_DIAGONAL="arrow_up_left",me.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",me.ARROW_DROP_DOWN="triangle_down",me.ARROW_DROP_UP="triangle_up",me.ARROW_FORWARD="arrow_right",me.ARROW_PAUSE=
"pause_history",me.ARROW_UNDO="undo",me.ARTICLE="text_page",me.ARTICLE_ALERT="text_page_alert",me.ARTICLE_CHECK="text_page_check",me.ARTICLE_CLARIFY="text_page_info",me.ARTIST="person_audio",me.AUDIOTRACK="audio",me.AUDIO_BADGE="audio_badge",me.AUDIO_SURROUND="surround_sound",me.AUTO_AWESOME="sparkles",me.AVATAR_ANONYMOUS="person_circle",me.AVATAR_LOGGED_OUT="person_circle",me.BACK="arrow_left",me.BAR_CHART="chart_bar",me.BAR_CIRCLE="minus_circle",me.BAR_HORIZONTAL="minus",me.BLOCK="circle_slash",
me.BLOCK_USER="circle_slash",me.BOOKMARK_BORDER="bookmark",me.BOX_OPEN_CHECK="quiz",me.BOX_PENCIL="square_pencil",me.BOX_STACK_3="square3_stack",me.BREAKING_NEWS_ALT_1="text_page_alert",me.BROADCAST="podcast",me.BROADCAST_CAIRO="podcast",me.BUG_REPORT="bug",me.CAMERA_ALT="camera",me.CAMPAIGN="megaphone",me.CANCEL="x_circle",me.CAPTIONS="closed_captions",me.CAST_ICON="chromecast",me.CAST_OUTLINE="chromecast",me.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",me.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
me.CHAT="text_bubble",me.CHAT_BUBBLE="bubble",me.CHECK_BOX="check_square",me.CHECK_BOX_OUTLINE_BLANK="square",me.CHECK_CIRCLE_FILLED="check_circle",me.CHECK_CIRCLE_OUTLINE="check_circle",me.CHECK_CIRCLE_THICK="check_circle",me.CHECK_DOUBLE="check_done",me.CHECK_DOUBLE_OFF="check_done_slash",me.CHEVRON_LEFT="chevron_left",me.CHEVRON_RIGHT="chevron_right",me.CHEVRON_RIGHT_CAIRO="chevron_right",me.CIRCLES_OVERLAP="account_link",me.CLAPPERBOARD_CAIRO="clapperboard",me.CLARIFY="text_page_info",me.CLOCK_ARROWS=
"clock_split",me.CLOCK_ARROWS_ALERT="clock_split_alert",me.CLOSED_CAPTION="closed_captions",me.CLOSED_CAPTION_SELECTED="closed_captions",me.CLOSE="x",me.CLOUD_UPLOAD="cloud_arrow_up",me.COLLAPSE="chevron_up",me.COLLAPSE_CAIRO="chevron_up",me.COLLECTION="square3d_stack",me.COLOR_LENS="paint_palette",me.COMMENT="text_bubble",me.CONSENT_SHIELD="person_shield",me.CONTENT_CUT="scissors",me.CONTENT_CUT_CAIRO="scissors",me.COURSE="graduation_cap",me.COURSE_CAIRO="graduation_cap",me.CREATION_LIVE="live",
me.CREATION_POST="square_pencil",me.CREATION_UPLOAD="video",me.CREATION_UPLOAD_RED="upload",me.CREATOR_ACADEMY="graduation_cap",me.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",me.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",me.CREATOR_STUDIO="youtube_studio",me.DARK_THEME="theme",me.DELETE="trash_can",me.DELETE_SWEEP="trash_can",me.DESKTOP="laptop",me.DISLIKE="thumb_down",me.DISLIKE_SELECTED="thumb_down",me.DISMISSAL="x",me.DISMISS_QUEUE="playlist_x",me.DOGFOOD="pawprint",me.DOLLAR_SIGN=
"dollar_sign_circle",me.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",me.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",me.DOWN_ARROW="arrow_down",me.DO_NOT_DISTURB="circle_slash",me.DRAFT="document",me.DRAG_HANDLE="equal",me.EARTH="globe",me.EDIT="pencil",me.EMOJI="face_very_happy",me.EMOJI_FLAGS="flag",me.EMOJI_OBJECTS="lightbulb",me.EMOJI_PEOPLE="face_very_happy",me.EMOJI_RECENT="clock",me.EMPTY_HEART="heart",me.EMPTY_LIKE="thumb_up",me.ERROR_BLACK="alert_circle",me.ERROR_OUTLINE="alert_circle",me.ERROR_WHITE=
"alert_circle",me.EXIT_APP="arrow_in",me.EXIT_TO_APP="arrow_in",me.EXPAND="chevron_down",me.EXPAND_ALL="chevron_expand",me.EXPAND_CAIRO="chevron_down",me.EXPAND_LESS="chevron_up",me.EXPAND_MORE="chevron_down",me.EXPLORE="compass",me.EXPLORE_DESTINATION="compass",me.EXTERNAL_LINK="arrow_up_right",me.EYE_OFF="eye_slash",me.FAB_UPLOAD="upload",me.FACE_HAPPY_OUTLINE="face_happy",me.FACE_MEH="face_neutral",me.FACT_CHECK="text_page_check",me.FASHION_LOGO="fashion",me.FASHION_LOGO_CAIRO="fashion",me.FAVORITE=
"thumb_up",me.FEEDBACK="alert_bubble",me.FEEDBACK_CAIRO="alert_bubble",me.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",me.FILL_ARROW_SOLID_UP_16="arrow_solid_up",me.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",me.FIRST_PAGE="chevron_left_end",me.FLAG_CAIRO="flag",me.FLASH_OFF="flash_slash",me.FLASH_ON="flash",me.FULL_HEART="heart",me.GAMING_LOGO="gaming",me.GAMING_LOGO_CAIRO="gaming",me.GO_TO_PAGE="arrow_right",me.GRID_ASYMMETRICAL="dashboard",me.GROUPS="person3",me.HAND_SWIPE_LEFT="gesture_swipe_left",
me.HAND_SWIPE_RIGHT="gesture_swipe_right",me.HAPPY="face_happy",me.HEALTH_AND_SAFETY="shield_health",me.HEART_BOX="heart_cube",me.HELP="help_circle",me.HELP_CAIRO="help_circle",me.HELP_OUTLINE="help_circle",me.HIDE="circle_slash",me.INCOGNITO_CAIRO="incognito",me.INFINITY_ICON="infinity",me.INFO="info_circle",me.INFO_OUTLINE="info_circle",me.INSERT_CHART="chart_bar_square",me.INSERT_CHART_OUTLINED="chart_bar_square",me.INSERT_PHOTO="image",me.KEEP="pin",me.KEEP_OFF="pin_slash",me.KEYBOARD="keyboard",
me.KEYBOARD_ARROW_DOWN="chevron_down",me.KEYBOARD_ARROW_UP="chevron_up",me.KIDS_BLOCK="circle_slash",me.LANGUAGE="globe",me.LAST_PAGE="chevron_right_end",me.LAUNCH="arrow_up_right",me.LEARNING="lightbulb",me.LEARNING_CAIRO="lightbulb",me.LIBRARY_ADD="bookmark",me.LIBRARY_IMAGE="image_stack",me.LIBRARY_MUSIC="audio_square_stack",me.LIBRARY_OUTLINE="play_square_stack",me.LIBRARY_REMOVE="bookmark",me.LIBRARY_SAVED="check_square_stack",me.LIKES_PLAYLIST="thumb_up",me.LIKES_PLAYLIST_CAIRO="thumb_up",me.LIKE=
"thumb_up",me.LIKE_SELECTED="thumb_up",me.LIST_QUEUE="queue",me.LIVE_CAIRO="live",me.LIVE_UNLISTED="link",me.LOCATION_ON="location_pin",me.LOCATION_PIN="location_pin",me.LOCATION_POINT="location_pin",me.LOOP="repeat",me.LOOP_ACTIVE="repeat",me.LOOP_ONE="repeat1",me.LOOP_ONE_ACTIVE="repeat1",me.MEET="google_meet",me.MEH="face_neutral",me.MEMBERSHIPS="memberships",me.MEMBERS_ONLY_MODE_OFF="text_bubble",me.MENU_FILTER="filter",me.MESSAGE="text_bubble",me.MESSAGE_BUBBLE_GEAR="bubble_gear",me.MESSAGE_BUBBLE_LEFT=
"text_bubble",me.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",me.MESSAGE_BUBBLE_OVERLAP="bubble_stack",me.MESSAGE_BUBBLE_QUESTION="help_bubble",me.MICROPHONE_ON="mic",me.MONETIZATION_ON="dollar_sign_circle",me.MONEY_FILL="dollar_sign_rectangle",me.MONEY_FILL_JPY="yen_sign_rectangle",me.MONEY_HAND="dollar_sign_circle_hand",me.MONEY_HEART="dollar_sign_heart",me.MOON_Z="sleep_timer",me.MORE_HORIZ="overflow_horizontal",me.MORE_VERT="overflow_vertical",me.MUSIC="audio",me.MUSIC_CAIRO="audio",me.MUSIC_EXPLICIT_BADGE=
"explicit",me.MUSIC_NEW_RELEASE="audio_badge",me.MUSIC_NOTE_SYMBOL="audio",me.MUSIC_SCISSORS="audio_scissors",me.MUSIC_SHUFFLE="shuffle",me.MY_CHANNEL="person_circle",me.MY_LOCATION="location_pin",me.MY_VIDEOS="video",me.MY_VIDEOS_CAIRO="video",me.NEWS_CAIRO="news",me.NEWS_STORY="news",me.NEXT="chevron_right",me.NOTE_ADD="bubble_pencil",me.NOTIFICATIONS="bell",me.NOTIFICATIONS_ACTIVE="bell_waves",me.NOTIFICATIONS_CAIRO="bell",me.NOTIFICATIONS_DONE_CHECKMARK="check",me.NOTIFICATIONS_INBOX="bell",me.NOTIFICATIONS_NONE=
"bell",me.NOTIFICATIONS_OFF="bell_slash",me.NOT_INTERESTED="circle_slash",me.OFFICIAL_ARTIST_BADGE="audio",me.OFFLINE_CLOUD="cloud_slash",me.OFFLINE_DOWNLOAD="download",me.OFFLINE_DOWNLOAD_CAIRO="download",me.OFFLINE_PAUSE="pause",me.OPEN_IN_NEW="arrow_up_right",me.OUTLINE_ADJUST="adjust",me.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",me.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",me.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",me.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",me.OUTLINE_BAG="bag",me.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",me.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",me.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",me.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",me.PAID="dollar_sign_circle",me.PAUSE_OUTLINED="pause",me.PAYMENT="credit_card",me.PEOPLE="person_child",me.PEOPLE_2="person2_rectangle",me.PEOPLE_GROUP="person3",me.PEOPLE_NOTE="bubble_asterisk",me.PERSON_2="person2",me.PERSON_ACCOUNT="person_square_stack",me.PERSON_MINUS="person_x",me.PERSON_MUSIC="person_audio",me.PERSON_RADAR="person_waves",
me.PERSON_RADAR_FILLED="person_waves",me.PERSON_SETTING="person_gear",me.PHONE="phone",me.PHONE_DOWNLOAD="mobile_arrow_down",me.PICTURE_IN_PICTURE="picture_in_picture",me.PLAYABLES_LOGO="playables",me.PLAYABLES_LOGO_CAIRO="playables",me.PLAYLISTS="playlist",me.PLAYLISTS_CAIRO="playlist",me.PLAYLIST_ADD_CHECK="bookmark",me.PLAY_ALL="play",me.PLAY_ARROW="play",me.PLAY_ARROW_CIRCLE="play_circle",me.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",me.PLAY_CIRCLE="play_circle",me.PLAY_OUTLINED="play_circle",
me.PODCAST_ADD="podcast_add",me.PODCAST_CHECK="podcast_check",me.PRIVACY_INFO="shield_x",me.PRIVACY_PRIVATE="lock",me.PRIVACY_PUBLIC="globe",me.PRIVACY_UNLISTED="link",me.PROMOTE="megaphone",me.PURCHASES="price_tag",me.PURCHASE_SUPER_CHAT="super_chat",me.PURCHASE_SUPER_STICKER="super_sticker",me.QUESTION_ANSWER="help_bubble",me.QUESTION_CIRCLE="help_circle",me.QUEUE_PLAY_LAST="queue_last",me.QUEUE_PLAY_NEXT="queue_next",me.QUOTATION_MARK="quote",me.RADAR_LIVE="live",me.REMOVE="minus_circle",me.REMOVE_CIRCLE=
"minus_circle",me.REMOVE_CIRCLE_OUTLINE="minus_circle",me.REMOVE_FROM_HISTORY="minus_circle",me.REMOVE_FROM_PLAYLIST="minus_circle",me.REMOVE_MODERATOR="shield_slash",me.REPLAY="arrow_counterclockwise",me.REPLAY_10="skip10_back",me.REPLAY_ARROW="replay",me.REPORT_PROBLEM="alert_triangle",me.RSS_OFF="rss_slash",me.SAD="face_sad",me.SAVE_PLAYLIST="bookmark",me.SCHEDULE="clock",me.SCHOOL="graduation_cap",me.SCREEN_DEFAULT="player_default",me.SCREEN_FULLSCREEN="player_full_enter",me.SCREEN_LIGHT="ambient_mode",
me.SCREEN_ROTATION="rotate_portrait",me.SCREEN_SWITCH="player_switch",me.SCREEN_THEATRE="player_theater",me.SEARCH_CAIRO="search",me.SEARCH_HISTORY="history",me.SELL="price_tag",me.SETTINGS="gear",me.SETTINGS_CAIRO="gear",me.SETTINGS_LIGHT="gear",me.SETTINGS_MATERIAL="gear",me.SETTINGS_REMOTE="remote_waves",me.SHARE="share",me.SHARE_ARROW="share",me.SHARE_CAIRO="share",me.SHIELD="shield_x",me.SHIELD_EMPTY="shield",me.SHIELD_OFF="shield_slash",me.SHIELD_WITH_AVATAR="person_shield",me.SHOPPING_BAG=
"bag",me.SHOPPING_BAG_CAIRO="bag",me.SHOPPING_CART="cart",me.SHORTS_COMMENT="text_bubble",me.SHORTS_DISLIKE="thumb_down",me.SHORTS_LIKE="thumb_up",me.SHORTS_SHARE="share",me.SKIP_FORWARD_30="skip30_forward",me.SLASH_CIRCLE_LEFT="circle_slash",me.SLASH_CIRCLE_RIGHT="circle_slash",me.SLOW_MODE="bubble_slow",me.SLOW_MODE_OFF="text_bubble",me.SOCIAL="person_child",me.SPARKLE="sparkles",me.SPARK_IMAGE="image_spark",me.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",me.SPARK_PENCIL="pencil_spark",me.SPARK_RADAR=
"spark_waves",me.SPARK_VIDEO="video_spark",me.SPEAKER_GROUP="speaker_stack",me.SPEAKER_OFF="speaker_slash",me.SPEED_1X="n1x",me.SPEED_1_POINT_2X="n1point2x",me.SPEED_1_POINT_5X="n1point5x",me.SPEED_1_POINT_8X="n1point8x",me.SPEED_2X="n2x",me.SPONSORSHIP_STAR="star_circle",me.SPORTS="basketball",me.SPOTLIGHT="spotlight",me.STAFF_PICK="spotlight",me.START_DVR="add",me.STAR_BORDER="star",me.STAR_CIRCLE_RIBBON="memberships_gift",me.STAR_HALF="star_full_half",me.STAR_SHOOTING="hype",me.STICKER="sticker",
me.STICKER_EMOTICON="face_happy",me.STOP_DVR="stop",me.SUBSCRIBE="youtube",me.SUBSCRIBE_PLUS="add",me.SUBSCRIPTION_MANAGER="gear",me.SUPERSTAR="super_star",me.SUPERVISOR_ACCOUNT="person_child",me.SUPER_CHAT_FOR_GOOD="hands_heart",me.SWAP_HORIZ="arrow_swap_horizontal",me.SWITCH_ACCOUNTS="person_square_stack",me.TAB_ACCOUNT="person",me.TAB_ACTIVITY="bell",me.TAB_BOOKMARK="bookmark",me.TAB_EXPLORE="compass",me.TAB_HOME="home",me.TAB_HOME_CAIRO="home",me.TAB_INBOX="mail",me.TAB_LIKED="thumb_up",me.TAB_MUSIC_PREMIUM=
"youtube_music",me.TAB_SHORTS="shorts",me.TAB_SHORTS_CAIRO="shorts",me.TAB_SUBSCRIPTIONS="subscriptions",me.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",me.TAB_TRENDING="trending",me.TARGET="target",me.TARGET_ADD="target_add",me.TEMPLATE_ADD="template_add",me.TEXT="font",me.TICKET_STAR="star_ticket",me.TIMER="stopwatch",me.TRENDING_CAIRO="trending",me.TRENDING_DOWN="arrow_trend_down",me.TRENDING_UP="arrow_trend_up",me.TROPHY_CAIRO="trophy",me.TROPHY_CELEBRATIONS="fireworks",me.TROPHY_STAR="star_trophy",
me.TUNE="adjust",me.TV_OFF="tv_slash",me.UNBLOCK_USER="minus_circle",me.UNFAVORITE="thumb_down",me.UNLIMITED="youtube",me.UNPLUGGED_LIVE_GUIDE="live",me.UNPLUGGED_SPORTS="eye_slash",me.UPLOADS="play_square_stack",me.UP_ARROW="arrow_up",me.VERTICAL_ALIGN_BOTTOM="chevron_down_end",me.VERTICAL_ALIGN_TOP="chevron_up_end",me.VERY_HAPPY="face_very_happy",me.VERY_SAD="face_very_sad",me.VIDEOS="play_circle",me.VIDEO_CALL="video_camera_add",me.VIDEO_LIBRARY_WHITE="play_square_stack",me.VIDEO_QUALITY_4K="n4k",
me.VIDEO_QUALITY_8K="n8k",me.VIDEO_YOUTUBE="youtube",me.VIEW_LIST_CAIRO="view_list",me.VIEW_MODULE="view_column3_row2",me.VISIBILITY="eye",me.VISIBILITY_OFF="eye_slash",me.VOLUME_DOWN="volume_min",me.VOLUME_MUTE="volume_mute",me.VOLUME_OFF="volume_mute",me.VOLUME_STABLE="stable_volume",me.VOLUME_UP="volume_max",me.WALLPAPER="image",me.WARNING="alert_triangle",me.WATCH_HISTORY="history",me.WATCH_HISTORY_CAIRO="history",me.WATCH_LATER="clock",me.WATCH_LATER_CAIRO="clock",me.WATCH_RELATED_MIX="mix",
me.WHAT_TO_WATCH="home",me.YOUTUBE_LINKED_TV="tv_mobile",me.YOUTUBE_MUSIC_MONOCHROME="youtube_music",me.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",me.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",me.YOUTUBE_SHORTS_ARROW_UP="arrow_up",me.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",me.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",me.YOUTUBE_SHORTS_OUTLINE_24="shorts",me.YT_OUTLINE_MUSIC_24="audio",me);var FKs={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,9,16],[1,9,18],[1,9,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],dot:[[0,2,12],[0,2,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,
24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],
face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],
film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,
4,16],[0,4,24],[1,4,24]],font_square_spark:[[1,1,16],[1,1,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,
1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,
2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],
[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,
3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,
5,16],[1,5,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,
1,24]],mic:[[0,14,24],[1,14,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,
3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,
1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,10,16],[1,10,18],[1,10,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,7,12],[0,7,13],[0,7,16],[0,7,24],[0,7,48],[1,7,13],[1,7,16],[1,7,24]],person_2:[[1,
1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_square_spark:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,
2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,
9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,3,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,
2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],
screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,5,24,!0],
[1,5,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,3,24]],shadow_soft:[[0,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,
1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,
24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,10,12],[0,10,16],[0,10,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,
16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,
6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,3,12],[0,3,16],[0,3,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,5,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],
[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,
2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,4,24],[1,4,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,
24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,
1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],
volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],
youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var QbO={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cart_spark:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,
24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,3,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,9,12],[1,9,24]],chevron_up_circle:[[0,
3,24],[1,3,24]],chevron_up_end:[[1,1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,8,24],[1,8,24]],circle_full:[[0,3,24]],circle_full_half:[[0,1,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_slash:[[1,1,24]],clapperboard_sparkles:[[0,2,24],[1,2,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,
1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,2,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,
2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cube_spark:[[1,1,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],
document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,2,12],[0,2,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,
24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,
10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],
flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_spark:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_square_spark:[[1,1,18],[1,1,24]],font_strikethrough:[[1,1,24]],
font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],globe_image:[[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,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,
2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,
1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],
magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,14,18],[0,14,24],[0,14,36],[0,14,48],[1,14,18],[1,14,24],[1,14,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],
mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,3,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,
1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,2,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,
2,24]],pause_history:[[1,1,24]],pawprint:[[0,2,24],[1,2,24]],pdf:[[1,2,24]],pencil:[[0,10,24],[1,10,18],[1,10,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,7,24],[1,7,12],[1,7,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,
2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_spark:[[0,1,24],[1,1,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],
[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_pause:[[0,1,24],[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,
24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,
2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,3,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,
1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],
sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,7,18,!0],[0,7,24,!0],[1,7,18,!0],[1,7,24,!0]],shadow:[[1,1,24]],shadow_hard:[[0,3,24],[1,3,24]],shadow_soft:[[0,3,24],[1,3,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,
1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_add:[[1,1,18],[1,1,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],
skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],slip:[[1,1,18],[1,1,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,11,12],[0,11,24],[1,11,24]],spark_bubble_chat:[[1,1,24]],spark_lightbulb:[[0,3,24],[1,3,24]],spark_waves:[[0,
2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[0,2,24],[1,2,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,3,24],[1,3,18],[1,3,24]],stable_volume:[[0,
2,24],[1,2,24]],star:[[0,6,12],[0,6,24],[1,6,12],[1,6,24]],star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_full_half:[[0,1,12],[0,1,24]],star_half_filled:[[1,2,12],[1,2,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,6,24],[0,6,36],[1,6,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,
4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],
[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,4,24],[1,4,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,
1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,
4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_reverse:[[1,1,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column2:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],
volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wifi_tethering:[[1,1,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,
24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var a1W={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},iQ=function(m){this.iconUrlProvider=m};
iQ.prototype.resolveIcon=function(m,G){var K=a1W[m.iconName.toUpperCase()];K&&(m.iconName=K);var W=m.iconName;W=W.replace(/-/g,"_");m=Object.assign({},m,{iconName:this.mapIconTypeToStandardName(W,!!K)||W.toLowerCase()});if(_.F("enable_web_delhi_icons")||K){var L;return uUd(QbO,m,((L=this.iconUrlProvider)==null?void 0:L.getYtStandardUrl)||NuM,G)}var A;return uUd(FKs,m,((A=this.iconUrlProvider)==null?void 0:A.getYtStandardUrl)||Jc9,G)};
iQ.prototype.mapIconTypeToStandardName=function(m,G){return _.F("enable_web_delhi_icons")||G?th6[m.toUpperCase()]:Dj5[m.toUpperCase()]};
iQ[XF]=[_.fn(pEs)];var oyE=new Set("audio_badge offline_pause pause play_all play_arrow sponsorship_star youtube_music".split(" ")),nyO=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),b6u=function(m){this.urlProvider=this.iconUrlProvider=m};
_.n(b6u,iQ);
b6u.prototype.resolveIcon=function(m,G){m.iconName==="youtube_logo"&&(m.iconName="yt-logo-updated");if(m.iconName==="youtube_premium_logo"||m.iconName==="youtube_red_logo")m.iconName="yt-logo-red-updated";var K=Object.assign({},m);m.iconName==="menu"&&(_.F("enable_web_delhi_icons")||(K.iconName="bars_3"),K.iconStyle="youtube_outline");m.iconSetName==="socialNetworksRound"&&(m.iconName==="mail"&&(K.iconName="email"),m.iconName==="embed"&&(K.iconSize=60));m.iconName==="more"&&(K.iconName="overflow_horizontal");
m.iconName==="fullscreen"&&(K.iconName="screen_full");m.iconName==="premium_standalone"&&(K.iconName="premium_standalone_cairo");_.F("enable_connect_icon_update_web")&&m.iconName==="account_linked"&&(K.iconName="circles_overlap_check",K.iconStyle="youtube_fill");_.F("enable_connect_icon_update_web")&&m.iconName==="account_unlinked"&&(K.iconName="circles_overlap",K.iconStyle="youtube_outline");oyE.has(m.iconName)&&(K.iconStyle="youtube_fill");if(_.F("enable_web_delhi_icons")){m.iconName==="playlist_add"&&
(K.iconName="bookmark");m.iconName==="offline_pin"&&(K.iconName="arrow_down_circle",K.iconStyle="youtube_fill");if(m.iconName==="circles_overlap_check"||K.iconName==="circles_overlap_check")K.iconName="account_link",K.iconStyle="youtube_fill";nyO.has(m.iconName)&&(K.iconName+="_updated")}m=Object.assign({},K,{iconName:(iQ.prototype.mapIconTypeToStandardName.call(this,K.iconName)||K.iconName).toLowerCase()});var W;return(m=uUd(uJz,m,((W=this.urlProvider)==null?void 0:W.getUrl)||Dwo,G))?m:iQ.prototype.resolveIcon.call(this,
K,G)};
b6u[XF]=[_.fn(pEs)];_.vy6=1;var G8=function(m,G){this.JSC$17768_commandHandler=m;this.innertubeTransportService=G};
_.n(G8,te);G8.prototype.resolveCommand=function(m,G){var K=this,W,L,A;return _.Y(function(O){return(W=_.Q(m,IRP))?O.return($ju(K,W,(L=G)==null?void 0:(A=L.form)==null?void 0:A.element)):O.return()})};
var $ju=function(m,G,K){G={profileCardContext:G.profileCardContext,profileOwnerExternalChannelId:G.profileOwnerExternalChannelId};var W=_.sv(ReR);return _.Jf(m.innertubeTransportService,G,W).then(function(L){if(!L)throw new _.cw("GetProfileCard failed");if(L=L.popupCommand){m.JSC$17768_commandHandler.resolveCommand(L,{form:{element:K}});_.PB(_.l1(),66557);L=L==null?void 0:L.clickTrackingParams;var A=_.wU();L&&A&&_.l1().graftServerVe(L,A)}})};
G8[XF]=[_.S1,_.Tv];var Kw=function(){};
_.n(Kw,te);Kw.prototype.resolveCommand=function(m){var G,K;return _.Y(function(W){G=_.Q(m,elX);if(!G)return W.return();K=Number(G.enableDelayedPacfLoggingTvMs);if(isNaN(K)){var L=RX();YCo(L,G,0)}else YCo(RX(),G,K);_.ey(W)})};_.WC=function(){};
_.n(_.WC,te);
_.WC.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h;return _.Y(function(J){W=_.Q(m,fRk);A=(L=G.form)==null?void 0:L.element;c=(O=A)==null?void 0:O.closest("ytd-enforcement-message-view-model");if(!W||!c)return J.return();K.allowAdsAction||(u=W.fundingChoiceInstructionPageUrl,K.allowAdsAction=new Oc4(window,_.Ql(u)));var N=K.allowAdsAction;N.wallElement=c;N.allowAdsPopup.style.setProperty("display","flex","important");var D=N.scrollManager;D.isScrollingEnabled&&(D.originalBodyOverflow=D.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow,
D.JSC$10307_domHelper.JSC$9633_document_.body.style.overflow="hidden",D.isScrollingEnabled=!1);N.wallElement.style.setProperty("display","none","important");$q0(N.accessibilityManager,N.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((h=K.allowAdsAction.allowAdsPopup)&&h instanceof HTMLElement)for(N=_.g(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),D=N.next();!D.done;D=N.next()){var t=_.g(D.value);D=t.next().value;t=t.next().value;
h.style.setProperty(D,t)}_.ey(J)})};
_.WC.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Lw=function(){};
_.n(Lw,te);Lw.prototype.resolveCommand=function(m){var G;return _.Y(function(K){G=_.Q(m,mSG);if(!G)return K.return();lxf(m);_.ey(K)})};_.AJ=new _.sX("AI_CHAT_CONTROLLER_TOKEN");var wk=function(m,G,K,W){this.JSC$17783_commandHandler=m;this.store=G;this.getPlayerCb=K;this.aiChatController=W};
_.n(wk,te);wk.prototype.pageContext=function(){var m=_.DE.currentPageSubTypeSelector(this.store.getState()),G;return(G=this.aiChatController)==null?void 0:_.sbz(G,m)};
wk.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O;return _.Y(function(c){K=_.Q(m,mho);L=(W=K)==null?void 0:W.command;if(!L)return c.return();switch((O=K)==null?void 0:O.decorationType){case "FORM_DATA_DECORATOR_COMMAND_TYPE_AI_COMPANION_PANEL_REQUEST":var u="youchat-"+Date.now(),h;var J=String(Math.floor(((h=G.getPlayerCb())==null?void 0:h.getCurrentTime())||0)*1E3);A={inputComposerFormData:{clientMessageId:u,playerOffsetMs:J,pageContext:G.pageContext()}}}if(!A)return c.return();G.JSC$17783_commandHandler.resolveCommand(L,
{form:{formData:A}});_.ey(c)})};
wk[XF]=[_.S1,_.wR,X_v,_.fn(_.AJ)];var qiq=new _.sX("SESSION_STORAGE");var gk=function(m){this.sessionStorage=m("conversations")};
_.n(gk,te);gk.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){K=_.Q(m,i2R);if(!K)return W.return();K.conversationId?G.sessionStorage.set("conversation_id",K.conversationId):G.sessionStorage.remove("conversation_id");_.ey(W)})};
gk[XF]=[qiq];var Ol=function(m){this.JSC$17795_commandHandler=m};
_.n(Ol,te);
Ol.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1){K=_.Q(m,baC);if((W=K)==null||!W.text||!navigator.clipboard)return J.return();_.IO(J,2);return J.yield(navigator.clipboard.writeText(K.text),4)}if(J.nextAddress!=2){if(!K.successActions||K.successActions.length===0)return J.return();L=_.g(K.successActions);for(A=L.next();!A.done;A=L.next())O=A.value,G.JSC$17795_commandHandler.resolveCommand(O);return _.IG(J,0)}_.ye(J);if(!K.failureActions||K.failureActions.length===
0)return J.return();c=_.g(K.failureActions);for(u=c.next();!u.done;u=c.next())h=u.value,G.JSC$17795_commandHandler.resolveCommand(h);_.ey(J)})};
Ol[XF]=[_.S1];var cC=function(m){this.JSC$17799_commandHandler=m};
_.n(cC,te);
cC.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){switch(t.nextAddress){case 1:W=_.Q(m,wTS);if(!W)return t.return();_.IO(t,2);if(!W.imageBytes&&!W.imageUrl)throw Error("Ei");if(!W.imageUrl){if(W.imageBytes){A=W.imageBytes;O=A.replace(/-/g,"+").replace(/_/g,"/");var a=aKo(O);L=_.T7(a)}t.jumpTo(4);break}return t.yield(fetch(W.imageUrl),5);case 5:return c=t.yieldResult,t.yield(c.blob(),6);case 6:u=t.yieldResult,L=_.T7(u);case 4:N=(h=G)==null?void 0:(J=h.form)==
null?void 0:J.element;D=document.createElement("a");Gp(D,L);N.appendChild(D);D.download="";D.click();N.removeChild(D);URL.revokeObjectURL(_.Ue(L));W.successCommand&&K.JSC$17799_commandHandler.resolveCommand(W.successCommand);_.IG(t,0);break;case 2:_.ye(t),W.errorCommand&&K.JSC$17799_commandHandler.resolveCommand(W.errorCommand),_.ey(t)}})};
cC[XF]=[_.S1];var Y9=function(m){this.store=m};
_.n(Y9,te);Y9.prototype.resolveCommand=function(m){var G=this,K,W,L;return _.Y(function(A){W=(K=_.Q(m,_.iUl))==null?void 0:K.entityBatchUpdate;if(!W)return A.jumpTo(0);L=Object.assign({},W,{mutations:[].concat(_.Bz(W.mutations||[]))});return A.yield(_.UG(L,G.store),0)})};
Y9[XF]=[VM];var Ey5=function(m){this.JSC$17806_commandHandler=m;this.feedbackDialogMap=new Map};
Ey5.prototype.openDialog=function(m,G){(m=this.feedbackDialogMap.get(m))&&this.JSC$17806_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:m}},G)};
Ey5[XF]=[_.S1];var H6P=new _.sX("FEEDBACK_CONTROLLER_TOKEN");var rk=function(m,G,K,W){this.dispatch=m;this.controller=G;this.JSC$17809_commandHandler=K;this.innertubeTransportService=W};
_.n(rk,te);
rk.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV;return _.Y(function(DF){switch(DF.nextAddress){case 1:W=_.Q(m,_.cX);if(A=(L=W)==null?void 0:L.contentId)for(c=_.g(((O=W)==null?void 0:O.actions)||[]),u=c.next();!u.done;u=c.next())h=u.value,I1D(K,h,A);D=(J=G)==null?void 0:(N=J.form)==null?void 0:N.element;return _.F("wug_feedback_endpoint_use_its")?(v=new _.pz,v.endpoint=m,Z=_.to(K.innertubeTransportService,m,(I=G)==null?void 0:I.form),v.ajaxPromise=
Z,_.Zw(D,"yt-service-request-sent",v),DF.yield(Z,5)):DF.yield(_.yQ(D,[m,{impression:(a=G)==null?void 0:a.disableClickTracking}]).catch(function(){}),4);
case 4:t=DF.yieldResult;DF.jumpTo(3);break;case 5:t=DF.yieldResult,_.Zw(D,"yt-service-request-completed",{data:t});case 3:f=((k=t)==null?void 0:(z=k.data)==null?void 0:z.feedbackResponses)||((X=t)==null?void 0:X.feedbackResponses);if((U=f)==null?0:U.length)(Ls=(l=f[0])==null?void 0:l.followUpDialog)&&A&&(gd=K.controller)!=null&&gd.feedbackDialogMap.set(A,Ls),(JV=(Qf=f[0])==null?void 0:Qf.isThumbnailReporting)&&K.JSC$17809_commandHandler.resolveCommand({signalAction:{signal:"CLOSE_POPUP"}});_.ey(DF)}})};
var I1D=function(m,G,K){var W=_.Q(G,_.xu);if(W){W=_.g(W.commands||[]);for(var L=W.next();!L.done;L=W.next())I1D(m,L.value,K)}_.Q(G,_.Rk)&&m.dispatch(_.Bp("commandEntity",A2d(K),{key:K,command:G}));_.Q(G,PBC)&&m.dispatch(_.Bp("commandEntity",A2d(K),{key:K,command:G}))};
rk[XF]=[bwF,H6P,_.S1,_.Tv];var uQ=function(m){this.controller=m};
_.n(uQ,te);uQ.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O;return _.Y(function(c){W=_.Q(m,_.qF);A=(L=W)==null?void 0:L.targetId;if(((O=W)==null?void 0:O.signal)!=="TELL_US_WHY"||!A)return c.return();K.controller.openDialog(A,G);_.ey(c)})};
uQ[XF]=[H6P];var hJ=new _.sX("APP_STORE_TOKEN");var pw=function(m){this.store=m};
_.n(pw,te);pw.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h;return _.Y(function(J){W=_.Q(m,FOs);A=(L=W)==null?void 0:L.contentId;u=(O=G)==null?void 0:(c=O.form)==null?void 0:c.element;h=_.yQ(u,[m]);A&&K.undo(A);return J.yield(h,0)})};
pw.prototype.undo=function(m){this.store.dispatch(_.Bp("commandEntity",A2d(m),{key:m,command:void 0}))};
pw[XF]=[hJ];var JJ=function(m){this.JSC$17821_commandHandler=m};
_.n(JJ,te);JJ.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){K=_.Q(m,FHo);W=K.flowStateKey;L=K.validationFailureCommand;A=K.submitValidFormCommand;O=jHV(_.sU,[W||""]);c=_.Q(O,oYB);((u=c)==null?0:u.isValid)&&A&&G.JSC$17821_commandHandler.resolveCommand(A);((h=c)==null?0:h.isValid)||!L||G.JSC$17821_commandHandler.resolveCommand(L);_.ey(J)})};
JJ[XF]=[_.S1];var NH=function(m){this.innertubeTransportService=m};
_.n(NH,te);NH.prototype.resolveCommand=function(m,G){var K=this,W;return _.Y(function(L){return L.yield(_.to(K.innertubeTransportService,m,(W=G)==null?void 0:W.form).then(function(A){var O,c;G==null||(O=G.commandController)==null||(c=O.onSuccess)==null||c.call(O,m,A)},function(A){var O,c;
G==null||(O=G.commandController)==null||(c=O.onServerError)==null||c.call(O,m,A)}),0)})};
NH[XF]=[_.Tv];var DI=function(){};
_.n(DI,te);DI.prototype.resolveCommand=function(m){var G,K,W,L;return _.Y(function(A){if(G=_.Q(m,_.Q_P)){if(K=G.gtmId)W=_.E8("GL",""),_.MQ(K,W);(L=G.gtmData)&&_.TX(L)}_.ey(A)})};var tJ=function(m,G,K){this.innertubeTransportService=m;this.JSC$17832_actionRouter=G;this.JSC$17832_screenManager=K};
_.n(tJ,te);tJ.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){K=_.Q(m,uM2);if(!K)return L.return();W=K.command;if(!W)return L.return();G.JSC$17832_actionRouter.triggerAction("yt-insert-rich-section-action",K);return L.yield(_.to(G.innertubeTransportService,W,{disableCache:!0}).then(function(A){m.clickTrackingParams&&(A==null?0:A.trackingParams)&&G.JSC$17832_screenManager.graftServerVe(A.trackingParams,_.m5(m.clickTrackingParams))}),0)})};
tJ[XF]=[_.Tv,s7,_.m_];naf.bind(null,Fp);var jb5=naf.bind(null,vMC);vaG.bind(null,Fp);var kFO=vaG.bind(null,vMC);sVJ.bind(null,Fp);var C$O=sVJ.bind(null,vMC);var F7=function(){};
_.n(F7,te);
F7.prototype.resolveCommand=function(m){var G,K,W,L,A,O,c,u,h,J;return _.Y(function(N){G=_.Q(m,TvS);if(!G)return N.return();W=((K=G.operations)==null?void 0:K.operations)||[];L=_.g(W);for(A=L.next();!A.done;A=L.next())if(O=A.value,O.insertItemSectionContent){var D=O.insertItemSectionContent,t=D.contents||[];D.insertByPositionInSection?jb5(D.insertByPositionInSection.sectionTargetId,t,D.insertByPositionInSection.position):D.insertByRelativePositionInSection&&D.insertByRelativePositionInSection.sectionTargetId&&D.insertByRelativePositionInSection.itemTargetId&&
kFO(D.insertByRelativePositionInSection.sectionTargetId,D.insertByRelativePositionInSection.itemTargetId,t,D.insertByRelativePositionInSection.relativePosition)}else O.replaceSection?(D=O.replaceSection,t={},D.replaceByTargetId?t=D.replaceByTargetId:D.replaceByGroupId&&(t={targetId:D.replaceByGroupId.groupId,newContent:D.replaceByGroupId.newContent,undoKey:""}),t.newContent&&qq2(t.targetId,{continuationItems:[t.newContent]})):O.removeItem?(D=O.removeItem,D.removeByTargetId&&D.sectionTargetId&&C$O(D.sectionTargetId,
D.removeByTargetId.targetIds||[])):O.removeSection&&(O.removeSection.removeByTargetId?(c=void 0,VhW(((c=O.removeSection)==null?void 0:c.removeByTargetId.targetIds)||[])):O.removeSection.removeByGroupId&&(u=void 0,VhW(((u=O.removeSection)==null?void 0:u.removeByGroupId.groupIds)||[])));J=((h=G.operations)==null?void 0:h.scrollConfig)||{};Z6i(J);_.ey(N)})};
var VhW=function(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next())qq2(G.value,{continuationItems:[]})},Z6i=function(m){if(m.scrollToItem){var G=m.scrollToItem.item||{},K=G.itemTargetId;
G=G.sectionTargetId;if(K&&G){var W=document.querySelector("[data-target-id="+G+"]"),L=W==null?void 0:W.querySelector("[data-target-id="+K+"]");W&&L&&setTimeout(function(){var A=L.offsetTop-W.offsetTop,O;if(((O=m.scrollToItem)==null?void 0:O.scrollPosition)==="SCROLL_POSITION_CENTER")A-=W.offsetHeight/2,A+=L.offsetHeight/2;else{var c;((c=m.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_END"&&(A-=W.offsetHeight,A+=L.offsetHeight)}var u;W.scroll({top:A,behavior:(m==null?void 0:(u=m.animationConfig)==
null?void 0:u.enableAnimation)===!1?"instant":"smooth"})},100)}}};var Qh=new _.sX("CLIENT_NAME_TOKEN");var djz=new _.sX("DEFAULT_STORE_EXPIRATION_TOKEN");var sMk=new _.sX("CLIENT_LOCATION_SERVICE_TOKEN");var aK=function(m,G,K){this.clientName=m||_.E8("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=G||_.FC.getInstance();this.JSC$17861_commandHandler=K||_.xe.instance};
_.n(aK,te);aK.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){W=(K=_.Q(m,Cuo))==null?void 0:K.onComplete;G.clientLocationService.clearLocationPlayabilityToken(G.clientName);W&&G.JSC$17861_commandHandler.resolveCommand(W);_.ey(L)})};
aK[XF]=[Qh,sMk,_.S1];var oK=function(m){this.innertubeTransportService=m};
_.n(oK,te);oK.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O;return _.Y(function(c){A=(W=G)==null?void 0:(L=W.form)==null?void 0:L.element;return c.yield(_.to(K.innertubeTransportService,m,(O=G)==null?void 0:O.form).then(function(u){sZ6(A,new CustomEvent("yt-service-request-completed"),{data:u},_.E8("openPopupConfig"))}),0)})};
oK[XF]=[_.Tv];var nw=function(){};
_.n(nw,te);nw.prototype.resolveCommand=function(m){var G,K;return _.Y(function(W){G=_.Q(m,$Al);K=document.querySelector("mini-app-container-view-model");if(!G||!K)return W.return();G.isPlaying?K.dispatchEvent(new Event("play")):K.dispatchEvent(new Event("pause"));_.ey(W)})};var bQ=function(){};
_.n(bQ,te);bQ.prototype.resolveCommand=function(m){var G,K,W,L,A,O,c;return _.Y(function(u){G=_.Q(m,uBi);if((K=G)==null||!K.paramKeys)return u.return();W=G.paramKeys;L=_.jU(window.location.href);A=_.g(W);for(O=A.next();!O.done;O=A.next())c=O.value,L.JSC$10339_queryData_.remove(c);window.history.replaceState(window.history.state,document.title,L.toString());_.ey(u)})};var P$s=function(){this.dropdownMap=new Map};_.yUG=new _.sX("DROPDOWN_CONTROLLER_TOKEN");var vC=function(m){this.controller=m};
_.n(vC,te);vC.prototype.resolveCommand=function(m){var G=this,K,W,L,A;return _.Y(function(O){K=_.Q(m,fnX);if(!K)return O.return();W=K;L=W.dropdownId;A=W.selectedOptionIndex;if(L===void 0||A===void 0)return O.return();var c=G.controller.dropdownMap.get(L);c&&c(A);_.ey(O)})};
vC[XF]=[_.yUG];var $9=function(m){this.controller=m};
_.n($9,te);$9.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){return(K=_.Q(m,ljR))?W.yield(G.controller.closeDialog(),0):W.return()})};
$9[XF]=[_.Ar];var sl=function(m){this.controller=m};
_.n(sl,te);sl.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){K=_.Q(m,IqX);if(!K)return L.return();var A,O=K.panelIdentifier||((A=K.identifier)==null?void 0:A.tag);if(!O)throw Error("Fi");return(W=O)?L.yield(G.controller.hidePanel({identifier:W}),0):L.jumpTo(0)})};
sl[XF]=[_.Wx];var qH=function(m){this.controller=m};
_.n(qH,te);qH.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){return(K=_.Q(m,QuX))?W.yield(G.controller.closeSheet(),0):W.return()})};
qH[XF]=[_.Lk];var El=function(m,G){this.innertubeTransportService=m;this.controller=G};
_.n(El,te);El.prototype.resolveCommand=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K=_.Q(m,jnK),(W=K)!=null&&W.panelId?O.yield(G.controller.getReloadContinuation(K.panelId),2):O.return();if(O.nextAddress!=3)return(L=O.yieldResult)?O.yield(_.to(G.innertubeTransportService,m,{continuation:L}),3):O.return();A=O.yieldResult;return O.yield(G.controller.updatePanel({identifier:K.panelId,panelContents:A.content,shouldFocus:!1}),0)})};
El[XF]=[_.Tv,_.Wx];var HC=function(m,G,K){this.innertubeTransportService=m;this.JSC$17902_screenManager=G;this.JSC$17902_commandHandler=K};
_.n(HC,te);
HC.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1){K=_.Q(m,_.sE2);if(!K)return u.return();if(K.commands)for(W=_.g(K.commands),L=W.next();!L.done;L=W.next())A=L.value,G.JSC$17902_commandHandler.resolveCommand(A,{disableClickTracking:!0});O=_.m5(m.clickTrackingParams);_.PB(G.JSC$17902_screenManager,21760,O,{layer:7,parentLayer:0});return u.yield(_.to(G.innertubeTransportService,m),2)}c=u.yieldResult;if(!c)return u.return();G.JSC$17902_screenManager.graftServerVe(c.trackingParams,O,
7);_.ey(u)})};
HC[XF]=[_.Tv,_.m_,_.S1];var IK=new _.sX("PANEL_LOADING_STRATEGY_TOKEN");var jv=function(m,G){this.controller=m;this.panelLoadingStrategy=G};
_.n(jv,te);
jv.prototype.resolveCommand=function(m,G){var K=this,W,L,A;return _.Y(function(O){W=_.Q(m,ojo);if((L=W)==null||!L.panelLoadingStrategy)return O.return();A=function(c){var u,h,J,N,D,t,a,v,I,Z;return _.Y(function(k){h=_.Q((u=c.dialogViewModel)==null?void 0:u.header,xS0);J={viewModel:c.dialogViewModel};N={};if(a=_.F("web_enable_dialog_header_label")?(D=h)==null?void 0:(t=D.headline)==null?void 0:t.content:void 0)N.ariaLabel=a;W.dismissOnBackgroundTap===!1&&(N.isModal=!0);return c.dialogViewModel?k.yield(K.controller.openDialog(J,
(Z=(v=G)==null?void 0:(I=v.form)==null?void 0:I.element)!=null?Z:document.body,N),0):k.return()})};
return O.yield(K.panelLoadingStrategy.execute({command:m,data:W.panelLoadingStrategy,renderFn:A,createScreenConfig:{layer:4}}),0)})};
jv[XF]=[_.Ar,IK];var k9=function(m,G,K){this.innertubeTransportService=m;this.controller=G;this.JSC$17922_screenManager=K};
_.n(k9,te);
k9.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z;return _.Y(function(k){switch(k.nextAddress){case 1:W=_.Q(m,_.Oa);if(!W)return k.return();var z,X=W.panelIdentifier||((z=W.identifier)==null?void 0:z.tag);if(!X)throw Error("Fi");L=X;return k.yield(K.controller.isVisible(L,!0),2);case 2:if((A=k.yieldResult)&&W.blockIfPanelOpen)return k.return();u=(c=(O=K.controller).getPanelContent)==null?void 0:c.call(O,L);if(!(z=u))if(W){var f;z=((f=W.globalConfiguration)==null?void 0:
f.initialState)||W.engagementPanel;if(f=!z)f=!!(W==null?0:(X=W.engagementPanelPresentationConfigs)==null?0:X.engagementPanelPopupPresentationConfig);f&&(z=_.qNJ(W.panelIdentifier,W.identifier))}else z=void 0;h=z;J=W.engagementPanelPresentationConfigs;N=W.engagementPanelExtras;return k.yield(K.controller.showPanel({identifier:L,panelContents:h,config:J,extras:N,target:(D=G)==null?void 0:(t=D.form)==null?void 0:t.element}),3);case 3:if(!W.globalConfiguration){k.jumpTo(0);break}if(W.globalConfiguration.reuseModelAndState&&
_.F("enable_ai_companion")&&(I=(v=(a=K.controller).getPanelContent)==null?void 0:v.call(a,L)))return k.return();_.PB(K.JSC$17922_screenManager,32633);return k.yield(_.to(K.innertubeTransportService,m),5);case 5:return Z=k.yieldResult,K.JSC$17922_screenManager.graftServerVe(Z.trackingParams),k.yield(K.controller.updatePanel({identifier:L,panelContents:Z.content,shouldFocus:!0,extras:N,updatePanelContinuationData:Z.updatePanelContinuationData}),0)}})};
k9[XF]=[_.Tv,_.Wx,_.m_];var Cw=function(m,G){this.controller=m;this.panelLoadingStrategy=G};
_.n(Cw,te);
Cw.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a;return _.Y(function(v){W=_.Q(m,_.MW);if((L=W)==null||!L.panelLoadingStrategy)return v.return();c=e_O(K.controller,(A=G)==null?void 0:(O=A.form)==null?void 0:O.element);h=(u=W.contextualSheetPresentationConfig)==null?void 0:u.position;N=(J=W.contextualSheetPresentationConfig)==null?void 0:J.hoverConfig;t=(D=W.contextualSheetPresentationConfig)==null?void 0:D.expandToFullWidth;a=function(I){var Z,k;return _.Y(function(z){if(!I.sheetViewModel)return z.return();if(N){var X=
K.controller;X.shouldPreventClosingWhileHovered=!!N.preventCloseWhileHovered;var f;X.hideDelayMs=(f=N.hideDelayMs)!=null?f:0}return z.yield(K.controller.openSheet({viewModel:I.sheetViewModel,sheetPosition:h,expandToFullWidth:t},c,(Z=G)==null?void 0:(k=Z.form)==null?void 0:k.element),0)})};
return v.yield(K.panelLoadingStrategy.execute({command:m,data:W.panelLoadingStrategy,renderFn:a,createScreenConfig:{layer:0}}),0)})};
Cw[XF]=[_.Lk,IK];var Vh=function(m,G){this.controller=m;this.JSC$17933_commandHandler=G};
_.n(Vh,te);Vh.prototype.resolveCommand=function(m,G){var K=this,W,L,A;return _.Y(function(O){if(O.nextAddress==1){W=_.Q(m,Z8P);var c=_.Q(W.showCommand,_.Oa),u,h,J=(h=c==null?void 0:c.panelIdentifier)!=null?h:c==null?void 0:(u=c.identifier)==null?void 0:u.tag;if(!J)throw Error("Gi");L=J;return O.yield(K.controller.isVisible(L),2)}return(A=O.yieldResult)?O.yield(K.controller.hidePanel({identifier:L}),0):O.yield(K.JSC$17933_commandHandler.resolveCommand(W.showCommand,G),0)})};
Vh[XF]=[_.Wx,_.S1];var ZI=function(m,G,K){this.innertubeTransportService=m;this.controller=G;this.JSC$17936_screenManager=K};
_.n(ZI,te);
ZI.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l;return _.Y(function(Ls){switch(Ls.nextAddress){case 1:return W=K=_.Q(m,xmk),L=W.targetPanelIdentifier,A=W.contentSourcePanelIdentifier,O=W.globalConfiguration,((c=L)==null?0:c.tag)&&((u=A)==null?0:u.tag)?O?Ls.yield(G.controller.showPanel({identifier:L.tag,panelContents:_.qNJ(L.tag,L)}),5):Ls.yield((D=(N=G.controller).getPanel)==null?void 0:D.call(N,A.tag),4):Ls.return();case 4:t=Ls.yieldResult;h=(a=t)==
null?void 0:(I=(v=a).getPanelContent)==null?void 0:I.call(v);Ls.jumpTo(3);break;case 5:return Ls.yield(_.to(G.innertubeTransportService,m),6);case 6:Z=Ls.yieldResult,((k=Z)==null?0:k.trackingParams)&&G.JSC$17936_screenManager.graftServerVe(Z.trackingParams),h=(z=Z)==null?void 0:z.content,J=(X=Z)==null?void 0:X.updatePanelContinuationData;case 3:if(U=(f=h)==null?void 0:f.engagementPanelSectionListRenderer)return Ls.yield(G.controller.showPanel({identifier:L.tag,panelUpdatableFields:{content:U.content,
secondaryHeaderContent:(l=U.header)!=null?l:{},targetId:U.targetId,loggingDirectives:U.loggingDirectives},updatePanelContinuationData:J}),0);Ls.jumpTo(0)}})};
ZI[XF]=[_.Tv,_.Wx,_.m_];var dk=function(){};
_.n(dk,te);dk.prototype.resolveCommand=function(m){var G,K,W;return _.Y(function(L){if(L.nextAddress==1)return(G=_.Q(m,S7X))?L.yield(_.Pp(),2):L.return();K=L.yieldResult;if(!K)return L.return();var A=K,O=(W=G)==null?void 0:W.languageCode,c;(A==null?0:(c=A.isReady)==null?0:c.call(A))&&(O=Eas(A,O))&&A.setAudioTrack(O);_.ey(L)})};var PC=function(){};
_.n(PC,ci);_.w=PC.prototype;_.w.getApiPaths=function(){return y5l};
_.w.getExtension=function(m){return _.Q(m,_.QQ)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14490_getStoreKey=function(m){if((m=this.getExtension(m))&&m.videoId){var G={videoId:m.videoId};m.playlistId&&(G.playlistId=m.playlistId);m.index&&(G.index=m.index);m.params&&(G.params=m.params);return _.FA("next",G)}};
_.w.JSC$14483_getClientScreen=function(m){var G;return((G=m.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.w.JSC$14483_buildRequest=function(m,G,K){G.videoId&&(m.videoId=G.videoId);G.playlistId&&(m.playlistId=G.playlistId);G.params&&(m.params=G.params);G.index!==void 0&&(m.playlistIndex=G.index);m.racyCheckOk=!(!K.racyCheckOk&&!G.racyCheckOk);m.contentCheckOk=!!G.contentCheckOk;K.contentPlaybackContext&&(m.autonavState=K.contentPlaybackContext.autonavState,m.playbackContext={vis:K.contentPlaybackContext.vis,lactMilliseconds:K.contentPlaybackContext.lactMilliseconds});K.prefetchPlaybackContext&&(m.context.request||
(m.context.request={}),m.context.request.isPrefetch=!0);_.F("captions_hats_killswitch")||(G=_.M$().getFlag(65),G=G!=null?!G:!1,K=!!_.Gh("yt-player-sticky-caption"),m.captionsRequested=G&&K)};
_.w.getRequestConfig=function(m){m=this.JSC$14490_getStoreKey(m);var G;m&&(G={storeStrategy:{storeKey:m}});_.F("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="wn_s",G.responseTick="wn_r");return G};
var yh=function(){};
_.n(yh,ci);yh.prototype.getApiPaths=function(){return y5l};
yh.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
yh.prototype.JSC$14483_buildRequest=function(m,G){G.token&&(m.continuation=G.token)};var ev=function(){this.innerTubeTransport=_.xS().resolve(_.Tv);this.miniplayerService=_.xS().resolve(_.pY)};
_.n(ev,te);var f1D=function(m){var G;return _.Y(function(K){G=_.E8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;m.JSC$17961_mainAppPlayer=new au(G);document.addEventListener("yt-navigate-start",m.JSC$17961_pauseOnNavigation.bind(m));_.ey(K)})},xji=function(m,G){var K,W,L,A;
return _.Y(function(O){if(O.nextAddress==1){K=new PC;W=K.JSC$14483_getRequest(G);if(!W)return O.return(void 0);L=W.innerTubeRequest;return O.yield(_.Jf(m.innerTubeTransport,L,"/youtubei/v1/next"),2)}A=O.yieldResult;var c;var u,h,J=(c=A.contents)==null?void 0:(u=c.twoColumnWatchNextResults)==null?void 0:(h=u.playlist)==null?void 0:h.playlist,N;c=(J==null?0:(N=J.contents)==null?0:N.length)?J:void 0;return O.return(c)})},XEG=function(m,G){var K,W,L,A,O;
return _.Y(function(c){if(c.nextAddress==1)return K=m.JSC$17961_mainAppPlayer,c.yield(K.api,2);if(c.nextAddress!=3)return W=c.yieldResult,G.watchCommand?c.yield(xji(m,G.watchCommand),3):c.return();L=c.yieldResult;if((A=L)==null||!A.contents)return c.return();O=L.contents.map(function(u){var h;return(h=u.playlistPanelVideoRenderer)==null?void 0:h.videoId}).filter(function(u){return!!u}).map(function(u){return{encrypted_id:u}});
W.updatePlaylist({video:O});_.ey(c)})},SiE=function(m,G){var K,W,L;
return _.Y(function(A){return A.nextAddress==1?(K=m.JSC$17961_mainAppPlayer,L=(W=G.playerParams)!=null?W:"",G.externalVideoId?A.yield(K.loadVideoWithPlayerVars({videoId:G.externalVideoId,audio_only:"1",player_params:L}),2):A.jumpTo(2)):G.watchCommand?A.yield(XEG(m,G),0):A.jumpTo(0)})};
ev.prototype.JSC$17961_pauseOnNavigation=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.pauseVideo();_.ey(W)})};
ev.prototype.pauseVideo=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.pauseVideo();_.ey(W)})};
ev.prototype.playVideo=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.playVideo();_.ey(W)})};
var R_6=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.mute();_.ey(W)})},UjO=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.unMute();_.ey(W)})};
ev.prototype.stopVideo=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return G=m.JSC$17961_mainAppPlayer,W.yield(G.api,2);K=W.yieldResult;K.stopVideo();_.ey(W)})};
var z_P=function(m,G){return _.Y(function(K){switch(K.nextAddress){case 1:switch(G){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return K.jumpTo(2);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return K.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_STOP":return K.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return K.jumpTo(5);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return K.jumpTo(6)}K.jumpTo(0);break;case 2:return K.yield(m.playVideo(),8);case 8:K.jumpTo(0);break;case 3:return K.yield(m.pauseVideo(),
9);case 9:K.jumpTo(0);break;case 4:return K.yield(m.stopVideo(),10);case 10:K.jumpTo(0);break;case 5:return K.yield(R_6(m),11);case 11:K.jumpTo(0);break;case 6:return K.yield(UjO(m),12);case 12:K.jumpTo(0)}})};
ev.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c;return _.Y(function(u){return u.nextAddress==1?(K=_.Q(m,DtF),((W=K)==null?0:W.newPlaybackParams)||((L=K)==null?0:L.controlAction)?G.JSC$17961_mainAppPlayer?u.jumpTo(2):u.yield(f1D(G),2):u.return()):((A=K)==null?0:A.newPlaybackParams)?(G.miniplayerService.isMiniplayerActive()&&((O=G.miniplayerService.getPlayerElement())==null||O.pause()),c=K.newPlaybackParams,c.externalVideoId||c.externalPlaylistId?u.yield(SiE(G,c),0):u.return()):u.yield(z_P(G,
K.controlAction),0)})};var fw=function(m){this.JSC$17967_commandHandler=m};
_.n(fw,te);
fw.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return(K=_.Q(m,RPi))?u.yield(_.Pp(),2):u.return();W=u.yieldResult;if(!W)return u.return();var h=W,J=(L=K)==null?void 0:L.languageCode,N=(A=K)==null?void 0:A.isAutoTranslated;h.getVideoData&&_.IKG(h).length&&((J=kaV(h,J,N))?h.setOption("captions","track",J):(h.setOption("captions","stickyLoading",{}),h.setOption("captions","track",{})));O=W.isSubtitlesOn()?_.zq("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.zq("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");c=_.Ev(O,5E3);G.JSC$17967_commandHandler.resolveCommand(c);_.ey(u)})};
fw[XF]=[_.S1];var x9=function(m,G){this.shortsPlayerPromise=m;this.JSC$17971_commandHandler=G};
_.n(x9,te);
x9.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1)return(K=_.Q(m,J4K))?J.yield(G.shortsPlayerPromise,2):J.return();W=J.yieldResult;var N=CyJ(W);N!=null&&N.length||(W.loadModule("captions"),N=CyJ(W));L=N;if((A=L)==null||!A.length)return O=_.zq("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.Ev(O),G.JSC$17971_commandHandler.resolveCommand(c),J.return();W.toggleSubtitles();u=W.isSubtitlesOn()?_.zq("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.zq("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");h=_.Ev(u);G.JSC$17971_commandHandler.resolveCommand(h);_.ey(J)})};
x9[XF]=[_.pfF,_.S1];var X7=function(m){this.JSC$17974_actionRouter=m;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(G,K){G.triggerAction("yt-dismiss-shopping-timely-shelf-action",K);(G=_.xS().resolve(_.fn(_.sp0)))&&G.dismissFeaturedProductOverlay()}]])};
_.n(X7,te);X7.prototype.resolveCommand=function(m){var G=this,K,W,L;return _.Y(function(A){K=_.Q(m,Bpl);if((W=K)==null||!W.overlayId)return A.return();L=G.dismissPlayerOverlayActions.get(K.overlayId);if(!L)throw Error("Hi`"+K.overlayId);L(G.JSC$17974_actionRouter,K);_.ey(A)})};
X7[XF]=[s7];var Sv=function(m){this.JSC$17978_playerPromise=m};
_.n(Sv,te);Sv.prototype.resolveCommand=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return(K=_.Q(m,CJi))?O.yield(G.JSC$17978_playerPromise,2):O.return();W=O.yieldResult;L=W.getVideoData().video_id;K.videoId===L&&(A=Number(K.offsetFromVideoStartMilliseconds),A>=0&&W.seekTo(A/1E3));_.ey(O)})};
Sv[XF]=[_.kg];var l15=_.Pk("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),RK=function(m){this.store=m};
_.n(RK,te);
var BDi=function(m){var G,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return G=_.E8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,K=_.E8("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,W=G||K,m.JSC$17982_mainAppPlayer=new au(W),A.yield(m.JSC$17982_mainAppPlayer.api,2);L=A.yieldResult;L.addEventListener("onStateChange",m.JSC$17982_playerStateChangeListener.bind(m));document.addEventListener("yt-page-data-updated",m.JSC$17982_pauseOnNavigation.bind(m));window.addEventListener("state-navigatestart",
m.JSC$17982_pauseOnNavigation.bind(m));_.ey(A)})};
RK.prototype.JSC$17982_playerStateChangeListener=function(m){switch(m){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"}Mhs(this)};
var Mhs=function(m){m.store.dispatch(_.Bp("sfvAudioItemCurrentlyPlayingEntity",l15,{key:l15,externalVideoId:m.externalVideoId,sfvAudioItemPlaybackState:m.playbackState,nowPlayingEntityValue:m.nowPlayingEntityValue}))};
RK.prototype.JSC$17982_pauseOnNavigation=function(){var m=this,G,K,W,L;return _.Y(function(A){if(A.nextAddress==1){if(!m.JSC$17982_mainAppPlayer){var O=new _.cw("Error: mainAppPlayer is unavailable",m.JSC$17982_mainAppPlayer);_.am(O);return A.return()}return A.yield(m.JSC$17982_mainAppPlayer.api,2)}G=A.yieldResult;W=(K=G)==null?void 0:K.getPlayerState();W!==1||(L=G)!=null&&L.pauseVideo();_.ey(A)})};
RK.prototype.playVideo=function(m,G,K){var W=this,L,A;return _.Y(function(O){if(O.nextAddress==1)return O.yield((L=W.JSC$17982_mainAppPlayer)==null?void 0:L.api,2);A=O.yieldResult;if(!W.JSC$17982_mainAppPlayer||!A){var c=new _.cw("Error: mainAppPlayer is unavailable",W.JSC$17982_mainAppPlayer);_.am(c);return O.return()}return O.yield(W.JSC$17982_mainAppPlayer.loadVideoWithPlayerVars({videoId:W.externalVideoId,audio_only:"1",start:m/1E3,end:m/1E3+G,player_params:K}),0)})};
RK.prototype.pauseVideo=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1){if(!m.JSC$17982_mainAppPlayer){var L=new _.cw("Error: mainAppPlayer is unavailable",m.JSC$17982_mainAppPlayer);_.am(L);return W.return()}return W.yield(m.JSC$17982_mainAppPlayer.api,2)}G=W.yieldResult;(K=G)==null||K.pauseVideo();_.ey(W)})};
RK.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X;return _.Y(function(f){if(f.nextAddress==1)return K=_.Q(m,uql),L=(W=K)==null?void 0:W.nowPlayingEntityValue,O=(A=K)==null?void 0:A.externalVideoId,N=Number((J=(c=K)==null?void 0:(u=c.defaultStartPoints)==null?void 0:(h=u[0])==null?void 0:h.offsetMs)!=null?J:"0"),Z=Number((I=(D=K)==null?void 0:(t=D.defaultStartPoints)==null?void 0:(a=t[0])==null?void 0:(v=a.duration)==null?void 0:v.seconds)!=null?I:"15"),X=(z=
(k=K)==null?void 0:k.playerParams)!=null?z:"",L&&O?G.JSC$17982_mainAppPlayer?f.jumpTo(2):f.yield(BDi(G),2):f.return();if(f.nextAddress!=6){if(G.nowPlayingEntityValue&&L===G.nowPlayingEntityValue)return G.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?f.yield(G.pauseVideo(),0):f.yield(G.playVideo(N,Z,X),0);G.externalVideoId=O;G.nowPlayingEntityValue=L;G.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return f.yield(G.playVideo(N,Z,X),6)}Mhs(G);return f.jumpTo(0)})};
RK[XF]=[VM];var Ul=function(m){this.JSC$18000_commandHandler=m};
_.n(Ul,te);Ul.prototype.resolveCommand=function(m,G){var K=this,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return(W=_.Q(m,UVF))?O.yield(_.Pp(),2):O.return();L=O.yieldResult;if(!L)return O.return();(A=V6d(L))&&K.JSC$18000_commandHandler.resolveCommand(A,G);_.ey(O)})};
Ul[XF]=[_.S1];var z8=function(m){this.JSC$18006_commandHandler=m};
_.n(z8,te);z8.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return(W=_.Q(m,zP0))?u.yield(_.Pp(),2):u.return();L=u.yieldResult;if(!L)return u.return();(A=e4d(L))?K.JSC$18006_commandHandler.resolveCommand(A,G):(O=_.zq("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),c=_.Ev(O),K.JSC$18006_commandHandler.resolveCommand(c));_.ey(u)})};
z8[XF]=[_.S1];var lQ=function(m){this.JSC$18009_playerPromise=m};
_.n(lQ,te);lQ.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return(K=_.Q(m,KBB))?L.yield(G.JSC$18009_playerPromise,2):L.return();W=L.yieldResult;W.isFullscreen()&&W.wakeUpControls();_.ey(L)})};
lQ[XF]=[_.kg];var BC=function(m){this.JSC$18012_playerPromise=m};
_.n(BC,te);BC.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){K=_.Q(m,VGR);if(!K)return c.return();W=K.overlayRenderer;return W?(L=_.Q(W,g80))?c.yield(G.JSC$18012_playerPromise,3):c.jumpTo(0):c.return()}A=c.yieldResult;A.renderChapterSeekingAnimation(1,_.bw(L.text),(O=L.icon)==null?void 0:O.iconType);_.ey(c)})};
BC[XF]=[_.kg];var MH=function(m){this.store=m};
_.n(MH,te);
MH.prototype.resolveCommand=function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1){K=_.Q(m,tiC);if(!K)return A.return();W="";(L=G.store.getState().collabInviteLink)&&K.id===L.playlistId?W=L.inviteLinkURL:K.shortUrl&&(W=K.shortUrl);return W?A.yield(navigator.clipboard.writeText(W),3):A.jumpTo(0)}var O={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zq("COPY_LINK_SUCCESS_TOAST")}}}}};_.xS().resolve(_.S1).resolveCommand(O);_.ey(A)})};
MH[XF]=[hJ];var T8=function(m,G){this.innertubeTransportService=m;this.JSC$18022_commandHandler=G};
_.n(T8,te);T8.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){if(t.nextAddress==1)return(W=_.Q(m,_.pK))?t.yield(_.to(K.innertubeTransportService,m,(L=G)==null?void 0:L.form),2):t.return();(A=t.yieldResult)&&A.errorMetadata&&(O=A,c=_.Ev(O.error.message),K.JSC$18022_commandHandler.resolveCommand(c));u=A;if((h=u)==null?0:h.actions)for(J=_.g(u.actions),N=J.next();!N.done;N=J.next())D=N.value,K.JSC$18022_commandHandler.resolveCommand(D);_.ey(t)})};
T8[XF]=[_.Tv,_.S1];var m4=function(){};
_.n(m4,te);m4.prototype.resolveCommand=function(m){var G;return _.Y(function(K){G=_.Q(m,g4X);if(!G)return K.return();(new eSX(G)).show();_.ey(K)})};_.iI=new _.sX("PLAYLIST_EDIT_CONTROLLER_TOKEN");var GW=function(m,G,K,W){this.store=m;this.innertubeTransportService=G;this.controller=K;this.JSC$18030_commandHandler=W};
_.n(GW,te);
GW.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF;return _.Y(function(kG){if(kG.nextAddress==1){W=_.Q(m,_.cB);if(!W)return kG.return();if(W.clientActions){L=_.g(W.clientActions);for(A=L.next();!A.done;A=L.next())O=A.value,K.JSC$18030_commandHandler.resolveCommand(O,G);var eo,xG=G==null?void 0:(eo=G.form)==null?void 0:eo.element;xG&&_.Zw(xG,"yt-dismissible-item-action",W.clientActions)}return kG.yield(_.to(K.innertubeTransportService,m,(c=
G)==null?void 0:c.form),2)}if(u=kG.yieldResult)u.errorMetadata?(h=u,J=_.Ev(h.error.message),K.JSC$18030_commandHandler.resolveCommand(J),"error"in u&&((N=G)==null?0:(D=N.commandController)==null?0:D.onServerError)&&((t=G)==null||(a=t.commandController)==null||a.onServerError(m,u))):(v=G)==null||(I=v.commandController)==null||(k=(Z=I).onSuccess)==null||k.call(Z,m,u);z=u;((X=z)==null?0:X.collaborationInviteLink)&&W.playlistId&&(_.F("web_enable_invite_collaborators_link")||_.F("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
K.store.dispatch(_.kt({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:W.playlistId,inviteLinkUrl:z.collaborationInviteLink}}));((f=z)==null?0:f.redirectEndpoint)&&K.JSC$18030_commandHandler.resolveCommand(z.redirectEndpoint);((U=z)==null?0:(l=U.newHeader)==null?0:l.playlistHeaderRenderer)?TD6(K.controller,z.newHeader.playlistHeaderRenderer):((Ls=z)==null?0:(gd=Ls.newHeader)==null?0:gd.musicEditablePlaylistDetailHeaderRenderer)&&TD6(K.controller,z.newHeader.musicEditablePlaylistDetailHeaderRenderer);
K.controller.playlistVideoListElement&&((Qf=z)==null?0:(JV=Qf.playlistEditResults)==null?0:(DF=JV[0])==null?0:DF.playlistEditVideoAddedResultData)&&((xG=K.controller.playlistVideoListElement)==null||xG.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:z.playlistEditResults[0].playlistEditVideoAddedResultData})));_.ey(kG)})};
GW[XF]=[_.wR,_.Tv,_.iI,_.S1];var Kq=function(m,G){this.controller=m;this.JSC$18040_commandHandler=G};
_.n(Kq,te);Kq.prototype.resolveCommand=function(m,G){var K=this,W,L,A;return _.Y(function(O){W=_.Q(m,FpR);K.controller.showRefreshPill&&((L=W)==null?0:L.command)&&(K.JSC$18040_commandHandler.resolveCommand((A=W)==null?void 0:A.command,G),K.controller.showRefreshPill=!1);_.ey(O)})};
Kq[XF]=[_.eu,_.S1];var WS=function(m,G){this.store=m;this.JSC$18044_commandHandler=G||_.xe.instance};
_.n(WS,te);WS.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){W=_.Q(m,kUi);L=K.store.getState().radioButtonGroup;if((A=W)==null?0:A.command)K.JSC$18044_commandHandler.resolveCommand((O=W)==null?void 0:O.command,G);else if(L&&((c=W)==null?void 0:c.formId)===L.currentFormId)for(u=Object.values(L.commandsMap),h=_.g(u),J=h.next();!J.done;J=h.next())N=J.value,(D=_.c8(N))&&K.JSC$18044_commandHandler.resolveCommand(D,G);_.ey(t)})};
WS[XF]=[_.wR];var Lq=new _.sX("USER_PREFS");var AL=function(m){this.JSC$18049_prefCookie=m};
_.n(AL,te);AL.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){(K=_.Q(m,mtS))&&typeof K.useListView==="boolean"&&(_.Tq(0,155,K.useListView),G.JSC$18049_prefCookie.save());_.ey(W)})};
AL[XF]=[Lq];var wQ=function(m){this.JSC$18053_prefCookie=m};
_.n(wQ,te);wQ.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O;return _.Y(function(c){K=_.Q(m,YYK);if((W=K)==null||!W.gl)return c.return();L=K.gl;A={persist_gl:"1",gl:L};G.JSC$18053_prefCookie.set("gl",L);G.JSC$18053_prefCookie.save();O=WXP(A);_.pr(O);_.ey(c)})};
wQ[XF]=[Lq];var gQ=function(m){this.JSC$18057_prefCookie=m};
_.n(gQ,te);gQ.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){K=_.Q(m,aWK);if(!K)return L.return();W=!1;K.flagNum&&typeof K.value==="boolean"?(_.Tq(0,K.flagNum,K.value),W=!0):K.key&&typeof K.stringValue==="string"&&(G.JSC$18057_prefCookie.set(K.key,K.stringValue),W=!0);W&&G.JSC$18057_prefCookie.save();_.ey(L)})};
gQ[XF]=[Lq];var Ot=new _.sX("PREF_STORAGE_PROMISE_TOKEN");var cS=function(m){this.JSC$18061_prefStoragePromise=m};
_.n(cS,te);cS.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return(K=_.Q(m,n4l))?L.yield(G.JSC$18061_prefStoragePromise,2):L.return();W=L.yieldResult;return W===void 0||K.key===void 0||K.value===void 0?L.return():L.yield(W.set(K.key,K.value),0)})};
cS[XF]=[Ot];var YI=function(m){this.innertubeTransportService=m};
_.n(YI,te);YI.prototype.resolveCommand=function(m,G){var K=this,W,L;return _.Y(function(A){(W=_.Q(m,_.dRX))&&W&&W.isFirstRequest&&(_.ck("search_overview_answer"),_.Yt("so_rq",void 0,"search_overview_answer"));return A.yield(_.to(K.innertubeTransportService,m,(L=G)==null?void 0:L.form),0)})};
YI[XF]=[_.Tv];var m7s=function(){};
_.n(m7s,te);
m7s.prototype.resolveCommand=function(m){var G,K,W,L,A,O,c,u,h;return _.Y(function(J){G=_.Q(m,kX2);if((K=G)==null?0:K.sectionIdentifier){if(G.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(L=(W=document.getElementsByTagName(G.sectionIdentifier))==null?void 0:W.item(0))L.scrollIntoView({behavior:"smooth"}),(A=HNJ(L))&&A.focus({preventScroll:!0});return J.return()}O=document.querySelector("[section-identifier="+G.sectionIdentifier+"]");c=document.querySelector("[section-identifier="+G.referenceSectionIdentifier+
"]");if(!O)return J.return();u=G.verticalScrollOffsetDp?G.verticalScrollOffsetDp:0;c&&(u-=c.offsetTop);window.scrollTo({top:O.offsetTop+u,behavior:"smooth"});(h=HNJ(O))&&h.focus({preventScroll:!0})}_.ey(J)})};var rQ=function(m){this.JSC$18073_commandHandler=m};
_.n(rQ,te);
rQ.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u;return _.Y(function(h){if(h.nextAddress==1){K=_.Q(m,gjP);if(!K||!K.imageBytes||!navigator.clipboard)return h.return();if(K.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.am(Error("Ji")),h.return();_.IO(h,2);L=(W=K)==null?void 0:W.imageBytes;A=L.replace(/-/g,"+").replace(/_/g,"/");O=aKo(A);c={};u=[new ClipboardItem((c[O.type]=O,c))];return h.yield(navigator.clipboard.write(u),4)}if(h.nextAddress!=2)return K.successCommand&&
G.JSC$18073_commandHandler.resolveCommand(K.successCommand),_.IG(h,0);_.ye(h);K.errorCommand&&G.JSC$18073_commandHandler.resolveCommand(K.errorCommand);_.ey(h)})};
rQ[XF]=[_.S1];var uI=function(m,G){this.innertubeTransportService=m;this.JSC$18077_commandHandler=G};
_.n(uI,te);uI.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return(W=_.Q(m,O9X))?u.yield(_.to(K.innertubeTransportService,m,(L=G)==null?void 0:L.form),2):u.return();(A=u.yieldResult)&&A.errorMetadata&&W.onFailureCommand&&K.JSC$18077_commandHandler.resolveCommand(W.onFailureCommand);O=A;((c=O)==null?0:c.shareCommand)&&K.JSC$18077_commandHandler.resolveCommand(O.shareCommand,G);_.ey(u)})};
uI[XF]=[_.Tv,_.S1];var hL=function(){};
_.n(hL,te);hL.prototype.resolveCommand=function(m){var G,K;return _.Y(function(W){G=_.Q(m,NNo);if(!G||!navigator.share)return W.return();K={url:G.url};try{return W.return(navigator.share(K))}catch(L){}_.ey(W)})};var pq=function(){};
_.n(pq,te);pq.prototype.resolveCommand=function(){return _.Y(function(m){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.ey(m)})};var JL=function(m){this.JSC$18087_navigationConfirmationService=m};
_.n(JL,te);JL.prototype.resolveCommand=function(){var m=this;return _.Y(function(G){m.JSC$18087_navigationConfirmationService.cancelPendingNavigation();_.ey(G)})};
JL[XF]=[ln];var Nx=function(m){this.JSC$18090_screenManager=m};
_.n(Nx,te);Nx.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h;return _.Y(function(J){L=(W=G.form)==null?void 0:W.event;O=(A=G.form)==null?void 0:A.element;if(!L)throw new _.cw("Event not passed in when resolving command");c=_.g(L.composedPath());for(u=c.next();!u.done;u=c.next())if(h=u.value,h.tagName==="YT-COPY-LINK-RENDERER")return h.copyUrlToClipboard(),O&&_.Jo(K.JSC$18090_screenManager,O),J.return();_.ey(J)})};
Nx[XF]=[_.m_];var Dx=function(){this.JSC$18094_miniAppClientDataProvider=_.xS().resolve(_.vy)};
_.n(Dx,te);Dx.prototype.resolveCommand=function(){var m=this,G,K;return _.Y(function(W){if(m.JSC$18094_miniAppClientDataProvider.clientData.has("video_id")){var L=m.JSC$18094_miniAppClientDataProvider,A=L.clientData.get("video_id");A&&L.clientData.delete("video_id");G="https://youtube.com/watch?v="+A;K=_.lg(G);if(K===void 0)throw Error("Ki`"+G);_.Oy(window,K)}_.ey(W)})};var tL=function(){};
_.n(tL,te);tL.prototype.resolveCommand=function(){return _.Y(function(m){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.ey(m)})};var F2=function(){};
_.n(F2,te);F2.prototype.resolveCommand=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.ePd(window.document.documentElement),2);(m=document.querySelector("mini-app-container-view-model iframe"))&&m.focus();_.ey(G)})};var QS=function(m){this.JSC$18101_navigationConfirmationService=m};
_.n(QS,te);
QS.prototype.resolveCommand=function(){var m=this;return _.Y(function(G){var K=m.JSC$18101_navigationConfirmationService,W=_.xS().resolve(_.eG),L;if(((L=K.navigateParams)==null?void 0:L.data)!==void 0){var A;_.TJ4(W,K.navigateParams.endpoint,K.navigateParams.data,(A=K.navigateParams.navigationType)!=null?A:1,K.navigateParams.tempData,K.navigateParams.isMiniplayer,void 0,!0);K.navigateParams=void 0;K.customConfirmationCommand=void 0}else K.navigateParams&&(W.navigate(K.navigateParams.endpoint,K.navigateParams.reload,
K.navigateParams.params,K.navigateParams.tempData,K.navigateParams.requestType,K.navigateParams.createScreenConfig,!0),K.navigateParams=void 0,K.customConfirmationCommand=void 0);_.ey(G)})};
QS[XF]=[ln];var aY=function(){};
_.n(aY,te);aY.prototype.resolveCommand=function(){return _.Y(function(m){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.ey(m)})};var oY=function(m){this.JSC$18106_prefStorage=m};
_.n(oY,te);oY.prototype.resolveCommand=function(){var m=this,G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(m.JSC$18106_prefStorage,2);case 2:return(G=W.yieldResult)?W.yield(G.set("sfvle",!1),3):W.return();case 3:return W.yield(G.set("sfvles",!0),4);case 4:K=_.M$(),_.Tq(0,203,!1),_.Tq(0,204,!0),K.save(),_.ey(W)}})};
oY[XF]=[Ot];var nq=function(m){this.JSC$18109_prefStorage=m};
_.n(nq,te);nq.prototype.resolveCommand=function(){var m=this,G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(m.JSC$18109_prefStorage,2);case 2:return(G=W.yieldResult)?W.yield(G.set("sfvle",!0),3):W.return();case 3:return W.yield(G.set("sfvles",!0),4);case 4:K=_.M$(),_.Tq(0,203,!0),_.Tq(0,204,!0),K.save(),_.ey(W)}})};
nq[XF]=[Ot];_.iBD=new _.sX("SNACKBAR_CONTROLLER_TOKEN");_.GIs=new _.sX("SHOULD_SHOW_PIVOT_BAR_TOKEN");var bI=function(m){this.controller=m};
_.n(bI,te);bI.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){K=_.Q(m,anG);if(!K)return W.return();var L=G.controller;L.closeSnackbarFn&&L.closeSnackbarFn();_.ey(W)})};
bI[XF]=[_.iBD];var vS=function(m,G){this.controller=m;this.JSC$18116_sheetController=G};
_.n(vS,te);vS.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u;return _.Y(function(h){W=_.Q(m,njP);if(!W)return h.return();O=e_O(K.JSC$18116_sheetController,(L=G)==null?void 0:(A=L.form)==null?void 0:A.element);c=_.Q(W.content,dSl);if(!c)return h.return();var J=K.controller,N=c,D=(u=W.animationStyle)!=null?u:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(J.showSnackbarFn)J.showSnackbarFn({snackbarViewModel:N,animationStyle:D,durationMs:W.durationSeconds*1E3,target:O});else throw Error("Dj");_.ey(h)})};
vS[XF]=[_.iBD,_.Lk];var $I=function(){};
_.n($I,te);$I.prototype.resolveCommand=function(m){var G;return _.Y(function(K){G=_.Q(m,o4C);if(!G||typeof G.key!=="string"||typeof G.value!=="string")return K.return();window.localStorage.setItem(G.key,G.value);_.ey(K)})};var st=function(m){this.store=m};
_.n(st,te);st.prototype.resolveCommand=function(m){var G=this,K;return _.Y(function(W){K=_.Q(m,t$9);if(!K||!K.stepId||!K.token)return W.return();G.store.dispatch(DOG({stepId:K.stepId,token:K.token,isSelected:!1}));_.ey(W)})};
st[XF]=[hJ];var qx=function(m,G,K){this.innertubeTransportService=m;this.store=G;this.JSC$18128_screenManager=K};
_.n(qx,te);
qx.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG;return _.Y(function(eo){K=_.Q(m,hAG);if(!K||(W=K.stepIds)==null||!W.length)return eo.return();L=G.store.getState().talkToRecs;A=[];O=[];c=_.g(K.stepIds);for(u=c.next();!u.done;u=c.next())for(h=u.value,J=void 0,(N=(J=L.stepStates[h])==null?void 0:J.userQuery)&&O.push({userQuery:K.submitEmptyUserQuery?"":N.userQuery,userQueryToken:N.token}),t=D=void 0,a=(t=(D=L.stepStates[h])==null?void 0:
D.selectionStates)!=null?t:{},v=_.g(Object.entries(a)),I=v.next();!I.done;I=v.next())Z=I.value,k=_.g(Z),z=k.next().value,X=k.next().value,f=z,U=X,U.isSelected&&A.push(f);l={selectedChipTokens:A,userQueries:O,submittedStepIds:K.stepIds};Ls={browseTalk2recsFormData:l};K.browseEndpoint?(gd=m,_.LN(gd,_.S8,K.browseEndpoint)):K.command&&(gd=K.command);if(!gd)return eo.return();Qf=_.Q(gd,_.Yg);if((JV=Qf)==null?0:JV.command)if(DF=_.Q(Qf.command,rdK))kG=_.xe.instance,kG.resolveCommand(Qf.command);return eo.yield(_.to(G.innertubeTransportService,
gd,{formData:Ls,disableCache:!0}).then(function(xG){(xG==null?0:xG.trackingParams)&&G.JSC$18128_screenManager.graftServerVe(xG==null?void 0:xG.trackingParams)}),0)})};
qx[XF]=[_.Tv,hJ,_.m_];var Et=function(m){this.store=m};
_.n(Et,te);
Et.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){K=_.Q(m,D1s);if(!K||!K.stepId)return J.return();if(K.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_APPEND_TO_QUERY")O=(A=(W=G.store.getState().talkToRecs.stepStates[K.stepId])==null?void 0:(L=W.userQuery)==null?void 0:L.userQuery)!=null?A:"",c=O.length>0?". ":"",u=O+c+K.selectedText,G.store.dispatch(tuP({stepId:K.stepId,userQueryToken:"",userQuery:u}));else if(K.selectBehavior==="TALK_TO_RECS_SELECT_BEHAVIOR_REPLACE_QUERY")G.store.dispatch(tuP({stepId:K.stepId,userQueryToken:"",
userQuery:(h=K.selectedText)!=null?h:""}));else{if(!K.token)return J.return();G.store.dispatch(DOG({stepId:K.stepId,token:K.token,isSelected:!0}))}_.ey(J)})};
Et[XF]=[hJ];var HS=function(m){this.store=m};
_.n(HS,te);HS.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u;return _.Y(function(h){W=_.Q(m,p04);if(!W||!W.stepId)return h.return();c=(O=(L=G)==null?void 0:(A=L.form)==null?void 0:A.userQuery)!=null?O:"";K.store.dispatch(tuP({stepId:W.stepId,userQuery:c,userQueryToken:(u=W.userQueryToken)!=null?u:""}));_.ey(h)})};
HS[XF]=[hJ];_.Kii=new _.sX("TIMELY_ACTIONS_CONTROLLER_TOKEN");var IY=function(m){this.controller=m};
_.n(IY,te);IY.prototype.resolveCommand=function(m){var G=this,K,W,L,A;return _.Y(function(O){K=_.Q(m,H8K);if(!K)return O.return();W=K;L=W.id;A=W.isVisible;if(L===void 0||A===void 0)return O.return();var c;(c=G.controller.timelyActionsMap.get(L))==null||c(L,A);_.ey(O)})};
IY[XF]=[_.Kii];var Wiu=function(){this.timelyActionsMap=new Map};var jK=function(m){this.JSC$18154_commandHandler=m};
_.n(jK,te);jK.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O;return _.Y(function(c){K=_.Q(m,_.dzi);if(!K)return c.return();A=(W=K.item)==null?void 0:(L=W.notificationTextRenderer)==null?void 0:L.successResponseText;if(!A)return c.return();O=_.q_(A);G.JSC$18154_commandHandler.resolveCommand(O);_.ey(c)})};
jK[XF]=[_.S1];var kI=function(m,G){this.innertubeTransportService=m;this.JSC$18159_playerApiPromise=G};
_.n(kI,te);
kI.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J;return _.Y(function(N){if(N.nextAddress==1)return N.yield(G.JSC$18159_playerApiPromise,2);K=N.yieldResult;W=K.getOption("captions","track");L=Object.assign({},_.Q(m,_.SYo));(O=(A=K.getVideoData())==null?void 0:A.video_id)?L.externalVideoId=O:_.V3(Error("Li"));if((c=W)==null?0:c.languageCode)L.languageCode=W.languageCode;if((u=W)==null?0:u.kind)L.kind=W.kind;if((h=W)==null?0:h.name)L.name=W.name;J=Object.assign({},m,{getTranscriptEndpoint:L});return N.yield(_.to(G.innertubeTransportService,
J),0)})};
kI[XF]=[_.Tv,_.kg];var Cq=function(){};
_.n(Cq,te);Cq.prototype.resolveCommand=function(m){var G,K,W,L,A,O,c,u;return _.Y(function(h){G=_.Q(m,jU0);if((K=G)==null||!K.paramKeyValuePairs)return h.return();W=window.location.href;L=_.g(G.paramKeyValuePairs);for(A=L.next();!A.done;A=L.next())O=A.value,O.key&&O.value&&(c={},W=_.y3(W,(c[O.key]=O.value,c)));u=_.xS().resolve(_.SB);_.Xa(u,W);_.ey(h)})};_.VS=new _.sX("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var Zx=function(m,G,K,W){this.controller=m;this.JSC$18166_playerApiPromise=G;this.innertubeTransportService=K;this.JSC$18166_commandHandler=W};
_.n(Zx,te);
Zx.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z;return _.Y(function(X){if(X.nextAddress==1){K=_.Q(m,WBX);if((W=K)==null||!W.watchEndpoint)return X.return();L=new PC;A=L.JSC$14483_getRequest(K.watchEndpoint);if(!A)return X.return();O=K.watchEndpoint.clickTrackingParams;return X.yield(_.Jf(G.innertubeTransportService,A.innerTubeRequest,A.input,O,A.config),2)}if(X.nextAddress!=3)return c=X.yieldResult,X.yield(G.JSC$18166_playerApiPromise,3);u=X.yieldResult;u.updateVideoData({raw_watch_next_response:c});
if(a=(h=c)==null?void 0:(J=h.contents)==null?void 0:(N=J.twoColumnWatchNextResults)==null?void 0:(D=N.results)==null?void 0:(t=D.results)==null?void 0:t.contents)I=(v=a.find(function(f){return f.videoPrimaryInfoRenderer}))==null?void 0:v.videoPrimaryInfoRenderer,((Z=I)==null?0:Z.subtitle)&&LiW(G.controller,I.subtitle);
(z=(k=c)==null?void 0:k.onUiReady)&&G.JSC$18166_commandHandler.resolveCommand(z);_.ey(X)})};
Zx[XF]=[_.VS,_.kg,_.Tv,_.S1];var AI6=function(){this.subtitleChangeCallbackMap=new Map},LiW=function(m,G){m=_.g(m.subtitleChangeCallbackMap.values());
for(var K=m.next();!K.done;K=m.next())K=K.value,K(G)};var dQ=function(m,G){this.JSC$18176_commandHandler=m;this.innertubeTransportService=G};
_.n(dQ,te);
dQ.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z;return _.Y(function(X){switch(X.nextAddress){case 1:return(A=(W=G)==null?void 0:(L=W.form)==null?void 0:L.element)&&_.hX(A),O=_.M$().get("hl"),c="",_.IO(X,2),X.yield(SN6(O),4);case 4:c=X.yieldResult;_.IG(X,3);break;case 2:return _.ye(X),A&&_.pm(A),_.am(Error("Ni"),"ERROR"),X.return();case 3:u=_.Q(m,Jro);if(!u)return A&&_.pm(A),X.return();(N=(h=u.commerceActionConfig)==null?void 0:(J=h.commandLifeCycleConfig)==null?
void 0:J.onStartCommand)&&K.JSC$18176_commandHandler.resolveCommand(N);return X.yield(_.to(K.innertubeTransportService,m,{client_data:{paymentsClientToken:{token:c}}}),5);case 5:(D=X.yieldResult)?(A&&_.pm(A),((I=D)==null?0:I.command)&&K.JSC$18176_commandHandler.resolveCommand(D.command),(z=(Z=u.commerceActionConfig)==null?void 0:(k=Z.commandLifeCycleConfig)==null?void 0:k.onSuccessCommand)&&K.JSC$18176_commandHandler.resolveCommand(z)):(A&&_.pm(A),_.am(Error("Oi")),(v=(t=u.commerceActionConfig)==
null?void 0:(a=t.commandLifeCycleConfig)==null?void 0:a.onFailureCommand)&&K.JSC$18176_commandHandler.resolveCommand(v)),_.ey(X)}})};
dQ[XF]=[_.S1,_.Tv];var PS=function(m,G,K){this.store=m;this.JSC$18192_commandHandler=G;this.innertubeTransportService=K};
_.n(PS,te);
PS.prototype.resolveCommand=function(m,G){var K=this,W,L,A,O,c,u,h,J,N;return _.Y(function(D){W=_.Q(m,tSk);L=W.googlePaymentPayload;W.onStartCommand&&K.JSC$18192_commandHandler.resolveCommand(W.onStartCommand);A=L.encryptedPurchaseParams;O=L.ypcLogWalletAnalyticDataEndpoint;c=W.serializedTransactionFlowLoggingParams;u=L.serializedPaymentsClientParams;h=W.ypcCujContext;N=z4d(K.innertubeTransportService,(J=G)==null?void 0:J.form,A,O,c,u,h);return D.return(N.then(function(t){R4d(G==null?void 0:G.form,
!1);var a=K.store,v=K.JSC$18192_commandHandler,I=t.integratorData;I==null||I===""||t.error!=null?(String(t.error)==="-1"&&W.onDismissCommand?v.resolveCommand(W.onDismissCommand):String(t.error)!=="-1"&&W.onFailureCommand&&v.resolveCommand(W.onFailureCommand),String(t.error)!=="-1"&&String(t.error)!=="132"&&_.am(Error("Pi"),"ERROR")):(W.googlePaymentEntityKey&&a.dispatch(_.Bp("commerceAcquisitionClientPayloadEntity",W.googlePaymentEntityKey,{key:W.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:I,
fundsGuaranteeCallbackClientData:t.integratorClientCallbackData}}})),W.onSuccessCommand&&v.resolveCommand(W.onSuccessCommand));_.fJ()},function(t){R4d(G==null?void 0:G.form,!1);
_.am(t,"ERROR");W.onFailureCommand&&K.JSC$18192_commandHandler.resolveCommand(W.onFailureCommand)}))})};
PS[XF]=[VM,_.S1,_.Tv];var yS=function(m,G){this.JSC$18196_commandHandler=m;this.purchaseManager=G};
_.n(yS,te);
yS.prototype.resolveCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J;return _.Y(function(N){K=_.Q(m,FMo);((W=K)==null?0:(L=W.commandLifeCycleConfig)==null?0:L.onStartCommand)&&G.JSC$18196_commandHandler.resolveCommand(K.commandLifeCycleConfig.onStartCommand);if(!((A=K)==null?0:(O=A.googlePaymentPurchaseManagerPayload)==null?0:O.securePayloadBytes))return _.am(Error("Qi"),"ERROR"),N.return();c=Dyi(_.T9(K.googlePaymentPurchaseManagerPayload.securePayloadBytes));u=_.M$().get("hl");h=_.Qo();XzE(c.serialize(),
u,function(D){h.resolve(D)},function(D){h.reject(D)},h.resolve);
J=h.promise;return N.return(J.then(function(D){if(D)if(D==null?0:D.errorCode){_.am(Error("Ri`"+D.errorCode),"ERROR");var t,a;((t=K)==null?0:(a=t.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&G.JSC$18196_commandHandler.resolveCommand(K.commandLifeCycleConfig.onFailureCommand)}else if(D==null?0:D.isCancelled){var v,I;((v=K)==null?0:(I=v.commandLifeCycleConfig)==null?0:I.onCancelCommand)&&G.JSC$18196_commandHandler.resolveCommand(K.commandLifeCycleConfig.onCancelCommand)}else{var Z,k;((Z=K)==
null?0:(k=Z.commandLifeCycleConfig)==null?0:k.onSuccessCommand)&&G.JSC$18196_commandHandler.resolveCommand(K.commandLifeCycleConfig.onSuccessCommand)}},function(D){_.am(D,"ERROR");
var t,a;((t=K)==null?0:(a=t.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&G.JSC$18196_commandHandler.resolveCommand(K.commandLifeCycleConfig.onFailureCommand)}))})};
yS[XF]=[_.S1,Syz];var wtG=function(m,G){this.JSC$18204_commandHandler=m;this.commandAllowlistOverride=G;var K;this.commandAllowlist=(K=this.commandAllowlistOverride)!=null?K:dfG};
wtG.prototype.handleResponse=function(m,G,K){var W,L=G==null?void 0:(W=G.config)==null?void 0:W.command;if(!L||this.commandAllowlist.some(function(A){return!!_.Q(L,A)})){G=void 0;
K!==void 0&&(G={form:{element:K}});m.onResponseReceivedCommand&&this.JSC$18204_commandHandler.resolveCommand(m.onResponseReceivedCommand,G);m.onResponseReceivedAction&&this.JSC$18204_commandHandler.resolveCommand(m.onResponseReceivedAction,G);m.onResponseReceivedEndpoint&&this.JSC$18204_commandHandler.resolveCommand(m.onResponseReceivedEndpoint,G);m.command&&this.JSC$18204_commandHandler.resolveCommand(m.command,G);if(m.onResponseReceivedCommands)for(K=_.g(m.onResponseReceivedCommands),W=K.next();!W.done;W=
K.next())this.JSC$18204_commandHandler.resolveCommand(W.value,G);if(m.onResponseReceivedActions)for(K=_.g(m.onResponseReceivedActions),W=K.next();!W.done;W=K.next())this.JSC$18204_commandHandler.resolveCommand(W.value,G);if(m.onResponseReceivedEndpoints)for(K=_.g(m.onResponseReceivedEndpoints),W=K.next();!W.done;W=K.next())this.JSC$18204_commandHandler.resolveCommand(W.value,G);if(m.actions)for(m=_.g(m.actions),K=m.next();!K.done;K=m.next())this.JSC$18204_commandHandler.resolveCommand(K.value,G)}};
wtG[XF]=[_.S1,_.fn(Zi6)];var g2i=new _.sX("INNERTUBE_TOKEN_SERVICE");var OB6=new _.sX("SCHEDULER_TOKEN");var cIi=function(m){this.scheduler=m;m={};this.tokenMap=(m.app={},m.user={},m)};
cIi.prototype.handleResponse=function(m,G){if(!G)throw Error("Si");var K;if(m=(K=m.responseContext)==null?void 0:K.innertubeTokenJar){if(m.appTokens){var W,L,A;K=(W=G.innerTubeRequest.context)==null?void 0:(L=W.request)==null?void 0:(A=L.innertubeTokenJar)==null?void 0:A.appTokens;YRO(this,m.appTokens,this.tokenMap.app,K)}if(m.userTokens){var O,c,u;G=(O=G.innerTubeRequest.context)==null?void 0:(c=O.request)==null?void 0:(u=c.innertubeTokenJar)==null?void 0:u.userTokens;YRO(this,m.userTokens,this.tokenMap.user,
G)}}};
cIi.prototype.processContext=function(m){m.request||(m.request={});var G=Object.keys(this.tokenMap.app).length,K=Object.keys(this.tokenMap.user).length;if(G||K)m.request.innertubeTokenJar={},G&&(m.request.innertubeTokenJar.appTokens=[].concat(_.Bz(Object.values(this.tokenMap.app).flat()))),K&&(m.request.innertubeTokenJar.userTokens=[].concat(_.Bz(Object.values(this.tokenMap.user).flat())))};
var YRO=function(m,G,K,W){G=_.g(G);for(var L=G.next(),A={};!L.done;A={token$jscomp$139:void 0},L=G.next()){A.token$jscomp$139=L.value;if(A.token$jscomp$139.type===void 0)throw new _.cw("InnerTube token has no type",A.token$jscomp$139);if(A.token$jscomp$139.clearTokens)K[A.token$jscomp$139.type]=[];else if(A.token$jscomp$139.value!==void 0){K[A.token$jscomp$139.type]||(K[A.token$jscomp$139.type]=[]);if(W!==void 0&&W.length){L=_.g(W);for(var O=L.next(),c={};!O.done;c={requestToken:void 0},O=L.next())c.requestToken=
O.value,O=K[A.token$jscomp$139.type].findIndex(function(u){return function(h){return h===u.requestToken||(0,_.Y2.equals)(h,u.requestToken)}}(c)),O>-1&&K[A.token$jscomp$139.type].splice(O,1)}K[A.token$jscomp$139.type].push(A.token$jscomp$139);
A.token$jscomp$139.maxAgeSeconds&&Number(A.token$jscomp$139.maxAgeSeconds)>0&&m.scheduler.addLowPriorityJob(function(u){return function(){var h=K[u.token$jscomp$139.type].indexOf(u.token$jscomp$139);h>-1&&K[u.token$jscomp$139.type].splice(h,1)}}(A),Number(A.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.cw("InnerTube token has no value",A.token$jscomp$139);
}};
cIi[XF]=[OB6];var rI6=new _.sX("LOCAL_INNERTUBE_ROUTER_TOKEN"),ubD=new _.sX("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var eK=function(m){this.serviceMap=m};
eK.prototype.shouldPreferLocalResponse=function(m,G){return(m=hLu(this,m))?m.shouldPreferLocalResponse(G):!1};
eK.prototype.localInnertubeResponse=function(m,G){var K=this,W;return _.Y(function(L){return(W=hLu(K,m))?L.return(W.localInnertubeResponse(G)):L.return(Promise.reject(Error("Ti")))})};
eK.prototype.canProvideFallbackResponse=function(m,G){return(m=hLu(this,m))?m.canProvideFallbackResponse(G):!1};
eK.prototype.localFallbackInnertubeResponse=function(m,G){var K=this,W;return _.Y(function(L){return(W=hLu(K,m))?L.return(W.localFallbackInnertubeResponse(G)):L.return(Promise.reject(Error("Ti")))})};
var hLu=function(m,G){G=_.f6(G);return G?(m=m.serviceMap[G])?m:null:null};
eK[XF]=[ubD];var Ge=function(){};
Ge.prototype.shouldPreferLocalResponse=function(){return!1};
Ge.prototype.localInnertubeResponse=function(){return _.Y(function(m){return m.return(Promise.reject(Error("Ui")))})};
Ge.prototype.canProvideFallbackResponse=function(){return!0};
Ge.prototype.localFallbackInnertubeResponse=function(){var m,G,K;return _.Y(function(W){m=X9("CLOSE_POPUP");G={openPopupAction:Buf()};K={actions:[m,G]};return W.return(K)})};var OXG=function(m,G){this.JSC$18253_upliftPromise=m;this.store=G};
_.w=OXG.prototype;_.w.shouldPreferLocalResponse=function(m){var G=m.videoId,K;if(K=G)K=E6V(this.store.getState().entities,m.videoId);return K&&H56(this.store.getState().entities,G)?TuF(this.store.getState().entities,m.playlistId):!1};
_.w.localInnertubeResponse=function(m){var G=this,K;return _.Y(function(W){return(K=G.getPlayerResponse(m))?W.return(Promise.resolve(K)):W.return(Promise.reject(Error("Vi")))})};
_.w.canProvideFallbackResponse=function(m){return!!m.videoId};
_.w.localFallbackInnertubeResponse=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.JSC$18253_upliftPromise,2);K=G.getPlayerResponse(m);var L;K?L=W.return(Promise.resolve(K)):L=iw(G.store.getState().entities,m.videoId)?W.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Hk(_.zq("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:WxP()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
W.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Hk(_.zq("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Kxo()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return L})};
_.w.getPlayerResponse=function(m){return Wsv(this.store.getState().entities,m.videoId)};var i5=function(m,G){this.localPlayerService=m;this.localWatchNextService=G};
i5.prototype.shouldPreferLocalResponse=function(m){var G=m.playerRequest;m=m.watchNextRequest;return!!(G&&this.localPlayerService.shouldPreferLocalResponse(G)&&m&&this.localWatchNextService.shouldPreferLocalResponse(m))};
i5.prototype.localInnertubeResponse=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1){K=m.playerRequest;W=m.watchNextRequest;if(!K||!W)throw new _.cw("Missing streaming request",m);return O.yield(G.localPlayerService.localInnertubeResponse(K),2)}if(O.nextAddress!=3)return L=O.yieldResult,O.yield(G.localWatchNextService.localInnertubeResponse(W),3);A=O.yieldResult;return O.return({playerResponse:L,watchNextResponse:A})})};
i5.prototype.canProvideFallbackResponse=function(m){var G=m.playerRequest;m=m.watchNextRequest;return!!(G&&this.localPlayerService.canProvideFallbackResponse(G)&&m&&this.localWatchNextService.canProvideFallbackResponse(m))};
i5.prototype.localFallbackInnertubeResponse=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K=m.playerRequest,W=m.watchNextRequest,K&&W?O.yield(G.localPlayerService.localFallbackInnertubeResponse(K),2):O.return(Promise.reject(new _.cw("Missing streaming request",m)));if(O.nextAddress!=3)return L=O.yieldResult,O.yield(G.localWatchNextService.localFallbackInnertubeResponse(W),3);A=O.yieldResult;return O.return({playerResponse:L,watchNextResponse:A})})};var Ma=function(m){this.JSC$18263_persistentStorePromiseAccessor=m};
Ma.prototype.shouldPreferLocalResponse=function(){return!1};
Ma.prototype.localInnertubeResponse=function(){return _.Y(function(m){return m.return(Promise.reject(Error("Wi")))})};
Ma.prototype.canProvideFallbackResponse=function(){return!0};
Ma.prototype.localFallbackInnertubeResponse=function(){var m=this,G,K;return _.Y(function(W){return W.nextAddress==1?W.yield(m.JSC$18263_persistentStorePromiseAccessor(),2):W.nextAddress!=3?(G=W.yieldResult)?W.yield(G.get("service:guide:fallback"),3):W.return(Promise.reject(Error("Xi"))):(K=W.yieldResult)&&_.k1(K)?W.return(mLG(_.k1(K))):W.return(Promise.reject(Error("Yi")))})};var KY=function(){};
KY.prototype.shouldPreferLocalResponse=function(){return!1};
KY.prototype.localInnertubeResponse=function(){return _.Y(function(m){return m.return(Promise.reject(Error("Zi")))})};
KY.prototype.canProvideFallbackResponse=function(){return!0};
KY.prototype.localFallbackInnertubeResponse=function(){var m,G,K;return _.Y(function(W){m=X9("CLOSE_POPUP");G={openPopupAction:Buf()};K={actions:[m,G]};return W.return(K)})};var BY=function(){this.urlMap=pt5;this.fallbackCommand=_.lu};
BY.prototype.shouldPreferLocalResponse=function(m){return(m=m.url)?!!JIG(this,m):!1};
BY.prototype.localInnertubeResponse=function(m){var G=this,K;return _.Y(function(W){return(K=m.url)?W.return(N$O(m,JIG(G,K))):W.return(Promise.reject(Error("$i")))})};
BY.prototype.canProvideFallbackResponse=function(){return!0};
BY.prototype.localFallbackInnertubeResponse=function(m){var G=this,K,W,L,A,O,c,u;return _.Y(function(h){K=m.url;if(!K)return h.return(N$O(m,G.fallbackCommand));if(W=JIG(G,K))return h.return(N$O(m,W));L=void 0;A=_.f6(K);A==="/watch"&&(O=_.TF(K,"v"))&&(u=(c=_.TF(K,"list"))!=null?c:void 0,L=_.EG(O,u));L||(L=G.fallbackCommand);return h.return(N$O(m,L))})};
var JIG=function(m,G){if(G)return m.urlMap[_.XJ(G)]},N$O=function(m,G){G&&m.parentTrackingParams&&(G.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:m.parentTrackingParams}},G.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:G})};var Tn=function(m,G,K){this.JSC$18274_upliftPromise=m;this.store=G;this.JSC$18274_persistentStorePromiseAccessor=K};
Tn.prototype.shouldPreferLocalResponse=function(){return!1};
Tn.prototype.localInnertubeResponse=function(){return _.Y(function(m){return m.return(Promise.reject(Error("aj")))})};
Tn.prototype.canProvideFallbackResponse=function(){return!0};
Tn.prototype.localFallbackInnertubeResponse=function(){var m=this;return _.Y(function(G){return G.return(D76(m))})};
var D76=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(jq(m.JSC$18274_upliftPromise,m.store),2);G=W.yieldResult;K={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[M6o(G)]}}}};return W.return(tas(m,K))})},tas=function(m,G){var K,W;
return _.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$18274_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return K=L.yieldResult,L.yield(Cm(K),3);W=L.yieldResult;return L.return({responseContext:{},contents:G,topbar:W})})};var zn=function(m,G,K){this.JSC$18281_upliftPromise=m;this.store=G;this.JSC$18281_persistentStorePromiseAccessor=K};
zn.prototype.shouldPreferLocalResponse=function(m){var G=m.videoId;return G&&E6V(this.store.getState().entities,G)&&H56(this.store.getState().entities,G)?TuF(this.store.getState().entities,m.playlistId):!1};
zn.prototype.localInnertubeResponse=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return(K=m.videoId)?L.yield(G.JSC$18281_upliftPromise,2):L.return(Promise.reject(Error("bj")));if(L.nextAddress!=3)return L.yield(Fii(G,m,K),3);W=L.yieldResult;return L.return(Q$5(G,W,K))})};
zn.prototype.canProvideFallbackResponse=function(m){return m.videoId?!0:!1};
zn.prototype.localFallbackInnertubeResponse=function(m){var G=this,K,W,L,A;return _.Y(function(O){switch(O.nextAddress){case 1:return(K=m.videoId)?O.yield(G.JSC$18281_upliftPromise,2):O.return(Promise.reject(Error("bj")));case 2:return O.yield(Fii(G,m,K),3);case 3:W=O.yieldResult;if(iw(G.store.getState().entities,K)){O.jumpTo(4);break}return O.yield(jq(G.JSC$18281_upliftPromise,G.store),5);case 5:return L=O.yieldResult,O.return(a5z(W,L));case 4:return E6V(G.store.getState().entities,K)&&H56(G.store.getState().entities,
K)?O.return(Q$5(G,W,K)):(A={title:_.Hk(_.zq("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:WxP()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},O.return(a5z(W,A)))}})};
var Fii=function(m,G,K){var W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return W=G.playlistId,L=_.EG(K,W),u.yield(m.JSC$18281_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return A=u.yieldResult,u.yield(Cm(A),3);O=u.yieldResult;c={responseContext:{},currentVideoEndpoint:L,topbar:O};return u.return(c)})},Q$5=function(m,G,K){if(m=iw(m.store.getState().entities,K)){var W;
K=m.videoEntity;var L,A={title:I7(K.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.jO((W=K.localizedStrings)==null?void 0:W.viewCount),viewCount:_.jO((L=K.localizedStrings)==null?void 0:L.viewCount)}}};K.publishedTimestampMillis&&(A.dateText=_.jO(bkV(new Date(Number(K.publishedTimestampMillis)))));W={videoPrimaryInfoRenderer:A};L=m.videoEntity;m=m.channelEntity;m={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:I7(_.zq("SHOW_MORE",void 0,"Show more")),
showLessText:I7(_.zq("SHOW_LESS",void 0,"Show less")),description:L.formattedDescription,owner:{videoOwnerRenderer:{title:I7(m.title),thumbnail:m.avatar}}}};G.contents={twoColumnWatchNextResults:{results:{results:{contents:[W,m]}}}}}return G},a5z=function(m,G){m.contents={singleColumnWatchNextResults:{results:{results:{contents:[M6o(G)]}}}};
return m};var mN=function(m,G,K){this.JSC$18286_upliftPromise=m;this.store=G;this.JSC$18286_persistentStorePromiseAccessor=K};
mN.prototype.shouldPreferLocalResponse=function(){return!1};
mN.prototype.localInnertubeResponse=function(){return _.Y(function(m){return m.return(Promise.reject(Error("cj")))})};
mN.prototype.canProvideFallbackResponse=function(){return!0};
mN.prototype.localFallbackInnertubeResponse=function(){var m=this,G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return A.yield(m.JSC$18286_persistentStorePromiseAccessor(),2);case 2:return G=A.yieldResult,A.yield(Cm(G),3);case 3:return K=A.yieldResult,W={responseContext:{},topbar:K},A.yield(m.JSC$18286_upliftPromise,4);case 4:return A.yield(jq(m.JSC$18286_upliftPromise,m.store),5);case 5:return L=A.yieldResult,W.watchStatus={backgroundPromoRenderer:L},A.return(W)}})};var o2i=new _.sX("ENDPOINT_MAP"),n2O=new _.sX("WATCH_ENDPOINT_MAP"),bBq=new _.sX("REEL_ENDPOINT_MAP");var Ams=/^[a-zA-Z0-9_\-]{11}$/;var wsV=_.LV(function(){var m,G;return(G=(m=window).matchMedia)==null?void 0:G.call(m,"(prefers-reduced-motion: reduce)").matches});var v2s=_.LV(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 m=_.Cn("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");m||(m=_.M7("VIDEO"),_.yj("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
m));return!!(m&&m.canPlayType&&m.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var $76=XMLHttpRequest.prototype.fetch,s$5=$76&&$76.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!d8?!0:!1;var fq=function(m){this.JSC$18297_storeWithEntities=m};
_.n(fq,ci);_.w=fq.prototype;_.w.getApiPaths=function(){return O1i};
_.w.getExtension=function(m){return _.Q(m,_.QQ)||_.Q(m,_.lw)||_.Q(m,mRK)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14490_getStoreKey=function(m){if((_.F("kevlar_cache_on_ttl_player")||_.F("mweb_enable_shorts_innertube_player_prefetch")||_.F("mweb_use_new_history_manager")||_.F("web_shorts_prefetch_service_enabled"))&&(m=this.getExtension(m))&&m.videoId){var G={videoId:m.videoId};m.playlistId&&(G.playlistId=m.playlistId);m.playerParams&&(G.params=m.playerParams);return _.FA("player",G)}};
_.w.JSC$14483_getClientScreen=function(m){var G;return((G=m.contentPlaybackContext)==null?void 0:G.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.w.JSC$14483_buildRequest=function(m,G,K){if(_.F("enable_interstitial_entity_check")){var W=this.JSC$18297_storeWithEntities;if(G.videoId)for(var L=_.g(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),A=L.next();!A.done;A=L.next()){A=A.value;var O;var c=void 0,u=void 0,h=G.videoId,J=A;(O=W)?(h=_.Pk(h+J,"interstitialInteractionStateEntity"),O=(c=(u=_.yx(O.getState().entities,"interstitialInteractionStateEntity",h))==null?void 0:u.primaryButtonClicked)!=null?c:!1):O=!1;if(O)switch(A){case "CONTENT_CHECK_REQUIRED":G.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":G.racyCheckOk=!0}}}G.videoId&&(m.videoId=G.videoId);G.playlistId&&(m.playlistId=G.playlistId);G.index!==void 0&&(m.playlistIndex=G.index+1);G.playerParams&&(m.params=G.playerParams);"startTimeSeconds"in G&&G.startTimeSeconds&&(_.F("enable_player_request_builder_start_time_floor")?m.startTimeSecs=Math.floor(G.startTimeSeconds):m.startTimeSecs=G.startTimeSeconds);K.contentPlaybackContext&&(m.playbackContext={contentPlaybackContext:K.contentPlaybackContext});K.prefetchPlaybackContext&&
(m.playbackContext=Object.assign({},m.playbackContext,{prefetchPlaybackContext:K.prefetchPlaybackContext}),m.context.request||(m.context.request={}),m.context.request.isPrefetch=!0);m.playbackContext||(m.playbackContext={});W=v2s();m.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!W,supportXhr:s$5};K.overrideMutedAtStart&&(m.overrideMutedAtStart=K.overrideMutedAtStart);m.racyCheckOk=!!G.racyCheckOk;m.contentCheckOk=!!G.contentCheckOk;!_.F("captions_prefs_killswitch")&&(K=(K=_.Gh("yt-player-caption-language-preferences"))?
K:[],K==null?0:K.length)&&(m.captionParams={viewerSelectedCaptionLangs:K})};
_.w.getRequestConfig=function(m){m=this.JSC$14490_getStoreKey(m);var G;m&&(G={storeStrategy:{storeKey:m}});_.F("web_log_player_watch_next_ticks")&&(G=G||{},G.requestTick="ps_s",G.responseTick="ps_r");return G};
fq[XF]=[VM];var xI=function(m,G){this.playerRequestBuilder=m;this.watchNextRequestBuilder=G};
_.n(xI,ci);xI.prototype.getApiPaths=function(){return ML4};
xI.prototype.getExtension=function(m){return _.Q(m,_.QQ)};
xI.prototype.isNavigationCommand=function(){return!0};
xI.prototype.JSC$14483_buildRequest=function(m,G,K){m.playerRequest={};this.playerRequestBuilder.JSC$14483_buildRequest(m.playerRequest,G,K);if(_.F("web_streaming_watch")||_.F("mweb_streaming_watch"))m.watchNextRequest={},this.watchNextRequestBuilder.JSC$14483_buildRequest(m.watchNextRequest,G,K)};
xI[XF]=[fq,PC];var qRz;_.X2=new _.sX("SHORTS_CONTROLLER_TOKEN");qRz=new _.sX("SHORTS_STATE_STORE_TOKEN");var SK=function(m,G){var K=_.mb.apply(2,arguments);m=m===void 0?0:m;_.cw.call(this,G,K);this.errorType=m;Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(SK,_.cw);var E2W,HBO,I55,Y0o,Db,nGC,CrG,kIP,yIz,d7q,ZBi;E2W=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(m){return m+"="}).join("|"));
HBO=RegExp(".*\\?.*playnext=1.*");I55=function(m,G,K,W,L,A){this.watchEndpointMap=m;this.reelWatchEndpointMap=G;this.innerTubeTransportService=K;this.fetchPbj=W;this.ephemeralStore=L;this.reloadOnPlayerFailure=A===void 0?!0:A};
_.j$q=function(m,G){var K=_.U8("web_pbj_log_warning_rate",0);K=K>0&&Math.random()<K;var W;if((W=_.Q(G.commandMetadata,_.RQ))==null||!W.rootVe)return K&&_.nc(Error("hj")),!1;var L;W=(L=_.Q(G.commandMetadata,_.RQ))==null?void 0:L.url;if(!W)return K&&_.nc(Error("ij")),!1;if(HBO.test(W))return!0;if(E2W.test(W))return K&&_.nc(Error("jj`"+W)),!1;if(_.Q(G,_.QQ)){if(!(m.watchEndpointMap.watchNext&&m.watchEndpointMap.player||_.F("kevlar_fetch_initial_data_op_watch_client")))return K&&_.nc(Error("dj")),!1;
m=_.U8("web_pbj_log_warning_rate",0);m=m>0&&Math.random()<m;_.Q(G,_.QQ)?WGV(G)?G=!0:(m&&_.nc(Error("ej")),G=!1):(m&&_.nc(Error("dj")),G=!1);return G}if(_.Q(G,_.lw))return LGF(G);if(_.Q(G,_.Yq))return!0;m=_.Dg(m.innerTubeTransportService,G);!m&&K&&_.am(Error("kj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(G)});return m};
Y0o=function(m,G,K,W,L,A){G={url:G};if(K==null?0:K.itct)G.parentTrackingParams=K.itct;var O=_.sv(DMK);return _.Jf(m.innerTubeTransportService,G,O).then(function(c){(c=c.endpoint)||(c=_.lu);(K==null?0:K.itct)&&c&&!c.trackingParams&&(c.trackingParams=K.itct);var u=Uv(c);return Db(m,c,K,W,u,L,A)})};
Db=function(m,G,K,W,L,A,O,c){c=c===void 0?{}:c;if(m.fetchPbj&&!_.j$q(m,G)&&!_.F("force_one_platform")){var u=m.fetchPbj(G),h=_.fJ(u.then(function(U){if(!U)throw Error("lj");O(h)||A(G,U);return U}));
return h}var J,N,D={rootVe:(J=_.Q(G.commandMetadata,_.RQ))==null?void 0:J.rootVe,url:(N=_.Q(G.commandMetadata,_.RQ))==null?void 0:N.url,endpoint:G,page:L};if(_.Q(G,_.QQ)){var t,a={contentPlaybackContext:_.dS(K,(t=_.Q(G.commandMetadata,_.RQ))==null?void 0:t.url,W)},v=_.Qo(),I,Z=(I=m.watchEndpointMap.player)==null?void 0:I().JSC$14490_getStoreKey(G);I=Z!==void 0&&((u=m.ephemeralStore)==null?void 0:u.has(Z));(_.F("web_streaming_watch")||_.F("mweb_streaming_watch"))&&window.TextDecoderStream&&!I?(u=zQC(m.innerTubeTransportService,
G,a,function(U){!D.response&&U.content&&(D.response=U.content);!D.playerResponse&&U.player&&(D.playerResponse=U.player);A(G,D)}),Z=HKV(G),Z.length&&(D.preconnect=Z,A(G,D)),kIP(u,v,D).catch(function(U){U instanceof SK&&U.errorType===2&&_.F("web_streaming_watch_fallback")&&CrG(m,G,a,D,A,O,v)})):CrG(m,G,a,D,A,O,v);
return v.promise}if(_.Q(G,_.lw)){var k;if(((k=_.Q(G,_.lw))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var z=_.Qo();_.Vaq(_.xS().resolve(_.X2),G).then(function(U){ZBi(m,K,W,L,A,z,U)});
return z.promise}u=_.fJ();I={contentPlaybackContext:_.dS(K,(Z=_.Q(G.commandMetadata,_.RQ))==null?void 0:Z.url,W)};(Z=m.reelWatchEndpointMap.player)&&(Z=Z().JSC$14483_getRequest(G,I))&&(u=_.Jf(m.innerTubeTransportService,Z.innerTubeRequest,Z.input,G.clickTrackingParams,Z.config));Z=_.fJ();(c=m.reelWatchEndpointMap.reelItemWatch)&&(c=c().JSC$14483_getRequest(G))&&(Z=_.Jf(m.innerTubeTransportService,c.innerTubeRequest,c.input,G.clickTrackingParams,c.config));c=_.fJ();(J=m.reelWatchEndpointMap.reelWatchSequence)&&
_.Q(G,_.lw).sequenceParams&&(I=J().JSC$14483_getRequest(G,I))&&(c=_.Jf(m.innerTubeTransportService,I.innerTubeRequest,I.input,G.clickTrackingParams,I.config));I=_.fJ(D);J=_.Qo();d7q(G,I,u,Z,c,A,O,J);return J.promise}var X;if(_.Q(G,xed)&&((X=_.Q(G.commandMetadata,_.RQ))==null?0:X.url))return u=SmG(_.jU(ur().location.href),_.jU(_.Q(G.commandMetadata,_.RQ).url)).toString(),Y0o(m,u,K,W,A,function(){return!1});
if(_.Q(G,_.Yq))return A(G,D),_.fJ(D);if(_.Dg(m.innerTubeTransportService,G)){u=Object.assign({},{tempData:K,disableCache:K.disableCache},c);var f=_.to(m.innerTubeTransportService,G,u).then(function(U){D.response=U;O(f)||A(G,D);return D});
return f}return _.fJ(D)};
_.PrD=function(m,G,K,W){if(_.Q(G,_.QQ)||_.Q(G,_.lw)&&(_.F("mweb_enable_shorts_innertube_player_prefetch")||_.F("kevlar_enable_shorts_prefetch_in_sequence"))||_.Q(G,mRK)&&_.F("web_enable_prefetching_videos_on_home")){var L,A={contentPlaybackContext:_.dS(K,(L=_.Q(G.commandMetadata,_.RQ))==null?void 0:L.url,W),prefetchPlaybackContext:Ovf(K)},O,c,u;if(((O=_.Q(G,_.QQ))==null?void 0:(c=O.watchEndpointSupportedPrefetchConfig)==null?void 0:(u=c.prefetchHintConfig)==null?void 0:u.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(K=
m.watchEndpointMap.watchNext)if(A=K().JSC$14483_getRequest(G,A))return Promise.resolve(_.Jf(m.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(N){return N}))}else if(K=m.watchEndpointMap.player)if(A=K().JSC$14483_getRequest(G,A))return Promise.resolve(_.Jf(m.innerTubeTransportService,A.innerTubeRequest,A.input,void 0,A.config).then(function(N){return N}))}else if(_.Dg(m.innerTubeTransportService,G)){var h={tempData:K},J=ft2(m.innerTubeTransportService,G);
return J?new Promise(function(N,D){var t,a;return _.Y(function(v){if(v.nextAddress==1)return v.yield(J,2);if(v.nextAddress!=4)return t=v.yieldResult,t.JSC$14490_getStoreKey(G,h)?v.yield(_.to(m.innerTubeTransportService,G,h),4):(D(new _.cw("Prefetching request builder with no store key.",G)),v.jumpTo(0));a=v.yieldResult;N(a);_.ey(v)})}):Promise.reject(new _.cw("Prefetching unregistered request builder.",G))}return Promise.reject(new _.cw("No request builder available to prefetch endpoint.",G))};
nGC=function(m,G){var K,W,L;if(_.Q(G,_.QQ)){var A=m.watchEndpointMap.watchNext;A&&(K=A());(m=m.watchEndpointMap.player)&&(W=m())}else if(_.Q(G,_.lw))(A=m.reelWatchEndpointMap.reelItemWatch)&&(K=A()),(A=m.reelWatchEndpointMap.player)&&(W=A()),(m=m.reelWatchEndpointMap.reelWatchSequence)&&(L=m());else{a:{m=FZF(G,m.innerTubeTransportService.endpointMap);if(m!==void 0)if(typeof m.then==="function")_.am(new _.cw("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",G));else break a;
m=void 0}m&&(K=m)}var O,c,u;return{content:(O=K)==null?void 0:O.JSC$14490_getStoreKey(G),player:(c=W)==null?void 0:c.JSC$14490_getStoreKey(G),reelSequence:(u=L)==null?void 0:u.JSC$14490_getStoreKey(G)}};
CrG=function(m,G,K,W,L,A,O){var c=_.fJ(),u=m.watchEndpointMap.player;_.F("web_streaming_player")&&(u=u_(xI));u&&(u=u().JSC$14483_getRequest(G,K))&&(c=_.Jf(m.innerTubeTransportService,u.innerTubeRequest,u.input,G.clickTrackingParams,u.config));u=_.fJ();var h=m.watchEndpointMap.watchNext;h&&(K=h().JSC$14483_getRequest(G,K))&&(u=_.Jf(m.innerTubeTransportService,K.innerTubeRequest,K.input,G.clickTrackingParams,K.config));W=_.fJ(W);yIz(m,G,W,c,u,L,A,O)};
kIP=function(m,G,K){var W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(m,2);_.F("web_streaming_watch_delay_200")||_.F("web_streaming_watch_delay_400")?(W=_.F("web_streaming_watch_delay_200")?200:400,setTimeout(function(){G.resolve(K)},W)):G.resolve(K);
_.ey(L)})};
yIz=function(m,G,K,W,L,A,O,c){var u,h,J,N,D;_.Y(function(t){switch(t.nextAddress){case 1:return t.yield(K,2);case 2:u=t.yieldResult;if(O(c.promise))return c.resolve(u),t.return();A(G,u);h=HKV(G);if(!h.length){t.jumpTo(3);break}return t.yield(K,4);case 4:u.preconnect=h,A(G,u);case 3:return _.IO(t,5),t.yield(W,7);case 7:J=t.yieldResult;_.IG(t,6);break;case 5:return N=_.ye(t),c.reject(N),t.return();case 6:if(J===void 0&&m.reloadOnPlayerFailure)return u.reload=!0,A(G,u),c.resolve(u),t.return();if(O(c.promise))return c.resolve(u),
t.return();u.playerResponse=J;A(G,u);(_.F("web_watch_stop_scheduler_on_player_response")||_.F("mweb_watch_stop_scheduler_on_player_response"))&&KQk();_.IO(t,8);return t.yield(L,10);case 10:D=t.yieldResult;_.IG(t,9);break;case 8:_.ye(t);case 9:if(D===void 0)return u.response={responseContext:{}},c.resolve(u),t.return();if(O(c.promise))return c.resolve(u),t.return();u.response=D;A(G,u);c.resolve(u);_.ey(t)}})};
d7q=function(m,G,K,W,L,A,O,c){var u,h,J,N,D,t;_.Y(function(a){switch(a.nextAddress){case 1:return a.yield(G,2);case 2:u=a.yieldResult;if(O(c.promise))return c.resolve(u),a.return();A(m,u);h=HKV(m);if(!h.length){a.jumpTo(3);break}return a.yield(G,4);case 4:u.preconnect=h,A(m,u);case 3:return _.IO(a,5),a.yield(K,7);case 7:J=a.yieldResult;_.IG(a,6);break;case 5:return N=_.ye(a),c.reject(N),a.return();case 6:if(J===void 0)return u.reload=!0,A(m,u),c.resolve(u),a.return();if(O(c.promise))return c.resolve(u),
a.return();u.playerResponse=J;A(m,u);(_.F("web_shorts_stop_scheduler_on_player_response")||_.F("mweb_shorts_stop_scheduler_on_player_response"))&&KQk();_.IO(a,8);return a.yield(W,10);case 10:D=a.yieldResult;_.IG(a,9);break;case 8:_.ye(a);case 9:if(D===void 0)return u.response={responseContext:{}},c.resolve(u),a.return();if(O(c.promise))return c.resolve(u),a.return();u.response=D;A(m,u);_.IO(a,11);return a.yield(L,13);case 13:t=a.yieldResult;_.IG(a,12);break;case 11:_.ye(a);case 12:if(O(c.promise))return c.resolve(u),
a.return();t&&(u.reelWatchSequenceResponse=t);A(m,u);c.resolve(u);_.ey(a)}})};
ZBi=function(m,G,K,W,L,A,O){var c,u,h,J,N,D;_.Y(function(t){if((c=O)==null||!c.replacementEndpoint)return A.reject(),t.return();u=O.replacementEndpoint;(h=_.Q(u,_.lw))?(O.sequenceContinuation&&(h.sequenceParams=O.sequenceContinuation),J=_.xS().resolve(_.X2),N=h.sequenceParams,eLE(J,u)&&delete h.sequenceParams,D=Db(m,u,G,K,W,L,function(){return!1}),D.then(function(a){return _.Y(function(v){if(v.nextAddress==1)return f5q(J,{reelWatchEndpoint:{sequenceParams:N}},a),v.yield(0,2);
A.resolve(a);_.ey(v)})})):A.reject();
_.ey(t)})};
I55[XF]=[n2O,bBq,_.Tv,_.fn(dbC),_.fn(_.y$)];var x7P=function(){var m=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return m.sequenceMap}}},lt4=function(m,G,K){var W,L=(W=G.config)==null?void 0:W.sequenceStrategy;
if(!L)return K();m.sequenceMap.has(L.sequenceKey)||m.sequenceMap.set(L.sequenceKey,[]);m=m.sequenceMap.get(L.sequenceKey);switch(L.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return XtW(m,G,K);case "REQUEST_SEQUENCE_TYPE_REPLACE":return SRP(m,G,K);default:throw new _.cw("Request could not be sequenced",G);}},XtW=function(m,G,K){var W,L,A;
return _.Y(function(O){m.length>0?(L=m[m.length-1],W=L.responsePromise.then(function(){return K()})):W=K();
A={request:G,responsePromise:W};m.push(A);RLP(m,A);return O.return(A.responsePromise)})},SRP=function(m,G,K){K=K();
if(m.length>0)for(var W=_.g(m),L=W.next();!L.done;L=W.next())L.value.responsePromise=K;var A={request:G,responsePromise:K};m.push(A);RLP(m,A);return Promise.resolve().then(function(){return m.indexOf(A)>0?A.responsePromise.then(function(O){return Object.assign({},O,{sequenceMetaData:{skipProcessing:!0}})}):A.responsePromise})},RLP=function(m,G){G.responsePromise.then(function(){var K=m.indexOf(G);
K>-1&&m.splice(K,1)})};var U7D=new _.sX("REQUEST_SEQUENCING");var RY=function(){};
_.n(RY,ci);RY.prototype.getApiPaths=function(){return[]};
RY.prototype.getExtension=function(m){return _.Q(m,EW2)};
RY.prototype.JSC$14483_buildRequest=function(m,G){m.recaptchaToken=G.recaptchaToken};
RY.prototype.getApiUrl=function(){return"/das_captcha"};var Ut=function(){};
_.n(Ut,ci);Ut.prototype.getApiPaths=function(){return De4};
Ut.prototype.getExtension=function(m){return _.Q(m,O2l)};
Ut.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.createBackstagePostParams&&(m.createBackstagePostParams=G.createBackstagePostParams);K.comment_text&&(m.commentText=K.comment_text);if(K.attached_video_id)m.videoAttachment={videoId:K.attached_video_id};else if(K.image_poll_options)m.pollAttachmentData={options:K.image_poll_options};else if(K.poll_options)m.pollAttachment={choices:K.poll_options};else if(K.quiz_options)m.quizAttachmentData={options:K.quiz_options};else if(K.image_blob_id)m.imageAttachment=
{encryptedBlobId:K.image_blob_id},K.source_video_id&&(m.imageAttachment.sourceExternalVideoId=K.source_video_id),K.image_preview_coordinates&&(m.imageAttachment.previewCoordinates=JSON.parse(K.image_preview_coordinates));else if(K.images_data)m.imagesAttachment={imagesData:K.images_data};else if(K.clip_external_video_id!==void 0||K.clip_offset_ms!==void 0||K.clip_duration_ms!==void 0){var W,L,A,O,c;m.clipAttachment={externalVideoId:(A=K.clip_external_video_id)!=null?A:"",offsetMs:(O=(W=K.clip_offset_ms)==
null?void 0:W.toString())!=null?O:"",durationMs:(c=(L=K.clip_duration_ms)==null?void 0:L.toString())!=null?c:""}}else K.shared_post_id&&(m.sharedPostAttachment={postId:K.shared_post_id});K.tagged_video_id&&(m.postCreationData={taggedVideoId:K.tagged_video_id});K.access_restrictions&&(typeof K.access_restrictions==="number"&&(G=K.access_restrictions,m.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof K.access_restrictions==="string"&&
(m.accessRestrictionsParams=K.access_restrictions));K.scheduled_publish_time_sec&&(m.scheduledPublishTimeSec=K.scheduled_publish_time_sec.toString())};var zW=function(){};
_.n(zW,ci);zW.prototype.getApiPaths=function(){return b4l};
zW.prototype.getExtension=function(m){return _.Q(m,YD2)};
zW.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.decorateMessageParams&&(m.params=G.decorateMessageParams);K.text&&(m.text=K.text)};var lI=function(){};
_.n(lI,ci);lI.prototype.getApiPaths=function(){return SPB};
lI.prototype.getExtension=function(m){return _.Q(m,cZC)};
lI.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;K.video_id&&(m.videoId=K.video_id)};var BS=function(){};
_.n(BS,ci);BS.prototype.getApiPaths=function(){return BrR};
BS.prototype.getExtension=function(m){return _.Q(m,_.SD)};
BS.prototype.JSC$14483_buildRequest=function(m,G,K){K.suggestions_query&&(m.input=K.suggestions_query)};var Mx=function(){};
_.n(Mx,ci);Mx.prototype.getApiPaths=function(){return Efo};
Mx.prototype.getExtension=function(m){return _.Q(m,YLX)};
Mx.prototype.JSC$14483_buildRequest=function(m,G,K){K.comment_text!==void 0&&(m.commentText=K.comment_text);K.scheduled_publish_time_sec&&(m.scheduledPublishTimeSec=K.scheduled_publish_time_sec.toString());m.updateBackstagePostParams=G.updateBackstagePostParams};var TW=function(){};
_.n(TW,ci);TW.prototype.getApiPaths=function(){return vY};
TW.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
TW.prototype.JSC$14483_buildRequest=function(m,G,K){K.formData&&(m.formData=K.formData);G.token?m.continuation=G.token:G.continuationTokenKey&&(K=_.$R().getState(),G=_.yx(K.entities,"continuationTokenEntity",G.continuationTokenKey))&&(m.continuation=String(G.continuationToken))};
var zLu=function(){};
_.n(zLu,ci);_.w=zLu.prototype;_.w.getApiPaths=function(){return vY};
_.w.getExtension=function(m){return _.Q(m,_.S8)};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14490_getStoreKey=function(m){if((m=this.getExtension(m))&&m.browseId){var G={browseId:m.browseId};m.browseEndpointContextSupportedConfigs&&(G.browseEndpointContextSupportedConfigs=JSON.stringify(m.browseEndpointContextSupportedConfigs));m.params&&(G.params=m.params);m.query&&(G.query=m.query);return _.FA("browse",G)}};
_.w.JSC$14483_buildRequest=function(m,G,K){G.browseId&&(m.browseId=G.browseId);G.params&&(m.params=G.params);G.query&&(m.query=G.query);K.formData?m.formData=K.formData:G.formData&&(m.formData=G.formData);G.browseId==="FEsubscriptions"&&_.M$().getFlag(155)&&(m.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");G.browseId==="SPaccount_playback"&&(K=_.M$(),m.formData||(m.formData={}),m.formData.accountSettingsFormData={flagCaptionsDefaultOff:K.getFlag(65),flagAutoCaptionsDefaultOn:K.getFlag(66),
flagDisableInlinePreview:K.getFlag(186),flagAudioDescriptionDefaultOn:K.getFlag(198)});if(G.browseId==="FEwhat_to_watch"){K=_.M$();var W=K.getFlag(196);K.getFlag(197)&&(m.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:W}}})}G.browseId==="FEwhat_to_watch"&&(G=_.M$().getFlag(186),m.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.w.getRequestConfig=function(m,G){G=G===void 0?{}:G;var K={};if(m=this.JSC$14490_getStoreKey(m,G))K.storeStrategy={storeKey:m,disableCache:G.disableCache};_.F("web_log_browse_ticks_ks")||(K.requestTick="br_s",K.responseTick="br_r");return K};var mA=function(){};
_.n(mA,ci);mA.prototype.getApiPaths=function(){return reC};
mA.prototype.getExtension=function(m){return _.Q(m,fWB)};
mA.prototype.JSC$14483_buildRequest=function(m,G,K){m.legacyYoutubeChannelUsername=K.legacyYouTubeChannelUsername||"";m.legacyYoutubeChannelPassword=K.legacyYouTubeChannelPassword||""};var i8=function(){};
_.n(i8,ci);i8.prototype.getApiPaths=function(){return tj0};
i8.prototype.getExtension=function(m){return _.Q(m,tgR)};
i8.prototype.JSC$14483_buildRequest=function(m,G,K){K.recaptcha_response_token&&(m.recaptchaResponseToken=K.recaptcha_response_token);K.channel_id&&(m.channelId=K.channel_id)};var GT=function(){};
_.n(GT,ci);GT.prototype.getApiPaths=function(){return H1F};
GT.prototype.getExtension=function(m){return _.Q(m,b2i)};
GT.prototype.JSC$14483_buildRequest=function(m,G,K){G.externalChannelId&&(m.externalChannelId=G.externalChannelId);K.handle&&(m.handleUpdate={handle:K.handle},G.handleEditSource&&(m.handleUpdate.handleEditSource=G.handleEditSource))};var Ke=function(){};
_.n(Ke,ci);Ke.prototype.getApiPaths=function(){return CF2};
Ke.prototype.getExtension=function(m){return _.Q(m,zAk)};
Ke.prototype.JSC$14483_buildRequest=function(m,G,K){G.request&&(m.channelId=G.request.channelId);var W;if(K==null?0:(W=K.uploadDefaults)==null?0:W.emojiReactionSet)m.uploadDefaultsRequest||(m.uploadDefaultsRequest={}),m.uploadDefaultsRequest.emojiReactionSet=K.uploadDefaults.emojiReactionSet};var WD=function(){};
_.n(WD,ci);WD.prototype.getApiPaths=function(){return dMl};
WD.prototype.getExtension=function(m){return _.Q(m,F7G)};
WD.prototype.JSC$14483_buildRequest=function(m,G,K){G.externalChannelId&&(m.externalChannelId=G.externalChannelId);G.channelHandleEntityKey&&(m.channelHandleEntityKey=G.channelHandleEntityKey);G.handleEditSource&&(m.handleEditSource=G.handleEditSource);K.handle?m.handle=K.handle:K.name&&(m.name=K.name)};var Le=function(){};
_.n(Le,ci);Le.prototype.getApiPaths=function(){return pj2};
Le.prototype.getExtension=function(m){return _.Q(m,UR2)};
Le.prototype.JSC$14483_buildRequest=function(m,G){G.actions?m.actions=G.actions:G.action&&(m.actions=[G.action])};var Ay=function(){};
_.n(Ay,ci);Ay.prototype.getApiPaths=function(){return JeP};
Ay.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
Ay.prototype.JSC$14483_buildRequest=function(m,G){G.token&&(m.continuation=G.token)};var wX=function(){};
_.n(wX,ci);wX.prototype.getApiPaths=function(){return xeK};
wX.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
wX.prototype.JSC$14483_buildRequest=function(m,G){m.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";G.token&&(m.fetchCommentsParams={continuation:G.token})};var gX=function(){};
_.n(gX,ci);gX.prototype.getApiPaths=function(){return QXC};
gX.prototype.getExtension=function(m){return _.Q(m,RhB)};
gX.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.createReplyParams&&(m.createReplyParams=G.createReplyParams);G.commentText&&(m.commentText=_.bw(G.commentText));K.comment_text&&(m.commentText=K.comment_text);K.image_blob_id&&(m.imageAttachment={encryptedBlobId:K.image_blob_id});K.botguard_response&&(m.botguardResponse=K.botguard_response)};
_.e_.Object.defineProperties(gX.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Oj=function(){};
_.n(Oj,ci);Oj.prototype.getApiPaths=function(){return aBC};
Oj.prototype.getExtension=function(m){return _.Q(m,_.SDC)};
Oj.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.createCommentParams&&(m.createCommentParams=G.createCommentParams);G.commentText&&(m.commentText=_.bw(G.commentText));G.videoPositionMention&&(m.videoPositionMention=G.videoPositionMention);G.sources&&(m.sources=G.sources);K.comment_text&&(m.commentText=K.comment_text);K.attached_video_id?m.videoAttachment={videoId:K.attached_video_id}:K.poll_options?m.pollAttachment={choices:K.poll_options}:K.image_blob_id?m.imageAttachment=
{encryptedBlobId:K.image_blob_id}:K.shared_post_id&&(m.sharedPostAttachment={postId:K.shared_post_id});K.access_restrictions&&typeof K.access_restrictions==="number"&&(G=K.access_restrictions,m.accessRestrictions={restriction:G!==1&&G===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});K.botguard_response&&(m.botguardResponse=K.botguard_response)};
_.e_.Object.defineProperties(Oj.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cD=function(){};
_.n(cD,ci);cD.prototype.getApiPaths=function(){return I22};
cD.prototype.getExtension=function(m){return _.Q(m,lfk)};
cD.prototype.JSC$14483_buildRequest=function(m,G,K){G.commentText&&(m.replyText=_.bw(G.commentText));K.comment_text&&(m.replyText=K.comment_text);m.updateReplyParams=G.updateReplyParams};
_.e_.Object.defineProperties(cD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YH=function(){};
_.n(YH,ci);YH.prototype.getApiPaths=function(){return jy4};
YH.prototype.getExtension=function(m){return _.Q(m,zhi)};
YH.prototype.JSC$14483_buildRequest=function(m,G,K){G.commentText&&(m.commentText=_.bw(G.commentText));K.comment_text&&(m.commentText=K.comment_text);m.updateCommentParams=G.updateCommentParams};
_.e_.Object.defineProperties(YH.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rX=function(){};
_.n(rX,ci);rX.prototype.getApiPaths=function(){return kQo};
rX.prototype.getExtension=function(m){return _.Q(m,X0l)};
rX.prototype.JSC$14483_buildRequest=function(m,G){G.settings&&(m.settings=G.settings)};var u8=function(){};
_.n(u8,ci);u8.prototype.getApiPaths=function(){return VLB};
u8.prototype.getExtension=function(m){return _.Q(m,Q94)};
u8.prototype.JSC$14483_buildRequest=function(m,G){G.channelCreationToken&&(m.channelCreationToken=G.channelCreationToken);G.source&&(m.source=G.source)};var hy=function(){};
_.n(hy,ci);hy.prototype.getApiPaths=function(){return FqB};
hy.prototype.getExtension=function(m){return _.Q(m,nKG)};
hy.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;if(K.name&&(K.given_name||K.family_name))m=new _.cw("channel creation cannot set both GAIA and YouTube names",G),_.am(m);else{if(G.zeroStepChannelCreationParams){if(!K.comment_text){m=new _.cw("zero_step_create_comment_params but no zero_step_texts",G);_.am(m);return}m.zeroStepChannelCreationParams=G.zeroStepChannelCreationParams;m.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(m.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
K.comment_text,K.botguard_response&&(m.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=K.botguard_response))}m.channelCreationToken=G.channelCreationToken;K.given_name&&(m.givenName=K.given_name);K.family_name&&(m.familyName=K.family_name);G.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(m.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(K.name||K.handle||K.avatar_url||K.encryptedBlobId||K.isNameChanged!==void 0||K.isHandleChanged!==void 0||K.isDefaultProfilePhoto!==
void 0||K.obakeImageSource)m.overrideChannelCreationParams={},K.name&&(m.overrideChannelCreationParams.name=K.name),K.handle&&(m.overrideChannelCreationParams.handle=K.handle),K.avatar_url&&(m.overrideChannelCreationParams.avatarUrl=K.avatar_url),K.encryptedBlobId&&(m.overrideChannelCreationParams.blobEncryptionId=K.encryptedBlobId),K.enableIdentityForAllChannelCreationDialog&&(K.encryptedBlobId?m.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
K.isDefaultProfilePhoto!==void 0&&(m.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=K.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),K.isNameChanged!==void 0&&(m.overrideChannelCreationParams.identityForAllChannelCreationNameTag=K.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),K.isHandleChanged!==
void 0&&(m.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=K.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),K.obakeImageSource&&(m.overrideChannelCreationParams.obakeImageSourceType=K.obakeImageSource))}};var pe=function(){};
_.n(pe,ci);pe.prototype.getApiPaths=function(m){return(m=this.getExtension(m))&&m.status==="DISLIKE"?qPG:m&&m.status==="INDIFFERENT"?hUG:GQ4};
pe.prototype.getExtension=function(m){return _.Q(m,_.KK)};
pe.prototype.JSC$14483_buildRequest=function(m,G){G.target&&(m.target=G.target);if(G=this.getParams(G))m.params=G};
pe.prototype.getParams=function(m){switch(m==null?void 0:m.status){case "DISLIKE":return m.dislikeParams;case "INDIFFERENT":return m.removeLikeParams;default:return m==null?void 0:m.likeParams}};var Jy=function(){};
_.n(Jy,ci);Jy.prototype.getApiPaths=function(){return nfS};
Jy.prototype.getExtension=function(m){return _.Q(m,GMl)};
Jy.prototype.JSC$14483_buildRequest=function(m,G){G.settingItemId&&(m.settingItemId=G.settingItemId);G.stringValue!=null&&G.stringValue!==void 0?m.newValue={stringValue:G.stringValue}:G.intValue?m.newValue={intValue:G.intValue}:G.boolValue!==null&&G.boolValue!==void 0?m.newValue={boolValue:G.boolValue}:(m=new _.cw("Unknown value type for SetSettingEndpoint.",G),_.am(m))};var N4=function(){};
_.n(N4,ci);N4.prototype.getApiPaths=function(){return $M4};
N4.prototype.getExtension=function(m){return _.Q(m,tBK)||void 0};
N4.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.channelIds&&(m.channelIds=G.channelIds);G.siloName&&(m.siloName=G.siloName);G.params&&(m.params=G.params);K.botguardResponse&&(m.botguardResponse=K.botguardResponse);K.feature&&(m.clientFeature=K.feature)};
_.e_.Object.defineProperties(N4.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dv=function(){};
_.n(Dv,ci);Dv.prototype.getApiPaths=function(){return qmX};
Dv.prototype.getExtension=function(m){return _.Q(m,Ks4)||void 0};
Dv.prototype.JSC$14483_buildRequest=function(m,G){G.channelIds&&(m.channelIds=G.channelIds);G.siloName&&(m.siloName=G.siloName);G.params&&(m.params=G.params)};
_.e_.Object.defineProperties(Dv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ty=function(m){this.shareClientParamsProvider=m};
_.n(ty,ci);ty.prototype.getApiPaths=function(){return KRM};
ty.prototype.getExtension=function(m){return _.Q(m,$mP)||_.Q(m,_.sE2)||_.Q(m,vPX)};
ty.prototype.JSC$14483_buildRequest=function(m,G){G.serializedShareEntity&&(m.serializedSharedEntity=G.serializedShareEntity);if(G.clientParamIdentifier){var K;if((K=this.shareClientParamsProvider)==null?0:K.clientParams.has(G.clientParamIdentifier)){K=this.shareClientParamsProvider;G=G.clientParamIdentifier;var W=K.clientParams.get(G);W&&K.clientParams.delete(G);m.clientParams=W}}};
ty[XF]=[Qe6];var Fd=function(){};
_.n(Fd,ci);Fd.prototype.getApiPaths=function(){return O4F};
Fd.prototype.getExtension=function(m){return _.Q(m,MiG)};
Fd.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var Qk=function(){};
_.n(Qk,ci);Qk.prototype.getApiPaths=function(){return EmS};
Qk.prototype.getExtension=function(m){return _.Q(m,lWl)};
Qk.prototype.JSC$14483_buildRequest=function(m,G){G.dismissal&&(m.items=[G.dismissal])};
_.e_.Object.defineProperties(Qk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aD=function(){};
_.n(aD,ci);aD.prototype.getApiPaths=function(){return mMi};
aD.prototype.getExtension=function(m){return _.Q(m,_.cX)||void 0};
aD.prototype.JSC$14483_buildRequest=function(m,G,K){m.feedbackTokens=[];G.feedbackToken&&m.feedbackTokens.push(G.feedbackToken);if(G=G.cpn||K.cpn)m.feedbackContext={cpn:G};m.isFeedbackTokenUnencrypted=!!K.is_feedback_token_unencrypted;m.shouldMerge=!1;K.extra_feedback_tokens&&(m.shouldMerge=!0,m.feedbackTokens=m.feedbackTokens.concat(K.extra_feedback_tokens))};
_.e_.Object.defineProperties(aD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oD=function(){};
_.n(oD,ci);oD.prototype.getApiPaths=function(){return mMi};
oD.prototype.getExtension=function(m){return _.Q(m,_.SD)};
oD.prototype.JSC$14483_buildRequest=function(m,G,K){K.feedback_tokens&&(m.feedbackTokens=K.feedback_tokens,m.shouldMerge=!0)};
_.e_.Object.defineProperties(oD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ne=function(){};
_.n(ne,ci);ne.prototype.getApiPaths=function(){return mMi};
ne.prototype.getExtension=function(m){return _.Q(m,FOs)};
ne.prototype.JSC$14483_buildRequest=function(m,G){G.undoToken&&(m.feedbackTokens=[G.undoToken]);G.isUndoTokenUnencrypted&&(m.isFeedbackTokenUnencrypted=G.isUndoTokenUnencrypted)};
_.e_.Object.defineProperties(ne.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b8=function(){};
_.n(b8,ci);b8.prototype.getApiPaths=function(){return PFR};
b8.prototype.getExtension=function(m){return _.Q(m,Rri)};
b8.prototype.JSC$14483_buildRequest=function(m,G){G.nextEndpoint&&_.Q(G.nextEndpoint,_.H$)?m.nextEndpoint={urlEndpoint:_.Q(G.nextEndpoint,_.H$)}:G.nextEndpoint&&_.Q(G.nextEndpoint,_.QQ)&&(m.nextEndpoint={watchEndpoint:_.Q(G.nextEndpoint,_.QQ)});G.setRacy&&(m.setRacy=G.setRacy);G.setControvercy&&(m.setControvercy=G.setControvercy)};var vD=function(m){this.JSC$18499_storeWithEntities=m};
_.n(vD,ci);vD.prototype.getApiPaths=function(){return IBG};
vD.prototype.getExtension=function(m){return _.Q(m,tP0)};
vD.prototype.JSC$14483_buildRequest=function(m,G){G.flowId&&(m.flowId=G.flowId);G.targetId&&(m.targetId=G.targetId);G.continuation&&(m.continuation=G.continuation);var K=G.flowStateEntityKey;if(G.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&K&&this.JSC$18499_storeWithEntities){var W;if(G=(W=this.JSC$18499_storeWithEntities.getState())==null?void 0:W.entities)if(W=_.Vx(K).entityType,W=_.yx(G,W,K))m.flowState=W,m.flowStateEntityKey=K}};
_.e_.Object.defineProperties(vD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
vD[XF]=[VM];var l5W=function(){};
_.n(l5W,ci);_.w=l5W.prototype;_.w.getApiPaths=function(){return Tro};
_.w.JSC$14490_getStoreKey=function(){return _.FA("guide")};
_.w.getRequestConfig=function(){var m=this.JSC$14490_getStoreKey(),G;m&&(G={storeStrategy:{storeKey:m}});return G};
_.w.isNavigationCommand=function(){return!0};
_.w.getExtension=function(m){return _.Q(m,_.SD)};
_.w.JSC$14483_buildRequest=function(m){m.fetchLiveState=!0};var $H=function(){};
_.n($H,ci);$H.prototype.getApiPaths=function(){return upk};
$H.prototype.getExtension=function(m){return _.Q(m,ff0)};
$H.prototype.JSC$14483_buildRequest=function(){};var Ce=function(){};
_.n(Ce,ci);Ce.prototype.getApiPaths=function(){return heF};
Ce.prototype.getExtension=function(m){return _.Q(m,xRC)};
Ce.prototype.JSC$14483_buildRequest=function(){};var Vk=function(){};
_.n(Vk,ci);Vk.prototype.getApiPaths=function(){return gmk};
Vk.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
Vk.prototype.JSC$14483_buildRequest=function(m,G){G.token&&(m.continuation=G.token);var K,W;m==null||(K=m.context)==null||(W=K.user)==null||delete W.onBehalfOfUser};
Vk.prototype.getRequestConfig=function(m){var G={},K;if(((K=this.getExtension(m))==null?void 0:K.sessionIndex)!==void 0){var W;G={authStrategy:{sessionIndex:(W=this.getExtension(m))==null?void 0:W.sessionIndex}}}return G};var Zv=function(){};
_.n(Zv,ci);Zv.prototype.JSC$14483_getRequest=function(m){var G=this.getExtension(m),K=m="";if(G==null?0:G.popup)m="true";if(G==null?0:G.disableSignout)K="true";G={};return{input:"/getAccountSwitcherEndpoint",requestShell:tj("/getAccountSwitcherEndpoint","GET",(G["X-YouTube-Delegation-Context"]=_.E8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),G["X-YouTube-Account-Switcher-Popup"]=m,G["X-YouTube-Account-Switcher-Disable-Signout"]=K,G)),innerTubeRequest:{}}};
Zv.prototype.getApiPaths=function(){return[]};
Zv.prototype.getExtension=function(m){return _.Q(m,_.jzJ)};
Zv.prototype.JSC$14483_buildRequest=function(){};var dX=function(){};
_.n(dX,ci);dX.prototype.JSC$14483_getRequest=function(m){var G="/cross_account_channel_transfer";(m=this.getExtension(m))&&(G=uvG(G,{target_session:m.targetSessionIndex,source_rapt:m.sourceRapt,rapt:m.targetRapt}));return{input:G,requestShell:tj(G,"GET"),innerTubeRequest:{}}};
dX.prototype.getApiPaths=function(){return[]};
dX.prototype.getExtension=function(m){return _.Q(m,VCk)};
dX.prototype.JSC$14483_buildRequest=function(){};var PD=function(){};
_.n(PD,ci);PD.prototype.getApiPaths=function(){return jXF};
PD.prototype.isNavigationCommand=function(){return!0};
PD.prototype.getExtension=function(m){return _.Q(m,_.SD)};
PD.prototype.JSC$14483_buildRequest=function(m){var G=_.M$().get("gsml","");G&&(m.safetyModeLockerObfuscatedGaiaId=G);m.userInterfaceTheme=_.Ng(!0);_.D7()?m.deviceTheme="DEVICE_THEME_SELECTED":_.f2f()?m.deviceTheme="DEVICE_THEME_SUPPORTED":m.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var yk=function(){};
_.n(yk,ci);yk.prototype.getApiPaths=function(){return gmk};
yk.prototype.getExtension=function(m){return _.Q(m,Z_F)};
yk.prototype.JSC$14483_buildRequest=function(m,G){if(G&&G.requestType&&(m.requestType=G.requestType,G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var K=G.nextUrl;K&&(_.pkP(K)||e1(K))&&(m.nextNavendpoint={urlEndpoint:{url:K}})}G&&G.channelSwitcherQuery&&(m.channelSwitcherQuery=G.channelSwitcherQuery);G&&G.triggerChannelCreation&&(m.triggerChannelCreation=G.triggerChannelCreation);var W;if(G==null?0:(W=G.contentOwnerConfig)==
null?0:W.externalContentOwnerId)m.contentOwnerConfig=G.contentOwnerConfig;m.callCircumstance=G&&G.requestType&&G.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var L,A;G=m==null?void 0:(L=m.context)==null?void 0:(A=L.user)==null?void 0:A.onBehalfOfUser;if(G!==void 0){m.obfuscatedSelectedGaiaId=G;var O,c;m==null||(O=m.context)==null||(c=O.user)==null||delete c.onBehalfOfUser}var u,h;if(L=m==null?void 0:(u=m.context)==null?void 0:(h=u.user)==null?
void 0:h.serializedDelegationContext)m.selectedSerializedDelegationContext=L};var eY=function(){};
_.n(eY,ci);eY.prototype.getApiPaths=function(){return ce4};
eY.prototype.getExtension=function(m){return _.Q(m,qHP)};
eY.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var fe=function(){};
_.n(fe,ci);fe.prototype.getApiPaths=function(){return tLS};
fe.prototype.getExtension=function(m){return _.Q(m,_.PJB)};
fe.prototype.JSC$14483_buildRequest=function(m,G){if(G=G.createBroadcastRequest)m.useMasks=G.useMasks,m.broadcastType=G.broadcastType,m.broadcastSource=G.broadcastSource,m.broadcastMetadata=G.broadcastMetadata,m.broadcastMetadataMask=G.broadcastMetadataMask,m.videoMetadata=G.videoMetadata,m.videoMetadataMask=G.videoMetadataMask,m.liveChatSettingsUpdate=G.liveChatSettingsUpdate,m.liveChatSettingsUpdateMask=G.liveChatSettingsUpdateMask,m.cloneVideoId=G.cloneVideoId,m.cloneWithOverrides=G.cloneWithOverrides,
m.targetEntity=G.targetEntity,m.scheduledRedirectMetadata=G.scheduledRedirectMetadata};var xH=function(){};
_.n(xH,ci);xH.prototype.getApiPaths=function(){return omB};
xH.prototype.getExtension=function(m){return _.Q(m,EqR)};
xH.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.params&&(m.params=G.params);K.questionText&&(m.questionText=K.questionText);K.optionText&&K.optionText.length>0&&(m.optionText=K.optionText)};var Xd=function(){};
_.n(Xd,ci);Xd.prototype.getApiPaths=function(){return vmi};
Xd.prototype.getExtension=function(m){return _.Q(m,sgo)};
Xd.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var SY=function(){};
_.n(SY,ci);SY.prototype.getApiPaths=function(){return deS};
SY.prototype.getExtension=function(m){return _.Q(m,nqB)};
SY.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var RD=function(){};
_.n(RD,ci);RD.prototype.getApiPaths=function(){return yei};
RD.prototype.getExtension=function(m){return _.Q(m,bK2)};
RD.prototype.JSC$14483_buildRequest=function(m,G,K){G.params&&(m.params=G.params);G.continuation&&(m.continuation=G.continuation);K.currentPlayerState&&K.currentPlayerState.playerOffsetMs&&(m.currentPlayerState={playerOffsetMs:K.currentPlayerState.playerOffsetMs.toString()})};var Uj=function(){};
_.n(Uj,ci);Uj.prototype.getApiPaths=function(){return eeF};
Uj.prototype.getExtension=function(m){return _.Q(m,oqP)};
Uj.prototype.JSC$14483_buildRequest=function(m,G,K){G.params&&(m.params=G.params);K.continuation&&(m.continuation=K.continuation);"hidden"in K&&(m.webClientInfo={isDocumentHidden:K.hidden});K.isInvalidationTimeoutRequest&&(m.isInvalidationTimeoutRequest=K.isInvalidationTimeoutRequest);K.invalidationPayload&&(G=ajB(_.T9(Ui(K.invalidationPayload))),m.invalidationPayloadLastPublishAtUsec=OA(G,2));K.reloadActionPanel&&(m.reloadActionPanel=K.reloadActionPanel);K.fullReload&&(m.fullReload=K.fullReload);
K.currentPlayerState&&(m.currentPlayerState=K.currentPlayerState)};var zT=function(){};
_.n(zT,ci);zT.prototype.getApiPaths=function(){return KtS};
zT.prototype.getExtension=function(m){return _.Q(m,q74)};
zT.prototype.JSC$14483_buildRequest=function(m,G){m.params=G.params};var l8=function(){};
_.n(l8,ci);l8.prototype.getApiPaths=function(){return PcK};
l8.prototype.getExtension=function(m){return _.Q(m,SHG)};
l8.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var BD=function(){};
_.n(BD,ci);BD.prototype.getApiPaths=function(){return fB0};
BD.prototype.getExtension=function(m){return _.Q(m,RoC)};
BD.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var M4=function(){};
_.n(M4,ci);M4.prototype.getApiPaths=function(){return WtK};
M4.prototype.getExtension=function(m){return _.Q(m,HKi)};
M4.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var TT=function(){};
_.n(TT,ci);TT.prototype.getApiPaths=function(){return A5S};
TT.prototype.getExtension=function(m){return _.Q(m,Iji)};
TT.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var mJ=function(){};
_.n(mJ,ci);mJ.prototype.getApiPaths=function(){return pcK};
mJ.prototype.getExtension=function(m){return _.Q(m,Idk)};
mJ.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var GS=function(){};
_.n(GS,ci);GS.prototype.getApiPaths=function(){return a2k};
GS.prototype.getExtension=function(m){return _.Q(m,_.jgR)};
GS.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.params&&(m.params=G.params);K.client_message_id&&(m.clientMessageId=K.client_message_id);K.recaptcha_token&&(m.recaptchaToken=K.recaptcha_token);K.rich_message&&K.rich_message.text_segments?(G=K.rich_message.text_segments.map(function(W){var L={};W.text&&(L.text=W.text);W.emoji_id&&(L.emojiId=W.emoji_id);return L}),m.richMessage={textSegments:G}):K.message&&(m.message=K.message);
K.currentPlayerState&&(m.currentPlayerState=K.currentPlayerState)};var KE=function(){};
_.n(KE,ci);KE.prototype.getApiPaths=function(){return ofC};
KE.prototype.getExtension=function(m){return _.Q(m,kjB)};
KE.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var W7=function(){};
_.n(W7,ci);W7.prototype.getApiPaths=function(){return syK};
W7.prototype.getExtension=function(m){return _.Q(m,VMS)};
W7.prototype.JSC$14483_buildRequest=function(m,G,K){G.isUserInitiated&&(m.isUserInitiated=G.isUserInitiated);G.initiationSource&&(m.initiationSource=G.initiationSource);K.locationInfo&&(m.context.client.locationInfo=K.locationInfo)};var LE=function(){};
_.n(LE,ci);LE.prototype.getApiPaths=function(){return Lto};
LE.prototype.getExtension=function(m){return _.Q(m,yfl)};
LE.prototype.JSC$14483_buildRequest=function(m,G,K){G.metadataUpdateRequest&&(G=G.metadataUpdateRequest,m.encryptedVideoId=G.encryptedVideoId,G.liveChat&&(G=G.liveChat,m.liveChat||(m.liveChat={}),G.performAsExternalChannelId&&(m.liveChat.performAsExternalChannelId=G.performAsExternalChannelId),G.source&&(m.liveChat.source=G.source)));var W;if(K==null?0:(W=K.liveChat)==null?0:W.liveChatSettings)m.liveChat||(m.liveChat={}),K=K.liveChat.liveChatSettings,m.liveChat.newLiveChatSettings=K,m.liveChat.newLiveChatSettingsMask||
(m.liveChat.newLiveChatSettingsMask={}),K.emojiReactionSet&&(m.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var AN=function(){};
_.n(AN,ci);AN.prototype.getApiPaths=function(){return Z1X};
AN.prototype.getExtension=function(m){return _.Q(m,_.WsC)};
AN.prototype.JSC$14483_buildRequest=function(m,G,K){K.continuation?m.continuation=K.continuation:G.videoId&&(m.videoId=G.videoId);K.clientParams&&(m.clientParams=K.clientParams)};var wo=function(){};
_.n(wo,ci);wo.prototype.getApiPaths=function(){return xeK};
wo.prototype.getExtension=function(m){return _.Q(m,_.O7)};
wo.prototype.JSC$14483_buildRequest=function(m,G){m.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";m.fetchCommentsParams={};G.videoId&&(m.fetchCommentsParams.encryptedVideoId=G.videoId);G.postId&&(m.fetchCommentsParams.postId=G.postId);G.externalChannelId&&(m.fetchCommentsParams.externalChannelId=G.externalChannelId);G.linkedCommentId&&(m.fetchCommentsParams.linkedCommentId=G.linkedCommentId);(0,_.Y2.isEmpty)(m.fetchCommentsParams)&&delete m.fetchCommentsParams};var go=function(){};
_.n(go,ci);go.prototype.getApiPaths=function(){return vY};
go.prototype.JSC$14483_buildRequest=function(m){m.browseId="FEnotifications_inbox"};
go.prototype.getExtension=function(m){return _.Q(m,_.SD)};var OF=function(){};
_.n(OF,ci);OF.prototype.getApiPaths=function(){return xeK};
OF.prototype.JSC$14483_buildRequest=function(m,G){G.signal==="GET_NOTIFICATIONS_MENU"&&(m.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");G.ctoken&&(m.ctoken=G.ctoken)};
var B$q=function(){};
_.n(B$q,OF);B$q.prototype.getExtension=function(m){return _.Q(m,_.SD)};
var MaO=function(){};
_.n(MaO,OF);MaO.prototype.getExtension=function(m){return _.Q(m,xtB)};var c7=function(){};
_.n(c7,ci);c7.prototype.getApiPaths=function(){return lBK};
c7.prototype.getExtension=function(m){return _.Q(m,_.SD)};
c7.prototype.JSC$14483_buildRequest=function(){};var Yp=function(){};
_.n(Yp,ci);Yp.prototype.getApiPaths=function(){return wcF};
Yp.prototype.getExtension=function(m){return _.Q(m,TEk)||void 0};
Yp.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params);G.secondaryParams&&(m.secondaryParams=G.secondaryParams)};var ro=function(){};
_.n(ro,ci);ro.prototype.getApiPaths=function(){return gf2};
ro.prototype.getExtension=function(m){return _.Q(m,EPF)};
ro.prototype.JSC$14483_buildRequest=function(m,G){G.undo&&(m.undo=G.undo);G.serializedOptOut&&(m.serializedOptOut=G.serializedOptOut);G.serializedRecordInteractionsRequest&&(m.serializedRecordInteractionsRequest=G.serializedRecordInteractionsRequest)};var ut=function(){};
_.n(ut,ci);ut.prototype.getApiPaths=function(){return YmF};
ut.prototype.getExtension=function(m){return _.Q(m,HaS)};
ut.prototype.JSC$14483_buildRequest=function(m,G){G.serializedInteractionsRequest&&(m.serializedRecordNotificationInteractionsRequest=G.serializedInteractionsRequest)};var hN=function(){};
_.n(hN,ci);hN.prototype.getApiPaths=function(){return WR6};
hN.prototype.getExtension=function(m){return _.Q(m,_.nz)};
hN.prototype.JSC$14483_buildRequest=function(m,G,K){G=G===void 0?{}:G;K=K===void 0?{}:K;G.videoId?m.videoId=G.videoId:G.playlistId&&(m.playlistId=G.playlistId);var W;m.crossDeviceDownloadData={isCrossDeviceDownload:(W=G.isCrossDeviceDownload)!=null?W:!1};!K.downloadToMobileEduShown&&G.isCrossDeviceDownload&&(m.crossDeviceDownloadData.shouldShowDownloadToMobileEdu=!0);var L;if(W=(L=G.offlineWebClientEligibility)!=null?L:K.offlineWebClientEligibility)m.offlineWebClientEligibility=W;var A;if(L=(A=G.preferredFormatType)!=
null?A:K.preferredFormatType)m.preferredFormatType=L;var O;if(A=(O=G.lastOfflineQualitySettingsSavedMs)!=null?O:K.lastOfflineQualitySettingsSavedMs)m.lastOfflineQualitySettingsSavedMs=A;G.params&&(m.params=G.params)};var pE=function(){};
_.n(pE,ci);pE.prototype.getApiPaths=function(){return $q};
pE.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
pE.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.token&&(m.continuation=G.token);K.formData&&(m.formData=K.formData)};var JN=function(){};
_.n(JN,ci);JN.prototype.getApiPaths=function(){return $q};
JN.prototype.getExtension=function(m){return _.Q(m,jnK)};
JN.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;m.continuation=K.continuation};var Nn=function(){};
_.n(Nn,ci);Nn.prototype.getApiPaths=function(){return $q};
Nn.prototype.getExtension=function(m){return _.Q(m,_.Oa)};
Nn.prototype.JSC$14483_buildRequest=function(m,G){var K,W=G.panelIdentifier||((K=G.identifier)==null?void 0:K.tag);W&&(m.panelId=W);var L;if((L=G.globalConfiguration)==null?0:L.params){var A;m.params=(A=G.globalConfiguration)==null?void 0:A.params}if(_.F("enable_ai_companion")){var O;G=G.engagementPanelExtras;if(G==null?0:(O=G.aiCompanionPanelExtras)==null?0:O.includeClientConversationId){var c,u;O=(u=(c=_.xS().resolve(_.fn(qiq)))==null?void 0:c("conversations"))==null?void 0:u.get("conversation_id")}else O=
void 0;if(c=O)m.formData=Object.assign({},m.formData,{inputComposerFormData:{conversationId:c}})}};
_.e_.Object.defineProperties(Nn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Dt=function(){};
_.n(Dt,ci);Dt.prototype.getApiPaths=function(){return $q};
Dt.prototype.getExtension=function(m){return _.Q(m,ojo)};
Dt.prototype.JSC$14483_buildRequest=function(m,G){G.panelLoadingStrategy&&cm9(m,G.panelLoadingStrategy)};var tN=function(){};
_.n(tN,ci);tN.prototype.getApiPaths=function(){return $q};
tN.prototype.getExtension=function(m){return _.Q(m,fd4)};
tN.prototype.JSC$14483_buildRequest=function(m,G){G.loadingStrategy&&cm9(m,G.loadingStrategy)};var Fy=function(){};
_.n(Fy,ci);Fy.prototype.getApiPaths=function(){return $q};
Fy.prototype.getExtension=function(m){return _.Q(m,_.MW)};
Fy.prototype.JSC$14483_buildRequest=function(m,G){G.panelLoadingStrategy&&cm9(m,G.panelLoadingStrategy)};var QZ=function(){};
_.n(QZ,ci);QZ.prototype.getApiPaths=function(){return $q};
QZ.prototype.getExtension=function(m){return _.Q(m,xmk)};
QZ.prototype.JSC$14483_buildRequest=function(m,G){var K,W=(K=G.contentSourcePanelIdentifier)==null?void 0:K.tag;W&&(m.panelId=W);var L;if((L=G.globalConfiguration)==null?0:L.params){var A;m.params=(A=G.globalConfiguration)==null?void 0:A.params}};var ac=function(){};
_.n(ac,ci);ac.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
ac.prototype.getExtension=function(m){return _.Q(m,Xqk)};
ac.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var oc=function(){};
_.n(oc,ci);oc.prototype.getApiPaths=function(){return Vjl};
oc.prototype.getExtension=function(m){return _.Q(m,UmS)};
oc.prototype.JSC$14483_buildRequest=function(m,G){G.externalChannelId&&(m.externalChannelId=G.externalChannelId);G.superChatAction&&(m.superChatAction=G.superChatAction);G.superStickersAction&&(m.superStickersAction=G.superStickersAction)};var nE=function(){};
_.n(nE,ci);nE.prototype.getApiPaths=function(){return ky0};
nE.prototype.getExtension=function(m){return _.Q(m,ehG)||_.Q(m,xfv)};
nE.prototype.JSC$14483_buildRequest=function(m,G){G.videoIds?m.videoIds=G.videoIds:G.videoId&&(m.videoIds=[G.videoId]);G.playlistId&&(m.playlistId=G.playlistId);G.params&&(m.params=G.params);m.excludeWatchLater=!1};var bt=function(){};
_.n(bt,ci);bt.prototype.getApiPaths=function(){return nmR};
bt.prototype.getExtension=function(m){return _.Q(m,_.pK)};
bt.prototype.JSC$14483_buildRequest=function(m,G,K){K.create_playlist_title?m.title=K.create_playlist_title:G.title&&(m.title=G.title);if(K.create_playlist_privacy_status&&typeof K.create_playlist_privacy_status==="number"){a:{var W=K.create_playlist_privacy_status;if(W!==0){if(W===1){W="PUBLIC";break a}if(W===2){W="UNLISTED";break a}}W="PRIVATE"}m.privacyStatus=W}else G.privacyStatus&&(m.privacyStatus=G.privacyStatus);K.create_playlist_description&&(m.description=K.create_playlist_description);G.videoIds&&
(m.videoIds=G.videoIds);G.params&&(m.params=G.params);G.sourcePlaylistId&&(m.sourcePlaylistId=G.sourcePlaylistId)};var v7=function(){};
_.n(v7,ci);v7.prototype.getApiPaths=function(){return $e0};
v7.prototype.getExtension=function(m){return _.Q(m,BE4)};
v7.prototype.JSC$14483_buildRequest=function(m,G){m.playlistId=G.playlistId};var $p=function(){};
_.n($p,ci);$p.prototype.getApiPaths=function(){return XjS};
$p.prototype.getExtension=function(m){return _.Q(m,nP0)};
$p.prototype.JSC$14483_buildRequest=function(m,G){G.playlistId&&(m.playlistId=G.playlistId);G.params&&(m.params=G.params)};var sF=function(){};
_.n(sF,ci);sF.prototype.getApiPaths=function(){return c52};
sF.prototype.getExtension=function(m){return _.Q(m,_.cB)||void 0};
sF.prototype.JSC$14483_buildRequest=function(m,G){G.actions&&(m.actions=G.actions);G.params&&(m.params=G.params);G.playlistId&&(m.playlistId=G.playlistId)};var qn=function(){};
_.n(qn,ci);_.w=qn.prototype;_.w.getApiPaths=function(){return r5S};
_.w.getExtension=function(m){return _.Q(m,_.lw)};
_.w.JSC$14483_buildRequest=function(m,G){G.videoId&&(m.playerRequest={videoId:G.videoId},G.playerParams&&(m.playerRequest.params=G.playerParams),G.racyCheckOk&&(m.playerRequest.racyCheckOk=!!G.racyCheckOk),G.contentCheckOk&&(m.playerRequest.contentCheckOk=!!G.contentCheckOk));G.params&&(m.params=G.params);G.inputType&&(m.inputType=G.inputType);m.disablePlayerResponse=!0};
_.w.getRequestConfig=function(m){var G;(m=this.JSC$14490_getStoreKey(m))&&(G={storeStrategy:{storeKey:m}});_.F("web_log_reels_ticks")&&(G=G||{},G.requestTick="r_wrs",G.responseTick="r_wrr");return G};
_.w.JSC$14490_getStoreKey=function(m){m=this.getExtension(m);if(m!=null&&m.videoId){var G={videoId:m.videoId};m.params&&(G.params=m.params);return _.FA("reel_item_watch",G)}};var EF=function(){};
_.n(EF,ci);_.w=EF.prototype;_.w.getApiPaths=function(){return uKi};
_.w.getExtension=function(m){return _.Q(m,_.lw)};
_.w.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;m.sequenceParams=G.sequenceParams;var W;((W=K)==null?0:W.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(m.playbackContext={contentPlaybackContext:K.contentPlaybackContext})};
_.w.JSC$14490_getStoreKey=function(m){if(_.F("shorts_controller_retrieve_seedless_sequence_v2")&&(m=this.getExtension(m),m==null?0:m.sequenceParams))return _.FA("reel_watch_sequence",{sequenceParams:m.sequenceParams})};
_.w.getRequestConfig=function(m){m=this.JSC$14490_getStoreKey(m);var G;m&&(G={storeStrategy:{storeKey:m}});G=G||{};G.requestTick="r_wsrs";G.responseTick="r_wsrr";G.processorTick="r_wsrp";return G};
var H7=function(){};
_.n(H7,ci);H7.prototype.getApiPaths=function(){return uKi};
H7.prototype.getExtension=function(m){return _.Q(m,_.Yg)};
H7.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.token&&(m.continuation=G.token);var W;((W=K)==null?0:W.contentPlaybackContext)&&_.F("web_shorts_prefetch_service_enabled")&&(m.playbackContext={contentPlaybackContext:K.contentPlaybackContext})};
H7.prototype.getRequestConfig=function(m){m=this.JSC$14490_getStoreKey(m);var G;m&&(G={storeStrategy:{storeKey:m}});G=G||{};G.requestTick="r_wsrs";G.responseTick="r_wsrr";G.processorTick="r_wsrp";return G};var Ic=function(){};
_.n(Ic,ci);Ic.prototype.getApiPaths=function(){return H4l};
Ic.prototype.getExtension=function(m){return _.Q(m,_.pMS)};
Ic.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.flagAction&&(m.action=G.flagAction);G.flagRequestType&&(m.flagRequestType=G.flagRequestType);G.additionalDetailCheckboxChecked&&(m.additionalDetailCheckboxChecked=G.additionalDetailCheckboxChecked);G.legalCheckboxChecked&&(m.legalCheckboxChecked=G.legalCheckboxChecked);G={};K.flag_issue_type!==void 0&&(G.issue=K.flag_issue_type);K.flag_affiliation!==void 0&&(G.affiliation=K.flag_affiliation);K.flag_full_name&&(G.fullName=K.flag_full_name);
Object.keys(G).length&&(m.legalReportDetails=G);if(K.flag_description||K.text)m.userComments=K.flag_description||K.text;G={};K.minutes!==void 0&&K.seconds!==void 0&&(G.minutes=K.minutes,G.seconds=K.seconds);K.vss_id&&(G.vssId=K.vss_id);Object.keys(G).length&&(m.videoReportDetails=G);G={};K.video_ids&&(G.videoIds=K.video_ids);K.impersonated_channel_url&&(G.impersonatedChannelUrl=K.impersonated_channel_url);Object.keys(G).length&&(m.channelAbuseReportDetails=G)};
_.e_.Object.defineProperties(Ic.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var je=function(){};
_.n(je,ci);je.prototype.getApiPaths=function(){return Z4S};
je.prototype.getExtension=function(m){return _.Q(m,XMi)};
je.prototype.JSC$14483_buildRequest=function(m,G){G.blockedForKidsContent&&(m.blockedForKidsContent=G.blockedForKidsContent)};var kp=function(){};
_.n(kp,ci);kp.prototype.getApiPaths=function(){return J54};
kp.prototype.getExtension=function(m){return _.Q(m,frM)};
kp.prototype.JSC$14483_buildRequest=function(m,G,K){m.params=G.params;K.impersonated_channel_url&&(m.impersonatedChannelUrl=K.impersonated_channel_url)};var CE=function(){};
_.n(CE,ci);CE.prototype.getApiPaths=function(){return i1i};
CE.prototype.getExtension=function(m){return _.Q(m,_.S4F)};
CE.prototype.JSC$14483_buildRequest=function(m,G){G.items&&(m.items=G.items);G.kidGaiaId&&(m.kidGaiaId=G.kidGaiaId)};var VZ=function(){};
_.n(VZ,ci);VZ.prototype.getApiPaths=function(){return CcR};
VZ.prototype.getExtension=function(m){return _.Q(m,_.dRX)};
VZ.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params);G.targetId&&(m.targetId=G.targetId)};var Zt=function(){};
_.n(Zt,ci);Zt.prototype.getApiPaths=function(){return FtR};
Zt.prototype.getExtension=function(m){return _.Q(m,XFl)};
Zt.prototype.JSC$14483_buildRequest=function(m,G){G.externalVideoId&&(m.externalVideoId=G.externalVideoId);G.query&&(m.query=G.query);G.sourceTimelines&&(m.sourceTimelines=G.sourceTimelines)};var P7=function(){};
_.n(P7,ci);P7.prototype.getApiPaths=function(){return Qy0};
P7.prototype.getExtension=function(m){return _.Q(m,_.Yg)||void 0};
P7.prototype.JSC$14483_buildRequest=function(m,G){G.token&&(m.continuation=G.token)};
_.T$G=function(){};
_.n(_.T$G,ci);_.w=_.T$G.prototype;_.w.getApiPaths=function(){return Qy0};
_.w.getExtension=function(m){return _.Q(m,_.RW)||void 0};
_.w.isNavigationCommand=function(){return!0};
_.w.JSC$14490_getStoreKey=function(m,G){G=G===void 0?{}:G;if(!G.disableCache&&(m=this.getExtension(m))&&m.query)return G={query:m.query},m.params&&(G.params=m.params),_.FA("search",G)};
_.w.JSC$14483_buildRequest=function(m,G,K){G.query&&(m.query=G.query);G.params&&(m.params=G.params);if(!_.F("web_forward_suggest_stats_killswitch")){var W=_.Q(G,NRP);W&&(m.suggestStats=W)}var L;!_.F("kevlar_searchbox_stats_killswitch")&&((L=K.tempData)==null?0:L.gs_l)&&!_.Q(G,NRP)&&(m.webSearchboxStatsUrl="/search?oq="+(K.tempData.oq||"")+"&gs_l="+K.tempData.gs_l);var A;if((A=K.tempData)==null?0:A.entityMid)G=m.suggestionSearchParams||{},G.entityMid=K.tempData.entityMid,m.suggestionSearchParams=G;
G=_.M$().getFlag(186);m.inlineSettingStatus=G?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";K.isFromShorts&&(m.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.w.getRequestConfig=function(m,G){G=G===void 0?{}:G;m=this.JSC$14490_getStoreKey(m,G);var K;m&&(K={storeStrategy:{storeKey:m}});_.F("web_log_search_ticks_ks")||(K=K||{},K.requestTick="sr_s",K.responseTick="sr_r");return K};var yZ=function(){};
_.n(yZ,ci);yZ.prototype.getApiPaths=function(){return UeX};
yZ.prototype.getExtension=function(m){return _.Q(m,O9X)};
yZ.prototype.JSC$14483_buildRequest=function(m,G){G.serializedGetSharingProviderDataParams&&(m.serializedGetSharingProviderDataParams=G.serializedGetSharingProviderDataParams)};var ee=function(){};
_.n(ee,ci);ee.prototype.getApiPaths=function(){return zeS};
ee.prototype.getExtension=function(m){return _.Q(m,cpl)};
ee.prototype.JSC$14483_buildRequest=function(m,G){G.endpoint&&(m.endpoint=G.endpoint);G.action&&(m.action=G.action)};var fE=function(){};
_.n(fE,ci);fE.prototype.getApiPaths=function(){return sXo};
fE.prototype.getExtension=function(m){return _.Q(m,MpF)};
fE.prototype.JSC$14483_buildRequest=function(m,G){m.videoId=G.videoId;G.scheduledRedirectMetadataSourceVideoId&&(m.scheduledRedirectMetadata={sourceVideoId:G.scheduledRedirectMetadataSourceVideoId})};var xp=function(){};
_.n(xp,ci);xp.prototype.getApiPaths=function(){return b14};
xp.prototype.getExtension=function(m){return _.Q(m,_.lnl)};
xp.prototype.JSC$14483_buildRequest=function(m,G){m.params=G.params;m.correctionText=G.correctionText};var Xy=function(){};
_.n(Xy,ci);Xy.prototype.getApiPaths=function(){return i7M};
Xy.prototype.getExtension=function(m){return _.Q(m,_.SYo)};
Xy.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params);m.searchQuery=G.searchQuery;m.languageCode=G.languageCode;m.kind=G.kind;m.name=G.name;m.externalVideoId=G.externalVideoId};var Se=function(){};
_.n(Se,ci);Se.prototype.getApiPaths=function(){return eU0};
Se.prototype.getExtension=function(m){return _.Q(m,rr2)};
Se.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.params=G.params)};var Rc=function(m){this.JSC$18775_storeWithEntities=m};
_.n(Rc,ci);Rc.prototype.getApiPaths=function(){return NrR};
Rc.prototype.getExtension=function(m){return _.Q(m,hpC)||_.Q(m,Jro)};
Rc.prototype.JSC$14483_buildRequest=function(m,G,K){K.client_data&&(m.clientData=K.client_data);if(G.commerceActionConfig){var W=G.commerceActionConfig;G=W.actionId;W=W.commerceActionParams;G&&(m.actionId=G);W&&(m.commerceActionParams=W)}else{var L=G.actionId,A=G.commerceActionParams;K=G.entityKeys;L&&(m.actionId=L);A&&(m.commerceActionParams=A);var O;G=(W=this.JSC$18775_storeWithEntities)==null?void 0:(O=W.getState())==null?void 0:O.entities;if(K&&G){W=[];O=_.g(K);for(K=O.next();!K.done;K=O.next())if(L=
K.value,K=_.Vx(L).entityType,L=_.yx(G,K,L))A={},W.push((A[K]=L,A));m.entityMutationPayloads=W}}};
Rc.prototype.getRequestConfig=function(m){var G,K=(G=_.Q(m,hpC))==null?void 0:G.requestSequenceType;if(K&&m.clickTrackingParams&&K!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:m.clickTrackingParams,sequenceType:K}}};
Rc[XF]=[VM];var UF=function(){};
_.n(UF,ci);UF.prototype.getApiPaths=function(){return f2X};
UF.prototype.getExtension=function(m){return _.Q(m,_.VSR)};
UF.prototype.JSC$14483_buildRequest=function(m,G){G.feedbackData&&(m.feedbackData=G.feedbackData);G.params&&(m.itemParams=G.params)};
_.e_.Object.defineProperties(UF.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zS=function(){};
_.n(zS,ci);zS.prototype.getApiPaths=function(){return xM0};
zS.prototype.getExtension=function(m){return _.Q(m,Zfo)};
zS.prototype.JSC$14483_buildRequest=function(m,G,K){K.payments_payload&&(m.paymentsPayload=K.payments_payload);K.offer_params&&(m.offerParams=K.offer_params);G.transactionParams&&(m.transactionParams=G.transactionParams)};var lt=function(){};
_.n(lt,ci);lt.prototype.getApiPaths=function(){return XcB};
lt.prototype.getExtension=function(m){return _.Q(m,_.do4)};
lt.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.buybucketParams&&(m.buybucketData={params:G.buybucketParams},G.stickerParams?m.buybucketData.stickerParams=G.stickerParams:(K.rich_chat_message?m.buybucketData.richChatMessage=K.rich_chat_message:K.chat_message_text&&(m.buybucketData.chatMessageText=K.chat_message_text),K.purchase_price_micros&&(m.buybucketData.purchasePriceMicros=K.purchase_price_micros.toString())));G.donationAmountMicros&&(m.tipAmountMicros=G.donationAmountMicros,
G.tipParams&&(m.tipParams=G.tipParams));G.offerParams&&(m.offerParams=G.offerParams);G.productData&&(m.productData=G.productData);G.transactionParams&&(m.transactionParams=G.transactionParams)};var B7=function(){};
_.n(B7,ci);B7.prototype.getApiPaths=function(){return SmB};
B7.prototype.getExtension=function(m){return _.Q(m,euk)};
B7.prototype.JSC$14483_buildRequest=function(m,G){G.updateFopParams&&(m.updateFopParams=G.updateFopParams)};var Mn=function(){};
_.n(Mn,ci);Mn.prototype.getApiPaths=function(){return RUi};
Mn.prototype.getExtension=function(m){return _.Q(m,_.nQ)};
Mn.prototype.JSC$14483_buildRequest=function(m,G){G.couponCode&&(m.couponCode=G.couponCode);G.params&&(m.itemParams=G.params)};var TS=function(){};
_.n(TS,ci);TS.prototype.getApiPaths=function(){return UMo};
TS.prototype.getExtension=function(m){return _.Q(m,_.pxG)};
TS.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;G.params&&(m.params=G.params);K.ctk&&(m.clientToken=K.ctk)};var ml=function(m){this.JSC$18810_storeWithEntities=m};
_.n(ml,ci);ml.prototype.getApiPaths=function(){return zUR};
ml.prototype.getExtension=function(m){return _.Q(m,_.t6)};
ml.prototype.JSC$14483_buildRequest=function(m,G,K){K.purchase_price_micros&&(m.productData={pdgData:{purchasePriceMicros:K.purchase_price_micros.toString()}},K.rich_chat_message&&(m.productData.pdgData.richChatMessage=K.rich_chat_message),K.currency_code&&(m.productData.pdgData.currencyCode=K.currency_code));G.transactionParams&&(m.transactionParams=G.transactionParams);G.clientLocationContext&&(m.clientLocationContext=G.clientLocationContext);K.payments_payload&&(m.paymentsPayload=K.payments_payload);
K.funds_guarantee_callback_client_data&&(m.fundsGuaranteeCallbackClientData=K.funds_guarantee_callback_client_data);var W,L;K=(W=this.JSC$18810_storeWithEntities)==null?void 0:(L=W.getState())==null?void 0:L.entities;if(G.entityKeys&&K){W=[];G=_.g(G.entityKeys);for(L=G.next();!L.done;L=G.next()){var A=L.value;L=_.Vx(A).entityType;if(A=_.yx(K,L,A)){var O={};W.push((O[L]=A,O))}}m.entityMutationPayloads=W}};
ml[XF]=[VM];var iH=function(){};
_.n(iH,ci);iH.prototype.getApiPaths=function(){return l2X};
iH.prototype.getExtension=function(m){return _.Q(m,PvB)};
iH.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;K.backend_analytics&&(m.serializedBackendAnalyticsEvent=K.backend_analytics);G.offerParams&&(m.offerParams=G.offerParams)};var GR=function(){};
_.n(GR,ci);GR.prototype.getApiPaths=function(){return RUi};
GR.prototype.getExtension=function(m){return _.Q(m,$5d)};
GR.prototype.JSC$14483_buildRequest=function(m,G){G.params&&(m.itemParams=G.params)};var KR=function(){};
_.n(KR,ci);KR.prototype.getApiPaths=function(){return BYG};
KR.prototype.getExtension=function(m){return _.Q(m,_.oUX)};
KR.prototype.JSC$14483_buildRequest=function(m,G,K){K.resume_time_ms&&(m.resumeTimeMs=K.resume_time_ms);G.pauseParams&&(m.pauseParams=G.pauseParams)};var Wd=function(){};
_.n(Wd,ci);Wd.prototype.getApiPaths=function(){return Mj2};
Wd.prototype.getExtension=function(m){return _.Q(m,_.yGF)};
Wd.prototype.JSC$14483_buildRequest=function(m,G,K){K=K===void 0?{}:K;K.c&&(m.redeemCode=K.c);K.rd&&(m.riskData=K.rd);K.ctk&&(m.clientToken=K.ctk)};var LR=function(){};
_.n(LR,ci);LR.prototype.getApiPaths=function(){return TYi};
LR.prototype.getExtension=function(m){return _.Q(m,_.nUo)};
LR.prototype.JSC$14483_buildRequest=function(m,G){G.resumeParams&&(m.resumeParams=G.resumeParams)};var Av=function(m,G){this.clientName=m;this.defaultExpirationDelayMs=G};
Av.prototype.put=function(m,G){var K=this,W;return _.Y(function(L){W=Object.assign({},G.data);W.key=m;W.clientName=K.clientName;W.expireTimestampMs===void 0&&(W.expireTimestampMs=(Math.round((0,_.xD)())+K.defaultExpirationDelayMs).toString());return L.return(K.putInternal(m,W))})};
Av[XF]=[Qh,djz];var mTs=function(){Av.apply(this,arguments);this.JSC$18840_responseStore=new Map};
_.n(mTs,Av);_.w=mTs.prototype;_.w.get=function(m){var G=this;return _.Y(function(K){return K.return(f9(G,m))})};
_.w.putInternal=function(m,G){var K=this,W,L,A;return _.Y(function(O){W=K.defaultExpirationDelayMs;G.expireTimestampMs&&(W=Number(G.expireTimestampMs)-Math.round((0,_.xD)()),L=_.U8("mweb_override_response_store_expiration_ms"),L>0&&L<W&&(W=L));A=setTimeout(function(){K.remove(m)},W);
K.JSC$18840_responseStore.set(m,{entryData:G,timer:A});_.ey(O)})};
_.w.remove=function(m){var G=this;return _.Y(function(K){itq(G,m);_.ey(K)})};
_.w.removeAll=function(){var m=this;return _.Y(function(G){m.JSC$18840_responseStore.forEach(function(K){clearTimeout(K.timer)});
m.JSC$18840_responseStore.clear();_.ey(G)})};
_.w.has=function(m){return!!this.JSC$18840_responseStore.get(m)};
_.w.getKeys=function(){return this.JSC$18840_responseStore.keys()};
var f9=function(m,G){if(m=m.JSC$18840_responseStore.get(G))return new _.eB(m.entryData)},itq=function(m,G){var K=m.JSC$18840_responseStore.get(G);
K&&(clearTimeout(K.timer),m.JSC$18840_responseStore.delete(G))};
mTs.prototype.markAsProcessed=function(m){var G=this,K;return _.Y(function(W){K=G.JSC$18840_responseStore.get(m);if(!K)return W.jumpTo(0);K.entryData.isProcessed=!0;return W.yield(G.putInternal(m,K.entryData),0)})};var YsG;var uG9=function(m,G,K){Av.call(this,m,G);this.token=K};
_.n(uG9,Av);_.w=uG9.prototype;_.w.get=function(m){var G=this,K,W;return _.Y(function(L){return L.nextAddress==1?L.yield(PY(G.token),2):L.nextAddress!=3?(K=L.yieldResult,L.yield(K.get("ResponseStore",[m,G.clientName]),3)):(W=L.yieldResult)?L.return(new _.eB(W)):L.return(void 0)})};
_.w.putInternal=function(m,G){var K=this,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(PY(K.token),2);W=L.yieldResult;return L.yield(W.put("ResponseStore",G),0)})};
_.w.remove=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(PY(G.token),2);K=W.yieldResult;return W.return(K.delete("ResponseStore",[m,G.clientName]))})};
_.w.removeAll=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(PY(m.token),2);G=K.yieldResult;return K.yield(N9F(G,IDBKeyRange.only(m.clientName)),0)})};
_.w.has=function(){throw Error("mj");};
_.w.markAsProcessed=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(PY(G.token),2);if(L.nextAddress!=3)return K=L.yieldResult,L.yield(K.get("ResponseStore",[m,G.clientName]),3);W=L.yieldResult;if(!W)return L.jumpTo(0);W.isProcessed=!0;return L.yield(K.put("ResponseStore",W),0)})};_.wy=new _.sX("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var GHP=function(m){var G;this.stateTagsData=(G=m.responseContext)==null?void 0:G.stateTags},KXu=function(m){var G;
return((G=m.stateTagsData)==null?void 0:G.stateTagsModified)||[]};var WXE;WXE=function(m){this.JSC$18853_responseStore=m};
_.tA=function(m,G,K){if(!_.F("state_tags_killswitch")){var W=new GHP(G);if(KXu(W).length>0){var L=m.JSC$18853_responseStore.getKeys();L=_.g(L);for(var A=L.next();!A.done;A=L.next()){A=A.value;var O=f9(m.JSC$18853_responseStore,A);if(O){var c=_.k1(O);a:{var u=void 0;O=KXu(W);c=((u=(new GHP(c)).stateTagsData)==null?void 0:u.relevantStateTags)||[];u=_.g(c);for(c=u.next();!c.done;c=u.next())if(c=c.value,c.stateTag!=null&&O.includes(c.stateTag)&&c.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){O=
!0;break a}O=!1}O&&itq(m.JSC$18853_responseStore,A)}}}}var h;W=(h=G.responseContext)==null?void 0:h.maxAgeSeconds;K&&W&&Number(W)>0&&(G=Vo(G,W),m.JSC$18853_responseStore.put(K,new _.eB(G)))};
WXE.prototype.handleResponse=function(m,G){if(!G)throw Error("nj");var K,W;G=(K=G.config)==null?void 0:(W=K.storeStrategy)==null?void 0:W.storeKey;_.tA(this,m,G)};
WXE[XF]=[_.y$];_.oGo=new _.sX("STORE_RESPONSE_PROCESSOR_TOKEN");var LXz=function(m){this.JSC$18856_responseStore=m};
LXz.prototype.handleResponse=function(m,G){if(G.input.match(_.sv(uKi))){var K;if(m==null?0:(K=m.entries)==null?0:K.length)for(m=_.g(m.entries),G=m.next();!G.done;G=m.next()){K=G.value.command;var W=void 0;G=(W=_.Q(K,_.lw))==null?void 0:W.unserializedPrefetchData;if(!K||!G)break;W=(new qn).JSC$14490_getStoreKey(K);var L=_.Q(G,QqB),A=void 0,O=void 0,c=void 0,u=void 0,h=void 0,J=void 0,N=((A=L)==null?0:(O=A.responseContext)==null?0:O.maxAgeSeconds)&&Number((c=L)==null?void 0:(u=c.responseContext)==null?
void 0:u.maxAgeSeconds)>0?Number((h=L)==null?void 0:(J=h.responseContext)==null?void 0:J.maxAgeSeconds):600;W&&N>0&&(L=Vo(L,N),this.JSC$18856_responseStore.put(W,new _.eB(L)));K=(new fq).JSC$14490_getStoreKey(K);G=_.Q(G,W_F);u=c=O=A=L=W=void 0;h=((W=G)==null?0:(L=W.responseContext)==null?0:L.maxAgeSeconds)&&Number((A=G)==null?void 0:(O=A.responseContext)==null?void 0:O.maxAgeSeconds)>0?Number((c=G)==null?void 0:(u=c.responseContext)==null?void 0:u.maxAgeSeconds):600;K&&h>0&&(G=Vo(G,h),this.JSC$18856_responseStore.put(K,
new _.eB(G)))}}};
LXz[XF]=[_.y$];var AO6=function(m,G){this.innertubeTransportService=m;this.JSC$18859_commandHandler=G};
AO6.prototype.submitForm=function(m,G,K,W,L){var A=this,O,c,u,h,J,N;return _.Y(function(D){if(D.nextAddress==1)return O={submitId:m,formData:G,submitBehavior:K,params:W},c=_.sv(vfl),D.yield(_.Jf(A.innertubeTransportService,O,c,L),2);u=D.yieldResult;if(!u)return D.return(Promise.reject(new _.cw("Submit API returned an undefined response. Submit ID: "+m)));h=u;(N=(J=h)==null?void 0:J.onResponseReceived)&&A.JSC$18859_commandHandler.resolveCommand(N);return D.return(h)})};
AO6[XF]=[_.Tv,_.S1];var gy=function(){this.scheduler=_.AA()},wg6;
gy.prototype.pause=function(){throw Error("oj");};
gy.prototype.resume=function(){throw Error("oj");};
gy.prototype.queue=function(m){var G=this,K=_.Qo(),W=_.rC(this.scheduler,function(){try{var L;if(_.xe.instance)var A=_.xe.instance;else{var O=new _.cw("Error: Unexpected uninitialized CommandHandler.");_.am(O);A=void 0}(L=A)==null||L.resolveCommand(m.command);K.resolve()}catch(c){K.reject(c)}});
K.promise.thenCatch(function(L){L instanceof _.uG&&G.scheduler.cancelJob(W)});
return K.promise};
gy.prototype.queueAll=function(m){var G=new Map;m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,G.set(K.id,this.queue(K));return G};var Ot6=function(m,G){var K=this;this.taskModel=m;this.onTaskCancelledCallback=G;this.resolver=_.Qo();m=m.proto.prefetchConfig;if(!m)throw Error("pj");if(!m.prefetchAction)throw Error("qj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(W){W instanceof _.uG&&(glE(K,K.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),K.onTaskCancelledCallback(K.taskModel.id,K.jobId),K.tick("pcc"));
throw W;});
this.timerName=this.taskModel.id;_.ck(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
Ot6.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var glE=function(m,G){_.g9({prefetchInfo:{cancellationReason:G}},m.timerName)};
Ot6.prototype.tick=function(m){_.Yt(m,void 0,this.timerName)};var cd=function(){var m=this;this.scheduler=_.AA();this.maxInflightTasks=_.U8("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.U8("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new EAF;this.onTaskCancelled=function(G,K){K&&m.scheduler.cancelJob(K);cOO(m,G);Ow(m,3)}},YJG=function(){cd.instance||(cd.instance=new cd);
return cd.instance};
cd.prototype.pause=function(){this.prefetchCoordinatorState=0};
cd.prototype.resume=function(){Ow(this,0)};
cd.prototype.queue=function(m){m=rOE(this,m);Ow(this,1);return m};
cd.prototype.queueAll=function(m){var G=new Map;m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,G.set(K.id,rOE(this,K));Ow(this,1);return G};
var rOE=function(m,G){var K=m.allPrefetchTasks.get(G.id);if(K)return K.cancellablePromise;try{var W=new Ot6(G,m.onTaskCancelled)}catch(A){return _.KN(A)}K=W;K.tick("pcq");var L={prefetchInfo:{taskId:K.taskModel.id,isPrefetch:!0,fetchAction:K.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:K.taskModel.command.clickTrackingParams}};K.taskModel.csn&&(L.clientScreenNonce=K.taskModel.csn);_.g9(L,K.timerName);m.allPrefetchTasks.set(G.id,W);m.drainingHeap.insert(-W.getPriority(),W);return W.cancellablePromise},
Ow=function(m,G){m.prefetchCoordinatorState===G&&(m.prefetchCoordinatorState=2,u6D(m))},u6D=function(m){for(var G={};m.prefetchCoordinatorState!==0;G={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(m.inflightPrefetchTasks.size>=m.maxInflightTasks){m.prefetchCoordinatorState=3;break}G.prefetchTask$jscomp$1=m.drainingHeap.remove();if(!G.prefetchTask$jscomp$1){m.prefetchCoordinatorState=1;break}G.taskId$jscomp$3=G.prefetchTask$jscomp$1.taskModel.id;if(m.allPrefetchTasks.has(G.taskId$jscomp$3)){var K=-1;m.coordinatorTimeoutMs>0&&(K=_.rC(m.scheduler,function(W){return function(){Yh(m,W.taskId$jscomp$3,Error("rj"))}}(G),m.coordinatorTimeoutMs));
m.inflightPrefetchTasks.set(G.taskId$jscomp$3,K);if(!m.JSC$18876_commandHandler){if(!_.xe.instance){Yh(m,G.taskId$jscomp$3,Error("sj"));continue}m.JSC$18876_commandHandler=_.xe.instance}a:switch(G.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":K=1;break a;default:K=0}G.prefetchTask$jscomp$1.jobId=m.scheduler.addJob(function(W){return function(){W.prefetchTask$jscomp$1.tick("pcr");try{m.JSC$18876_commandHandler.resolveCommand(W.prefetchTask$jscomp$1.taskModel.command)||
Yh(m,W.taskId$jscomp$3,Error("tj"))}catch(L){Yh(m,W.taskId$jscomp$3,L)}}}(G),K,0)}}},hnW=function(m,G){(G=cOO(m,G))!=null&&(G.resolver.resolve(),G.tick("pce"));
Ow(m,3)},Yh=function(m,G,K){(G=cOO(m,G,K))!=null&&(G.resolver.reject(K),G.tick("pcc"),glE(G,"CANCELLATION_REASON_ERROR"),Math.random()<=_.U8("prefetch_coordinator_error_logging_sampling_rate")&&(K=new _.cw("Prefetch Command failed.",G.taskModel.id,K.message),_.am(K)));
Ow(m,3)},cOO=function(m,G,K){var W=m.allPrefetchTasks.get(G);
W?((K=m.inflightPrefetchTasks.get(G))&&K!==-1&&m.scheduler.cancelJob(K),m.inflightPrefetchTasks.delete(G),m.allPrefetchTasks.delete(G)):_.nc(new _.cw("Unexpected missing prefetch task when deleting task.",G,K==null?void 0:K.message));return W};var pgs=function(m,G,K,W,L){this.id=m;this.triggerOn=G;this.cancelOn=K;this.command=W;this.proto=L};
_.e_.Object.defineProperties(pgs.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var JOO=function(){this.JSC$18881_prefetchCoordinator=YJG();wg6||(wg6=new gy);this.defaultCoordinator=wg6},NMW;
JOO.getInstance=function(){NMW||(NMW=new JOO);return NMW};
JOO.prototype.get=function(m){switch(m){case 0:return this.JSC$18881_prefetchCoordinator;default:return this.defaultCoordinator}};var ry=function(){this.coordinatorSupplier=JOO.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},FX5=function(m){var G=_.gU()||void 0,K=Object.keys(DT5)[0];
if(K){var W=m.taskIdByTriggerId.get(K);if(W!=null){m.taskIdByTriggerId.delete(K);K=[];W=_.g(W);for(var L=W.next();!L.done;L=W.next())if(L=m.tasks.get(L.value))G!=="UNDEFINED_CSN"&&(L.csn=G),K.push(L);K=Jm6(K);G=[];K=_.g(K);for(W=K.next();!W.done;W=K.next()){L=_.g(W.value);W=L.next().value;L=L.next().value;W=m.coordinatorSupplier.get(W).queueAll(L);W=_.g(W);var A=W.next();for(L={};!A.done;L={taskId$jscomp$9:void 0},A=W.next()){var O=_.g(A.value);A=O.next().value;O=O.next().value;L.taskId$jscomp$9=
A;A=O;G.push(L.taskId$jscomp$9);m.queuedPromisesByTask.set(L.taskId$jscomp$9,_.O5(A,function(c){return function(){tUE(m,c.taskId$jscomp$9)}}(L)))}}}}else _.nc(new _.cw("Unexpected malformed TriggerEvent."))};
ry.prototype.trigger=function(m,G){var K=this,W=this.tasks.get(m);if(!W||this.queuedPromisesByTask.has(m))return!1;Qi5(this,m,W.triggerOn);G!=="UNDEFINED_CSN"&&(W.csn=G);G=this.coordinatorSupplier.get(W.taskType).queue(W);this.queuedPromisesByTask.set(m,_.O5(G,function(){tUE(K,m)}));
return!0};
ry.prototype.cancel=function(m){var G=this.queuedPromisesByTask.get(m);if(G)G.cancel();else return tUE(this,m)};
var tUE=function(m,G){m.queuedPromisesByTask.delete(G);var K=m.tasks.get(G);if(!K)return!1;m.tasks.delete(G);Qi5(m,G,K.triggerOn);(K=psd(K.cancelOn))&&(m=m.taskIdByCancelId.get(K))&&m.delete(G);return!0},Qi5=function(m,G,K){(K=Object.keys(K)[0])&&(m=m.taskIdByTriggerId.get(K))&&m.delete(G)};var DT5={taskRegistered:{}},uH=function(){ry.instance||(ry.instance=new ry);this.JSC$18890_taskManager=ry.instance};
_.n(uH,te);
uH.prototype.resolveCommand=function(m){var G=this,K,W;return _.Y(function(L){K=_.Q(m,FsR);if((W=K)==null||!W.tasks){var A=new _.cw("RegisterTasksCommand is missing tasks.");_.am(A);return L.return()}A=G.JSC$18890_taskManager;for(var O=_.g(K.tasks),c=O.next();!c.done;c=O.next())if(c=c.value,c=c.id&&c.triggerOn&&c.cancelOn&&c.command?new pgs(c.id,c.triggerOn,c.cancelOn,c.command,c):void 0,c){var u=Object.keys(c.triggerOn)[0];if(u){var h=psd(c.cancelOn);h?(A.tasks.set(c.id,c),A.taskIdByTriggerId.has(u)||A.taskIdByTriggerId.set(u,
new Set),A.taskIdByTriggerId.get(u).add(c.id),A.taskIdByCancelId.has(h)||A.taskIdByCancelId.set(h,new Set),A.taskIdByCancelId.get(h).add(c.id)):_.nc(new _.cw("Unexpected malformed cancelOn field."))}else _.nc(new _.cw("Unexpected malformed triggerOn field."))}else _.nc(new _.cw("Unexpected malformed Task proto."));FX5(G.JSC$18890_taskManager);_.ey(L)})};var a4i={},olO=(a4i.rendered={priority:_.F("web_adaptive_early_init")?8:0,callback:function(){var m={};m.numCpu=navigator.hardwareConcurrency;var G={};G.ramGb=_.Ks.navigator.deviceMemory;var K={staticContext:{}};G.ramGb&&vQM(G.ramGb)&&(K.staticContext.memoryTotalKbytes=(G.ramGb*1048576).toString());m.numCpu&&vQM(m.numCpu)&&(K.staticContext.cpuCores=m.numCpu);if(_.F("web_enable_adaptive_appl_signal")){m={};G=NGd();G=G.length>0?G[0]:void 0;var W,L=(W=_.hW("rses_dpj"))!=null?W:G==null?void 0:G.tick.rses_dpj,
A;W=(A=_.hW("rsef_dpj"))!=null?A:G==null?void 0:G.tick.rsef_dpj;L&&Number(L)>0&&W&&Number(W)>0&&(A=Math.ceil(Number(W)-Number(L)),A>0&&(m.loadLatency=A));m.loadLatency&&vQM(m.loadLatency)&&(K.appL=m.loadLatency.toString())}_.Fx("applicationStarted",K);$XF=K;_.F("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",spo)}},a4i);var nl6=new _.sX("WINDOW_ON_ERROR"),btD=new _.sX("ERROR_WEIGHT_MAPS"),vlz=new _.sX("INIT_ERROR");var $TG={},siz=($TG.initialized={priority:10,callback:function(m){m.injector.resolve(vlz)()}},$TG);var qJ5=function(){},ElD=function(){var m=_.Cn("meta_logger_impl");
m||(m=new qJ5,_.yj("meta_logger_impl",m));return m},HtW=function(){ElD().csiSubscriptionKey=OD6("meta_logging_csi_event",function(m){var G=m.timerName;
if(m=m.timelineData){_.ck(G,{startTime:m.startTime},G);m.infos&&_.g9(m.infos,G);for(var K=_.g(Object.keys(m.ticks)),W=K.next();!W.done;W=K.next())W=W.value,_.Yt(W,m.ticks[W],G)}})};
qJ5.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&r9v(this.csiSubscriptionKey)};var I4D={},jiW=(I4D.initialized={priority:10,callback:function(){HtW()}},I4D);var kHz=function(m,G){this.innertubeClientName=m;this.JSC$18901_prefCookie=G};
kHz.prototype.record=function(){if(_.F("web_li_record_binary_eval_tick")){var m=_.hW("rsef_dpj");var G=_.hW("rses_dpj");m=m!==void 0&&G!==void 0?Math.round(m-G):void 0;if(m!==void 0&&m>0){G=_.Gh(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var K=this.poolSize;if(!(G.valuesSeen>=1E9)){if(G.valuesSample.length<K)G.valuesSample.push(m);else{var W=Math.floor(Math.random()*(G.valuesSeen+1));W<K&&(G.valuesSample[W]=m)}G.valuesSeen+=1}_.i0(this.storagePrefix+"-"+this.innertubeClientName,
G,2592E3);m=G.valuesSample;G=Nms(m);m=m.length<this.poolSize?void 0:G<400?1:G<1700?2:3;m!==void 0&&(this.JSC$18901_prefCookie.set(this.cookiePrefix+this.innertubeClientName,m),this.JSC$18901_prefCookie.save())}}else _.Kr(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18901_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18901_prefCookie.save()};
kHz[XF]=[Qh,Lq];var CE6=function(){kHz.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.n(CE6,kHz);var VUD=new _.sX("PAGE_LOAD_TIME_TOKEN");var Ztu=function(m){this.signal=m;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;m.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.rC(_.Fu,this.disableLoggingAndSendPayload,1E4)};
Ztu.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Fu.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),dTq(this))};
var dTq=function(m){var G=_.wU();if(G){var K={webClientComponentsData:{components:Array.from(m.ids,function(W){return{id:W}})}};
m.ids.clear();_.l1().visualElementStateChanged(G,K)}};var PEP=Lz({a11y:LT4});_.yOu=Ao(PEP)(PEP.a11y,{ephemeralActionSelector:function(m){return m.ephemeralAction||null}});var enD=Lz({continuation:chi});var f45=Ao(enD)(enD.continuation,{continuationCommandSelector:function(m){return m.continuationCommand}});var xTz=new _.sX("CHUNK_REGISTRY_TOKEN");var XgE=function(){this.loadFns=new Map;this.xidToRendererName=new Map},RnD=function(m,G){if(typeof G==="string"){var K=SJu(m,G);
return m.loadFns.get(K)}return function(){var W;return _.Y(function(L){return L.nextAddress==1?(W={},L.yield(Promise.all(G.map(function(A){var O,c;return _.Y(function(u){if(u.nextAddress==1){O=SJu(m,A);c=m.loadFns.get(O);if(!c)return W[O]=void 0,u.jumpTo(0);_.IO(u,3);return u.yield(c(),5)}if(u.nextAddress!=3)return W[O]=u.yieldResult,_.IG(u,0);_.ye(u);W[O]=void 0;_.ey(u)})})),2)):L.return(W)})}},SJu=function(m,G){var K;
return(K=m.xidToRendererName.get(G))!=null?K:G};var UTO=new _.sX("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var hv=function(m,G){this.JSC$18933_storeWithEntities=m;this.JSC$18933_commandHandler=G;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
hv.prototype.start=function(){this.JSC$18933_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
hv.prototype.observeDownloadingEntities=function(){var m=_.b5s(this.JSC$18933_storeWithEntities.getState().entities).map(function(W){return v6v(W)});
if(m.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var G={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:Lxd()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Hk(_.zq("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18933_commandHandler.resolveCommand(G)}this.downloadingEntities=m}else if(this.downloadingEntities.length){var K=n6P(this.JSC$18933_storeWithEntities.getState().entities).map(function(W){return v6v(W)});
this.downloadingEntities.filter(function(W){return K.includes(W)}).length&&(m={openPopupAction:lKd()},this.JSC$18933_commandHandler.resolveCommand(m));
this.downloadingEntities=[]}};
hv[XF]=[VM,_.S1];var znP;_.pR=function(m,G,K,W,L,A,O,c){this.JSC$18936_playerApiPromise=m;this.JSC$18936_commandHandler=G;this.JSC$18936_screenManager=K;this.offlineWebClientEligibility=W;this.JSC$18936_prefStorage=L;this.JSC$18936_actionRouter=A;this.entityTypeMap=O;this.JSC$18936_persistentStorePromiseAccessor=c;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
znP=function(){var m=_.xS().resolve(_.pR),G;_.Y(function(K){if(K.nextAddress==1)return m.downloadFailureListenerBound?K.return():K.yield(m.JSC$18936_playerApiPromise,2);G=K.yieldResult;G.addEventListener("onOfflineOperationFailure",function(W){if(W.failureReason&&W.entityKey&&W.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(W.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var L=_.Vx(W.entityKey).entityId;L&&m.JSC$18936_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
L)}else if(_.F("kevlar_woffle")){L=m.JSC$18936_commandHandler;var A=L.resolveCommand;W=W.failureReason;var O=_.zq("TRANSFER_FAILED",void 0,"Download failed");W==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(O=_.zq("STORAGE_FULL",void 0,"Storage full"));A.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hk(O),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
m.downloadFailureListenerBound=!0;_.ey(K)})};
_.pR.prototype.deleteVideo=function(m,G){var K=this,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return O.yield(K.JSC$18936_playerApiPromise,2);W=O.yieldResult;A={offlineLoggingData:{offlineDeleteReason:(L=G)!=null?L:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return O.yield(W.queueOfflineAction(m,K.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",A),0)})};
_.pR.prototype.pauseVideoDownload=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.JSC$18936_playerApiPromise,2);K=W.yieldResult;K.pauseVideoDownload(m);_.ey(W)})};
_.pR.prototype.resumeVideoDownload=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.JSC$18936_playerApiPromise,2);K=W.yieldResult;return W.yield(K.resumeVideoDownload(m),0)})};
_.pR[XF]=[_.kg,_.S1,_.m_,UTO,Ot,s7,GmX,X3];var l4i=new _.sX("DOWNLOAD_STATE_STORE_TOKEN");var BMu=function(m,G){this.JSC$18957_persistentStorePromiseAccessor=m;this.store=G;this.upliftCompletionResolver=new _.yY},m26=function(){var m=_.xS().resolve(MU6),G;
_.Y(function(K){switch(K.nextAddress){case 1:if(m.upliftImplPromise)return K.return(m.upliftImplPromise);_.IO(K,2);m.upliftImplPromise=TMs(m);return K.yield(m.upliftImplPromise,4);case 4:m.upliftCompletionResolver.resolve();_.IG(K,3);break;case 2:throw G=_.ye(K),m.upliftCompletionResolver.reject(G),G;case 3:return K.return(m.upliftImplPromise)}})},TMs=function(m){var G,K,W;
return _.Y(function(L){switch(L.nextAddress){case 1:return _.IP("LOGGED_IN")?L.yield(m.JSC$18957_persistentStorePromiseAccessor(),2):L.return();case 2:G=L.yieldResult;if(!G)return _.Yt("vdeur"),L.return();_.Yt("vdeus");_.IO(L,3);return L.yield(iTq(G),5);case 5:K=L.yieldResult;m.store.dispatch(cxG(K));G.observe(function(A){YDJ(m.store,A)});
_.IG(L,4);break;case 3:throw W=_.ye(L),_.Yt("vdeur"),W;case 4:_.Yt("vdeuc"),_.ey(L)}})},iTq=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(ond(m),2);G=K.yieldResult;return K.return(G.reduce(function(W,L){if(!L.data||!L.key||!L.entityType)return W;W[L.entityType]||(W[L.entityType]={});W[L.entityType][L.key]=L.data;return W},{}))})};
BMu[XF]=[X3,_.wR];var MU6;MU6=new _.sX("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.Jv=new _.sX("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var NJ=function(m,G){this.JSC$18960_persistentStorePromiseAccessor=m;this.transportService=G};
NJ.prototype.refresh=function(){var m=this,G,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return _.IP("LOGGED_IN")?A.yield(m.JSC$18960_persistentStorePromiseAccessor(),2):A.return();if(A.nextAddress!=3)return(G=A.yieldResult)?A.yield(G0f(G),3):A.return();if((K=A.yieldResult)&&!(Number(K.data.refreshTimestampMs||0)<(0,_.xD)()))return A.return();W={browseId:"SPaccount_downloads"};L=_.sv(vY);_.Jf(m.transportService,W,L).then(function(O){var c;if(G&&(O==null?void 0:(c=O.responseContext)==null?void 0:
c.maxAgeSeconds)!==0){var u;c=(O==null?void 0:(u=O.responseContext)==null?void 0:u.maxAgeSeconds)||604800;u=String(Math.floor((0,_.xD)())+c*1E3);G.put("service:downloads_settings:fallback",new _.eB({innertubeResponse:O,refreshTimestampMs:u}))}});
_.ey(A)})};
NJ[XF]=[_.wy,_.Tv];var DX=function(m,G){this.JSC$18964_playerPromise=m;this.store=G;this.started=!1};
DX.prototype.start=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return m.started?K.return():K.yield(m.JSC$18964_playerPromise,2);G=K.yieldResult;G.addEventListener("onOrchestrationBecameLeader",m.updateIsLeader.bind(m,!0));G.addEventListener("onOrchestrationLostLeader",m.updateIsLeader.bind(m,!1));if(G.isOrchestrationLeader)m.updateIsLeader(G.isOrchestrationLeader());else{var W=new _.cw("Function isOrchestrationLeader is undefined",{"player.isReady":G.isReady(),"player.playVideo":G.playVideo?
"defined":"undefined"});_.am(W);m.updateIsLeader(!1)}m.started=!0;_.ey(K)})};
DX.prototype.updateIsLeader=function(m){this.store.dispatch(_.kt({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:m}}))};
DX[XF]=[_.kg,_.wR];var GLP=function(m,G){this.networkStatusManager=m;this.JSC$18967_prefStoragePromise=G;this.redirectsToPreload=["https://youtube.com"]},KEE=function(){var m=_.xS().resolve(GLP),G,K,W,L,A,O;
_.Y(function(c){switch(c.nextAddress){case 1:return c.yield(m.JSC$18967_prefStoragePromise,2);case 2:G=c.yieldResult;if(!(K=G)){c.jumpTo(3);break}return c.yield(G.get("yt-redirect-prefetch-id"),4);case 4:K=c.yieldResult;case 3:if(K||!m.networkStatusManager.isNetworkAvailable())return c.return();W={cache:"reload",redirect:"manual"};L=_.g(m.redirectsToPreload);A=L.next();case 5:if(A.done){if(!G){c.jumpTo(0);break}return c.yield(G.set("yt-redirect-prefetch-id",!0,86400),0)}O=A.value;_.IO(c,8);return c.yield(_.Ks.fetch(O,
W),10);case 10:_.IG(c,6);break;case 8:_.ye(c);case 6:A=L.next(),c.jumpTo(5)}})};var WE6=function(m){this.JSC$18973_pageManager=m},LEz=function(m){var G=[];
$LM(["videoId","contentId"],m.JSC$18973_pageManager.data,new Set,G);return G},A_z=function(m){return LEz(m).filter(function(G){return G.contentType==="video"}).map(function(G){return G.contentId}).filter(function(G){return G!==void 0})};
WE6[XF]=[_.$g];var w4z=new _.sX("PAGE_CONTENT_EXTRACTOR_TOKEN");var tv=function(m){m?(this.container=m,this.containerWasInjected=!0):this.containerWasInjected=!1};
tv.prototype.openDialog=function(m,G,K){var W=this,L;return _.Y(function(A){(L=W.container)==null||L.openDialog(m,G,K);_.ey(A)})};
tv.prototype.closeDialog=function(){var m=this,G;return _.Y(function(K){(G=m.container)==null||G.closeDialog();_.ey(K)})};
tv.prototype.isDialogOpen=function(){var m=this,G,K;return _.Y(function(W){return W.return((K=(G=m.container)==null?void 0:G.isDialogOpen())!=null?K:!1)})};
tv[XF]=[_.fn(aiB)];_.gOs=new _.sX("POPUP_CONTROLLER_TOKEN");var OTG=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
OTG.prototype.registerPanel=function(m,G){if(m){this.panelMap.set(m,G);var K=this.pendingPanelResolvers.get(m);K&&(K.resolve(G),this.pendingPanelResolvers.delete(m))}};
OTG.prototype.getPanel=function(m){var G=this,K;return _.Y(function(W){return(K=G.panelMap.get(m))?W.return(K):W.return(c_u(G,m))})};
var c_u=function(m,G){var K,W;return _.Y(function(L){if(K=m.pendingPanelResolvers.get(G))return L.return(K.promise);W=new _.yY;m.pendingPanelResolvers.set(G,W);return L.return(W.promise)})},YZ6=function(m,G){OTG.call(this);
var K=this;this.popupController=m;this.persistentPanelController=G;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return K.panelMap.size}}};
_.n(YZ6,OTG);_.w=YZ6.prototype;_.w.getReloadContinuation=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.getPanel(m),2);K=W.yieldResult;return W.return(K.getReloadContinuation())})};
_.w.showPanel=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t;return _.Y(function(a){if(a.nextAddress==1){K=m;W=K.identifier;L=K.panelContents;A=K.config;O=K.extras;c=K.panelUpdatableFields;u=K.updatePanelContinuationData;h=m.target;u&&G.updatePanelContinuationDatas.set(W,u);if((J=A)==null?0:(N=J.engagementPanelPopupPresentationConfig)==null?0:N.popupType)if(D=A.engagementPanelPopupPresentationConfig.popupType,h===void 0&&(h=document.body),D==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!G.persistentPanelController)return _.nc(new _.cw("Persistent panel controller is not available.")),
a.return();var v=G.persistentPanelController;v.persistentPanelIdentifiers.has(W)||(v.persistentPanelWrapper.appendChild(v.engagementPanelElement({panelIdentifier:W},{isPersistentPanel:!0,hideDelayMs:500,overscrollContain:!0})),v.persistentPanelIdentifiers.add(W));a:switch(_.DE.currentPageSubTypeSelector(v.store.getState())){case "watch":var I="WATCH";break a;default:I="APP"}_.r_i(v,I);v.store.dispatch(wfk(!0))}else{if(D==="PANEL_POPUP_TYPE_DIALOG"||D==="PANEL_POPUP_TYPE_DROPDOWN"){v=a.return;I=G.popupController;
var Z=I.openPopup;a:switch(D){case "PANEL_POPUP_TYPE_DIALOG":var k="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":k="DROPDOWN";break a;default:throw Error("vj`"+D);}return v.call(a,Z.call(I,W,L,k,h))}_.nc(new _.cw("Popup type "+D+" not supported in PanelController."))}return a.yield(G.getPanel(W),2)}t=a.yieldResult;(L||c)&&t.updatePanel(L,!1,O,c);t.showPanel(O);_.ey(a)})};
_.w.hidePanel=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K=m,W=K.identifier,O.yield(G.getPanel(W),2);L=O.yieldResult;L.hidePanel();G.popupController.closePopup(W);(A=G.persistentPanelController)!=null&&A.persistentPanelIdentifiers.has(W)&&A.store.dispatch(wfk(!1));_.ey(O)})};
_.w.isVisible=function(m,G){var K=this,W;return _.Y(function(L){if(L.nextAddress==1)return G&&!K.panelMap.has(m)?L.return(!1):L.yield(K.getPanel(m),2);W=L.yieldResult;return L.return(W.isVisible())})};
_.w.updatePanel=function(m){var G=this,K,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1){K=m;W=K.identifier;L=K.panelContents;A=K.shouldFocus===void 0?!1:K.shouldFocus;O=K.extras;c=K.panelUpdatableFields;u=K.updatePanelContinuationData;if(!L&&!c)return J.return();u&&G.updatePanelContinuationDatas.set(W,u);_.F("enable_ai_companion")&&W==="PAai_companion"&&_.UT.remove("youchat_messages_section");return J.yield(G.getPanel(W),2)}h=J.yieldResult;h.updatePanel(L,A,O,c);L&&_.F("enable_ai_companion")&&
G.registerPanelContent(W,L);_.ey(J)})};
_.w.registerPanelContent=function(m,G){m&&this.panelContentMap.set(m,G)};
_.w.unregisterPanelContent=function(m){this.panelContentMap.delete(m)};
_.w.getPanelContent=function(m){return this.panelContentMap.get(m)};
_.w.getUpdatePanelContinuationData=function(m){return this.updatePanelContinuationDatas.get(m)};
YZ6[XF]=[_.gOs,_.fn(_.w0)];var Fl=function(m,G){this.innertubeTransportService=m;this.JSC$18992_screenManager=G},uf6=function(m){var G;
return!((G=m.panelLoadingStrategy)==null||!G.requestTemplate)};
Fl.prototype.makeRequest=function(m){var G=this,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!uf6(G)){L.jumpTo(2);break}_.IO(L,3);return L.yield(_.to(G.innertubeTransportService,m),5);case 5:return K=L.yieldResult,K?L.return(K.content):(_.am(Error("wj")),L.return(void 0));case 3:W=_.ye(L),_.am(W);case 2:return L.return(void 0)}})};
Fl.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
Fl.prototype.execute=function(m){var G=this,K,W,L,A,O,c,u,h,J,N;return _.Y(function(D){if(D.nextAddress==1){K=m;W=K.data;L=K.fallbackVe;A=K.parentVe;O=K.createScreenConfig;c=K.renderFn;u=K.command;G.panelLoadingStrategy=W;var t,a,v=((t=G.panelLoadingStrategy)==null?0:t.screenVe)?(a=G.panelLoadingStrategy)==null?void 0:a.screenVe:L;v&&_.PB(G.JSC$18992_screenManager,v,A,O);return(h=G.getContent())?D.yield(c(h),2):D.jumpTo(2)}return D.nextAddress!=4?uf6(G)?D.yield(G.makeRequest(u),4):D.return():(N=J=
D.yieldResult)?D.yield(c(N),0):D.return()})};
Fl[XF]=[_.Tv,_.m_];var hRi;hRi=function(m,G){this.engagementPanelElement=m;this.store=G;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.r_i=function(m,G){var K=m.persistentPanelContainerMap.get(G);K?K.contains(m.persistentPanelWrapper)||(m=m.persistentPanelWrapper,_.bK=!0,_.$E.set(m,!0),K.insertBefore(m,null),_.$E.delete(m),_.bK=!1):_.nc(new _.cw("Persistent panel container not found for surface "+G+"."))};
hRi[XF]=[od2,_.wR];var Qq=function(){var m=this;this.isHovered=this.shouldPreventClosingWhileHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.onTargetHoverEntered=function(){m.isHovered=!0};
this.onTargetHoverLeft=function(){m.isHovered=!1};
this.onSheetHoverEntered=function(){m.isHovered=!0;var G;(G=m.hoverEnterCallback)==null||G.call(m)};
this.onSheetHoverLeft=function(){m.isHovered=!1;var G;(G=m.hoverLeaveCallback)==null||G.call(m)}};
Qq.prototype.getContainer=function(){return _.$u()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Qq.prototype.openSheet=function(m,G,K){K=K===void 0?G:K;var W=this,L,A,O,c,u,h,J;return _.Y(function(N){switch(N.nextAddress){case 1:return L={stack:[],error:void 0,hasError:!1},_.IO(N,2,3),A=ft,N.yield(W.isSheetOpen(),5);case 5:O=N.yieldResult;DGC(L,o39(A));if(!O){N.jumpTo(6);break}if(!W.shouldPreventClosingWhileHovered){if(!_.F("delay_sheet_open_killswitch")){if(_.F("web_close_sheet_if_same_target_killswitch")&&G&&W.currentTarget===G)return(c=W.getContainer())==null||c.closeSheet(),N.return();W.pendingData=
{data:m,target:e_O(W,G)};return N.return()}N.jumpTo(6);break}if(W.currentTarget===G)return N.return();p4D(W);J_5(W);return N.yield((u=W.getContainer())==null?void 0:u.closeSheet(),6);case 6:if(m.viewModel&&(m={viewModel:m.viewModel,sheetPosition:m.sheetPosition,expandToFullWidth:m.expandToFullWidth}),(h=W.getContainer())==null||h.openSheet(m,G,K),W.currentTarget=G,W.shouldPreventClosingWhileHovered){W.onTargetHoverEntered();var D;(D=W.currentTarget)==null||D.addEventListener("mouseenter",W.onTargetHoverEntered);
var t;(t=W.currentTarget)==null||t.addEventListener("mouseleave",W.onTargetHoverLeft);N_E(W)}else W.hasRegisteredHoverCallbacks&&N_E(W);case 3:_.CZ(N);t0C(L);_.ZO(N,0);break;case 2:J=_.ye(N),L.error=J,L.hasError=!0,N.jumpTo(3)}})};
Qq.prototype.closeSheet=function(){var m=this;return _.Y(function(G){return m.hideDelayMs?(setTimeout(function(){return _.Y(function(K){return K.yield(D2u(m),0)})},m.hideDelayMs),G.return()):G.yield(D2u(m),0)})};
var D2u=function(m){var G;return _.Y(function(K){if(K.nextAddress==1){if(m.shouldPreventClosingWhileHovered){if(m.isHovered)return K.return();p4D(m);J_5(m)}else m.hasRegisteredHoverCallbacks&&(J_5(m),m.onSheetHoverLeft());return K.yield((G=m.getContainer())==null?void 0:G.closeSheet(),2)}if(K.nextAddress!=4)return m.resetState(),!m.pendingData||_.F("delay_sheet_open_killswitch")?K.jumpTo(0):K.yield(m.openSheet(m.pendingData.data,m.pendingData.target),4);m.pendingData=void 0;_.ey(K)})};
Qq.prototype.isSheetOpen=function(){var m=this,G,K;return _.Y(function(W){return W.return((K=(G=m.getContainer())==null?void 0:G.isSheetOpen())!=null?K:!1)})};
Qq.prototype.resetState=function(){this.currentTarget=void 0;this.shouldPreventClosingWhileHovered=this.isHovered=!1;this.hideDelayMs=0;this.hasRegisteredHoverCallbacks=!1;this.hoverLeaveCallback=this.hoverEnterCallback=void 0};
var p4D=function(m){var G;(G=m.currentTarget)==null||G.removeEventListener("mouseenter",m.onTargetHoverEntered);var K;(K=m.currentTarget)==null||K.removeEventListener("mouseleave",m.onTargetHoverLeft)},N_E=function(m){var G,K=(G=m.getContainer())==null?void 0:G.getSheetContainerElement();
K==null||K.addEventListener("mouseenter",m.onSheetHoverEntered);K==null||K.addEventListener("mouseleave",m.onSheetHoverLeft)},J_5=function(m){var G,K=(G=m.getContainer())==null?void 0:G.getSheetContainerElement();
K==null||K.removeEventListener("mouseenter",m.onSheetHoverEntered);K==null||K.removeEventListener("mouseleave",m.onSheetHoverLeft)},e_O=function(m,G){if(!_.F("web_parent_target_for_sheets"))return G;
var K,W;return(W=(K=m.getContainer())==null?void 0:K.getParentTarget(G))!=null?W:G};var yM=window.documentPictureInPicture;var ZvP=_.nY(["dark"]),dLV=_.nY(["system-icons"]),PUV=_.nY(["typography"]),ymd=_.nY(["lang"]),eqF=_.nY(["style"]),j06=_.nY(["dir"]),k0f=_.nY(["rounded-container"]),CUG=_.nY(["style"]),xLs=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],aZ=function(m){this.JSC$19010_clientRoot=m;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
aZ.prototype.openWindow=function(m){var G=this,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!yM||!yM||!$G()||G.currentPipWindow)return L.return(!1);_.IO(L,2);return L.yield((W=yM?yM:null)==null?void 0:W.requestWindow(m),4);case 4:K=L.yieldResult;_.IG(L,3);break;case 2:return _.ye(L),L.return(!1);case 3:if(!K)return L.return(!1);K.addEventListener("pagehide",function(){tJD(G)});
K.addEventListener("resize",G.handlePipWindowResize);fAs(K);SsJ(K);dyd(K);return L.yield(IAP(K),5);case 5:if(!s0d())return L.return(!1);G.currentPipWindow=K;G.JSC$19010_eventForwarder=Xsd(K,G.JSC$19010_clientRoot);G.pipWindowResizeDelay=new _.Xg(function(){G.currentPipWindow&&_.dU(G.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.qj(G.currentPipWindow.innerWidth,G.currentPipWindow.innerHeight)])},K);
G.pipWindowResizeDelay.start();return L.return(!0)}})};
aZ.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var tJD=function(m){if(m.currentPipWindow){var G,K;(G=yM?yM:null)==null||(K=G.window)==null||K.close();m.currentPipWindow.removeEventListener("resize",m.handlePipWindowResize);var W;(W=m.pipWindowResizeDelay)==null||W.dispose();m.pipWindowResizeDelay=void 0;var L;(L=m.JSC$19010_eventForwarder)==null||L.stop();m.JSC$19010_eventForwarder=void 0;G=_.g(m.onCloseCallbacks);for(K=G.next();!K.done;K=G.next())K=K.value,K();m.onCloseCallbacks=[];m.currentPipWindow=null}};
aZ.prototype.getWindow=function(){return this.currentPipWindow};
var FEu=function(m,G){var K;(K=m.onCloseCallbacks)==null||K.push(G)};
aZ.prototype.pictureInPictureSupported=function(){return!(!yM||!yM)&&$G()};
_.e_.Object.defineProperties(aZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
aZ[XF]=[PR4];var Q2D=new _.sX("PICTURE_IN_PICTURE_CONTROLLER");var RqG=function(m,G){this.lengthY=this.lengthX=0;this.lengthX=G.x-m.x;this.lengthY=G.y-m.y};var aMW=function(){},TD6=function(m,G){var K;
(K=m.headerElement)==null||K.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:G}))};var oOq=function(){};
oOq.prototype.openPopup=function(m,G,K,W){var L=this,A;return _.Y(function(O){if(!L.container)return O.return();A={openPopupAction:{popup:G,popupType:K,uniqueId:m}};return O.return(L.container.handleOpenPopupAction(A,W))})};
oOq.prototype.closePopup=function(m){this.container&&this.container.closePopup(m)};var nO6=function(){this.openTunnels=new Map},IYV=function(m,G,K){if(Bmf(K)){var W=_.TF(K,"gclid");
K={handleEvent:function(c){G&&!G.closed&&typeof G.postMessage==="function"&&c&&c.origin&&c.source===G&&c.data&&c.data.action==="gcl_setup"&&G.postMessage(Object.assign({},{action:"gcl_transfer"},W&&{gclid:W},{gadSource:2}),c.origin)}};
for(var L=_.g(m.openTunnels),A=L.next();!A.done;A=L.next()){var O=_.g(A.value);A=O.next().value;O=O.next().value;if(A.closed)try{window.removeEventListener("message",O),m.openTunnels.delete(A)}catch(c){_.am(c)}}G&&m.openTunnels.size<15&&(m.openTunnels.set(G,K),window.addEventListener("message",K))}};var bTO=function(){this.clientParams=new Map},I3z=function(m){for(var G=_.g(m.clientParams.keys()),K=G.next();!K.done;K=G.next())K=K.value,K.startsWith("yt-mini-app-share")&&m.clientParams.delete(K)};var vO5=function(m,G){_.Lt.call(this);var K=this;this.shortsController=m;this.storeWithShorts=G;m=_.BB(this.storeWithShorts,_.MVP,function(W){if(W){var L,A=(L=K.shortsController.getRoot())==null?void 0:L.getPlayer(),O;(L=(O=K.shortsController.alternativePlayerContainerElement)==null?void 0:O.getPlayerContainer())&&(A==null||A.appendTo(L))}else{var c;O=(c=K.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer().querySelector("#player");L=K.shortsController.activeIndex;
(c=(A=K.shortsController.getRoot())==null?void 0:A.querySelector('ytd-reel-video-renderer[id="'+L+'"] #player-container'))&&(O==null||O.appendTo(c,void 0,!0))}});
this.addOnDisposeCallback(m)};
_.n(vO5,_.Lt);var oZ=function(m,G,K,W){var L=this;this.storeWithShorts=m;this.ephemeralResponseStore=G;this.innertubeTransportService=K;this.innertubeTransportLoader=W;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.RC(_.kA);this.isShortsPipActive=_.RC(_.CQ);this.nextReelVe=_.dq(56921);this.prevReelVe=_.dq(56922);this.backButtonVe=_.dq(22156);this.TEST_ONLY={getActiveModules:function(){return L.activeModules}}},$2D=function(m){m.unsubscribeFromStore=
_.BB(m.storeWithShorts,_.BcF,function(G){m.initOrDisposeActiveModules(G);
!G&&m.storeWithShorts.getState().shorts.isFullscreen&&(_.sB(document.documentElement),m.storeWithShorts.dispatch(_.YcP(!1)))});
m.initOrDisposeActiveModules(_.BcF(m.storeWithShorts.getState()))},eLE,f5q,s2O;
oZ.prototype.initOrDisposeActiveModules=function(m){m?this.activeModules.push(new vO5(this,this.storeWithShorts)):(_.ja(this.activeModules),this.activeModules.length=0)};
oZ.prototype.registerRootElement=function(m){this.rootElement=m;$2D(this)};
oZ.prototype.getRoot=function(){return this.rootElement};
oZ.prototype.setActiveIndex=function(m){this.activeIndex=m};
_.Vaq=function(m,G){var K,W,L,A,O,c,u;return _.Y(function(h){switch(h.nextAddress){case 1:return K=new qn,(W=K.JSC$14490_getStoreKey(G))&&m.ephemeralResponseStore.has(W)?h.yield(m.ephemeralResponseStore.get(W),7):h.yield(s2O(m,G),4);case 4:L=h.yieldResult;if(!W){h.jumpTo(3);break}A=Vo(L,3600);return h.yield(m.ephemeralResponseStore.put(W,new _.eB(A)),3);case 7:L=(O=h.yieldResult)==null?void 0:_.k1(O);case 3:return((c=L)==null?0:c.replacementEndpoint)&&(u=_.Q(L.replacementEndpoint,_.lw))&&L.sequenceContinuation&&
(u.sequenceParams=L.sequenceContinuation),h.return(L)}})};
eLE=function(m,G){G=(new EF).JSC$14490_getStoreKey(G);return!!G&&m.ephemeralResponseStore.has(G)};
f5q=function(m,G,K){var W,L,A,O,c;_.Y(function(u){if(u.nextAddress==1){W=new EF;L=W.JSC$14490_getStoreKey(G);if(!L)return u.return();if(K.reelWatchSequenceResponse)return A=Vo(K.reelWatchSequenceResponse,3600),m.ephemeralResponseStore.put(L,new _.eB(A)),u.jumpTo(0);if(!m.ephemeralResponseStore.has(L))return u.jumpTo(0);c=K;return u.yield(m.ephemeralResponseStore.get(L),4)}c.reelWatchSequenceResponse=(O=u.yieldResult)==null?void 0:_.k1(O);_.ey(u)})};
s2O=function(m,G){var K=K===void 0?{}:K;var W,L,A;return _.Y(function(O){switch(O.nextAddress){case 1:if(m.innertubeTransportService){W=m.innertubeTransportService;O.jumpTo(2);break}if(!m.innertubeTransportLoader){_.j1(Error("yj"));O.jumpTo(2);break}return O.yield(m.innertubeTransportLoader(),4);case 4:W=O.yieldResult;case 2:return O.yield((L=W)==null?void 0:_.to(L,G,K),5);case 5:return A=O.yieldResult,O.return(A)}})};
_.e_.Object.defineProperties(oZ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
oZ[XF]=[qRz,_.y$,_.fn(_.Tv),_.fn(Scl)];_.qZP=new _.sX("STORAGE_MANAGER_TOKEN");var F6P=["touchmove","scroll"];var EOE=!1;var K6P=!1;var tTd={onSpanEnd:function(m){m.parentId==null&&(EOE||(iyd(),setInterval(iyd,6E5),EOE=!0),L6G(m,"web_tracing_action"))}};var cQP=URL.createObjectURL;var Njs,HTu={traceAllComponents:_.F("web_tracing_all_components"),exportToCsi:_.F("web_tracing_export_to_csi"),enabledSpansArray:_.lX("web_tracing_enabled_spans"),exportToDevTools:_.F("web_tracing_export_to_devtools"),maxBreadcrumbs:_.U8("tel_max_breadcrumbs",0)};Njs=new OyJ(HTu);var D9d=_.F("web_shorts_enable_tracing");var IM5=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},j2u;
IM5.prototype.enqueue=function(m,G){G===1?this.currentPersistentToast=m:this.queue.push(m);_.kLs(this)};
_.kLs=function(m){var G;(G=m.currentToast)!=null&&G.isOpened()||(m.queue.length?(m.currentToast=m.queue.shift(),m.currentToast.open()):m.currentPersistentToast&&m.currentPersistentToast.open())};_.nR=new _.sX("TOAST_MANAGER_TOKEN");var CMq=new _.sX("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var VJ6=new _.sX("VIEW_TRANSITION_COORDINATOR_TOKEN");var ZTW=function(m){this.config=m;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;m=_.g(m.transitionConfigs);for(var G=m.next();!G.done;G=m.next())G=_.g(G.value).next().value,this.transitionTasksMap.set(G,[])};
ZTW.prototype.registerElement=function(m,G,K){K=K===void 0?!1:K;for(var W=_.g(Object.keys(G)),L=W.next(),A={};!L.done;A={viewTransitionName:void 0},L=W.next()){L=L.value;A.viewTransitionName=G[L];var O=this.elementTasksMap.get(m),c=void 0;if((c=O)==null?0:c.has(L)){_.om(new _.cw("Element already registered for transition",m.tagName,L));break}O=O||new Map;O.set(L,{beforeTransition:function(u){return function(){m.style.viewTransitionName=u.viewTransitionName}}(A),
afterTransition:function(){m.style.viewTransitionName&&(m.style.viewTransitionName="")},
runOnce:K});this.elementTasksMap.set(m,O)}};
_.uk=function(m,G){var K=m.elementTasksMap.get(G);K&&(K.clear(),K.size===0&&m.elementTasksMap.delete(G))};
ZTW[XF]=[CMq];var PMi=_.P(function(m){var G=_.Q3("yt-expandable-metadata-header-view-model"),K=_.dn(function(W){_.Jo(_.l1(),{data:m.data()});if(!_.A3(_.LQ(W),G.value,["A".toString(),"BUTTON".toString()])){var L;(L=m.expandedCallback)==null||L.call(m,!1)}});
return _.r("yt-expandable-metadata-header-view-model",{el:G,class:"ytExpandableMetadataHeaderViewModelHost"},_.r(_.p,{cond:function(){return m.expanded()},
then:function(){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":K},_.r("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.r(_.p,{cond:function(){return m.data().expandedTitleImage},
then:function(W){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.r(_.oC,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:W}))}}),_.r("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.r("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.r(_.Nm,{text:function(){return m.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.r(_.Nm,{text:function(){return m.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.r(_.Nm,{text:function(){return m.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.r("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.r(_.z$,{data:function(){return m.data().infoButton}},{buttonViewModel:_.kP}),_.r(_.z$,{data:function(){return m.data().collapseButton}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
onClick:function(){var L;(L=m.expandedCallback)==null||L.call(m,!1)}})}})))},
else:function(){return _.r(d2E,Object.assign({},m))}}))},"zg"),y_z=_.P(function(m){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.r(_.p,{cond:function(){return m.data().collapsedLabelImage},
then:function(G){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.r(_.oC,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:G,alt:""}))}}),_.r(_.Nm,{text:function(){return m.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Ag"),d2E=_.P(function(m){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.dn(function(){_.Jo(_.l1(),{data:m.data()});var G;(G=m.expandedCallback)==null||G.call(m,!0)})},_.r("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.r(_.p,{cond:function(){return m.data().collapsedImage},
then:function(G){return _.r("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.r(_.oC,{height:20,preserveHeight:!0,preserveWidth:!0,data:G,alt:""}))}}),_.r(_.p,{cond:function(){return m.data().showLeadingCollapsedLabel},
then:function(){return _.r(y_z,Object.assign({},m))}}),_.r("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.r(_.Nm,{text:function(){return m.data().collapsedTitle}}))),_.r("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.r(_.p,{cond:function(){return!m.data().showLeadingCollapsedLabel},
then:function(){return _.r(y_z,Object.assign({},m))}}),_.r(_.z$,{data:function(){return m.data().infoButton}},{buttonViewModel:_.kP}),_.r(_.z$,{data:function(){return m.data().expandButton}},{buttonViewModel:function(G){var K=G.data;
return _.r(_.kP,{data:K,onClick:function(){_.Jo(_.l1(),{data:K});var W;(W=m.expandedCallback)==null||W.call(m,!0)}})}})))},"Bg");_.eRu=_.P(function(m){var G=_.g(_.EQ(function(){return m.data().initiallyExpanded})),K=G.next().value,W=G.next().value,L,A=(L=_.xS().resolve(_.fn(_.l_)))==null?void 0:L(),O=function(){var c=m.data().colorData;
if(c)return A?c==null?void 0:c.darkColorPalette:c==null?void 0:c.lightColorPalette};
return _.r("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.eA({"background-color":function(){var c=O();return(c==null?0:c.section2Color)?_.ce(c.section2Color):""}})},_.r(_.z$,{data:function(){return m.data().header}},{expandableMetadataHeaderViewModel:function(c){return _.r(PMi,{data:c.data,
expanded:function(){return!!K()},
expandedCallback:function(u){W(u)}})}}),_.r(_.p,{cond:function(){return K()},
then:function(){return _.r("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.r(_.z$,{data:function(){return m.data().expandedContent}},{horizontalShelfViewModel:function(c){return _.r(_.FW,{data:c.data,
includeMargin:!0,forceNarrowLayout:!0,palette:O})},
videoSummaryContentViewModel:function(c){return _.r(s50,{data:c.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(c){return _.r(_.xU,{data:c.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(c){return _.r(_.pM,{data:c.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.r(_.z$,{data:function(){return m.data().expandedBottomButtons}},{buttonViewModel:function(c){return _.r("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.r(_.kP,{data:c.data}))}}))}}))},"Cg");var fM6=_.P(function(m){var G=m.text;var K=m.marqueeSpacing;var W=m.scrollDelay;var L=m.scrollDuration;var A=m.enableMarqueeScroll;m=m.large;var O=_.g(_.g_(!1,void 0,"WyNYFf")),c=O.next().value,u=O.next().value,h=_.g(_.g_(0,void 0,"OoTdhe"));O=h.next().value;var J=h.next().value,N=_.Q3("marquee-scroll");h=_.Q3("div");var D=_.Q3("span"),t=_.xS().resolve(_.t3);_.$O(function(){if(A()){var I=D.value.getBoundingClientRect().width,Z=N.value.getBoundingClientRect().width;if(I>Z){var k=(t==="ltr"?-1:1)*(I+
(K?K():16));Promise.resolve().then(function(){u(!0);J(k)})}}},"dv0Anf");
var a={},v={};return _.r("marquee-scroll",{class:_.VO("ytMarqueeScrollHost",(a.ytMarqueeScrollHostLarge=m,a)),el:N},_.r("div",{id:"marquee-scroll-inner-container",class:_.VO("ytMarqueeScrollInnerContainer",(v.ytMarqueeScrollAnimationEnabled=function(){return c()},v)),
el:h,style:_.eA({gap:K?(0,_.uo)(K):"16px","animation-duration":L?jIX(L):"16s","animation-delay":W?jIX(W):"3s","--marquee-translate":(0,_.uo)(O)})},_.r("span",{el:D,dir:"auto"},_.r(_.Nm,{text:G,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.r(_.p,{cond:c,then:function(){return _.r("span",{"aria-hidden":"true",dir:"auto"},_.r(_.Nm,{text:G,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Eg");_.x2O=_.P(function(m){var G=m.data;var K=m.overlayDensity;m=_.dn(function(){G().onTapCommand&&_.h$(G().onTapCommand);return!1});
var W=_.WR(),L=function(){return(K==null?void 0:K())===1?22:16},A={};
return _.r("reel-sound-metadata-view-model",{class:_.VO("ytReelSoundMetadataViewModelHost",(A.ytReelSoundMetadataViewModelHostLarge=function(){return(K==null?void 0:K())===1},A)),
"on:click":m,tabindex:0,role:"button","on:keydown":W},_.r("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.r(_.p,{cond:function(){return G().musicIcon},
then:function(O){return _.r(_.oC,{data:O,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:L})}}),_.r("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.r(fM6,{text:function(){return G().soundMetadata},
enableMarqueeScroll:function(){return!!G().enableMarqueeScroll},
large:function(){return(K==null?void 0:K())===1}}))))},"Fg");var X4u,SZO,bH,lMW,MJ6,zR5,inO,mC6;X4u=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];SZO=_.U8("wil_icon_max_concurrent_fetches",Infinity);
bH=function(m,G,K){var W=this;this.iconSet=m;this.appDirection=G;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Ks.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.F("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.F("wil_icon_network_first");this.renderWhenIdle=_.F("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.F("wil_icon_load_immediately");this.isPurging=!1;m=function(){W.cacheStorageAvailable&&(W.cacheStorageAsync=_.Ks.caches.open("yt-icons").then(function(A){return W.cacheStorageSync=A}).catch(function(){W.cacheStorageAvailable=!1}))};
K=(K==null?void 0:K())||{};K=_.g(Object.entries(K));for(G=K.next();!G.done;G=K.next()){var L=_.g(G.value);G=L.next().value;L=L.next().value;L=cO(L);RRz(L);this.iconCache[G]=L.cloneNode(!0)}this.isPurging=U26(this);this.isPurging instanceof Promise?this.isPurging.then(m):m()};
_.z5G=function(m,G){var K=m.resolveIcon(G);return K?m.renderingMode===1?zR5(m,K,m.renderingMode):(G=m.iconCache[K.url])?(G=G.cloneNode(!0),lMW(m,G),zR5(m,K,m.renderingMode,G)):_.B_s(m,K).then(function(W){var L=W?0:1;lMW(m,W);return zR5(m,K,L,W)}):(_.om(new _.cw("Icon not found",{iconShape:G})),function(){})};
lMW=function(m,G){if(G){m.counter+=1;m="_yt"+m.counter;G=[G].concat(_.Bz(G.getElementsByTagName("*")));G=_.g(G);for(var K=G.next();!K.done;K=G.next())if(K=K.value,K.tagName==="style"&&K.textContent)K.textContent=MJ6(K.textContent,m,!0);else for(var W=_.g(K.attributes),L=W.next();!L.done;L=W.next()){L=L.value;L.name==="id"&&(L.value+=m);["mask","fill","clip-path"].includes(L.name)&&(L.value=MJ6(L.value,m));if(L.name==="style"){var A=K.style;try{A.cssText=MJ6(A.cssText,m,!0)}catch(J){var O=void 0,c=
void 0,u=void 0,h=void 0;vd({error:((O=J)==null?void 0:(u=(c=O).toString)==null?void 0:u.call(c))||"",el:K.outerHTML,style:!!A,cssText:(h=A)==null?void 0:h.cssText})}}L.name==="xlink:href"&&(L.value=L.value.replace(/#(.*)/,"#$1"+m))}}};
MJ6=function(m,G,K){var W=/url\(["']?#(.*?)["']?\)/;(K===void 0?0:K)&&(W=/url\(["']?#(.*?)["']?\)/g);return m.replace(W,"url(#$1"+G+")")};
zR5=function(m,G,K,W){return function(L,A){var O;var c=Object.assign({},{iconWidth:G.size+"px",iconHeight:G.size+"px",iconDisplay:"block"},A,{iconColor:(O=A==null?void 0:A.iconColor)!=null?O:"currentcolor"});O=_.M7("DIV");A=c.iconColor;var u=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";u&&(c+=" filter: "+u+";");K===0&&(c+=" fill: "+A+";");K===1&&(u=G.url,c+=" -webkit-mask: url("+u+") no-repeat center / cover; mask: url("+(u+") no-repeat center / cover; background-color: ")+
A);G.allowMirroring&&m.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");O.setAttribute("style",c);K===0&&W&&O.appendChild(W);L.appendChild(O)}};
_.B_s=function(m,G){var K,W,L;return _.Y(function(A){K=function(O){return Wz(O)};
W=G.url;if(!T_s(W))throw Error("Bj");L=mC6(m,W);return A.return(L.then(function(O){return O.clone().text()}).then(function(O){var c=K(O);
O=G.size;var u=_.M7("DIV");_.Np(u,c);c=_.mX(u.firstElementChild!==void 0?u.firstElementChild:_.$7G(u.firstChild,!0));O=RRz(c,O);m.iconCache[W]=O.cloneNode(!0);delete m.responsePromises[W];return O}).catch(function(){}))})};
inO=function(m){var G,K=(G=m.requestAninmationFrameResolver)==null?void 0:G.promise;K||(m.requestAninmationFrameResolver=new _.yY,K=m.requestAninmationFrameResolver.promise,_.Ks.requestAnimationFrame(function(){var W;(W=m.requestAninmationFrameResolver)==null||W.resolve();m.requestAninmationFrameResolver=null}));
return K};
mC6=function(m,G){var K,W;return _.Y(function(L){if(L.nextAddress==1)return m.waitForAnimationFrame?L.yield(inO(m),2):L.jumpTo(2);K=m.responsePromises[G];K||(W=function(){var A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:if(!m.cacheStorageAvailable){A=void 0;u.jumpTo(2);break}if(O=m.cacheStorageSync){u.jumpTo(3);break}return u.yield(m.cacheStorageAsync,4);case 4:O=u.yieldResult;case 3:A=O;case 2:return c=A,m.isNetworkFirstStrategy?u.return(m.fetchAndUpdateCache(G,c).catch(m.getCacheStorageResponse.bind(m,
G,c))):u.return(m.getCacheStorageResponse(G,c).catch(m.fetchAndUpdateCache.bind(m,G,c)))}})},K=m.renderWhenIdle?new Promise(function(A,O){_.rC(_.Fu,function(){W().then(A).catch(O)},10)}):W(),m.responsePromises[G]=K);
return L.return(K.catch(function(A){delete m.responsePromises[G];vd({error:(A==null?0:A.toString)?A.toString():"",url:G});throw A;}))})};
bH.prototype.fetchAndUpdateCache=function(m,G){var K=this;return _.Y(function(W){return W.return(GfW(K,m).then(function(L){K3W(K,m,L,G);return L}))})};
var GfW=function(m,G){var K;return _.Y(function(W){if(m.numFetches<SZO)return m.numFetches+=1,W.return(W3u(m,G).finally(function(){--m.numFetches;if(Object.keys(m.queuedResponseResolvers).length){var L=Object.keys(m.queuedResponseResolvers)[0],A=m.queuedResponseResolvers[L];delete m.queuedResponseResolvers[L];A.resolve(GfW(m,L))}}));
K=new _.yY;m.queuedResponseResolvers[G]=K;return W.return(K.promise)})},W3u=function(m,G,K){K=K===void 0?2:K;
var W;return _.Y(function(L){W={credentials:"same-origin",priority:"low"};return L.return(_.Ks.fetch(G,W).then(function(A){return A.ok?A:Promise.reject(Error("Cj`"+A.status+"`"+A.statusText))}).catch(function(A){if(K>0)return W3u(m,G,K-1);
throw A;}))})},K3W=function(m,G,K,W){_.Y(function(L){return W?L.return(new Promise(function(A){_.rC(_.Fu,function(){var O,c;
return _.Y(function(u){switch(u.nextAddress){case 1:if(!m.isNetworkFirstStrategy){O=void 0;u.jumpTo(2);break}return u.yield(W.match(G).catch(function(){}),3);
case 3:O=u.yieldResult;case 2:if(c=O){u.jumpTo(4);break}return u.yield(W.put(G,K.clone()).catch(function(h){vd({error:(h==null?0:h.toString)?h.toString():"",url:G})}),4);
case 4:A(),_.ey(u)}})},50)})):L.return()})};
bH.prototype.getCacheStorageResponse=function(m,G){return _.Y(function(K){return G?K.return(G.match(m).then(function(W){return W&&W.ok?W:Promise.reject()})):K.return(Promise.reject())})};
var RRz=function(m,G){G===void 0||m.getAttribute("viewBox")||m.setAttribute("viewBox","0 0 "+G+" "+G);m.setAttribute("focusable","false");m.setAttribute("aria-hidden","true");G=_.F("killswitch_remove_icon_fill_color");m.getAttribute("fill")!=="currentcolor"&&m.getAttribute("fill")!=="currentColor"||G||m.removeAttribute("fill");try{m.style.pointerEvents="none",m.style.display="inherit",m.style.width="100%",m.style.height="100%"}catch(L){var K;vd({error:((K=L)==null?0:K.toString)?L.toString():""});
try{m.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(A){var W;vd({error:((W=A)==null?0:W.toString)?A.toString():""})}}return m},T_s=function(m){for(var G=_.g(X4u),K=G.next();!K.done;K=G.next())if(m.startsWith(K.value)&&m.endsWith(".svg"))return!0;
return!1};
bH.prototype.resolveIcon=function(m){return this.iconSet.resolveIcon(m)};
var vd=function(m){_.nc(new _.cw("Error in IconManager",m))},U26=function(m){if(_.F("wil_icons_cache_purge_killswitch"))return!1;
try{var G=_.Ks.localStorage}catch(A){return!1}if(!G||!m.cacheStorageAvailable)return!1;var K=function(A){try{var O;(O=G)==null||O.setItem("yt-icons-last-purged",A.toString())}catch(u){var c;vd({error:((c=u)==null?0:c.toString)?u.toString():""})}},W=Number(G.getItem("yt-icons-last-purged"));
if(!W)return W=new Date,W=W.setDate(W.getDate()-Math.floor(Math.random()*90+1)),K(W),!1;if(function(A,O){A=new Date(A);O=new Date(O);return O.getMonth()-A.getMonth()+12*(O.getFullYear()-A.getFullYear())}(W,Date.now())<3)return!1;
try{return _.Ks.caches.delete("yt-icons").then(function(A){A&&K(Date.now());return A}).catch(function(){return!1}).finally(function(){m.isPurging=!1})}catch(A){var L;
vd({error:((L=A)==null?0:L.toString)?A.toString():""});return!1}};
bH[XF]=[h_q,_.t3,_.fn(NDD)];_.L3q=function(m,G){this.iconManager=m;this.iconsToFetch=G};
_.L3q[XF]=[_.fD,_.fn(JU6)];var AwW=function(){};var wOu=function(m,G,K){this.requestKey=m;this.w4W=G;this.i0U=K;this.xFg=function(){return new XMLHttpRequest};
this.sn2=void 0;this.r6F=[]};
wOu.prototype.getLatestChallengeResponse=function(){return this.i0U};
var pwF=function(m,G,K){var W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){_.ck("attestation_challenge_fetch");_.Yt("att_fs",void 0,"attestation_challenge_fetch");if(!m.sn2)throw new _.YZ(9,"Missing fetcher");return c.yield(m.sn2(G,K),2)}W=c.yieldResult;A=(L=W)==null?void 0:L.bgChallenge;if(!A)throw new _.YZ(15,"Missing field");m.i0U=W;m.r6F.forEach(function(u){u(W)});
O=lcd(A);_.Yt("att_fc",void 0,"attestation_challenge_fetch");OG("attestation_challenge_fetch");return c.return(O)})},dK4=function(m,G){var K,W,L,A,O;
return _.Y(function(c){switch(c.nextAddress){case 1:K=new Xb(100,3E5,.25,2),W=void 0;case 2:if(!(K.currBackoffCount_<10)){c.jumpTo(4);break}_.IO(c,5);if(!(K.currBackoffCount_>0)){c.jumpTo(7);break}return c.yield(aVG(K.getValue()),7);case 7:return c.yield(gSO(m,G),9);case 9:return L=c.yieldResult,c.return(L);case 5:A=_.ye(c);A instanceof _.YZ?W=A:(O=A instanceof Error?A.message:"Unknown",W=new _.YZ(9,O));$2i(K);c.jumpTo(2);break;case 4:if(W)throw W;throw new _.YZ(9,"Unknown error");}})},gSO=function(m,
G){G=K10(W1i(new Gd2,G),m.requestKey);
var K=new _.yY,W=m.xFg();W.open("POST",m.w4W);W.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");W.setRequestHeader("Content-Type","application/json+protobuf");W.onload=function(){if(_.Etf(W)){var L=hdP(W.responseText);K.resolve(L)}else K.reject(new _.YZ(_.XO9(_.BO(W)),W.statusText))};
W.onerror=function(){K.reject(new _.YZ(_.XO9(_.BO(W)),W.statusText))};
W.send(G.serialize());return K.promise};var cwu=function(m){this.networkStatusManager=m;this.isDownloaded=KGs===void 0?function(){return!1}:KGs;
this.isReady=!1;this.h2n=OnP(this)},OnP=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(a0d(),2);if(K.nextAddress!=3)return G=K.yieldResult,K.yield(Eli(G),3);m.eX=K.yieldResult;nXM(m.eX).then(function(){m.isReady=!0});
return K.return(m.eX)})},Y85=function(m,G,K){m.eX?(m=m.eX.p2P({kW:K,
uL6:!0,qjP:!0}),G.serviceIntegrityDimensions={poToken:m}):_.am(Error("Ej"))};
cwu.prototype.processContext=function(m){var G=this;if(m.input.match(_.sv(O1i)))var K=m.innerTubeRequest;else if(m.input.match(_.sv(ML4)))K=m.innerTubeRequest.playerRequest;else return _.og();var W,L=(W=K)==null?void 0:W.videoId;return!L||this.isDownloaded(K)||this.networkStatusManager&&!this.eX&&!this.networkStatusManager.isNetworkAvailable()||_.F("webpo_exit_on_net_err")&&!this.eX&&(window.bgens===1||window.bgens===3)?_.og():this.eX?this.isReady?(Y85(this,K,L),_.og()):new ag(nXM(this.eX).then(function(){Y85(G,
K,L)})):new ag(this.h2n.then(function(A){return _.Y(function(O){if(O.nextAddress==1)return O.yield(nXM(A),2);
Y85(G,K,L);_.ey(O)})}))};var rws=new _.sX("WEB_PO_CONTEXT_PROCESSOR");var uF5=function(m,G){var K=this;this.yVM=0;var W;this.wRR=(W=G==null?void 0:G.wRR)!=null?W:window;this.networkStatusManagerPromise=G==null?void 0:G.networkStatusManagerPromise;var L;this.requestKey=(L=G==null?void 0:G.requestKey)!=null?L:_.zf("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var A;this.yGO=(A=G==null?void 0:G.yGO)!=null?A:function(u){return new DL(u)};
var O;W=(O=G==null?void 0:G.piH)!=null?O:function(u,h,J){return new wOu(u,h,J)};
this.bgChallenge=lcd(m.bgChallenge);this.ttlSeconds=BZP(ox(m.challenge||""));this.vk=W(this.requestKey,_.F("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Ks.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",m);this.uxO=G==null?void 0:G.uxO;oXP(this.vk);var c;this.tiw=(c=G==null?void 0:G.tiw)!=null?c:function(u){_.oi(K.wRR.document,"visibilitychange",
function(){K.wRR.document.visibilityState==="visible"&&u()})}},pO6=function(m){if(!m.vm){var G={maxAttempts:5,
moO:m.ttlSeconds*1E3};byJ(m.wRR);m.vm=m.yGO({vk:m.vk,vvT:{disable:_.F("html5_web_po_disable_remote_logging"),km:"aGIf",eKJ:ntG("html5_web_po_experiment_ids"),dTg:_.F("wpo_dis_lfdms")?0:1E3,vRD:function(W){var L=r0k.get(W);L||(L=new Yfi(W),L=new zI(L),r0k.set(W,L));return L}},
kbp:G,ppw:m.bgChallenge,x6y:vXf});m.yVM=Date.now();YVC(m.vm,function(){m.yVM=Date.now()});
m.wRR.bgevmc={p:function(){var W;(W=m.vm)==null||W.pause()},
r:function(){var W;(W=m.vm)==null||W.resume()},
cr:function(){var W,L;return(L=(W=m.vm)==null?void 0:W.checkForRefresh())!=null?L:Promise.resolve()}};
vSs(m.vm,function(){return _.Y(function(W){return W.return(hIq(m))})});
var K=m.ovk.bind(m);m.networkStatusManagerPromise&&m.ttlSeconds>0&&m.networkStatusManagerPromise.then(function(W){W.listen("publicytnetworkstatus-online",K)});
m.tiw(K)}};
uF5.prototype.ovk=function(){if(Date.now()>this.yVM+this.ttlSeconds*1E3){var m;(m=this.vm)==null||cHX(m)}};
var hIq=function(m){if(m.rd8)return m.rd8;if(!m.vm)throw Error("Fj");m.rd8=new oa({vm:m.vm,vk:m.vk,mOM:!0,onError:vXf,kbp:m.uxO});return m.rd8},sNJ=function(m,G){m=new uF5(m,G);
pO6(m);(G==null?0:G.cJH)||hIq(m)};var Jw6=_.yOu.ephemeralActionSelector,NsG=function(m,G){this.store=m;this.queue=[];G==null||G.addEventListener("yt-navigate-start",this.reset.bind(this))};
NsG.prototype.enqueue=function(m){var G=m.command,K=m.durationMs,W=m.elementToFocus;var L=m.label;var A=m.elementToFocus;m.command?L=_.zq("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:L,shortcut:_.zq("SHIFT_PLUS_ENTER")}):A&&(m=L+". "+_.zq("SHIFT_PLUS_ENTER")+" for more information.",L=_.zq("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:L,shortcut:_.zq("SHIFT_PLUS_ENTER")},m));K={announcement:L,durationMs:K!=null?K:8E3};G?K.command=G:W&&(W.classList.add("ephemeral-action-focusable-element"),K.selector=W.tagName+
".ephemeral-action-focusable-element");this.queue.push(K);DCE(this)};
NsG.prototype.activate=function(m){var G=Jw6(this.store.getState());if(G){if(G==null?0:G.command)_.YE(G.command),this.store.dispatch(WTR(null));if(G==null?0:G.selector)G=document.querySelector(G.selector),_.jGJ(G);m.preventDefault()}};
var DCE=function(m){if(!Jw6(m.store.getState())&&m.queue.length){var G=m.queue.shift();G&&(m.previousAnnouncement===G.announcement&&(G.announcement+="\u00a0"),m.store.dispatch(WTR(G)),m.previousAnnouncement=G.announcement,m.JSC$19132_timeoutId=setTimeout(function(){if(G.selector){var K;(K=document.querySelector(G.selector))==null||K.classList.remove("ephemeral-action-focusable-element")}m.store.dispatch(WTR(null));DCE(m)},G.durationMs))}};
NsG.prototype.reset=function(){this.JSC$19132_timeoutId&&clearTimeout(this.JSC$19132_timeoutId);this.store.dispatch(WTR(null));this.queue.length=0;this.JSC$19132_timeoutId=void 0};
NsG[XF]=[_.wR,_.fn(_.eG)];_.$h=new _.sX("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var t1W=new _.sX("AUTH_SERVICE_TOKEN");var Hyo=_.nY(["about:blank"]),EXP;var F3G=new _.sX("API_IFRAME_TOKEN");var NWR;NWR=new _.sX("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.QPD=new _.sX("MISC_UI_SHARED_FLAGS_TOKEN");var a0O=function(){};
a0O.prototype.getFlag=function(m){if(m.configType!==2)throw Error("Gj");return oSE(m)};
var oSE=function(m){switch(m.flagType){case "bool":return _.F(m.flagName);case "int":return _.ZP(_.U8(m.flagName));case "double":return _.U8(m.flagName);case "string":return _.zf(m.flagName);case "int32_list":return ntG(m.flagName);case "int64_list":return ntG(m.flagName).map(function(G){return _.ZP(G)});
case "string_list":return _.lX(m.flagName);default:throw Error("Hj");}};var sw=function(m,G,K){G=G===void 0?{}:G;wv.call(this,K===void 0?"uninitialized":K);this.env=m;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}];G.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=G.shouldWaitOnAsyncImmediate)};
_.n(sw,wv);sw.prototype.init=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?W.yield(m(G.env),2):(m(G.env),W.jumpTo(2));if(W.nextAddress!=4)return G.jobSet?W.yield(G.jobSet.completedResolver.promise,4):W.jumpTo(4);K=_.tf();K.parkOrScheduleJob(function(){G.transition("rendering")},10,"ci");
_.ey(W)})};
sw.prototype.initialRender=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?W.yield(m(G.env),2):(m(G.env),W.jumpTo(2));if(W.nextAddress!=4)return G.jobSet?W.yield(G.jobSet.completedResolver.promise,4):W.jumpTo(4);K=_.tf();K.parkOrScheduleJob(function(){G.transition("rendered")},10,"cr");
_.ey(W)})};
sw.prototype.afterRenderImmediate=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return G.processPluginOptions.shouldWaitOnAsyncImmediate?W.yield(m(G.env),2):(m(G.env),W.jumpTo(2));if(W.nextAddress!=4)return G.jobSet?W.yield(G.jobSet.completedResolver.promise,4):W.jumpTo(4);K=_.tf();K.parkOrScheduleJob(function(){G.transition("after-render-deferred")},10,"carml");
_.ey(W)})};
sw.prototype.afterRenderDeferred=function(m){var G=this;return _.Y(function(K){m(G.env);_.ey(K)})};_.qC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var nSz={},bn5=(nSz.rendered={priority:0,callback:function(m){ZWC(m.injector.resolve(uO))}},nSz);var to2=new _.sX("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),vSP=new _.sX("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var $CD=function(m){this.callbackFnMap=m;this.configMap={}};
$CD.prototype.handleResponse=function(m){var G;if(m=(G=m.responseContext)==null?void 0:G.serviceTrackingParams)for(G=_.g(m),m=G.next();!m.done;m=G.next()){m=m.value;var K=m.params,W=m.service;if(K&&W){this.configMap[W]||(this.configMap[W]=new CtX);m=this.configMap[W];var L=void 0,A=(L=this.callbackFnMap)==null?void 0:L[W];K=_.g(K);for(W=K.next();!W.done;W=K.next())L=W.value,W=L.key,L=L.value,W&&L&&(m.set(W,L),A&&A(W,L))}}};
$CD.prototype.getConfig=function(m){return this.configMap[m]||void 0};
$CD[XF]=[_.fn(vSP)];var sP5=!1,PfG=0,CfF=null,d9s=null;var q8s=new _.sX("NETWORK_SLI_TOKEN");var ESi=function(m){this.networkSli=m};
ESi.prototype.fetch=function(m,G,K){var W=this,L;return _.Y(function(A){L=Hnz(W,m,G);return A.return(fetch(L).then(function(O){return W.handleResponse(O,K)}).catch(function(O){_.nc(O);
if((K==null?0:K.expectJsonStrict)&&O instanceof SK&&O.errorType===1)return Promise.reject(O)}))})};
var UnR=function(m,G,K,W){var L,A,O,c,u,h,J;return _.Y(function(N){switch(N.nextAddress){case 1:return L=Hnz(m,G,K),_.IO(N,2),N.yield(fetch(L),4);case 4:A=N.yieldResult;_.IG(N,3);break;case 2:throw _.ye(N),new SK(2,"Failed to parse streaming response",L.url);case 3:if(!A.redirected&&!A.ok)throw(O=m.networkSli)==null||O.failure(),new _.cw("Streaming fetch request not ok",L.url);if(!A.body)throw new _.cw("No response body in streaming response",L.url);c={};if(_.F("web_streaming_fast"))return u=A.body.getReader(),
N.return(I0W(m,u,c,W));h=A.body.pipeThrough(new TextDecoderStream).getReader();J=new _.Wl;return N.return(jPs(m,h,J,ar6,c,W))}})},Hnz=function(m,G,K){if(m.networkSli){var W=_.f6(_.mi(G,"key"))||"/UNKNOWN_PATH";
m.networkSli.start(W)}m=K;_.F("wug_networking_gzip_request")&&(m=C1J(K));return new window.Request(G,m)},I0W=function(m,G,K,W){var L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji,rK,So;
return _.Y(function(ti){switch(ti.nextAddress){case 1:L=new TextDecoder("utf-8"),A=[],c=O=0,_.IO(ti,2,3);case 5:return ti.yield(G.read(),8);case 8:u=ti.yieldResult;h=u.value;if(J=u.done){N=0;if(A.length>O)for(N=A[O].length-c,D=O+1;D<A.length;D++)N+=A[D].length;N>0&&(t=yQF(A,N,O,c),a=t.indexOf(123),v=t.lastIndexOf(125),a!==-1&&v!==-1&&v>a&&(I=t.subarray(a,v+1),Z=JSON.parse(L.decode(I)),ar6(K,Z),k=void 0,(k=W)==null||k(K,Z)));z=void 0;(z=m.networkSli)==null||z.success();return ti.return(K)}A.push(h);
X=O;for(f=c;X<A.length;)if(U=A[X],l=U.indexOf(10,f),l===-1){if(X===A.length-1)break;X++;f=0}else{Ls=X;gd=l+1;Qf=0;if(O===Ls)Qf=gd-c;else{Qf=A[O].length-c;for(JV=O+1;JV<Ls;JV++)Qf+=A[JV].length;Qf+=gd}DF=yQF(A,Qf,O,c,Ls,gd);kG=DF.indexOf(123);eo=DF.lastIndexOf(125);if(kG!==-1&&eo!==-1&&eo>kG){xG=DF.subarray(kG,eo+1);try{Ji=JSON.parse(L.decode(xG)),ar6(K,Ji),rK=void 0,(rK=W)==null||rK(K,Ji)}catch(bS){throw new SK(1,"Failed to parse streaming response object",L.decode(xG));}}O=X;f=c=l+1;c===U.length&&
(O++,c=0,X=O,f=0)}ti.jumpTo(5);break;case 3:_.CZ(ti);G.releaseLock();_.ZO(ti,0);break;case 2:So=_.ye(ti);if(So instanceof SK)throw So;throw new SK(1,"Failed to process streaming response");}})},jPs=function(m,G,K,W,L,A){var O,c,u,h,J,N,D,t,a;
return _.Y(function(v){if(v.nextAddress==1)return v.yield(G.read(),2);O=v.yieldResult;c=O.value;if(u=O.done)return(h=m.networkSli)==null||h.success(),v.return(L);try{J=K.parse(c)}catch(I){throw new SK(1,"Failed to parse streaming response",c);}if(J!=null)for(N=_.g(J),D=N.next();!D.done;D=N.next())t=D.value,W(L,t),a=void 0,(a=A)==null||a(L,t);return v.return(jPs(m,G,K,W,L,A))})};
ESi.prototype.handleResponse=function(m,G){var K=m.text().then(function(W){if((G==null?0:G.jspbResponseCtor)&&m.ok)return ctJ(G.jspbResponseCtor,W);W=W.replace(")]}'","");if((G==null?0:G.expectJsonStrict)&&W)try{var L=JSON.parse(W)}catch(O){throw new SK(1,"JSON parsing failed after fetch");}var A;return(A=L)!=null?A:JSON.parse(W)});
m.redirected||m.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),K=K.then(function(W){_.nc(new _.cw("Error: API fetch failed",m.status,m.url,W));return Object.assign({},W,{errorMetadata:{status:m.status}})}));
return K};
ESi[XF]=[_.fn(q8s)];var kfO=new _.sX("NETWORK_MANAGER_TOKEN");var CXE=[1,2,4,8,16,30],Zn6=function(m){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=m.maxTimeMs;this.maxFrameCount=m.maxFrameCount===void 0?Math.ceil(60*m.maxTimeMs/1E3):m.maxFrameCount;m=_.g(CXE);for(var G=m.next();!G.done;G=m.next())this.brokenFrameSummarizers.push(new V1W(G.value/60*1E3))},dCs=function(m){var G=m.frameCountInternal>=m.maxFrameCount;
return m.elapsedTimeMs>=m.maxTimeMs||G};
Zn6.prototype.summarize=function(){for(var m=[],G=_.g(this.brokenFrameSummarizers),K=G.next();!K.done;K=G.next())K=K.value,K=K.brokenFrameCount!==0?{severityMs:Math.round(K.targetFrameTimeMs),eventCount:K.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(K.averageDurationBetweenEventsMs)}:void 0,K&&m.push(K);return{summaries:m,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.e_.Object.defineProperties(Zn6.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 V1W=function(m){this.targetFrameTimeMs=m;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.e_.Object.defineProperties(V1W.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var PXO=function(){};
PXO.prototype.start=function(m,G){var K=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var W=new Zn6({maxTimeMs:m});this.monitor=W;this.lastSummaryInternal=void 0;this.metadataToLog=G;return new Promise(function(L){var A=function(O){if(O===void 0)K.stop(),L(void 0);else if(K.monitor!==W)O=Object.assign({},W.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),L(O);else{var c=K.monitor;if(!dCs(c)){c.frameCountInternal++;if(c.prevTime===
void 0)c.startTime=O;else for(var u=O-c.prevTime,h=_.g(c.brokenFrameSummarizers),J=h.next();!J.done;J=h.next()){J=J.value;var N=J.currTimeMs;J.currTimeMs+=u;u>J.targetFrameTimeMs+2&&(J.brokenFrameCount++,J.timeOfFirstBrokenFrameMs===void 0&&(J.timeOfFirstBrokenFrameMs=N),J.timeOfLastBrokenFrameMs=N)}c.prevTime=O}dCs(K.monitor)?L(K.stop()):_.Fu.addJob(A,5,0)}};
_.Fu.addJob(A,5,0)})};
PXO.prototype.stop=function(m){if(!this.monitor)return this.lastSummaryInternal;var G=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(G.monitoringDurationMs){m=m!=null?m:this.metadataToLog;var K={droppedFramesSummary:G,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};m&&(K[m.type]=m.data);_.Fx("manualSmoothnessMeasurement",K)}this.monitor=void 0;this.lastSummaryInternal=G;this.metadataToLog=void 0;return G};_.ywD=new _.sX("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var eIP;eIP=function(m){this.JSC$19174_expiringStorage=new ux(m)};
_.f06=function(m){if(_.eXJ()&&(m=_.uQP(_.g8()+"::"+m)))return new eIP(m)};
eIP.prototype.set=function(m,G,K){K=K!==void 0?Date.now()+K:void 0;this.JSC$19174_expiringStorage.set(m,G,K)};
eIP.prototype.get=function(m){return this.JSC$19174_expiringStorage.get(m)};
eIP.prototype.remove=function(m){this.JSC$19174_expiringStorage.remove(m)};_.qJ=function(){};
_.qJ.getInstance=function(){var m=_.Cn("ytglobal.storage_");m||(m=new _.qJ,_.yj("ytglobal.storage_",m));return m};
_.qJ.prototype.estimate=function(){var m,G,K;return _.Y(function(W){m=navigator;return((G=m.storage)==null?0:G.estimate)?W.return(m.storage.estimate()):((K=m.webkitTemporaryStorage)==null?0:K.queryUsageAndQuota)?W.return(fVG()):W.return()})};
_.yj("ytglobal.storageClass_",_.qJ);var lVd=0;var KOJ=!1;var xCq=_.nY(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),XOG=_.nY(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var pt5={"/":_.lu,"/?feature=ytca":_.lu,"/feed/downloads":_.ids};var S86=f45.continuationCommandSelector,lG=function(m,G,K){this.JSC$19189_upliftPromise=m;this.store=G;this.JSC$19189_persistentStorePromiseAccessor=K};
lG.prototype.shouldPreferLocalResponse=function(m){return m.browseId==="FEdownloads"||m.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?!0:!1};
lG.prototype.localInnertubeResponse=function(m){var G=this;return _.Y(function(K){return m.browseId==="FEdownloads"?_.F("kevlar_modern_downloads_page")?K.return(RI6(G)):K.return(UCP(G)):m.browseId==="FEsmart_downloads"&&_.F("kevlar_modern_downloads_page")?K.return(zI6(G)):K.return(Promise.reject(Error("Jj")))})};
lG.prototype.canProvideFallbackResponse=function(){return!0};
lG.prototype.localFallbackInnertubeResponse=function(m){var G=this,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return A.yield(G.JSC$19189_persistentStorePromiseAccessor(),2);case 2:K=A.yieldResult;if(m.browseId!=="SPaccount_downloads"||!K){A.jumpTo(3);break}return A.yield(G0f(K),4);case 4:if(W=A.yieldResult)return A.return(_.k1(W));case 3:return m.browseId==="FEwhat_to_watch"?A.return(l0E(G)):(L=_.F("web_offline_continuation_automatic_retry")||_.F("web_offline_continuation_retry_button"))&&
m.continuation?A.return(BsP(G)):A.return(M1G(G))}})};
var l0E=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$19189_upliftPromise,2);G=_.Ks9(m.store.getState().entities);return G.length?K.return(TsP(m,G)):K.return(M1G(m))})},UCP=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$19189_upliftPromise,2);if(W.nextAddress!=3)return G=mK6([{offlineItemSectionRenderer:{}}]),W.yield(iLq(m,G),3);K=W.yieldResult;K.onResponseReceivedActions=[X9("REFRESH_DOWNLOADS")];return W.return(K)})},RI6=function(m){var G,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I;
return _.Y(function(Z){if(Z.nextAddress==1)return Z.yield(m.JSC$19189_upliftPromise,2);if(Z.nextAddress!=3)return G=m.store.getState(),K=G.entities,W=_.LG(K),L=_.AM(K),A=_.g8o(G),O=_.wxJ(G),c=_.Oko(G),u=_.AS6(K),h=_.Tz(W),J=_.w6(K),N=_.cSG(K),D=_.Yxd(G),t=_.r6(G),a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.JRF(W,L,u,N,A,O,h,J,c,D,t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},v="",_.F("kevlar_modern_downloads_skip_downloads_title")||
(v=_.zq("DOWNLOADS",void 0,"Downloads")),Z.yield(Gdu(m,a,v),3);I=Z.yieldResult;I.onResponseReceivedActions=[X9("REFRESH_DOWNLOADS")];return Z.return(I)})},zI6=function(m){var G,K,W,L,A,O,c,u,h;
return _.Y(function(J){if(J.nextAddress==1)return J.yield(m.JSC$19189_upliftPromise,2);if(J.nextAddress!=3)return G=m.store.getState(),K=G.entities,W=_.LG(K),L=_.Tz(W),A=_.w6(K),O={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.Di6(W),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},c=_.zq("SMART_DOWNLOADS",void 0,"Smart downloads"),u=h7G(L,A),J.yield(Gdu(m,O,c,u),3);h=J.yieldResult;h.onResponseReceivedActions=
[X9("REFRESH_DOWNLOADS")];return J.return(h)})},M1G=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(jq(m.JSC$19189_upliftPromise,m.store),2);G=W.yieldResult;K=mK6([M6o(G)]);return W.return(iLq(m,K))})},BsP=function(m){var G,K,W,L;
return _.Y(function(A){if(A.nextAddress==1)return G={},K=S86(m.store.getState()),_.LN(G,_.Yg,K),A.yield(jq(m.JSC$19189_upliftPromise,m.store,G,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);W=A.yieldResult;L={};_.LN(L,_.lz4,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:W}}}],targetId:"browse-feedFEwhat_to_watch"});return A.return({responseContext:{},onResponseReceivedActions:[L]})})},mK6=function(m){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:m}}}}]}}},TsP=function(m,G){var K,W;
return _.Y(function(L){var A={contents:SF(G)};K=A&&A.contents?A:{};_.F("kevlar_modern_downloads_page")&&(K=Object.assign({},_.tzs(G),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));W={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:K}}}]}};return L.return(iLq(m,W))})},iLq=function(m,G){var K,W;
return _.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$19189_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return K=L.yieldResult,L.yield(Cm(K),3);W=L.yieldResult;return L.return({responseContext:{},contents:G,topbar:W})})},Gdu=function(m,G,K,W){var L,A;
return _.Y(function(O){if(O.nextAddress==1)return O.yield(m.JSC$19189_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3)return L=O.yieldResult,O.yield(Cm(L),3);A=O.yieldResult;var c=O.return;var u=K;var h=W;u=u===void 0?"":u;h=h===void 0?"":h;u={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:u}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.zq("SETTINGS",void 0,"Settings"),accessibilityText:_.zq("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:_.qc("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:h}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:u};
return c.call(O,{responseContext:{},contents:G,topbar:A,header:{pageHeaderRenderer:u}})})};var K1W=function(m){this.chunkRegistry=m};
K1W.prototype.handleResponse=function(m){var G=this,K,W,L,A,O;return _.Y(function(c){A=(L=(K=_.Q(m.responseContext,$hR))==null?void 0:(W=K.webResponseContextPreloadData)==null?void 0:W.preloadMessageNames)!=null?L:[];O=RnD(G.chunkRegistry,A);return c.yield(O(),0)})};
K1W[XF]=[xTz];var jMR=new _.sX("MSS_RESPONSE_PROCESSOR_TOKEN");var W1D={},L1G=(W1D.rendered={priority:0,callback:function(m){a:{var G=void 0;try{var K;b:{if(_.nf6()){var W=_.JH(_.g8()+"::pom");if(W){var L=new Ub(W);break b}}L=void 0}var A=(K=L)==null?void 0:K.get("role_text");if(!A)break a;G={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:A}]}}}}}}catch(u){}G&&m.injector.resolve(_.S1).resolveCommand(G)}try{var O=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(O){var c=JSON.parse(O);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
c&&m.injector.resolve(_.S1).resolveCommand(c)}}catch(u){}}},W1D);var AHD,wwD={},gDq=(wwD.initialized={priority:10,callback:function(){AHD=LY()}},wwD.rendering={callback:function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(AHD,2);G=K.yieldResult;if(!G.endpoint)throw Error("Lj`"+_.Ks.location.href);g1(m,G);_.ey(K)})}},wwD);var OLP={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Bz(_.F("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},{messageRegExp:/Unexpected end of JSON input/,weight:0},{messageRegExp:/No parameters in result:/,weight:0}]),callbackWeights:[{callback:function(m){var G=m.stack;if(G.includes("chrome://")||G.includes("chrome-extension://")||m.message.includes("chrome-extension://")||G.includes("moz-extension://")||
G.includes("local.adguard.org")||G.includes("auctioneer3.50million.club")||G.includes("youtubedownloader")||G.includes("youtube_home_page")||G.includes("is_youtube_video_no_longer_available")||G.includes("switchScreenSizeHack")||G.includes("yt_main_big_banner.js")||G.includes("YouTubeCenter.js")||G.includes("/mytube.js")||G.includes("JSON.parseWrapper")||G.includes("/inj_js/common.js")||G.includes("firebug-lite")||G.includes(".repl.co/")||G.includes("linkfix")||G.includes("playAfterAd")||m.message.includes("Access is denied for this document")&&
G.includes("<anonymous>")||m.fileName==="user-script"||m.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&G.includes("<anonymous>"))return!0;if(G.includes("https://www.youtube.com"))return!1;m=G.split("\n");if(!m.length)return!1;if(m.length<=3&&G.includes("s.onloadeddata"))return!0;G=0;for(var K=_.g(m),W=K.next();!W.done;W=K.next())W=W.value,(W.includes("https://")||W.includes("http://"))&&G++;return G/m.length>.95},
weight:0},{callback:function(m){return m.message==="Unknown Error"&&m.name.indexOf("NS_")===0},
weight:100},{callback:function(m){if(!_.PX)return!1;var G=m.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||m.message.includes("available to complete this operation"),K=m.stack.includes("webcomponents")&&m.message==="Object doesn't support this action";m=m.message.includes("object that does not implement interface Element");return G||K||m},
weight:0},{callback:function(m){return m.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(m){return m.message==="Operation is not supported"&&(m.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(m){return m.stack.includes("eval code (eval (code:1:1)")||m.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(m){return m.message.includes("Permission denied")&&m.stack.includes("this.domHandler")?!0:m.name.includes("TypeError")&&m.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(m){if(!m.stack)return!1;var G=m.stack.trim().split("\n");G.length&&G[0].endsWith("Error: "+m.message)&&G.shift();G.length&&G[G.length-1].includes("at window.onerror (")&&G.pop();if(!G.length)return!0;if(m.message==="Script error.")return G[0].includes("www.youtube.com")||G.length>=2&&G[0].startsWith("at new")&&G[1].startsWith("at window.onerror");if(m.message==="Unexpected token")return!0;m=_.g(G);for(G=m.next();!G.done;G=m.next())if(G=G.value,!(G.includes("<anonymous>")||
G.startsWith("load@")||G.startsWith("global code@")||G.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(m){return m.message==="Cannot read property 'experiments'"&&m.stack.includes("/s/player/")},
weight:500},{callback:function(m){return m.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(m){return m.stack.includes("/embed.js")?(m.params&&m.params&&(m.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.F("use_error_suppression"))var m=_.E8("SUPPRESS_CLIENT_ERRORS",!1);else{if(m=_.fY)m=/Chrome\/(\d+)/.exec(_.Nd()),m=(m?parseFloat(m[1]):NaN)>=66;m=!(m||_.eI&&_.yP(65)||_.bx&&_.yP(12.1)||d8&&_.yP(79))}return m},
weight:500}]};var cHi={},YVD=(cHi.initialized={priority:10,callback:function(m){m.injector.addProvider({provide:PR4,useValue:m.root});m.injector.addProvider({provide:nl6,useValue:A3f});m.injector.addProvider({provide:btD,useValue:OLP});var G={};m.injector.addProvider((G.provide=vlz,G.useFactory=function(K,W){return function(){FG6(K,W)}},G[XF]=[nl6,
btD],G));m.injector.addProvider({provide:Ru,useClass:Ru})}},cHi);var rHD={},uH6=(rHD.initialized={priority:3,callback:function(){var m;if(m=AM6()){m=m.replace("/",".");var G=_.M$();G.set("tz",m);G.save();m=!0}else m=!1;m||(m=_.M$(),m.set("utco",-Math.floor((new Date).getTimezoneOffset())),m.save())}},rHD);var hvz={},pws=(hvz.initialized={priority:10,callback:function(m){m.injector.resolve(Ru).start();m=_.at();var G=_.IP("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.IP("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.IP("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.IP("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Xw(_.hPf(),{mainAppWeb:Object.assign({},m,{pageType:G})});_.Xw(J6d(),{mainAppWeb:Object.assign({},m,{pageType:G})});
_.Xw(Npf(),{mainAppWeb:m});_.Xw(DVd(),{mainAppWeb:m});zJ4(function(){_.Sq(Npf(),"FAILURE");_.Sq(DVd(),"FAILURE")});
JPG();NhF();pcd()}},hvz);var JHz={},N8u=(JHz.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Yt("dl"),_.tf().processSignal("pcl");else{var m=function(){_.Yt("dl");_.tf().processSignal("pcl");window.removeEventListener("load",m)};
window.addEventListener("load",m)}}},JHz);var DKi={},tnz=(DKi.rendering={priority:0,callback:function(){var m=_.tf();m.parkOrScheduleJob(function(){m.processSignal("eocs")},10,"eor",5E3)}},DKi);var F1O=function(){};
_.n(F1O,te);
F1O.prototype.resolveCommand=function(m,G){var K,W,L,A,O,c,u,h;return _.Y(function(J){L=(K=_.Q(m,_.FhG))==null?void 0:(W=K.dialog)==null?void 0:W.commentReplyDialogRenderer;if(!L)throw new _.cw("No dialog in createCommentReplyDialogEndpoint");O=(A=G.form)==null?void 0:A.event;if(!O)throw new _.cw("Event not passed in when resolving command");c=_.g(O.composedPath());for(u=c.next();!u.done;u=c.next())if(h=u.value,h.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||h.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return h.showReplyDialog(L),J.return();
_.ey(J)})};var QGu=function(){};
_.n(QGu,te);QGu.prototype.resolveCommand=function(){var m;return _.Y(function(G){if(m=document.getElementById("creator-chatbots-panel"))m.style.display="none";_.ey(G)})};var a_i=function(){};
_.n(a_i,te);a_i.prototype.resolveCommand=function(m){var G,K,W,L,A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:return G=_.Q(m,E44),((K=G)==null?void 0:K.surface)==="CREATOR_CHATBOT_ENGAGEMENT_PANEL_SURFACE_WATCH_PAGE"?u.yield((0,_.Rm)("NSzT5"),6):(W=G)!=null&&W.externalChannelId?u.yield((0,_.Rm)("NSzT5"),4):u.return();case 4:return L=_.oDG,O=(A=G.forceInstall)!=null?A:!1,u.yield(L(G.externalChannelId,O,G.surface),0);case 6:return c=_.oDG,u.yield(c("",!1,G.surface),7);case 7:return u.return()}})};var Ew=function(m){this.JSC$19219_pageRequestService=m;this.JSC$19219_prefetchCoordinator=YJG()};
_.n(Ew,te);Ew.prototype.resolveCommand=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1){K=_.Q(m,mRK);if((W=K)==null||!W.taskId)throw Error("Mj");L=K.taskId;_.IO(O,2);return O.yield(_.PrD(G.JSC$19219_pageRequestService,m,{},"").then(function(c){if(!c)throw Error("Nj");},function(c){throw Error("Oj`"+c);
}),4)}if(O.nextAddress!=2)return hnW(G.JSC$19219_prefetchCoordinator,L),_.IG(O,0);
A=_.ye(O);Yh(G.JSC$19219_prefetchCoordinator,L,A);_.ey(O)})};
Ew[XF]=[_.WX];var Hd=function(m,G){this.innertubeTransportService=m;this.JSC$19223_commandHandler=G};
_.n(Hd,te);Hd.prototype.resolveCommand=function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1){K=_.Q(m,GMl);if(K.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||K.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")W=K.boolValue?2:1,_.qV.getInstance().setState(W,!0,!0);return A.yield(_.to(G.innertubeTransportService,m),2)}L=A.yieldResult;nDi(G,L);_.ey(A)})};
var nDi=function(m,G){G.actions&&G.actions.forEach(function(K){m.JSC$19223_commandHandler.resolveCommand(K)})};
Hd[XF]=[_.Tv,_.S1];var IZ={},jX=(IZ.addToPlaylistEndpoint=sG(oK),IZ.addToToastAction=sG(jK),IZ.adsControlFlowOpportunityReceivedCommand=sG(Kw),IZ.audioTrackSelectActionCommand=sG(dk),IZ.backgroundAudioPlaybackCommand=sG(ev),IZ.captionLanguageSelectActionCommand=sG(fw),IZ.captionPickerEndpoint=sG(x9),IZ.changeMiniAppPlayStateCommand=sG(nw),IZ.changeTimelyActionVisibilityCommand=sG(IY),IZ.channelCreationFormEndpoint=sG(NH),IZ.clearLocationCommand=sG(aK),IZ.clearUrlParamCommand=sG(bQ),IZ.copyLinkCommand=sG(MH),IZ.copyTextEndpoint=
sG(Ol),IZ.createCommentReplyDialogEndpoint=DmM(F1O),IZ.createPlaylistServiceEndpoint=sG(T8),IZ.dismissDialogEndpoint=sG($9),IZ.dismissPlayerOverlayCommand=sG(X7),IZ.entityUpdateCommand=sG(Y9),IZ.feedbackEndpoint=sG(rk),IZ.getAnswerCommand=sG(YI),IZ.getPaymentsClientTokenCommand=sG(dQ),IZ.getTranscriptEndpoint=sG(kI),IZ.googlePaymentBillingCommand=sG(PS),IZ.googlePaymentPurchaseManagerCommand=sG(yS),IZ.hideCreatorChatbotEngagementPanelCommand=sG(QGu),IZ.hideEngagementPanelEndpoint=sG(sl),IZ.hideSheetCommand=
sG(qH),IZ.hideSnackbarCommand=sG(bI),IZ.insertRichSectionCommand=sG(tJ),IZ.listMutationCommand=sG(F7),IZ.logGtmCommand=sG(DI),IZ.notifyDropdownOptionSelectedCommand=sG(vC),IZ.openAdAllowlistInstructionCommand=sG(_.WC),IZ.openOnePickAddVideoModalCommand=sG(m4),IZ.persistSubscriptionsDisplayPreferencesCommand=sG(AL),IZ.pingingEndpoint=sG(Lw),IZ.playlistEditEndpoint=sG(GW),IZ.playlistVotingRefreshPopupCommand=sG(Kq),IZ.profileCardCommand=sG(G8),IZ.refreshPanelEndpoint=sG(El),IZ.saveImageToDeviceEndpoint=
sG(cC),IZ.scrollToSectionEndpoint=DmM(m7s),IZ.seekToVideoTimestampCommand=sG(Sv),IZ.selectCountryCommand=sG(wQ),IZ.setCookieCommand=sG(gQ),IZ.setLocalStorageCommand=sG($I),IZ.setPrefStorageEntryCommand=sG(cS),IZ.setSettingEndpoint=sG(Hd),IZ.sfvAudioItemPlaybackCommand=sG(RK),IZ.shareImageCommand=sG(rQ),IZ.sharingProviderDataCommand=sG(uI),IZ.showAudioTrackPickerActionCommand=sG(Ul),IZ.showCaptionLanguageSelectActionCommand=sG(z8),IZ.showCreatorChatbotEngagementPanelCommand=sG(a_i),IZ.showDialogCommand=
sG(jv),IZ.showEngagementPanelEndpoint=sG(k9),IZ.showFullscreenPlayerControlsCommand=sG(lQ),IZ.showSheetCommand=sG(Cw),IZ.showSnackbarCommand=sG(vS),IZ.showTransientPlayerScrimOverlayCommand=sG(BC),IZ.submitFormWithValidationFlowCommand=sG(JJ),IZ.talkToRecsDeselectCommand=sG(st),IZ.talkToRecsNextCommand=sG(qx),IZ.talkToRecsSelectCommand=sG(Et),IZ.talkToRecsUpdateTextCommand=sG(HS),IZ.toggleEngagementPanelCommand=sG(Vh),IZ.undoFeedbackEndpoint=sG(pw),IZ.updateEngagementPanelContentCommand=sG(ZI),IZ.updateUrlParamCommand=
sG(Cq),IZ.updateVideoMetadataCommand=sG(Zx),IZ.verifyCommand=sG(NH),IZ.webNativeShareCommand=sG(hL),IZ.webSubmitFormCommand=sG(WS),IZ.ACK_PLAYABLES_3P_DATA_CONSENT=sG(pq),IZ.CANCEL_NAVIGATION=sG(JL),IZ.COPY_SHARE_URL=sG(Nx),IZ.MINI_APP_EXIT_DIALOG_SEEN=sG(tL),IZ.MINI_APP_OPEN_URL=sG(Dx),IZ.REQUEST_MINI_APP_FULLSCREEN=sG(F2),IZ.RESUME_NAVIGATION=sG(QS),IZ.SHARE_PLAYABLE_WITH_HIGH_SCORE=sG(aY),IZ.TELL_US_WHY=sG(uQ),IZ);
_.F("web_enable_prefetching_videos_on_home")&&(jX.prefetchWatchCommand=sG(Ew),jX.registerTasksCommand=sG(uH));_.F("enable_share_panel_navigation_logging_fix_on_web")&&(jX.shareEntityServiceEndpoint=sG(HC));_.F("web_use_flow_state_manager")&&(jX.deleteFlowStepsCommand=sG(U$),jX.flowNextStepCommand=sG(zJ),jX.flowPrevStepCommand=sG(li),jX.getFlowCommand=sG(By),jX.updateFlowCommand=sG(Mu));_.F("enable_ai_companion")&&(jX.updateConversationIdCommand=sG(gk),jX.formDataDecoratorCommand=sG(wk));
var phl=Object.assign({},jX);var bLD={},vD6=(bLD.initialized={priority:10,callback:aUG},bLD);var $K5={},sGD=($K5.initialized={callback:function(m){var G={},K={};uz6().install((G.document_disposed={callback:function(){_.F("finalize_all_timelines")?fqd():w9();VTM("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.q_G();var W=m.injector.resolve(Ru);W.intervalId!==void 0&&(W.intervalId&&_.Fu.cancelJob(W.intervalId),W.intervalId=void 0,--W.currentPartitionIndex,W=bI0(W),W>0&&MSB({mainAppWeb:_.at(),survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));xoC(F$);Qw!=null&&
Qw.flush();CG&&CG.snapshotAndFlush();W=_.g(r0k.values());for(var L=W.next();!L.done;L=W.next())L.value.snapshotAndFlush()}},G),(K.flush_logs={callback:function(){_.Qb()}},K))}},$K5);var qVu={},EDi=(qVu.rendered={priority:0,callback:function(){var m=new zvk;m.increment("STARTED");if(_.E8("LOGGED_IN")&&!_.E8("IS_DBSC",!1)&&_.E8("SERVER_VERSION")!=="test"&&_.E8("SERVER_VERSION")!=="dev"&&!m7M()&&!TDF()){m.increment("EXECUTING");var G=document.createElement("iframe");G.style.display="none";_.g5(G,2,_.MI("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.E8("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(G);m.increment("DONE")}}},
qVu);var HLO={},I_O=(HLO.rendered={callback:function(){YJG().resume()}},HLO);var jGu={acknowledgeChannelTouStrikeCommand:rq(Fd),addToPlaylistServiceEndpoint:rq(nE),addToPlaylistEndpoint:rq(nE),addUpcomingEventReminderEndpoint:rq(eY),browseEndpoint:rq(zLu),channelCreationFormEndpoint:rq(u8),channelCreationServiceEndpoint:rq(hy),claimLegacyYoutubeChannelEndpoint:rq(mA),clearSearchHistoryEndpoint:rq($H),clearWatchHistoryEndpoint:rq(Ce),commerceActionCommand:u_(Rc),createBackstagePostEndpoint:rq(Ut),createBroadcastCommand:rq(fe),createCommentEndpoint:rq(Oj),createCommentReplyEndpoint:rq(gX),
createLiveChatPollEndpoint:rq(xH),createPlaylistServiceEndpoint:rq(bt),crossAccountChannelTransferEndpoint:rq(dX),deleteLiveChatMessageCommand:rq(Xd),deletePlaylistEndpoint:rq(v7),deleteVideoEndpoint:rq(fE),dismissalEndpoint:rq(Qk),feedbackEndpoint:rq(aD),flagEndpoint:rq(Ic),getAccountSwitcherEndpoint:rq(Zv),verifyCommand:rq(RY),getAccountsListInnertubeEndpoint:rq(yk),getCommentsFromInboxCommand:rq(wo),getDownloadActionCommand:rq(hN),getFlowCommand:u_(vD),getKidsBlocklistPickerCommand:rq(je),getNotificationMenuEndpoint:rq(MaO),
getPaymentInstrumentsParamsCommand:rq(TS),getPaymentsClientTokenCommand:u_(Rc),getPdgBuyFlowCommand:rq(ac),getReportFormEndpoint:rq(kp),getSearchInVideoCommand:rq(Zt),getAnswerCommand:rq(VZ),getSurveyCommand:rq(ee),getTranscriptEndpoint:rq(Xy),getPostVideoPreviewEndpoint:rq(lI),decorateMessageEndpoint:rq(zW),likeEndpoint:rq(pe),liveChatActionEndpoint:rq(zT),liveChatEndpoint:rq(Uj),liveChatItemContextMenuEndpoint:rq(SY),liveChatPurchaseMessageEndpoint:rq(l8),liveChatReplayEndpoint:rq(RD),manageLiveChatUserEndpoint:rq(M4),
metadataUpdateCommand:rq(LE),moderateLiveChatEndpoint:rq(TT),modifyChannelNotificationPreferenceEndpoint:rq(Yp),notificationOptOutEndpoint:rq(ro),openSuperStickerBuyFlowCommand:rq(BD),performCommentActionEndpoint:rq(Le),playlistEditEndpoint:rq(sF),playlistEditorEndpoint:rq($p),recordNotificationInteractionsEndpoint:rq(ut),reelWatchEndpoint:rq(qn),refreshPanelEndpoint:rq(JN),removeUpcomingEventReminderEndpoint:rq(mJ),resolveLocationCommand:rq(W7),revealBusinessEmailCommand:rq(i8),searchEndpoint:rq(_.T$G),
sendLiveChatMessageEndpoint:rq(GS),sendLiveChatVoteEndpoint:rq(KE),setSettingEndpoint:rq(Jy),shareEntityServiceEndpoint:u_(ty),sharingProviderDataCommand:rq(yZ),showEngagementPanelEndpoint:rq(Nn),showMoreDrawerCommand:rq(tN),showSheetCommand:rq(Fy),showDialogCommand:rq(Dt),subscribeEndpoint:rq(N4),transcriptSubmitCaptionCorrectionCommand:rq(xp),undoFeedbackEndpoint:rq(ne),unsubscribeEndpoint:rq(Dv),updateBackstagePostEndpoint:rq(Mx),updateCommentEndpoint:rq(YH),updateCommentReplyEndpoint:rq(cD),updateCommentsSettingsEndpoint:rq(rX),
updateCreatorChannelInnertubeCommand:rq(Ke),updateKidsBlacklistEndpoint:rq(CE),updateEngagementPanelContentCommand:rq(QZ),updatePdgFeatureEnablementCommand:rq(oc),updatedMetadataEndpoint:rq(AN),validateChannelHandleCommand:rq(WD),updateChannelPageSettingsEndpoint:rq(GT),verifyAgeEndpoint:rq(b8),watchEndpoint:u_(fq),whitelistEditEndpoint:rq(Se),ypcCancelRecurrenceEndpoint:rq(UF),ypcCompleteTransactionEndpoint:rq(zS),ypcFixInstrumentEndpoint:rq(B7),ypcGetCartEndpoint:rq(lt),ypcGetOffersEndpoint:rq(Mn),
ypcHandleTransactionEndpoint:u_(ml),ypcLogWalletAnalyticDataEndpoint:rq(iH),ypcOffersEndpoint:rq(GR),ypcPauseSubscriptionCommand:rq(KR),ypcRedeemCodeEndpoint:rq(Wd),ypcResumeSubscriptionCommand:rq(LR),ypcUpdateFopEndpoint:rq(B7)},kh={},kdW=(kh.GET_ACCOUNT_MENU=rq(PD),kh.GET_NOTIFICATIONS_MENU=rq(B$q),kh.GET_NOTIFICATIONS_INBOX=rq(go),kh.GET_UNSEEN_NOTIFICATION_COUNT=rq(c7),kh.GET_USER_MENTION_SUGGESTIONS=rq(BS),kh.LOAD_GUIDE=rq(l5W),kh.SUBMIT_FEEDBACK=rq(oD),kh),CR={},Cx6=(CR.CONTINUATION_REQUEST_TYPE_BROWSE=
rq(TW),CR.CONTINUATION_REQUEST_TYPE_SEARCH=rq(P7),CR.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=rq(yh),CR.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=rq(Vk),CR.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=rq(wX),CR.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=rq(Ay),CR.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=rq(H7),CR.CONTINUATION_REQUEST_TYPE_GET_PANEL=rq(pE),CR),Vn6={player:u_(fq),watchNext:rq(PC)},ZLz={player:u_(fq),reelItemWatch:rq(qn),reelWatchSequence:rq(EF)},dKG={watchEndpoint:u_(xI)},PxD=
{commandEndpointMap:jGu,signalEndpointMap:kdW,continuationEndpointMap:Cx6,watchEndpointMap:Vn6,reelWatchEndpointMap:ZLz,streamingEndpointMap:dKG};var yHz,evP,f_q;_.xK6=((evP=(yHz=window).matchMedia)==null?void 0:(f_q=evP.call(yHz,"(prefers-reduced-motion: reduce)"))==null?void 0:f_q.matches)||!document.startViewTransition;var XwW={},SV6={disableAllTransitions:_.xK6,ignoredErrors:(XwW.DOCUMENT_HIDDEN=!0,XwW.WINDOW_SIZE_CHANGED=!0,XwW.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,XwW),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var Rvu=_.nY("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),zv5=function(m){var G=this;this.viewTransitionCoordinator=
m;this.disableTransitionsForUltraHigh=_.F("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=UKq();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.zf("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.F("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.F("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.F("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.zf("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.F("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.Fu.addJob(function(){G.registerRootElement();if(G.isAnyTransitionEnabled){var K=
_.U8("web_page_transition_exit_ms"),W=_.U8("web_page_transition_wait_ms"),L=_.U8("web_page_transition_enter_fast_ms"),A=_.U8("web_page_transition_watch_exit_ms"),O=_.U8("web_page_transition_watch_wait_ms"),c=_.U8("web_page_transition_watch_enter_ms"),u=_.U8("web_page_transition_watch_next_exit_ms"),h=_.U8("web_page_transition_watch_next_wait_ms"),J=_.U8("web_page_transition_watch_next_enter_fast_ms"),N=_.U8("web_page_transition_enter_ms"),D=_.U8("web_page_transition_watch_next_enter_ms");G.enableFasterTransitions&&
G.isUltraHighBucketDevice&&(N=L,D=J);isNaN(K)&&isNaN(W)&&isNaN(N)&&isNaN(A)&&isNaN(O)&&isNaN(c)&&isNaN(u)&&isNaN(h)&&isNaN(D)||!(K=iBv(Rvu,K,W,N,A,O,c,u,h,D))||(W=document.createElement("style"),W.textContent=IOd(K),document.head.appendChild(W))}},8)},UKq=function(){var m=_.Ks.navigator.deviceMemory;
return m>=8||m===void 0?!0:!1};
zv5.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var m={};this.viewTransitionCoordinator.registerElement(document.documentElement,(m.slide="root-slide",m["lockup-to-watch"]="root-lockup-to-watch",m["learning-journey"]="root-learning-journey",m))}};
_.Nml=function(m,G){m.isLockupToWatchTransitionEnabled&&m.isLockupThumbnailRegistrationEnabled&&(m.registeredLockupThumbnail?m.lockupThumbnailRegisteredFromWatchEndpoint?_.nc(new _.cw("Lockup thumbnail registration order is incorrect.")):_.nc(new _.cw("Lockup thumbnail already registered.")):(m.registeredLockupThumbnail=G,_.l_u(m,G)))};
_.l_u=function(m,G){var K={};m.viewTransitionCoordinator.registerElement(G,(K["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",K),!0)};
zv5[XF]=[VJ6];var o_P={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData: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 bXs=["videoPrimaryInfoRenderer","title"],v_F=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var B86;B86=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.MnE=_.P(function(m){m=_.ql(m,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var G=m.data,K=m.playlistData,W=m.expanded,L=m.onExpandClick,A=m.isReadyToResume,O=function(){var J;return!((J=K())==null||!J.contents)},c=function(){var J=K();
return J&&J.totalVideos&&J.currentIndex!==void 0?J.currentIndex+1+" / "+J.totalVideos:""};
m=_.dn(function(){_.Vq(_.xS().resolve(_.pY));return!1});
var u=_.dn(function(){O()&&L&&L()}),h={};
return _.r("ytd-miniplayer-info-bar",{class:_.VO("ytdMiniplayerInfoBarHost",(h.ytdMiniplayerInfoBarHasPlaylistData=O,h)),"on:click":u},_.r("div",{class:"ytdMiniplayerInfoBarContent"},_.r("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":m},_.r(_.Nm,{text:function(){var J=G();var N=K();if(N==null?0:N.contents){var D;J=(D=_.do9(N))==null?void 0:D.title}else J=J==null?void 0:J.miniplayerTitle;return sIG(J)},
noEndpoints:!0,ellipsisTruncate:!0})),_.r("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.r(_.p,{cond:A,then:function(){return _.r(ecX,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:B86})}}),_.r("h1",null,_.r(_.Nm,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var J=G();var N=K();J=A()?{simpleText:_.zq("CONTINUE_WATCHING",void 0,"Continue watching")}:(N==null?0:N.contents)?N.titleText:J==null?void 0:J.miniplayerSubtitle;return sIG(J)},
noEndpoints:!0,ellipsisTruncate:!0})),_.r(_.p,{cond:function(){return!!c()&&!A()},
then:function(){return _.r("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.r("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.r("span",null,c))}}))),_.r(_.p,{cond:O,
then:function(){return _.r("div",{class:"ytdMiniplayerInfoBarExpand"},_.r(_.jd,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(J){L&&(L(),J.stopPropagation())}}},
iconName:function(){return W()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Hg");var T8E;T8E=_.P(function(m){return _.r("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.r(_.jd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:m.onTap}},
iconName:"yt-icons:close"}))},"Ig");
_.mq5=_.P(function(m){m=_.ql(m,{playabilityStatus:void 0,isDisabled:!1,isPictureInPicture:!1});var G=m.size,K=m.playabilityStatus,W=m.isDisabled,L=m.isPictureInPicture,A=_.Q3("div");m=_.g(_.g_(void 0,void 0,"w4RAU"));var O=m.next().value,c=m.next().value;m=_.RC(_.CQ);var u=!1,h=function(){return G().height<=0};
_.$O(function(){var t=G(),a=h(),v=O();v&&!a&&v.setInternalSize(t.width,t.height)},"BHFc2b");
_.nn(function(){var t,a,v;return _.Y(function(I){if(I.nextAddress==1){t=_.xS().resolve(_.pY);a=t.getPlayerElement();if(!t.isMiniplayerActive()||!a||!A.value)return I.return();a.appendTo(A.value);return I.yield(a.getPlayerPromise(),2)}v=I.yieldResult;L()||v.setSizeStyle(!1,!0);c(v);_.ey(I)})});
_.sZ(function(){J()});
_.$O(function(){var t=O();if(t)if(W()){var a=t.getPlayerState();(u=a===-1||a===1||a===3)&&t.pauseVideo()}else J()},"Invykd");
var J=function(){if(u){u=!1;var t;(t=O())==null||t.playVideo()}},N=_.dn(function(){_.Vq(_.xS().resolve(_.pY))}),D={};
return _.r("ytd-miniplayer-player-container",{class:_.VO("ytdMiniplayerPlayerContainerHost",(D.ytdMiniplayerPlayerContainerHidden=h,D.ytdMiniplayerPlayerContainerHostShortsPip=m,D)),style:_.eA({width:function(){return G().width+"px"},
height:function(){return G().height+"px"}})},_.r("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:A}),_.r(_.p,{cond:function(){return!!K()&&!_.lAs(K())},
then:function(){return _.r(aO6,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var t;return((t=K())==null?void 0:t.errorScreen)||null},
status:function(){var t;return((t=K())==null?void 0:t.status)||null}})}}),_.r(_.p,{cond:W,
then:function(){return _.r("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":N},_.r(T8E,{onTap:function(){_.xS().resolve(_.pY).close()}}))}}))},"Mg");var d1G;var eEd=null;var G65=_.P(function(m){var G=m.progressState;var K=m.multiMarkersPlayerBarRenderer;var W=m.progressBarWidth;var L=function(){return S0d(K())},A=function(){return zE9(G())},O=function(){return W()*(G().playedTime/G().videoDuration)};
return _.r("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.r(_.D0,{each:L},function(c,u){return _.r(iSD,{modifiedProps:A,chapters:L,index:u,playedProgressWidth:O,backgroundGradientPosition:function(){var h=A(),J=L(),N=u(),D=O();return(h.playedTime-u5(_.Q(J[N],r1)))/h.playedTime*D}})}))},"Ng"),iSD=_.P(function(m){var G=m.modifiedProps;
var K=m.chapters;var W=m.index;var L=m.playedProgressWidth;var A=m.backgroundGradientPosition;m={};m=_.VO("ytChapteredProgressBarChapteredPlayerBarChapter",(m.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return O().isScrubbing},m.ytChapteredProgressBarHoveredMacroMarker=function(){return O().scrubberHovering},m.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return O().videoPosition==="seen"},m));
var O=function(){return lUd(G(),K(),W())},c=function(){var u=G();
var h=K(),J=W();if(lUd(u,h,J).videoPosition!=="active")u=0;else{var N=u5(_.Q(h[J],r1));u=(u.playedTime-N)/((u5(_.Q(h[J+1],r1))||u.videoDuration)-N)}return u};
return _.r("div",{class:m,style:_.eA({width:function(){var u=G(),h=K(),J=W(),N=_.Q(h[J],r1);h=_.Q(h[J+1],r1);return(h?u5(h)-u5(N):u.videoDuration-u5(N))/u.videoDuration*100+"%"},
"background-color":function(){a:{var u=O();switch(u.videoPosition){case "pending":u=u.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":u=u.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:u=""}}return u},
"background-size":function(){return(BhP(O())?L():"")+"px"},
"background-position-x":function(){return(BhP(O())?A():"")+"px"}})},_.r("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var u=G(),h=K(),J=W();if(lUd(u,h,J).videoPosition==="seen")var N=0;else N=u5(_.Q(h[J],r1)),h=u5(_.Q(h[J+1],r1))||u.videoDuration,u=u.videoDuration*u.percentLoaded,N=h<=u?1:N>=u?0:(u-N)/(h-N);return"width: "+N*100+"%"}}),_.r("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.eA({width:function(){return c()*100+"%"},
"background-size":function(){return(BhP(O(),c())?L():"")+"px"},
"background-position-x":function(){return(BhP(O(),c())?A():"")+"px"}})}))},"Og");var Kf6=function(m,G){G=G===void 0?z3l:G;var K,W=[],L,A=!1;return function(){var O=_.mb.apply(0,arguments);if(A&&K===this&&G(O,W))return L;L=m.apply(this,O);A=!0;K=this;W=O;return L}}(function(m){var G=m.heatMarkers,K=m.minHeightDp===void 0?0:m.minHeightDp,W=m.maxHeightDp===void 0?60:m.maxHeightDp;
var L=L===void 0?!1:L;var A=1E3/G.length;m=[];m.push({x:0,y:100});for(var O=0;O<G.length;O++){var c=void 0,u=((c=_.Q(G[O],wx2))==null?void 0:c.heatMarkerIntensityScoreNormalized)||0;c=(O+.5)*A;u=100-_.YJ(u*100,K/321*100,W/321*100);O!==0||L||m.push({x:0,y:u});m.push({x:c,y:u});O===G.length-1&&m.push({x:1E3,y:u})}m.push({x:1E3,y:100});G="";for(K=0;K<m.length;K++)L=m[K],K===0?L="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(W=ULG(m[K-1],m[K-2],L),A=ULG(L,m[K-1],m[K+1],!0),L=" C "+(W.x.toFixed(1)+","+W.y.toFixed(1)+
" "+A.x.toFixed(1)+","+A.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))),G+=L;return G});var WfD=_.P(function(m){var G=m.progressBarProps;var K=m.config;var W={};m=_.VO("ytHeatSeekerHost",(W.ytHeatSeekerHighContrast=m.highContrast,W));var L=function(){return jIf(K().chapterData)};
return _.r("yt-progress-bar-heatseeker",{class:m,style:function(){var A;return"height: 320px; display: "+(G().isDragging&&((A=L())==null?0:A.heatMarkers)?"block":"none")}},_.r(_.p,{cond:L,
then:function(A){return _.r(_.p,{cond:function(){return A().heatMarkers},
then:function(){return _.r("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.r("path",{d:function(){return Kf6(A())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Pg");var Lfq=_.P(function(m){var G=m.progressBarProps;var K=m.config;m={};m=_.VO("ytProgressBarLineProgressBarLine",(m.ytProgressBarLineProgressBarLineRounded=function(){return K().rounded},m.ytProgressBarLineProgressBarLineBottomInset=function(){return K().position===2},m));
return _.r("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.r("div",{class:m},_.r("div",{class:"ytProgressBarLineProgressBarBackground"}),_.r("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+G().percentLoaded*100+"%"}}),_.r("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var W=G();return"width: "+(W.videoDuration?_.YJ(W.hoveredTime/W.videoDuration,0,1):0)*100+"%"}}),_.r("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+E_o(G())*100+"%"}})))},"Qg");
Lfq.idomCompat=!0;var Ags=_.P(function(m){var G=m.progressBarProps;var K=m.playheadData;var W=m.interpolateDotPosition;var L=m.hidePlayhead;m={};var A=_.VO("ytProgressBarPlayheadProgressBarPlayheadDot",(m.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return G().isDragging},m.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!G().isDragging&&L()},m));
return _.r("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.eA({"margin-left":function(){return HXG(G())*100+"%"},
transform:function(){return"translateX(-"+(W()?HXG(G())*12:6)+"px)"}})},_.r(_.p,{cond:function(){var O;
return(O=_.sQ(K)())==null?void 0:O.playheadImage},
then:function(O){var c={};return _.r("div",{class:_.VO("ytProgressBarPlayheadProgressBarPlayheadCustom",(c.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return G().isDragging},c.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!G().isDragging&&L()},c)),
style:_.eA({"transform-origin":function(){return(W()?HXG(G())*20:10)+"px center"}})},_.r(_.oC,{data:O,
alt:"","aria-hidden":"true"}))},
else:function(){return _.r("div",{class:A,style:_.eA({"transform-origin":function(){return(W()?HXG(G())*12:6)+"px center"}})})}}))},"Rg");
Ags.idomCompat=!0;var ZX=function(m,G,K,W,L,A){this.getProgressBarRect=m;this.updateProgressBarRect=G;this.getFilmstripYPosition=K;this.setFineScrubbingDraggedTime=W;this.updateFilmStripDraggedYDistance=L;this.resetFilmStripYOffset=A;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.yO(this.onThrottledSeek,100,this)},wG6=function(m,G,K){return function(W){m.handleClick(W,G(),K())}},cgE=function(m,G){return function(K){g3W(m,
K,OSO(K),G())}},Ygi=function(m,G){return function(K){g3W(m,K,{x:K.clientX,
y:K.clientY},G())}},uuG=function(m,G,K){return function(W){var L=G(),A=K();
rgW(m,W,OSO(W),L,A,!0);if(A.onTouchMove)A.onTouchMove(L)}},pG6=function(m,G,K){return function(W){hd6(m,W,G(),K())}},JgO=function(m,G){return function(){m.handleMouseLeave(G())}},Dqs=function(m,G,K){return function(){var W=G(),L=K();
NWE(m,W,L);if(L.onTouchEnd)L.onTouchEnd(W)}},trs=function(m,G,K){return function(){var W=G(),L=K();
NWE(m,W,L);if(L.onTouchEnd)L.onTouchEnd(W)}},Ffs=function(m,G,K){return function(){NWE(m,G(),K())}},QR6=function(m){return function(G){if(G.keyCode===39||G.keyCode===38){var K,W;
(K=m())==null||(W=K.playerApi)==null||W.seekBy(5,void 0,void 0,72)}else if(G.keyCode===37||G.keyCode===40){var L,A;(L=m())==null||(A=L.playerApi)==null||A.seekBy(-5,void 0,void 0,71)}}},aDW=function(m,G,K){return function(W){!K().disableScrubbing&&m.startPosition&&hd6(m,W,G(),K())}},o3G=function(m,G,K){return function(){if(!K().disableScrubbing)if(m.startPosition){var W=G(),L=K();
NWE(m,G(),K());if(L.onTouchEnd)L.onTouchEnd(W)}else G().setState({isDragging:!1})}},OSO=function(m){m=m.touches[0];
return{x:m.clientX,y:m.clientY}},hd6=function(m,G,K,W){if(G.buttons!==1){if(G.movementX||G.movementY)G.preventDefault(),G.stopPropagation(),m=n35(m,K,G.clientX),K.setState({isHovering:!0,
hoveredTime:m*K.videoDuration})}else bSD(K),rgW(m,G,{x:G.clientX,y:G.clientY},K,W,!1)};
ZX.prototype.handleMouseLeave=function(m){bSD(m)};
var bSD=function(m){m.isHovering&&m.setState({isHovering:!1,hoveredTime:0})},g3W=function(m,G,K,W){m.startPosition||(m.startPosition=K,m.updateProgressBarRect(),m.controlsWereVisibleBeforeDragging=W.controlsVisible,G.stopPropagation(),_.F("medium_progress_bar_modification")||G.preventDefault())},rgW=function(m,G,K,W,L,A){if(m.startPosition)if(A&&L.isInlinePlayback&&m.startPosition&&!m.hasDraggedTheMinimumDistance&&Math.abs(K.y-m.startPosition.y)>Math.abs(K.x-m.startPosition.x))NWE(m,W,L);
else if(G.preventDefault(),G.stopPropagation(),W.videoDuration&&(m.startPosition&&!m.hasDraggedTheMinimumDistance&&(m.hasDraggedTheMinimumDistance=Math.abs(K.x-m.startPosition.x)>=1),L.enableFineScrubbing&&(m.startPosition&&(m.isDraggedForFineScrubbing=-(K.y-m.startPosition.y)>=60),!m.startPosition||K.y>=m.startPosition.y||(W.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:M$J(W.draggedTime,W,L.chapterData)}),m.setFineScrubbingDraggedTime(W.draggedTime),m.updateFilmStripDraggedYDistance(m.startPosition.y,
K.y,W))),m.hasDraggedTheMinimumDistance)){G=n35(m,W,K.x);if(m.isDraggedForFineScrubbing){var O;(O=W.playerApi)==null||O.pauseVideo();W.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:W.draggedTime,filmStripXDistance:M$J(G*W.videoDuration,W,L.chapterData)})}L.enableFineScrubbing&&(!L.enableFineScrubbing||m.getFilmstripYPosition(W)<68)||W.setState({draggedTime:G*W.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:m.controlsWereVisibleBeforeDragging});var c;(c=
L.cancelAutohideControlsFn)==null||c.call(L)}},NWE=function(m,G,K){var W=K.enableFineScrubbing&&G.fineScrubbingActiveState!=="off";
if(G.isDragging||W){W={isDragging:!1,playedTime:G.draggedTime,controlsVisible:m.controlsWereVisibleBeforeDragging};K.enableFineScrubbing&&G.fineScrubbingActiveState!=="on"&&(m.resetFilmStripYOffset(),W.fineScrubbingActiveState="off");var L=L===void 0?eEd:L;var A=_.gU(0);if(A&&L){var O=Math.round(G.playedTime*1E3),c=Math.round(G.draggedTime*1E3);O>2147483647||c>2147483647||_.bd(A,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(O),endMediaTimeMs:String(c),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}G.setState(W);
m.seekThrottle.fire(G.draggedTime,G,7);_.F("mweb_new_progress_bar_play_on_seek")&&m.resumeVideo(G);K.unmuteOnSeek&&(K=G.playerApi,G.volumeMuted&&(K==null||K.unMute()))}else G.setState({controlsVisible:!G.controlsVisible}),(A=K.triggerAutohideControlsAfterDelayFn)==null||A.call(K);m.startPosition=null;m.hasDraggedTheMinimumDistance=!1;m.isDraggedForFineScrubbing=!1;m.controlsWereVisibleBeforeDragging=!1};
ZX.prototype.handleClick=function(m,G,K){this.updateProgressBarRect();m.stopPropagation();m=n35(this,G,m.clientX)*G.videoDuration;G.setState({playedTime:m});if(G.playerState!==2){var W;(W=K.triggerAutohideControlsAfterDelayFn)==null||W.call(K)}this.seekThrottle.fire(m,G,7)};
var n35=function(m,G,K){m=m.getProgressBarRect(G);return _.YJ(0,(K-m.left)/m.width,1)};
ZX.prototype.resumeVideo=function(m){if(m.draggedTime<m.videoDuration){var G;(G=m.playerApi)==null||G.playVideo()}};
ZX.prototype.onThrottledSeek=function(m,G,K){if(G=G.playerApi){var W;if((W=G.getVideoData())==null?0:W.isLive)W=this.getProgressState(G),m+=(W==null?void 0:W.seekableStart)||0;G.seekTo(m,void 0,void 0,void 0,K)}};
ZX.prototype.getProgressState=function(m){var G=m==null?void 0:m.getPresentingPlayerType();return m==null?void 0:m.getProgressState(G)};var sRW,$qW,qgO,HSs,v3D,IDE,jRu,k6O,Css;sRW=_.P(function(m){var G=m.progressBarProps;var K=m.config;var W=m.progressBarWidthPx;var L=m.chapterData;var A=KvS(G,function(){return K().isShortsPage}),O=function(){return!G().isHovering&&!K().isShortsPage};
m={};var c=_.VO("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(m.ytPlayerStoryboardHostMwebShorts=function(){return K().isShortsPage&&!1},m));
return _.r("yt-player-storyboard",null,_.r(_.p,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.r(_.p,{cond:A,then:function(u){return _.r(_.p,{cond:O,then:function(){return _.r("div",{class:c,"aria-hidden":"true"},_.r(v3D,{props:G,config:K,isBigboard:!0,chapterData:L}))},
else:function(){return _.r($qW,{props:G,frame:u,config:K,progressBarWidthPx:W,chapterData:L})}})}})}}))},"Sg");
_.E3P=_.P(function(m){var G=m.progressBarProps;var K=KvS(G,m.isShortsPage);return _.r("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.r(_.p,{cond:function(){return G().isDragging||G().isHovering},
then:function(){return _.r(_.p,{cond:K,then:function(W){return _.r(qgO,{frame:W,props:G,isBigboard:!0})}})}}))},"Tg");
$qW=_.P(function(m){var G=m.props;var K=m.frame;var W=m.config;var L=m.progressBarWidthPx;m=m.chapterData;var A={};A=_.VO("ytPlayerStoryboardHost",(A.ytPlayerStoryboardHostMwebShorts=function(){return W().isShortsPage&&!1},A.ytPlayerStoryboardHostInlinePlayer=function(){return W().isInlinePlayer},A.ytPlayerStoryboardHostFadeIn=function(){return W().useFadeInAnimation},A));
return _.r("div",{class:A,"aria-hidden":"true",style:function(){var O=G(),c=ThV(K()),u=L();O=mdo(O)/O.videoDuration;var h=u*O,J=c/2+6;c=u-(c/2+6);return"left: "+(h<=J?J/u*100:h>=c?c/u*100:O*100)+"%"}},_.r(_.p,{cond:function(){var O=G();
return!(W().isShortsPage&&O.videoDuration<15)},
then:function(){return _.r(qgO,{frame:K,props:G,isBigboard:!1})}}),_.r(v3D,{props:G,
config:W,isBigboard:!1,chapterData:m}))},"Ug");
qgO=_.P(function(m){var G=m.frame;var K=m.props;var W=m.isBigboard;var L=function(){var c,u;return(u=(c=K().playerApi)==null?void 0:c.getVideoContentRect())!=null?u:{width:0,height:0}},A=function(){return ThV(G())},O=function(){var c=G();
return c?c.height/c.rows:0};
m={};m=_.VO((m.ytPlayerStoryboardBigboardImageWrapper=W,m.ytPlayerStoryboardStoryboardImageWrapper=function(){return!W()},m));
return _.r("div",{class:m,style:function(){return"width: "+(W()?L().width:A())+"px; height: "+(W()?L().height:O())+"px;"}},_.r(HSs,{frame:G,
storyboardWidth:A,storyboardHeight:O,storyboardScale:function(){return(W()?L().width:A())/A()}}))},"Vg");
HSs=_.P(function(m){var G=m.frame;var K=m.storyboardWidth;var W=m.storyboardHeight;var L=m.storyboardScale;var A=function(){var O=G().row,c=G().column,u=K(),h=W(),J=L();return{left:-c*u*J,top:-O*h*J}};
return _.r("img",{src:function(){return G().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+A().left+"px; top: "+A().top+"px; width: "+G().width*L()+"px; height: "+G().height*L()+"px;"}})},"Wg");
v3D=_.P(function(m){var G=m.props;var K=m.config;var W=m.isBigboard;var L=m.chapterData;m={};m=_.VO("ytPlayerStoryboardMetadata",(m.ytPlayerStoryboardMetadataBigboard=W,m));return _.r("div",{class:m},_.r(_.p,{cond:W,then:function(){return _.r(_.zL,null,_.r(IDE,{props:G,config:K}),_.r(_.p,{cond:function(){a:{var A=G();var O=K(),c=L(),u;if((O==null?0:O.activeChapter)&&((u=_.Q(O==null?void 0:O.activeChapter,r1))==null?0:u.title))A=!0;else{O=_.g(kC6(c));for(O=O.next();!O.done;O=O.next()){A=(O=_.Q(O.value,
Ok0))&&is2(A,O);break a}A=!1}}return A},
then:function(){return _.r(jRu,{props:G,config:K,isBigboard:!0,chapterData:L})}}))},
else:function(){return _.r(_.zL,null,_.r(jRu,{props:G,config:K,isBigboard:!0,chapterData:L}),_.r(IDE,{props:G,config:K}))}}))},"Xg");
IDE=_.P(function(m){var G=m.props;var K=m.config;m={};m=_.VO("ytPlayerStoryboardTimestamp",(m.ytPlayerStoryboardTimestampShorts=function(){return K().isShortsPage},m.ytPlayerStoryboardTimestampIsHovering=function(){return G().isHovering||K().isShortsPage&&!0},m));
return _.r("div",{class:m},_.r(_.zL,null,function(){return _.G9o(mdo(G()))}))},"Yg");
jRu=_.P(function(m){var G=m.props;var K=m.config;var W=m.isBigboard;var L=m.chapterData;m={};W=_.VO("ytPlayerStoryboardTitle",(m.ytPlayerStoryboardTitleBigboard=W,m));return _.r("div",{class:W},_.r(_.p,{cond:function(){return!K().isShortsPage},
then:function(){return _.r(k6O,{props:G,activeChapter:function(){return K().activeChapter},
chapterData:L})}}))},"Zg");
k6O=_.P(function(m){var G=m.props;var K=m.activeChapter;var W=m.chapterData;return _.r(_.zL,null,_.r(_.D0,{each:function(){return kC6(W())},
keyBy:"INDEX"},function(L){return _.r(_.zL,null,_.r(_.p,{cond:function(){return _.Q(L(),Ok0)&&is2(G(),_.Q(L(),Ok0))},
then:function(){return _.r(Css,{timedMarker:function(){return _.Q(L(),Ok0)}})}}))}),_.r(_.p,{cond:function(){var L;
return K()&&((L=_.Q(K(),r1))==null?void 0:L.title)},
then:function(L){return _.r(_.Nm,{text:L,noPreWrap:!0})}}))},"$g");
Css=_.P(function(m){var G=m.timedMarker;return _.r(_.zL,null,_.r("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.r(_.fN,{icon:function(){return G().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.r(_.Nm,{text:function(){return G().label},
noPreWrap:!0}))},"ah");_.VrD=_.P(function(m){var G=m.progressBarProps;var K=m.playheadData;var W=m.config;m=_.Q3("yt-progress-bar");var L=_.Q3("div"),A=_.Q3("div"),O=_.g(_.g_({width:0,left:0},void 0,"XjZjde")),c=O.next().value,u=O.next().value,h=function(){A.value&&u(A.value.getBoundingClientRect())},J=function(){c().width<=0&&h();
return c()};
_.P$("resize",h);var N=new ZX(J,function(){},function(){return 0},function(){},function(){},function(){}),D=function(){return G()};
O=_.g(_.g_(!1,void 0,"uZlOJc"));var t=O.next().value,a=O.next().value;O=_.dn(function(){a(!0);W().position===2?setTimeout(function(){h()},100):h()});
var v=_.dn(function(){a(!1);JgO(N,D)()}),I=_.dn(function(eo){(W().doSeekOnClick||_.F("mweb_progress_bar_seek_on_mouse_click")&&typeof PointerEvent!=="undefined"&&eo instanceof PointerEvent&&eo.pointerType==="mouse")&&wG6(N,D,W)(eo);
return!1}),Z=_.dn(function(eo){cgE(N,D)(eo);
return!1}),k=_.dn(function(eo){Ygi(N,D)(eo);
return!1}),z=_.dn(function(eo){uuG(N,D,W)(eo);
return!1}),X=_.dn(function(eo){pG6(N,D,W)(eo);
return!1}),f=_.dn(function(){Dqs(N,D,W)();
return!1}),U=_.dn(function(){trs(N,D,W)();
return!1}),l=_.dn(function(){Ffs(N,D,W)();
return!1}),Ls=_.dn(function(eo){QR6(D)(eo);
return!1});
_.P$("mousemove",aDW(N,D,W));_.P$("mouseup",o3G(N,D,W));_.bX(function(){fU9(L.value);a(!1);h();o3G(N,D,W)()});
var gd={};gd=_.VO("ytPlayerProgressBarHost",function(){return W().className},(gd.ytPlayerProgressBarHostReadOnly=function(){return W().disableScrubbing},gd.ytPlayerProgressBarHostHidden=function(){return W().hideProgressBar&&!t()},gd.ytPlayerProgressBarHostLowerPlayer=function(){return W().position===0},gd.ytPlayerProgressBarHostBottomEdge=function(){return W().position===1},gd.ytPlayerProgressBarHostBottomInset=function(){return W().position===2},gd.ytPlayerProgressBarHostCustom=function(){return W().position===
3},gd));
var Qf={},JV=_.VO("ytPlayerProgressBarBackground",(Qf.ytPlayerProgressBarBackgroundHide=function(){return W().position===2&&!t()&&!G().isDragging},Qf));
Qf={};Qf=_.VO("ytPlayerProgressBarDragContainer",(Qf.ytPlayerProgressBarDragContainerBottomEdge=function(){return W().position===1},Qf));
var DF={};DF=_.VO("ytPlayerProgressBarProgressBar",(DF.ytPlayerProgressBarProgressBarInset=function(){return W().position===2},DF.ytPlayerProgressBarProgressBarInsetMinimized=function(){return W().position===2&&!t()&&!G().isDragging},DF));
var kG=function(){return Math.floor(E_o(G())*100)};
return _.r("yt-progress-bar",{el:m,class:gd},_.r(_.p,{cond:function(){return W().position===2},
then:function(){return _.r("div",{class:JV})}}),_.r("div",{el:L,
"on:click":I,"on:touchstart":Z,"on:touchmove":z,"on:mouseenter":O,"on:mousedown":k,"on:mouseleave":v,"on:mousemove":X,"on:mouseup":U,"on:touchend":f,"on:touchcancel":l,"on:keydown":Ls,class:Qf,role:"slider","aria-valuenow":kG,"aria-valuetext":function(){return kG()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return G().videoDuration},
draggable:_.F("web_progress_bar_draggable")?"false":"true",tabindex:0,"aria-label":_.zq("SEEK_SLIDER")},_.r("div",{el:A,class:DF},_.r(WfD,{progressBarProps:G,config:W,highContrast:function(){return!!W().isInlinePlayback}}),_.r(_.p,{cond:function(){return W().chapterData&&Cbs(W().chapterData)},
then:function(){return _.r(G65,{progressState:G,multiMarkersPlayerBarRenderer:function(){return W().chapterData},
progressBarWidth:function(){return c().width}})},
else:function(){return _.r(Lfq,{progressBarProps:G,config:W})}}),_.r(Ags,{progressBarProps:G,
playheadData:K,interpolateDotPosition:function(){return W().position!==2},
hidePlayhead:function(){return W().playheadDotBehavior===1&&!t()}}))),_.r(sRW,{progressBarProps:G,
config:function(){return{activeChapter:U1d(G(),W().chapterData),getProgressBarWidthPx:function(){return J().width},
isShortsPage:!!W().isShortsPage,isInlinePlayer:!!W().isInlinePlayback,useFadeInAnimation:!!W().isInlinePlayback}},
progressBarWidthPx:function(){return c().width},
chapterData:function(){return W().chapterData}}))},"bh");
_.VrD.idomCompat=!0;Object.assign({},_.V$f(),{setState:function(){},
domMeasurements:{},appApi:_.q09(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var ZSG;
_.dqP=_.P(function(){var m,G=(m=_.hA(WvK().playerApi))!=null?m:void 0;m=_.g(_.g_(!1,void 0,"Z9NQ1b"));var K=m.next().value,W=m.next().value;m=_.g(_.g_(!1,void 0,"HoVJXe"));var L=m.next().value,A=m.next().value;m=_.g(_.g_(!1,void 0,"DWCY3"));var O=m.next().value,c=m.next().value;m=_.g(_.g_(!1,void 0,"g4C2Zd"));var u=m.next().value,h=m.next().value;m=_.g(_.g_(0,void 0,"lmVfFb"));var J=m.next().value,N=m.next().value;m=_.g(_.g_(0,void 0,"mFLbzb"));var D=m.next().value,t=m.next().value;m=_.g(_.g_(!1,void 0,
"hQN4Wb"));var a=m.next().value,v=m.next().value;m=_.g(_.g_(0,void 0,"WWU0fb"));var I=m.next().value,Z=m.next().value;m=_.g(_.g_(0,void 0,"MJ7LMd"));var k=m.next().value,z=m.next().value;m=_.g(_.g_("",void 0,"hnomOe"));var X=m.next().value,f=m.next().value;m=_.g(_.g_(-1,void 0,"ARe3pf"));var U=m.next().value,l=m.next().value,Ls=_.pT(function(){var gd={controlsVisible:K(),isOverlayHidden:L(),shouldWaitToHideControls:O(),isDragging:u(),isHovering:a(),videoDuration:I(),playedTime:k(),videoId:X(),draggedTime:D(),
hoveredTime:J(),playerState:U()};return Object.assign({},_.V$f(),gd,{domMeasurements:{},setState:function(Qf){Qf.controlsVisible!==void 0&&W(Qf.controlsVisible);Qf.isOverlayHidden!==void 0&&A(Qf.isOverlayHidden);Qf.shouldWaitToHideControls!==void 0&&c(Qf.shouldWaitToHideControls);Qf.isDragging!==void 0&&h(Qf.isDragging);Qf.isHovering!==void 0&&v(Qf.isHovering);Qf.draggedTime!==void 0&&t(Qf.draggedTime);Qf.hoveredTime!==void 0&&N(Qf.hoveredTime);Qf.videoDuration!==void 0&&Z(Qf.videoDuration);Qf.playedTime!==
void 0&&z(Qf.playedTime);Qf.videoId!==void 0&&f(Qf.videoId);Qf.playerState!==void 0&&l(Qf.playerState)},
appApi:_.q09(),playerApi:G})},void 0,"Au4PIf");
_.nn(function(){G==null||G.addEventListener("onVideoProgress",yPf(Ls));G==null||G.addEventListener("onVideoDataChange",Pbo(Ls));G==null||G.addEventListener("onStateChange",ZXP(Ls))});
_.sZ(function(){if(G==null?0:G.isReady())G==null||G.removeEventListener("onVideoProgress",yPf(Ls)),G==null||G.removeEventListener("onVideoDataChange",Pbo(Ls)),G==null||G.removeEventListener("onStateChange",ZXP(Ls))});
return _.r("desktop-shorts-player-controls",null,_.r(ZSG,{playerControlsProps:Ls}))},"dh");
ZSG=_.P(function(m){var G=m.playerControlsProps;return _.r("div",{class:"desktopShortsPlayerControlsHost"},_.r(_.VrD,{progressBarProps:G,config:function(){return{isShortsPage:!0,hideProgressBar:G().videoDuration<30&&G().playerState!==2&&!G().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"eh");_.Ps6=_.P(function(m){function G(gd){gd!==0||N()?gd>50&&(N()||!t())?(D(!1),a(!0)):gd<=50&&(N()||t())&&(D(!1),a(!1)):D(!0)}
function K(gd,Qf){var JV;return _.Y(function(DF){if(DF.nextAddress==1)return DF.yield(_.Pp(),2);JV=DF.yieldResult;Qf&&JV?(JV.unMute(!0),gd&&(AV4(gd,JV.getVolume()),I(JV.getVolume()))):JV&&(JV.mute(!0),gd&&AV4(gd,0));_.ey(DF)})}
function W(gd){var Qf,JV;return _.Y(function(DF){if(DF.nextAddress==1)return DF.yield(_.Pp(),2);Qf=DF.yieldResult;JV=50;Qf&&(JV=Qf.getVolume(),Qf.isMuted()?AV4(gd,0):AV4(gd,JV));I(JV);_.ey(DF)})}
var L=m.orientation;m=_.Q3("volume-controls");var A=_.Q3("button"),O=_.aP("input"),c=_.g(_.g_(!1,void 0,"JO5fn")),u=c.next().value,h=c.next().value,J=_.g(_.g_(!1,void 0,"zcMjvb"));c=J.next().value;J=J.next().value;var N=c,D=J;J=_.g(_.g_(!0,void 0,"sF9zj"));c=J.next().value;J=J.next().value;var t=c,a=J;c=_.g(_.g_(50,void 0,"Da2bOd"));var v=c.next().value,I=c.next().value;c=_.pT(function(){var gd=N();return _.F("web_shorts_keyboard_enable_mute_shortcut")?gd?_.zq("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):
_.zq("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):gd?_.zq("UNMUTE_VOLUME",void 0,"Unmute"):_.zq("MUTE_VOLUME",void 0,"Mute")},void 0,"RUjxdf");
J=_.pT(function(){var gd=N(),Qf=t();return{sources:[{clientResource:{imageName:gd?"VOLUME_OFF_FILLED":Qf?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"EZ2qZd");
var Z=_.pT(function(){var gd=v();return N()?gd+"% volume muted":gd+"% volume"},void 0,"ZJcDqc"),k=_.pT(function(){return L()==="vertical_down"},void 0,"OJU9Hf");
_.bX(function(){function gd(){h(!0)}
function Qf(){h(!1)}
O&&O.value&&(O.value.addEventListener("focus",gd),O.value.addEventListener("focusout",Qf),W(O.value).then(function(){G(Number(wJS(O.value)))}));
A&&A.value&&(A.value.addEventListener("focus",gd),A.value.addEventListener("focusout",Qf));_.sZ(function(){var JV;O==null||(JV=O.value)==null||JV.removeEventListener("focus",gd);var DF;O==null||(DF=O.value)==null||DF.removeEventListener("focusout",Qf);var kG;A==null||(kG=A.value)==null||kG.removeEventListener("focus",gd);var eo;A==null||(eo=A.value)==null||eo.removeEventListener("focusout",Qf)})});
var z=_.dn(function(){if(O&&O.value){var gd=Number(wJS(O.value));LvB(gd);I(gd);O.value.style.setProperty("--gradient-percent",gd+"%");G(gd)}return!1}),X=_.dn(function(){h(!0)}),f=_.dn(function(){O&&O.value&&(K(O.value,N()),D(!N()));
return!1}),U={},l={},Ls={};
return _.r("volume-controls",{"on:pointerleave":_.dn(function(){h(!1)}),
class:_.VO("ytdVolumeControlsHost",(U.ytdVolumeControlsHostVertical=k,U.ytdVolumeControlsHostExpanded=function(){return u()},U)),
el:m},_.r(_.p,{cond:function(){return!k()},
then:function(){var gd={};return _.r("div",{class:_.VO("ytdVolumeControlsBackgroundScrim",(gd.ytdVolumeControlsBackgroundScrimExpanded=u,gd))})}}),_.r("div",{class:_.VO((l.ytdVolumeControlsMuteIconButtonContainer=k,l))},_.r("button",{"aria-label":c,
title:c,el:A,"on:click":f,"on:pointerenter":X,class:"ytdVolumeControlsMuteIconButton"},J?_.r(_.oC,{data:J,alt:c,className:"ytdVolumeControlsMuteIcon"}):null)),_.r("div",{class:_.VO("ytdVolumeControlsSliderContainer",(Ls.ytdVolumeControlsSliderContainerExpanded=u,Ls.ytdVolumeControlsSliderContainerVertical=k,Ls.ytdVolumeControlsSliderContainerVerticalDown=k,Ls.ytdVolumeControlsSliderContainerVerticalExpanded=function(){return u()&&k()},Ls))},_.r("input",{"aria-label":_.zq("VOLUME"),
title:_.zq("VOLUME"),el:O,"on:input":z,type:"range",class:"ytdVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":v,"aria-valuetext":Z,"aria-valuemin":0,"aria-valuemax":100})))},"fh");var ygO=_.P(function(m){var G=m.data;var K=m.overlayDensity;m={};return _.r("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.r(_.z$,{data:function(){return G().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(W){var L=W.data;
return _.r(_.cr,{data:function(){return(K==null?void 0:K())===1?Object.assign({},L(),{avatar:{avatarViewModel:Object.assign({},_.Q(L().avatar,_.YA),{avatarImageSize:"AVATAR_SIZE_M"})}}):L()}})}}),_.r(_.z$,{data:function(){return G().avatarStackViewModel}},{avatarStackViewModel:function(W){return _.r(_.YU,{data:W.data})}}),_.r(_.Nm,{className:_.VO("ytReelChannelBarViewModelChannelName",(m.ytReelChannelBarViewModelChannelNameLarge=function(){return(K==null?void 0:K())===1},m)),
text:function(){return G().channelName},
linkInheritColor:!0,userInput:!0}),_.r("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.r(_.z$,{data:function(){return G().subscribeButtonViewModel}},{subscribeButtonViewModel:function(W){var L=W.data;
return _.r(_.Ox,{data:function(){return(K==null?void 0:K())===1?Object.assign({},L(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},L().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):L()},
isOverlay:!1})},
buttonViewModel:_.kP})),_.r("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.r(_.z$,{data:function(){var W,L;return(L=_.Q((W=G())==null?void 0:W.sponsorButtonViewModel,F_0))==null?void 0:L.sponsorButton}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"gh");var edD=_.P(function(m){var G=function(){var L;return((L=m.overlayDensity)==null?void 0:L.call(m))===1},K=function(){return G()?22:16},W={};
return _.r("yt-reel-multi-format-link-view-model",{class:_.VO("ytReelMultiFormatLinkViewModelHost",(W.ytReelMultiFormatLinkViewModelHostTall=!0,W.ytReelMultiFormatLinkViewModelHostLarge=function(){return G()},W))},_.r(_.qm,{ariaLabel:function(){return m.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return m.data().command}},_.r("h3",{class:function(){return G()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.r(_.p,{cond:function(){return m.data().icon},
then:function(L){return _.r(_.oC,{data:L,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:K})}}),_.r(_.Nm,{text:function(){return m.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"hh");
edD.idomCompat=!0;var fDO=_.P(function(m){var G=m.data;var K=m.overlayDensity;var W=m.extractOverlay;var L=_.Q3("yt-shorts-suggested-action-view-model");m=_.g(_.g_(!1,void 0,"S60Hzc"));var A=m.next().value,O=m.next().value;m=_.g(_.g_(!1,void 0,"O76chf"));var c=m.next().value,u=m.next().value,h=function(){return G().isMultiLineSa},J=_.S5(EpG,function(){var l,Ls;
return(Ls=(l=G().toggleableContent)==null?void 0:l.entityKey)!=null?Ls:""}),N=function(){var l,Ls,gd;
return(gd=G().toggleableContent)!=null&&gd.entityKey?(Ls=(l=J())==null?void 0:l.value)!=null?Ls:!1:!1},D=function(){var l,Ls,gd,Qf,JV,DF,kG,eo,xG,Ji,rK;
return G().toggleableContent?N()?(l=G().toggleableContent)==null?void 0:l.toggledData:(Ls=G().toggleableContent)==null?void 0:Ls.untoggledData:{primaryText:(eo=(gd=G().defaultContent)==null?void 0:gd.primaryText)!=null?eo:G().text,secondaryText:(Qf=G().defaultContent)==null?void 0:Qf.secondaryText,onTapCommand:(xG=(JV=G().defaultContent)==null?void 0:JV.onTapCommand)!=null?xG:G().onTapCommand,icon:(Ji=(DF=G().defaultContent)==null?void 0:DF.icon)!=null?Ji:G().icon,image:(rK=(kG=G().defaultContent)==
null?void 0:kG.image)!=null?rK:G().image}},t=function(){return h()?G().trailingTapTarget:void 0},a=function(l,Ls){return function(){return A()?Ls:l}},v=function(){return{leadingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(K==null?void 0:K())===1?a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:a("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon"),leadingImage:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingImage","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingImage")}};
m={};m=_.VO((m.ytShortsSuggestedActionViewModelStaticHost=function(){return!h()},m.ytShortsSuggestedActionViewModelDynamicHost=h,m.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return h()&&c()},m.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return h()&&!c()},m.ytShortsSuggestedActionViewModelExtractOverlay=function(){return W==null?void 0:W()},m));
_.bX(function(){if(h()){var l=0,Ls;if((Ls=G().animationParams)==null?0:Ls.shouldExpand){var gd,Qf;l=((Qf=(gd=G().animationParams)==null?void 0:gd.expansionDelaySecs)!=null?Qf:0)*1E3}var JV,DF=((JV=G().animationParams)==null?0:JV.shouldExpand)?setTimeout(function(){O(!0)},l):void 0,kG,eo;
l=((kG=G().animationParams)==null?0:kG.visibilityDelaySecs)?((eo=G().animationParams)==null?NaN:eo.visibilityDelaySecs)*1E3:0;var xG=setTimeout(function(){u(!0)},l);
_.sZ(function(){DF&&clearTimeout(DF);clearTimeout(xG)})}});
var I=function(l){_.h$(l,Object.assign({},{form:{element:L.value}}))},Z=_.dn(function(){var l,Ls=(l=D())==null?void 0:l.onTapCommand;
Ls&&I(Ls)}),k=_.dn(function(){var l,Ls;
if(l=(Ls=t())==null?void 0:Ls.onTapCommand)return I(l),!1}),z=_.eA({"vertical-align":"bottom",
"border-radius":function(){var l;return h()?((l=G().defaultContent)==null?0:l.isCircleImage)?"50%":"4px":"0px"},
width:function(){var l,Ls,gd;return h()&&((l=G().defaultContent)==null?0:l.imageSize)?((gd=(Ls=G().defaultContent)==null?void 0:Ls.imageSize)!=null?gd:24)+"px":null},
height:function(){var l,Ls,gd;return h()&&((l=G().defaultContent)==null?0:l.imageSize)?((gd=(Ls=G().defaultContent)==null?void 0:Ls.imageSize)!=null?gd:24)+"px":null}}),X=function(){return h()?v().leadingIcon():"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"},f=function(){return h()?v().leadingImage():"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},U={};
return _.r("yt-shorts-suggested-action-view-model",{class:m,el:L},_.r("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.r("button",{class:_.VO(function(){return h()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var l;
return(l=G().useFullRoundedBorder)!=null&&l?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!t()&&h()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":h()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var l;
return(l=G().disableFixedHeight)!=null&&l?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(U.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(K==null?void 0:K())===1},U.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return W==null?void 0:W()},U)),
"on:click":Z},_.r(_.EH,{model:{color:4}}),_.r("div",{class:_.VO(function(){return h()?v().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.r(_.p,{cond:function(){var l;
return(l=D())==null?void 0:l.image},
then:function(l){return _.r(_.oC,{data:l,alt:"",className:f,contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:z})}}),_.r(_.p,{cond:function(){var l,Ls;
return(l=D())==null?void 0:(Ls=l.icon)==null?void 0:Ls.iconType},
then:function(l){return _.r(_.fN,{icon:l,active:N,className:X})}})),_.r("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.r(_.p,{cond:function(){var l;
return(l=D())==null?void 0:l.primaryText},
then:function(l){var Ls={};return _.r("div",{class:_.VO("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(Ls.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(K==null?void 0:K())===1},Ls))},_.r(_.Nm,{text:l}))}}),_.r(_.p,{cond:function(){var l;
return(l=D())==null?void 0:l.secondaryText},
then:function(l){return _.r("div",{class:function(){return v().secondaryText()}},_.r(_.Nm,{text:l}))}}))),_.r(_.p,{cond:t,
then:function(l){return _.r("div",{class:_.VO(function(){return v().trailingSection()},function(){var Ls,gd;
return(W==null?void 0:W())&&((gd=(Ls=v()).trailingSectionExtractOverlay)==null?void 0:gd.call(Ls))||""}),
"aria-label":function(){var Ls;return(Ls=l().a11yLabel)!=null?Ls:""},
"on:click":k,role:"button",tabindex:0},_.r(_.EH,{model:{color:4}}),_.r(_.fN,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"ih");var xqD=_.P(function(m){var G=m.data;var K=m.overlayDensity;var W=_.Q3("yt-shorts-video-title-view-model");m=_.dn(function(O){if(_.A3(_.LQ(O),W.value,["A".toString()]))return!1;(O=G().truncatedTextOnTapCommand)&&_.h$(O);return!1});
var L={},A={};return _.r("yt-shorts-video-title-view-model",{el:W,class:_.VO("ytShortsVideoTitleViewModelHost",(L.ytShortsVideoTitleViewModelHostClickable=function(){return!!G().truncatedTextOnTapCommand},L)),
"on:click":m},_.r("h2",{class:_.VO("ytShortsVideoTitleViewModelShortsVideoTitle",(A.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(K==null?void 0:K())===1},A.ytShortsVideoTitleViewModelShortsVideoTitleOneLine=function(){return _.F("enable_shorts_declutter_ui")},A.ytShortsVideoTitleViewModelShortsVideoTitleDecluttered=function(){return _.F("enable_desktop_small_title_on_immersive_shorts")},A))},_.r(_.Nm,{text:function(){return G().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(K==null?void 0:K())===1}})))},"jh");_.XGW=_.P(function(m){var G=m.data;var K=m.overlayDensity;var W=m.extractOverlay;var L=function(){return(K==null?void 0:K())===1},A=function(){return _.F("enable_shorts_declutter_ui")?"ytReelMetapanelViewModelMetapanelItemDecluttered":"ytReelMetapanelViewModelMetapanelItem"};
return _.r("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.r(_.z$,{data:function(){return G().metadataItems}},{badgeViewModel:function(O){O=O.data;
return _.r("div",{class:_.VO(function(){return L()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.r(_.vr,{data:O}))},
playerDisclosureViewModel:function(O){O=O.data;return _.r("div",{class:_.VO(function(){return L()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.r(_.qe6,{data:O,
extractOverlay:W}))},
shortsSuggestedActionViewModel:function(O){O=O.data;return _.r("div",{class:_.VO(function(){return L()?"ytReelMetapanelViewModelExpansiveBlock":A()})},_.r(fDO,{data:O,
overlayDensity:K,extractOverlay:W}))},
reelChannelBarViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO(A(),(c.ytReelMetapanelViewModelExpansive=function(){return L()},c))},_.r(ygO,{data:O,
overlayDensity:K}))},
reelMultiFormatLinkViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO(A(),(c.ytReelMetapanelViewModelExpansive=function(){return L()},c))},_.r(edD,{data:O,
overlayDensity:K}))},
shortsVideoTitleViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO(A(),(c.ytReelMetapanelViewModelExpansive=function(){return L()},c))},_.r(xqD,{data:O,
overlayDensity:K}))},
reelSoundMetadataViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO(A(),(c.ytReelMetapanelViewModelExpansive=function(){return L()},c))},_.r(_.x2O,{data:O,
overlayDensity:K}))},
toggleButtonViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO(A(),(c.ytReelMetapanelViewModelExpansive=function(){return L()},c))},_.r(_.Gx,{data:O}))}}))},"kh");var Sg5=_.P(function(m){var G=_.ql(m,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),K=G.size,W=G.onTap,L=G.disabled,A=G.tooltipText;return _.r("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.r(_.jd,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:K(),disabled:L(),tooltipText:A(),onTap:W}},
iconName:m.iconType}))},"lh"),RdG=_.P(function(m){function G(J){J.stopPropagation();
J.code==="ArrowUp"?(J.preventDefault(),Ydo(c.value)):J.code==="ArrowDown"?(J.preventDefault(),rVo(c.value)):J.code==="KeyM"?gGK():(J.code==="KeyK"||J.code==="Space")&&Osi(u())}
var K=_.ql(m,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});m=K.previousButtonDisabled;var W=K.nextButtonDisabled,L=K.data,A=K.playabilityStatus,O=K.previewThumbnail,c=_.Q3("ytd-shorts-miniplayer-overlay"),u=_.RC(_.and),h;_.nn(function(){(h=_.hI(c.value))&&h.addEventListener("keydown",G)});
_.sZ(function(){var J;(J=h)==null||J.removeEventListener("keydown",G)});
K=function(){var J,N;var D=_.Q((J=L())==null?void 0:(N=J.reelPlayerOverlayRenderer)==null?void 0:N.buttonBar,pi2);if(D){var t;J=Object.assign({},D,{buttonViewModels:(t=D.buttonViewModels)==null?void 0:t.filter(cVK)})}else J=void 0;return J};
return _.r("ytd-shorts-miniplayer-overlay",{el:c,class:"ytdShortsMiniplayerOverlayHost"},_.r("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.eA({"background-image":function(){var J=O();return J?'url("'+_.Eh(J.thumbnails)+'")':""}})}),_.r("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.r("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.r(Sg5,{iconType:function(){var J=u();
return J===2||J===-1||J===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Osi(u())},
tooltipText:function(){var J=u();return J===1||J===3?_.zq("PLAYER_LABEL_PAUSE"):_.zq("PLAYER_LABEL_PLAY")}}),_.r(_.Ps6,{orientation:"horizontal_right"})),_.r("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.r(Sg5,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:m,onTap:function(){Ydo(c.value)},
tooltipText:_.zq("PREVIOUS_VIDEO_LABEL")}),_.r(Sg5,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:W,onTap:function(){rVo(c.value)},
tooltipText:_.zq("NEXT_VIDEO_LABEL")}),_.F("web_shorts_pip_like_button")?_.r(_.p,{cond:K,then:function(J){return _.r("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.r(_.QrR,{data:J,buttonShapeOverrideables:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"}}))}}):null),_.r("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.r(_.p,{cond:function(){var J,N;
return _.Q((J=L())==null?void 0:(N=J.reelPlayerOverlayRenderer)==null?void 0:N.metapanel,Jx4)},
then:function(J){return _.r("div",{class:_.VO("ytdShortsMiniplayerOverlayInteractive")},_.r(_.XGW,{data:J}))}})),_.r("div",{class:_.VO("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var J;return!((J=L())==null||!J.adsOverlay)||A()&&!zqd(A())}},_.r("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.r(_.dqP,null)))),_.r(_.p,{cond:function(){var J=L(),N,D;
J=_.Q(J==null?void 0:(N=J.adsOverlay)==null?void 0:(D=N.fulfillmentContent)==null?void 0:D.fulfilledLayout,Rli);return _.Q(J==null?void 0:J.renderingContent,Tik)},
then:function(J){return _.r("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.r($YX,{data:J}))}}))},"nh");var uPK=_.P(function(){var m=_.g(_.g_(new _.qj(NaN,NaN),void 0,"ejTaF")),G=m.next().value,K=m.next().value;m=_.g(_.g_(!1,void 0,"aTA69e"));var W=m.next().value,L=m.next().value,A=_.g(_.g_(!1,void 0,"OsC2Ib"));m=A.next().value;var O=A.next().value;A=_.xS().resolve(_.pY).miniplayerPropSignalMap[0];var c=A.data,u=A.shortsData,h=A.nextButtonDisabled,J=A.shortsPreviewThumbnail,N=A.previousButtonDisabled,D=A.externalPlaylistData,t=A.playabilityStatus,a=A.isDisabled,v=A.playerVe,I=A.closeVe;A=_.RC(_.CQ);
_.Cc("yt-pip-window-resized",function(X){K(X)});
_.Cc("yt-activate-pip-miniplayer",function(){return _.Y(function(X){O(!0);_.ey(X)})});
var Z=function(){var X;return!((X=D())==null||!X.contents)&&W()},k=function(){var X=G(),f=!!c(),U=Z();
X=X.clone();f&&(X.height-=76);U&&(X.height-=285);return X},z=function(){L(!W())};
_.$O(function(){var X=v(),f=_.gU(11),U=_.wU(11);f&&U&&X&&(_.tW(f,U,X),U=I())&&(_.Fv(f,X,[U]),_.a7(f,[U]))},"h5qKie");
return _.r("ytd-pip-container",{class:"ytdPipContainerHost"},_.r(_.p,{cond:m,then:function(){return _.r(_.mq5,{isDisabled:a,playabilityStatus:t,size:k,isPictureInPicture:!0})}}),_.r(_.p,{cond:c,
then:function(){return _.r(_.MnE,{data:c,expanded:W,onExpandClick:z,playlistData:D})}}),_.r(_.p,{cond:Z,
then:function(){return _.r("div",{class:"ytdPipContainerPlaylistPanel"},_.r(_.iZq,{data:D,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.r(_.p,{cond:A,
then:function(){return _.r(RdG,{data:u,nextButtonDisabled:h,previousButtonDisabled:N,playabilityStatus:t,previewThumbnail:J})}}))},"ph");var dy=function(m,G,K){var W=this;this.pipController=m;this.JSC$19355_clientRoot=G;this.JSC$19355_pageRequestService=K;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=n_f();this.JSC$19355_watchPipEnabled=_.F("web_watch_pip");this.watchPipManualOnlyEnabled=_.F("web_watch_pip_manual");this.shortsPipEnabled=_.F("web_shorts_pip");this.JSC$19355_watchWhileEnabled=_.F("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;_.BB(_.$R(),NtG,function(L){W.isSingleOptionSurveyActive=L});
this.JSC$19355_onPlayerPlayVideo=this.JSC$19355_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);_.jN(_.Im.getInstance(),this.miniplayerServiceActionMap,this.JSC$19355_clientRoot);m.pictureInPictureSupported()&&_.Fx("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},XKk,Km6,TW5,WmD,Lm6,tTo,AuD,w$G,gz6,icz;
dy.prototype.handleMediaSessionPipActivation=function(m){var G=this,K,W;return _.Y(function(L){_.U7().mediaSessionPipActivation=!0;K=_.xS().resolve(_.$g);if(K.isOnWatch()&&G.JSC$19355_watchPipEnabled){if(G.watchPipManualOnlyEnabled&&((W=m)==null?void 0:W.enterPictureInPictureReason)!=="useraction")return zj(),L.return();_.U7().watchPipActivation=!0;_.UqD(G,K.data);return L.jumpTo(0)}return K.isOnShorts()&&G.shortsPipEnabled?(_.U7().shortsPipActivation=!0,_.zdW(G),L.jumpTo(0)):!G.isMiniplayerActive()||
!G.JSC$19355_watchPipEnabled||G.watchWhileMode||G.watchPipManualOnlyEnabled?L.jumpTo(0):L.yield(lDq(G),0)})};
var lDq=function(m){var G,K,W,L;return _.Y(function(A){if(A.nextAddress==1)return G=!m.miniplayerToPipMode,K=m.playerElement,W=m.miniplayerData,L=m.watchResponse,A.yield(m.deactivate(),2);if(A.nextAddress!=3)return G?(_.U7().mediaSessionPipActivation=!0,_.U7().watchPipActivation=!0):_.U7().miniplayerButtonActivation=!0,A.yield(m.activate(K,W,L),3);m.miniplayerToPipMode=G;_.ey(A)})};
dy.prototype.onDownloadedVideoDeleted=function(m){var G,K=_.Q((G=this.miniplayerData)==null?void 0:G.watchEndpoint,_.QQ),W,L;K&&((W=this.watchResponse)==null?void 0:(L=W.playerResponse)==null?void 0:L.offlineState)!==void 0&&(G=K.videoId)&&m&&G===m&&this.close()};
dy.prototype.onShowMiniplayerCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D;return _.Y(function(t){switch(t.nextAddress){case 1:return K=_.Q(m,Tp4),L=(W=K)==null?void 0:W.miniplayerCommand,A=_.Q(L,_.QQ),L&&A&&!G.active?t.yield(_.W3.getInstance(),2):t.return();case 2:return O=t.yieldResult,t.yield((c=O)==null?void 0:c.get("yt-miniplayer-shown-video-id"),3);case 3:u=t.yieldResult;h=A.videoId;if(!h||u===h)return t.return();J=_.xS().resolve(_.$g);if(J.isOnWatch())return _.nc(Error("Xj")),t.return();
N={channelItem:{externalId:btoa(h)}};G.readyToResumeVe=_.dq(121253,void 0,void 0,N);_.U7().showMiniplayerCommandActivation=!0;return t.yield(_.F6R(G,L,!0),4);case 4:return G.active&&(_.Pd(G,{readyToResumeVe:G.readyToResumeVe,isReadyToResume:!0}),G.isReadyToResume=!0),t.yield((D=O)==null?void 0:D.set("yt-miniplayer-shown-video-id",A.videoId),5);case 5:G.readyToResumeVe=void 0,_.ey(t)}})};
dy.prototype.init=function(m){this.miniplayerEl?_.nc(new _.cw("MiniplayerService already initialized.")):this.miniplayerEl=m};
dy.prototype.isInitialized=function(){var m=!!this.miniplayerEl;m||_.nc(new _.cw("MiniplayerService used before initialized."));return m};
_.UqD=function(m,G){if(m.isInitialized()){var K=_.$1M(G.response,G.playerResponse),W=_.xS().resolve(_.$g).getPlayerFromWatch();_.U7().currentEndpoint=K.watchEndpoint||null;m.activate(W,K,G)}};
_.zdW=function(m){if(m.isInitialized()){var G=_.xS().resolve(_.$g).getPlayerFromShorts();m.activate(G)}};
XKk=function(m,G){var K;(K=!m.isInitialized())||(K=_.xS().resolve(_.$g).isOnWatch()&&m.watchPipMode,K=!(m.isMiniplayerActive()&&(_.U7().userActivation||_.U7().lockupActivation||K)));if(K)return!1;BWi(m,G)?_.Vq(m):tTo(m,G);return m.watchPipMode?!_.xS().resolve(_.$g).isOnWatch():!0};
dy.prototype.isMiniplayerActive=function(){return this.active};
var BWi=function(m,G){var K;G=(K=_.Q(G,_.QQ))==null?void 0:K.videoId;var W,L;m=(L=_.Q((W=m.miniplayerData)==null?void 0:W.watchEndpoint,_.QQ))==null?void 0:L.videoId;return G!=null&&G===m};
dy.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Zw(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.dU(this.miniplayerEl,"yt-navigate-home-action"))};
_.F6R=function(m,G,K,W){K=K===void 0?!1:K;var L,A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:if(m.active){u.jumpTo(2);break}L=_.xS().resolve(_.$g);if(O=(A=m.playerElement)!=null?A:L.getPlayerFromWatch()){u.jumpTo(3);break}return u.yield(_.xS().resolve(_.kg),4);case 4:O=L.getPlayerFromWatch();case 3:if(!O){_.nc(Error("Zj"));u.jumpTo(2);break}return u.yield(m.activate(O,W),2);case 2:return m.active?u.yield(tTo(m,G,K),7):u.return();case 7:(c=m.getPlayerElement())==null||c.focusOnPlayer(),
_.ey(u)}})};
dy.prototype.activate=function(m,G,K){var W=this,L,A,O,c,u,h,J,N,D;return _.Y(function(t){switch(t.nextAddress){case 1:if(!W.isInitialized())return t.return();if(!m)return _.nc(Error("Zj")),t.return();if(_.nFC()||W.isMiniplayerActive())var a=!0;else a=_.U7().watchPipActivation||_.U7().watchWhileActivation,_.xS().resolve(_.$g).isOnWatch()&&!a?(_.nc(new _.cw("miniplayer activated on watch page")),a=!0):a=_.U7().watchWhileActivation?W.userDeactivatedWatchWhile||!!document.pictureInPictureElement||s0d():
!1;if(a)return zj(),t.return();L=_.U7().mediaSessionPipActivation;A=_.U7().shortsPipActivation;O=_.U7().watchPipActivation;u=(c=_.U7().watchWhileActivation)||O;h=O||A;if(!W.pictureInPictureEnabled()||!h){t.jumpTo(2);break}return t.yield(Mr6(W,L),3);case 3:if(!t.yieldResult)return _.nc(Error("Yj")),zj(),t.return();case 2:return W.setActive(!0),W.watchResponse=K,W.playerElement=m,W.updateMiniplayerData(G),t.yield(TW5(W,m),4);case 4:if(!W.active)return _.nc(new _.cw("miniplayer deactivated during activation")),
W.removePlayerListeners(),t.return();a=_.xS().resolve(_.NQ);a.addEventListener("yt-navigate",_.xC(W,W.onPlaylistNavigate));a.addEventListener("yt-playlist-data-updated",_.xC(W,W.JSC$19355_onPlaylistDataUpdated));W.JSC$19355_onPlaylistDataUpdated();zj();W.JSC$19355_watchWhileEnabled&&_.mFz(W,c);W.pictureInPictureEnabled()&&W.shortsPipEnabled&&(W.shortsPipMode=A,_.$R().dispatch(rhB(W.shortsPipMode)));W.pictureInPictureEnabled()&&W.JSC$19355_watchPipEnabled&&(W.watchPipMode=O,!W.JSC$19355_watchPipEnabled||
W.watchPipManualOnlyEnabled&&!(_.qso()&&_.aF9("Chromium")>=142)||W.watchPipManualOnlyEnabled||_.HvF(W.handleMediaSessionPipActivation));W.player&&(J=W.player.getPlayerState(),N=J===1,_.$R().dispatch(ay2(J)),_.PH(W.miniplayerEl,"yt-miniplayer-play-state-changed",[N]),_.U7().isVideoPlaying=N);_.PH(W.miniplayerEl,"yt-miniplayer-endpoint-changed");icz(W);_.Gi6(W);if(W.shortsPipMode||W.watchPipMode)t=t.yield(_.dU(W.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{a=t.yield;var v=_.dU(W.miniplayerEl,
"yt-activate-miniplayer",[u])[0];t=a.call(t,v,6)}return t;case 6:if(W.watchResponse){a=W.getScreenLayer();v=_.gU(0);var I=mVv(0);v&&I&&(_.cH(v,I,a),a===0&&MPd(void 0,0))}Km6(W);WmD(W,!0);(D=W.getPlayerElement())==null||D.focusOnPlayer();_.ey(t)}})};
dy.prototype.updateMiniplayerData=function(m){this.miniplayerData=m;_.Pd(this,{data:m})};
_.Gi6=function(m){var G,K,W=((G=m.miniplayerData)==null?void 0:(K=G.miniplayerRenderer)==null?void 0:K.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";G=m.watchWhileMode||m.watchPipMode?W&&!_.xS().resolve(_.$g).isOnWatch():W;_.Pd(m,{isDisabled:G});var L,A;K=_.Q((L=m.miniplayerData)==null?void 0:(A=L.miniplayerRenderer)==null?void 0:A.minimizedEndpoint,_.BM);G&&K&&_.xS().resolve(_.Lk).openSheet({openPopupActionCommand:{openPopupAction:K}},m.miniplayerEl)};
Km6=function(m){if(m.watchResponse&&!Lm6(m)){var G,K=(G=m.watchResponse.playerResponse)==null?void 0:G.trackingParams;K&&(_.Pd(m,{expandVe:_.dq(35989),closeVe:_.dq(34699),readyToResumeCloseVe:_.dq(131070),repositionVe:_.dq(226204),resizeVe:_.dq(226205)}),_.Pd(m,{playerVe:_.m5(K)}))}};
TW5=function(m,G){return _.Y(function(K){if(K.nextAddress==1)return G.preparePlayer(),K.yield(G.getPlayerPromise(),2);m.player=K.yieldResult;m.player&&(m.player.addEventListener("onPlayVideo",m.JSC$19355_onPlayerPlayVideo),m.player.addEventListener("onCloseMiniplayer",m.onPlayerCloseMiniplayer),m.player.addEventListener("onExpandMiniplayer",m.onPlayerExpandMiniplayer),m.player.addEventListener("onStateChange",m.onPlayerStateChange));_.ey(K)})};
_.w=dy.prototype;_.w.JSC$19355_onPlayerPlayVideo=function(m){var G=m.sessionData&&"autonav"in m.sessionData,K;m.sessionData&&m.sessionData.itct&&(K=m.sessionData.itct);var W=m.watchEndpoint;G=W&&G?_.BfG(W,K):_.EG(m.videoId,m.listId||void 0,K);m.sessionData&&_.nJ(_.Q(G.commandMetadata,_.RQ).url,m.sessionData);tTo(this,G)};
_.w.onPlayerExpandMiniplayer=function(){_.Vq(this)};
_.w.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.w.onPlayerStateChange=function(){if(this.player){var m=this.player.getPlayerState(),G=m===1;_.$R().dispatch(ay2(m));_.$R().dispatch(_.buX(m));_.PH(this.miniplayerEl,"yt-miniplayer-play-state-changed",[G]);_.U7().isVideoPlaying=G;if(m===0){G=!_.qV.getInstance().isAutoplaySetExplicitly();var K,W,L,A,O,c,u=(K=this.watchResponse.response)==null?void 0:(W=K.contents)==null?void 0:(L=W.twoColumnWatchNextResults)==null?void 0:(A=L.autoplay)==null?void 0:(O=A.autoplay)==null?void 0:(c=O.autoplayExplicitChoiceDialogRenderer)==
null?void 0:c.confirmDialogRenderer;G&&u&&this.player.setAutonavState(1)}m===0&&this.watchWhileMode&&this.deactivate()}};
_.w.onPlaylistNavigate=function(m,G){var K=this,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1){if(!_.Q(G.endpoint,_.QQ))return J.return();_.U7().currentEndpoint=G.endpoint;_.PH(K.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.xS().resolve(_.$g).isOnWatch()&&(K.watchWhileMode||K.watchPipMode))return J.return();m.stopPropagation();(A=(L=_.Q((W=G.endpoint)==null?void 0:W.commandMetadata,_.RQ))==null?void 0:L.url)&&G.tempData&&!_.Y2.isEmpty(G.tempData)&&_.nJ(A,G.tempData);O={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};c=new bMK(function(){return K.getPlayerElement()},O,{layer:K.getScreenLayer()});
u=function(N){c.processChunk({endpoint:G.endpoint,data:N})};
AuD(K);K.miniplayerFetchRequest=w$G(K,G.endpoint,u);_.IO(J,2);return J.yield(K.miniplayerFetchRequest,4)}if(J.nextAddress!=2)return h=J.yieldResult,gz6(K,h),_.IG(J,0);_.ye(J);_.ey(J)})};
_.w.JSC$19355_onPlaylistDataUpdated=function(){var m=_.xS().resolve(_.NQ).getPlaylistData();this.hasPlaylistData=!!m;_.Pd(this,{externalPlaylistData:m||{}})};
_.w.close=function(m){if(this.isInitialized())if(m){if(!((this.watchWhileMode||this.watchPipMode)&&_.xS().resolve(_.$g).isOnWatch()||this.shortsPipMode)){var G;(G=this.getPlayerElement())==null||G.stop()}this.deactivate()}else _.an().closeMiniplayer(this.miniplayerEl)};
_.w.deactivate=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1){if(!G.isInitialized()||!G.active)return O.return();G.setActive(!1);AuD(G);(K=!!m&&BWi(G,m))&&G.isSingleOptionSurveyActive&&_.dU(G.miniplayerEl,"yt-show-watch-page-survey",[G.isSingleOptionSurveyActive]);return O.yield(OcG(G),2)}if(O.nextAddress!=3){WmD(G,!1);G.isReadyToResume=!1;G.watchResponse=void 0;G.updateMiniplayerData(void 0);G.shortsPipMode&&(G.shortsPipMode=!1,_.$R().dispatch(rhB(G.shortsPipMode)),tJD(G.pipController),
(W=G.player)==null||W.setInternalSize(NaN,NaN));G.watchPipMode&&(G.watchPipMode=!1,tJD(G.pipController));(L=G.watchWhileMode)&&_.mFz(G,!1);G.removePlayerListeners();var c=_.xS().resolve(_.NQ);c.removeEventListener("yt-navigate",_.xC(G,G.onPlaylistNavigate));c.removeEventListener("yt-playlist-data-updated",_.xC(G,G.JSC$19355_onPlaylistDataUpdated));_.U7().currentEndpoint=null;_.PH(G.miniplayerEl,"yt-miniplayer-endpoint-changed");G.playerElement=null;zj();if(G.shortsPipMode||G.watchPipMode)O=O.jumpTo(3);
else{c=O.yield;var u=_.dU(G.miniplayerEl,"yt-deactivate-miniplayer",[K,L])[0];O=c.call(O,u,3)}return O}(A=G.player)==null||A.setInternalSize(NaN,NaN);G.player=null;_.ey(O)})};
var OcG=function(m){var G;return _.Y(function(K){G=_.xS().resolve(_.$g);return m.shortsPipMode?K.yield(G.movePlayerToShorts(m.playerElement),0):K.yield(G.movePlayerToWatch(m.playerElement),0)})};
dy.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$19355_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
dy.prototype.setActive=function(m){this.active=m;this.isSingleOptionSurveyActive?_.dU(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.dU(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.$R().dispatch(_.kt({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.mFz=function(m,G){m.watchWhileMode=G;_.Pd(m,{watchWhile:G})};
WmD=function(m,G){if(!Lm6(m))if(m.shortsPipMode||m.watchPipMode){var K;(K=m.player)==null||K.setDocumentPictureInPicture(G)}else{var W;(W=m.player)==null||W.setMinimized(G)}};
Lm6=function(m){return m.watchWhileMode&&_.F("kevlar_watch_while_counterfactual")};
_.Vq=function(m){var G;return _.Y(function(K){switch(K.nextAddress){case 1:if(!m.isInitialized())return K.return();_.IO(K,2);return K.yield(m.miniplayerFetchRequest,4);case 4:_.IG(K,3);break;case 2:_.ye(K);case 3:m.watchResponse&&m.miniplayerData&&m.miniplayerData.watchEndpoint?(G={url:m.watchResponse.url,endpoint:m.miniplayerData.watchEndpoint,data:m.watchResponse,miniplayer:!0},_.Zw(m.miniplayerEl,"yt-navigate-cache",G)):m.miniplayerData&&m.miniplayerData.watchEndpoint&&_.Zw(m.miniplayerEl,"yt-navigate",
{endpoint:m.miniplayerData.watchEndpoint}),_.ey(K)}})};
tTo=function(m,G,K){var W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){if(BWi(m,G))return c.return();_.U7().currentEndpoint=G;_.PH(m.miniplayerEl,"yt-miniplayer-endpoint-changed");_.PH(m.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.U7().isVideoPlaying=!1;W={clientParams:{miniplayer:!0,autoSaveToQueue:!K}};L=new bMK(function(){return m.getPlayerElement()},W,{layer:m.getScreenLayer(),
parentLayer:0},void 0,m.readyToResumeVe);A=function(u){var h,J,N=Object.assign({},(h=u.playerResponse)==null?void 0:(J=h.playerConfig)==null?void 0:J.playbackStartConfig,{startPaused:!0}),D;K&&((D=u.playerResponse)==null?0:D.playerConfig)&&(u.playerResponse.playerConfig.playbackStartConfig=N);L.processChunk({endpoint:G,data:u})};
AuD(m);m.miniplayerFetchRequest=w$G(m,G,A);_.IO(c,2);return c.yield(m.miniplayerFetchRequest,4)}if(c.nextAddress!=2)return O=c.yieldResult,gz6(m,O),_.IG(c,0);_.ye(c);_.ey(c)})};
dy.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
AuD=function(m){m.miniplayerFetchRequest&&(m.miniplayerFetchRequest.cancel&&m.miniplayerFetchRequest.cancel("Active request obsolete"),m.miniplayerFetchRequest=null)};
w$G=function(m,G,K){var W,L=(W=_.Q(G.commandMetadata,_.RQ))==null?void 0:W.url,A;W=!L||_.Zk("disable_miniplayer_tempdata")?{}:(A=PuM(L))!=null?A:{};return Db(m.JSC$19355_pageRequestService,G,W,window.location.href,"watch",function(O,c){K(c)},function(O){return O!==m.miniplayerFetchRequest})};
gz6=function(m,G){var K;_.Y(function(W){if(!G)return W.return();m.watchResponse=G;Km6(m);icz(m);K=_.$1M(G.response,G.playerResponse);if(m.isMiniplayerActive()){G.response&&(m.playerElement.watchNextData=G.response);var L=_.Y2.getValueByKeys.apply(_.Y2,[G].concat(_.Bz(C3K)));_.Y2.getValueByKeys.apply(_.Y2,[G].concat(_.Bz(yhi)))&&L&&_.xS().resolve(_.NQ).setAutoplayRenderer(L);if(L)if(_.F("kevlar_is_pupi_enabled")){var A,O,c,u,h,J=((A=G.response)==null?0:(O=A.playerOverlays)==null?0:(c=O.playerOverlayRenderer)==
null?0:(u=c.autonavToggle)==null?0:(h=u.autoplaySwitchButtonRenderer)==null?0:h.enabled)?2:1;_.qV.getInstance().setState(J,!1,!1)}else A=gVP()?2:1,(J=m.player)==null||J.setAutonavState(A);m.updateMiniplayerData(K);_.Gi6(m)}_.ey(W)})};
icz=function(m){var G,K,W=(G=m.watchResponse)==null?void 0:(K=G.playerResponse)==null?void 0:K.playabilityStatus,L;G=W==null?void 0:(L=W.miniplayer)==null?void 0:L.miniplayerRenderer;(G==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&G.minimizedEndpoint&&_.yQ(m.miniplayerEl,[G.minimizedEndpoint]);_.Pd(m,{playabilityStatus:W})};
_.Pd=function(m,G){(0,m.miniplayerPropSignalMap[1])(G)};
dy.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var m;return this.playerElement?this.playerElement:(m=_.VL(this.miniplayerEl).querySelector("#player-container"))==null?void 0:m.firstElementChild};
dy.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var Mr6=function(m,G){G=G===void 0?!1:G;var K,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1){if(!m.pictureInPictureSupported()||!pJ4()&&!G)return u.return(!1);K=cuq(m);W=K.width;L=K.height;return u.yield(m.pipController.openWindow({width:W,height:L}),2)}A=u.yieldResult;O=m.pipController.getWindow();if(!O||!A)return u.return(!1);O.document.body.style.overflow="hidden";c=hGo(O);FEu(m.pipController,function(){Yrz(m);c()});
return u.return(!0)})},cuq=function(m){var G=_.U7().shortsPipActivation,K,W;
m=G?.5625:(W=(K=m.player)==null?void 0:K.getVideoAspectRatio())!=null?W:16/9;K=Math.min(window.innerWidth,window.innerHeight)/2;G=G?0:76;return m>1?new _.qj(K,G+K/m):new _.qj(K*m,G+K)},Yrz=function(m){var G;
_.Y(function(K){G=_.xS().resolve(_.$g);return G.isOnWatch()&&m.watchPipMode||G.isOnShorts()&&m.shortsPipMode?K.yield(m.deactivate(),0):m.miniplayerToPipMode?K.yield(lDq(m),0):m.watchPipMode?K.yield(_.Vq(m),0):K.jumpTo(0)})};
dy.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.JSC$19355_watchPipEnabled||this.shortsPipEnabled)};
_.e_.Object.defineProperties(dy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
dy[XF]=[Q2D,PR4,_.WX];var ru6="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(" "),
uxs="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(" "),hD6="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
p$W="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Juq=function(m,G,K){_.Lt.call(this);this.store=m;this.panelController=G;this.pageContentExtractor=K;this.isInitialized=!1};
_.n(Juq,_.Lt);
Juq.prototype.init=function(m){var G=this;this.isInitialized||(this.isInitialized=!0,this.environment=m!=null?m:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",this.pageSubtype=_.DE.currentPageSubTypeSelector(this.store.getState()),m=_.BB(this.store,_.DE.currentPageSubTypeSelector,function(K){a:if(_.NCP(G))switch(K){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":case "your-courses":case "playables":case "report-history":var W=!0;break a;default:W=!1}else W=!1;W&&G.panelController.hidePanel({identifier:"PAai_companion"});
G.pageSubtype!==K&&(G.pageSubtype=K)}),this.addOnDisposeCallback(m))};
_.sbz=function(m,G){if(_.NCP(m))switch(G){case "watch":var K,W;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(K=_.yo())==null?void 0:(W=K.getVideoData())==null?void 0:W.video_id};case "search":var L,A,O;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(A=(L=m.pageContentExtractor)==null?void 0:A_z(L))!=null?A:[],entityId:(O=(new URLSearchParams(window.location.search)).get("search_query"))!=null?O:void 0};case "companion-canvas":var c,u;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(u=(c=
m.pageContentExtractor)==null?void 0:A_z(c))!=null?u:[]};default:var h,J;m={videoIds:(J=(h=m.pageContentExtractor)==null?void 0:A_z(h))!=null?J:[]};return _.F("enable_ai_companion_default_page_context")?m:void 0}};
_.NCP=function(m){return m.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
Juq[XF]=[_.wR,_.Wx,_.fn(w4z)];var DFq=_.P(function(m){return _.r("yt-common-mark-view-model",{class:"ytCommonMarkViewModelHost"},_.r(_.ah,{className:m.className,text:function(){return m.data().text||""},
wrapCodeBlocks:m.shouldWrapCodeBlock}))},"rh");_.tNi=_.P(function(m){return _.r("yt-ai-companion-attachment-view-model",{el:_.aC(_.On(function(){return m.data().rendererContext})),
class:_.VO("ytAiCompanionAttachmentViewModelHost",m.className)},_.r("div",{class:"ytAiCompanionAttachmentViewModelTitleContainer"},_.r(_.p,{cond:function(){return m.data().title},
then:function(G){return _.r("h3",{class:"ytAiCompanionAttachmentViewModelTitleHeading",title:function(){return G().content}},_.r(_.Nm,{text:G}))}}),_.r(_.p,{cond:function(){return _.NB(m.data().trailingTitleIcon)},
then:function(G){return _.r("div",{class:"ytAiCompanionAttachmentViewModelTitleTrailingIcon"},_.r(_.oC,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0}))}})),_.r(_.p,{cond:function(){return m.data().description},
then:function(G){return _.r("div",{class:"ytAiCompanionAttachmentViewModelDescription"},_.r(_.Nm,{text:G}))}}),_.r(_.p,{cond:function(){return m.data().bottomItem},
then:function(G){return _.r("div",{class:"ytAiCompanionAttachmentViewModelBottomItem"},_.r(_.z$,{data:G},{tableViewModel:wV2}))}}))},"sh");_.FmD=_.P(function(m){return _.r("yt-channel-attribution-view-model",{class:_.VO("ytChannelAttributionViewModelHost",m.className)},_.r("div",{class:"ytChannelAttributionViewModelUpper"},_.r(_.z$,{data:function(){return m.data().avatar}},{decoratedAvatarViewModel:_.cr}),_.r("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.r(_.Nm,{text:function(){return m.data().title}}))),_.r("div",{class:"ytChannelAttributionViewModelBottom"},_.r(_.Nm,{text:function(){return m.data().subtitle}})))},"th");var Qm6=_.P(function(m){var G=_.g(_.g_(!1,void 0,"MFRKRb")),K=G.next().value,W=G.next().value,L=function(){return m.data().activeRenderer},A=function(){return m.data().inactiveRenderer};
return _.r("yt-channel-disclosure-view-model",{"on:mouseleave":_.dn(function(){W(!1)}),
"on:mouseover":_.dn(function(){W(!0)}),
class:_.VO("ytChannelDisclosureViewModelHost",m.className)},_.r(_.p,{cond:function(){return K()},
then:function(){return _.r(_.z$,{data:L},{channelAttributionViewModel:_.FmD})},
else:function(){return _.r(_.z$,{data:A},{decoratedAvatarViewModel:_.cr})}}))},"uh");var aCi=null;var oz6={},nzG=(oz6.initialized={priority:10,callback:function(m){var G=_.xS();G.addProvider({provide:NWR,useClass:a0O});G.addProvider({provide:_.QPD,useFactory:function(){return new DqF}});
G.addProvider({provide:Qh,useValue:_.E8("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});G.addProvider({provide:djz,useValue:5184E6});G.addProvider({provide:OB6,useValue:_.AA()});G.addProvider({provide:VUD,useClass:PIF});G.addProvider({provide:aX,useClass:aX});G.addProvider({provide:_.kg,useFactory:function(){return uZ4.promise}});
G.addProvider({provide:_.pfF,useFactory:function(){return _.hY2.promise}});
G.addProvider({provide:X_v,useValue:function(){var u;return((u=_.qW())==null?void 0:u.getPlayer())||null}});
var K={};G.addProvider((K.provide=_.wy,K.useFactory=function(u,h){return function(){return hqP(u,h)}},K[XF]=[Qh,
djz],K));K={};G.addProvider((K.provide=_.y$,K.useClass=mTs,K[XF]=[Qh,djz],K));K={};G.addProvider((K.provide=_.oGo,K.useClass=WXE,K[XF]=[_.y$],K));G.addProvider({provide:hJ,useFactory:_.$R});G.addProvider({provide:VM,useFactory:_.$R});G.addProvider({provide:l4i,useFactory:_.$R});G.addProvider({provide:_.sp0,useFactory:function(){var u;return((u=_.qW())==null?void 0:u.getPlayer())||null}});
G.addProvider({provide:qRz,useFactory:_.$R});G.addProvider({provide:_.wR,useFactory:_.$R});K={};G.addProvider((K.provide=bwF,K.useFactory=function(u){return u.dispatch.bind(u)},K[XF]=[_.wR],K));
G.addProvider({provide:X3,useValue:_.SO});G.addProvider({provide:t1W,useClass:JKf});G.addProvider({provide:WKO,useClass:KKP});G.addProvider({provide:Rc,useClass:Rc});G.addProvider({provide:fq,useClass:fq});G.addProvider({provide:PC,useClass:PC});G.addProvider({provide:xI,useClass:xI});G.addProvider({provide:ml,useClass:ml});G.addProvider({provide:vD,useClass:vD});G.addProvider({provide:ty,useClass:ty});G.addProvider({provide:o2i,useValue:PxD});K={};G.addProvider((K.provide=n2O,K.useFactory=function(u){return u.watchEndpointMap||
{}},K[XF]=[o2i],K));
K={};G.addProvider((K.provide=bBq,K.useFactory=function(u){return u.reelWatchEndpointMap||{}},K[XF]=[o2i],K));
G.addProvider({provide:_.m_,useFactory:_.l1});G.addProvider({provide:Lq,useFactory:_.M$});K={};G.addProvider((K.provide=uD6,K.useFactory=function(u){return function(h){var J={automatedLogEventSource:5};J=J===void 0?{}:J;var N,D,t=(D=_.Q((N=h.endpoint)==null?void 0:N.commandMetadata,_.RQ))==null?void 0:D.rootVe;if(t){var a,v;if(N=h.previousCsn||((v=_.Q((a=h.endpoint)==null?void 0:a.commandMetadata,VpF))==null?void 0:v.parentCsn)){var I=I===void 0?{}:I;if(N!==_.gU(I.layer)||t!==mVv(I.layer))LIM(N,I.cttAuthInfo,
I.layer||0),MPd(N,I.layer||0),a=I.layer||0,_.qC(Tbd(a===void 0?0:a),t);J.parentCsn=N}h.endpoint&&N?gFP(u,h.endpoint,J):_.PB(u,t,void 0,J);var Z;((Z=h.response)==null?0:Z.trackingParams)&&u.graftServerVe(h.response.trackingParams);var k;((k=h.playerResponse)==null?0:k.trackingParams)&&u.graftServerVe(h.playerResponse.trackingParams);var z;((z=h.reelWatchSequenceResponse)==null?0:z.trackingParams)&&u.graftServerVe(h.reelWatchSequenceResponse.trackingParams)}}},K[XF]=[_.m_],K));
K={};G.addProvider((K.provide=MU6,K.useClass=BMu,K[XF]=[X3,_.wR],K));K={};G.addProvider((K.provide=DX,K.useClass=DX,K[XF]=[_.kg,_.wR],K));K={};G.addProvider((K.provide=hv,K.useClass=hv,K[XF]=[VM,_.S1],K));G.addProvider({provide:_.gOs,useClass:oOq});K={};G.addProvider((K.provide=_.Wx,K.useClass=YZ6,K[XF]=[_.gOs,_.fn(_.w0)],K));G.addProvider({provide:_.VS,useClass:AI6});K={};G.addProvider((K.provide=Zx,K.useClass=Zx,K[XF]=[_.VS,_.kg,_.Tv,_.S1],K));G.addProvider({provide:_.Lk,useClass:Qq});G.addProvider({provide:_.iBD,
useClass:AwW});G.addProvider({provide:_.Ar,useClass:tv});_.F("enable_ai_companion")&&(G.addProvider({provide:_.w0,useClass:hRi}),G.addProvider({provide:_.ZI2,useClass:OdP}),G.addProvider({provide:w4z,useClass:WE6}),G.addProvider({provide:gk,useClass:gk}),G.addProvider({provide:wk,useClass:wk}),G.addProvider({provide:d5o,useValue:Qm6}),G.addProvider({provide:_.PzC,useValue:_.tNi}),G.addProvider({provide:y24,useValue:DFq}));_.F("enable_ai_chat_controller")&&G.addProvider({provide:_.AJ,useClass:Juq});
K={};G.addProvider((K.provide=_.iI,K.useClass=aMW,K[XF]=[_.iI],K));G.addProvider({provide:_.eu,useClass:B5D});G.addProvider({provide:NH,useClass:NH});G.addProvider({provide:ev,useClass:ev});G.addProvider({provide:oK,useClass:oK});K={};G.addProvider((K.provide=G8,K.useClass=G8,K[XF]=[_.S1,_.Tv],K));G.addProvider({provide:IK,useClass:Fl});K={};G.addProvider((K.provide=Cw,K.useClass=Cw,K[XF]=[_.Lk,IK],K));K={};G.addProvider((K.provide=qH,K.useClass=qH,K[XF]=[_.Lk],K));G.addProvider({provide:rk,useClass:rk});
G.addProvider({provide:H6P,useClass:Ey5});_.F("web_enable_feedback_endpoint_resolver_batch_2")&&(K={},G.addProvider((K.provide=pw,K.useClass=pw,K[XF]=[hJ],K)),K={},G.addProvider((K.provide=uQ,K.useClass=uQ,K[XF]=[H6P],K)));K={};G.addProvider((K.provide=jv,K.useClass=jv,K[XF]=[_.Ar,IK],K));K={};G.addProvider((K.provide=$9,K.useClass=$9,K[XF]=[_.Ar],K));K={};G.addProvider((K.provide=k9,K.useClass=k9,K[XF]=[_.Tv,_.Wx],K));K={};G.addProvider((K.provide=HC,K.useClass=HC,K[XF]=[_.Tv,_.m_],K));G.addProvider({provide:rQ,
useClass:rQ});K={};G.addProvider((K.provide=WS,K.useClass=WS,K[XF]=[hJ],K));G.addProvider({provide:vS,useClass:vS});G.addProvider({provide:bI,useClass:bI});K={};G.addProvider((K.provide=st,K.useClass=st,K[XF]=[hJ],K));K={};G.addProvider((K.provide=qx,K.useClass=qx,K[XF]=[_.Tv,hJ],K));K={};G.addProvider((K.provide=Et,K.useClass=Et,K[XF]=[hJ],K));K={};G.addProvider((K.provide=HS,K.useClass=HS,K[XF]=[hJ],K));K={};G.addProvider((K.provide=sl,K.useClass=sl,K[XF]=[_.Wx],K));K={};G.addProvider((K.provide=
Nx,K.useClass=Nx,K[XF]=[_.m_],K));K={};G.addProvider((K.provide=oY,K.useClass=oY,K[XF]=[Ot],K));K={};G.addProvider((K.provide=nq,K.useClass=nq,K[XF]=[Ot],K));G.addProvider({provide:F2,useClass:F2});G.addProvider({provide:QS,useClass:QS});G.addProvider({provide:JL,useClass:JL});K={};G.addProvider((K.provide=Vh,K.useClass=Vh,K[XF]=[_.Wx,_.S1],K));G.addProvider({provide:F7,useClass:F7});K={};G.addProvider((K.provide=El,K.useClass=El,K[XF]=[_.Tv,_.Wx],K));G.addProvider({provide:nw,useClass:nw});K={};
G.addProvider((K.provide=GW,K.useClass=GW,K[XF]=[hJ,_.Tv,_.iI],K));K={};G.addProvider((K.provide=T8,K.useClass=T8,K[XF]=[_.Tv,_.S1],K));G.addProvider({provide:Io4,useValue:QVP});G.addProvider({provide:ekl,useValue:w7d});G.addProvider({provide:m4,useClass:m4});K={};G.addProvider((K.provide=MH,K.useClass=MH,K[XF]=[hJ],K));K={};G.addProvider((K.provide=Kq,K.useClass=Kq,K[XF]=[_.eu,_.S1],K));K={};G.addProvider((K.provide=JJ,K.useClass=JJ,K[XF]=[_.S1],K));K={};G.addProvider((K.provide=Y9,K.useClass=Y9,
K[XF]=[VM],K));G.addProvider({provide:sMk,useFactory:_.FC.getInstance});K={};G.addProvider((K.provide=aK,K.useClass=aK,K[XF]=[Qh,sMk,_.S1],K));G.addProvider({provide:DI,useClass:DI});G.addProvider({provide:Kw,useClass:Kw});G.addProvider({provide:Lw,useClass:Lw});G.addProvider({provide:_.WC,useClass:_.WC});G.addProvider({provide:kI,useClass:kI});K={};G.addProvider((K.provide=RK,K.useClass=RK,K[XF]=[VM],K));K={};G.addProvider((K.provide=dk,K.useClass=dk,K[XF]=[_.S1],K));K={};G.addProvider((K.provide=
Ul,K.useClass=Ul,K[XF]=[_.S1],K));K={};G.addProvider((K.provide=z8,K.useClass=z8,K[XF]=[_.S1],K));_.F("web_enable_prefetching_videos_on_home")&&(G.addProvider({provide:uH,useClass:uH}),G.addProvider({provide:Ew,useClass:Ew}));K={};G.addProvider((K.provide=jK,K.useClass=jK,K[XF]=[_.S1],K));G.addProvider({provide:Ol,useClass:Ol});K={};G.addProvider((K.provide=uI,K.useClass=uI,K[XF]=[_.Tv,_.S1],K));K={};G.addProvider((K.provide=cC,K.useClass=cC,K[XF]=[_.S1],K));K={};G.addProvider((K.provide=Hd,K.useClass=
Hd,K[XF]=[_.Tv,_.S1],K));G.addProvider({provide:a_i,useClass:a_i});G.addProvider({provide:QGu,useClass:QGu});G.addProvider({provide:x9,useClass:x9});K={};G.addProvider((K.provide=fw,K.useClass=fw,K[XF]=[VM,_.S1],K));G.addProvider({provide:X7,useClass:X7});K={};G.addProvider((K.provide=PS,K.useClass=PS,K[XF]=[VM,_.S1,_.Tv],K));K={};G.addProvider((K.provide=yS,K.useClass=yS,K[XF]=[_.S1],K));K={};G.addProvider((K.provide=dQ,K.useClass=dQ,K[XF]=[_.S1,_.Tv],K));K={};G.addProvider((K.provide=YI,K.useClass=
YI,K[XF]=[_.S1,_.Tv],K));K={};G.addProvider((K.provide=BC,K.useClass=BC,K[XF]=[_.kg],K));K={};G.addProvider((K.provide=lQ,K.useClass=lQ,K[XF]=[_.kg],K));K={};G.addProvider((K.provide=Sv,K.useClass=Sv,K[XF]=[_.kg],K));G.addProvider({provide:gQ,useClass:gQ});G.addProvider({provide:cS,useClass:cS});G.addProvider({provide:$I,useClass:$I});G.addProvider({provide:hL,useClass:hL});G.addProvider({provide:wQ,useClass:wQ});G.addProvider({provide:bQ,useClass:bQ});G.addProvider({provide:AL,useClass:AL});G.addProvider({provide:_.X2,
useClass:oZ});G.addProvider({provide:s7,useFactory:function(){return _.Im.getInstance()}});
G.addProvider({provide:UTO,useFactory:vnG});G.addProvider({provide:Ot,useFactory:function(){return _.W3.getInstance()}});
G.addProvider({provide:GmX,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});K={};G.addProvider((K.provide=_.pR,K.useClass=_.pR,K[XF]=[_.kg,_.S1,_.m_,UTO,Ot,s7,GmX,X3],K));G.addProvider({provide:_.SB,useClass:Q6C});G.addProvider({provide:_.yUG,useClass:P$s});K={};G.addProvider((K.provide=vC,K.useClass=vC,K[XF]=[_.yUG],K));K={};G.addProvider((K.provide=_.Jv,K.useFactory=function(u){return u.upliftCompletionResolver.promise},K[XF]=[MU6],K));
K=_.IP("IS_SHELL_LOAD")?"aa":"eocs";var W=_.IP("IS_SHELL_LOAD")?3:2;_.tf().parkOrScheduleJob(function(){m26()},W,K);
_.tf().parkOrScheduleJob(function(){_.xS().resolve(DX).start()},2,"eocs");
_.tf().parkOrScheduleJob(function(){znP()},2,"eocs");
_.tf().parkOrScheduleJob(function(){_.xS().resolve(hv).start()},2,"eocs");
_.F("kevlar_debug_data_app_registration_ks")||tcV();G.addProvider({provide:_.zk,useValue:new LbO(m.root)});G.addProvider({provide:Er,useValue:new HQd});G.addProvider({provide:_.usD,useValue:new Yy6(m.root)});G.addProvider({provide:_.M_,useValue:new rtW});G.addProvider({provide:_.eG,useClass:BT});G.addProvider({provide:Q2D,useClass:aZ});_.F("kevlar_network_sli_killswitch")||G.addProvider({provide:q8s,useValue:a9K});G.addProvider({provide:F3G,useFactory:IVd});K={};G.addProvider((K.provide=ubD,K.useFactory=
cP9,K[XF]=[_.Jv,hJ,_.wy],K));K={};G.addProvider((K.provide=rI6,K.useClass=eK,K[XF]=[ubD],K));G.addProvider({provide:U7D,useClass:x7P});G.addProvider({provide:g2i,useClass:cIi});K=[].concat(_.Bz(dfG));K.push(_.Yg);K.push(hpC);_.F("enable_share_panel_navigation_logging_fix_on_web")&&K.push(_.sE2);G.addProvider({provide:Zi6,useValue:K});G.addProvider({provide:HsR,useClass:wtG});G.addProvider({provide:kfO,useClass:ESi});K={};G.addProvider((K.provide=$dk,K.useClass=nrs,K[XF]=[VM],K));_.Fu.addLowPriorityJob(function(){e8d()});
K={};G.addProvider((K.provide=dbC,K.useFactory=function(u){return function(h){var J,N=(J=_.Q(h.commandMetadata,_.RQ))==null?void 0:J.url;if(!N)throw new _.cw("No URL for PBJ Command",h);N=uvG(N,{pbj:"1"});J=kzV(N,{})||{};J=Object.assign({},J,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.E8("STS").toString()});h=_.l$({command:JSON.stringify(h),session_token:_.E8("XSRF_TOKEN")});return u.fetch(N,{method:"POST",headers:J,body:h})}},K[XF]=[kfO],K));
G.addProvider({provide:vSP,useFactory:function(){var u={};return u.CSI=krJ(),u.ECATCHER=jNf(),u}});
G.addProvider({provide:to2,useClass:$CD});K=[];K.push(G.resolve(g2i));W={};W=(W.client_location=_.FC.getInstance(),W.consistency=_.RUV(),W.entities=G.resolve(WKO),W.response_received_commands=G.resolve(HsR),W.store=G.resolve(_.oGo),W.tokens=G.resolve(g2i),W.service_params=G.resolve(to2),W);if(_.F("web_shorts_prefetch_service_enabled")){var L=new LXz(G.resolve(_.y$));W.shorts_prefetch=L}W.adblock_detection=G.resolve($dk);_.F("web_enable_chunk_prediction")&&(G.addProvider({provide:xTz,useClass:XgE}),
G.addProvider({provide:jMR,useClass:K1W}),W.mss=G.resolve(jMR),_.oi(window,"yt-navigate-start",function(u){var h;u=(h=u.detail)==null?void 0:h.endpoint;var J;if(h=(J=_.Q(u==null?void 0:u.commandMetadata,_.RQ))==null?void 0:J.rootVe){J=_.E8("VE_TYPE_TO_XIDS",{});var N,D;u=(D=(N=J["0"])==null?void 0:N.xids)!=null?D:[];var t,a;N=(a=(t=J[h])==null?void 0:t.xids)!=null?a:[];t=u.concat(N);if(h in J&&t.length>0){var v;(v=RnD(_.xS().resolve(xTz),t))==null||v()}}}));
G.addProvider({provide:_.k3,useClass:_.k3});L=G.resolve(o2i);var A=[];_.F("PremiumClientSharedConfig__enable_att_context_processor")&&(G.addProvider({provide:ejO,useClass:dpi}),A.push(G.resolve(ejO)));if(_.F("owl_pl_await")){var O={};G.addProvider((O.provide=rws,O.useFactory=function(u){return new cwu(u)},O[XF]=[_.k3],O));
A.push(G.resolve(rws))}eQX(L,G.resolve(kfO),G.resolve(t1W),W,G.resolve(_.y$),K,A,G.resolve(rI6),G.resolve(U7D));G.addProvider({provide:_.Tv,useValue:_.NW.instance});_.F("start_client_gcf")&&G.addProvider({provide:uO,useValue:kzi()});G.addProvider({provide:GLP,useFactory:function(){return new GLP(_.xS().resolve(_.k3),_.W3.getInstance())}});
_.tf().parkOrScheduleJob(function(){KEE()},1,"eocs");
K={};G.addProvider((K.provide=NJ,K.useClass=NJ,K[XF]=[_.wy,_.Tv],K));G.addProvider({provide:_.qZP,useFactory:_.qJ.getInstance});_.tf().parkOrScheduleJob(function(){_.xS().resolve(NJ).refresh()},0,"eocs");
G.addProvider({provide:_.WX,useClass:I55});_.F("kevlar_signal_collection_killswitch")||(K={},G.addProvider((K.provide=CE6,K.useClass=CE6,K[XF]=[Qh,Lq],K)),_.tf().parkOrScheduleJob(function(){_.xS().resolve(CE6).record()},1,"eocs"));
_.F("web_debug_handler_registration_killswitch")||_.tf().parkOrScheduleJob(function(){N7v("DOWNLOAD_PES",bvf);_.F("offline_client_state_export_ks")||N7v("OFFLINE_CLIENT_STATE",aAd)},0,"eocs");
_.F("kevlar_prevent_polymer_dynamic_font_load")&&_.tf().parkOrScheduleJob(function(){var u=[_.vE(xCq),_.vE(XOG)];u=_.g(u);for(var h=u.next();!h.done;h=u.next()){h=h.value;var J=document.createElement("link");_.tt(J,h,"stylesheet");document.head.appendChild(J)}},1,"eocs");
K=m.injector.resolve(_.Tv);_.ytE.instance=new _.ytE(K);mwd(HZE(new P9W(K)));K={};m.injector.addProvider((K.provide=yb,K.useFactory=function(u){(u=u==null?void 0:u.getCurrentPage())?u=u.visibilityObserver:(aCi||(aCi=ML9()),u=aCi);return u},K[XF]=[_.fn(_.$g)],K.skipCache=!0,K));
G.addProvider({provide:_.pY,useClass:dy});G.addProvider({provide:ln,useClass:HIC});m.injector.addProvider({provide:bq0,useValue:Wb6});G.addProvider({provide:pQX,useValue:orz});G.addProvider({provide:od2,useValue:pIG});G.addProvider({provide:_.l_,useValue:$vF});m=G.addProvider;j2u||(j2u=new IM5);m.call(G,{provide:_.nR,useValue:j2u});G.addProvider({provide:_.t3,useValue:_.E8("HTML_DIR")==="rtl"?"rtl":"ltr"});G.addProvider({provide:h_q,useClass:b6u});G.addProvider({provide:_.fD,useClass:bH});_.xS().addProvider({provide:JU6,
useValue:_.F("enable_web_delhi_icons")?uxs.concat(p$W):ru6.concat(hD6)});G.addProvider({provide:_.L3q,useClass:_.L3q});G.addProvider({provide:_.ywD,useValue:new PXO});G.addProvider({provide:Wuu,useClass:i6E});G.addProvider({provide:pq,useClass:pq});G.addProvider({provide:Dx,useClass:Dx});m={};G.addProvider((m.provide=ZI,m.useClass=ZI,m[XF]=[_.Tv,_.Wx],m));G.addProvider({provide:Cq,useClass:Cq});G.addProvider({provide:Qe6,useClass:bTO});G.addProvider({provide:aY,useClass:aY});G.addProvider({provide:j0S,
useValue:DL4});G.addProvider({provide:_.vy,useClass:GFs});_.F("enable_payments_purchase_manager")&&G.addProvider({provide:Syz,useClass:fO5});G.addProvider({provide:qiq,useFactory:function(){return function(u){return _.f06(u)}}});
G.addProvider({provide:_.Kii,useClass:Wiu});m={};G.addProvider((m.provide=IY,m.useClass=IY,m[XF]=[_.Kii],m));G.addProvider({provide:tL,useClass:tL});G.addProvider({provide:hBD,useValue:UIu});G.addProvider({provide:BcP,useValue:_.eRu});G.addProvider({provide:jpV,useClass:nO6});G.addProvider({provide:CMq,useValue:SV6});m={};G.addProvider((m.provide=VJ6,m.useClass=ZTW,m[XF]=[CMq],m));m={};G.addProvider((m.provide=_.TE,m.useClass=zv5,m[XF]=[VJ6],m));m={};G.addProvider((m.provide=_.$h,m.useClass=NsG,m[XF]=
[_.wR,_.eG],m));if(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))m={},G.addProvider((m.provide=tJ,m.useClass=tJ,m[XF]=[_.Tv,s7],m));if(_.F("web_enable_renderer_logger")){var c=new g1F;mQv(function(){c.abort()});
G.addProvider({provide:xZf,useValue:new Ztu(c.signal)})}G.addProvider({provide:$4G,useValue:yvv});G.addProvider({provide:ncf,useClass:AO6});_.F("web_use_flow_state_manager")&&(G.addProvider({provide:_.RH,useClass:LKW}),m={},G.addProvider((m.provide=U$,m.useClass=U$,m[XF]=[_.RH],m)),m={},G.addProvider((m.provide=zJ,m.useClass=zJ,m[XF]=[_.wR,_.RH],m)),m={},G.addProvider((m.provide=li,m.useClass=li,m[XF]=[_.wR,_.RH,_.S1],m)),m={},G.addProvider((m.provide=By,m.useClass=By,m[XF]=[_.Tv,_.S1],m)),m={},G.addProvider((m.provide=
Mu,m.useClass=Mu,m[XF]=[_.RH,_.S1],m)))}},oz6);var bcD={},vzq=(bcD.initialized={priority:10,callback:function(){if(!sP5){y$f();VTM("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Tf(_.BH(VTM,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.F("log_heartbeat_with_lifecycles")){var m={};bn.instance||(bn.instance=new bn);bn.instance.install((m.document_visible={callback:Zyv,priority:10},m.document_hidden={callback:Zyv,priority:10},m))}else _.er(document,"visibilitychange",Zyv);sP5=!0}(m=_.gU())&&m!=="UNDEFINED_CSN"&&lpG(m)}},bcD);var $F5={},smq=($F5.initialized={callback:function(m){var G=_.dq(232091),K=m.injector.resolve(_.m_);_.yw(K,G);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?JVo()&&_.fK(K,G):(m=m.injector.resolve(qiq)("refresh_detector"))&&(m.get("first_tab_load")?_.fK(K,G):m.set("first_tab_load","1"))}},$F5);var qrO={},EzD=(qrO.initialized={priority:0,callback:function(){var m=new UKS,G="other";_.fY?G="chrome":_.eI?G="firefox":_.bx?G="safari":d8&&(G="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(K){m.increment(_.w8(),K,G)}).catch(function(){m.increment(_.w8(),!1,G)}):m.increment(_.w8(),!1,G)}},qrO);var HcP={},ICE=(HcP.rendering={priority:8,callback:NdC},HcP);var jmE={},kiO=(jmE.rendering={priority:10,callback:k9i},jmE.rendered={callback:IFo},jmE),COi={},VNu=(COi.rendering={callback:k9i},COi.rendered={callback:IFo},COi);var Zcz=!1,dFi={},POP=(dFi.initialized={priority:10,callback:function(){Zcz||(La6({didPatch:function(m){m.el&&zXP(m.el,m.props)},
didUnmount:function(m){RXd(m.el)}}),Zcz=!0)}},dFi);var yuD=/^\/shorts\/?$/;_.qC("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:{}}}}}}});_.F("kevlar_use_common_module_manager_ks")?(_.Vnd(new C60),o1f()):VoC();
(function(){var m=document.querySelector("ytd-app");if(!m)throw Error("ak");m=new sw({root:m,injector:_.xS()});m.install(vzq);var G={};m.install((G.initialized={priority:10,callback:dMs},G));_.F("wp_lat_b")&&(G={},m.install((G.initialized={priority:10,callback:function(){q66()}},G)));
G={};m.install((G.rendered={priority:0,callback:CFJ},G));G={};m.install((G.rendered={priority:0,callback:function(){_.Fu.addLowPriorityJob(function(){_.vy6>1&&(syd(),jy9())},4E4)}},G));
m.install(N8u);m.install(smq);m.install(POP);LOo();m.install(sGD);m.install(YVD);m.install(pws);m.install(siz);m.install(jiW);m.install(vD6);m.install(nzG);m.install(uH6);m.install(EzD);if(!_.IP("IS_SHELL_LOAD")||_.F("kevlar_fetch_initial_data_promise_client")||_.F("sw_nav_preload_pbj")){var K=_.f6(window.location.href);G=K&&K==="/watch";K=K&&K.match(yuD);G?m.install(VNu):K?m.install(ICE):m.install(kiO)}else m.install(gDq);m.install(tnz);_.F("web_enable_prefetching_videos_on_home")&&m.install(I_O);
_.F("start_client_gcf")&&m.install(bn5);m.install(olO);(new zvk).increment("INSTALLED");m.install(EDi);m.install(L1G);m.transition("initialized");QNM();Y6G()})();
_.PU=[[["NmxyeGxraGtpbmQjYXY1bmk=","OHcxdmFsdWUjbzZwZncweDUx"],"MGt0QURfUExBQ0VNRU5UX0tJTkRfU1RBUlQjOXRicW9hbDNu"]];_.d6=["bGJhY2tzI3hjazAybGZvcnIyMWdsb2JhbENhbA==","ZnB3MmFiNm9uQWJub3JtYWxpdHlEZXRlY3RlZCN3MGx3dg==","bDBmemx6bWl2YXFkb25BZFNraXAj","a3l5dHJrOGR5MXJyYXdfcGxheWVyX3Jlc3BvbnNlIzc=","dHMjOTV5Nm0yZXhoMTV4YWRTbG8="];_.bJ="bGJhY2tzI3hjazAybGZvcnIyMWdsb2JhbENhbA== ZnB3MmFiNm9uQWJub3JtYWxpdHlEZXRlY3RlZCN3MGx3dg== bDBmemx6bWl2YXFkb25BZFNraXAj a3l5dHJrOGR5MXJyYXdfcGxheWVyX3Jlc3BvbnNlIzc= aXBsZV9za2lwc19rcyNiZzJyZWhxa2Z1MjB3ZWJfcGxheWxpc3RfcXVldWVfbXVsdA== dmdnMXFia3ZpNHdoYWJfc2FfZWYj dHMjOTV5Nm0yZXhoMTV4YWRTbG8=".split(" ");
_._ModuleManager_initialize=function(m,G){if(!_.D4){if(!_.tO)return;_.Vnd(_.tO())}_.D4.setAllModuleInfoString(m,G)};
_._ModuleManager_initialize('kevlar_base_module/sy1/kevlar_main_module/NSzT5:1',['sy1','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
var UFE;_.yq=function(m){var G=document.createElement("link");_.tt(G,m,"stylesheet");document.head.appendChild(G)};
_.eX=function(m,G){var K,W;return _.Y(function(L){K=document.createElement("div");K.id=m.id;m.className&&(K.className=m.className);W=m.element;if(!W)throw Error("bk");if(m.location==="prepend")W.prepend(K);else if(m.location==="appendChild")W.appendChild(K);else if(m.location==="after")W.after(K);else throw Error("ck");return L.return(_.oP(K,G,"wh"))})};
_.fR=function(m){var G;return _.Y(function(K){(G=document.getElementById(m))&&G.remove();_.ey(K)})};
_.xh=function(m,G){var K=document.querySelector(m);K?G(K):setTimeout(function(){_.xh(m,G)},1E3)};
_.zDu=function(m,G,K){var W;_.Y(function(L){if(L.nextAddress==1)return(W=document.getElementById(m))?L.jumpTo(2):L.yield(UFE(m,G,K),2);if(W=document.getElementById(m))W.style.display="block";_.ey(L)})};
UFE=function(m,G,K){return _.Y(function(W){return W.return(new Promise(function(L){_.xh("div #panels",function(A){_.eX({element:A,location:"appendChild",id:m,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+K},G);L()})}))})};_.Xl=_.P(function(m){var G=m.text;var K=m.onClick;var W=m.color;var L=m.backgroundColor;var A=m.buttonSize;var O=m.disabled;var c=m.iconName;var u=m.iconSize;var h=m.className;var J=m.iconClassName;m=m.ariaLabel;var N=_.dn(function(t){K(t)}),D={};
return _.r("button",{class:_.VO("ytpStandardButtonsHost",(D.ytpStandardButtonsLarge=function(){return(A==null?void 0:A())==="large"},D),h),
"on:click":N,style:_.eA({color:W,"background-color":L}),disabled:O,"aria-label":m},_.r(_.p,{cond:c,then:function(){return _.r(_.fN,{className:_.VO("ytpStandardButtonsIconContainer",J),icon:c,size:u})}}),G)},"vh");_.lCW=_.P(function(m){var G,K,W={};return _.r("div",{class:_.VO("ytprototypesEngagementPanelComponentHost",(W.ytprototypesEngagementPanelComponentHostMweb=m.isMweb,W),m.className),id:m.id},_.r("div",{class:_.VO("ytprototypesEngagementPanelComponentEngagementPanelHeader",m.headerClassName)},_.r("div",null,m.header()),_.r("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.r("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(G=m.HeaderButton)==null?void 0:G.call(m)),
_.r(_.Xl,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",ariaLabel:"Close",onClick:function(){var L;(L=m.onHide)==null||L.call(m);var A;if((A=m.preventDefault)==null||!A.call(m))if(L=m.id(),L=document.getElementById(L))L.style.display="none"}}))),_.r("div",{class:_.VO("ytprototypesEngagementPanelComponentEngagementPanelContent",m.contentClassName),
style:function(){var L,A;return"height: "+(((L=m.height)==null?0:L.call(m))||((A=m.isMweb)==null?0:A.call(m))?"100%":"800px")+";"}},m.content()),_.r("div",null,(K=m.Footer)==null?void 0:K.call(m)))},"xh");
}catch(e){_._DumpException(e)}
try{
_.D4&&_.D4.beforeLoadModuleCode("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 BC6,SX,MN6,TCz,mkE,iCz,GbD,Kyz,Wyi,LyD,Aa5,wvE,gNz,RZ,OC6,caP,YpO,Uw,raW,ug6,hmD,pv6,JaD,NlE,Dku,t_E,FyE,QvD,aG6,oN6,nN5,bC6,$kG,sv5,ENq,HC5,jv6,kbP,CYD,ZCO,dkP,PYW,yai,zR,fGD,xkP,Xv6,lH,Spi,lGO,Bl6,M_O,TlD,iAO,GP6,AbD,gTs,LUz,qps,OAi,cbu,YKi,Bd,MJ,rb6,uSP,pl6,Jbq,D85,tl6,FUi,QlO,aeE,oTi,nTO,bAs,TR,vTu,sl5,qKO,ETi,HAP,IeO,kPz,CL6,VlW,ZAE,ybO,eMz,XlO,SKs,U8u,zM5,BBP,mZ,MlE,m$D,iJs,Gq6,WaO,Aj6,wHs,gus,OJ5,cjq,YB6,rji,uAP,hJP,pHz,Jj5,NUW,D$z,tD6,Fa6,QQD,awD,bJi,vu6,$$5,sQ6,qBD,EuP,HJu,Iwq,kq6,CWD,
VD6,ZJ6,d$D,PW6,yji,eJE,fwi,Ki,x$u,XHO,SB5,RJs,U$W,zJG,W5,lwu,BUz,MDi,TUW,mcz,iWD,GzE,KQ5,WQ6,LQ5,AWE,wkP,gti,Li,OWP,cWi,YG5,rWD,uv6,hHD,pkE,JW6,N9s,Dc6,tOu,FQG,Q75,aQD,otP,nt5,bWu,vts,s7z,HWP,IQ6,j7i,kzD,Cdi,VOz,ZWD,dcP,Pdu,yW6,eHE,fQE,xcG,wf,gf,SG6,RHD,UcD,zHD,lQE,B9G,MO6,T9O,m_D,WdD,uQE,N6O,D_O,oRP,bGs,alq,Fdu,Ili,CwW,e9P,t8E,ZGu,jWD,nRP,x_s,R9P,llz,U_q,z9E,B6E,irW,T66,Gh6,KoW,mgE,M8O,WoE,rf,u2,cK6,hk,YMq,uCD,hgD,peW,pi,JKi,NFW,Dgs,nCO,br6,$gs,stq,qM6,ECq,Jk,Hri,I75,jt6,Nf,Dr,C0q,VbE,tk,dgO,P0P,
F1,eg6,Q_,az,oz,ni,Xei,xgu,SMD,RgW,b2,Ug5,v5,zg5,$7,sE,Kgq,qf,Wg5,LgO,A9D,EE,r9D,geE,YQi,ujq,ODq,pLi,c96,DlW,J9G,NTP,tw6,Qo6,FgG,bDs,qQi,k7,Ci,$li,HDE,soG,EeD,Zr,P5,y_,e2,my6,xl6,K5W,W56,L5D,A$6,gEO,dlu,P1q,X1,eOz,fi,x7,fhu,w8s,iNq,y9P,Rz,F5D,aJO,oED,QC6,J$W,bNW,sCE,haO,r$q,umP,HNu,p8O,l2,$yD,NnD,vEE,tAs,Yh6,DyD,jCE,fJW,xys,X85,ShW,RaD,UyG,lJ5,GZ,MA6,Tn6,izD,G$i,KrG,WrE,Lr6,AoP,wp6,gg6,OzD,Kx,cou,YTW,roz,ukE,hzi,QLD,W_,Fr6,Jo6,t56,DWG,Nqs,ppD,ag5,og5,ngE,bzP,Lx,vgO,$W6,HzD,w7,qTD,O_,A1,g7,EgG,sLG,
Ig6,jLi,k$G,C_6,V5E,Zz6,P_D,yoP,ezO,fgu,xW6,XpE,STz,RzO,UWE,lgG,Bqz,Tqu,G_z,KnP,WnO,A3i,gA6,c3E,Yn6,r3u,u9W,pRP,J3D,NHs,DB6,tFq,Fnu,QTE,oAP,vAi,sTG,EAs,$BD,nAq,bQ6,k_D,jTD,HQO,Ckq,IE6,VFD,exq,y3z,dBE,Pks,c_,fED,XRD,Sni,Rxi,MFq,TH6,maW,imz,GnO,KFz,WFD,LF6,AXq,wYu,g16,Om5,cXs,YUi,rXs,uw6,h3i,pYu,JXD,Daz,tqP,FF6,Qx6,o1i,n1u,bmE,v1D,$az,sxz,qUq,E1i,HmD,Ik5,CGG,ZmE,PGq,yX6,e3z,fkO,jxD,knz,SUs,R3G,UaE,z3P,lk5,BS6,Mq6,TSO,iYu,mP5,KNP,WNW,AAD,wX6,OYi,cAW,h1,hFi,pXz,N1G,DP6,FNq,tIP,oJW,QBz,abD,nJD,bYz,vJs,
$Pz,sBq,qaW,EJ6,HYq,IbP,jBD,keq,C5z,ZYs,VIi,dPq,eFW,fbO,xP5,px,XXE,Sa6,RF6,UPu,zFD,lbD,B15,MIq,T1u,mEO,igP,K9z,W9u,L9q,Alu,Og5,YA6,rl5,h0u,u5P,po6,Jls,NLP,DEq,F9W,Q36,a85,oiq,niP,bg6,viz,$EP,s3P,qAP,Eiu,kBE,CAG,I8i,j3z,Hgu,VZD,PA6,Zg6,dE5,f8s,ylD,e0s,xEO,XoG,SA6,R06,z06,l8P,BLu,TLO,mNz,GsW,WWz,AYq,gvO,cY6,rYz,hTD,JYG,tk6,QSq,aS6,ovP,bV6,nv5,$Ni,sSO,q1W,Evs,NX,HVq,IS5,jSu,S16,UNE,zTi,T3E,Fz,m3O,ibW,G5E,WzG,Kzs,Lz6,AzD,wWi,gZz,Ob6,iGi,czq,Y5u,rzO,wbD,uNG,hVs,TBq,pW6,Jzs,NO5,D36,tm6,Fzz,$hE,s9s,qLO,
EKs,H2z;BC6=function(){switch(_.qhv()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
SX=function(m){if(!m)return"browse";var G=m.page,K=m.url,W,L,A,O=(W=m.response)==null?void 0:(L=W.responseContext)==null?void 0:(A=L.webResponseContextExtensionData)==null?void 0:A.pageTheme;if(O)G=O.toLowerCase().replace(/_/g,"-");else if(G!=="watch"&&G!=="learning_journey_watch"){var c,u;if((G==="browse"||G==="settings")&&((c=m.response)==null?0:(u=c.sidebar)==null?0:u.settingsSidebarRenderer))G="WEB_PAGE_TYPE_SETTINGS";else{var h,J;G==="browse"&&((h=m.response)==null?0:(J=h.metadata)==null?0:J.channelMetadataRenderer)?
G="channel":K&&(G=_.eeM(K)||G)}}return G};
MN6=function(m){m=m.command;var G=_.Q(m,_.lw);return{command:m,reelPlayerOverlayRenderer:_.Q(G==null?void 0:G.overlay,_.DR2),thumbnail:G==null?void 0:G.thumbnail,videoId:G.videoId}};
TCz=function(m){m=m.command;var G=_.Q(m,_.Yq);return{command:m,reelNonVideoContentRenderer:_.Q(G==null?void 0:G.renderer,_.NEK)}};
mkE=function(m){return m.entries?m.entries.map(function(G){return _.Q(G==null?void 0:G.command,_.lw)?MN6(G):TCz(G)}):[]};
iCz=function(m){return m.prevEntries?m.prevEntries.map(function(G){return _.Q(G==null?void 0:G.command,_.lw)?MN6(G):TCz(G)}):[]};
GbD=function(){return new Promise(function(m){var G=window;G.attmp!==void 0?m(G.attmp):(G.attmq===void 0&&(G.attmq=[]),G.attmq.push(function(K){m(K)}))})};
Kyz=function(){var m=_.Cn("yt.aba.att");return m?m:_.Sf.instance!==void 0?_.Sf.instance.vEt.bind(_.Sf.instance):null};
Wyi=function(m,G){var K,W,L;return _.Y(function(A){if(A.nextAddress==1){if(!_.F("attmusi")||!_.F("attmusi_ue"))return A.jumpTo(2);K=window;return K.attmp!==void 0?A.return(K.attmp.s(m,G,6E4)):A.yield(GbD(),3)}return A.nextAddress!=2?(W=A.yieldResult,A.return(W.s(m,G,6E4))):(L=Kyz())?A.return(L(m,G,6E4)):A.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
LyD=function(m,G,K,W,L){G=G===void 0?[]:G;L=L?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:L}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Hk(m),dialogMessages:G.map(function(A){return _.Hk(A)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(K),serviceEndpoint:L}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(W)}}}}}};
Aa5=function(m,G,K,W){K||(m?W&&(W.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||W.WINDOW_SIZE_CHANGED&&(G.width!==window.innerWidth||G.height!==window.innerHeight)||W.SAFARI_ABORTED_BY_NEW_TRANSITION&&m instanceof DOMException&&m.name==="AbortError"&&m.message.includes("Old view transition aborted by new view transition"))||_.am(m):_.am(Error("Aj")))};
wvE=function(m,G){G=G===void 0?{}:G;var K,W,L,A,O,c,u,h,J,N,D,t,a;return _.Y(function(v){switch(v.nextAddress){case 1:K=G;W=K.shouldWrap===void 0?!0:K.shouldWrap;L=K.skipTransitionTimeoutMs===void 0?300:K.skipTransitionTimeoutMs;A=K.beforeTransition;O=K.afterTransition;if(!W||!document.startViewTransition||document.visibilityState==="hidden")return v.return(m());c={width:window.innerWidth,height:window.innerHeight};u=!1;(h=A)==null||h();_.IO(v,2);J=document.startViewTransition(m);N=setTimeout(function(){J.skipTransition();
u=!0},L);
return v.yield(J.ready,4);case 4:return clearTimeout(N),v.yield(J.finished,5);case 5:clearTimeout(N);(D=O)==null||D();_.IG(v,0);break;case 2:t=_.ye(v),(a=O)==null||a(),Aa5(t,c,u,G.ignoredErrors),_.ey(v)}})};
gNz=function(m,G,K){K=K===void 0?!1:K;var W=_.U7(),L=!!_.an().queueProxy,A,O,c;m=m==null?void 0:(A=m.response)==null?void 0:(O=A.currentVideoEndpoint)==null?void 0:(c=O.watchEndpoint)==null?void 0:c.playlistId;if((L||m)&&!_.F("web_watch_disable_playlist_auto_miniplayer"))return K&&(W.playlistWatchPageActivation=!0),!0;switch(SX(G)){case "yts-products":return K&&(W.productDetailsPageActivation=!0),!0;case "mini_app":return K&&(W.miniAppPageActivation=!0),!0;case "playables":return K&&(W.playablesDestPageActivation=
!0),!0;case "companion-canvas":return K&&(W.companionCanvasActivation=!0),!0;default:return!1}};
RZ=function(m){var G=m.clientMessageId;var K=m.playerOffsetMs;var W=m.pageContext;m=m.userInputText;return{inputComposerFormData:Object.assign({},{clientMessageId:G},!!K&&{playerOffsetMs:K},!!W&&{pageContext:W},!!m&&{userInputText:m})}};
OC6=function(m){m=_.wJ6(m);m.length>0&&m[0].focus()};
caP=function(m,G,K){for(var W=typeof m==="string"?m.split(""):m,L=m.length-1;L>=0;--L)L in W&&G.call(K,W[L],L,m)};
YpO=function(m,G,K){for(var W=m.length,L=typeof m==="string"?m.split(""):m,A=0;A<W;A++)if(A in L&&G.call(K,L[A],A,m))return A;return-1};
Uw=function(m,G,K){G=YpO(m,G,K);return G<0?null:typeof m==="string"?m.charAt(G):m[G]};
raW=function(m,G){G=YpO(m,G);G>=0&&_.EGM(m,G)};
ug6=function(m){return Array.prototype.concat.apply([],arguments)};
hmD=function(m){var G=0;G=G===void 0?0:G;if(!_.wz(m))throw _.G4("uint64");var K=typeof m;switch(G){case 512:switch(K){case "string":return _.yis(m);case "bigint":return String((0,_.bq)(64,m));default:return _.dGs(m)}case 1024:switch(K){case "string":return _.eBs(m);case "bigint":return _.ZP((0,_.bq)(64,m));default:return _.PSG(m)}case 0:switch(K){case "string":return _.yis(m);case "bigint":return _.ZP((0,_.bq)(64,m));default:return _.ZlV(m)}default:return _.GG(G,"Unknown format requested type for int64")}};
pv6=function(m,G,K){if(G)return _.vu(m);var W;return(W=_.q6(m))!=null?W:K?"":void 0};
JaD=function(m){m!=null&&(m=m.JSC$9127_value_||"",m=typeof m==="string"?m:new Uint8Array(m));return m};
NlE=function(m,G){var K=_.bZd(G);K!=="javascript:"&&K!=="data:"&&m.setAttribute("href",G)};
Dku=function(m,G){var K=[];for(G=G||0;G<m.length;G+=2)_.mTM(m[G],m[G+1],K);return K.join("&")};
t_E=function(m,G){var K=arguments.length==2?Dku(arguments[1],0):Dku(arguments,1);return _.T$9(m,K)};
FyE=function(m,G){if(/-[a-z]/.test(G))return null;if(_.AOB&&m.dataset){if(_.toJ()&&!(G in m.dataset))return null;m=m.dataset[G];return m===void 0?null:m}return m.getAttribute("data-"+_.XS(G))};
QvD=function(m,G,K){G=G===void 0?5:G;if(G!==0){var W=typeof m==="function"?m():document.querySelector(m);W?(K==null?0:K.enableSmartFocus)?_.jGJ(W):W.focus():setTimeout(function(){QvD(m,G-1,K)},500)}};
aG6=function(){var m=_.bx&&_.hV(_.cb2,10)>=0,G;if(G=_.WDF)G=_.hV(_.OAX,10)>=0;var K=_.fY&&_.hV(_.cb2,85)>=0;return _.lY||m||G||K};
oN6=function(m){var G=_.zL2(m);return G&&aG6()?-m.scrollLeft:G&&_.EJ(m,"overflowX")!="visible"?m.scrollWidth-m.clientWidth-m.scrollLeft:m.scrollLeft};
nN5=function(m,G){G=Math.max(G,0);_.zL2(m)?aG6()?m.scrollLeft=-G:m.scrollLeft=m.scrollWidth-G-m.clientWidth:m.scrollLeft=G};
bC6=function(m){return String.raw.apply(String,[{raw:m}].concat(_.Bz(_.mb.apply(1,arguments).map(function(G){return G instanceof Array?G.join(""):G}))))};
$kG=function(m){var G=_.mb.apply(1,arguments),K=G.length;if(!Array.isArray(m)||!Array.isArray(m.raw)||m.length!==m.raw.length||!_.zjP&&m===m.raw||!(_.zjP&&!_.lOB||_.e4(m))||K+1!==m.length)throw new TypeError("aa");return new vNP(Object.freeze({strings:Object.freeze(m),args:Object.freeze(G)}))};
sv5=function(){var m=window.location.hash;m.charAt(0)==="#"&&(m=m.charAt(1)==="!"?m.substring(2):m.substring(1));return _.ds(m)};
ENq=function(){var m=qps;_.Cn("yt.ads.biscotti.getId_")||_.yj("yt.ads.biscotti.getId_",m)};
HC5=function(m){_.yj("yt.ads.biscotti.lastId_",m)};
jv6=function(){var m={};for(_.NK=new IGO(m.handleError===void 0?_.om:m.handleError,m.logEvent===void 0?_.Fx:m.logEvent);_.D_.length>0;)switch(m=_.D_.shift(),m.type){case "ERROR":_.NK.logError(m.payload);break;case "EVENT":_.NK.logEvent(m.eventType,m.payload)}};
kbP=function(m,G,K){return _.Ilf(function(W){return K?W.userIdentifier!==void 0&&!m.includes(W.userIdentifier)&&K.includes(W.publicName):W.userIdentifier!==void 0&&!m.includes(W.userIdentifier)},G)};
CYD=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return G=_.g8("YtIdbMeta hasAnyMeta other"),W.yield(_.Ilf(function(L){return L.userIdentifier!==void 0&&L.userIdentifier!==G},m),2);
K=W.yieldResult;return W.return(K.length>0)})};
ZCO=function(m,G){V_5||(V_5=_.Fu.addLowPriorityJob(function(){var K,W,L,A,O;return _.Y(function(c){switch(c.nextAddress){case 1:return c.yield(_.en(),2);case 2:K=c.yieldResult;if(!K)return c.return();W=!0;_.IO(c,3);return c.yield(kbP(m,K,G),5);case 5:L=c.yieldResult;if(!L.length){W=!1;c.jumpTo(6);break}A=L[0];return c.yield(_.jn(A.actualName),7);case 7:return c.yield(_.Vj(A.actualName,K),6);case 6:_.IG(c,4);break;case 3:O=_.ye(c),_.tH(O),W=!1;case 4:_.Fu.cancelJob(V_5),V_5=0,W&&ZCO(m,G),_.ey(c)}})}))};
dkP=function(){var m;return _.Y(function(G){return G.nextAddress==1?G.yield(_.en(),2):(m=G.yieldResult)?G.return(CYD(m)):G.return(!1)})};
PYW=function(m){var G=100;G=G===void 0?500:G;var K,W,L,A,O,c;return _.Y(function(u){return u.nextAddress==1?(K=_.E8("INNERTUBE_CONTEXT_CLIENT_NAME",0),W=[K,(0,_.xD)()-2592E6],L=[K,(0,_.xD)()],A=IDBKeyRange.bound(W,L),u.yield(_.W5F(m),2)):u.nextAddress!=3?(O=u.yieldResult,c=[],u.yield(_.CL(O,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(h){c.length=0;return _.XH(h.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:A,direction:"prev"},function(J){if(J.getValue()&&c.length<
G)return c.push(J.getValue()),J.delete().then(function(){return J.continue()})})}),3)):u.return(c)})};
yai=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.en(),2);m=G.yieldResult;if(!m||!_.OV()&&!_.F("nwl_init_require_datasync_id_killswitch")||!_.oEV())return G.jumpTo(0);_.bNo=!0;_.nEd.isNwlInitialized=_.bNo;return G.yield(_.gR4().awaitInitialization(),0)})};
zR=function(m,G){_.fJo[m]=!0;var K=_.Sr();K&&K.publish.apply(K,arguments);_.fJo[m]=!1};
fGD=function(){if(_.Fg9()&&!emD){var m=function(K){K=K.data;if(K.op==="serializedGelBatch"){var W=_.fgJ.get(K.key);W&&(_.XpP(K.serializedBatch,W.client,W.resolve,W.networklessOptions,W.isIsolated,W.useVSSEndpoint,W.dangerousLogToVisitorSession,W.requestsOutstanding),_.fgJ.delete(K.key))}},G=_.twG();
G&&(G.addEventListener("message",m),G.onerror=function(){_.fgJ.clear()});
emD=!0}};
xkP=function(){this.relativeTimeStart_=_.jI()};
Xv6=function(m,G){m!=null&&this.append.apply(this,arguments)};
lH=function(){for(var m=Array(36),G=0,K,W=0;W<36;W++)W==8||W==13||W==18||W==23?m[W]="-":W==14?m[W]="4":(G<=2&&(G=33554432+Math.random()*16777216|0),K=G&15,G>>=4,m[W]=_.jaF[W==19?K&3|8:K]);return m.join("")};
Spi=function(){return _.uW("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
lGO=function(){var m=_.Y2.clone(Rmi),G;return(new _.iO(function(K,W){m.onSuccess=function(L){_.Etf(L)?K(new Ukz(L)):W(new zmz("Request failed, status="+_.BO(L),"net.badstatus",L))};
m.onError=function(L){W(new zmz("Unknown request error","net.unknown",L))};
m.onTimeout=function(L){W(new zmz("Request timed out","net.timeout",L))};
G=_.ix("//googleads.g.doubleclick.net/pagead/id",m)})).thenCatch(function(K){if(K instanceof _.uG){var W;
(W=G)==null||W.abort()}return _.KN(K)})};
Bl6=function(m,G,K){K=K===void 0?!1:K;var W,L,A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:_.AH("SOCS",m,34128E3,"youtube.com",!0);if(_.eI)return L=fetch(G,{method:"POST",mode:_.Dw(G),credentials:_.N$(G),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),A=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Dw("/upgrade_visitor_cookie?eom=1"),credentials:_.N$("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),u.yield(Promise.all([L,A]).then(function(h){return h[1]}),5);
fetch(G,{method:"POST",mode:_.Dw(G),credentials:_.N$(G),cache:"no-store",headers:{"Content-Type":"text/plain"}});return u.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Dw("/upgrade_visitor_cookie?eom=1"),credentials:_.N$("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:W=u.yieldResult;u.jumpTo(3);break;case 5:W=O=u.yieldResult;case 3:if(!W.ok)throw Error("wf");return u.yield(W.text(),7);case 7:c=u.yieldResult,
!c.includes('"state_switch":true')&&!K||c.includes("skip_reload_for_test")||window.location.reload(),_.ey(u)}})};
M_O=function(m){return _.Y(function(G){return G.nextAddress==1?G.yield(Bl6(m.socsCookie,m.savePreferenceUrl,!0),2):G.return()})};
TlD=function(m){return _.Y(function(G){return G.nextAddress==1?G.yield(Bl6(m.socsCookie,m.savePreferenceUrl),2):G.return()})};
iAO=function(m){a:{var G="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(G="EMBEDDED_PLAYER_MODE_PFL");var K=m.raw_embedded_player_response;if(!K&&(m=m.embedded_player_response))try{K=JSON.parse(m)}catch(L){break a}if(K)b:{m=m8P;for(var W in m)if(m[W]==K.embeddedPlayerMode){G=m[W];break b}}}return G==="EMBEDDED_PLAYER_MODE_PFL"};
GP6=function(){if(_.F("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("xf");if(!_.kjG())return Error("yf");var m=_.E8("PLAYER_VARS",{});if(_.Y2.get(m,"privembed",!1)=="1")return Error("zf");if(iAO(m))return Error("Af")};
AbD=function(m){m=m.xhr.responseText;if(!_.AV(m,")]}'"))throw new KUs;m=JSON.parse(m.substr(4));if((m.type||1)>1)throw new KUs;m=m.id;HC5(m);WUu=_.og(m);LUz(18E5,2);return m};
gTs=function(m,G){G=new wl6(G);HC5("");WUu=_.Gyl(G);m>0&&LUz(12E4,m-1);throw G;};
LUz=function(m,G){_.MC(function(){lGO().then(AbD,function(K){return gTs(G,K)}).thenCatch(_.Wb)},m)};
qps=function(){var m=GP6();if(m!==void 0)return _.KN(m);WUu||(WUu=lGO().then(AbD).thenCatch(function(G){return gTs(2,G)}));
return WUu};
OAi=function(){var m=document;return Uw(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(G){return"on"+G.toLowerCase()in m})};
cbu=function(m){m.addEventListener("click",function(G){var K=G.target;K&&K.getAttribute("href")&&(K=K.getAttribute("href"),_.Oy(window,K,"_blank"),G.preventDefault(),G.stopImmediatePropagation())})};
YKi=function(){var m=_.mQ();m.info||(m.info={});return m.info};
Bd=function(){return(_.F("csi_use_time_origin")||_.F("csi_use_time_origin_tvhtml5"))&&_.LW.timeOrigin?Math.floor(_.LW.timeOrigin):_.LW.timing.navigationStart};
MJ=function(m){return Math.round(Bd()+m)};
rb6=function(){var m;if(_.F("csi_use_performance_navigation_timing")){var G,K,W,L=_.LW==null?void 0:(m=_.LW.getEntriesByType)==null?void 0:(G=m.call(_.LW,"navigation"))==null?void 0:(K=G[0])==null?void 0:(W=K.toJSON)==null?void 0:W.call(K);L?(L.requestStart=MJ(L.requestStart),L.responseEnd=MJ(L.responseEnd),L.redirectStart=MJ(L.redirectStart),L.redirectEnd=MJ(L.redirectEnd),L.domainLookupEnd=MJ(L.domainLookupEnd),L.connectStart=MJ(L.connectStart),L.connectEnd=MJ(L.connectEnd),L.responseStart=MJ(L.responseStart),
L.secureConnectionStart=MJ(L.secureConnectionStart),L.domainLookupStart=MJ(L.domainLookupStart),L.isPerformanceNavigationTiming=!0,m=L):m=_.LW.timing}else m=_.F("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.LW.timing)):_.LW.timing;return m};
uSP=function(){if(_.LW.getEntriesByType){var m=_.LW.getEntriesByType("paint");if(m=Uw(m,function(K){return K.name==="first-paint"}))return MJ(m.startTime)}var G;
_.F("csi_use_performance_navigation_timing")?G=_.LW.getEntriesByType("first-paint")[0].startTime:G=_.LW.timing.msFirstPaint;return G?Math.max(0,G):0};
pl6=function(){var m=window.location.protocol,G=_.LW.getEntriesByType("resource");G=_.Zb(G,function(K){return K.name.indexOf(m+"//fonts.gstatic.com/s/")===0});
(G=hM6(G,function(K,W){return W.duration>K.duration?W:K}))&&G.startTime>0&&G.responseEnd>0&&(_.KW("wffs",MJ(G.startTime)),_.KW("wffe",MJ(G.responseEnd)))};
Jbq=function(m,G){m=document.querySelector(m);if(!m)return!1;var K="",W=m.nodeName;W==="SCRIPT"?(K=m.src,K||(K=m.getAttribute("data-timing-href"))&&(K=window.location.protocol+K)):W==="LINK"&&(K=m.href);_.cz(document)&&m.setAttribute("nonce",_.cz(document));return K?(m=_.LW.getEntriesByName(K))&&m[0]&&(m=m[0],K=Bd(),_.KW("rsf_"+G,K+Math.round(m.fetchStart)),_.KW("rse_"+G,K+Math.round(m.responseEnd)),m.transferSize!==void 0&&m.transferSize===0)?!0:!1:!1};
D85=function(m,G){_.kS(function(){_.Gz("").info.actionType=m;G&&_.qC("TIMING_AFT_KEYS",G);_.qC("TIMING_ACTION",m);var K=_.jnd(_.E8("TIMING_INFO",{}));Object.keys(K).length>0&&_.Wk(K);K={isNavigation:!0,actionType:_.QnP(_.E8("TIMING_ACTION"))};var W=_.E8("PREVIOUS_ACTION");W&&(K.previousAction=_.QnP(W));if(W=_.E8("CLIENT_PROTOCOL"))K.httpProtocol=W;if(W=_.E8("CLIENT_TRANSPORT"))K.transportProtocol=W;(W=_.gU())&&W!=="UNDEFINED_CSN"&&(K.clientScreenNonce=W);W=BC6();if(W===1||W===-1)K.isVisible=!0;W=
_.uif().loadType==="cold";var L=YKi();W||(W=L.yt_lt==="cold");if(W){K.loadType="cold";W=YKi();L=rb6();var A=Bd(),O=_.E8("CSI_START_TIMESTAMP_MILLIS",0);O>0&&!_.F("embeds_web_enable_csi_start_override_killswitch")&&(A=O);A&&(_.KW("srt",L.responseStart),W.prerender!==1&&_.vVG(A));W=uSP();W>0&&_.KW("fpt",W);W=rb6();W.isPerformanceNavigationTiming&&_.Wk({performanceNavigationTiming:!0},void 0);_.KW("nreqs",W.requestStart,void 0);_.KW("nress",W.responseStart,void 0);_.KW("nrese",W.responseEnd,void 0);
W.redirectEnd-W.redirectStart>0&&(_.KW("nrs",W.redirectStart,void 0),_.KW("nre",W.redirectEnd,void 0));W.domainLookupEnd-W.domainLookupStart>0&&(_.KW("ndnss",W.domainLookupStart,void 0),_.KW("ndnse",W.domainLookupEnd,void 0));W.connectEnd-W.connectStart>0&&(_.KW("ntcps",W.connectStart,void 0),_.KW("ntcpe",W.connectEnd,void 0));W.secureConnectionStart>=Bd()&&W.connectEnd-W.secureConnectionStart>0&&(_.KW("nstcps",W.secureConnectionStart,void 0),_.KW("ntcpe",W.connectEnd,void 0));_.LW&&"getEntriesByType"in
_.LW&&pl6();W=[];if(document.querySelector&&_.LW&&_.LW.getEntriesByName)for(var c in NBE)NBE.hasOwnProperty(c)&&(L=NBE[c],Jbq(c,L)&&W.push(L));if(W.length>0)for(K.resourceInfo=[],c=_.g(W),W=c.next();!W.done;W=c.next())K.resourceInfo.push({resourceCache:W.value})}_.Wk(K);K=_.id();K.preLoggedGelInfos||(K.preLoggedGelInfos=[]);c=K.preLoggedGelInfos;K=_.p3G();W=void 0;for(L=0;L<c.length;L++)if(A=c[L],A.loadType){W=A.loadType;break}if(_.uif().loadType==="cold"&&(K.loadType==="cold"||W==="cold")){W=_.hbf();
L=_.id();L=L.gelTicks?L.gelTicks:L.gelTicks={};for(var u in W)u in L||typeof W[u]==="number"&&_.KW(u,_.AW(u));u={};W=!1;c=_.g(c);for(L=c.next();!L.done;L=c.next())W=L.value,_.rU(K,W),_.rU(u,W),W=!0;W&&_.Wk(u)}_.CJV(!0);u=_.E8("TIMING_ACTION");_.Cn("ytglobal.timingready_")&&u&&_.X3v()&&_.kXJ()&&_.H8d()})()};
tl6=function(m){var G,K,W,L=(W=(K=((G=m.mainDownloadsListEntity)!=null?G:{})[_.wT6])==null?void 0:K.refresh)!=null?W:"",A;m=(A=m.refresh)==null?void 0:A[L];L=m!=null?m:{};return(L==null?0:L.refreshTime)?Number(L==null?void 0:L.refreshTime):0};
FUi=function(m,G){var K=_.KG(m);return G.every(function(W){var L;W=W==null?void 0:(L=W.playbackDataEntity)==null?void 0:L.key;if(!W)return!1;L=_.Pk(_.Vx(W).entityId,"mainVideoEntity");return!!K[L]})};
QlO=function(m){return m.ui.guideIsVisibleButNotPersistent};
aeE=function(m){return m.ui.scrollAtTop};
oTi=function(m){return m.ui.tabGesturesIsActive};
nTO=function(m){m=_.md(m.entities);return _.QqG(m).length};
bAs=function(m,G){if(G){var K;m=(K=_.yx(m.entities,"downloadQualityPickerEntity",G))!=null?K:void 0}else m=void 0;return m};
TR=function(m,G,K){var W;return _.Y(function(L){if(L.nextAddress==1)return L.yield(G(),2);W=L.yieldResult;K(W,m);_.ey(L)})};
vTu=function(){return _.Y(function(m){return m.nextAddress==1?m.yield((GP6()!==void 0?_.KN(Error("Bf")):lGO()).then(function(){return 1},function(G){if(G.message==="Biscotti id is disabled")return 3;
_.nc("Failed fetching bid");return 0}),2):m.return(m.yieldResult)})};
sl5=function(){var m=_.HU("OGJlc2s0Y3l0LWhhdmVuLWVtYmVkLXBsYXllciNxcGxoNg=="),G=_.HU("ZnJhbWUjbWczdXYzanJwdnhqaQ==");return document.querySelector(G+$8q+m)?0:1};
qKO=function(m){var G=document.getElementsByTagName("ytd-enforcement-message-view-model");G.length===0||getComputedStyle(G[0]).display==="none"?m(0,"p.h_"):m(1,"p.h_")};
ETi=function(){return _.FqG(_.bJ)};
HAP=function(){return _.QXv()===0?0:_.aBv()};
IeO=function(){return _.$eo(_.euG([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
kPz=function(){return _.rev(jlP)};
CL6=function(m){_.Y(function(G){switch(G.nextAddress){case 1:return G.yield(TR("b.f_",vTu,m),2);case 2:return G.yield(TR("j.s_",_.ce9,m),3);case 3:return G.yield(TR("r.s_",_.wjG,m),4);case 4:return G.yield(TR("e.h_",kPz,m),5);case 5:if(!_.F("ab_det_sc_inj")){G.jumpTo(6);break}return G.yield(TR("s.i_",_.De9,m),6);case 6:if(_.F("ab_deg_unex_thr")){G.jumpTo(8);break}return G.yield(TR("a.o_",_.JeF,m),8);case 8:if(_.F("ks_get_o_pp")){G.jumpTo(10);break}return G.yield(TR("g.o_",_.pjJ,m),10);case 10:if(_.F("ks_det_gpbl")){G.jumpTo(12);
break}return G.yield(TR("p.i_",_.heM,m),12);case 12:return G.yield(TR("f.i_",_.lav,m),14);case 14:return G.yield(TR("a.b_",_.LqM,m),15);case 15:return G.yield(TR("p.m_",_.TIP,m),16);case 16:if(!_.F("ab_det_el_h_v2")){G.jumpTo(17);break}return G.yield(TR("n.h_",IeO,m),17);case 17:return G.yield(TR("o.p_",ETi,m),19);case 19:return G.yield(TR("e.i_",sl5,m),20);case 20:if(_.F("ab_det_apm"))return G.yield(TR("o.a_",HAP,m),0);G.jumpTo(0)}})};
VlW=function(m){switch(m){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:_.GG(m,"unknown result type")}};
ZAE=function(m,G,K){G=_.CcP[G];K={detected:m===0,source:G.tDc,detectionResult:VlW(m),contentCpn:K};_.Fx("biscottiBasedDetection",K);_.NAk.increment(G.tDc,m);G.pGG!==void 0&&_.qC("CATSTAT",_.jXM(m,G))};
ybO=function(){d8D=0;var m=[_.zv(!0)];PLz&&_.PH(PLz,"yt-window-resized",m)};
eMz=function(){d8D||(d8D=_.Fu.addLowPriorityJob(ybO,200))};
XlO=function(){feG=0;x8i=_.FiX(document);var m=[x8i];PLz&&_.PH(PLz,"yt-window-scrolled",m)};
SKs=function(){feG||(feG=_.Fu.addLowPriorityJob(XlO,200))};
U8u=function(m){m=m===void 0?null:m;RMG.push(_.er(window,"resize",eMz));RMG.push(_.er(window,"scroll",SKs));m&&(PLz=m)};
zM5=function(m){m=m.target.result;m.objectStoreNames.contains("swpushnotificationsstore")&&m.deleteObjectStore("swpushnotificationsstore");m.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
BBP=function(){return leD?Promise.resolve(leD):new Promise(function(m,G){var K=self.indexedDB.open("swpushnotificationsdb");K.onerror=G;K.onsuccess=function(){var W=K.result;if(W.objectStoreNames.contains("swpushnotificationsstore"))leD=W,m(leD);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),BBP()};
K.onupgradeneeded=zM5})};
mZ=function(m){var G=new _.cw("Error accessing DB");return BBP().then(function(K){return new Promise(function(W,L){try{var A=K.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(m);A.onsuccess=function(){var O=A.result;W(O?O.value:null)};
A.onerror=function(){G.params={key:m,source:"onerror"};L(G)}}catch(O){G.params={key:m,
thrownError:String(O)},L(G)}})},function(){return null})};
MlE=function(m,G){var K={};K.key=m;K.value=G;return BBP().then(function(W){return new Promise(function(L,A){try{var O=W.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(K);O.onsuccess=function(){L()};
O.onerror=function(){A()}}catch(c){A(c)}})})};
m$D=function(){var m=_.mo.getLocalStorage();m&&TBq(m,m.mechanism.__iterator__(!0))};
iJs=function(m){_.Y(function(G){if(G.nextAddress==1)return G.yield(m.delete("yt-appshell-assets"),2);_.ey(G)})};
Gq6=function(m){return _.kD((0,_.L$k)(),m)};
WaO=function(){var m;_.Y(function(G){return G.nextAddress==1?G.yield(i2.getInstance(),2):(m=G.yieldResult)?G.yield(Ka5(m),0):G.jumpTo(0)})};
Aj6=function(){var m;_.Y(function(G){return G.nextAddress==1?G.yield(Gu.getInstance(),2):(m=G.yieldResult)?G.yield(Laq(m),0):G.jumpTo(0)})};
wHs=function(m){iJs(m);WaO();Aj6()};
gus=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.wcM(m),2);if(G=W.yieldResult){var L;a:{if(G.headers&&(L=G.headers.get("date"))&&(L=Date.parse(L),!isNaN(L))){L=Math.round((0,_.xD)()-L);break a}L=-1}K=L;if(K>-1)return W.return(K)}return W.return(-1)})};
OJ5=function(){var m=_.Ks.caches,G=_.IP("IS_SHELL_LOAD"),K,W;_.Y(function(L){if(L.nextAddress==1)return K=-1,G?L.yield(gus(m),3):(W=Bd(),K=Math.round((0,_.xD)()-W),L.jumpTo(2));L.nextAddress!=2&&(K=L.yieldResult);K>=0&&K<2147483648&&_.g9({appInstallDataAgeMs:K});_.ey(L)})};
cjq=function(m){var G=_.jU(_.Ks.location.href),K={};"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(W){var L=G.JSC$10339_queryData_.getValues(W);if(L==null?0:L.length)K[W]=L});
return _.$y(m,new Map(Object.entries(K)))};
YB6=function(m){return _.ofv(_.a2G(m&16777215))<.5};
rji=function(m){m=m.match(/(.*)::.*::.*/);if(m!==null)return m[1]};
uAP=function(m){if(_.nf6()){var G=Object.keys(window.localStorage);G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=rji(K);W===void 0||m.includes(W)||self.localStorage.removeItem(K)}}};
hJP=function(){if(!_.nf6())return!1;var m=_.g8(),G=Object.keys(window.localStorage);G=_.g(G);for(var K=G.next();!K.done;K=G.next())if(K=rji(K.value),K!==void 0&&K!==m)return!0;return!1};
pHz=function(m){return MlE("NotificationsDisabled",m)};
Jj5=function(){var m=_.zf("service_worker_scope");try{return navigator.serviceWorker.getRegistration(m)}catch(G){return Promise.reject(G)}};
NUW=function(){return Notification.permission!="granted"?Promise.resolve():Jj5().then(function(m){return m?m.pushManager.getSubscription().then(function(G){if(G)return Promise.resolve();G={userVisibleOnly:!0,applicationServerKey:_.T9("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return m.pushManager.subscribe(G).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
D$z=function(m){return Jj5().then(function(G){if(!G||!G.active)return Promise.reject(new _.cw("serviceworker.postMessage",m,G));try{return G.active.postMessage(m),Promise.resolve()}catch(K){return Promise.reject(K)}})};
tD6=function(){D$z({type:"notifications_register",data:_.E8("ID_TOKEN")})};
Fa6=function(m){return!(!m||!m.pushManager)};
QQD=function(){return Jj5().then(Fa6).catch(function(){return!1})};
awD=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?QQD():Promise.resolve(!1)};
bJi=function(){var m={isWide:_.LL.get("wide","0")==="1"},G=_.M$();if(G=G.getFlag(165)||G.getFlag(174))m.theme=_.Ng(!0);if(_.f2f()){var K=_.JK()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";m.systemTheme=K}!G&&_.F("parent_tools_enable_app_settings")&&_.PO(window.location.href).theme!==void 0&&(m.theme=_.Ng());if((G=ou5)?!_.Y2.equals(G,m):m)G={currentValue:m},nu6&&(G.timeSinceLastSnapshotSecs=Math.round(((0,_.xD)()-nu6)/1E3)),ou5&&(G.previousValue=ou5),_.Fx("appSettingsCaptured",G),ou5=
m,nu6=(0,_.xD)()};
vu6=function(){if(!_.IP("LOGGED_IN"))return Promise.resolve(!1);var m=_.zf("service_worker_push_force_notification_prompt_tag");return m?mZ("PromptTags").then(function(G){if(!G)return!0;var K=[];try{K=JSON.parse(G)}catch(W){return!1}return K&&K.indexOf(m)==-1}):Promise.resolve(!1)};
$$5=function(){var m=_.U8("service_worker_push_prompt_delay_microseconds");return m?mZ("PromptTime").then(function(G){return Promise.resolve(Date.now()-m>(G||0))}):Promise.resolve(!0)};
sQ6=function(){var m=_.U8("service_worker_push_logged_out_prompt_watches");return m==-1?Promise.resolve(!1):mZ("WatchCount").then(function(G){return G>=m})};
qBD=function(){var m=_.Hp(document,"yt-push-prompt-modal-bg");m&&_.mX(m)};
EuP=function(){return _.U8("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):mZ("PromptCount").then(function(m){m||(m=0);return Promise.resolve(m<_.U8("service_worker_push_prompt_cap"))})};
HJu=function(m){return _.IP("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.IP("LOGGED_IN")&&(m===void 0?0:m)?vu6().then(function(G){if(G)return!0;G=[EuP(),$$5()];_.IP("LOGGED_IN")||G.push(sQ6());return Promise.all(G).then(function(K){return K.every(function(W){return W})})}):Promise.resolve(!1)};
Iwq=function(){mZ("PromptCount").then(function(m){return MlE("PromptCount",m+1)}).then(function(){return MlE("PromptTime",Date.now())}).then(function(){var m=_.zf("service_worker_push_force_notification_prompt_tag");
if(m)return mZ("PromptTags").then(function(G){var K=[];if(G)try{K=JSON.parse(G)}catch(W){return!1}K||(K=[]);K.push(m);return MlE("PromptTags",JSON.stringify(K))})})};
kq6=function(){jQG||qBD()};
CWD=function(m){m.style.zIndex=2147483648;m.style.pointerEvents="auto";m.style.backgroundColor="rgba(0, 0, 0, 0.6)";m.style.width="100%";m.style.height="100vh";m.style.position="absolute";m.style.top="0";m.style.left="0";m.style.border="none"};
VD6=function(){var m=_.Hp(document,"yt-push-prompt-modal-bg");jQG=_.F("service_worker_push_prompt_modal_ignore_click");m?CWD(m):(m=_.r3("div",{id:"yt-push-prompt-modal-bg"}),CWD(m),document.body.appendChild(m),_.ZNo(document,"click",kq6))};
ZJ6=function(){var m=arguments;_.F("service_worker_push_prompt_modal_enable")&&VD6();return Notification.requestPermission().then(function(G){qBD();var K=document.getElementById("ticker");K&&(K.className=K.classList.remove("show"));if(G=="granted")return NUW().then(function(){pHz(!1);tD6();return Promise.resolve(!0)});
G=="denied"&&tD6();return Promise.resolve(!1)}).catch(function(){qBD();
return Promise.reject.apply(Promise,_.Bz(m))})};
d$D=function(m){m=m===void 0?!1:m;var G=_.QL().client;if(G&&G.browserVersion){var K=G.browserVersion,W=G.browserName=="CHROME"&&_.hV(K,"50.0.0")<0;G=G.browserName=="OPERA"&&_.hV(K,"42.0.0")<0;if(W||G)return Promise.resolve()}return awD().then(function(L){if(!L)return Promise.resolve();L=NUW().then(function(){return D$z({type:"notifications_check_registration",data:_.E8("ID_TOKEN")})});
return Notification.permission!="default"?L.catch(function(){}):L.then(function(){return HJu(m)}).then(function(A){if(A)return Iwq(),ZJ6().then(function(){})}).catch(function(){})})};
PW6=function(m){return Fa6(m)?d$D():Promise.resolve()};
yji=function(m){var G=m.installing||m.waiting;return m.active||!G?Promise.resolve(m):new Promise(function(K){var W=function(L){L=L.target;if(L.state==="activated"||L.state==="redundant")G.removeEventListener("statechange",W),K(m)};
G.addEventListener("statechange",W)})};
eJE=function(){var m=new _.u$d("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Xw(m,{mainAppWeb:_.at()});var G=_.bOF;_.F("service_worker_forward_exp_params")&&(G=cjq(G));try{var K=_.l2f(G).catch(function(){_.Sq(m,"FAILURE");return new Promise(function(){})});
_.F("service_worker_push_enabled")&&K.then(function(W){_.Sq(m,"SUCCESS");return W}).then(yji).then(PW6)}catch(W){if(_.Sq(m,"FAILURE"),W.name!=="SecurityError")throw W;
}};
fwi=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&eJE()};
Ki=function(m,G,K,W,L){var A={};G&&(A[G]=K);W?A.errorType=W:L&&(A.errorReason=L);_.Fx(m,A);_.Qb()};
x$u=function(m,G){var K={};G&&(K.serializedYpcFamilyCreateLoggingParams=G);_.Fx(m,K);_.Qb()};
XHO=function(m,G){var K={};K.serializedYpcRefundFlowLoggingParams=G;m&&(K.eventType=m);_.Fx("ypcRefundFlowEvent",K);_.Qb()};
SB5=function(m){m&&_.MjJ("transactionFlowSucceeded",m)};
RJs=function(){Ki("ypcRedeemFlowStarted")};
U$W=function(m){Ki("ypcRedeemFlowFailed",void 0,void 0,void 0,m)};
zJG=function(m){m&&Ki("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",m,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
W5=function(m){return function(G,K){var W=m||K.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(G,K,{get:function(){var L;return this.$?this.$[W]:(L=_.Rt(this))==null?void 0:L.querySelector("#"+W)},
enumerable:!0,configurable:!0})}};
lwu=function(m){if(m=_.hsd(m)){var G;(G=m.sources)!=null&&G[0]?(G=_.Jyd(m),G=G<1?"VERTICAL":G>1?"HORIZONTAL":"SQUARE"):G=void 0;return G}};
BUz=function(m){return(m=_.hsd(m))?_.Jyd(m):0};
MDi=function(m){var G,K,W,L,A,O,c;_.Y(function(u){if(u.nextAddress==1)return u.yield(_.YFo(),2);if(u.nextAddress!=3){if(!u.yieldResult)return u.return(!1);G=[];return u.yield(_.kE.keys(),3)}K=u.yieldResult;W=_.g(K);for(L=W.next();!L.done;L=W.next())A=L.value,O=_.OEd(A),c=O.datasyncId,!c||m.includes(c)||G.push(_.kE.delete(A));return u.return(Promise.all(G).then(function(h){return h.some(function(J){return J})}))})};
TUW=function(){var m,G,K,W,L,A,O;return _.Y(function(c){if(c.nextAddress==1)return c.yield(_.YFo(),2);if(c.nextAddress!=3){if(!c.yieldResult)return c.return(!1);m=_.g8("cache contains other");return c.yield(_.kE.keys(),3)}G=c.yieldResult;K=_.g(G);for(W=K.next();!W.done;W=K.next())if(L=W.value,A=_.OEd(L),(O=A.datasyncId)&&O!==m)return c.return(!0);return c.return(!1)})};
mcz=function(m,G){return _.yx(m.entities,"inlineExpansionEntity",G)};
iWD=function(m,G){return _.yx(m.entities,"timedMarkersListSyncEntity",G)};
GzE=function(m,G){return _.yx(m.entities,"liveReactionsDataEntity",G)};
KQ5=function(m,G){m=_.yx(m.entities,"booleanEntity",G);return!(!m||!m.value)};
WQ6=function(m,G){var K=_.gU();K&&m&&_.tW(K,_.m5(m),G)};
LQ5=function(m){return m.watch.isWatchActive};
AWE=function(m){return m.watch.isLearningJourneyActive};
wkP=function(m){return m.watch.watchWindowSize};
gti=function(m){return!_.u1d(m)};
Li=function(m){return m.watch.watchScrollTop};
OWP=function(m){return m.watch.isLiveChatCollapsed};
cWi=function(m,G){return _.yx(m.entities,"flowStateEntity",G)};
YG5=function(){var m=_.xS().resolve(_.fn(_.sp0));return m?m.getCurrentTime():0};
rWD=function(m,G){m={videoId:m};G&&(m.playlistId=G);return m};
uv6=function(){var m,G,K,W,L,A,O,c,u,h,J,N,D,t;return _.Y(function(a){switch(a.nextAddress){case 1:m={},G=_.p_d(),K=_.g(Object.entries(G)),W=K.next();case 4:if(W.done){a.jumpTo(3);break}L=W.value;A=_.g(L);O=A.next().value;c=A.next().value;u=O;h=c;if(!h){a.jumpTo(5);break}return a.yield(h(),8);case 8:m[u]=a.yieldResult;case 5:W=K.next();a.jumpTo(4);break;case 2:J=_.g(),N=J.next();case 9:if(N.done){a.jumpTo(3);break}D=N.value;t=G[D];if(!t){a.jumpTo(10);break}return a.yield(t(),13);case 13:m[D]=a.yieldResult;
case 10:N=J.next();a.jumpTo(9);break;case 3:return a.return(m)}})};
hHD=function(){var m;_.Y(function(G){if(G.nextAddress==1)return G.yield(uv6(),2);m=G.yieldResult;return G.yield(navigator.clipboard.writeText(JSON.stringify(m,null,2)),0)})};
pkE=function(m,G){if(m&&G){var K=_.RL();K().set(m,G);_.oco(K())}};
JW6=function(m,G){if(m&&G){var K=_.RL();K().set(m,G);_.oco(K())}};
N9s=function(m,G){return _.yx(m.entities,"superThanksSelectedTierEntity",G)};
Dc6=function(m,G){return _.yx(m.entities,"contextNoteUserRatingEntityPayload",G)};
tOu=function(){_.F("web_watch_log_theater_mode")&&_.V3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
FQG=function(m,G,K){if(!m.includes("START_TIME_PLACEHOLDER")||!m.includes("END_TIME_PLACEHOLDER"))return m;var W=new Date(0),L=new Date(0);W.setUTCMilliseconds(G);L.setUTCMilliseconds(K);return m.replace("START_TIME_PLACEHOLDER",_.QY(W,7)).replace("END_TIME_PLACEHOLDER",_.QY(L,7))};
Q75=function(m,G,K){var W=K.minimumRowsOfVideosBetweenSections===void 0?1:K.minimumRowsOfVideosBetweenSections;return m<(K.minimumRowsOfVideosAtStart===void 0?2:K.minimumRowsOfVideosAtStart)||G!==null&&m-G<=W?!1:!0};
aQD=function(m,G){var K=0,W=0;m=_.g(m);for(var L=m.next();!L.done;L=m.next()){var A=L.value;if(A.richItemRenderer)A.richItemRenderer.rowIndex=W,A.richItemRenderer.colIndex=K++,K===G&&(K=0,W++);else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.rowIndex=W,A.richGroupRenderer.colIndex=K,K+=A.richGroupRenderer.numColumns,K===G&&(K=0,W++);else if(A.richSectionRenderer){var O=L=void 0;if(A=_.Q((L=A)==null?void 0:(O=L.richSectionRenderer)==null?void 0:O.content,_.dtP))A.rowIndex=
W++}}};
otP=function(m,G){var K=G.contentElement;G=G.rendererToTagNameMap;if(K&&G&&G.size!==0){for(var W=new Map,L=_.g(K.children),A=L.next();!A.done;A=L.next()){A=A.value;var O=A.tagName.toLowerCase(),c=W.get(O);c||(c=[],W.set(O,c));c.push(A)}if(W.size!==0)for(L=Math.min(m.length,K.children.length),A=new Map,O=0;O<L;O++){c=Object.keys(m[O])[0];c=G.get(c);if(!c)break;var u=A.get(c);u===void 0&&(u=0,A.set(c,u));var h=W.get(c);if(!h||u>=h.length)break;A.set(c,u+1);c=h[u];u=K.children[O];u!==c&&(_.bK=!0,_.$E.set(c,
!0),K.insertBefore(c,u),_.$E.delete(c),_.bK=!1)}}};
nt5=function(m,G,K,W,L,A,O){W=W===void 0?{}:W;if(!m||!m.length)return{orderedContent:[]};m=m.slice();var c=[],u=[];L=null;for(var h=0,J=function(z){u.sort(function(U,l){return l.skippedOnRow-U.skippedOnRow});
for(var X,f=(X=u.shift())==null?void 0:X.content;f;)!f.richSectionRenderer&&z||c.push(f),X=void 0,f=(X=u.shift())==null?void 0:X.content},N=void 0,D=void 0,t=new Set;m.length>0||u.length>0;){for(var a=[],v=G;v>0;){var I=void 0,Z=void 0,k=(Z=u[0]&&u[0].skippedOnRow<h?(I=u.shift())==null?void 0:I.content:void 0)!=null?Z:m.shift();
if(!k)break;if(k.richItemRenderer)I=k.richItemRenderer.targetId,Z=void 0,I&&((Z=O)==null?0:Z.has(I))&&(Z=O.get(I),!N||Z&&Z.timestamp>N.timestamp)&&(N=Z,D&&t.add(D),D=I),a.push(k),v--;else if(k.richGroupRenderer&&k.richGroupRenderer.numColumns!==void 0)k.richGroupRenderer.numColumns<=v?(a.push(k),v-=k.richGroupRenderer.numColumns):v===G&&k.richGroupRenderer.numColumns>G?(a.push({richGroupRenderer:Object.assign({},k.richGroupRenderer,{numColumns:G})}),v=0):u.push({content:k,skippedOnRow:h});else if(k.richSectionRenderer)if(Q75(h,
L,W)&&v===G){c.push(k);L=h;h++;continue}else u.push({content:k,skippedOnRow:h});else if(k.continuationItemRenderer){J(!0);c.push(k);v=0;break}if(v===0)c.push.apply(c,_.Bz(a));else if(!K&&m.length===0){J(!1);c.push.apply(c,_.Bz(a));v=0;break}}h++;N&&(c.push(N.content),h++);D=N=void 0}aQD(c,G);A&&otP(c,A);return{orderedContent:c,pinnedContentNotShownTargetIds:t}};
bWu=function(m){return m.shorts.isSmallScreenSqueezeback};
vts=function(m){return m.shorts.isPlaybackStarted};
s7z=function(){if(_.F("kevlar_home_skeleton")&&!$cq){var m=document.querySelector("#home-page-skeleton");m&&(_.Yt("hgcr"),_.mX(m),$cq=!0)}};
HWP=function(){if(_.kjG()){var m=_.E8("PLAYER_VARS",{});if(_.Y2.get(m,"privembed",!1)!="1"&&!iAO(m)){var G=function(){qGW=!0;"google_ad_status"in window?_.qC("DCLKSTAT",1):_.qC("DCLKSTAT",2)};
try{_.pJ(_.$pq,G)}catch(K){}Eti.push(_.Fu.addLowPriorityJob(function(){if(!(qGW||"google_ad_status"in window)){try{_.vqs(_.$pq.toString(),G)}catch(K){}qGW=!0;_.qC("DCLKSTAT",3)}},5E3))}}};
IQ6=function(m){return!!m.getOptions("captions")};
j7i=function(m){return(m=m.getOption("captions","track"))?!!m.displayName:!1};
kzD=function(m){return Uw(m,function(G){return G.languageCode==="en"})};
Cdi=function(m){var G=Ak;if(j7i(m))m.setOption("captions","stickyLoading",{}),m.setOption("captions","track",{});else{var K=Uw(_.IKG(m),function(W){return W.displayName===G});
m.setOption("captions","track",K)}};
VOz=function(m,G){return{popup:{searchSuggestionReportDialog:{searchQuery:m,title:_.zq("SBOX_INAPPROPRIATE_TITLE"),suggestions:G,categoryLabel:_.zq("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.zq("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.zq("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.zq("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.zq("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.zq("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.zq("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.zq("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.zq("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.zq("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
ZWD=function(m){var G=_.M$();if(G.getFlag(202))G=G.getFlag(201);else{var K;G=(m==null?void 0:(K=m.config)==null?void 0:K.settingOnByDefault)!==void 0?m.config.settingOnByDefault:!_.Zk("web_shorts_cinematics_disabled_by_default")}return G};
dcP=function(m){var G=_.M$();_.Tq(0,201,m);_.Tq(0,202,!0);G.save()};
Pdu=function(m){var G,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z;return _.Y(function(X){switch(X.nextAddress){case 1:return X.yield(_.SO(),2);case 2:return(G=X.yieldResult)?X.yield(_.Q0v(G),3):X.return();case 3:K=X.yieldResult;if(!K)return X.return();L=((W=K.offlineVideos)==null?void 0:W.length)||0;O=((A=K.offlinePlaylists)==null?void 0:A.length)||0;if(L===0&&O===0)return X.return();c=0;if(K.offlineVideos)for(u=_.g(K.offlineVideos),h=u.next();!h.done;h=u.next())J=h.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
J.videoState&&(c+=1);m.offline_videos_count=L.toString();_.F("kevlar_log_offline_current_network_type_ks")||(m.offline_current_network_type=(N=_.gR9())!=null?N:"CONN_INVALID");_.F("kevlar_log_updated_time_for_smart_downloads")&&(D=_.$R().getState().entities,t=_.w6(D),a=tl6(D),m.offline_smart_downloads_last_sync_time_ms=t.toString(),m.offline_smart_downloads_next_sync_time_ms=a.toString());m.offline_videos_playable=c.toString();m.offline_playlists_count=O.toString();K.offlineVideos&&(v=K.offlineVideos.reduce(function(f,
U){U.downloadedBytes&&(f+=Number(U.downloadedBytes));return f},0).toString())&&(m.offline_used_disk_space_bytes=v);
if(!((I=navigator)==null?0:(Z=I.storage)==null?0:Z.estimate)){X.jumpTo(4);break}return X.yield(navigator.storage.estimate(),5);case 5:k=X.yieldResult,m.offline_free_disk_space_bytes=(((z=k)==null?void 0:z.quota)||0).toString();case 4:m.offline_client_state=JSON.stringify(K),_.ey(X)}})};
yW6=function(m){m=m.match(/(.*)::.*::.*/);if(m!==null)return m[1]};
eHE=function(m){if(_.eXJ()){var G=Object.keys(window.sessionStorage);G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=yW6(K);W===void 0||m.includes(W)||self.sessionStorage.removeItem(K)}}};
fQE=function(){if(!_.eXJ())return!1;var m=_.g8(),G=Object.keys(window.sessionStorage);G=_.g(G);for(var K=G.next();!K.done;K=G.next())if(K=yW6(K.value),K!==void 0&&K!==m)return!0;return!1};
xcG=function(m){if(!m)return 0;var G=m.getPresentingPlayerType(),K=m.getVideoData();return K&&K.isLive?(m=m.getProgressState(G),m.seekableEnd-m.seekableStart):m.getDuration(G)};
wf=function(m,G){_.Km(G,m,function(){return XkG[G]},function(K){XkG[G]=K;
if(!_.F("mweb_player_ve_show_ks")){var W=_.gU(0);W&&K&&_.Qx(W,K)}})};
gf=function(m){(m=XkG[m])&&_.fK(_.l1(),m)};
SG6=function(m,G){for(var K=_.g(Object.keys(m)),W=K.next();!W.done;W=K.next())if(W=W.value,m[W]!==G[W])return!1;return!0};
RHD=function(){return document.getElementById("player-control-overlay")};
UcD=function(m){m!==-1&&!_.F("player_controls_log_creation_killswitch")&&RHD()&&(_.Yt("pcu_cs",m),_.Yt("pcu_ce"))};
zHD=function(m){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:m}}]}}}};
lQE=function(m,G,K,W){var L=_.F("web_enable_chat_autoscroll_to_user_turn")?"user_turn_message_id-"+Date.now():void 0;G=Object.assign({},{text:G,hasGradientBackground:K},W&&{backgroundStyle:W},L&&{itemTargetId:L});L=_.F("web_enable_chat_autoscroll_to_user_turn")&&L?{scrollToItem:{scrollPosition:"SCROLL_POSITION_START",item:{itemTargetId:L,sectionTargetId:"youchat_section_list"}}}:void 0;return{listMutationCommand:{operations:Object.assign({},{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:G}],
insertByPositionInSection:{sectionTargetId:m,position:"INSERTION_POSITION_LAST"}}}]},L?{scrollConfig:L}:{})}}};
B9G=function(m){return{continuationCommand:{token:m,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}};
MO6=function(m,G){G.stack&&(m.stack+="\n"+G.stack);return m};
T9O=function(){this.isInputValid_=!0;this.JSC$19573_streamPos_=0;this.leftoverInput_=""};
m_D=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19576_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
WdD=function(m){var G=iGi(m,"Content-Type");if(!G)return null;G=G.toLowerCase();if(G.startsWith("application/json"))return G.startsWith("application/json+protobuf")?new GvW:new _.Wl;if(G.startsWith("application/x-protobuf")){m=iGi(m,"Content-Transfer-Encoding");if(!m)return new m_D;if(m.toLowerCase()=="base64")return new Kd5}return null};
uQE=function(m,G,K,W){var L=new Ldq(function(c,u){return AMq.has(u)?c.sentinel==="gal"&&c.event!==void 0:!1},function(c){c.event?(c=wU6(c.event),c=!c||gRG(W,c)?!0:_.BX(m.lastEvent,OE,2,c5)?!_.BX(c,Y7,1,c5)&&!_.BX(c,OE,2,c5):!_.BX(c,Y7,1,c5)&&!_.BX(c,OE,3,c5)):c=!0;
return c});
K=_.$y(m.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",OGq(K)]]));if(m.nestedOrigins!==void 0)for(var A=_.g(m.nestedOrigins),O=A.next();!O.done;O=A.next())K=_.$y(K,new Map([["origin",O.value]]));return cM6(L,K,G).then(function(c){c=YvP(c.event);if(_.BX(c,Y7,1,c5)){var u,h=(u=_.Yi(c,Y7,1,c5))==null?void 0:_.gL(u,2);h&&W.JSC$19628_logErrorEvent(rM6(h));u=_.Yi(c,Y7,1,c5);_.gL(u,2)===4?(c=_.Yi(c,Y7,1,c5),c={statusCode:11,statusMessage:_.wL(c,
3)}):(c=_.Yi(c,Y7,1,c5),c={statusCode:12,statusMessage:_.wL(c,3)});return c}_.BX(c,OE,3,c5)?(c=_.Yi(c,OE,3,c5),c={statusCode:1,consentLanguageKeys:_.wL(c,2)}):c={statusCode:1};return c}).catch(function(c){return c.errorCode!==void 0?{statusCode:c.errorCode,
statusMessage:c.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
N6O=function(m){var G={};if(m===void 0||m===null)return G;m.getToken()!==void 0&&h95(m.getToken())&&h95(m.getToken()).length>0&&(G.scopes=new Set(h95(m.getToken())));m.getToken()!==void 0&&pUi(m.getToken())&&pUi(m.getToken()).length>0&&(G.capabilities=new Set(pUi(m.getToken())));_.wL(m,3)!==void 0&&(G.consistencyKey=_.wL(m,3));m.getName()!==void 0&&m.getName()!==""&&(G.linkName=m.getName());_.l5(m,JM5,4)&&(m=_.RG(m,JM5,4),m=Object.assign({},_.wL(m,1)&&{userId:_.wL(m,1)},_.wL(m,2)&&{displayName:_.wL(m,
2)},_.wL(m,3)&&{email:_.wL(m,3)},_.wL(m,5)&&{username:_.wL(m,5)},_.wL(m,4)&&{profilePicture:_.wL(m,4)}),G.profile=m);return G};
D_O=function(m,G){var K=m.flowParams,W;return{serviceId:K.serviceId,sessionId:K.sessionId,currentFlow:m.currentFlow,googleScopesString:G,linkingSessionSerialized:m.session.serialize(),consentLanguageKeys:K.consentLanguageKeys,callerState:m.callerState,dynamicUrlParameters:K.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(W=K.partnerConfigMinReadTimestamp)==null?void 0:W.serialize()}};
oRP=function(m){var G=m.googleScopes!==void 0?Array.from(m.googleScopes).join(","):"";t8E(D_O(m,G),m.config.localStorage);G=Fdu(m);return G===null?Promise.resolve(QW6):G.start().then(function(K){var W,L=(W=K.link)==null?void 0:W.consistencyKey;return K.statusCode===1&&m.googleScopes!==void 0&&m.googleScopes.size>0&&L!==void 0?(W=m.flowParams,alq(W.serviceId,W.sessionId,m.googleScopes,L,W.galService,m.config,K)):K})};
bGs=function(m){var G=Fdu(m);return G===null?Promise.resolve(nRP({statusCode:7,statusMessage:"Failed to create flow object"},m.callerState)):G.complete().then(function(K){var W,L=(W=K.link)==null?void 0:W.consistencyKey;return K.statusCode===1&&m.googleScopes!==void 0&&m.googleScopes.size>0&&L!==void 0?(W=m.flowParams,alq(W.serviceId,W.sessionId,m.googleScopes,L,W.galService,m.config,K)):nRP(K,m.callerState)},function(K){return nRP({statusCode:12,
statusMessage:"Failed to complete the flow: "+K.message},m.callerState)})};
alq=function(m,G,K,W,L,A,O){return vRO(L,{serviceId:m,sessionId:G,googleScopes:K,consistencyKey:W}).then(function(){return O},function(c){return L.deleteLink({serviceId:m,
sessionId:G,accountLinkingEntryPoint:A.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+c.message}},function(u){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+u.message}})})};
Fdu=function(m){switch(m.currentFlow){case 1:var G=m.flowParams;m=_.RG(m.session,$_6,1);return sWG.createOAuthFlow(G,m);case 2:case 3:return G=m.flowParams,m=_.RG(m.session,qvs,6),ERD.createStreamlinedFlow(G,m);default:return null}};
Ili=function(m,G){m===2&&(m=3);var K=0;HGP.indexOf(m)!==-1&&(K=HGP.indexOf(m)+1);for(m=K;m<HGP.length;m++)if(G.has(HGP[m]))return HGP[m]};
CwW=function(m){var G=m.serviceId;var K=m.sessionId;var W=m.config;var L=m.galService;var A=m.capabilities;var O=m.scopes;var c=m.loginHint;var u=m.callerState;var h=m.consentLanguageKeys;var J=m.linkName;var N=m.dynamicUrlParameters;var D=m.partnerConfigMinReadTimestamp;m=W.dataUsageNoticeConfig?W.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return L.startLinkingSession({serviceId:G,sessionId:K,capabilities:A,scopes:O,loginHint:c,callerState:u,supportedFlows:jWD(W.supportedFlows),completionUrl:W.completionUrl,
accountLinkingEntryPoint:W.accountLinkingEntryPoint,consentLanguageKeys:h,dataUsageNoticeConfig:m,linkName:J,dynamicUrlParameters:N,partnerConfigMinReadTimestamp:D}).then(function(t){return new kv6(G,K,W,L,t,void 0,u,h,N,D)})};
e9P=function(m,G,K){var W=(new V8D(G.localStorage)).getSession(m);if(W===null)return Promise.resolve({statusCode:2});ZGu(m,G.localStorage);var L=d_6(W.linkingSessionSerialized),A=W.googleScopesString!==""&&W.googleScopesString!==void 0?new Set(W.googleScopesString.split(",")):void 0,O=W.partnerConfigMinReadTimestampSerialized?Pwq(W.partnerConfigMinReadTimestampSerialized):void 0;return yMD(new kv6(m,W.sessionId,G,K,L,A,W.callerState,W.consentLanguageKeys,W.dynamicUrlParameters,O),W.currentFlow,W.consentLanguageKeys)};
t8E=function(m,G){G=new V8D(G);G.storage!==null&&G.storage.set("SAVED_SESSION",m)};
ZGu=function(m,G){G=new V8D(G);if(G.storage!==null){var K=G.storage.get("SAVED_SESSION");K!==void 0&&K.serviceId===m&&G.storage.remove("SAVED_SESSION")}};
jWD=function(m){var G=new Set;m=_.g(m);for(var K=m.next();!K.done;K=m.next())K=K.value,K!==1&&fli.has(K)&&G.add(fli.get(K));return G};
nRP=function(m,G){G!==void 0&&(m.callerState=G);return m};
x_s=function(m){switch(m){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
R9P=function(m){return new XUD(m,new Svu(m))};
llz=function(m,G){G=G===void 0?!1:G;var K=document.createElement("div");m&&(K.style.transform="scaleX(-1)");K.style.backgroundColor=G?"rgba(138,180,248,.24)":"#e8f0fe";K.style.height="4px";K.style.overflow="hidden";K.style.position="absolute";K.style.top="0";K.style.width="100%";K.style.zIndex="1500";K.setAttribute("aria-label","Loading");K.setAttribute("aria-live","polite");m=document.createElement("style");m.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  }";
K.appendChild(m);m=U_q();m.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";m.style.left="-145.166611%";var W=z9E(G);W.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";m.appendChild(W);K.appendChild(m);m=U_q();m.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";m.style.left="-54.888891%";G=z9E(G);G.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
m.appendChild(G);K.appendChild(m);return K};
U_q=function(){var m=document.createElement("div");m.style.height="100%";m.style.position="absolute";m.style.transformOrigin="top left";m.style.width="100%";return m};
z9E=function(m){var G=document.createElement("span");G.style.borderTop=m?"4px solid #669df6":"4px solid #4285f4";G.style.display="inline-block";G.style.position="absolute";G.style.width="100%";return G};
B6E=function(m){return m==null?void 0:_.hn0(m).valueOf()};
irW=function(m){var G=document.body,K=!1,W=function(){K||(K=!0,M8O(L,A),setTimeout(function(){G.removeChild(A);G.removeChild(L)},150))},L=T66(m,getComputedStyle(G).direction==="rtl",W),A=mgE(W);
M8O(L,A);G.appendChild(A);G.appendChild(L);window.requestAnimationFrame(function(){A.style.opacity="1";L.style.opacity="1";L.style.transform="translate(-50%, -50%) scale(1)";L.children[0].focus()})};
T66=function(m,G,K){var W=document.createElement("div");W.style.position="fixed";W.style.alignItems="center";W.style.backgroundColor=m?"rgb(32, 33, 36)":"white";W.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";W.style.display="flex";W.style.flexDirection="column";W.style.justifyContent="center";W.style.left="50%";W.style.top="50%";W.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";W.style.zIndex="2002";document.body.clientWidth>=
660?(W.style.borderRadius="8px",W.style.minHeight="220px",W.style.maxHeight="90%",W.style.maxWidth="90%",W.style.minWidth="540px"):(W.style.height="100%",W.style.width="100%");W.setAttribute("aria-label","Error");W.setAttribute("aria-modal","true");W.setAttribute("role","alertdialog");W.addEventListener("keydown",function(A){A.key==="Escape"&&K()});
G=Gh6(m,G,K);W.appendChild(KoW(G));W.appendChild(G);var L=document.createElement("img");L.src=m?"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";L.style.height="72px";L.style.width="72px";L.style.color="#9aa0a6";L.setAttribute("alt","");W.appendChild(L);L=document.createElement("h1");L.textContent="Something went wrong.  Try again.";
L.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";L.style.lineHeight="24px";L.style.fontSize="16px";L.style.textAlign="center";L.style.letterSpacing="0.1px";L.style.color=m?"rgb(232,234,237)":"#3c4043";W.appendChild(L);W.appendChild(KoW(G));return W};
Gh6=function(m,G,K){var W=document.createElement("button");W.style.backgroundColor="transparent";W.style.border="none";W.style.borderRadius="50%";W.style.cursor="pointer";W.style.outline="none";W.style.padding="12px";W.setAttribute("aria-label","Close dialog");W.style.position="absolute";W.style.top="0";G?W.style.right="0":W.style.left="0";W.addEventListener("focus",function(){W.style.backgroundColor=m?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
W.addEventListener("blur",function(){W.style.backgroundColor="transparent"});
W.addEventListener("mouseenter",function(){W.style.backgroundColor=m?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
W.addEventListener("mouseleave",function(){W.style.backgroundColor="transparent"});
W.addEventListener("click",K);W.addEventListener("keydown",function(L){L.key!=="Enter"&&L.key!=="Space"||K()});
G=document.createElement("img");G.src=m?"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";G.style.display="block";G.style.height="24px";G.style.width="24px";G.setAttribute("alt","");W.appendChild(G);return W};
KoW=function(m){var G=document.createElement("div");G.setAttribute("tabindex","0");G.setAttribute("aria-hidden","true");G.addEventListener("focus",function(){return void m.focus()});
return G};
mgE=function(m){var G=document.createElement("div");G.style.backgroundColor="rgba(32,33,36,0.6)";G.style.bottom="0";G.style.left="0";G.style.position="fixed";G.style.right="0";G.style.top="0";G.style.transition=" opacity 150 ms linear";G.style.zIndex="2001";G.addEventListener("click",m);return G};
M8O=function(m,G){G.style.opacity="0";m.style.opacity="0";m.style.transform="translate(-50%, -50%) scale(0.8)"};
WoE=function(m,G){m.sandbox&&m.sandbox.add&&(m.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),m.sandbox.add("allow-downloads"));m.src=G};
rf=function(m){this.JSC$19816_value_=void 0;this.childNodes_={};if(m){var G=_.lDS(m);m=_.E5(m);for(var K=0;K<G.length;K++)this.set(G[K],m[K])}};
u2=function(m){LoD.call(this,m)};
cK6=function(m,G){G=G===void 0?!1:G;this.parsedImageUrl_=null;m instanceof AKz||(weW==void 0&&(weW=new gCD),m=weW.parse(m.toString(),G));m=this.parsedImageUrl_=m;m.JSC$19841_parsedOptions_==void 0&&((G=m.getOptions())||(G=""),m.JSC$19841_parsedOptions_=(new Orq).parse(G));LoD.call(this,m.JSC$19841_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;m=this.parsedImageUrl_;G=m.uri_.JSC$10339_port_;this.JSC$19843_domain_=m.uri_.JSC$10339_domain_+(G?":"+G:"");this.JSC$19843_query_=
this.parsedImageUrl_.uri_.JSC$10339_queryData_.toString()};
hk=function(m){_.mP.call(this,"upload");this.opts.query=m};
YMq=function(){return _.mb.apply(0,arguments).flat().filter(function(m){return m}).join(";")};
uCD=function(){return $kG(rKz,YMq.apply(null,_.Bz(_.mb.apply(0,arguments))))};
hgD=function(m){this.mode=4;this.data=m;this.parsedData=[];m=0;for(var G=this.data.length;m<G;m++){var K=[],W=this.data.charCodeAt(m);W>65536?(K[0]=240|(W&1835008)>>>18,K[1]=128|(W&258048)>>>12,K[2]=128|(W&4032)>>>6,K[3]=128|W&63):W>2048?(K[0]=224|(W&61440)>>>12,K[1]=128|(W&4032)>>>6,K[2]=128|W&63):W>128?(K[0]=192|(W&1984)>>>6,K[1]=128|W&63):K[0]=W;this.parsedData.push(K)}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))};
peW=function(m){this.typeNumber=0;this.errorCorrectLevel=m===void 0?2:m;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
pi=function(m,G){if(m.length==void 0)throw Error("Lk`"+m.length+"`"+G);for(var K=0;K<m.length&&m[K]==0;)K++;this.num=Array(m.length-K+G);for(G=0;G<m.length-K;G++)this.num[G]=m[G+K]};
JKi=function(m,G){this.totalCount=m;this.dataCount=G};
NFW=function(){this.buffer=[];this.length=0};
Dgs=function(){var m=!1;if(_.oGd()){m=_.Nd();var G="";_.vGo()?(G=/Windows (?:NT|Phone) ([0-9.]+)/,G=(m=G.exec(m))?m[1]:"0.0"):_.Ed()?(G=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,G=(m=G.exec(m))&&m[1].replace(/_/g,".")):_.bss()?(G=/Mac OS X ([0-9_.]+)/,G=(m=G.exec(m))?m[1].replace(/_/g,"."):"10"):_.rd(_.Nd(),"KaiOS")?(G=/(?:KaiOS)\/(\S+)/i,G=(m=G.exec(m))&&m[1]):_.oGd()?(G=/Android\s+([^\);]+)(\)|;)/,G=(m=G.exec(m))&&m[1]):_.$dG()&&(G=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,G=(m=G.exec(m))&&m[1]);m=
G||""}return m};
nCO=function(m,G){this.JSC$19872__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(G)for(var K in G)this.JSC$19872__htOption[K]=G[K];this.JSC$19872__htOption.useSVG&&(tbu=Foq);this.JSC$19872__android=Dgs();this.JSC$19872__el=m;this._oQRCode=null;this._oDrawing=new tbu(this.JSC$19872__el,this.JSC$19872__htOption);this.JSC$19872__htOption.text&&(m=this.JSC$19872__htOption.text,this._oQRCode=new peW(this.JSC$19872__htOption.correctLevel),QtG(this._oQRCode,
m),G=this._oQRCode,a7P(G,!1,oC5(G)),this.JSC$19872__el.title=m,this._oDrawing.draw(this._oQRCode),this.makeImage())};
br6=function(m,G,K,W,L){m.save();var A=new Path2D;A.roundRect(G,K,W*7,W*7,W*2);A.roundRect(G+W,K+W,W*5,W*5,W*1.3);A.roundRect(G+2*W,K+2*W,W*3,W*3,W);m.clip(A,"evenodd");m.fillStyle=L;m.fillRect(0,0,m.canvas.width,m.canvas.height);m.restore()};
$gs=function(){return vCD=vCD||new _.ai};
stq=function(m){_.dM.call(this,"serverreachability",m)};
qM6=function(m){var G=$gs();G.dispatchEvent(new stq(G,m))};
ECq=function(m,G){_.dM.call(this,"statevent",m);this.stat=G};
Jk=function(m){var G=$gs();G.dispatchEvent(new ECq(G,m))};
Hri=function(m,G,K,W){_.dM.call(this,"timingevent",m);this.size=G;this.rtt=K;this.retries=W};
I75=function(m,G,K){var W=$gs();W.dispatchEvent(new Hri(W,m,G,K))};
jt6=function(m,G){if(typeof m!=="function")throw Error("Ok");return _.Ks.setTimeout(function(){m()},G)};
Nf=function(){this.redactEnabled_=!0};
Dr=function(m,G,K,W,L){this.JSC$19894_channel_=m;this.JSC$19894_channelDebug_=G;this.sid_=K;this.JSC$19894_rid_=W;this.JSC$19894_retryId_=L||1;this.JSC$19894_eventHandler_=new _.gM(this);this.timeout_=45E3;this.JSC$19894_extraHeaders_=null;this.JSC$19894_successful_=!1;this.JSC$19894_postData_=this.JSC$19894_requestUri_=this.JSC$19894_baseUri_=this.JSC$19894_type_=this.JSC$19894_requestStartTime_=this.JSC$19894_watchDogTimeoutTime_=this.JSC$19894_watchDogTimerId_=null;this.JSC$19894_pendingMessages_=
[];this.JSC$19894_xmlHttp_=null;this.JSC$19894_xmlHttpChunkStart_=0;this.JSC$19894_lastError_=this.JSC$19894_verb_=null;this.JSC$19894_lastStatusCode_=-1;this.JSC$19894_cancelled_=!1;this.JSC$19894_readyStateChangeThrottleMs_=0;this.JSC$19894_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new khD};
C0q=function(m,G){var K=new Nf;K.debug("TestLoadImage: loading "+m);if(_.Ks.Image){var W=new Image;W.onload=_.BH(tk,K,"TestLoadImage: loaded",!0,G,W);W.onerror=_.BH(tk,K,"TestLoadImage: error",!1,G,W);W.onabort=_.BH(tk,K,"TestLoadImage: abort",!1,G,W);W.ontimeout=_.BH(tk,K,"TestLoadImage: timeout",!1,G,W);_.Ks.setTimeout(function(){if(W.ontimeout)W.ontimeout()},1E4);
W.src=m}else G(!1)};
VbE=function(m,G){var K=new Nf,W=new AbortController,L=setTimeout(function(){W.abort();tk(K,"TestPingServer: timeout",!1,G)},1E4);
fetch(m,{signal:W.signal}).then(function(A){clearTimeout(L);A.ok?tk(K,"TestPingServer: ok",!0,G):tk(K,"TestPingServer: server error",!1,G)}).catch(function(){clearTimeout(L);
tk(K,"TestPingServer: error",!1,G)})};
tk=function(m,G,K,W,L){try{m.debug(G),L&&(L.onload=null,L.onerror=null,L.onabort=null,L.ontimeout=null),W(K)}catch(A){}};
dgO=function(){this.JSC$19908_parser_=new ZrD};
P0P=function(m,G,K){return K&&K.internalChannelParams?K.internalChannelParams[m]||G:G};
F1=function(m){this.serverVersion_=0;this.JSC$19913_outgoingMaps_=[];this.JSC$19913_channelDebug_=new Nf;this.JSC$19913_hostPrefix_=this.JSC$19913_backChannelUri_=this.JSC$19913_forwardChannelUri_=this.JSC$19913_path_=this.JSC$19913_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19913_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19913_extraHeaders_=null;this.JSC$19913_nextMapId_=this.JSC$19913_nextRid_=0;this.JSC$19913_failFast_=P0P("failFast",
!1,m);this.enableStreaming_=this.JSC$19913_deadBackChannelTimerId_=this.JSC$19913_backChannelTimerId_=this.JSC$19913_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19913_lastPostResponseArrayId_=this.JSC$19913_lastArrayId_=-1;this.JSC$19913_backChannelAttemptId_=this.JSC$19913_backChannelRetryCount_=this.JSC$19913_forwardChannelRetryCount_=0;this.JSC$19913_baseRetryDelayMs_=P0P("baseRetryDelayMs",5E3,m);this.JSC$19913_retryDelaySeedMs_=
P0P("retryDelaySeedMs",1E4,m);this.JSC$19913_forwardChannelMaxRetries_=P0P("forwardChannelMaxRetries",2,m);this.JSC$19913_forwardChannelRequestTimeoutMs_=P0P("forwardChannelRequestTimeoutMs",2E4,m);this.JSC$19913_xmlHttpFactory_=m&&m.xmlHttpFactory||void 0;this.networkTestUrl_=m&&m.networkTestUrl||void 0;this.usesFetchStreams_=m&&m.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19913_supportsCrossDomainXhrs_=m&&m.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=
new yKs(m&&m.concurrentRequestLimit);this.wireCodec_=new dgO;this.fastHandshake_=m&&m.fastHandshake||!1;this.encodeInitMessageHeaders_=m&&m.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19913_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=m&&m.blockingHandshake||!1;m&&m.disableRedact&&this.JSC$19913_channelDebug_.disableRedact();m&&m.forceLongPolling&&(this.allowStreamingMode_=
!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&m&&m.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;m&&m.longPollingTimeout&&m.longPollingTimeout>0&&(this.longPollingTimeout_=m.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
eg6=function(){};
Q_=function(m,G){if(m instanceof Q_)this.array_=m.array_;else{var K;if(K=_.XP(m))a:{for(var W=K=0;W<m.length;W++){if(!_.XP(m[W])||K>0&&m[W].length!=K){K=!1;break a}for(var L=0;L<m[W].length;L++)if(typeof m[W][L]!=="number"){K=!1;break a}K==0&&(K=m[W].length)}K=K!=0}if(K)this.array_=_.yf(m);else if(m instanceof _.qj)this.array_=f7q(m.height,m.width);else if(typeof m==="number"&&typeof G==="number"&&m>0&&G>0)this.array_=f7q(m,G);else throw Error("Sk");}this.size_=new _.qj(this.array_[0].length,this.array_.length)};
az=function(m,G){if(typeof m!=="function")throw Error("Ok");return _.Ks.setTimeout(function(){m()},G)};
oz=function(m,G,K,W,L){this.JSC$19940_channel_=m;this.JSC$19940_channelDebug_=G;this.sid_=K;this.JSC$19940_rid_=W;this.JSC$19940_retryId_=L||1;this.timeout_=45E3;this.JSC$19940_eventHandler_=new _.gM(this);this.pollingTimer_=new _.Yl;this.pollingTimer_.setInterval(250)};
ni=function(){};
Xei=function(m,G,K,W,L){(new ni).debug("TestLoadImageWithRetries: "+L);if(W==0)K(!1);else{var A=L||0;W--;xgu(m,G,function(O){O?K(!0):_.Ks.setTimeout(function(){Xei(m,G,K,W,A)},A)})}};
xgu=function(m,G,K){var W=new ni;W.debug("TestLoadImage: loading "+m);var L=new Image;L.onload=function(){try{W.debug("TestLoadImage: loaded"),SMD(L),K(!0)}catch(A){}};
L.onerror=function(){try{W.debug("TestLoadImage: error"),SMD(L),K(!1)}catch(A){}};
L.onabort=function(){try{W.debug("TestLoadImage: abort"),SMD(L),K(!1)}catch(A){}};
L.ontimeout=function(){try{W.debug("TestLoadImage: timeout"),SMD(L),K(!1)}catch(A){}};
_.Ks.setTimeout(function(){if(L.ontimeout)L.ontimeout()},G);
L.src=m};
SMD=function(m){m.onload=null;m.onerror=null;m.onabort=null;m.ontimeout=null};
RgW=function(m,G){this.JSC$19947_channel_=m;this.JSC$19947_channelDebug_=G;this.JSC$19947_parser_=new ZrD};
b2=function(m,G,K){this.state_=1;this.JSC$19950_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19950_channelDebug_=new ni;this.JSC$19950_parser_=new ZrD;this.firstTestResults_=m||null;this.secondTestResults_=G!=null?G:null;this.asyncTest_=K||!1};
Ug5=function(){this.front_=[];this.back_=[]};
v5=function(m){this.JSC$19965_map_=new _.wB;this.size=0;m&&this.addAll(m)};
zg5=function(m,G){this.action=m;this.params=G||{}};
$7=function(m,G){_.Lt.call(this);this.delay_=new _.wM(this.JSC$20039_onTick_,0,this);_.UR(this,this.delay_);this.JSC$20037_interval_=5E3;this.retryCount=this.nextTickTime_=0;if(typeof m==="function")G&&(m=(0,_.AO)(m,G));else if(m&&typeof m.handleEvent==="function")m=(0,_.AO)(m.handleEvent,m);else throw Error("za");this.JSC$20039_listener_=m};
sE=function(m,G,K,W,L,A,O,c,u,h,J,N,D,t,a,v){var I=this;K=K===void 0?!1:K;W=W===void 0?function(){return""}:W;
L=L===void 0?!1:L;A=A===void 0?!1:A;O=O===void 0?!1:O;c=c===void 0?function(){return _.fJ({})}:c;
u=u===void 0?!1:u;J=J===void 0?!1:J;N=N===void 0?!1:N;D=D===void 0?!1:D;t=t===void 0?!1:t;this.JSC$20040_pathPrefix_=m;this.defaultQueryParams_=G;this.pubsub_=new _.Gd;this.retryLogger_=v;this.reconnectTimer_=(this.isInitialReconnectTimer_=!!a)?a(function(){I.safeReconnect_()}):new $7(this.safeReconnect_,this);
this.JSC$20040_channel_=null;this.JSC$20040_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20040_pendingMessages_=[];this.enableAsyncTest_=K;this.JSC$20040_getXsrfToken_=W;this.useAsyncBrowserChannelHandler_=A;this.getAuthorizationHeader_=c;this.getAuthorizationHeaderSync_=h;this.enableCachedUpdateAuthorizationHeader_=O;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.fJ();this.enableLoungeTokenRefresh_=L;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=
u;this.disableMdxAuthForNonPlaybackMessages_=J;this.disableMdxAuthForAdMessages_=N;this.enableMdxAuthForConnectionOnly_=D;this.disableMdxAuthForShortsMessages_=t;this.JSC$20040_channelOpenedCounter=new l7z;this.JSC$20040_channelClosedCounter=new BFP;this.channelMessageSentCounter=new MbW;this.JSC$20040_channelMessageReceivedCounter=new TFz;this.JSC$20040_channelErrorCounter=new ml6;this.pendingMapsOnClosedCounter=new iDD;this.undeliveredMapsOnClosedCounter=new Gg6};
Kgq=function(m){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;m=m||document.location.href;var G=Number(_.PE(m)[4]||null)||"";G&&(this.port=":"+G);this.domain=_.eh(m)||"";m=_.Nd();m.search("MSIE")>=0&&_.hV(m.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
qf=function(m){m=m||{};this.name=m.name||"";this.id=m.id||m.screenId||"";this.token=m.token||m.loungeToken||"";this.uuid=m.uuid||m.dialId||"";this.idType=m.screenIdType||"normal";this.secret=m.screenIdSecret||""};
Wg5=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(m){var G=Math.random()*16|0;return(m=="x"?G:G&3|8).toString(16)})};
LgO=function(m){return _.r$(m,function(G){return{key:G.id,name:G.name}})};
A9D=function(m,G){return Uw(m,function(K){return K||G?!K!=!G?!1:K.id==G.id:!0})};
EE=function(m,G){return Uw(m,function(K){return wLW(K,G)})};
r9D=function(){var m=geE(),G=ODq();if(c96()){var K=m,W=_.C6o(K,G);W<0&&_.IFd(K,-(W+1),0,G)}m=YQi(m);if(m.length==0)try{_.WdV("remote_sid")}catch(L){}else try{_.AH("remote_sid",m.join(","),-1)}catch(L){}};
geE=function(){var m=_.Gh("yt-remote-connected-devices")||[];m.sort(_.k9V);return m};
YQi=function(m){if(m.length==0)return[];var G=m[0].indexOf("#"),K=G==-1?m[0]:m[0].substring(0,G);return _.r$(m,function(W,L){return L==0?W:W.substring(K.length)})};
ujq=function(m){_.i0("yt-remote-connected-devices",m,86400)};
ODq=function(){if(hOP)return hOP;var m=_.Gh("yt-remote-device-id");m||(m=Wg5(),_.i0("yt-remote-device-id",m,31536E3));for(var G=geE(),K=1,W=m;_.Vf(G,W);)K++,W=m+"#"+K;return hOP=W};
pLi=function(){return _.Gh("yt-remote-session-browser-channel")};
c96=function(){return _.Gh("yt-remote-session-screen-id")};
DlW=function(m){m.length>5&&(m=m.slice(m.length-5));var G=_.r$(J9G(),function(W){return W.loungeToken}),K=_.r$(m,function(W){return W.loungeToken});
_.Qyo(K,function(W){return!_.Vf(G,W)})&&NTP();
_.i0("yt-remote-local-screens",m,31536E3)};
J9G=function(){return _.Gh("yt-remote-local-screens")||[]};
NTP=function(){_.i0("yt-remote-lounge-token-expiration",!0,86400)};
tw6=function(m){m||(_.Kr("yt-remote-session-screen-id"),_.Kr("yt-remote-session-video-id"));r9D();m=geE();_.PJ(m,ODq());ujq(m)};
Qo6=function(){FgG();return H5?!!H5.get("yt-remote-use-staging-server"):!1};
FgG=function(){if(!H5){var m=_.JH();m&&(H5=new _.YD(m))}};
bDs=function(m,G,K,W,L){K=K===void 0?function(){return""}:K;
var A=function(){return new sE(Iz(m,"/bc"),G,!1,K,W)};
return _.F("enable_mdx_web_channel_desktop")?new ah5(function(){return new oeP(Iz(m,"/wc"),G,K)}):new neD(A,L)};
qQi=function(){var m=ve6;$li();j2.push(m);soG()};
k7=function(m,G){$li();var K=EeD(m,String(G));j2.length==0?HDE(K):(soG(),_.Z0(j2,function(W){W(K)}))};
Ci=function(m){k7("CP",m)};
$li=function(){j2||(j2=_.Cn("yt.mdx.remote.debug.handlers_")||[],_.yj("yt.mdx.remote.debug.handlers_",j2))};
HDE=function(m){var G=(IhD+1)%50;IhD=G;joD[G]=m;kgG||(kgG=G==49)};
soG=function(){var m=j2;if(joD[0]){var G=kgG?IhD:-1,K={};do K={record$jscomp$15:void 0},G=(G+1)%50,K.record$jscomp$15=joD[G],_.Z0(m,function(W){return function(L){L(W.record$jscomp$15)}}(K));
while(G!=IhD);joD=Array(50);IhD=-1;kgG=!1}};
EeD=function(m,G){var K=(Date.now()-C1u)/1E3;K.toFixed&&(K=K.toFixed(3));var W=[];W.push("[",K+"s","] ");W.push("[","yt.mdx.remote","] ");W.push(m+": "+G,"\n");return W.join("")};
Zr=function(m){V_.call(this);this.JSC$20069_logName_=m;this.screens=[]};
P5=function(m){Zr.call(this,"LocalScreenService");this.JSC$20076_http_=m;this.loungeTokenRefreshTimer_=NaN;df(this);this.info("Initializing with "+Vw6(this.screens))};
y_=function(m,G){G=G===void 0?!1:G;Zr.call(this,"ScreenService");this.JSC$20082_http_=m;this.disableAutomaticScreenCache_=G;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};ZD6(this)};
e2=function(m,G,K){V_.call(this);this.JSC$20086_logName_=K;this.JSC$20086_screenService_=m;this.receiver_=G;this.screen_=null};
my6=function(m,G,K){K.disableCastApi?fi("Cannot initialize because disabled by Mdx config."):dlu()?P1q(m,K)&&(y9P(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?eOz(G):(window.__onGCastApiAvailable=function(W,L){W?eOz(G):(x7("Failed to load cast API: "+L),fhu(!1),y9P(!1),_.Kr("yt-remote-cast-available"),_.Kr("yt-remote-cast-receiver"),xl6(),G(!1))},K.loadCastApiSetupScript?_.pJ(XLD):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
SQ6()>=60&&RO6():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?Uls():SQ6()>=89?zOO():(lhz(),BTP(MwE.map(TTz))))):fi("Cannot initialize because not running Chrome")};
xl6=function(){fi("dispose");var m=X1();m&&m.dispose();_.yj("yt.mdx.remote.cloudview.instance_",null);iNq(!1);_.xyM(Gk6);Gk6.length=0};
K5W=function(){return!!_.Gh("yt-remote-cast-installed")};
W56=function(){var m=_.Gh("yt-remote-cast-receiver");return m?m.friendlyName:null};
L5D=function(){fi("clearCurrentReceiver");_.Kr("yt-remote-cast-receiver")};
A$6=function(){return K5W()?X1()?X1().getCastSession():(x7("getCastSelector: Cast is not initialized."),null):(x7("getCastSelector: Cast API is not installed!"),null)};
gEO=function(m,G){w8s()?X1().setConnectedScreenStatus(m,G):x7("setConnectedScreenStatus called before ready.")};
dlu=function(){var m=_.Nd().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.fY||m};
P1q=function(m,G){var K=!1;X1()||(m=new S2(m,G),m.subscribe("yt-remote-cast2-availability-change",function(W){_.i0("yt-remote-cast-available",W);zR("yt-remote-cast2-availability-change",W)}),m.subscribe("yt-remote-cast2-receiver-selected",function(W){fi("onReceiverSelected: "+W.friendlyName);
_.i0("yt-remote-cast-receiver",W);zR("yt-remote-cast2-receiver-selected",W)}),m.subscribe("yt-remote-cast2-receiver-resumed",function(W){fi("onReceiverResumed: "+W.friendlyName);
_.i0("yt-remote-cast-receiver",W);zR("yt-remote-cast2-receiver-resumed",W)}),m.subscribe("yt-remote-cast2-session-change",function(W){fi("onSessionChange: "+ONW(W));
W||_.Kr("yt-remote-cast-receiver");zR("yt-remote-cast2-session-change",W)}),_.yj("yt.mdx.remote.cloudview.instance_",m),K=!0);
fi("cloudview.createSingleton_: "+K);return K};
X1=function(){return _.Cn("yt.mdx.remote.cloudview.instance_")};
eOz=function(m){fhu(!0);y9P(!1);X1().init(!1,function(G){G?(iNq(!0),_.X8G("yt-remote-cast2-api-ready")):(x7("Failed to initialize cast API."),fhu(!1),_.Kr("yt-remote-cast-available"),_.Kr("yt-remote-cast-receiver"),xl6());m(G)})};
fi=function(m){k7("cloudview",m)};
x7=function(m){k7("cloudview",m)};
fhu=function(m){fi("setCastInstalled_ "+m);_.i0("yt-remote-cast-installed",m)};
w8s=function(){return!!_.Cn("yt.mdx.remote.cloudview.apiReady_")};
iNq=function(m){fi("setApiReady_ "+m);_.yj("yt.mdx.remote.cloudview.apiReady_",m)};
y9P=function(m){_.yj("yt.mdx.remote.cloudview.initializing_",m)};
Rz=function(m){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(m)};
F5D=function(m){FgG();if(!H5||!H5.get("yt-remote-disable-remote-module-for-dev")){m=_.E8("MDX_CONFIG")||m;m$D();r9D();c$P||(c$P=new Kgq(m?m.loungeApiHost:void 0),Qo6()&&(c$P.basePath="/api/loungedev"));UE||(UE=_.Cn("yt.mdx.remote.deferredProxies_")||[],_.yj("yt.mdx.remote.deferredProxies_",UE));Yh6();var G=r$q();if(!G){var K=new y_(c$P,m?m.disableAutomaticScreenCache||!1:!1);_.yj("yt.mdx.remote.screenService_",K);G=r$q();var W={};m&&(W={appId:m.appId,disableDial:m.disableDial,theme:m.theme,loadCastApiSetupScript:m.loadCastApiSetupScript,
disableCastApi:m.disableCastApi,enableDialLoungeToken:m.enableDialLoungeToken,enableCastLoungeToken:m.enableCastLoungeToken,forceMirroring:m.forceMirroring});_.yj("yt.mdx.remote.enableConnectWithInitialState_",m?m.enableConnectWithInitialState||!1:!1);my6(K,function(A){A?umP()&&gEO(umP(),"YouTube TV"):K.subscribe("onlineScreenChange",function(){zR("yt-remote-receiver-availability-change")})},W)}if(m&&!_.Cn("yt.mdx.remote.initialized_")){_.yj("yt.mdx.remote.initialized_",!0);
haO("Initializing: "+_.rO(m));zu.push(_.z6("yt-remote-cast2-api-ready",function(){zR("yt-remote-api-ready")}));
zu.push(_.z6("yt-remote-cast2-availability-change",function(){zR("yt-remote-receiver-availability-change")}));
zu.push(_.z6("yt-remote-cast2-receiver-selected",function(){p8O();zR("yt-remote-auto-connect","cast-selector-receiver")}));
zu.push(_.z6("yt-remote-cast2-receiver-resumed",function(){zR("yt-remote-receiver-resumed","cast-selector-receiver")}));
zu.push(_.z6("yt-remote-cast2-session-change",J$W));zu.push(_.z6("yt-remote-connection-change",function(A){A?gEO(umP(),"YouTube TV"):NnD()||(gEO(null,null),L5D())}));
zu.push(_.z6("yt-remote-cast2-session-failed",function(){zR("yt-remote-connection-failed")}));
W=DyD();m.isAuto&&(W.id+="#dial");var L=m.capabilities||[];L.length>0&&(W.capabilities=L);W.name=m.device;W.app=m.app;(m=m.theme)&&(W.theme=m);haO(" -- with channel params: "+_.rO(W));W?(_.i0("yt-remote-session-app",W.app),_.i0("yt-remote-session-name",W.name)):(_.Kr("yt-remote-session-app"),_.Kr("yt-remote-session-name"));_.yj("yt.mdx.remote.channelParams_",W);G.start();umP()||tAs()}}};
aJO=function(){var m=r$q().instance_.$_gos();var G=QC6();G&&l2()&&(A9D(m,G)||m.push(G));return LgO(m)};
oED=function(){var m=aJO(),G=QC6();G||(G=NnD());return Uw(m,function(K){return G&&wLW(G,K.key)?!0:!1})};
QC6=function(){var m=umP();if(!m)return null;var G=r$q().getScreens();return EE(G,m)};
J$W=function(m){haO("remote.onCastSessionChange_: "+ONW(m));if(m){var G=QC6();if(G&&G.id==m.id){if(gEO(G.id,"YouTube TV"),m.idType=="shortLived"&&(m=m.token))nEO&&(nEO.token=m),(G=l2())&&G.setLoungeToken(m)}else G&&bNW(),vEE(m,1)}else l2()&&bNW()};
bNW=function(){w8s()?X1().stopSession():x7("stopSession called before API ready.");var m=l2();m&&(m.disconnect(1),$yD(null))};
sCE=function(){var m=l2();return m&&m.getProxyState()!=3?new B5(l2(),void 0):null};
haO=function(m){k7("remote",m)};
r$q=function(){if(!qhD){var m=_.Cn("yt.mdx.remote.screenService_");qhD=m?new EEu(m):null}return qhD};
umP=function(){return _.Cn("yt.mdx.remote.currentScreenId_")};
HNu=function(m){_.yj("yt.mdx.remote.currentScreenId_",m)};
p8O=function(){_.yj("yt.mdx.remote.connectData_",null)};
l2=function(){return _.Cn("yt.mdx.remote.connection_")};
$yD=function(m){var G=l2();p8O();m||HNu("");_.yj("yt.mdx.remote.connection_",m);UE&&(_.Z0(UE,function(K){K(m)}),UE.length=0);
G&&!m?zR("yt-remote-connection-change",!1):!G&&m&&zR("yt-remote-connection-change",!0)};
NnD=function(){var m=c96();if(!m)return null;var G=r$q();if(!G)return null;G=G.getScreens();return EE(G,m)};
vEE=function(m,G){IJW?nEO=m:(HNu(m.id),m=new Mf(c$P,m,DyD(),_.Cn("yt.mdx.remote.enableConnectWithInitialState_")||!1),m.connect(G,_.Cn("yt.mdx.remote.connectData_")),m.subscribe("beforeDisconnect",function(K){zR("yt-remote-before-disconnect",K)}),m.subscribe("beforeDispose",function(){l2()&&$yD(null)}),m.subscribe("browserChannelAuthError",function(){var K=QC6();
K&&K.idType=="shortLived"&&(w8s()?X1().handleBrowserChannelAuthError():x7("refreshLoungeToken called before API ready."))}),$yD(m))};
tAs=function(){var m=NnD();m?(haO("Resume connection to: "+ONW(m)),vEE(m,0)):(tw6(),L5D(),haO("Skipping connecting because no session screen found."))};
Yh6=function(){var m=DyD();if(_.Y2.isEmpty(m)){m=ODq();var G=_.Gh("yt-remote-session-name")||"",K=_.Gh("yt-remote-session-app")||"";m={device:"REMOTE_CONTROL",id:m,name:G,app:K,mdxVersion:3};m.authuser=String(_.E8("SESSION_INDEX","0"));(G=_.E8("DELEGATED_SESSION_ID"))&&(m.pageId=String(G));_.yj("yt.mdx.remote.channelParams_",m)}};
DyD=function(){return _.Cn("yt.mdx.remote.channelParams_")||{}};
jCE=function(){var m,G;return _.Y(function(K){if(K.nextAddress==1)return(_.vEP()||_.F("use_new_nwl"))&&_.aJd().isNetworkAvailable()?K.yield(_.en(),2):K.return();if(K.nextAddress!=3)return(m=K.yieldResult)?K.yield(PYW(m),3):K.return();G=K.yieldResult;if(!G.length)return K.return();G.forEach(function(W){var L={timestamp:W.timestamp};W=W.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:W.appShellAssetLoadReport,options:L}:W.clientError?{payloadName:"clientError",payload:W.clientError,
options:L}:void 0;W&&_.Fx(W.payloadName,W.payload,W.options)});
G.length===100&&_.Fu.addLowPriorityJob(jCE);_.ey(K)})};
fJW=function(m,G,K){K=K===void 0?!1:K;var W=Math.max(m.width,kkO);if(_.F("kevlar_watch_feed_big_thumbs")&&m.width>=1550-Tu()&&m.height>=800)W-=CKW;else if(m.width>=mc){var L=VAD+ZNW+iT;_.F("kevlar_watch_feed_big_thumbs")&&(L=dy6);W-=L}else W-=VAD;W=Math.min(W,PK5);L=240;K&&(L=380);G<.5624||(!_.F("kevlar_watch_flexy_disable_small_window_sizing")&&(m.height<630&&m.width>=657||m.height>=630&&m.width>=mc&&m.width<1327)?L=360:!_.F("kevlar_watch_flexy_disable_large_window_sizing")&&m.height>=630&&m.width>=
1327&&(L=480));var A=Math.min(W*G,m.height-(56+y$i+eaW));A=Math.max(A,L);G<1?W=A/G:m.width>=mc&&(W=fJW(m,.5625,K).width);return new _.qj(Math.round(W),Math.round(A))};
xys=function(m){if(m.playerResponse){if(m=m.playerResponse,m.messages&&m.messages.length>0&&(m=m.messages.find(function(G){return!(!G||!G.mealbarPromoRenderer)}))&&m.mealbarPromoRenderer)return m.mealbarPromoRenderer}else if(m.response&&(m=m.response)&&m.overlay&&m.overlay.mealbarPromoRenderer)return m.overlay.mealbarPromoRenderer};
X85=function(m){if(m.response){var G=m.response;if(G&&G.overlay&&G.overlay.tooltipRenderer)return G.overlay.tooltipRenderer}if(m.playerResponse&&(m=m.playerResponse,m.messages&&m.messages.length>0&&(m=m.messages.find(function(K){return!(!K||!K.tooltipRenderer)}))&&m.tooltipRenderer))return m.tooltipRenderer};
ShW=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
RaD=function(){var m,G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(_.W3.getInstance(),2);case 2:m=W.yieldResult;if(!m){G=void 0;W.jumpTo(3);break}return W.yield(m.get("lmqf"),4);case 4:G=W.yieldResult;case 3:switch((K=G)||(K="SD"),K){case "HD":return W.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return W.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return W.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return W.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return W.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
UyG=function(m){var G,K,W;return _.Y(function(L){if(L.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.F("disable_av1_setting")){var A=window.localStorage["yt-player-av1-pref"];A=A==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":A==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else A="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(G=m===A)return L.jumpTo(2);W=K=m;return L.yield(RaD(),3)}L.nextAddress!=2&&(G=W===L.yieldResult);return L.return(G)})};
lJ5=function(){var m=_.U8("user_engagement_experiments_rate_limit_ms"),G=zaD.get("last-user-engagement-exp-trigger-timestamp");return!G||(0,_.xD)()>=G+m?(zaD.set("last-user-engagement-exp-trigger-timestamp",(0,_.xD)()),!0):!1};
GZ=function(m,G,K,W,L){G=G===void 0?null:G;K=K===void 0?null:K;W=W===void 0?null:W;L=L===void 0?null:L;m={youThereEventType:m};K&&(m.lactThresholdMs=K.lactThresholdMs,m.mediaPosSec=K.promptDelaySec,m.lactServerRequestMs=K.lactServerRequestMs,m.triggerReason=K.triggerReason);L!=null&&(m.renderingMediaPosSec=Math.round(L));G||(G=_.gU());G&&(m.clientScreenNonce=G);W&&(m.clientPlaybackNonce=W);_.Fx("youThere",m)};
MA6=function(m){if(!Bn5&&(m=m||_.E8("ZWIEBACK_PING_URLS"))&&m.length){Bn5=!0;for(var G=0;G<m.length;G++)_.HG(m[G])}};
Tn6=function(m){var G=0;m.indexOf("h")!=-1&&(m=m.split("h"),G=m[0]*60*60,m=m[1]);m.indexOf("m")!=-1&&(m=m.split("m"),G=m[0]*60+G,m=m[1]);m.indexOf("s")!=-1?(m=m.split("s"),G=m[0]*1+G):G=m*1+G;return G};
izD=function(m){if(_.Y2.get(_.E8("PLAYER_VARS",{}),"privembed",!1)!="1"){m&&ENq();try{mWi().then(function(){},function(){}),_.MC(izD,18E5)}catch(G){_.j1(G)}}};
G$i=function(){var m=_.M$(),G=m.getFlag(119),K=window.devicePixelRatio>1;document.body&&_.vW(document.body,"exp-invert-logo")&&(K&&!_.vW(document.body,"inverted-hdpi")?_.QO(document.body,"inverted-hdpi"):!K&&_.vW(document.body,"inverted-hdpi")&&_.Fm(document.body,"inverted-hdpi"));G!=K&&(_.Tq(0,119,K),m.save())};
KrG=function(){_.U8("service_worker_push_logged_out_prompt_watches")!=-1&&mZ("WatchCount").then(function(m){m>=100||MlE("WatchCount",m+1)})};
WrE=function(m){return m.filter(function(G){return"ypcGetCartEndpoint"in G||"ypcFixInstrumentEndpoint"in G})};
Lr6=function(m){return m.filter(function(G){return!_.Q(G,_.do4)})};
AoP=function(m){switch(m){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}};
wp6=function(m,G,K){var W=_.c8(K);m&&G&&W&&m.getPlayerPromise().then(function(L){_.y1P(W)&&_.Qb();(new _.Ae(L)).executeCommand(W,G);_.F("continue_playback_on_desktop_companion_click")||L.pauseVideo()})};
gg6=function(m){var G=_.qW(),K;if(K=_.Cn("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var W;K=(W=K())==null?void 0:W.layoutId}else K=null;wp6(G,K,m)};
OzD=function(m){var G=_.qW(),K;if(K=_.Cn("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var W;K=(W=K())==null?void 0:W.layoutId}else K=null;wp6(G,K,m)};
Kx=function(m,G){var K=m<0?"-":"";m=Math.abs(m);var W=Math.floor(m/3600),L=Math.floor(m)%3600,A=Math.floor(L/60);L=Math.floor(L)%60;var O="";(G===void 0?0:G)&&(O="."+Math.round((m-Math.floor(m))*10));return W>0?K+W+":"+(A<10?"0"+A:""+A)+":"+(L<10?"0"+L:""+L)+O:K+A+":"+(L<10?"0"+L:""+L)+O};
cou=function(m){var G=m.match(/[^0-9:\.]/g);if(G&&G.length>0)return null;m=m.split(":");if(m.length===0||m.length>3)return null;G=1;for(var K=0;m.length>0;){var W=m.pop();if(W===void 0)break;var L=Number(W);if(W===""||isNaN(L))return null;K+=L*G;G*=60}return K};
YTW=function(m,G,K,W){m=Math.max(K,m);G=Math.min(G,W-K);m+G>W?(K=W,m=K-G):K=m+G;return{start:m,end:K}};
roz=function(m,G,K,W,L,A){m<K?m=K:m+L>W&&(m=W-L);G>W&&(G=W);G=Math.min(m+A,Math.max(m+L,G));return{start:m,end:G}};
ukE=function(m,G,K,W,L,A){G>W?G=W:G-L<K&&(G=K+L);m<K&&(m=K);m=Math.min(G-L,Math.max(G-A,m));return{start:m,end:G}};
hzi=function(m,G){if(G)return"ytCardViewModelCardSelected";switch(m){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
QLD=function(m,G){var K=_.sQ(m,{}),W=ppD("top",G),L=ppD("bottom",G),A=ppD("left",G),O=ppD("right",G);return _.eA({top:function(){return W_(K().position,W)},
bottom:function(){return W_(K().position,L)},
left:function(){return W_(K().position,A)},
right:function(){return W_(K().position,O)},
position:function(){return W_(K().positionType,Jo6)},
height:function(){return W_(K().height,Lx)},
width:function(){return W_(K().width,Lx)},
"min-width":function(){return W_(K().minWidth,Lx)},
"min-height":function(){return W_(K().minHeight,Lx)},
"max-width":function(){return W_(K().maxWidth,Lx)},
"max-height":function(){return W_(K().maxHeight,Lx)},
"aspect-ratio":function(){return W_(K().aspectRatio,String)},
"margin-top":function(){return W_(K().margin,W)},
"margin-bottom":function(){return W_(K().margin,L)},
"margin-left":function(){return W_(K().margin,A)},
"margin-right":function(){return W_(K().margin,O)},
"padding-top":function(){return W_(K().padding,W)},
"padding-bottom":function(){return W_(K().padding,L)},
"padding-left":function(){return W_(K().padding,A)},
"padding-right":function(){return W_(K().padding,O)},
"flex-direction":function(){return W_(K().flexDirection,Nqs)},
"justify-content":function(){return W_(K().justifyContent,DWG)},
"align-items":function(){return W_(K().alignItems,t56)},
"flex-grow":function(){return W_(K().flexGrow,String)},
"flex-shrink":function(){return W_(K().flexShrink,String)},
"flex-basis":function(){return W_(K().flexBasis,Lx)},
"align-self":function(){return W_(K().alignSelf,t56)},
"flex-wrap":function(){return W_(K().flexWrap,Fr6)},
"align-content":function(){return W_(K().alignContent,t56)}})};
W_=function(m,G){return m!==void 0?G(m):void 0};
Fr6=function(m){switch(m){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Jo6=function(m){switch(m){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
t56=function(m){switch(m){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"}};
DWG=function(m){switch(m){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"}};
Nqs=function(m){switch(m){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"}};
ppD=function(m,G){var K=G==="rtl";switch(m){case "top":var W=ag5;break;case "bottom":W=og5;break;case "left":W=ngE;break;default:W=bzP}return function(L){return W_(W(L,K),Lx)}};
ag5=function(m){var G=m.top;var K=m.vertical;m=m.all;var W;return(W=G!=null?G:K)!=null?W:m};
og5=function(m){var G=m.bottom;var K=m.vertical;m=m.all;var W;return(W=G!=null?G:K)!=null?W:m};
ngE=function(m,G){var K=m.left;var W=m.end;var L=m.start;var A=m.horizontal;m=m.all;var O,c;return(c=(O=K!=null?K:G?W:L)!=null?O:A)!=null?c:m};
bzP=function(m,G){var K=m.right;var W=m.end;var L=m.start;var A=m.horizontal;m=m.all;var O,c;return(c=(O=K!=null?K:G?L:W)!=null?O:A)!=null?c:m};
Lx=function(m){var G=m.value;switch(m.unit){case "YPC_DIMENSION_UNIT_POINT":return G+"px";case "YPC_DIMENSION_UNIT_FRACTION":return G+"%";default:return""+G}};
vgO=function(m){switch(m){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"}};
$W6=function(m){var G=m!=null?m:{};m=G.fontRole;var K=G.fontSize;G=G.fontWeight;if(m!==null&&K!==null)switch(m){case "YPC_FONT_ROLE_DISPLAY":switch(K){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(K){case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return G===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(K){case "YPC_FONT_SIZE_XL":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return G==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
HzD=function(m,G,K){function W(N){return Object.values(N).map(function(D){var t=D.productId;D=D.pricingOptionIndex;return A1(L(t).pricingOptions,D).pricingOptionId})}
function L(N){return u().get(N)}
function A(N){N=W(N);K(N)}
function O(N,D){return Array.from(w7(N.pricingOptions)).filter(function(t){t=_.g(t);t.next();t=t.next().value;return g7(t.pricingGroupAttributes,D)}).map(function(t){return _.g(t).next().value})}
var c=sLG([m,G],function(N,D){var t=N==null?void 0:N.selectedPricingOptions;N={};var a=!0;if(t&&D.length)for(var v=_.g(D),I=v.next();!I.done;I=v.next()){I=I.value;var Z=qTD(I.pricingOptions,function(X){a:{X=X.pricingOptionId;for(var f=_.g(t),U=f.next();!U.done;U=f.next())if(U.value===X){X=!0;break a}X=!1}return X});
if(Z>=0){a=!1;var k=A1(I.pricingOptions,Z),z=void 0;N[I.groupId]={productId:I.productId,pricingOptionIndex:Z,pricingGroupAttributes:(z=k)==null?void 0:z.pricingGroupAttributes}}}a&&D.length&&(a=A1(D[0].pricingOptions,0),N[D[0].groupId]={productId:D[0].productId,pricingOptionIndex:0,pricingGroupAttributes:a==null?void 0:a.pricingGroupAttributes});return N}),u=sLG([G],function(N){return new Map(N.map(function(D){return[D.productId,
D]}))}),h=sLG([G],function(N){var D=new Map;
N=_.g(N);for(var t=N.next();!t.done;t=N.next()){var a=t.value;t=a.groupId;var v=a.productId;a=_.g(w7(a.pricingOptions));for(var I=a.next();!I.done;I=a.next()){var Z=_.g(I.value);I=Z.next().value;Z=Z.next().value;D.set(Z.pricingOptionId,{groupId:t,productId:v,index:I,pricingOption:Z,pricingGroupAttributes:Z.pricingGroupAttributes})}}return D}),J=sLG([G],function(N){var D=new Map;
N=_.g(N);for(var t=N.next();!t.done;t=N.next()){var a=t.value;t=a.groupId;var v=a.productId,I=void 0;a=_.g(w7((I=a.pricingGroups)!=null?I:[]));for(I=a.next();!I.done;I=a.next()){var Z=_.g(I.value);I=Z.next().value;Z=Z.next().value;D.set(Z.pricingGroupId,{groupId:t,productId:v,index:I,pricingGroup:Z,pricingGroupAttributes:Z.pricingGroupAttributes})}}return D});
return{getProductById:L,isProductSelected:function(N){var D=L(N);if(!D)return!1;var t;return((t=c()[D.groupId])==null?void 0:t.productId)===N},
getSelectedPricingOptions:function(){return Object.values(c()).map(function(N){var D=N.productId;N=N.pricingOptionIndex;return A1(L(D).pricingOptions,N)})},
getSelectedPricingGroupAttributesByGroupId:function(N){var D;return(N=(D=c()[N])==null?void 0:D.pricingGroupAttributes)?Array.from(N):void 0},
getSelectedProductByGroupId:function(N){var D;return(N=(D=c()[N])==null?void 0:D.productId)?L(N):void 0},
onProductSelected:function(N){var D=L(N);if(D){var t=c(),a;if(((a=t[D.groupId])==null?void 0:a.productId)!==N){var v=(a=(v=t[D.groupId])==null?void 0:v.productId)?L(a):void 0;var I;a=(I=t[D.groupId])==null?void 0:I.pricingGroupAttributes;var Z;I=(Z=t[D.groupId])==null?void 0:Z.pricingOptionIndex;if(v&&I!==void 0)if(a){Z=O(v,a).indexOf(I);if(Z===-1)throw Error("Cl`"+I+"`"+v.productId);I=O(D,a);Z=Z<I.length?I[Z]:I.length>0?I[0]:0}else Z=I<O_(D.pricingOptions)?I:0;else Z=0;O_(D.pricingOptions)<=Z&&(Z=
0);I=A1(D.pricingOptions,Z);var k;v={};A(Object.assign({},t,(v[D.groupId]={productId:N,pricingOptionIndex:Z,pricingGroupAttributes:(k=I==null?void 0:I.pricingGroupAttributes)!=null?k:[]},v)))}}},
onPricingOptionSelected:function(N){var D=h().get(N);if(D){N=D.groupId;var t=D.productId;D=D.index;var a=c(),v,I;if(((v=a[N])==null?void 0:v.productId)!==t||((I=a[N])==null?void 0:I.pricingOptionIndex)!==D){var Z,k;v={};A(Object.assign({},a,(v[N]={productId:t,pricingOptionIndex:D,pricingGroupAttributes:(k=(Z=a[N])==null?void 0:Z.pricingGroupAttributes)!=null?k:[]},v)))}}},
onPricingGroupSelected:function(N){var D=J().get(N);if(D){N=D.groupId;var t=D.productId,a=D.pricingGroup.pricingGroupAttributes,v=L(t);if(v){D=c();var I=D[N].pricingGroupAttributes,Z;if(((Z=D[N])==null?void 0:Z.productId)!==t||!g7(EgG(I,O_(a)),a)){Z=Array.from(a);for(a=O_(a);a<O_(I);a++){var k="",z=!1,X=Array.from(Z);X.push(A1(I,a));for(var f=_.g(v.pricingGroups),U=f.next();!U.done;U=f.next())if(U=U.value,g7(U.pricingGroupAttributes,X)){Z.push(A1(I,a));z=!0;break}else k===""&&O_(U.pricingGroupAttributes)===
X.length&&g7(EgG(U.pricingGroupAttributes,Z.length),Z)&&(k=A1(U.pricingGroupAttributes,a));z||Z.push(k)}k=D[N].pricingOptionIndex;a=[];z=new Map;X=0;v=_.g(w7(v.pricingOptions));for(f=v.next();!f.done;f=v.next())U=_.g(f.value),f=U.next().value,U=U.next().value,g7(U.pricingGroupAttributes,Z)&&a.push(f),g7(U.pricingGroupAttributes,I)&&z.set(f,X++);a.length===0?I=0:(I=z.get(k),I=I!==void 0&&I<a.length?a[I]:a[0]);v={};A(Object.assign({},D,(v[N]={productId:t,pricingOptionIndex:I,pricingGroupAttributes:Z},
v)))}}}},
onClearGroupSelected:function(N){var D=c();D[N]&&(D=Object.fromEntries(Object.entries(D).filter(function(t){return _.g(t).next().value!==N})),A(D))}}};
w7=function(m){return function K(){var W,L,A,O,c;return _.fm(K,function(u){switch(u.nextAddress){case 1:_.Ve(u,2),W=0,L=_.g(m),A=L.next();case 4:if(A.done){u.jumpTo(2);break}O=A.value;c=_.x1;return u.yield([W++,O],7);case 7:c(u.yieldResult);A=L.next();u.jumpTo(4);break;case 2:_.CZ(u),_.ZO(u,0)}})}()};
qTD=function(m,G){m=_.g(w7(m));for(var K=m.next();!K.done;K=m.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;if(G(W))return K}return-1};
O_=function(m){var G=0;for(m=m[Symbol.iterator]();!m.next().done;)++G;return G};
A1=function(m,G){m=_.g(w7(m));for(var K=m.next();!K.done;K=m.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;if(K===G)return W}};
g7=function(m,G){if(!m&&!G)return!0;if(!m||!G)return!1;m=Array.from(m);G=Array.from(G);if(m.length!==G.length)return!1;for(var K=0;K<m.length;K++)if(m[K]!==G[K])return!1;return!0};
EgG=function(m,G){G=G===void 0?Infinity:G;var K=[];m=_.g(w7(m));for(var W=m.next();!W.done;W=m.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;if(W>=G)break;W>=0&&K.push(L)}return K};
sLG=function(m,G){var K,W;return function(){for(var L=m.map(function(O){return O()}),A=0;A<L.length;A++)if(!K||L[A]!==K[A]){K=L;
W=G.apply(null,_.Bz(L));break}return W}};
Ig6=function(m,G,K){var W=[];m=_.g(m);for(var L=m.next();!L.done;L=m.next()){L=L.value;var A=void 0;((A=G)==null?0:A.length)&&!g7(L.pricingGroupAttributes,G)||W.push({pricingOption:L,isSelected:K.includes(L.pricingOptionId)})}return W};
jLi=function(m,G){return _.yx(m.entities,"pdpStateEntity",G)};
k$G=function(m){var G,K;return!!(m.productId&&m.groupId&&((G=m.pricingOptions)==null?0:G.length)&&m.pricingOptions.every(function(W){return W.pricingOptionId})&&((K=m.pricingGroups)==null||!K.length||Array.isArray(m.pricingGroups)&&m.pricingGroups.every(function(W){return W.pricingGroupId&&W.pricingGroupAttributes&&W.pricingGroupAttributes.length>0})))};
C_6=function(m,G,K){return HzD(m,sLG([G],function(W){return W.filter(k$G)}),K)};
V5E=function(m,G){return G.length===0?[m]:[m.slice(0,G[0]),m.slice(G[0])].filter(function(K){return K.length>0})};
Zz6=function(m){switch(m){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""}};
P_D=function(m,G,K,W){W=Object.assign({},W);_.LN(W,dW6,{selectedOptionId:m,primaryButtonOverride:K});_.nD().dispatch(_.Bp("flowStateEntity",G,W))};
yoP=function(m,G,K){!_.Q(K,dW6)&&m.noPreselect&&G!==""&&m.defaultButtonOverride&&P_D("default",G,m.defaultButtonOverride,K)};
ezO=function(m){switch(m){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
fgu=function(m){switch(m){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
xW6=function(m,G){G.includes(m)?G=G.filter(function(K){return K!==m}):G.push(m);
return[].concat(_.Bz(G))};
XpE=function(m,G){return _.yx(m.entities,"contextNoteFeedEntityPayload",G)};
STz=function(m,G){switch(m){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return G==null?void 0:G.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return G==null?void 0:G.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return G==null?void 0:G.ratingNotHelpfulText}};
RzO=function(m,G,K){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:K||m.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:m.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:m.deleteDialogTitle}]},dialogMessages:[{runs:[{text:m.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:m.deleteActionText}]},command:{performCommentActionEndpoint:{action:G}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:m.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
UWE=function(m,G,K){var W;if(m&&((W=G())==null?0:W.includes(m))){var L;K((L=G())==null?void 0:L.filter(function(A){return A!==m}))}else K([].concat(_.Bz(G()||[]),[m]))};
lgG=function(m,G){if(m){var K=[];G=_.g((G==null?void 0:G.checkboxes)||[]);for(var W=G.next();!W.done;W=G.next()){W=_.Q(W.value,zzD);var L=void 0;((L=W)==null?0:L.value)&&m.includes(W.key||"")&&K.push(W.value)}return K}};
Bqz=function(m,G){return m===G?!0:(m==null?void 0:m.formId)===(G==null?void 0:G.formId)&&(m==null?void 0:m.fieldId)===(G==null?void 0:G.fieldId)};
Tqu=function(m){var G=M56.get(m);if(G)return G;G=m.replace(/_([a-zA-Z0-9])/g,function(K,W){return W.toUpperCase()});
M56.set(m,G);return G};
G_z=function(m){var G=_.pT(function(){var W;return(W=_.EZ(m))!=null?W:{}},{equals:Bqz},"rjkP8c"),K=_.pT(function(){var W=G(),L=W.formId;
W=W.fieldId;var A;if(A=L&&W){if(W==="formId")throw Error("Jl`"+"Field id cannot be formId.".replace(/\n\s*/g," "));b:{if(L&&(mBG?mBG():(A=_.g(_.g_(0,void 0,"VxY0fb")),mBG=A.next().value,A.next(),A.next(),mBG()),A=iQ5.get(L))){A=A.form;break b}A=void 0}if(A){var O=Tqu(W);A=A[O]}else A=void 0}if(A)throw Error("Jl`"+("Field "+W+" in form "+L+" is not a ScalarField.").replace(/\n\s*/g," "));},void 0,"OhSJ8e");
return function(){return K()}};
KnP=function(m){m.style.height="auto";m.style.height=m.scrollHeight+"px"};
WnO=function(m){return[m.syncStep,m.asyncStep].filter(function(G){return G!==void 0})};
A3i=function(m){var G,K,W;if(m=(G=m.structuredContextNoteFormSchema)==null?void 0:(K=G.fieldSchemas)==null?void 0:(W=K.noteBody)==null?void 0:W.validationSchema)for(G=_.g(WnO(m)),K=G.next();!K.done;K=G.next()){K=K.value.rules;if(!K)break;K=_.g(K);for(K=K.next();!K.done;K=K.next())return _.Q(K.value,Ln6)}};
gA6=function(m){if(m){m=_.g(WnO(m));for(var G=m.next();!G.done;G=m.next()){G=G.value.rules;if(!G)break;G=_.g(G);for(G=G.next();!G.done;G=G.next())return _.Q(G.value,wR6)}}};
c3E=function(m){if(m){m=_.g(WnO(m));for(var G=m.next();!G.done;G=m.next()){G=G.value.rules;if(!G)break;G=_.g(G);for(G=G.next();!G.done;G=G.next())return _.Q(G.value,OQs)}}};
Yn6=function(m){m=/^https?:\/\//.test(m)?m:"http://"+m;try{var G=_.jU(m)}catch(K){return!1}if(G.toString()!==m)return!1;m=G.JSC$10339_domain_.split(".");return m.length>1&&m.every(function(K){return!!K})};
r3u=function(m,G,K,W){var L;W=(L=W.structuredContextNoteData)==null?void 0:L.createCommentEndpoint;if(L=_.Q(W,_.SDC))return L.commentText=_.nG(m),L.videoPositionMention=G,L.sources=K,W};
u9W=function(m){return m==null?void 0:m.stringValue};
pRP=function(m,G,K){m=m.map(function(W,L){return{listItemViewModel:{title:W.title,subtitle:W.subtitle,leadingImage:W.leadingImage,trailingImage:L===G?hxO:void 0,rendererContext:{commandContext:{onTap:W.onTap}}}}});
return Object.assign({},K&&{header:{panelHeaderViewModel:{title:K}}},{content:{listViewModel:{listItems:m}}})};
J3D=function(m,G){if(m&&G)switch(G){case "SELECTION_TYPE_BOOL":return m.boolValue;case "SELECTION_TYPE_INT":return m.intValue;case "SELECTION_TYPE_STRING":return m.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return m.privacyStatusValue;case "SELECTION_TYPE_TIME_PICKER_FORMAT":return m.timePickerFormatValue}};
NHs=function(m){var G;m=(G=m.options)==null?void 0:G.findIndex(function(K){return K.isSelected});
return m===void 0?-1:m};
DB6=function(m,G,K){var W=function(){return m().label},L={},A=_.VO("ytDropdownViewModelLabel",(L.ytDropdownViewModelLabelError=G,L));
return _.r(_.p,{cond:function(){return m().label&&!(K()===-1&&m().label&&!m().placeholderText)},
then:function(){return _.r("div",{class:A},_.r(_.Nm,{text:W}))}})};
tFq=function(m,G){var K={};K=_.VO("ytDropdownViewModelTitle",(K.ytDropdownViewModelTitlePlaceholder=function(){return G()===-1},K));
return _.r("div",{class:K},_.r(_.Nm,{text:function(){var W=m();var L=G();if(L===-1)W=W.placeholderText?W.placeholderText:W.label;else{var A,O;W=(A=W.options)==null?void 0:(O=A[L])==null?void 0:O.title}return W}}))};
Fnu=function(m,G){var K=function(){return m().hint};
return _.r(_.zL,null,_.r(_.p,{cond:function(){return K()&&!G()},
then:function(){return _.r("div",{class:_.VO("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.r(_.Nm,{text:K,className:"ytDropdownViewModelSupportText"}))}}),_.r(_.p,{cond:G,
then:function(){return _.r("div",{id:"dropdown-view-model-error",role:"alert",class:_.VO("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.r(_.fN,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.r(_.Nm,{text:G,className:"ytDropdownViewModelSupportText"}))}}))};
QTE=function(m,G){var K=_.xS().resolve(_.yUG);_.bX(function(){var W=m().id;W&&K!=null&&K.dropdownMap.set(W,G)})};
oAP=function(m){m=_.Q(m.scheduleButton,aEO);m=_.Q(m==null?void 0:m.primaryButton,_.J6);m=_.Q(m==null?void 0:m.onTap,_.Oh);var G,K,W=((K=_.Q(m,_.xu))==null?void 0:K.commands)||[m];K=_.g(W);for(m=K.next();!m.done&&!(G=_.Q(m.value,_.PJB));m=K.next());var L;G=(L=G)==null?void 0:L.createBroadcastRequest;if(!G)throw Error("Pl");return G};
vAi=function(m,G){if(G){var K=_.$R().getState().entities.flowStateEntity,W=nAq(m),L=[G];W&&W!==G&&L.push(W);var A=!0,O;if(K&&m.flowStateEntityKey&&((O=K[m.flowStateEntityKey])==null?void 0:O.primaryButtonDisabled)!==void 0){var c;A=!((c=K[m.flowStateEntityKey])==null||!c.primaryButtonDisabled)}bQ6(m,W!=null?W:G,L,A)}};
sTG=function(m){return _.BB(_.$R(),function(G){return G.entities.flowStateEntity},function(G,K){if(m.flowStateEntityKey){var W,L=G==null?void 0:(W=G[m.flowStateEntityKey])==null?void 0:W.currentStepId,A;
K=K==null?void 0:(A=K[m.flowStateEntityKey])==null?void 0:A.currentStepId;A=_.$R().getState().talkToRecs;if(L&&L!==K){var O;G=(G==null?void 0:(O=G[m.flowStateEntityKey])==null?void 0:O.stepIdStack)||Object.keys(A.stepStates);O=!$BD(A==null?void 0:A.stepStates[L]);bQ6(m,L,G,O)}}})};
EAs=function(m){return _.BB(_.$R(),qnD,function(G){var K=nAq(m);if(K){var W=Object.keys(G.stepStates);G=!$BD(G==null?void 0:G.stepStates[K]);bQ6(m,K,W,G)}})};
$BD=function(m){var G=Object.keys((m==null?void 0:m.selectionStates)||{}).reduce(function(A,O){return A||(m==null?void 0:m.selectionStates[O].isSelected)},!1),K,W,L=!!(m==null?0:(K=m.userQuery)==null?0:(W=K.userQuery)==null?0:W.trim());
return G||L};
nAq=function(m){if(m.flowStateEntityKey){var G,K,W=(G=_.$R().getState().entities.flowStateEntity)==null?void 0:(K=G[m.flowStateEntityKey])==null?void 0:K.currentStepId;if(W)return W}};
bQ6=function(m,G,K,W){_.$R().dispatch(_.Bp("flowStateEntity",m.flowStateEntityKey,{currentStepId:G,stepIdStack:K,key:m.flowStateEntityKey,primaryButtonDisabled:W}))};
k_D=function(m,G,K){K=K===void 0?{}:K;var W,L;return _.Y(function(A){if(W=HQO(G))return A.return(W);(L=IE6(m,G,K))&&jTD(G,L);return A.return(L)})};
jTD=function(m,G){var K=Ckq(m);K&&G.then(function(W){_.xS().resolve(_.y$).put(K,new _.eB({innertubeResponse:W}))})};
HQO=function(m){if(m=Ckq(m)){var G=_.xS().resolve(_.y$);if(G.has(m))return G.get(m).then(function(K){return K==null?void 0:_.k1(K)})}return null};
Ckq=function(m){var G=_.Q(m.endpoint,_.QQ);if(G!=null&&G.videoId)return G={videoId:G.videoId},_.F("web_imp_player_mute_params")&&(G.mutedAtStart=m.startPlaybackInMutedState),_.FA("inline_playback",G)};
IE6=function(m,G,K){m=_.to(m,G.endpoint,VFD(G,K)).then(function(W){return W});
return Promise.resolve(m)};
VFD=function(m,G){G=_.F("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!m.startPlaybackInMutedState},G):Object.assign({},{vis:5,autonav:"1"},G);var K;G={contentPlaybackContext:_.dS(G,(K=_.Q(m.endpoint.commandMetadata,_.RQ))==null?void 0:K.url,window.location.href)};_.F("web_imp_player_mute_params")&&(G.overrideMutedAtStart=!m.startPlaybackInMutedState);return G};
exq=function(m,G){var K=window.MutationObserver;K&&(ZQP=new K(function(W,L){W=_.g(W);for(var A=W.next();!A.done;A=W.next()){A=A.value;var O;if(O=A.type==="childList"&&A.target)a:{O=m;A=dBE(A.target);O=dBE(O);for(var c=null,u=0;u<A.length;u++)if(O.includes(A[u])){if(u===0){O=!1;break a}c=A[u];break}c?(A=Pks(A,c),O=Pks(O,c),O=A<O):O=!1}if(O){G();L.disconnect();break}}}),(K=y3z())&&ZQP.observe(K,{childList:!0,
subtree:!0}))};
y3z=function(){var m=document.getElementsByTagName("ytd-rich-grid-renderer");if(m.length>0)return m[0];m=document.getElementsByTagName("ytd-section-list-renderer");return m.length>0?m[0]:null};
dBE=function(m){for(var G=[];m;)G.push(m),m=m.parentElement;return G};
Pks=function(m,G){var K=Array.from(G.children);G=m.indexOf(G);return G>0?K.indexOf(m[G-1]):-1};
c_=function(m,G,K){K=K===void 0?{}:K;return _.zq(m,K,G)};
fED=function(m){switch(m){case "MUSIC":return!0;default:return!1}};
XRD=function(m){if(m=m==null?void 0:m.find(function(W){var L,A;return((L=_.Q(W,xBE))==null?void 0:(A=L.inlinePlaybackBadgeData)==null?void 0:A.replicateAsTimestamp)===!0}))if(m=_.Q(m,xBE),m==null?0:m.icon){var G,K;
if((m=(G=_.NXP(m.icon))==null?void 0:(K=G.clientResource)==null?void 0:K.imageName)&&fED(m))return m}};
Sni=function(m){return m==null?void 0:m.filter(function(G){return G.premiereTrailerBadgeRenderer})};
Rxi=function(m){var G,K=m==null?void 0:(G=m.find(function(u){return u.thumbnailOverlayTimeStatusRenderer}))==null?void 0:G.thumbnailOverlayTimeStatusRenderer,W,L;
if((K==null?0:(W=K.icon)==null?0:W.iconType)&&fED(K==null?void 0:(L=K.icon)==null?void 0:L.iconType)){var A;return{icon:K==null?void 0:(A=K.icon)==null?void 0:A.iconType}}var O;if(G=m==null?void 0:(O=m.find(function(u){return u.thumbnailOverlayBadgeViewModel}))==null?void 0:O.thumbnailOverlayBadgeViewModel)if(O=XRD(G.thumbnailBadges))return{icon:O};
var c;if(m=m==null?void 0:(c=m.find(function(u){return u.thumbnailBottomOverlayViewModel}))==null?void 0:c.thumbnailBottomOverlayViewModel)if(c=XRD(m.badges))return{icon:c};
return{}};
MFq=function(m,G){var K=new UBG(function(A){L(A)},G);
G=_.g(_.g_(zxD(K),void 0,"D2uee"));var W=G.next().value,L=G.next().value;_.$O(function(){Promise.resolve().then(function(){var A,O=(A=m())!=null?A:{};K.playerControlsData=O;K.lastSeenPlayerApi=_.hA(O.playerApi);lEG(K)});
_.sZ(function(){BHE(K)})},"xfRk8b");
return W};
TH6=function(m){return function(G){var K=m(),W={playerState:G};if(G===1){var L;(L=K.playerApi)==null||L.loadModule("captions")}if(G===0){var A;(A=K.playerApi)==null||A.unloadModule("captions")}G!==-1&&K.setState(W)}};
maW=function(m){return function(G){m().setState({playbackRate:G})}};
imz=function(m){return function(G){var K=m(),W=K.playerApi,L=W==null?void 0:W.getVideoData(),A=(L==null?void 0:L.isLive)||!1;L=L==null?void 0:L.video_id;A={videoDuration:xcG(W||void 0),isLive:A,videoId:L};A.videoId!==K.videoId&&(A=Object.assign({},_.V$f(W),A));if(G==null?0:G.playertype)A.playerType=G.playertype;if(W){A.captionsAvailable=IQ6(W);G=A;var O;L=(O=W.getStoryboardLevel(W.getNumberOfStoryboardLevels()-1))==null?void 0:O.intervalMs;G.storyboardInterval=L?L/1E3:void 0;A.captionsAvailable&&
(A.captionsEnabled=j7i(W))}A.volumeMuted=!(W==null||!W.isMuted());K.setState(A)}};
GnO=function(m){return function(G){var K=m(),W=K.playerApi;if(W){var L=W.getPresentingPlayerType();G={playedTime:G||0,percentLoaded:W.getVideoLoadedFraction(),playerType:L};K.playerState===0&&(G.playedTime=K.videoDuration);K.isLive&&(L=W.getProgressState(L),G.playedTime-=L.seekableStart,G.videoDuration=xcG(W));if(K.playerType===1)W=!1;else{var A;if((A=K.uxConfig)==null?0:A.showCuedOverlay){var O;W=!((O=K.playerApi)==null?0:O.getPlayerStateObject(K.playerType).isDomPaused)}else W=!0}W&&delete G.playedTime;
K.setState(G)}}};
KFz=function(m){return function(){var G=m(),K,W,L,A={volume:(L=(K=G.playerApi)==null?void 0:K.getVolume())!=null?L:0,volumeMuted:!((W=G.playerApi)==null||!W.isMuted())};G.setState(A)}};
WFD=function(m){return function(){var G=m(),K=G.playerApi;if(K){var W={captionsAvailable:IQ6(K)};W.captionsAvailable&&(W.captionsEnabled=j7i(K));G.setState(W)}}};
LF6=function(m){return{appApi:Object.assign({},_.q09(),{showCaptionsToggleToast:function(G){var K,W;(W=(K=m()).showCaptionsToggleToast)==null||W.call(K,G)},
openInMiniplayer:function(){var G,K;(K=(G=m()).openInMiniplayer)==null||K.call(G)}})}};
AXq=function(m,G){var K,W,L;return!!(m==null?0:(K=m.playerResponse)==null?0:(W=K.playerConfig)==null?0:(L=W.inlinePlaybackConfig)==null?0:L.showScrubbingControls)&&!(G==null?0:G.hideScrubbingControls)};
wYu=function(m){var G=!m.miniplayerIsActive;return[5,2,0].includes(m.miniplayerPlaybackState)||G};
g16=function(m){return _.F("web_transcript_cue_id_killswitch")?String(m):"ytd-transcript-renderer_"+m};
Om5=function(m){return _.F("web_transcript_cue_id_killswitch")?!0:m.startsWith("ytd-transcript-renderer")};
cXs=function(m){var G=_.qW(),K;if(K=_.Cn("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var W;K=(W=K())==null?void 0:W.layoutId}else K=null;wp6(G,K,m)};
YUi=function(m,G){if(_.F("web_enable_chat_autoscroll_to_user_turn")&&m&&G)return m-4+"px"};
rXs=function(m,G){return _.yx(m.entities,"youchatPendingResponseEntity",G)};
uw6=function(m){return function(G){_.$e(_.Bp("youchatPendingResponseEntity",m,{entityKey:m,isPendingResponse:G}))}};
h3i=function(m,G){return _.yx(m.entities,"booleanEntity",G)};
pYu=function(){return function(m){_.$e(_.Bp("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:m}))}};
JXD=function(m){m==null||m.addEventListener("DOMLoaded",function(){m.goToAndPlay(m.totalFrames-48,!0)})};
Daz=function(m){m=_.Q(m,NS6);if(m==null?0:m.trustedAnimationUrl){var G;return(G=_.Ql(m.trustedAnimationUrl))==null?void 0:G.toString()}return m==null?void 0:m.animationUrl};
tqP=function(m){if(m.backgroundStyle)switch(m.backgroundStyle){case "CHAT_USER_TURN_BACKGROUND_STYLE_MONO":return"ytChatUserTurnViewModelMonoContainer";case "CHAT_USER_TURN_BACKGROUND_STYLE_GRADIENT":return"ytChatUserTurnViewModelGradientContainer";default:return"ytChatUserTurnViewModelDefaultContainer"}return m.hasGradientBackground?"ytChatUserTurnViewModelGradientContainer":"ytChatUserTurnViewModelDefaultContainer"};
FF6=function(m){m.style.height="auto";m.style.height=Math.min(m.scrollHeight||20,80)+"px"};
Qx6=function(){var m;return String(Math.floor(((m=_.yo())==null?void 0:m.getCurrentTime())||0)*1E3)};
o1i=function(m){if(m.onWelcomeCommand)return _.c8(m.onWelcomeCommand);m=_.Q(m.inputComposerViewModel,akz);if(m==null?0:m.welcomeFeatureContinuation)return B9G(m.welcomeFeatureContinuation)};
n1u=function(m){var G=_.qW(),K;K=(K=_.Cn("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.layoutId:null;wp6(G,K,m)};
bmE=function(m){var G=_.qW(),K;K=(K=_.Cn("yt.www.ads.eventcache.getLastCompanionData"))?(K=K())&&K.layoutId:null;wp6(G,K,m)};
v1D=function(m){return m.filter(function(G){return!_.Q(G,_.NP)})};
$az=function(m){var G,K,W,L;if(m=m==null?void 0:(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.results)==null?void 0:(L=W.results)==null?void 0:L.contents){var A,O;return(O=(A=m.find(function(c){return!!c.videoPrimaryInfoRenderer}))==null?void 0:A.videoPrimaryInfoRenderer)==null?void 0:O.updatedMetadataEndpoint}};
sxz=function(m,G){var K;return(K=m.sourceConfigs)==null?void 0:K.find(function(W){return W.videoId===G})};
qUq=function(m){return m==="End of video"||m==="End of playlist"};
E1i=function(m){var G,K,W,L;return(G=m.getWatchNextResponse())==null?void 0:(K=G.contents)==null?void 0:(W=K.twoColumnWatchNextResults)==null?void 0:(L=W.playlist)==null?void 0:L.playlist};
HmD=function(m){var G,K,W,L,A,O;return(G=E1i(m))==null?void 0:(K=G.playlistButtons)==null?void 0:(W=K.menuRenderer)==null?void 0:(L=W.topLevelButtons)==null?void 0:(A=L[0])==null?void 0:(O=A.playlistLoopButtonRenderer)==null?void 0:O.playlistLoopStateEntityKey};
Ik5=function(m){var G=_.xS().resolve(_.NQ),K;return(G=(K=_.Q(G.getAutoplayEndpoint(),_.QQ))==null?void 0:K.playlistId)&&G===m};
CGG=function(m,G,K,W,L){function A(){_.Fu.cancelJob(YQ);var O=jxD(G,K/m.getPlaybackRate()),c=O.hours,u=O.minutes;O=(O.seconds*1E3||6E4)/m.getPlaybackRate();m.setVideoTimeLeft(knz(c,u));W&&m.getPlayerState()!==0&&m.setSleepTimerTimeLeft(knz(c,u,!0));(c>0||u>0)&&!L&&(YQ=_.mn(_.Fu,A,O))}
_.Fu.cancelJob(YQ);YQ=_.mn(_.Fu,A)};
ZmE=function(m,G,K){function W(){_.Fu.cancelJob(Vq6);var L=jxD(G,K),A=L.hours;L=L.minutes;var O=6E4/m.getPlaybackRate();if(A>0||L>0)m.setSleepTimerTimeLeft(knz(A,L,!0)),Vq6=_.mn(_.Fu,W,O)}
_.Fu.cancelJob(Vq6);Vq6=_.mn(_.Fu,W)};
PGq=function(m,G){var K=m.getVolume()/(G/500),W=function(L){_.Fu.cancelJob(daP);var A=Math.floor(L-K);m.setVolume(A,!1);A>0&&(daP=_.mn(_.Fu,function(){W(A)},500))};
_.Fu.cancelJob(daP);daP=_.mn(_.Fu,function(){W(m.getVolume())})};
yX6=function(m,G){_.Fu.cancelJob(daP);G&&m.syncVolume()};
e3z=function(){var m={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.zq("SLEEP_TIMER_DISRUPTED")}}}}};_.xS().resolve(_.S1).resolveCommand(m)};
fkO=function(m){return(m.getDuration()-m.getProgressState().current)*1E3};
jxD=function(m,G){m=m+G-(0,_.xD)();if(m<=0)return{hours:0,minutes:0,seconds:0};var K=new xaD(0,0,0,0,0,0,m);m=K.getHours();G=K.getMinutes();K=K.getSeconds();K!==0&&G++;G!==0&&G%60===0&&(m++,G=0);return{hours:m,minutes:G,seconds:K}};
knz=function(m,G,K){return m>0&&G>0?K?_.zq("TIME_LEFT_HOURS_MINUTES",{hours:m.toString(),minutes:G.toString()}):_.zq("TIME_HOURS_MINUTES",{hours:m.toString(),minutes:G.toString()}):m>0?K?_.lW("TIME_LEFT_HOURS",m):_.lW("TIME_HOURS",m):K?_.zq("TIME_LEFT_MINUTES",{minutes:G.toString()}):_.zq("TIME_MINUTES",{minutes:G.toString()})};
SUs=function(m,G){if(m.timelyActions)return m.timelyActions.find(function(K){var W;return((W=_.Q(K,XYE))==null?void 0:W.cueRangeId)===G})};
R3G=function(m){return _.F("kevlar_watch_cinematics_invisible")||m.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_fullscreen")||m.theater&&!m.fullscreen&&_.F("kevlar_watch_cinematics_invisible_in_theater")};
UaE=function(){var m=document.createElement("canvas"),G=m.getContext("2d");if(!G)throw Error("Tl");_.Fo(m,{position:"absolute",width:"100%",height:"100%"});return{element:m,context:G}};
z3P=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.F("kevlar_watch_cinematics_css_blur")};
lk5=function(m){var G=m.externalVideoId||"";return G?m.isShortsEligible?"https://www.youtube.com/shorts/"+G:"https://www.youtube.com/watch?v="+G:""};
BS6=function(m){var G=[];m.viewCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:m.viewCount});m.likeCount&&G.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:m.likeCount});return G};
Mq6=function(m){var G,K,W={"@context":"https://schema.org","@type":"VideoObject",description:_.bw(m.description),duration:"PT"+(m.lengthSeconds||"0")+"S",embedUrl:m.embed?m.embed.iframeUrl:"",name:_.bw(m.title),thumbnailUrl:((G=m.thumbnail)==null?void 0:(K=G.thumbnails)==null?void 0:K.map(function(J){return J&&J.url||""}))||[],
uploadDate:m.publishDate};_.F("mweb_video_schema_id_killswitch")||(W["@id"]=lk5(m));G=BS6(m);G.length&&(W.interactionStatistic=G);m.category&&(W.genre=m.category);m.ownerChannelName&&(W.author=m.ownerChannelName);m.liveBroadcastDetails&&(W.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:m.liveBroadcastDetails.startTimestamp,endDate:m.liveBroadcastDetails.endTimestamp}]);if(m.learningResource){m=m.learningResource;W["@type"]=["VideoObject","LearningResource"];var L;if((L=m.learningResourceType)==
null?0:L.length)W.learningResourceType=m.learningResourceType[0];var A;if((A=m.educationalAlignment)==null?0:A.length)W.educationalAlignment={"@type":"AlignmentObject",targetName:m.educationalAlignment[0]};var O;if((O=m.educationalLevel)==null?0:O.length){L=m.educationalLevel[0];var c;if((c=m.educationalLevelCountry)==null?0:c.length)L+=" ("+m.educationalLevelCountry+")";W.educationalLevel=L}var u,h;if(((u=m.learningResourceType)==null?0:u.length)&&m.learningResourceType[0]==="Problem walkthrough"&&
((h=m.problemDescriptions)==null?0:h.length))for(W.hasPart=[],c=_.g(m.problemDescriptions),u=c.next();!u.done;u=c.next())L=u.value,u=L.problemDescriptionText,h=L.startOffset,L=L.url,u&&h!==void 0&&L&&W.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:u,text:u,startOffset:h,url:L})}return W};
TSO=function(m){if((m==null?void 0:m.value)===void 0||m==null||!m.unit)return"initial";a:{switch(m.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var G="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":G="%";break a}G=void 0}return G?""+m.value+G:"initial"};
iYu=function(m,G){var K,W,L,A,O,c,u;_.Y(function(h){switch(h.nextAddress){case 1:K=_.FC.getInstance();W=_.xe.instance;L=_.NW.instance;if(!L)return mP5(m,W,G),h.return();_.IO(h,2);m.onLoadingCommand&&W.resolveCommand(m.onLoadingCommand);return h.yield(K.getCurrentPositionFromGeolocation(),4);case 4:A=h.yieldResult;if(!m.resolveLocationCommand){h.jumpTo(5);break}O=K.createLocationInfo(A);return h.yield(_.to(L,m.resolveLocationCommand,{locationInfo:O}),6);case 6:c=h.yieldResult;if(!c||"error"in c&&c.error||
c.errorMetadata)return mP5(m,W,G),h.return();var J;if(c==null?0:(J=c.onResponseReceivedActions)==null?0:J.length){J=_.g(c.onResponseReceivedActions);for(var N=J.next();!N.done;N=J.next())W.resolveCommand(N.value)}(_.Q(m.onSuccessCommand,_.QQ)||_.Q(m.onSuccessCommand,_.S8))&&_.Zw(G.hostElement,"yt-navigate",{endpoint:m.onSuccessCommand,reload:!0});case 5:_.IG(h,0);break;case 2:u=_.ye(h);if(u instanceof GeolocationPositionError&&u.code===GeolocationPositionError.PERMISSION_DENIED)return m.onDeniedCommand&&
W.resolveCommand(m.onDeniedCommand),h.return();mP5(m,W,G);_.ey(h)}})};
mP5=function(m,G,K){m.onFailureCommand&&(G.resolveCommand(m.onFailureCommand),_.dU(K.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
KNP=function(m,G){var K=_.Q(m,_.Kpi);if(K&&G){m=K.videoIds||[K.videoId];var W;G=(W=_.Zw(G,"yt-lockup-requested",{videoIds:m}).detail)==null?void 0:W.returnValue;var L;K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?L=G?G:m.map(function(A){return{videoId:A,navigationEndpoint:K.videoCommand}}):G&&(L=G);
L&&(W=L.map(function(A){var O=Object,c=O.assign;var u=A.navigationEndpoint;if(!_.Q(u,_.lw)){var h=_.Q(u,_.QQ);if(h){if(delete h.index,delete h.playlistId,h=_.Q(u==null?void 0:u.commandMetadata,_.RQ),h==null?0:h.url){var J=h.url;J=_.mi(J,"list");J=_.mi(J,"index");h.url=J}}else u=void 0}return c.call(O,{},A,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:u})}),Ge5(W,K))}};
WNW=function(m){var G=_.an();if(m=_.Q(m,_.WpS))m.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&G.clearQueue(),m.closeMiniplayer&&_.xS().resolve(_.pY).close(!0)};
AAD=function(m){LNs(_.an(),m)};
wX6=function(m){var G;(m=(G=_.Q(m,_.i$C))==null?void 0:G.setVideoIds)&&m.forEach(function(K){_.GoB(_.an(),K)})};
OYi=function(m){gJ6(_.an(),m)};
cAW=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(m){return!1}};
h1=function(m,G,K){(_.F("desktop_keyboard_shortcut_usage_log")||K&&_.F("web_shorts_keyboard_shortcut_usage_log"))&&(G?r7.get(m):uT.get(m))&&(m=G?YaW.get(m):rAG.get(m))&&_.nW(_.gU(),m)};
hFi=function(m){return m.findIndex(function(G){return u0P.indexOf(G.tagName)>-1})>-1};
pXz=function(m,G){return m.findIndex(function(K){return K.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(G.keyCode):!1};
N1G=function(m,G){return _.r(JAO,{data:m,onYtNavigate:G})};
DP6=function(m,G){return _.yx(m.entities,"pageHeaderEntity",G)};
FNq=function(m,G){return m.map(function(K){if(K.tabRenderer)return tIP(K.tabRenderer);if(K.expandableTabRenderer&&G){var W=K.expandableTabRenderer;return{customTabRenderable:function(){return G(W)}}}return{}})};
tIP=function(m){return{identifier:m.tabIdentifier,aTagConfig:_.rn({innertubeCommand:m.endpoint,forceNewState:!0}),title:m.title,selected:m.selected,disabled:m.unselectable,icon:m.icon}};
oJW=function(m,G,K,W){if(m)return W=W||m.likeStatus,G?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:W==="LIKE",isDisabled:!m.likesAllowed,defaultIcon:{iconType:K},defaultText:W==="LIKE"?m.likeCountWithUnlikeText:m.likeCountText,toggledText:W==="LIKE"?m.likeCountText:m.likeCountWithLikeText,defaultNavigationEndpoint:QBz(m,"LIKE"),defaultServiceEndpoint:abD(m,"LIKE"),toggledServiceEndpoint:abD(m,"INDIFFERENT"),defaultTooltip:_.bw(m.likeCountTooltipText),toggledTooltip:_.bw(m.likeCountTooltipText),
targetId:m.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:W==="DISLIKE",isDisabled:!m.likesAllowed,defaultIcon:{iconType:K},defaultText:W==="DISLIKE"?m.dislikeCountWithUndislikeText:m.dislikeCountText,toggledText:W==="DISLIKE"?m.dislikeCountText:m.dislikeCountWithDislikeText,defaultNavigationEndpoint:QBz(m,"DISLIKE"),defaultServiceEndpoint:abD(m,"DISLIKE"),toggledServiceEndpoint:abD(m,"INDIFFERENT"),defaultTooltip:_.bw(m.dislikeCountTooltipText),
toggledTooltip:_.bw(m.dislikeCountTooltipText)}};
QBz=function(m,G){if(G==="LIKE")return m.likeCommand;if(G==="DISLIKE")return m.dislikeNavigationEndpoint};
abD=function(m,G){var K;return(K=m.serviceEndpoints)==null?void 0:K.find(function(W){var L;return((L=_.Q(W,_.KK))==null?void 0:L.status)===G})};
nJD=function(m,G,K,W){m=G-m;K=W-K;return Math.sqrt(m*m+K*K)};
bYz=function(m){var G=m>>8&255,K=m&255;return"#"+(m>>16&255).toString(16).padStart(2,"0")+G.toString(16).padStart(2,"0")+K.toString(16).padStart(2,"0")};
vJs=function(m,G){m&&_.xS().resolve(_.S1).resolveCommand(m,{forceClickLogging:!0,form:{element:G}})};
$Pz=function(m){if(m.simpleText)return[{text:m.simpleText}];var G;return(G=m.runs)!=null?G:[]};
sBq=function(m){var G=m.startEndTimeTemplate,K=m.startTimeUtcMillis;m=m.endTimeUtcMillis;if(G&&K&&m)return _.nG(FQG(_.bw(G),Number(K),Number(m)))};
qaW=function(m,G){var K,W,L=m==null?void 0:(K=m.viewCount)==null?void 0:(W=K.videoViewCountRenderer)==null?void 0:W.shortViewCount;if(!G&&L)return L;var A,O;return m==null?void 0:(A=m.viewCount)==null?void 0:(O=A.videoViewCountRenderer)==null?void 0:O.viewCount};
EJ6=function(m,G){var K=m==null?void 0:m.relativeDateText;return!G&&K?[K,!0]:[m==null?void 0:m.dateText,!1]};
HYq=function(m,G,K,W,L){W=W===void 0?"":W;L=L===void 0?!1:L;var A=qaW(m,G),O=_.g(EJ6(m,G)),c=O.next().value;O=O.next().value;G=G?m==null?void 0:m.sponsorsOnlyFirstTimeLongText:m==null?void 0:m.sponsorsOnlyFirstTimeShortText;var u=[];K&&A&&u.push(A);!K&&O||!c||u.push(c);m=[L?m==null?void 0:m.subtitle:void 0].concat(_.Bz(u),[G,m==null?void 0:m.stationName,m==null?void 0:m.rating,m?sBq(m):void 0,m==null?void 0:m.upNextProgramText,m==null?void 0:m.superTitleLink]).filter(function(h){return!!h});
K={runs:[]};for(L=0;L<m.length;L++)K.runs.push.apply(K.runs,_.Bz($Pz(m[L]))),L<m.length-1&&K.runs.push({text:" "+W+" "});return K};
IbP=function(m,G){var K=_.oWk(G,{},m,!0);return new Promise(function(W,L){K.listenOnce("n",function(){L(Error("fm`"+K.JSC$30526_getErrorDescription()))});
K.listenOnce("l",function(){var A=K.getResponseCode();if(A!==200)L(Error("gm`"+G+"`"+m.type+"`"+m.size+"`"+A));else try{W(JSON.parse(K.getResponseText()).encryptedBlobId)}catch(O){L(O)}});
K.run()})};
jBD=function(m){return m.substring(m.indexOf(":")+1,m.indexOf(";"))};
keq=function(m){return new Promise(function(G,K){var W=new FileReader;W.onloadend=function(){try{var L=new Uint8Array(W.result);L.length<8&&K(void 0);var A=L.subarray(0,8);L="";for(var O=0;O<A.length;O++)L+=("0"+A[O].toString(16)).substr(-2);L.startsWith("ffd8ff")?G("image/jpeg"):L.startsWith("47494638")?G("image/gif"):L.startsWith("89504e470d0a1a0a")?G("image/png"):L.startsWith("424d")?G("image/bmp"):G(void 0)}catch(c){K(c)}};
W.onerror=K;W.readAsArrayBuffer(m)})};
C5z=function(m){return new Promise(function(G,K){var W=new Image;W.crossOrigin="anonymous";W.onload=function(){var L=document.createElement("canvas");L.width=W.naturalWidth;L.height=W.naturalHeight;var A=L.getContext("2d");if(!A)throw Error("hm");A.drawImage(W,0,0);A=jBD(m);L.toBlob(function(O){O?G(O):K()},A)};
W.src=m})};
ZYs=function(m,G){var K;if(((K=_.Q(m,_.lw))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var W;_.Zw((W=G.hostElement)!=null?W:G,"yt-shorts-reset");_.Vaq(_.xS().resolve(_.X2),m).then(function(A){VIi(A,G,m)})}else{var L;
_.yQ((L=G.hostElement)!=null?L:G,[m]).then(function(A){A&&VIi(A.data,G,m)})}};
VIi=function(m,G,K){if(m){var W=_.Q(m.replacementEndpoint,_.lw);if(W){m.sequenceContinuation&&(W.sequenceParams=m.sequenceContinuation);var L;_.Zw((L=G.hostElement)!=null?L:G,"yt-navigate",{endpoint:m.replacementEndpoint})}else if((m==null?void 0:m.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(m==null?0:m.watchStatus)&&_.Q(m.watchStatus,_.xAi)){var A;_.Zw((A=G.hostElement)!=null?A:G,"yt-navigate",{endpoint:K})}}};
dPq=function(m){var G=_.xS().resolve(_.wR),K=_.DE.currentPageTypeSelector(G.getState())||"";G=_.DE.currentPageSubTypeSelector(G.getState())||"";K=K==="ytd-browse"&&G==="home";return _.F("web_guide_entry_enable_cache_for_non_home_pages")?(m=(m==null?void 0:m.navigationEndpoint)&&_.XQ(m.navigationEndpoint)==="home",{disableCache:K&&m}):{disableCache:K}};
eFW=function(m,G,K,W){if(m&&m.length){var L={};if(G){var A=void 0;K&&(A={commandContext:{onTap:{innertubeCommand:K||{}}}});L.header={panelHeaderViewModel:{title:_.A$(G),rendererContext:A}}}G=[];m=_.g(m);for(K=m.next();!K.done;K=m.next()){A=K.value;K=_.Q(A,P5q);A=_.Q(A,yA6);var O=void 0,c=void 0;if((O=A)==null?0:(c=O.expandableItems)==null?0:c.length)for(A=_.g(A.expandableItems),O=A.next();!O.done;O=A.next()){O=O.value.guideEntryRenderer;var u=c=void 0;if(((c=O)==null?void 0:(u=c.icon)==null?void 0:
u.iconType)==="VIEW_LIST_CAIRO"){K=O;break}}c=O=void 0;A=((O=K)==null?0:O.formattedTitle)?_.A$((c=K)==null?void 0:c.formattedTitle):void 0;O=void 0;c=(O=K)==null?void 0:O.isPrimary;if(K&&A&&!c){A={title:A};K.navigationEndpoint&&(A.rendererContext={commandContext:{onTap:{innertubeCommand:K.navigationEndpoint}}});O=[];u=c=void 0;if(((c=K)==null?0:(u=c.thumbnail)==null?0:u.thumbnails)&&K.thumbnail.thumbnails.length>0){c=_.g(K.thumbnail.thumbnails);for(u=c.next();!u.done;u=c.next())O.push({url:u.value.url});
A.leadingAccessory={avatarViewModel:{image:{sources:O},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(c=void 0,(c=K.icon)==null?0:c.iconType)O.push({clientResource:{imageName:K.icon.iconType||""}}),A.leadingImage={sources:O};c=O=void 0;((O=K)==null?0:(c=O.badges)==null?0:c.liveBroadcasting)?(A.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_ICON",A.trailingImage={sources:[{clientResource:{imageName:"live",imageColor:4294901760}}]},A.trailingIconAccessorySize="LIST_ITEM_ICON_ACCESSORY_SIZE_SMALL"):
K.presentationStyle==="GUIDE_ENTRY_PRESENTATION_STYLE_NEW_CONTENT"?A.trailingImageAccessoryType="LIST_ITEM_IMAGE_ACCESSORY_TYPE_NEW_CONTENT_INDICATOR":K.count&&(A.trailingLabel={content:K.count.toString()});G.push({listItemViewModel:A})}}G.length!==0?(L.content={listViewModel:{listItems:G}},W===0&&(L.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}})):L=void 0;if(L)return G=void 0,W===0&&(G={preventCloseWhileHovered:!0,hideDelayMs:3E3}),{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:L}},
contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:G}}}}};
fbO=function(m,G,K,W){if(G!=null&&G.isPrimary){switch(W){case 1:if(G.serviceEndpoint)break;K=eFW(K,G.formattedTitle,G.navigationEndpoint,W);if(!K)break;G.serviceEndpoint=K;G.navigationEndpoint=void 0;break;case 0:!G.mouseEnterEndpoint&&(K=eFW(K,G.formattedTitle,void 0,W))&&(G.mouseEnterEndpoint=K,G.mouseLeaveEndpoint={hideSheetCommand:{}})}m.push({guideEntryRenderer:G})}};
xP5=function(m){if(!m)return!1;try{if(m.host&&m.host.tagName==="YT-FORMATTED-STRING"&&m.host.id==="contenteditable-textarea"||m.nodeType===Node.ELEMENT_NODE&&m.tagName==="YTD-COMMENT-INPUT")return!0}catch(G){return!1}return xP5(m.parentNode)};
px=function(m){return m?m.tagName==="A"&&m.href&&m.classList.contains("yt-simple-endpoint"):!1};
XXE=function(m){return m?m.tagName==="IMG"&&m.classList.contains("emoji"):!1};
Sa6=function(m,G,K){if(!m)return null;var W=px(m);if(W&&K)return G=m.pathname.substring(m.pathname.indexOf("/channel/")+9),document.createTextNode("@"+G);if(W&&!K)return document.createTextNode("");if(XXE(m))return K=m.alt,m=m.dataset.emojiId,!m&&G&&(G=_.ZE(G,K))&&G.isCustomEmoji&&(m=G.emojiId),m?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+m+">"):document.createTextNode(K);W=m.cloneNode(!1);for(var L=0;L<m.childNodes.length;++L){var A=Sa6(m.childNodes[L],G,K);A&&W.appendChild(A)}return W};
RF6=function(m){return m?px(m)?m:RF6(m.lastChild):null};
UPu=function(m){return m?px(m)?m:UPu(m.firstChild):null};
zFD=function(m){if(!m)return null;for(var G=m.previousSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.previousSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.previousSibling;else break;(G=RF6(G))?m=G:m=(m=m.parentNode)?RF6(m.previousElementSibling):null;return m};
lbD=function(m){if(!m)return null;for(var G=m.nextSibling;G;)if(G.nodeType===Node.ELEMENT_NODE&&G.nodeName==="BR")G=G.nextSibling;else if(G.nodeType===Node.TEXT_NODE&&/\s+/.test(G.textContent))G=G.nextSibling;else break;return(G=UPu(G))?G:lbD(m.parentNode)};
B15=function(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();if(!xP5(K.parentNode))return null;G=G.JSC$11657_getStartOffset();if(K.nodeType===Node.TEXT_NODE){var W=_.N7(K,px);if(W){if(m&&G===0||!m&&G===K.length)return W}else{if(m&&G===K.length)return!K||K.nodeName==="BR"||K.nextElementSibling&&_.PR(K.nextElementSibling,"display")==="block"?null:UPu(K.nextElementSibling);if(!m&&G===0)return K?RF6(K.previousElementSibling):null}}if(K.nodeType===Node.ELEMENT_NODE)if(m){if(0<=G&&G<K.childNodes.length)return UPu(K.childNodes[G])}else if(0<
G&&G<=K.childNodes.length)return RF6(K.childNodes[G-1]);return null};
MIq=function(m,G,K){if(!m)return null;if(m.nodeType===Node.TEXT_NODE)if(K){var W=zFD(m);if(W&&!/^\s+\S/.test(m.wholeText.substr(0,G)))return W}else if((W=lbD(m))&&!/\S\s+/.test(m.wholeText.substr(G,m.wholeText.length)))return W;return m.nodeType===Node.ELEMENT_NODE?K?zFD(m.childNodes[G]):lbD(m.childNodes[G]):MIq(m.parentNode,G,K)};
T1u=function(m){if(m.hasChildNodes())switch(m.tagName){case "DIV":case "A":case "SPAN":var G="";for(m=m.firstChild;m;m=m.nextSibling)G+=T1u(m);return G;default:return""}else switch(m.nodeType){case 3:return m.textContent;default:return""}};
mEO=function(m){switch(m){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"}};
igP=function(m){return m.map(function(G){return{settingsRadioOptionRenderer:{title:_.jO(G.name),asideText:_.jO(G.approximateSize),id:mEO(G.format)}}})};
K9z=function(m){if(m&&m.length!==0)return m.filter(GBG()).map(function(G){return{settingsRadioOptionRenderer:{title:G.name,asideText:G.approximateSize,id:mEO(G.formatType)}}})};
W9u=function(m){if(m)return m.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
L9q=function(m,G){m=new Set(m!=null?m:[]);if(m.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(m.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(m.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(m.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(m.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(G)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
Alu=function(m){var G=m.indexOf("(");return G!==-1?m.substring(G+1,m.length-1):m};
_.giP=function(m,G,K,W,L){K||(K=woz);var A;(A=_.Q(K.commandMetadata,_.RQ))!=null&&A.url||(K=Error("mm`"+JSON.stringify(K)),_.am(K),K=woz);K=_.Y2.unsafeClone(K);A=_.ir(_.Q(K.commandMetadata,_.RQ).url,"search_query",m);_.TF(location.href,"sv")==="1"&&(_.Q(K,_.RW).params="EgOAAgE%3D",A=_.ir(A,"sv","1"));_.Q(K,_.RW)&&(_.Q(K,_.RW).query=m);A=A.replace(/%20/g,"+");_.Q(K.commandMetadata,_.RQ).url=A;L=_.F("desktop_enable_entity_suggest")?{entityMid:L}:{};_.xS().resolve(_.S1).resolveCommand(K,{form:{tempData:Object.assign({},
{gs_l:G,oq:W!=null?W:m},L),isFromShorts:_.bk()==="shorts"}})};
Og5=function(m){switch(m){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
YA6=function(m,G,K,W,L,A){var O=_.Y2.clone(cli);O.locale=_.E8("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;O.report={description:L||"<empty>"};L=_.E8("SBOX_SETTINGS",{});G=G.join(",");var c=Date.now();m={choice_cc:W,choice_id_cc:K,choices_sc:G,gl:L.REQUEST_DOMAIN,hl:L.REQUEST_LANGUAGE,query:m,time:c};A&&(m.choice_additional_comment_cc=A);_.swG(O,m)};
rl5=function(m){var G=new Map;G.set("authuser",_.E8("SESSION_INDEX","0"));return _.$y(m,G)};
h0u=function(m){var G;return _.Y(function(K){switch(K.nextAddress){case 1:if(!m||!u5P(m))return K.return(null);G=null;switch(_.E8("INNERTUBE_CLIENT_NAME")){case "WEB":return K.jumpTo(2);case "WEB_REMIX":G=m.getPlayer()}K.jumpTo(3);break;case 2:return K.yield(m.getPlayerPromise(),4);case 4:G=K.yieldResult;K.jumpTo(3);break;case 3:return K.return(G)}})};
u5P=function(m){return["ytd-player","ytmusic-player"].includes(String(m.tagName||"").toLowerCase())};
po6=function(m){m=Math.round(m);return m%2?m-1:m};
Jls=function(m){m=Math.round(m);return m%2===0?m-1:m};
NLP=function(m){var G=["h","m","s"],K=_.yf(G);K.reverse();var W={};m=(m.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(O){var c=(O.match(/[hms]/)||[""])[0];return c?(W[c]=parseInt(O.match(/\d+/)[0],10),!1):!0});
for(m.reverse();m.length&&K.length;){var L=K.shift();L in W||(W[L]=parseInt(m.shift(),10))}if(m.length||W.s>59||W.m>59||W.h>9)return null;var A="";G.forEach(function(O){W[O]&&(A+=""+W[O]+O)});
return A||null};
DEq=function(m){var G,K,W;if(m=(G=m.createPlaylistDialogFormSchema)==null?void 0:(K=G.fieldSchemas)==null?void 0:(W=K.title)==null?void 0:W.validationSchema)for(G=[m.syncStep,m.asyncStep].filter(function(L){return L!==void 0}),G=_.g(G),K=G.next();!K.done;K=G.next()){K=K.value.rules;
if(!K)break;K=_.g(K);for(K=K.next();!K.done;K=K.next())return _.Q(K.value,Ln6)}};
F9W=function(m){var G,K,W;if(m=(G=m.createPlaylistDialogFormSchema)==null?void 0:(K=G.fieldSchemas)==null?void 0:(W=K.visibility)==null?void 0:W.validationSchema)for(G=[m.syncStep,m.asyncStep].filter(function(L){return L!==void 0}),G=_.g(G),K=G.next();!K.done;K=G.next()){K=K.value.rules;
if(!K)break;K=_.g(K);for(W=K.next();!W.done;W=K.next())if(W=_.Q(W.value,tZ6))return G=void 0,(G=W.translations)==null?void 0:G.visibilityNotValidErrorMessage}};
Q36=function(){var m,G;return(G=(m=_.xS().resolve(_.fn(_.l_)))==null?void 0:m())!=null?G:!1};
a85=function(m){var G=21;if(!m)return G;G+=m.headerTitle?27:0;G+=m.headerTitle&&m.hasHeaderActionHeader?4:0;return G+=m.headerTitle&&m.headerSubtitle?16:0};
oiq=function(m){var G=0;if(!m)return G;G+=m.hasFooterPrimaryButton||m.hasFooterSecondaryButton?48:0;G+=m.footerTrailingLabel||m.footerLeadingLabel?30:0;return G+=m.hasFooterPrimaryButton||m.hasFooterSecondaryButton||!m.footerTrailingLabel&&!m.footerLeadingLabel?0:12};
niP=function(m){var G=new _.Gd,K=m;return{subscribe:function(W){G.subscribe("changed",W)},
dispatch:function(W,L){var A=K;if(W==="Touch Start")K=Object.assign({},A,{isAnimating:!1,initialY:L.event.touches[0].clientY});else if(W==="Touch Move"){W=L.contentScrollable?-1*(A.initialY-24):0;var O,c=(O=L.headerDivHeight)!=null?O:a85(L.header),u;O=(u=L.footerDivHeight)!=null?u:oiq(L.footer);u=Math.min(L.fullContentWrapperHeight,L.heightMap[L.contentWrapperId]+c-O);K=Object.assign({},A,{currentY:Math.max(W,L.event.touches[0].clientY-A.initialY),maxHeightForContentWrapper:Math.min(u,Math.max(0,
(A.isFullScreen?u:L.contentWrapperHeight)-A.currentY))})}else K=W==="Snap To Full Screen"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:L.maxHeight}):W==="Snap To Neutral Position"?Object.assign({},A,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):W==="Close Sheet"?Object.assign({},A,{isAnimating:!0,currentY:L.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):A;G.publish("changed",K)}}};
bg6=function(){_.xS().resolve(_.Lk).closeSheet()};
viz=function(m){var G,K,W,L,A,O,c,u,h,J,N;return{headerTitle:(G=m.headerTitle)==null?void 0:G.call(m),headerSubtitle:(K=m.headerSubtitle)==null?void 0:K.call(m),headerActionHeader:m.headerActionHeader,footerPrimaryButton:m.footerPrimaryButton,footerSecondaryButton:m.footerSecondaryButton,footerButtonType:(W=m.footerButtonType)==null?void 0:W.call(m),footerLeadingLabel:(L=m.footerLeadingLabel)==null?void 0:L.call(m),footerTrailingLabel:(A=m.footerTrailingLabel)==null?void 0:A.call(m),shouldShowIcons:(O=
m.shouldShowIcons)==null?void 0:O.call(m),skipContentClick:(c=m.skipContentClick)==null?void 0:c.call(m),additionalClassName:(u=m.additionalClassName)==null?void 0:u.call(m),onClosedCallback:m.onClosedCallback,focusOnClose:(h=m.focusOnClose)==null?void 0:h.call(m),isDisabled:(J=m.isDisabled)==null?void 0:J.call(m),disabledCommand:(N=m.disabledCommand)==null?void 0:N.call(m),headerFn:m.headerFn,contentFn:m.contentFn,footerFn:m.footerFn,hasHeaderFn:m.hasHeaderFn(),hasContentFn:m.hasContentFn(),hasFooterFn:m.hasFooterFn(),
hasFooterPrimaryButton:m.hasFooterPrimaryButton(),hasFooterSecondaryButton:m.hasFooterSecondaryButton(),hasHeaderActionHeader:m.hasHeaderActionHeader()}};
$EP=function(m){switch(m){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""}};
s3P=function(m){switch(m){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""}};
qAP=function(m){switch(m){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""}};
Eiu=function(m,G,K){G.forEach(function(W){_.xq(_.xS().resolve(_.m_),W)});
_.dU(m,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",K])};
kBE=function(m,G,K,W){var L=_.Q(K,_.t6).commandLifeCycleConfig;L&&L.onStartCommand&&_.eD(m,[L.onStartCommand],G);_.hX(G);var A=_.NW.instance;A&&_.Dg(A,K)?_.to(A,K,W).then(function(O){if(!O||(O==null?0:O.error))return O=_.Q(K,_.t6).serializedTransactionFlowLoggingParams,_.pm(G),_.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",O));_.pm(G);return{data:O}}).then(function(O){_.pm(G);
Hgu(O.data);var c=O.data.command;c&&_.eD(m,[c],G);c=I8i(K,O.data);if(!c){var u=O.data;O=!1;if(u&&u.command&&_.Q(u.command,_.xu)){var h;u=((h=_.Q(u.command,_.xu))==null?void 0:h.commands)||[];for(h=0;h<u.length;h++)if(_.Q(u[h],_.Q_P)){O=!0;break}}O||_.TX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!c&&L&&L.onSuccessCommand?_.eD(m,[L.onSuccessCommand],G):c&&L&&L.onFailureCommand&&_.eD(m,[L.onFailureCommand],G)},function(){_.pm(G);
L&&L.onFailureCommand&&_.eD(m,[L.onFailureCommand],G);j3z(K)}):_.am(Error("ym"),"ERROR")};
CAG=function(m,G,K){var W=[G];K&&W.push(K);return _.yQ(m,W).then(function(L){var A=_.Q(G,_.t6).serializedTransactionFlowLoggingParams,O=L.data,c=I8i(G,O);c?L=_.KN(new J1(c,A)):Hgu(O);return L},function(){var L=_.Q(G,_.t6).serializedTransactionFlowLoggingParams;
j3z(G);return _.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",L))})};
I8i=function(m,G){m=_.Q(m,_.t6).serializedTransactionFlowLoggingParams;var K=null;switch(G.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":K="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":K="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":K="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}K?_.nr(K,m):SB5(m);return K};
j3z=function(m){_.nr("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Q(m,_.t6).serializedTransactionFlowLoggingParams)};
Hgu=function(m){if(m.trackingParams){var G=_.gU(),K=_.wU();G&&K&&_.tW(G,K,_.m5(m.trackingParams))}};
VZD=function(m,G,K){var W=_.NW.instance,L=_.Xav(_.E8("YPC_MB_URL")),A=(new _.fKd).init(),O=_.xwG(),c=_.Q(K,_.pxG).languageCode;c===void 0?_.am(Error("Mi"),"ERROR"):_.gO([A,L]).then(function(){var u={ctk:_.HY.payments.business.integration.ClientTokenFactory.createClientToken(c,O)};W&&_.Dg(W,K)?_.to(W,K,u).then(function(h){return{data:h}}).then(function(h){_.Zw(G,"yt-service-request-completed",h);
h.code!=="ERROR"&&(h=h.data.command)&&_.eD(m,[h],G)}):_.am(Error("ym"),"ERROR")})};
PA6=function(m,G,K,W){var L=_.NW.instance;L&&_.Dg(L,K)?_.to(L,K,W).then(function(A){return{data:A}}).then(function(A){Zg6(m,G,K,A)},function(){dE5(K)}):(L=_.xS().resolve(_.fn(_.M_)))&&L.requestDataForServiceEndpoint(K,W).then(function(A){Zg6(m,G,K,A)},function(){dE5(K)})};
Zg6=function(m,G,K,W){_.Zw(G,"yt-service-request-completed",W);if(W.code&&W.code=="ERROR")dE5(K);else{(W=W.data.commands)&&_.eD(m,W,G);var L;(m=(L=_.Q(K,_.oUX))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&m&&Ki("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",m)}};
dE5=function(m){var G;(m=(G=_.Q(m,_.oUX))==null?void 0:G.serializedYpcPauseFlowLoggingParams)&&m&&Ki("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",m,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
f8s=function(m,G,K){var W=_.NW.instance;W&&_.Dg(W,K)?_.to(W,K).then(function(L){return{data:L}}).then(function(L){ylD(m,G,K,L)},function(){e0s(K)}):(W=_.xS().resolve(_.fn(_.M_)))&&W.requestDataForServiceEndpoint(K).then(function(L){ylD(m,G,K,L)},function(){e0s(K)})};
ylD=function(m,G,K,W){_.Zw(G,"yt-service-request-completed",W);W.code&&W.code=="ERROR"?e0s(K):((W=W.data.commands)&&_.eD(m,W,G),(m=_.Q(K,_.nUo).serializedYpcResumeFlowLoggingParams)&&m&&Ki("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",m))};
e0s=function(m){(m=_.Q(m,_.nUo).serializedYpcResumeFlowLoggingParams)&&m&&Ki("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",m,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
xEO=function(m){m=m===void 0?{}:m;_.xS().resolve(_.usD).showFeedbackDialog(m.customProductData,m.feedbackContent,m.onFeedbackSubmitted,m.bucket)};
XoG=function(m){m=m===void 0?{}:m;_.xS().resolve(_.usD).showHelpDialog(m.helpContext,m.articleId,m.productData)};
SA6=function(){XoG()};
R06=function(){xEO()};
z06=function(m,G,K){var W,L,A,O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:W=_.Q(m,UEO);if((L=W)==null?0:L.productId){u={productId:W.productId,bucket:W.bucket,enableAnonymousFeedback:(c=W.enableAnonymousFeedback)!=null?c:!0,allowNonLoggedInFeedback:!0};h={feedbackChoice:K.feedbackChoice};if(!_.F("web_collect_offline_state")){J.jumpTo(8);break}_.IO(J,9);return J.yield(Pdu(h),11)}O={bucket:(A=W)==null?void 0:A.bucket};if(!_.F("web_collect_offline_state")){J.jumpTo(4);break}O.customProductData=
{};_.IO(J,5);return J.yield(Pdu(O.customProductData),7);case 7:_.IG(J,4);break;case 5:_.ye(J);case 4:xEO(O);J.jumpTo(0);break;case 11:_.IG(J,8);break;case 9:_.ye(J);case 8:_.qkd(h),_.sJP("GFEEDBACK",h),W.productId==="5295751"&&(h.client_attestation=Number(_.E8("CATSTAT",0))),W.productId==="5295751"&&(h.client_time=Date.now()/1E3/3600),W.productId==="5295751"&&(h.original_playback_id=_.uWK||""),_.swG(u,h),_.ey(J)}})};
l8P=function(m){if(m=_.Q(m,_.kRv)){var G={bucket:m.bucketIdentifier};m.additionalDatas&&(G.customProductData={},m.additionalDatas.forEach(function(K){if(K=K.userFeedbackEndpointProductSpecificValueData)G.customProductData[K.key]=K.value}));
xEO(G)}};
BLu=function(m){var G=_.Im.getInstance();var K=_.zq("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var W=_.zq("DELETE",void 0,"Delete"),L=_.zq("CANCEL",void 0,"Cancel");K=LyD(K,void 0,W,L,{signal:"DELETE_ALL_DOWNLOADS"});_.OL(G,[{openPopupAction:K}],m)};
TLO=function(){return _.Y(function(m){return m.nextAddress==1?m.yield(_.xS().resolve(_.Jv),2):m.yield(MZ6(),0)})};
mNz=function(m){var G,K;return _.Y(function(W){return W.nextAddress==1?(K=(G=_.Q(m,_.qF))==null?void 0:G.targetId)?W.yield(_.xS().resolve(_.Jv),3):W.jumpTo(0):W.yield(_.xS().resolve(_.pR).deleteVideo(K),0)})};
GsW=function(m){var G,K;return _.Y(function(W){return W.nextAddress==1?(K=(G=_.Q(m,_.qF))==null?void 0:G.targetId)?W.yield(_.xS().resolve(_.Jv),3):W.jumpTo(0):W.yield(iV5(_.xS().resolve(_.pR),K),0)})};
WWz=function(m){var G,K;return _.Y(function(W){return(K=(G=_.Q(m,_.qF))==null?void 0:G.targetId)?W.yield(KWW(K),0):W.jumpTo(0)})};
AYq=function(){_.F("kevlar_woffle_refresh_dl_load_killswitch")||LW5()};
gvO=function(){_.F("kevlar_woffle")&&_.tK.instance&&wbD()};
cY6=function(m){var G;if((G=_.Q(m,_.xg))==null||!G.videoId)return!1;OVq(_.xS().resolve(_.pR),_.Q(m,_.xg),m.clickTrackingParams);return!0};
rYz=function(m){var G;if((G=_.Q(m,_.Xk))==null||!G.playlistId)return!1;Y1W(_.xS().resolve(_.pR),_.Q(m,_.Xk),m.clickTrackingParams);return!0};
hTD=function(m){var G=_.Q(m,_.ASS);(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(G==null?void 0:G.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||uou(_.xS().resolve(_.pR),_.Q(m,_.ASS))};
JYG=function(m){m=_.Q(m,_.jEl);var G;(m==null?0:(G=m.actions)==null?0:G.length)&&pb6(m)};
tk6=function(m){var G,K;return _.Y(function(W){G=_.Q(m,N3s);return(K=G)!=null&&K.localWatchHistoryCommandType?W.yield(DN6(G),0):W.return()})};
QSq=function(){return _.Y(function(m){return m.yield(FWu(),0)})};
aS6=function(m){setTimeout(function(){requestAnimationFrame(m)},80)};
ovP=function(m){return Object.entries(m).map(function(G){return G.join(":")}).join(";")};
bV6=function(m){var G,K,W;_.Y(function(L){if(L.nextAddress==1)return L.yield(nv5(),2);G=L.yieldResult;K=_.xe.instance;switch(G){case "granted":W=m.getLocationCommand;break;case "denied":W=m.openDeniedDialogAction;break;case "prompt":W=m.openCollectionDialogAction;break;default:W=m.openCollectionDialogAction}W&&K.resolveCommand(W);_.ey(L)})};
nv5=function(){var m,G;return _.Y(function(K){if(K.nextAddress==1)return m="prompt",navigator.permissions?K.yield(navigator.permissions.query({name:"geolocation"}),3):K.jumpTo(2);K.nextAddress!=2&&(G=K.yieldResult,m=G.state);return K.return(m)})};
$Ni=function(){_.Y(function(m){return m.yield(_.vvD(),0)})};
sSO=function(){var m,G,K;return _.Y(function(W){if(W.nextAddress==1)return m=_.xS().resolve(_.Tv),m?W.yield(_.to(m,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.nc(Error("Bm")),W.return(void 0));if(G=W.yieldResult){if(G.errorMetadata)return _.nc(Error("Cm`"+G.errorMetadata.status+"`"+G.error)),W.return(void 0);K=G.datasyncIds;_.vy6=K.length;return W.return(K)}_.nc(Error("Dm"));return W.return(void 0)})};
q1W=function(){sSO().then(function(m){m&&(ZCO(m),MDi(m),uAP(m),eHE(m))})};
Evs=function(m){_.Fu.addLowPriorityJob(function(){var G,K,W,L,A;return _.Y(function(O){switch(O.nextAddress){case 1:if(_.F("ytidb_clear_optimizations_killswitch")){O.jumpTo(2);break}G=_.g8("clear");if(G.startsWith("V")&&G.endsWith("||")){var c=[G];ZCO(c);MDi(c);uAP(c);eHE(c);return O.return()}K=hJP();W=fQE();return O.yield(TUW(),3);case 3:return L=O.yieldResult,O.yield(dkP(),4);case 4:if(A=O.yieldResult,!(K||W||L||A))return O.return();case 2:m.isNetworkAvailable()?q1W():m.listenOnce("publicytnetworkstatus-online",
q1W),_.ey(O)}})})};
NX=function(m){m={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.nG(m)}}}};_.xe.instance&&_.xe.instance.resolveCommand(m)};
HVq=function(m){if(m){var G=_.l1();_.PB(G,3854,void 0,{layer:0,parentLayer:4});switch(m){case 1:var K=238708;break;case 2:K=238715;break;case 3:K=238710;break;case 6:K=238709}K&&(m=_.zg(G,{veType:K}))&&_.fK(G,m)}};
IS5=function(m){if(m){var G=_.l1();_.PB(G,3854,void 0,{layer:0,parentLayer:4});switch(m){case 1:var K=238714;break;case 2:K=238711;break;case 8:K=238709;break;case 7:K=238713;break;case 3:case 4:case 5:K=238712}K&&(m=_.zg(G,{veType:K}))&&_.fK(G,m)}};
jSu=function(m){switch(m.latencyType){case 0:_.ck("consent_primitive_flow");_.Yt("cpit",m.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Yt("cpist",m.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Yt("cprtif",m.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Yt("cprtli",m.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Yt("cprt",m.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Yt("cpdt",m.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Yt("cpjct",m.timestampEpochMillis,"consent_primitive_flow")}};
S16=function(m,G){var K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f;return _.Y(function(U){switch(U.nextAddress){case 1:_.IO(U,2);(W=(K=_.Q(m,ks6))==null?void 0:K.serializedConsentRequest)||(W=(L=_.Q(m,C76))==null?void 0:L.serializedConsentRequest);W&&(A=VkO(_.T9(W)));if(A===void 0)return U.return();O=ZVD(A);O.latencyCallback=jSu;G&&dNE(O,function(){G.then(function(l){l.pauseVideo();(new P7O).increment()})});
return((c=_.Q(m,ks6))==null?void 0:c.consentAction)==="CONSENT_ACTION_PREWARM"||((u=_.Q(m,C76))==null?void 0:u.consentAction)==="CONSENT_ACTION_PREWARM"?U.yield(yY6(O),5):U.yield(eTE(O),6);case 6:h=U.yieldResult;J=_.Te(h,DY);if(J===1){if(((N=_.Yi(h,fS6,1,DY))==null?void 0:_.gL(N,1))===1||((D=_.Yi(h,fS6,1,DY))==null?void 0:_.gL(D,1))===2||((t=_.Yi(h,fS6,1,DY))==null?void 0:_.gL(t,1))===3)_.Q(m,C76)?NX(_.zq("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
NX(_.zq("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));HVq((a=_.Yi(h,fS6,1,DY))==null?void 0:_.gL(a,1),_.CB(h,xNP,3,_.Vp()))}else J===2?(((v=XbE(h))==null?void 0:_.gL(v,1))===5?_.Q(m,C76)?NX(_.zq("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):NX(_.zq("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((I=XbE(h))==null?void 0:_.gL(I,1))===1||((Z=XbE(h))==null?void 0:_.gL(Z,1))===4?
NX(_.zq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")):((k=XbE(h))==null?void 0:_.gL(k,1))===7&&((z=A)==null?void 0:(X=_.RG(z,t1,4))==null?void 0:_.gL(X,4))!==1&&NX(_.zq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),IS5((f=XbE(h))==null?void 0:_.gL(f,1))):NX(_.zq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));U.jumpTo(5);break;case 5:_.IG(U,0);break;case 2:_.ye(U),NX(_.zq("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),
_.ey(U)}})};
UNE=function(){if(!RTE.has("Worker")){RTE.set("Worker",!0);var m={api:"BROWSER_API_WEB_WORKER"};m.available="Worker"in window?!0:!1;_.Fx("apiTest",m)}};
zTi=function(m){return typeof m==="undefined"?"-1":String(Math.ceil(m/1048576))};
T3E=function(m,G){lSD(new B3q(_.Q(G,Mk6).addToken,_.Q(G,Mk6).commonToken)).then(function(){_.Zw(m,"yt-invoke-instrument-manager-action-completed")},function(K){_.Zw(m,"yt-invoke-instrument-manager-action-error",K)})};
Fz=function(){return _.E8("HTML_DIR")==="rtl"};
m3O=function(){var m,G;return(G=(m=window).matchMedia)==null?void 0:G.call(m,"(prefers-reduced-motion: reduce)").matches};
ibW=function(m){var G=_.xS().resolve(_.fn(_.TE));if(G&&G.isAnyTransitionEnabled){var K={};G.viewTransitionCoordinator.registerElement(m,(K.slide="miniplayer-page-transition",K["lockup-to-watch"]="miniplayer-page-transition",K["learning-journey"]="miniplayer-page-transition",K))}};
G5E=function(m,G,K){return{horizontalAlignment:m.x+K.width/2<G.width/2?"west":"east",verticalAlignment:m.y+K.height/2<G.height/2?"north":"south"}};
WzG=function(m,G,K,W,L){L=L===void 0?new _.si(0,0):L;m=Kzs(m,G,K,W,!1);return new _.si(m.x+L.x,m.y+L.y)};
Kzs=function(m,G,K,W,L){L=(L===void 0?0:L)?400:0;return new _.si(m==="west"?16+(Fz()?L:0):K.width-W.width-16-(Fz()?0:L),G==="north"?16:K.height-W.height-16)};
Lz6=function(m,G){var K=0;m&&(K+=76);G&&(K+=285);return K};
AzD=function(m){return _.Jl(m)};
wWi=function(m){var G=1;m=m.split(":");for(var K=[];G>0&&m.length;)K.push(m.shift()),G--;m.length&&K.push(m.join(":"));return K};
gZz=function(m){var G=new _.zs;return _.rL(G,11,m)};
Ob6=function(m){var G={};m=m.getAllResponseHeaders().split("\r\n");for(var K=0;K<m.length;K++)if(!_.Od(m[K])){var W=wWi(m[K]),L=W[0];W=W[1];if(typeof W==="string"){W=W.trim();var A=G[L]||[];G[L]=A;A.push(W)}}return _.Y2.map(G,function(O){return O.join(", ")})};
iGi=function(m,G){return m.JSC$10103_xhr_?m.JSC$10103_xhr_.getResponseHeader(G):null};
czq=function(m,G){if(m.isDisposed())throw Error("Fa");m.xM.bX("n");var K=_.Jz(m.xM,function(){return m.qVH([G.kW,G.tLP,G.by2,G.k53])},"n");
m.xM.fMG(K.length);m.xM.gN();return K};
Y5u=function(m,G,K){Array.isArray(K)||(K=[String(K)]);_.LmB(m.JSC$10339_queryData_,G,K);return m};
rzO=function(m){var G=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.em(m);m.keyMap_.forEach(function(K,W){_.Vf(G,W)||this.remove(W)},m)};
wbD=function(){var m=_.tK.instance;_.Y(function(G){return m.deferredInstallPrompt?G.yield(m.deferredInstallPrompt.prompt(),0):G.jumpTo(0)})};
uNG=function(m,G,K){if(_.XP(m))_.Z0(m,G,K);else for(m=_.wkl(m);;){var W=m.next();if(W.done)break;G.call(K,W.value,void 0,m)}};
hVs=function(m,G){var K=[];uNG(G,function(W){try{var L=_.LA.prototype.getWrapper.call(this,W,!0)}catch(A){if(A=="Storage: Invalid value was encountered")return;throw A;}L===void 0?K.push(W):_.AWR(L)&&K.push(W)},m);
return K};
TBq=function(m,G){hVs(m,G).forEach(function(K){_.LA.prototype.remove.call(this,K)},m)};
pW6=function(m){var G=_.hp;G._minimumZ=Math.max(G._minimumZ,m)};
Jzs=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];NO5=function(m,G){_.I$(m.vm);m.vm=G};
D36=function(m,G,K,W){m.setState(5);var L=!!m.oap&&Jzs.includes(_.eh(m.oap)||"");try{var A=new _.N3({program:G,globalName:K,vvT:{disable:!_.F("att_web_record_metrics")||!_.F("att_skip_metrics_for_cookieless_domains_ks")&&L,km:"aGIf"}});A.bgc.then(function(){m.setState(6);W&&W(G)});
NO5(m,A)}catch(O){m.setState(7),O instanceof Error&&_.nc(O)}};
tm6=function(m,G,K,W,L,A){var O=O===void 0?"trayride":O;K?(m.setState(2),_.pJ(_.hO(K),function(){if(window[O])D36(m,W,O,L);else{m.setState(3);var c=_.$VG(K),u=document.getElementById(c);u&&(_.Rav(c),u.parentNode.removeChild(u));_.nc(new _.cw("BL:ULB",K))}},A)):G?(A=_.M7("SCRIPT"),G instanceof _.Yr?_.pZ(A,G):A.textContent=G,A.nonce=_.cz(document),document.head.appendChild(A),document.head.removeChild(A),window[O]?D36(m,W,O,L):(m.setState(4),_.nc(new _.cw("BL:ULBJ")))):_.nc(new _.cw("BL:ULV"))};
Fzz=function(){this.state=1;this.vm=null;this.oap=void 0};
_.w=Fzz.prototype;_.w.initialize=function(m,G,K,W){this.oap=W;if(m.program){var L;W=(L=m.interpreterUrl)!=null?L:null;if(m.interpreterSafeScript)L=_.pLf(m.interpreterSafeScript);else{var A;L=(A=m.interpreterScript)!=null?A:null}m.interpreterSafeUrl&&(W=_.Ql(m.interpreterSafeUrl).toString());tm6(this,L,W,m.program,G,K)}else _.nc(Error("uf"))};
_.w.isInitialized=function(){return!!this.vm};
_.w.getState=function(){return this.state};
_.w.isLoading=function(){return this.state===2};
_.w.invoke=function(m){m=m===void 0?{}:m;var G;this.vm?G=czq(this.vm,{kW:m}):G=null;return G};
_.w.dispose=function(){NO5(this,null);this.setState(8)};
_.w.setState=function(m){this.state=m};
var Qaq=function(m,G){return m.vm.snapshot(G)},aLD=function(m,G){var K=_.U8("botguard_async_snapshot_timeout_ms",3E3);
G=G===void 0?{}:G;K=K===void 0?3E3:K;return m.vm?new Promise(function(W,L){var A=!1,O=_.Fu.addJob(function(){A=!0;L(Error("vf"))},1,K);
m.vm?Qaq(m,{kW:G}).then(function(c){_.Fu.cancelJob(O);A||W(c)}).catch(function(c){_.Fu.cancelJob(O);
A||L(c)}):(_.Fu.cancelJob(O),W(null))}):Promise.resolve(null)},oZE=["att/log"],woz;
woz={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var nZE={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},bbu=function(m,G){return _.zz(m,{mode:"readwrite",enableRetries:!0},function(K){return _.Axo(K,G,"settingEntity")})},vZ6=function(m,G,K){return _.zz(m,{mode:"readonly",
enableRetries:!0},function(W){return _.Uro(W,G,K)})},$3q=function(m){if(!m.storage)return!1;
a:{if(m.storage){try{var G=m.storage.get("TLPQtimestamp")}catch(K){}m=Number(G);if(!isNaN(m))break a}m=void 0}return m?Date.now()-m<864E5:!1},saD=function(m){if(m.storage){try{var G=m.storage.get("TLPQindex")}catch(K){}m=Number(G);
if(!isNaN(m))return m}},QV=function(m){var G=_.tf();
return _.UOi(G,m,1)},q56=function(m,G){m.queueProxy&&G.forEach(function(K){if(K.videoId&&K.trackingParams&&m.queueProxy instanceof _.hf){var W=_.gU();
m.queueProxy.attributionData.set(K.videoId,{enqueueingVe:_.m5(K.trackingParams).getAsJson(),enqueueingCsn:W?W:void 0,clientEnqueueingTimeMs:Math.floor((0,_.xD)()).toString()})}})},EZi=function(m){var G=_.HMl(m);
G!=m.currentSnapState_&&(m.currentSnapState_=G,m.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},ap=function(m){this.JSC$13536_networkManager_=m;
this.partCallbacks_=[]};
ap.prototype.getCacheKeyForEndpoint=function(m){return _.ReP(m,!1)};
ap.prototype.onPartsCallback_=function(m){this.partCallbacks_.forEach(function(G){m&&G(m)})};
var op=function(m,G,K){ap.call(this,m);this.player_=G;this.autoplayData_=K};
_.n(op,ap);op.prototype.getCacheKeyForEndpoint=function(m){return _.ReP(m,!!this.autoplayData_)};
op.prototype.getTempData=function(m,G){G=G.timeBeforeNextVideo;m={itct:m.clickTrackingParams,lact:_.Xu(),pbis:G,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(m.autonav=1);return m};
op.prototype.getXhrParams=function(m){return Object.assign({pbj:"prefetch"},m)};
op.prototype.getParams=function(m){m={frags:m.fragmentsRequested.join(",")};_.F("kevlar_droppable_prefetchable_requests")&&(m.prefetch=1);return m};
var HbD=function(m){m.playerEvents_.forEach(function(G){m.player.removeEventListener(G.eventName,G.callback)});
m.playerEvents_.length=0},IL6=function(m,G,K){this.player=m;
this.JSC$13546_taskManager=G;this.prefetchDelay=K;this.completionResolver_=null;this.playerEvents_=[]};
IL6.prototype.start=function(){var m=this;this.completionResolver_=_.Qo();_.O5(this.completionResolver_.promise,function(){HbD(m);m.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var ja6=function(m,G,K){m.player.addEventListener(G,K);m.playerEvents_.push({eventName:G,callback:K})},k5u={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},CZE={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},VmP=function(m,G,K){IL6.call(this,m,G,K);this.cueId_="playbackTrigger-"+Math.random()};
_.n(VmP,IL6);
VmP.prototype.prepareTrigger=function(m){var G=this,K=this.player.getDuration(),W=this.player.getVideoData(),L=W.isLive&&W.hasProgressBarBoundaries;if(L&&W.progressBarEndPositionUtcTimeMillis){var A=W.progressBarEndPositionUtcTimeMillis/1E3;isNaN(A)||(K=A)}var O=0;this.prefetchDelay>=0?L?W.progressBarStartPositionUtcTimeMillis&&(W=W.progressBarStartPositionUtcTimeMillis/1E3,isNaN(W)||(O=W+this.prefetchDelay)):O=this.prefetchDelay:O=K+this.prefetchDelay;L?this.player.addUtcCueRange(this.cueId_,O,K):
this.player.addCueRange(this.cueId_,O,K);_.O5(m.promise,function(){G.player.removeCueRange(G.cueId_)});
ja6(this,"onCueRangeEnter",function(c){c==G.cueId_&&m.resolve(K-O)})};
var ZbE=function(m,G){m.fragmentConfiguration_[G].requiredKeys.every(function(K){return!!m.prefetchedData_[K]})&&(m.validatedFragments_.push(G),G=m.missingFragments_.indexOf(G),G!==-1&&m.missingFragments_.splice(G,1))},d3i=function(m){m.prefetchedFragments_.forEach(function(G){ZbE(m,G)})},PZE=function(m,G,K){this.pageFragments_=m;
this.prefetchedFragments_=G;this.fragmentConfiguration_=CZE;this.prefetchedData_=K;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;d3i(this)},yzG=function(){},eVW=function(m){this.JSC$13560_playlistManager_=m};
_.n(eVW,yzG);eVW.prototype.getPrefetchEndpoint=function(){return this.JSC$13560_playlistManager_.getAutoplayEndpoint()};
var fL6=function(m){this.autonavEndpoints_=m};
_.n(fL6,yzG);fL6.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var x3G=function(m,G,K,W,L){this.autonavEndpoints=m;this.foregroundTrigger=G;this.backgroundTrigger=K;this.pageType=W;this.isInPlaylist=L},XWi=function(m,G){if(m.webPrefetchData&&m.webPrefetchData.navigationEndpoints&&m.webPrefetchData.navigationEndpoints.length){m=m.webPrefetchData.navigationEndpoints;
var K=_.Q(m[0],_.QQ);if(K.watchEndpointSupportedPrefetchConfig&&K.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var W=K.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;K=W.playbackRelativeSecondsPrefetchCondition;K=typeof K==="number"&&Math.abs(K)<G.videoDuration?K:void 0;W=W.countdownUiRelativeSecondsPrefetchCondition;W=typeof W!=="number"||_.F("prefetch_job_config_cleanup_ks")&&G.inPlaylist?void 0:W;if(typeof W==="number")return new x3G(m,G.makeUpNextTrigger(W),G.makePlaybackTrigger(W),
"watch",G.inPlaylist);if(typeof K==="number")return new x3G(m,G.makePlaybackTrigger(K),null,"watch",G.inPlaylist)}}},S55=function(m){return m.prefetchJobConfig_.backgroundTrigger?_.kS(BC6)()==0?m.prefetchJobConfig_.backgroundTrigger:m.prefetchJobConfig_.foregroundTrigger:m.prefetchJobConfig_.foregroundTrigger},RVD=function(m){_.Lb(document,"visibilitychange",m.onVisibilityChange_,!1,m)},nx=function(m){ap.call(this,m)};
_.n(nx,ap);nx.prototype.getCacheKeyForEndpoint=function(m){return ap.prototype.getCacheKeyForEndpoint.call(this,m)};
nx.prototype.getTempData=function(){return{}};
nx.prototype.getXhrParams=function(m){return m};
nx.prototype.getParams=function(){return{}};
var U3P=function(m,G,K){var W=m.prefetchDelay*1E3;if(Math.abs(W)>G)K.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var L=W,A=G-W;W<0&&(L=G+W,A=Math.abs(W));var O=m.JSC$13546_taskManager.addJob(function(){K.resolve(A/1E3)},10,L);
K.promise.thenCatch(function(){m.JSC$13546_taskManager.cancelJob(O)})}},zV6=function(m,G,K){IL6.call(this,m,G,K)};
_.n(zV6,IL6);zV6.prototype.prepareTrigger=function(m){var G=this;ja6(this,"onAutonavCoundownStarted",function(K){U3P(G,K,m)})};
var lLE=function(m){m.pendingPrefetchJob_&&(m.pendingPrefetchJob_.cancel(),m.pendingPrefetchJob_=null)},BOz=function(m,G,K){if(!m.triggeredTargets.has(G)){var W=_.l$0(m,G);
W.action=K;_.zSk(m,G,W)}},Mms=function(m){_.etk();
_.xQd("cpt")&&_.nc(Error("nh"));_.Ks.requestAnimationFrame(function(){_.Ks.setTimeout(function(){_.Yt("cpt");var G=_.hW("vpl"),K=_.hW("cpt");G&&K&&_.Yt("ol",Math.max(G,K))})});
try{_.Yt("fr_s"),m()}catch(G){_.am(G)}_.Ks.requestAnimationFrame(function(){_.Yt("bcp")})},TOO={FILLED:"youtube_fill",
OUTLINE:"youtube_outline"},mzG=function(m,G){m.serviceEndpointHandlers.push(G)},i_G=function(m,G){G=m.pendingPages_.indexOf(G);
G>-1&&m.pendingPages_.splice(G,1)},GNE=function(m,G){var K=_.p_K.indexOf(G);
K>-1&&_.p_K.splice(K,1);m.targetPage_==G?(m.abort(),_.N7C(m)):i_G(m,G)},KPO=function(m,G){m.reloadContinuationItemsCommandMatcher=G},WPs=function(m,G,K){G&&K&&(m.videos.forEach(function(W){W.videoId===G&&(W.itemId=K)}),m.recommendedVideos.forEach(function(W){W.videoId===G&&(W.itemId=K)}))},LPu=function(m){this.onStepChangeCallback=function(){};
this.flowRenderer=m};
LPu.prototype.getCurrentStep=function(){var m=this,G;return((G=this.flowRenderer.steps)!=null?G:[]).map(function(K){return _.Q(K,_.mI)}).find(function(K){return K&&K.stepId===m.currentStepId})};
var AsW=function(m,G){var K=G.flowStateEntityKey,W=m.flowStates.get(K);if(W)return W;G=new LPu(G);m.flowStates.set(K,G);return G},wZs=function(m,G){for(var K=_.g(m.flowStates.entries()),W=K.next();!W.done;W=K.next()){var L=_.g(W.value);
W=L.next().value;L=L.next().value;if(L.flowRenderer.targetId===G){m.flowStates.delete(W);break}}},gWP=function(m,G){m.onStepChangeCallback=G;
m.onStepChangeCallback(m.getCurrentStep())},O_z=function(m,G){var K=m.getCurrentStep();
if(K&&K.stepId===G)return!0;var W;return((W=m.flowRenderer.steps)!=null?W:[]).map(function(L){return _.Q(L,_.mI)}).find(function(L){return L&&L.stepId===G})?(m.currentStepId=G,m.onStepChangeCallback(m.getCurrentStep()),!0):!1},csz=function(m,G,K,W){G={challenge:G};
K&&(G.webResponse=K);return _.Jf(m.innertubeTransportService,G,_.sv(oZE),W)},YX6=function(m,G,K){if(!G.challenge)throw Error("ui");
if(G.botguardData&&G.botguardData.program){var W=new Fzz;W.initialize(G.botguardData,function(){aLD(W,{atr_challenge:G.challenge}).then(function(L){if(!L)throw Error("vi");return csz(m,G.challenge,L,K)}).catch(function(L){_.nc(L);
return csz(m,G.challenge,void 0,K)})},void 0)}else csz(m,G.challenge,void 0,K)},rsO=function(m,G,K){var W={};
G.ids&&(W.ids=[].concat(_.Bz(G.ids)));G.engagementType&&(W.engagementType=G.engagementType);return _.Jf(m.innertubeTransportService,W,_.sv(_.YPB),K).then(function(L){if(!L)throw new _.cw("GetAttestationChallenge returned falsy");YX6(m,L,K)}).thenCatch(function(L){_.am(L)})},uXG=function(m,G,K){return new _.iO(function(W,L){var A;
return _.Y(function(O){if(O.nextAddress==1){var c=O.yield,u=G.engagementType,h=G.ids,J={};h=_.g(h!=null?h:[]);for(var N=h.next();!N.done;N=h.next())N=N.value,N.encryptedVideoId?J.encryptedVideoId=N.encryptedVideoId:N.externalChannelId?J.externalChannelId=N.externalChannelId:N.commentId?J.commentId=N.commentId:N.externalOwnerId?J.externalOwnerId=N.externalOwnerId:N.artistId?J.artistId=N.artistId:N.playlistId?J.playlistId=N.playlistId:N.externalPostId?J.externalPostId=N.externalPostId:N.shareId?J.shareId=
N.shareId:N.postPlayNonce&&(J.postPlayNonce=N.postPlayNonce);return c.call(O,Wyi(u,J),2)}A=O.yieldResult;if(!A.challenge)return _.nc(Error("wi")),rsO(m,G,K).then(W,L),O.return();c=A;u={challenge:c.challenge};u.webResponse=c.webResponse;u.engagementType=G.engagementType;u.ids=G.ids;_.Jf(m.innertubeTransportService,u,_.sv(oZE),K).then(W,L);_.ey(O)})})},gJ6=function(m,G){var K,W,L,A;
_.Y(function(O){if(O.nextAddress==1){K=_.Q(G,_.Ad0);if(!(K&&K.listId&&m.response&&m.response.playingVideoId)||m.listId!==K.listId)return O.return();m.index===void 0&&(m.index=0);return O.yield(_.j42(m.JSC$13399_playlistNetworkManager,K.listId,m.index,m.response.playingVideoId),2)}W=O.yieldResult;if(!W)return O.return();L=W.playlistId;A=W.playlistPanelRenderer;m.setPlaylistData(L,A,W.autoplayRenderer);_.ey(O)})},hlD=function(m,G,K){var W=m.getParams(K),L=_.aEd(G,W),A=m.getTempData(G,K);
A.endpoint=JSON.stringify(G);_.F("enable_unknown_lact_fix_on_html5")&&(_.xS().resolve(_.zk),A.lact=_.Xu());var O={headers:{"X-YouTube-STS":_.E8("STS"),"x-youtube-csoc":1}};_.nJ(L,A);return new _.iO(function(c,u){var h=m.getXhrParams(W),J;_.F("kevlar_cache_on_ttl_player")&&(J=_.xS().resolve(_.WX));J&&_.j$q(J,G)?_.PrD(J,G,A,window.location.href).then(function(N){N?c(N):u()},u):_.YwG(m.JSC$13536_networkManager_,G,h,m.onPartsCallback_.bind(m),O).then(function(N){N?c(N):u()},u)})},pZO=function(m,G){m.triggerPromise_=
G.start();
m.triggerPromise_.then(function(K){var W=m.prefetchEndpointProvider_.getPrefetchEndpoint();if(W){var L=k5u[m.prefetchJobConfig_.pageType].prefetchedFragments;m.prefetchRequestPromise_=hlD(m.JSC$13572_networkPrefetchRequest_,W,{fragmentsRequested:L,timeBeforeNextVideo:K});m.prefetchResponseCacheKey_=m.JSC$13572_networkPrefetchRequest_.getCacheKeyForEndpoint(W);RVD(m);m.prefetchRequestPromise_.then(function(A){m.storePrefetchedDataCallback_(m.prefetchResponseCacheKey_,A);if(_.F("web_prefetch_preload_video")&&
L.length===1&&L[0]==="pl"&&A&&!A.playerAds&&!A.adPlacements){var O=_.Q(W,_.lw),c=O!=null,u={raw_player_response:A,watch_endpoint:O};(A=_.xS().resolve(c?_.pfF:_.kg))&&W&&A.then(function(h){c&&_.F("web_queue_preload_video")?(u.prefer_gapless=!0,h.queueNextVideo(u)):h.preloadVideoByPlayerVars(u)})}})}})},bT=function(m,G,K,W){this.prefetchEndpointProvider_=m;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=G;this.prefetchJobConfig_=K;this.JSC$13572_networkPrefetchRequest_=W;this.prefetchResponseCacheKey_=null};
bT.prototype.enqueue=function(){this.triggerPromise_||(pZO(this,S55(this)),_.oi(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
bT.prototype.resolve=function(){this.cancel()};
bT.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.");RVD(this)};
bT.prototype.onVisibilityChange_=function(){var m=this;_.kS(BC6)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){m.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||pZO(this,S55(this))};
var Jsi=function(m,G,K,W,L){G&&(G==null?0:G.videoId)&&K&&K.entries&&_.F("kevlar_enable_shorts_prefetch_in_sequence")&&(lLE(m),G=K.entries.map(function(A){var O;return(O=_.Q(A.command,_.lw))==null?void 0:O.videoId}).indexOf(G.videoId),K=K.entries[G+1],K!=null&&K.command&&!_.Q(K==null?void 0:K.command,_.Yq)&&(W=new x3G([K.command],new VmP(W,_.Fu,1),null,"shorts",!1),m.pendingPrefetchJob_=new bT(new fL6(W.autonavEndpoints),function(){return!1},W,new nx(L)),m.pendingPrefetchJob_.enqueue()))},NiD=function(m,
G,K,W,L,A){var O=_.qV.getInstance();
if(!_.F("block_all_player_prefetch_requests")){lLE(m);var c=!!K.getPlaylistId(),u=K.getVideoData().isLive&&K.getVideoData().hasProgressBarBoundaries;if((O.getState()==2||c||u)&&(!K.getVideoData().isLive||u)){O={inPlaylist:c,videoDuration:K.getDuration(),makeUpNextTrigger:function(J){return new zV6(K,_.Fu,J)},
makePlaybackTrigger:function(J){return new VmP(K,_.Fu,J)}};
var h=XWi(G,O);h&&(m.pendingPrefetchJob_=new bT(h.isInPlaylist?new eVW(L):new fL6(h.autonavEndpoints),function(J,N){N=new PZE(k5u[h.pageType].pageFragments,k5u[h.pageType].prefetchedFragments,N);return _.PoR(N)?(m.prefetchCache_.set(J,N),!0):!1},h,new op(W,K,A,L)),m.pendingPrefetchJob_.enqueue())}}},Dz6=function(){var m=_.an();
m.signals.parkOrScheduleJob(function(){var G=m.storage;if(G.storage)if($3q(G)){var K=G.getPlaylistId();G=saD(G);K=!!K&&G!==void 0}else G.clear(),K=!1;else K=!1;if(K){K=m.JSC$13399_pageManager.isOnWatch();a:{var W=m.storage;if(W.storage&&$3q(W)&&(G=W.getPlaylistId(),W=saD(W),G&&W!==void 0)){K={recoverPlaylistCommand:{listId:G,index:W,openMiniplayer:!K,openListPanel:K,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}K=void 0}K&&_.OL(m.JSC$13399_actionRouter,[K],null)}},0,"ma")},tCE=function(m,G,K,
W,L,A){var O=_.dq(7111);
_.yw(m.JSC$18936_screenManager,O,A?_.m5(A):void 0);_.fK(m.JSC$18936_screenManager,O,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:W,offlineId:G,offlineabilityFormatType:K,isDefaultFormatType:L==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:L}})},FPu=function(m,G,K,W,L){var A,O,c,u,h;
return _.Y(function(J){if(J.nextAddress==1)return J.yield(m.JSC$18936_playerApiPromise,2);A=J.yieldResult;tCE(m,G,K,"OFFLINE_OBJECT_TYPE_PLAYLIST",W,L);if(c=_.iu4[m.entityTypeMap.listEntityType])h={},O=(h[c]={maximumDownloadQuality:(u=K)!=null?u:void 0},h);return J.yield(A.queueOfflineAction(G,m.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",O),0)})},Qw6=function(m,G){var K,W,L,A;
return _.Y(function(O){if(O.nextAddress==1)return O.yield(m.JSC$18936_persistentStorePromiseAccessor(),2);if(O.nextAddress!=3){K=O.yieldResult;if(!K)return _.nc(new _.cw("PES is undefined")),O.return();W=_.Pk(G,"downloadStatusEntity");return O.yield(vZ6(K,W,"downloadStatusEntity"),3)}L=O.yieldResult;return O.return((A=L)==null?void 0:A.downloadState)})},aRD=function(m,G,K,W,L){var A,O,c,u,h,J;
return _.Y(function(N){switch(N.nextAddress){case 1:return N.yield(m.JSC$18936_playerApiPromise,2);case 2:A=N.yieldResult;tCE(m,G,K,"OFFLINE_OBJECT_TYPE_VIDEO",W,L);if(c=_.iu4[m.entityTypeMap.singleEntityType])h={},O=(h[c]={maximumDownloadQuality:(u=K)!=null?u:void 0},h);return N.yield(Qw6(m,G),3);case 3:J=N.yieldResult;if(J!=="DOWNLOAD_STATE_USER_DELETED"){N.jumpTo(4);break}return N.yield(m.deleteVideo(G),4);case 4:return N.yield(A.queueOfflineAction(G,m.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
O),0)}})},oW5=function(m,G,K,W,L){return _.Y(function(A){return A.nextAddress==1?A.yield(m.deleteVideo(G,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):A.yield(aRD(m,G,K,W,L),0)})},nW5=function(m,G,K){var W,L;
return _.Y(function(A){if(A.nextAddress==1)return A.yield(m.JSC$18936_playerApiPromise,2);W=A.yieldResult;L=_.Pk(G,"mainVideoDownloadStateEntity");return A.yield(W.updateDownloadState(L,K),0)})},KWW=function(m){var G=_.xS().resolve(_.pR);
return _.Y(function(K){if(K.nextAddress==1)return G.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&G.previousDownloadStateForVideo[m]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?K.jumpTo(2):K.yield(G.resumeVideoDownload(m),2);if(K.nextAddress!=4)return K.yield(nW5(G,m,G.previousDownloadStateForVideo[m]),4);delete G.previousDownloadStateForVideo[m];_.ey(K)})},iV5=function(m,G){var K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$18936_playerApiPromise,2);K=W.yieldResult;return W.yield(K.queueOfflineAction(G,m.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},MZ6=function(){var m=_.xS().resolve(_.pR),G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$18936_playerApiPromise,2);if(W.nextAddress!=3)return G=W.yieldResult,K={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},W.yield(G.queueOfflineAction("!*$_ALL_ENTITIES_!*$",m.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",K),3);var L=m.JSC$18936_commandHandler,A=L.resolveCommand,O=_.zq("DELETING_ALL",void 0,"Downloads are being deleted");A.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hk(O)}},
popupType:"TOAST"}});_.ey(W)})},b_s=function(m,G){var K,W,L,A,O,c;
return _.Y(function(u){if(u.nextAddress==1)return u.yield(m.JSC$18936_persistentStorePromiseAccessor(),2);if(u.nextAddress!=3)return K=u.yieldResult,K?u.yield(vZ6(K,_.WU,"downloadsPageViewConfigurationEntity"),3):(_.nc(new _.cw("PES is undefined")),u.return());L=(W=u.yieldResult)!=null?W:{};c=(O=(A=L)==null?void 0:A.downloadsUpsellBannerVisibility)!=null?O:{};return c.visibleWithConnection?u.yield(G.refreshAllStaleEntities(0),0):u.jumpTo(0)})},vW6=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$18936_prefStorage,2);G=W.yieldResult;return W.return((K=G)==null?void 0:K.get("sdois"))})},$z5=function(m){var G,K,W,L,A,O;
return _.Y(function(c){if(c.nextAddress==1)return c.yield(m.JSC$18936_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){G=c.yieldResult;if(!G)return _.nc(new _.cw("PES is undefined")),c.return();K=_.Pk("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return c.yield(vZ6(G,K,"settingEntity"),3)}W=c.yieldResult;return c.return((O=(L=W)==null?void 0:(A=L.settingOptionValue)==null?void 0:A.boolValue)!=null?O:!1)})},sw6=function(m,G){var K,W,L,A;
return _.Y(function(O){switch(O.nextAddress){case 1:return((K=G)==null?void 0:K.formatType)===void 0?O.return():O.yield(m.JSC$18936_prefStorage,2);case 2:W=O.yieldResult;if(W===void 0)return O.return();if(((L=G)==null?void 0:L.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return O.yield(W.set("lmqf",G.formatType),8);if(((A=G)==null?void 0:A.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){O.jumpTo(0);break}return O.yield(W.set("lmqf",G.formatType),6);case 6:return O.yield(W.set("lmqflst",
Math.floor((0,_.xD)())),0);case 8:return O.yield(W.remove("lmqflst"),0)}})},qXD=function(m){var G,K;
return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(m.JSC$18936_prefStorage,2);case 2:G=W.yieldResult;if(!G){W.jumpTo(3);break}return W.yield(G.get("lmqflst"),4);case 4:if(K=W.yieldResult,K!==void 0)return W.return(K);case 3:return W.return(0)}})},EWu=function(m){var G,K,W;
return _.Y(function(L){return L.nextAddress==1?L.yield(m.JSC$18936_prefStorage,2):L.nextAddress!=3?(G=L.yieldResult,L.yield((K=G)==null?void 0:K.get("ldtmes"),3)):L.return((W=L.yieldResult)!=null?W:!1)})},FWu=function(){var m=_.xS().resolve(_.pR),G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$18936_prefStorage,2);G=K.yieldResult;return G===void 0?K.return():K.yield(G.set("ldtmes",!0),0)})},H_W=function(m){var G,K;
return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(m.JSC$18936_prefStorage,2);case 2:G=W.yieldResult;if(G===void 0){W.jumpTo(3);break}return W.yield(G.get("lmqf"),4);case 4:if(K=W.yieldResult,K!==void 0)return W.return(K);case 3:return W.return("SD")}})},Y1W=function(m,G,K){var W,L,A,O,c,u,h,J;
_.Y(function(N){switch(N.nextAddress){case 1:return N.yield(sw6(m,(W=G)==null?void 0:W.actionParams),2);case 2:L=G.playlistId;if(!L)return N.return();if(G.action==="ACTION_ADD")return((O=G.actionParams)==null?0:O.formatType)?N.yield(FPu(m,L,G.actionParams.formatType,(J=G.actionParams)==null?void 0:J.settingsAction,K),0):N.yield(m.offlineWebClientEligibility,14);if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var D=m.JSC$18936_commandHandler,t=D.resolveCommand,a=_.E8("INNERTUBE_CLIENT_NAME");var v=a===
"WEB_REMIX"?_.zq("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zq("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var I=a==="WEB_REMIX"?[_.zq("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];a=a==="WEB_REMIX"?_.zq("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zq("DELETE",void 0,"Delete");var Z=_.zq("CANCEL",void 0,"Cancel");v=LyD(v,I,a,Z,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:L});t.call(D,{openPopupAction:v});return N.return()}if(G.action===
"ACTION_REMOVE")return N.yield(iV5(m,L),0);if(G.action!=="ACTION_SYNC"){N.jumpTo(0);break}return N.yield(m.JSC$18936_playerApiPromise,9);case 9:return A=N.yieldResult,N.yield(A.queueOfflineAction(L,m.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return c=N.yieldResult,N.yield(H_W(m),15);case 15:return u=N.yieldResult,N.yield(qXD(m),16);case 16:h=N.yieldResult,G.onAddCommand&&m.JSC$18936_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:u,
offlineWebClientEligibility:c,lastOfflineQualitySettingsSavedMs:h.toString()}}),N.jumpTo(0)}})},OVq=function(m,G,K){var W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U;
_.Y(function(l){switch(l.nextAddress){case 1:return l.yield(sw6(m,(W=G)==null?void 0:W.actionParams),2);case 2:L=G.videoId;if(!L)return l.return();if(G.action==="ACTION_REMOVE_WITH_PROMPT"){var Ls=m.JSC$18936_commandHandler,gd=Ls.resolveCommand,Qf=_.E8("INNERTUBE_CLIENT_NAME");var JV=Qf==="WEB_REMIX"?_.zq("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.zq("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var DF=Qf==="WEB_REMIX"?[_.zq("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,
"This track won't be available to listen offline.")]:[];Qf=Qf==="WEB_REMIX"?_.zq("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.zq("DELETE",void 0,"Delete");var kG=_.zq("CANCEL",void 0,"Cancel");JV=LyD(JV,DF,Qf,kG,{signal:"DELETE_DOWNLOAD",targetId:L});gd.call(Ls,{openPopupAction:JV});return l.return()}if(G.action==="ACTION_ADD")return((k=G.actionParams)==null?0:k.formatType)?l.yield(aRD(m,L,G.actionParams.formatType,(U=G.actionParams)==null?void 0:U.settingsAction,K),0):l.yield(m.offlineWebClientEligibility,
28);if(G.action==="ACTION_RETRY")return l.yield(H_W(m),24);if(G.action==="ACTION_PAUSE")return l.yield(m.pauseVideoDownload(L),0);if(G.action==="ACTION_RESUME")return l.yield(m.resumeVideoDownload(L),0);if(G.action==="ACTION_REMOVE")return l.yield(Qw6(m,L),18);if(!G.onAddCommand||!_.Q(G.onAddCommand,_.nz)){l.jumpTo(0);break}A=_.Q(G.onAddCommand,_.nz);c=(O=A)==null?void 0:O.isCrossDeviceDownload;if(!c){l.jumpTo(0);break}u="HD";return l.yield(qXD(m),16);case 16:return h=l.yieldResult,l.yield(EWu(m),
17);case 17:J=l.yieldResult;m.JSC$18936_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:u,lastOfflineQualitySettingsSavedMs:h.toString(),downloadToMobileEduShown:J}});l.jumpTo(0);break;case 18:return N=l.yieldResult,m.previousDownloadStateForVideo[L]=(D=N)!=null?D:"DOWNLOAD_STATE_UNKNOWN",l.yield(nW5(m,L,"DOWNLOAD_STATE_USER_DELETED"),19);case 19:if(m.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&m.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){l.jumpTo(20);
break}return l.yield(m.pauseVideoDownload(L),20);case 20:Ls=_.zq("DELETED_VIDEO",void 0,"Video deleted from downloads.");gd=_.zq("UNDO_ACTION",void 0,"Undo");JV=_.zq("CLOSE",void 0,"Close");t={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Hk(Ls),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Hk(gd),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},
accessibilityData:{accessibilityData:{label:Ls+" "+gd}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:JV}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};m.JSC$18936_commandHandler.resolveCommand(t);l.jumpTo(0);break;case 24:a=l.yieldResult;
a==="UNKNOWN_FORMAT_TYPE"&&(a="SD");v="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((I=G.actionParams)==null?0:I.formatType)a=G.actionParams.formatType,v=(Z=G.actionParams)==null?void 0:Z.settingsAction;return l.yield(oW5(m,L,a,v,K),25);case 25:return l.return();case 28:return z=l.yieldResult,l.yield(H_W(m),29);case 29:return X=l.yieldResult,l.yield(qXD(m),30);case 30:f=l.yieldResult,G.onAddCommand&&m.JSC$18936_commandHandler.resolveCommand(G.onAddCommand,{form:{preferredFormatType:X,offlineWebClientEligibility:z,
lastOfflineQualitySettingsSavedMs:f.toString()}}),l.jumpTo(0)}})},IR6=function(m,G){var K,W,L,A,O,c,u;
return _.Y(function(h){if(h.nextAddress==1)return h.yield(m.JSC$18936_persistentStorePromiseAccessor(),2);K=h.yieldResult;if(!K)return _.nc(new _.cw("PES is undefined")),h.return();if((W=G)==null||!W.settingItemId)return h.return();L=G;A=L.settingItemId;O=L.boolValue;c=_.Pk(A,"settingEntity");u={key:c,settingOptionValue:{boolValue:O}};return h.yield(bbu(K,u),0)})},jwi=function(m,G){var K,W,L,A,O,c,u;
return _.Y(function(h){switch(h.nextAddress){case 1:return h.yield(m.JSC$18936_prefStorage,2);case 2:return K=h.yieldResult,W=_.M$(),h.yield(m.JSC$18936_persistentStorePromiseAccessor(),3);case 3:return L=h.yieldResult,K?L?h.yield(K.get("sdois"),4):(_.nc(new _.cw("PES is undefined")),h.return()):(_.nc(new _.cw("prefStorage is undefined")),h.return());case 4:A=h.yieldResult;c=(O=G)==null?void 0:O.boolValue;c===void 0||_.F("kevlar_set_sd_enabled_flag_killswitch")||_.Tq(0,197,!0);A===void 0&&c===void 0&&
(c=!1);if(c===void 0){h.jumpTo(0);break}return h.yield(K.set("sdois",c),6);case 6:return _.F("kevlar_set_sd_enabled_flag_killswitch")||(_.Tq(0,196,c),W.save()),u={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:c},h.yield(IR6(m,u),0)}})},kNi=function(m,G,K){var W,L,A,O,c;
return _.Y(function(u){switch(u.nextAddress){case 1:return u.yield(vW6(m),2);case 2:return W=u.yieldResult,u.yield(jwi(m,K),3);case 3:return u.yield(vW6(m),4);case 4:return L=u.yieldResult,A=L!==W,u.yield($z5(m),5);case 5:O=u.yieldResult&&!_.F("kevlar_modern_downloads_page");if((c=!L&&!O)||A)return u.yield(G.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);u.jumpTo(0)}})},LW5=function(){var m=_.xS().resolve(_.pR),
G;
_.Y(function(K){switch(K.nextAddress){case 1:return K.yield(m.JSC$18936_playerApiPromise,2);case 2:G=K.yieldResult;if(!_.F("kevlar_force_refresh_smart_downloads")){K.jumpTo(3);break}return K.yield(G.refreshAllStaleEntities(0),4);case 4:return K.return();case 3:return K.yield(G.refreshAllStaleEntities(),5);case 5:return K.yield(kNi(m,G),6);case 6:if(_.F("enable_download_pep_for_premium_countries_web"))return K.yield(b_s(m,G),0);K.jumpTo(0)}})},uou=function(m,G){var K,W;
_.Y(function(L){switch(L.nextAddress){case 1:return L.yield(m.JSC$18936_playerApiPromise,2);case 2:K=L.yieldResult;switch((W=G)==null?void 0:W.settingItemId){case "SMART_DOWNLOADS_ENABLED":return L.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return L.jumpTo(4)}L.jumpTo(0);break;case 3:return L.yield(kNi(m,K,G),6);case 6:L.jumpTo(0);break;case 4:return L.yield(IR6(m,G),7);case 7:L.jumpTo(0)}})},CBD=function(m,G){var K,W,L;
return _.Y(function(A){if(A.nextAddress==1)return A.yield(m.JSC$18936_persistentStorePromiseAccessor(),2);if(A.nextAddress!=3){K=A.yieldResult;if(!K)return _.nc(new _.cw("PES is undefined")),A.return(!1);if(!G)return A.return(!1);W=_.Pk(G,"mainVideoEntity");return A.yield(vZ6(K,W,"mainVideoEntity"),3)}L=A.yieldResult;return A.return(L!==void 0)})},pb6=function(m){var G=_.xS().resolve(_.pR),K,W,L,A,O,c,u,h,J,N,D;
_.Y(function(t){switch(t.nextAddress){case 1:return t.yield(G.JSC$18936_playerApiPromise,2);case 2:K=t.yieldResult;L=(W=m)==null?void 0:W.actions;if(!L)return t.return();A=_.g(L);O=A.next();case 3:if(O.done){t.jumpTo(0);break}c=O.value;h=u=void 0;if(!(((u=c)==null?0:u.entityKey)&&((h=c)==null?0:h.actionType))){t.jumpTo(4);break}J=_.Vx(c.entityKey);N=J.entityId;D=J.entityType;return t.yield(K.queueOfflineAction(N,D,c.actionType),4);case 4:O=A.next(),t.jumpTo(3)}})},VC5=function(m,G){var K,W,L,A,O;
return _.Y(function(c){if(c.nextAddress==1)return c.yield(m.JSC$18936_prefStorage,2);if(c.nextAddress!=3)return(K=c.yieldResult)?c.yield(K.get("psi"),3):c.return();W=c.yieldResult;O={isPaused:G,lastSyncTimestamp:(A=(L=W)==null?void 0:L.lastSyncTimestamp)!=null?A:"0"};return c.yield(K.set("psi",O),0)})},DN6=function(m){var G=_.xS().resolve(_.pR),K,W,L,A,O,c,u,h;
return _.Y(function(J){switch(J.nextAddress){case 1:return J.yield(G.JSC$18936_playerApiPromise,2);case 2:K=J.yieldResult;L=((W=m)==null?void 0:W.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((c=m)==null?void 0:c.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":A="!*$_ALL_ENTITIES_!*$";O="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return J.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return J.jumpTo(4)}J.jumpTo(5);break;case 3:return J.yield(VC5(G,L),6);case 6:J.jumpTo(5);break;case 4:return J.yield(CBD(G,(u=m)==null?void 0:u.videoId),7);case 7:J.yieldResult&&(A=(h=m)==null?void 0:h.videoId,O="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");J.jumpTo(5);break;case 5:if(A&&O)return J.yield(K.queueOfflineAction(A,"videoPlaybackPositionEntity",O),0);J.jumpTo(0)}})},Z_s=function(m,G){_.xS().resolve(_.w0).persistentPanelContainerMap.set(G,m)},
dzD=function(m,G,K){m.hasRegisteredHoverCallbacks=!0;
m.hoverEnterCallback=G!=null?G:void 0;m.hoverLeaveCallback=K!=null?K:void 0},PBD=function(){return _.xS().resolve(_.X2).dismissedIndices},ysq=function(m,G,K){var W,L=(W=_.Q(G,_.lw))==null?void 0:W.videoId;
W=!(!L||!m.find(function(O){return O.videoId&&O.videoId===L}));
var A=!!m.find(function(O){var c;return((c=_.Q(O.command,_.lw))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
m=!!m.find(function(O){return!!_.Q(O.command,_.Yq)&&!!_.Q(G,_.Yq)&&O.command===G});
return K?W||m:W||A||m},eli=function(m,G,K){var W=[].concat(_.Bz(m)),L=0,A=K?mkE(K):[];
K=K?iCz(K):[];A.length&&!ysq(m,A[0].command,!0)&&W.push.apply(W,_.Bz(A));G&&!ysq(W,G.command)&&W.unshift(G);G&&K.length&&!ysq(m,K[0].command)&&(_.F("web_enable_shorts_sequence_refactor_unify")?W.push.apply(W,_.Bz(K.reverse())):W.unshift.apply(W,_.Bz(K.reverse())),L=K.length);return{newContentList:W,indexChange:L}},fR5=function(){var m=_.xS().resolve(_.X2);
_.EEJ(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(m.isFullscreenEnabled()?_.sB(document.documentElement):_.ePd(document.documentElement))},xzz=function(m,G){var K;
G!==1||((K=m.currentPersistentToast)==null?0:K.isOpened())?_.kLs(m):m.currentPersistentToast=void 0},XZq=function(m,G){var K;
return(K=m.transitionTasksMap.get(G))!=null?K:[]},SXO=function(m,G){var K=[];
m.elementTasksMap.forEach(function(W){(W=W.get(G))&&K.push(W)});
return K},RlD=function(m,G,K,W,L){L=L===void 0?{}:L;
var A=G.defaultViewTransitionOptions;return Object.assign({},A,L,{beforeTransition:function(){W.forEach(function(h){h.beforeTransition()});
var O;(O=A.beforeTransition)==null||O.call(A);var c,u;(u=(c=L).beforeTransition)==null||u.call(c);K.forEach(function(h){h.beforeTransition()})},
afterTransition:function(){W.forEach(function(h){h.afterTransition()});
var O;(O=A.afterTransition)==null||O.call(A);var c,u;(u=(c=L).afterTransition)==null||u.call(c);K.forEach(function(h){h.afterTransition()})},
ignoredErrors:m.config.ignoredErrors})},Uzq=function(m,G,K){m.transitionTasksMap.has(G)?m.transitionTasksMap.get(G).push(K):(m=new _.cw("Transition task registered for unknown transition type",G),_.am(m))},zlz=function(m,G,K){if(m.transitionTasksMap.has(G)){var W=m.transitionTasksMap.get(G).filter(function(L){return L!==K});
m.transitionTasksMap.set(G,W)}},lRs=function(m,G){var K=XZq(m,G);
K=_.g(K);for(var W=K.next();!W.done;W=K.next())W=W.value,W.runOnce&&zlz(m,G,W);m.elementTasksMap.forEach(function(L,A){L.forEach(function(O,c){O.runOnce&&G===c&&(L.delete(c),L.size===0&&m.elementTasksMap.delete(A))})})},Biz=function(m,G,K){var W,L,A,O,c,u,h,J,N;
_.Y(function(D){if(D.nextAddress==1){if(m.config.disableAllTransitions)return D.return(G());if((W=K)==null||!W.transitionType)return D.return(wvE(G,Object.assign({},(L=K)==null?void 0:L.viewTransitionOptions,{ignoredErrors:m.config.ignoredErrors})));A=K;O=A.transitionType;c=A.viewTransitionOptions;u=m.config.transitionConfigs.get(O);if(!u)return D.return(G());h=XZq(m,O);J=SXO(m,O);N=wvE(G,RlD(m,u,h,J,c));return D.yield(N,2)}lRs(m,O);_.ey(D)})},MCG=function(m,G){var K,W,L,A,O;
_.Y(function(c){if(!G.length)return c.return([]);K=[];W=_.g(G);for(L=W.next();!L.done;L=W.next())A=L.value,(O=m.resolveIcon(A))&&!m.iconCache[O.url]&&K.push(_.B_s(m,O).then(function(){}).catch(function(){}));
return c.return(Promise.all(K))})},Ti5=function(m,G){var K=[];
G=(new Set(G)).values();G=_.g(G);for(var W=G.next();!W.done;W=G.next()){W=W.value;for(var L=_.g(Object.values(TOO)),A=L.next();!A.done;A=L.next())K.push({iconName:W,iconStyle:A.value})}MCG(m.iconManager,K)},mhO=function(m,G,K){var W=K!=null?K:m.iconsToFetch;
W!=null&&W.length?G!==void 0&&G>=0?_.rC(_.Fu,function(){Ti5(m,W)},G):Ti5(m,W):Promise.resolve()},i2E=function(){var m,G,K,W;
return _.Y(function(L){if(L.nextAddress==1)return m=navigator,(G=m.storage)!=null&&G.persisted?L.yield((K=m.storage)==null?void 0:K.persisted(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");W=L.yieldResult;return L.return(W?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},G1D=function(){var m,G,K,W;
return _.Y(function(L){if(L.nextAddress==1)return m=navigator,(G=m.storage)!=null&&G.persist?L.yield((K=m.storage)==null?void 0:K.persist(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");W=L.yieldResult;return L.return(W?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},K76=function(){var m,G;
return _.Y(function(K){switch(K.nextAddress){case 1:return m="PERSISTED_STATE_NOT_SUPPORTED",_.IO(K,2),K.yield(i2E(),4);case 4:m=K.yieldResult;if(m!=="PERSISTED_STATE_NOT_GRANTED"){K.jumpTo(5);break}return K.yield(G1D(),6);case 6:m=K.yieldResult;case 5:_.IG(K,3);break;case 2:G=_.ye(K),G instanceof Error&&_.am(G);case 3:return _.Fx("persistentStorageStateChecked",{persistedState:m}),K.return(m)}})},W7W=function(m,G,K){if(m.isAnyTransitionEnabled){var W={beforeTransition:function(){K(!0);
G.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){G.style.viewTransitionName&&(G.style.viewTransitionName="",K(!1))}};
Uzq(m.viewTransitionCoordinator,"slide",W);Uzq(m.viewTransitionCoordinator,"lockup-to-watch",W);Uzq(m.viewTransitionCoordinator,"watch-next-appears",W);Uzq(m.viewTransitionCoordinator,"learning-journey",W)}},L7D=function(m,G,K,W){if(m.isLockupToWatchTransitionEnabled){if(G){var L={};
L=(L["watch-next-appears"]="player-watch-next-loaded",L);L["lockup-to-watch"]=m.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";m.viewTransitionCoordinator.registerElement(G,L)}K&&(G={},m.viewTransitionCoordinator.registerElement(K,(G["lockup-to-watch"]="below-lockup-to-watch",G["watch-next-appears"]="below-watch-next-loaded",G)));W&&(K={},m.viewTransitionCoordinator.registerElement(W,(K["watch-next-appears"]="secondary-watch-next-loaded",
K)))}},AZu=function(m,G){m.isBrowseTransitionEnabled?Biz(m.viewTransitionCoordinator,G,{transitionType:"slide"}):(G(),Promise.resolve())},w0G=function(m,G){m.isLockupToWatchTransitionEnabled?Biz(m.viewTransitionCoordinator,G,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){m.registeredLockupThumbnail=void 0;m.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(G(),Promise.resolve())},gKP=function(m,G){m.isLockupToWatchTransitionEnabled?Biz(m.viewTransitionCoordinator,G,{transitionType:"watch-next-appears"}):(G(),Promise.resolve())},O2P=function(m,G){m.isLearningJourneyTransitionEnabled?Biz(m.viewTransitionCoordinator,G,{transitionType:"learning-journey"}):(G(),Promise.resolve())},cZD=function(m,G,K){if(m.isInitialized()){var W=
SX(K),L=W==="watch";
W=W==="shorts";var A=SX(G)==="watch";if(L)A||(m.backgroundPageData=G),m.watchPipMode&&A||m.deactivate(K.endpoint);else if(W){if(SX(G)!=="shorts"){var O;(O=m.getPlayerElement())==null||O.pause()}}else A&&!m.watchPipMode&&(gNz(G,K,!0)?(m.watchWhileMode&&_.mFz(m,!1),_.UqD(m,G)):m.isMiniplayerActive()&&m.watchWhileMode&&m.deactivate());A&&_.Gi6(m);m.shortsPipMode&&!W&&(window.focus(),m.deactivate());if(m.pictureInPictureEnabled())if(W&&m.shortsPipEnabled||L&&m.JSC$19355_watchPipEnabled&&(!m.watchPipManualOnlyEnabled||
_.qso()&&_.aF9("Chromium")>=142))_.HvF(m.handleMediaSessionPipActivation);else if((!m.isMiniplayerActive()||m.watchPipManualOnlyEnabled)&&(m.shortsPipEnabled||m.JSC$19355_watchPipEnabled)&&_.qso()){m=_.EnG().mediaSession;try{m.setActionHandler("enterpictureinpicture",null)}catch(c){}}}},YLi=function(m,G){var K,W;
_.Y(function(L){if(L.nextAddress==1){if(!m||!m.navigationEndpoint)return L.return();_.U7().lockupActivation=!0;var A;G?A=_.nG(_.zq("QUEUE",void 0,"Queue")):A=m.longBylineText;W=(K=A)&&m.title?{miniplayerTitle:m.title,miniplayerSubtitle:K,playlistData:null}:void 0;return L.yield(_.F6R(_.xS().resolve(_.pY),m.navigationEndpoint,!0,W),2)}_.U7().userActivation=!0;_.ey(L)})},LNs=function(m,G){var K,W,L,A,O,c;
_.Y(function(u){if(u.nextAddress==1){K=_.Q(G,_.LpX);if(!K||!K.listId)return u.return();m.index=K.index||m.index||0;W=m.response&&m.response.playingVideoId||void 0;return u.yield(_.j42(m.JSC$13399_playlistNetworkManager,K.listId,m.index,W),2)}L=u.yieldResult;if(!L)return u.return();A=L.playlistId;O=L.playlistPanelRenderer;!m.queueProxy&&A&&O&&A.startsWith("TLPQ")&&(m.queueProxy=new _.hf(m.JSC$13399_playlistNetworkManager,A,m.setPlaylistData.bind(m),m.clearQueue.bind(m),_.Zfd(O),m.storage));if(K.openMiniplayer&&
(c=_.do9(O))&&!m.JSC$13399_pageManager.isOnWatch()){var h=c,J=K.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";m.isMiniplayerActive()||YLi(h,J)}m.setPlaylistData(A,O,L.autoplayRenderer);_.ey(u)})},Ge5=function(m,G){var K=_.an();
K.index===void 0&&(K.index=0);K.temporaryItems.push.apply(K.temporaryItems,_.Bz(m));if((G.videoId||G.videoIds)&&K.index!==void 0&&G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!K.queueProxy){var W=[];if(K.response){var L=_.xS().resolve(_.pY).isMiniplayerActive();if(K.response.playlistPanelRenderer&&K.response.playlistId&&!K.response.playlistId.startsWith("TLPQ")){if(K.JSC$13399_pageManager.isOnWatch()||L)W=_.Zfd(K.response.playlistPanelRenderer)}else K.response.playingVideoId&&!G.openMiniplayer?
W.push(K.response.playingVideoId):L&&K.response.playingVideoId&&G.openMiniplayer&&W.push(K.response.playingVideoId)}K.queueProxy=new _.hf(K.JSC$13399_playlistNetworkManager,"",K.setPlaylistData.bind(K),K.clearQueue.bind(K),W,K.storage);K.queueProxy.JSC$13345_setCurrentIndex(K.index)}K.queueProxy.addVideos(G.videoIds||[G.videoId],G)}q56(K,m);K.response&&_.on(K,_.n8(K,K.response.autoplayRenderer));K.JSC$13399_pageManager.isOnWatch()||(m=m[0],G=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",K.isMiniplayerActive()||
YLi(m,G))},rZE=function(m,G){var K;
return _.Y(function(W){return W.nextAddress==1?G&&m.lastWelcomeContinuationSent!==G?_.NCP(m)?W.yield(m.panelController.isVisible("PAai_companion"),3):W.jumpTo(2):W.return(!1):W.nextAddress==2||(K=W.yieldResult,K)?W.return(!0):W.return(!1)})},uMu=function(m){var G,K,W,L,A;
return _.Y(function(O){if(O.nextAddress==1){if(!m.welcomeOptions)return O.return();G=m.welcomeOptions;K=G.command;W=G.setPending;if(K){var c;var u=(c=_.Q(K,_.Yg))==null?void 0:c.token}else u=void 0;L=u;return O.yield(rZE(m,L),2)}if(!O.yieldResult)return O.return();m.lastWelcomeContinuationSent=L;(A=W)==null||A(!0);u="youchat-"+Date.now();c=(c=_.yo())?String(Math.floor(c.getCurrentTime())*1E3):void 0;_.YE(K,{form:{formData:RZ({clientMessageId:u,playerOffsetMs:c,pageContext:_.sbz(m,m.pageSubtype)})}});
_.ey(O)})},hA6=function(m,G){_.Y(function(K){m.welcomeOptions=G;
return K.yield(uMu(m),0)})},p0G=function(m){var G=_.LP(m);
if(G=="object"||G=="array"){if(typeof m.clone==="function")return m.clone();if(typeof Map!=="undefined"&&m instanceof Map)return new Map(m);if(typeof Set!=="undefined"&&m instanceof Set)return new Set(m);G=G=="array"?[]:{};for(var K in m)G[K]=p0G(m[K]);return G}return m},hM6=function(m,G){return Array.prototype.reduce.call(m,G,{duration:0})},v_=function(m,G){return _.$GF(_.ze(m,G,void 0,_.SI))},$Q=function(m,G){return _.uq(_.ze(m,G,void 0,_.SI))},s_=function(m,G){return _.ze(m,G,void 0,_.SI,_.Wu)},
JZz=_.D3(function(m,G,K,W){if(_.VP)return _.Kbd(m,G,K,W);
if(m.nextWireType_!==0)return!1;_.$o(G,K,W,_.bg(m.decoder_,_.z4));return!0},_.oe,_.F5),Nv6=_.D3(function(m,G,K){if(_.VP)return _.AtG(m,G,K);
if(m.nextWireType_!==1)return!1;var W=m.decoder_;m=_.NE(W);W=_.NE(W);m=_.xk(m,W);_.tC(G,K,m);return!0},_.UIJ,_.rCC),Dhq=_.D3(function(m,G,K){if(m.nextWireType_!==5)return!1;
_.tC(G,K,_.NE(m.decoder_));return!0},function(m,G,K){G=_.Eks(G);
G!=null&&(_.FO(m,K,5),_.QG(m.encoder_,G))},_.OpG),tgE=_.D3(function(m,G,K){if(m.nextWireType_!==2)return!1;
m=_.l6F(m);_.tC(G,K,m===_.IF()?void 0:m);return!0},_.Txs,_.pNl),F76=_.dI6(function(m,G,K){if(m.nextWireType_!==0&&m.nextWireType_!==2)return!1;
G=_.wx(G,G[_.Ai]|0,K);m.nextWireType_==2?_.Bzi(m,AzD,G):G.push(_.Jl(m.decoder_));return!0},function(m,G,K){G=_.Zps(_.uq,G,!0);
if(G!=null&&G.length){K=_.KuX(m,K);for(var W=0;W<G.length;W++)_.XNV(m.encoder_,G[W]);_.Wu2(m,K)}},_.JCR),Q9G=_.D3(function(m,G,K,W){if(m.nextWireType_!==0)return!1;
_.$o(G,K,W,_.Jl(m.decoder_));return!0},_.iZ6,_.JCR),azs=function(m,G,K){return Math.abs(m-G)<=(K||1E-6)},oK6=function(m,G){return m==G?!0:m&&G?m.width==G.width&&m.height==G.height:!1},qX=function(m,G){m.insertBefore(G,m.childNodes[0]||null)},nK6=function(m){return m.previousElementSibling!==void 0?m.previousElementSibling:_.$7G(m.previousSibling,!1)},Pwq=_.HN(_.gS),b2D=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(b2D,_.pp);b2D.prototype.getTypeName=function(){return _.wL(this,1).split("/").pop()};
b2D.prototype.getValue=function(){var m=_.ze(this,2);if(Array.isArray(m)||m instanceof _.pp)throw Error("X");return _.MP(this,2)};
var vKG=[0,2,_.sA],l7z=function(){var m=_.VY();this.JSC$10224_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.ea("channel_type"))};
l7z.prototype.increment=function(m){this.JSC$10224_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",m)};
var BFP=function(){var m=_.VY();this.JSC$10227_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.ea("channel_type"))};
BFP.prototype.increment=function(m){this.JSC$10227_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",m)};
var TFz=function(){var m=_.VY();this.JSC$10230_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.ea("channel_type"))};
TFz.prototype.increment=function(m){this.JSC$10230_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",m)};
var MbW=function(){var m=_.VY();this.JSC$10233_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
MbW.prototype.increment=function(){this.JSC$10233_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var ml6=function(){var m=_.VY();this.JSC$10236_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.ea("channel_type"),_.ea("error_type"))};
ml6.prototype.increment=function(m,G){this.JSC$10236_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",m,G)};
var iDD=function(){var m=_.VY();this.JSC$10239_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
iDD.prototype.increment=function(){this.JSC$10239_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Gg6=function(){var m=_.VY();this.JSC$10242_streamzService=m;m.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Gg6.prototype.increment=function(){this.JSC$10242_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var P7O=function(){var m=_.VY();this.JSC$10248_streamzService=m;m.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
P7O.prototype.increment=function(){this.JSC$10248_streamzService.JSC$10094_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
$hE=function(m){return m.getCount&&typeof m.getCount=="function"?m.getCount():_.XP(m)||typeof m==="string"?m.length:_.Y2.getCount(m)};
s9s=function(m,G){if(typeof m.every=="function")return m.every(G,void 0);if(_.XP(m)||typeof m==="string")return Array.prototype.every.call(m,G,void 0);for(var K=_.lDS(m),W=_.E5(m),L=W.length,A=0;A<L;A++)if(!G.call(void 0,W[A],K&&K[A],m))return!1;return!0};
qLO=function(m,G,K,W){var L=new _.aQ(null);m&&_.HW(L,m);G&&_.Ia(L,G);K&&_.jm(L,K);W&&_.kZ(L,W);return L};
EKs=function(m){if(m>=48&&m<=57||m>=96&&m<=106||m>=65&&m<=90||_.zb&&m==0)return!0;switch(m){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 _.lY;default:return!1}};
H2z=function(m){if(m.altKey&&!m.ctrlKey||m.metaKey||m.keyCode>=112&&m.keyCode<=123)return!1;if(EKs(m.keyCode))return!0;switch(m.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!_.lY;default:return m.keyCode<166||m.keyCode>183}};
_.SJ=function(m){this.__isSoyCss=!0;this.css=bC6.apply(null,[m.strings].concat(_.Bz(m.args)))};
_.SJ.prototype.toString=function(){return this.css};
var vNP=function(){_.SJ.apply(this,arguments)};
_.n(vNP,_.SJ);var IzG=[0,_.a3,Dhq,-1],V_5=0,emD=!1,xaD=function(m,G,K,W,L,A,O){this.date=typeof m==="number"?new Date(m,G||0,K||1,W||0,L||0,A||0,O||0):new Date(m&&m.getTime?m.getTime():_.jI())};
_.kJ(xaD,_.Mh);_.w=xaD.prototype;_.w.getHours=function(){return this.date.getHours()};
_.w.getMinutes=function(){return this.date.getMinutes()};
_.w.getSeconds=function(){return this.date.getSeconds()};
_.w.getMilliseconds=function(){return this.date.getMilliseconds()};
_.w.getUTCDay=function(){return this.date.getUTCDay()};
_.w.getUTCHours=function(){return this.date.getUTCHours()};
_.w.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.w.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.w.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.w.setHours=function(m){this.date.setHours(m)};
_.w.setMinutes=function(m){this.date.setMinutes(m)};
_.w.setSeconds=function(m){this.date.setSeconds(m)};
_.w.setMilliseconds=function(m){this.date.setMilliseconds(m)};
_.w.setUTCHours=function(m){this.date.setUTCHours(m)};
_.w.setUTCMinutes=function(m){this.date.setUTCMinutes(m)};
_.w.setUTCSeconds=function(m){this.date.setUTCSeconds(m)};
_.w.setUTCMilliseconds=function(m){this.date.setUTCMilliseconds(m)};
_.w.add=function(m){_.Mh.prototype.add.call(this,m);m.hours&&this.setUTCHours(this.date.getUTCHours()+m.hours);m.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+m.minutes);m.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+m.seconds)};
_.w.JSC$11640_toIsoString=function(m){var G=_.Mh.prototype.JSC$11640_toIsoString.call(this,m);return m?G+"T"+_.fg(this.getHours(),2)+":"+_.fg(this.getMinutes(),2)+":"+_.fg(this.getSeconds(),2):G+"T"+_.fg(this.getHours(),2)+_.fg(this.getMinutes(),2)+_.fg(this.getSeconds(),2)};
_.w.equals=function(m){return this.getTime()==m.getTime()};
_.w.toString=function(){return this.JSC$11640_toIsoString()};
_.w.clone=function(){var m=new xaD(this.date);m.firstDayOfWeek_=this.firstDayOfWeek_;m.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return m};
xkP.prototype.set=function(m){this.relativeTimeStart_=m};
xkP.prototype.reset=function(){this.set(_.jI())};
xkP.prototype.get=function(){return this.relativeTimeStart_};
var j9s=null,k1D=function(){j9s||(j9s=new xkP)},CDz=function(){j9s||(j9s=new xkP)};
_.kJ(CDz,k1D);_.w=Xv6.prototype;_.w.JSC$11666_buffer_="";_.w.set=function(m){this.JSC$11666_buffer_=""+m};
_.w.append=function(m,G,K){this.JSC$11666_buffer_+=String(m);if(G!=null)for(var W=1;W<arguments.length;W++)this.JSC$11666_buffer_+=arguments[W];return this};
_.w.clear=function(){this.JSC$11666_buffer_=""};
_.w.getLength=function(){return this.JSC$11666_buffer_.length};
_.w.toString=function(){return this.JSC$11666_buffer_};
var m8P={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"},Ukz=function(m){this.xhr=m},zmz=function(m,G,K){_.mv.call(this,m+", errorCode="+G);
this.errorCode=G;this.xhr=K;this.name="PromiseAjaxError"};
_.n(zmz,_.mv);var Vg6=!1,wl6=function(m){_.mv.call(this,m.message||m.description||m.name);this.isMissing=m instanceof KUs;this.isTimeout=m instanceof zmz&&m.errorCode=="net.timeout";this.isCanceled=m instanceof _.uG};
_.n(wl6,_.mv);wl6.prototype.name="BiscottiError";var KUs=function(){_.mv.call(this,"Biscotti ID is missing from server")};
_.n(KUs,_.mv);KUs.prototype.name="BiscottiMissingError";var Rmi={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},WUu=null,mWi=function(){try{var m=_.Cn("yt.ads.biscotti.getId_");return m?m():qps()}catch(G){return _.KN(G)}},NBE={'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"},Z2O=function(m,G){return _.kt({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:m,command:G}})},dhu=function(m){return _.kt({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:m}})},PD6=function(m){return _.kt({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:m}})},yZE=function(m){return _.kt({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:m}})},eAu=function(){return _.kt({type:"TALK_TO_RECS_RESET_STEP_STATES",
payload:null})},fzs=function(m){return _.kt({type:"SET_GUIDE_IS_EXPANDED",
payload:m})},xhG=function(m){return _.kt({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",
payload:m})},X0P=function(m){return _.kt({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:m})},SLi=function(m){return _.kt({type:"SET_ONLINE_STATUS",
payload:m})},RAD=function(m){return _.kt({type:"SET_IS_WATCH_ACTIVE",
payload:{isWatchActive:m}})},Uhi=function(m){return _.kt({type:"SET_IS_WATCH_NARROW_WIDTH",
payload:{isWatchNarrowWidth:m}})},zA5=function(m){return _.kt({type:"SET_IS_LIVE_CHAT_COLLAPSED",
payload:{isLiveChatCollapsed:m}})},lzG=function(m,G){return _.kt({type:"SET_TRANSCRIPTION_STATE",
payload:{high:m,low:G}})},BvP=function(m){return _.kt({type:"SET_OVERLAY_STATE",
payload:m})},jlP=[[["cnkjNGRkOXZka2p3dzExcHJpbWE=",
null,null],[null,["dHMtcmVuZGVyZXIjd3l1b3EyZXkzNmhqeXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3Vs","bWp3c3R5bGUtc2NvcGUjN3Z5bWlhOGV2"],null],["ZmZ0bWFzdGhlYWQtYWQjdGJ3dzByaTl6",["YzVraGx5dGQtcmljaC1ncmlkLXJlbmRlcmVyI2U4bWZheWw="],null],[null,["NXF1a215dGQtcmljaC1ncmlkLXJlbmRlcmVyI3JuN3Jod20=","bTFtc3R5bGUtc2NvcGUjODZ5OGozZ3Ru"],null],[null,["dGQtYmFubmVyLXByb21vLXJlbmRlcmVyI3FvaGM5YXBjNXBqZ3k=","bDE4c3R5bGUtc2NvcGUjNWJvcTcwNW1u"],null],[null,["dGZxOXpoY2tjbHd5dGQtYWQtc2xvdC1yZW5kZXJlciM="],null]],[["bWg1NHR4cGxheWVyLWFkcyN3OHI1Z2M=",
null,null]],[[null,null,"aHl0bHItYmFubmVyLWN0YS1yZW5kZXJlciN1bmpyMnlwY2o5cw=="]]],$8q="#",Mg6=0,Tvq=function(m,G,K){var W=this;this.priority=G;this.delay=K;this.jobId=0;this.completionCallback=_.Wb;this.wrappedJob=function(){m();W.completionCallback()};
this.id=++Mg6};
Tvq.prototype.enqueue=function(m){this.completionCallback=m;this.jobId=_.Fu.addJob(this.wrappedJob,this.priority,this.delay)};
var E_=function(){_.HZ.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.n(E_,_.HZ);E_.prototype.addJob=function(m,G,K){m=new Tvq(m,G,K);this.taskIdToTask.set(m.id,m);this.isActive?mtq(this,m):this.suspendedTasks.add(m);return m.id};
var mtq=function(m,G){m.scheduledTasks.add(G);G.enqueue(function(){m.scheduledTasks.delete(G)})};
E_.prototype.cancelJob=function(m){(m=this.taskIdToTask.get(m))&&(this.scheduledTasks.delete(m)?_.Fu.cancelJob(m.jobId):this.suspendedTasks.delete(m))};
E_.prototype.pause=function(){var m=this;this.isActive=!1;this.scheduledTasks.forEach(function(G){_.Fu.cancelJob(G.jobId);m.suspendedTasks.add(G)});
this.scheduledTasks.clear()};
E_.prototype.start=function(){var m=this;this.isActive=!0;this.suspendedTasks.forEach(function(G){mtq(m,G)});
this.suspendedTasks.clear()};
E_.prototype.reset=function(){this.scheduledTasks.forEach(function(m){_.Fu.cancelJob(m.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var i$D=function(m,G){this.JSC$13525_networkService_=m;this.pageRequestPromise=G};
i$D.prototype.fetchData=function(m){GU6(this,this.JSC$13525_networkService_.fetchData(m))};
i$D.prototype.postData=function(m,G){GU6(this,this.JSC$13525_networkService_.postData(m,G))};
i$D.prototype.requestDataForServiceEndpoint=function(m,G){GU6(this,this.JSC$13525_networkService_.requestDataForServiceEndpoint(m,G))};
var GU6=function(m,G){G.then(m.pageRequestPromise.onSuccess,m.pageRequestPromise.onFailure,m.pageRequestPromise)};
i$D.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var KpD=function(m){this.buildNetworkRequest_=m;this.pendingRequests_=new Set};
KpD.prototype.reset=function(){this.pendingRequests_.forEach(function(m){m.cancel()});
this.pendingRequests_.clear()};
KpD.prototype.fetchData=function(m){var G=Wpq(this);G.fetchData(m);return G.pageRequestPromise};
KpD.prototype.postData=function(m,G){var K=Wpq(this);K.postData(m,G);return K.pageRequestPromise};
KpD.prototype.requestDataForServiceEndpoint=function(m,G){var K=Wpq(this);K.requestDataForServiceEndpoint(m,G);return K.pageRequestPromise};
var Wpq=function(m){var G=m.buildNetworkRequest_();m.pendingRequests_.add(G);var K=function(){m.pendingRequests_.delete(G)};
G.pageRequestPromise.then(K,K);return G},Lpi=function(m){var G=new E_;
this.JSC$13532_networkService_=m;this.JSC$13532_taskManager_=G;this.JSC$13532_networkManager_=new KpD(this.networkRequestFactory_.bind(this))};
_.w=Lpi.prototype;_.w.networkRequestFactory_=function(){return new i$D(this.JSC$13532_networkService_,new _.P3(this.JSC$13532_taskManager_))};
_.w.reset=function(){this.JSC$13532_taskManager_.reset();this.JSC$13532_networkManager_.reset()};
_.w.start=function(){this.JSC$13532_taskManager_.start()};
_.w.pause=function(){this.JSC$13532_taskManager_.pause()};
_.w.getTaskManager=function(){return this.JSC$13532_taskManager_};
_.w.getNetworkManager=function(){return this.JSC$13532_networkManager_};
var x8i=null,RMG=[],d8D=0,feG=0,PLz=null,leD=null,Gu=function(m){this.token=m};
Gu.getInstance=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.en(),2);m=G.yieldResult;if(!m)return G.return();Gu.instance||(Gu.instance=new Gu(m));return G.return(Gu.instance)})};
var Laq=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(Gq6(m.token),2);G=K.yieldResult;return K.return(G.clear("resource-manifest-assets"))})},i2=function(m){this.token=m};
i2.getInstance=function(){var m;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.en(),2);m=G.yieldResult;if(!m)return G.return();i2.instance||(i2.instance=new i2(m));return G.return(i2.instance)})};
var Ka5=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(Gq6(m.token),2);G=K.yieldResult;return K.yield(G.clear("auth"),0)})},AdW=!1,ou5=null,nu6=void 0,jQG=!1,wFu=function(m){if(!_.Hp(document,"gtm-noscript")){var G=document.createElement("noscript");
G.id="gtm-noscript";G.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+m+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(G)}},g4i=function(m){_.mv.call(this,m)};
_.n(g4i,_.h7k);
var $cq=!1,Eti=[],qGW=!1,XkG={},UBG=function(m,G){var K=O$6,W=this;this.renderFn=m;this.listeners=K;this.context=G;this.getPlayerApi=void 0;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var L;this.lastSeenPlayerApi=_.hA((L=this.playerControlsData)==null?void 0:L.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.V$f(),void 0);_.F("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){zxD(W).setState({playerState:-1});W.resetRecentlyNavigatedJobId&&
_.Fu.cancelJob(W.resetRecentlyNavigatedJobId);W.recentlyNavigated=!0;W.resetRecentlyNavigatedJobId=_.Fu.addJob(function(){W.recentlyNavigated=!1},8,1E4)})};
UBG.prototype.setState=function(m){if(!_.F("mweb_player_skip_no_op_state_changes")||!SG6(m,this.state))if(this.state=Object.assign({},this.state,m),!_.F("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)m=-1,_.F("player_controls_log_creation_killswitch")||RHD()||(m=(0,_.xD)()),_.Yt("pcu_s"),_.Yt("pcu_se"),_.Yt("pcu_rs"),this.renderFn(zxD(this)),_.Yt("pcu_re"),UcD(m),_.Fu.addJob(function(){_.Yt("pcu_ap")},8)};
var zxD=function(m){if(m.getPlayerApi)var G=_.hA(m.getPlayerApi());else{var K;G=_.hA((K=m.playerControlsData)==null?void 0:K.playerApi)}return Object.assign({},m.state,{setState:m.boundSetState,domMeasurements:{progressBarLineRect:m.progressBarLineRect},playerApi:G,appApi:m.context.appApi,playerContainer:m.context.playerContainer,playerControlContainer:m.context.playerControlContainer,uxConfig:m.context.uxConfig})},lEG=function(m){m.listeners.forEach(function(G){m.eventListenerCleanupFunctions.push(G.register(function(){return zxD(m)},
function(){return m.getData()}))})},BHE=function(m){m.eventListenerCleanupFunctions.forEach(function(G){G()});
m.eventListenerCleanupFunctions.length=0};
UBG.prototype.getData=function(){return this.playerControlsData};var SQ6=function(){var m=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return m?parseInt(m[1],10):0},cdq=function(m){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+m)!=-1||document.currentScript.src.indexOf("&"+m)!=-1)},YYz=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},BTP=function(m){m.length?rdz(m.shift(),function(){BTP(m)}):Uls()},TTz=function(m){return"chrome-extension://"+m+"/cast_sender.js"},rdz=function(m,
G,K){var W=document.createElement("script");
W.onerror=G;K&&(W.onload=K);_.Jt(W,_.hO(m));(document.head||document.documentElement).appendChild(W)},uYq=function(){var m=SQ6(),G=[];
if(m>1){var K=m-1;G.push("//www.gstatic.com/eureka/clank/"+m+"/cast_sender.js");G.push("//www.gstatic.com/eureka/clank/"+K+"/cast_sender.js")}return G},Uls=function(){var m=YYz();
m&&m(!1,"No cast extension found")},lhz=function(){if(hr5){var m=2,G=YYz(),K=function(){m--;
m==0&&G&&G(!0)};
window.__onGCastApiAvailable=K;rdz("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",Uls,K)}},RO6=function(){lhz();
var m=uYq();m.push("//www.gstatic.com/eureka/clank/cast_sender.js");BTP(m)},zOO=function(){lhz();
var m=uYq();m.push.apply(m,_.Bz(MwE.map(TTz)));m.push("//www.gstatic.com/eureka/clank/cast_sender.js");BTP(m)},hr5=cdq("loadCastFramework")||cdq("loadCastApplicationFramework"),MwE=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var pFD=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(pFD,_.pp);var JdG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(JdG,_.pp);var NNO=function(){var m=new JdG;return _.uA(m,1,3)};var H_=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(H_,_.pp);var JM5=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(JM5,_.pp);var Dts=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Dts,_.pp);Dts.prototype.getToken=function(){return _.wL(this,1)};
Dts.prototype.setToken=function(m){return _.ax(this,1,m)};
var h95=function(m){return _.mu(m,3,_.q6,_.Vp())},pUi=function(m){return _.mu(m,6,_.q6,_.Vp())};var Ip=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Ip,_.pp);Ip.prototype.getToken=function(){return _.RG(this,Dts,2)};
Ip.prototype.setToken=function(m){return _.ko(this,2,m)};
Ip.prototype.getName=function(){return _.wL(this,6)};
var tiD=_.HN(Ip);var FpE=function(m,G,K){this.requestMessage=m;this.methodDescriptor=G;this.metadata=K};
FpE.prototype.getMetadata=function(){return this.metadata};var QUu=function(m,G){G=G===void 0?{}:G;this.responseMessage=m;this.metadata=G;this.status=null};
QUu.prototype.getMetadata=function(){return this.metadata};
QUu.prototype.getStatus=function(){return this.status};var jc=function(m,G,K,W,L){this.name=m;this.methodType="unary";this.requestType=G;this.responseType=K;this.requestSerializeFn=W;this.responseDeserializeFn=L},aWz=function(m,G,K){K=K===void 0?{}:K;
return new FpE(G,m,K)};
jc.prototype.getName=function(){return this.name};var kQ=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(kQ,_.pp);kQ.prototype.getHeader=function(){return _.RG(this,H_,1)};
kQ.prototype.setHeader=function(m){return _.ko(this,1,m)};
kQ.prototype.hasHeader=function(){return _.l5(this,H_,1)};var o4D=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(o4D,_.pp);var n4P=new jc("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",kQ,o4D,function(m){return m.serialize()},_.HN(o4D));var Cx=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Cx,_.pp);Cx.prototype.getHeader=function(){return _.RG(this,H_,1)};
Cx.prototype.setHeader=function(m){return _.ko(this,1,m)};
Cx.prototype.hasHeader=function(){return _.l5(this,H_,1)};var b$s=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(b$s,_.pp);var v4q=new jc("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Cx,b$s,function(m){return m.serialize()},_.HN(b$s));var VV=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(VV,_.pp);VV.prototype.getHeader=function(){return _.RG(this,H_,1)};
VV.prototype.setHeader=function(m){return _.ko(this,1,m)};
VV.prototype.hasHeader=function(){return _.l5(this,H_,1)};var $t6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n($t6,_.pp);$t6.prototype.getValues=function(m){return _.VWS(this,1,m)};var sUD=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(sUD,_.pp);sUD.prototype.getLink=function(){return _.RG(this,Ip,1)};var qYD=new jc("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",VV,sUD,function(m){return m.serialize()},_.HN(sUD));var ZY=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ZY,_.pp);ZY.prototype.getHeader=function(){return _.RG(this,H_,1)};
ZY.prototype.setHeader=function(m){return _.ko(this,1,m)};
ZY.prototype.hasHeader=function(){return _.l5(this,H_,1)};var E4G=new jc("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",ZY,Ip,function(m){return m.serialize()},tiD);var H$E=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(H$E,_.pp);var IW6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(IW6,_.pp);IW6.prototype.getUrl=function(){return _.wL(this,2)};
IW6.prototype.setUrl=function(m){return _.ax(this,2,m)};var jUW=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(jUW,_.pp);var kUD=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(kUD,_.pp);var Ch6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Ch6,_.pp);var qvs=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(qvs,_.pp);var $_6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n($_6,_.pp);var ViG=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(ViG,_.pp);var d_6=_.HN(ViG);var Z$D=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Z$D,_.pp);var dt6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(dt6,_.pp);_.w=dt6.prototype;_.w.getHeader=function(){return _.RG(this,H_,1)};
_.w.setHeader=function(m){return _.ko(this,1,m)};
_.w.hasHeader=function(){return _.l5(this,H_,1)};
_.w.getCompletionUrl=function(){return _.wL(this,6)};
_.w.getDeviceId=function(){return _.wL(this,11)};var Phi=new jc("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",dt6,ViG,function(m){return m.serialize()},d_6);var ydG=new Set(["SAPISIDHASH","APISIDHASH"]);var er6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(er6,_.pp);er6.prototype.getMessage=function(){return _.wL(this,2)};
var fW6=_.HN(er6);var XFP=function(m,G){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=m.nodeReadableStream;this.grpcResponseDeserializeFn=G;this.xhr=m.xhr;this.xhrNodeReadableStream&&xt6(this)},Mi6=function(m,G){var K=new SYO;
_.oi(m.xhr,"complete",function(){if(m.xhr.isSuccess()){var W=m.xhr.getResponseText();var L;if(L=G)L=m.xhr,L.JSC$10103_xhr_&&L.isComplete()?(L=L.JSC$10103_xhr_.getResponseHeader("Content-Type"),L=L===null?void 0:L):L=void 0,L=L==="text/plain";if(L){if(!atob)throw Error("dk");W=atob(W)}try{var A=m.grpcResponseDeserializeFn(W)}catch(c){RrD(m,MO6(new _.YZ(13,"Error when deserializing response data; error: "+c+(", response: "+W)),K));return}W=_.XO9(m.xhr.getStatus());Ut6(m,zrE(m));W===0?lWP(m,A):RrD(m,
MO6(new _.YZ(W,"Xhr succeeded but the status code is not 200"),K))}else{W=m.xhr.getResponseText();A=zrE(m);if(W){var O=BNG(m,W);W=O.code;L=O.details;O=O.metadata}else W=2,L="Rpc failed due to xhr error. uri: "+String(m.xhr.JSC$10103_lastUri_)+", error code: "+(m.xhr.JSC$10103_lastErrorCode_+", error: ")+m.xhr.getLastError(),O=A;Ut6(m,A);RrD(m,MO6(new _.YZ(W,L,O),K))}})},xt6=function(m){m.xhrNodeReadableStream.on("data",function(G){if("1"in G){var K=G["1"];
try{var W=m.grpcResponseDeserializeFn(K)}catch(L){RrD(m,new _.YZ(13,"Error when deserializing response data; error: "+L+(", response: "+K)))}W&&lWP(m,W)}if("2"in G)for(G=BNG(m,G["2"]),K=0;K<m.onStatusCallbacks.length;K++)m.onStatusCallbacks[K](G)});
m.xhrNodeReadableStream.on("end",function(){Ut6(m,zrE(m));for(var G=0;G<m.onEndCallbacks.length;G++)m.onEndCallbacks[G]()});
m.xhrNodeReadableStream.on("error",function(){if(m.onErrorCallbacks.length!==0){var G=m.xhr.JSC$10103_lastErrorCode_;G!==0||m.xhr.isSuccess()||(G=6);var K=-1;switch(G){case 0:var W=2;break;case 7:W=10;break;case 8:W=4;break;case 6:K=m.xhr.getStatus();W=_.XO9(K);break;default:W=14}Ut6(m,zrE(m));G=_.HnK(G)+", error: "+m.xhr.getLastError();K!==-1&&(G+=", http status code: "+K);RrD(m,new _.YZ(W,G))}})},zrE=function(m){var G={},K=Ob6(m.xhr);
Object.keys(K).forEach(function(W){G[W]=K[W]});
return G},BNG=function(m,G){var K=2,W={};
try{var L=fW6(G);K=_.Z5(L,1);var A=L.getMessage();_.CB(L,b2D,3,_.Vp()).length&&(W["grpc-web-status-details-bin"]=G)}catch(O){m.xhr&&m.xhr.getStatus()===404?(K=5,A="Not Found: "+String(m.xhr.JSC$10103_lastUri_)):(K=14,A="Unable to parse RpcStatus: "+O)}return{code:K,details:A,metadata:W}};
XFP.prototype.on=function(m,G){m==="data"?this.onDataCallbacks.push(G):m==="metadata"?this.onMetadataCallbacks.push(G):m==="status"?this.onStatusCallbacks.push(G):m==="end"?this.onEndCallbacks.push(G):m==="error"&&this.onErrorCallbacks.push(G);return this};
var TNs=function(m,G){G=m.indexOf(G);G>-1&&m.splice(G,1)};
XFP.prototype.removeListener=function(m,G){m==="data"?TNs(this.onDataCallbacks,G):m==="metadata"?TNs(this.onMetadataCallbacks,G):m==="status"?TNs(this.onStatusCallbacks,G):m==="end"?TNs(this.onEndCallbacks,G):m==="error"&&TNs(this.onErrorCallbacks,G);return this};
XFP.prototype.cancel=function(){this.xhr.abort()};
var lWP=function(m,G){for(var K=0;K<m.onDataCallbacks.length;K++)m.onDataCallbacks[K](G)},Ut6=function(m,G){for(var K=0;K<m.onMetadataCallbacks.length;K++)m.onMetadataCallbacks[K](G)},RrD=function(m,G){for(var K=0;K<m.onErrorCallbacks.length;K++)m.onErrorCallbacks[K](G)},SYO=function(){var m=Error.call(this);
this.message=m.message;"stack"in m&&(this.stack=m.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.n(SYO,Error);var mAD=function(m){this.JSC$19563_worker_=m.worker||null;this.JSC$19563_streamBinaryChunks_=m.streamBinaryChunks||!1;this.JSC$19563_credentialsMode_=void 0};
_.kJ(mAD,_.RIG);mAD.prototype.createInstance=function(){var m=new d7(this.JSC$19563_worker_,this.JSC$19563_streamBinaryChunks_);this.JSC$19563_credentialsMode_&&m.setCredentialsMode(this.JSC$19563_credentialsMode_);return m};
mAD.prototype.setCredentialsMode=function(m){this.JSC$19563_credentialsMode_=m};
var d7=function(m,G){_.ai.call(this);this.JSC$19567_worker_=m;this.JSC$19567_streamBinaryChunks_=G;this.JSC$19567_credentialsMode_=void 0;this.status=this.readyState=0;this.responseURL=this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19567_responseHeaders_=null;this.JSC$19567_method_="GET";this.JSC$19567_url_="";this.inProgress_=!1;this.JSC$19567_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.kJ(d7,_.ai);d7.prototype.open=function(m,G){if(this.readyState!=0)throw this.abort(),Error("ek");this.JSC$19567_method_=m;this.JSC$19567_url_=G;this.readyState=1;iUP(this)};
d7.prototype.send=function(m){if(this.readyState!=1)throw this.abort(),Error("fk");if(this.abortController_.signal.aborted)throw this.abort(),Error("gk");this.inProgress_=!0;var G={headers:this.requestHeaders_,method:this.JSC$19567_method_,credentials:this.JSC$19567_credentialsMode_,cache:void 0,signal:this.abortController_.signal};m&&(G.body=m);(this.JSC$19567_worker_||_.Ks).fetch(new Request(this.JSC$19567_url_,G)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
d7.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,Gcs(this));this.readyState=0};
d7.prototype.handleResponse_=function(m){if(this.inProgress_&&(this.fetchResponse_=m,this.JSC$19567_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19567_responseHeaders_=m.headers,this.readyState=2,iUP(this)),this.inProgress_&&(this.readyState=3,iUP(this),this.inProgress_)))if(this.responseType==="arraybuffer")m.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Ks.ReadableStream!==
"undefined"&&"body"in m){this.currentReader_=m.body.getReader();if(this.JSC$19567_streamBinaryChunks_){if(this.responseType)throw Error("hk");this.response=[]}else this.response=this.responseText="",this.JSC$19567_textDecoder_=new TextDecoder;KHD(this)}else m.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var KHD=function(m){m.currentReader_.read().then(m.handleDataFromStream_.bind(m)).catch(m.handleSendFailure_.bind(m))};
d7.prototype.handleDataFromStream_=function(m){if(this.inProgress_){if(this.JSC$19567_streamBinaryChunks_&&m.value)this.response.push(m.value);else if(!this.JSC$19567_streamBinaryChunks_){var G=m.value?m.value:new Uint8Array(0);if(G=this.JSC$19567_textDecoder_.decode(G,{stream:!m.done}))this.response=this.responseText+=G}m.done?Gcs(this):iUP(this);this.readyState==3&&KHD(this)}};
d7.prototype.handleResponseText_=function(m){this.inProgress_&&(this.response=this.responseText=m,Gcs(this))};
d7.prototype.handleResponseArrayBuffer_=function(m){this.inProgress_&&(this.response=m,Gcs(this))};
d7.prototype.handleSendFailure_=function(){this.inProgress_&&Gcs(this)};
var Gcs=function(m){m.readyState=4;m.fetchResponse_=null;m.currentReader_=null;m.JSC$19567_textDecoder_=null;iUP(m)};
d7.prototype.setRequestHeader=function(m,G){this.requestHeaders_.append(m,G)};
d7.prototype.getResponseHeader=function(m){return this.JSC$19567_responseHeaders_?this.JSC$19567_responseHeaders_.get(m.toLowerCase())||"":""};
d7.prototype.getAllResponseHeaders=function(){if(!this.JSC$19567_responseHeaders_)return"";for(var m=[],G=this.JSC$19567_responseHeaders_.entries(),K=G.next();!K.done;)K=K.value,m.push(K[0]+": "+K[1]),K=G.next();return m.join("\r\n")};
d7.prototype.setCredentialsMode=function(m){this.JSC$19567_credentialsMode_=m};
var iUP=function(m){m.onreadystatechange&&m.onreadystatechange.call(m)};
Object.defineProperty(d7.prototype,"withCredentials",{get:function(){return this.JSC$19567_credentialsMode_==="include"},
set:function(m){this.setCredentialsMode(m?"include":"same-origin")}});var WHD=function(m){var G="";_.Y2.forEach(m,function(K,W){G+=W;G+=":";G+=K;G+="\r\n"});
return G},LHz=function(m,G,K){if(_.Y2.isEmpty(K))return m;
K=WHD(K);if(typeof m==="string")return _.Mj(m,_.zF(G),K);_.Ct(m,G,K);return m};T9O.prototype.isInputValid=function(){return this.isInputValid_};
T9O.prototype.decode=function(m){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ik`"+this.JSC$19573_streamPos_+"`stream already broken`"+m);this.leftoverInput_+=m;m=Math.floor(this.leftoverInput_.length/4);if(m==0)return null;try{var G=_.fFd(this.leftoverInput_.slice(0,m*4))}catch(K){throw G=this.leftoverInput_,m=K.message,this.isInputValid_=!1,Error("ik`"+this.JSC$19573_streamPos_+"`"+m+"`"+G);}this.JSC$19573_streamPos_+=m*4;this.leftoverInput_=this.leftoverInput_.slice(m*4);return G};m_D.prototype.isInputValid=function(){return this.state_!=3};
var Api=function(m,G,K,W){m.state_=3;m.errorMessage_="The stream is broken @"+m.JSC$19576_streamPos_+"/"+K+". Error: "+W+". With input:\n"+G;throw Error(m.errorMessage_);};
m_D.prototype.acceptsBinaryInput=function(){return!0};
m_D.prototype.parse=function(m){function G(u){u&128&&Api(A,O,c,"invalid tag");(u&7)!=2&&Api(A,O,c,"invalid wire type");A.tag_=u>>>3;A.tag_!=1&&A.tag_!=2&&A.tag_!=15&&Api(A,O,c,"unexpected tag");A.state_=1;A.length_=0;A.countLengthBytes_=0}
function K(u){A.countLengthBytes_++;A.countLengthBytes_==5&&u&240&&Api(A,O,c,"message length too long");A.length_|=(u&127)<<(A.countLengthBytes_-1)*7;u&128||(A.state_=2,A.countMessageBytes_=0,typeof Uint8Array!=="undefined"?A.messageBuffer_=new Uint8Array(A.length_):A.messageBuffer_=Array(A.length_),A.length_==0&&L())}
function W(u){A.messageBuffer_[A.countMessageBytes_++]=u;A.countMessageBytes_==A.length_&&L()}
function L(){if(A.tag_<15){var u={};u[A.tag_]=A.messageBuffer_;A.result_.push(u)}A.state_=0}
for(var A=this,O=m instanceof Array?m:new Uint8Array(m),c=0;c<O.length;){switch(A.state_){case 3:Api(A,O,c,"stream already broken");break;case 0:G(O[c]);break;case 1:K(O[c]);break;case 2:W(O[c]);break;default:throw Error("jk`"+A.state_);}A.JSC$19576_streamPos_++;c++}m=A.result_;A.result_=[];return m.length>0?m:null};var Kd5=function(){this.errorMessage_=null;this.JSC$19579_streamPos_=0;this.base64Decoder_=new T9O;this.pbParser_=new m_D};
Kd5.prototype.isInputValid=function(){return this.errorMessage_===null};
var wMD=function(m,G,K){m.errorMessage_="The stream is broken @"+m.JSC$19579_streamPos_+". Error: "+K+". With input:\n"+G;throw Error(m.errorMessage_);};
Kd5.prototype.acceptsBinaryInput=function(){return!1};
Kd5.prototype.parse=function(m){this.errorMessage_!==null&&wMD(this,m,"stream already broken");var G=null;try{var K=this.base64Decoder_.decode(m);G=K===null?null:this.pbParser_.parse(K)}catch(W){wMD(this,m,W.message)}this.JSC$19579_streamPos_+=m.length;return G};var GvW=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19582_streamPos_=0;this.result_=[];this.statusParsed_=!1};
GvW.prototype.isInputValid=function(){return this.errorMessage_===null};
GvW.prototype.acceptsBinaryInput=function(){return!1};
GvW.prototype.parse=function(m){function G(u){A.state_=6;A.errorMessage_="The stream is broken @"+A.JSC$19582_streamPos_+"/"+O+". Error: "+u+". With input:\n";throw Error(A.errorMessage_);}
function K(){A.jsonStreamParser_=new _.Wl({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function W(u){if(u)for(var h=0;h<u.length;h++){var J={};J[1]=u[h];A.result_.push(J)}}
function L(u){if(u){(A.statusParsed_||u.length>1)&&G("extra status: "+u);A.statusParsed_=!0;var h={};h[2]=u[0];A.result_.push(h)}}
for(var A=this,O=0;O<m.length;){var c;if(c=A.state_!==2){a:{for(;O<m.length;){if(!_.qt(m[O])){c=!0;break a}O++;A.JSC$19582_streamPos_++}c=!1}c=!c}if(c)return null;switch(A.state_){case 6:G("stream already broken");break;case 0:m[O]==="["?(A.state_=1,O++,A.JSC$19582_streamPos_++):G("unexpected input token");break;case 1:m[O]==="["?(A.state_=2,K()):m[O]===","||m.slice(O,O+5)=="null,"?A.state_=3:m[O]==="]"?(A.state_=5,O++,A.JSC$19582_streamPos_++):G("unexpected input token");break;case 2:c=A.jsonStreamParser_.parse(m.substring(O));
W(c);A.jsonStreamParser_.done()?(A.state_=3,c=A.jsonStreamParser_.JSC$11792_buffer_,A.JSC$19582_streamPos_+=m.length-O-c.length,m=c,O=0):(A.JSC$19582_streamPos_+=m.length-O,O=m.length);break;case 3:m[O]===","||m.slice(O,O+5)=="null,"?(A.state_=4,K(),A.jsonStreamParser_.parse("["),O+=m[O]===","?1:5,A.JSC$19582_streamPos_++):m[O]==="]"&&(A.state_=5,O++,A.JSC$19582_streamPos_++);break;case 4:c=A.jsonStreamParser_.parse(m.substring(O));L(c);A.jsonStreamParser_.done()?(A.state_=5,c=A.jsonStreamParser_.JSC$11792_buffer_,
A.JSC$19582_streamPos_+=m.length-O-c.length,m=c,O=0):(A.JSC$19582_streamPos_+=m.length-O,O=m.length);break;case 5:G("extra input after stream end")}}return A.result_.length>0?(m=A.result_,A.result_=[],m):null};var gYu=function(m){this.JSC$19585_xhr_=m;this.JSC$19585_parser_=null;this.status_=this.JSC$19585_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19585_textDecoder_=null;this.JSC$19585_eventHandler_=new _.gM(this);this.JSC$19585_eventHandler_.listen(this.JSC$19585_xhr_,"readystatechange",this.JSC$19587_readyStateChangeHandler_)},P_=function(m,G){m.status_!=G&&(m.status_=G,m.statusHandler_&&m.statusHandler_())},OUE=function(m){m.JSC$19585_eventHandler_.removeAll();
if(m.JSC$19585_xhr_){var G=m.JSC$19585_xhr_;m.JSC$19585_xhr_=null;G.abort();G.dispose()}};
gYu.prototype.getStatus=function(){return this.status_};
gYu.prototype.JSC$19587_readyStateChangeHandler_=function(m){m=m.target;try{if(m==this.JSC$19585_xhr_)a:{var G=_.hz(this.JSC$19585_xhr_),K=this.JSC$19585_xhr_.JSC$10103_lastErrorCode_,W=this.JSC$19585_xhr_.getStatus(),L=this.JSC$19585_xhr_.getResponseText();m=[];if(this.JSC$19585_xhr_.getResponse()instanceof Array){var A=this.JSC$19585_xhr_.getResponse();A.length>0&&A[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,m=A)}if(!(G<3||G==3&&!L&&m.length==0))if(W=W==200||W==206,G==4&&(K==8?
P_(this,7):K==7?P_(this,8):W||P_(this,3)),this.JSC$19585_parser_||(this.JSC$19585_parser_=WdD(this.JSC$19585_xhr_),this.JSC$19585_parser_==null&&P_(this,5)),this.status_>2)OUE(this);else{if(m.length>this.JSC$19585_pos_){var O=m.length;K=[];try{if(this.JSC$19585_parser_.acceptsBinaryInput())for(var c=0;c<O;c++){var u=this.JSC$19585_parser_.parse(Array.from(m[c]));u&&(K=K.concat(u))}else{u="";if(!this.JSC$19585_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("kk");this.JSC$19585_textDecoder_=
new TextDecoder}for(c=0;c<O;c++)u+=this.JSC$19585_textDecoder_.decode(m[c],{stream:G==4&&c==O-1});K=this.JSC$19585_parser_.parse(u)}m.splice(0,O);K&&this.dataHandler_(K)}catch(J){P_(this,5);OUE(this);break a}}else if(L.length>this.JSC$19585_pos_){c=L.slice(this.JSC$19585_pos_);this.JSC$19585_pos_=L.length;try{var h=this.JSC$19585_parser_.parse(c);h!=null&&this.dataHandler_&&this.dataHandler_(h)}catch(J){P_(this,5);OUE(this);break a}}G==4?(L.length!=0||this.hasStreamingResponseData_?P_(this,2):P_(this,
4),OUE(this)):P_(this,1)}}}catch(J){P_(this,6),OUE(this)}};var cpP=function(m){m=this.xhrReader_=m;var G=(0,_.AO)(this.onData_,this);m.dataHandler_=G;m=this.xhrReader_;G=(0,_.AO)(this.onStatusChange_,this);m.statusHandler_=G;this.JSC$19589_callbackMap_={};this.callbackOnceMap_={}};
_.w=cpP.prototype;_.w.on=function(m,G){var K=this.JSC$19589_callbackMap_[m];K||(K=[],this.JSC$19589_callbackMap_[m]=K);K.push(G);return this};
_.w.addListener=function(m,G){this.on(m,G);return this};
_.w.removeListener=function(m,G){var K=this.JSC$19589_callbackMap_[m];K&&_.PJ(K,G);(m=this.callbackOnceMap_[m])&&_.PJ(m,G);return this};
_.w.once=function(m,G){var K=this.callbackOnceMap_[m];K||(K=[],this.callbackOnceMap_[m]=K);K.push(G);return this};
_.w.onData_=function(m){var G=this.JSC$19589_callbackMap_.data;G&&Y4s(m,G);(G=this.callbackOnceMap_.data)&&Y4s(m,G);this.callbackOnceMap_.data=[]};
var Y4s=function(m,G){for(var K={},W=0;W<m.length;K={message$jscomp$1008:void 0},W++)K.message$jscomp$1008=m[W],G.forEach(function(L){return function(A){try{A(L.message$jscomp$1008)}catch(O){}}}(K))};
cpP.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:rpP(this,"readable");break;case 5:case 6:case 4:case 7:case 3:rpP(this,"error");break;case 8:rpP(this,"close");break;case 2:rpP(this,"end")}};
var rpP=function(m,G){var K=m.JSC$19589_callbackMap_[G];K&&K.forEach(function(W){try{W()}catch(L){}});
(K=m.callbackOnceMap_[G])&&K.forEach(function(W){W()});
m.callbackOnceMap_[G]=[]};var uVz=function(){var m={format:"jspb"};m=m===void 0?{}:m;this.suppressCorsPreflight=m.suppressCorsPreflight||_.Cn("suppressCorsPreflight",m)||!1;this.withCredentials=m.withCredentials||_.Cn("withCredentials",m)||!1;this.streamInterceptors=m.streamInterceptors||[];this.unaryInterceptors=m.unaryInterceptors||[];this.workerScope=m.workerScope;this.chunkedServerStreaming=m.useFetchDownloadStreams||!1},JpW=function(m,G,K,W,L,A){A=A===void 0?{}:A;
var O=G.substring(0,G.length-L.name.length),c,u=(c=A)==null?void 0:c.signal;return hiz(function(h){return new Promise(function(J,N){if(u==null?0:u.aborted){var D=new _.YZ(1,"Aborted");D.cause=u.reason;N(D)}else{var t={},a=pMq(m,h,O);a.on("error",function(v){return void N(v)});
a.on("metadata",function(v){t=v});
a.on("data",function(v){var I=t;I=I===void 0?{}:I;J(new QUu(v,I))});
u&&u.addEventListener("abort",function(){a.cancel();var v=new _.YZ(1,"Aborted");v.cause=u.reason;N(v)})}})},m.unaryInterceptors).call(m,aWz(L,K,W)).then(function(h){return h.responseMessage})},NbG=function(m,G,K,W,L,A){A=A===void 0?{}:A;
return JpW(m,G,K,W,L,A)};
uVz.prototype.serverStreaming=function(m,G,K,W){var L=this,A=m.substring(0,m.length-W.name.length);return DA6(function(O){var c=O.methodDescriptor,u=O.getMetadata(),h=tPW(L,!1);u=FHO(L,u,h,A+c.getName());var J=QkG(h,c.responseDeserializeFn,!0);O=c.requestSerializeFn(O.requestMessage);h.send(u,"POST",O);return J},this.streamInterceptors).call(this,aWz(W,G,K))};
var pMq=function(m,G,K){var W=G.methodDescriptor,L=G.getMetadata(),A=tPW(m,!0);m=FHO(m,L,A,K+W.getName());K=QkG(A,W.responseDeserializeFn,!1);Mi6(K,L["X-Goog-Encode-Response-If-Executable"]==="base64");G=W.requestSerializeFn(G.requestMessage);A.send(m,"POST",G);return K},tPW=function(m,G){G=m.chunkedServerStreaming&&!G;
return m.workerScope||G?new _.uZ(new mAD({worker:m.workerScope,streamBinaryChunks:G})):new _.uZ},FHO=function(m,G,K,W){G["Content-Type"]="application/json+protobuf";
G["X-User-Agent"]="grpc-web-javascript/0.1";var L=G.Authorization;if(L&&ydG.has(L.split(" ")[0])||m.withCredentials)K.JSC$10103_withCredentials_=!0;if(m.suppressCorsPreflight)W=LHz(W,"$httpHeaders",G);else for(m=_.g(Object.keys(G)),L=m.next();!L.done;L=m.next())L=L.value,K.headers.set(L,G[L]);return W},QkG=function(m,G,K){if(K){K=new gYu(m);
var W=new cpP(K)}return new XFP({xhr:m,nodeReadableStream:W},G)},DA6=function(m,G){return G.reduce(function(K,W){return function(L){return W.intercept(L,K)}},m)},hiz=function(m,G){return G.reduce(function(K,W){return function(L){return W.intercept(L,K)}},m)};var apq=function(m){this.client_=new uVz;this.hostname_=m==void 0?m:m.replace(/\/+$/,"")};
_.w=apq.prototype;_.w.JSC$19607_depositGoogleCredential=function(m,G,K){return NbG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",m,G||{},v4q,K)};
_.w.deleteLink=function(m,G,K){return NbG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",m,G||{},n4P,K)};
_.w.JSC$19607_finishOAuth=function(m,G,K){return NbG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",m,G||{},qYD,K)};
_.w.getLink=function(m,G,K){return NbG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",m,G||{},E4G,K)};
_.w.startLinkingSession=function(m,G,K){return NbG(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",m,G||{},Phi,K)};var oY6=[0,_.$i,1,F76,[0,_.Ho,[0,_.qE,-1]],[0,tgE],[0,_.VI,-1],[0,tgE]];var nYs=function(){this.storage=new Map},vYi=function(m,G,K,W,L){if(!m.storage.has(G))return null;
m=_.g(m.storage.get(G));for(G=m.next();!G.done;G=m.next())if(G=G.value,!L||G.linkName===L)if(K&&G.scopes&&bUW(G.scopes,K)||W&&G.capabilities&&bUW(G.capabilities,W))return G;return null},$AP=function(m,G,K){if(!K)m.storage.delete(G);
else if(m.storage.has(G)){var W=m.storage.get(G).filter(function(L){return L.linkName!==K});
W.length>0?m.storage.set(G,W):m.storage.delete(G)}},bUW=function(m,G){G=_.g(G);
for(var K=G.next();!K.done;K=G.next())if(!m.has(K.value))return!1;return!0};var skO=function(){var m=_.E8("LINK_GAL_DOMAIN");this.alsDomain1p=_.E8("LINK_GAL_DOMAIN");this.alsDomain3p=m;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},q4z=function(m,G){m.apiKey=G;
return m};
skO.prototype.build=function(){var m={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("lk");m.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("mk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("nk");m.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(m.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)m.apiKey=
this.apiKey,m.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ok");m.oauthToken=this.oauthToken;m.alsDomain=this.alsDomain3p}m.clientXd3=this.clientXd3;m.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(m.authUser=this.authUser);this.bucket!==void 0&&(m.bucket=this.bucket);this.completionUrl!==void 0&&(m.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(m.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(m.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(m.locale=this.locale);this.localStorage!==void 0&&(m.localStorage=this.localStorage);m.loggerType=this.loggerType;m.clientEnvironment=this.clientEnvironment;m.colorScheme=this.colorScheme;m.showCloseOption=this.showCloseOption;return m};var OE=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(OE,_.pp);var EY6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(EY6,_.pp);var HUD=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(HUD,_.pp);var Y7=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Y7,_.pp);var Ips=function(m){return _.gL(m,1)};var jkE=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(jkE,_.pp);var YvP=_.HN(jkE),c5=[1,2,3,4,5];var wU6=function(m){try{return YvP(m)}catch(G){return null}},kcE=function(){},gRG=function(m,G){switch(_.Te(G,c5)){case 4:return(G=_.Yi(G,HUD,4,c5))&&m.logStateTransition(_.gL(G,1)),!0;
case 5:return(G=_.Yi(G,EY6,5,c5))&&m.logInternalEvent(_.gL(G,1)),!0}return!1},rM6=function(m){switch(m){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.GG(m)}};var Ldq=function(m,G){var K=this;this.validator=m;this.messageListener=G;this.dismissCallback=function(){CNq(K,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19636_receiveMessage=function(W){W.type==="message"&&(W=W.event_,W!==null&&(new URL(K.iframe.src)).origin===W.origin&&K.validator(W.data,W.origin)&&!K.messageListener(W.data)&&(K.JSC$19636_resolveCb!==void 0&&K.JSC$19636_resolveCb(W.data),VPW(K)))}},cM6=function(m,G,K){m.uiHandler!==void 0&&CNq(m,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(W,L){m.JSC$19636_resolveCb=W;m.JSC$19636_rejectCb=L;m.iframe=document.createElement("iframe");_.w5(m.iframe,G);m.uiHandler=K.displayContent(m.iframe,m.dismissCallback);_.oi(window,"message",m.JSC$19636_receiveMessage,!1,m)})},CNq=function(m,G){m.JSC$19636_rejectCb!==void 0&&m.JSC$19636_rejectCb(G);
VPW(m)},VPW=function(m){m.uiHandler!==void 0&&m.uiHandler.hideContent();
_.Lb(window,"message",m.JSC$19636_receiveMessage,!1,m);m.JSC$19636_resolveCb=void 0;m.JSC$19636_rejectCb=void 0;m.uiHandler=void 0;m.iframe=void 0};var ZUz=function(m){if(m===2){var G;m=((G=window)==null?0:G.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return m},OGq=function(m){m=ZUz(m);
switch(m){case 0:return"light";case 1:return"dark";default:_.GG(m)}};var AMq=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),dAE=function(m,G){this.JSC$19648_linkingSession=m;this.noticeConfig=G;this.displayInfoMap=new Map;var K=new Map;if(_.l5(this.JSC$19648_linkingSession,jUW,7))for(m=_.RG(this.JSC$19648_linkingSession,jUW,7),m=_.CB(m,IW6,1,_.Vp()),m=_.g(m),G=m.next();!G.done;G=m.next())G=G.value,K.set(_.gL(G,1),_.wwv(_.RG(G,_.z8G,3)));if(K.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){G=this.noticeConfig.enabledDataUsageNoticeUis;m=G.has(0)?K.get(1):void 0;G=G.has(1)?K.get(2):void 0;K=m!==void 0&&G!==void 0?K.get(3):void 0;var W=this.noticeConfig.nestedOrigins;var L=new jkE;var A=new OE;L=_.Cp(L,2,c5,A);A=new jkE;var O=new OE;A=_.Cp(A,3,c5,O);O=[];m!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:m,lastEvent:L,nestedOrigins:W}]),O.push({trustedUrl:m,lastEvent:L,nestedOrigins:W}));G!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:G,lastEvent:A,nestedOrigins:W}]),O.push({trustedUrl:G,lastEvent:A,nestedOrigins:W}));K!==void 0?this.displayInfoMap.set(3,[{trustedUrl:K,lastEvent:A,nestedOrigins:W}]):this.displayInfoMap.set(3,O)}};var PNW=function(m){var G=new nYs;this.galService=m;this.galCache=G};
PNW.prototype.getLink=function(m){var G=m.serviceId;var K=m.scopes;var W=m.capabilities;var L=m.linkName;var A=this,O;return _.Y(function(c){if(W!==void 0&&K!==void 0)throw Error("pk");O=vYi(A.galCache,G,K,W,L);return O!==null?c.return(O):c.return(A.galService.getLink({serviceId:G,sessionId:Math.floor(Math.random()*2147483648),scopes:K,capabilities:W,linkName:L}).then(function(u){u=N6O(u);var h=A.galCache;h.storage.has(G)?h.storage.get(G).push(u):h.storage.set(G,[u]);return u}))})};
PNW.prototype.deleteLink=function(m,G,K){var W=this;return _.Y(function(L){$AP(W.galCache,m,K);return L.return(W.galService.deleteLink({serviceId:m,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:G,linkName:K}).then(function(){return!0}))})};var eiP=function(m,G){var K=this;this.validator=m;this.msgHandler=G;this.closedPopupTimeout=this.JSC$19670_rejectCb=this.JSC$19670_resolveCb=this.popup=null;this.JSC$19670_receiveMessage=function(W){if(W!==null&&(W=W.event_,W.source===K.popup)){var L=W.data;if(K.validator(L,W.origin)){var A;(A=K.msgHandler)!=null&&A.call(K,L)||(K.JSC$19670_resolveCb!==null&&K.JSC$19670_resolveCb(L),ypG(K))}}}};
eiP.prototype.open=function(m,G){var K=this;this.popup!==null&&fpD(this);return new Promise(function(W,L){K.JSC$19670_resolveCb=W;K.JSC$19670_rejectCb=L;K.popup=_.Oy(window,m,"",G);_.oi(window,"message",K.JSC$19670_receiveMessage,!1,K);xAD(K)})};
var fpD=function(m,G){m.JSC$19670_rejectCb!==null&&m.JSC$19670_rejectCb(G);ypG(m)},ypG=function(m){m.closedPopupTimeout&&(m.closedPopupTimeout.cancel(),m.closedPopupTimeout=null);
m.popup&&m.popup.close();_.Lb(window,"message",m.JSC$19670_receiveMessage,!1,m);m.popup=null;m.JSC$19670_resolveCb=null;m.JSC$19670_rejectCb=null},xAD=function(m){m.closedPopupTimeout=_.vSl(100).then(function(){m.popup?m.popup.closed?XMD(m):xAD(m):fpD(m,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},XMD=function(m){m.closedPopupTimeout=_.vSl(100).then(function(){fpD(m,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var S4s=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),RiW=function(m,G,K,W,L,A,O,c,u,h){var J=this;this.serviceId=m;this.sessionId=G;this.galService=K;this.oauthDetails=W;this.galLogger=L;this.interactionMode=A;this.redirectServiceUrl=O;this.consentLanguageKeys=c;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=h;this.started=!1;this.JSC$19676_dataValidator=function(N,
D){var t=S4s.has(D);t||J.redirectServiceUrl===void 0||(t=J.redirectServiceUrl===D);return t?N.sentinel==="gdi":!1}};
RiW.prototype.complete=function(){var m=this,G;return _.Y(function(K){if(m.interactionMode!==1)return K.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=sWG.getRedirectStateFromUri();return G===null?K.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):K.return(UAE(m,G))})};
RiW.prototype.start=function(){var m=this,G;return _.Y(function(K){if(m.started)return K.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.wL(m.oauthDetails,1))return K.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(m.interactionMode===1)return sWG.setLocation(_.wL(m.oauthDetails,1)),K.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));m.started=!0;m.galLogger.logStateTransition(5);
G=sWG.getPostMessagePopup(m.JSC$19676_dataValidator);return K.return(G.open(_.wL(m.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(W){m.started=!1;var L=m.galLogger;if((W==null?void 0:W.error)!==void 0)throw L.logInternalEvent(59),Error("qk");if((W==null?void 0:W.redirect_state)===void 0)throw L.logInternalEvent(131),Error("rk");return UAE(m,W.redirect_state)}).catch(function(W){m.started=
!1;
return W.errorCode!==void 0?{statusCode:W.errorCode,statusMessage:W.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var UAE=function(m,G){return _.Y(function(K){return K.return(zis(m.galService,{serviceId:m.serviceId,sessionId:m.sessionId,dynamicUrlParameters:m.dynamicUrlParameters,redirectState:G,consentLanguageKeys:m.consentLanguageKeys,partnerConfigMinReadTimestamp:m.partnerConfigMinReadTimestamp}).then(function(W){var L={statusCode:1,link:N6O(W.getLink())};JaD(_.MP(W,3))!==void 0&&(L.callerState=JaD(_.MP(W,3)));_.Xuf(W,4,$t6,pv6).size>0&&(L.redirectUriParams=new Map(Array.from(_.Xuf(W,4,$t6,pv6).entries()).map(function(A){var O=
_.g(A);A=O.next().value;var c=O.next().value;O=[];var u=O.concat;c=_.mu(c,1,_.q6,_.Vp());return[A,u.call(O,_.Bz(c))]})));
m.galLogger.logInternalEvent(134);return L}))})},sWG={getPostMessagePopup:function(m){return new eiP(m)},
getRedirectStateFromUri:function(){var m=_.jU(sWG.getLocation()).fragment_;return(new _.dO(m)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(m){_.jOV(window.location,_.MI(m))},
createOAuthFlow:function(m,G){return new RiW(m.serviceId,m.sessionId,m.galService,G,m.galLogger,m.interactionMode,m.redirectServiceUrl,m.consentLanguageKeys,m.dynamicUrlParameters,m.partnerConfigMinReadTimestamp)}};var lp5=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(lp5,_.pp);var BbE=_.HN(lp5);var MPO=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Tb6=function(m,G,K,W,L,A,O,c,u){var h=this;this.serviceId=m;this.sessionId=G;this.galService=K;this.gsiWebFlowDetails=W;this.colorScheme=L;this.showCloseOption=A;this.galLogger=O;this.interactionMode=c;this.redirectServiceUrl=u;this.started=!1;this.JSC$19689_dataValidator=function(J,N){var D=MPO.has(N);D||h.redirectServiceUrl===
void 0||(D=h.redirectServiceUrl===N);return D?J.sentinel==="gal":!1};
this.logEventProcessor=function(J){return J.result?(J=wU6(J.result))?gRG(h.galLogger,J):!1:!1}};
Tb6.prototype.complete=function(){var m=this,G,K;return _.Y(function(W){if(m.interactionMode!==1)return W.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));G=ERD.getRedirectStateFromUri();if(G===void 0)return m.galLogger.JSC$19628_logErrorEvent(131),W.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return K=mVD(m,G),W.return(iKW(m,K))}catch(L){return W.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Tb6.prototype.start=function(){var m=this,G;return _.Y(function(K){if(m.started)return K.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.wL(m.gsiWebFlowDetails,1))return K.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(m.interactionMode===1)return ERD.setLocation(Gj6(m,_.wL(m.gsiWebFlowDetails,1))),K.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
m.started=!0;G=ERD.getPostMessagePopup(m.JSC$19689_dataValidator,m.logEventProcessor);return K.return(G.open(Gj6(m,_.wL(m.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(W){m.started=!1;if((W==null?void 0:W.result)===void 0)throw m.galLogger.JSC$19628_logErrorEvent(131),Error("rk");W=mVD(m,W.result);return iKW(m,W)}).catch(function(W){m.started=!1;
return W.errorCode!==void 0?{statusCode:W.errorCode,statusMessage:W.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var Gj6=function(m,G){m=["result_channel",m.interactionMode===1?"2":"1","color_scheme",OGq(m.colorScheme),"show_close_option",m.showCloseOption];return t_E(G,m)},iKW=function(m,G){if(G!==null&&_.l5(G,Y7,2)){var K,W=G==null?void 0:(K=_.RG(G,Y7,2))==null?void 0:_.gL(K,2);
W&&m.galLogger.JSC$19628_logErrorEvent(rM6(W));return Ips(_.RG(G,Y7,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 m.galService.getLink({serviceId:m.serviceId,sessionId:m.sessionId,consistencyKey:_.wL(G,1)}).then(function(L){L=N6O(L);m.galLogger.logInternalEvent(134);return{statusCode:1,link:L}})},mVD=function(m,G){G=BbE(G);
if(!_.l5(G,Y7,2)&&_.wL(G,1)==="")throw m.galLogger.JSC$19628_logErrorEvent(5),Error("sk");return G},ERD={getPostMessagePopup:function(m,G){return new eiP(m,G)},
getRedirectStateFromUri:function(){return _.kl(_.jU(ERD.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(m){_.jOV(window.location,_.MI(m))},
createStreamlinedFlow:function(m,G){return new Tb6(m.serviceId,m.sessionId,m.galService,G,m.colorScheme,m.showCloseOption,m.galLogger,m.interactionMode,m.redirectServiceUrl)}};var V8D=function(m){this.storage=(m=m?_.JH("GAL"):_.uQP("GAL"))?new _.YD(m):null};
V8D.prototype.getSession=function(m){if(this.storage!==null)try{var G=this.storage.get("SAVED_SESSION");if(G===void 0)return null;if(G.serviceId===m)return G}catch(K){}return null};var KI6=function(){};
_.n(KI6,kcE);KI6.prototype.logStateTransition=function(){};
KI6.prototype.logInternalEvent=function(){};
KI6.prototype.JSC$19628_logErrorEvent=function(){};var WI6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(WI6,_.pp);WI6.prototype.getCompletionUrl=function(){return _.wL(this,15)};var yV=function(m,G,K,W,L,A){this.serviceId=m;this.environment=G;this.sessionId=K;this.colorSchemeSelected=W;this.colorThemeDisplayed=L;this.JSC$19702_transport=A;this.currentState=1};
_.n(yV,kcE);yV.prototype.logStateTransition=function(m){var G=LIs(this);G=_.UV(G,3,this.currentState);G=_.UV(G,1,m);this.currentState=m;m=gZz(1);this.dispatch(G,m)};
yV.prototype.logInternalEvent=function(m){m=gZz(m);this.dispatch(LIs(this),m)};
yV.prototype.JSC$19628_logErrorEvent=function(m){var G=LIs(this);G=_.UV(G,1,10);m=gZz(m);this.dispatch(G,m)};
var LIs=function(m){var G=new WI6;G=_.UV(G,1,m.currentState);G=_.LB(G,7,m.serviceId);var K,W;var L=((K=window)==null?0:(W=K.location)==null?0:W.href)?_.jU(window.location.href).JSC$10339_domain_:"NO_PACKAGE_NAME";K=_.LB(G,8,L);K=_.UV(K,6,m.environment);K=_.LB(K,5,"100");K=_.UV(K,11,m.colorSchemeSelected);return _.UV(K,12,m.colorThemeDisplayed)};
yV.prototype.dispatch=function(m,G){G===void 0&&(G=new _.zs);var K=G;m=m.serialize();K=_.LB(K,8,m);_.c$(K,12,this.sessionId);this.JSC$19702_transport.dispatch(G)};var A6i=function(m,G){this.loggerType=m;this.sessionIndex=G!=null?G:0},wBq;
A6i.prototype.create=function(m,G,K,W,L){switch(this.loggerType){case 0:return new KI6;case 1:return wBq||(wBq=(new _.R$(555,this.sessionIndex.toString())).build()),new yV(m,G,K,W,L,wBq);default:_.GG(this.loggerType,"unknown logger type")}};var HGP=[6,2,3,1],fli=new Map([[4,1],[1,6],[2,2],[3,3]]),QW6={statusCode:7,statusMessage:"Failed to create flow object"},kv6=function(m,G,K,W,L,A,O,c,u,h){this.serviceId=m;this.sessionId=G;this.config=K;this.galService=W;this.JSC$19709_linkingSession=L;this.googleScopes=A;this.callerState=O;this.consentLanguageKeys=c;this.dynamicUrlParameters=u;this.partnerConfigMinReadTimestamp=h;this.currentFlow=0;W=this.JSC$19709_linkingSession;L=new Set;_.l5(W,$_6,1)&&L.add(1);_.l5(W,Ch6,2)&&_.l5(W,qvs,6)&&L.add(2);
_.l5(W,kUD,3)&&_.l5(W,qvs,6)&&L.add(3);_.l5(W,H$E,4)&&L.add(6);this.supportedFlows=L;W=K.loggerType;L=K.clientEnvironment;a:{A=K.colorScheme;switch(A){case 0:A=1;break a;case 1:A=2;break a;case 2:A=3;break a;default:_.GG(A)}A=void 0}a:{O=K.colorScheme;O=ZUz(O);switch(O){case 0:O=1;break a;case 1:O=2;break a;default:_.GG(O)}O=void 0}this.galLogger=(new A6i(W,K.authUser)).create(m,L,G,A,O)},c6u=function(m){return new Promise(function(G){var K,W,L,A,O,c,u,h,J,N;
return _.Y(function(D){switch(D.nextAddress){case 1:K=Ili(m.currentFlow,m.supportedFlows),W=!1,L=new dAE(m.JSC$19709_linkingSession,m.config.dataUsageNoticeConfig);case 2:if(K===void 0){D.jumpTo(4);break}_.IO(D,5);var t=L,a=K,v=void 0;W?a===1&&(v=t.displayInfoMap.get(2)):a===2||a===3?v=t.displayInfoMap.get(1):a===1&&(v=t.displayInfoMap.get(3));A=v?v:[];O=m.consentLanguageKeys;c=_.g(A);u=c.next();case 7:if(u.done)return m.currentFlow=K,D.yield(oRP(gqu(m,O)),11);h=u.value;return D.yield(uQE(h,m.config.dataUsageNoticeConfig.uiAdapter,
m.config.colorScheme,m.galLogger),10);case 10:J=D.yieldResult;if(J.statusCode!==1)return OKP(m),G(nRP({statusCode:J.statusCode,statusMessage:J.statusMessage},m.callerState)),D.return();J.consentLanguageKeys!==void 0&&(O=J.consentLanguageKeys);u=c.next();D.jumpTo(7);break;case 11:N=D.yieldResult;if(N.statusCode!==10)return N.statusCode!==6&&OKP(m),N.statusCode!==1&&m.callerState!==void 0&&(N.callerState=m.callerState),G(N),D.return();_.IG(D,6);break;case 5:_.ye(D);case 6:K=Ili(m.currentFlow,m.supportedFlows);
W=!0;D.jumpTo(2);break;case 4:OKP(m),G(nRP({statusCode:12,statusMessage:"Linking failed"},m.callerState)),_.ey(D)}})})},OKP=function(m){ZGu(m.serviceId,m.config.localStorage);
m.currentFlow=0},yMD=function(m,G,K){m.currentFlow=G;
return bGs(gqu(m,K)).then(function(W){return W.statusCode===10&&m.config.interactionMode===1&&Ili(m.currentFlow,m.supportedFlows)!==void 0?c6u(m):W})},gqu=function(m,G){return{flowParams:{serviceId:m.serviceId,
sessionId:m.sessionId,galService:m.galService,galLogger:m.galLogger,interactionMode:m.config.interactionMode,redirectServiceUrl:m.config.redirectServiceUrl,colorScheme:m.config.colorScheme,consentLanguageKeys:G,dynamicUrlParameters:m.dynamicUrlParameters,showCloseOption:m.config.showCloseOption,partnerConfigMinReadTimestamp:m.partnerConfigMinReadTimestamp},currentFlow:m.currentFlow,config:m.config,session:m.JSC$19709_linkingSession,googleScopes:m.googleScopes,callerState:m.callerState}};var XUD=function(m,G){this.config=m;this.galService=G.getService();this.JSC$19722_galRepository=G.JSC$19740_galRepository};
XUD.prototype.getLink=function(m,G){return Y76(this,m,G)};
var Y76=function(m,G,K){return m.JSC$19722_galRepository.getLink({serviceId:G,scopes:void 0,capabilities:void 0,linkName:K}).then(function(W){return{statusCode:1,link:W}}).catch(function(W){return{statusCode:x_s(W.code),
statusMessage:W.message}})};
XUD.prototype.deleteLink=function(m,G){return this.JSC$19722_galRepository.deleteLink(m,this.config.accountLinkingEntryPoint,G).then(function(){return{statusCode:1}}).catch(function(K){return{statusCode:x_s(K.code),
statusMessage:K.message}})};
XUD.prototype.startLinkingSession=function(m){var G=m.serviceId;var K=m.sessionId;return CwW({serviceId:G,sessionId:K!==void 0?K:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:m.loginHint,callerState:m.callerState,consentLanguageKeys:m.consentLanguageKeys,linkName:m.linkName,dynamicUrlParameters:m.dynamicUrlParameters,partnerConfigMinReadTimestamp:m.partnerConfigMinReadTimestamp})};var ec=function(m,G,K,W,L,A,O){this.apiKey=G;this.authUser=K;this.oauthToken=W;this.bucket=L;this.locale=A;this.galSdkEventHandler=O;if(W===void 0){if(G===void 0)throw Error("tk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new apq(m)};
ec.prototype.deleteLink=function(m){var G=m.serviceId;var K=m.sessionId;var W=m.accountLinkingEntryPoint;var L=m.linkName;var A=this,O;return _.Y(function(c){var u=(new kQ).setHeader(A.getHeader(K));var h=r6O({serviceId:G,linkName:L});u=_.ko(u,2,h);O=_.uA(u,3,W);return c.return(A.makeRequest(A.galServiceClient.deleteLink,O,[1,3],[2,4]))})};
var zis=function(m,G){var K=G.serviceId;var W=G.sessionId;var L=G.dynamicUrlParameters;var A=G.redirectState;var O=G.consentLanguageKeys;var c=G.partnerConfigMinReadTimestamp;var u;return _.Y(function(h){var J=(new VV).setHeader(m.getHeader(W,L));J=_.ax(J,2,K);u=_.ax(J,4,A);O!==void 0&&_.ax(u,5,O);c!==void 0&&_.ko(u,6,c);return h.return(m.makeRequest(m.galServiceClient.JSC$19607_finishOAuth,u,[1,3],[2,4]))})};
ec.prototype.getLink=function(m){var G=m.serviceId;var K=m.sessionId;var W=m.scopes;var L=m.capabilities;var A=m.consistencyKey;var O=m.linkName;var c=this,u;return _.Y(function(h){var J=(new ZY).setHeader(c.getHeader(K)),N=r6O({serviceId:G,scopes:W,capabilities:L,linkName:O});u=_.ko(J,2,N);A!==void 0&&(J=NNO(),J=_.ax(J,2,A),_.ko(u,3,J));return h.return(c.makeRequest(c.galServiceClient.getLink,u,[1,3],[2,4]))})};
var vRO=function(m,G){var K=G.serviceId;var W=G.sessionId;var L=G.googleScopes;var A=G.consistencyKey;var O;return _.Y(function(c){var u=(new Cx).setHeader(m.getHeader(W));u=_.ax(u,2,K);var h=Array.from(L.values());u=_.Lp(u,3,h,_.vu);h=NNO();h=_.ax(h,2,A);O=_.ko(u,4,h);return c.return(m.makeRequest(m.galServiceClient.JSC$19607_depositGoogleCredential,O,[1,3],[2,4]))})};
ec.prototype.startLinkingSession=function(m){var G=m.serviceId;var K=m.sessionId;var W=m.scopes;var L=m.capabilities;var A=m.loginHint;var O=m.supportedFlows;var c=m.completionUrl;var u=m.usePingPong;var h=m.twoWayLinking;var J=m.accountLinkingEntryPoint;var N=m.callerState;var D=m.consentLanguageKeys;var t=m.googleScopes;var a=m.dataUsageNoticeConfig;var v=m.linkName;var I=m.dynamicUrlParameters;var Z=m.partnerConfigMinReadTimestamp;var k=this,z,X;return _.Y(function(f){if(L!==void 0&&W!==void 0)throw Error("pk");
var U=(new dt6).setHeader(k.getHeader(K,I));z=_.ax(U,2,G);v!==void 0&&_.ax(z,14,v);if(L!==void 0){U=z;var l=Array.from(L.values());_.Lp(U,5,l,_.vu)}else W!==void 0&&(U=z,l=Array.from(W.values()),_.Lp(U,3,l,_.vu));c!==void 0&&_.ax(z,6,c);u!==void 0&&_.WH(z,15,u);O!==void 0&&(U=z,l=Array.from(O.values()),_.Lp(U,4,l,_.OO));if(h!==void 0){if(h&&(!t||t.size===0))throw Error("uk");_.WH(z,8,h)}J!==void 0&&_.uA(z,9,J);A!==void 0&&_.ax(z,13,A);N!==void 0&&(U=z,l=(new TextEncoder).encode(N),_.AC(U,12,_.j0(l,
!1),_.IF()));D!==void 0&&_.ax(z,16,D);Z!==void 0&&_.ko(z,18,Z);if(a!==void 0&&a.size>0||t!==void 0&&t.size>0)X=new Z$D,t!==void 0&&t.size>0&&(U=X,l=Array.from(t.values()),_.Lp(U,1,l,_.vu)),a!==void 0&&(a.has(0)&&_.MWd(X,2,_.OO,1,_.Y5),a.has(1)&&_.MWd(X,2,_.OO,2,_.Y5)),_.ko(z,17,X);return f.return(k.makeRequest(k.galServiceClient.startLinkingSession,z,[1],[2]))})};
ec.prototype.getMetadata=function(){var m=this,G,K;return _.Y(function(W){G={};m.useFpa?(G["X-Goog-Api-Key"]=m.apiKey,G["X-Goog-AuthUser"]=m.authUser!==void 0?m.authUser.toString():"0",(K=_.ZDG([]))&&(G.Authorization=K)):G.Authorization="Bearer "+m.oauthToken;m.locale&&(G["accept-language"]=m.locale);return W.return(G)})};
ec.prototype.makeRequest=function(m,G,K,W){var L=this,A;return _.Y(function(O){if(O.nextAddress==1)return O.yield(L.getMetadata(),2);A=O.yieldResult;u$z(L,K);return O.return(m.bind(L.galServiceClient)(G,A).finally(function(){u$z(L,W)}))})};
var u$z=function(m,G){m.galSdkEventHandler!==void 0&&G.forEach(function(K){m.galSdkEventHandler.onEvent(K)})};
ec.prototype.getHeader=function(m,G){var K=new H_;m=_.AC(K,2,_.rz(m),0);m=_.uA(m,5,3);G=_.Lp(m,8,G,_.vu);this.bucket!==void 0&&_.ax(G,1,this.bucket);return G};
var r6O=function(m){var G=m.serviceId;var K=m.scopes;var W=m.capabilities;m=m.linkName;if(W!==void 0&&K!==void 0)throw Error("pk");var L=new pFD;G=_.ax(L,1,G);W!==void 0?(K=Array.from(W.values()),_.Lp(G,5,K,_.vu)):K!==void 0&&(K=Array.from(K.values()),_.Lp(G,3,K,_.vu));m!==void 0&&_.ax(G,6,m);return G};var Svu=function(m){this.galService=new ec(m.alsDomain,m.apiKey,m.authUser,m.oauthToken,m.bucket,m.locale,m.galSdkEventHandler);this.JSC$19740_galRepository=new PNW(this.galService)};
Svu.prototype.getService=function(){return this.galService};var hPi=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(hPi,_.pp);var pBq=function(m){var G=new hPi;return _.UV(G,1,m)};
hPi.prototype.setErrorMessage=function(m){return _.LB(this,2,m)};var J6z=[0,_.Cg,_.sA,_.Cg];var fx=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(fx,_.pp);var Npi=[0,[1,2,3],_.I3,[0,_.ooS,Dhq,-1],_.I3,[0,Nv6,-1],_.EA];var DV6=[0,_.bA,1,_.Cg,_.sA,-1,1,_.jZ,_.a3,_.Cg,-1,Npi];var tME=[0,_.Cg,[0,_.jZ,_.a3,[0,_.sA]],_.vo,[0,_.Cg,-1]];var t1=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(t1,_.pp);var FI6=[0,_.sA,_.Cg,-2,_.bA,_.Cg,_.bA,_.Cg,-2,1,_.vo];var Qg6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(Qg6,_.pp);var aj6=[0,_.bA];var oq6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(oq6,_.pp);var nq6=[0,_.Cg,tME,aj6,FI6,DV6];var VkO=_.se(oq6,nq6);var bKu=[0,oY6];var xNP=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(xNP,_.pp);var vqP=[0,[1,3],Q9G,_.Cg,Q9G];var fS6=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(fS6,_.pp);var $V6=[0,_.Cg];var sgO=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(sgO,_.pp);var XbE=function(m){return _.Yi(m,hPi,2,DY)},q7G=function(m){var G=new sgO;
return _.Cp(G,2,DY,m)},DY=[1,
2];var EqE=[0,DY,_.I3,$V6,_.I3,J6z,_.Ho,vqP,1,_.Cg,bKu];var HKD=[0,1,[0,[1,2,3],_.I3,[0],_.I3,[0,vKG],_.I3,[0,oY6]]];var IjD=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(IjD,_.pp);var kj6=function(m){var G=new IjD;return _.Cp(G,3,jgE,m)},jgE=[2,
3];var CuO=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(CuO,_.pp);var VMq=function(m,G){return _.ko(m,2,G)},ZKu=function(m,G){return _.ko(m,8,G)},dVD=function(m,G){return _.ko(m,3,G)};var Pus=[0,_.Cg,EqE,nq6,_.ZS,[0,[5,6,7],[0,_.Cg,-2],[0,_.bA,_.Cg,_.sA],[0,Npi],[0,_.sA,_.Cg,-1,_.Vn,_.Cg],_.I3,[0,[0,_.bA],_.Cg,-1],_.I3,[0,[3,4],_.Cg,-1,_.I3,[0,[0,_.Cg,_.vo]],_.I3,[0,[0,[0,[1,2,3],_.I3,[0],_.I3,[0],_.I3,[0]]]]],_.I3,[0,_.Cg]],_.ZS,-1,[0,jgE,_.Cg,_.I3,$V6,_.I3,J6z,_.Ho,vqP,[0,oY6],HKD]];var y6u=_.se(CuO,Pus),eP6=_.qI(Pus);var fjE=function(){_.Lt.call(this)};
_.n(fjE,_.Lt);fjE.prototype.init=function(){};
new fjE;_.jI();var xVD=_.nY(["data-"]),XBO=_.nY(["aria-"]),S7i=_.nY(["aria-"]),xQ=function(m,G){this.isLatencyMeasurementExperiment=m===void 0?!1:m;this.enableDialogA11yFix=G===void 0?!1:G;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.zLJ(_.Ks.location.href)},dNE=function(m,G){m.onConsentPrimitiveShownCallback=G},RPD=function(m,G){return m.overriddenIframeLoadTimeout?m.overriddenIframeLoadTimeout:G!==void 0?G:5E3},yY6=function(m){if(m.prewarmPromise!==void 0)return m.prewarmPromise;
m.prewarmPromise=new Promise(function(G,K){Xz(m,1);UVs(m,zPW(m,!0),ljE(m));m.iframe?m.prewarmChannel||BpP(m,m.iframe,G):K(Error("vk"))});
m.prewarmPromise.finally(function(){m.prewarmPromise=void 0});
return m.prewarmPromise};
xQ.prototype.showPrimitive=function(){var m=this;if(this.consentPromise!==void 0)return this.consentPromise;var G=Date.now();MMz(this,G);this.consentPromise=new Promise(function(K,W){Xz(m,0,G);var L=m.isDarkTheme();m.isLatencyMeasurementExperiment||m.initialLoadingStrategy===1||m.initialLoadingStrategy===2||(m.loadingBar||(m.loadingBar=llz(getComputedStyle(document.body).direction==="rtl",L),m.loadingBar.style.position="fixed",m.loadingBar.style.zIndex="15000"),document.body.appendChild(m.loadingBar));
UVs(m,zPW(m),ljE(m));m.iframe?m.channel||TpG(m,m.iframe,K,W):(mQD(m),W(Error("vk")))});
this.consentPromise.finally(function(){m.consentPromise=void 0});
return this.consentPromise};
var TpG=function(m,G,K,W){var L,A;_.Y(function(O){switch(O.nextAddress){case 1:Xz(m,3);L=!1;setTimeout(function(){if(!L){mQD(m);i8W(m);GXW(m);var c=pBq(7).setErrorMessage("Timeout connecting to iframe");K(ZKu(VMq(new CuO,q7G(c)),kj6(c)))}},RPD(m,Kj6(m)));
if(!m.prewarmPromise){O.jumpTo(2);break}_.IO(O,3);return O.yield(m.prewarmPromise,5);case 5:_.IG(O,2);break;case 3:_.ye(O),A=pBq(4).setErrorMessage("Error while prewarming."),K(ZKu(VMq(new CuO,q7G(A)),kj6(A)));case 2:m.prewarmChannel&&m.prewarmChannel.send(eP6(dVD(new CuO,m.consentPrimitiveRequest))),m.channel=_.Po({destination:m.win,iframe:G,origin:Wju(m),channelName:"cpw",onEstablished:function(){L=!0;mQD(m);m.isLatencyMeasurementExperiment||(m.JSC$19769_previousBodyOverflow=document.body.style.overflow,
m.JSC$19769_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,m.JSC$19769_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",m.enableDialogA11yFix&&window.addEventListener("blur",m.focusChangeListener));var c=m.iframe;c.style.bottom="0";c.style.position="fixed";c.style.right="0";c.style.border="none";c.style.left="0";c.style.top=
"0";c.style.zIndex="5000";c.style.pointerEvents="";c.style.visibility="";m.initialLoadingStrategy===2||m.initialLoadingStrategy===3?Xz(m,4):Xz(m,6);var u;(u=m.onConsentPrimitiveShownCallback)==null||u.call(m)},
onMessage:function(c){c=y6u(c.data);switch(_.gL(c,1)){case 1:i8W(m);var u=B6E(_.RG(c,_.gS,7));u&&(m.initialLoadingStrategy!==2&&m.initialLoadingStrategy!==3||Xz(m,6,u),Xz(m,5,u));if(u=B6E(_.RG(c,_.gS,6)))Xz(m,7,u),Xz(m,8);var h,J;((h=_.RG(c,sgO,2))==null?void 0:_.Te(h,DY))!==0&&((J=_.RG(c,IjD,8))==null?void 0:_.Te(J,jgE))!==0||W(Error("wk"));K(c);break;case 2:GXW(m)}}}),_.ey(O)}})},BpP=function(m,G,K){m.prewarmChannel=_.Po({destination:m.win,
iframe:G,origin:Wju(m),channelName:"pwcp",onEstablished:function(){Xz(m,2);K()}})},Wju=function(m){var G=_.yG(m.src).toString();
return G&&G.indexOf("://")<0&&G.indexOf("//")!==0?m.origin:_.zLJ(G)},zPW=function(m,G){G=G===void 0?!1:G;
var K,W=new Map([["origin",m.origin],["hl",(K=LjW(m))!=null?K:null]]);G&&W.set("pw","1");G=_.g([["cpr",m.consentPrimitiveRequest.serialize()]]);for(K=G.next();!K.done;K=G.next()){var L=_.g(K.value);K=L.next().value;L=L.next().value;W.set(K,L)}m.isDarkTheme()&&W.set("color_scheme","dark");return _.$y(m.src,W)},mQD=function(m){m.isLatencyMeasurementExperiment||m.loadingBar&&document.body.removeChild(m.loadingBar)};
xQ.prototype.getSrc=function(){var m=_.eh(this.origin),G;var K=(G=_.RG(this.consentPrimitiveRequest,Qg6,3))==null?void 0:_.Z5(G,1);G="consent.google.com";K=K?"/u/"+encodeURIComponent(K.toString()):"";(m==null?0:m.endsWith("youtube.com"))?G="consent.youtube.com":(m=m==null?void 0:m.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(G="consent.google."+((m[1]?"co.":"")+encodeURIComponent(m[2])));return _.PN("https://"+G+"/signedin"+K+"/landing")};
var UVs=function(m,G,K){m.iframe||(m.iframe=document.createElement("iframe"),m.iframe.style.width="100%",m.iframe.style.height="100%",K!==112496729&&(m.iframe.style.colorScheme="auto"),m.isLatencyMeasurementExperiment&&(m.iframe.style.display="none"),_.w5(m.iframe,G),m.iframe.setAttribute("jsname","C5o1O"),AfD(m.iframe),document.body.appendChild(m.iframe))},AfD=function(m){m.style.bottom="-200vh";
m.style.position="fixed";m.style.right="-200vw";m.style.border="";m.style.left="";m.style.top="";m.style.zIndex="";m.style.pointerEvents="none";m.style.visibility="hidden"},i8W=function(m){m.iframe&&(m.isLatencyMeasurementExperiment||(m.JSC$19769_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=m.JSC$19769_previousHtmlOverscroll),m.JSC$19769_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=m.JSC$19769_previousBodyOverscroll),m.JSC$19769_previousBodyOverflow!==
void 0&&(document.body.style.overflow=m.JSC$19769_previousBodyOverflow),m.enableDialogA11yFix&&w36(m,!1)),AfD(m.iframe))};
xQ.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(w36(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var w36=function(m,G){var K,W,L=(K=m.iframe)==null?void 0:(W=K.parentElement)==null?void 0:W.children;if(L)for(K=0;K<L.length;K++)W=L[K],W!==m.iframe&&(G?(W.hasAttribute("aria-hidden")&&_.DO([_.ob(xVD)],W,"data-old-aria-hidden",W.getAttribute("aria-hidden")),_.DO([_.ob(XBO)],W,"aria-hidden","true")):(W.removeAttribute("aria-hidden"),W.hasAttribute("data-old-aria-hidden")&&(_.DO([_.ob(S7i)],W,"aria-hidden",W.getAttribute("data-old-aria-hidden")),W.removeAttribute("data-old-aria-hidden"))))},Xz=function(m,
G,K){var W;
(W=m.latencyCallback)==null||W.call(m,{latencyType:G,timestampEpochMillis:K!=null?K:Date.now()})};var gVE=function(m,G,K){xQ.call(this,G,K===void 0?!1:K);this.consentPrimitiveRequest=m;m=LjW(this);_.w2G(m);this.src=this.getSrc();var W;this.initialLoadingStrategy=(W=_.RG(this.consentPrimitiveRequest,t1,4))==null?void 0:_.gL(W,4)},O86;
_.n(gVE,xQ);var ZVD=function(m){m={request:m,enableDialogA11yFix:!0};O86||(O86=new gVE(m.request,m.isLatencyMeasurementExperiment||_.gL(m.request,1)===2,m.enableDialogA11yFix));return O86},LjW=function(m){var G;
return(G=_.RG(m.consentPrimitiveRequest,t1,4))==null?void 0:_.wL(G,1)},MMz=function(m,G){if(!_.l5(m.consentPrimitiveRequest,fx,5)){var K=m.consentPrimitiveRequest,W=new fx;
_.ko(K,5,W)}var L;if((L=_.RG(m.consentPrimitiveRequest,fx,5))==null||_.js2(L,8)==null){var A;(A=_.RG(m.consentPrimitiveRequest,fx,5))!=null&&_.c$(A,8,G)}},ljE=function(m){var G;
return(G=_.RG(m.consentPrimitiveRequest,fx,5))==null?void 0:_.Z5(G,1)};
gVE.prototype.isDarkTheme=function(){var m;return((m=_.RG(this.consentPrimitiveRequest,t1,4))==null?void 0:_.gL(m,2))===2};
var Kj6=function(m){var G;return((G=_.RG(m.consentPrimitiveRequest,t1,4))==null?void 0:_.Z5(G,5))||void 0},GXW=function(m){m.channel=void 0;
m.prewarmChannel=void 0;m.iframe&&(document.body.contains(m.iframe)&&document.body.removeChild(m.iframe),m.iframe=void 0);O86=void 0},eTE=function(m){return xQ.prototype.showPrimitive.call(m).then(function(G){return _.RG(G,sgO,2)})};for(var Sc={},cfs=(Sc[64]="ma",Sc[73]="ogb",Sc[89]="cr",Sc[21]="test",Sc[0]="unkn",Sc[137]="con",Sc[155]="hl",Sc[78]="yt",Sc[171]="lp",Sc[172]="ap",Sc[177]="amo",Sc[178]="pqe",Sc[74]="gg",Sc[1]="gm",Sc[140]="am",Sc[193]="sc",Sc),Yb5=_.g(Object.keys(cfs)),rfq=Yb5.next();!rfq.done;rfq=Yb5.next());var uii=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(uii,_.pp);var hbi=[0,[2,3,4],_.Cg,JZz,Q9G,_.EA];var p36=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(p36,_.pp);var JfG=_.se(p36,[0,_.VI,_.sA,_.Cg,_.sA,_.Cg,hbi]);var NGO=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(NGO,_.pp);NGO.prototype.getCommand=function(){return _.gL(this,1)};
var DQ6=function(){var m=new NGO;return _.uA(m,1,0)};var tGP=_.qI([0,_.VI,_.sA,[0,_.Cg,_.sA,-1]]);var Fji=new _.iZ("s"),QnE=new _.iZ("t"),aq5=new _.iZ("u"),oV5=new _.iZ("v"),nVz=function(m,G,K){_.dM.call(this,Fji);this.mediaKey=m;this.photoUrl=G;this.photoSource=K};
_.n(nVz,_.dM);var b8G=function(){_.dM.call(this,QnE)};
_.n(b8G,_.dM);var vV5=function(m){m=m===void 0?!1:m;_.dM.call(this,aq5);this.isError=m};
_.n(vV5,_.dM);var $Qq=function(){_.dM.call(this,oV5)};
_.n($Qq,_.dM);var sns=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Iqi=function(m){if(typeof m=="string"){if(m.charAt(0)==".")return qbs(m.substr(1));if(m.charAt(0)=="["){var G=sns.exec(m);m=m.indexOf("=")==-1?void 0:G[3];return EVG(G[1],m)}return H8z(m)}return m},qbs=function(m){return function(G){return G.getAttribute&&_.vW(G,m)}},EVG=function(m,G){return function(K){return G!==void 0?K.getAttribute&&K.getAttribute(m)==G:K.hasAttribute&&K.hasAttribute(m)}},H8z=function(m){m=m.toUpperCase();
return function(G){return(G=G.tagName)&&G.toUpperCase()==m}},jnz=function(){return!0};var Rp=function(m,G){this.JSC$19797_key_=m;this.JSC$19797_value_=G},kXu=function(m){throw Error("xk`"+m.JSC$19797_key_);
},CJD=function(m,G){return new TypeError("yk`"+G+"`"+m.JSC$19797_key_+"`"+m.JSC$19797_value_+"`"+typeof m.JSC$19797_value_)};
Rp.prototype.string=function(m){return arguments.length==0?VGE(this):Z86(this,m)};
var Z86=function(m,G){var K;return(K=dQu(m))!=null?K:G},VGE=function(m){var G=dQu(m);
G===null&&kXu(m);return G},dQu=function(m){var G=m.JSC$19797_value_;
if(G==null)return null;if(typeof G==="string")return G;throw CJD(m,"string");};
Rp.prototype.bool=function(m){if(arguments.length==0){var G=this.optionalBool();G===null&&kXu(this)}else{var K;G=(K=this.optionalBool())!=null?K:m}return G};
Rp.prototype.optionalBool=function(){var m=this.JSC$19797_value_;if(m==null)return null;if(typeof m==="boolean")return m;if(typeof m==="string"){m=m.toLowerCase();if(m==="true"||m==="1")return!0;if(m==="false"||m==="0")return!1}throw CJD(this,"boolean");};
Rp.prototype.number=function(m){if(arguments.length==0){var G=PJ6(this);G===null&&kXu(this)}else G=yfP(this,m);return G};
var yfP=function(m,G){var K;return(K=PJ6(m))!=null?K:G},PJ6=function(m){var G=m.JSC$19797_value_;
if(G==null)return null;if(typeof G==="number")return G;if(typeof G==="string"){var K=Number(G);if(!isNaN(K)&&(K!==0||G.trim().length!==0))return K}throw CJD(m,"number");};
Rp.prototype.toString=function(){return VGE(this)};
Rp.prototype.enum=function(m,G){var K=!0,W=void 0,L;for(L in m){var A=m[L];K&&(K=!1,W=typeof A==="number"?yfP(this,G):Z86(this,G));if(A==W)return W}JSON.stringify(m);return W};
Rp.prototype.array=function(m){if(arguments.length==0){var G=ebz(this);G===null&&kXu(this);return G}G=ebz(this);return G==null?m:G};
var ebz=function(m){var G=m.JSC$19797_value_;if(G==null)return null;Array.isArray(G)||(typeof G!=="string"?G=[G]:(G=G.trim(),G=G==""?[]:G.split(",").map(function(K){return K.trim()})));
return fqO(m,G)},fqO=function(m,G){var K=m.JSC$19797_key_+"[";
return Array.from(G,function(W,L){return new Rp(K+L+"]",W)})};
Rp.prototype.object=function(m){var G=this.JSC$19797_value_;if(G==null)return m===void 0&&kXu(this),m;if(typeof G==="object"&&G.constructor===Object){m={};var K=this.JSC$19797_key_+".",W;for(W in G)m[W]=new Rp(K+W,G[W]);return m}throw CJD(this,"object");};var U_=function(m){this.list_=xQO(m)},xQO=function(m){if(m instanceof U_)m=m.list_;
else if(m[0]instanceof U_){for(var G=new Set,K=0;K<m.length;K++)for(var W=_.g(m[K].list_),L=W.next();!L.done;L=W.next())G.add(L.value);m=G}return[].concat(_.Bz(m))};
_.w=U_.prototype;_.w.each=function(m,G,K){((K===void 0?0:K)?caP:_.Z0)(this.list_,m,G);return this};
_.w.size=function(){return this.list_.length};
_.w.isEmpty=function(){return this.list_.length===0};
_.w.get=function(m){return this.list_[m]||null};
_.w.el=function(){return this.list_[0]||null};
_.w.map=function(m,G){return _.r$(this.list_,m,G)};
_.w.equals=function(m){return this===m||_.BJ(this.list_,m.list_)};
_.w.first=function(){return this.list_.length==0?null:new zZ(this.list_[0])};
_.w.last=function(){return this.list_.length==0?null:new zZ(this.list_[this.list_.length-1])};
_.w.find=function(m){var G=[];this.each(function(K){K=K.querySelectorAll(String(m));for(var W=0;W<K.length;W++)G.push(K[W])});
return new U_(G)};
_.w.parent=function(){var m=[];this.each(function(G){(G=G.parentElement||null)&&!_.Vf(m,G)&&m.push(G)});
return new U_(m)};
_.w.children=function(){var m=[];this.each(function(G){G=_.DS(G);for(var K=0;K<G.length;K++)m.push(G[K])});
return new U_(m)};
_.w.filter=function(m){m=_.Zb(this.list_,Iqi(m));return new U_(m)};
_.w.closest=function(m){var G=[],K=Iqi(m),W=function(L){return _.eU(L)&&K(L)};
this.each(function(L){(L=_.N7(L,W,!0))&&!_.Vf(G,L)&&G.push(L)});
return new U_(G)};
_.w.next=function(m){return X3D(this,_.s$k,m)};
_.w.prev=function(m){return X3D(this,nK6,m)};
var X3D=function(m,G,K){var W=[];var L=K?Iqi(K):jnz;m.each(function(A){(A=G(A))&&L(A)&&W.push(A)});
return new U_(W)};
U_.prototype.setClass=function(m){return this.each(function(G){_.bZ(G,m)})};
var Sb6=function(m,G){return m.each(function(K){_.QO(K,G)})},Rbq=function(m,G){return m.each(function(K){_.Fm(K,G)})};
U_.prototype.toggleClass=function(m,G){return G===!0?Sb6(this,m):G===!1?Rbq(this,m):this.each(function(K){_.vW(K,m)?_.Fm(K,m):_.QO(K,m)})};
U_.prototype.setText=function(m){return this.each(function(G){_.tY(G,m)})};
var UQ6=function(m){m.each(function(G){G.removeAttribute("aria-hidden")})};
U_.prototype.getStyle=function(m){if(this.list_.length>0){var G=this.list_[0],K=G.style[_.Sl(m)];return typeof K!=="undefined"?K:G.style[_.yIK(G,m)]||""}};
U_.prototype.getData=function(m){if(this.list_.length===0)return new Rp(m,null);var G=FyE(this.list_[0],m);return new Rp(m,G)};
U_.prototype.focus=function(m){try{m?this.el().focus(m):this.el().focus()}catch(G){}return this};
U_.prototype.click=function(){var m=_.hI(this.el());if(m.createEvent){var G=m.createEvent("MouseEvents");G.initMouseEvent("click",!0,!0,m.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(G)}else m=m.createEventObject(),m.clientX=0,m.clientY=0,m.screenX=0,m.screenY=0,m.altKey=!1,m.ctrlKey=!1,m.shiftKey=!1,m.button=0,this.el().fireEvent("onclick",m)};
var lT=function(m,G,K,W){function L(c,u,h){var J=u;u&&u.parentNode&&(J=u.cloneNode(!0));c(J,h)}
W=W===void 0?!1:W;if(m.list_.length==1){var A=m.list_[0],O=function(c){return G(c,A)};
K instanceof U_?K.each(O,void 0,W):Array.isArray(K)?(W?caP:_.Z0)(K,O):O(K);return m}return m.each(function(c){K instanceof U_?K.each(function(u){L(G,u,c)}):Array.isArray(K)?_.Z0(K,function(u){L(G,u,c)}):L(G,K,c)})};
_.w=U_.prototype;_.w.append=function(m){return lT(this,function(G,K){G&&K.appendChild(G)},m)};
_.w.appendTo=function(m){(new U_([m])).append(this);return this};
_.w.remove=function(){return lT(this,function(m,G){_.mX(G)},null)};
_.w.empty=function(){return lT(this,function(m,G){_.pV(G)},null)};
_.w.after=function(m,G){return lT(this,function(K,W){K&&_.NN(K,W)},m,!(G===void 0||G))};
_.w.before=function(m){return lT(this,function(G,K){G&&_.JY(G,K)},m)};
_.w.replaceWith=function(m){return lT(this,function(G,K){G&&_.bBS(G,K)},m)};
_.w.toggle=function(m){return this.each(function(G){_.VN(G,m)})};
_.w.show=function(){return this.toggle(!0)};
_.w.hide=function(){return this.toggle(!1)};
_.w.trigger=function(m,G,K,W){return zbz(this,m,G,K,W)};
var zbz=function(m,G,K,W,L){return m.each(function(A){_.trM(_.hI(A)).triggerWizEventInternal(A,G,K,W,L)})},zZ=function(m,G){m instanceof U_&&(G=m.list_,m=null);
this.list_=xQO(m!=null?[m]:G)};
_.kJ(zZ,U_);_.w=zZ.prototype;_.w.children=function(){return new U_(Array.prototype.slice.call(_.DS(this.list_[0])))};
_.w.each=function(m,G){m.call(G,this.list_[0],0);return this};
_.w.size=function(){return 1};
_.w.el=function(){return this.list_[0]};
_.w.first=function(){return this};var B_=function(m,G){G=G===void 0?window:G;this.hostId=m;this.win=G;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$19808_previousHtmlOverscroll=this.JSC$19808_previousBodyOverscroll=this.JSC$19808_previousBodyOverflow="";this.eventTarget=new _.ai;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},MGD=function(m){var G=
lqP(lqP(lqP(new BG6(78),"po"),"hppp"),"hhc");
G.authUser=Number(_.E8("SESSION_INDEX","0"));G.colorScheme=m;return G};
B_.prototype.getOrigin=function(){return this.origin?this.origin:_.jm(_.Ia(_.HW(new _.aQ,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
B_.prototype.getTargetOrigin=function(){return _.jm(_.Ia(_.HW(new _.aQ,this.scheme),this.domain),this.port)};
B_.prototype.preloadIframe=function(m){var G=this;if(this.iframeLoadPromise===void 0){var K=document.createElement("iframe");this.iframe=K;WoE(K,m);this.iframeLoadPromise=new Promise(function(W,L){var A=!1,O=function(c){c.stopPropagation();K.removeEventListener("error",O);K.removeEventListener("securitypolicyviolation",O);L(Error("zk",{cause:c}))};
K.addEventListener("error",O);K.addEventListener("securitypolicyviolation",O);setTimeout(function(){A||L(Error("Ak"))},3E4);
TGE(G,K,function(){A=!0;K.removeEventListener("error",O);K.removeEventListener("securitypolicyviolation",O);W()})});
mmW(this);m=this.getTargetOrigin().toString();K.setAttribute("allow","camera "+m+"; display-capture "+m);this.parentElement.appendChild(K)}return this.iframeLoadPromise};
var Kh5=function(m,G){var K,W;return _.Y(function(L){if(L.nextAddress==1)return K=llz(getComputedStyle(m.parentElement).direction==="rtl"),m.parentElement.appendChild(K),document.activeElement instanceof HTMLElement&&(m.elementToFocusAfterClose=document.activeElement),_.IO(L,2),L.yield(m.preloadIframe(G),4);if(L.nextAddress!=2){m.parentElement.removeChild(K);m.JSC$19808_previousBodyOverflow=m.parentElement.style.overflow;m.JSC$19808_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
m.JSC$19808_previousBodyOverscroll=m.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";m.parentElement.style.overscrollBehavior="contain";m.parentElement.style.overflow="hidden";var A=m.iframe;A.style.bottom="0";A.style.border="none";A.style.height="100%";A.style.left="0";A.style.position=m.iframePosition;A.style.right="0";A.style.top="0";A.style.width="100%";A.style.zIndex="2202";A.setAttribute("aria-hidden","false");A.setAttribute("aria-modal","true");
m.opened=!0;iaz(m);return _.IG(L,0)}W=_.ye(L);m.parentElement.removeChild(K);irW(m.isDarkTheme());Gt6(m,!1);throw Error("Bk",{cause:W});})},Gt6=function(m,G){G=G===void 0?!0:G;
m.iframe!==void 0&&(Whu(m),document.documentElement.style.overscrollBehavior=m.JSC$19808_previousHtmlOverscroll,m.parentElement.style.overscrollBehavior=m.JSC$19808_previousBodyOverscroll,m.parentElement.style.overflow=m.JSC$19808_previousBodyOverflow,m.elementToFocusAfterClose!==void 0&&(m.elementToFocusAfterClose.focus(),m.elementToFocusAfterClose=void 0),G?mmW(m):(m.parentElement.removeChild(m.iframe),m.iframe=void 0,m.iframeLoadPromise=void 0,m.mainChannel=void 0),m.opened=!1)},Whu=function(m){m.backgroundElementsAriaHiddenIsNull&&
(UQ6(m.backgroundElementsAriaHiddenIsNull),m.backgroundElementsAriaHiddenIsNull=void 0);
m.backgroundElementsAriaHiddenIsFalse&&(m.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","false")}),m.backgroundElementsAriaHiddenIsFalse=void 0);
m.backgroundElementsWithoutInert&&(m.backgroundElementsWithoutInert.each(function(G){G.removeAttribute("inert")}),m.backgroundElementsWithoutInert=void 0)},iaz=function(m){m.backgroundElementsAriaHiddenIsNull=(new zZ(m.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")===null&&G!==m.iframe});
m.backgroundElementsAriaHiddenIsNull.each(function(G){G.setAttribute("aria-hidden","true")});
m.backgroundElementsAriaHiddenIsFalse=(new zZ(m.iframe.parentElement)).children().filter(function(G){return G.getAttribute("aria-hidden")==="false"&&G!==m.iframe});
m.backgroundElementsAriaHiddenIsFalse.each(function(G){G.setAttribute("aria-hidden","true")});
m.backgroundElementsWithoutInert=(new zZ(m.iframe.parentElement)).children().filter(function(G){return!G.hasAttribute("inert")&&G!==m.iframe});
m.backgroundElementsWithoutInert.each(function(G){G.setAttribute("inert","true")})},mmW=function(m){m=m.iframe;
m.style.bottom="-1000px";m.style.position="fixed";m.style.right="-1000px";m.style.border="";m.style.height="";m.style.left="";m.style.top="";m.style.width="";m.style.zIndex="";m.setAttribute("aria-hidden","true");m.setAttribute("aria-modal","false")};
B_.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var BG6=function(m,G){B_.call(this,cfs[m],G);this.options=[];this.style=""};
_.n(BG6,B_);var LhP=function(m){m.style="youtube";return m},A4q=function(m,G){m.eventTarget.listen(aq5,G);
return m},wqq=function(m,G){m.eventTarget.listen(Fji,G);
return m},lqP=function(m,G){m.options.push(G);
return m},gPq=function(m){var G=[m.getOrigin()];
m.ancestorOrigins&&G.push.apply(G,_.Bz(m.ancestorOrigins));var K=new _.aQ(m.win.location.href),W=m.startUrl?m.startUrl:m.options.includes("po")?"profile-picture/art":"profile-picture";G=Y5u(_.kZ(m.getTargetOrigin(),W),"origin",G);m.startUrl&&_.Ct(G,"startPath",m.startUrl);m.authUser>0&&_.Ct(G,"authuser",m.authUser);m.pageId!==void 0&&_.Ct(G,"pageId",m.pageId);_.Ct(G,"hostId",m.hostId);m.jsMode!==void 0&&_.Ct(G,"jsmode",m.jsMode);m.rectangleRatio!==void 0&&_.Ct(G,"rectangleRatio",m.rectangleRatio);
m.options.length>0&&_.Ct(G,"opts",m.options.join(","));try{for(var L=_.g(["utm_source","utm_medium","utm_campaign","utm_content"]),A=L.next();!A.done;A=L.next()){var O=A.value;_.kl(K,O)&&_.Ct(G,O,_.kl(K,O))}var c,u=(c=m.hl)!=null?c:_.kl(K,"hl");u!==void 0&&_.Ct(G,"hl",u)}catch(h){if(!(h instanceof URIError))throw h;}m.colorScheme&&_.Ct(G,"theme",m.colorScheme);m.style&&_.Ct(G,"style",m.style);return G},OaP=function(m,G){m.mainChannel=_.Po({destination:m.win,
iframe:G,origin:m.getTargetOrigin().toString(),channelName:"ow",onMessage:function(K){K=JfG(K.data);if(G===m.iframe)switch(_.gL(K,1)){case 1:m.eventTarget.dispatchEvent(new vV5);Gt6(m);break;case 2:m.eventTarget.dispatchEvent(new nVz(_.wL(K,4),_.wL(K,2),_.gL(K,5),_.RG(K,uii,6)));break;case 0:var W;m.eventTarget.dispatchEvent(new b8G(_.wL(K,2),(W=_.gL(K,3))!=null?W:0));break;case 3:m.eventTarget.dispatchEvent(new vV5(!0));Gt6(m,!1);break;case 4:m.eventTarget.dispatchEvent(new $Qq)}}})},TGE=function(m,
G,K){_.Po({destination:m.win,
iframe:G,origin:_.jm(_.Ia(_.HW(new _.aQ,m.scheme),m.domain),m.port).toString(),channelName:"owi",onMessage:function(W){G===m.iframe&&(K!==void 0&&K(),OaP(m,G),m.opened&&m.mainChannel.send(tGP(DQ6())),W.reply(),TGE(m,G))}})};
BG6.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?B_.prototype.preloadIframe.call(this,gPq(this).toString()):this.iframeLoadPromise};
BG6.prototype.openPicker=function(m){var G=this;return _.Y(function(K){if(K.nextAddress==1)return G.startUrl=m?m:G.options.includes("po")?"profile-picture/art":"profile-picture",K.yield(Kh5(G,gPq(G).toString()),2);if(G.mainChannel){var W=G.mainChannel,L=W.send;var A=DQ6();A=_.LB(A,2,G.startUrl);L.call(W,tGP(A))}_.ey(K)})};var c4W=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(c4W,_.pp);_.w=c4W.prototype;_.w.getSize=function(){return $Q(this,1)};
_.w.setSize=function(m){return _.rL(this,1,m)};
_.w.getWidth=function(){return $Q(this,12)};
_.w.getHeight=function(){return $Q(this,13)};
_.w.setCenterCrop=function(m){return _.x2(this,20,m)};
_.w.getHtml=function(){return _.Wo(this,4)};
_.w.getToken=function(){return _.Bt(this,24)};
_.w.setToken=function(m){return _.LB(this,24,m)};
_.w.getBackgroundColor=function(){return $Q(this,87)};
_.w.hasBackgroundColor=function(){return _.uq(_.ze(this,87))!=null};
_.w.getStoryboardLevel=function(){return $Q(this,109)};rf.prototype.set=function(m,G){YH6(this,m,G,!1)};
rf.prototype.add=function(m,G){YH6(this,m,G,!0)};
var YH6=function(m,G,K,W){for(var L=0;L<G.length;L++){var A=G.charAt(L);m.childNodes_[A]||(m.childNodes_[A]=new rf);m=m.childNodes_[A]}if(W&&m.JSC$19816_value_!==void 0)throw Error("Ck`"+G);m.JSC$19816_value_=K},r45=function(m,G){for(var K=0;K<G.length;K++)if(m=m.childNodes_[G.charAt(K)],!m)return;
return m};
rf.prototype.get=function(m){return(m=r45(this,m))?m.JSC$19816_value_:void 0};
rf.prototype.getValues=function(){var m=[];ues(this,m);return m};
var ues=function(m,G){m.JSC$19816_value_!==void 0&&G.push(m.JSC$19816_value_);for(var K in m.childNodes_)ues(m.childNodes_[K],G)};
rf.prototype.getKeys=function(m){var G=[];if(m){for(var K=this,W=0;W<m.length;W++){var L=m.charAt(W);if(!K.childNodes_[L])return[];K=K.childNodes_[L]}hoG(K,m,G)}else hoG(this,"",G);return G};
var hoG=function(m,G,K){m.JSC$19816_value_!==void 0&&K.push(G);for(var W in m.childNodes_)hoG(m.childNodes_[W],G+W,K)};
_.w=rf.prototype;_.w.containsKey=function(m){return this.get(m)!==void 0};
_.w.containsValue=function(m){if(this.JSC$19816_value_===m)return!0;for(var G in this.childNodes_)if(this.childNodes_[G].containsValue(m))return!0;return!1};
_.w.clear=function(){this.childNodes_={};this.JSC$19816_value_=void 0};
_.w.remove=function(m){for(var G=this,K=[],W=0;W<m.length;W++){var L=m.charAt(W);if(!G.childNodes_[L])throw Error("Dk`"+m);K.push([G,L]);G=G.childNodes_[L]}m=G.JSC$19816_value_;for(delete G.JSC$19816_value_;K.length>0;)if(W=K.pop(),G=W[0],W=W[1],G.childNodes_[W].isEmpty())delete G.childNodes_[W];else break;return m};
_.w.clone=function(){return new rf(this)};
_.w.getCount=function(){return $hE(this.getValues())};
_.w.isEmpty=function(){return this.JSC$19816_value_===void 0&&_.Y2.isEmpty(this.childNodes_)};var Orq=function(){if(!pqP){var m=pqP=new rf,G;for(G in J4z)m.add(G,J4z[G])}},pqP,MX=function(m,G){this.types=m;
this.setters=G},J4z={a:new MX([3,
0],[function(m,G){_.x2(m,21,G)},
function(m,G){_.rL(m,56,G)}]),
al:new MX([3],[function(m,G){_.x2(m,74,G)}]),
b:new MX([3,0],[function(m,G){_.x2(m,23,G)},
function(m,G){_.rL(m,38,G)}]),
ba:new MX([0],[function(m,G){_.rL(m,85,G)}]),
bc:new MX([0],[function(m,G){_.rL(m,87,G)}]),
br:new MX([0],[function(m,G){_.rL(m,86,G)}]),
c:new MX([3,0],[function(m,G){_.x2(m,2,G)},
function(m,G){_.rL(m,39,G)}]),
cc:new MX([3],[function(m,G){_.x2(m,51,G)}]),
ci:new MX([3],[function(m,G){_.x2(m,32,G)}]),
ckm:new MX([3],[function(m,G){_.x2(m,104,G)}]),
cp:new MX([0],[function(m,G){_.rL(m,92,G)}]),
cr:new MX([3],[function(m,G){_.x2(m,108,G)}]),
cv:new MX([0],[function(m,G){_.rL(m,94,G)}]),
d:new MX([3],[function(m,G){_.x2(m,3,G)}]),
dc:new MX([5],[function(m,G){_.LB(m,99,G)}]),
df:new MX([3],[function(m,G){_.x2(m,80,G)}]),
dv:new MX([3],[function(m,G){_.x2(m,90,G)}]),
e:new MX([0],[function(m,G){_.rL(m,15,G)}]),
em:new MX([0],[function(m,G){_.rL(m,107,G)}]),
f:new MX([4],[function(m,G){_.LB(m,16,G)}]),
fg:new MX([3],[function(m,G){_.x2(m,34,G)}]),
fh:new MX([3],[function(m,G){_.x2(m,30,G)}]),
fm:new MX([3],[function(m,G){_.x2(m,84,G)}]),
fo:new MX([2],[function(m,G){_.zd(m,79,_.KP(G))}]),
ft:new MX([3],[function(m,G){_.x2(m,50,G)}]),
fv:new MX([3],[function(m,G){_.x2(m,31,G)}]),
g:new MX([3],[function(m,G){_.x2(m,14,G)}]),
gce:new MX([4],[function(m,G){_.LB(m,112,G)}]),
gd:new MX([3],[function(m,G){_.x2(m,83,G)}]),
gm:new MX([3],[function(m,G){_.x2(m,105,G)}]),
h:new MX([3,0],[function(m,G){_.x2(m,4,G)},
function(m,G){_.rL(m,13,G)}]),
i:new MX([3],[function(m,G){_.x2(m,22,G)}]),
ic:new MX([0],[function(m,G){_.rL(m,71,G)}]),
id:new MX([3],[function(m,G){_.x2(m,70,G)}]),
il:new MX([3],[function(m,G){_.x2(m,96,G)}]),
ip:new MX([3],[function(m,G){_.x2(m,54,G)}]),
iv:new MX([0],[function(m,G){_.c$(m,75,G)}]),
j:new MX([1],[function(m,G){G=G==null?G:hmD(G);_.zd(m,29,G)}]),
k:new MX([3,0],[function(m,G){_.x2(m,17,G)},
function(m,G){_.rL(m,42,G)}]),
l:new MX([0],[function(m,G){_.rL(m,44,G)}]),
lf:new MX([3],[function(m,G){_.x2(m,65,G)}]),
lo:new MX([3],[function(m,G){_.x2(m,97,G)}]),
m:new MX([0],[function(m,G){_.rL(m,63,G)}]),
md:new MX([3],[function(m,G){_.x2(m,91,G)}]),
mm:new MX([4],[function(m,G){_.LB(m,81,G)}]),
mo:new MX([3],[function(m,G){_.x2(m,73,G)}]),
mp:new MX([0],[function(m,G){_.rL(m,115,G)}]),
mv:new MX([3],[function(m,G){_.x2(m,66,G)}]),
n:new MX([3],[function(m,G){m.setCenterCrop(G)}]),
nc:new MX([3],[function(m,G){_.x2(m,55,G)}]),
nd:new MX([3],[function(m,G){_.x2(m,53,G)}]),
ng:new MX([3],[function(m,G){_.x2(m,95,G)}]),
ngm:new MX([3],[function(m,G){_.x2(m,106,G)}]),
no:new MX([3],[function(m,G){_.x2(m,37,G)}]),
ns:new MX([3],[function(m,G){_.x2(m,40,G)}]),
nt0:new MX([4],[function(m,G){_.LB(m,36,G)}]),
ntm:new MX([3],[function(m,G){_.x2(m,114,G)}]),
nu:new MX([3],[function(m,G){_.x2(m,46,G)}]),
nw:new MX([3],[function(m,G){_.x2(m,48,G)}]),
o:new MX([1,3],[function(m,G){G=G==null?G:hmD(G);_.zd(m,7,G)},
function(m,G){_.x2(m,27,G)}]),
p:new MX([3,0],[function(m,G){_.x2(m,19,G)},
function(m,G){_.rL(m,43,G)}]),
pa:new MX([3],[function(m,G){_.x2(m,61,G)}]),
pc:new MX([0],[function(m,G){_.rL(m,88,G)}]),
pd:new MX([3],[function(m,G){_.x2(m,60,G)}]),
pf:new MX([3],[function(m,G){_.x2(m,67,G)}]),
pg:new MX([3],[function(m,G){_.x2(m,72,G)}]),
pi:new MX([2],[function(m,G){_.zd(m,76,_.KP(G))}]),
pp:new MX([3],[function(m,G){_.x2(m,52,G)}]),
pt:new MX([4],[function(m,G){_.LB(m,111,G)}]),
q:new MX([4],[function(m,G){_.LB(m,28,G)}]),
r:new MX([3,0],[function(m,G){_.x2(m,6,G)},
function(m,G){_.rL(m,26,G)}]),
ra:new MX([3],[function(m,G){_.x2(m,103,G)}]),
rf:new MX([3],[function(m,G){_.x2(m,100,G)}]),
rg:new MX([3],[function(m,G){_.x2(m,59,G)}]),
rh:new MX([3],[function(m,G){_.x2(m,49,G)}]),
rj:new MX([3],[function(m,G){_.x2(m,57,G)}]),
ro:new MX([2],[function(m,G){_.zd(m,78,_.KP(G))}]),
rp:new MX([3],[function(m,G){_.x2(m,58,G)}]),
rw:new MX([3],[function(m,G){_.x2(m,35,G)}]),
rwa:new MX([3],[function(m,G){_.x2(m,64,G)}]),
rwu:new MX([3],[function(m,G){_.x2(m,41,G)}]),
s:new MX([3,0],[function(m,G){_.x2(m,33,G)},
function(m,G){m.setSize(G)}]),
sb:new MX([0],[function(m,G){_.rL(m,110,G)}]),
sc:new MX([0],[function(m,G){_.rL(m,89,G)}]),
sg:new MX([3],[function(m,G){_.x2(m,82,G)}]),
sl:new MX([0],[function(m,G){_.rL(m,109,G)}]),
sm:new MX([3],[function(m,G){_.x2(m,93,G)}]),
t:new MX([4],[function(m,G){m.setToken(G)}]),
tm:new MX([3],[function(m,G){_.x2(m,113,G)}]),
u:new MX([3],[function(m,G){_.x2(m,18,G)}]),
ut:new MX([3],[function(m,G){_.x2(m,45,G)}]),
v:new MX([0],[function(m,G){_.rL(m,62,G)}]),
vb:new MX([0],[function(m,G){_.c$(m,68,G)}]),
vf:new MX([4],[function(m,G){_.LB(m,102,G)}]),
vl:new MX([0],[function(m,G){_.c$(m,69,G)}]),
vm:new MX([3],[function(m,G){_.x2(m,98,G)}]),
w:new MX([0],[function(m,G){_.rL(m,12,G)}]),
x:new MX([0],[function(m,G){_.rL(m,9,G)}]),
y:new MX([0],[function(m,G){_.rL(m,10,G)}]),
ya:new MX([2],[function(m,G){_.zd(m,77,_.KP(G))}]),
z:new MX([0],[function(m,G){_.rL(m,11,G)}])};
Orq.prototype.parse=function(m){var G=new c4W,K=new c4W;if(m=="")m=!0;else{m=m.split("-");for(var W=!0,L=0;L<m.length;L++){var A=m[L];if(A.length==0)W=!1;else{var O=A,c=!1;var u=O;var h=O.charAt(0);h!=h.toLowerCase()&&(c=!0,u=O.charAt(0).toLowerCase()+O.substring(1));var J=pqP;for(h=1;h<=u.length;++h){var N=J,D=u.substring(0,h);if(D.length==0?N.isEmpty():!r45(N,D))break}u=h==1?null:(u=J.get(u.substring(0,h-1)))?{option:O.substring(0,h-1),value:O.substring(h-1),signed:c,attributes:u}:null;if(u){O=
[];c=[];h=!1;for(J=0;J<u.attributes.types.length;J++){N=u.attributes.types[J];var t=u.value;D=L;if(u.signed&&N==1)for(var a=t.length;a<12&&D<m.length-1;)t+="-"+m[D+1],a=t.length,++D;else if(N==2)for(;D<m.length-1&&m[D+1].match(/^[\d\.]/);)t+="-"+m[D+1],++D;a=u.attributes.setters[J];t=NR6(this,N)(u.option,t,G,K,a);if(t===null){h=!0;L=D;break}else O.push(N),c.push(t)}if(!h)for(u=0;u<c.length;u++)J=O[u],t=c[u],Dms(this,J)(A,t);W=W&&h}else W=!1}}m=W}return new tdi(G,K,m)};
var Fh6=function(m,G,K,W,L,A){L(K,G);m=m.charAt(0);A=A(m==m.toUpperCase());L(W,A)};
_.w=Orq.prototype;_.w.parseAndSetIntOption_=function(m,G,K,W,L){if(G=="")return 0;isFinite(G)&&(G=String(G));G=typeof G==="string"?/^\s*-?0x/i.test(G)?parseInt(G,16):parseInt(G,10):NaN;if(isNaN(G))return 1;Fh6(m,G,K,W,L,Number);return null};
_.w.logIntParseError_=function(){};
_.w.parseAndSetFloatOption_=function(m,G,K,W,L){if(G=="")return 0;var A=Number(G);G=A==0&&_.Od(G)?NaN:A;if(isNaN(G))return 1;Fh6(m,G,K,W,L,Number);return null};
_.w.logFloatParseError_=function(){};
_.w.parseAndSetBoolOption_=function(m,G,K,W,L){if(G!="")return 2;Fh6(m,!0,K,W,L,Boolean);return null};
_.w.logBoolParseError_=function(){};
_.w.parseAndSetStringOption_=function(m,G,K,W,L){if(G=="")return 0;Fh6(m,G,K,W,L,function(A){return A?"1":""});
return null};
_.w.logStringParseError_=function(){};
_.w.parseAndSetUint64Base64Option_=function(m,G,K,W,L){if(G=="")return 0;Fh6(m,G,K,W,L,function(A){return A?1:0});
return null};
var NR6=function(m,G){switch(G){case 0:return(0,_.AO)(m.parseAndSetIntOption_,m);case 2:return(0,_.AO)(m.parseAndSetFloatOption_,m);case 3:return(0,_.AO)(m.parseAndSetBoolOption_,m);case 4:return(0,_.AO)(m.parseAndSetStringOption_,m);case 1:return(0,_.AO)(m.parseAndSetUint64Base64Option_,m);default:return function(){}}},Dms=function(m,G){switch(G){case 0:return(0,_.AO)(m.logIntParseError_,m);
case 2:return(0,_.AO)(m.logFloatParseError_,m);case 3:return(0,_.AO)(m.logBoolParseError_,m);case 4:case 1:return(0,_.AO)(m.logStringParseError_,m);default:return function(){}}},tdi=function(m,G,K){this.valueProto_=m;
this.signatureFlagProto_=G;this.JSC$19828_valid_=K};
tdi.prototype.isValid=function(){return this.JSC$19828_valid_};var LoD=function(m){this.JSC$19829_parser_=null;this.JSC$19829_components_=[];this.JSC$19829_parsedOptions_=null;QEO(this,m)},ad6=function(m){m.JSC$19829_parser_==null&&(m.JSC$19829_parser_=new Orq);
return m.JSC$19829_parser_},QEO=function(m,G){m.JSC$19829_parsedOptions_=G?typeof G==="string"?ad6(m).parse(G):G:ad6(m).parse("")},TZ=function(m,G){return m==G?!1:!0};
_.w=LoD.prototype;_.w.JSC$19831_setCrop=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,_.Wo(K,2),_.Wo(G.signatureFlagProto_,2))&&_.x2(K,2,m);return this};
_.w.JSC$19831_setCircleCrop=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,v_(K,51),v_(G.signatureFlagProto_,51))&&_.x2(K,51,m);return this};
_.w.JSC$19831_setImageCrop=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,v_(K,32),v_(G.signatureFlagProto_,32))&&_.x2(K,32,m);return this};
_.w.JSC$19831_setHeight=function(m){var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,K.getHeight(),G.signatureFlagProto_.getHeight())&&_.rL(K,13,m);return this};
_.w.setCenterCrop=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,_.Wo(K,20),_.Wo(G.signatureFlagProto_,20))&&K.setCenterCrop(m);return this};
_.w.JSC$19831_setSmartCrop=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,_.Wo(K,19),_.Wo(G.signatureFlagProto_,19))&&_.x2(K,19,m);return this};
_.w.JSC$19831_setPad=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,v_(K,60),v_(G.signatureFlagProto_,60))&&_.x2(K,60,m);return this};
_.w.JSC$19831_setSmartCropUseFace=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,_.Wo(K,67),_.Wo(G.signatureFlagProto_,67))&&_.x2(K,67,m);return this};
_.w.JSC$19831_setSmartCropNoClip=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,_.Wo(K,52),_.Wo(G.signatureFlagProto_,52))&&_.x2(K,52,m);return this};
_.w.setSize=function(m){var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,K.getSize(),G.signatureFlagProto_.getSize())&&K.setSize(m);return this};
_.w.setToken=function(m){m=m||void 0;var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,K.getToken(),G.signatureFlagProto_.getToken())&&K.setToken(m);return this};
_.w.JSC$19831_setWidth=function(m){var G=this.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(m,K.getWidth(),G.signatureFlagProto_.getWidth())&&_.rL(K,12,m);return this};
_.w.clearOptions=function(){QEO(this,"");return this};
_.w.build=function(){this.JSC$19829_components_.length=0;var m=this.JSC$19829_parsedOptions_,G=m.valueProto_;m=m.signatureFlagProto_;m0(this,"s",G.getSize(),m.getSize());m0(this,"w",G.getWidth(),m.getWidth());iR(this,"c",_.Wo(G,2),_.Wo(m,2));iR(this,"d",_.Wo(G,3),_.Wo(m,3));m0(this,"h",G.getHeight(),m.getHeight());iR(this,"s",v_(G,33),v_(m,33));iR(this,"h",G.getHtml(),m.getHtml());iR(this,"p",_.Wo(G,19),_.Wo(m,19));iR(this,"pp",_.Wo(G,52),_.Wo(m,52));iR(this,"pf",_.Wo(G,67),_.Wo(m,67));iR(this,"n",
_.Wo(G,20),_.Wo(m,20));m0(this,"r",$Q(G,26),$Q(m,26));iR(this,"r",_.Wo(G,6),_.Wo(m,6));iR(this,"o",v_(G,27),v_(m,27));var K=_.Kg(G,7,_.SI);GO(this,"o",K,_.Kg(m,7,_.SI));K=_.Kg(G,29,_.SI);GO(this,"j",K,_.Kg(m,29,_.SI));m0(this,"x",$Q(G,9),$Q(m,9));m0(this,"y",$Q(G,10),$Q(m,10));m0(this,"z",$Q(G,11),$Q(m,11));iR(this,"g",_.Wo(G,14),_.Wo(m,14));m0(this,"e",$Q(G,15),$Q(m,15));GO(this,"f",_.Bt(G,16),_.Bt(m,16));iR(this,"k",v_(G,17),v_(m,17));iR(this,"u",v_(G,18),!0);iR(this,"ut",v_(G,45),!0);iR(this,"i",
v_(G,22),!0);iR(this,"a",v_(G,21),v_(m,21));iR(this,"b",_.Wo(G,23),_.Wo(m,23));m0(this,"b",$Q(G,38),$Q(m,38));m0(this,"c",$Q(G,39),$Q(m,39),16,8);GO(this,"q",_.Bt(G,28),_.Bt(m,28));iR(this,"fh",v_(G,30),v_(m,30));iR(this,"fv",v_(G,31),v_(m,31));iR(this,"fg",_.Wo(G,34),_.Wo(m,34));iR(this,"ci",v_(G,32),v_(m,32));GO(this,"t",G.getToken(),m.getToken());GO(this,"nt0",_.Bt(G,36),_.Bt(m,36));iR(this,"rw",_.Wo(G,35),_.Wo(m,35));iR(this,"rwu",_.Wo(G,41),_.Wo(m,41));iR(this,"rwa",_.Wo(G,64),_.Wo(m,64));iR(this,
"nw",_.Wo(G,48),_.Wo(m,48));iR(this,"rh",_.Wo(G,49),_.Wo(m,49));iR(this,"no",_.Wo(G,37),_.Wo(m,37));iR(this,"ns",v_(G,40),v_(m,40));m0(this,"k",$Q(G,42),$Q(m,42));m0(this,"p",$Q(G,43),$Q(m,43));m0(this,"l",$Q(G,44),$Q(m,44));m0(this,"v",$Q(G,62),$Q(m,62));iR(this,"nu",v_(G,46),v_(m,46));iR(this,"ft",v_(G,50),v_(m,50));iR(this,"cc",v_(G,51),v_(m,51));iR(this,"nd",v_(G,53),v_(m,53));iR(this,"ip",v_(G,54),v_(m,54));iR(this,"nc",v_(G,55),v_(m,55));m0(this,"a",$Q(G,56),$Q(m,56));iR(this,"rj",v_(G,57),
v_(m,57));iR(this,"rp",v_(G,58),v_(m,58));iR(this,"rg",v_(G,59),v_(m,59));iR(this,"pd",v_(G,60),v_(m,60));iR(this,"pa",v_(G,61),v_(m,61));m0(this,"m",$Q(G,63),$Q(m,63));m0(this,"vb",_.GB(G,68,_.SI),_.GB(m,68,_.SI));m0(this,"vl",_.GB(G,69,_.SI),_.GB(m,69,_.SI));iR(this,"lf",v_(G,65),v_(m,65));iR(this,"mv",v_(G,66),v_(m,66));iR(this,"id",v_(G,70),v_(m,70));m0(this,"ic",$Q(G,71),!0);iR(this,"pg",_.Wo(G,72),_.Wo(m,72));iR(this,"mo",v_(G,73),v_(m,73));iR(this,"al",v_(G,74),v_(m,74));m0(this,"iv",_.GB(G,
75,_.SI),_.GB(m,75,_.SI));m0(this,"pi",s_(G,76),s_(m,76));m0(this,"ya",s_(G,77),s_(m,77));m0(this,"ro",s_(G,78),s_(m,78));m0(this,"fo",s_(G,79),s_(m,79));iR(this,"df",v_(G,80),v_(m,80));GO(this,"mm",_.Bt(G,81),_.Bt(m,81));iR(this,"sg",v_(G,82),v_(m,82));iR(this,"gd",v_(G,83),v_(m,83));iR(this,"fm",v_(G,84),v_(m,84));m0(this,"ba",$Q(G,85),$Q(m,85));m0(this,"br",$Q(G,86),$Q(m,86));m0(this,"bc",G.getBackgroundColor(),m.getBackgroundColor(),16,8);m0(this,"pc",$Q(G,88),$Q(m,88),16,8);m0(this,"sc",$Q(G,
89),$Q(m,89),16,8);iR(this,"dv",v_(G,90),v_(m,90));iR(this,"md",v_(G,91),v_(m,91));m0(this,"cp",$Q(G,92),$Q(m,92));iR(this,"sm",v_(G,93),v_(m,93));m0(this,"cv",$Q(G,94),$Q(m,94));iR(this,"ng",v_(G,95),v_(m,95));iR(this,"il",v_(G,96),v_(m,96));iR(this,"lo",v_(G,97),v_(m,97));iR(this,"vm",v_(G,98),v_(m,98));GO(this,"dc",_.Bt(G,99),_.Bt(m,99));iR(this,"rf",v_(G,100),v_(m,100));GO(this,"vf",_.Bt(G,102),_.Bt(m,102));iR(this,"ra",_.Wo(G,103),_.Wo(m,103));iR(this,"ckm",v_(G,104),v_(m,104));iR(this,"gm",
v_(G,105),v_(m,105));iR(this,"ngm",v_(G,106),v_(m,106));m0(this,"em",$Q(G,107),$Q(m,107));iR(this,"cr",v_(G,108),v_(m,108));m0(this,"sl",G.getStoryboardLevel(),m.getStoryboardLevel());m0(this,"sb",$Q(G,110),$Q(m,110));GO(this,"pt",_.Bt(G,111),_.Bt(m,111));GO(this,"gce",_.Bt(G,112),_.Bt(m,112));iR(this,"tm",v_(G,113),v_(m,113));iR(this,"ntm",v_(G,114),v_(m,114));m0(this,"mp",$Q(G,115),$Q(m,115));return this.JSC$19829_components_.join("-")};
var m0=function(m,G,K,W,L,A){if(K!=null){var O=L==void 0||L!=10&&L!=16?10:L;K=Number(K).toString(O);L=new Xv6;L.append(O==16?"0x":"");O=L.append;A==void 0?A="":(A-=K.length,A=A<=0?"":(0,_.pEF)("0",A));O.call(L,A);L.append(K);oPi(m,G,L.toString(),!!Number(W))}},iR=function(m,G,K,W){K&&oPi(m,G,"",!!W)},GO=function(m,G,K,W){K&&oPi(m,G,String(K),!!Number(W))},oPi=function(m,G,K,W){W&&(G=G.charAt(0).toUpperCase()+G.substring(1));
m.JSC$19829_components_.push(G+K)};_.kJ(u2,LoD);_.w=u2.prototype;_.w.JSC$19831_setCrop=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setCrop.call(this,m)};
_.w.JSC$19831_setHeight=function(m){m=m==null||m<0?void 0:m;m!=null&&this.setSize();return u2.superClass_.JSC$19831_setHeight.call(this,m)};
_.w.JSC$19831_setImageCrop=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setImageCrop.call(this,m)};
_.w.JSC$19831_setCircleCrop=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setCircleCrop.call(this,m)};
_.w.setSize=function(m){_.Ud(m)&&(m=Math.max(m.width,m.height));m=m==null||m<0?void 0:m;m!=null&&(this.JSC$19831_setWidth(),this.JSC$19831_setHeight());return u2.superClass_.setSize.call(this,m)};
_.w.JSC$19831_setSmartCrop=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setSmartCrop.call(this,m)};
_.w.JSC$19831_setSmartCropNoClip=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setSmartCropNoClip.call(this,m)};
_.w.JSC$19831_setSmartCropUseFace=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setSmartCropUseFace.call(this,m)};
_.w.setCenterCrop=function(m){m&&KI(this);return u2.superClass_.setCenterCrop.call(this,m)};
_.w.JSC$19831_setPad=function(m){m&&KI(this);return u2.superClass_.JSC$19831_setPad.call(this,m)};
_.w.JSC$19831_setWidth=function(m){m=m==null||m<0?void 0:m;m!=null&&this.setSize();return u2.superClass_.JSC$19831_setWidth.call(this,m)};
var nPW=function(m){m.clearOptions();var G=m.JSC$19829_parsedOptions_,K=G.valueProto_;TZ(!0,_.Wo(K,3),_.Wo(G.signatureFlagProto_,3))&&_.x2(K,3,!0);return m},KI=function(m){m.setCenterCrop();
m.JSC$19831_setCircleCrop();m.JSC$19831_setCrop();m.JSC$19831_setImageCrop();m.JSC$19831_setPad();m.JSC$19831_setSmartCrop();m.JSC$19831_setSmartCropNoClip();m.JSC$19831_setSmartCropUseFace()};
u2.prototype.build=function(){var m=this.JSC$19829_parsedOptions_.valueProto_;v_(m,18)||v_(m,45)?m.getSize()||this.setSize(0):(m=this.JSC$19829_parsedOptions_.valueProto_,m.getSize()||m.getWidth()||m.getHeight()||(this.setSize(),this.JSC$19831_setHeight(),this.JSC$19831_setWidth(),KI(this)));return u2.superClass_.build.call(this)};var baD=/^[^\/]*\/\//,vPi=function(m,G){G=G===void 0?!1:G;this.original_=m;this.originalPrefix_="";(m=this.original_.match(baD))&&m[0]?(this.originalPrefix_=m[0],m=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):m="http://"+this.original_;this.uri_=_.jU(m,!0);this.isFreeformUrl_=G;this.JSC$19835_valid_=!0;this.obfuscated_=!1},$m6=function(m,G){m.JSC$19837_pathPrefix_=m.JSC$19837_pathPrefix_?m.JSC$19837_pathPrefix_+("/"+G):G},WK=function(m){if(m.JSC$19837_components_==
void 0){var G=m.uri_.getPath().substring(1);
m.JSC$19837_pathPrefix_=null;if(m.isFreeformUrl_){m.JSC$19837_components_=[];if((G.match(/=/g)||[]).length>1)return m.JSC$19835_valid_=!1,m.JSC$19837_components_;var K=G.indexOf("=");K!=-1?(m.JSC$19837_components_.push(G.substr(0,K)),m.JSC$19837_components_.push(G.substr(K+1))):m.JSC$19837_components_.push(G);return m.JSC$19837_components_}m.JSC$19837_components_=G.split("/");G=m.JSC$19837_components_.length;G>2&&m.JSC$19837_components_[0]=="u"&&($m6(m,m.JSC$19837_components_[0]+"/"+m.JSC$19837_components_[1]),
m.JSC$19837_components_.shift(),m.JSC$19837_components_.shift(),G-=2);if(G==0||G==4||G>7)return m.JSC$19835_valid_=!1,m.JSC$19837_components_;if(G==2)$m6(m,m.JSC$19837_components_[0]);else if(m.JSC$19837_components_[0]=="image")$m6(m,m.JSC$19837_components_[0]);else if(G==7||G==3)return m.JSC$19835_valid_=!1,m.JSC$19837_components_;if(G<=3){m.obfuscated_=!0;G==3&&($m6(m,m.JSC$19837_components_[1]),m.JSC$19837_components_.shift(),--G);--G;K=m.JSC$19837_components_[G];var W=K.indexOf("=");W!=-1&&(m.JSC$19837_components_[G]=
K.substr(0,W),m.JSC$19837_components_.push(K.substr(W+1)))}}return m.JSC$19837_components_};
vPi.prototype.isValid=function(){WK(this);return this.JSC$19835_valid_};
vPi.prototype.isObfuscated=function(){WK(this);return this.obfuscated_};
var sEu=function(m){WK(m);return m.isFreeformUrl_},LI=function(m){WK(m);
m.JSC$19837_pathPrefix_==void 0&&(m.JSC$19837_pathPrefix_=null);return m.JSC$19837_pathPrefix_},qH6=function(m){switch(WK(m).length){case 7:return!0;
case 6:return LI(m)==null;case 5:return!1;case 3:return!0;case 2:return LI(m)==null;case 1:return!1;default:return!1}},AF=function(m,G){if(sEu(m))a:{switch(G){case 7:G=0;
break;case 4:if(!qH6(m)){m=null;break a}G=1;break;default:m=null;break a}m=WK(m)[G]}else if(m.isObfuscated())a:{var K=LI(m)!=null?1:0;switch(G){case 6:G=K;break;case 4:if(!qH6(m)){m=null;break a}G=1+K;break;default:m=null;break a}m=WK(m)[G]}else a:{K=LI(m)!=null?1:0;switch(G){case 0:G=K;break;case 1:G=1+K;break;case 2:G=2+K;break;case 3:G=3+K;break;case 4:if(!qH6(m)){m=null;break a}G=4+K;break;case 5:G=qH6(m)?1:0;G=4+K+G;break;default:m=null;break a}m=WK(m)[G]}return m};
vPi.prototype.getOptions=function(){this.options_==void 0&&(this.options_=AF(this,4));return this.options_};var gCD=function(){};
gCD.prototype.parse=function(m,G){return new AKz(m,G===void 0?!1:G)};
var AKz=function(m,G){vPi.call(this,m,G===void 0?!1:G)};
_.n(AKz,vPi);_.kJ(cK6,u2);var weW;cK6.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
cK6.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var m=cK6.superClass_.build.call(this),G=[];LI(this.parsedImageUrl_)!=null&&G.push(LI(this.parsedImageUrl_));var K=sEu(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var W=this.parsedImageUrl_;W.obfuscatedData_==void 0&&(W.obfuscatedData_=AF(W,6));G.push(W.obfuscatedData_+(m?"="+m:""))}else if(K){W=G.push;var L=this.parsedImageUrl_;L.freeformUrlPath_===void 0&&(L.freeformUrlPath_=
AF(L,7));W.call(G,L.freeformUrlPath_);m&&G.push(m)}else W=G.push,L=this.parsedImageUrl_,L.obfuscatedGaiaId_==void 0&&(L.obfuscatedGaiaId_=AF(L,0)),W.call(G,L.obfuscatedGaiaId_),W=G.push,L=this.parsedImageUrl_,L.photoId_==void 0&&(L.photoId_=AF(L,1)),W.call(G,L.photoId_),W=G.push,L=this.parsedImageUrl_,L.imageVersion_==void 0&&(L.imageVersion_=AF(L,2)),W.call(G,L.imageVersion_),W=G.push,L=this.parsedImageUrl_,L.signature_==void 0&&(L.signature_=AF(L,3)),W.call(G,L.signature_),m&&G.push(m),m=G.push,
W=this.parsedImageUrl_,W.filename_==void 0&&(W.filename_=AF(W,5)),m.call(G,W.filename_);G=K?G.join("="):G.join("/");G=_.jU(this.protocolPrefix_+this.JSC$19843_domain_+"/"+G+(this.JSC$19843_query_?"?"+this.JSC$19843_query_:"")).toString();G.startsWith("%3a//")&&(G=G.replace("%3a//","://"));return G};_.kJ(hk,_.mP);hk.prototype.JSC$10381_setLabel=function(m){hk.superClass_.JSC$10381_setLabel.call(this,m);return this};
hk.prototype.addUploadMetadata=function(m,G){hk.superClass_.addUploadMetadata.call(this,m,G);return this};var EPs=function(m){if(m!=="youtubebanner"&&m!=="youtube-channel-banner")throw Error("Ek");hk.call(this,m)};
_.n(EPs,hk);EPs.prototype.JSC$10381_setLabel=function(m){hk.prototype.JSC$10381_setLabel.call(this,m);return this};
EPs.prototype.addUploadMetadata=function(m,G){hk.prototype.addUploadMetadata.call(this,m,G);return this};var rKz=_.nY(["",""]);var Haq=[0,_.Cg,_.bA,_.Cg,-1,_.bA,[0,_.vo,_.sA,-1],_.Cg,-1];var Id5=[0,[1,2,3],_.EA,-2];var jEP=[0,_.Cg];var ktW=_.nY(["viewBox"]),Cp6=_.nY(["width"]),VdP=_.nY(["height"]),Zaz=_.nY(["fill"]),dmE=_.nY(["id"]),Pp6=_.nY(["x"]),y45=_.nY(["y"]);hgD.prototype.getLength=function(){return this.parsedData.length};
hgD.prototype.write=function(m){for(var G=0,K=this.parsedData.length;G<K;G++)m.put(this.parsedData[G],8)};
var QtG=function(m,G){var K=new hgD(G);m.dataList.push(K);K=m.errorCorrectLevel;var W=1,L=encodeURI(G).toString().replace(/%[0-9a-fA-F]{2}/g,"a");G=L.length+(L.length!=G?3:0);L=0;for(var A=wJ.length;L<=A;L++){var O=0;switch(K){case 1:O=wJ[L][0];break;case 0:O=wJ[L][1];break;case 3:O=wJ[L][2];break;case 2:O=wJ[L][3]}if(G<=O)break;else W++}if(W>wJ.length)throw Error("Nk");m.typeNumber=W;m.dataCache=null};
peW.prototype.isDark=function(m,G){if(m<0||this.moduleCount<=m||G<0||this.moduleCount<=G)throw Error("Fk`"+m+"`"+G);return this.modules[m][G]};
for(var a7P=function(m,G,K){m.moduleCount=m.typeNumber*4+17;m.modules=Array(m.moduleCount);for(var W=0;W<m.moduleCount;W++){m.modules[W]=Array(m.moduleCount);for(var L=0;L<m.moduleCount;L++)m.modules[W][L]=null}eo6(m,0,0);eo6(m,m.moduleCount-7,0);eo6(m,0,m.moduleCount-7);W=fdG[m.typeNumber-1];for(L=0;L<W.length;L++)for(var A=0;A<W.length;A++){var O=W[L],c=W[A];if(m.modules[O][c]==null)for(var u=-2;u<=2;u++)for(var h=-2;h<=2;h++)m.modules[O+u][c+h]=u==-2||u==2||h==-2||h==2||u==0&&h==0?!0:!1}for(W=
8;W<m.moduleCount-8;W++)m.modules[W][6]==null&&(m.modules[W][6]=W%2==0);for(W=8;W<m.moduleCount-8;W++)m.modules[6][W]==null&&(m.modules[6][W]=W%2==0);W=m.errorCorrectLevel<<3|K;for(L=W<<10;gJ(L)-gJ(1335)>=0;)L^=1335<<gJ(L)-gJ(1335);W=(W<<10|L)^21522;for(L=0;L<15;L++)A=!G&&(W>>L&1)==1,L<6?m.modules[L][8]=A:L<8?m.modules[L+1][8]=A:m.modules[m.moduleCount-15+L][8]=A;for(L=0;L<15;L++)A=!G&&(W>>L&1)==1,L<8?m.modules[8][m.moduleCount-L-1]=A:L<9?m.modules[8][15-L-1+1]=A:m.modules[8][15-L-1]=A;m.modules[m.moduleCount-
8][8]=!G;if(m.typeNumber>=7){W=m.typeNumber;for(L=W<<12;gJ(L)-gJ(7973)>=0;)L^=7973<<gJ(L)-gJ(7973);W=W<<12|L;for(L=0;L<18;L++)A=!G&&(W>>L&1)==1,m.modules[Math.floor(L/3)][L%3+m.moduleCount-8-3]=A;for(L=0;L<18;L++)A=!G&&(W>>L&1)==1,m.modules[L%3+m.moduleCount-8-3][Math.floor(L/3)]=A}if(m.dataCache==null){L=m.typeNumber;A=m.dataList;G=m.errorCorrectLevel;W=xm5(L,G);if(W==void 0)throw Error("Mk`"+L+"`"+G);O=W.length/3;G=[];for(c=0;c<O;c++){u=W[c*3];h=W[c*3+1];for(var J=W[c*3+2],N=0;N<u;N++)G.push(new JKi(h,
J))}W=new NFW;for(O=0;O<A.length;O++)c=A[O],W.put(c.mode,4),W.put(c.getLength(),Xq5(c.mode,L)),c.write(W);for(O=L=0;O<G.length;O++)L+=G[O].dataCount;if(W.length>L*8)throw Error("Gk`"+W.length+"`"+L*8);for(W.length+4<=L*8&&W.put(0,4);W.length%8!=0;)SH6(W,!1);for(;!(W.length>=L*8);){W.put(236,8);if(W.length>=L*8)break;W.put(17,8)}A=L=h=0;O=Array(G.length);c=Array(G.length);for(u=0;u<G.length;u++){N=G[u].dataCount;var D=G[u].totalCount-N;L=Math.max(L,N);A=Math.max(A,D);O[u]=Array(N);for(J=0;J<O[u].length;J++)O[u][J]=
255&W.buffer[J+h];h+=N;J=D;N=new pi([1],0);for(D=0;D<J;D++)N=N.multiply(new pi([1,RoD(D)],0));J=N;N=(new pi(O[u],J.getLength()-1)).mod(J);c[u]=Array(J.getLength()-1);for(J=0;J<c[u].length;J++)D=J+N.getLength()-c[u].length,c[u][J]=D>=0?N.get(D):0}for(J=W=0;J<G.length;J++)W+=G[J].totalCount;W=Array(W);for(J=h=0;J<L;J++)for(u=0;u<G.length;u++)J<O[u].length&&(W[h++]=O[u][J]);for(J=0;J<A;J++)for(u=0;u<G.length;u++)J<c[u].length&&(W[h++]=c[u][J]);m.dataCache=W}G=m.dataCache;W=-1;L=m.moduleCount-1;A=7;O=
0;for(c=m.moduleCount-1;c>0;c-=2)for(c==6&&c--;;){for(u=0;u<2;u++)m.modules[L][c-u]==null&&(h=!1,O<G.length&&(h=(G[O]>>>A&1)==1),Umq(K,L,c-u)&&(h=!h),m.modules[L][c-u]=h,A--,A==-1&&(O++,A=7));L+=W;if(L<0||m.moduleCount<=L){L-=W;W=-W;break}}},eo6=function(m,G,K){for(var W=-1;W<=7;W++)if(!(G+W<=-1||m.moduleCount<=G+W))for(var L=-1;L<=7;L++)K+L<=-1||m.moduleCount<=K+L||(m.modules[G+W][K+L]=0<=W&&W<=6&&(L==0||L==6)||0<=L&&L<=6&&(W==0||W==6)||2<=W&&W<=4&&2<=L&&L<=4?!0:!1)},oC5=function(m){for(var G=0,
K=0,W=0;W<8;W++){a7P(m,!0,W);
var L=m;for(var A=L.moduleCount,O=0,c=0;c<A;c++)for(var u=0;u<A;u++){for(var h=0,J=L.isDark(c,u),N=-1;N<=1;N++)if(!(c+N<0||A<=c+N))for(var D=-1;D<=1;D++)u+D<0||A<=u+D||(N!=0||D!=0)&&J==L.isDark(c+N,u+D)&&h++;h>5&&(O+=3+h-5)}for(c=0;c<A-1;c++)for(u=0;u<A-1;u++)if(h=0,L.isDark(c,u)&&h++,L.isDark(c+1,u)&&h++,L.isDark(c,u+1)&&h++,L.isDark(c+1,u+1)&&h++,h==0||h==4)O+=3;for(c=0;c<A;c++)for(u=0;u<A-6;u++)L.isDark(c,u)&&!L.isDark(c,u+1)&&L.isDark(c,u+2)&&L.isDark(c,u+3)&&L.isDark(c,u+4)&&!L.isDark(c,u+5)&&
L.isDark(c,u+6)&&(O+=40);for(u=0;u<A;u++)for(c=0;c<A-6;c++)L.isDark(c,u)&&!L.isDark(c+1,u)&&L.isDark(c+2,u)&&L.isDark(c+3,u)&&L.isDark(c+4,u)&&!L.isDark(c+5,u)&&L.isDark(c+6,u)&&(O+=40);for(u=h=0;u<A;u++)for(c=0;c<A;c++)L.isDark(c,u)&&h++;L=O+=Math.abs(100*h/A/A-50)/5*10;if(W==0||G>L)G=L,K=W}return K},fdG=[[],
[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]],gJ=function(m){for(var G=0;m!=0;)G++,m>>>=1;return G},Umq=function(m,G,K){switch(m){case 0:return(G+K)%2==0;
case 1:return G%2==0;case 2:return K%3==0;case 3:return(G+K)%3==0;case 4:return(Math.floor(G/2)+Math.floor(K/3))%2==0;case 5:return G*K%2+G*K%3==0;case 6:return(G*K%2+G*K%3)%2==0;case 7:return(G*K%3+(G+K)%2)%2==0;default:throw Error("Hk`"+m);}},Xq5=function(m,G){if(1<=G&&G<10)switch(m){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+m);}else if(G<27)switch(m){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+m);}else if(G<41)switch(m){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+m);}else throw Error("Jk`"+G);},ldG=function(m){if(m<1)throw Error("Kk`"+m);
return zoW[m]},RoD=function(m){for(;m<0;)m+=255;
for(;m>=256;)m-=255;return OI[m]},OI=Array(256),zoW=Array(256),BR6=0;BR6<8;BR6++)OI[BR6]=1<<BR6;
for(var cK=8;cK<256;cK++)OI[cK]=OI[cK-4]^OI[cK-5]^OI[cK-6]^OI[cK-8];for(var Mdi=0;Mdi<255;Mdi++)zoW[OI[Mdi]]=Mdi;pi.prototype.get=function(m){return this.num[m]};
pi.prototype.getLength=function(){return this.num.length};
pi.prototype.multiply=function(m){for(var G=Array(this.getLength()+m.getLength()-1),K=0;K<this.getLength();K++)for(var W=0;W<m.getLength();W++)G[K+W]^=RoD(ldG(this.get(K))+ldG(m.get(W)));return new pi(G,0)};
pi.prototype.mod=function(m){if(this.getLength()-m.getLength()<0)return this;for(var G=ldG(this.get(0))-ldG(m.get(0)),K=Array(this.getLength()),W=0;W<this.getLength();W++)K[W]=this.get(W);for(W=0;W<m.getLength();W++)K[W]^=RoD(ldG(m.get(W))+G);return(new pi(K,0)).mod(m)};
var TRP=[[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]],xm5=function(m,G){switch(G){case 1:return TRP[(m-1)*4];case 0:return TRP[(m-1)*4+1];case 3:return TRP[(m-1)*4+2];case 2:return TRP[(m-1)*4+3]}};
NFW.prototype.get=function(m){return(this.buffer[Math.floor(m/8)]>>>7-m%8&1)==1};
NFW.prototype.put=function(m,G){for(var K=0;K<G;K++)SH6(this,(m>>>G-K-1&1)==1)};
var SH6=function(m,G){var K=Math.floor(m.length/8);m.buffer.length<=K&&m.buffer.push(0);G&&(m.buffer[K]|=128>>>m.length%8);m.length++},wJ=[[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]],Foq=function(){var m=function(G,K){this.JSC$19869__el=G;this.JSC$19869__htOption=K};
m.prototype.draw=function(G){function K(J,N){J=document.createElementNS("http://www.w3.org/2000/svg",J);for(var D in N)N.hasOwnProperty(D)&&(D==="href"?NlE(J,N[D]):_.DO([_.ob(ktW),_.ob(Cp6),_.ob(VdP),_.ob(Zaz),_.ob(dmE),_.ob(Pp6),_.ob(y45)],J,D,N[D]));return J}
var W=this.JSC$19869__htOption,L=this.JSC$19869__el,A=G.moduleCount;this.clear();var O=K("svg",{viewBox:"0 0 "+String(A)+" "+String(A),width:"100%",height:"100%",fill:W.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});L.appendChild(O);O.appendChild(K("rect",{fill:W.colorLight,width:"100%",height:"100%"}));O.appendChild(K("rect",{fill:W.colorDark,width:"1",height:"1",id:"template"}));for(var c=0;c<A;c++)for(var u=0;u<A;u++)if(G.isDark(c,u)){var h=K("use",{x:String(c),y:String(u),href:"#template"});
O.appendChild(h)}};
m.prototype.clear=function(){for(;this.JSC$19869__el.hasChildNodes();)this.JSC$19869__el.removeChild(this.JSC$19869__el.lastChild)};
return m}(),tbu=document.documentElement.tagName.toLowerCase()==="svg"?Foq:typeof CanvasRenderingContext2D!="undefined"?function(){var m=function(G,K){this._bIsPainted=!1;
Dgs();this.JSC$19869__htOption=K;this._elCanvas=document.createElement("canvas");this._elCanvas.width=K.width;this._elCanvas.height=K.height;G.appendChild(this._elCanvas);this.JSC$19869__el=G;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$19869__el.appendChild(this._elImage);this._bSupportDataURI=null};
m.prototype._onMakeImage=function(){var G=this._elCanvas.toDataURL("image/png");this._elImage.src=G;this._elImage.style.display="block";this._elCanvas.style.display="none"};
m.prototype._safeSetDataURI=function(G,K){var W=this;W._fFail=K;W._fSuccess=G;W._bSupportDataURI===null?(G=_.M7("IMG"),K=function(){W._bSupportDataURI=!1;W._fFail&&W._fFail.call(W)},G.onabort=K,G.onerror=K,G.onload=function(){W._bSupportDataURI=!0;
W._fSuccess&&W._fSuccess.call(W)},G.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):W._bSupportDataURI===!0&&W._fSuccess?W._fSuccess.call(W):W._bSupportDataURI===!1&&W._fFail&&W._fFail.call(W)};
m.prototype.draw=function(G){var K=this._oContext,W=this.JSC$19869__htOption,L=G.moduleCount,A=W.width/L,O=W.height/L,c=Math.round(A),u=Math.round(O);this._elImage.style.display="none";this.clear();for(var h=0;h<L;h++)for(var J=0;J<L;J++){var N=G.isDark(h,J),D=J*A,t=h*O;K.strokeStyle=N?W.colorDark:W.colorLight;K.lineWidth=1;K.fillStyle=N?W.colorDark:W.colorLight;K.fillRect(D,t,A,O);K.strokeRect(Math.floor(D)+.5,Math.floor(t)+.5,c,u);K.strokeRect(Math.ceil(D)-.5,Math.ceil(t)-.5,c,u)}this._bIsPainted=
!0};
m.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
m.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
m.prototype.round=function(G){return G?Math.floor(G*1E3)/1E3:G};
return m}():function(){var m=function(G,K){this.JSC$19869__el=G;
this.JSC$19869__htOption=K};
m.prototype.draw=function(G){for(var K=this.JSC$19869__htOption,W=this.JSC$19869__el,L=G.moduleCount,A=Math.floor(K.width/L),O=Math.floor(K.height/L),c=['<table style="border:0;border-collapse:collapse;">'],u=0;u<L;u++){c.push("<tr>");for(var h=0;h<L;h++)c.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+A+"px;height:"+O+"px;background-color:"+(G.isDark(u,h)?K.colorDark:K.colorLight)+';"></td>');c.push("</tr>")}c.push("</table>");G=c.join("");G=_.KiX(_.Li0,G);_.Np(W,G);
G=W.childNodes[0];L=(K.width-G.offsetWidth)/2;A=(K.height-G.offsetHeight)/2;L>0&&A>0&&(G.style.margin=A+"px "+L+"px")};
m.prototype.clear=function(){this.JSC$19869__el.textContent=""};
return m}();
nCO.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19872__android||this.JSC$19872__android>=3)&&this._oDrawing.makeImage()};
nCO.prototype.clear=function(){this._oDrawing.clear()};
_.Ks.QRCode=nCO;var mRz={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var ZrD=function(){};
ZrD.prototype.stringify=function(m){return _.Ks.JSON.stringify(m,void 0)};
ZrD.prototype.parse=function(m){return _.Ks.JSON.parse(m,void 0)};var i5E=function(){_.dM.call(this,"z")};
_.kJ(i5E,_.dM);var GxP=function(){_.dM.call(this,"y")};
_.kJ(GxP,_.dM);var vCD=null;_.kJ(stq,_.dM);_.kJ(ECq,_.dM);_.kJ(Hri,_.dM);Nf.prototype.disableRedact=function(){this.redactEnabled_=!1};
var K_5=function(m,G,K,W,L,A){m.info(function(){if(m.redactEnabled_)if(A){var O="";for(var c=A.split("&"),u=0;u<c.length;u++){var h=c[u].split("=");if(h.length>1){var J=h[0];h=h[1];var N=J.split("_");O=N.length>=2&&N[1]=="type"?O+(J+"="+h+"&"):O+(J+"=redacted&")}}}else O=null;else O=A;return"XMLHTTP REQ ("+W+") [attempt "+L+"]: "+G+"\n"+K+"\n"+O})},W_s=function(m,G,K,W,L,A,O){m.info(function(){return"XMLHTTP RESP ("+W+") [ attempt "+L+"]: "+G+"\n"+K+"\n"+A+" "+O})},Yc=function(m,G,K,W){m.info(function(){return"XMLHTTP TEXT ("+
G+"): "+L_6(m,K)+(W?" "+W:"")})},AxW=function(m,G){m.info(function(){return"TIMEOUT: "+G})};
Nf.prototype.debug=function(){};
Nf.prototype.info=function(){};
Nf.prototype.warning=function(){};
var L_6=function(m,G){if(!m.redactEnabled_)return G;if(!G)return null;try{var K=JSON.parse(G);if(K)for(var W=0;W<K.length;W++)if(Array.isArray(K[W])){var L=K[W];if(!(L.length<2)){var A=L[1];if(Array.isArray(A)&&!(A.length<1)){var O=A[0];if(O!="noop"&&O!="stop"&&O!="close")for(var c=1;c<A.length;c++)A[c]=""}}}return _.rO(K)}catch(u){return m.debug("Exception parsing expected JS array - probably was not JS"),G}};var khD=function(){this.textDecoder=null;this.responseBuffer="";this.responseArrivedForFetch=!1},wi5=function(m,G){switch(m){case 0:return"Non-200 return code ("+G+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},g6W={},O5P={};
Dr.prototype.setTimeout=function(m){this.timeout_=m};
var YDu=function(m,G,K){m.JSC$19894_type_=1;m.JSC$19894_baseUri_=_.y7(G.clone());m.JSC$19894_postData_=K;m.decodeChunks_=!0;cx6(m,null)},cx6=function(m,G){m.JSC$19894_requestStartTime_=Date.now();
rx5(m);m.JSC$19894_requestUri_=m.JSC$19894_baseUri_.clone();Y5u(m.JSC$19894_requestUri_,"t",m.JSC$19894_retryId_);m.JSC$19894_xmlHttpChunkStart_=0;var K=m.JSC$19894_channel_.JSC$19913_supportsCrossDomainXhrs_;m.fetchResponseState_=new khD;m.JSC$19894_xmlHttp_=uqP(m.JSC$19894_channel_,K?G:null,!m.JSC$19894_postData_);m.JSC$19894_readyStateChangeThrottleMs_>0&&(m.JSC$19894_readyStateChangeThrottle_=new _.yO((0,_.AO)(m.JSC$19898_xmlHttpHandler_,m,m.JSC$19894_xmlHttp_),m.JSC$19894_readyStateChangeThrottleMs_));
m.JSC$19894_eventHandler_.listen(m.JSC$19894_xmlHttp_,"readystatechange",m.JSC$19898_readyStateChangeHandler_);G=m.JSC$19894_extraHeaders_?_.Y2.clone(m.JSC$19894_extraHeaders_):{};m.JSC$19894_postData_?(m.JSC$19894_verb_||(m.JSC$19894_verb_="POST"),G["Content-Type"]="application/x-www-form-urlencoded",m.JSC$19894_xmlHttp_.send(m.JSC$19894_requestUri_,m.JSC$19894_verb_,m.JSC$19894_postData_,G)):(m.JSC$19894_verb_="GET",m.JSC$19894_xmlHttp_.send(m.JSC$19894_requestUri_,m.JSC$19894_verb_,null,G));qM6(1);
K_5(m.JSC$19894_channelDebug_,m.JSC$19894_verb_,m.JSC$19894_requestUri_,m.JSC$19894_rid_,m.JSC$19894_retryId_,m.JSC$19894_postData_)};
Dr.prototype.JSC$19898_readyStateChangeHandler_=function(m){m=m.target;var G=this.JSC$19894_readyStateChangeThrottle_;G&&_.hz(m)==3?(this.JSC$19894_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$19898_xmlHttpHandler_(m)};
Dr.prototype.JSC$19898_xmlHttpHandler_=function(m){try{m==this.JSC$19894_xmlHttp_?hhG(this):this.JSC$19894_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(G){this.JSC$19894_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),piu(this)}finally{}};
var hhG=function(m){var G=_.hz(m.JSC$19894_xmlHttp_),K=m.JSC$19894_xmlHttp_.JSC$10103_lastErrorCode_,W=m.JSC$19894_xmlHttp_.getStatus();if(!(G<3||G==3&&!piu(m))){m.JSC$19894_cancelled_||G!=4||K==7||(K==8||W<=0?qM6(3):qM6(2));JxG(m);var L=m.JSC$19894_xmlHttp_.getStatus();m.JSC$19894_lastStatusCode_=L;K=NEz(m);piu(m)||m.JSC$19894_channelDebug_.debug(function(){return"No response text for uri "+m.JSC$19894_requestUri_+" status "+L});
m.JSC$19894_successful_=L==200;W_s(m.JSC$19894_channelDebug_,m.JSC$19894_verb_,m.JSC$19894_requestUri_,m.JSC$19894_rid_,m.JSC$19894_retryId_,G,L);if(m.JSC$19894_successful_){if(m.decodeInitialResponse_&&!m.initialResponseDecoded_)if(W=DRu(m))Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,W,"Initial handshake response via X-HTTP-Initial-Response"),m.initialResponseDecoded_=!0,tpG(m,W);else{m.JSC$19894_successful_=!1;m.JSC$19894_lastError_=3;Jk(12);m.JSC$19894_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
m.JSC$19894_rid_+")");rJ(m);F_W(m);return}m.decodeChunks_?Qq6(m,G,K):(Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,K,null),tpG(m,K));G==4&&rJ(m);m.JSC$19894_successful_&&!m.JSC$19894_cancelled_&&(G==4?afP(m.JSC$19894_channel_,m):(m.JSC$19894_successful_=!1,rx5(m)))}else Ob6(m.JSC$19894_xmlHttp_),L==400&&K.indexOf("Unknown SID")>0?(m.JSC$19894_lastError_=3,Jk(12),m.JSC$19894_channelDebug_.warning("XMLHTTP Unknown SID ("+m.JSC$19894_rid_+")")):(m.JSC$19894_lastError_=0,Jk(13),m.JSC$19894_channelDebug_.warning("XMLHTTP Bad status "+
L+" ("+m.JSC$19894_rid_+")")),rJ(m),F_W(m)}},DRu=function(m){return m.JSC$19894_xmlHttp_&&(m=iGi(m.JSC$19894_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Od(m)?m:null},NEz=function(m){if(!o6O(m))return m.JSC$19894_xmlHttp_.getResponseText();
var G=m.JSC$19894_xmlHttp_.getResponse();if(G==="")return"";var K="",W=G.length,L=_.hz(m.JSC$19894_xmlHttp_)==4;if(!m.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return rJ(m),F_W(m),"";m.fetchResponseState_.textDecoder=new _.Ks.TextDecoder}for(var A=0;A<W;A++)m.fetchResponseState_.responseArrivedForFetch=!0,K+=m.fetchResponseState_.textDecoder.decode(G[A],{stream:!(L&&A==W-1)});G.length=0;m.fetchResponseState_.responseBuffer+=K;m.JSC$19894_xmlHttpChunkStart_=0;return m.fetchResponseState_.responseBuffer},
piu=function(m){return m.JSC$19894_xmlHttp_?m.fetchResponseState_.responseArrivedForFetch?!0:!(!m.JSC$19894_xmlHttp_.getResponseText()&&!m.JSC$19894_xmlHttp_.getResponse()):!1},o6O=function(m){return m.JSC$19894_xmlHttp_?m.JSC$19894_verb_=="GET"&&m.JSC$19894_type_!=2&&m.JSC$19894_channel_.usesFetchStreams_:!1},Qq6=function(m,G,K){for(var W=!0,L;!m.JSC$19894_cancelled_&&m.JSC$19894_xmlHttpChunkStart_<K.length;)if(L=n6E(m,K),L==O5P){G==4&&(m.JSC$19894_lastError_=4,Jk(14),W=!1);
Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,null,"[Incomplete Response]");break}else if(L==g6W){m.JSC$19894_lastError_=4;Jk(15);Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,K,"[Invalid Chunk]");W=!1;break}else Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,L,null),tpG(m,L);o6O(m)&&m.JSC$19894_xmlHttpChunkStart_!=0&&(m.fetchResponseState_.responseBuffer=m.fetchResponseState_.responseBuffer.slice(m.JSC$19894_xmlHttpChunkStart_),m.JSC$19894_xmlHttpChunkStart_=0);G!=4||K.length!=0||m.fetchResponseState_.responseArrivedForFetch||
(m.JSC$19894_lastError_=1,Jk(16),W=!1);m.JSC$19894_successful_=m.JSC$19894_successful_&&W;W?K.length>0&&!m.firstByteReceived_&&(m.firstByteReceived_=!0,G=m.JSC$19894_channel_,G.JSC$19913_backChannelRequest_==m&&G.detectBufferingProxy_&&!G.bpDetectionDone_&&(G.JSC$19913_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+K.length),b5P(G),G.bpDetectionDone_=!0,Jk(11))):(Yc(m.JSC$19894_channelDebug_,m.JSC$19894_rid_,K,"[Invalid Chunked Response]"),rJ(m),F_W(m))},n6E=function(m,
G){var K=m.JSC$19894_xmlHttpChunkStart_,W=G.indexOf("\n",K);
if(W==-1)return O5P;K=Number(G.substring(K,W));if(isNaN(K))return g6W;W+=1;if(W+K>G.length)return O5P;G=G.slice(W,W+K);m.JSC$19894_xmlHttpChunkStart_=W+K;return G};
Dr.prototype.cancel=function(){this.JSC$19894_cancelled_=!0;rJ(this)};
var rx5=function(m){m.JSC$19894_watchDogTimeoutTime_=Date.now()+m.timeout_;v6D(m,m.timeout_)},v6D=function(m,G){if(m.JSC$19894_watchDogTimerId_!=null)throw Error("Pk");
m.JSC$19894_watchDogTimerId_=jt6((0,_.AO)(m.JSC$19898_onWatchDogTimeout_,m),G)},JxG=function(m){m.JSC$19894_watchDogTimerId_&&(_.Ks.clearTimeout(m.JSC$19894_watchDogTimerId_),m.JSC$19894_watchDogTimerId_=null)};
Dr.prototype.JSC$19898_onWatchDogTimeout_=function(){this.JSC$19894_watchDogTimerId_=null;var m=Date.now();m-this.JSC$19894_watchDogTimeoutTime_>=0?(AxW(this.JSC$19894_channelDebug_,this.JSC$19894_requestUri_),this.JSC$19894_type_!=2&&(qM6(3),Jk(17)),rJ(this),this.JSC$19894_lastError_=2,F_W(this)):(this.JSC$19894_channelDebug_.warning("WatchDog timer called too early"),v6D(this,this.JSC$19894_watchDogTimeoutTime_-m))};
var F_W=function(m){m.JSC$19894_channel_.state_==0||m.JSC$19894_cancelled_||afP(m.JSC$19894_channel_,m)},rJ=function(m){JxG(m);
_.I$(m.JSC$19894_readyStateChangeThrottle_);m.JSC$19894_readyStateChangeThrottle_=null;m.JSC$19894_eventHandler_.removeAll();if(m.JSC$19894_xmlHttp_){var G=m.JSC$19894_xmlHttp_;m.JSC$19894_xmlHttp_=null;G.abort();G.dispose()}};
Dr.prototype.getLastError=function(){return this.JSC$19894_lastError_};
var tpG=function(m,G){try{var K=m.JSC$19894_channel_;if(K.state_!=0&&(K.JSC$19913_backChannelRequest_==m||$RD(K.forwardChannelRequestPool_,m)))if(!m.initialResponseDecoded_&&$RD(K.forwardChannelRequestPool_,m)&&K.state_==3){try{var W=K.wireCodec_.JSC$19908_parser_.parse(G)}catch(c){W=null}if(Array.isArray(W)&&W.length==3){G=W;if(G[0]==0)a:if(K.JSC$19913_channelDebug_.debug("Server claims our backchannel is missing."),K.JSC$19913_backChannelTimerId_)K.JSC$19913_channelDebug_.debug("But we are currently starting the request.");
else{if(K.JSC$19913_backChannelRequest_)if(K.JSC$19913_backChannelRequest_.JSC$19894_requestStartTime_+3E3<m.JSC$19894_requestStartTime_)sqW(K),qDD(K);else break a;else K.JSC$19913_channelDebug_.warning("We do not have a BackChannel established");E6D(K);Jk(18)}else{K.JSC$19913_lastPostResponseArrayId_=G[1];var L=K.JSC$19913_lastPostResponseArrayId_-K.JSC$19913_lastArrayId_;if(0<L){var A=G[2];K.JSC$19913_channelDebug_.debug(A+" bytes (in "+L+" arrays) are outstanding on the BackChannel");A<37500&&
K.enableStreaming_&&K.JSC$19913_backChannelRetryCount_==0&&!K.JSC$19913_deadBackChannelTimerId_&&(K.JSC$19913_deadBackChannelTimerId_=jt6((0,_.AO)(K.JSC$19915_onBackChannelDead_,K),6E3))}}if(H5q(K.forwardChannelRequestPool_)<=1&&K.forwardChannelFlushedCallback_){try{K.forwardChannelFlushedCallback_()}catch(c){}K.forwardChannelFlushedCallback_=void 0}}else K.JSC$19913_channelDebug_.debug("Bad POST response data returned"),uR(K,11)}else if((m.initialResponseDecoded_||K.JSC$19913_backChannelRequest_==
m)&&sqW(K),!_.Od(G)){var O=K.wireCodec_.JSC$19908_parser_.parse(G);K.onInput_(O,m)}qM6(4)}catch(c){}};var IfW=function(m,G){this.JSC$19901_mapId=m;this.map=G;this.context=null};var yKs=function(m){this.maxPoolSizeConfigured_=m||10;_.Ks.PerformanceNavigationTiming?(m=_.Ks.performance.getEntriesByType("navigation"),m=m.length>0&&(m[0].nextHopProtocol=="hq"||m[0].nextHopProtocol=="h2")):m=!!(_.Ks.chrome&&_.Ks.chrome.loadTimes&&_.Ks.chrome.loadTimes()&&_.Ks.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19904_maxSize_=m?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19904_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19904_request_=null;this.JSC$19904_pendingMessages_=
[]},jqu=function(m){return m.JSC$19904_request_?!0:m.requestPool_?m.requestPool_.size>=m.JSC$19904_maxSize_:!1},H5q=function(m){return m.JSC$19904_request_?1:m.requestPool_?m.requestPool_.size:0},$RD=function(m,G){return m.JSC$19904_request_?m.JSC$19904_request_==G:m.requestPool_?m.requestPool_.has(G):!1},kxE=function(m,G){m.requestPool_?m.requestPool_.add(G):m.JSC$19904_request_=G},Cm6=function(m,G){m.JSC$19904_request_&&m.JSC$19904_request_==G?m.JSC$19904_request_=null:m.requestPool_&&m.requestPool_.has(G)&&
m.requestPool_.delete(G)};
yKs.prototype.cancel=function(){this.JSC$19904_pendingMessages_=Vps(this);if(this.JSC$19904_request_)this.JSC$19904_request_.cancel(),this.JSC$19904_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var m=_.g(this.requestPool_.values()),G=m.next();!G.done;G=m.next())G.value.cancel();this.requestPool_.clear()}};
var Vps=function(m){if(m.JSC$19904_request_!=null)return m.JSC$19904_pendingMessages_.concat(m.JSC$19904_request_.JSC$19894_pendingMessages_);if(m.requestPool_!=null&&m.requestPool_.size!==0){var G=m.JSC$19904_pendingMessages_;m=_.g(m.requestPool_.values());for(var K=m.next();!K.done;K=m.next())G=G.concat(K.value.JSC$19894_pendingMessages_);return G}return _.yf(m.JSC$19904_pendingMessages_)},Z5s=function(m,G){m.JSC$19904_pendingMessages_=m.JSC$19904_pendingMessages_.concat(G)};F1.prototype.JSC$19915_channelVersion_=8;F1.prototype.state_=1;
F1.prototype.connect=function(m,G,K,W){this.JSC$19913_channelDebug_.debug("connect()");Jk(0);this.JSC$19913_path_=m;this.JSC$19913_extraParams_=G||{};K&&W!==void 0&&(this.JSC$19913_extraParams_.OSID=K,this.JSC$19913_extraParams_.OAID=W);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19913_channelDebug_.debug("connectChannel_()");m=dRi(this,null,this.JSC$19913_path_);this.JSC$19913_channelDebug_.debug("GetForwardChannelUri: "+m);this.JSC$19913_forwardChannelUri_=m;PmW(this)};
F1.prototype.disconnect=function(){this.JSC$19913_channelDebug_.debug("disconnect()");yxE(this);if(this.state_==3){var m=this.JSC$19913_nextRid_++,G=this.JSC$19913_forwardChannelUri_.clone();_.Ct(G,"SID",this.sid_);_.Ct(G,"RID",m);_.Ct(G,"TYPE","terminate");eh6(this,G);m=new Dr(this,this.JSC$19913_channelDebug_,this.sid_,m);m.JSC$19894_type_=2;m.JSC$19894_baseUri_=_.y7(G.clone());G=!1;if(_.Ks.navigator&&_.Ks.navigator.sendBeacon)try{G=_.Ks.navigator.sendBeacon(m.JSC$19894_baseUri_.toString(),"")}catch(K){}!G&&
_.Ks.Image&&((new Image).src=m.JSC$19894_baseUri_,G=!0);G||(m.JSC$19894_xmlHttp_=uqP(m.JSC$19894_channel_,null),m.JSC$19894_xmlHttp_.send(m.JSC$19894_baseUri_));m.JSC$19894_requestStartTime_=Date.now();rx5(m)}ffW(this)};
var qDD=function(m){m.JSC$19913_backChannelRequest_&&(b5P(m),m.JSC$19913_backChannelRequest_.cancel(),m.JSC$19913_backChannelRequest_=null)},yxE=function(m){qDD(m);
m.JSC$19913_backChannelTimerId_&&(_.Ks.clearTimeout(m.JSC$19913_backChannelTimerId_),m.JSC$19913_backChannelTimerId_=null);sqW(m);m.forwardChannelRequestPool_.cancel();m.JSC$19913_forwardChannelTimerId_&&(typeof m.JSC$19913_forwardChannelTimerId_==="number"&&_.Ks.clearTimeout(m.JSC$19913_forwardChannelTimerId_),m.JSC$19913_forwardChannelTimerId_=null)};
F1.prototype.getState=function(){return this.state_};
var PmW=function(m){jqu(m.forwardChannelRequestPool_)||m.JSC$19913_forwardChannelTimerId_||(m.JSC$19913_forwardChannelTimerId_=!0,_.wO(m.JSC$19915_onStartForwardChannelTimer_,m),m.JSC$19913_forwardChannelRetryCount_=0)},XiD=function(m,G){if(H5q(m.forwardChannelRequestPool_)>=m.forwardChannelRequestPool_.JSC$19904_maxSize_-(m.JSC$19913_forwardChannelTimerId_?1:0))return!1;
if(m.JSC$19913_forwardChannelTimerId_)return m.JSC$19913_channelDebug_.debug("Use the retry request that is already scheduled."),m.JSC$19913_outgoingMaps_=G.JSC$19894_pendingMessages_.concat(m.JSC$19913_outgoingMaps_),!0;if(m.state_==1||m.state_==2||m.JSC$19913_forwardChannelRetryCount_>=(m.JSC$19913_failFast_?0:m.JSC$19913_forwardChannelMaxRetries_))return!1;m.JSC$19913_channelDebug_.debug("Going to retry POST");m.JSC$19913_forwardChannelTimerId_=jt6((0,_.AO)(m.JSC$19915_onStartForwardChannelTimer_,
m,G),xRD(m,m.JSC$19913_forwardChannelRetryCount_));m.JSC$19913_forwardChannelRetryCount_++;return!0};
F1.prototype.JSC$19915_onStartForwardChannelTimer_=function(m){if(this.JSC$19913_forwardChannelTimerId_)if(this.JSC$19913_forwardChannelTimerId_=null,this.JSC$19913_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!m){this.JSC$19913_channelDebug_.debug("open_()");this.JSC$19913_nextRid_=Math.floor(Math.random()*1E5);m=this.JSC$19913_nextRid_++;var G=new Dr(this,this.JSC$19913_channelDebug_,"",m),K=this.JSC$19913_extraHeaders_;this.initHeaders_&&(K?(K=_.Y2.clone(K),_.Y2.extend(K,this.initHeaders_)):
K=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(G.JSC$19894_extraHeaders_=K,K=null);var W;if(this.fastHandshake_)a:{for(var L=W=0;L<this.JSC$19913_outgoingMaps_.length;L++){b:{var A=this.JSC$19913_outgoingMaps_[L];if("__data__"in A.map&&(A=A.map.__data__,typeof A==="string")){A=A.length;break b}A=void 0}if(A===void 0)break;W+=A;if(W>4096){W=L;break a}if(W===4096||L===this.JSC$19913_outgoingMaps_.length-1){W=L+1;break a}}W=1E3}else W=1E3;W=SDD(this,G,W);
L=this.JSC$19913_forwardChannelUri_.clone();_.Ct(L,"RID",m);_.Ct(L,"CVER",22);this.httpSessionIdParam_&&_.Ct(L,"X-HTTP-Session-Id",this.httpSessionIdParam_);eh6(this,L);K&&(this.encodeInitMessageHeaders_?W="headers="+_.zF(WHD(K))+"&"+W:this.httpHeadersOverwriteParam_&&LHz(L,this.httpHeadersOverwriteParam_,K));kxE(this.forwardChannelRequestPool_,G);this.blockingHandshake_&&_.Ct(L,"TYPE","init");this.fastHandshake_?(_.Ct(L,"$req",W),_.Ct(L,"SID","null"),G.decodeInitialResponse_=!0,YDu(G,L,null)):YDu(G,
L,W);this.state_=2}}else this.state_==3&&(m?Rh6(this,m):this.JSC$19913_outgoingMaps_.length==0?this.JSC$19913_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):jqu(this.forwardChannelRequestPool_)||(Rh6(this),this.JSC$19913_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Rh6=function(m,G){var K;G?K=G.JSC$19894_rid_:K=m.JSC$19913_nextRid_++;var W=m.JSC$19913_forwardChannelUri_.clone();_.Ct(W,"SID",m.sid_);_.Ct(W,"RID",K);_.Ct(W,"AID",m.JSC$19913_lastArrayId_);eh6(m,W);m.httpHeadersOverwriteParam_&&m.JSC$19913_extraHeaders_&&LHz(W,m.httpHeadersOverwriteParam_,m.JSC$19913_extraHeaders_);K=new Dr(m,m.JSC$19913_channelDebug_,m.sid_,K,m.JSC$19913_forwardChannelRetryCount_+1);m.httpHeadersOverwriteParam_===null&&(K.JSC$19894_extraHeaders_=m.JSC$19913_extraHeaders_);
G&&(m.JSC$19913_outgoingMaps_=G.JSC$19894_pendingMessages_.concat(m.JSC$19913_outgoingMaps_));G=SDD(m,K,1E3);K.setTimeout(Math.round(m.JSC$19913_forwardChannelRequestTimeoutMs_*.5)+Math.round(m.JSC$19913_forwardChannelRequestTimeoutMs_*.5*Math.random()));kxE(m.forwardChannelRequestPool_,K);YDu(K,W,G)},eh6=function(m,G){m.JSC$19913_extraParams_&&_.Y2.forEach(m.JSC$19913_extraParams_,function(K,W){_.Ct(G,W,K)});
m.handler_&&_.Y2.forEach({},function(K,W){_.Ct(G,W,K)})},SDD=function(m,G,K){K=Math.min(m.JSC$19913_outgoingMaps_.length,K);
var W=m.handler_?(0,_.AO)(m.handler_.JSC$19919_badMapError,m.handler_,m):null;a:{for(var L=m.JSC$19913_outgoingMaps_,A=-1;;){var O=["count="+K];A==-1?K>0?(A=L[0].JSC$19901_mapId,O.push("ofs="+A)):A=0:O.push("ofs="+A);for(var c=!0,u=0;u<K;u++){var h=L[u].JSC$19901_mapId,J=L[u].map;h-=A;if(h<0)A=Math.max(0,L[u].JSC$19901_mapId-100),c=!1;else try{h="req"+h+"_"||"";try{var N=J instanceof Map?J:Object.entries(J);for(var D=_.g(N),t=D.next();!t.done;t=D.next()){var a=_.g(t.value),v=a.next().value,I=a.next().value,
Z=I;_.Ud(I)&&(Z=_.rO(I));O.push(h+v+"="+encodeURIComponent(Z))}}catch(k){throw O.push(h+"type="+encodeURIComponent("_badmap")),k;}}catch(k){W&&W(J)}}if(c){N=O.join("&");break a}}N=void 0}m=m.JSC$19913_outgoingMaps_.splice(0,K);G.JSC$19894_pendingMessages_=m;return N},URu=function(m){m.JSC$19913_backChannelRequest_||m.JSC$19913_backChannelTimerId_||(m.JSC$19913_backChannelAttemptId_=1,_.wO(m.JSC$19915_onStartBackChannelTimer_,m),m.JSC$19913_backChannelRetryCount_=0)},E6D=function(m){if(m.JSC$19913_backChannelRequest_||
m.JSC$19913_backChannelTimerId_||m.JSC$19913_backChannelRetryCount_>=3)return!1;
m.JSC$19913_channelDebug_.debug("Going to retry GET");m.JSC$19913_backChannelAttemptId_++;m.JSC$19913_backChannelTimerId_=jt6((0,_.AO)(m.JSC$19915_onStartBackChannelTimer_,m),xRD(m,m.JSC$19913_backChannelRetryCount_));m.JSC$19913_backChannelRetryCount_++;return!0};
F1.prototype.JSC$19915_onStartBackChannelTimer_=function(){this.JSC$19913_backChannelTimerId_=null;zhD(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19913_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19913_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19913_backChannelRequest_+" "+this.handshakeRttMs_);else{var m=4*this.handshakeRttMs_;this.JSC$19913_channelDebug_.info("BP detection timer enabled: "+m);this.bpDetectionTimerId_=jt6((0,_.AO)(this.onBpDetectionTimer_,
this),m)}};
F1.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19913_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19913_backChannelRequest_.JSC$19894_xmlHttp_!=null){var m=this.JSC$19913_backChannelRequest_.JSC$19894_xmlHttp_.getResponseText();m&&this.JSC$19913_channelDebug_.warning("Timer should have been cancelled : "+m)}this.JSC$19913_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Jk(10);qDD(this);zhD(this)}else this.JSC$19913_channelDebug_.warning("Invalid operation.")};
var b5P=function(m){m.bpDetectionTimerId_!=null&&(m.JSC$19913_channelDebug_.debug("Cancel the BP detection timer."),_.Ks.clearTimeout(m.bpDetectionTimerId_),m.bpDetectionTimerId_=null)},zhD=function(m){m.JSC$19913_channelDebug_.debug("Creating new HttpRequest");
m.JSC$19913_backChannelRequest_=new Dr(m,m.JSC$19913_channelDebug_,m.sid_,"rpc",m.JSC$19913_backChannelAttemptId_);m.httpHeadersOverwriteParam_===null&&(m.JSC$19913_backChannelRequest_.JSC$19894_extraHeaders_=m.JSC$19913_extraHeaders_);m.JSC$19913_backChannelRequest_.JSC$19894_readyStateChangeThrottleMs_=0;var G=m.JSC$19913_backChannelUri_.clone();_.Ct(G,"RID","rpc");_.Ct(G,"SID",m.sid_);_.Ct(G,"AID",m.JSC$19913_lastArrayId_);_.Ct(G,"CI",m.enableStreaming_?"0":"1");!m.enableStreaming_&&m.longPollingTimeout_&&
_.Ct(G,"TO",m.longPollingTimeout_);_.Ct(G,"TYPE","xmlhttp");eh6(m,G);m.httpHeadersOverwriteParam_&&m.JSC$19913_extraHeaders_&&LHz(G,m.httpHeadersOverwriteParam_,m.JSC$19913_extraHeaders_);m.backChannelRequestTimeoutMs_&&m.JSC$19913_backChannelRequest_.setTimeout(m.backChannelRequestTimeoutMs_);var K=m.JSC$19913_backChannelRequest_,W=m.JSC$19913_hostPrefix_;K.JSC$19894_type_=1;K.JSC$19894_baseUri_=_.y7(G.clone());K.JSC$19894_postData_=null;K.decodeChunks_=!0;cx6(K,W);m.JSC$19913_channelDebug_.debug("New Request created")};
F1.prototype.JSC$19915_onBackChannelDead_=function(){this.JSC$19913_deadBackChannelTimerId_!=null&&(this.JSC$19913_deadBackChannelTimerId_=null,qDD(this),E6D(this),Jk(19))};
var sqW=function(m){m.JSC$19913_deadBackChannelTimerId_!=null&&(_.Ks.clearTimeout(m.JSC$19913_deadBackChannelTimerId_),m.JSC$19913_deadBackChannelTimerId_=null)},afP=function(m,G){m.JSC$19913_channelDebug_.debug("Request complete");
var K=null;if(m.JSC$19913_backChannelRequest_==G){sqW(m);b5P(m);m.JSC$19913_backChannelRequest_=null;var W=2}else if($RD(m.forwardChannelRequestPool_,G))K=G.JSC$19894_pendingMessages_,Cm6(m.forwardChannelRequestPool_,G),W=1;else return;if(m.state_!=0)if(G.JSC$19894_successful_)W==1?(I75(G.JSC$19894_postData_?G.JSC$19894_postData_.length:0,Date.now()-G.JSC$19894_requestStartTime_,m.JSC$19913_forwardChannelRetryCount_),PmW(m)):URu(m);else{var L=G.JSC$19894_lastStatusCode_,A=G.getLastError();if(A==3||
A==0&&L>0)m.JSC$19913_channelDebug_.debug("Not retrying due to error type"),L>200&&(m.errorResponseStatusCode_=G.JSC$19894_lastStatusCode_);else{m.JSC$19913_channelDebug_.debug(function(){return"Maybe retrying, last error: "+wi5(A,m.errorResponseStatusCode_)});
if(W==1&&XiD(m,G)||W==2&&E6D(m))return;m.JSC$19913_channelDebug_.debug("Exceeded max number of retries")}K&&K.length>0&&Z5s(m.forwardChannelRequestPool_,K);m.JSC$19913_channelDebug_.debug("Error: HTTP request failed");switch(A){case 1:uR(m,5);break;case 4:uR(m,10);break;case 3:uR(m,6);break;default:uR(m,2)}}},xRD=function(m,G){var K=m.JSC$19913_baseRetryDelayMs_+Math.floor(Math.random()*m.JSC$19913_retryDelaySeedMs_);
m.isActive()||(m.JSC$19913_channelDebug_.debug("Inactive channel"),K*=2);return K*G};
F1.prototype.onInput_=function(m,G){for(var K=0;K<m.length;K++){var W=m[K],L=W[0];if(L<=this.JSC$19913_lastArrayId_)this.JSC$19913_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+L+", lastArrayId: "+this.JSC$19913_lastArrayId_);else if(L>this.JSC$19913_lastArrayId_+1&&this.JSC$19913_lastArrayId_>-1&&this.JSC$19913_channelDebug_.warning("Received non-consecutive message with arrayId: "+L+", lastArrayId: "+this.JSC$19913_lastArrayId_),this.JSC$19913_lastArrayId_=L,
W=W[1],this.state_==2)if(W[0]=="c"){this.sid_=W[1];this.JSC$19913_hostPrefix_=W[2];L=W[3];L!=null&&(this.JSC$19915_channelVersion_=L,this.JSC$19913_channelDebug_.info("VER="+this.JSC$19915_channelVersion_));L=W[4];L!=null&&(this.serverVersion_=L,this.JSC$19913_channelDebug_.info("SVER="+this.serverVersion_));W=W[5];W!=null&&typeof W==="number"&&W>0&&(this.backChannelRequestTimeoutMs_=W*=1.5,this.JSC$19913_channelDebug_.info("backChannelRequestTimeoutMs_="+W));if(W=G.JSC$19894_xmlHttp_){var A=iGi(W,
"X-Client-Wire-Protocol");A&&(L=this.forwardChannelRequestPool_,!L.requestPool_&&(_.cJ(A,"spdy")||_.cJ(A,"quic")||_.cJ(A,"h2"))&&(L.JSC$19904_maxSize_=L.maxPoolSizeConfigured_,L.requestPool_=new Set,L.JSC$19904_request_&&(kxE(L,L.JSC$19904_request_),L.JSC$19904_request_=null)));this.httpSessionIdParam_&&((W=iGi(W,"X-HTTP-Session-Id"))?(this.httpSessionId_=W,_.Ct(this.JSC$19913_forwardChannelUri_,this.httpSessionIdParam_,W)):this.JSC$19913_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19919_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-G.JSC$19894_requestStartTime_,this.JSC$19913_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));W=G;L=dRi(this,this.JSC$19913_supportsCrossDomainXhrs_?this.JSC$19913_hostPrefix_:null,this.JSC$19913_path_);this.JSC$19913_channelDebug_.debug("GetBackChannelUri: "+L);this.JSC$19913_backChannelUri_=L;W.initialResponseDecoded_?(this.JSC$19913_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
Cm6(this.forwardChannelRequestPool_,W),L=W,(A=this.backChannelRequestTimeoutMs_)&&L.setTimeout(A),L.JSC$19894_watchDogTimerId_&&(JxG(L),rx5(L)),this.JSC$19913_backChannelRequest_=W):URu(this);this.JSC$19913_outgoingMaps_.length>0&&PmW(this)}else W[0]!="stop"&&W[0]!="close"||uR(this,7);else this.state_==3&&(W[0]=="stop"||W[0]=="close"?W[0]=="stop"?uR(this,7):this.disconnect():W[0]!="noop"&&this.handler_&&this.handler_.JSC$19919_channelHandleArray(W),this.JSC$19913_backChannelRetryCount_=0)}};
var uR=function(m,G){m.JSC$19913_channelDebug_.info("Error code "+G);if(G==2){var K=(0,_.AO)(m.testNetworkCallback_,m),W=m.networkTestUrl_,L=!W;W=new _.aQ(W||"//www.google.com/images/cleardot.gif");_.Ks.location&&_.Ks.location.protocol=="http"||_.HW(W,"https");_.y7(W);L?C0q(W.toString(),K):VbE(W.toString(),K)}else Jk(2);m.onError_(G)};
F1.prototype.testNetworkCallback_=function(m){m?(this.JSC$19913_channelDebug_.info("Successfully pinged google.com"),Jk(2)):(this.JSC$19913_channelDebug_.info("Failed to ping google.com"),Jk(1))};
F1.prototype.onError_=function(m){this.JSC$19913_channelDebug_.debug("HttpChannel: error - "+m);this.state_=0;this.handler_&&this.handler_.JSC$19919_channelError(m);ffW(this);yxE(this)};
var ffW=function(m){m.state_=0;m.nonAckedMapsAtChannelClose_=[];if(m.handler_){var G=Vps(m.forwardChannelRequestPool_);if(G.length!=0||m.JSC$19913_outgoingMaps_.length!=0)m.JSC$19913_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+G.length+", outgoing: "+m.JSC$19913_outgoingMaps_.length}),_.RM(m.nonAckedMapsAtChannelClose_,G),_.RM(m.nonAckedMapsAtChannelClose_,m.JSC$19913_outgoingMaps_),m.forwardChannelRequestPool_.JSC$19904_pendingMessages_.length=0,_.yf(m.JSC$19913_outgoingMaps_),
m.JSC$19913_outgoingMaps_.length=0;
m.handler_.JSC$19919_channelClosed()}},lf5=function(m){if(m.state_==0)return m.nonAckedMapsAtChannelClose_;
var G=[];_.RM(G,Vps(m.forwardChannelRequestPool_));_.RM(G,m.JSC$19913_outgoingMaps_);return G},dRi=function(m,G,K){var W=_.jU(K);
W.JSC$10339_domain_!=""?(G&&_.Ia(W,G+"."+W.JSC$10339_domain_),_.jm(W,W.JSC$10339_port_)):(W=_.Ks.location,W=qLO(W.protocol,G?G+"."+W.hostname:W.hostname,+W.port,K));G=m.httpSessionIdParam_;K=m.httpSessionId_;G&&K&&_.Ct(W,G,K);_.Ct(W,"VER",m.JSC$19915_channelVersion_);eh6(m,W);return W},uqP=function(m,G,K){if(G&&!m.JSC$19913_supportsCrossDomainXhrs_)throw Error("Qk");
G=m.usesFetchStreams_&&!m.JSC$19913_xmlHttpFactory_?new _.uZ(new mAD({streamBinaryChunks:K})):new _.uZ(m.JSC$19913_xmlHttpFactory_);G.JSC$10103_withCredentials_=m.JSC$19913_supportsCrossDomainXhrs_;return G};
F1.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var BEG=function(){};
_.w=BEG.prototype;_.w.JSC$19919_channelOpened=function(){};
_.w.JSC$19919_channelHandleArray=function(){};
_.w.JSC$19919_channelError=function(){};
_.w.JSC$19919_channelClosed=function(){};
_.w.isActive=function(){return!0};
_.w.JSC$19919_badMapError=function(){};var pI=function(m,G){_.ai.call(this);this.JSC$19922_channel_=new F1(G);this.JSC$19922_url_=m;this.messageUrlParams_=G&&G.messageUrlParams||null;m=G&&G.messageHeaders||null;G&&G.clientProtocolHeaderRequired&&(m?_.Y2.set(m,"X-Client-Protocol","webchannel"):m=_.Y2.create("X-Client-Protocol","webchannel"));this.JSC$19922_channel_.JSC$19913_extraHeaders_=m;m=G&&G.initMessageHeaders||null;G&&G.messageContentType&&(m?_.Y2.set(m,"X-WebChannel-Content-Type",G.messageContentType):m=_.Y2.create("X-WebChannel-Content-Type",
G.messageContentType));G&&G.clientProfile&&(m?_.Y2.set(m,"X-WebChannel-Client-Profile",G.clientProfile):m=_.Y2.create("X-WebChannel-Client-Profile",G.clientProfile));this.JSC$19922_channel_.initHeaders_=m;(m=G&&G.httpHeadersOverwriteParam)&&!_.Od(m)&&(this.JSC$19922_channel_.httpHeadersOverwriteParam_=m);this.supportsCrossDomainXhr_=G&&G.supportsCrossDomainXhr||!1;this.sendRawJson_=G&&G.sendRawJson||!1;(G=G&&G.httpSessionIdParam)&&!_.Od(G)&&(this.JSC$19922_channel_.httpSessionIdParam_=G,_.Y2.containsKey(this.messageUrlParams_,
G)&&_.Y2.remove(this.messageUrlParams_,G));this.channelHandler_=new hF(this)};
_.kJ(pI,_.ai);pI.prototype.open=function(){this.JSC$19922_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19922_channel_.JSC$19913_supportsCrossDomainXhrs_=!0);this.JSC$19922_channel_.connect(this.JSC$19922_url_,this.messageUrlParams_||void 0)};
pI.prototype.close=function(){this.JSC$19922_channel_.disconnect()};
pI.prototype.send=function(m){var G=this.JSC$19922_channel_;if(typeof m==="string"){var K={};K.__data__=m;m=K}else this.sendRawJson_&&(K={},K.__data__=_.rO(m),m=K);G.JSC$19913_outgoingMaps_.push(new IfW(G.JSC$19913_nextMapId_++,m));G.state_==3&&PmW(G)};
pI.prototype.disposeInternal=function(){this.JSC$19922_channel_.handler_=null;delete this.channelHandler_;this.JSC$19922_channel_.disconnect();delete this.JSC$19922_channel_;pI.superClass_.disposeInternal.call(this)};
var Mps=function(m){i5E.call(this);m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var G=m.__sm__;G?this.data=(this.metadataKey=_.Y2.getAnyKey(G))?_.Y2.get(G,this.metadataKey):G:this.data=m};
_.kJ(Mps,i5E);var TE5=function(m){GxP.call(this);this.status=1;this.errorCode=m};
_.kJ(TE5,GxP);var hF=function(m){this.JSC$19929_channel_=m};
_.kJ(hF,BEG);hF.prototype.JSC$19919_channelOpened=function(){this.JSC$19929_channel_.dispatchEvent("w")};
hF.prototype.JSC$19919_channelHandleArray=function(m){this.JSC$19929_channel_.dispatchEvent(new Mps(m))};
hF.prototype.JSC$19919_channelError=function(m){this.JSC$19929_channel_.dispatchEvent(new TE5(m))};
hF.prototype.JSC$19919_channelClosed=function(){this.JSC$19929_channel_.dispatchEvent("x")};
var mS6=function(m,G){this.transportChannel_=m;this.JSC$19932_channel_=G},i9q=function(m){return lf5(m.JSC$19932_channel_).map(function(G){var K=m.transportChannel_;
G=G.map;"__data__"in G?(G=G.__data__,K=K.sendRawJson_?_.ESX(G):G):K=G;return K})};
mS6.prototype.commit=function(m){this.JSC$19932_channel_.forwardChannelFlushedCallback_=m};var GMP=function(m,G,K){for(var W=0;W<m.getSize().height;W++)for(var L=0;L<m.getSize().width;L++)G.call(K,m.array_[W][L],W,L,m)},KsG=function(m,G){var K=new Q_(m.getSize());
GMP(m,function(W,L,A){K.array_[L][A]=G.call(void 0,W,L,A,m)});
return K},f7q=function(m,G){for(var K=[],W=0;W<m;W++){K[W]=[];
for(var L=0;L<G;L++)K[W][L]=0}return K};
Q_.prototype.add=function(m){if(!oK6(this.size_,m.getSize()))throw Error("Tk");return KsG(this,function(G,K,W){return G+m.array_[K][W]})};
Q_.prototype.equals=function(m,G){if(this.size_.width!=m.size_.width||this.size_.height!=m.size_.height)return!1;G=G||0;for(var K=0;K<this.size_.height;K++)for(var W=0;W<this.size_.width;W++)if(!azs(this.array_[K][W],m.array_[K][W],G))return!1;return!0};
Q_.prototype.getSize=function(){return this.size_};
var JF=function(m,G,K){return G>=0&&G<m.size_.height&&K>=0&&K<m.size_.width?m.array_[G][K]:null};
Q_.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var WsD=function(m,G,K,W){if(!(G>=0&&G<m.size_.height&&K>=0&&K<m.size_.width))throw Error("Uk`"+G+"`"+K+"`"+m.size_.height+"`"+m.size_.width);m.array_[G][K]=W};
Q_.prototype.multiply=function(m){if(m instanceof Q_){if(this.size_.width!=m.getSize().height)throw Error("Vk");return LsE(this,m)}if(typeof m==="number")return ASq(this,m);throw Error("Wk");};
var LsE=function(m,G){var K=new Q_(m.size_.height,G.getSize().width);GMP(K,function(W,L,A){for(var O=W=0;O<this.size_.width;O++)W+=JF(this,L,O)*JF(G,O,A);WsD(K,L,A,W)},m);
return K},ASq=function(m,G){return KsG(m,function(K){return K*G})};var NZ=function(m){wTq.dispatchEvent(new gj6(wTq,m))},wTq=new _.ai,gj6=function(m,G){_.dM.call(this,"statevent",m);
this.stat=G};
_.n(gj6,_.dM);_.w=oz.prototype;_.w.JSC$19942_extraHeaders_=null;_.w.JSC$19942_successful_=!1;_.w.JSC$19942_watchDogTimerId_=null;_.w.JSC$19942_watchDogTimeoutTime_=null;_.w.JSC$19942_requestStartTime_=null;_.w.JSC$19942_type_=null;_.w.JSC$19942_baseUri_=null;_.w.JSC$19942_requestUri_=null;_.w.JSC$19942_postData_=null;_.w.JSC$19942_xmlHttp_=null;_.w.JSC$19942_xmlHttpChunkStart_=0;_.w.trident_=null;_.w.JSC$19942_verb_=null;_.w.JSC$19942_lastError_=null;_.w.JSC$19942_lastStatusCode_=-1;_.w.sendClose_=!0;
_.w.JSC$19942_cancelled_=!1;_.w.JSC$19942_readyStateChangeThrottleMs_=0;_.w.JSC$19942_readyStateChangeThrottle_=null;var O9i=function(m,G){switch(m){case 0:return"Non-200 return code ("+G+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},cS5={},YWs={};
oz.prototype.setTimeout=function(m){this.timeout_=m};
var uaW=function(m,G,K){m.JSC$19942_type_=1;m.JSC$19942_baseUri_=_.y7(G.clone());m.JSC$19942_postData_=K;m.decodeChunks_=!0;rSE(m,null)},hwO=function(m,G,K,W,L){m.JSC$19942_type_=1;
m.JSC$19942_baseUri_=_.y7(G.clone());m.JSC$19942_postData_=null;m.decodeChunks_=K;L&&(m.sendClose_=!1);rSE(m,W)},rSE=function(m,G){m.JSC$19942_requestStartTime_=Date.now();
pTE(m);m.JSC$19942_requestUri_=m.JSC$19942_baseUri_.clone();Y5u(m.JSC$19942_requestUri_,"t",m.JSC$19940_retryId_);m.JSC$19942_xmlHttpChunkStart_=0;m.JSC$19942_xmlHttp_=m.JSC$19940_channel_.JSC$19949_createXhrIo(m.JSC$19940_channel_.JSC$19949_shouldUseSecondaryDomains()?G:null);m.JSC$19942_readyStateChangeThrottleMs_>0&&(m.JSC$19942_readyStateChangeThrottle_=new _.yO((0,_.AO)(m.JSC$19942_xmlHttpHandler_,m,m.JSC$19942_xmlHttp_),m.JSC$19942_readyStateChangeThrottleMs_));m.JSC$19940_eventHandler_.listen(m.JSC$19942_xmlHttp_,
"readystatechange",m.JSC$19942_readyStateChangeHandler_);G=m.JSC$19942_extraHeaders_?_.Y2.clone(m.JSC$19942_extraHeaders_):{};m.JSC$19942_postData_?(m.JSC$19942_verb_="POST",G["Content-Type"]="application/x-www-form-urlencoded",m.JSC$19942_xmlHttp_.send(m.JSC$19942_requestUri_,m.JSC$19942_verb_,m.JSC$19942_postData_,G)):(m.JSC$19942_verb_="GET",m.sendClose_&&!_.zb&&(G.Connection="close"),m.JSC$19942_xmlHttp_.send(m.JSC$19942_requestUri_,m.JSC$19942_verb_,null,G));m.JSC$19940_channel_.notifyServerReachabilityEvent(1);
G=m.JSC$19940_channelDebug_;var K=m.JSC$19942_postData_;if(K){var W="";K=K.split("&");for(var L=0;L<K.length;L++){var A=K[L].split("=");if(A.length>1){var O=A[0];A=A[1];var c=O.split("_");W=c.length>=2&&c[1]=="type"?W+(O+"="+A+"&"):W+(O+"=redacted&")}}}else W=null;G.info("XMLHTTP REQ ("+m.JSC$19940_rid_+") [attempt "+m.JSC$19940_retryId_+"]: "+m.JSC$19942_verb_+"\n"+m.JSC$19942_requestUri_+"\n"+W)};
oz.prototype.JSC$19942_readyStateChangeHandler_=function(m){m=m.target;var G=this.JSC$19942_readyStateChangeThrottle_;G&&_.hz(m)==3?(this.JSC$19940_channelDebug_.debug("Throttling readystatechange."),G.fire()):this.JSC$19942_xmlHttpHandler_(m)};
oz.prototype.JSC$19942_xmlHttpHandler_=function(m){try{if(m==this.JSC$19942_xmlHttp_)a:{var G=_.hz(this.JSC$19942_xmlHttp_),K=this.JSC$19942_xmlHttp_.JSC$10103_lastErrorCode_,W=this.JSC$19942_xmlHttp_.getStatus();if(_.zb&&!_.yP("420+")){if(G<4)break a}else if(G<3||G==3&&!this.JSC$19942_xmlHttp_.getResponseText())break a;this.JSC$19942_cancelled_||G!=4||K==7||(K==8||W<=0?this.JSC$19940_channel_.notifyServerReachabilityEvent(3):this.JSC$19940_channel_.notifyServerReachabilityEvent(2));JSz(this);var L=
this.JSC$19942_xmlHttp_.getStatus();this.JSC$19942_lastStatusCode_=L;var A=this.JSC$19942_xmlHttp_.getResponseText();A||this.JSC$19940_channelDebug_.debug("No response text for uri "+this.JSC$19942_requestUri_+" status "+L);this.JSC$19942_successful_=L==200;this.JSC$19940_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19940_rid_+") [ attempt "+this.JSC$19940_retryId_+"]: "+this.JSC$19942_verb_+"\n"+this.JSC$19942_requestUri_+"\n"+G+" "+L);if(this.JSC$19942_successful_){G==4&&Nt6(this);if(this.decodeChunks_){for(m=
!0;!this.JSC$19942_cancelled_&&this.JSC$19942_xmlHttpChunkStart_<A.length;){var O=DS6(this,A);if(O==YWs){G==4&&(this.JSC$19942_lastError_=4,NZ(15),m=!1);tBz(this.JSC$19940_channelDebug_,this.JSC$19940_rid_,null,"[Incomplete Response]");break}else if(O==cS5){this.JSC$19942_lastError_=4;NZ(16);tBz(this.JSC$19940_channelDebug_,this.JSC$19940_rid_,A,"[Invalid Chunk]");m=!1;break}else tBz(this.JSC$19940_channelDebug_,this.JSC$19940_rid_,O,null),FsE(this,O)}G==4&&A.length==0&&(this.JSC$19942_lastError_=
1,NZ(17),m=!1);this.JSC$19942_successful_=this.JSC$19942_successful_&&m;m||(tBz(this.JSC$19940_channelDebug_,this.JSC$19940_rid_,A,"[Invalid Chunked Response]"),Nt6(this),Qui(this))}else tBz(this.JSC$19940_channelDebug_,this.JSC$19940_rid_,A,null),FsE(this,A);this.JSC$19942_successful_&&!this.JSC$19942_cancelled_&&(G==4?this.JSC$19940_channel_.JSC$19949_onRequestComplete(this):(this.JSC$19942_successful_=!1,pTE(this)))}else L==400&&A.indexOf("Unknown SID")>0?(this.JSC$19942_lastError_=3,NZ(13),this.JSC$19940_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19940_rid_+")")):(this.JSC$19942_lastError_=0,NZ(14),this.JSC$19940_channelDebug_.warning("XMLHTTP Bad status "+L+" ("+this.JSC$19940_rid_+")")),Nt6(this),Qui(this)}else this.JSC$19940_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$19940_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var DS6=function(m,G){var K=m.JSC$19942_xmlHttpChunkStart_,W=G.indexOf("\n",K);if(W==-1)return YWs;K=Number(G.substring(K,W));if(isNaN(K))return cS5;W+=1;if(W+K>G.length)return YWs;G=G.slice(W,W+K);m.JSC$19942_xmlHttpChunkStart_=W+K;return G};
oz.prototype.cancel=function(){this.JSC$19942_cancelled_=!0;Nt6(this)};
var pTE=function(m){m.JSC$19942_watchDogTimeoutTime_=Date.now()+m.timeout_;an6(m,m.timeout_)},an6=function(m,G){if(m.JSC$19942_watchDogTimerId_!=null)throw Error("Pk");
m.JSC$19942_watchDogTimerId_=az((0,_.AO)(m.JSC$19942_onWatchDogTimeout_,m),G)},JSz=function(m){m.JSC$19942_watchDogTimerId_&&(_.Ks.clearTimeout(m.JSC$19942_watchDogTimerId_),m.JSC$19942_watchDogTimerId_=null)};
oz.prototype.JSC$19942_onWatchDogTimeout_=function(){this.JSC$19942_watchDogTimerId_=null;var m=Date.now();m-this.JSC$19942_watchDogTimeoutTime_>=0?(this.JSC$19940_channelDebug_.info("TIMEOUT: "+this.JSC$19942_requestUri_),this.JSC$19942_type_!=2&&this.JSC$19940_channel_.notifyServerReachabilityEvent(3),Nt6(this),this.JSC$19942_lastError_=2,NZ(18),Qui(this)):(this.JSC$19940_channelDebug_.warning("WatchDog timer called too early"),an6(this,this.JSC$19942_watchDogTimeoutTime_-m))};
var Qui=function(m){m.JSC$19940_channel_.JSC$19949_isClosed()||m.JSC$19942_cancelled_||m.JSC$19940_channel_.JSC$19949_onRequestComplete(m)},Nt6=function(m){JSz(m);
_.I$(m.JSC$19942_readyStateChangeThrottle_);m.JSC$19942_readyStateChangeThrottle_=null;m.pollingTimer_.stop();m.JSC$19940_eventHandler_.removeAll();if(m.JSC$19942_xmlHttp_){var G=m.JSC$19942_xmlHttp_;m.JSC$19942_xmlHttp_=null;G.abort();G.dispose()}m.trident_&&(m.trident_=null)};
oz.prototype.getLastError=function(){return this.JSC$19942_lastError_};
var FsE=function(m,G){try{m.JSC$19940_channel_.JSC$19949_onRequestData(m,G),m.JSC$19940_channel_.notifyServerReachabilityEvent(4)}catch(K){}};var tBz=function(m,G,K,W){var L=m.info;a:if(K&&K!="y2f%"){try{var A=JSON.parse(K);if(A)for(var O=0;O<A.length;O++)if(Array.isArray(A[O])){var c=A[O];if(!(c.length<2)){var u=c[1];if(Array.isArray(u)&&!(u.length<1)){var h=u[0];if(h!="noop"&&h!="stop")for(var J=1;J<u.length;J++)u[J]=""}}}var N=_.rO(A);break a}catch(D){m.debug("Exception parsing expected JS array - probably was not JS");N=K;break a}N=void 0}else N=K;L.call(m,"XMLHTTP TEXT ("+G+"): "+N+(W?" "+W:""))};
ni.prototype.debug=function(m){this.info(m)};
ni.prototype.info=function(){};
ni.prototype.warning=function(){};_.w=RgW.prototype;_.w.JSC$19949_extraHeaders_=null;_.w.JSC$19949_request_=null;_.w.receivedIntermediateResult_=!1;_.w.JSC$19949_path_=null;_.w.state_=null;_.w.JSC$19949_lastStatusCode_=-1;_.w.JSC$19949_hostPrefix_=null;_.w.blockedPrefix_=null;
_.w.connect=function(m){this.JSC$19949_path_=m;m=ojO(this.JSC$19947_channel_,this.JSC$19949_path_);NZ(3);Date.now();var G=this.JSC$19947_channel_.firstTestResults_;G!=null?(this.JSC$19949_hostPrefix_=G[0],(this.blockedPrefix_=G[1])?(this.state_=1,nj6(this)):(this.state_=2,b95(this))):(Y5u(m,"MODE","init"),this.JSC$19949_request_=new oz(this,this.JSC$19947_channelDebug_),this.JSC$19949_request_.JSC$19942_extraHeaders_=this.JSC$19949_extraHeaders_,hwO(this.JSC$19949_request_,m,!1,null,!0),this.state_=
0)};
var nj6=function(m){var G=vjO(m.JSC$19947_channel_,m.blockedPrefix_,"/mail/images/cleardot.gif");_.y7(G);Xei(G.toString(),5E3,(0,_.AO)(m.checkBlockedCallback_,m),3,2E3);m.notifyServerReachabilityEvent(1)};
RgW.prototype.checkBlockedCallback_=function(m){if(m)this.state_=2,b95(this);else{NZ(4);var G=this.JSC$19947_channel_;G.JSC$19950_channelDebug_.debug("Test Connection Blocked");G.JSC$19954_lastStatusCode_=G.connectionTest_.JSC$19949_lastStatusCode_;DZ(G,9)}m&&this.notifyServerReachabilityEvent(2)};
var b95=function(m){m.JSC$19947_channelDebug_.debug("TestConnection: starting stage 2");var G=m.JSC$19947_channel_.secondTestResults_;G!=null?(m.JSC$19947_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+G?"Buffered":"Unbuffered"),NZ(5),G?(NZ(11),$Ss(m.JSC$19947_channel_,m,!1)):(NZ(12),$Ss(m.JSC$19947_channel_,m,!0))):(m.JSC$19949_request_=new oz(m,m.JSC$19947_channelDebug_),m.JSC$19949_request_.JSC$19942_extraHeaders_=m.JSC$19949_extraHeaders_,G=sus(m.JSC$19947_channel_,
m.JSC$19949_hostPrefix_,m.JSC$19949_path_),NZ(5),Y5u(G,"TYPE","xmlhttp"),hwO(m.JSC$19949_request_,G,!1,m.JSC$19949_hostPrefix_,!1))};
_.w=RgW.prototype;_.w.JSC$19949_createXhrIo=function(m){return this.JSC$19947_channel_.JSC$19949_createXhrIo(m)};
_.w.abort=function(){this.JSC$19949_request_&&(this.JSC$19949_request_.cancel(),this.JSC$19949_request_=null);this.JSC$19949_lastStatusCode_=-1};
_.w.JSC$19949_isClosed=function(){return!1};
_.w.JSC$19949_onRequestData=function(m,G){this.JSC$19949_lastStatusCode_=m.JSC$19942_lastStatusCode_;if(this.state_==0)if(this.JSC$19947_channelDebug_.debug("TestConnection: Got data for stage 1"),G){try{var K=this.JSC$19947_parser_.parse(G)}catch(W){qWW(this.JSC$19947_channel_,this);return}this.JSC$19949_hostPrefix_=K[0];this.blockedPrefix_=K[1]}else this.JSC$19947_channelDebug_.debug("TestConnection: Null responseText"),qWW(this.JSC$19947_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(NZ(7),Date.now()):G=="11111"?(NZ(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19949_lastStatusCode_=200,this.JSC$19949_request_.cancel(),this.JSC$19947_channelDebug_.debug("Test connection succeeded; using streaming connection"),NZ(12),$Ss(this.JSC$19947_channel_,this,!0)):(NZ(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.w.JSC$19949_onRequestComplete=function(){this.JSC$19949_lastStatusCode_=this.JSC$19949_request_.JSC$19942_lastStatusCode_;this.JSC$19949_request_.JSC$19942_successful_?this.state_==0?(this.JSC$19947_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,nj6(this)):(this.state_=2,b95(this))):this.state_==2&&(this.JSC$19947_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19947_channelDebug_.debug("Test connection succeeded; using streaming connection"),
NZ(12),$Ss(this.JSC$19947_channel_,this,!0)):(this.JSC$19947_channelDebug_.debug("Test connection failed; not using streaming"),NZ(11),$Ss(this.JSC$19947_channel_,this,!1))):(this.JSC$19947_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?NZ(9):this.state_==2&&NZ(10),qWW(this.JSC$19947_channel_,this,this.JSC$19949_request_.getLastError()))};
_.w.JSC$19949_shouldUseSecondaryDomains=function(){return this.JSC$19947_channel_.JSC$19949_shouldUseSecondaryDomains()};
_.w.isActive=function(){return this.JSC$19947_channel_.isActive()};
_.w.notifyServerReachabilityEvent=function(m){this.JSC$19947_channel_.notifyServerReachabilityEvent(m)};var Eju=function(m,G){this.JSC$19952_mapId=m;this.map=G;this.context=null};
_.w=b2.prototype;_.w.JSC$19954_extraHeaders_=null;_.w.JSC$19954_extraParams_=null;_.w.forwardChannelRequest_=null;_.w.JSC$19954_backChannelRequest_=null;_.w.JSC$19954_path_=null;_.w.JSC$19954_forwardChannelUri_=null;_.w.JSC$19954_backChannelUri_=null;_.w.JSC$19954_hostPrefix_=null;_.w.JSC$19954_nextRid_=0;_.w.JSC$19954_nextMapId_=0;_.w.handler_=null;_.w.JSC$19954_forwardChannelTimerId_=null;_.w.JSC$19954_backChannelTimerId_=null;_.w.JSC$19954_deadBackChannelTimerId_=null;_.w.connectionTest_=null;
_.w.useChunked_=null;_.w.JSC$19954_lastArrayId_=-1;_.w.JSC$19954_lastPostResponseArrayId_=-1;_.w.JSC$19954_lastStatusCode_=-1;_.w.JSC$19954_forwardChannelRetryCount_=0;_.w.JSC$19954_backChannelRetryCount_=0;_.w.JSC$19954_channelVersion_=8;var H9s={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},Ins=function(m,G,K,W){_.dM.call(this,"timingevent",m);this.size=G;this.rtt=K;this.retries=W};
_.kJ(Ins,_.dM);var juD=function(m){_.dM.call(this,"serverreachability",m)};
_.kJ(juD,_.dM);b2.prototype.connect=function(m,G,K,W,L){this.JSC$19950_channelDebug_.debug("connect()");NZ(0);this.JSC$19954_path_=G;this.JSC$19954_extraParams_=K||{};W&&L!==void 0&&(this.JSC$19954_extraParams_.OSID=W,this.JSC$19954_extraParams_.OAID=L);this.asyncTest_?(az((0,_.AO)(this.connectTest_,this,m),100),kM6(this)):this.connectTest_(m)};
b2.prototype.disconnect=function(){this.JSC$19950_channelDebug_.debug("disconnect()");Cn6(this);if(this.state_==3){var m=this.JSC$19954_nextRid_++,G=this.JSC$19954_forwardChannelUri_.clone();_.Ct(G,"SID",this.sid_);_.Ct(G,"RID",m);_.Ct(G,"TYPE","terminate");VBi(this,G);m=new oz(this,this.JSC$19950_channelDebug_,this.sid_,m);m.JSC$19942_type_=2;m.JSC$19942_baseUri_=_.y7(G.clone());(new Image).src=m.JSC$19942_baseUri_.toString();m.JSC$19942_requestStartTime_=Date.now();pTE(m)}Z9D(this)};
b2.prototype.connectTest_=function(m){this.JSC$19950_channelDebug_.debug("connectTest_()");this.connectionTest_=new RgW(this,this.JSC$19950_channelDebug_);this.connectionTest_.JSC$19949_extraHeaders_=this.JSC$19954_extraHeaders_;this.connectionTest_.JSC$19947_parser_=this.JSC$19950_parser_;this.connectionTest_.connect(m)};
var kM6=function(m){m.JSC$19950_channelDebug_.debug("connectChannel_()");m.JSC$19954_ensureInState_(1,0);m.JSC$19954_forwardChannelUri_=ojO(m,m.JSC$19954_path_);dSP(m)},Cn6=function(m){m.connectionTest_&&(m.connectionTest_.abort(),m.connectionTest_=null);
m.JSC$19954_backChannelRequest_&&(m.JSC$19954_backChannelRequest_.cancel(),m.JSC$19954_backChannelRequest_=null);m.JSC$19954_backChannelTimerId_&&(_.Ks.clearTimeout(m.JSC$19954_backChannelTimerId_),m.JSC$19954_backChannelTimerId_=null);Pn6(m);m.forwardChannelRequest_&&(m.forwardChannelRequest_.cancel(),m.forwardChannelRequest_=null);m.JSC$19954_forwardChannelTimerId_&&(_.Ks.clearTimeout(m.JSC$19954_forwardChannelTimerId_),m.JSC$19954_forwardChannelTimerId_=null)},ySE=function(m,G){if(m.state_==0)throw Error("Xk");
m.JSC$19950_outgoingMaps_.length==1E3&&m.JSC$19950_parser_.stringify(G);m.JSC$19950_outgoingMaps_.push(new Eju(m.JSC$19954_nextMapId_++,G));m.state_!=2&&m.state_!=3||dSP(m)};
b2.prototype.JSC$19949_isClosed=function(){return this.state_==0};
b2.prototype.getState=function(){return this.state_};
var dSP=function(m){m.forwardChannelRequest_||m.JSC$19954_forwardChannelTimerId_||(m.JSC$19954_forwardChannelTimerId_=az((0,_.AO)(m.JSC$19954_onStartForwardChannelTimer_,m),0),m.JSC$19954_forwardChannelRetryCount_=0)};
b2.prototype.JSC$19954_onStartForwardChannelTimer_=function(m){this.JSC$19954_forwardChannelTimerId_=null;ewP(this,m)};
var ewP=function(m,G){m.JSC$19950_channelDebug_.debug("startForwardChannel_");if(m.state_==1){if(!G){m.JSC$19950_channelDebug_.debug("open_()");m.JSC$19954_nextRid_=Math.floor(Math.random()*1E5);G=m.JSC$19954_nextRid_++;var K=new oz(m,m.JSC$19950_channelDebug_,"",G);K.JSC$19942_extraHeaders_=m.JSC$19954_extraHeaders_;var W=fni(m),L=m.JSC$19954_forwardChannelUri_.clone();_.Ct(L,"RID",G);_.Ct(L,"CVER","1");VBi(m,L);uaW(K,L,W);m.forwardChannelRequest_=K;m.state_=2}}else m.state_==3&&(G?xSW(m,G):m.JSC$19950_outgoingMaps_.length==
0?m.JSC$19950_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):m.forwardChannelRequest_||(xSW(m),m.JSC$19950_channelDebug_.debug("startForwardChannel_ finished, sent request")))},xSW=function(m,G){if(G)if(m.JSC$19954_channelVersion_>6){m.JSC$19950_outgoingMaps_=m.pendingMaps_.concat(m.JSC$19950_outgoingMaps_);
m.pendingMaps_.length=0;var K=m.JSC$19954_nextRid_-1;G=fni(m)}else K=G.JSC$19940_rid_,G=G.JSC$19942_postData_;else K=m.JSC$19954_nextRid_++,G=fni(m);var W=m.JSC$19954_forwardChannelUri_.clone();_.Ct(W,"SID",m.sid_);_.Ct(W,"RID",K);_.Ct(W,"AID",m.JSC$19954_lastArrayId_);VBi(m,W);K=new oz(m,m.JSC$19950_channelDebug_,m.sid_,K,m.JSC$19954_forwardChannelRetryCount_+1);K.JSC$19942_extraHeaders_=m.JSC$19954_extraHeaders_;K.setTimeout(1E4+Math.round(1E4*Math.random()));m.forwardChannelRequest_=K;uaW(K,W,
G)},VBi=function(m,G){m.handler_&&(m=m.handler_.JSC$19961_getAdditionalParams())&&_.Y2.forEach(m,function(K,W){_.Ct(G,W,K)})},fni=function(m){var G=Math.min(m.JSC$19950_outgoingMaps_.length,1E3),K=["count="+G];
if(m.JSC$19954_channelVersion_>6&&G>0){var W=m.JSC$19950_outgoingMaps_[0].JSC$19952_mapId;K.push("ofs="+W)}else W=0;for(var L={},A=0;A<G;L={mapId$jscomp$3:void 0},A++){L.mapId$jscomp$3=m.JSC$19950_outgoingMaps_[A].JSC$19952_mapId;var O=m.JSC$19950_outgoingMaps_[A].map;L.mapId$jscomp$3=m.JSC$19954_channelVersion_<=6?A:L.mapId$jscomp$3-W;try{_.Y2.forEach(O,function(c){return function(u,h){K.push("req"+c.mapId$jscomp$3+"_"+h+"="+encodeURIComponent(u))}}(L))}catch(c){K.push("req"+L.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}m.pendingMaps_=m.pendingMaps_.concat(m.JSC$19950_outgoingMaps_.splice(0,G));
return K.join("&")},XT5=function(m){m.JSC$19954_backChannelRequest_||m.JSC$19954_backChannelTimerId_||(m.JSC$19954_backChannelAttemptId_=1,m.JSC$19954_backChannelTimerId_=az((0,_.AO)(m.JSC$19954_onStartBackChannelTimer_,m),0),m.JSC$19954_backChannelRetryCount_=0)},Rw6=function(m){if(m.JSC$19954_backChannelRequest_||m.JSC$19954_backChannelTimerId_||m.JSC$19954_backChannelRetryCount_>=3)return!1;
m.JSC$19950_channelDebug_.debug("Going to retry GET");m.JSC$19954_backChannelAttemptId_++;m.JSC$19954_backChannelTimerId_=az((0,_.AO)(m.JSC$19954_onStartBackChannelTimer_,m),SWE(m,m.JSC$19954_backChannelRetryCount_));m.JSC$19954_backChannelRetryCount_++;return!0};
b2.prototype.JSC$19954_onStartBackChannelTimer_=function(){this.JSC$19954_backChannelTimerId_=null;this.JSC$19950_channelDebug_.debug("Creating new HttpRequest");this.JSC$19954_backChannelRequest_=new oz(this,this.JSC$19950_channelDebug_,this.sid_,"rpc",this.JSC$19954_backChannelAttemptId_);this.JSC$19954_backChannelRequest_.JSC$19942_extraHeaders_=this.JSC$19954_extraHeaders_;this.JSC$19954_backChannelRequest_.JSC$19942_readyStateChangeThrottleMs_=0;var m=this.JSC$19954_backChannelUri_.clone();_.Ct(m,
"RID","rpc");_.Ct(m,"SID",this.sid_);_.Ct(m,"CI",this.useChunked_?"0":"1");_.Ct(m,"AID",this.JSC$19954_lastArrayId_);VBi(this,m);_.Ct(m,"TYPE","xmlhttp");hwO(this.JSC$19954_backChannelRequest_,m,!0,this.JSC$19954_hostPrefix_,!1);this.JSC$19950_channelDebug_.debug("New Request created")};
var $Ss=function(m,G,K){m.JSC$19950_channelDebug_.debug("Test Connection Finished");m.useChunked_=m.secondTestResults_==null?K:!m.secondTestResults_;m.JSC$19954_lastStatusCode_=G.JSC$19949_lastStatusCode_;m.asyncTest_||kM6(m)},qWW=function(m,G){m.JSC$19950_channelDebug_.debug("Test Connection Failed");
m.JSC$19954_lastStatusCode_=G.JSC$19949_lastStatusCode_;DZ(m,2)};
b2.prototype.JSC$19949_onRequestData=function(m,G){if(this.state_!=0&&(this.JSC$19954_backChannelRequest_==m||this.forwardChannelRequest_==m))if(this.JSC$19954_lastStatusCode_=m.JSC$19942_lastStatusCode_,this.forwardChannelRequest_==m&&this.state_==3)if(this.JSC$19954_channelVersion_>7){try{var K=this.JSC$19950_parser_.parse(G)}catch(W){K=null}if(Array.isArray(K)&&K.length==3)if(G=K,G[0]==0)a:if(this.JSC$19950_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19954_backChannelTimerId_)this.JSC$19950_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19954_backChannelRequest_)if(this.JSC$19954_backChannelRequest_.JSC$19942_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19942_requestStartTime_)Pn6(this),this.JSC$19954_backChannelRequest_.cancel(),this.JSC$19954_backChannelRequest_=null;else break a;else this.JSC$19950_channelDebug_.warning("We do not have a BackChannel established");Rw6(this);NZ(19)}else this.JSC$19954_lastPostResponseArrayId_=G[1],m=this.JSC$19954_lastPostResponseArrayId_-this.JSC$19954_lastArrayId_,0<
m&&(G=G[2],this.JSC$19950_channelDebug_.debug(G+" bytes (in "+m+" arrays) are outstanding on the BackChannel"),G<37500&&this.useChunked_&&this.JSC$19954_backChannelRetryCount_==0&&!this.JSC$19954_deadBackChannelTimerId_&&(this.JSC$19954_deadBackChannelTimerId_=az((0,_.AO)(this.JSC$19954_onBackChannelDead_,this),6E3)));else this.JSC$19950_channelDebug_.debug("Bad POST response data returned"),DZ(this,11)}else G!="y2f%"&&(this.JSC$19950_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
DZ(this,11));else this.JSC$19954_backChannelRequest_==m&&Pn6(this),_.Od(G)||(m=this.JSC$19950_parser_.parse(G),this.onInput_(m))};
b2.prototype.JSC$19954_onBackChannelDead_=function(){this.JSC$19954_deadBackChannelTimerId_!=null&&(this.JSC$19954_deadBackChannelTimerId_=null,this.JSC$19954_backChannelRequest_.cancel(),this.JSC$19954_backChannelRequest_=null,Rw6(this),NZ(20))};
var Pn6=function(m){m.JSC$19954_deadBackChannelTimerId_!=null&&(_.Ks.clearTimeout(m.JSC$19954_deadBackChannelTimerId_),m.JSC$19954_deadBackChannelTimerId_=null)};
b2.prototype.JSC$19949_onRequestComplete=function(m){this.JSC$19950_channelDebug_.debug("Request complete");if(this.JSC$19954_backChannelRequest_==m){Pn6(this);this.JSC$19954_backChannelRequest_=null;var G=2}else if(this.forwardChannelRequest_==m)this.forwardChannelRequest_=null,G=1;else return;this.JSC$19954_lastStatusCode_=m.JSC$19942_lastStatusCode_;if(this.state_!=0)if(m.JSC$19942_successful_)if(G==1){G=m.JSC$19942_postData_?m.JSC$19942_postData_.length:0;m=Date.now()-m.JSC$19942_requestStartTime_;
var K=wTq;K.dispatchEvent(new Ins(K,G,m,this.JSC$19954_forwardChannelRetryCount_));dSP(this);this.handler_&&this.handler_.JSC$19961_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else XT5(this);else{K=m.getLastError();if(K==3||K==7||K==0&&this.JSC$19954_lastStatusCode_>0)this.JSC$19950_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19950_channelDebug_.debug("Maybe retrying, last error: "+O9i(K,this.JSC$19954_lastStatusCode_));var W;if(W=G==1)this.forwardChannelRequest_||
this.JSC$19954_forwardChannelTimerId_||this.state_==1||this.JSC$19954_forwardChannelRetryCount_>=2?W=!1:(this.JSC$19950_channelDebug_.debug("Going to retry POST"),this.JSC$19954_forwardChannelTimerId_=az((0,_.AO)(this.JSC$19954_onStartForwardChannelTimer_,this,m),SWE(this,this.JSC$19954_forwardChannelRetryCount_)),this.JSC$19954_forwardChannelRetryCount_++,W=!0);if(W||G==2&&Rw6(this))return;this.JSC$19950_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19950_channelDebug_.debug("Error: HTTP request failed");
switch(K){case 1:DZ(this,5);break;case 4:DZ(this,10);break;case 3:DZ(this,6);break;case 7:DZ(this,12);break;default:DZ(this,2)}}};
var SWE=function(m,G){var K=5E3+Math.floor(Math.random()*1E4);m.isActive()||(m.JSC$19950_channelDebug_.debug("Inactive channel"),K*=2);return K*G};
b2.prototype.onInput_=function(m){for(var G=0;G<m.length;G++){var K=m[G];this.JSC$19954_lastArrayId_=K[0];K=K[1];this.state_==2?K[0]=="c"?(this.sid_=K[1],this.JSC$19954_hostPrefix_=K[2],K=K[3],K!=null?this.JSC$19954_channelVersion_=K:this.JSC$19954_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19961_channelOpened(),this.JSC$19954_backChannelUri_=sus(this,this.JSC$19954_hostPrefix_,this.JSC$19954_path_),XT5(this)):K[0]=="stop"&&DZ(this,7):this.state_==3&&(K[0]=="stop"?DZ(this,7):
K[0]!="noop"&&this.handler_&&this.handler_.JSC$19961_channelHandleArray(K),this.JSC$19954_backChannelRetryCount_=0)}};
b2.prototype.JSC$19954_ensureInState_=function(m){if(!_.Vf(arguments,this.state_))throw Error("Yk`"+this.state_);};
var DZ=function(m,G){m.JSC$19950_channelDebug_.info("Error code "+G);if(G==2||G==9){var K=null;m.handler_&&(K=null);var W=(0,_.AO)(m.testGoogleComCallback_,m);K||(K=new _.aQ("//www.google.com/images/cleardot.gif"),_.y7(K));xgu(K.toString(),1E4,W)}else NZ(2);m.onError_(G)};
b2.prototype.testGoogleComCallback_=function(m){m?(this.JSC$19950_channelDebug_.info("Successfully pinged google.com"),NZ(2)):(this.JSC$19950_channelDebug_.info("Failed to ping google.com"),NZ(1),this.onError_(8))};
b2.prototype.onError_=function(m){this.JSC$19950_channelDebug_.debug("HttpChannel: error - "+m);this.state_=0;this.handler_&&this.handler_.JSC$19961_channelError(m);Z9D(this);Cn6(this)};
var Z9D=function(m){m.state_=0;m.JSC$19954_lastStatusCode_=-1;if(m.handler_)if(m.pendingMaps_.length==0&&m.JSC$19950_outgoingMaps_.length==0)m.handler_.JSC$19961_channelClosed();else{m.JSC$19950_channelDebug_.debug("Number of undelivered maps, pending: "+m.pendingMaps_.length+", outgoing: "+m.JSC$19950_outgoingMaps_.length);var G=_.yf(m.pendingMaps_),K=_.yf(m.JSC$19950_outgoingMaps_);m.pendingMaps_.length=0;m.JSC$19950_outgoingMaps_.length=0;m.handler_.JSC$19961_channelClosed(G,K)}},ojO=function(m,
G){G=vjO(m,null,G);
m.JSC$19950_channelDebug_.debug("GetForwardChannelUri: "+G);return G},sus=function(m,G,K){G=vjO(m,m.JSC$19949_shouldUseSecondaryDomains()?G:null,K);
m.JSC$19950_channelDebug_.debug("GetBackChannelUri: "+G);return G},vjO=function(m,G,K){var W=_.jU(K);
if(W.JSC$10339_domain_!="")G&&_.Ia(W,G+"."+W.JSC$10339_domain_),_.jm(W,W.JSC$10339_port_);else{var L=window.location;W=qLO(L.protocol,G?G+"."+L.hostname:L.hostname,+L.port,K)}m.JSC$19954_extraParams_&&_.Y2.forEach(m.JSC$19954_extraParams_,function(A,O){_.Ct(W,O,A)});
_.Ct(W,"VER",m.JSC$19954_channelVersion_);VBi(m,W);return W};
b2.prototype.JSC$19949_createXhrIo=function(m){if(m)throw Error("Qk");m=new _.uZ;m.JSC$10103_withCredentials_=!1;return m};
b2.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
b2.prototype.notifyServerReachabilityEvent=function(m){var G=wTq;G.dispatchEvent(new juD(G,m))};
b2.prototype.JSC$19949_shouldUseSecondaryDomains=function(){return!1};
new CDz;var USE=function(){};
_.w=USE.prototype;_.w.JSC$19961_channelOpened=function(){};
_.w.JSC$19961_channelHandleArray=function(){};
_.w.JSC$19961_channelSuccess=function(){};
_.w.JSC$19961_channelError=function(){};
_.w.JSC$19961_channelClosed=function(){};
_.w.JSC$19961_getAdditionalParams=function(){return{}};
_.w.isActive=function(){return!0};var zw6=function(m){m.front_.length===0&&(m.front_=m.back_,m.front_.reverse(),m.back_=[])};
_.w=Ug5.prototype;_.w.enqueue=function(m){this.back_.push(m)};
_.w.peek=function(){zw6(this);return _.HJ(this.front_)};
_.w.getCount=function(){return this.front_.length+this.back_.length};
_.w.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.w.clear=function(){this.front_=[];this.back_=[]};
_.w.contains=function(m){return _.Vf(this.front_,m)||_.Vf(this.back_,m)};
_.w.remove=function(m){var G=this.front_;var K=Array.prototype.lastIndexOf.call(G,m,G.length-1);K>=0?(_.EGM(G,K),G=!0):G=!1;return G||_.PJ(this.back_,m)};
_.w.getValues=function(){for(var m=[],G=this.front_.length-1;G>=0;--G)m.push(this.front_[G]);G=this.back_.length;for(var K=0;K<G;++K)m.push(this.back_[K]);return m};var lnP=function(m){var G=typeof m;return G=="object"&&m||G=="function"?"o"+_.z9(m):G.charAt(0)+m};
_.w=v5.prototype;_.w.getCount=function(){return this.JSC$19965_map_.size};
_.w.add=function(m){this.JSC$19965_map_.set(lnP(m),m);this.size=this.JSC$19965_map_.size};
_.w.addAll=function(m){m=_.E5(m);for(var G=m.length,K=0;K<G;K++)this.add(m[K]);this.size=this.JSC$19965_map_.size};
_.w.removeAll=function(m){m=_.E5(m);for(var G=m.length,K=0;K<G;K++)this.remove(m[K]);this.size=this.JSC$19965_map_.size};
_.w.delete=function(m){m=this.JSC$19965_map_.remove(lnP(m));this.size=this.JSC$19965_map_.size;return m};
_.w.remove=function(m){return this.delete(m)};
_.w.clear=function(){this.JSC$19965_map_.clear();this.size=0};
_.w.isEmpty=function(){return this.JSC$19965_map_.size===0};
_.w.has=function(m){return this.JSC$19965_map_.containsKey(lnP(m))};
_.w.contains=function(m){return this.JSC$19965_map_.containsKey(lnP(m))};
_.w.getValues=function(){return this.JSC$19965_map_.getValues()};
_.w.values=function(){return this.JSC$19965_map_.values()};
_.w.clone=function(){return new v5(this)};
_.w.equals=function(m){return this.getCount()==$hE(m)&&Bt6(this,m)};
var Bt6=function(m,G){var K=$hE(G);if(m.getCount()>K)return!1;!(G instanceof v5)&&K>5&&(G=new v5(G));return s9s(m,function(W){var L=G;return L.contains&&typeof L.contains=="function"?L.contains(W):L.containsValue&&typeof L.containsValue=="function"?L.containsValue(W):_.XP(L)||typeof L==="string"?_.Vf(L,W):_.Y2.containsValue(L,W)})};
v5.prototype.__iterator__=function(){return this.JSC$19965_map_.__iterator__(!1)};
v5.prototype[Symbol.iterator]=function(){return this.values()};_.LD({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 m=this.query;m&&(this.full||m[0]==="("||(m="("+m+")"),this._mq=window.matchMedia(m),this._add(),this.queryHandler(this._mq))},
queryHandler:function(m){this._setQueryMatches(m.matches)}});var MBO={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(m){return(this._clampValue(m)-this.min)/(this.max-this.min)},
_clampValue:function(m){return Math.min(this.max,Math.max(this.min,this._calcStep(m)))},
_calcStep:function(m){m=parseFloat(m);if(!this.step)return m;m=Math.round((m-this.min)/this.step);return this.step<1?m/(1/this.step)+this.min:m*this.step+this.min},
_validateValue:function(){var m=this._clampValue(this.value);this.value=this.oldValue=isNaN(m)?this.oldValue:m;return this.value!==m},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var TtD=[_.mH,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(m){_.TP(m).path[0]!==this&&(this.resetLayout(),m.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var m=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.C2(this._layoutDebouncer,_.Gk,m);_.Vv(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var m=this;requestAnimationFrame(function(){m.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(m){this.resizerShouldNotify(m)&&this._notifyDescendant(m)},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 mUO=[_.Ya0,{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(m,G){var K=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[m];if(!K)throw new ReferenceError(this._getUndefinedMsg(m));m=this._boundEffect(K,G||{});m.setUp();return m},
_effectsChanged:function(m,G,K){this._tearDownEffects();m&&K&&(m.split(" ").forEach(function(W){var L;W!==""&&((L=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W])?this._effects.push(this._boundEffect(L,G[W])):console.warn(this._getUndefinedMsg(W)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(m,G){G=G||{};var K=parseFloat(G.startsAt||0),W=parseFloat(G.endsAt||1),L=W-K,A=function(){};
W=K===0&&W===1?m.run:function(O,c){m.run.call(this,Math.max(0,(O-K)/L),c)};
return{setUp:m.setUp?m.setUp.bind(this,G):A,run:m.run?W.bind(this):A,tearDown:m.tearDown?m.tearDown.bind(this):A}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(m){m.setUp()!==!1&&this._effectsRunFn.push(m.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(m){m.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(m,G){this._effectsRunFn&&this._effectsRunFn.forEach(function(K){K(m,G)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var m=this._clampedScrollTop;this._updateScrollState(m);this.threshold>0&&this._setThresholdTriggered(m>=this.threshold)}},
_getDOMRef:function(m){console.warn("_getDOMRef","`"+m+"` is undefined")},
_getUndefinedMsg:function(m){return"Scroll effect `"+m+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+m+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Zk`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(m){var G={};m=parseFloat(m.scalar);G.background=this._getDOMRef("background");G.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");G.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");G.deltaBg=G.backgroundFrontLayer.offsetHeight-G.background.offsetHeight;G.deltaBg===0?(isNaN(m)&&(m=.8),G.deltaBg=(this._dHeight||0)*m):(isNaN(m)&&(m=
1),G.deltaBg*=m);this._fxParallaxBackground=G},
run:function(m){var G=this._fxParallaxBackground;this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,m)+"px, 0px)",G.backgroundFrontLayer);G.backgroundRearLayer&&this.transform("translate3d(0px, "+G.deltaBg*Math.min(1,m)+"px, 0px)",G.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var iku;var GlP;_.LD({_template:function(){if(GlP!==void 0)return GlP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;iku===void 0&&(iku=document.createElement("template"));var W=iku;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return GlP=m},
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(){_.Pv(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(m){m.keyCode===27&&(m.preventDefault(),this.close())},
_track:function(m){if(!this.persistent&&!this.disableSwipe)switch(m.preventDefault(),m.detail.state){case "start":this._trackStart(m);break;case "track":this._trackMove(m);break;case "end":this._trackEnd(m)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var m=this.$.contentContainer.getBoundingClientRect();this._savedWidth=m.width;this._translateOffset=this.position==="left"?m.left:m.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(m){this._trackDetails&&(this._translateDrawer(m.detail.dx+this._translateOffset),this._trackDetails.push({dx:m.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(m){if(this._trackDetails){var G=m.detail.dx+this._translateOffset,K=this.getWidth();G=this.position==="left"?G>=0||G<=-K:G<=0||G>=K;if(!G){var W=this._trackDetails;this._trackDetails=null;this._flingDrawer(m,W);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}K/=2;m.detail.dx<-K?this.opened=this.position==="right":m.detail.dx>K&&(this.opened=this.position==="left");G?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(m,G){for(var K=Date.now(),W=K-100,L,A=0,O=G.length-1;A<=O;){var c=A+O>>1,u=G[c];u.timeStamp>=W?(L=u,O=c-1):A=c+1}return L?(m.detail.dx-L.dx)/(K-L.timeStamp||1):0},
_flingDrawer:function(m,G){G=this._calculateVelocity(m,G);if(!(Math.abs(G)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;m=m.detail.dx+this._translateOffset;var K=this.getWidth(),W=this.position==="left",L=G>0;L?(G=Math.max(G,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(G=Math.min(G,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");G=this._FLING_INITIAL_SLOPE*(!L&&W?-(m+K):L&&!W?K-m:-m)/G;this._styleTransitionDuration(G);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,G)}},
_styleTransitionDuration:function(m){this.style.transitionDuration=m+"ms";this.$.contentContainer.style.transitionDuration=m+"ms";this.$.scrim.style.transitionDuration=m+"ms"},
_styleTransitionTimingFunction:function(m){this.$.contentContainer.style.transitionTimingFunction=m;this.$.scrim.style.transitionTimingFunction=m},
_translateDrawer:function(m){var G=this.getWidth();this.position==="left"?(m=Math.max(-G,Math.min(m,0)),this.$.scrim.style.opacity=1+m/G):(m=Math.max(0,Math.min(m,G)),this.$.scrim.style.opacity=1-m/G);this.translate3d(m+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var m=this._drawerState;m===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;m!==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=""),m!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var m=_.TP(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"])');m.length>0?(this._firstTabStop=m[0],this._lastTabStop=m[m.length-1]):
this._lastTabStop=this._firstTabStop=null;(m=this.getAttribute("tabindex"))&&parseInt(m,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(m){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||m.keyCode!==9||(m.shiftKey?this._firstTabStop&&_.TP(m).localTarget===this._firstTabStop&&(m.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.TP(m).localTarget===this._lastTabStop&&(m.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(m,G){this.toggleClass("visible",m&&!G,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 KB6;var WBi;var LBW=function(){};
_.w=LBW.prototype;_.w._scrollTargetChanged=function(){};
_.w.scroll=function(){};
_.w._isValidScrollTarget=function(){};
_.w._toggleScrollListener=function(){};
_.w.toggleScrollListener=function(){};
_.w.createEffect=function(){};
_.w._effectsChanged=function(){};
_.w._layoutIfDirty=function(){};
_.w._boundEffect=function(){};
_.w._setUpEffect=function(){};
_.w._tearDownEffects=function(){};
_.w._runEffects=function(){};
_.w._scrollHandler=function(){};
_.w._scrollStateChanged=function(){};
_.w._getUndefinedMsg=function(){};
_.w.notifyResize=function(){};
_.w.assignParentResizable=function(){};
_.w.stopResizeNotificationsFor=function(){};
_.w._subscribeIronResize=function(){};
_.w._unsubscribeIronResize=function(){};
_.w.resizerShouldNotify=function(){};
_.w._onDescendantIronResize=function(){};
_.w._fireResize=function(){};
_.w._onIronRequestResizeNotifications=function(){};
_.w._parentResizableChanged=function(){};
_.w._notifyDescendant=function(){};
_.w._requestResizeNotifications=function(){};
_.w._findParent=function(){};
_.w._appResetLayoutHandler=function(){};
_.w.resetLayout=function(){};
_.w._notifyLayoutChanged=function(){};
_.w._notifyDescendantResize=function(){};
_.w._setThresholdTriggered=function(){};
LBW=_.LD({_template:function(){if(WBi!==void 0)return WBi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;KB6===void 0&&(KB6=document.createElement("template"));var W=KB6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return WBi=m},
is:"tp-yt-app-header",behaviors:[mUO,TtD],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 m=_.TP(this.$.slot).getDistributedNodes(),G=0,K;K=m[G];G++)if(K.nodeType===Node.ELEMENT_NODE)if(K.hasAttribute("sticky")){this._stickyElRef=K;break}else this._stickyElRef||(this._stickyElRef=K);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var m=this._clampedScrollTop,G=this._height===0||m===0,K=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;G||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();G?this._updateScrollState(m,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=K}},
_updateScrollState:function(m,G){if(this._height!==0){var K=0,W=this._top;var L=this._maxHeaderTop;var A=m-this._lastScrollTop,O=Math.abs(A),c=m>this._lastScrollTop,u=performance.now();this._mayMove()&&(K=this._clamp(this.reveals?W+A:m,0,L));m>=this._dHeight&&(K=this.condenses&&!this.fixed?Math.max(this._dHeight,K):K,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&O<100){if(u-this._initTimestamp>300||this._wasScrollingDown!==c)this._initScrollTop=m,this._initTimestamp=u;m>=L&&
(Math.abs(this._initScrollTop-m)>30||O>10?(c&&m>=L?K=L:!c&&m>=this._dHeight&&(K=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((K-W)/(A/(u-this._lastTimestamp)),0,300)+"ms"):K=this._top)}L=this._dHeight===0?m>0?1:0:K/this._dHeight;G||(this._lastScrollTop=m,this._top=K,this._wasScrollingDown=c,this._lastTimestamp=u);if(G||L!==this._progress||W!==K||m===0)this._progress=L,this._runEffects(L,K),this._transformHeader(K)}},
_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(m){this.translate3d(0,-m+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&m>=this._stickyElTop?Math.min(m,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(m,G,K){return Math.min(K,Math.max(G,m))},
_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),_.TP(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(m){switch(m){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.TP(this).querySelector("[main-title]");case "condensedTitle":return _.TP(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var ArG;var wxu;_.LD({_template:function(){if(wxu!==void 0)return wxu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;ArG===void 0&&(ArG=document.createElement("template"));var W=ArG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return wxu=m},
is:"tp-yt-app-header-layout",behaviors:[TtD],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0},rafId:{type:Number,value:-1},useRaf:{type:Boolean,value:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.TP(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){this.useRaf?(cancelAnimationFrame(this.rafId),this.rafId=requestAnimationFrame(this.performUpdate.bind(this))):this.performUpdate()},
performUpdate:function(){var m=this.header;if(this.isAttached&&m){this.$.wrapper.classList.remove("initializing");m.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)m.style.left="",m.style.right="";else{var G=this.getBoundingClientRect(),K=document.documentElement.clientWidth-G.right;m.style.left=G.left+"px";m.style.right=K+"px"}G=this.$.contentContainer.style;K=m.offsetHeight;m.fixed&&!m.condenses&&this.hasScrollingRegion?
(G.marginTop=K+"px",G.paddingTop=""):(G.paddingTop=K+"px",G.marginTop="")}}});/*

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 g8W=_.nY(['<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>']),
OkW=_.J94(g8W);OkW.setAttribute("style","display: none;");document.head.appendChild(OkW.content);var crE;var Yxz;/*

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
*/
_.LD({_template:function(){if(Yxz!==void 0)return Yxz;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;crE===void 0&&(crE=document.createElement("template"));var W=crE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return Yxz=m},
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(m,G){var K=this._resolveSrc(m);K!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",m===""||G?this._setLoading(!1):(this._resolvedSrc=K,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 m=this.$.sizedImgDiv.style,G=this.$.placeholder.style;m.backgroundSize=G.backgroundSize=this.sizing;m.backgroundPosition=G.backgroundPosition=this.sizing?this.position:"";m.backgroundRepeat=G.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(m){m=_.zi(m,this.$.baseURIAnchor.href);m.length>=2&&m[0]==="/"&&m[1]!=="/"&&(m=(location.origin||location.protocol+"//"+location.host)+m);return m}});var rru;var uBD;_.LD({_template:function(){if(uBD!==void 0)return uBD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=
m.content,K=G.insertBefore;rru===void 0&&(rru=document.createElement("template"));var W=rru;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return uBD=m},
is:"tp-yt-iron-pages",behaviors:[_.mH,_.Qz],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});var hpD;var px6;_.LD({_template:function(){if(px6!==void 0)return px6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;hpD===void 0&&(hpD=document.createElement("template"));var W=hpD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return px6=m},
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(m){return m?"false":"true"},
_headingChanged:function(m){var G=this.getAttribute("heading"),K=this.getAttribute("aria-label");typeof K==="string"&&K!==G||this.setAttribute("aria-label",m)},
_computeHeadingClass:function(m){return m?" over-image":""},
_computeAnimated:function(m){return m}});var JrO;var N0D;_.LD({_template:function(){if(N0D!==void 0)return N0D;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;JrO===void 0&&(JrO=document.createElement("template"));var W=JrO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return N0D=m},
is:"tp-yt-paper-checkbox",behaviors:[_.JY4],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Pv(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var m=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),G="px",K=m.match(/[A-Za-z]+$/);K!==null&&(G=K[0]);m=parseFloat(m);K=8/3*m;G==="px"&&(K=Math.floor(K),K%2!==m%2&&K++);this.updateStyles({"--paper-checkbox-ink-size":K+
G})}})},
_computeCheckboxClass:function(m,G){var K="";m&&(K+="checked ");G&&(K+="invalid");return K},
_computeCheckmarkClass:function(m){return m?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.hTC._createRipple.call(this)}});var DUD;var txi;var FBW=_.RU.IronButtonState,Qf6=(0,_.lD)(HTMLElement);
_.LD({_template:function(){if(txi!==void 0)return txi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;DUD===void 0&&(DUD=document.createElement("template"));var W=DUD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return txi=m},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[FBW,_.XY,_.zU,_.Mt],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(m){var G=(0,_.cv)(this);G.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:m});G.shadowRoot.appendChild(m);return Qf6.prototype._attachDom.call(this,m)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var m=this.contentElement;m&&m.selectedItem&&this._setSelectedItem(m.selectedItem)},
get contentElement(){for(var m=_.TP(this.$.content).getDistributedNodes(),G=0,K=m.length;G<K;G++)if(m[G].nodeType===Node.ELEMENT_NODE)return m[G]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(m){this._setSelectedItem(m.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(m){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(m)===this&&this.open()},
_selectedItemChanged:function(m){var G="";m?G=m.label||m.getAttribute("label")||m.textContent.trim():G="";this.value=G;this._setSelectedItemLabel(G)},
_computeMenuVerticalOffset:function(m,G){return G?G:m?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var m=this.opened?"true":"false",G=this.contentElement;G&&G.setAttribute("aria-expanded",m)}});var aT5;var o8q;_.LD({_template:function(){if(o8q!==void 0)return o8q;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
var G=m.content,K=G.insertBefore;aT5===void 0&&(aT5=document.createElement("template"));var W=aT5;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return o8q=m},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var n85;var bkD;_.LD({_template:function(){if(bkD!==void 0)return bkD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;n85===void 0&&(n85=document.createElement("template"));var W=n85;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return bkD=m},
is:"tp-yt-paper-progress",behaviors:[MBO],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(m){this.toggleClass("indeterminate",m,this.$.primaryProgress)},
_transformProgress:function(m,G){m.style.transform=m.style.webkitTransform="scaleX("+G/100+")"},
_mainRatioChanged:function(m){this._transformProgress(this.$.primaryProgress,m)},
_progressChanged:function(m,G,K,W,L){m=this._clampValue(m);G=this._clampValue(G);var A=this._calcRatio(m)*100,O=this._calcRatio(G)*100;this._setSecondaryRatio(A);this._transformProgress(this.$.secondaryProgress,A);this._transformProgress(this.$.primaryProgress,O);this.secondaryProgress=m;L?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",G);this.setAttribute("aria-valuemin",K);this.setAttribute("aria-valuemax",W)},
_disabledChanged:function(m){this.setAttribute("aria-disabled",m?"true":"false")},
_hideSecondaryProgress:function(m){return m===0}});var v8u;var $U6;var sf5=function(){};
_.w=sf5.prototype;_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._focusedChanged=function(){};
_.w._createRipple=function(){};
_.w.registered=function(){};
_.w._invalidChanged=function(){};
_.w.hasValidator=function(){};
_.w.validate=function(){};
_.w._getValidity=function(){};
_.w._requiredChanged=function(){};
_.w._valueChanged=function(){};
_.w._checkedChanged=function(){};
_.w._buttonStateChanged=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
sf5=_.LD({is:"tp-yt-paper-radio-button",_template:function(){if($U6!==void 0)return $U6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;v8u===void 0&&(v8u=document.createElement("template"));var W=v8u;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return $U6=m},
behaviors:[_.JY4],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(){_.Pv(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var m=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),G=Math.floor(3*m);G%2!==m%2&&G++;this.updateStyles({"--paper-radio-button-ink-size":G+"px"})}})}});var qxE;var E8G;_.LD({_template:function(){if(E8G!==void 0)return E8G;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;qxE===void 0&&(qxE=document.createElement("template"));var W=qxE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return E8G=m},
is:"tp-yt-paper-radio-group",behaviors:[_.OYX],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(m){var G=this._valueToItem(m);if(!G||!G.hasAttribute("disabled")){if(this.selected){G=this._valueToItem(this.selected);if(this.selected==m)if(this.allowEmptySelection)m="";else{G&&(G.checked=!0);return}G&&
(G.checked=!1)}_.Qz.select.apply(this,[m]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(m){this._focusPrevious();m.preventDefault();this._activateFocusedItem()},
_onDownKey:function(m){this._focusNext();m.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(m){_.gJP._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(m){_.gJP._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Qz._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.TU._resetTabindices.apply(this,arguments);this.items.forEach(function(m){m.removeAttribute("aria-selected")},this)}});var Hks;var ITP;var jfO=function(){};
_.w=jfO.prototype;_.w.registered=function(){};
_.w.addOwnKeyBinding=function(){};
_.w.removeOwnKeyBindings=function(){};
_.w.keyboardEventMatchesKeys=function(){};
_.w._collectKeyBindings=function(){};
_.w._prepKeyBindings=function(){};
_.w._addKeyBinding=function(){};
_.w._resetKeyEventListeners=function(){};
_.w._listenKeyEventListeners=function(){};
_.w._unlistenKeyEventListeners=function(){};
_.w._onKeyBindingEvent=function(){};
_.w._triggerKeyHandler=function(){};
_.w._tapHandler=function(){};
_.w._focusChanged=function(){};
_.w._detectKeyboardFocus=function(){};
_.w._userActivate=function(){};
_.w._upHandler=function(){};
_.w._spaceKeyDownHandler=function(){};
_.w._spaceKeyUpHandler=function(){};
_.w._asyncClick=function(){};
_.w._pressedChanged=function(){};
_.w._ariaActiveAttributeChanged=function(){};
_.w._activeChanged=function(){};
_.w._controlStateChanged=function(){};
_.w._changedButtonState=function(){};
_.w._focusBlurHandler=function(){};
_.w._disabledChanged=function(){};
_.w._changedControlState=function(){};
_.w._buttonStateChanged=function(){};
_.w._downHandler=function(){};
_.w.ensureRipple=function(){};
_.w.getRipple=function(){};
_.w.hasRipple=function(){};
_.w._noinkChanged=function(){};
_.w._calcRatio=function(){};
_.w._clampValue=function(){};
_.w._calcStep=function(){};
_.w._validateValue=function(){};
_.w._update=function(){};
_.w._setImmediateValue=function(){};
_.w._setExpand=function(){};
_.w._setDragging=function(){};
_.w._setTransiting=function(){};
_.w._setMarkers=function(){};
_.w._setPressed=function(){};
_.w._setPointerDown=function(){};
_.w._setReceivedFocusFromKeyboard=function(){};
_.w._setFocused=function(){};
_.w._setRatio=function(){};
jfO=_.LD({_template:function(){if(ITP!==void 0)return ITP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Hks===void 0&&(Hks=document.createElement("template"));var W=Hks;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return ITP=m},
is:"tp-yt-paper-slider",behaviors:[_.x4,_.zU,_.pbB,MBO],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&&_.nC(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(m,G,K){this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",K);this.setAttribute("aria-valuenow",m);this._positionKnob(this._calcRatio(m)*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(m){this._setImmediateValue(this._calcStep(this._calcKnobPosition(m)));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(m){return(this.max-this.min)*m/100+this.min},
_onTrack:function(m){m.stopPropagation();switch(m.detail.state){case "start":this._trackStart(m);break;case "track":this._trackX(m);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(m){this.dragging||this._trackStart(m);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,m.detail.dx*(this._isRTL?-1:1)));m=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(m);m=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(m+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var m=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;m.transform=m.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(m){this._expandKnob();m.preventDefault();this.focus()},
_bartrack:function(m){this._allowBarEvent(m)&&this._onTrack(m)},
_barclick:function(m){this._w=this.$.sliderBar.offsetWidth;var G=this.$.sliderBar.getBoundingClientRect();G=(m.detail.x-G.left)/this._w*100;this._isRTL&&(G=100-G);var K=this.ratio;this._setTransiting(!0);this._positionKnob(G);K===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
m.preventDefault();this.focus()},
_bardown:function(m){this._allowBarEvent(m)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(m))},
_knobTransitionEnd:function(m){m.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(m,G,K,W){W||this._setMarkers([]);G=Math.round((K-G)/this.step);G>m&&(G=m);if(G<0||!isFinite(G))G=0;this._setMarkers(Array(G))},
_mergeClasses:function(m){return Object.keys(m).filter(function(G){return m[G]}).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(m){return!this.ignoreBarTouch||m.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(m){this._isRTL?this._incrementKey(m):this._decrementKey(m)},
_rightKey:function(m){this._isRTL?this._decrementKey(m):this._incrementKey(m)},
_incrementKey:function(m){this.disabled||(m.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),m.preventDefault())},
_decrementKey:function(m){this.disabled||(m.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),m.preventDefault())},
_changeValue:function(m){this.value=m.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(m){m.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.hTC._createRipple.call(this)},
_focusedChanged:function(m){m&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=m?"":"none",this._ripple.holdDown=m)}});var klG;var CC6;var tF=null,VxG=function(){};
_.w=VxG.prototype;_.w.fit=function(){};
_.w._discoverInfo=function(){};
_.w.resetFit=function(){};
_.w.refit=function(){};
_.w.position=function(){};
_.w.constrain=function(){};
_.w._sizeDimension=function(){};
_.w.__sizeDimension=function(){};
_.w.center=function(){};
_.w.__getNormalizedRect=function(){};
_.w.__getOffscreenArea=function(){};
_.w.__getPosition=function(){};
_.w.notifyResize=function(){};
_.w.assignParentResizable=function(){};
_.w.stopResizeNotificationsFor=function(){};
_.w._subscribeIronResize=function(){};
_.w._unsubscribeIronResize=function(){};
_.w.resizerShouldNotify=function(){};
_.w._onDescendantIronResize=function(){};
_.w._fireResize=function(){};
_.w._onIronRequestResizeNotifications=function(){};
_.w._parentResizableChanged=function(){};
_.w._notifyDescendant=function(){};
_.w._requestResizeNotifications=function(){};
_.w._findParent=function(){};
_.w.toggle=function(){};
_.w.open=function(){};
_.w.close=function(){};
_.w.cancel=function(){};
_.w.invalidateTabbables=function(){};
_.w._ensureSetup=function(){};
_.w._canceledChanged=function(){};
_.w._withBackdropChanged=function(){};
_.w._prepareRenderOpened=function(){};
_.w._finishRenderOpened=function(){};
_.w._finishRenderClosed=function(){};
_.w._preparePositioning=function(){};
_.w._finishPositioning=function(){};
_.w._applyFocus=function(){};
_.w._onCaptureClick=function(){};
_.w._onCaptureFocus=function(){};
_.w._onCaptureEsc=function(){};
_.w._onCaptureTab=function(){};
_.w._onIronResize=function(){};
_.w._onNodesChange=function(){};
_.w.__ensureFirstLastFocusables=function(){};
_.w.__openedChanged=function(){};
_.w.__deraf=function(){};
_.w.__updateScrollObservers=function(){};
_.w.__addScrollListeners=function(){};
_.w.__removeScrollListeners=function(){};
_.w.__isValidScrollAction=function(){};
_.w.__onCaptureScroll=function(){};
_.w.__saveScrollPosition=function(){};
_.w.__restoreScrollPosition=function(){};
_.w._setCanceled=function(){};
VxG=_.LD({_template:function(){if(CC6!==void 0)return CC6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;klG===void 0&&(klG=document.createElement("template"));var W=klG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return CC6=m},
is:"tp-yt-paper-toast",behaviors:[_.Jp],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(){_.B0._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.YY.requestAvailability()},
show:function(m){typeof m=="string"&&(m={text:m});for(var G in m)G.indexOf("_")===0?_.B0._warn('The property "'+G+'" is private and was not set.'):G in this?this[G]=m[G]:_.B0._warn('The property "'+G+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(m){m&&m.target===this&&m.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(tF&&tF!==this&&tF.close(),tF=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):tF===this&&(tF=null);_.pU._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(m){this.positionTarget=m},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ZkG=new _.$W("disablePersonalizationAction");var ks6=new _.$W("showDmaConsentFlowCommand");var C76=new _.$W("showMmgNoticeCommand");var dUz=new _.$W("saveConsentAction");var PC5=new _.$W("navigateAction");var yrE=new _.$W("replaceFeedContentAction");var epu=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(epu,_.pp);var fTP=_.OZf(epu);var xUi=new _.$W("imageTileRenderer");var XxP=new _.$W("promotedSparklesWebRenderer");var Sx6=new _.$W("adGridCardCollectionViewModel");var RpW=new _.$W("addRendererToItemSectionAction");var UUG=new _.$W("updateTopbarAvatarAction");var zpD=new _.$W("channelHandleValidationResultRenderer");var lTi=new _.$W("generateHandleFromNameResultRenderer");var B0i=new _.$W("channelHandleInputRenderer");var MxD=new _.$W("copyLinkRenderer");var T0W=new _.$W("carouselTitleViewModel");var mos=new _.$W("ctaCarouselItemViewModel");var ifs=new _.$W("timedCommand");var GwW=new _.$W("textFieldViewModel");var KMO=new _.$W("crowdsourcedContextUserRatingFormFlowState");var WMu=new _.$W("noteViewModel");var LMO=new _.$W("alertCommand");var AGE=new _.$W("clearCookieAction");var wrD=new _.$W("engagementPanelHeaderShowNavigationButtonCommand");var gUz=new _.$W("getMultiPageMenuAction");var OfP=new _.$W("addToGuideSectionAction"),cG6=new _.$W("removeFromGuideSectionAction");var Y9D=new _.$W("hideEngagementPanelScrimAction");var rG5=new _.$W("updateNotificationsUnseenCountAction");var unW=new _.$W("resetChannelUnreadCountCommand");var huO=new _.$W("resetSubscriptionsUnreadDotCommand");var prW=new _.$W("selectLanguageCommand");var UEO=new _.$W("sendFeedbackAction");var JGq=new _.$W("setActivePanelItemAction");var NIi=new _.$W("showEngagementPanelScrimAction");var Do5=new _.$W("updateEngagementPanelAction");var tS5=new _.$W("updateSearchInVideoResultsAction");var FMO=new _.$W("uploadImageToScottyCommand");var Q_6=new _.$W("webWatchNextResponseExtensionData");var aaq=new _.$W("manageLabsStateCommand");var oUi=new _.$W("registerPromoCommand");var nUO=new _.$W("setPushNotificationsEnabledCommand");var bfq=new _.$W("updateSentimentBarStateCommand");var vU6=new _.$W("desktopTopbarRenderer");var $oP=new _.$W("surveyFollowUpRenderer");var s_5=new _.$W("formRenderer");var q96=new _.$W("inlineFormRenderer");var EUD=new _.$W("handlesClaimingRadioOptionRenderer");var Hfq=new _.$W("hotkeyDialogRenderer");var Ia5=new _.$W("playlistSidebarPrimaryInfoRenderer");var j_W=new _.$W("transcriptCueGroupRenderer");var kwO=new _.$W("transcriptCueRenderer");var Cvq=new _.$W("transcriptFooterRenderer");var VSE=new _.$W("engagementPanelAdSubtitleRenderer");var ZfO=new _.$W("videoDescriptionFantasySectionViewModel");var doG=new _.$W("inlineSurveyRenderer");var Pv6=new _.$W("radioButtonSurveyOptionRenderer"),yGs=new _.$W("checkboxSurveyOptionRenderer");var FLW=new _.$W("showSurveyCommand");var F8=new _.$W("abuseReportFlowState");var QdD=new _.$W("modifyReportFormCommand");var aNu=new _.$W("feedbackFormFlowState");var oFu=new _.$W("inputBoxViewModel");var nFD=new _.$W("flowRootRenderer");var Ln6=new _.$W("lengthValidationRule");var wR6=new _.$W("regexValidationRule");var OQs=new _.$W("selectedValidationRule");var b36=new _.$W("accountLinkCommand");var vF6=new _.$W("accountUnlinkCommand");var $r6=new _.$W("deleteClipEngagementPanelCommand");var sdD=new _.$W("logAccountLinkingEventCommand");var q3u=new _.$W("loopCommand");var yA6=new _.$W("guideCollapsibleEntryRenderer");var EFG=new _.$W("guideDownloadsEntryRenderer");var P5q=new _.$W("guideEntryRenderer");var H3s=[0,_.sA,_.Cg,_.ZS];var IND=[0,_.bA,-2,IzG];var jdq=function(m){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(m)};
_.n(jdq,_.pp);jdq.prototype.getFeature=function(){return _.wL(this,6)};
jdq.prototype.hasFeature=function(){return _.q6(_.ze(this,6))!=null};var kED=[0,_.sA];var CPO=_.se(jdq,[0,_.bA,-2,IzG,_.bA,_.sA,-1,_.ng,-1,_.sA,-3,_.qeG,_.vo,IND,_.sA,-1,Haq,_.ng,_.sA,H3s,[0,[0,_.sA,-2,2,_.sA,-1,[0,_.sA],[0,_.Cg,_.sA],[0,_.Cg],[0,_.sA],2,[0,_.Cg,2,[0,_.Cg,-1],[0,_.Ho,Id5],1,[0,jEP],1,[0,_.sA],1,[0,[2],_.sA,_.I3,[0,_.bA]]],[0,_.vo],[0,[1,2],_.I3,[0,_.sA],_.I3,[0,_.sA,_.ki,-1]],[0,_.Cg],[0,_.sA,[0,[1,2,3,4],_.I3,[0,[0,_.sA],kED],_.I3,[0,[0,_.sA],kED],_.I3,[0,kED],_.I3,[0,[0,_.sA],kED]]],[0,_.sA],1,[0,_.sA,_.Cg],1,[0,_.sA],[0,_.vo],[0,_.sA,_.Cg,-1,[0,_.sA,-4]],[0,_.sA],
[0,_.sA,-2],1,[0,_.sA],[0,_.vo],[0,_.vo,_.sA],1,[0,_.vo],[0],[0]],_.sA,_.Cg,_.a3,1,_.jZ,_.sA,_.Cg],_.bA,_.jZ,_.Cg,-1,_.bA]);var VE5=new _.$W("interstitialViewModel");var Z3D=new _.$W("changeCreatorEndscreenVisibilityCommand");var dr6=new _.$W("liveChatCallForQuestionsRenderer");var PP6=new _.$W("getLocationCommand");var y8O=new _.$W("locationCollectionCommand");var eZP=new _.$W("chipsShelfViewModel");var Qa=new _.$W("cinematicContainerRenderer");var a6=new _.$W("changeMarkersVisibilityCommand");var fN5=new _.$W("updateTimedMarkersSyncObserverCommand");var xrP=new _.$W("storiesItemViewModel");var XhD=new _.$W("talkToRecsViewModel");var XYE=new _.$W("timelyActionViewModel");var S36=new _.$W("timelyActionsOverlayViewModel");var RZE=new _.$W("addToRemoteQueueAction");var UrO=new _.$W("insertInRemoteQueueAction");var zZi=new _.$W("removeFromRemoteQueueAction");var lNq=new _.$W("productDetailsThumbnailRenderer"),Bws=new _.$W("productDetailsVariantRenderer"),MEO=new _.$W("productDetailsVariantOptionRenderer"),Tw6=new _.$W("productDetailsOffersContainerRenderer"),mOP=new _.$W("productDetailsOfferRenderer");var iuG=new _.$W("shoppingFlaggingRenderer");var Gmi=new _.$W("notificationActionRenderer");var KT6=new _.$W("notificationRenderer");var N3s=new _.$W("localWatchHistoryCommand");var WTE=new _.$W("pdgBuyFlowHeaderRenderer");var LTG=new _.$W("pdgColorSliderRenderer");var Ahi=new _.$W("pdgCommentOptionRenderer");var wf5=new _.$W("pdgCommentPreviewRenderer");var g$D=new _.$W("superVodSelectableItemButtonRenderer");var Ouz=new _.$W("creatorGoalSetUpFlowDropdownItemViewModel");var chD=new _.$W("creatorGoalSetUpFlowDropdownViewModel");var Yc6=new _.$W("repeatChapterCommand");var rh6=new _.$W("watchPlayerOverflowMenuCommand");var uZG=new _.$W("compositeVideoOverlayRenderer");var hYu=new _.$W("playlistBylineRenderer");var pfs=new _.$W("reelNavigateCommand");var Jhz=new _.$W("reelNonVideoContentDismissalCommand");var N2D=new _.$W("showReelsCommentsOverlayCommand");var NS6=new _.$W("lottieAnimationViewModel");var DO6=new _.$W("switchButtonRenderer");var tu6=new _.$W("responsiveContainerConfiguration");var FTP=new _.$W("sortFilterSubMenuRenderer");var Q4z=new _.$W("upsellDialogRenderer");var ayu=new _.$W("insertChannelTabCommand");var o$W=new _.$W("feedbackQuestionRenderer"),n$6=new _.$W("feedbackOptionRenderer");var bui=new _.$W("sponsorshipsTierRenderer"),v$E=new _.$W("sponsorshipsPromotionChannelRenderer");var $Ou=new _.$W("simpleSurveyMessageRenderer");var xBE=new _.$W("thumbnailBadgeViewModel");var s4P=new _.$W("checkboxGroupViewModel");var zzD=new _.$W("checkboxItemViewModel");var qcW=new _.$W("radioButtonGroupViewModel");var E$6=new _.$W("radioButtonItemViewModel");var HuG=new _.$W("switchListItemViewModel");var akz=new _.$W("inputComposerViewModel");var aEO=new _.$W("panelFooterViewModel");var IyO=new _.$W("transcriptEditSegmentCommand");var j4u=new _.$W("transcriptUpdateSegmentTextCommand");var kmi=new _.$W("transcriptSearchBoxRenderer");var C3z=new _.$W("transcriptSegmentListRenderer");var VuG=new _.$W("transcriptSegmentRenderer");var ZuP=new _.$W("videoInteractionPopUpRenderer");var dOi=new _.$W("updateDateTextAction");var P36=new _.$W("updateTitleAction");var yhD=new _.$W("updateViewershipAction");var eY6=new _.$W("relatedChipCommand");var fyW=new _.$W("carouselLockupRenderer");var xOD=new _.$W("engagementPanelSectionListRenderer");var o6=new _.$W("expandableVideoDescriptionBodyRenderer");var XfD=new _.$W("videoDescriptionHeaderRenderer");var ScP=new _.$W("videoDescriptionYouchatSectionViewModel");var Mk6=new _.$W("invokeInstrumentManagerAction");var RYO=new _.$W("logYpcFlowDismissCommand");var UOD=new _.$W("logYpcFlowStartCommand");var zYD=new _.$W("ypcCancelRecurrenceCommand");var ly5=new _.$W("cancellationFlowState");var dW6=new _.$W("premiumPurchaseFlowState");var B2i=new _.$W("unlimitedCreateFamilyEndpoint");var Mus=new _.$W("surveyAnswerCardRenderer");var T2z=new _.$W("iconBadgeRenderer");var mb6=new _.$W("showMoreButtonRenderer");var iMq=new _.$W("pollChoiceData");var tZ6=new _.$W("collaborativePlaylistVisibilityValidationRule");var Go6=function(m){_.dM.call(this,"channelMessage");this.message=m};
_.n(Go6,_.dM);var KS6=function(m){_.dM.call(this,"channelError");this.error=m};
_.n(KS6,_.dM);var WSs={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},LS6={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},A0i={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},w9i={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},gbW={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var nI=function(m){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 _.wB;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;m&&(this.id=m.id||m.name,this.name=m.name,this.clientName=m.clientName?m.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=m.app,this.type=m.type||"REMOTE_CONTROL",this.username=m.user||"",this.avatar=m.userAvatarUri||"",this.obfuscatedGaiaId=m.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=m.ownerObfuscatedGaiaId||"",this.castUserId=m.castUserId||"",this.theme=m.theme||"u",OMi(this,m.capabilities||""),c0G(this,
m.compatibleSenderThemes||""),YfD(this,m.experiments||""),this.remoteControllerUrl=m.remoteControllerUrl||"",this.localChannelEncryptionKey=m.localChannelEncryptionKey||"",this.deviceContext=m.deviceContext,this.brand=m.brand||"",this.model=m.model||"",this.year=m.year||0,this.os=m.os||"",this.osVersion=m.osVersion||"",this.chipset=m.chipset||"",this.mdxDialServerType=m.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=m.pairingType||"unknown",m=m.deviceInfo)&&(m=JSON.parse(m),this.brand=
m.brand||"",this.model=m.model||"",this.year=m.year||0,this.os=m.os||"",this.osVersion=m.osVersion||"",this.chipset=m.chipset||"",this.clientName=m.clientName?m.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=m.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
nI.prototype.copy=function(){var m={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&&(m.brand=this.brand);
this.model&&(m.model=this.model);this.year&&(m.year=this.year);this.os&&(m.os=this.os);this.osVersion&&(m.osVersion=this.osVersion);this.chipset&&(m.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(m.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(m.mdxDialServerType=this.mdxDialServerType);m=new nI(m);m.connected=this.connected;m.remoteControllerUrl=this.remoteControllerUrl;m.localChannelEncryptionKey=this.localChannelEncryptionKey;m.deviceContext=
this.deviceContext;m.castUserId=this.castUserId;return m};
nI.prototype.equals=function(m){return m?this.id==m.id:!1};
var OMi=function(m,G){m.capabilities.clear();_.Zb(G.split(","),_.BH(_.Y2.contains,WSs)).forEach(function(K){m.capabilities.add(K)})},c0G=function(m,G){m.compatibleSenderThemes.clear();
_.Zb(G.split(","),_.BH(_.Y2.contains,LS6)).forEach(function(K){m.compatibleSenderThemes.add(K)})},YfD=function(m,G){m.experiments.clear();
G.split(",").forEach(function(K){m.experiments.add(K)})};_.kJ($7,_.Lt);_.w=$7.prototype;_.w.JSC$20039_onTick_=function(){this.retryCount++;this.JSC$20037_interval_=Math.min(3E5,this.JSC$20037_interval_*2);this.JSC$20039_listener_();this.nextTickTime_&&this.start()};
_.w.getRetryCount=function(){return this.retryCount};
_.w.start=function(){var m=this.JSC$20037_interval_+15E3*Math.random(),G=this.delay_;G.isActive()||G.start(m);this.nextTickTime_=Date.now()+m};
_.w.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.w.isActive=function(){return this.delay_.isActive()};
_.w.reset=function(){this.delay_.stop();this.retryCount=0;this.JSC$20037_interval_=5E3};_.kJ(sE,USE);_.w=sE.prototype;_.w.subscribe=function(m,G,K){return this.pubsub_.subscribe(m,G,K)};
_.w.unsubscribe=function(m,G,K){return this.pubsub_.unsubscribe(m,G,K)};
_.w.unsubscribeByKey=function(m){return this.pubsub_.unsubscribeByKey(m)};
_.w.publish=function(m,G){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.w.dispose=function(){this.JSC$20040_disposed_||(this.JSC$20040_disposed_=!0,_.I$(this.pubsub_),this.disconnect(),_.I$(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20040_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.fJ({})})};
_.w.isDisposed=function(){return this.JSC$20040_disposed_};
_.w.connect=function(m,G,K){var W=this,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return _.Ve(u,2),W.useAsyncBrowserChannelHandler_?u.yield(W.connectPromise_,2):u.jumpTo(2);_.CZ(u);if(W.JSC$20040_disposed_||W.JSC$20040_channel_&&W.JSC$20040_channel_.getState()==2&&!W.isInitialReconnectTimer_)return u.return();W.sCookie_="";W.isInitialReconnectTimer_||W.reconnectTimer_.stop();W.connectionParams_=m||null;W.connectUi_=G||0;L=W.JSC$20040_pathPrefix_+"/test";A=W.JSC$20040_pathPrefix_+"/bind";O=
new b2(K?K.firstTestResults:null,K?K.secondTestResults:null,W.enableAsyncTest_);if(c=W.JSC$20040_channel_)c.handler_=null;O.handler_=W;W.JSC$20040_channel_=O;if(W.useAsyncBrowserChannelHandler_)return W.connectPromise_=r05(W).then(function(){return uWz(W,L,A,c,K)}),u.return(W.connectPromise_.then(function(){W.connectPromise_=_.fJ()}));
uWz(W,L,A,c,K);return _.ZO(u,0)})};
var uWz=function(m,G,K,W,L){hS6(m);if(m.JSC$20040_channel_){var A=_.E8("ID_TOKEN"),O=m.JSC$20040_channel_.JSC$19954_extraHeaders_||{};A?O["x-youtube-identity-token"]=A:delete O["x-youtube-identity-token"];m.JSC$20040_channel_.JSC$19954_extraHeaders_=O}p9q(m);W?(W.getState(),m.JSC$20040_channel_.connect(G,K,m.defaultQueryParams_,W.sid_,W.JSC$19954_lastArrayId_)):L?m.JSC$20040_channel_.connect(G,K,m.defaultQueryParams_,L.sessionId,L.arrayId):m.JSC$20040_channel_.connect(G,K,m.defaultQueryParams_);m.isInitialReconnectTimer_&&
!m.reconnectTimer_.isActive()&&m.reconnectTimer_.start()};
sE.prototype.disconnect=function(m){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.fJ())}finally{this.disconnectUi_=m||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),hS6(this),this.JSC$20040_channel_&&(this.JSC$20040_channel_.getState()==3&&ewP(this.JSC$20040_channel_),this.JSC$20040_channel_.disconnect()),this.disconnectUi_=0}};
sE.prototype.sendMessage=function(m,G){var K=this,W;return _.Y(function(L){switch(L.nextAddress){case 1:_.Ve(L,2);if(!K.useAsyncBrowserChannelHandler_){L.jumpTo(2);break}return L.yield(K.connectPromise_,2);case 2:_.CZ(L);if(K.JSC$20040_disposed_)return L.return();W={_sc:m};G&&_.Y2.extend(W,G);if(K.reconnectTimer_.isActive()||(K.JSC$20040_channel_?K.JSC$20040_channel_.getState():0)==2){K.JSC$20040_pendingMessages_.push(W);L.jumpTo(6);break}if(!K.isChannelOpened()){L.jumpTo(6);break}_.Ve(L,8);if(!K.useAsyncBrowserChannelHandler_||
J0s(K,m)){L.jumpTo(8);break}return L.yield(r05(K),8);case 8:_.CZ(L,0,0,1);K.isChannelOpened()&&(J0s(K,m)||p9q(K),hS6(K),ySE(K.JSC$20040_channel_,W));_.ZO(L,6,1);break;case 6:_.ZO(L,0)}})};
var J0s=function(m,G){return m.enableMdxAuthForConnectionOnly_?!0:m.disableMdxAuthForAdMessages_?Object.values(A0i).includes(G):m.disableMdxAuthForNonPlaybackMessages_?!Object.values(w9i).includes(G):m.disableMdxAuthForShortsMessages_?Object.values(gbW).includes(G):!1};
sE.prototype.JSC$19961_channelOpened=function(){this.retryLogger_&&this.reconnectTimer_&&this.reconnectTimer_.getRetryCount()>0&&this.retryLogger_.logSuccess();this.isInitialReconnectTimer_?(this.reconnectTimer_.stop(),_.I$(this.reconnectTimer_),this.reconnectTimer_=new $7(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1):this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20040_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)NA5(this);else{var m=
this.JSC$20040_pendingMessages_;this.JSC$20040_pendingMessages_=[];var G=m.length;p9q(this);Dbi(this,m,G);tRG(this)}else tRG(this)};
var NA5=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return _.Ve(W,2),W.yield(r05(m),2);_.CZ(W);G=m.JSC$20040_pendingMessages_;m.JSC$20040_pendingMessages_=[];K=G.length;Dbi(m,G,K);tRG(m);return _.ZO(W,0)})},Dbi=function(m,G,K){for(var W=0;W<K;++W)ySE(m.JSC$20040_channel_,G[W]);
tRG(m)},tRG=function(m){m.publish("handlerOpened");
m.JSC$20040_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.w=sE.prototype;_.w.JSC$19961_channelError=function(m){var G=m==2&&this.JSC$20040_channel_.JSC$19954_lastStatusCode_==401;m==4||G||(this.isInitialReconnectTimer_&&!this.reconnectTimer_.isActive()&&(_.I$(this.reconnectTimer_),this.reconnectTimer_=new $7(this.safeReconnect_,this),this.isInitialReconnectTimer_=!1),this.reconnectTimer_.start());this.publish("handlerError",m,G);G=Object.keys(H9s).find(function(K){return H9s[K]===m});
this.JSC$20040_channelErrorCounter.increment("BROWSER_CHANNEL",G!=null?G:"UNKNOWN")};
_.w.JSC$19961_channelClosed=function(m,G){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(G)for(var K=G.length,W=0;W<K;++W){var L=G[W].map;L&&this.JSC$20040_pendingMessages_.push(L)}this.JSC$20040_channelClosedCounter.increment("BROWSER_CHANNEL");m&&this.pendingMapsOnClosedCounter.JSC$10239_streamzService.JSC$10094_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",m.length);G&&this.undeliveredMapsOnClosedCounter.JSC$10242_streamzService.JSC$10094_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
G.length)};
_.w.JSC$19961_channelSuccess=function(m,G){G!=null&&m!=null&&this.channelMessageSentCounter.increment()};
_.w.JSC$19961_getAdditionalParams=function(){var m={v:2};this.sCookie_&&(m.gsessionid=this.sCookie_);this.connectUi_!=0&&(m.ui=""+this.connectUi_);this.disconnectUi_!=0&&(m.ui=""+this.disconnectUi_);this.connectionParams_&&_.Y2.extend(m,this.connectionParams_);return m};
_.w.JSC$19961_channelHandleArray=function(m){m[0]=="S"?this.sCookie_=m[1]:m[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20040_channel_.disconnect()):this.publish("handlerMessage",new zg5(m[0],m[1]));this.JSC$20040_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.w.isChannelOpened=function(){return!!this.JSC$20040_channel_&&this.JSC$20040_channel_.getState()==3};
var hS6=function(m){if(m.JSC$20040_channel_){var G=m.JSC$20040_getXsrfToken_(),K=m.JSC$20040_channel_.JSC$19954_extraHeaders_||{};G?K["x-youtube-lounge-xsrf-token"]=G:delete K["x-youtube-lounge-xsrf-token"];m.JSC$20040_channel_.JSC$19954_extraHeaders_=K}},r05=function(m){if(m.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.fJ();
if(!m.enableCachedUpdateAuthorizationHeader_)return FS5(m);m.updateAuthorizationHeaderPromise_===null&&(m.updateAuthorizationHeaderPromise_=FS5(m));return m.updateAuthorizationHeaderPromise_},FS5=function(m){return _.O5(m.getAuthorizationHeader_().then(function(G){QhO(m,G)}).thenCatch(function(){}),function(){m.updateAuthorizationHeaderPromise_=null})},QhO=function(m,G){if(m.JSC$20040_channel_){var K=m.JSC$20040_channel_.JSC$19954_extraHeaders_||{};
G&&Object.keys(G).length>0?K=Object.assign({},K,G):delete K.Authorization;m.JSC$20040_channel_.JSC$19954_extraHeaders_=K}},p9q=function(m){m.getAuthorizationHeaderSync_&&!m.useAsyncBrowserChannelHandler_&&QhO(m,m.getAuthorizationHeaderSync_())};
_.w=sE.prototype;_.w.setLoungeToken=function(m){(this.defaultQueryParams_.loungeIdToken=m)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20040_channel_){var G=this.JSC$20040_channel_.JSC$19954_extraHeaders_||{};m?G["X-YouTube-LoungeId-Token"]=m:delete G["X-YouTube-LoungeId-Token"];this.JSC$20040_channel_.JSC$19954_extraHeaders_=G}};
_.w.getDeviceId=function(){return this.defaultQueryParams_.id};
_.w.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.w.reconnect=function(){var m=this.reconnectTimer_;m.delay_.fire();m.start()};
_.w.safeReconnect_=function(){var m=this.JSC$20040_channel_,G=0;m.JSC$19954_backChannelRequest_&&G++;m.forwardChannelRequest_&&G++;G==0&&this.connect(this.connectionParams_,this.connectUi_)};var Iz=function(m,G){var K=m.basePath;m.supportCors&&(K=m.scheme+"://"+m.domain+m.port+m.basePath);return _.BE(K+G,{})};
Kgq.prototype.sendRequest=function(m,G,K,W,L,A,O){m={format:A?"RAW":"JSON",method:m,context:this,timeout:5E3,withCredentials:!!O,onSuccess:_.BH(this.JSC$20047_onSuccess_,W,!A),onError:_.BH(this.onError_,L),onTimeout:_.BH(this.JSC$20047_onTimeout_,L)};K&&(m.postParams=K,m.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.ix(G,m)};
Kgq.prototype.JSC$20047_onSuccess_=function(m,G,K,W){G?m(W):m({text:K.responseText})};
Kgq.prototype.onError_=function(m,G){m(Error("$k`"+G.status))};
Kgq.prototype.JSC$20047_onTimeout_=function(m){m(Error("al"))};var wLW=function(m,G){return!!G&&(m.id==G||m.uuid==G)},a$6=function(m){return{name:m.name,
screenId:m.id,loungeToken:m.token,dialId:m.uuid,screenIdType:m.idType,screenIdSecret:m.secret}},obq=function(m){return new qf(m)},nbq=function(m){return Array.isArray(m)?_.r$(m,obq):[]},ONW=function(m){if(!m)return"null";
var G=m.token?".."+m.token.slice(-6):"-",K=m.uuid?".."+m.uuid.slice(-6):"-",W=m.secret?".."+m.secret.slice(-6):"-";return'{name:"'+m.name+'",id:'+m.id.substr(0,6)+"..,token:"+(G+",uuid:"+K+",idType:"+m.idType+",secret:")+(W+"}")},Vw6=function(m){return Array.isArray(m)?"["+_.r$(m,ONW).join(",")+"]":"null"};var hOP="",H5=null;var neD=function(m,G){_.ai.call(this);var K=this;this.handler=m();this.handler.subscribe("handlerOpened",this.JSC$20054_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(W,L){K.onError(L)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=G};
_.n(neD,_.ai);_.w=neD.prototype;_.w.connect=function(m,G,K){this.handler.connect(m,G,K)};
_.w.disconnect=function(m){this.handler.disconnect(m)};
_.w.reconnect=function(){this.handler.reconnect()};
_.w.getDeviceId=function(){return this.handler.getDeviceId()};
_.w.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.w.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.w.JSC$20054_onOpened=function(){this.dispatchEvent("channelOpened");var m=this.handler,G=this.currentScreenId;_.i0("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!m.JSC$20040_channel_.useChunked_,sessionId:m.JSC$20040_channel_.sid_,arrayId:m.JSC$20040_channel_.JSC$19954_lastArrayId_});_.i0("yt-remote-session-screen-id",G);m=geE();G=ODq();_.Vf(m,G)||m.push(G);ujq(m);r9D()};
_.w.onClosed=function(){this.dispatchEvent("channelClosed")};
_.w.onMessage=function(m){this.dispatchEvent(new Go6(m))};
_.w.onError=function(m){this.dispatchEvent(new KS6(m?1:0))};
_.w.sendMessage=function(m,G){this.handler.sendMessage(m,G)};
_.w.setLoungeToken=function(m){this.handler.setLoungeToken(m)};
_.w.dispose=function(){this.handler.dispose()};var oeP=function(m,G,K){var W=this;K=K===void 0?function(){return""}:K;
var L=L===void 0?new eg6:L;var A=A===void 0?new _.Gd:A;this.pathPrefix=m;this.defaultQueryParams=G;this.getXsrfToken=K;this.JSC$20057_pubsub=A;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new $7(function(){var O;((O=W.channel)==null?void 0:H5q((new mS6(O,O.JSC$19922_channel_)).JSC$19932_channel_.forwardChannelRequestPool_))===0&&W.connect(W.connectionParams,W.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20057_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20057_channelOpenedCounter=new l7z;this.JSC$20057_channelClosedCounter=new BFP;this.JSC$20057_channelMessageReceivedCounter=new TFz;this.JSC$20057_channelErrorCounter=new ml6};
oeP.prototype.connect=function(m,G){m=m===void 0?{}:m;G=G===void 0?0:G;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=m,this.connectUi=G,bMz(this),(m=_.E8("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=m: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 pI(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,vbD(this))};
var vbD=function(m){_.oi(m.channel,"w",function(){m.channelState=3;m.reconnectTimer.reset();m.connectionParams=null;m.connectUi=0;for(var G=_.g(m.nonAckedMessagesOnChannelClosed),K=G.next();!K.done;K=G.next())K=K.value,m.channel&&m.channel.send(K);m.nonAckedMessagesOnChannelClosed=[];m.publish("webChannelOpened");m.JSC$20057_channelOpenedCounter.increment("WEB_CHANNEL")});
_.oi(m.channel,"x",function(){m.channelState=0;m.reconnectTimer.isActive()||m.publish("webChannelClosed");var G,K=(G=m.channel)==null?void 0:i9q(new mS6(G,G.JSC$19922_channel_));K&&(m.nonAckedMessagesOnChannelClosed=[].concat(_.Bz(K)));m.JSC$20057_channelClosedCounter.increment("WEB_CHANNEL")});
_.oi(m.channel,"z",function(G){var K=G.data;K[0]==="gracefulReconnect"?(m.reconnectTimer.start(),m.channel&&m.channel.close()):m.publish("webChannelMessage",new zg5(K[0],K[1]));m.lastStatusCode=G.statusCode;m.JSC$20057_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.oi(m.channel,"y",function(){m.lastStatusCode===401||m.reconnectTimer.start();m.publish("webChannelError");m.JSC$20057_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.w=oeP.prototype;_.w.disconnect=function(m){this.disconnectUi=m===void 0?0:m;this.reconnectTimer.stop();bMz(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.w.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.w.reconnect=function(){var m=this.reconnectTimer;m.delay_.fire();m.start()};
_.w.sendMessage=function(m,G){this.channel&&(bMz(this),m=Object.assign({},{_sc:m},G),this.channel.send(m))};
_.w.setLoungeToken=function(m){m||this.reconnectTimer.stop();m?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=m:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var bMz=function(m){var G=m.getXsrfToken();G?m.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=G:delete m.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.w=oeP.prototype;_.w.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.w.publish=function(m){return this.JSC$20057_pubsub.publish.apply(this.JSC$20057_pubsub,[m].concat(_.Bz(_.mb.apply(1,arguments))))};
_.w.subscribe=function(m,G,K){return this.JSC$20057_pubsub.subscribe(m,G,K)};
_.w.unsubscribe=function(m,G,K){return this.JSC$20057_pubsub.unsubscribe(m,G,K)};
_.w.unsubscribeByKey=function(m){return this.JSC$20057_pubsub.unsubscribeByKey(m)};
_.w.dispose=function(){this.JSC$20057_disposed||(this.JSC$20057_disposed=!0,_.I$(this.JSC$20057_pubsub),this.disconnect(),_.I$(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.w.isDisposed=function(){return this.JSC$20057_disposed};var ah5=function(m){_.ai.call(this);this.webChannelService=m();this.webChannelService.subscribe("webChannelOpened",this.JSC$20065_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.n(ah5,_.ai);_.w=ah5.prototype;_.w.connect=function(m,G){this.webChannelService.connect(m,G)};
_.w.disconnect=function(m){this.webChannelService.disconnect(m)};
_.w.reconnect=function(){this.webChannelService.reconnect()};
_.w.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.w.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.w.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.w.JSC$20065_onOpened=function(){this.dispatchEvent("channelOpened")};
_.w.onClosed=function(){this.dispatchEvent("channelClosed")};
_.w.onMessage=function(m){this.dispatchEvent(new Go6(m))};
_.w.onError=function(){this.dispatchEvent(new KS6(this.webChannelService.lastStatusCode===401?1:0))};
_.w.sendMessage=function(m,G){this.webChannelService.sendMessage(m,G)};
_.w.setLoungeToken=function(m){this.webChannelService.setLoungeToken(m)};
_.w.dispose=function(){this.webChannelService.dispose()};var C1u=Date.now(),j2=null,joD=Array(50),IhD=-1,kgG=!1;var V_=function(m){m=m===void 0?!1:m;_.Lt.call(this);this.pubSub_=new _.Gd(m);_.UR(this,this.pubSub_)};
_.kJ(V_,_.Lt);V_.prototype.subscribe=function(m,G,K){return this.isDisposed()?0:this.pubSub_.subscribe(m,G,K)};
V_.prototype.unsubscribe=function(m,G,K){return this.isDisposed()?!1:this.pubSub_.unsubscribe(m,G,K)};
V_.prototype.unsubscribeByKey=function(m){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(m)};
V_.prototype.publish=function(m,G){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};_.kJ(Zr,V_);Zr.prototype.getScreens=function(){return this.screens};
Zr.prototype.contains=function(m){return!!A9D(this.screens,m)};
Zr.prototype.get=function(m){return m?EE(this.screens,m):null};
var $bu=function(m,G){var K=m.get(G.uuid)||m.get(G.id);if(K)return m=K.name,K.id=G.id||K.id,K.name=G.name,K.token=G.token,K.uuid=G.uuid||K.uuid,K.name!=m;m.screens.push(G);return!0},shu=function(m,G){var K=m.screens.length!=G.length;
m.screens=_.Zb(m.screens,function(A){return!!A9D(G,A)});
for(var W=G.length,L=0;L<W;L++)K=$bu(m,G[L])||K;return K},qfD=function(m,G){var K=m.screens.length;
m.screens=_.Zb(m.screens,function(W){return!(W||G?!W!=!G?0:W.id==G.id:1)});
return m.screens.length<K};
Zr.prototype.info=function(m){k7(this.JSC$20069_logName_,m)};var Eb5=function(m,G,K,W,L){V_.call(this);this.JSC$20072_http_=m;this.pairingCode_=G;this.deviceId_=K;this.friendlyName_=W;this.enableShortLivedLoungeToken_=L;this.pollIndex_=0;this.JSC$20072_xhr_=null;this.JSC$20072_timer_=NaN};
_.n(Eb5,V_);_.w=Eb5.prototype;_.w.start=function(){!this.JSC$20072_xhr_&&isNaN(this.JSC$20072_timer_)&&this.poll_()};
_.w.stop=function(){this.JSC$20072_xhr_&&(this.JSC$20072_xhr_.abort(),this.JSC$20072_xhr_=null);isNaN(this.JSC$20072_timer_)||(_.m1(this.JSC$20072_timer_),this.JSC$20072_timer_=NaN)};
_.w.disposeInternal=function(){this.stop();V_.prototype.disposeInternal.call(this)};
_.w.poll_=function(){this.JSC$20072_timer_=NaN;this.JSC$20072_xhr_=_.ix(Iz(this.JSC$20072_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.AO)(this.JSC$20074_onSuccess_,this),onError:(0,_.AO)(this.onError_,this),onTimeout:(0,_.AO)(this.JSC$20074_onTimeout_,this)})};
_.w.JSC$20074_onSuccess_=function(m,G){this.JSC$20072_xhr_=null;m=G.screen||{};m.dialId=this.deviceId_;m.name=this.friendlyName_;G=-1;this.enableShortLivedLoungeToken_&&m.shortLivedLoungeToken&&m.shortLivedLoungeToken.value&&m.shortLivedLoungeToken.refreshIntervalMs&&(m.screenIdType="shortLived",m.loungeToken=m.shortLivedLoungeToken.value,G=m.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new qf(m),G)};
_.w.onError_=function(m){this.JSC$20072_xhr_=null;m.status&&m.status==404?this.pollIndex_>=HMP.length?this.publish("pairingFailed",Error("bl")):(m=HMP[this.pollIndex_],this.JSC$20072_timer_=_.MC((0,_.AO)(this.poll_,this),m),this.pollIndex_++):this.publish("pairingFailed",Error("cl`"+m.status))};
_.w.JSC$20074_onTimeout_=function(){this.JSC$20072_xhr_=null;this.publish("pairingFailed",Error("dl"))};
var HMP=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.kJ(P5,Zr);_.w=P5.prototype;_.w.start=function(){df(this)&&this.publish("screenChange");!_.Gh("yt-remote-lounge-token-expiration")&&I$O(this);_.m1(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.MC((0,_.AO)(this.start,this),1E4)};
_.w.add=function(m,G){df(this);$bu(this,m);jh6(this,!1);this.publish("screenChange");G(m);m.token||I$O(this)};
_.w.remove=function(m,G){var K=df(this);qfD(this,m)&&(jh6(this,!1),K=!0);G(m);K&&this.publish("screenChange")};
_.w.updateName=function(m,G,K,W){var L=df(this),A=this.get(m.id);A?(A.name!=G&&(A.name=G,jh6(this,!1),L=!0),K(m)):W(Error("el"));L&&this.publish("screenChange")};
_.w.disposeInternal=function(){_.m1(this.loungeTokenRefreshTimer_);P5.superClass_.disposeInternal.call(this)};
var I$O=function(m){if(m.screens.length){var G=_.r$(m.screens,function(W){return W.id}),K=Iz(m.JSC$20076_http_,"/pairing/get_lounge_token_batch");
m.JSC$20076_http_.sendRequest("POST",K,{screen_ids:G.join(",")},(0,_.AO)(m.handleLoungeTokens_,m),(0,_.AO)(m.handleLoungeTokenError_,m))}};
P5.prototype.handleLoungeTokens_=function(m){df(this);var G=this.screens.length;m=m&&m.screens||[];for(var K=m.length,W=0;W<K;++W){var L=m[W],A=this.get(L.screenId);A&&(A.token=L.loungeToken,--G)}jh6(this,!G);G&&k7(this.JSC$20069_logName_,"Missed "+G+" lounge tokens.")};
P5.prototype.handleLoungeTokenError_=function(m){k7(this.JSC$20069_logName_,"Requesting lounge tokens failed: "+m)};
var df=function(m){if(_.F("deprecate_pair_servlet_enabled"))return shu(m,[]);var G=nbq(J9G());G=_.Zb(G,function(K){return!K.uuid});
return shu(m,G)},jh6=function(m,G){DlW(_.r$(m.screens,a$6));
G&&NTP()};var bR=function(m,G){V_.call(this);this.getScreensToCheck_=G;G=(G=_.Gh("yt-remote-online-screen-ids")||"")?G.split(","):[];for(var K={},W=this.getScreensToCheck_(),L=W.length,A=0;A<L;++A){var O=W[A].id;K[O]=_.Vf(G,O)}this.screenIdSet_=K;this.JSC$20079_http_=m;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;koz("Initialized with "+_.rO(this.screenIdSet_))};
_.n(bR,V_);bR.prototype.isOnline=function(m){return!!this.screenIdSet_[m]};
bR.prototype.start=function(){var m=parseInt(_.Gh("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.jI()-144E5<m?0:m)?CoD(this):(this.fastCheckEndTime_=_.jI()+3E5,_.i0("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
bR.prototype.isEmpty=function(){return _.Y2.isEmpty(this.screenIdSet_)};
bR.prototype.update=function(){koz("Updating availability on schedule.");var m=this.getScreensToCheck_(),G=_.Y2.filter(this.screenIdSet_,function(K,W){return K&&!!EE(m,W)},this);
VRi(this,G)};
var ZMi=function(m,G,K){var W=Iz(m.JSC$20079_http_,"/pairing/get_screen_availability");m.JSC$20079_http_.sendRequest("POST",W,{lounge_token:G.token},(0,_.AO)(function(L){L=L.screens||[];for(var A=L.length,O=0;O<A;++O)if(L[O].loungeToken==G.token){K(L[O].status=="online");return}K(!1)},m),(0,_.AO)(function(){K(!1)},m))};
bR.prototype.disposeInternal=function(){_.m1(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);V_.prototype.disposeInternal.call(this)};
var VRi=function(m,G){a:if(_.Y2.getCount(G)!=_.Y2.getCount(m.screenIdSet_))var K=!1;else{K=_.Y2.getKeys(G);for(var W=K.length,L=0;L<W;++L)if(!m.screenIdSet_[K[L]]){K=!1;break a}K=!0}K||(koz("Updated online screens: "+_.rO(m.screenIdSet_)),m.screenIdSet_=G,m.publish("screenChange"));dbD(m)},CoD=function(m){isNaN(m.refreshTimer_)||_.m1(m.refreshTimer_);
m.refreshTimer_=_.MC((0,_.AO)(m.requestScreenAvailability_,m),m.fastCheckEndTime_>0&&m.fastCheckEndTime_<_.jI()?2E4:1E4)};
bR.prototype.requestScreenAvailability_=function(){_.m1(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var m=PoE(this);if(_.Y2.getCount(m)){var G=Iz(this.JSC$20079_http_,"/pairing/get_screen_availability"),K={lounge_token:_.Y2.getKeys(m).join(",")};this.currentRequest_=this.JSC$20079_http_.sendRequest("POST",G,K,(0,_.AO)(this.onScreenAvailability_,this,m),(0,_.AO)(this.onScreenAvailabilityError_,this))}else VRi(this,{}),CoD(this)};
bR.prototype.onScreenAvailability_=function(m,G){this.currentRequest_=null;var K=_.Y2.getKeys(PoE(this));if(_.BJ(K,_.Y2.getKeys(m))){G=G.screens||[];K={};for(var W=G.length,L=0;L<W;++L)K[m[G[L].loungeToken]]=G[L].status=="online";VRi(this,K);CoD(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
bR.prototype.onScreenAvailabilityError_=function(m){this.warn_("Screen availability failed: "+m);this.currentRequest_=null;CoD(this)};
var koz=function(m){k7("OnlineScreenService",m)};
bR.prototype.warn_=function(m){k7("OnlineScreenService",m)};
var PoE=function(m){var G={};_.Z0(m.getScreensToCheck_(),function(K){K.token?G[K.token]=K.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return G},dbD=function(m){m=_.Y2.getKeys(_.Y2.filter(m.screenIdSet_,function(G){return G}));
m.sort(_.k9V);m.length?_.i0("yt-remote-online-screen-ids",m.join(","),60):_.Kr("yt-remote-online-screen-ids")};_.kJ(y_,Zr);_.w=y_.prototype;_.w.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.w.add=function(m,G,K){this.localScreenService_.add(m,G,K)};
_.w.remove=function(m,G,K){this.localScreenService_.remove(m,G,K);this.onlineScreenService_.update()};
_.w.updateName=function(m,G,K,W){this.localScreenService_.contains(m)?this.localScreenService_.updateName(m,G,K,W):(m="Updating name of unknown screen: "+m.name,k7(this.JSC$20069_logName_,m),W(Error(m)))};
_.w.getScreens=function(m){return m?this.screens:ug6(this.screens,_.Zb(this.automaticScreens_,function(G){return!this.contains(G)},this))};
_.w.JSC$20084_getOnlineScreens=function(){return _.Zb(this.getScreens(!0),function(m){return this.onlineScreenService_.isOnline(m.id)},this)};
var eSi=function(m,G,K,W,L,A){m.info("getAutomaticScreenByIds "+K+" / "+G);K||(K=m.deviceToScreenId_[G]);var O=m.getScreens(),c=K?EE(O,K):null;K&&(m.disableAutomaticScreenCache_||c)||(c=EE(O,G));if(c){c.uuid=G;var u=vK(m,c);ZMi(m.onlineScreenService_,u,function(h){L(h?u:null)})}else K?y0E(m,K,(0,_.AO)(function(h){var J=vK(this,new qf({name:W,
screenId:K,loungeToken:h,dialId:G||""}));ZMi(this.onlineScreenService_,J,function(N){L(N?J:null)})},m),A):L(null)};
y_.prototype.JSC$20084_getScreenByPollingPairingCode=function(m,G,K,W,L,A){var O=this;this.info("getDialScreenByPairingCode "+m+" / "+G);var c=new Eb5(this.JSC$20082_http_,m,G,K,W);c.subscribe("pairingComplete",function(u,h){_.I$(c);L(vK(O,u),h)});
c.subscribe("pairingFailed",function(u){_.I$(c);A(u)});
c.start();return(0,_.AO)(c.stop,c)};
var f$z=function(m,G){for(var K=m.screens.length,W=0;W<K;++W)if(m.screens[W].name==G)return m.screens[W];return null};
y_.prototype.JSC$20084_getScreenByPairingCode=function(m,G,K,W){_.ix(Iz(this.JSC$20082_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:m},timeout:5E3,onSuccess:(0,_.AO)(function(L,A){L=new qf(A.screen||{});if(!L.name||f$z(this,L.name)){a:{A=L.name;for(var O=2,c=G(A,O);f$z(this,c);){O++;if(O>20)break a;c=G(A,O)}A=c}L.name=A}K(vK(this,L))},this),
onError:(0,_.AO)(function(L){W(Error("fl`"+L.status))},this),
onTimeout:(0,_.AO)(function(){W(Error("gl"))},this)})};
var xbi=function(m,G,K){ZMi(m.onlineScreenService_,G,K)};
y_.prototype.disposeInternal=function(){_.I$(this.localScreenService_);_.I$(this.onlineScreenService_);y_.superClass_.disposeInternal.call(this)};
var y0E=function(m,G,K,W){m.info("requestLoungeToken_ for "+G);var L={postParams:{screen_ids:G},method:"POST",context:m,onSuccess:function(A,O){A=O&&O.screens||[];A[0]&&A[0].screenId==G?K(A[0].loungeToken):W(Error("hl"))},
onError:function(){W(Error("il"))}};
_.ix(Iz(m.JSC$20082_http_,"/pairing/get_lounge_token_batch"),L)},X9W=function(m){m.screens=m.localScreenService_.getScreens();
for(var G=_.Y2.transpose(m.deviceToScreenId_),K=m.screens.length,W=0;W<K;++W){var L=m.screens[W];L.uuid=G[L.id]||""}m.info("Updated manual screens: "+Vw6(m.screens))};
y_.prototype.handleScreenChange_=function(){X9W(this);this.publish("screenChange");this.onlineScreenService_.update()};
var ZD6=function(m){Sfi(m);m.localScreenService_=new P5(m.JSC$20082_http_);m.localScreenService_.subscribe("screenChange",(0,_.AO)(m.handleScreenChange_,m));X9W(m);m.disableAutomaticScreenCache_||(m.automaticScreens_=nbq(_.Gh("yt-remote-automatic-screen-cache")||[]));Sfi(m);m.info("Initializing automatic screens: "+Vw6(m.automaticScreens_));m.onlineScreenService_=new bR(m.JSC$20082_http_,(0,_.AO)(m.getScreens,m,!0));m.onlineScreenService_.subscribe("screenChange",(0,_.AO)(function(){this.publish("onlineScreenChange")},
m))},vK=function(m,G){var K=m.get(G.id);
K?(K.uuid=G.uuid,G=K):((K=EE(m.automaticScreens_,G.uuid))?(K.id=G.id,K.token=G.token,G=K):m.automaticScreens_.push(G),m.disableAutomaticScreenCache_||RSs(m));Sfi(m);m.deviceToScreenId_[G.uuid]=G.id;_.i0("yt-remote-device-id-map",m.deviceToScreenId_,31536E3);return G},RSs=function(m){m=_.Zb(m.automaticScreens_,function(G){return G.idType!="shortLived"});
_.i0("yt-remote-automatic-screen-cache",_.r$(m,a$6))},Sfi=function(m){m.deviceToScreenId_=_.Gh("yt-remote-device-id-map")||{}};
y_.prototype.dispose=y_.prototype.dispose;_.kJ(e2,V_);var $c=function(m,G){m.screen_=G;m.publish("sessionScreen",m.screen_)},UbD=function(m,G){m.screen_&&(m.screen_.token=G,vK(m.JSC$20086_screenService_,m.screen_));
m.publish("sessionScreen",m.screen_)};
e2.prototype.onSessionStopped=function(m){this.isDisposed()||(m&&(sI(this,""+m),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
e2.prototype.info=function(m){k7(this.JSC$20086_logName_,m)};
var sI=function(m,G){k7(m.JSC$20086_logName_,G)};
e2.prototype.JSC$20088_getCastSession=function(){return null};
e2.prototype.setDisplayStatus=function(m){var G=this.receiver_;m?(G.displayStatus=new chrome.cast.ReceiverDisplayStatus(m,[]),G.displayStatus.showStop=!0):G.displayStatus=null;chrome.cast.setReceiverDisplayStatus(G,(0,_.AO)(function(){this.info("Updated receiver status for "+G.friendlyName+": "+m)},this),(0,_.AO)(function(){sI(this,"Failed to update receiver status for: "+G.friendlyName)},this))};
e2.prototype.disposeInternal=function(){this.setDisplayStatus("");e2.superClass_.disposeInternal.call(this)};var qZ=function(m,G,K){e2.call(this,m,G,"CastSession");var W=this;this.config_=K;this.JSC$20091_session_=null;this.JSC$20091_boundSessionUpdate_=(0,_.AO)(this.JSC$20093_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.AO)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.MC(function(){zS5(W,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20091_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20091_isInitLoungeToken_=!1;this.JSC$20091_lastLoungeTokenRefreshError_="unknown"};
_.n(qZ,e2);_.w=qZ.prototype;
_.w.setCastSession=function(m){if(this.JSC$20091_session_){if(this.JSC$20091_session_==m)return;sI(this,"Overriding cast session with new session object");l$W(this);this.JSC$20091_isInitLoungeToken_=!1;this.JSC$20091_lastLoungeTokenRefreshError_="unknown";this.JSC$20091_session_.removeUpdateListener(this.JSC$20091_boundSessionUpdate_);this.JSC$20091_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20091_session_=m;this.JSC$20091_session_.addUpdateListener(this.JSC$20091_boundSessionUpdate_);this.JSC$20091_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);BAW(this,"getMdxSessionStatus")};
_.w.launchWithParams=function(m){this.info("launchWithParams no-op for Cast: "+_.rO(m))};
_.w.stop=function(){if(this.JSC$20091_session_)this.JSC$20091_session_.stop((0,_.AO)(function(){this.onSessionStopped()},this),(0,_.AO)(function(){this.onSessionStopped(Error("jl"))},this));
else this.onSessionStopped(Error("kl"))};
_.w.setDisplayStatus=function(){};
_.w.disposeInternal=function(){this.info("disposeInternal");l$W(this);this.JSC$20091_session_&&(this.JSC$20091_session_.removeUpdateListener(this.JSC$20091_boundSessionUpdate_),this.JSC$20091_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20091_session_=null;e2.prototype.disposeInternal.call(this)};
var TA6=function(m,G){_.m1(m.getLoungeTokenTimeoutKey_);m.getLoungeTokenTimeoutKey_=0;G==0?MRP(m):m.getLoungeTokenTimeoutKey_=_.MC(function(){MRP(m)},G)},MRP=function(m){BAW(m,"getLoungeToken");
_.m1(m.onLoungeTokenTimeoutKey_);m.onLoungeTokenTimeoutKey_=_.MC(function(){mus(m,null)},3E4)},BAW=function(m,G){m.info("sendYoutubeMessage_: "+G+" "+_.rO(void 0));
var K={};K.type=G;m.JSC$20091_session_?m.JSC$20091_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",K,function(){},(0,_.AO)(function(){sI(this,"Failed to send message: "+G+".")},m)):sI(m,"Sending yt message without session: "+_.rO(K))};
qZ.prototype.onYoutubeMessage_=function(m,G){if(!this.isDisposed())if(G)if(G=_.KJ(G),_.Ud(G))switch(m=""+G.type,G=G.data||{},this.info("onYoutubeMessage_: "+m+" "+_.rO(G)),m){case "mdxSessionStatus":zS5(this,G);break;case "loungeToken":mus(this,G);break;default:sI(this,"Unknown youtube message: "+m)}else sI(this,"Unable to parse message.");else sI(this,"No data in message.")};
var iO6=function(m,G){if(G)m.info("onConnectedScreenId_: Received screenId: "+G),m.screen_&&m.screen_.id==G||m.getScreen_(G,function(K){$c(m,K)},function(){return m.onSessionStopped()},5);
else m.onSessionStopped(Error("ll"))},K$i=function(m,G,K){m.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(G));
var W=new qf(G);GJ6(m,W,function(L){L?(m.JSC$20091_isInitLoungeToken_=!0,vK(m.JSC$20086_screenService_,W),$c(m,W),m.JSC$20091_lastLoungeTokenRefreshError_="unknown",TA6(m,K)):(_.j1(Error("ml`"+JSON.stringify(G))),m.onSessionStopped())},5)},zS5=function(m,G){_.m1(m.sessionStatusTimeoutKey_);
m.sessionStatusTimeoutKey_=0;if(G)m.config_.enableCastLoungeToken&&G.loungeToken?G.deviceId?m.screen_&&m.screen_.uuid==G.deviceId||(G.loungeTokenRefreshIntervalMs?K$i(m,{name:m.receiver_.friendlyName,screenId:G.screenId,loungeToken:G.loungeToken,dialId:G.deviceId,screenIdType:"shortLived"},G.loungeTokenRefreshIntervalMs):(_.j1(Error("ol`"+JSON.stringify(G))),iO6(m,G.screenId))):(_.j1(Error("nl`"+JSON.stringify(G))),iO6(m,G.screenId)):iO6(m,G.screenId);else m.onSessionStopped(Error("ll"))},mus=function(m,
G){_.m1(m.onLoungeTokenTimeoutKey_);
m.onLoungeTokenTimeoutKey_=0;var K=null;if(G)if(G.loungeToken){var W;((W=m.screen_)==null?void 0:W.token)==G.loungeToken&&(K="staleLoungeToken")}else K="missingLoungeToken";else K="noLoungeTokenResponse";K?(m.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(G)+", error: "+K)),m.JSC$20091_lastLoungeTokenRefreshError_=K,TA6(m,3E4)):(UbD(m,G.loungeToken),m.JSC$20091_isInitLoungeToken_=!1,m.JSC$20091_lastLoungeTokenRefreshError_="unknown",TA6(m,G.loungeTokenRefreshIntervalMs))};
qZ.prototype.getScreen_=function(m,G,K,W){_.m1(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;eSi(this.JSC$20086_screenService_,this.receiver_.label,m,this.receiver_.friendlyName,(0,_.AO)(function(L){L?G(L):W>=0?(sI(this,"Screen "+m+" appears to be offline. "+W+" retries left."),this.getScreenTimeoutKey_=_.MC((0,_.AO)(this.getScreen_,this,m,G,K,W-1),300)):K(Error("pl"))},this),K)};
var GJ6=function(m,G,K,W){_.m1(m.JSC$20091_checkScreenAvailabilityTimeoutKey_);m.JSC$20091_checkScreenAvailabilityTimeoutKey_=0;xbi(m.JSC$20086_screenService_,G,function(L){L||W<0?K(L):m.JSC$20091_checkScreenAvailabilityTimeoutKey_=_.MC(function(){GJ6(m,G,K,W-1)},300)})};
qZ.prototype.JSC$20088_getCastSession=function(){return this.JSC$20091_session_};
qZ.prototype.JSC$20093_onSessionUpdate_=function(m){this.isDisposed()||m||(sI(this,"Cast session died."),this.onSessionStopped())};
var l$W=function(m){_.m1(m.getScreenTimeoutKey_);m.getScreenTimeoutKey_=0;_.m1(m.JSC$20091_checkScreenAvailabilityTimeoutKey_);m.JSC$20091_checkScreenAvailabilityTimeoutKey_=0;_.m1(m.sessionStatusTimeoutKey_);m.sessionStatusTimeoutKey_=0;_.m1(m.onLoungeTokenTimeoutKey_);m.onLoungeTokenTimeoutKey_=0;_.m1(m.getLoungeTokenTimeoutKey_);m.getLoungeTokenTimeoutKey_=0};var EI=function(m,G,K,W){e2.call(this,m,G,"DialSession");this.config_=W;this.JSC$20095_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20095_theme_=K;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20095_deferredLaunchDeadlineTimer_=NaN;this.JSC$20095_boundSessionUpdate_=(0,_.AO)(this.JSC$20097_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20095_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20095_isInitLoungeToken_=!1;this.JSC$20095_lastLoungeTokenRefreshError_="unknown"};
_.n(EI,e2);EI.prototype.setCastSession=function(m){this.JSC$20095_session_=m;this.JSC$20095_session_.addUpdateListener(this.JSC$20095_boundSessionUpdate_)};
EI.prototype.launchWithParams=function(m){this.connectData_=m;this.deferredLaunch_()};
EI.prototype.stop=function(){W$i(this);if(this.JSC$20095_session_)this.JSC$20095_session_.stop((0,_.AO)(this.onSessionStopped,this,null),(0,_.AO)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
EI.prototype.disposeInternal=function(){W$i(this);this.JSC$20095_session_&&this.JSC$20095_session_.removeUpdateListener(this.JSC$20095_boundSessionUpdate_);this.JSC$20095_session_=null;e2.prototype.disposeInternal.call(this)};
var L$5=function(m){var G;return!!(m.config_.enableDialLoungeToken&&((G=m.JSC$20095_session_)==null?0:G.getDialAppInfo))},wyE=function(m){m.cancelPolling_=m.JSC$20086_screenService_.JSC$20084_getScreenByPollingPairingCode(m.reversePairingCode_,m.receiver_.label,m.receiver_.friendlyName,L$5(m),function(G,K){m.cancelPolling_=function(){};
m.JSC$20095_isInitLoungeToken_=!0;$c(m,G);G.idType=="shortLived"&&K>0&&A7q(m,K)},function(G){m.cancelPolling_=function(){};
m.onSessionStopped(G)})};
EI.prototype.JSC$20097_onSessionUpdate_=function(m){this.isDisposed()||m||(sI(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var gLu=function(m){var G={};G.pairingCode=m.reversePairingCode_;G.theme=m.JSC$20095_theme_;Qo6()&&(G.env_useStageMdx=1);return _.l$(G)},OOP=function(m){return new Promise(function(G){m.reversePairingCode_=Wg5();
if(m.connectData_){var K=new chrome.cast.DialLaunchResponse(!0,gLu(m));G(K);wyE(m)}else m.deferredLaunch_=function(){_.m1(m.JSC$20095_deferredLaunchDeadlineTimer_);m.deferredLaunch_=function(){};
m.JSC$20095_deferredLaunchDeadlineTimer_=NaN;var W=new chrome.cast.DialLaunchResponse(!0,gLu(m));G(W);wyE(m)},m.JSC$20095_deferredLaunchDeadlineTimer_=_.MC(function(){m.deferredLaunch_()},100)})},Y$s=function(m,G,K){m.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(G));
var W=new qf(G);return(new Promise(function(L){c7z(m,W,function(A){A?(m.JSC$20095_isInitLoungeToken_=!0,vK(m.JSC$20086_screenService_,W),$c(m,W),A7q(m,K)):_.j1(Error("rl`"+JSON.stringify(G)));L(A)},5)})).then(function(L){return L?new chrome.cast.DialLaunchResponse(!1):OOP(m)})},r7E=function(m,G){var K=m.launchData_.receiver.label,W=m.receiver_.friendlyName;
return(new Promise(function(L){eSi(m.JSC$20086_screenService_,K,G,W,function(A){A&&A.token&&$c(m,A);L(A)},function(A){sI(m,"Failed to get DIAL screen: "+A);
L(null)})})).then(function(L){return L&&L.token?new chrome.cast.DialLaunchResponse(!1):OOP(m)})},c7z=function(m,G,K,W){_.m1(m.JSC$20095_checkScreenAvailabilityTimeoutKey_);
m.JSC$20095_checkScreenAvailabilityTimeoutKey_=0;xbi(m.JSC$20086_screenService_,G,function(L){L||W<0?K(L):m.JSC$20095_checkScreenAvailabilityTimeoutKey_=_.MC(function(){c7z(m,G,K,W-1)},300)})},A7q=function(m,G){m.info("getDialAppInfoWithTimeout_ "+G);
L$5(m)&&(_.m1(m.getDialAppInfoTimeoutKey_),m.getDialAppInfoTimeoutKey_=0,G==0?u3q(m):m.getDialAppInfoTimeoutKey_=_.MC(function(){u3q(m)},G))},u3q=function(m){L$5(m)&&m.JSC$20095_session_.getDialAppInfo(function(G){m.info("getDialAppInfo dialLaunchData: "+JSON.stringify(G));
G=G.extraData||{};var K=null;if(G.loungeToken){var W;((W=m.screen_)==null?void 0:W.token)==G.loungeToken&&(K="staleLoungeToken")}else K="missingLoungeToken";K?(m.JSC$20095_lastLoungeTokenRefreshError_=K,A7q(m,3E4)):(m.JSC$20095_isInitLoungeToken_=!1,m.JSC$20095_lastLoungeTokenRefreshError_="unknown",UbD(m,G.loungeToken),A7q(m,G.loungeTokenRefreshIntervalMs))},function(G){m.info("getDialAppInfo error: "+G);
m.JSC$20095_lastLoungeTokenRefreshError_="noLoungeTokenResponse";A7q(m,3E4)})},W$i=function(m){_.m1(m.JSC$20095_checkScreenAvailabilityTimeoutKey_);
m.JSC$20095_checkScreenAvailabilityTimeoutKey_=0;_.m1(m.getDialAppInfoTimeoutKey_);m.getDialAppInfoTimeoutKey_=0;m.cancelPolling_();m.cancelPolling_=function(){};
_.m1(m.JSC$20095_deferredLaunchDeadlineTimer_)};var HK=function(m,G){e2.call(this,m,G,"ManualSession");this.JSC$20099_deferredLaunchDeadlineTimer_=_.MC((0,_.AO)(this.launchWithParams,this,null),150)};
_.n(HK,e2);HK.prototype.stop=function(){this.onSessionStopped()};
HK.prototype.setCastSession=function(){};
HK.prototype.launchWithParams=function(){_.m1(this.JSC$20099_deferredLaunchDeadlineTimer_);this.JSC$20099_deferredLaunchDeadlineTimer_=NaN;var m=EE(this.JSC$20086_screenService_.getScreens(),this.receiver_.label);if(m)$c(this,m);else this.onSessionStopped(Error("sl"))};
HK.prototype.disposeInternal=function(){_.m1(this.JSC$20099_deferredLaunchDeadlineTimer_);this.JSC$20099_deferredLaunchDeadlineTimer_=NaN;e2.prototype.disposeInternal.call(this)};var S2=function(m,G){V_.call(this);this.config_=G;this.JSC$20102_screenService_=m;this.JSC$20102_appId_=G.appId||"233637DE";this.JSC$20102_theme_=G.theme||"cl";this.disableDial_=G.disableCastApi||!1;this.forceMirroring_=G.forceMirroring||!1;this.JSC$20102_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.AO)(this.onReceiverAction_,this)};
_.n(S2,V_);
S2.prototype.init=function(m,G){chrome.cast.timeout.requestSession=3E4;var K=new chrome.cast.SessionRequest(this.JSC$20102_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.F("desktop_enable_cast_connect")&&(K.androidReceiverCompatible=!0);this.disableDial_||(K.dialRequest=new chrome.cast.DialRequest("YouTube"));var W=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;m=m||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var L=(0,_.AO)(this.onReceiverUpdated_,this);
K=new chrome.cast.ApiConfig(K,(0,_.AO)(this.onSessionEstablished_,this),L,W,m);K.customDialLaunchCallback=(0,_.AO)(this.onDialLaunchRequested_,this);chrome.cast.initialize(K,(0,_.AO)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),qQi(),this.JSC$20102_screenService_.subscribe("onlineScreenChange",(0,_.AO)(this.JSC$20104_onScreenChange_,this)),this.customReceivers_=h$D(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.AO)(function(A){this.warn_("Failed to set initial custom receivers: "+
_.rO(A))},this)),this.publish("yt-remote-cast2-availability-change",pyP(this)),G(!0))},this),(0,_.AO)(function(A){this.warn_("Failed to initialize API: "+_.rO(A));
G(!1)},this))};
S2.prototype.setConnectedScreenStatus=function(m,G){I6("Setting connected screen ID: "+m+" -> "+G);if(this.JSC$20102_session_){var K=this.JSC$20102_session_.screen_;if(!m||K&&K.id!=m)I6("Unsetting old screen status: "+this.JSC$20102_session_.receiver_.friendlyName),j9(this,null)}if(m&&G){if(!this.JSC$20102_session_){m=EE(this.JSC$20102_screenService_.getScreens(),m);if(!m){I6("setConnectedScreenStatus: Unknown screen.");return}if(m.idType=="shortLived"){I6("setConnectedScreenStatus: Screen with id type to be short lived.");
return}K=J76(this,m);K||(I6("setConnectedScreenStatus: Connected receiver not custom..."),K=new chrome.cast.Receiver(m.uuid?m.uuid:m.id,m.name),K.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(K),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.AO)(function(W){this.warn_("Failed to set initial custom receivers: "+_.rO(W))},this)));
I6("setConnectedScreenStatus: new active receiver: "+K.friendlyName);j9(this,new HK(this.JSC$20102_screenService_,K),!0)}this.JSC$20102_session_.setDisplayStatus(G)}else I6("setConnectedScreenStatus: no screen.")};
var J76=function(m,G){return G?Uw(m.customReceivers_,function(K){return wLW(G,K.label)},m):null};
S2.prototype.setLaunchParams=function(m){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20102_session_?this.JSC$20102_session_.launchWithParams(m):this.warn_("Setting connection data without a session")};
S2.prototype.JSC$20104_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20102_session_?(this.JSC$20102_session_.stop(),j9(this,null)):I6("Stopping non-existing session")};
S2.prototype.requestSession=function(){chrome.cast.requestSession((0,_.AO)(this.onSessionEstablished_,this),(0,_.AO)(this.onSessionRequestFailed_,this))};
S2.prototype.disposeInternal=function(){this.JSC$20102_screenService_.unsubscribe("onlineScreenChange",(0,_.AO)(this.JSC$20104_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.PJ(_.Cn("yt.mdx.remote.debug.handlers_")||[],ve6);_.I$(this.JSC$20102_session_);V_.prototype.disposeInternal.call(this)};
var I6=function(m){k7("Controller",m)};
S2.prototype.warn_=function(m){k7("Controller",m)};
var ve6=function(m){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(m)},pyP=function(m){return m.hasCastReceiver_||!!m.customReceivers_.length||!!m.JSC$20102_session_},j9=function(m,G,K){G!=m.JSC$20102_session_&&(_.I$(m.JSC$20102_session_),(m.JSC$20102_session_=G)?(K?m.publish("yt-remote-cast2-receiver-resumed",G.receiver_):m.publish("yt-remote-cast2-receiver-selected",G.receiver_),G.subscribe("sessionScreen",(0,_.AO)(m.onSessionScreen_,m,G)),G.subscribe("sessionFailed",
function(){return NV6(m,G)}),G.screen_?m.publish("yt-remote-cast2-session-change",G.screen_):K&&m.JSC$20102_session_.launchWithParams(null)):m.publish("yt-remote-cast2-session-change",null))},NV6=function(m,G){m.JSC$20102_session_==G&&m.publish("yt-remote-cast2-session-failed")};
_.w=S2.prototype;_.w.onSessionScreen_=function(m,G){this.JSC$20102_session_==m&&(G||j9(this,null),this.publish("yt-remote-cast2-session-change",G))};
_.w.onReceiverAction_=function(m,G){if(!this.isDisposed())if(m)switch(m.friendlyName=chrome.cast.unescape(m.friendlyName),I6("onReceiverAction_ "+m.label+" / "+m.friendlyName+"-- "+G),G){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20102_session_)if(this.JSC$20102_session_.receiver_.label!=m.label)I6("onReceiverAction_: Stopping active receiver: "+this.JSC$20102_session_.receiver_.friendlyName),this.JSC$20102_session_.stop();else{I6("onReceiverAction_: Casting to active receiver.");this.JSC$20102_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20102_session_.screen_);break}switch(m.receiverType){case chrome.cast.ReceiverType.CUSTOM:j9(this,new HK(this.JSC$20102_screenService_,m));break;case chrome.cast.ReceiverType.DIAL:j9(this,new EI(this.JSC$20102_screenService_,m,this.JSC$20102_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:j9(this,new qZ(this.JSC$20102_screenService_,m,this.config_));break;default:this.warn_("Unknown receiver type: "+m.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20102_session_&&
this.JSC$20102_session_.receiver_.label==m.label?this.JSC$20102_session_.stop():this.warn_("Stopping receiver w/o session: "+m.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.w.onDialLaunchRequested_=function(m){if(this.isDisposed())return Promise.reject(Error("tl"));var G=m.receiver;G.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+G.friendlyName),G.receiverType=chrome.cast.ReceiverType.DIAL);var K=this.JSC$20102_session_?this.JSC$20102_session_.receiver_:null;if(!K||K.label!=G.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+G.friendlyName),Promise.reject(Error("ul"));if(K&&K.label==G.label&&K.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20102_session_.screen_)return I6("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20102_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+K.receiverType+'" to "dial" for '+G.friendlyName);j9(this,new EI(this.JSC$20102_screenService_,G,this.JSC$20102_theme_,this.config_))}G=this.JSC$20102_session_;G.launchData_=m;G.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(m=G.launchData_.extraData||{},K=m.screenId||null,L$5(G)&&m.loungeToken?m.loungeTokenRefreshIntervalMs?m=Y$s(G,{name:G.receiver_.friendlyName,screenId:m.screenId,loungeToken:m.loungeToken,dialId:G.launchData_.receiver.label,screenIdType:"shortLived"},m.loungeTokenRefreshIntervalMs):(_.j1(Error("ql`"+JSON.stringify(m))),m=r7E(G,K)):m=r7E(G,K)):m=OOP(G);return m};
_.w.onSessionEstablished_=function(m){var G=this;if(!this.isDisposed()&&!this.forceMirroring_){I6("New cast session ID: "+m.sessionId);var K=m.receiver;if(K.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20102_session_)if(K.receiverType==chrome.cast.ReceiverType.CAST)I6("Got resumed cast session before resumed mdx connection."),K.friendlyName=chrome.cast.unescape(K.friendlyName),j9(this,new qZ(this.JSC$20102_screenService_,K,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var W=this.JSC$20102_session_.receiver_,L=EE(this.JSC$20102_screenService_.getScreens(),W.label);L&&wLW(L,K.label)&&W.receiverType!=chrome.cast.ReceiverType.CAST&&K.receiverType==chrome.cast.ReceiverType.CAST&&(I6("onSessionEstablished_: manual to cast session change "+K.friendlyName),_.I$(this.JSC$20102_session_),this.JSC$20102_session_=new qZ(this.JSC$20102_screenService_,K,this.config_),this.JSC$20102_session_.subscribe("sessionScreen",(0,_.AO)(this.onSessionScreen_,this,this.JSC$20102_session_)),
this.JSC$20102_session_.subscribe("sessionFailed",function(){return NV6(G,G.JSC$20102_session_)}),this.JSC$20102_session_.launchWithParams(null));
this.JSC$20102_session_.setCastSession(m)}}};
_.w.JSC$20104_getCastSession=function(){return this.JSC$20102_session_?this.JSC$20102_session_.JSC$20088_getCastSession():null};
_.w.onSessionRequestFailed_=function(m){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+_.rO(m)),m.code!=chrome.cast.ErrorCode.CANCEL&&j9(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.w.onReceiverUpdated_=function(m){I6("Receiver availability updated: "+m);if(!this.isDisposed()){var G=pyP(this);this.hasCastReceiver_=m==chrome.cast.ReceiverAvailability.AVAILABLE;pyP(this)!=G&&this.publish("yt-remote-cast2-availability-change",pyP(this))}};
var h$D=function(m){var G=m.JSC$20102_screenService_.JSC$20084_getOnlineScreens(),K=m.JSC$20102_session_&&m.JSC$20102_session_.receiver_;m=_.r$(G,function(W){K&&wLW(W,K.label)&&(K=null);var L=W.uuid?W.uuid:W.id,A=J76(this,W);A?(A.label=L,A.friendlyName=W.name):(A=new chrome.cast.Receiver(L,W.name),A.receiverType=chrome.cast.ReceiverType.CUSTOM);return A},m);
K&&(K.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(K=new chrome.cast.Receiver(K.label,K.friendlyName),K.receiverType=chrome.cast.ReceiverType.CUSTOM),m.push(K));return m};
S2.prototype.JSC$20104_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=h$D(this),I6("Updating custom receivers: "+_.rO(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.AO)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",pyP(this)))};
S2.prototype.setLaunchParams=S2.prototype.setLaunchParams;S2.prototype.setConnectedScreenStatus=S2.prototype.setConnectedScreenStatus;S2.prototype.stopSession=S2.prototype.JSC$20104_stopSession;S2.prototype.getCastSession=S2.prototype.JSC$20104_getCastSession;S2.prototype.requestSession=S2.prototype.requestSession;S2.prototype.init=S2.prototype.init;S2.prototype.dispose=S2.prototype.dispose;var DuE=_.nY(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Gk6=[],XLD=_.vE(DuE);var tf6=function(m){m.audioTrackId=null;m.trackData=null;m.playerState=-1;m.hasPrevious=!1;m.hasNext=!1;m.playerTime_=0;m.playerTimeAt_=_.jI();m.seekableStart_=0;m.seekableEnd_=0;m.duration_=0;m.loadedTime=0;m.liveIngestionTime_=NaN;m.isLive_=!1};
_.w=Rz.prototype;
_.w.reset=function(m){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;m&&(this.index=m.index,this.listId=m.listId,this.videoId=m.videoId,this.playerState=m.playerState,this.volume=m.volume,this.muted=m.muted,this.audioTrackId=m.audioTrackId,this.trackData=m.trackData,this.hasPrevious=m.hasPrevious,this.hasNext=m.hasNext,this.playerTime_=m.playerTime,this.playerTimeAt_=m.playerTimeAt,this.seekableStart_=m.seekableStart,this.seekableEnd_=m.seekableEnd,this.duration_=m.duration,this.loadedTime=
m.loadedTime,this.liveIngestionTime_=m.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.w.stopPlayer=function(){this.index=-1;this.videoId="";tf6(this)};
_.w.isPlaying=function(){return this.playerState==1};
_.w.isBuffering=function(){return this.playerState==3};
_.w.isAdPlaying=function(){return this.playerState==1081};
var kc=function(m,G){m.playerTime_=G;m.playerTimeAt_=_.jI()},F$q=function(m){switch(m.playerState){case 1:case 1081:return(_.jI()-m.playerTimeAt_)/1E3+m.playerTime_;
case -1E3:return 0}return m.playerTime_};
Rz.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.jI()-this.playerTimeAt_)/1E3:0):this.duration_};
var QHE=function(m,G,K){var W=m.videoId;m.videoId=G;m.index=K;G!=W&&tf6(m)},a9z=function(m){var G={};
G.index=m.index;G.listId=m.listId;G.videoId=m.videoId;G.playerState=m.playerState;G.volume=m.volume;G.muted=m.muted;G.audioTrackId=m.audioTrackId;G.trackData=_.Y2.unsafeClone(m.trackData);G.hasPrevious=m.hasPrevious;G.hasNext=m.hasNext;G.playerTime=m.playerTime_;G.playerTimeAt=m.playerTimeAt_;G.seekableStart=m.seekableStart_;G.seekableEnd=m.seekableEnd_;G.duration=m.duration_;G.loadedTime=m.loadedTime;G.liveIngestionTime=m.liveIngestionTime_;return G};
Rz.prototype.clone=function(){return new Rz(a9z(this))};var B5=function(m,G){V_.call(this);var K=this;this.state_=0;this.connection_=m;this.contextSubscriptions_=[];this.actionQueue_=new Ug5;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.AO)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.AO)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.AO)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.AO)(this.onCloudviewAvailabilityChange_,this);var W=0;m?(W=m.getProxyState(),
W!=3&&(m.subscribe("proxyStateChange",this.setState_,this),oLs(this))):W=3;W!=0&&(G?this.setState_(W):_.MC(function(){K.setState_(W)},0));
(m=A$6())&&nLD(this,m);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.n(B5,V_);B5.prototype.getState=function(){return this.state_};
B5.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
B5.prototype.reconnect=function(){this.connection_.reconnect()};
var CI=function(m){return new Rz(m.connection_.getPlayerContextData())};
_.w=B5.prototype;_.w.play=function(){Va(this)?(this.castMedia_?this.castMedia_.play(null,_.Wb,bOs(this,"play")):ZZ(this,"play"),vLD(this,1,F$q(CI(this))),this.publish("remotePlayerChange")):dJ(this,this.play)};
_.w.pause=function(){Va(this)?(this.castMedia_?this.castMedia_.pause(null,_.Wb,bOs(this,"pause")):ZZ(this,"pause"),vLD(this,2,F$q(CI(this))),this.publish("remotePlayerChange")):dJ(this,this.pause)};
_.w.seekTo=function(m){if(Va(this)){if(this.castMedia_){var G=CI(this),K=new chrome.cast.media.SeekRequest;K.currentTime=m;G.isPlaying()||G.isBuffering()?K.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:K.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(K,_.Wb,bOs(this,"seekTo",{newTime:m}))}else ZZ(this,"seekTo",{newTime:m});vLD(this,3,m);this.publish("remotePlayerChange")}else dJ(this,_.BH(this.seekTo,m))};
_.w.stop=function(){if(Va(this)){this.castMedia_?this.castMedia_.stop(null,_.Wb,bOs(this,"stopVideo")):ZZ(this,"stopVideo");var m=CI(this);m.stopPlayer();PK(this,m);this.publish("remotePlayerChange")}else dJ(this,this.stop)};
_.w.setVolume=function(m,G){if(Va(this)){var K=CI(this);if(this.castSession_){if(K.volume!=m){var W=Math.round(m)/100;this.castSession_.setReceiverVolumeLevel(W,(0,_.AO)(function(){Ci("set receiver volume: "+W)},this),(0,_.AO)(function(){this.warn_("failed to set receiver volume.")},this))}K.muted!=G&&this.castSession_.setReceiverMuted(G,(0,_.AO)(function(){Ci("set receiver muted: "+G)},this),(0,_.AO)(function(){this.warn_("failed to set receiver muted.")},this))}else{var L={volume:m,
muted:G};K.volume!=-1&&(L.delta=m-K.volume);ZZ(this,"setVolume",L)}K.muted=G;K.volume=m;PK(this,K)}else dJ(this,_.BH(this.setVolume,m,G))};
_.w.setAudioTrack=function(m,G){Va(this)?(G=G.getLanguageInfo().getId(),ZZ(this,"setAudioTrack",{videoId:m,audioTrackId:G}),m=CI(this),m.audioTrackId=G,PK(this,m)):dJ(this,_.BH(this.setAudioTrack,m,G))};
_.w.addVideo=function(m){Va(this)?ZZ(this,"addVideo",{videoId:m}):dJ(this,_.BH(this.addVideo,m))};
_.w.addPlaylist=function(m){Va(this)?ZZ(this,"addVideos",{listId:m}):dJ(this,_.BH(this.addPlaylist,m))};
_.w.addVideos=function(m){m.length==0?this.warn_("Ignore add videos request due to empty list"):Va(this)?ZZ(this,"addVideos",{videoIds:m.join(",")}):dJ(this,_.BH(this.addVideos,m))};
_.w.JSC$20114_removeVideo=function(m){Va(this)?ZZ(this,"removeVideo",{videoId:m}):dJ(this,_.BH(this.JSC$20114_removeVideo,m))};
_.w.JSC$20114_insertVideo=function(m){Va(this)?ZZ(this,"insertVideo",{videoId:m}):dJ(this,_.BH(this.JSC$20114_insertVideo,m))};
_.w.playVideo=function(m,G,K,W,L,A,O){W=W===void 0?null:W;L=L===void 0?null:L;A=A===void 0?null:A;O=O===void 0?null:O;var c=CI(this),u={videoId:m};K!==void 0&&(u.currentIndex=K);QHE(c,m,K||0);G!==void 0&&(kc(c,G),u.currentTime=G);W&&(u.listId=W);L&&(u.playerParams=L);A&&(u.clickTrackingParams=A);O&&(u.locationInfo=_.rO(O));ZZ(this,"setPlaylist",u);W||PK(this,c)};
_.w.nextVideo=function(m,G){if(Va(this)){if(m&&G){var K=CI(this);QHE(K,m,G);PK(this,K)}ZZ(this,"next")}else dJ(this,_.BH(this.nextVideo,m,G))};
_.w.clearPlaylist=function(){if(Va(this)){ZZ(this,"clearPlaylist");var m=CI(this);m.reset();PK(this,m);this.publish("remotePlayerChange")}else dJ(this,this.clearPlaylist)};
_.w.dispose=function(){if(this.state_!=3){var m=this.state_;this.state_=3;this.publish("proxyStateChange",m,this.state_)}V_.prototype.dispose.call(this)};
_.w.disposeInternal=function(){$uE(this);this.connection_=null;this.actionQueue_.clear();nLD(this,null);V_.prototype.disposeInternal.call(this)};
var oLs=function(m){_.Z0("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(G){this.contextSubscriptions_.push(this.connection_.subscribe(G,_.BH(this.onProxyEvent_,G),this))},m)},$uE=function(m){_.Z0(m.contextSubscriptions_,function(G){this.connection_.unsubscribeByKey(G)},m);
m.contextSubscriptions_.length=0},Va=function(m){return m.getState()==1},dJ=function(m,G){m.actionQueue_.getCount()<50&&m.actionQueue_.enqueue(G)},vLD=function(m,G,K){var W=CI(m);
kc(W,K);W.playerState!=-1E3&&(W.playerState=G);PK(m,W)},ZZ=function(m,G,K){m.connection_.sendMessage(G,K)},PK=function(m,G){$uE(m);
m.connection_.setPlayerContextData(a9z(G));oLs(m)};
B5.prototype.setState_=function(m){if((m!=this.state_||m==2)&&this.state_!=3&&m!=0){var G=this.state_;this.state_=m;this.publish("proxyStateChange",G,m);if(m==1)for(;!this.actionQueue_.isEmpty();)m=this.actionQueue_,zw6(m),m.front_.pop().apply(this);else m==3&&this.dispose()}};
B5.prototype.onProxyEvent_=function(m,G){this.publish(m,G)};
var nLD=function(m,G){m.castSession_&&(m.castSession_.removeUpdateListener(m.boundCastStatusListener_),m.castSession_.removeMediaListener(m.boundCastMediaListener_),m.onCastMediaChange_(null));m.castSession_=G;if(m.castSession_&&(Ci("Setting cast session: "+m.castSession_.sessionId),m.castSession_.addUpdateListener(m.boundCastStatusListener_),m.castSession_.addMediaListener(m.boundCastMediaListener_),m.castSession_.media.length))m.onCastMediaChange_(m.castSession_.media[0])};
B5.prototype.onCastStatusUpdate_=function(m){if(!m)this.onCastMediaChange_(null),nLD(this,null);else if(this.castSession_.receiver.volume){m=this.castSession_.receiver.volume;var G=CI(this),K=Math.round(100*m.level||0);if(G.volume!=K||G.muted!=m.muted)Ci("Cast volume update: "+m.level+(m.muted?" muted":"")),G.volume=K,G.muted=!!m.muted,PK(this,G)}};
B5.prototype.onCastMediaChange_=function(m){Ci("Cast media: "+!!m);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=m)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),sHE(this),this.publish("remotePlayerChange")};
var sHE=function(m){var G=m.castMedia_.media,K=m.castMedia_.customData;if(G&&K){var W=CI(m);G.contentId!=W.videoId&&Ci("Cast changing video to: "+G.contentId);W.videoId=G.contentId;W.playerState=K.playerState;kc(W,m.castMedia_.getEstimatedTime());PK(m,W)}else Ci("No cast media video. Ignoring state update.")};
B5.prototype.onCastMediaUpdate_=function(m){if(m)sHE(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
B5.prototype.onCloudviewAvailabilityChange_=function(){var m=A$6();m&&nLD(this,m)};
B5.prototype.warn_=function(m){k7("CP",m)};
var bOs=function(m,G,K){return(0,_.AO)(function(W){this.warn_("Failed to "+G+" with cast v2 channel. Error code: "+W.code);W.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+G+" using MDx browser channel."),ZZ(this,G,K))},m)};var Mf=function(m,G,K,W){W=W===void 0?!1:W;V_.call(this);var L=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$20119_http_=m;this.enableConnectWithInitialState_=W;this.listeners_.push(_.er(window,"beforeunload",function(){L.JSC$20122_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Rz;this.currentScreenId_=G.id;this.currentScreenIdType_=G.idType;this.channelService=bDs(this.JSC$20119_http_,K,this.JSC$20122_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){q$5(L)});
this.channelService.listen("channelClosed",function(){ya("Channel closed");isNaN(L.connectTimerId_)?tw6(!0):tw6();L.dispose()});
this.channelService.listen("channelError",function(A){tw6();isNaN(L.getReconnectTimeout_())?(A==1&&L.currentScreenIdType_=="shortLived"&&L.publish("browserChannelAuthError",A),ya("Channel error: "+A+" without reconnection"),L.dispose()):(L.reconnecting_=!0,ya("Channel error: "+A+" with reconnection in "+L.getReconnectTimeout_()+" ms"),ELE(L,2))});
this.channelService.listen("channelMessage",function(A){HOz(L,A)});
this.channelService.setLoungeToken(G.token);this.subscribe("remoteQueueChange",function(){var A=L.playerContext_.videoId;c96()&&_.i0("yt-remote-session-video-id",A)})};
_.n(Mf,V_);
Mf.prototype.connect=function(m,G){if(G){var K=G.listId,W=G.videoId,L=G.videoIds,A=G.playerParams,O=G.clickTrackingParams,c=G.index,u={videoId:W},h=G.currentTime,J=G.locationInfo;G=G.loopMode;h!==void 0&&(u.currentTime=h<=5?0:h);A&&(u.playerParams=A);J&&(u.locationInfo=J);O&&(u.clickTrackingParams=O);K&&(u.listId=K);L&&L.length>0&&(u.videoIds=L.join(","));c!==void 0&&(u.currentIndex=c);this.enableConnectWithInitialState_&&(u.loopMode=G||"LOOP_MODE_OFF");K&&(this.playerContext_.listId=K);this.playerContext_.videoId=
W;this.playerContext_.index=c||0;this.playerContext_.state=3;kc(this.playerContext_,h);this.autoplayMode_="UNSUPPORTED";K=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ya("Connecting with "+K+" and params: "+_.rO(u));this.channelService.connect({method:K,params:_.rO(u)},m,pLi())}else ya("Connecting without params"),this.channelService.connect({},m,pLi());I95(this)};
Mf.prototype.setLoungeToken=function(m){this.channelService.setLoungeToken(m)};
Mf.prototype.dispose=function(){this.isDisposed()||(_.yj("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),ELE(this,3));V_.prototype.dispose.call(this)};
Mf.prototype.disposeInternal=function(){jHD(this);kJ6(this);CiG(this);_.m1(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.m1(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.VAv(this.listeners_);this.listeners_.length=0;this.channelService.dispose();V_.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var VfD=function(m){return Uw(m.connectedDevices_,function(G){return G.type=="LOUNGE_SCREEN"})},ya=function(m){k7("conn",m)},ELE=function(m,G){m.publish("proxyStateChange",G)},I95=function(m){m.connectTimerId_=_.MC(function(){ya("Connecting timeout");
m.JSC$20122_disconnect_(1)},2E4)},jHD=function(m){_.m1(m.connectTimerId_);
m.connectTimerId_=NaN},CiG=function(m){_.m1(m.reconnectedCheckScreenTimeout_);
m.reconnectedCheckScreenTimeout_=NaN},duq=function(m){kJ6(m);
m.playingSyncTimerId_=_.MC(function(){ZO6(m,"getNowPlaying")},2E4)},kJ6=function(m){_.m1(m.playingSyncTimerId_);
m.playingSyncTimerId_=NaN},q$5=function(m){ya("Channel opened");
m.reconnecting_&&(m.reconnecting_=!1,CiG(m),m.reconnectedCheckScreenTimeout_=_.MC(function(){ya("Timing out waiting for a screen.");m.JSC$20122_disconnect_(1)},15E3))},y7D=function(m,G){var K=null;
if(G){var W=VfD(m);W&&(K={clientName:W.clientName,deviceMake:W.brand,deviceModel:W.model,osVersion:W.osVersion})}_.yj("yt.mdx.remote.remoteClient_",K);G&&(jHD(m),CiG(m));K=m.channelService.isChannelOpened()&&isNaN(m.connectTimerId_);G==K?G&&(ELE(m,1),ZO6(m,"getSubtitlesTrack")):G?(m.getOtherConnectedRemoteId_()&&m.playerContext_.reset(),ELE(m,1),ZO6(m,"getNowPlaying"),Pi6(m)):m.JSC$20122_disconnect_(1)},e$q=function(m,G){var K=G.params.videoId;
delete G.params.videoId;K==m.playerContext_.videoId&&(_.Y2.isEmpty(G.params)?m.playerContext_.trackData=null:m.playerContext_.trackData=G.params,m.publish("remotePlayerChange"))},f9D=function(m,G,K){var W=G.params.videoId||G.params.video_id,L=parseInt(G.params.currentIndex,10);
m.playerContext_.listId=G.params.listId||m.playerContext_.listId;QHE(m.playerContext_,W,L);m.publish("remoteQueueChange",K)},xu6=function(m,G){G.params=G.params||{};
f9D(m,G,"NOW_PLAYING_MAY_CHANGE");m.onStateChange_(G);m.publish("autoplayDismissed")};
Mf.prototype.onStateChange_=function(m){var G=parseInt(m.params.currentTime||m.params.current_time,10);kc(this.playerContext_,isNaN(G)?0:G);G=parseInt(m.params.state,10);G=isNaN(G)?-1:G;G==-1&&this.playerContext_.playerState==-1E3&&(G=-1E3);this.playerContext_.playerState=G;G=Number(m.params.loadedTime);this.playerContext_.loadedTime=isNaN(G)?0:G;G=Number(m.params.duration);this.playerContext_.duration_=isNaN(G)?0:G;G=this.playerContext_;var K=Number(m.params.liveIngestionTime);G.liveIngestionTime_=
K;G.isLive_=isNaN(K)?!1:!0;G=this.playerContext_;K=Number(m.params.seekableStartTime);m=Number(m.params.seekableEndTime);G.seekableStart_=isNaN(K)?0:K;G.seekableEnd_=isNaN(m)?0:m;this.playerContext_.playerState==1?duq(this):kJ6(this);this.publish("remotePlayerChange")};
Mf.prototype.onAdStateChange_=function(m){if(this.playerContext_.playerState!=-1E3){var G=1085;switch(parseInt(m.params.adState,10)){case 1:G=1081;break;case 2:G=1084;break;case 0:G=1083}this.playerContext_.playerState=G;m=parseInt(m.params.currentTime,10);kc(this.playerContext_,isNaN(m)?0:m);this.publish("remotePlayerChange")}};
var XyW=function(m,G){var K=G.params.muted=="true";m.playerContext_.volume=parseInt(G.params.volume,10);m.playerContext_.muted=K;m.publish("remotePlayerChange")},S$E=function(m,G){m.autoplayVideoId_=G.params.videoId;
m.publish("nowAutoplaying",parseInt(G.params.timeout,10))},R$s=function(m,G){m.autoplayVideoId_=G.params.videoId||null;
m.publish("autoplayUpNext",m.autoplayVideoId_)},UuE=function(m,G){m.autoplayMode_=G.params.autoplayMode;
m.publish("autoplayModeChange",m.autoplayMode_);m.autoplayMode_=="DISABLED"&&m.publish("autoplayDismissed")},z$D=function(m,G){var K=G.params.hasNext=="true";
m.playerContext_.hasPrevious=G.params.hasPrevious=="true";m.playerContext_.hasNext=K;m.publish("previousNextChange")};
Mf.prototype.isCapabilitySupportedOnConnectedDevices_=function(m){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var G=_.g(this.connectedDevices_),K=G.next();!K.done;K=G.next())if(!K.value.capabilities.has(m))return!1;return!0};
var HOz=function(m,G){G=G.message;G.params?ya("Received: action="+G.action+", params="+_.rO(G.params)):ya("Received: action="+G.action+" {}");switch(G.action){case "loungeStatus":G=_.KJ(G.params.devices);m.connectedDevices_=_.r$(G,function(W){return new nI(W)});
G=!!Uw(m.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"});
y7D(m,G);G=m.isCapabilitySupportedOnConnectedDevices_("mlm");m.publish("multiStateLoopEnabled",G);break;case "loungeScreenDisconnected":raW(m.connectedDevices_,function(W){return W.type=="LOUNGE_SCREEN"});
y7D(m,!1);break;case "remoteConnected":var K=new nI(_.KJ(G.params.device));Uw(m.connectedDevices_,function(W){return W.equals(K)})||_.qdM(m.connectedDevices_,K);
break;case "remoteDisconnected":K=new nI(_.KJ(G.params.device));raW(m.connectedDevices_,function(W){return W.equals(K)});
break;case "gracefulDisconnect":break;case "playlistModified":f9D(m,G,"QUEUE_MODIFIED");break;case "nowPlaying":xu6(m,G);break;case "onStateChange":m.onStateChange_(G);break;case "onAdStateChange":m.onAdStateChange_(G);break;case "onVolumeChanged":XyW(m,G);break;case "onSubtitlesTrackChanged":e$q(m,G);break;case "nowAutoplaying":S$E(m,G);break;case "autoplayDismissed":m.publish("autoplayDismissed");break;case "autoplayUpNext":R$s(m,G);break;case "onAutoplayModeChanged":UuE(m,G);break;case "onHasPreviousNextChanged":z$D(m,
G);break;case "requestAssistedSignIn":m.publish("assistedSignInRequested",G.params.authCode);break;case "onLoopModeChanged":m.publish("loopModeChange",G.params.loopMode);break;default:ya("Unrecognized action: "+G.action)}};
_.w=Mf.prototype;_.w.getProxyState_=function(){var m=3;this.isDisposed()||(m=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(m=1):m=2);return m};
_.w.JSC$20122_disconnect_=function(m){ya("Disconnecting with "+m);_.yj("yt.mdx.remote.remoteClient_",null);jHD(this);this.publish("beforeDisconnect",m);m==1&&tw6();this.channelService.disconnect(m);this.dispose()};
_.w.getPlayerContextData_=function(){var m=this.playerContext_;this.clientVideoId_&&(m=this.playerContext_.clone(),QHE(m,this.clientVideoId_,m.index));return a9z(m)};
_.w.setPlayerContextData_=function(m){var G=this,K=new Rz(m);K.videoId&&K.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=K.videoId,_.m1(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.MC(function(){if(G.clientVideoId_){var L=G.clientVideoId_;G.clientVideoId_=null;G.playerContext_.videoId!=L&&ZO6(G,"getNowPlaying")}},5E3));
var W=[];this.playerContext_.listId==K.listId&&this.playerContext_.videoId==K.videoId&&this.playerContext_.index==K.index||W.push("remoteQueueChange");this.playerContext_.playerState==K.playerState&&this.playerContext_.volume==K.volume&&this.playerContext_.muted==K.muted&&F$q(this.playerContext_)==F$q(K)&&_.rO(this.playerContext_.trackData)==_.rO(K.trackData)||W.push("remotePlayerChange");this.playerContext_.reset(m);_.Z0(W,function(L){this.publish(L)},this)};
_.w.getOtherConnectedRemoteId_=function(){var m=this.channelService.getDeviceId(),G=Uw(this.connectedDevices_,function(K){return K.type=="REMOTE_CONTROL"&&K.id!=m});
return G?G.id:""};
_.w.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.w.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.w.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.w.JSC$20122_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var Pi6=function(m){_.m1(m.idleDisconnectTimerId_);m.idleDisconnectTimerId_=_.MC(function(){m.JSC$20122_disconnect_(1)},864E5)},ZO6=function(m,G,K){K?ya("Sending: action="+G+", params="+_.rO(K)):ya("Sending: action="+G);
m.channelService.sendMessage(G,K)};
Mf.prototype.sendMessageWithUserAction_=function(m,G){ZO6(this,m,G);Pi6(this)};
Mf.prototype.JSC$20122_getXsrfToken_=function(){var m=_.LL.get("SAPISID","")||_.LL.get("__Secure-1PAPISID",void 0)||"",G=_.LL.get("__Secure-3PAPISID","")||"";if(!m&&!G)return"";m=_.Md(_.Wg(m),2);G=_.Md(_.Wg(G),2);return _.Md(_.Wg(","+m+","+G),2)};
Mf.prototype.subscribe=Mf.prototype.subscribe;Mf.prototype.unsubscribeByKey=Mf.prototype.unsubscribeByKey;Mf.prototype.getProxyState=Mf.prototype.getProxyState_;Mf.prototype.disconnect=Mf.prototype.JSC$20122_disconnect_;Mf.prototype.getPlayerContextData=Mf.prototype.getPlayerContextData_;Mf.prototype.setPlayerContextData=Mf.prototype.setPlayerContextData_;Mf.prototype.getOtherConnectedRemoteId=Mf.prototype.getOtherConnectedRemoteId_;Mf.prototype.getReconnectTimeout=Mf.prototype.getReconnectTimeout_;
Mf.prototype.getAutoplayMode=Mf.prototype.getAutoplayMode_;Mf.prototype.getAutoplayVideoId=Mf.prototype.getAutoplayVideoId_;Mf.prototype.reconnect=Mf.prototype.JSC$20122_reconnect_;Mf.prototype.sendMessage=Mf.prototype.sendMessageWithUserAction_;Mf.prototype.getXsrfToken=Mf.prototype.JSC$20122_getXsrfToken_;Mf.prototype.isCapabilitySupportedOnConnectedDevices=Mf.prototype.isCapabilitySupportedOnConnectedDevices_;var EEu=function(m){Zr.call(this,"ScreenServiceProxy");this.instance_=m;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.AO)(this.JSC$20125_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.AO)(this.onOnlineScreenChange_,this)))};
_.n(EEu,Zr);_.w=EEu.prototype;_.w.getScreens=function(m){return this.instance_.$_gs(m)};
_.w.contains=function(m){return!!this.instance_.$_c(m)};
_.w.get=function(m){return this.instance_.$_g(m)};
_.w.start=function(){this.instance_.$_st()};
_.w.add=function(m,G,K){this.instance_.$_a(m,G,K)};
_.w.remove=function(m,G,K){this.instance_.$_r(m,G,K)};
_.w.updateName=function(m,G,K,W){this.instance_.$_un(m,G,K,W)};
_.w.disposeInternal=function(){for(var m=this.subscriptionKeys_.length,G=0;G<m;++G)this.instance_.$_ubk(this.subscriptionKeys_[G]);this.subscriptionKeys_.length=0;this.instance_=null;Zr.prototype.disposeInternal.call(this)};
_.w.JSC$20125_onScreenChange_=function(){this.publish("screenChange")};
_.w.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
y_.prototype.$_st=y_.prototype.start;y_.prototype.$_gspc=y_.prototype.JSC$20084_getScreenByPairingCode;y_.prototype.$_gsppc=y_.prototype.JSC$20084_getScreenByPollingPairingCode;y_.prototype.$_c=y_.prototype.contains;y_.prototype.$_g=y_.prototype.get;y_.prototype.$_a=y_.prototype.add;y_.prototype.$_un=y_.prototype.updateName;y_.prototype.$_r=y_.prototype.remove;y_.prototype.$_gs=y_.prototype.getScreens;y_.prototype.$_gos=y_.prototype.JSC$20084_getOnlineScreens;y_.prototype.$_s=y_.prototype.subscribe;
y_.prototype.$_ubk=y_.prototype.unsubscribeByKey;var nEO=null,IJW=!1,c$P=null,UE=null,qhD=null,zu=[];var l96=new _.bs("yt-menu"),BVW=function(){},TVE=function(m,G,K){m=G=="right-click"?K.rightClickMenuPopupHint:K.menuPopupHint;
if(!(Mf6(G)>10))return G=G||"default",l96.set(G+"-impression",Mf6(G)+1),m},Mf6=function(m){return parseInt(l96.get((m||"default")+"-impression")||0,10)};
_.IB(BVW);var mH6=function(){this.contexts_=new WeakMap;this.JSC$20131_networkService_=this.activeContext_=null},iwD=function(m,G,K){var W=m.contexts_.get(G);
W||(W=new Lpi(m.JSC$20131_networkService_),m.contexts_.set(G,W));m.activeContext_=W;K&&m.activeContext_.reset();m.activeContext_.start();return m.activeContext_};var Tu=_.rgo(function(m){var G=_.M7("DIV");m&&(G.className=m);G.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";m=_.M7("DIV");_.x7l(m,"200px","200px");G.appendChild(m);document.body.appendChild(G);m=G.offsetWidth-G.clientWidth;_.mX(G);return m});var iT=_.U8("kevlar_watch_page_horizontal_margin",24),y$i=_.U8("kevlar_watch_page_columns_top_padding",24),kkO=426+iT*2,mc=_.U8("kevlar_watch_two_column_width_threshold",1E3),VAD=iT*2,ZNW=_.U8("kevlar_watch_secondary_width",402),PK5=_.U8("kevlar_watch_max_player_width",1280),eaW=_.U8("kevlar_watch_flexy_metadata_height",136),dy6=VAD+310+iT,CKW=VAD+360+iT;var e9=function(){};
e9.prototype.enqueue=function(){var m=this,G;return _.Y(function(K){if(m.isCounterfactual())return(G=m.getCounterfactualData())&&m.shouldLogCounterfactualImpression()&&m.sendImpressionEndpoints(G),K.return();m.doEnqueue();_.ey(K)})};
e9.prototype.sendImpressionEndpoints=function(m){_.Im.getInstance().triggerOptionalAction("yt-service-request",{},m[0])};var fI=function(m,G){this.renderer=m;this.page=G};
_.n(fI,e9);fI.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
fI.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
fI.prototype.shouldLogCounterfactualImpression=function(){return!0};
fI.prototype.doEnqueue=function(){var m=_.sT(this.page);m&&m.pause();this.renderer.impressionCommand&&_.Im.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.OL(_.Im.getInstance(),[this.renderer.promoCommand],this.page)};var G8E=function(m,G){this.renderer=m;this.resolver=_.Qo();this.JSC$20143_enforcementCounter=new _.mqk;G?this.JSC$20143_playerManager=_.sT(G):this.JSC$20143_playerManager=null;_.xR(1,!0)};
_.n(G8E,e9);_.w=G8E.prototype;_.w.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var m=[];this.renderer.impressionEndpoints.forEach(function(G){(G=_.c8(G))&&m.push(G)});
return m}};
_.w.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.w.shouldLogCounterfactualImpression=function(){var m=_.dvd();m?(this.JSC$20143_enforcementCounter.increment("POPUP"),_.xR(3)):_.xR(2);return m};
_.w.cancel=function(){this.resolver.promise.cancel()};
_.w.doEnqueue=function(){var m=this;_.dvd()?(this.JSC$20143_enforcementCounter.increment("POPUP"),_.xR(3),Kes(this)):this.JSC$20143_playerManager?(this.resolver.promise.then(function(){Kes(m)}),We6(this.resolver,this.JSC$20143_playerManager)):_.xR(2)};
var We6=function(m,G){var K=_.Qo();G.getPlayerPromise().then(function(W){K.resolve(W)});
K.promise.then(function(W){W.addEventListener("onAbnormalityDetected",m.resolve);_.O5(m.promise,function(){W.removeEventListener("onAbnormalityDetected",m.resolve)})});
m.promise.thenCatch(function(){K.promise.cancel()})},Kes=function(m){_.xR(3);
var G={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:m.renderer}};G=_.Im.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});Promise.all(G).then(function(){LeW();m.JSC$20143_playerManager&&m.JSC$20143_playerManager.pause()})},LeW=function(){qKO(function(m,G){ZAE(m,G);
m===0?_.xR(7):_.xR(4)})};var AJD=function(m,G){this.renderer=m;this.page=G;this.resolver=_.Qo()};
_.n(AJD,e9);_.w=AJD.prototype;_.w.cancel=function(){this.resolver.promise.cancel()};
_.w.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.w.isCounterfactual=function(){return!this.renderer.isVisible};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var m=this;this.resolver.promise.then(function(){var K={popup:{mealbarPromoRenderer:m.renderer},popupType:"MEALBAR"};_.Im.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:K},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var G=_.sT(this.page);G&&wCD(this.resolver,G)}break;default:this.resolver.resolve()}};
var wCD=function(m,G){var K=_.Qo();G.getPlayerPromise().then(function(W){K.resolve(W)});
K.promise.then(function(W){W.addEventListener("onAdEnd",m.resolve);_.O5(m.promise,function(){W.removeEventListener("onAdEnd",m.resolve)})});
m.promise.thenCatch(function(){K.promise.cancel()})};var g9D=function(m,G){this.renderer=m;this.page=G};
_.n(g9D,e9);_.w=g9D.prototype;_.w.cancel=function(){this.JSC$20151_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20151_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20151_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.w.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.w.isCounterfactual=function(){return!this.renderer.isVisible};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var m=this,G,K;((G=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(K=G.playbackUpsellDialogTriggerConditionData)==null?void 0:K.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20151_downloadedVideosCountSelectorUnsubscriber=_.BB(_.$R(),nTO,function(W,L){W>L&&(Owz(m),m.cancel())}):Owz(this)};
var Owz=function(m){var G={popup:{upsellDialogRenderer:m.renderer},popupType:"MODAL"};_.Im.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{});(m=_.sT(m.page))&&m.pause()};var xc={},cJu=(xc.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",xc.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",xc.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",xc.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",xc.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",xc.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",xc.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",xc),YlO=function(m,G){this.renderer=m;this.targetManager=
G};
_.n(YlO,e9);_.w=YlO.prototype;_.w.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20158_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20158_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20158_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.w.getCounterfactualData=function(){if(this.isCounterfactual()){var m;return(m=this.renderer.promoConfig)==null?void 0:m.impressionEndpoints}};
_.w.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.w.shouldLogCounterfactualImpression=function(){return!0};
_.w.doEnqueue=function(){var m=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20158_downloadedVideosCountSelectorUnsubscriber=_.BB(_.$R(),nTO,function(G,K){m.renderer.targetId&&G>K&&(BOz(m.targetManager,m.renderer.targetId,rJG(m)),m.cancel())});
break;default:BOz(this.targetManager,this.renderer.targetId,rJG(this))}};
var rJG=function(m){var G;if((G=m.renderer.suggestedPosition)==null?0:G.type)var K=cJu[m.renderer.suggestedPosition.type];K||(K="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:m.renderer},popupType:"HINT",position:K}}};var u7P=function(){this.previousPage=null},hNP;
u7P.prototype.registerPromoCommand=function(m,G){pCG(this,void 0,void 0,_.Q(m.roadblock,Q4z),void 0,void 0,G)};
var pCG=function(m,G,K,W,L,A,O){m.previousPage!==O&&m.pendingTooltipPromo&&m.pendingTooltipPromo.cancel();m.previousPage=O;L?(m.pendingEnforcementPromo&&m.pendingEnforcementPromo.cancel(),m.pendingEnforcementPromo=new G8E(L,O),m.pendingEnforcementPromo.enqueue()):A?(m.pendingCommandWrapperPromo=new fI(A,O),m.pendingCommandWrapperPromo.enqueue()):W?(m.pendingRoadblockPromo&&m.pendingRoadblockPromo.cancel(),m.pendingRoadblockPromo=new g9D(W,O),m.pendingRoadblockPromo.enqueue()):G?(m.pendingMealbarPromo&&
m.pendingMealbarPromo.cancel(),m.pendingMealbarPromo=new AJD(G,O),m.pendingMealbarPromo.enqueue()):K&&(m.pendingTooltipPromo&&m.pendingTooltipPromo.cancel(),m.pendingTooltipPromo=new YlO(K,_.Xi()),m.pendingTooltipPromo.enqueue())},JJ6=function(){hNP||(hNP=new u7P);
return hNP};var NkD=function(){this.horizontal=!1},DHP=function(m,G){m.horizontal=G};
NkD.prototype.position=function(m,G,K,W){W=W===void 0?1:W;m=this.delta(m)*W+G;W=Math.max(G,K);return m>=Math.min(G,K)&&m<=W?m:K};
NkD.prototype.axis=function(m){m=this.direction(m);return m==="up"||m==="down"?"Y":"X"};var X8=function(m,G,K){G=G===void 0?_.SG():G;this.target=m;this.manager=G;this.touchAction=K;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
X8.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(_.Bz(this.events)));for(var m=_.g(this.events),G=m.next();!G.done;G=m.next())this.listen(G.value)}};
X8.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Bz(this.events)));for(var m=_.g(this.events),G=m.next();!G.done;G=m.next())this.unlisten(G.value)}};
X8.prototype.listen=function(m){this.eventMap[m]&&this.target.addEventListener(m,this.eventMap[m])};
X8.prototype.unlisten=function(m){this.eventMap[m]&&this.target.removeEventListener(m,this.eventMap[m])};var S9=function(){NkD.apply(this,arguments)};
_.n(S9,NkD);S9.prototype.direction=function(m){var G=m.detail;m=G.deltaY;G=G.deltaX;return m&&!this.horizontal?m>0?"down":"up":G&&this.horizontal?G>0?"right":"left":"none"};
S9.prototype.distance=function(m){return Math.abs(this.delta(m))};
S9.prototype.delta=function(m){var G=this.direction(m),K=m.detail;m=K.deltaX;K=K.deltaY;return G==="up"||G==="down"?K||0:m||0};
S9.prototype.velocity=function(m){var G=this.direction(m),K=m.detail;m=K.velocityX;K=K.velocityY;return Math.abs(G==="up"||G==="down"?K||0:m||0)};var R6=function(m,G,K,W,L,A){L=L===void 0?new S9:L;A=A===void 0?_.SG():A;X8.call(this,G,A,W);var O=this;this.element=m;this.target=G;this.config=K;this.input=L;this.manager=A;this.events=["panstart","panmove","panend"];this.onPanStart=function(){O.config.draggingClass&&O.element.classList.add(O.config.draggingClass);O.config.startAction&&O.config.startAction()};
this.onPanMove=function(c){var u=tvD(O,c);if(u){O.move(c,u);u.fade&&O.fade(c,u);var h=O.input.direction(c);u.moveAction&&u.moveAction(Feq(O,c,u),h)}};
this.onPanEnd=function(c){var u,h,J,N,D,t;return _.Y(function(a){if(a.nextAddress==1){O.animationRequestId&&cancelAnimationFrame(O.animationRequestId);O.animationRequestId=void 0;u=tvD(O,c);if(!u)return a.return();h=u;J=h.triggerAction;N=h.fade;D=h.disableFinish;t=h.translateBack;var v=O.input.velocity(c),I=O.input.distance(c),Z=O.threshold(u);return v>.3&&I>10||I>Z?D?a.jumpTo(6):N?a.yield(QKq(O,c),6):a.yield(aIu(O,c,u),6):t?a.yield(O.translateBack(c),3):a.jumpTo(3)}a.nextAddress!=3&&J&&J();O.config.draggingClass&&
O.element.classList.remove(O.config.draggingClass);O.reset();_.ey(a)})};
m=Object.keys(K.triggers);this.directions=new Set(m);DHP(this.input,this.directions.has("right")||this.directions.has("left"))};
_.n(R6,X8);R6.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var tvD=function(m,G){G=m.input.direction(G);return m.config.triggers[G]};
R6.prototype.move=function(m,G){var K=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var W=K.input.axis(m),L=K.input.position(m,K.config.startPosition,G.endPosition,G.moveRatio||1);K.element.style.transform="translate"+W+"("+L+"px)";K.animationRequestId=void 0}))};
var Feq=function(m,G,K){var W=K.moveRatio||1;K=Math.abs(m.config.startPosition-K.endPosition);return Math.min(m.input.distance(G)*W,K)/K};
R6.prototype.fade=function(m,G){var K=G.endOpacity;m=Feq(this,m,G);m>0&&(this.element.style.opacity=""+(((K||0)-1)*m+1))};
R6.prototype.threshold=function(m){return m.threshold?m.threshold:Math.abs(m.endPosition-this.config.startPosition)/3};
var aIu=function(m,G,K){var W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1)return W=m.input.delta(G)+m.config.startPosition,L=m.input.axis(G),A=K,O=A.endPosition,c=A.transitionEndPosition,h=(u=c)!=null?u:O,J.yield(m.element.animate([{transform:"translate"+L+"("+W+"px)"},{transform:"translate"+L+"("+h+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);m.element.style.transform="translate"+L+"("+h+"px)";_.ey(J)})};
R6.prototype.translateBack=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1){if(!G.element.style.transform)return L.return();K=G.input.axis(m);W=G.config.startPosition;return L.yield(G.element.animate([{transform:G.element.style.transform},{transform:"translate"+K+"("+W+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}G.element.style.transform="translate"+K+"("+W+"px)";_.ey(L)})};
var QKq=function(m,G){var K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K=m.input.delta(G)+m.config.startPosition,W=m.input.axis(G),L=K+70,A=m.element.style.opacity===""?1:m.element.style.opacity,O.yield(m.element.animate([{transform:"translate"+W+"("+K+"px)",opacity:A},{transform:"translate"+W+"("+L+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);m.element.style.transform="translate"+W+"("+L+"px)";m.element.style.opacity="0";_.ey(O)})};var zaD=new _.bs("ratelimit");var o9i=function(m,G){this.playerProvider_=m;this.actionSenderElement_=G;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
o9i.prototype.reset=function(){n9O(this);this.isUserPredictedAbsent_=!1};
var n9O=function(m,G){!m.youThereData_||m.showWarningJob_||G!==void 0&&G||(GZ("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.gU(),m.youThereData_,m.clientPlaybackNonce_),_.Qb());_.Fu.cancelJob(m.showWarningJob_);m.showWarningJob_=0;_.Fu.cancelJob(m.showBlockingWarningJob_);m.showBlockingWarningJob_=0;_.Fu.cancelJob(m.pausePlaybackJob_);m.pausePlaybackJob_=0;m.youThereData_=null;m.clientPlaybackNonce_=void 0;m.inYouThereFlow_=!1},v95=function(m,G){var K,W,L;
_.Y(function(A){if(A.nextAddress==1)return m.reset(),A.yield(m.playerProvider_().getPlayerPromise(),2);K=A.yieldResult;m.clientPlaybackNonce_=K.getVideoData().cpn;m.youThereData_=G.configData.youThereData;if(!m.youThereData_)return A.return();if(m.youThereData_.triggerReason&&m.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!lJ5())return GZ("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.gU(),m.youThereData_,m.clientPlaybackNonce_),A.return();W=m.youThereData_.promptDelaySec;L=K.getCurrentTime();
m.showWarningJob_=_.Fu.addLowPriorityJob(function(){return _.Y(function(O){m.showWarningJob_=0;return O.yield(bws(m),0)})},Math.max(W-L,0)*1E3);
_.ey(A)})},bws=function(m){var G,K,W,L,A,O;
return _.Y(function(c){if(c.nextAddress==1)return c.yield(m.playerProvider_().getPlayerPromise(),2);if(c.nextAddress!=3)return G=c.yieldResult,K=G.getCurrentTime(),c.yield($HP(m),3);W=c.yieldResult;if(!W||!m.youThereData_)return c.return();if(_.F("check_user_lact_at_prompt_shown_time_on_web")&&(L=parseInt(m.youThereData_.lactThresholdMs,10),_.Xu()<L))return GZ("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.gU(),m.youThereData_,m.clientPlaybackNonce_),c.return();if(m.youThereData_.playbackPauseDelayMs<=
0)return sKD(m),c.return();!_.F("external_fullscreen")&&(A=_.$u())&&(m.ignoreFullscreenExitUserActivity_=!0,_.Fu.addLowPriorityJob(function(){m.ignoreFullscreenExitUserActivity_=!1},2E3),_.sB(A));
m.youThereData_.showToastWarningPrompt&&(UI(m,m.youThereData_.showWarningActions),m.inYouThereFlow_=!0,GZ("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.gU(),m.youThereData_,m.clientPlaybackNonce_,K),GZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.gU(),m.youThereData_,m.clientPlaybackNonce_,K));O=0;m.youThereData_.blockingPromptDelayMs&&(O=m.youThereData_.blockingPromptDelayMs);m.showBlockingWarningJob_=_.Fu.addLowPriorityJob(function(){return _.Y(function(u){m.showBlockingWarningJob_=0;return u.yield(qlE(m),
0)})},O);
_.ey(c)})},qlE=function(m){var G,K,W;
return _.Y(function(L){if(L.nextAddress==1)return L.yield($HP(m),2);G=L.yieldResult;if(!m.youThereData_)return L.return();G&&(m.youThereData_.showBlockingWarningAction&&(GZ("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.gU(),m.youThereData_,m.clientPlaybackNonce_),(K=_.Q(m.youThereData_.showBlockingWarningAction,_.xu))?UI(m,K.commands):UI(m,[m.youThereData_.showBlockingWarningAction]),m.inYouThereFlow_=!0),W=m.youThereData_.playbackPauseDelayMs,m.pausePlaybackJob_=_.Fu.addLowPriorityJob(function(){return _.Y(function(A){m.pausePlaybackJob_=
0;return A.yield(sKD(m),0)})},W));
_.ey(L)})},sKD=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield($HP(m),2);G=K.yieldResult;if(!m.youThereData_)return K.return();G&&(GZ("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.gU(),m.youThereData_,m.clientPlaybackNonce_),UI(m,m.youThereData_.showPausedActions),m.inYouThereFlow_=!0);_.ey(K)})};
o9i.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var m=_.Q(this.youThereData_.userActiveDuringFlowAction,_.xu);m?UI(this,m.commands):UI(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(GZ("YOU_THERE_EVENT_TYPE_LACT_RESET",_.gU(),this.youThereData_,this.clientPlaybackNonce_),_.Qb());n9O(this,!0)}E9G(this,!1)};
var HwG=function(m){GZ("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.gU(),m.youThereData_,m.clientPlaybackNonce_)},$HP=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.playerProvider_().getPlayerPromise(),2);G=W.yieldResult;K=G.getPlayerState();return W.return(K==-1||K==1||K==3)})},E9G=function(m,G){var K;
_.Y(function(W){if(W.nextAddress==1){if(m.isUserPredictedAbsent_==G)return W.jumpTo(0);m.isUserPredictedAbsent_=G;return W.yield(m.playerProvider_().getPlayerPromise(),3)}K=W.yieldResult;K.setUserEngagement(G);G&&GZ("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.gU(),m.youThereData_,m.clientPlaybackNonce_);_.ey(W)})},UI=function(m,G){if(_.F("handle_service_request_actions")||_.F("kevlar_youthere_service_endpoint_actions_killswitch"))_.eD(m.actionSenderElement_,G,m.actionSenderElement_);
else{G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,K.commandMetadata&&K.commandMetadata.webCommandMetadata&&K.commandMetadata.webCommandMetadata.sendPost?_.yQ(m.actionSenderElement_,[K]):_.eD(m.actionSenderElement_,[K],m.actionSenderElement_)}};var Bn5=!1;var IIG={PAUSE_CHAT:18};var B3q=function(m,G){var K=_.E8("SESSION_INDEX");this.actionToken_=m;this.commonToken_=G;this.sessionIndex_=K},lSD=function(m){var G=_.Qo(),K=_.Cn("payments.business.integration.bootstrap"),W=_.Cn("payments.business.integration"),L=W.Style.create().withMaterialDesignStyle(),A=W.mashupMode.popup("instrument-manager");
K.asMashupMode(A).usingUserIndex(m.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(L).inStandaloneContext(W.standaloneContextAuthId.forUserId()).instrumentManager(m.actionToken_,m.commonToken_.length>0?m.commonToken_:void 0,function(O){var c=O.instrumentId;c?G.resolve(c):(c=_.Cn("payments.business.integration.scenario.InstrumentManager"),G.reject(O.errorCode&&O.errorCode===c.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(O){_.j1(O);
G.reject("instrumentManagerLoadError")});
return G.promise};var J1=function(m,G,K){this.payloadName="transactionFlowFailed";this.payload={errorType:m,serializedTransactionFlowLoggingParams:G,isUserDismiss:K===void 0?!1:K}};
_.yj("yt.ypc.shared.YpcTransactionFlowError",J1);var zO=function(){return _.l0.apply(this,arguments)||this};
_.n(zO,_.l0);zO.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
zO.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
zO.prototype.onErrorMessageDismiss=zO.prototype.onErrorMessageDismiss;_.x([_.V({readOnly:!0,observer:"errorRendererChanged"}),_.S("design:type",Object)],zO.prototype,"errorRenderer",void 0);_.x([_.XC("yt-live-chat-error-message-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zO.prototype,"onErrorMessageDismiss",null);_.x([_.Be()],zO);var jK6=[zO.prototype];var k86;var CQs,VvP=function(){if(CQs!==void 0)return CQs;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;k86===void 0&&(k86=document.createElement("template"));var W=k86;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return CQs=m};var lR=function(){var m=_.d.apply(this,arguments)||this;m.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";m.goalDescription="";m.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";m.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";m.startButtonId="start-button";m.exampleButtonId="example-button";return m};
_.n(lR,_.d);_.w=lR.prototype;_.w.getGoalDropdownItems=function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.purchaseTargetDropdown,chD))==null?void 0:G.dropdownItems};
_.w.getTimerDropdownItems=function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.timerDropdown,chD))==null?void 0:G.dropdownItems};
_.w.getColorDropdownItems=function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.colorDropdown,chD))==null?void 0:G.dropdownItems};
_.w.getDropdownItemText=function(m){var G;return(G=_.Q(m,Ouz))==null?void 0:G.itemLabel};
_.w.getDropdownItemValue=function(m){m=_.Q(m,Ouz);return(m==null?void 0:m.timeLimit)||(m==null?void 0:m.purchaseTarget)||(m==null?void 0:m.eligiblePurchaseType)};
_.w.updateFlowState=function(m){_.dU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:m}])};
_.w.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.w.updateGoalValue=function(m){this.goal=m.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.w.onTextValueChanged=function(m){this.goalDescription=m.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.w.updateTimerValue=function(m){this.timer=m.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.w.updateTierValue=function(m){this.tier=m.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.w.getButtonViewModel=function(m){m=(m==null?void 0:m.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var G,K=_.Q((G=this.data)==null?void 0:G.startGoalButton,_.J6);return Object.assign({},K,{state:m})};
_.e_.Object.defineProperties(lR,{template:{configurable:!0,enumerable:!0,get:function(){return VvP()}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"goal",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"goalDescription",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"timer",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"tier",void 0);
_.x([_.V(),_.S("design:type",Object)],lR.prototype,"startButtonId",void 0);_.x([_.V(),_.S("design:type",Object)],lR.prototype,"exampleButtonId",void 0);_.x([_.cL({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],lR);_.y(lR,"yt-creator-goal-set-up-flow-view-model",function(){return VvP()},{mode:0});var ZwG;var dHi;var BK=function(){return _.d.apply(this,arguments)||this};
_.n(BK,_.d);BK.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
BK.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var m=_.Q(this.data.button,_.J6);m&&(m.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.e_.Object.defineProperties(BK,{template:{configurable:!0,enumerable:!0,get:function(){if(dHi===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;ZwG===void 0&&(ZwG=document.createElement("template"));var W=ZwG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);dHi=m}m=dHi;return m}}});
_.x([_.q(_.gR),_.S("design:type",Object)],BK.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({selectorArgs:["data.enabledEntityKey"],selector:KQ5,observer:"onEnabledChange"}),_.S("design:type",Boolean)],BK.prototype,"enabled",void 0);_.x([_.V(),_.S("design:type",Object)],BK.prototype,"data",void 0);_.x([_.cL({is:"yt-disableable-button-view-model",noInjection:!0})],BK);var PQz;var yJD;var eNP=["transVert01","transVert02","transVert03"],fIP="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),MZ=function(){var m=_.d.apply(this,arguments)||this;m.emojiManager=_.Jx;m.isDarkTheme=document.documentElement.hasAttribute("dark");m.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};m.reactionBuckets=[];m.noEmojiIdentifier="NO_EMOJI";return m};
_.n(MZ,_.d);_.w=MZ.prototype;_.w.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.w.desktopFountainEmojiSizePxChanged=function(){_.eb(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.w.createUserReactionAnimation=function(m){this.createEmojiAnimation(m,!0)};
_.w.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var m;((m=this.data)==null?0:m.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Bp("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Bz(this.emojiContainer.children)).forEach(function(G){G.remove()})};
_.w.detached=function(){this.cleanupFountain()};
_.w.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var m;this.reactionBuckets=_.Y2.unsafeClone((m=this.emojiFountainData)==null?void 0:m.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.w.processEmojiBucket=function(m){var G=this;if(this.reactionBuckets&&!(m>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var K=this.reactionBuckets[m];this.generateEmojiAnimations(K);if(m<this.reactionBuckets.length-1){var W;if(K==null?0:(W=K.duration)==null?0:W.seconds)this.emojiBucketTimerId=setTimeout(function(){G.processEmojiBucket(m+1)},Number(K.duration.seconds)*1E3)}}};
_.w.generateEmojiAnimations=function(m){var G=this,K=this.getRandomEmojiIdFromBucketWithOverride(m);if(K&&K!==this.noEmojiIdentifier){var W=0;m.targetEps?(W=this.linearInterpolateBounded(1,20,100,12,m.emojiSizeIndex||0),this.createEmojiAnimation(K,!1,m.emojiAnimationMs,W),W=this.getEmojiDelayMsFromTargetEps(m.targetEps)):(this.createEmojiAnimation(K),W=this.getEmojiDelayMsFromDistribution(m.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){G.generateEmojiAnimations(m)},W)}};
_.w.getRandomEmojiIdFromBucketWithOverride=function(m){if(!(m&&m.reactionsData&&m.reactionsData.length&&m.totalReactions))return this.noEmojiIdentifier;for(var G=m.totalReactions,K=1,W=_.g(m.reactionsData),L=W.next();!L.done;L=W.next())L=L.value,(L.reactionWeightOverride||L.reactionWeightOverride===0)&&L.reactionCount&&(G-=L.reactionCount,K-=L.reactionWeightOverride);W=!0;K<0&&(W=!1,G=m.totalReactions,K=1);if(W&&K>0&&G===0)if(K===1){L=0;for(var A=_.g(m.reactionsData),O=A.next();!O.done;O=A.next())O=
O.value,O.reactionCount&&O.reactionCount>0&&L++;L=1/L;A=_.g(m.reactionsData);for(O=A.next();!O.done;O=A.next())O.value.reactionWeightOverride=L}else for(L=1/(1-K),A=_.g(m.reactionsData),O=A.next();!O.done;O=A.next())O=O.value,O.reactionWeightOverride&&(O.reactionWeightOverride*=L);L=Math.random();A=0;O=_.g(m.reactionsData);for(var c=O.next();!c.done;c=O.next())if(c=c.value,c.reactionCount&&(A=(c.reactionWeightOverride||c.reactionWeightOverride===0)&&W?A+c.reactionWeightOverride:A+K*c.reactionCount/
G,A>L&&(c.reactionCount--,m.totalReactions--,c=this.reactionItemToEmojiString(c),c!==this.noEmojiIdentifier)))return c;return this.noEmojiIdentifier};
_.w.reactionItemToEmojiString=function(m){if(m.unicodeEmojiId)return m.unicodeEmojiId;if(m.emoteId)return m.emoteId;if(m.videoReactionType)switch(m.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.w.createEmojiAnimation=function(m,G,K,W){G=G===void 0?!1:G;this.lastEmojiRequestedForTesting=m;var L=m.startsWith("yt-icons:"),A=_.hx(this.emojiManager,m);if(A||L){var O=document.createElement("emoji");O.classList.add("yt-emoji-fountain-view-model");O.classList.add(eNP[Math.floor(Math.random()*eNP.length)]);var c=document.createElement("div");c.classList.add("yt-emoji-fountain-view-model");c.classList.add("horizontal-container");c.classList.add(fIP[Math.floor(Math.random()*fIP.length)]);G?(K=document.createElement("div"),
K.classList.add("user-reaction-bubble"),K.classList.add("yt-emoji-fountain-view-model"),c.appendChild(K)):(K&&(O.style.animationDuration=K+"ms",c.style.animationDuration=K+"ms"),W&&(O.style.width=W+"px",O.style.height=W+"px"));L?(L=document.createElement("yt-icon"),L.polymerController.icon=m,W&&(L.style.width=W+"px",L.style.height=W+"px"),m=L):m=this.emojiManager.createEmoji(A,!1);m.classList.add("yt-emoji-fountain-view-model");c.appendChild(m);O.appendChild(c);this.emojiContainer.appendChild(O);
O.addEventListener("animationend",function(){O.remove()});
var u,h;if((u=this.data)==null?0:(h=u.loggingDirectives)==null?0:h.trackingParams)G=G?_.dq(183501):_.dq(183500),WQ6(this.data.loggingDirectives.trackingParams,G),_.nho(G);setTimeout(function(){O&&O.remove()},2E3)}};
_.w.getEmojiDelayMsFromDistribution=function(m){return Math.random()*(m||1)*1E3};
_.w.getEmojiDelayMsFromTargetEps=function(m){return Math.random()*2*(1/m)*1E3};
_.w.linearInterpolateBounded=function(m,G,K,W,L){L=Math.min(Math.max(L,m),K);return(G*(K-L)+W*(L-m))/(K-m)};
MZ.prototype.onEmojiFountainDataEntityUpdate=MZ.prototype.onEmojiFountainDataEntityUpdate;MZ.prototype.desktopFountainEmojiSizePxChanged=MZ.prototype.desktopFountainEmojiSizePxChanged;MZ.prototype.isActiveChanged=MZ.prototype.isActiveChanged;_.x([_.V(),_.S("design:type",_.um)],MZ.prototype,"emojiManager",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],MZ.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],MZ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MZ.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(m,G){return _.yx(m.entities,"emojiFountainDataEntity",G)}}),
_.S("design:type",Object)],MZ.prototype,"emojiFountainData",void 0);_.x([_.V(),_.S("design:type",Boolean)],MZ.prototype,"isActive",void 0);_.x([_.Sb("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MZ.prototype,"isActiveChanged",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],MZ.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",String)],MZ.prototype,"lastEmojiRequestedForTesting",void 0);
_.x([_.V({value:function(){return _.U8("desktop_fountain_emoji_size_px",20)}}),
_.S("design:type",Number)],MZ.prototype,"desktopFountainEmojiSizePx",void 0);_.x([_.Sb("desktopFountainEmojiSizePx"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MZ.prototype,"desktopFountainEmojiSizePxChanged",null);_.x([_.UM("#emoji-container"),_.S("design:type",HTMLElement)],MZ.prototype,"emojiContainer",void 0);
_.x([_.Sb("emojiFountainData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MZ.prototype,"onEmojiFountainDataEntityUpdate",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],MZ);
_.y(MZ,"yt-emoji-fountain-view-model",function(){if(yJD===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;PQz===void 0&&(PQz=document.createElement("template"));var W=PQz;K.call(G,W.content.cloneNode(!0),m.content.firstChild);yJD=m}m=yJD;return m},{mode:0});var xH6;var XCD;var TO=function(){return _.d.apply(this,arguments)||this};
_.n(TO,_.d);TO.prototype.onChoiceChanged=function(){this.data&&_.eb(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
TO.prototype.onChoiceChanged=TO.prototype.onChoiceChanged;_.x([_.V(),_.S("design:type",Object)],TO.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],TO.prototype,"onChoiceChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],TO);
_.y(TO,"yt-live-chat-banner-poll-choice",function(){if(XCD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;xH6===void 0&&(xH6=document.createElement("template"));var W=xH6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);XCD=m}m=XCD;return m},{mode:0});var Sl6;var RNG;var m2=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_button_rework_with_live");m.small=!1;return m};
_.n(m2,_.d);m2.prototype.computeIsSmall=function(){var m;return((m=this.buttonOverrides)==null?void 0:m.size)==="S"};
m2.prototype.computeId=function(){return this.data&&this.data.targetId};
_.x([_.q(_.OH.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],m2.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",String)],m2.prototype,"id",void 0);_.x([_.V(),_.S("design:type",Object)],m2.prototype,"buttonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],m2.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],m2.prototype,"modern",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.S("design:type",Object)],m2.prototype,"small",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-button"})],m2);
_.y(m2,"yt-live-chat-button",function(){if(RNG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Sl6===void 0&&(Sl6=document.createElement("template"));var W=Sl6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);RNG=m}m=RNG;return m},{mode:0});var UH6;var zNG;var iV=function(){var m=_.d.apply(this,arguments)||this;m.inCollapsedBanner=!1;m.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};m.questionButtonOverrides={style:"mono",type:"filled"};return m};
_.n(iV,_.d);_.w=iV.prototype;_.w.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]]"}}}}}};
_.w.onContextMenuButtonClick=function(m){this.ytLiveChatItemBehavior.showContextMenu(m)};
_.w.onYtRendererstamperFinished=function(){this.menuButton=_.VL(this.hostElement).querySelector("#menu-button")};
_.w.dataChanged=function(){var m,G;if((G=_.Q((m=this.data)==null?void 0:m.overflowMenuButton,_.uu))==null?0:G.command)this.data.contextMenuEndpoint=_.Q(this.data.overflowMenuButton,_.uu).command};
_.w.onButtonClick=function(){var m,G=_.Q((m=this.data)==null?void 0:m.askQuestionButton,_.uu);if(G){if(G.trackingParams&&(m=_.m5(G.trackingParams))){var K=_.gU();K&&_.nW(K,m)}_.Zw(this.hostElement,"innertube-command",G.command)}};
iV.prototype.onYtRendererstamperFinished=iV.prototype.onYtRendererstamperFinished;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],iV.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],iV.prototype,"ytLiveChatItemBehavior",void 0);_.x([_.V({observer:"dataChanged"}),_.S("design:type",Object)],iV.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],iV.prototype,"inCollapsedBanner",void 0);_.x([_.V(),_.S("design:type",Object)],iV.prototype,"buttonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],iV.prototype,"questionButtonOverrides",void 0);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iV.prototype,"onYtRendererstamperFinished",null);
_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],iV);
_.y(iV,"yt-live-chat-call-for-questions-renderer",function(){if(zNG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;UH6===void 0&&(UH6=document.createElement("template"));var W=UH6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);zNG=m}m=zNG;return m},{mode:0});var lIG={};lIG.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 m=this;window.requestAnimationFrame(function(){m.restoreFocusNode_||(m.restoreFocusNode_=document.activeElement);var G=_.z0G(m.hostElement);G.length&&G[G.length-1].focus()})},
isAttachedChanged_:function(m,G){m?this.focusChild_():G&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(m){this.hidden||_.ve(m).indexOf(this.hostElement)!==-1||(m.stopPropagation(),this.focusChild_())}};var BkO;var MvD;var GK=function(){return _.d.apply(this,arguments)||this};
_.n(GK,_.d);GK.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
GK.prototype.onClick=function(m){m.target!==this.confirmButton&&m.target!==this.cancelButton&&(this.hidden=!0)};
_.x([_.UM("#confirm_button"),_.S("design:type",Object)],GK.prototype,"confirmButton",void 0);_.x([_.UM("#cancel_button"),_.S("design:type",Object)],GK.prototype,"cancelButton",void 0);_.x([_.V(),_.S("design:type",TkO)],GK.prototype,"data",void 0);_.x([_.V({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],GK.prototype,"hidden",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(lIG.YtLiveChatDialogBehavior),_.S("design:type",Object)],GK.prototype,"ytLiveChatDialogBehavior",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],GK);
var TkO=_.y(GK,"yt-live-chat-dialog-renderer",function(){if(MvD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;BkO===void 0&&(BkO=document.createElement("template"));var W=BkO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);MvD=m}m=MvD;return m},{mode:0});var mxi;var iqP,GWG=function(){if(iqP!==void 0)return iqP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;mxi===void 0&&(mxi=document.createElement("template"));var W=mxi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);return iqP=m};var K4D;var W4W;var KF=function(){var m=_.d.apply(this,arguments)||this;m.icon=null;return m};
_.n(KF,_.d);KF.prototype.dismiss=function(){_.Zw(this.hostElement,"yt-live-chat-error-message-dismiss")};
KF.prototype.computeIcon=function(m){return m&&m.iconType?"yt-icons:"+m.iconType.toLowerCase():"yt-icons:close"};
_.x([_.V(),_.S("design:type",Object)],KF.prototype,"data",void 0);_.x([_.V({computed:"computeIcon(data.icon)"}),_.S("design:type",Object)],KF.prototype,"icon",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],KF);
_.y(KF,"yt-live-chat-error-message-renderer",function(){if(W4W===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;K4D===void 0&&(K4D=document.createElement("template"));var W=K4D;K.call(G,W.content.cloneNode(!0),m.content.firstChild);W4W=m}m=W4W;return m},{mode:0});var L4u;var ALs;var Wn=function(){var m=_.d.apply(this,arguments)||this;m.tooltip=null;m.data=null;m.id="";m.active=!1;m.icon="";m.disabled=!1;m.showTooltip=!1;m.useToggledActiveState=!0;m.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return m};
_.n(Wn,_.d);_.w=Wn.prototype;
_.w.dataChanged=function(){var m;((m=this.data)==null?0:m.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,_.yL)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var G;if((G=this.data)==null?0:G.disabled)this.disabled=!0};
_.w.computeId=function(m){return m};
_.w.computeIcon=function(m,G){if(!m)return"";if(this.useToggledActiveState)return"yt-icons:"+m.toLowerCase();var K,W;return G&&((K=this.data)==null?0:(W=K.toggledIcon)==null?0:W.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+m.toLowerCase()};
_.w.logPDGEntryPoint=function(){_.Z46(_.e8("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")};
_.w.immediatelyShowTooltip=function(){var m=_.VL(this.hostElement).querySelector("#tooltip");m.animationDelay=0;m.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};m.show()};
_.w.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.w.onClick=function(m){var G;((G=this.data)==null?0:G.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(),m.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Zw(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.w.computeShowTooltip=function(m,G){return!!(m&&m.tooltip&&G)};
_.w.maybeUpdateTooltipText=function(){var m=this,G;if((G=this.data)==null?0:G.tooltip){var K=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.yL)(m.tooltip).textContent=K},250)}};
_.w.handleLiveChatActions=function(m){var G=this;m.length&&(this.id!=="creator"&&this.id!=="product-picker"||m.forEach(function(K){(K=G.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",K))&&K.durationSec===K.fullDurationSec&&G.startBubble(G.colorFromDecimal(K.startBackgroundColor))}))};
_.w.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.w.startBubble=function(m){_.eb(this.hostElement,{"--yt-live-chat-monetization-button-glow":m});this.hostElement.setAttribute("bubble","")};
_.w.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.w.colorFromDecimal=function(m){typeof m==="string"&&(m=Number(m));return"rgba("+[m>>16&255,m>>8&255,m&255,(m>>24&255)/255].join()+")"};
Wn.prototype.onAnimationEnd=Wn.prototype.onAnimationEnd;Wn.prototype.disabledChanged=Wn.prototype.disabledChanged;Wn.prototype.dataChanged=Wn.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Wn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.OH.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],Wn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wn.prototype,"data",void 0);_.x([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",Object)],Wn.prototype,"id",void 0);_.x([_.V({notify:!0,reflectToAttribute:!0}),_.S("design:type",Object)],Wn.prototype,"active",void 0);
_.x([_.V({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.S("design:type",Object)],Wn.prototype,"icon",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Wn.prototype,"disabled",void 0);_.x([_.V({computed:"computeShowTooltip(data, disabled)"}),_.S("design:type",Object)],Wn.prototype,"showTooltip",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Wn.prototype,"useToggledActiveState",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wn.prototype,"dataChanged",null);_.x([_.Sb("disabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Wn.prototype,"disabledChanged",null);_.x([_.XC("animationend"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Wn.prototype,"onAnimationEnd",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Wn);
_.y(Wn,"yt-live-chat-icon-toggle-button-renderer",function(){if(ALs===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;L4u===void 0&&(L4u=document.createElement("template"));var W=L4u;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ALs=m}m=ALs;return m},{mode:0});var wSW;var gI5;var LF=function(){return _.d.apply(this,arguments)||this};
_.n(LF,_.d);LF.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.x([_.V(),_.S("design:type",Object)],LF.prototype,"data",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],LF);
_.y(LF,"yt-live-chat-message-input-prompt-header-renderer",function(){if(gI5===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;wSW===void 0&&(wSW=document.createElement("template"));var W=wSW;K.call(G,W.content.cloneNode(!0),m.content.firstChild);gI5=m}m=gI5;return m},{mode:0});var Oqq;var cL6;var Ytz;var rLO;var u2u;var htD;var pSD=function(){return _.d.apply(this,arguments)||this};
_.n(pSD,_.d);_.x([_.V(),_.S("design:type",Object)],pSD.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],pSD);
_.y(pSD,"yt-live-chat-message-subtext-renderer",function(){if(htD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;u2u===void 0&&(u2u=document.createElement("template"));var W=u2u;K.call(G,W.content.cloneNode(!0),m.content.firstChild);htD=m}m=htD;return m},{mode:0});var AB=function(){var m=_.d.apply(this,arguments)||this;m.subtextOnBottom=!1;m.buttonOverrides={style:"mono",type:"tonal"};return m};
_.n(AB,_.d);AB.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],AB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],AB.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AB.prototype,"subtextOnBottom",void 0);_.x([_.V(),_.S("design:type",Object)],AB.prototype,"buttonOverrides",void 0);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],AB);
_.y(AB,"yt-live-chat-message-renderer",function(){if(rLO===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Ytz===void 0&&(Ytz=document.createElement("template"));var W=Ytz;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rLO=m}m=rLO;return m},{mode:0});var JLO;var NQD;var we=function(){var m=_.d.apply(this,arguments)||this;m.isRemovable=!1;m.hasPrefilledText=!1;m.isInputDirty=!1;m.overCharacterLimit=!1;m.underCharacterLimit=!1;m.showErrorMessage=!1;return m};
_.n(we,_.d);_.w=we.prototype;_.w.computeId=function(){return this.data.id};
_.w.computeInputData=function(){return this.data.inputData};
_.w.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.w.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.w.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.w.getLiveChatRichMessageInput=function(){return _.VL(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.w.clearInput=function(){_.VL(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.w.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.w.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.w.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.w.handleTextInputCharCountChanged=function(m){m=m.detail&&m.detail.characterCount;m!==void 0&&(this.characterCount=m,m!==0&&(this.isInputDirty=!0))};
_.w.onInputFocusOut=function(){this.isInputDirty=!0};
_.w.onClickCloseButton=function(){_.Zw(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
we.prototype.handleTextInputCharCountChanged=we.prototype.handleTextInputCharCountChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],we.prototype,"data",void 0);_.x([_.V({computed:"computeId(data.id)"}),_.S("design:type",String)],we.prototype,"id",void 0);_.x([_.V({computed:"computeInputData(data.inputData)"}),_.S("design:type",Object)],we.prototype,"inputData",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.S("design:type",Object)],we.prototype,"isRemovable",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.S("design:type",Object)],we.prototype,"hasPrefilledText",void 0);_.x([_.V({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.S("design:type",Number)],we.prototype,"charactersRemaining",void 0);
_.x([_.V(),_.S("design:type",Number)],we.prototype,"characterCount",void 0);_.x([_.V(),_.S("design:type",Object)],we.prototype,"isInputDirty",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.S("design:type",Object)],we.prototype,"overCharacterLimit",void 0);_.x([_.V({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.S("design:type",Object)],we.prototype,"underCharacterLimit",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.S("design:type",Object)],we.prototype,"showErrorMessage",void 0);_.x([_.XC("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],we.prototype,"handleTextInputCharCountChanged",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],we);
_.y(we,"yt-live-chat-poll-editor-input",function(){if(NQD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;JLO===void 0&&(JLO=document.createElement("template"));var W=JLO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);NQD=m}m=NQD;return m},{mode:0});var DxD;var tK6;var F4G={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},ge=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_button_rework_with_live");m.closeButtonOverrides={iconPosition:"icon-only"};m.startButtonOverrides={style:"mono",type:"filled"};m.addOptionButtonOverrides={style:"mono",type:"text"};return m};
_.n(ge,_.d);_.w=ge.prototype;
_.w.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"}}}}};
_.w.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var m;_.Q((m=this.data)==null?void 0:m.startButton,_.uu)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.w.computeId=function(){return this.data&&this.data.id||""};
_.w.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.w.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.w.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.w.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.w.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var m=0;m<this.pollEditorInfoWithDefaults.minPollOptions;m++)this.addPollOptionData()};
_.w.getIsValidPoll=function(){var m=this;if(!this.pollEditorInfoWithDefaults)return!1;var G=this.pollEditorInfoWithDefaults,K=G.minPollOptionChars,W=G.maxPollOptionChars,L=G.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>G.maxPollQuestionChars)return!1;G=_.VL(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(G).every(function(A,O){A=A.characterCount;!A&&L[O]&&(A=m.ytRendererBehavior.getSimpleString(L[O]).length);return A!==void 0&&A>=K&&A<=W})};
_.w.isValidPollChanged=function(){var m;_.Q((m=this.data)==null?void 0:m.startButton,_.uu)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.w.addPollOptionData=function(){var m=this.pollEditorInfoWithDefaults,G=m.maxPollOptionChars,K=m.optionPlaceholderText,W=m.customOptionPlaceholderText,L=m.pollOptionData;this.currentNumPollOptions>=m.maxPollOptions||(m={liveChatPollOptionInput:{inputData:{placeholder:W[this.currentNumPollOptions]||K,maxCharacterLimit:G},maxCharacterLimit:G,minCharacterLimit:m.minPollOptionChars,hasPrefilledText:!!W[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=m.minPollOptions}},L.charCountErrorText&&
(m.liveChatPollOptionInput.charCountErrorText=L.charCountErrorText),L.charsRemainingAltLabel&&(m.liveChatPollOptionInput.charsRemainingAltLabel=L.charsRemainingAltLabel),L.removeOptionAltText&&(m.liveChatPollOptionInput.removeOptionAltText=L.removeOptionAltText),this.push("pollOptionsData",m),L=Array.from(_.VL(_.VL(this.hostElement).querySelector("#poll-options")).children),L.forEach(function(A,O){A.polymerController.set("data.id",O)}),_.VL(L[L.length-1]).querySelector("#input").focus())};
_.w.getPollOptionInputValues=function(){var m=this,G=[],K=_.VL(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),W=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(K).forEach(function(L,A){var O=null;L=L.getLiveChatRichMessageInput();var c;(L==null?0:(c=L.textSegments)==null?0:c.length)?O=_.ho(L):W[A]&&(O=m.formattedStringToLiveChatRichMessageInput(W[A]));G.push(O)});
return G};
_.w.requestCreateAndStartPoll=function(m){var G=this.getPollOptionInputValues();if(!G.some(function(W){return!W})){G={optionText:G};
var K=_.VL(_.VL(this.hostElement).querySelector("#poll-question")).firstChild;K&&K.liveChatRichMessageInput&&(G.questionText=_.ho(K.liveChatRichMessageInput));_.yQ(this.hostElement,[m,G])}};
_.w.selectedChanged=function(){if(this.selected){var m=_.VL(_.VL(this.hostElement).querySelector("#start-button")).firstElementChild;if(m){var G;(G=_.VL(m).querySelector("#button")||_.Z7(m).querySelector("button"))==null||G.focus()}}};
_.w.handleTextInputChanged=function(m){var G;((G=m.target)==null?void 0:G.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=m.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.w.handleStartButtonAction=function(m){m.detail.actionName==="yt-service-request"&&(m.stopPropagation(),(m=m.detail.args[1])&&this.requestCreateAndStartPoll(m))};
_.w.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.w.handleServiceRequestCompleted=function(m){this.createPollRequestInFlight=!1;(m=m.detail&&m.detail.data)&&m.success&&(_.Zw(this.hostElement,"picker-cancelled"),_.dU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.w.onCloseClick=function(){_.Zw(this.hostElement,"picker-cancelled");_.dU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.w.handlePollEditorInputClosed=function(m){var G=this.pollOptionsData.findIndex(function(K){return K.liveChatPollOptionInput.id===m.detail.id});
this.splice("pollOptionsData",G,1);this.isValidPoll=this.getIsValidPoll()};
_.w.onPickerCancelled=function(){this.reset()};
_.w.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var m=_.VL(_.VL(this.hostElement).querySelector("#poll-question")).firstChild;m&&m.setLiveChatRichMessageInput(null);if(m=_.VL(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){m=_.g(Array.from(m));for(var G=m.next();!G.done;G=m.next())G.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.w.formattedStringToLiveChatRichMessageInput=function(m){return m.simpleText?{text_segments:[m.simpleText]}:{text_segments:m.runs}};
_.e_.Object.defineProperties(ge.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(F4G,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
ge.prototype.onPickerCancelled=ge.prototype.onPickerCancelled;ge.prototype.handlePollEditorInputClosed=ge.prototype.handlePollEditorInputClosed;ge.prototype.handleServiceRequestCompleted=ge.prototype.handleServiceRequestCompleted;ge.prototype.handleServiceRequestSent=ge.prototype.handleServiceRequestSent;ge.prototype.handleTextInputChanged=ge.prototype.handleTextInputChanged;ge.prototype.selectedChanged=ge.prototype.selectedChanged;ge.prototype.isValidPollChanged=ge.prototype.isValidPollChanged;
ge.prototype.shouldInitializePollChanged=ge.prototype.shouldInitializePollChanged;ge.prototype.dataChanged=ge.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ge.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ge.prototype,"modern",void 0);
_.x([_.V(),_.S("design:type",Object)],ge.prototype,"closeButtonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],ge.prototype,"startButtonOverrides",void 0);_.x([_.V(),_.S("design:type",Object)],ge.prototype,"addOptionButtonOverrides",void 0);_.x([_.V({computed:"computeId(data.id)",reflectToAttribute:!0}),_.S("design:type",String)],ge.prototype,"id",void 0);_.x([_.V({value:function(){return[]}}),
_.S("design:type",Array)],ge.prototype,"pollOptionsData",void 0);_.x([_.E("pollEditorInfoWithDefaults"),_.S("design:type",Object),_.S("design:paramtypes",[])],ge.prototype,"pollQuestionData",null);_.x([_.V({value:0}),_.S("design:type",Number)],ge.prototype,"pollQuestionCharacterCount",void 0);_.x([_.E("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],ge.prototype,"pollQuestionCharactersRemaining",null);
_.x([_.V({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.S("design:type",Boolean)],ge.prototype,"overQuestionCharacterLimit",void 0);_.x([_.E("data.pollEditorInfo"),_.S("design:type",Object),_.S("design:paramtypes",[])],ge.prototype,"pollEditorInfoWithDefaults",null);_.x([_.V({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.S("design:type",Number)],ge.prototype,"currentNumPollOptions",void 0);
_.x([_.V({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.S("design:type",Boolean)],ge.prototype,"hasMaxNumPollOptions",void 0);_.x([_.E("pollEditorInfoWithDefaults","pollOptionsData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ge.prototype,"shouldInitializePoll",null);_.x([_.V(),_.S("design:type",Object)],ge.prototype,"isValidPoll",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ge.prototype,"createPollRequestInFlight",void 0);_.x([_.V(),_.S("design:type",Object)],ge.prototype,"selected",void 0);_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.S("design:type",Boolean)],ge.prototype,"showQuestionErrorMessage",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"dataChanged",null);_.x([_.Sb("shouldInitializePoll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"shouldInitializePollChanged",null);_.x([_.Sb("isValidPoll"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"isValidPollChanged",null);
_.x([_.Sb("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"selectedChanged",null);_.x([_.XC("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ge.prototype,"handleTextInputChanged",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"handleServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ge.prototype,"handleServiceRequestCompleted",null);
_.x([_.XC("yt-live-chat-poll-editor-input-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ge.prototype,"handlePollEditorInputClosed",null);_.x([_.XC("picker-cancelled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ge.prototype,"onPickerCancelled",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],ge);
_.y(ge,"yt-live-chat-poll-editor-panel-renderer",function(){if(tK6===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;DxD===void 0&&(DxD=document.createElement("template"));var W=DxD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);tK6=m}m=tK6;return m},{mode:0});var QY6;var axi;var Oz=function(){return _.d.apply(this,arguments)||this};
_.n(Oz,_.d);Oz.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Oz.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.e_.Object.defineProperties(Oz.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var m,G;return(m=this.data)==null?void 0:(G=m.title)==null?void 0:G.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var m;return _.c8((m=this.data)==null?void 0:m.onTapCommand)}}});
_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],Oz.prototype,"ytEndpointBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Oz.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Oz.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Oz.prototype,"itemId",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Oz.prototype,"hasPromotion",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Oz.prototype,"innertubeCommand",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Oz);
_.y(Oz,"yt-live-chat-product-picker-panel-item-view-model",function(){if(axi===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;QY6===void 0&&(QY6=document.createElement("template"));var W=QY6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);axi=m}m=axi;return m},{mode:0});var oIq;var nIW;var cn=function(){var m=_.d.apply(this,arguments)||this;m.id="product-picker";m.selected=!1;m.closeButtonId="close-button";m.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return m};
_.n(cn,_.d);_.w=cn.prototype;_.w.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.w.observeSelected=function(){this.selected&&this.hostElement.focus();var m=_.VL(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");m.length&&m[0].focus()};
_.w.onCloseBuyFlow=function(){_.Zw(this.hostElement,"picker-cancelled")};
_.w.onCloseClick=function(){_.Zw(this.hostElement,"picker-cancelled");var m;((m=this.data)==null?0:m.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.closeButton,_.J6))};
_.w.onCloseEngageWithAudienceEditorPanels=function(){_.Zw(this.hostElement,"picker-cancelled")};
cn.prototype.observeSelected=cn.prototype.observeSelected;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],cn.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cn.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],cn.prototype,"id",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],cn.prototype,"selected",void 0);_.x([_.V(),_.S("design:type",Object)],cn.prototype,"closeButtonId",void 0);_.x([_.Sb("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cn.prototype,"observeSelected",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],cn);
_.y(cn,"yt-live-chat-product-picker-panel-view-model",function(){if(nIW===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;oIq===void 0&&(oIq=document.createElement("template"));var W=oIq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);nIW=m}m=nIW;return m},{mode:0});var bqW;var vIG;var Yd=function(){var m=_.d.apply(this,arguments)||this;m.iconId="";m.icon="";m.disabled=!1;m.systemIcons=_.F("kevlar_system_icons");return m};
_.n(Yd,_.d);_.w=Yd.prototype;_.w.computeIconId=function(m){return m&&m.icon&&m.icon.iconType?m.icon.iconType.toLowerCase():""};
_.w.computeIcon=function(m){return m&&m.icon&&m.icon.iconType?(m=m.icon.iconType.toLowerCase(),(m.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+m):""};
_.w.computeDisabled=function(m){return!!m};
_.w.computeCommand=function(m,G){return G?void 0:m};
_.w.computeTooltip=function(m,G){return G&&m?m:""};
_.w.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.e_.Object.defineProperties(Yd.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var m="",G,K,W;if((G=this.data)==null?0:(K=G.text)==null?0:(W=K.runs)==null?0:W.length)m=this.data.text.runs[0].text||"";else{var L,A;if((L=this.data)==null?0:(A=L.text)==null?0:A.simpleText)m=this.data.text.simpleText}var O,c,u;if((O=this.data)==null?0:(c=O.subtext)==null?0:(u=c.runs)==null?0:u.length)m&&(m+=". "),m+=this.data.subtext.runs[0].text||"";else{var h,J;if((h=this.data)==null?0:(J=h.subtext)==
null?0:J.simpleText)m&&(m+=". "),m+=this.data.subtext.simpleText}return m}}});
_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],Yd.prototype,"ytEndpointBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Yd.prototype,"data",void 0);_.x([_.V({computed:"computeIconId(data)",reflectToAttribute:!0}),_.S("design:type",Object)],Yd.prototype,"iconId",void 0);
_.x([_.V({computed:"computeIcon(data)",reflectToAttribute:!0}),_.S("design:type",Object)],Yd.prototype,"icon",void 0);_.x([_.V({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.S("design:type",Object)],Yd.prototype,"disabled",void 0);_.x([_.V({computed:"computeCommand(data.command, disabled)"}),_.S("design:type",Object)],Yd.prototype,"command",void 0);_.x([_.V({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.S("design:type",String)],Yd.prototype,"tooltip",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yd.prototype,"systemIcons",void 0);_.x([_.E("data.text","data.subtext"),_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],Yd.prototype,"ariaLabel",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Yd);
_.y(Yd,"yt-live-chat-product-button-renderer",function(){if(vIG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;bqW===void 0&&(bqW=document.createElement("template"));var W=bqW;K.call(G,W.content.cloneNode(!0),m.content.firstChild);vIG=m}m=vIG;return m},{mode:0});var $xE;var sYW;var re=function(){var m=_.d.apply(this,arguments)||this;m.selected=!1;m.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 m};
_.n(re,_.d);_.w=re.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.computeId=function(m){return m.id||""};
_.w.onCloseClick=function(){_.Zw(this.hostElement,"picker-cancelled")};
_.w.observeSelected=function(){this.selected&&this.hostElement.focus();var m=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");m.length&&m[0].focus()};
_.w.onCloseBuyFlow=function(){_.Zw(this.hostElement,"picker-cancelled")};
_.w.onCloseEngageWithAudienceEditorPanels=function(){_.Zw(this.hostElement,"picker-cancelled")};
re.prototype.observeSelected=re.prototype.observeSelected;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],re.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],re.prototype,"data",void 0);
_.x([_.V({computed:"computeId(data)",reflectToAttribute:!0}),_.S("design:type",String)],re.prototype,"id",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],re.prototype,"selected",void 0);_.x([_.Sb("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],re.prototype,"observeSelected",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],re);
_.y(re,"yt-live-chat-product-picker-renderer",function(){if(sYW===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;$xE===void 0&&($xE=document.createElement("template"));var W=$xE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);sYW=m}m=sYW;return m},{mode:0});var qtG;var EIO;var HqE;var Ix5;var uV=function(){return _.d.apply(this,arguments)||this};
_.n(uV,_.d);uV.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()};
uV.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
uV.prototype.created=function(){this.ids={background:lH(),maskOne:lH(),maskTwo:lH(),gradient:lH(),largeBackground:lH(),largeGradientOne:lH(),largeGradientTwo:lH(),largeGradientPath:lH()}};
uV.prototype.maybeLoadAnimationBackground=uV.prototype.maybeLoadAnimationBackground;_.x([_.V({value:!1}),_.S("design:type",Boolean)],uV.prototype,"useLargeBackground",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],uV.prototype,"useAnimationBackground",void 0);_.x([_.V({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.S("design:type",Boolean)],uV.prototype,"useRegularBackground",void 0);
_.x([_.V(),_.S("design:type",Object)],uV.prototype,"ids",void 0);_.x([_.V(),_.S("design:type",Object)],uV.prototype,"lottieAnimation",void 0);_.x([_.UM("#animation-background"),_.S("design:type",HTMLDivElement)],uV.prototype,"animationBackground",void 0);_.x([_.Sb("useAnimationBackground"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uV.prototype,"maybeLoadAnimationBackground",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],uV);
_.y(uV,"yt-live-interactivity-component-background",function(){if(Ix5===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;HqE===void 0&&(HqE=document.createElement("template"));var W=HqE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Ix5=m}m=Ix5;return m},{mode:0});var hB=function(){var m=_.d.apply(this,arguments)||this;m.characterCount=0;m.showInputErrorMessage=!1;m.startQnaRequestInFlight=!1;m.modern=_.F("web_button_rework_with_live");m.buttonOverrides={style:"mono",type:"filled"};m.closeButtonOverrides={iconPosition:"icon-only"};m.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return m};
_.n(hB,_.d);_.w=hB.prototype;
_.w.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]]"}}}}}};
_.w.onCharacterCountChanged=function(m){var G,K,W,L,A=(K=_.Q(this==null?void 0:(G=this.data)==null?void 0:G.creatorCallForQuestions,dr6))==null?void 0:(W=K.inputField)==null?void 0:(L=W.liveChatTextInputFieldRenderer)==null?void 0:L.maxCharacterLimit,O,c;A!=null&&(m==null?void 0:(O=m.detail)==null?void 0:O.characterCount)!=null&&_.Q(this==null?void 0:(c=this.data)==null?void 0:c.startButton,_.uu)&&(G=m.detail.characterCount>A,this.set("data.startButton.buttonRenderer.isDisabled",m.detail.characterCount===
0||G),this.showInputErrorMessage=G)};
_.w.onCloseClick=function(){_.Zw(this.hostElement,"picker-cancelled");_.dU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.onPickerCancelled=function(){var m=_.VL(this.hostElement).querySelector("#qna-creator-text-input-field");m&&m.setLiveChatRichMessageInput(null)};
_.w.handleOpenQnaStartPanel=function(){var m=_.VL(this.hostElement).querySelector("#qna-creator-text-input-field");m&&m.focus()};
_.w.handleStartButtonAction=function(m){var G=this;if(m.detail.actionName==="yt-service-request"&&(m.stopPropagation(),m=m.detail.args[1])){var K=_.VL(this.hostElement).querySelector("#qna-creator-text-input-field"),W;(K==null?0:(W=K.liveChatRichMessageInput)==null?0:W.textSegments)&&K.liveChatRichMessageInput.textSegments.length!==0&&(W={rich_message:_.ho(K.liveChatRichMessageInput)},_.yQ(this.hostElement,[m,W]).then(function(){_.Zw(G.hostElement,"picker-cancelled")}))}};
_.w.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.w.handleServiceRequestCompleted=function(m){var G;m=m==null?void 0:(G=m.detail)==null?void 0:G.data;(m==null?0:m.actions)&&m.actions.length>0?this.startQnaRequestInFlight=!1:_.dU(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.w.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
hB.prototype.handleServiceRequestError=hB.prototype.handleServiceRequestError;hB.prototype.handleServiceRequestCompleted=hB.prototype.handleServiceRequestCompleted;hB.prototype.handleServiceRequestSent=hB.prototype.handleServiceRequestSent;hB.prototype.onPickerCancelled=hB.prototype.onPickerCancelled;hB.prototype.onCharacterCountChanged=hB.prototype.onCharacterCountChanged;_.x([_.V(),_.S("design:type",Object)],hB.prototype,"characterCount",void 0);
_.x([_.V(),_.S("design:type",Object)],hB.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hB.prototype,"showInputErrorMessage",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hB.prototype,"startQnaRequestInFlight",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hB.prototype,"modern",void 0);_.x([_.V(),_.S("design:type",Object)],hB.prototype,"buttonOverrides",void 0);
_.x([_.V(),_.S("design:type",Object)],hB.prototype,"closeButtonOverrides",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],hB.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.q(_.NR.YtLiveChatItemBehavior),_.S("design:type",_.Df)],hB.prototype,"ytLiveChatItemBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],hB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.XC("yt-live-chat-text-input-field-renderer-character-count-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hB.prototype,"onCharacterCountChanged",null);_.x([_.XC("picker-cancelled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hB.prototype,"onPickerCancelled",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hB.prototype,"handleServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hB.prototype,"handleServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hB.prototype,"handleServiceRequestError",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],hB);
_.y(hB,"yt-live-chat-qna-start-panel-renderer",function(){if(EIO===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;qtG===void 0&&(qtG=document.createElement("template"));var W=qtG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);EIO=m}m=EIO;return m},{mode:0});var jY6;var kW6;var pF=function(){return _.d.apply(this,arguments)||this};
_.n(pF,_.d);pF.prototype.dismiss=function(){_.Zw(this.hostElement,"yt-live-chat-error-message-dismiss")};
pF.prototype.edit=function(){_.Zw(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.x([_.V(),_.S("design:type",Object)],pF.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],pF);
_.y(pF,"yt-live-chat-text-actions-error-message-renderer",function(){if(kW6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;jY6===void 0&&(jY6=document.createElement("template"));var W=jY6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);kW6=m}m=kW6;return m},{mode:0});var CIu;var VKz;var ZqD;var dx6;var JB=function(){var m=_.d.apply(this,arguments)||this;m.isDarkTheme=document.documentElement.hasAttribute("dark");m.newnessDotEligible=!1;return m};
_.n(JB,_.d);JB.prototype.sendReaction=function(){var m,G,K=((m=this.data)==null?void 0:m.emojiId)||((G=this.data)==null?void 0:G.emoteId),W;K&&((W=this.data)==null?0:W.shouldTriggerAnimation)&&_.dU(this.hostElement,"yt-create-user-reaction-animation",[K]);var L;(m=_.c8((L=this.data)==null?void 0:L.onTap))&&_.Xj(m,this.hostElement);this.showNewnessDot&&_.dU(this.hostElement,"yt-hide-newness-dot")};
JB.prototype.onClick=function(m){(!m||m.clientX||m.clientY)&&this.sendReaction()};
JB.prototype.onKeyDown=function(m){m.key!=="Enter"&&m.key!==" "||m.repeat||this.sendReaction()};
_.e_.Object.defineProperties(JB.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!(((m=this.data)==null?0:m.emojiId)||((G=this.data)==null?0:G.emoteId))}}});
_.x([_.V(),_.S("design:type",Object)],JB.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],JB.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],JB.prototype,"newnessDotEligible",void 0);_.x([_.E("data.maybeShowNewnessDot"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],JB.prototype,"showNewnessDot",null);_.x([_.E("data.emojiId","data.emoteId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],JB.prototype,"useYtImage",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],JB);
_.y(JB,"yt-reaction-control-panel-button-view-model",function(){if(dx6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ZqD===void 0&&(ZqD=document.createElement("template"));var W=ZqD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);dx6=m}m=dx6;return m},{mode:0});var PIs;var yL6;var N0=function(){var m=_.d.apply(this,arguments)||this;m.reactionControlPanelExpanded=!1;m.isDarkTheme=document.documentElement.hasAttribute("dark");m.newnessDotEligible=!1;return m};
_.n(N0,_.d);_.w=N0.prototype;_.w.expandedButtonsChanged=function(){var m,G;_.eb(this.hostElement,{"--expanded-buttons-height":((G=(m=this.expandedButtonsData)==null?void 0:m.length)!=null?G:0)*36+"px"})};
_.w.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}}};
_.w.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.w.onMouseLeave=function(){var m=this;this.collapseTimer=setTimeout(function(){m.reactionControlPanelExpanded=!1},500)};
_.w.onFocusIn=function(){this.onMouseEnter()};
_.w.onFocusOut=function(){this.onMouseLeave()};
_.w.onCollapsedButtonFocusIn=function(){var m=this;setTimeout(function(){var G;(G=m.expandedButtons.querySelector("button"))==null||G.focus()},100)};
_.w.onCollapsedButtonFocusOut=function(m){m.stopPropagation()};
_.e_.Object.defineProperties(N0.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var m,G;return _.Y2.unsafeClone((m=this.liveReactionsData)==null?void 0:m.emojiButtonData)||((G=this.data)==null?void 0:G.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var m;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((m=this.data)==null||!m.maybeShowNewnessDot)}}});
N0.prototype.expandedButtonsChanged=N0.prototype.expandedButtonsChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],N0.prototype,"ytLiveChatReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],N0.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],N0.prototype,"reactionControlPanelExpanded",void 0);_.x([_.V({selectorArgs:["data.liveReactionsDataEntityKey"],selector:GzE}),_.S("design:type",Object)],N0.prototype,"liveReactionsData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],N0.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],N0.prototype,"newnessDotEligible",void 0);
_.x([_.E("liveReactionsData","data.expandedButtons"),_.S("design:type",Object),_.S("design:paramtypes",[])],N0.prototype,"expandedButtonsData",null);_.x([_.E("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.V({reflectToAttribute:!0}),_.S("design:type",Object),_.S("design:paramtypes",[])],N0.prototype,"showNewnessDot",null);_.x([_.UM("#expanded-buttons"),_.S("design:type",HTMLElement)],N0.prototype,"expandedButtons",void 0);
_.x([_.Sb("expandedButtonsData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],N0.prototype,"expandedButtonsChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],N0);
_.y(N0,"yt-reaction-control-panel-view-model",function(){if(yL6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;PIs===void 0&&(PIs=document.createElement("template"));var W=PIs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);yL6=m}m=yL6;return m},{mode:0});var Di=new _.bs("yt-live-chat"),et5=Date.parse("2024-7-24"),tB=function(){var m=_.d.apply(this,arguments)||this;m.emojiManager=_.Jx;m.newnessDotEligible=!1;m.newnessDotImpressionCounted=!1;m.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return m};
_.n(tB,_.d);_.w=tB.prototype;_.w.emojiCustomizationEnabledChanged=function(){var m;((m=this.data)==null?0:m.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((m=Di.getCreationTime("emoji-customization-count"))&&m<et5&&Di.set("emoji-customization-count","0"),m=Number(Di.get("emoji-customization-count"))||0,m<3&&(this.newnessDotEligible=!0,Di.set("emoji-customization-count",(m+1).toString())),this.newnessDotImpressionCounted=!0)};
_.w.hideNewnessDot=function(){this.newnessDotEligible=!1;Di.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.w.handleReactionsMute=function(m){var G=_.gU(),K=_.dq(206221),W={checkboxData:{state:m?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};G&&_.nW(G,K,W);this.reactionsMuted=m};
_.w.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.w.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}}};
_.e_.Object.defineProperties(tB.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var m;return(!((m=this.liveReactionsData)==null||!m.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
tB.prototype.liveReactionsSettingChanged=tB.prototype.liveReactionsSettingChanged;tB.prototype.emojiCustomizationEnabledChanged=tB.prototype.emojiCustomizationEnabledChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.gR),_.S("design:type",Object)],tB.prototype,"ytLiveChatReduxBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],tB.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tB.prototype,"data",void 0);_.x([_.V(),_.S("design:type",_.um)],tB.prototype,"emojiManager",void 0);_.x([_.V(),_.S("design:type",Object)],tB.prototype,"newnessDotEligible",void 0);_.x([_.V(),_.S("design:type",Object)],tB.prototype,"newnessDotImpressionCounted",void 0);
_.x([_.V({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:KQ5}),_.S("design:type",Boolean)],tB.prototype,"liveReactionsSetting",void 0);_.x([_.V({selectorArgs:["data.liveReactionsDataEntityKey"],selector:GzE}),_.S("design:type",Object)],tB.prototype,"liveReactionsData",void 0);_.x([_.V({value:function(){var m=_.F("enable_lwe_web_mute"),G=Di.get("allow-reactions");return G===void 0?!1:!G&&m}}),
_.S("design:type",Boolean)],tB.prototype,"reactionsMuted",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],tB.prototype,"liveReactionsEnabled",null);_.x([_.Sb("data.emojiCustomizationEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tB.prototype,"emojiCustomizationEnabledChanged",null);
_.x([_.Sb("liveReactionsEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tB.prototype,"liveReactionsSettingChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],tB);
_.y(tB,"yt-reaction-control-panel-overlay-view-model",function(){if(VKz===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;CIu===void 0&&(CIu=document.createElement("template"));var W=CIu;K.call(G,W.content.cloneNode(!0),m.content.firstChild);VKz=m}m=VKz;return m},{mode:0});var fxE={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(m){var G=this.$.pickers.selected;if(G){_.VL(this.hostElement).removeAttribute(G+"-open");var K="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(K="#picker-buttons",G==="emoji"&&_.VL(this.hostElement).querySelector("#emoji-picker-button")&&(K="#emoji-picker-button"));if(K=_.VL(this.hostElement).querySelector(K).querySelector("#"+G))K.active=!1}K=m;G==m&&(K=null);G!=
m&&_.VL(this.hostElement).setAttribute(m+"-open","");this.$.pickers.selected=K;_.dU(this.hostElement,"yt-live-chat-picker-changed",[K])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Fr=function(){var m=_.d.apply(this,arguments)||this;m.numSentMessages=0;m.timeoutDurationMs=0;m.timeoutMs=0;m.lastTimeoutTimeMs=0;m.pendingMessageId="";m.hasFiredInitialFocusActions=!1;m.isBeforeFocusEnabled=!0;m.id="";m.characterCount=0;m.maxCharacterLimit=0;m.remainingCharacterCount=0;m.inputExpanded=!1;m.buttonOverrides={iconPosition:"icon-only"};m.inReplyPanel=!1;m.countdownRatio=0;m.isTooltipVisible=!1;m.tooltipTimeout=1E4;m.systemIcons=_.F("kevlar_system_icons");m.tallerEmojiPicker=_.F("live_chat_taller_emoji_picker");
m.sendReplyMessageInFlight=!1;m.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"};m.onResize=function(){m.maybeToggleCharacterCount()};
return m};
_.n(Fr,_.d);_.w=Fr.prototype;
_.w.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"}}}};
_.w.attached=function(){window.addEventListener("resize",this.onResize)};
_.w.detached=function(){window.removeEventListener("resize",this.onResize)};
_.w.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.w.sendMessage=function(){var m=this,G,K,W,L;return _.Y(function(A){if(m.sendDisabled)return A.return();m.isTooltipVisible&&_.dU(m.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(m.data.sendButton&&m.data.sendButton.buttonRenderer){m.input.completeEmojis();G=m.data.sendButton.buttonRenderer.serviceEndpoint;if(!G)return A.return();W=((K=_.Q(G,_.jgR))==null?void 0:K.clientIdPrefix)||"";L={client_message_id:W+String(m.numSentMessages++),rich_message:_.ho(m.input.liveChatRichMessageInput)};
m.pendingMessageId=L.client_message_id;m.inReplyPanel&&(m.sendReplyMessageInFlight=!0);_.yQ(m.hostElement,[G,L]);m.input.setLiveChatRichMessageInput(null)}_.ey(A)})};
_.w.handleSendButtonAction=function(m){m.detail.actionName==="yt-service-request"&&(m.stopPropagation(),this.sendMessage())};
_.w.onSendCompleted=function(m,G){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(m=this.get("timeoutDurationUsec",G.data))&&this.handleTimeout(Number(m)/1E3);this.errorMessage=this.get("errorMessage",G.data);this.pendingMessageId=""};
_.w.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.dU(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.w.handlePickerButtonToggle=function(m){m=m.detail.targetId;this.ytPickerBehavior.togglePicker_(m);if(m==="emoji")this.input.focus();else if(m==="qna-start-panel"){var G,K;(G=_.VL(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(K=G.querySelector("#qna-creator-text-input-field"))==null||K.focus()}};
_.w.onComponentReplaced=function(m){var G,K;m.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((G=m.replacement.liveChatMessageInputRenderer)==null?0:(K=G.headerRenderer)==null?0:K.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.w.onEmojiSelect=function(m){this.input.focus();this.input.insertEmoji(m.detail)};
_.w.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.w.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.dU(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.dU(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.w.onOpenPopupAction=function(m,G){var K=this;G===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.dU(K.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.w.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.w.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.w.focusChanged=function(){this.maybeToggleCharacterCount()};
_.w.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var m=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",m>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.w.computeId=function(){return this.data&&this.data.targetId||""};
_.w.computeSendDisabled=function(m,G,K,W){m=!!(!m||G&&m>G||W);(G=_.VL(this.hostElement).querySelector("#send-button"))&&G.children.length&&(G.children[0].disabled=m);return m};
_.w.handleTimeout=function(m){this.timeoutDurationMs=this.timeoutMs=m;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.w.updateTimeout=function(m){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(m-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=m,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.w.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.w.onErrorMessageEdit=function(m){this.input.setLiveChatRichMessageInput(m.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.w.errorMessageChanged=function(){var m=this;_.Dh(function(){_.dU(m.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.w.computeAuthorNameColor=function(m){var G;if(_.F("live_chat_author_name_color_usernames")&&(m==null?0:(G=m.authorName)==null?0:G.simpleText))return _.SlG(_.RN9(m.authorName.simpleText));if(_.F("live_chat_seed_color_usernames")&&(m==null?0:m.authorSeedColorArgb))return _.SlG(_.PL(m.authorSeedColorArgb));if(_.F("live_chat_colored_usernames"))return"#cc0000";var K;return _.F("live_chat_simple_color_usernames")&&(m==null?0:(K=m.authorName)==null?0:K.simpleText)&&(m==null?0:m.authorUsernameColorLight)&&
(m==null?0:m.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.PL(m.authorUsernameColorDark):_.PL(m.authorUsernameColorLight):""};
_.w.onIsTooltipVisibleChanged=function(){var m=_.VL(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){m.hidden=!1;m.setAttribute("role","alert")},0):(m.hidden=!0,m.removeAttribute("role"))};
_.w.onFocusedChanged=function(m){this.inputFocused=m.detail.value};
_.e_.Object.defineProperties(Fr.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 m;return!((m=this.data)==null||!m.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.pickers)==null?void 0:G.find(function(K){return K.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var m=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return m?this.ytRendererBehavior.getSimpleString(m):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Fr.prototype.onIsTooltipVisibleChanged=Fr.prototype.onIsTooltipVisibleChanged;Fr.prototype.errorMessageChanged=Fr.prototype.errorMessageChanged;Fr.prototype.onErrorMessageEdit=Fr.prototype.onErrorMessageEdit;Fr.prototype.onErrorMessageDismiss=Fr.prototype.onErrorMessageDismiss;Fr.prototype.focusChanged=Fr.prototype.focusChanged;Fr.prototype.characterCountChanged=Fr.prototype.characterCountChanged;Fr.prototype.onEmojiSelect=Fr.prototype.onEmojiSelect;Fr.prototype.handlePickerButtonToggle=Fr.prototype.handlePickerButtonToggle;
Fr.prototype.onSendError=Fr.prototype.onSendError;Fr.prototype.onSendCompleted=Fr.prototype.onSendCompleted;Fr.prototype.sendMessage=Fr.prototype.sendMessage;Fr.prototype.dataChanged=Fr.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Fr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Fr.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(fxE.YtPickerBehavior),_.S("design:type",Object)],Fr.prototype,"ytPickerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Fr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OH.YtLiveChatTooltipTargetingBehavior),_.S("design:type",Object)],Fr.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"hasFiredInitialFocusActions",void 0);
_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"isBeforeFocusEnabled",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"data",void 0);_.x([_.V({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.S("design:type",Object)],Fr.prototype,"id",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"characterCount",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"maxCharacterLimit",void 0);
_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"remainingCharacterCount",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Fr.prototype,"inputExpanded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Fr.prototype,"inputFocused",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Fr.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.x([_.V(),_.S("design:type",_.QC)],Fr.prototype,"participantsManager",void 0);
_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"buttonOverrides",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Fr.prototype,"inReplyPanel",void 0);_.x([_.E("characterCount, maxCharacterLimit, countdownActive"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"sendDisabled",null);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"countdownRatio",void 0);
_.x([_.E("countdownRatio"),_.S("design:type",Number),_.S("design:paramtypes",[])],Fr.prototype,"countdownStrokeDashOffset",null);_.x([_.E("countdownRatio"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"countdownActive",null);_.x([_.E("data.interactionMessage"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"hasInteractionMessage",null);
_.x([_.E("data.emojiPickerButton"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"hasEmojiPickerButton",null);_.x([_.E("data, characterCount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"showAvatar",null);_.x([_.E("data.pickers"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Fr.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"errorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"genericErrorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"isTooltipVisible",void 0);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"tooltipTimeout",void 0);_.x([_.E("data.onInitialFocusCommand"),_.S("design:type",String),_.S("design:paramtypes",[])],Fr.prototype,"tooltipMessage",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Fr.prototype,"systemIcons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Fr.prototype,"tallerEmojiPicker",void 0);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Fr.prototype,"authorNameColor",null);_.x([_.V(),_.S("design:type",Object)],Fr.prototype,"sendReplyMessageInFlight",void 0);_.x([_.UM("#input"),_.S("design:type",_.FlS)],Fr.prototype,"input",void 0);
_.x([_.UM("#count"),_.S("design:type",HTMLElement)],Fr.prototype,"count",void 0);_.x([_.UM("#input-container"),_.S("design:type",HTMLElement)],Fr.prototype,"inputContainer",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"dataChanged",null);_.x([_.XC("yt-live-chat-send-message"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],Fr.prototype,"sendMessage",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[Event,_.oL]),_.S("design:returntype")],Fr.prototype,"onSendCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"onSendError",null);
_.x([_.XC("yt-live-chat-icon-toggle-button-renderer-toggle"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fr.prototype,"handlePickerButtonToggle",null);_.x([_.XC("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fr.prototype,"onEmojiSelect",null);
_.x([_.Sb("characterCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"characterCountChanged",null);_.x([_.Sb("inputFocused"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"focusChanged",null);_.x([_.XC("yt-live-chat-error-message-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"onErrorMessageDismiss",null);
_.x([_.XC("yt-live-chat-error-message-edit"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fr.prototype,"onErrorMessageEdit",null);_.x([_.Sb("errorMessage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"errorMessageChanged",null);_.x([_.Sb("isTooltipVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fr.prototype,"onIsTooltipVisibleChanged",null);
_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Fr);
_.y(Fr,"yt-live-chat-message-input-renderer",function(){if(cL6===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Oqq===void 0&&(Oqq=document.createElement("template"));var W=Oqq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);cL6=m}m=cL6;return m},{mode:0});var xxi;var XSE;var Qt=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.firedOnClickCommand=!1;m.inReplyPanel=!1;return m};
_.n(Qt,_.d);
Qt.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"}}}};
Qt.prototype.onButtonToggle=function(m){m.target.disabled||this.ytPickerBehavior.togglePicker_(m.detail.targetId)};
Qt.prototype.onClick=function(){var m=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.dU(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return m.firedOnClickCommand=!1},5E3))};
_.e_.Object.defineProperties(Qt.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.panels)==null?void 0:G.find(function(K){return K.liveChatProductPickerPanelViewModel}))!==void 0}}});
Qt.prototype.onButtonToggle=Qt.prototype.onButtonToggle;_.x([_.q(fxE.YtPickerBehavior),_.S("design:type",Object)],Qt.prototype,"ytPickerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qt.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Qt.prototype,"systemIcons",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Object)],Qt.prototype,"firedOnClickCommand",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Qt.prototype,"inReplyPanel",void 0);_.x([_.E("data.pickers"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Qt.prototype,"hasProductPickerPanelViewModel",null);
_.x([_.XC("yt-live-chat-icon-toggle-button-renderer-toggle"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Qt.prototype,"onButtonToggle",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Qt);
_.y(Qt,"yt-live-chat-restricted-participation-renderer",function(){if(XSE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;xxi===void 0&&(xxi=document.createElement("template"));var W=xxi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);XSE=m}m=XSE;return m},{mode:0});var aA=function(){var m=_.d.apply(this,arguments)||this;m.genericErrorMessage=_.nG("Error, try again.");m.inReplyPanel=!1;m.hideBorder=!1;return m};
_.n(aA,_.d);aA.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}}}}}};
_.e_.Object.defineProperties(aA,{template:{configurable:!0,enumerable:!0,get:function(){return GWG()}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],aA.prototype,"genericErrorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],aA.prototype,"inReplyPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],aA.prototype,"hideBorder",void 0);
_.x([_.cL({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],aA);_.y(aA,"yt-live-chat-engagement-panel-input-renderer",function(){return GWG()},{mode:0});var St6;var RtE;var Uxi=new _.bs("yt-live-chat"),ztq=new Map;ztq.set("timestamp_toggle","show-timestamps");ztq.set("reactions_toggle","allow-reactions");var oA=function(){return _.d.apply(this,arguments)||this};
_.n(oA,_.d);_.w=oA.prototype;_.w.menuItemIdentifierChanged=function(){var m;(m=this.data)!=null&&m.menuItemIdentifier&&(m=ztq.get(this.data.menuItemIdentifier))&&(_.F("enable_lwe_web_mute")?(m=Uxi.get(m),this.isToggled=!(m===void 0?!this.data.isToggled:!m)):this.isToggled=Uxi.get(m))};
_.w.onFocus=function(){this.toggleButton.focus()};
_.w.onTap=function(){var m=this.data.command;m&&this.componentBehavior.resolveCommand(m)};
_.w.computeText=function(m,G,K){return this.componentBehavior.getSimpleString(m?K:G)};
_.w.computeIcon=function(m,G,K){return(m=m?K:G)&&m.iconType?_.ew(m.iconType):""};
oA.prototype.onTap=oA.prototype.onTap;oA.prototype.onFocus=oA.prototype.onFocus;oA.prototype.menuItemIdentifierChanged=oA.prototype.menuItemIdentifierChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],oA.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oA.prototype,"data",void 0);
_.x([_.V({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.S("design:type",String)],oA.prototype,"icon",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],oA.prototype,"isToggled",void 0);_.x([_.UM("tp-yt-paper-toggle-button"),_.S("design:type",Object)],oA.prototype,"toggleButton",void 0);_.x([_.Sb("data.menuItemIdentifier"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oA.prototype,"menuItemIdentifierChanged",null);
_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oA.prototype,"onFocus",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oA.prototype,"onTap",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],oA);
_.y(oA,"yt-live-chat-toggle-renderer",function(){if(RtE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;St6===void 0&&(St6=document.createElement("template"));var W=St6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);RtE=m}m=RtE;return m},{mode:0});var lxi=new _.sX("NAVIGATION_PROGRESS_TOKEN");var BQO={},MKi={},TQ6=(MKi[y8O.name]=!0,MKi),nF=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;m.tabGesturesIsActive=!1;m.actionRouterIsRoot=!0;m.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"};m.pageTitle="";m.titleSuffix="YouTube";m.unseenNotificationCount=
0;m.hasNavigated=!1;m.hasSetScrollTopForNavigation=!1;m.pagePreparer=null;m.zwiebackInitJobId=0;m.dataUpdatePromise=null;m.loadDepsPromise=_.fJ();m.hasPendingNavigation=!1;m.pendingPlayerOnResponseReceivedActions=[];return m};
_.n(nF,_.l0);nF.prototype.attached=function(){m4u(this);document.addEventListener("yt-navigate-cache",_.xC(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var m=bV();m.init();m.dispatchElement=this.hostElement};
var m4u=function(m,G){G=G===void 0?0:G;var K=_.xS().resolve(_.fn(_.eG));if(K)ie6(m,K);else{if(G>=5)throw Error("vl");setTimeout(function(){m4u(m,G+1)},0)}},ie6=function(m,G){G.addEventListener("yt-navigate-start",_.xC(m,m.onYtNavigateStart));
G.addEventListener("yt-navigate-finish",_.xC(m,m.onYtNavigateFinish));G.addEventListener("yt-navigate-error",_.xC(m,m.onYtNavigateError));G.addEventListener("yt-page-data-fetched",_.xC(m,m.onYtPageDataFetched))};
_.w=nF.prototype;_.w.detached=function(){var m=_.xS().resolve(_.eG);m.removeEventListener("yt-navigate-start",_.xC(this,this.onYtNavigateStart));m.removeEventListener("yt-navigate-finish",_.xC(this,this.onYtNavigateFinish));m.removeEventListener("yt-navigate-error",_.xC(this,this.onYtNavigateError));m.removeEventListener("yt-page-data-fetched",_.xC(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.xC(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.w.setPageOffset=function(m,G){m?_.dU(this.hostElement,"yt-set-page-offset",[m,G]):_.am(Error("wl"))};
_.w.setPageOffsetForNavigation=function(m,G){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(m,G))};
_.w.onYtNavigateSetPageOffset=function(m,G){this.setPageOffsetForNavigation(G.page,G.offset)};
_.w.getPageOffset=function(){var m=_.VL(this.hostElement).querySelector("#page-manager").getCurrentPage(),G=0;m&&(G=_.dU(this.hostElement,"yt-get-page-offset",[m])[0]);return G};
_.w.onYtHistoryPop=function(m,G){if(_.IP("DISABLE_WARM_LOADS"))m.preventDefault(),window.location.reload();else{var K=_.xS().resolve(_.eG);K.hasPendingNavigation()&&m.preventDefault();K.cancelPendingNavigation();_.PH(this.hostElement,"yt-pending-navigation-cancelled");G.errorMsg&&(m=G.errorMsg.split(" - "),G=Error(m[0]),m.length==2&&m[1]&&(_.bO(G,m[1]),_.nc(G)),window.location.reload())}};
_.w.onYtHistoryLoad=function(m,G){var K=this;if(_.IP("DISABLE_WARM_LOADS"))window.location.reload();else{(m=G.endpoint)&&Object.keys(m).length||(m=null);var W=G.historyEntry,L=_.xS().resolve(_.eG),A=_.xS().resolve(_.$g),O=null;W&&W.rootData&&(O=W.rootData);var c=O&&GTD(O);!O||c||O.filler?m?(L.navigate(m,!0),KA6(this,m)):(G.legacyBorder||c||(G.JSC$31224_savedComponentState==null&&O==null?_.nc(new _.cw("Incomplete history entry",G.forward)):_.om(new _.cw("Malformed history entry",G.JSC$31224_savedComponentState,
G.forward,O))),window.location.reload()):(_.ebd({isHot:!0}),_.g9({webInfo:{navigationReason:"h"}}),_.q_G(),_.Yt("srt"),_.Yt("pdc"),this.cancelPendingTasks(),WAG(this,G.forward,O),O.player&&(O.player.loaded=!1),KA6(this,m),_.TJ4(L,m||{},O,2,{},!1,G).then(function(){K.setPageOffset(A.getCurrentPage(),W.scrollTop||0)}))}};
_.w.initHistoryManager=function(m){if(!this.hasNavigated){this.hasNavigated=!0;var G=_.VL(this.hostElement).querySelector("#page-manager").getCurrentData();m=isNaN(m)?this.getPageOffset():m;var K=_.xS().resolve(_.eG).currentEndpoint;this.replaceState(K,G,m)}};
_.w.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.w.onYtNavigateStart=function(m,G){this.cancelPendingTasks();G.noProgressBar||(m=_.xS().resolve(_.fn(lxi)))&&m.start();m=this.hasPendingNavigation?null:this.data;var K=_.xS().resolve(_.$g),W,L,A;_.F("kevlar_use_vimio_behavior")&&!((W=G.endpoint)==null?0:(L=W.commandMetadata)==null?0:(A=L.webCommandMetadata)==null?0:A.ignoreNavigation)&&(W=K.getCurrentPage())&&W.disconnectVisibilityRoot();K.prepareForNavigation(G.pageType,G.endpoint);_.F("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.bp(1,
"pcl"),_.vq(this.pagePreparer,K.preparePage.bind(K,G.pageType,G.endpoint)));W=this.getPageOffset();this.initHistoryManager(W);G.reload||this.hasPendingNavigation?(G.pageType==="shorts"&&G.reload&&_.Zw(this.hostElement,"yt-shorts-reset"),this.replaceState(G.endpoint,m,W)):(m==null?void 0:m.page)==="watch"&&G.pageType==="watch"&&_.F("kevlar_replace_watch_to_watch_history_state")?this.replaceState(G.endpoint,m,W):(m==null?void 0:m.page)!=="shorts"||G.pageType!=="shorts"||G.endpoint.reelWatchEndpoint.sequenceParams||
_.F("short_to_short_back_nav_killswitch")?G.type!="navigate-back"&&G.type!="navigate-forward"&&(G.pageType==="shorts"&&_.Zw(this.hostElement,"yt-shorts-reset"),this.saveAndPush(G.url,G.endpoint,m,W)):this.replaceState(G.endpoint,m,0);this.hasPendingNavigation=!0};
var LAu=function(m){m.hasPendingNavigation=!1;(m=_.xS().resolve(_.fn(lxi)))&&m.finish()};
nF.prototype.onYtNavigateError=function(m,G){LAu(this);m=this.get("endpoint.commandMetadata.webCommandMetadata.url",G);var K=_.PO(window.location.href);m&&!K.pbjreload&&(G=G.navigationErrorReason||"10",_.F("kevlar_parent_on_pbjreload")&&(K={csn:_.gU()},this.get("data.endpoint.clickTrackingParams")&&(K.itct=this.data.endpoint.clickTrackingParams),_.nJ(m,K)),_.pr(_.y3(m,{pbjreload:G})))};
nF.prototype.onYtNavigateCache=function(m,G){var K=this,W=G.url,L=G.endpoint,A=G.data;m=!!G.miniplayer;G=!!G.skipHistory;if(W&&L&&A){var O=this.getPageOffset(),c=this.data||null;G||this.saveAndPush(W,L,c,O);W=_.TJ4(_.xS().resolve(_.eG),L,A,m?4:3,{},m);m&&W.then(function(){K.dataUpdatePromise&&K.dataUpdatePromise.then(function(){var u=_.xS().resolve(_.$g);K.setPageOffset(u.getCurrentPage(),0)})})}};
nF.prototype.onYtNavigateFinish=function(m,G){var K=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){Ayu(K,G.fromHistory)})};
var Ayu=function(m,G){LAu(m);if(m.pendingPlayerOnResponseReceivedActions){for(var K=_.g(m.pendingPlayerOnResponseReceivedActions),W=K.next();!W.done;W=K.next())_.Xj(W.value,m.hostElement);m.pendingPlayerOnResponseReceivedActions=[]}K=_.xS().resolve(_.$g);G||!m.hasNavigated||_.F("web_disable_scroll_on_navigate_finish")||((G=K.getCurrentPage())?G.is==="ytd-shorts"||m.tabGesturesIsActive||m.setPageOffsetForNavigation(G,0):_.nc(Error("xl")));_.Dh(function(){_.Dh(function(){_.Yt("pda")})})};
nF.prototype.onYtNavigate=function(m){if(!m.detail.endpoint){var G=new _.cw("Error: Missing yt-navigate endpoint from target:",m.target,m.target.nodeName);_.am(G)}if(G=_.F("cold_missing_history"))G=bV(),G.init(!1),G=!(G.browserHistory.boundHistoryReplaceState&&G.browserHistory.boundHistoryPushState);if(G){_.qC("DISABLE_WARM_LOADS",!0);G=new _.cw("Failed to initialize history manager",this.getDebugString());var K=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
K?_.nc(G):_.am(G)}G=m.detail.endpoint;var W,L;_.F("debug_forward_web_query_parameters")&&((W=G.commandMetadata)==null?0:(L=W.webCommandMetadata)==null?0:L.url)&&(G=JSON.parse(JSON.stringify(G)),G.commandMetadata.webCommandMetadata.url=_.dcs(G.commandMetadata.webCommandMetadata.url,window.location.search));m={type:0,command:G,form:{params:m.detail.params,tempData:m.detail.tempData||{},requestType:m.detail.type,createScreenConfig:m.detail.createScreenConfig,reload:m.detail.reload?m.detail.reload:!1,
requestForm:m.detail}};_.F("kevlar_yt_navigate_command_handler")?(W=_.xS().resolve(_.S1),m.form.skipDefaultElement=!0,W.resolveCommand(G,{form:m.form})):this.handleNavigate(m)};
nF.prototype.handleNavigate=function(m){this.hasSetScrollTopForNavigation=!1;var G=_.xS().resolve(_.eG),K=m.form||{};G.navigate(m.command,K.reload,K.params,K.tempData,K.requestType,K.createScreenConfig,K.ignoreConfirmation,K.requestForm)&&KA6(this,m.command,K.tempData)};
nF.prototype.onYtPageDataFetched=function(m,G){try{_.etk().reset();this.data=G.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.xS().resolve(_.$g).updatePageData(this.data);var K=this.get("playerResponse.onResponseReceivedActions",this.data);K&&(K=wD6(this,K));K&&_.eD(this.hostElement,K,this.hostElement);var W=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),L=this.get("response.responseContext.consistencyTokenJar",this.data);if(W||L){var A=_.RUV(),O=(0,_.Y2.getValues)(A.tokenJars);W&&A.replace(O,W);L&&A.replace(O,L)}}catch(c){_.am(c)}};
var KA6=function(m,G,K){try{m.onYtEndpointChangeHandler(G,K)}catch(W){_.am(W)}};
_.w=nF.prototype;_.w.onYtEndpointChangeHandler=function(){};
_.w.setPageTitle=function(m){m=(this.pageTitle=m)?m+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+m};
_.w.onYtUpdateTitle=function(m,G){this.setPageTitle(G)};
_.w.setUnseenNotificationCount=function(m){this.unseenNotificationCount=m;this.setPageTitle(this.pageTitle)};
_.w.handleUpdateNotificationsUnseenCountAction=function(m){_.Q(m,rG5)&&((m=_.Q(m,rG5).unseenCount)?this.setUnseenNotificationCount(m):this.setUnseenNotificationCount(0))};
_.w.handleClearCookieAction=function(m){var G;(m=(G=_.Q(m,AGE))==null?void 0:G.cookieName)&&_.WdV(m)};
_.w.onYtUpdateUnseenNotificationCount=function(m,G){this.setUnseenNotificationCount(G)};
_.w.loadData=function(m){var G=this;this.loadDepsPromise.then(function(){var K=_.xS().resolve(_.fn(_.eG));K||_.am(Error("yl"));if(m&&m.response){if(!m.endpoint){var W=_.XJ(window.document.location.href)||"/",L="";if(W==="/"||W.startsWith("/?"))L="WEB_PAGE_TYPE_BROWSE";m.endpoint={commandMetadata:{webCommandMetadata:{url:W,webPageType:L,rootVe:3854}}}}_.TJ4(K,m.endpoint,m,5,{})}else m.endpoint?K.navigate(m.endpoint):K.navigate(_.lu);_.Fu.cancelJob(G.zwiebackInitJobId);G.zwiebackInitJobId=_.Fu.addLowPriorityJob(MA6)})};
var bV=function(){return _.xS().resolve(_.SB)};
nF.prototype.getDebugString=function(){return bV().getDebugString()};
nF.prototype.getThirdPartyManipulationSuspected=function(){return bV().getThirdPartyManipulationSuspected()};
nF.prototype.replaceState=function(m,G,K){bV().saveAndReplace(m,G,K)};
nF.prototype.saveAndPush=function(m,G,K,W){bV().saveAndPush(m,G,K,W)};
var GTD=function(m){return _.Q(m.endpoint,_.QQ)||_.Q(m.endpoint,_.lw)?!0:!m||isNaN(m.expirationTime)?!1:(0,_.xD)()>m.expirationTime},WAG=function(m,G,K){var W=m.get("response.trackingParams",K),L=_.wU(),A=_.gU();
if(W&&L&&A&&(W=m.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",K),!W&&K.rootVe&&(W=K.rootVe),L=G?"forwardButton":"backButton",G=m.get("playerResponse.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",m.data),m=m.get("response.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",m.data),G=(m=G||m)?_.m5(m):void 0,m=_.l1(),L=[_.fJ(K)],_.PB(m,W,G,{dataPromises:L,csnToClone:K.csn}),K.graftedVes))for(K=
_.g(K.graftedVes),W=K.next();!W.done;W=K.next())_.yw(m,W.value)};
nF.prototype.onStoreGraftedVeAction=function(m){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(m)):_.nc(Error("zl"))};
var wD6=function(m,G){return G.filter(function(K){for(var W in K)if(TQ6[W])return m.pendingPlayerOnResponseReceivedActions.push(K),!0;return!1})};
_.e_.Object.defineProperties(nF.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
nF.prototype.onStoreGraftedVeAction=nF.prototype.onStoreGraftedVeAction;nF.prototype.loadData=nF.prototype.loadData;nF.prototype.onYtUpdateUnseenNotificationCount=nF.prototype.onYtUpdateUnseenNotificationCount;nF.prototype.handleClearCookieAction=nF.prototype.handleClearCookieAction;nF.prototype.handleUpdateNotificationsUnseenCountAction=nF.prototype.handleUpdateNotificationsUnseenCountAction;nF.prototype.setUnseenNotificationCount=nF.prototype.setUnseenNotificationCount;
nF.prototype.onYtUpdateTitle=nF.prototype.onYtUpdateTitle;nF.prototype.setPageTitle=nF.prototype.setPageTitle;nF.prototype.onYtEndpointChangeHandler=nF.prototype.onYtEndpointChangeHandler;nF.prototype.onYtPageDataFetched=nF.prototype.onYtPageDataFetched;nF.prototype.handleNavigate=nF.prototype.handleNavigate;nF.prototype.onYtNavigate=nF.prototype.onYtNavigate;nF.prototype.onYtNavigateFinish=nF.prototype.onYtNavigateFinish;nF.prototype.onYtNavigateCache=nF.prototype.onYtNavigateCache;
nF.prototype.onYtNavigateError=nF.prototype.onYtNavigateError;nF.prototype.onYtNavigateStart=nF.prototype.onYtNavigateStart;nF.prototype.cancelPendingTasks=nF.prototype.cancelPendingTasks;nF.prototype.initHistoryManager=nF.prototype.initHistoryManager;nF.prototype.onYtHistoryLoad=nF.prototype.onYtHistoryLoad;nF.prototype.onYtHistoryPop=nF.prototype.onYtHistoryPop;nF.prototype.onYtNavigateSetPageOffset=nF.prototype.onYtNavigateSetPageOffset;nF.prototype.setPageOffset=nF.prototype.setPageOffset;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],nF.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nF.prototype,"data",void 0);_.x([_.XC("yt-navigate-set-page-offset"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],nF.prototype,"onYtNavigateSetPageOffset",null);
_.x([_.XC("yt-history-pop"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],nF.prototype,"onYtHistoryPop",null);_.x([_.XC("yt-history-load"),_.S("design:type",Function),_.S("design:paramtypes",[Event,_.pKK]),_.S("design:returntype")],nF.prototype,"onYtHistoryLoad",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],nF.prototype,"onYtNavigate",null);
_.x([_.XC("yt-update-title"),_.S("design:type",Function),_.S("design:paramtypes",[Event,String]),_.S("design:returntype")],nF.prototype,"onYtUpdateTitle",null);_.x([_.XC("yt-update-unseen-notification-count"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Number]),_.S("design:returntype")],nF.prototype,"onYtUpdateUnseenNotificationCount",null);_.x([_.Be()],nF);BQO.YtdAppBehavior=[_.Pq.YtActionHandlerBehavior,nF.prototype];var vn=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;m.scrollRate=3;m.autoScrollAnimationStart=0;m.autoScrollPaused=!1;m.autoScrollRafId=0;return m};
_.n(vn,_.l0);_.w=vn.prototype;_.w.created=function(){var m=this;this.boundAutoScrollHandler=function(G){m.autoScroll(G)}};
_.w.detached=function(){this.hostElement.removeEventListener("mouseout",_.xC(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.xC(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.xC(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.w.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.xC(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.xC(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.xC(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.xC(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.xC(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.xC(this,this.endAutoScroll)),this.endAutoScroll())};
_.w.autoScroll=function(m){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=m);var G;if(G=!this.autoScrollPaused&&this.scrollTarget)G=this.scrollTarget,G=G.scrollHeight-G.scrollTop!==G.clientHeight;G&&(G=1E3/this.scrollRate,m-=this.autoScrollAnimationStart,m>G&&(this.scrollTarget.scrollTop+=Math.ceil(m/G),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.w.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.w.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
vn.prototype.autoScrollEnabledChanged=vn.prototype.autoScrollEnabledChanged;_.x([_.V(),_.S("design:type",Object)],vn.prototype,"scrollRate",void 0);_.x([_.V(),_.S("design:type",Object)],vn.prototype,"scrollTarget",void 0);_.x([_.V(),_.S("design:type",Boolean)],vn.prototype,"autoScrollEnabled",void 0);_.x([_.Sb("autoScrollEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],vn.prototype,"autoScrollEnabledChanged",null);_.x([_.Be()],vn);var gHP=[vn.prototype];var $d=function(){var m=_.l0.apply(this,arguments)||this;m._noAccessors=!0;return m};
_.n($d,_.l0);$d.prototype.ready=function(){var m=this;_.VL(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){m.onChange_()})};
$d.prototype.dataChanged_=function(){_.VL(this.hostElement).querySelector("#checkbox").checked=!1};
$d.prototype.onChange_=function(){var m=_.VL(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Zw(this.hostElement,"yt-dismissal-reason-"+m,this.data.feedbackToken)};
$d.prototype.dataChanged_=$d.prototype.dataChanged_;_.x([_.V(),_.S("design:type",Object)],$d.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$d.prototype,"dataChanged_",null);_.x([_.Be()],$d);var Oe6=[$d.prototype];var sz=function(){var m=_.l0.apply(this,arguments)||this;m.showInput=!1;return m};
_.n(sz,_.l0);_.w=sz.prototype;_.w.detached=function(){this.showInput&&window.removeEventListener("click",_.xC(this,this.closeOnOutsideClick_))};
_.w.stopPropagation_=function(m){this.showInput&&m.stopPropagation()};
_.w.closeOnOutsideClick_=function(m){this.closeOnOutsideClickCondition(m)&&(this.showInput=!1,window.removeEventListener("click",_.xC(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.w.closeOnOutsideClickCondition=function(){return!0};
_.w.closeOnOutsideClickHandler=function(){};
_.w.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.xC(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.w.openOnClickHandler=function(){};
_.w.showInputChanged=function(){};
_.w.setShowInput=function(m){this.showInput=m};
sz.prototype.setShowInput=sz.prototype.setShowInput;sz.prototype.showInputChanged=sz.prototype.showInputChanged;sz.prototype.openOnClickHandler=sz.prototype.openOnClickHandler;sz.prototype.openOnClick_=sz.prototype.openOnClick_;sz.prototype.closeOnOutsideClickHandler=sz.prototype.closeOnOutsideClickHandler;sz.prototype.closeOnOutsideClickCondition=sz.prototype.closeOnOutsideClickCondition;sz.prototype.closeOnOutsideClick_=sz.prototype.closeOnOutsideClick_;sz.prototype.stopPropagation_=sz.prototype.stopPropagation_;
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],sz.prototype,"showInput",void 0);_.x([_.XC("click"),_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],sz.prototype,"stopPropagation_",null);_.x([_.Sb("showInput"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],sz.prototype,"showInputChanged",null);_.x([_.Be()],sz);var cyu=[sz.prototype];var q0=function(){var m=_.l0.apply(this,arguments)||this;m.timeoutJobId=0;m.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return m};
_.n(q0,_.l0);q0.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
q0.prototype.startTimeout=function(){var m=this,G=this.data&&this.data.displayDurationSeconds;G&&!this.timeoutJobId&&(this.timeoutJobId=_.rC(_.Fu,function(){_.dU(m.hostElement,"yt-close-popup-action",[m.is]);m.timeoutJobId=0},G*1E3))};
q0.prototype.cancelTimeout=function(){_.Fu.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
q0.prototype.ytdHatsSurveyBehaviorDataChanged=q0.prototype.ytdHatsSurveyBehaviorDataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],q0.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.x([_.Be()],q0);var Yju=[_.Pq.YtActionHandlerBehavior,q0.prototype];var rys=_.dq(115994),udu=_.dq(115993),hsO=function(m,G,K){var W=this;var L=K.dragDownAction;this.layer=0;this.JSC$20388_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return W.dragDownAction()}}}};
this.JSC$20388_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return W.dragDownAction()}}}};
this.fullscreen=!1;var A=_.l1();_.eM(A,rys,this.layer);_.eM(A,udu,this.layer);this.dragDownAction=function(){L();_.Jo(A,{visualElement:W.fullscreen?rys:udu})};
this.gesture=new R6(m,G,this.getConfig(!1),"pandown");this.attach()};
hsO.prototype.attach=function(){this.gesture.attach()};
hsO.prototype.detach=function(){this.gesture.detach()};
hsO.prototype.update=function(m){this.fullscreen=m;var G=this.gesture;m=this.getConfig(m);G.config=m};
hsO.prototype.getConfig=function(m){return m?this.JSC$20388_watchFullScreenConfig:this.JSC$20388_watchConfig};var pDi;var Jy6;var Ez=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return m};
_.n(Ez,_.d);Ez.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var m=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(m=this.data.percentIfLiked||0,this.activated=!0):(m=this.data.percentIfIndifferent||0,this.activated=!1);_.VL(this.hostElement).querySelector("#like-bar").style.width=m+"%"}};
Ez.prototype.handleUpdateSentimentBarStateCommand=function(m){this.data&&this.set("data.likeStatus",_.Q(m,bfq).likeStatus)};
Ez.prototype.observeLikeStatus=Ez.prototype.observeLikeStatus;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ez.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ez.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ez.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ez.prototype,"activated",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ez.prototype,"systemIcons",void 0);_.x([_.Sb("data.likeStatus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ez.prototype,"observeLikeStatus",null);_.x([_.Ye({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Ez);
_.y(Ez,"ytd-sentiment-bar-renderer",function(){if(Jy6!==void 0)return Jy6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Jy6=m},{mode:1});var NXE;var Hn=function(){var m=_.d.apply(this,arguments)||this;m.small=!0;return m};
_.n(Hn,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Hn.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hn.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Hn.prototype,"small",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Hn);
_.y(Hn,"ytd-video-view-count-renderer",function(){if(NXE!==void 0)return NXE;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return NXE=m},{mode:2});var IA=function(){var m=_.d.apply(this,arguments)||this;m.infoFormattedStrings=[];m.wrapVideoActions=_.F("kevar_watch_wrap_video_actions");m.hideSentimentBar=_.F("kevlar_watch_hide_sentiment_bar");m.actionMap={};return m};
_.n(IA,_.d);_.w=IA.prototype;_.w.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.F("web_modern_buttons"),forceIconButton:!_.F("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.w.dataChanged=function(){_.F("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.w.computeInfoFormattedStrings=function(m){if(!m)return[];var G=[];m.dateText&&G.push(m.dateText);m.stationName&&G.push(m.stationName);m.rating&&G.push(m.rating);m.startEndTimeTemplate&&m.startTimeUtcMillis&&m.endTimeUtcMillis&&G.push(_.nG(FQG(_.bw(m.startEndTimeTemplate),Number(m.startTimeUtcMillis),Number(m.endTimeUtcMillis))));m.upNextProgramText&&G.push(m.upNextProgramText);return G};
_.w.scheduleInitialUpdatedMetadataRequest=function(){var m,G=(m=this.data)==null?void 0:m.updatedMetadataEndpoint;if(G){var K;m=Number((K=_.Q(G,_.WsC))==null?void 0:K.initialDelayMs);K=isNaN(m)?250:m;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),K)}};
_.w.setSentimentBarWidth=function(){var m=this;_.Pv(this,function(){var G=_.VL(m.hostElement).querySelector("ytd-menu-renderer");if(G){G=G.topLevelButtons;for(var K=0,W=0;W<G.length;W++){var L=G[W],A=m.get("toggleButtonSupportedData.toggleButtonIdData.id",L.data);if(A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||A==="TOGGLE_BUTTON_ID_TYPE_LIKE")K+=L.clientWidth+8;else break}K&&(m.sentiment.style.width=K-8+" px")}})};
_.w.fetchUpdatedMetadata=function(m){var G;m&&(G={continuation:m});var K;(m=(K=this.data)==null?void 0:K.updatedMetadataEndpoint)&&_.xS().resolve(_.S1).resolveCommand(m,{form:Object.assign({},G,{element:this.hostElement})})};
_.w.onYtServiceRequestSent=function(m,G){G.endpoint&&_.Q(G.endpoint,_.KK)&&(this.hasUpdateSentimentBarStateCommands()&&!_.F("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Q(G.endpoint,_.KK).status),this.setSentimentBarWidth())};
_.w.hasUpdateSentimentBarStateCommands=function(){var m,G,K,W,L=(W=(m=this.data)==null?void 0:(G=m.videoActions)==null?void 0:(K=G.menuRenderer)==null?void 0:K.topLevelButtons)!=null?W:[];m=_.g(L);for(G=m.next();!G.done;G=m.next()){G=G.value;L=W=K=void 0;var A=(K=G.toggleButtonRenderer)==null?void 0:(W=K.toggleButtonSupportedData)==null?void 0:(L=W.toggleButtonIdData)==null?void 0:L.id;if(A==="TOGGLE_BUTTON_ID_TYPE_LIKE"||A==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){W=K=void 0;G=(W=_.Q((K=G.toggleButtonRenderer)==
null?void 0:K.defaultServiceEndpoint,_.xu))==null?void 0:W.commands;if(!G)break;G=_.g(G);for(K=G.next();!K.done;K=G.next())if(_.Q(K.value,bfq))return!0}}return!1};
_.w.onYtServiceRequestCompleted=function(m,G){var K;(m=(K=G.data)==null?void 0:K.loggingDirectives)&&_.iXv(_.l1(),m);this.get("continuation.timedContinuationData",G.data)&&this.data&&this.data.updatedMetadataEndpoint&&(G=G.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,G.continuation),G.timeoutMs))};
_.w.computeHasDateText=function(m){return!!m&&!!m.dateText};
_.e_.Object.defineProperties(IA.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return!((W=(m=this.data)==null?void 0:(G=m.videoActions)==null?void 0:(K=G.menuRenderer)==null?void 0:K.flexibleItems)==null||!W.length)}}});
IA.prototype.onYtServiceRequestCompleted=IA.prototype.onYtServiceRequestCompleted;IA.prototype.onYtServiceRequestSent=IA.prototype.onYtServiceRequestSent;IA.prototype.dataChanged=IA.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],IA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.oE.YtTaskEmitterBehavior),_.S("design:type",Object)],IA.prototype,"ytTaskEmitterBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],IA.prototype,"data",void 0);_.x([_.V({computed:"computeInfoFormattedStrings(data)"}),_.S("design:type",Array)],IA.prototype,"infoFormattedStrings",void 0);
_.x([_.V({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],IA.prototype,"hasDateText",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],IA.prototype,"wrapVideoActions",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],IA.prototype,"hideSentimentBar",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],IA.prototype,"flexMenuEnabled",null);
_.x([_.UM("#sentiment"),_.S("design:type",Object)],IA.prototype,"sentiment",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IA.prototype,"dataChanged",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],IA.prototype,"onYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],IA.prototype,"onYtServiceRequestCompleted",null);
_.y(IA,"ytd-video-primary-info-renderer",function(){if(pDi===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);pDi=m}m=pDi;return m},{mode:1});var D4D;var tYD;var j3=function(){return _.d.apply(this,arguments)||this};
_.n(j3,_.d);j3.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
j3.prototype.onTap=function(m){var G=this.data&&this.data.endpoint;G&&!_.b_(_.ve(m),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:G})};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],j3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],j3);
_.y(j3,"ytd-autotagging-metadata-renderer",function(){if(tYD!==void 0)return tYD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return tYD=m},{mode:1});var FAO;var kd=function(){return _.d.apply(this,arguments)||this};
_.n(kd,_.d);kd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kd.prototype,"data",void 0);_.x([_.Ye({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],kd);
_.y(kd,"ytd-autotagging-metadata-row-renderer",function(){if(FAO!==void 0)return FAO;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return FAO=m},{mode:1});var QDD;var avu;var CF=function(){var m=_.d.apply(this,arguments)||this;m.engagementPanelContent=!1;return m};
_.n(CF,_.d);CF.prototype.computeHasDividerLine=function(m,G){return m&&!G};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],CF.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.S("design:type",Boolean)],CF.prototype,"hasDividerLine",void 0);_.x([_.V(),_.S("design:type",Object)],CF.prototype,"engagementPanelContent",void 0);
_.x([_.Ye({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],CF);
_.y(CF,"ytd-metadata-row-header-renderer",function(){if(avu!==void 0)return avu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return avu=m},{mode:1});var oHu;var Vt=function(){return _.d.apply(this,arguments)||this};
_.n(Vt,_.d);Vt.prototype.computeHasDividerLine=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Vt.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.S("design:type",Boolean)],Vt.prototype,"hasDividerLine",void 0);_.x([_.Ye({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Vt);
_.y(Vt,"ytd-metadata-row-renderer",function(){if(oHu!==void 0)return oHu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return oHu=m},{mode:1});var nHq;var bez=function(){return _.d.apply(this,arguments)||this};
_.n(bez,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bez.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bez.prototype,"data",void 0);_.x([_.Ye({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],bez);
_.y(bez,"ytd-metadata-with-image-row-renderer",function(){if(nHq!==void 0)return nHq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return nHq=m},{mode:1});var vHG;var Zi=function(){var m=_.d.apply(this,arguments)||this;m.rounded=!0;m.fixie=!1;m.fullWidth=!1;return m};
_.n(Zi,_.d);_.w=Zi.prototype;_.w.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.onDataChanged=function(){var m=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(G){m.onEndpointLinkKeyPress(G)}))};
_.w.onEndpointLinkKeyPress=function(m){m.target===this.endpointLink&&m.keyCode===13&&_.Zw(this.hostElement,"click")};
_.w.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var m;if((m=this.data)==null?0:m.endpoint)_.eD(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.w.onYtNavigate=function(m){this.endpointHref||(m.stopPropagation(),m.preventDefault())};
_.w.onInformationButtonContainerClick=function(m){m.target.id!=="information-button-container"&&(m.stopPropagation(),m.preventDefault())};
_.w.computeStyle=function(m){return m};
_.w.computeIsThumbnailStyle=function(m){return m==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.w.computeThumbnailWidth=function(m){switch(m){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}};
_.w.computeThumbnailObjectFit=function(m){switch(m){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.e_.Object.defineProperties(Zi.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?0:m.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Zi.prototype.onYtNavigate=Zi.prototype.onYtNavigate;Zi.prototype.onClick=Zi.prototype.onClick;Zi.prototype.onDataChanged=Zi.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Zi.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Zi.prototype,"componentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Zi.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Zi.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],Zi.prototype,"componentStyle",void 0);_.x([_.V({computed:"computeIsThumbnailStyle(data.style)"}),_.S("design:type",Boolean)],Zi.prototype,"isThumbnailStyle",void 0);_.x([_.V({computed:"computeThumbnailObjectFit(data.style)"}),_.S("design:type",String)],Zi.prototype,"thumbnailObjectFit",void 0);
_.x([_.V({computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],Zi.prototype,"thumbnailWidth",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Zi.prototype,"rounded",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Zi.prototype,"fixie",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Zi.prototype,"fullWidth",void 0);_.x([_.UM("#endpoint-link"),_.S("design:type",HTMLAnchorElement)],Zi.prototype,"endpointLink",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Zi.prototype,"onDataChanged",null);_.x([_.E("data.endpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zi.prototype,"endpointHref",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Zi.prototype,"onClick",null);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Zi.prototype,"onYtNavigate",null);_.x([_.Ye({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Zi);
_.y(Zi,"ytd-rich-metadata-renderer",function(){if(vHG!==void 0)return vHG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vHG=m},{mode:2});var $46;var de=function(){var m=_.d.apply(this,arguments)||this;m.fixie=!1;m.fullWidth=!1;return m};
_.n(de,_.d);de.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
de.prototype.computeHasDividerLine=function(m){return m};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],de.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.S("design:type",Boolean)],de.prototype,"hasDividerLine",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],de.prototype,"fixie",void 0);_.x([_.V(),_.S("design:type",Object)],de.prototype,"fullWidth",void 0);
_.x([_.Ye({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],de);
_.y(de,"ytd-rich-metadata-row-renderer",function(){if($46!==void 0)return $46;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return $46=m},{mode:1});var Pn=function(){var m=_.d.apply(this,arguments)||this;m.engagementPanelContent=!1;m.fixie=!1;m.fullWidth=!1;return m};
_.n(Pn,_.d);
Pn.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"}}}};
Pn.prototype.computeCollapsibleItems=function(m,G,K){return m===void 0||G===void 0||K===void 0||K?[]:m.slice(G)};
Pn.prototype.computeAlwaysShownItems=function(m,G){return m&&m.length?m.slice(0,G):[]};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Pn.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Pn.prototype,"collapsed",void 0);
_.x([_.V({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.S("design:type",Array)],Pn.prototype,"alwaysShownItems",void 0);_.x([_.V({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.S("design:type",Array)],Pn.prototype,"collapsibleItems",void 0);_.x([_.V(),_.S("design:type",Object)],Pn.prototype,"engagementPanelContent",void 0);_.x([_.V(),_.S("design:type",Object)],Pn.prototype,"fixie",void 0);
_.x([_.V(),_.S("design:type",Object)],Pn.prototype,"fullWidth",void 0);_.x([_.Ye({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],Pn);
_.y(Pn,"ytd-metadata-row-container-renderer",function(){if(QDD!==void 0)return QDD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QDD=m},{mode:1});var sDD;var e3=function(){return _.d.apply(this,arguments)||this};
_.n(e3,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],e3.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],e3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],e3);
_.y(e3,"ytd-error-corrections-section-item-renderer",function(){if(sDD!==void 0)return sDD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return sDD=m},{mode:1});var qjE;var fF=function(){return _.d.apply(this,arguments)||this};
_.n(fF,_.d);fF.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],fF.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fF.prototype,"data",void 0);_.x([_.Ye({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],fF);
_.y(fF,"ytd-error-corrections-section-renderer",function(){if(qjE!==void 0)return qjE;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return qjE=m},{mode:1});var EHE;var xd=function(){return _.d.apply(this,arguments)||this};
_.n(xd,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],xd.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xd.prototype,"data",void 0);_.x([_.Ye({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],xd);
_.y(xd,"ytd-topic-link-renderer",function(){if(EHE!==void 0)return EHE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return EHE=m},{mode:1});var HeW;var Xr=function(){var m=_.d.apply(this,arguments)||this;m.modernLockupV2=_.F("modernize_structured_description_playlist_lockups_v2");return m};
_.n(Xr,_.d);Xr.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Xr.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Xr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Xr.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xr.prototype,"modernLockupV2",void 0);_.x([_.Ye({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],Xr);
_.y(Xr,"ytd-video-description-course-section-renderer",function(){if(HeW!==void 0)return HeW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return HeW=m},{mode:1});var IvE;var S3=function(){return _.d.apply(this,arguments)||this};
_.n(S3,_.d);S3.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],S3.prototype,"data",void 0);_.x([_.Ye({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],S3);
_.y(S3,"ytd-video-description-files-section-renderer",function(){if(IvE!==void 0)return IvE;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IvE=m},{mode:1});var jD5;var RA=function(){return _.d.apply(this,arguments)||this};
_.n(RA,_.d);RA.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],RA.prototype,"data",void 0);_.x([_.Ye({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],RA);
_.y(RA,"ytd-video-description-gaming-section-renderer",function(){if(jD5!==void 0)return jD5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return jD5=m},{mode:1});var kTG;var Uz=function(){var m=_.d.apply(this,arguments)||this;m.isExpanded=!1;return m};
_.n(Uz,_.d);Uz.prototype.computeHasDefaultMetadataEndpoint=function(m){var G;m=m==null?void 0:(G=m.defaultMetadata)==null?void 0:G.runs;return!(!m||m.length!==1||!m[0].navigationEndpoint)};
Uz.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.e_.Object.defineProperties(Uz.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uz.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Uz.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uz.prototype,"isExpanded",void 0);_.x([_.V({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Uz.prototype,"hasDefaultMetadataEndpoint",void 0);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Uz.prototype,"isExpandable",null);_.x([_.E("data","isExpandable","isExpanded"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Uz.prototype,"showExpandedMetadata",null);_.x([_.Ye({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Uz);
_.y(Uz,"ytd-info-row-renderer",function(){if(kTG!==void 0)return kTG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return kTG=m},{mode:1});var C8G;var zK=function(){var m=_.d.apply(this,arguments)||this;m.currentIndex=0;m.supportComponentResize=!0;m.JSC$20445_lastScrollContainerWidth=NaN;return m};
_.n(zK,_.d);_.w=zK.prototype;
_.w.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"}}}};
_.w.getItemsPath=function(){return"videoLockups"};
_.w.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.w.onIronResize=function(){this.updateVideoLockupStyles()};
_.w.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.w.updateVideoLockupStyles=function(){var m;this.JSC$20445_scrollContainer!==void 0&&(m=this.videoLockups)!=null&&m.length&&(m=this.JSC$20445_scrollContainer.clientWidth,m!==this.JSC$20445_lastScrollContainerWidth&&(this.JSC$20445_lastScrollContainerWidth=m,_.eb(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(m*.8,415)+"px"}),_.Zw(this.hostElement,"iron-resize")))};
_.e_.Object.defineProperties(zK.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var m=[],G;if((G=this.data)==null||!G.carouselLockups)return m;G=_.g(this.data.carouselLockups);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;((W=_.Q(K,fyW))==null?0:W.videoLockup)&&m.push(_.Q(K,fyW).videoLockup)}return m}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.videoLockups)==null||!m.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var m=[],G;if((G=this.data)==null||!G.carouselLockups)return m;var K;return(K=_.Q(this.data.carouselLockups[this.scrollCount],fyW))==null?void 0:K.infoRows}}});
zK.prototype.dataChanged=zK.prototype.dataChanged;zK.prototype.onIronResize=zK.prototype.onIronResize;zK.prototype.hiddenChanged=zK.prototype.hiddenChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],zK.prototype,"componentBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],zK.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zK.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],zK.prototype,"inlineStructuredDescription",void 0);_.x([_.V({value:2}),_.S("design:type",Number)],zK.prototype,"initialCount",void 0);_.x([_.V(),_.S("design:type",Object)],zK.prototype,"currentIndex",void 0);
_.x([_.V(),_.S("design:type",Number)],zK.prototype,"scrollCount",void 0);_.x([_.V(),_.S("design:type",Object)],zK.prototype,"supportComponentResize",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],zK.prototype,"contentHidden",void 0);_.x([_.UM("#scroll-container"),_.S("design:type",HTMLDivElement)],zK.prototype,"JSC$20445_scrollContainer",void 0);
_.x([_.Sb("contentHidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"hiddenChanged",null);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],zK.prototype,"videoLockups",null);_.x([_.E("videoLockups"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],zK.prototype,"hasVideoLockups",null);
_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"onIronResize",null);_.x([_.E("data","scrollCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],zK.prototype,"infoRows",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zK.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zK);
_.y(zK,"ytd-video-description-music-section-renderer",function(){if(C8G!==void 0)return C8G;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return C8G=m},{mode:2});var VYq;var lV=function(){return _.d.apply(this,arguments)||this};
_.n(lV,_.d);lV.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.x([_.V({}),_.S("design:type",Object)],lV.prototype,"data",void 0);_.x([_.Ye({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],lV);
_.y(lV,"ytd-video-description-transcript-section-renderer",function(){if(VYq!==void 0)return VYq;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return VYq=m},{mode:1});var ZeO;_.sh(_.P(function(m){var G=_.S5(_.sAF,function(){return m.data().firstProviderLinkStatusEntityKey}),K=_.S5(_.sAF,function(){return m.data().secondProviderLinkStatusEntityKey}),W=function(){var L,A;
return((L=G())==null?void 0:L.linked)||((A=K())==null?void 0:A.linked)};
return _.r("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.r(_.Nm,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return m.data().sectionTitle}}),_.r(_.Nm,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return W()?m.data().connectedMessage:m.data().notConnectedMessage}}),_.r(_.p,{cond:W,
then:function(){return _.r(_.z$,{data:function(){return m.data().connectedButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.r(_.p,{cond:function(){return!W()},
then:function(){return _.r(_.z$,{data:function(){return m.data().notConnectedButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yh"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;return _.r("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.r("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.r(_.Nm,{text:function(){return G().sectionTitle}})),_.r("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.r(_.Nm,{text:function(){return G().bodyHeader}})),_.r("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.r(_.Nm,{text:function(){return G().bodyText}})),_.r(_.p,{cond:function(){return G().attributionText},
then:function(){return _.r("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.r(_.Nm,{text:function(){return G().attributionText}}))}}))},"zh"),"how-this-was-made-section-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){return _.r("yt-video-description-youchat-section-view-model",{class:_.VO("ytVideoDescriptionYouchatSectionViewModelHost")},_.r("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.r(_.Nm,{text:function(){return m.data().sectionTitle}})),_.r("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.r(_.Nm,{text:function(){return m.data().subHeaderText}})),_.r("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.r(_.kP,{data:function(){return _.Q(m.data().primaryButton,
_.J6)}})))},"Ah"),"yt-video-description-youchat-section-view-model",{props:{data:_.Dd}});var Bn=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return m};
_.n(Bn,_.d);_.w=Bn.prototype;
_.w.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}}}}}};
_.w.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.w.dataChanged=function(){var m,G;this.hasDescriptionOnly=!(((m=this.data)==null?void 0:(G=m.items)==null?void 0:G.length)!==1||!_.Q(this.data.items[0],o6))};
_.w.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.w.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.w.autoFocusDescription=function(){var m;((m=_.xS().resolve(_.fn(_.sH)))==null?0:m.isKeyBoardInUse())&&this.description&&_.dW(this.description)};
_.w.resize=function(){if(_.F("kevlar_disable_sd_resize"))this.JSC$20452_cardList&&_.Zw(this.JSC$20452_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Zw(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Zw(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.w.scrollToSection=function(m){if(m=this.getSectionElement(m))_.dU(this.hostElement,"yt-scroll-to-watch-element",[m]),m.focus()};
_.w.getSectionElement=function(m){switch(m){case "infocards-item-section":var G;return(G=this.infocardsSection)!=null?G:null;case "transcript-item-section":var K;return(K=this.transcriptSection)!=null?K:null;case "how-this-was-made-section-item-section":var W;return(W=this.howThisWasMadeSection)!=null?W:null;case "files-item-section":var L;return(L=this.filesSection)!=null?L:null;default:return null}};
_.w.handleSetActiveItemAction=function(m){var G=_.Q(m,JGq),K=G&&(G==null?void 0:G.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20452_cardList;if(G&&K){m=this.currentActiveChapter;var W=this.currentActiveProblem;G=K==null?void 0:K.getItemByIndex(G.itemIndex);var L=K=!0;G&&(G.active=!0,G.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(K=m!==G,L=!1,this.currentActiveChapter=G):(G==null?void 0:G.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(K=!1,L=W!==G,this.currentActiveProblem=G));m&&K&&(m.active=!1);W&&L&&(W.active=!1)}};
_.e_.Object.defineProperties(Bn.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Zk("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Bn.prototype.onYtExpanderMoreTapped=Bn.prototype.onYtExpanderMoreTapped;Bn.prototype.onHiddenChanged=Bn.prototype.onHiddenChanged;Bn.prototype.dataChanged=Bn.prototype.dataChanged;Bn.prototype.panelContentVisibleChanged=Bn.prototype.panelContentVisibleChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Bn.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],Bn.prototype,"ironResizableBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Bn.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],Bn.prototype,"panelContentVisible",void 0);_.x([_.V(),_.S("design:type",Boolean)],Bn.prototype,"hasDescriptionOnly",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bn.prototype,"inlineStructuredDescription",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bn.prototype,"hidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bn.prototype,"shortsPanel",void 0);_.x([_.V(),_.S("design:type",Object)],Bn.prototype,"videoSummary",void 0);_.x([_.V(),_.S("design:type",Object)],Bn.prototype,"merchShelf",void 0);
_.x([_.E("videoSummary"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Bn.prototype,"showVideoSummary",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bn.prototype,"engagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Bn.prototype,"watchWhileSdp",void 0);_.x([_.UM("ytd-expandable-video-description-body-renderer"),_.S("design:type",Object)],Bn.prototype,"description",void 0);
_.x([_.UM("ytd-horizontal-card-list-renderer"),_.S("design:type",Object)],Bn.prototype,"JSC$20452_cardList",void 0);_.x([_.UM("ytd-horizontal-card-list-renderer[center-items]"),_.S("design:type",Object)],Bn.prototype,"problemWalkthroughCardList",void 0);_.x([_.UM("ytd-shelf-renderer"),_.S("design:type",Object)],Bn.prototype,"shelfSection",void 0);_.x([_.UM("ytd-video-description-music-section-renderer"),_.S("design:type",Object)],Bn.prototype,"musicMetadataSection",void 0);
_.x([_.UM("ytd-video-description-infocards-section-renderer"),_.S("design:type",Object)],Bn.prototype,"infocardsSection",void 0);_.x([_.UM("ytd-video-description-transcript-section-renderer"),_.S("design:type",Object)],Bn.prototype,"transcriptSection",void 0);_.x([_.UM("how-this-was-made-section-view-model"),_.S("design:type",Object)],Bn.prototype,"howThisWasMadeSection",void 0);_.x([_.UM("ytd-video-description-files-section-renderer"),_.S("design:type",Object)],Bn.prototype,"filesSection",void 0);
_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bn.prototype,"panelContentVisibleChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bn.prototype,"dataChanged",null);_.x([_.Sb("hidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bn.prototype,"onHiddenChanged",null);
_.x([_.XC("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bn.prototype,"onYtExpanderMoreTapped",null);_.x([_.Ye({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Bn);
_.y(Bn,"ytd-structured-description-content-renderer",function(){if(ZeO!==void 0)return ZeO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZeO=m},{mode:2});var M0=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return m};
_.n(M0,_.d);_.w=M0.prototype;_.w.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"}}}};
_.w.dataChanged=function(){var m;this.descriptionToggled=!((m=this.data)==null||!m.defaultExpanded);var G;this.collapsed=this.descriptionAlwaysCollapsed||!((G=this.data)==null?0:G.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.dq(110509);this.showLessClientVe=_.dq(110510);m=_.gU();G=_.wU();m&&G&&_.Fv(m,G,[this.showMoreClientVe,this.showLessClientVe])};
_.w.onYtExpanderMoreTapped=function(){var m,G=(m=this.data)==null?void 0:m.showMoreCommand;G&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(G);(m=_.gU())&&this.showMoreClientVe&&_.nW(m,this.showMoreClientVe)};
_.w.onYtExpanderLessTapped=function(){var m=_.gU();m&&this.showLessClientVe&&_.nW(m,this.showLessClientVe);var G;(m=(G=this.data)==null?void 0:G.showLessCommand)&&this.componentBehavior.resolveCommand(m)};
_.w.handleUpdateDateTextAction=function(m){this.data&&this.data.dateText&&this.set("data.dateText",_.Q(m,dOi).dateText)};
_.w.handleUpdateDescriptionAction=function(m){if(m=_.Q(m,_.ik2))m.isEmpty||!m.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.A$(m.description)):this.set("data.description",m.description)};
_.w.onYtChangeEngagementPanelVisibilityAction=function(m){if(_.F("web_structured_description_show_more")||_.F("web_engagement_panel_open_description")){var G,K=(G=_.Q(m,_.Bvl))==null?void 0:G.targetId,W;m=((W=_.Q(m,_.Bvl))==null?void 0:W.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";K==="engagement-panel-structured-description"&&m&&(this.descriptionToggled=!0)}};
_.w.updateCollapsedFromBinding=function(m){this.collapsed=m.detail.value};
_.w.updateDescriptionToggledFromBinding=function(m){this.descriptionToggled=m.detail.value};
_.w.updateCanCollapseFromBinding=function(m){this.canCollapse=m.detail.value};
_.e_.Object.defineProperties(M0.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer;return!!K&&!!K.rows&&K.rows.length>K.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.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}}});
M0.prototype.onYtExpanderLessTapped=M0.prototype.onYtExpanderLessTapped;M0.prototype.onYtExpanderMoreTapped=M0.prototype.onYtExpanderMoreTapped;M0.prototype.dataChanged=M0.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],M0.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],M0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],M0.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],M0.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],M0.prototype,"collapsed",void 0);_.x([_.V(),_.S("design:type",Boolean)],M0.prototype,"descriptionToggled",void 0);
_.x([_.V(),_.S("design:type",Boolean)],M0.prototype,"canCollapse",void 0);_.x([_.V(),_.S("design:type",Object)],M0.prototype,"subscribeButtonData",void 0);_.x([_.V(),_.S("design:type",Number)],M0.prototype,"descriptionCollapsedHeight",void 0);_.x([_.V(),_.S("design:type",Object)],M0.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.V({value:function(){return _.F("web_watch_description_always_collapsed")}}),
_.S("design:type",Boolean)],M0.prototype,"descriptionAlwaysCollapsed",void 0);_.x([_.UM("#description"),_.S("design:type",HTMLDivElement)],M0.prototype,"description",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M0.prototype,"dataChanged",null);_.x([_.XC("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M0.prototype,"onYtExpanderMoreTapped",null);
_.x([_.XC("yt-expander-less-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],M0.prototype,"onYtExpanderLessTapped",null);_.x([_.E("data.metadataRowContainer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"metadataCollapsible",null);_.x([_.E("data","structuredDescriptionContentRenderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"hasInlineStructuredDescription",null);
_.x([_.E("data.attributedDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"hasAttributedDescription",null);_.x([_.E("hasInlineStructuredDescription","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"loadStructuredDescription",null);_.x([_.E("data","structuredDescriptionContentRenderer","collapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"showInlineStructuredDescription",null);
_.x([_.E("data","hasInlineStructuredDescription","metadataCollapsible"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],M0.prototype,"descriptionAlwaysCollapsible",null);
_.y(M0,"ytd-video-secondary-info-renderer",function(){if(D4D===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);D4D=m}m=D4D;return m},{mode:2});var d4E;var TK=function(){return _.d.apply(this,arguments)||this};
_.n(TK,_.d);TK.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],TK.prototype,"rendererBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],TK.prototype,"dismissibleItemBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],TK.prototype,"rendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],TK.prototype,"data",void 0);_.x([_.Ye({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],TK);
_.y(TK,"ytd-comment-history-entry-renderer",function(){if(d4E!==void 0)return d4E;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return d4E=m},{mode:1});var P8O;var mw=function(){var m=_.d.apply(this,arguments)||this;m.isCollapsed=!1;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return m};
_.n(mw,_.d);_.w=mw.prototype;_.w.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.onDonateTap=function(){var m=this.get("data.donateButton.buttonRenderer.command");if(m){var G=_.gU(),K=this.get("data.donateButton.buttonRenderer.trackingParams");G&&K&&_.nW(G,_.m5(K));this.ytOpenPopupBehavior.openPopup(m)}};
_.w.onShowMore=function(){this.isCollapsed=!1;var m=_.gU(),G=this.get("data.expandButton.buttonRenderer.trackingParams");m&&G&&_.nW(m,_.m5(G))};
_.w.onShowLess=function(){this.isCollapsed=!0};
_.w.dataChanged=function(){_.eb(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.handleUpdate=function(m){if(m=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",m))this.set("data.startLabel",m.startLabel),this.set("data.endLabel",m.endLabel),this.set("data.progress",m.progress),this.set("data.amountRaisedLabel",m.amountRaisedLabel),this.dataChanged()};
_.w.handleOpenPopupAction=function(m){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",m)&&_.dU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.w.computeHeaderBackgroundUrl=function(m,G){if(m)return G?m.headerBackgroundDarkUrl:m.headerBackgroundUrl};
_.w.isProgressBarVisible=function(m){return!(!m||m.progress===void 0)};
_.w.headerBackgroundClass=function(){return _.E8("HTML_DIR")==="rtl"?"flip":""};
mw.prototype.dataChanged=mw.prototype.dataChanged;_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],mw.prototype,"ytOpenPopupBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mw.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],mw.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],mw.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],mw.prototype,"isCollapsed",void 0);_.x([_.V({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.S("design:type",String)],mw.prototype,"headerBackgroundUrl",void 0);_.x([_.V(),_.S("design:type",Boolean)],mw.prototype,"isDarkTheme",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mw.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],mw);
_.y(mw,"ytd-donation-shelf-renderer",function(){if(P8O!==void 0)return P8O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return P8O=m},{mode:1});var yyq;var esi=function(){return _.d.apply(this,arguments)||this};
_.n(esi,_.d);_.x([_.V(),_.S("design:type",Object)],esi.prototype,"data",void 0);_.x([_.Ye({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],esi);
_.y(esi,"ytd-donation-unavailable-renderer",function(){if(yyq!==void 0)return yyq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yyq=m},{mode:1});var fvD;var ij=function(){var m=_.d.apply(this,arguments)||this;m.playerListenerConfig=null;m.actionMap={"yt-show-watch-page-survey":"openSurvey"};return m};
_.n(ij,_.d);_.w=ij.prototype;_.w.dataChanged=function(){var m=this,G=_.qW();G&&G.getPlayerPromise().then(function(W){m.maybeRemovePlayerListeners(W)});
var K=this.data&&this.data.survey;K&&((K=(K=K.singleOptionSurveyRenderer||K.checkboxSurveyRenderer||K.multiStageSurveyRenderer)&&K.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(G,K):this.openSurvey())};
_.w.triggerWatchPageSurvey=function(m,G){var K=this,W,L,A,O,c,u,h,J,N;return _.Y(function(D){if(D.nextAddress==1)return m?D.yield(m.getPlayerPromise(),2):D.return();K.player=D.yieldResult;if(!K.player)return D.return();W={};L=_.g(G);for(A=L.next();!A.done;A=L.next())O=A.value,c=_.g(K.createEventListenerPair(O)),u=c.next().value,h=c.next().value,J=u,N=h,J&&N&&(W[J]=N,K.ytPlayerListenerBehavior.listenToPlayerEvent(K.player,J,N));K.playerListenerConfig=W;_.ey(D)})};
_.w.createEventListenerPair=function(m){var G=m.playbackEventTrigger;return G?this.handlePlaybackTrigger(G):(m=m.watchTimeTrigger)?this.handleWatchTimeTrigger(m):[void 0,void 0]};
_.w.handleWatchTimeTrigger=function(m){var G=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var K=m.videoWatchFraction,W=m.watchTimeSec;return W&&K?["onVideoProgress",function(){G.player&&G.isWatchTimeConditionMet(G.player,K,W)&&G.showSurvey()}]:[void 0,
void 0]};
_.w.isWatchTimeConditionMet=function(m,G,K){var W=m.getProgressState(),L=W.current-this.lastKnownPlaybackPosition;L<5&&(this.accumulatedMediaTime+=L);this.lastKnownPlaybackPosition=W.current;W=Math.round(this.accumulatedMediaTime/W.duration*1E3)/1E3;return m.getPresentingPlayerType&&m.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>K||W>G)};
_.w.handlePlaybackTrigger=function(m){var G=this;m=m.playbackEvent;if(m==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var K="onStateChange";var W=function(L){L===0&&G.showSurvey()}}else m==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(K="onVideoProgress",W=function(L){G.player&&G.player.getPresentingPlayerType&&G.player.getPresentingPlayerType()===1&&L&&G.showSurvey()}):m==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(K="onAdEnd",W=this.showSurvey);
return[K,W]};
_.w.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.w.openSurvey=function(){var m=this,G=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(xhG(!!G));_.Fu.addJob(function(){m.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:G}})},0,0)};
_.w.maybeRemovePlayerListeners=function(m){if(this.playerListenerConfig){for(var G=_.g(Object.keys(this.playerListenerConfig)),K=G.next();!K.done;K=G.next())K=K.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(m,K,this.playerListenerConfig[K]);this.playerListenerConfig=null}};
ij.prototype.dataChanged=ij.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],ij.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],ij.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ij.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],ij.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ij.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ij.prototype,"playerListenerConfig",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],ij.prototype,"lastKnownPlaybackPosition",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],ij.prototype,"accumulatedMediaTime",void 0);_.x([_.V(),_.S("design:type",Object)],ij.prototype,"player",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ij.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ij);
_.y(ij,"ytd-survey-trigger-renderer",function(){if(fvD!==void 0)return fvD;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fvD=m},{mode:1});var x4i;_.Kz("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var GV=function(){var m=_.d.apply(this,arguments)||this;m.role="link";m.tabindex="0";m.actionMap=_.F("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 m};
_.n(GV,_.d);_.w=GV.prototype;_.w.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Ng()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.w.getCurrentTheme=function(){return _.D7()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ng()};
_.w.onThemeSelected=function(m,G){var K=m||G?m:_.JK(),W=(K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.xMo(_.f6(window.location.href));_.Tq(0,165,m);_.Tq(0,174,G);this.prefs.save();W&&_.dU(this.hostElement,"yt-dark-mode-toggled-action",[K]);_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.onTap=function(){this.data.serviceEndpoint&&_.yQ(this.hostElement,[this.data.serviceEndpoint])};
_.w.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.w.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.w.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
GV.prototype.onTap=GV.prototype.onTap;GV.prototype.dataChanged=GV.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],GV.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.tp),_.S("design:type",Object)],GV.prototype,"paperItemBehaviors",void 0);_.x([_.V(),_.S("design:type",Object)],GV.prototype,"data",void 0);_.x([_.V({value:function(){return _.M$()}}),
_.S("design:type",_.EX)],GV.prototype,"prefs",void 0);_.x([_.V(),_.S("design:type",Object)],GV.prototype,"label",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GV.prototype,"role",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GV.prototype,"tabindex",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GV.prototype,"dataChanged",null);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GV.prototype,"onTap",null);_.x([_.Ye({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],GV);
_.Vz()(GV,"ytd-toggle-theme-compact-link-renderer",function(){if(x4i===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);x4i=m}m=x4i;return m},{allowedProps:["data"],
mode:1});var XD6;_.Kz("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Kz("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var KH=function(){return _.d.apply(this,arguments)||this};
_.n(KH,_.d);_.w=KH.prototype;_.w.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.onKeyUp=function(m){if(m.keyCode===13)this.onTap()};
_.w.onTap=function(){this.data.recordClickEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var m=this.data.navigationEndpoint;m&&_.Q(m,_.O7)&&_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})};
_.w.readChanged=function(){var m;_.dF(this.hostElement,"unread",!((m=this.data)==null?0:m.read))};
_.w.dataChanged=function(){this.data&&_.dF(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.w.computeThumbnailSize=function(){var m;return((m=this.data)==null?0:m.highPriorityNotification)?32:48};
_.w.getEndpointURL=function(m){return m&&!_.Q(m,_.O7)?this.componentBehavior.computeHref_(m):null};
_.w.getEndpointData=function(m){return m&&!_.Q(m,_.O7)?m:null};
KH.prototype.computeThumbnailSize=KH.prototype.computeThumbnailSize;KH.prototype.dataChanged=KH.prototype.dataChanged;KH.prototype.readChanged=KH.prototype.readChanged;KH.prototype.onKeyUp=KH.prototype.onKeyUp;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],KH.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],KH.prototype,"data",void 0);_.x([_.V({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.S("design:type",Number)],KH.prototype,"thumbnailSize",void 0);_.x([_.XC("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],KH.prototype,"onKeyUp",null);
_.x([_.Sb("data.read"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KH.prototype,"readChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KH.prototype,"dataChanged",null);_.x([_.Sb("data.highPriorityNotification"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],KH.prototype,"computeThumbnailSize",null);
_.x([_.Ye({is:"ytd-notification-renderer",disableElementRegistration:!0})],KH);
_.y(KH,"ytd-notification-renderer",function(){if(XD6!==void 0)return XD6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XD6=m},{mode:1});var SjW;var W6=function(){return _.d.apply(this,arguments)||this};
_.n(W6,_.d);W6.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"}}}};
W6.prototype.computeActionButtonClass=function(m){return!m.actionButtons||m.actionButtons.length<=1?"single-button":m.description?"vertical-buttons":"horizontal-buttons"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],W6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],W6);
_.y(W6,"ytd-playlist-show-metadata-renderer",function(){if(SjW!==void 0)return SjW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return SjW=m},{mode:1});var Rsq;_.Kz("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var LH=function(){return _.d.apply(this,arguments)||this};
_.n(LH,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],LH.prototype,"data",void 0);_.x([_.Ye({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],LH);
_.y(LH,"ytd-purchase-item-renderer",function(){if(Rsq!==void 0)return Rsq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Rsq=m},{mode:1});var U4q;var zs6={};zs6.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(m){if(m)return m.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(m){if(m==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Kz("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var An=function(){return _.d.apply(this,arguments)||this};
_.n(An,_.d);An.prototype.onYtNavigate=function(m){var G=this.openPopupBehavior.getNavigationEndpointPopupAction(m.detail.endpoint);G&&(m.stopPropagation(),this.openPopupBehavior.openPopup(G))};
An.prototype.onYtNavigate=An.prototype.onYtNavigate;_.x([_.q(zs6.YtSimpleTextSectionBehavior),_.S("design:type",Object)],An.prototype,"ytSimpleTextSectionBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],An.prototype,"openPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],An.prototype,"data",void 0);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],An.prototype,"onYtNavigate",null);_.x([_.Ye({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],An);
_.y(An,"ytd-simple-text-section-renderer",function(){if(U4q!==void 0)return U4q;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return U4q=m},{mode:1});var lvO;_.Kz("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var BXP=function(){return _.d.apply(this,arguments)||this};
_.n(BXP,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],BXP.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],BXP.prototype,"data",void 0);_.x([_.Ye({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],BXP);
_.y(BXP,"ytd-unlimited-page-feature-info-renderer",function(){if(lvO!==void 0)return lvO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lvO=m},{mode:1});var MY6;var TX6;var wg=function(){return _.d.apply(this,arguments)||this};
_.n(wg,_.d);wg.prototype.dataChanged=function(){if(this.data){var m=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);m&&(m=_.qy(m,screen.width),this.hostElement.style.backgroundImage="url("+m+")")}};
wg.prototype.dataChanged=wg.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wg.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wg.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wg.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],wg);
_.y(wg,"ytd-post-redemption-section-renderer",function(){if(TX6!==void 0)return TX6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return TX6=m},{mode:1});var mnE;var gg=function(){return _.d.apply(this,arguments)||this};
_.n(gg,_.d);gg.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gg.prototype,"data",void 0);_.x([_.Ye({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],gg);
_.y(gg,"ytd-ypc-post-redemption-renderer",function(){if(mnE!==void 0)return mnE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return mnE=m},{mode:1});_.Kz("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Ou=function(){var m=_.d.apply(this,arguments)||this;m.MIN_CODE_LENGTH=12;m.MAX_CODE_LENGTH=24;return m};
_.n(Ou,_.d);_.w=Ou.prototype;_.w.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.w.created=function(){this.riskService=new _.fKd;this.loadPaymentThenable=_.Xav(_.E8("YPC_MB_URL"))};
_.w.ready=function(){var m=this;this.code.addEventListener("keypress",function(G){m.onCodeInputKeypress(G)})};
_.w.dataChanged=function(){var m=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(G){G=_.g(G);for(var K=G.next();!K.done;K=G.next())K=K.value,K.type==="attributes"&&K.attributeName==="dark"&&m.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.w.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var m=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+m+")")}};
_.w.computeRedeemButton=function(m){(m=this.get("redeemButton.buttonRenderer",m))&&(m=Object.assign({},m,{serviceEndpoint:void 0}));return m};
_.w.onRedeemButtonTap=function(m){m.stopPropagation();RJs();this.redeemCode()};
_.w.redeemCode=function(){var m=this;this.isLoading=!0;var G=this.riskService.init();_.gO([G,this.loadPaymentThenable]).then(function(){var K=m.data.redeemButton.buttonRenderer.serviceEndpoint,W=_.xwG(),L=_.HY.payments.business.integration.ClientTokenFactory.createClientToken(_.Q(K,_.yGF).countryCode,W);W={c:m.code.value.trim(),rd:window.btoa(W),ctk:L};K&&_.xS().resolve(_.S1).resolveCommand(K,{form:Object.assign({},W,{element:m.hostElement})})},function(){m.showGenericError();
U$W("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.j1(Error("Al"))})};
_.w.onYtServiceRequestCompleted=function(m){m.stopPropagation();this.isLoading=!1;var G,K;this.errorMessage=(G=m.detail)==null?void 0:(K=G.data)==null?void 0:K.errorMessage;var W,L;this.postRedemptionRenderer=(W=m.detail)==null?void 0:(L=W.data)==null?void 0:L.renderer;var A,O;if(m=(A=m.detail)==null?void 0:(O=A.data)==null?void 0:O.redirectEndpoint)this.isLoading=!0,_.Zw(this.hostElement,"yt-navigate",{endpoint:m});this.errorMessage?U$W("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
m)&&Ki("ypcRedeemFlowSucceeded")};
_.w.onYtServiceRequestError=function(m){m.stopPropagation();this.isLoading=!1;if(m=this.get("detail.error.message",m))this.errorMessage=_.nG(m);U$W("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.w.onInvokeInstrumentManagerActionCompleted=function(m){m.stopPropagation();this.redeemCode()};
_.w.onInvokeInstrumentManagerActionError=function(m){m.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",m)){case "instrumentManagerLoadError":this.showGenericError();U$W("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();U$W("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":Ki("ypcRedeemFlowCancelled")}};
_.w.onInput=function(){var m=this;_.t9(this,"onInput",function(){var G=m.code.value.trim();m.redeemButtonDisabled=G.length<m.MIN_CODE_LENGTH||G.length>m.MAX_CODE_LENGTH},200)};
_.w.onCodeInputKeypress=function(m){m.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(RJs(),this.redeemCode())};
_.w.computeImageUrl=function(m){return m?_.qy(m.thumbnails,600):null};
_.w.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Ou.prototype.onInvokeInstrumentManagerActionError=Ou.prototype.onInvokeInstrumentManagerActionError;Ou.prototype.onInvokeInstrumentManagerActionCompleted=Ou.prototype.onInvokeInstrumentManagerActionCompleted;Ou.prototype.onYtServiceRequestError=Ou.prototype.onYtServiceRequestError;Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;Ou.prototype.dataChanged=Ou.prototype.dataChanged;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ou.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ou.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Boolean)],Ou.prototype,"redeemButtonDisabled",void 0);
_.x([_.V(),_.S("design:type",Object)],Ou.prototype,"errorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],Ou.prototype,"postRedemptionRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],Ou.prototype,"observer",void 0);_.x([_.UM("#code"),_.S("design:type",HTMLInputElement)],Ou.prototype,"code",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ou.prototype,"dataChanged",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ou.prototype,"onYtServiceRequestError",null);
_.x([_.XC("yt-invoke-instrument-manager-action-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ou.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.x([_.XC("yt-invoke-instrument-manager-action-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ou.prototype,"onInvokeInstrumentManagerActionError",null);_.x([_.Ye({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Ou);
_.y(Ou,"ytd-redeem-code-renderer",function(){if(MY6!==void 0)return MY6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return MY6=m},{mode:1});var iEs;_.Kz("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var c6=function(){var m=_.d.apply(this,arguments)||this;m.businessEmailDisplayState="HIDE_SECTION";return m};
_.n(c6,_.d);_.w=c6.prototype;_.w.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}}}}}};
_.w.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"};
_.w.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.w.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.pJ(_.eqP),this.businessEmailDisplayState="CAPTCHA"))};
_.w.onYtServiceRequestCompleted=function(m){var G;if((G=m.detail.data)==null?0:G.businessEmail)this.businessEmail=m.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var K;if((K=m.detail.data)==null?0:K.errorMessage)this.businessEmailErrorMessage=m.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.w.computeEmailHref=function(m){return"mailto:"+m};
_.w.computeSafeUrl=function(m){if(m)return _.MI(m)};
_.w.onBusinessEmailCaptchaSubmit=function(){var m;(m=this.data)!=null&&m.onBusinessEmailRevealClickCommand&&(m=this.JSC$20512_captchaTextarea.value)&&(m={recaptcha_response_token:m,channel_id:this.data.channelId},_.xS().resolve(_.S1).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},m,{element:this.hostElement})}))};
_.w.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.e_.Object.defineProperties(c6.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 m,G;return!((m=this.data)==null||!m.primaryLinks)&&!((G=this.data)==null?0:G.links)&&this.data.primaryLinks.every(function(K){return K.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.primaryLinks)&&!((G=this.data)==null?0:G.links)&&!this.shouldShowNewLinks}}});
c6.prototype.onYtServiceRequestCompleted=c6.prototype.onYtServiceRequestCompleted;c6.prototype.dataChanged=c6.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],c6.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.UM("#g-recaptcha-response"),_.S("design:type",HTMLTextAreaElement)],c6.prototype,"JSC$20512_captchaTextarea",void 0);_.x([_.V(),_.S("design:type",Object)],c6.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],c6.prototype,"businessEmailDisplayState",void 0);_.x([_.V(),_.S("design:type",String)],c6.prototype,"businessEmail",void 0);_.x([_.V(),_.S("design:type",String)],c6.prototype,"businessEmailErrorMessage",void 0);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],c6.prototype,"hideDetailsSection",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],c6.prototype,"dataChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],c6.prototype,"shouldShowNewLinks",null);_.x([_.E("data","shouldShowLinks"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],c6.prototype,"shouldShowLegacyLinks",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],c6.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],c6);
_.y(c6,"ytd-channel-about-metadata-renderer",function(){if(iEs!==void 0)return iEs;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return iEs=m},{mode:1});var GSO;_.Kz("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Ys=function(){return _.d.apply(this,arguments)||this};
_.n(Ys,_.d);Ys.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ys.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],Ys.prototype,"lockupContainerType",void 0);_.x([_.V(),_.S("design:type",String)],Ys.prototype,"thumbnailFixedWidth",void 0);
_.x([_.Ye({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Ys);
_.y(Ys,"ytd-channel-featured-content-renderer",function(){if(GSO!==void 0)return GSO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return GSO=m},{mode:1});var KJq;_.Kz("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var rg=function(){var m=_.d.apply(this,arguments)||this;m.roundContainer=!0;m.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return m};
_.n(rg,_.d);_.w=rg.prototype;_.w.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.w.dataChanged=function(){this.imageWidth=this.imageHeight=24;var m=this.data;m.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!m.style&&m.image&&m.image.thumbnails.length&&(m=m.image.thumbnails[0],this.imageWidth=m.width||0,this.imageHeight=m.height||0)};
_.w.computeSource=function(m){return m.secondarySource?_.bw(m.secondarySource):_.bw(m.source)};
_.w.computeClarifyStyle=function(m){return m?m.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.w.isLargeStyle=function(m){return m==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.w.computeBackgroundStyle=function(m){return m?m.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.w.computeHasActionButton=function(m){return!!m.actionButton};
_.w.computeHasBottomSection=function(m){return!!m.ctaHasBottomSection};
_.w.computeIsSourceMissing=function(m){return m.ctaHasBottomSection===!1?!0:m&&this.computeSource(m)?!1:!0};
_.w.computeSecondaryEndpoint=function(m){return m.secondaryEndpoint||m.endpoint};
rg.prototype.dataChanged=rg.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rg.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],rg.prototype,"imageWidth",void 0);_.x([_.V(),_.S("design:type",Number)],rg.prototype,"imageHeight",void 0);
_.x([_.V({computed:"computeSecondaryEndpoint(data)"}),_.S("design:type",Object)],rg.prototype,"secondaryEndpoint",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.S("design:type",Boolean)],rg.prototype,"hasActionButton",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.S("design:type",Boolean)],rg.prototype,"hasBottomSection",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.S("design:type",Boolean)],rg.prototype,"missingSource",void 0);_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",String)],rg.prototype,"icon",void 0);_.x([_.V({computed:"computeIcon_(data.secondaryIcon)"}),_.S("design:type",String)],rg.prototype,"secondaryIcon",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.S("design:type",String)],rg.prototype,"clarifyStyle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.S("design:type",String)],rg.prototype,"backgroundStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rg.prototype,"roundContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],rg.prototype,"amsterdamEnabled",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rg.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-clarification-renderer",disableElementRegistration:!0})],rg);
_.y(rg,"ytd-clarification-renderer",function(){if(KJq!==void 0)return KJq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return KJq=m},{mode:1});var WJD;_.Kz("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var uj=function(){return _.d.apply(this,arguments)||this};
_.n(uj,_.d);_.w=uj.prototype;_.w.computeHasPrimaryIcon=function(m){return!(!m.icon&&!m.thumbnail)};
_.w.computeHasSecondary=function(m){return!(!m.secondaryIcon&&!m.secondaryNotificationText)};
_.w.computeHideSecondaryString=function(m){return!_.F("disable_hide_empty_secondary_string")&&!m.secondaryNotificationText};
_.w.computeCompactLinkStyle=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeHasFitHeight=function(m){return m==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.w.isActiveEndpoint=function(m){return(m=this.get("commandMetadata.webCommandMetadata.url",m))?_.f6(window.location.href)!=="/account_transfer_channel"&&_.f6(window.location.href)!=="/gaia_link"&&_.f6(window.location.href)!=="/channel_switcher"||m!=="/account"?_.f6(window.location.href)===m:!0:!1};
_.w.onTap=function(){var m;((m=this.data)==null?0:m.serviceEndpoint)&&_.yQ(this.hostElement,[this.data.serviceEndpoint])};
uj.prototype.onTap=uj.prototype.onTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.S("design:type",Boolean)],uj.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.S("design:type",String)],uj.prototype,"compactLinkStyle",void 0);
_.x([_.V({computed:"computeIcon_(data.icon)"}),_.S("design:type",Object)],uj.prototype,"icon",void 0);_.x([_.V({computed:"computeIcon_(data.secondaryIcon)"}),_.S("design:type",Object)],uj.prototype,"secondaryIcon",void 0);_.x([_.V({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],uj.prototype,"hasSecondary",void 0);_.x([_.V({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],uj.prototype,"hideSecondaryString",void 0);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uj.prototype,"onTap",null);_.x([_.Ye({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],uj);
_.y(uj,"ytd-compact-link-renderer",function(){if(WJD!==void 0)return WJD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return WJD=m},{mode:1});var LJ6;var ANs;var hn=function(){var m=_.d.apply(this,arguments)||this;m.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return m};
_.n(hn,_.d);_.w=hn.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.w.computeIcon=function(m){return m?"yt-icons:"+m.toLowerCase():null};
_.w.computeUseContacts=function(m){return!!m.contacts&&m.contacts.length>0};
_.w.computePhoneContact=function(m){var G,K;return(G=m.contacts)==null?void 0:(K=G.find(function(W){var L;return(W==null?void 0:(L=W.icon)==null?void 0:L.iconType)==="PHONE"}))==null?void 0:K.actionText};
_.w.computeSmsContact=function(m){var G,K;return(G=m.contacts)==null?void 0:(K=G.find(function(W){var L;return(W==null?void 0:(L=W.icon)==null?void 0:L.iconType)==="SMS"}))==null?void 0:K.actionText};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hn.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],hn.prototype,"amsterdamEnabled",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.S("design:type",Boolean)],hn.prototype,"useContacts",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.S("design:type",String)],hn.prototype,"phoneContact",void 0);_.x([_.Ye({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],hn);
_.y(hn,"ytd-single-action-emergency-support-renderer",function(){if(ANs!==void 0)return ANs;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ANs=m},{mode:1});_.Kz("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var pH=function(){var m=_.d.apply(this,arguments)||this;m.roundedContainer=!0;m.amsterdamEnabled=_.F("enable_desktop_amsterdam_info_panels");return m};
_.n(pH,_.d);pH.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pH.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],pH.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],pH.prototype,"amsterdamEnabled",void 0);
_.x([_.Ye({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],pH);
_.y(pH,"ytd-emergency-onebox-renderer",function(){if(LJ6!==void 0)return LJ6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return LJ6=m},{mode:1});var w7z;_.Kz("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Jn=function(){return _.d.apply(this,arguments)||this};
_.n(Jn,_.d);Jn.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Jn.prototype,"data",void 0);_.x([_.Ye({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Jn);
_.y(Jn,"ytd-exploratory-results-renderer",function(){if(w7z!==void 0)return w7z;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return w7z=m},{mode:1});var gpO;_.Kz("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var ND=function(){var m=_.d.apply(this,arguments)||this;m.messageData=null;return m};
_.n(ND,_.d);_.w=ND.prototype;_.w.onServiceRequestCompleted=function(m,G){m=G.actions||[];G=0;for(var K=m.length;G<K;G++){var W=m[G],L=void 0,A=void 0;if((L=_.Q(W,_.Rk))==null?0:(A=L.item)==null?0:A.messageRenderer)this.messageData=_.Q(W,_.Rk).item.messageRenderer}};
_.w.dataChanged=function(){var m=this.data;this.hostElement.hidden=!1;_.dF(this.hostElement,"is-channel",m&&!m.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.w.computeThumbnailWidth=function(m){return m?126:56};
_.w.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.w.onSubmitTap=function(){var m=this.data,G=this.selectedResponseIndex;m!==void 0&&G!==void 0&&(m=m.responses[G],m.responseData&&_.xS().resolve(_.S1).resolveCommand(m.responseData,{form:{element:this.hostElement}}))};
_.w.onDismissTap=function(){this.hostElement.hidden=!0;var m=this.data;m!==void 0&&m.dismissalEndpoint&&_.xS().resolve(_.S1).resolveCommand(m.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.updateSelectedResponseIndexFromBinding=function(m){this.selectedResponseIndex=m.detail.value};
ND.prototype.onSelectedResponseIndexChange=ND.prototype.onSelectedResponseIndexChange;ND.prototype.dataChanged=ND.prototype.dataChanged;ND.prototype.onServiceRequestCompleted=ND.prototype.onServiceRequestCompleted;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ND.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ND.prototype,"messageData",void 0);
_.x([_.V(),_.S("design:type",Number)],ND.prototype,"selectedResponseIndex",void 0);_.x([_.UM("#submit-button"),_.S("design:type",HTMLButtonElement)],ND.prototype,"submitButton",void 0);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],ND.prototype,"onServiceRequestCompleted",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ND.prototype,"dataChanged",null);
_.x([_.Sb("selectedResponseIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ND.prototype,"onSelectedResponseIndexChange",null);_.x([_.Ye({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],ND);
_.y(ND,"ytd-feedback-elicitation-single-question-renderer",function(){if(gpO!==void 0)return gpO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return gpO=m},{mode:1});var OEz;var Du=function(){return _.d.apply(this,arguments)||this};
_.n(Du,_.d);Du.prototype.computeIconType=function(m){return m?"yt-icons:"+m.toLowerCase():null};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Du.prototype,"data",void 0);_.x([_.Ye({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Du);
_.y(Du,"ytd-limited-state-message-renderer",function(){if(OEz!==void 0)return OEz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return OEz=m},{mode:1});var cNG;var tn=function(){return _.d.apply(this,arguments)||this};
_.n(tn,_.d);tn.prototype.computeThumbnailWidth=function(m){return m?602:428};
tn.prototype.updateWideFromBinding=function(m){this.wide=m.detail.value};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tn.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],tn.prototype,"wide",void 0);_.x([_.Ye({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],tn);
_.y(tn,"ytd-newspaper-hero-video-renderer",function(){if(cNG!==void 0)return cNG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return cNG=m},{mode:1});var YFW;var rNq=function(){return _.d.apply(this,arguments)||this};
_.n(rNq,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rNq.prototype,"rendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rNq.prototype,"data",void 0);_.x([_.Ye({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],rNq);
_.y(rNq,"ytd-newspaper-mini-video-renderer",function(){if(YFW!==void 0)return YFW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return YFW=m},{mode:1});var uy6;_.Kz("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var FI=function(){return _.d.apply(this,arguments)||this};
_.n(FI,_.d);FI.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"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FI.prototype,"data",void 0);_.x([_.Ye({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],FI);
_.y(FI,"ytd-newspaper-renderer",function(){if(uy6!==void 0)return uy6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return uy6=m},{mode:1});var hQq;_.Kz("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Qg=function(){var m=_.d.apply(this,arguments)||this;m.isSegment=!1;m.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};m.nextContinuation={continuationType:"playlistVideoListContinuation"};return m};
_.n(Qg,_.d);_.w=Qg.prototype;_.w.created=function(){var m=this;this.JSC$20551_ytReorderableController=new _.qIo(101,function(G){m.handleDrop(G)})};
_.w.attached=function(){_.xS();var m;(m=_.xS().resolve(_.fn(_.iI)))!=null&&(m.playlistVideoListElement=this.hostElement)};
_.w.detached=function(){var m;(m=_.xS().resolve(_.fn(_.iI)))!=null&&(m.playlistVideoListElement=void 0);m=_.xS().resolve(_.fn(_.eu));_.F("web_enable_voting_animation")&&m&&(m.parentElem=void 0,m.videos=[],m.continuationsPresent=!1,m.showRefreshPill=!1);_.UW(this.JSC$20551_ytReorderableController)};
_.w.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"}}}}}};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.w.dataChanged=function(){var m=_.xS().resolve(_.fn(_.eu));if(_.F("web_enable_voting_animation")&&this.data&&m){var G=_.VL(this.hostElement).querySelector("#contents");G&&(m.parentElem=G);m.addVideos(this.data.contents)}_.UW(this.JSC$20551_ytReorderableController)};
_.w.onRendererstamperFinished=function(){this.canReorder&&_.EcB(this.JSC$20551_ytReorderableController,_.VL(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.w.onPlaylistReloading=function(){this.isReloading=!0};
_.w.onUpdateSetVideoId=function(m){if(m.detail&&this.data&&this.data.contents){var G=m.detail;m=this.data.contents.findIndex(function(L){var A;return((A=L.playlistVideoRenderer)==null?void 0:A.videoId)===G.videoId});
if(!(m<0)&&G.setVideoId&&(this.set("data.contents."+m+".playlistVideoRenderer.setVideoId",G.setVideoId),_.F("web_enable_voting_animation"))){var K;if(m=_.Q((K=this.data.contents[m].playlistVideoRenderer)==null?void 0:K.engagementBar,_.gaG)){var W;(W=m.actions)==null||W.forEach(function(L){if(L=_.Q(L,_.O7F))L.itemId=G.setVideoId})}(K=_.xS().resolve(_.fn(_.eu)))&&WPs(K,G.videoId,G.setVideoId)}}};
_.w.computeContentsClass=function(m){return m?"reloading":""};
_.w.computeIsSortable=function(m,G){return m&&G>0&&!this.isSegment&&!_.F("shorts_in_playlists_web")};
_.w.computeIsEditable=function(m){return m};
_.w.computeCanReorder=function(m){return m};
_.w.handlePlaylistRemoveVideosAction=function(m){if(this.get("playlistRemoveVideosAction.setVideoIds",m)&&this.data&&this.data.contents){m=_.Q(m,_.i$C).setVideoIds;for(var G=this.data.contents.length-1;G>=0;){var K=this.data.contents[G].playlistVideoRenderer;K&&K.setVideoId&&m.includes(K.setVideoId)&&this.splice("data.contents",G,1);G--}_.dU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.w.updateIndices=function(){if(this.data&&this.data.contents)for(var m=0;m<this.data.contents.length;m++)this.set("data.contents."+m+".playlistVideoRenderer.index",_.nG(String(m+1)))};
_.w.handleDrop=function(m){m=m.currDragItem;var G=_.Cs(m.parentNode.childNodes,m),K=this.data.contents.splice(Number(_.bw(m.data.index))-1,1)[0];this.data.contents.splice(G,0,K);G=G?this.get("contents."+(G-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();m=this.buildReorderServiceEndpoint(m.data.setVideoId,G);this.ytComponentBehavior.resolveCommand(m)};
_.w.buildReorderServiceEndpoint=function(m,G){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",m),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",G),this.data.onReorderEndpoint):null};
_.w.handleUpdatePlaylistAction=function(m){var G;(m=_.Q((G=_.Q(m,_.GUP))==null?void 0:G.updatedRenderer,_.Ax0))&&this.canReorder!==m.canReorder&&this.set("data.canReorder",m.canReorder);m&&m.contents&&(this.set("data.contents",m.contents),this.isReloading=!1);m&&m.continuations&&this.set("data.continuations",m.continuations)};
_.w.handleAddRendererToItemSectionAction=function(m){var G,K=(G=_.Q(m,RpW))==null?void 0:G.renderer,W;K&&((W=_.Q(m,RpW))==null?void 0:W.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,K),m=_.xS().resolve(_.fn(_.eu)),_.F("web_enable_voting_animation")&&m&&(K&&(G=_.wav(K))&&m.recommendedVideos.push({itemId:G,videoId:_.ccJ(K),voteCount:_.YNJ(K),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.w.isVotingEnabledOnPlaylist=function(m){if(!m)return!1;m=_.g(m);for(m=m.next();!m.done;m=m.next()){var G=void 0;return!!_.Q((G=m.value.playlistVideoRenderer)==null?void 0:G.engagementBar,_.gaG)}return!1};
_.w.onAppendContinuationItemsActionFinished=function(){var m;this.isVotingEnabledOnPlaylist((m=this.data)==null?void 0:m.contents)&&(this.updateIndices(),m=_.xS().resolve(_.fn(_.eu)),_.F("web_enable_voting_animation")&&m&&this.data&&m.addVideos(this.data.contents))};
_.w.updateVideoData=function(m){if(m.detail&&this.data&&this.data.contents){var G=m.detail;m=G.toIdx;var K=G.itemId,W=G.newVoteCount,L=G.voteStatus;G=G.hideItem;var A,O,c=(A=this.data)==null?void 0:(O=A.contents)==null?void 0:O.findIndex(function(N){return _.wav(N)===K});
if(!(c<0)){A=this.data.contents[c];var u;if((u=A.playlistVideoRenderer)==null?0:u.voteCount)A.playlistVideoRenderer.voteCount=W;var h;if(u=_.Q((h=A.playlistVideoRenderer)==null?void 0:h.engagementBar,_.gaG)){var J;(J=u.actions)==null||J.forEach(function(N){(N=_.Q(N,_.O7F))&&N.initialState&&(N.initialState.votes=W,N.initialState.status=L)})}this.data.contents.splice(c,1);
G||this.data.contents.splice(m,0,A);this.updateIndices()}}};
Qg.prototype.updateVideoData=Qg.prototype.updateVideoData;Qg.prototype.onAppendContinuationItemsActionFinished=Qg.prototype.onAppendContinuationItemsActionFinished;Qg.prototype.onUpdateSetVideoId=Qg.prototype.onUpdateSetVideoId;Qg.prototype.onPlaylistReloading=Qg.prototype.onPlaylistReloading;Qg.prototype.onRendererstamperFinished=Qg.prototype.onRendererstamperFinished;Qg.prototype.dataChanged=Qg.prototype.dataChanged;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Qg.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],Qg.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.q(_.n4),_.S("design:type",Object)],Qg.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Qg.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qg.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],Qg.prototype,"isReloading",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Qg.prototype,"isSegment",void 0);
_.x([_.V({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.S("design:type",Boolean)],Qg.prototype,"isSortable",void 0);_.x([_.V({computed:"computeIsEditable(data.isEditable)"}),_.S("design:type",Boolean)],Qg.prototype,"isEditable",void 0);_.x([_.V({computed:"computeCanReorder(data.canReorder)"}),_.S("design:type",Boolean)],Qg.prototype,"canReorder",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qg.prototype,"dataChanged",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qg.prototype,"onRendererstamperFinished",null);_.x([_.XC("yt-playlist-reloading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qg.prototype,"onPlaylistReloading",null);
_.x([_.XC("yt-update-set-video-id"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Qg.prototype,"onUpdateSetVideoId",null);_.x([_.XC("yt-append-continuation-items-action-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Qg.prototype,"onAppendContinuationItemsActionFinished",null);
_.x([_.XC("yt-update-video-data-voting-animation"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Qg.prototype,"updateVideoData",null);_.x([_.Ye({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Qg);
_.y(Qg,"ytd-playlist-video-list-renderer",function(){if(hQq!==void 0)return hQq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return hQq=m},{mode:2});var p75;var aj=function(){return _.d.apply(this,arguments)||this};
_.n(aj,_.d);aj.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"}}}}};
aj.prototype.onTextWrapperTap=function(m){var G=this.data&&this.data.navigationEndpoint;G&&!_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:G})};
aj.prototype.dataChanged=function(){var m=this.get("data.offerButton.buttonRenderer.serviceEndpoint");m&&m.commandMetadata&&_.Q(m.commandMetadata,_.MA)&&_.Q(m.commandMetadata,_.MA).fireAutomatically&&_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})};
aj.prototype.dataChanged=aj.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Dn),_.S("design:type",Object)],aj.prototype,"ytdLockupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],aj.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],aj.prototype,"biggerThumbsStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],aj.prototype,"leftAligned",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aj.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-movie-renderer"})],aj);
_.y(aj,"ytd-movie-renderer",function(){if(p75!==void 0)return p75;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return p75=m},{mode:1});var JNq={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(m){if(m&&m.length==1&&Array.isArray(m[0].loggingUrls)){m=_.Y2.unsafeClone(m[0]);var G=this.macros||{},K=this.getAdModuleClient_();if(!K)return _.fJ();m.loggingUrls.forEach(function(W){if(W.baseUrl){var L=W.baseUrl;var A=G;A=A===void 0?{}:A;L=K.getOptions().includes("replaceUrlMacros")?_.S24(K,"replaceUrlMacros",{url:L,additionalMapping:A}):L;W.baseUrl=L}},this);
m=[m]}return _.yQ(this.hostElement,m)},
getAdModuleClient_:function(){var m=_.qW(this);return m?(m=m.getPlayer())?new _.Ae(m):null:null}}]};var Nos;var oj=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_modern_buttons");m.buttonOverrides={style:"call-to-action",type:"filled"};return m};
_.n(oj,_.d);oj.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=_.OM(this.data.backgroundColor)))};
oj.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var m=this.getFormattedStringLoggingDirectives(this.data.headline);m&&this.rendererBehavior.logExplicitClick(m)}};
oj.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var m=this.getFormattedStringLoggingDirectives(this.data.description);m&&this.rendererBehavior.logExplicitClick(m)}};
oj.prototype.getFormattedStringLoggingDirectives=function(m){return m&&m.runs&&m.runs.length>0&&m.runs[0]&&m.runs[0].loggingDirectives?m.runs[0].loggingDirectives:null};
oj.prototype.dataChanged=oj.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oj.prototype,"rendererBehavior",void 0);_.x([_.q(JNq.YtMacroReplacementBehavior),_.S("design:type",Object)],oj.prototype,"macroReplacementBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],oj.prototype,"navigationEndpoint",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],oj.prototype,"enableColors",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],oj.prototype,"modern",void 0);_.x([_.V(),_.S("design:type",Object)],oj.prototype,"buttonOverrides",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oj.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],oj);
_.y(oj,"ytd-action-basic-immersive-content-renderer",function(){if(Nos!==void 0)return Nos;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Nos=m},{mode:1});var Dn6;var teu;var nH=function(){return _.d.apply(this,arguments)||this};
_.n(nH,_.d);nH.prototype.dataChanged=function(){var m;((m=this.data)==null?void 0:m.backgroundColor)!==void 0&&_.eb(this.hostElement,{"--bgu-color":_.OM(this.data.backgroundColor)})};
nH.prototype.onImageTileClick=function(){var m;((m=this.data)==null?0:m.navigationEndpoint)&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var G;((G=this.data)==null?0:G.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.e_.Object.defineProperties(nH.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var m;if(((m=this.data)==null?void 0:m.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 m;return((m=this.data)==null?void 0:m.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var m,G,K;if(((m=this.data)==null?void 0:(G=m.detailsLine)==null?void 0:G.texts)!=null&&((K=this.data)==null?void 0:K.detailsLine.texts.length)>0){var W;return(W=this.data)==null?void 0:W.detailsLine.texts.map(function(L){return L.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var m,G,K;if(((m=this.data)==null?void 0:(G=m.optionalDetailsLine)==null?void 0:G.texts)!=null&&((K=this.data)==null?void 0:K.optionalDetailsLine.texts.length)>0){var W;return(W=this.data)==null?void 0:W.optionalDetailsLine.texts.map(function(L){return L.text}).join("")}return null}}});
nH.prototype.dataChanged=nH.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nH.prototype,"rendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],nH.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nH.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.backgroundColor"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],nH.prototype,"hasBackgroundColor",null);
_.x([_.E("data.objectFit"),_.S("design:type",Object),_.S("design:paramtypes",[])],nH.prototype,"getObjectFit",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.tileRenderingStyle"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],nH.prototype,"hasTileMetadata",null);_.x([_.E("data.detailsLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],nH.prototype,"getSecondaryDetails",null);
_.x([_.E("data.optionalDetailsLine"),_.S("design:type",Object),_.S("design:paramtypes",[])],nH.prototype,"getOptionalDetails",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nH.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],nH);
_.y(nH,"ytd-image-tile-renderer",function(){if(teu!==void 0)return teu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return teu=m},{mode:1});var FJO;var bj=function(){return _.d.apply(this,arguments)||this};
_.n(bj,_.d);bj.prototype.getOpenLinkIcon=function(){return _.F("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
bj.prototype.onSitelinkTap=function(){_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.F("kevlar_command_handler_migration_killswitch"))_.eD(this.hostElement,this.data.clickCommands,this.hostElement);else for(var m=_.g(this.data.clickCommands),G=m.next();!G.done;G=m.next())this.ytComponentBehavior.resolveCommand(G.value)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bj.prototype,"rendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bj.prototype,"data",void 0);_.x([_.Ye({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],bj);
_.y(bj,"ytd-sitelink-renderer",function(){if(FJO!==void 0)return FJO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return FJO=m},{mode:1});var v6=function(){var m=_.d.apply(this,arguments)||this;m.paddingFix=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return m};
_.n(v6,_.d);v6.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"}}}};
v6.prototype.dataChanged=function(){var m=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;m.ytMacroReplacementBehavior.sendServiceRequestAction([G])})};
v6.prototype.shouldHideFooter=function(m){return!(m&&_.F("use_ads_engagement_panel_desktop_footer_cta"))};
_.e_.Object.defineProperties(v6.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(K){var W;return(W=_.Q(K,xUi))==null?void 0:W.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.imageTileRenderers)===void 0||((G=this.data)==null?void 0:G.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(K){var W;return((W=_.Q(K,xUi))==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
v6.prototype.dataChanged=v6.prototype.dataChanged;_.x([_.q(JNq.YtMacroReplacementBehavior),_.S("design:type",Object)],v6.prototype,"ytMacroReplacementBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],v6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],v6.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],v6.prototype,"paddingFix",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.imageTileRenderers"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],v6.prototype,"removeBorderFromImageTiles",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.imageTileRenderers"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],v6.prototype,"useFooteredMetadataRenderingStyle",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],v6.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],v6);
_.y(v6,"ytd-action-engagement-panel-content-renderer",function(){if(Dn6!==void 0)return Dn6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Dn6=m},{mode:1});var QcG;var atP=_.P(function(m){var G=m.data;var K=m.customCommandResolver;return _.r("ad-grid-card-image-full-metadata-view-model",{class:function(){var W;return((W=G().interaction)==null?0:W.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_}),_.h3(function(){return G().interaction},K)),
"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(W){return _.r(_.kU,{data:W.data,
customCommandResolver:K})}})),_.r("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.r(_.p,{cond:function(){return G().headline},
then:function(W){return _.r(_.Nm,{text:W,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.r(_.p,{cond:function(){return G().detailsLine},
then:function(W){return _.r("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.r(_.z$,{data:W},{adDetailsLineViewModel:function(L){return _.r(_.eS,{data:L.data,customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.r(_.p,{cond:function(){return G().secondaryDetailsLine},
then:function(W){return _.r("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.r(_.z$,{data:W},{adDetailsLineViewModel:function(L){return _.r(_.eS,{data:L.data,customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Bh");var opW=_.P(function(m){var G=m.data;var K=m.customCommandResolver;return _.r("ad-grid-card-image-view-model",{class:function(){var W;return((W=G().interaction)==null?0:W.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_}),_.h3(function(){return G().interaction},K)),
"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(W){return _.r(_.kU,{data:W.data,
customCommandResolver:K})}}),_.r("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.r(_.z$,{data:function(){return G().adCardBadge}},{adCardBadgeViewModel:_.MVR})))},"Ch");var np5=_.P(function(m){var G=m.data;var K=m.customCommandResolver;return _.r("ad-grid-card-text-view-model",{class:function(){var W;return((W=G().interaction)==null?0:W.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_}),_.h3(function(){return G().interaction},K)),
"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.r(_.p,{cond:function(){return G().title},
then:function(W){return _.r(_.Nm,{text:W,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.r("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.r(_.D0,{each:function(){var W;
return((W=G())==null?void 0:W.descriptions)||[]},
keyBy:"INDEX"},function(W){return _.r(_.Nm,{text:W,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.r("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.r(_.z$,{data:function(){return G().moreInfoButton}},{adButtonViewModel:function(W){return _.r(_.Cf,{data:W.data,
customCommandResolver:K})}})))},"Dh");var bE6=_.P(function(m){var G=m.data;var K=m.customCommandResolver;var W=m.adGridCardCollectionStyle;return _.r("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(L){var A,O=(A=G().interaction)==null?void 0:A.onFirstVisible;L&&O&&_.h$(O)},
showOption:_.I_})),style:function(){return"grid-template-columns: repeat("+AoP(W?W():G().style)+", minmax(0, 1fr));"}},_.r(_.z$,{data:function(){var L;
return(L=G())==null?void 0:L.gridCards}},{adGridCardImageViewModel:function(L){return _.r(opW,{data:L.data,
customCommandResolver:K})},
adGridCardImageFullMetadataViewModel:function(L){return _.r(atP,{data:L.data,customCommandResolver:K})},
adGridCardTextViewModel:function(L){return _.r(np5,{data:L.data,customCommandResolver:K})}}))},"Eh");_.sh(_.P(function(m){var G=m.data;return _.r("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.aC(_.eN({visibilityCallback:function(K){var W,L=(W=G().interaction)==null?void 0:W.onFirstVisible;K&&L&&_.h$(L)},
showOption:_.I_}),_.h3(function(){return G().interaction},gg6))},_.r("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.r(_.p,{cond:_.vBG("(min-width: "+(Tu()+mc)+"px)"),
then:function(){return _.r(_.z$,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(K){return _.r(bE6,{data:K.data,
customCommandResolver:gg6})}})},
else:function(){return _.r(_.z$,{data:function(){return G().adGridCardCollection}},{adGridCardCollectionViewModel:function(K){return _.r(bE6,{data:K.data,
customCommandResolver:gg6,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.r("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.r(_.z$,{data:function(){return G().adButton}},{adButtonViewModel:function(K){return _.r(_.Cf,{data:K.data,
customCommandResolver:gg6})}})))},"Fh"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;return _.r("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.aC(_.eN({visibilityCallback:function(K){var W,L=(W=G().interaction)==null?void 0:W.onFirstVisible;K&&L&&_.h$(L)},
showOption:_.I_}),_.h3(function(){return G().interaction},OzD))},_.r("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.r(_.z$,{data:function(){if(_.vBG("(min-width: "+(Tu()+mc)+"px)")())var K=G().adGridCardCollection;
else{K=Object.assign({},_.Q(G().adGridCardCollection,Sx6));var W;K.gridCards!==void 0&&((W=K.gridCards)==null?void 0:W.length)>1?K.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":K.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";K={adGridCardCollectionViewModel:K}}return K}},{adGridCardCollectionViewModel:function(K){return _.r(bE6,{data:K.data,
customCommandResolver:OzD})}})),_.r("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.r(_.z$,{data:function(){return G().adButton}},{adButtonViewModel:function(K){return _.r(_.Cf,{data:K.data,
customCommandResolver:OzD})}})))},"Gh"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Dd}});var $s=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return m};
_.n($s,_.d);_.w=$s.prototype;_.w.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"}}}};
_.w.attached=function(){this.getDataFromPlayerAndRender()};
_.w.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.w.getDataFromPlayerAndRender=function(){var m=this,G=_.qW(this.hostElement);G&&G.getPlayerPromise().then(function(K){m.getCachedDataAndListen(K)})};
_.w.getCachedDataAndListen=function(m){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(m,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(m,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=m)};
_.w.resolveCachedActions=function(){var m=_.Cn("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(m=m&&m())&&!_.Y2.isEmpty(m)&&this.sendUpdateEngagementPanelAction(m);(m=(m=_.Cn("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&m())&&!_.Y2.isEmpty(m)&&this.sendChangeEngagementPanelVisibilityAction(m);(m=(m=_.Cn("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&m())&&!_.Y2.isEmpty(m)&&this.sendScrollToEngagementPanelCommand(m)};
_.w.sendUpdateEngagementPanelAction=function(m){var G;_.dU(this.hostElement,"yt-update-engagement-panel-action",[(G=_.Y2.get(m,"action"))!=null?G:m])};
_.w.sendChangeEngagementPanelVisibilityAction=function(m){_.dU(this.hostElement,"yt-change-engagement-panel-visibility-action",[m])};
_.w.sendScrollToEngagementPanelCommand=function(m){_.dU(this.hostElement,"yt-scroll-to-engagement-panel-command",[m])};
_.w.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.F("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.nc(Error("Bl"))};
$s.prototype.dataChanged=$s.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],$s.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],$s.prototype,"componentBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],$s.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$s.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$s.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],$s.prototype,"player",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$s.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],$s);
_.y($s,"ytd-ads-engagement-panel-content-renderer",function(){if(QcG!==void 0)return QcG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return QcG=m},{mode:1});var vpi;var su=function(){var m=_.d.apply(this,arguments)||this;m.player=null;m.JSC$20589_playerEvents=new Map;m.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return m};
_.n(su,_.d);_.w=su.prototype;_.w.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]]"}}}}}};
_.w.created=function(){this.player=null;this.JSC$20589_playerEvents=new Map;this.JSC$20589_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20589_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20589_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20589_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.w.attached=function(){var m=this,G=_.qW();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));G&&G.getPlayerPromise().then(function(K){m.setPlayer(K);m.set("isPageLoad",!1)})};
_.w.setPlayer=function(m){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20589_playerEvents);this.set("player",m);m&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(m,this.JSC$20589_playerEvents),m.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.w.onLoopRangeChange=function(m){var G=_.xS().resolve(_.fn(_.$g));if((!G||G.isOnWatch())&&this.hostElement.clientHeight){var K;!m&&((K=this.data)==null?0:K.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.w.onVideoProgress=function(m){var G,K,W=((G=this.player)==null?void 0:(K=G.getPresentingPlayerType)==null?void 0:K.call(G))===2;this.isAdPlaying!==W&&this.set("isAdPlaying",W);var L;if(!W&&(L=this.player)!=null&&L.getLoopRange()){K=this.player.getLoopRange();G=K.startTimeMs;K=K.endTimeMs;W=this.player.getProgressState(1).seekableStart;var A;G<W*1E3&&((A=this.data)==null?0:A.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
m=K<m*1E3;var O;((O=this.player)==null?0:O.getLoopRange())&&m&&this.player.seekTo(G/1E3)}};
_.w.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.w.onYtDeleteClipEngagementPanelCommand=function(m){_.Q(m,$r6).command&&this.ytComponentBehavior.resolveCommand(_.Q(m,$r6).command)};
_.e_.Object.defineProperties(su.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.voteCount)||_.nG("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],su.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],su.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],su.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],su.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],su.prototype,"isAdPlaying",void 0);_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],su.prototype,"isPageLoad",void 0);_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],su.prototype,"isDarkTheme",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],su.prototype,"voteCount",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],su.prototype,"channelEndpoint",null);_.x([_.E("channelEndpoint"),_.S("design:type",Object),_.S("design:paramtypes",[])],su.prototype,"channelHref",null);_.x([_.Ye({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],su);
_.y(su,"ytd-clip-attribution-renderer",function(){if(vpi!==void 0)return vpi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return vpi=m},{mode:1});var $nG;var qD=function(){var m=_.d.apply(this,arguments)||this;m.player=null;m.JSC$20594_playerEvents=new Map;return m};
_.n(qD,_.d);_.w=qD.prototype;_.w.created=function(){this.player=null;this.JSC$20594_playerEvents=new Map;this.JSC$20594_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20594_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20594_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.w.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.w.attached=function(){var m=this,G=_.qW();G&&G.getPlayerPromise().then(function(K){m.setPlayer(K);m.set("isPageLoad",!1)})};
_.w.setPlayer=function(m){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20594_playerEvents);this.set("player",m);if(m){this.ytPlayerListenerBehavior.listenToPlayerEvents(m,this.JSC$20594_playerEvents);var G;(m==null?void 0:(G=m.getPresentingPlayerType)==null?void 0:G.call(m))===2&&this.playerAdStartHandler()}};
_.w.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.w.onVideoProgress=function(){var m,G,K=((m=this.player)==null?void 0:(G=m.getPresentingPlayerType)==null?void 0:G.call(m))===2;this.isAdPlaying!==K&&this.set("isAdPlaying",K)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],qD.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qD.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],qD.prototype,"isAdPlaying",void 0);
_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],qD.prototype,"isPageLoad",void 0);_.x([_.Ye({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],qD);
_.y(qD,"ytd-clip-section-footer-renderer",function(){if($nG!==void 0)return $nG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return $nG=m},{mode:1});var sci;var qF6;var Ep6=function(){return _.d.apply(this,arguments)||this};
_.n(Ep6,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ep6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ep6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],Ep6);
_.y(Ep6,"ytd-clip-ad-state-renderer",function(){if(qF6!==void 0)return qF6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qF6=m},{mode:1});var HEi;var Eu=function(){var m=_.d.apply(this,arguments)||this;m.value="";m.valid=!1;m.userChangedValue=!1;m.disabled=!1;m.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return m};
_.n(Eu,_.d);_.w=Eu.prototype;_.w.detached=function(){this.userChangedValue=!1};
_.w.handleKeyDown=function(m){if(_.lY)var G=13;else _.M0P&&_.zb?G=13:G=13;m.keyCode===G&&m.preventDefault()};
_.w.handleInput=function(){var m=_.VL(this.hostElement).querySelector("#title");if(m){var G=(m.value||"").replace(/\r|\n/g," ");this.set("value",G);m.value=G;this.valid=m.validate();this.userChangedValue=!0}};
_.w.handleBlur=function(){this.valid=_.VL(this.hostElement).querySelector("#title").validate()};
_.w.onValueChanged=function(){_.Zw(this.hostElement,"title-changed",{title:this.value})};
_.w.onValidChanged=function(){_.Zw(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.w.setInput=function(m,G){var K=_.VL(this.hostElement).querySelector("#title");K&&(K.value=m,this.handleInput(),G&&(K.invalid=!1,this.valid=!0))};
_.w.onClipCreationDisable=function(){this.set("disabled",!0)};
_.w.onClipCreationEnable=function(){this.set("disabled",!1)};
_.w.onClipCreationVisibilityChange=function(m){var G=this;m.visible?requestAnimationFrame(function(){var K;((K=_.VL(G.hostElement).querySelector("#title"))==null?void 0:K.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
Eu.prototype.onValidChanged=Eu.prototype.onValidChanged;Eu.prototype.onValueChanged=Eu.prototype.onValueChanged;Eu.prototype.handleBlur=Eu.prototype.handleBlur;Eu.prototype.handleInput=Eu.prototype.handleInput;Eu.prototype.handleKeyDown=Eu.prototype.handleKeyDown;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Eu.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Eu.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Eu.prototype,"value",void 0);_.x([_.V(),_.S("design:type",Object)],Eu.prototype,"valid",void 0);_.x([_.V(),_.S("design:type",Object)],Eu.prototype,"userChangedValue",void 0);_.x([_.V(),_.S("design:type",Object)],Eu.prototype,"disabled",void 0);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Eu.prototype,"handleKeyDown",null);
_.x([_.XC("input"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Eu.prototype,"handleInput",null);_.x([_.XC("blur"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Eu.prototype,"handleBlur",null);_.x([_.Sb("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Eu.prototype,"onValueChanged",null);
_.x([_.Sb("valid"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Eu.prototype,"onValidChanged",null);_.x([_.Ye({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],Eu);
_.y(Eu,"ytd-clip-creation-text-input-renderer",function(){if(HEi!==void 0)return HEi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HEi=m},{mode:1});var It6;var jcD;var kSi;var Cti;var VeO;var H6=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};m.pendingStoryboardImages_={};m.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];m.tickLabelInterval=30;m.mediumTickInterval=5;m.largeTickInterval=15;m.aboveRulerHeight=32;m.rulerHeight=50;m.smallTickHeight=4;m.mediumTickHeight=8;m.largeTickHeight=16;m.mediaListeners_=
{};return m};
_.n(H6,_.d);_.w=H6.prototype;_.w.attached=function(){var m=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(G){G=_.g(["screen and (min-resolution: "+G+")","screen and (max-resolution: "+G+")"]);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=window.matchMedia(K);W&&(m.mediaListeners_[K]=m.updatePixelRatio_.bind(m),W.addEventListener?W.addEventListener("change",m.mediaListeners_[K]):W.addListener?W.addListener(m.mediaListeners_[K]):delete m.mediaListeners_[K])}})};
_.w.detached=function(){this.setPlayer(null);for(var m=_.g(Object.keys(this.mediaListeners_)),G=m.next();!G.done;G=m.next()){var K=G.value;G=this.mediaListeners_[K];(K=window.matchMedia(K))&&(K.removeEventListener?K.removeEventListener("change",G):K.removeListener&&K.removeListener(G))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.w.onVisibilityChangedAction_=function(m){var G=this;m.visible&&!this.player_&&(m=_.qW())&&m.getPlayerPromise().then(function(K){G.setPlayer(K)})};
_.w.setPlayer=function(m){m&&this.set("player_",m)};
_.w.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.w.setUpCanvas_=function(){var m=this.rulerWidth,G=this.devicePixelRatio_,K=this.visible;this.set("canvasReady_",!1);if(K&&G!==0){K=this.aboveRulerHeight+this.rulerHeight;var W=_.VL(this.hostElement).querySelector("#ticks");W.width=m*G;W.height=K*G;W.style.width=m+"px";W.style.height=K+"px";W.getContext("2d").scale(G,G);this.set("canvasReady_",!0)}};
_.w.drawRuler_=function(m,G,K,W,L,A,O,c,u,h,J,N){m&&K&&G&&(m=_.VL(this.hostElement).querySelector("#ticks"),G=m.getContext("2d"),G.clearRect(0,0,m.width,m.height),G.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),G.lineWidth=2,G.beginPath(),G.moveTo(0,this.aboveRulerHeight),G.lineTo(m.width,this.aboveRulerHeight),G.moveTo(0,m.height),G.lineTo(m.width,m.height),G.stroke(),this.drawRulerTicks_(m,A,L,W),this.drawStoryboardImages_(m,K,A,L,W),G.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
G.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(O-A,W,!1),this.rulerHeight),K=this.timeToPixels_(c-A,W,!1),G.fillRect(K,this.aboveRulerHeight,m.width-K,this.rulerHeight),this.drawSpeedLines_(m,A,N))};
_.w.drawRulerTicks_=function(m,G,K,W){var L=m.getContext("2d");L.save();L.lineWidth=1;for(var A=Math.floor(Math.max(0,G-this.tickLabelInterval));A<G+K;A++){L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var O=(A-G)*W;L.beginPath();L.moveTo(O,m.height);var c=this.smallTickHeight;A%this.largeTickInterval===0?c=this.largeTickHeight:A%this.mediumTickInterval===0&&(c=this.mediumTickHeight);L.lineTo(O,m.height-c);L.stroke();A%this.tickLabelInterval===0&&(L.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),L.fillText(Kx(A),O+4,12),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.moveTo(O,0),L.lineTo(O,this.aboveRulerHeight),L.stroke())}L.restore()};
_.w.percentToHex_=function(m){m=Math.round(m*255).toString(16);m.length<2&&(m="0"+m);return m};
_.w.drawSpeedLines_=function(m,G,K){var W=m.getContext("2d");W.save();var L=Math.min(25,Math.abs(K)-15)/25,A=m.width*.3*L,O=m.width*-.3,c=m.width*1.3,u=this.aboveRulerHeight;m=m.height;var h=Math.round(4*L),J=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");J.length<7&&(J="#"+J.substring(1,4).repeat(2));var N=this.percentToHex_(.5+L/2);N=J+N;J+="00";if(L>0)for(L=0;L<h;L++){var D=O+Math.random()*(c-O),t=u+Math.random()*(m-u),a=A+G%A,v=W.createLinearGradient(D,t,D+a,t);
K<0?(v.addColorStop(0,N),v.addColorStop(.4,N),v.addColorStop(.9,J)):(v.addColorStop(.1,J),v.addColorStop(.6,N),v.addColorStop(1,N));W.strokeStyle=v;W.lineWidth=1;W.beginPath();W.moveTo(D,t);W.lineTo(D+a,t);W.stroke()}W.restore()};
_.w.getStoryboardForTime_=function(m,G,K){K===void 0&&(K=G.getNumberOfStoryboardLevels()-1);m=G.getStoryboardFrameIndex(m,K);return G.getStoryboardFrame(m,K)};
_.w.drawStoryboardImages_=function(m,G,K,W,L){if(!this.disabled){m=m.getContext("2d");var A=this.getStoryboardForTime_(0,G);if(A){var O=A.width/A.columns;A=A.height/A.rows;var c=O/A,u=this.rulerHeight*c;u=this.tickLabelInterval*(c<this.tickLabelInterval*L/this.rulerHeight?1/Math.floor(this.tickLabelInterval*L/u):Math.round(u/(this.tickLabelInterval*L)));var h=u*L,J=this.rulerHeight,N=h/this.rulerHeight,D=Math.floor(Math.max(0,K-u));for(D-=D%u;D<K+W;D+=u){var t=this.getStoryboardForTime_(D,G),a=this.getPreloadedStoryboard_(t.url);
if(a){var v=(D-K)*L,I=this.aboveRulerHeight,Z=t.column*O,k=t.row*A;if(c<N){var z=J/(h/c);t=O;z*=A;k+=(A-z)/2}else t=h/(J*c)*O,z=A,Z+=(O-t)/2;m.drawImage(a,Z,k,t,z,v,I,h,J)}else this.fetchStoryboardImage_(t)}}}};
_.w.getPreloadedStoryboard_=function(m){return this.storyboardImages_.find(function(G){if(G.src==m)return!0;var K=G.src.indexOf(m);return K!=-1&&K==G.src.length-m.length})};
_.w.fetchStoryboardImage_=function(m){var G=this,K=this.getPreloadedStoryboard_(m.url),W=this.pendingStoryboardImages_[m.url];K||W!==void 0||(K=new Promise(function(L){var A=new Image(m.width,m.height);A.src=m.url;A.onload=function(){L(A)};
A.onerror=function(){L(null)}}),this.pendingStoryboardImages_[m.url]=K,K.then(function(L){L&&G.push("storyboardImages_",L);
return L}).finally(function(){delete G.pendingStoryboardImages_[m.url]}))};
_.w.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.w.timeToPixels_=function(m,G,K){m*=G;return K===void 0||K?m+"px":m};
_.w.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
H6.prototype.drawRuler_=H6.prototype.drawRuler_;H6.prototype.setUpCanvas_=H6.prototype.setUpCanvas_;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],H6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],H6.prototype,"start",void 0);_.x([_.V({value:30}),_.S("design:type",Number)],H6.prototype,"end",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],H6.prototype,"visible",void 0);_.x([_.V(),_.S("design:type",Object)],H6.prototype,"player_",void 0);_.x([_.V(),_.S("design:type",Number)],H6.prototype,"tickSpacing",void 0);_.x([_.V(),_.S("design:type",Number)],H6.prototype,"windowSizeSec",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],H6.prototype,"rulerWidth",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],H6.prototype,"rulerShift",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],H6.prototype,"canvasReady_",void 0);_.x([_.V({value:function(){return[]}}),
_.S("design:type",Array)],H6.prototype,"storyboardImages_",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],H6.prototype,"disabled",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],H6.prototype,"forceRender_",void 0);_.x([_.V({value:1}),_.S("design:type",Number)],H6.prototype,"devicePixelRatio_",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],H6.prototype,"windowSpeed",void 0);
_.x([_.Sb("visible","devicePixelRatio_","rulerWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],H6.prototype,"setUpCanvas_",null);
_.x([_.Sb("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.S("design:returntype")],H6.prototype,"drawRuler_",null);_.x([_.cL({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],H6);
_.y(H6,"yt-clip-creation-scrubber-canvas",function(){if(VeO===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);VeO=m}m=VeO;return m},
{mode:2});var ZE6;var dnD;var Ij=function(){var m=_.d.apply(this,arguments)||this;m.start=0;m.end=30;m.visible=!1;m.draggingLeft_=!1;m.draggingRight_=!1;m.draggingRuler_=!1;m.draggingWindow_=!1;m.seekableStart=0;m.seekableEnd=0;m.rulerWidth_=0;m.rulerShift_=0;m.windowSlideSpeed=0;m.disabled=!1;m.initialized=!1;m.durationAccessibilityLabel="";m.activeLoopRange_=!1;m.rulerDragMouseStart_=0;m.rulerDragRulerStart_=0;m.rulerDragStartTime_=0;m.rulerDragEndTime_=0;m.dragMouseLastX_=0;m.scrollInterval_=null;m.scrubberVe_=null;m.boundHandlers_=
{};m.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return m};
_.n(Ij,_.d);_.w=Ij.prototype;
_.w.created=function(){var m=this;this.JSC$20608_playerEvents=new Map;this.JSC$20608_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20608_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20608_playerEvents.set("onStateChange",this.onStateChange_);var G={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(G).forEach(function(K){m.boundHandlers_[K]=G[K].bind(m)})};
_.w.attached=function(){this.activeLoopRange_=!1;_.VL(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.VL(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.dq(156731)};
_.w.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.VL(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.VL(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.w.onVisibilityChangedAction_=function(m){var G=this;m.visible&&!this.player_&&(m=_.qW())&&m.getPlayerPromise().then(function(K){G.setPlayer(K)})};
_.w.setPlayer=function(m){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20608_playerEvents);m&&(this.set("player_",m),this.ytPlayerListenerBehavior.listenToPlayerEvents(m,this.JSC$20608_playerEvents))};
_.w.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.w.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.w.beginHandleDrag_=function(m){this.disabled||(m.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=m.clientX,m.target===_.VL(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():m.target===_.VL(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.w.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.w.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.w.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.w.beginRulerDrag_=function(m){this.disabled||(m.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=m.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.w.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.w.beginWindowScroll_=function(){var m=this;this.scrollInterval_=setInterval(function(){var G=m.windowSlideSpeed;if(G=azs(m.start,m.boundedRulerStartLimit_())?G-.1:azs(m.end,m.boundedRulerEndLimit_())?G+.1:0){var K=m.capRulerOffset_(m.rulerShift_+G);K==m.rulerShift_?G=0:(m.set("rulerShift_",K),_.Zw(m.hostElement,"set-fixed-length-range",{start:m.start+G,duration:m.end-m.start}))}m.set("windowSlideSpeed",G)},33)};
_.w.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.w.endDrag_=function(){this.logClick();var m=void 0;this.draggingRight_?m=this.end-1:this.draggingLeft_&&(m=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,m);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))};
_.w.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.w.updateRulerSize_=function(){this.set("rulerWidth_",_.VL(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.w.handleMouseDrag_=function(m){m.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(m):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(m):this.draggingWindow_&&this.handleWindowDrag_(m))};
_.w.handleRulerDrag_=function(m){m=this.pixelsToTime_(m.clientX-this.rulerDragMouseStart_);m=this.capRulerOffset_(this.rulerDragRulerStart_-m);this.set("rulerShift_",m);var G=this.rulerDragStartTime_-(this.rulerDragRulerStart_-m);_.Zw(this.hostElement,"set-fixed-length-range",{start:G,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-m)-G})};
_.w.handleWindowDrag_=function(m){var G=m.clientX-this.dragMouseLastX_;this.dragMouseLastX_=m.clientX;m=this.pixelsToTime_(G);_.Zw(this.hostElement,"set-fixed-length-range",{start:this.start+m,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.w.capRulerOffset_=function(m){var G=this.seekableStart-this.pixelsToTime_(16),K=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(G,m),K)};
_.w.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.w.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.w.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.w.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.w.handleWindowHandleDrag_=function(m){var G=m.clientX-this.dragMouseLastX_;this.dragMouseLastX_=m.clientX;m=this.pixelsToTime_(G);if(this.draggingLeft_){var K=this.start+m;var W=this.end}else this.draggingRight_&&(K=this.start,W=this.end+m);_.Zw(this.hostElement,"set-range",{start:K,end:W,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.w.onVideoProgress_=function(m){this.disabled||(m=this.timeToPixels_(m-this.rulerShift_,this.tickSpacing_),_.VL(this.hostElement).querySelector("#playhead").style.transform="translateX("+m+")")};
_.w.onClipCreationDisable_=function(){this.endDrag_()};
_.w.timeToPixels_=function(m,G,K){m*=G;return K===void 0||K?m+"px":m};
_.w.pixelsToTime_=function(m){return m/this.tickSpacing_};
_.w.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.w.centerRuler_=function(m,G,K){this.set("rulerShift_",this.capRulerOffset_(m+(G-m)/2-K/2))};
_.w.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.w.updateLoopRange_=function(m,G,K,W,L,A,O){m&&(G&&W&&!K?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(m.pauseVideo(),m.seekTo(L,!1,void 0,void 0,50)):this.draggingRight_?(m.pauseVideo(),m.seekTo(A-.1,!1,void 0,void 0,50)):(O!==void 0?m.seekTo(O,!0,void 0,void 0,50):(G=m.getCurrentTime(),G<L||G>A?m.seekTo(L,!0,void 0,void 0,50):m.seekTo(G,!0,void 0,void 0,50)),m.playVideo()),m.setLoopRange({startTimeMs:L*1E3,endTimeMs:A*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(m.getCurrentTime())):
this.activeLoopRange_&&(m.setLoopRange(null),this.activeLoopRange_=!1))};
_.w.updateHandles_=function(){_.VL(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.VL(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.w.updateRuler_=function(){var m=this.end,G=this.start,K=this.draggableStartLimit_(),W=this.draggableEndLimit_();(G<K-.001||m>W+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.w.computeDurationLabel_=function(m,G){return m?m.replace("$clip_length",parseFloat(G).toFixed(1)):""};
_.w.computeDuration_=function(m,G){return this.isValidTime_(m)&&this.isValidTime_(G)&&m<G?G-m:0};
_.w.isValidTime_=function(m){return isNaN(parseFloat(m))||m<0?!1:this.player_?m>=this.seekableStart&&m<=this.seekableEnd:!0};
_.w.computeWindowSizeSec_=function(m,G,K){return Math.min((m||12E4)/1E3,K-G)};
_.w.computeTickSpacing_=function(m,G){return G?G/m:1};
_.w.onDragStateChanged_=function(){_.Zw(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.w.centerRangeOnTime_=function(m){var G=this.duration;m=YTW(m-G/2,G,this.seekableStart,this.seekableEnd);_.Zw(this.hostElement,"set-fixed-length-range",{start:m.start,duration:m.end-m.start})};
_.w.nearlyLessThan_=function(m,G,K){return m+(K===void 0?1E-6:K)<G};
_.w.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var m=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(m,this.start)||this.nearlyLessThan_(this.end,m))&&this.centerRangeOnTime_(m)}};
_.w.onStateChange_=function(m){this.visible&&!this.disabled&&m==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.w.computeDragState_=function(m,G,K,W){return m?"left":G?"right":K?"ruler":W?"window":"none"};
_.w.logClick=function(){var m=_.gU(),G=_.wU();m&&G&&this.scrubberVe_&&(_.F("combine_ve_grafts")?_.yw(_.l1(),this.scrubberVe_,G):_.tW(m,G,this.scrubberVe_),_.nW(m,this.scrubberVe_))};
Ij.prototype.onDragStateChanged_=Ij.prototype.onDragStateChanged_;Ij.prototype.updateRuler_=Ij.prototype.updateRuler_;Ij.prototype.updateHandles_=Ij.prototype.updateHandles_;Ij.prototype.onUpdateLoopRange=Ij.prototype.onUpdateLoopRange;Ij.prototype.onInitializedChanged_=Ij.prototype.onInitializedChanged_;Ij.prototype.onVisibleChanged_=Ij.prototype.onVisibleChanged_;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ij.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",Object)],Ij.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"start",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"end",void 0);_.x([_.V({computed:"computeDuration_(start, end)"}),_.S("design:type",Number)],Ij.prototype,"duration",void 0);
_.x([_.V(),_.S("design:type",String)],Ij.prototype,"lengthTemplate",void 0);_.x([_.V({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.S("design:type",String)],Ij.prototype,"durationLabel",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"visible",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"player_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"draggingLeft_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"draggingRight_",void 0);
_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"draggingRuler_",void 0);_.x([_.V({value:!1}),_.S("design:type",Object)],Ij.prototype,"draggingWindow_",void 0);_.x([_.V({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.S("design:type",Number)],Ij.prototype,"tickSpacing_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"seekableStart",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"seekableEnd",void 0);
_.x([_.V(),_.S("design:type",Number)],Ij.prototype,"windowSizeMs",void 0);_.x([_.V({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.S("design:type",Number)],Ij.prototype,"windowSizeSec_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"rulerWidth_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"rulerShift_",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"windowSlideSpeed",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ij.prototype,"disabled",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"initialized",void 0);_.x([_.V(),_.S("design:type",Object)],Ij.prototype,"durationAccessibilityLabel",void 0);_.x([_.V({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.S("design:type",String)],Ij.prototype,"dragState",void 0);
_.x([_.Sb("visible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"onVisibleChanged_",null);_.x([_.Sb("initialized"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"onInitializedChanged_",null);_.x([_.Sb("player_","visible","disabled","initialized","start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"onUpdateLoopRange",null);
_.x([_.Sb("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"updateHandles_",null);_.x([_.Sb("start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"updateRuler_",null);
_.x([_.Sb("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ij.prototype,"onDragStateChanged_",null);_.x([_.cL({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Ij);
_.y(Ij,"yt-clip-creation-scrubber-view",function(){if(dnD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ZE6===void 0&&(ZE6=document.createElement("template"));var W=ZE6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);dnD=m}m=dnD;return m},{mode:2});var jt=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};m.startHighlightTimeout=0;m.endHighlightTimeout=0;return m};
_.n(jt,_.d);_.w=jt.prototype;_.w.attached=function(){var m=this;this.startInput.addEventListener("input",function(G){return m.handleStartInput_(G)});
this.endInput.addEventListener("input",function(G){return m.handleEndInput_(G)});
this.startInput.addEventListener("focusout",function(G){return m.handleStartBlur_(G)});
this.endInput.addEventListener("focusout",function(G){return m.handleEndBlur_(G)})};
_.w.setPlayer=function(m){this.set("player_",m)};
_.w.onSetFixedLengthRange_=function(m){var G=m.detail;m=G.start;var K=G.duration,W=G.startLimit;G=G.endLimit;W||(W=this.seekableStart_);G||(G=this.seekableEnd_);m=YTW(m,K,W,G);this.start=m.start;this.end=m.end};
_.w.onSetRange_=function(m){var G=m.detail;m=G.start;var K=G.end,W=G.startLimit;G=G.endLimit;W||(W=this.seekableStart_);G||(G=this.seekableEnd_);if(m=roz(m,K,W,G,this.minLengthSec,this.maxLengthSec))this.start=m.start,this.end=m.end};
_.w.updateInputs_=function(){var m=this.end,G=this.start;this.startInput.focused||(this.startInput.value=Kx(G,!0));this.endInput.focused||(this.endInput.value=Kx(m,!0))};
_.w.handleStartInput_=function(m){m=cou(m.target.value);if(m===null)this.set("startValid",!1);else{var G=this.end,K=roz(m,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);K?(this.set("endWillUpdate",K.end!==G),this.set("startValid",K.start===m)):this.set("startValid",!1)}};
_.w.handleEndInput_=function(m){m=cou(m.target.value);if(m===null)this.set("endValid",!1);else{var G=this.start,K=ukE(this.start,m,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);K?(this.set("startWillUpdate",K.start!==G),this.set("endValid",K.end===m)):this.set("endValid",!1)}};
_.w.handleStartBlur_=function(m){m=cou(m.target.value);m===null?this.startInput.value=Kx(this.start,!0):this.forceUpdateInputs_(roz(m,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.w.handleEndBlur_=function(m){m=cou(m.target.value);m===null?this.endInput.value=Kx(this.end,!0):this.forceUpdateInputs_(ukE(this.start,m,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.w.forceUpdateInputs_=function(m){m&&(this.start=m.start,this.end=m.end);this.startInput.value=Kx(this.start,!0);this.endInput.value=Kx(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.w.initializeClipRange_=function(){var m=this.seekableEnd_,G=this.seekableStart_,K=this.visible_,W=this.player_;if(!W||!K||G===null||!m)this.set("initialized",!1);else if(!this.initialized){var L=W.getCurrentTime(),A=this.getDefaultLengthSec_();K=W.getVideoData();var O=W.getPlayerState()==1,c=K.isLive;A=Math.min(A,m-G);L=Math.max(0,L);m=c?ukE(L-A,L,G,m,this.minLengthSec,this.maxLengthSec):O?YTW(L-A/2,A,G,m):YTW(L,A,G,m);this.start=m.start;this.end=m.end;this.set("initialized",!0);K.isLive&&W.seekTo(m.start);
this.startInput.value=Kx(this.start,!0);this.endInput.value=Kx(this.end,!0)}};
_.w.onStartChanged_=function(){var m=this;_.Zw(this.hostElement,"start-changed",{start:this.start});var G;isNaN((G=this.oldStart)!=null?G:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){m.set("highlightStart",!1);m.startHighlightTimeout=0;m.oldStart=m.start},3E3))};
_.w.onEndChanged_=function(){var m=this;_.Zw(this.hostElement,"end-changed",{end:this.end});var G;isNaN((G=this.oldEnd)!=null?G:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){m.set("highlightEnd",!1);m.endHighlightTimeout=0;m.oldEnd=m.end},3E3))};
_.w.onVisibilityChangedAction_=function(m){var G=this;this.set("visible_",m.visible);this.visible_&&!this.player_&&(m=_.qW())&&m.getPlayerPromise().then(function(K){G.setPlayer(K)})};
_.w.computeMinLengthSec_=function(m){return m/1E3||5};
_.w.computeMaxLengthSec_=function(m){return m/1E3||60};
_.w.computeDefaultLengthSec_=function(m){return m/1E3};
_.w.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.w.computeSeekableStart_=function(m,G){return m&&G?m.getProgressState(1).seekableStart:0};
_.w.computeSeekableEnd_=function(m,G){return m&&G?m.getProgressState(1).seekableEnd:0};
_.w.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.w.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.w.onDragState_=function(m){this.set("highlightStart",m.detail.startChanging);this.set("highlightEnd",m.detail.endChanging)};
jt.prototype.onDragState_=jt.prototype.onDragState_;jt.prototype.onEndChanged_=jt.prototype.onEndChanged_;jt.prototype.onStartChanged_=jt.prototype.onStartChanged_;jt.prototype.initializeClipRange_=jt.prototype.initializeClipRange_;jt.prototype.updateInputs_=jt.prototype.updateInputs_;jt.prototype.onSetRange_=jt.prototype.onSetRange_;jt.prototype.onSetFixedLengthRange_=jt.prototype.onSetFixedLengthRange_;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],jt.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jt.prototype,"data",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],jt.prototype,"start",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],jt.prototype,"startValid",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jt.prototype,"startWillUpdate",void 0);_.x([_.V({value:30}),_.S("design:type",Number)],jt.prototype,"end",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],jt.prototype,"endValid",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jt.prototype,"endWillUpdate",void 0);_.x([_.V({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.S("design:type",Number)],jt.prototype,"minLengthSec",void 0);
_.x([_.V({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.S("design:type",Number)],jt.prototype,"maxLengthSec",void 0);_.x([_.V({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.S("design:type",Number)],jt.prototype,"defaultLengthSec",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],jt.prototype,"visible_",void 0);_.x([_.V(),_.S("design:type",Object)],jt.prototype,"player_",void 0);
_.x([_.V({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.S("design:type",Number)],jt.prototype,"seekableStart_",void 0);_.x([_.V({computed:"computeSeekableEnd_(player_, visible_)"}),_.S("design:type",Number)],jt.prototype,"seekableEnd_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],jt.prototype,"initialized",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jt.prototype,"disabled",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jt.prototype,"highlightStart",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jt.prototype,"highlightEnd",void 0);_.x([_.UM("#start"),_.S("design:type",HTMLInputElement)],jt.prototype,"startInput",void 0);_.x([_.UM("#end"),_.S("design:type",HTMLInputElement)],jt.prototype,"endInput",void 0);
_.x([_.XC("set-fixed-length-range"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],jt.prototype,"onSetFixedLengthRange_",null);_.x([_.XC("set-range"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],jt.prototype,"onSetRange_",null);_.x([_.Sb("start","end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jt.prototype,"updateInputs_",null);
_.x([_.Sb("player_","visible_","seekableStart_","seekableEnd_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jt.prototype,"initializeClipRange_",null);_.x([_.Sb("start"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jt.prototype,"onStartChanged_",null);_.x([_.Sb("end"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jt.prototype,"onEndChanged_",null);
_.x([_.XC("clips-drag-state"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],jt.prototype,"onDragState_",null);_.x([_.cL({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],jt);
_.y(jt,"yt-clip-creation-scrubber-renderer",function(){if(Cti===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;kSi===void 0&&(kSi=document.createElement("template"));var W=kSi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Cti=m}m=Cti;return m},{mode:2});var ks=function(){var m=_.d.apply(this,arguments)||this;m.player_=null;m.JSC$20622_playerEvents=new Map;m.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return m};
_.n(ks,_.d);_.w=ks.prototype;_.w.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"}}}};
_.w.created=function(){this.JSC$20622_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20622_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20622_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20622_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.w.detached=function(){this.setPlayer(null)};
_.w.onVisibilityChangedAction_=function(m){var G=this,K;if((K=this.data)==null?0:K.externalVideoId){var W;this.videoId=(W=this.data)==null?void 0:W.externalVideoId}this.getPlayer().then(function(L){if(m.visible)G.returnTime=L.getCurrentTime(),G.isAtLiveHead=L.getProgressState().isAtLiveHead;else{var A=G.returnTime;G.isAtLiveHead&&(A=Number.POSITIVE_INFINITY);L.seekTo(A,void 0,void 0,void 0,51)}})};
_.w.getPlayer=function(){var m=this;if(!this.player_){var G=_.qW();if(G)return G.getPlayerPromise().then(function(K){m.setPlayer(K);return K})}return Promise.resolve(this.player_)};
_.w.setPlayer=function(m){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20622_playerEvents);if(m){this.player_=m;var G;((G=this.data)==null?0:G.externalVideoId)||this.set("videoId",m.getVideoData().video_id||"");var K;(m==null?void 0:(K=m.getPresentingPlayerType)==null?void 0:K.call(m))===2&&(this.set("isAdPlaying",!0),_.dU(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(m,this.JSC$20622_playerEvents)}};
_.w.ready=function(){_.VL(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.w.onTitleChanged_=function(m){this.set("titleValue",m.detail.title)};
_.w.onStartChanged_=function(m){this.set("start",m.detail.start)};
_.w.onEndChanged_=function(m){this.set("end",m.detail.end)};
_.w.onTitleValidChanged_=function(m){this.set("titleValid",m.detail.valid)};
_.w.onStartValidChanged_=function(m){this.set("startValid",m.detail.valid)};
_.w.onEndValidChanged_=function(m){this.set("endValid",m.detail.valid)};
_.w.onVideoDataChange_=function(){var m;if((m=this.data)==null||!m.externalVideoId){var G;this.set("videoId",((G=this.player_)==null?void 0:G.getVideoData().video_id)||"")}};
_.w.computeFormValid_=function(m,G,K,W){return!!(m&&G&&K&&W)};
_.w.computeCancelButton_=function(m,G,K){return m&&_.Q(m,_.uu)?{buttonRenderer:Object.assign({},_.Q(m,_.uu),{isDisabled:G||K})}:null};
_.w.computeSubmitButton_=function(m,G,K){return m&&_.Q(m,_.uu)?{buttonRenderer:Object.assign({},_.Q(m,_.uu),{command:void 0,isDisabled:!this.formValid||G||K})}:null};
_.w.computeSubmitCommand_=function(m){return m||null};
_.w.onSubmit_=function(m){var G=this;m.stopPropagation();m.preventDefault();this.submitCommand_&&(m={},m.comment_text=this.titleValue,m.clip_external_video_id=this.videoId,m.clip_offset_ms=parseInt(this.start*1E3,10),m.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.yQ(this.hostElement,[this.submitCommand_,m]).then(function(){G.set("isLoading_",!1)},function(){G.set("isLoading_",!1)}))};
_.w.playerAdStartHandler_=function(){_.dU(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.w.playerAdEndHandler_=function(){_.dU(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.w.onVideoProgress_=function(){var m=this;this.getPlayer().then(function(G){var K,W=(G==null?void 0:(K=G.getPresentingPlayerType)==null?void 0:K.call(G))===2;m.isAdPlaying!==W&&(W?m.playerAdStartHandler_():m.playerAdEndHandler_())})};
ks.prototype.onEndValidChanged_=ks.prototype.onEndValidChanged_;ks.prototype.onStartValidChanged_=ks.prototype.onStartValidChanged_;ks.prototype.onTitleValidChanged_=ks.prototype.onTitleValidChanged_;ks.prototype.onEndChanged_=ks.prototype.onEndChanged_;ks.prototype.onStartChanged_=ks.prototype.onStartChanged_;ks.prototype.onTitleChanged_=ks.prototype.onTitleChanged_;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ks.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",Object)],ks.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ks.prototype,"data",void 0);_.x([_.V({value:""}),_.S("design:type",String)],ks.prototype,"titleValue",void 0);
_.x([_.V({value:!1}),_.S("design:type",Boolean)],ks.prototype,"titleValid",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],ks.prototype,"start",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],ks.prototype,"startValid",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],ks.prototype,"end",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],ks.prototype,"endValid",void 0);_.x([_.V({value:""}),_.S("design:type",String)],ks.prototype,"videoId",void 0);
_.x([_.V({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.S("design:type",Boolean)],ks.prototype,"formValid",void 0);_.x([_.V({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.S("design:type",Object)],ks.prototype,"submitButton_",void 0);_.x([_.V({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.S("design:type",Object)],ks.prototype,"submitCommand_",void 0);
_.x([_.V({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.S("design:type",Object)],ks.prototype,"cancelButton_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],ks.prototype,"isLoading_",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],ks.prototype,"isAdPlaying",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],ks.prototype,"returnTime",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],ks.prototype,"isAtLiveHead",void 0);
_.x([_.XC("title-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onTitleChanged_",null);_.x([_.XC("start-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onStartChanged_",null);_.x([_.XC("end-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onEndChanged_",null);
_.x([_.XC("title-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onTitleValidChanged_",null);_.x([_.XC("start-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onStartValidChanged_",null);_.x([_.XC("end-valid-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ks.prototype,"onEndValidChanged_",null);
_.x([_.cL({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],ks);
_.y(ks,"yt-clip-creation-renderer",function(){if(jcD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;It6===void 0&&(It6=document.createElement("template"));var W=It6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);jcD=m}m=jcD;return m},{mode:2});var CH=function(){return _.d.apply(this,arguments)||this};
_.n(CH,_.d);CH.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"}}}};
CH.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(m){return m.hasOwnProperty("clipCreationRenderer")})&&_.dU(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
CH.prototype.onPanelContentVisibleChanged=CH.prototype.onPanelContentVisibleChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],CH.prototype,"ytVisibilityBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],CH.prototype,"ytdReduxBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],CH.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],CH.prototype,"panelContentVisible",void 0);_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],CH.prototype,"onPanelContentVisibleChanged",null);_.x([_.Ye({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],CH);
_.y(CH,"ytd-clip-section-renderer",function(){if(sci!==void 0)return sci;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sci=m},{mode:1});var PtD;var yNW;var eQi;var ftu=function(){return _.d.apply(this,arguments)||this};
_.n(ftu,_.d);_.x([_.V(),_.S("design:type",Object)],ftu.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ftu.prototype,"ytRendererBehavior",void 0);_.x([_.Ye({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ftu);
_.y(ftu,"ytd-hashtag-grid-tile-renderer",function(){if(eQi!==void 0)return eQi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return eQi=m},{mode:1});var Vg=function(){return _.d.apply(this,arguments)||this};
_.n(Vg,_.d);Vg.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Vg.prototype.updateRichGridTrendingHashtagsVisibility=function(){var m,G;if(((m=this.data)==null||!m.isExpanded)&&(G=this.data)!=null&&G.tiles){m=this.data.tiles.length;G=m>this.richGridItemsPerRow?this.richGridItemsPerRow+1:m;var K=Math.ceil(m/G);this.fullyVisibleRows=m%G===1&&K===2?1:Math.min(K,2);this.isShowMoreVisible=this.fullyVisibleRows<K}};
Vg.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Vg.prototype.updateRichGridTrendingHashtagsVisibility=Vg.prototype.updateRichGridTrendingHashtagsVisibility;_.x([_.V(),_.S("design:type",Object)],Vg.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],Vg.prototype,"fullyVisibleRows",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Vg.prototype,"isShowMoreVisible",void 0);_.x([_.V({selector:_.Ov,value:0}),_.S("design:type",Number)],Vg.prototype,"richGridItemsPerRow",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Vg.prototype,"ytdReduxBehavior",void 0);_.x([_.Sb("data","richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vg.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.x([_.Ye({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Vg);
_.y(Vg,"ytd-hashtag-grid-shelf-renderer",function(){if(yNW!==void 0)return yNW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yNW=m},{mode:1});var xni;var X7D;var SF6=0,Zu=function(){var m=_.d.call(this)||this;m.selected=!1;m.isOverlay=!1;m.inputId="toggle-option-"+SF6;SF6++;return m};
_.n(Zu,_.d);Zu.prototype.onTap=function(){_.Zw(this.hostElement,"ytd-toggle-option-clicked")};
_.x([_.V(),_.S("design:type",String)],Zu.prototype,"label",void 0);_.x([_.V(),_.S("design:type",String)],Zu.prototype,"inputId",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Zu.prototype,"selected",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Zu.prototype,"isOverlay",void 0);_.x([_.Ye({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.S("design:paramtypes",[])],Zu);
_.y(Zu,"ytd-toggle-option-renderer",function(){if(X7D!==void 0)return X7D;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return X7D=m},{mode:1});var dg=function(){var m=_.d.apply(this,arguments)||this;m.isToggleOption=!1;m.isOverlay=!1;return m};
_.n(dg,_.d);dg.prototype.onTap=function(m){m.preventDefault();this.data&&(m=!this.data.checked,this.set("data.checked",m),_.Zw(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:m,value:this.data.value}))};
_.e_.Object.defineProperties(dg.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
dg.prototype.onTap=dg.prototype.onTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dg.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dg.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],dg.prototype,"isToggleOption",void 0);_.x([_.V(),_.S("design:type",Object)],dg.prototype,"isOverlay",void 0);_.x([_.E("data.responseText"),_.S("design:type",String),_.S("design:paramtypes",[])],dg.prototype,"label",null);
_.x([_.XC("ytd-toggle-option-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],dg.prototype,"onTap",null);_.x([_.Ye({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],dg);
_.y(dg,"ytd-checkbox-survey-option-renderer",function(){if(xni!==void 0)return xni;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xni=m},{mode:1});var RQW;var UnE;var P6=function(){var m=_.d.apply(this,arguments)||this;m.checked=!1;m.isToggleOption=!1;return m};
_.n(P6,_.d);P6.prototype.onTap=function(){this.data&&(this.checked?_.dU(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.dU(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
P6.prototype.onTap=P6.prototype.onTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],P6.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],P6.prototype,"checked",void 0);_.x([_.V(),_.S("design:type",Object)],P6.prototype,"isToggleOption",void 0);_.x([_.XC("ytd-toggle-option-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],P6.prototype,"onTap",null);
_.x([_.Ye({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],P6);
_.y(P6,"ytd-radio-button-survey-option-renderer",function(){if(UnE!==void 0)return UnE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return UnE=m},{mode:1});var yg=function(){var m=_.d.apply(this,arguments)||this;m.disableAnimation=!1;m.isToggleOption=!0;m.followUpSurveyCommand=null;m.selectedRatingEndpoint=null;m.isSlimlineSurveyFollowUp=!1;m.isShortsStyle=!1;m.styleOverrideAttribute=!0;m.isDarkMode=!1;m.isSubmitted=!1;m.roundedContainer=!0;m.improveShortsResponseRate=_.F("web_improve_shorts_response_rate");m.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 m};
_.n(yg,_.d);_.w=yg.prototype;
_.w.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"}}}}};
_.w.attached=function(){var m=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(K){var W;if((W=K[0])!=null&&W.isIntersecting){_.UQ().reportShown(m.hostElement);var L;(L=m.intersectionObserver)==null||L.unobserve(m.hostElement)}},{rootMargin:"0px",
threshold:.6});var G;(G=this.intersectionObserver)==null||G.observe(this.hostElement)};
_.w.onDarkModeToggledAction=function(m){this.isDarkMode=m};
_.w.dataChanged=function(){var m;if(((m=this.data)==null?void 0:m.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var G;((G=this.data)==null?void 0:G.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var K,W,L,A;this.darkColorPalette=(K=this.data)==null?void 0:(W=K.inlineContent)==null?void 0:(L=W.compactVideoRenderer)==null?void 0:(A=L.thumbnail)==null?
void 0:A.darkColorPalette;var O,c,u,h;this.lightColorPalette=(O=this.data)==null?void 0:(c=O.inlineContent)==null?void 0:(u=c.compactVideoRenderer)==null?void 0:(h=u.thumbnail)==null?void 0:h.lightColorPalette;var J,N;if(((J=this.data)==null?0:(N=J.inlineContent)==null?0:N.compactVideoRenderer)&&this.isShortsStyle){var D,t,a,v;m=_.Eh((D=this.data)==null?void 0:(t=D.inlineContent)==null?void 0:(a=t.compactVideoRenderer)==null?void 0:(v=a.thumbnail)==null?void 0:v.thumbnails);_.eb(this.hostElement,
{"--yt-background-url":"url("+m+")"})}};
_.w.handleRequestCompletion=function(){this.hostElement.hidden&&_.Zw(this.hostElement,"yt-dismissible-item-dismissed")};
_.w.onPopupClosed=function(m){var G;((G=m.detail)==null?void 0:G.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.dU(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.w.handleInlineSurveyRatingSelect=function(m,G){var K=this;this.selectedRatingEndpoint=m;this.followUpSurveyCommand=G;this.expanded=!!m;this.getOptionRenderers().forEach(function(W,L){K.notifyPath("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked");K.set("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),m=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.dU(this.hostElement,"yt-reel-non-video-content-dismissal-command",[m]))};
_.w.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.dU(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var m,G=(m=this.data)==null?void 0:m.dismissalEndpoint;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.w.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.dU(this.hostElement,"yt-close-popup-action"))};
_.w.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var m=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{m=this.getOptionRenderers().filter(function(W){return W.checked});
if(m.length===0)return;m=m.map(function(W){return W.responseEndpoint})}var G=[];
m.forEach(function(W,L){L!==0&&(W=_.Q(W,_.cX))&&W.feedbackToken&&G.push(W.feedbackToken)});
if(m=m[0]){var K={};G.length>0&&(K.extra_feedback_tokens=G);this.ytComponentBehavior.resolveCommand(m,{form:K})}}};
_.w.getOptionRenderers=function(){var m=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(G){m.isSingleSelect=!!_.Q(G,Pv6);return m.isSingleSelect?_.Q(G,Pv6):_.Q(G,yGs)}):[]};
_.w.handleInlineSurveyOptionSelect=function(m){m=this.optionSelector.indexOf(m);m!==-1&&this.optionSelector.selectIndex(m)};
_.w.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.w.maybeGetBackgroundColor=function(m){return this.isDarkMode?m.section2Color:m.section3Color};
_.w.colorPaletteChanged=function(){var m=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;m=m&&this.maybeGetBackgroundColor(m);this.dismissibleEl.style.backgroundColor=!m||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.OM(m)};
_.e_.Object.defineProperties(yg.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
yg.prototype.colorPaletteChanged=yg.prototype.colorPaletteChanged;yg.prototype.onPopupClosed=yg.prototype.onPopupClosed;yg.prototype.handleRequestCompletion=yg.prototype.handleRequestCompletion;yg.prototype.dataChanged=yg.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],yg.prototype,"actionHandlerBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],yg.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],yg.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.UM("#follow-up-survey-options"),_.S("design:type",Object)],yg.prototype,"optionSelector",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],yg.prototype,"disableAnimation",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"isToggleOption",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"followUpSurveyCommand",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"selectedRatingEndpoint",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],yg.prototype,"expanded",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yg.prototype,"isSlimlineSurveyFollowUp",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yg.prototype,"isShortsStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yg.prototype,"styleOverrideAttribute",void 0);_.x([_.V(),_.S("design:type",Boolean)],yg.prototype,"isSingleSelect",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"isDarkMode",void 0);
_.x([_.V(),_.S("design:type",Object)],yg.prototype,"lightColorPalette",void 0);_.x([_.V(),_.S("design:type",Object)],yg.prototype,"darkColorPalette",void 0);_.x([_.E("selectedRatingEndpoint","isShortsStyle"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],yg.prototype,"isOptionSelected",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yg.prototype,"roundedContainer",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yg.prototype,"improveShortsResponseRate",void 0);_.x([_.UM("#dismissible"),_.S("design:type",HTMLElement)],yg.prototype,"dismissibleEl",void 0);_.x([_.UM("#dismiss-button yt-icon-button"),_.S("design:type",HTMLElement)],yg.prototype,"dismissButtonEl",void 0);_.x([_.UM("#inline-survey-header yt-icon-button"),_.S("design:type",HTMLElement)],yg.prototype,"inlineHeaderDismissButtonEl",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yg.prototype,"dataChanged",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yg.prototype,"handleRequestCompletion",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],yg.prototype,"onPopupClosed",null);
_.x([_.Sb("darkColorPalette","lightColorPalette","isDarkMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yg.prototype,"colorPaletteChanged",null);_.x([_.Ye({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],yg);
_.y(yg,"ytd-inline-survey-renderer",function(){if(RQW!==void 0)return RQW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return RQW=m},{mode:1});var zQD;var ltG;var et=function(){var m=_.d.apply(this,arguments)||this;m.visibleVideos=[];m.hiddenVideos=[];m.modern=_.F("web_modern_buttons");m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(et,_.d);_.w=et.prototype;_.w.attached=function(){var m=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",m);this.onDarkModeToggledAction(m)};
_.w.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"}}}};
_.w.dataChanged=function(){var m=this;this.requestElementsPerRow();var G,K;this.currentColorPalette=this.isDarkTheme?(G=this.data)==null?void 0:G.darkColorData:(K=this.data)==null?void 0:K.lightColorData;var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Pv(this,function(){m.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.w.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.w.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.w.computeIsFirstFeedItem=function(m){return m};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&this.set("isDarkTheme",m);this.data&&(this.currentColorPalette=m?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.w.getCurrentLogo=function(m,G){if(m)return G?m.darkLogoImage:m.lightLogoImage};
_.w.computeTitleStyle=function(m){var G;if((G=this.data)!=null&&G.title&&m&&m.textPrimary!==void 0)return"color:"+_.OM(m.textPrimary)+";"};
_.w.computeSubtitleStyle=function(m){var G;if((G=this.data)!=null&&G.subtitle&&m&&m.textSecondary!==void 0)return"color:"+_.OM(m.textSecondary)+";"};
_.w.computeDismissIconStyle=function(m){if(this.data&&this.data.dismissButton&&m&&m.textPrimary!==void 0)return"--yt-button-color:"+_.OM(m.textPrimary)+";"};
_.w.computeOverflowButtonStyle=function(m){if(this.data&&this.data.overflowButton&&m&&m.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.OM(m.textPrimary)+";--yt-spec-icon-active-other:"+_.OM(m.textPrimary)+";"};
_.w.computeBackgroundStyle=function(m){if(m&&this.data){var G="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var K=_.Eh((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);K&&(G+='background-image:url("'+K+'");')}m.backgroundColor!==void 0&&(G+="background-color:"+_.ce(m.backgroundColor)+";");return G}};
_.w.computeButton=function(){var m,G=Object.assign({},_.Q((m=this.data)==null?void 0:m.showMoreButton,_.uu));if(this.modern&&G){G.style="STYLE_MONO_OUTLINE";var K;if(m=(K=this.currentColorPalette)==null?void 0:K.textPrimary)G.colorData={basicColorPaletteData:{foregroundTitleColor:m,borderColor:m}}}return G};
_.w.shouldShowBottomButton=function(m,G){return!(m==null?0:m.header)&&!(m==null||!m.primaryButton)&&G<3};
_.w.checkExpanded=function(m){this.isExpanded=m&&m.content?this.hiddenVideos.length===0:!0};
_.w.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.w.getLogoHeight=function(m){return this.logoWithPadding(m)?"26":"20"};
_.w.getLogoImageId=function(m){return this.logoWithPadding(m)?"logo-image-with-padding":"logo-image"};
_.w.computeHasSectionHeader=function(m){return!!m.header};
_.w.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var m;if((m=this.data.primaryButton)==null?0:m.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 G;((G=this.data.dismissButton)==null?0:G.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var K,W;((K=this.data)==null?0:(W=K.primaryButton)==null?0:W.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.w.setVisibleVideos=function(m){if(this.data&&this.data.content)if(this.data.content.length){var G=this.data.content.length;this.data.header?m?(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.slimItemsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(G,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow),G)):(this.visibleVideos=this.data.content.slice(0,Math.min(G,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(G,this.elementsPerRow-1),G))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.w.setHasMovieRenderer=function(){var m;if((m=this.data)!=null&&m.content){var G;this.hasMovieRenderer=!!_.Q((G=this.data)==null?void 0:G.content[0],_.zbK)}else this.hasMovieRenderer=!1};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
_.w.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var m=_.g(this.hiddenMediaRenderers),G=m.next();!G.done;G=m.next())G.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(m=_.VL(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&m.focus()}};
_.w.updateTitleSpec=function(){var m;(m=this.data)!=null&&m.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.w.logoWithPadding=function(m){var G,K,W;return(m=(G=this.getCurrentLogo(m,this.isDarkTheme))==null?void 0:(K=G.thumbnails)==null?void 0:(W=K[0])==null?void 0:W.height)&&m%31===0?!0:!1};
_.w.onUpdateElementsPerRowAction=function(m,G,K){m&&this.elementsPerRow!==m&&(this.elementsPerRow=m);K&&this.slimItemsPerRow!==K&&(this.slimItemsPerRow=K)};
et.prototype.slimItemsPerRowChanged=et.prototype.slimItemsPerRowChanged;et.prototype.elementsPerRowChanged=et.prototype.elementsPerRowChanged;et.prototype.dataChanged=et.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],et.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],et.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],et.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],et.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],et.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],et.prototype,"currentColorPalette",void 0);_.x([_.V(),_.S("design:type",Array)],et.prototype,"visibleVideos",void 0);_.x([_.V(),_.S("design:type",Array)],et.prototype,"hiddenVideos",void 0);
_.x([_.V(),_.S("design:type",Object)],et.prototype,"primaryButton",void 0);_.x([_.V({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],et.prototype,"elementsPerRow",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],et.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],et.prototype,"isExpanded",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],et.prototype,"largeTitle",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],et.prototype,"hasMovieRenderer",void 0);_.x([_.V(),_.S("design:type",Number)],et.prototype,"slimItemsPerRow",void 0);_.x([_.V(),_.S("design:type",Boolean)],et.prototype,"showLightVideoMetadata",void 0);_.x([_.V(),_.S("design:type",Boolean)],et.prototype,"showDarkVideoMetadata",void 0);_.x([_.V(),_.S("design:type",Number)],et.prototype,"videoMetadataColor",void 0);
_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],et.prototype,"miniMode",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.S("design:type",Boolean)],et.prototype,"isFirstFeedItem",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.S("design:type",Boolean)],et.prototype,"hasSectionHeader",void 0);
_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],et.prototype,"roundedContainer",void 0);_.x([_.zh("#visible-video-container ytd-rich-grid-media"),_.S("design:type",Array)],et.prototype,"visibleMediaRenderers",void 0);_.x([_.zh("#hidden-video-container ytd-rich-grid-media"),_.S("design:type",Array)],et.prototype,"hiddenMediaRenderers",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],et.prototype,"modern",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],et.prototype,"dataChanged",null);_.x([_.Sb("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],et.prototype,"elementsPerRowChanged",null);_.x([_.Sb("slimItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],et.prototype,"slimItemsPerRowChanged",null);
_.x([_.Ye({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],et);
_.y(et,"ytd-brand-video-shelf-renderer",function(){if(ltG!==void 0)return ltG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ltG=m},{mode:1});var BoP;var fH=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(fH,_.d);_.w=fH.prototype;_.w.attached=function(){var m=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",m);this.onDarkModeToggledAction(m)};
_.w.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"}}}};
_.w.dataChanged=function(){this.requestElementsPerRow();var m,G;this.currentColorPalette=this.isDarkTheme?(m=this.data)==null?void 0:m.darkColorData:(G=this.data)==null?void 0:G.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.w.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.w.computeIsFirstFeedItem=function(m){return m};
_.w.onDarkModeToggledAction=function(m){m!==this.isDarkTheme&&this.set("isDarkTheme",m);this.data&&(this.currentColorPalette=m?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(m),this.updateButtonPalette())};
_.w.shouldShowThumbnailInMetadata=function(m){return m<=1};
_.w.computeVideoMetadataColor=function(){if(this.data){var m;if((m=this.currentColorPalette)==null?0:m.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.w.computeTitleStyle=function(m){var G;if((G=this.data)!=null&&G.title&&m&&m.textPrimary!==void 0)return"color:"+_.OM(m.textPrimary)+";"};
_.w.computeSubtitleStyle=function(m){var G;if((G=this.data)!=null&&G.subtitle&&m&&m.textSecondary!==void 0)return"color:"+_.OM(m.textSecondary)+";"};
_.w.computeOverflowButtonStyle=function(m){if(this.data&&this.data.overflowButton&&m.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.OM(m.textPrimary)+";--yt-spec-icon-active-other:"+_.OM(m.textPrimary)+";"};
_.w.computeBackgroundStyle=function(m){if(m&&this.data){var G="";m.backgroundColor!==void 0&&(G+="background-color:"+_.ce(m.backgroundColor)+";");return G}};
_.w.computeHasOverflowButton=function(m){return!!m.overflowButton};
_.w.updateButtonPalette=function(){if(this.data){var m;if((m=this.data.primaryButton)==null?0:m.buttonRenderer){var G;if((G=this.currentColorPalette)==null?0:G.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var K;((K=this.currentColorPalette)==null?0:K.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)})}}};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
_.w.updateTitleSpec=function(){var m;(m=this.data)!=null&&m.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")};
_.w.onUpdateElementsPerRowAction=function(m){m&&this.elementsPerRow!==m&&(this.elementsPerRow=m)};
fH.prototype.elementsPerRowChanged=fH.prototype.elementsPerRowChanged;fH.prototype.dataChanged=fH.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],fH.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],fH.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],fH.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fH.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],fH.prototype,"currentColorPalette",void 0);_.x([_.V(),_.S("design:type",Object)],fH.prototype,"primaryButton",void 0);
_.x([_.V({reflectToAttribute:!0,value:3}),_.S("design:type",Number)],fH.prototype,"elementsPerRow",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],fH.prototype,"isDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],fH.prototype,"titleSize",void 0);_.x([_.V(),_.S("design:type",Number)],fH.prototype,"videoMetadataColor",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],fH.prototype,"miniMode",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.S("design:type",Boolean)],fH.prototype,"isFirstFeedItem",void 0);_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],fH.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.S("design:type",Boolean)],fH.prototype,"hasOverflowButton",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fH.prototype,"dataChanged",null);_.x([_.Sb("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fH.prototype,"elementsPerRowChanged",null);_.x([_.Ye({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],fH);
_.y(fH,"ytd-brand-video-singleton-renderer",function(){if(BoP!==void 0)return BoP;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return BoP=m},{mode:2});var MeW;var ToD=_.P(function(m){var G=m.data;return _.r(_.oC,{data:function(){return G().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(G().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var K=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":K=88;break a;default:K=88}return K},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return G().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Hh"),iRu=_.P(function(m){var G=m.metadataRow;
var K=m.delimiter;return _.r(_.D0,{each:function(){return G().textParts||[]},
keyBy:"INDEX"},function(W,L){return _.r(_.zL,null,_.r(_.Nm,{text:W,noWrap:!0,userInput:!0}),_.r(mJG,{delimiter:K,max:function(){return G().textParts.length},
index:L}))})},"Ih"),mJG=_.P(function(m){var G=m.delimiter;
var K=m.max;var W=m.index;return _.r(_.p,{cond:function(){return(G==null?void 0:G())&&K()-1>W()},
then:function(){return _.r("span",null,G)}})},"Jh"),GRs=_.P(function(m){var G=m.data;
m={};return _.r("yt-profile-page-header-information-view-model",{class:_.VO("profilePageHeaderInformationViewModelHost",(m.profilePageHeaderInformationViewModelMobile=!1,m))},_.r(_.p,{cond:function(){return G().onTap},
then:function(){return _.r(_.qm,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.c8(G().onTap)}},_.r(_.z$,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:ToD}))},
else:function(){return _.r("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.r(_.z$,{data:function(){return G().thumbnail}},{profilePageHeaderThumbnailViewModel:ToD}))}}),_.r("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.r(_.p,{cond:function(){return G().onTap},
then:function(){return _.r(_.z$,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(K){var W=K.data;
return _.r(_.qm,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.c8(W().onTap)}},_.r(_.Nm,{text:function(){return W().title}}))}})},
else:function(){return _.r(_.z$,{data:function(){return G().title}},{profilePageHeaderTitleViewModel:function(K){var W=K.data;
return _.r(_.Nm,{text:function(){return W().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.r(_.z$,{data:function(){return G().metadata}},{profilePageHeaderMetadataViewModel:function(K){var W=K.data;
return _.r(_.p,{cond:function(){return W().metadataRows},
then:function(L){return _.r("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.r(_.D0,{each:L,keyBy:"INDEX"},function(A,O){return _.r(_.zL,null,_.r(iRu,{metadataRow:A,delimiter:" \u2022 "}),_.r(mJG,{delimiter:" \u2022 ",max:function(){return L().length},
index:O}))}))}})}})))},"Kh");
GRs.idomCompat=!0;_.sh(GRs,"yt-profile-page-header-information-view-model",{props:{data:_.Dd}});var xs=function(){return _.d.apply(this,arguments)||this};
_.n(xs,_.d);xs.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xs.prototype,"data",void 0);_.x([_.Ye({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],xs);
_.y(xs,"ytd-effect-pivot-header-view-model",function(){if(MeW!==void 0)return MeW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return MeW=
m},{mode:1});var KlD;var XI=function(){return _.d.apply(this,arguments)||this};
_.n(XI,_.d);XI.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],XI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],XI.prototype,"data",void 0);_.x([_.Ye({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],XI);
_.y(XI,"ytd-source-pivot-header-renderer",function(){if(KlD!==void 0)return KlD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return KlD=m},{mode:1});var WlP;var Ll5;var Avi;var St=function(){var m=_.d.apply(this,arguments)||this;m.playing=!1;m.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.z9(m);m.active=!1;return m};
_.n(St,_.d);_.w=St.prototype;_.w.detached=function(){this.stop()};
_.w.play=function(){var m=this,G,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return m.active=!0,G=m.get("data.inlinePlaybackEndpoint.watchEndpoint"),K=G.videoId||m.data.videoId,W=G.startTimeSeconds||0,L=G.playerParams||null,_.F("kevlar_player_update_killswitch")?O.yield(m.playerEl.update({args:{video_id:K,startSeconds:W,player_params:L}}),2):(m.playerEl.loadVideoWithPlayerVars({video_id:K,startSeconds:W,player_params:L,autoplay:!0}),O.jumpTo(2));if(O.nextAddress!=4)return O.yield(m.playerEl.getPlayerPromise(),
4);A=O.yieldResult;A.unloadModule("annotations_module");A.addEventListener("onStateChange",function(c){m.onPlayerStateChange(c)});
_.ey(O)})};
_.w.onPlayerStateChange=function(m){if(this.active)switch(this.playing=m===1,m){case 1:_.Zw(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Zw(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.w.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.w.resize=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.playerEl.getPlayerPromise(),2);G=K.yieldResult;G.setSize(NaN,NaN);_.ey(K)})};
_.x([_.V(),_.S("design:type",Object)],St.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],St.prototype,"playing",void 0);_.x([_.V(),_.S("design:type",Object)],St.prototype,"playerId",void 0);_.x([_.UM("#player"),_.S("design:type",Object)],St.prototype,"playerEl",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],St);
_.y(St,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Avi!==void 0)return Avi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Avi=m},{mode:1});var wd6;var ghu;var Rj=function(){var m=_.d.apply(this,arguments)||this;m.width=0;return m};
_.n(Rj,_.d);_.w=Rj.prototype;_.w.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.xC(this,this.onEnded));this.mp4El.addEventListener("error",_.xC(this,this.onError))};
_.w.detached=function(){this.videoEl.removeEventListener("ended",_.xC(this,this.onEnded));this.mp4El.removeEventListener("error",_.xC(this,this.onError))};
_.w.play=function(){var m=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var G=this.videoEl.play();G?G.then(function(){m.handleVideoStartPlaying()}).catch(function(){_.Zw(m.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Zw(this.hostElement,"yt-video-thumbnail-not-playing")};
_.w.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.w.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.w.dataChanged=function(){var m;if((m=this.data)==null?0:m.thumbnailPlaceholder)m=_.qy(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+m+")";this.stop();this.autoplay&&this.play()};
_.w.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.w.onEnded=function(){this.stop();_.Zw(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.w.onError=function(){_.Zw(this.hostElement,"yt-video-thumbnail-error")};
_.w.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.w.getVideoThumbnail=function(m){if(m&&m.length)return m[0]};
Rj.prototype.dataChanged=Rj.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],Rj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Rj.prototype,"animatePlaceholderOnEntrance",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Rj.prototype,"autoplay",void 0);_.x([_.V({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.S("design:type",Object)],Rj.prototype,"videoThumbnail",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Rj.prototype,"loop",void 0);_.x([_.V(),_.S("design:type",Boolean)],Rj.prototype,"isVideoPlaying",void 0);_.x([_.V(),_.S("design:type",Object)],Rj.prototype,"width",void 0);_.x([_.UM("#mp4"),_.S("design:type",HTMLElement)],Rj.prototype,"mp4El",void 0);_.x([_.UM("#placeholder"),_.S("design:type",HTMLElement)],Rj.prototype,"placeholderEl",void 0);_.x([_.UM("#video"),_.S("design:type",HTMLVideoElement)],Rj.prototype,"videoEl",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rj.prototype,"dataChanged",null);_.x([_.cL({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Rj);
_.y(Rj,"yt-video-as-thumbnail-details",function(){if(ghu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;wd6===void 0&&(wd6=document.createElement("template"));var W=wd6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ghu=m}m=ghu;return m},{mode:2});var Uu=function(){var m=_.d.apply(this,arguments)||this;m.disableGridStateAware=!1;m.animationEnabled=_.F("enable_web_ketchup_hero_animation");m.transitioningOut=!1;m.narrow=!1;m.narrower=!1;m.isCarouselInFeed=!1;m.videoTimeoutJobId=0;m.panelTimeoutJobId=0;m.panelTimeoutJobStartMs=0;m.actionMap={"yt-window-resized":"onWindowResized"};return m};
_.n(Uu,_.d);_.w=Uu.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.w.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var m;this.player&&((m=this.data)==null?0:m.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.w.attached=function(){this.onWindowResized()};
_.w.detached=function(){this.clearTimeouts()};
_.w.onWindowResized=function(){this.updateSize()};
_.w.computePanelLayout=function(m){return m&&m.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.w.playVideo=function(){var m;this.video&&((m=this.data)==null?0:m.videoThumbnail)&&this.video.play();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.play()};
_.w.stopVideo=function(){var m;this.video&&((m=this.data)==null?0:m.videoThumbnail)&&this.video.stop();var G;this.player&&((G=this.data)==null?0:G.inlinePlaybackRenderer)&&this.player.stop()};
_.w.transitionOut=function(){var m=this;this.transitioningOut=!0;return new Promise(function(G){m.player&&(m.player.playing=!1);var K=_.VL(m.hostElement).querySelector("#action-button");if(K){var W=function(){K.removeEventListener("animationend",W);_.Fu.cancelJob(L);G();m.transitioningOut=!1};
var L=_.rC(_.Fu,W,1E3);K.addEventListener("animationend",W)}else G(),m.transitioningOut=!1})};
_.w.computeMetadataOrder=function(m){return m&&m.metadataOrder&&m.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?m.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.w.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.w.computeAvatarSize=function(m){return m&&m.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.w.onContentClick=function(m){if(!_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString()])){var G;if((G=this.data)==null?0:G.navigationEndpoint){var K;this.componentBehavior.resolveCommand((K=this.data)==null?void 0:K.navigationEndpoint)}}};
_.w.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.w.setBackgroundImage=function(m){if(m=this.getBackgroundImageUrl(m))_.VL(this.hostElement).querySelector("#hero").style.backgroundImage="url("+m+")"};
_.w.setScrimLayer=function(m){var G=this.getScrimLayerColorStops(m);m=((m==null?void 0:m.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(m=180);_.E8("HTML_DIR")==="rtl"&&(m=-m);G&&(_.VL(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+m+"deg, "+G+")")};
_.w.isNarrower=function(){return this.hostElement.clientWidth<Uu.NARROW_VERSION_SIZE};
_.w.getScrimLayerColorStops=function(){var m,G=(m=this.data)==null?void 0:m.scrimColorValues;if(!G)return null;if(G.length===1)return m=_.ce(G[0]),m+" 0%, "+m+" 100%";if(G.length===3){var K=[0,72,98];return G.map(function(W,L){return _.ce(W)+" "+K[L]+"%"}).join(",")}return null};
_.w.getBackgroundImageUrl=function(m){return m&&m.largeFormFactorBackgroundThumbnail?_.qy((m.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||m.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.w.onPlaying=function(){this.startVideoTimeout()};
_.w.onEnded=function(){this.rotate()};
_.w.startPanelTimeout=function(){var m=this;if(!this.panelTimeoutJobId){var G=this.get("data.minPanelDisplayDurationMs");G&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.rC(_.Fu,function(){m.rotate()},G))}};
_.w.startVideoTimeout=function(){var m=this;if(!this.videoTimeoutJobId){_.Fu.cancelJob(this.panelTimeoutJobId);var G=Date.now()-this.panelTimeoutJobStartMs;G=Math.max(0,this.get("data.minPanelDisplayDurationMs")-G);G=Math.max(this.get("data.minVideoPlayDurationMs")||0,G);this.videoTimeoutJobId=_.rC(_.Fu,function(){m.rotate()},G)}};
_.w.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Fu.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Fu.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.w.rotate=function(){this.clearTimeouts();_.Zw(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.e_.Object.defineProperties(Uu.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.VL(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.VL(this.hostElement).querySelector("#video")}}});
_.e_.Object.defineProperties(Uu,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Uu.prototype.onEnded=Uu.prototype.onEnded;Uu.prototype.onPlaying=Uu.prototype.onPlaying;Uu.prototype.dataChanged=Uu.prototype.dataChanged;_.x([_.q(_.un),_.S("design:type",Object)],Uu.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Uu.prototype,"componentBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Uu.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.q(_.HPG),_.S("design:type",Object)],Uu.prototype,"ytBooleanLogicBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"disableGridStateAware",void 0);_.x([_.V(),_.S("design:type",Object)],Uu.prototype,"data",void 0);_.x([_.V({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.S("design:type",String)],Uu.prototype,"panelLayout",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"animationEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"transitioningOut",void 0);
_.x([_.V({computed:"computeMetadataOrder(data)"}),_.S("design:type",Boolean)],Uu.prototype,"metadataOrder",void 0);_.x([_.V({computed:"computeByline(data)"}),_.S("design:type",Object)],Uu.prototype,"byline",void 0);_.x([_.V({computed:"computeAvatarSize(data)"}),_.S("design:type",Number)],Uu.prototype,"avatarSize",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"narrow",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"narrower",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"layoutStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Uu.prototype,"isCarouselInFeed",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uu.prototype,"dataChanged",null);_.x([_.XC("yt-default-promo-panel-renderer-playing"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uu.prototype,"onPlaying",null);
_.x([_.XC("yt-default-promo-panel-renderer-ended"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uu.prototype,"onEnded",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Uu);
_.y(Uu,"ytd-default-promo-panel-renderer",function(){if(Ll5!==void 0)return Ll5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Ll5=m},{mode:1});_.Kz("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var zV=function(){var m=_.d.apply(this,arguments)||this;m.narrower=!1;m.dotMenuVisible=!1;m.paginationThumbnailsVisible=!1;m.active=!0;m.disableGridStateAware=!1;m.actionMap={"yt-window-resized":"onWindowResized"};return m};
_.n(zV,_.d);_.w=zV.prototype;_.w.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]]"}}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.xC(this,this.onPageTypeChange));this.currentPageSubtype=_.eeM(location.pathname);this.onWindowResized()};
_.w.detached=function(){this.jobId&&_.Fu.cancelJob(this.jobId);this.updateSizeJobId&&_.Fu.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.xC(this,this.onPageTypeChange))};
_.w.onPageTypeChange=function(m){this.active=m.detail.newPageSubtype===this.currentPageSubtype};
_.w.onWindowResized=function(){this.updateSize()};
_.w.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.w.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.w.setCarouselItem=function(m){m>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Fu.cancelJob(this.jobId);var G=this.getCurrentPanelElement();G&&G.stopVideo();this.currentItemIndex=m%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(G||(G=this.getCurrentPanelElement()),G.playVideo()):this.startRotationJob()};
_.w.scrollThumbnails=function(m){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var G=this.getCurrentPaginationElement();if(G){var K=_.VL(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?K.style.transform="translateX(0)":(G=G.offsetWidth+8,K.style.transform="translateX(-"+G*(m-Math.ceil(Math.floor(this.overlay.offsetWidth/G)/2)+1)+"px)")}}};
_.w.onDataChanged=function(){var m=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.UU(_.Fu,function(){var G;(G=m.getCurrentPanelElement())==null||G.updateSize();m.updateSize()}))};
_.w.getCurrentPanelElement=function(){return _.VL(_.VL(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.w.getCurrentPaginationElement=function(){return _.VL(_.VL(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.w.getNavigationClass=function(m,G){return m===G?"selected":""};
_.w.getNavigationDurationStyle=function(m){return"animation-duration:"+(this.get("data.carouselItems."+m+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.w.onNavigationTap=function(m){var G=this,K=m.model.index;K!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){G.setCarouselItem(K)}),this.autorotateActive=!1)};
_.w.onVideoThumbnailEnded=function(){var m=this;if(this.shouldRotate()){var G=this.getCurrentPaginationElement();G&&(G.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){G.classList.remove("finished");m.setNextCarouselItem()}))}};
_.w.onVideoThumbnailError=function(){this.startRotationJob()};
_.w.onVideoNotPlaying=function(){this.startRotationJob()};
_.w.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.w.startRotationJob=function(){var m=this;_.Fu.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Fu.addLowPriorityJob(function(){m.getCurrentPanelElement().transitionOut().then(function(){m.setNextCarouselItem()})},this.rotationTimeout))};
_.w.computeDotMenuVisible=function(m,G){return!!m&&!!m.carouselItems&&m.carouselItems.length>1&&!m.paginationThumbnails||!!G};
_.w.computePaginationThumbnailsVisible=function(m,G){var K,W;return((W=m==null?void 0:(K=m.paginationThumbnails)==null?void 0:K.length)!=null?W:0)>1&&!G};
_.w.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.w.computePaginatorAlignment=function(m){return(m==null?void 0:m.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.w.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.w.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.w.isNarrower=function(m){return(m!=null?m:0)<Uu.NARROW_VERSION_SIZE};
zV.prototype.activeChanged=zV.prototype.activeChanged;zV.prototype.onVideoNotPlaying=zV.prototype.onVideoNotPlaying;zV.prototype.onVideoThumbnailError=zV.prototype.onVideoThumbnailError;zV.prototype.onVideoThumbnailEnded=zV.prototype.onVideoThumbnailEnded;zV.prototype.onDataChanged=zV.prototype.onDataChanged;_.x([_.q(_.un),_.S("design:type",Object)],zV.prototype,"ytdGridStateAwareBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],zV.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],zV.prototype,"currentItem",void 0);
_.x([_.V(),_.S("design:type",Number)],zV.prototype,"currentItemIndex",void 0);_.x([_.V(),_.S("design:type",Number)],zV.prototype,"rotationTimeout",void 0);_.x([_.V(),_.S("design:type",Number)],zV.prototype,"loopCount",void 0);_.x([_.V({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.S("design:type",String)],zV.prototype,"paginatorAlignment",void 0);_.x([_.V(),_.S("design:type",Number)],zV.prototype,"jobId",void 0);
_.x([_.V(),_.S("design:type",Number)],zV.prototype,"updateSizeJobId",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],zV.prototype,"isCarouselInFeed",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zV.prototype,"narrower",void 0);_.x([_.V({computed:"computeDotMenuVisible(data, narrower)"}),_.S("design:type",Object)],zV.prototype,"dotMenuVisible",void 0);
_.x([_.V({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.S("design:type",Object)],zV.prototype,"paginationThumbnailsVisible",void 0);_.x([_.V({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.S("design:type",String)],zV.prototype,"layoutType",void 0);_.x([_.V({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],zV.prototype,"autorotateActive",void 0);_.x([_.V(),_.S("design:type",Object)],zV.prototype,"active",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],zV.prototype,"disableGridStateAware",void 0);_.x([_.UM("#overlay"),_.S("design:type",HTMLElement)],zV.prototype,"overlay",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zV.prototype,"onDataChanged",null);
_.x([_.XC("yt-video-thumbnail-ended"),_.XC("yt-default-promo-panel-renderer-rotate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zV.prototype,"onVideoThumbnailEnded",null);_.x([_.XC("yt-video-thumbnail-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zV.prototype,"onVideoThumbnailError",null);
_.x([_.XC("yt-video-thumbnail-not-playing"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zV.prototype,"onVideoNotPlaying",null);_.x([_.Mg("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],zV.prototype,"activeChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],zV);
_.y(zV,"ytd-carousel-item-renderer",function(){if(WlP!==void 0)return WlP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return WlP=m},{mode:2});var ORW;var cvE;var Yw6;var rvE;var lj=function(){var m=_.d.apply(this,arguments)||this;m.answerExpanded=!1;return m};
_.n(lj,_.d);lj.prototype.toggleAnswer_=function(m){var G=_.$C(m);G&&G.classList.contains("yt-simple-endpoint")||(m.preventDefault(),m.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
lj.prototype.toggleAnswer_=lj.prototype.toggleAnswer_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lj.prototype,"answerExpanded",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],lj.prototype,"toggleAnswer_",null);
_.x([_.cL({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],lj);
_.y(lj,"yt-generic-faq-question-renderer",function(){if(rvE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Yw6===void 0&&(Yw6=document.createElement("template"));var W=Yw6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rvE=m}m=rvE;return m},{mode:2});_.Kz("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var B6=function(){return _.d.apply(this,arguments)||this};
_.n(B6,_.d);B6.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],B6.prototype,"data",void 0);_.x([_.cL({is:"yt-faq-section-renderer",disableElementRegistration:!0})],B6);
_.y(B6,"yt-faq-section-renderer",function(){if(cvE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ORW===void 0&&(ORW=document.createElement("template"));var W=ORW;K.call(G,W.content.cloneNode(!0),m.content.firstChild);cvE=m}m=cvE;return m},{mode:2});var uls=_.P(function(m){var G=m.data;var K=function(){var W;return _.gH((W=G())==null?void 0:W.rendererContext)};
m={};return _.r("content-list-item-view-model",{el:_.aC(_.On(function(){return G().rendererContext})),
class:_.VO("ytContentListItemViewModelHost",(m.ytContentListItemViewModelTappable=K,m)),role:function(){return K()?"listitem":void 0},
tabindex:function(){return K()?0:void 0},
"on:keydown":_.WR()},_.r("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.r("div",{class:"ytContentListItemViewModelImageContainer"},_.r(_.p,{cond:function(){return G().image},
then:function(W){return _.r(_.oC,{data:W,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.r(_.z$,{data:function(){var W;
return(W=G())==null?void 0:W.avatar}},{avatarViewModel:_.O9})),_.r("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.r("div",{class:_.VO("ytContentListItemViewModelTitle",function(){a:{switch(G().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var W="ytContentListItemViewModelProminentTitle";
break a}W=void 0}return W})},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytContentListItemViewModelMetadata"},_.r(_.z$,{data:function(){return G().metadata}},{contentMetadataViewModel:function(W){return _.r(_.dI,{data:W.data,
layout:1})}})))),_.r("div",{class:"ytContentListItemViewModelActionButton"},_.r(_.z$,{data:function(){var W;
return(W=G())==null?void 0:W.actionButton}},{buttonViewModel:_.kP,
toggleButtonViewModel:_.Gx})))},"Lh");var h5i=_.P(function(m){var G=m.data,K=function(){var L;return(L=G())==null?void 0:L.description},W=function(){var L;
return(L=G())==null?void 0:L.title};
return _.r("ytfc-youth-basic-section-header-view-model",{class:_.VO("ytfcYouthBasicSectionHeaderViewModelHost",m.className)},_.r("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.r(_.z$,{data:function(){var L;return(L=G())==null?void 0:L.avatar}},{avatarViewModel:_.O9}),_.r(_.p,{cond:function(){var L;
return _.NB((L=G())==null?void 0:L.themedImage)},
then:function(L){return _.r(_.oC,{data:L,alt:function(){var A,O;return(O=(A=W())==null?void 0:A.content)!=null?O:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.r("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.r(_.p,{cond:W,
then:function(){return _.r(_.Nm,{text:W,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.r("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.r(_.z$,{data:function(){var L;
return(L=G())==null?void 0:L.bottomBadge}},{badgeViewModel:function(L){return _.r("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.r(_.vr,{data:L.data}))}}),_.r(_.p,{cond:K,
then:function(){return _.r(_.Nm,{text:K,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Mh");var pdO=_.P(function(m){var G=m.data;return _.r("ytfc-youth-section-body-view-model",{class:_.VO("ytfcYouthSectionBodyViewModelHost",m.className)},_.r(_.z$,{data:function(){var K;return(K=G())==null?void 0:K.topContent}},{avatarStackViewModel:function(K){return _.r(_.YU,{data:K.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.r(_.Nm,{text:function(){var K;
return(K=G())==null?void 0:K.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Nh");var Jvu=_.P(function(m){var G=_.g(_.g_(!1,void 0,"SrK51e")),K=G.next().value,W=G.next().value,L=function(){return m.data().inlineExpansionEntityKey},A=_.S5(mcz,L),O=function(){if(m.isSelected!==void 0)return m.isSelected();
if(L()){var u;return(u=A())==null?void 0:u.expanded}return K()};
G={};var c={};return _.r("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.dn(function(){m.isSelected!==void 0||L()||W(!K())})},_.r("div",{class:"ytInlineExpanderViewModelHeader"},_.r(_.z$,{data:function(){return m.data().headerContent}},{youthBasicSectionHeaderViewModel:h5i}),_.r("div",{class:_.VO("ytInlineExpanderViewModelButton",(G.ytInlineExpanderViewModelButtonExpanded=O,G))},_.r(_.jd,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:O(),accessibilityLabel:O()?_.zq("SHOW_LESS",void 0,"Show Less"):_.zq("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.r("div",{class:_.VO("ytInlineExpanderViewModelBody",(c.ytInlineExpanderViewModelBodyExpanded=O,c)),"aria-hidden":function(){return!O()}},_.r("div",{class:"ytInlineExpanderViewModelBodyContent"},_.r(_.z$,{data:function(){return m.data().bodyContent}},{youthSectionBodyViewModel:pdO}))))},"Oh");var Ny6=new _.sX("CONTENT_SECTION_VIEW_MODEL_TOKEN");var DJO=_.P(function(m){var G=function(){return m.data().background},K=function(){return m.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},W=function(){return m.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},L=_.xS().resolve(_.fn(Ny6)),A={};
return _.r("yt-card-view-model",{el:_.aC(_.On(function(){return m.data().rendererContext})),
class:_.VO("ytCardViewModelHost",m.className,(A.ytCardViewModelClickable=function(){return _.wH(m.data().rendererContext)},A))},_.r(_.Pr,{contentId:function(){return m.data().contentId}},function(){var O={};
return _.r("div",{class:_.VO("ytCardViewModelCardViewModelInner",function(){var c;return hzi(m.data().cardStyle,(c=m.isSelected)==null?void 0:c.call(m))},function(){if(m.isSelected===void 0){var c;
a:{switch((c=m.data().cardState)==null?void 0:c.selectionState){case "CARD_SELECTION_STATE_SELECTED":c="ytCardViewModelSelected";break a}c=void 0}return c}})},_.r(_.z$,{data:G},{cinematicContainerViewModel:function(c){return _.r(_.$d5,{data:c.data})}}),_.r("div",{class:"ytCardViewModelContentWrapper"},_.r(_.p,{cond:function(){return!K()},
then:function(){var c={},u={};return _.r("div",{class:"ytCardViewModelTopContentContainer"},_.r("div",{class:_.VO("ytCardViewModelTopContent",(c.ytCardViewModelInnerPadding=function(){return!m.data().disableTopContentPadding&&m.data().topContent},c))},_.r(_.z$,{data:function(){return m.data().topContent}},{contentListItemViewModel:function(h){return _.r(uls,{data:h.data})},
basicContentViewModel:_.pM,linearLayoutViewModel:_.D$})),_.r("div",{class:_.VO("ytCardViewModelInlineTrailingAction",(u.ytCardViewModelInlineCenterTrailingAction=W,u.ytCardViewModelInlineTrailingActionMargin=function(){return m.data().trailingAction},u))},_.r(_.z$,{data:function(){return m.data().trailingAction}},{buttonViewModel:function(h){return _.r(_.kP,{data:h.data})}})))}}),_.r("div",{class:_.VO((O.ytCardViewModelInnerPadding=function(){return!m.data().disableBodyContentPadding&&m.data().bodyContent},
O))},_.r(_.z$,{data:function(){return m.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.FmD,
contentListItemViewModel:uls,descriptionPreviewViewModel:_.Su,inlineExpanderViewModel:function(c){return _.r(Jvu,{data:c.data,isSelected:m.isSelected})},
linearLayoutViewModel:_.D$,listItemViewModel:_.Nb},L&&{contentSectionViewModel:L})))),_.r(_.p,{cond:function(){return K()},
then:function(){return _.r("div",{class:"ytCardViewModelOverlayTrailingAction"},_.r(_.z$,{data:function(){return m.data().trailingAction}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data})}}))}}))}))},"Ph");_.sh(DJO,"yt-card-view-model",{props:{data:_.Dd,className:_.Dd,isSelected:_.Dd}});var tXW;var Flq;var QZE=function(){return _.d.apply(this,arguments)||this};
_.n(QZE,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],QZE.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],QZE.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],QZE);
_.y(QZE,"ytd-channel-history-renderer",function(){if(Flq!==void 0)return Flq;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Flq=m},{mode:1});var aXs;var ohG=function(){return _.d.apply(this,arguments)||this};
_.n(ohG,_.d);_.x([_.V(),_.S("design:type",Object)],ohG.prototype,"data",void 0);_.x([_.Ye({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],ohG);
_.y(ohG,"ytd-feature-enablement-info-renderer",function(){if(aXs!==void 0)return aXs;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return aXs=m},{mode:1});var nhW;var bRO;var MD=function(){var m=_.d.apply(this,arguments)||this;m.textBoxMaxLength=_.F("enable_tvod_campaign_code_integration")?15:12;return m};
_.n(MD,_.d);_.w=MD.prototype;_.w.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.w.onSubmit=function(){var m=this.data.serviceEndpoint,G=_.Q(m,_.nQ);G&&m&&(G.couponCode=this.userInput,_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}}))};
_.w.validate=function(){var m=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=m&&!this.data.errorMessage;this.showErrorMessage=m&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.F("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.w.computeStyle=function(m){return m};
_.w.computeShowValidationBelowInput=function(m){return m!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.w.updateUserInputFromBinding=function(m){this.userInput=m.currentTarget.value};
_.w.updateShowErrorMessageFromBinding=function(m){this.showErrorMessage=m.detail.value};
_.e_.Object.defineProperties(MD.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
MD.prototype.dataChanged=MD.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MD.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],MD.prototype,"userInput",void 0);_.x([_.V(),_.S("design:type",Boolean)],MD.prototype,"disableApplyButton",void 0);_.x([_.V(),_.S("design:type",Boolean)],MD.prototype,"hideApplyButton",void 0);
_.x([_.V(),_.S("design:type",Boolean)],MD.prototype,"hideErrorMessage",void 0);_.x([_.V(),_.S("design:type",Boolean)],MD.prototype,"showTick",void 0);_.x([_.V(),_.S("design:type",Boolean)],MD.prototype,"showErrorMessage",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],MD.prototype,"couponStyle",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.S("design:type",Boolean)],MD.prototype,"showValidationBelowInput",void 0);_.x([_.V(),_.S("design:type",Object)],MD.prototype,"textBoxMaxLength",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MD.prototype,"dataChanged",null);
_.x([_.E("showTick","showErrorMessage","userInput"),_.S("design:type",String),_.S("design:paramtypes",[])],MD.prototype,"validationState",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],MD);
_.y(MD,"ytd-ypc-coupon-renderer",function(){if(bRO!==void 0)return bRO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return bRO=m},{mode:1});var TV=function(){return _.d.apply(this,arguments)||this};
_.n(TV,_.d);TV.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"}}}};
TV.prototype.computeStyle=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],TV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],TV.prototype,"buttonStyle",void 0);_.x([_.Ye({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],TV);
_.y(TV,"ytd-flow-bottom-bar-renderer",function(){if(nhW!==void 0)return nhW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return nhW=m},{mode:1});var vhG;var $JD;var mk=function(){return _.d.apply(this,arguments)||this};
_.n(mk,_.d);mk.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
mk.prototype.focus=function(m){this.title&&_.ZD(this.title,m)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mk.prototype,"data",void 0);_.x([_.UM("#title"),_.S("design:type",HTMLElement)],mk.prototype,"title",void 0);_.x([_.Ye({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],mk);
_.y(mk,"ytd-flow-top-bar-renderer",function(){if($JD!==void 0)return $JD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return $JD=m},{mode:1});var sZq;var qwP;var Eh6;var iz=function(){return _.d.apply(this,arguments)||this};
_.n(iz,_.d);iz.prototype.freeTextValueChanged=function(){_.dU(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
iz.prototype.updateFreeTextValueFromBinding=function(m){this.freeTextValue=m.detail.value};
_.e_.Object.defineProperties(iz.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(G=(m=this.data)==null?void 0:m.responseMaxLength)!=null?G:500,W;return((W=this.freeTextValue)!=null?W:"").length>=K?"maxed-out":""}}});
iz.prototype.freeTextValueChanged=iz.prototype.freeTextValueChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iz.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],iz.prototype,"freeTextValue",void 0);_.x([_.UM("#user-input"),_.S("design:type",HTMLTextAreaElement)],iz.prototype,"input",void 0);
_.x([_.E("freeTextValue"),_.S("design:type",Object),_.S("design:paramtypes",[])],iz.prototype,"characterLimitClass",null);_.x([_.Sb("freeTextValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],iz.prototype,"freeTextValueChanged",null);_.x([_.cL({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],iz);
_.y(iz,"yt-free-text-input-flow-step-renderer",function(){if(Eh6===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;qwP===void 0&&(qwP=document.createElement("template"));var W=qwP;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Eh6=m}m=Eh6;return m},{mode:2});var GA=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return m};
_.n(GA,_.d);GA.prototype.handleFreeTextFlowStepInputChanged=function(m){_.dU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:m}}])};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],GA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],GA.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GA.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],GA);
_.y(GA,"ytd-free-text-input-flow-step-renderer",function(){if(sZq!==void 0)return sZq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sZq=m},{mode:1});var HRz;var IX6;var jZi;var kRD=function(){return _.d.apply(this,arguments)||this};
_.n(kRD,_.d);_.x([_.V(),_.S("design:type",Object)],kRD.prototype,"data",void 0);_.x([_.cL({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],kRD);
_.y(kRD,"yt-survey-answer-card-renderer",function(){if(jZi===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;IX6===void 0&&(IX6=document.createElement("template"));var W=IX6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);jZi=m}m=jZi;return m},{mode:2});var CHE;var VX5;var Kj=function(){return _.d.apply(this,arguments)||this};
_.n(Kj,_.d);_.w=Kj.prototype;_.w.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.w.selectedItemChanged=function(m){_.dU(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[m.feedbackToken||""]}])};
_.w.surveyAnswerCardRendererClicked=function(m){if(m.target&&_.Q(m.model.item,Mus)){var G=m.target;m=_.Q(m.model.item,Mus);m.onTapCommand?_.eD(G,[m.onTapCommand],G):this.data.onTapCommand&&_.eD(G,[this.data.onTapCommand],G);this.selectedItemChanged(m)}};
_.w.checkIsCancellationStyle=function(m){return m==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.w.updateSelectedItemFromBinding=function(m){this.selectedItem=m.detail.value};
Kj.prototype.onSelectedItemChanged=Kj.prototype.onSelectedItemChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Kj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Kj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Kj.prototype,"selectedItem",void 0);_.x([_.V({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Kj.prototype,"isCancellationStyle",void 0);
_.x([_.Sb("selectedItem"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kj.prototype,"onSelectedItemChanged",null);_.x([_.cL({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Kj);
_.y(Kj,"yt-survey-flow-step-renderer",function(){if(VX5===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;CHE===void 0&&(CHE=document.createElement("template"));var W=CHE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);VX5=m}m=VX5;return m},{mode:2});var WQ=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return m};
_.n(WQ,_.d);WQ.prototype.handleSurveyFlowStepOptionChanged=function(m){this.ytdReduxBehavior.dispatch(_.kt({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:m}));_.dU(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:m}}])};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WQ.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],WQ);
_.y(WQ,"ytd-survey-flow-step-renderer",function(){if(HRz!==void 0)return HRz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HRz=m},{mode:1});var ZRq;var dJW;var PHi=function(){return _.d.apply(this,arguments)||this};
_.n(PHi,_.d);_.x([_.V(),_.S("design:type",Object)],PHi.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],PHi);
_.y(PHi,"ytd-metadata-line-renderer",function(){if(dJW!==void 0)return dJW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dJW=m},{mode:1});var Lj=function(){return _.d.apply(this,arguments)||this};
_.n(Lj,_.d);Lj.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Lj.prototype,"isMasthead",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Lj);
_.y(Lj,"ytd-media-product-renderer",function(){if(ZRq!==void 0)return ZRq;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ZRq=m},{mode:1});var yvD;var A2=function(){return _.d.apply(this,arguments)||this};
_.n(A2,_.d);A2.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
A2.prototype.onBillboardImageLoaded=function(){_.Zw(this.hostElement,"yt-refit")};
A2.prototype.onBillboardImageLoaded=A2.prototype.onBillboardImageLoaded;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],A2.prototype,"data",void 0);_.x([_.UM("#billboardImage"),_.S("design:type",Object)],A2.prototype,"billboardImage",void 0);_.x([_.XC("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],A2.prototype,"onBillboardImageLoaded",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],A2);
_.y(A2,"ytd-billboard-masthead-renderer",function(){if(yvD!==void 0)return yvD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yvD=m},{mode:1});var e5s;var wc=function(){var m=_.d.apply(this,arguments)||this;m.smallSize=!1;return m};
_.n(wc,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wc.prototype,"ytComponentBehaviorType",void 0);_.x([_.V(),_.S("design:type",Object)],wc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],wc.prototype,"smallSize",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],wc);
_.y(wc,"ytd-bullet-formatted-string",function(){if(e5s!==void 0)return e5s;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e5s=m},{mode:1});var fX5;var OS=function(){return _.d.apply(this,arguments)||this};
_.n(OS,_.d);OS.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],OS.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],OS);
_.y(OS,"ytd-offer-detail-renderer",function(){if(fX5!==void 0)return fX5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return fX5=m},{mode:1});var xJG;var cQ=function(){return _.d.apply(this,arguments)||this};
_.n(cQ,_.d);cQ.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cQ.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],cQ);
_.y(cQ,"ytd-offer-detail-step-renderer",function(){if(xJG!==void 0)return xJG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xJG=m},{mode:1});var Xd5;var Y0=function(){var m=_.d.apply(this,arguments)||this;m.isInOfferModule=!1;return m};
_.n(Y0,_.d);_.w=Y0.prototype;_.w.computeHasEndpoint=function(){var m;return!((m=this.data)==null||!m.onClickCommand)};
_.w.dataChanged=function(){var m;if((m=this.data)==null?0:m.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")};
_.w.detached=function(){var m;if((m=this.data)==null?0:m.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.w.handleClickEvent=function(){var m;if((m=this.data)==null?0:m.onClickCommand){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand)}};
_.w.onContentKeyDown=function(m){m.key==="Enter"?this.handleClickEvent(m):m.key===" "&&m.preventDefault()};
_.w.onContentKeyUp=function(m){m.key===" "&&this.handleClickEvent(m)};
Y0.prototype.dataChanged=Y0.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Y0.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Y0.prototype,"data",void 0);_.x([_.V({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Y0.prototype,"hasEndpoint",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Y0.prototype,"isInOfferModule",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Y0.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Y0);
_.y(Y0,"ytd-channel-masthead-renderer",function(){if(Xd5!==void 0)return Xd5;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Xd5=m},{mode:1});var SwE;var rc=function(){var m=_.d.apply(this,arguments)||this;m.thumbnailObjectFit="CONTAIN";m.thumbnailObjectPosition="LEFT";m.isExpanded=!1;return m};
_.n(rc,_.d);_.w=rc.prototype;_.w.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.w.dataChanged=function(){this.resetStates()};
_.w.computeisTapOnOfferInfoContainerEnabled=function(){var m;return((m=this.data)==null?void 0:m.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.w.onExpandBtnClick=function(){var m,G=_.Q((m=this.data)==null?void 0:m.showMoreButtonRenderer,mb6);G&&_.xq(_.l1(),G.trackingParams);this.isExpanded=!this.isExpanded};
_.w.onOfferInfoClick=function(m){this.isTapOnOfferInfoContainerEnabled&&(_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.vp(_.ve(m)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.w.onBottomBarClick=function(){this.executeTapCommand()};
_.w.executeTapCommand=function(){var m,G=(m=this.data)==null?void 0:m.tapCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.resetStates=function(){this.isExpanded=!1};
_.e_.Object.defineProperties(rc.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var m=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),G,K,W;return((G=this.data)==null?void 0:G.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&m&&!!((K=this.data)==null?0:(W=K.benefits)==null?0:W.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((G=_.Q((m=this.data)==null?void 0:m.showMoreButtonRenderer,mb6))==null?void 0:G.showMoreButtonTitle)||((K=this.data)==null?void 0:K.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((G=_.Q((m=this.data)==null?void 0:m.showMoreButtonRenderer,mb6))==null?void 0:G.showLessButtonTitle)||((K=this.data)==null?void 0:K.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var m;return(m=this.showLessButtonTitle)!=null?m:""}var G;return(G=this.showMoreButtonTitle)!=null?G:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?void 0:m.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((G=this.data)==null?0:G.footerTitle)||((K=this.data)==null?0:K.footerSubtitle))}}});
rc.prototype.dataChanged=rc.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rc.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",String)],rc.prototype,"thumbnailObjectFit",void 0);
_.x([_.V(),_.S("design:type",String)],rc.prototype,"thumbnailObjectPosition",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.S("design:type",Boolean)],rc.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.x([_.V(),_.S("design:type",Object)],rc.prototype,"isExpanded",void 0);_.x([_.V(),_.S("design:type",Object)],rc.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.footerIcon)"}),_.S("design:type",String)],rc.prototype,"icon",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rc.prototype,"dataChanged",null);_.x([_.E("data.thumbnail"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rc.prototype,"hasThumbnail",null);_.x([_.E("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rc.prototype,"enableExpandButton",null);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rc.prototype,"enableOfferContentIcon",null);_.x([_.E("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],rc.prototype,"showMoreButtonTitle",null);_.x([_.E("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.S("design:type",Object),_.S("design:paramtypes",[])],rc.prototype,"showLessButtonTitle",null);
_.x([_.E("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.S("design:type",String),_.S("design:paramtypes",[])],rc.prototype,"expandedBtnText",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],rc.prototype,"enableBottomBar",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],rc);
_.y(rc,"ytd-offer-card-renderer",function(){if(SwE!==void 0)return SwE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return SwE=m},{mode:1});var R5i;var uz=function(){return _.d.apply(this,arguments)||this};
_.n(uz,_.d);uz.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"}}}};
uz.prototype.onClick=function(m){if(!_.b_(m.composedPath()||[],this.hostElement,["A".toString()])){var G,K;if((m=(K=_.Q((G=this.data)==null?void 0:G.actionButton,_.uu))==null?void 0:K.command)&&!this.ytComponentBehavior.resolveCommand(m)){var W;(W=_.l1())==null||W.clickCommand(m);_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})}}};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],uz.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],uz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uz.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],uz);
_.y(uz,"ytd-offer-content-renderer",function(){if(R5i!==void 0)return R5i;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return R5i=m},{mode:1});var UJ6;var h2=function(){return _.d.apply(this,arguments)||this};
_.n(h2,_.d);h2.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.e_.Object.defineProperties(h2.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.title)||!((G=this.data)==null||!G.description)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],h2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],h2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],h2.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],h2.prototype,"hasHeaderData",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],h2);
_.y(h2,"ytd-offer-section-renderer",function(){if(UJ6!==void 0)return UJ6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return UJ6=m},{mode:1});var z55;var pj=function(){return _.d.apply(this,arguments)||this};
_.n(pj,_.d);
pj.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pj.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],pj);
_.y(pj,"ytd-offer-selection-step-renderer",function(){if(z55!==void 0)return z55;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return z55=m},{mode:1});var lXz;var J2=function(){return _.d.apply(this,arguments)||this};
_.n(J2,_.d);J2.prototype.computeStyle=function(m){return m};
J2.prototype.computeImageWidth=function(m){return m==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.x([_.V({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.S("design:type",String)],J2.prototype,"containerStyle",void 0);_.x([_.V({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.S("design:type",String)],J2.prototype,"imageWidth",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],J2.prototype,"data",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],J2);
_.y(J2,"ytd-confirmation-masthead-renderer",function(){if(lXz!==void 0)return lXz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lXz=m},{mode:1});var ByD;var N5=function(){return _.d.apply(this,arguments)||this};
_.n(N5,_.d);N5.prototype.computeStyle=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],N5.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.S("design:type",String)],N5.prototype,"containerStyle",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],N5);
_.y(N5,"ytd-purchase-complete-detail-renderer",function(){if(ByD!==void 0)return ByD;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ByD=m},{mode:1});var MXD;var Do=function(){var m=_.d.apply(this,arguments)||this;m.scriptsAppended=!1;return m};
_.n(Do,_.d);Do.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"}}}};
Do.prototype.onDataChanged=function(){var m=this.get("data.gtmId");m&&(_.MQ(m,_.E8("GL","")),this.setupConversionTracking())};
Do.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var m=document.createElement("noscript");m.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(m);this.scriptsAppended=!0}};
Do.prototype.onDataChanged=Do.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Do.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Do.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Do.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Do.prototype,"scriptsAppended",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Do.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Do);
_.y(Do,"ytd-purchase-complete-step-renderer",function(){if(MXD!==void 0)return MXD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return MXD=m},{mode:1});var TyO;var t2=function(){return _.d.apply(this,arguments)||this};
_.n(t2,_.d);t2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],t2.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],t2);
_.y(t2,"ytd-ypc-transaction-error-message-renderer",function(){if(TyO!==void 0)return TyO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return TyO=m},{mode:1});var mfD;var iiq;var FL=function(){var m=_.d.apply(this,arguments)||this;m.handlePhoneVerificationSuccess=function(G){if(m.isValidPhoneVerificationCompletionMessageEvent(G)){var K;((K=m.data)==null?0:K.nextStepCommand)&&m.ytComponentBehavior.resolveCommand(m.data.nextStepCommand)}};
return m};
_.n(FL,_.d);FL.prototype.isValidPhoneVerificationCompletionMessageEvent=function(m){if(m.data!=="yt-phone-verification-complete")return!1;m=_.eh(m.origin);return m!==null&&m.includes("youtube.com")};
FL.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
FL.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],FL.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FL.prototype,"data",void 0);_.x([_.cL({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],FL);
_.y(FL,"yt-feature-enablement-soft-entry-renderer",function(){if(iiq===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;mfD===void 0&&(mfD=document.createElement("template"));var W=mfD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);iiq=m}m=iiq;return m},{mode:1});var Guu;var KZO;var WZ6;var LZG;var Ak6=function(){return _.d.apply(this,arguments)||this};
_.n(Ak6,_.d);_.x([_.V(),_.S("design:type",Object)],Ak6.prototype,"data",void 0);_.x([_.cL({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Ak6);
_.y(Ak6,"yt-benefits-item-renderer",function(){if(LZG===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;WZ6===void 0&&(WZ6=document.createElement("template"));var W=WZ6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);LZG=m}m=LZG;return m},{mode:2});var w5D;var g7q;var Q2=function(){return _.d.apply(this,arguments)||this};
_.n(Q2,_.d);Q2.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Q2.prototype.computeisWithoutPadding=function(){var m;return((m=this.data)==null?void 0:m.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Q2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Q2.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.S("design:type",Boolean)],Q2.prototype,"isWithoutPadding",void 0);_.x([_.cL({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Q2);
_.y(Q2,"yt-benefits-section-renderer",function(){if(g7q===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;w5D===void 0&&(w5D=document.createElement("template"));var W=w5D;K.call(G,W.content.cloneNode(!0),m.content.firstChild);g7q=m}m=g7q;return m},{mode:2});var a8=function(){return _.d.apply(this,arguments)||this};
_.n(a8,_.d);a8.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
a8.prototype.computeisUsingLargeWidth=function(){var m;return((m=this.data)==null?void 0:m.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a8.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.S("design:type",Boolean)],a8.prototype,"isUsingLargeWidth",void 0);_.x([_.cL({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],a8);
_.y(a8,"yt-benefits-flow-step-renderer",function(){if(KZO===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Guu===void 0&&(Guu=document.createElement("template"));var W=Guu;K.call(G,W.content.cloneNode(!0),m.content.firstChild);KZO=m}m=KZO;return m},{mode:2});var Oiq;var cki;var o8=function(){return _.d.apply(this,arguments)||this};
_.n(o8,_.d);o8.prototype.checkIsUsingLargeWidth=function(){var m;return((m=this.data)==null?void 0:m.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.x([_.V(),_.S("design:type",Object)],o8.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.x([_.V({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.S("design:type",Boolean)],o8.prototype,"isUsingLargeWidth",void 0);_.x([_.cL({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],o8);
_.y(o8,"yt-confirmation-flow-step-renderer",function(){if(cki===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;Oiq===void 0&&(Oiq=document.createElement("template"));var W=Oiq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);cki=m}m=cki;return m},{mode:2});var YEi;var rki;var u1z=function(){return _.d.apply(this,arguments)||this};
_.n(u1z,_.d);_.x([_.V(),_.S("design:type",Object)],u1z.prototype,"data",void 0);_.x([_.cL({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],u1z);
_.y(u1z,"yt-info-flow-step-renderer",function(){if(rki===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;YEi===void 0&&(YEi=document.createElement("template"));var W=YEi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rki=m}m=rki;return m},{mode:2});var h2D;var p5O;var Jks=function(){return _.d.apply(this,arguments)||this};
_.n(Jks,_.d);_.x([_.V(),_.S("design:type",Object)],Jks.prototype,"data",void 0);_.x([_.cL({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Jks);
_.y(Jks,"yt-info-list-flow-step-renderer",function(){if(p5O===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;h2D===void 0&&(h2D=document.createElement("template"));var W=h2D;K.call(G,W.content.cloneNode(!0),m.content.firstChild);p5O=m}m=p5O;return m},{mode:2});var NfD=_.P(function(m){var G=m.data;return _.r("styled-text-view-model",{class:_.VO("ytStyledTextViewModelHost",function(){return $W6(G().fontAttributes)},function(){return vgO(G().color)})},_.r(_.Nm,{text:function(){return G().text},
ariaLabel:function(){var K,W,L;return(L=(K=G().accessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)!=null?L:""}}))},"Qh");
NfD.idomCompat=!0;var DfD=_.P(function(m){var G=function(){var L,A,O,c;return(c=(O=(L=m.alt)==null?void 0:L.call(m))!=null?O:(A=m.data().accessibilityData)==null?void 0:A.label)!=null?c:""},K=function(){return m.data().imageWidth},W=function(){return m.data().imageHeight};
return _.r("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.r(_.p,{cond:function(){var L=m.data();if(L){var A,O,c;var u=((A=_.xS().resolve(_.fn(_.l_)))==null?0:A())?(O=L.imageDark)!=null?O:L.imageLight:(c=L.imageLight)!=null?c:L.imageDark}else u=void 0;return u},
then:function(L){return _.r(_.oC,Object.assign({},m,{data:L,alt:G,targetWidth:K,targetHeight:W,preserveHeight:!0,preserveWidth:!0}))}}))},"Rh");
DfD.idomCompat=!0;var nj=_.P(function(m){var G=m.data;m=_.sQ(function(){return G().slots},[]);
var K=_.sQ(function(){return G().layoutProperties},{}),W=_.xS().resolve(_.t3);
return _.r("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:QLD(K,W)},_.r(_.D0,{each:m,keyBy:"INDEX"},function(L){return _.r("div",{class:"ytContainerLayoutViewModelSlot",style:QLD(function(){return L().layoutProperties},W)},_.r(_.z$,{data:function(){return L().contents}},{containerLayoutViewModel:nj,
badgeViewModel:_.vr,buttonViewModel:_.kP,styledTextViewModel:NfD,contentPreviewImageViewModel:function(A){return _.r(_.VA,{data:A.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(A){return _.r(DfD,{data:A.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Sh");
nj.idomCompat=!0;var t2E=_.P(function(m){var G=m.data;var K=m.stateFns;var W=function(){var h=G(),J=h.productId;return!(!h.clearGroupId&&!J)},L=function(){var h=G(),J=h.clearGroupId;
return(h=h.productId)?K().isProductSelected(h):J?K().getSelectedProductByGroupId(J)==null:!1},A=function(h){var J=G(),N=J.clearGroupId;
if(J=J.productId)K().onProductSelected(J),h==null||h.forEach(function(D){_.h$(D)});
else if(N)K().onClearGroupSelected(N)},O=function(){var h=G(),J=h.clearGroupId;
if(h=h.productId){var N;return"group:"+(((N=K().getProductById(h))==null?void 0:N.groupId)||"")}return J?"group:"+J:""},c=_.sQ(function(){return G().header},[]),u=_.sQ(function(){return G().body},[]);
return _.r("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.r(_.p,{cond:function(){return c().length>0||W()},
then:function(){return _.r("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.r("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.r(_.z$,{data:c},{containerLayoutViewModel:function(h){return _.r("div",{class:"ytPdpCardSectionViewModelContentItem"},_.r(nj,{data:h.data}))},
styledTextViewModel:function(h){return _.r("div",{class:"ytPdpCardSectionViewModelContentItem"},_.r(NfD,{data:h.data}))}})),_.r(_.p,{cond:W,
then:function(){return _.r("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.r(_.J0,{checked:L,name:O,onChange:function(){A(G().onSelect)}}))}}))}}),_.r(_.p,{cond:function(){return u().length>0},
then:function(){return _.r("div",null,_.r(_.z$,{data:u},{containerLayoutViewModel:function(h){return _.r("div",{class:"ytPdpCardSectionViewModelContentItem"},_.r(nj,{data:h.data}))}}))}}))},"Th");
t2E.idomCompat=!0;var FZ6=_.P(function(m){var G=m.data;var K=m.stateFns;return _.r("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.r(_.p,{cond:function(){return G().banner},
then:function(W){return _.r("div",{class:"ytPdpCardViewModelBanner"},_.r(_.Nm,{text:W}))}}),_.r(_.z$,{data:function(){return G().sections}},{pdpCardSectionViewModel:function(W){W=W.data;
var L={};return _.r("div",{class:_.VO("ytPdpCardViewModelSectionContainer",(L.ytPdpCardViewModelShowDividers=function(){return G().showDividers},L))},_.r(t2E,{data:W,
stateFns:K}))}}))},"Uh");
FZ6.idomCompat=!0;var Qz6=_.P(function(m){var G=m.data;var K=m.isOverlay;m={};return _.r("pdp-masthead-view-model",{class:_.VO("ytPdpMastheadViewModelHost",(m.ytPdpMastheadViewModelIsOverlay=K,m))},_.r(_.z$,{data:function(){return G().image}},{contentPreviewImageViewModel:_.VA,
themedImageViewModel:function(W){return _.r(DfD,{data:W.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.r(_.p,{cond:function(){return G().title},
then:function(W){return _.r("h1",{class:"ytPdpMastheadViewModelHeading"},_.r(_.Nm,{text:W,isOverlay:K}))}}),_.r(_.D0,{each:function(){var W;
return(W=G().finePrint)!=null?W:[]}},function(W){return _.r("div",{class:"ytPdpMastheadViewModelFinePrint"},_.r(_.Nm,{text:W,
isOverlay:K}))}))},"Vh");
Qz6.idomCompat=!0;var arq=_.P(function(m){var G=m.data;var K=m.stateFns;var W=function(){return"pdp-pricing-group-selector-"+G().pricingGroupAttributeIds},L=_.sQ(function(){return G().pricingGroupSelectorSectionHeader});
return _.r("pdp-pricing-group-selector-view-model",null,_.r(_.p,{cond:function(){return!!L()},
then:function(){return _.r(_.z$,{data:L},{sectionHeaderViewModel:function(A){A=A.data;var O={};return _.r("div",{class:_.VO("ytPdpPricingGroupSelectorViewModelSectionHeader",(O.ytPdpPricingGroupSelectorViewModelFullBleed=!0,O.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,O))},_.r(_.R4,{data:A}))}})}}),_.r("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.r(_.D0,{each:function(){var A=K().getSelectedProductByGroupId(G().groupId);
if(!A)return _.om(Error("Dl`"+G().groupId)),[];var O,c=(O=G().pricingGroupAttributeIds)!=null?O:[],u;if((u=A.pricingGroups)==null||!u.length||!c.length)return[];O=A.pricingGroups.filter(function(D){return c.length?D.pricingGroupAttributes.every(function(t){return c.includes(t)}):!1});
A=[];if(c.length>0){O=[].concat(_.Bz(O));u=_.g(c);for(var h=u.next(),J={};!h.done;J={targetAttrId:void 0},h=u.next())J.targetAttrId=h.value,h=O.findIndex(function(D){return function(t){return t.pricingGroupAttributes.includes(D.targetAttrId)}}(J)),h!==-1&&(A.push(O[h]),O.splice(h,1))}var N=K().getSelectedPricingGroupAttributesByGroupId(G().groupId);
return A.map(function(D){var t=!1;N&&D.pricingGroupAttributes&&(t=g7(D.pricingGroupAttributes,N));return{pricingGroup:D,isSelected:t}})},
keyBy:function(A){return A.pricingGroup.pricingGroupId}},function(A){return _.r("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.r("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.r(_.z$,{data:function(){return A().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:nj})),_.r("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.r(_.J0,{checked:function(){return A().isSelected},
name:W,onClick:function(){var O=A().pricingGroup;K().onPricingGroupSelected(O.pricingGroupId);if(O=_.c8(O.onSelectPricingGroup)){var c;(c=_.xS().resolve(_.S1))==null||c.resolveCommand(O)}}})))})))},"Wh");
arq.idomCompat=!0;var o7E=_.P(function(m){var G=m.data;var K=m.stateFns;var W=function(){var O=K().getSelectedPricingOptions().map(function(h){return h.pricingOptionId}),c=K().getSelectedProductByGroupId(G().groupId);
if(!c)return _.om(Error("El`"+G().groupId)),[];var u=K().getSelectedPricingGroupAttributesByGroupId(G().groupId);return Ig6(c.pricingOptions,u,O)},L=_.sQ(function(){return G().pricingOptionSelectorSectionHeader}),A=function(){return W().length>1};
return _.r("pdp-pricing-option-selector-view-model",null,_.r(_.p,{cond:function(){return!!L()&&A()},
then:function(){return _.r(_.z$,{data:L},{sectionHeaderViewModel:function(O){O=O.data;var c={};return _.r("div",{class:_.VO("ytPdpPricingOptionSelectorViewModelSectionHeader",(c.ytPdpPricingOptionSelectorViewModelFullBleed=!0,c.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,c))},_.r(_.R4,{data:O}))}})}}),_.r(_.p,{cond:A,
then:function(){return _.r("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.r(_.D0,{each:W,keyBy:"INDEX"},function(O){return _.r("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.r("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.r(_.z$,{data:function(){return O().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:nj})),_.r("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.r(_.J0,{checked:function(){return O().isSelected},
onClick:function(){K().onPricingOptionSelected(O().pricingOption.pricingOptionId);var c=O().pricingOption.onSelectPricingOption;if(c=_.c8(c)){var u;(u=_.xS().resolve(_.S1))==null||u.resolveCommand(c)}}})))}))}}))},"Xh");
o7E.idomCompat=!0;var n7D=_.P(function(m){var G=m.data;var K=m.stateFns;return _.r("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.r(_.z$,{data:function(){var W,L;return(L=(W=K().getSelectedPricingOptions()[0])==null?void 0:W.primaryButton)!=null?L:G().emptyStateButton}},{buttonViewModel:_.kP}))},"Yh");
n7D.idomCompat=!0;var biW=_.P(function(m){var G=m.stateFns;return _.r("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.r(_.z$,{data:function(){return G().getSelectedPricingOptions().flatMap(function(K){return K.summaryLines}).filter(function(K){return!!K})}},{containerLayoutViewModel:function(K){return _.r("div",{class:"ytPdpSummaryViewModelLineItem"},_.r(nj,{data:K.data}))}}))},"Zh");
biW.idomCompat=!0;var v7W=_.P(function(m){function G(a){var v=O();_.$e(_.wS("pdpStateEntity",v,{key:v,selectedPricingOptions:a}))}
var K=m.data;var W=m.internalScrolling;var L=m.stateFnsForTesting;var A=_.sQ(function(){return K().allProducts},[]),O=_.sQ(function(){return K().pdpStateEntityKey},""),c=_.S5(jLi,O),u=_.pT(function(){_.EZ(!0);
var a;return(a=L==null?void 0:L())!=null?a:C_6(c,A,G)},void 0,"Pzdsic"),h=_.sQ(function(){return K().body},[]),J=_.sQ(function(){return K().columnBreakHints},[]),N=function(){return K().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},D=function(){return N()||K().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},t=_.pT(function(){var a=_.NB(K().background),v;
if(a==null?0:(v=a.sources)==null?0:v.length){var I=I===void 0?!0:I;a=_.avJ(void 0,a.sources,void 0,I,I?1E3:void 0,I?void 0:1E3)}else a=null;return a},void 0,"RDPOae");
_.bX(function(){var a=K().onStartCommand;if(a&&(a=_.c8(a))){var v;(v=_.xS().resolve(_.S1))==null||v.resolveCommand(a)}});
m={};return _.r("pdp-view-model",{class:_.VO("ytPdpViewModelHost",(m.ytPdpViewModelHasBackground=function(){return D()||!!t()},m.ytPdpViewModelHasDarkBackground=D,m.ytPdpViewModelHasScrim=N,m.ytPdpViewModelInternalScrolling=W,m.ytPdpViewModelForceSingleColumn=function(){return J().length===0},m)),
style:_.eA({"--pdp-view-model-background":function(){return t()?"url("+t()+")":void 0}})},_.r("div",{class:"ytPdpViewModelColumnContainer"},_.r(_.D0,{each:function(){return V5E(h(),J())},
keyBy:"INDEX"},function(a){return _.r("div",{class:"ytPdpViewModelColumn"},_.r(_.z$,{data:a},{containerLayoutViewModel:function(v){return _.r(bz,null,_.r(nj,{data:v.data}))},
dividerViewModel:function(v){return _.r(bz,{fullBleed:!0},_.r(_.HXk,{data:v.data}))},
pdpCardViewModel:function(v){return _.r(bz,null,_.r(FZ6,{data:v.data,stateFns:u}))},
pdpMastheadViewModel:function(v){return _.r(bz,null,_.r(Qz6,{data:v.data,isOverlay:D}))},
pdpPricingGroupSelectorViewModel:function(v){return _.r(bz,null,_.r(arq,{data:v.data,stateFns:u}))},
pdpPricingOptionSelectorViewModel:function(v){return _.r(bz,null,_.r(o7E,{data:v.data,stateFns:u}))},
pdpPrimaryButtonViewModel:function(v){return _.r(bz,null,_.r(n7D,{data:v.data,stateFns:u}))},
pdpSummaryViewModel:function(v){return _.r(bz,null,_.r(biW,{data:v.data,stateFns:u}))},
sectionHeaderViewModel:function(v){return _.r(bz,{fullBleed:!0,noVerticalPadding:!0},_.r(_.R4,{data:v.data}))}}))})))},"$h");
v7W.idomCompat=!0;var bz=_.P(function(m){var G={};return _.r("div",{class:_.VO("ytPdpViewModelItem",(G.ytPdpViewModelFullBleed=m.fullBleed,G.ytPdpViewModelNoVerticalPadding=m.noVerticalPadding,G))},m.children)},"ai");_.sh(v7W,"pdp-view-model",{props:{data:_.Dd,stateFnsForTesting:_.nN,internalScrolling:_.nN}});var $fD=_.P(function(m){var G=m.data;var K=m.className;var W=_.S5(_.sU,function(){return G().flowStateEntityKey});
return _.r("ytm-premium-purchase-button-renderer",{class:_.VO("ytPremiumPurchaseButtonRendererHost",K)},_.r(_.z$,{data:function(){var L;return(L=_.Q(W(),dW6))==null?void 0:L.primaryButtonOverride}},{buttonRenderer:function(L){return _.r(_.bv,{data:L.data,
className:K})},
buttonViewModel:function(L){return _.r(_.kP,{data:L.data,className:K})}}))},"bi");
$fD.idomCompat=!0;var szD=_.P(function(m){var G=m.data;m=m.className;var K=function(){return Zz6(G().style)},W=_.VO("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",K),L=_.VO("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",K);
return _.r("yt-flow-bottom-bar-renderer",{class:_.VO("yt-flow-bottom-bar-renderer",m,K)},_.r(_.z$,{data:function(){return G().secondaryButton}},{buttonRenderer:function(A){return _.r(_.bv,{data:A.data,
className:L})},
buttonViewModel:function(A){return _.r(_.kP,{data:A.data,className:L})},
premiumPurchaseButtonRenderer:function(A){return _.r($fD,{data:A.data,className:L})}}),_.r(_.z$,{data:function(){return G().primaryButton}},{buttonRenderer:function(A){return _.r(_.bv,{data:A.data,
className:W})},
buttonViewModel:function(A){return _.r(_.kP,{data:A.data,className:W})},
premiumPurchaseButtonRenderer:function(A){return _.r($fD,{data:A.data,className:W})}}))},"ci");
szD.idomCompat=!0;_.sh(szD,"yt-flow-bottom-bar-renderer",{props:{data:_.Dd,className:_.Dd}});var qEq=_.P(function(m){var G=_.VO(m.className,"ytOfferSummaryRendererHost");return _.r("yt-offer-summary-renderer",{class:G},_.r("div",{class:"ytOfferSummaryRendererTextContainer"},_.r("div",{class:"ytOfferSummaryRendererEyebrowText"},_.r(_.Nm,{text:function(){return m.data().eyebrowText}})),_.r("div",{class:"ytOfferSummaryRendererTitle"},_.r(_.Nm,{text:function(){return m.data().title}})),_.r("div",{class:"ytOfferSummaryRendererSubtitle"},_.r(_.Nm,{text:function(){return m.data().subtitle}})),_.r("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.r(_.D0,{each:function(){var K;
return(K=m.data().featureListData)!=null?K:[]}},function(K){var W;
return _.r("div",{class:"ytOfferSummaryRendererFeatureList"},_.r(_.fN,{icon:(W=K.icon)==null?void 0:W.iconType,active:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(K.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.r("div",{class:"ytOfferSummaryRendererFeatureListText"},_.r(_.Nm,{text:K.text,
className:function(){return K.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.r("div",{class:"ytOfferSummaryRendererDescription"},_.r(_.Nm,{text:function(){return m.data().description}}))))},"di");_.sh(_.P(function(m){var G={};G=_.VO("ytOfferSummaryFlowStepRendererHost",(G.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=m.shouldDisableHeaderTopMargin,G));return _.r("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:G},_.r("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.r("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.r(_.Nm,{text:function(){return m.data().header}})),_.r("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.r(_.Nm,{text:function(){return m.data().subtitle}}))),_.r("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.r(_.z$,{data:function(){return m.data().offerSummary}},{offerSummaryRenderer:function(K){return _.r(qEq,{data:K.data,
className:m.flowClassName})}})))},"ei"),"yt-offer-summary-flow-step-renderer",{props:{data:_.nN,
flowClassName:_.nN,flowStateEntityKey:_.nN,shouldDisableHeaderTopMargin:_.nN}});var E7s=_.P(function(m){var G=m.data;var K=m.className;var W=m.flowStateEntityKey;var L=m.selectionStepStyle;m=_.dn(function(u){var h=G(),J=W==null?void 0:W();u.target&&(u.stopPropagation(),u=J||"",J=_.sU(_.nD().getState(),u),h=Object.assign({},J,{premiumPurchaseFlowState:{selectedOptionId:h.optionId,primaryButtonOverride:h.primaryButtonOverride}}),_.nD().dispatch(_.Bp("flowStateEntity",u,h)));return!1});
var A=function(){return(W==null?void 0:W())||""},O=_.S5(_.sU,A);
_.bX(function(){var u=G(),h=A(),J=O();u.defaultSelected&&h!==""&&u.primaryButtonOverride&&P_D(u.optionId||"",h,u.primaryButtonOverride,J)});
var c={};return _.r("ytm-option-item-renderer",{"on:click":m,class:_.VO(K,"ytm-option-item-renderer",(c["ytm-option-item-renderer--lp2-style"]=function(){return(L==null?void 0:L())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},c))},_.r("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.r("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var u=G(),h=A(),J=O();J=_.Q(J,dW6);return(J?(J==null?void 0:J.selectedOptionId)||"":u.defaultSelected&&h!==""?(u==null?void 0:u.optionId)||"":"")===G().optionId},
name:("input"+_.cZ(_.rA)).toString()})),_.r("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.r(_.z$,{data:function(){return G().titleBadge}},{badgeViewModel:function(u){return _.r(_.vr,{data:u.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.r(_.p,{cond:function(){return G().eyebrowText},
then:function(){return _.r("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.r(_.Nm,{text:function(){return G().eyebrowText}}))}}),_.r("div",{class:"ytm-option-item-renderer__option-item-title"},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.r(_.Nm,{text:function(){return G().subtitle}})),_.r(_.p,{cond:function(){return G().featureListData},
then:function(){return _.r("div",{class:"ytm-option-item-renderer__feature-list-data"},_.r(_.D0,{each:function(){return G().featureListData||[]}},function(u){var h,J=(h=u.icon)==null?void 0:h.iconType;
a:switch(u.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":h="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":h="ytm-option-item-renderer__feature-list-icon-small";break a;default:h="ytm-option-item-renderer__feature-list-icon-default"}return _.r("div",{class:"ytm-option-item-renderer__feature-list"},_.r(_.fN,{icon:J,className:h,active:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.r("div",{class:"ytm-option-item-renderer__feature-list-text"},_.r(_.Nm,{text:u.text,
className:function(){return u.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.r("div",{class:"ytm-option-item-renderer__option-item-description"},_.r(_.Nm,{text:function(){return G().description}}))))},"fi");var HiO=_.P(function(m){var G=m.data;var K=m.flowClassName;var W=m.flowStateEntityKey;var L=m.selectionStepStyle;return _.r("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.r("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.r("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.r(_.Nm,{text:function(){return G().title}}),_.r(_.z$,{data:function(){return G().titleBadge}},{badgeViewModel:function(A){return _.r(_.vr,{data:A.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.r(_.p,{cond:function(){return G().subtitle},
then:function(){return _.r("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.r(_.Nm,{text:function(){return G().subtitle}}))}}),_.r(_.p,{cond:function(){return G().featureListData},
then:function(A){return _.r("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.r(_.D0,{each:A},function(O){var c;return _.r("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.r(_.fN,{icon:(c=O.icon)==null?void 0:c.iconType,active:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(O.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.r("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.r(_.Nm,{text:O.text,
className:function(){return O.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.r(_.p,{cond:function(){return G().secondaryTitle},
then:function(){return _.r("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.r(_.Nm,{text:function(){return G().secondaryTitle}}))}}),_.r(_.D0,{each:function(){return G().sectionDisclaimers||[]}},function(A){return _.r("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.r(_.Nm,{text:A}))})),_.r(_.z$,{data:function(){return G().optionItems}},{optionItemRenderer:function(A){return _.r("div",{class:"ytOptionSectionRendererOptionItem"},_.r(E7s,{data:A.data,
className:K,flowStateEntityKey:W,selectionStepStyle:L}))}}),_.r(_.p,{cond:function(){return G().offerText},
then:function(){return _.r("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.r(_.Nm,{text:function(){return G().offerText}}))}}))},"gi");
HiO.idomCompat=!0;var IrG=_.P(function(m){var G=m.data;var K=m.flowClassName;var W=m.flowStateEntityKey;m=m.isDesktop;var L=_.Q3("div"),A=function(){var J;return(J=G().flowStateEntityKey)!=null?J:W==null?void 0:W()},O=function(){return(A==null?void 0:A())||""},c=function(){return G().style},u=_.S5(_.sU,O);
_.bX(function(){yoP(G(),O(),u());setTimeout(function(){var J;(J=L.value)==null||J.focus()})});
var h={};return _.r("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.VO("ytm-option-selection-flow-step-renderer",(h["ytm-option-selection-flow-step-renderer--desktop"]=m,h["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return G().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.r("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.r("div",{el:L,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.r(_.Nm,{text:function(){return G().header}})),_.r("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.r(_.Nm,{text:function(){return G().subtitle}}))),_.r(_.z$,{data:function(){return G().optionItems||[]}},{optionItemRenderer:function(J){return _.r("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.r(E7s,{data:J.data,
className:K,flowStateEntityKey:A,selectionStepStyle:c}))},
optionSectionRenderer:function(J){return _.r("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.r(HiO,{data:J.data,flowClassName:K,flowStateEntityKey:A,selectionStepStyle:c}))}}))},"hi");
IrG.idomCompat=!0;_.sh(IrG,"yt-option-selection-flow-step-renderer",{props:{data:_.Dd,flowClassName:_.Dd,flowStateEntityKey:_.Dd,isDesktop:_.Dd}});var vQ=_.P(function(m){var G=_.ql(m,{type:1,disablePadding:!1,disablePrimaryButton:!1}),K=G.data,W=G.type;m=G.disablePadding;var L=G.disablePrimaryButton,A=G.onClickPrimaryButton,O=function(){return K().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},c=function(){return{disabled:L(),
state:L()?"disabled":"active"}},u=function(){return K().leadingLabel||K().trailingLabel};
G={};return _.r("yt-panel-footer-view-model",{class:_.VO("yt-panel-footer-view-model",(G["yt-panel-footer-view-model--hide-divider"]=function(){return K().shouldHideDivider},G["yt-panel-footer-view-model--disable-padding"]=m,G))},_.r(_.p,{cond:u,
then:function(){var h={},J={};return _.r("div",{class:_.VO("yt-panel-footer-view-model__text-row",(h["yt-panel-footer-view-model--row-bottom-padding"]=function(){var N=K();return!(!N.leadingLabel&&!N.trailingLabel||!N.primaryButton&&!N.secondaryButton)},h))},_.r(_.Nm,{text:function(){return K().leadingLabel},
className:_.VO((J["yt-panel-footer-view-model--text-padding"]=u,J))}),_.r(_.Nm,{text:function(){return K().trailingLabel}}))}}),_.r(_.p,{cond:O,
then:function(){var h={};return _.r("div",{class:"yt-panel-footer-view-model__button-stack"},_.r("div",{class:_.VO("yt-panel-footer-view-model__primary-button",(h["yt-panel-footer-view-model__button-stack--top-button"]=function(){return K().secondaryButton},h))},_.r(_.z$,{data:function(){return K().primaryButton}},{buttonViewModel:function(J){return _.r(_.kP,{data:J.data,
buttonOverrides:c,onClick:A})}})),_.r(_.z$,{data:function(){return K().secondaryButton}},{buttonViewModel:_.kP}))}}),_.r(_.p,{cond:function(){return!O()},
then:function(){var h={},J={},N={};return _.r("div",{class:_.VO("yt-panel-footer-view-model__button-row",(h["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===W()},h))},_.r("div",{class:_.VO("yt-panel-footer-view-model__button-row--left-button",(J["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===W()},J["yt-panel-footer-view-model__button-row--hidden"]=function(){return!K().secondaryButton||0===W()},J["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===W()},J))},_.r(_.z$,{data:function(){return K().secondaryButton}},{buttonViewModel:_.kP})),_.r("div",{class:_.VO("yt-panel-footer-view-model__primary-button",(N["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===W()||1===W()},N["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===W()},N))},_.r(_.z$,{data:function(){return K().primaryButton}},{buttonViewModel:function(D){return _.r(_.kP,{data:D.data,
buttonOverrides:c,onClick:A})}})))}}))},"ii");
vQ.idomCompat=!0;var jzu=_.P(function(m){m=_.ql(m,{disablePadding:!1});var G=m.data,K=m.disablePadding;m=_.F0G(function(){return G().formId},void 0,function(){return G().onSubmitSuccess});
var W=m.submitForm,L=m.isValid,A=m.isSubmitting;return _.r("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.r(_.z$,{data:function(){return G().panelFooter}},{panelFooterViewModel:function(O){return _.r(vQ,{data:O.data,
onClickPrimaryButton:function(){W()},
disablePrimaryButton:function(){return!L()||A()},
disablePadding:K})}}))},"ji");_.sh(jzu,"yt-form-footer-view-model",{props:{data:_.Dd,disablePadding:_.Dd}});var kuq=_.P(function(m){var G=_.F("enable_user_rating_web");return _.r("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.r("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.r(_.p,{cond:function(){var K;return(K=m.data())==null?void 0:K.image},
then:function(K){return _.r(_.oC,{data:K,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.r("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.r(_.Nm,{text:function(){var K;
return(K=m.data())==null?void 0:K.title}})),_.r("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.r(_.Nm,{text:function(){var K;
return(K=m.data())==null?void 0:K.subtitle}})),_.r(_.p,{cond:function(){return!G},
then:function(){return _.r(_.z$,{data:function(){var K;return(K=m.data())==null?void 0:K.viewTipsButton}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"ki");_.sh(kuq,"yt-contributor-zero-state-view-model",{props:{data:_.Dd}});var C26=_.P(function(m){var G=function(){var K;return(K=m.data())==null?void 0:K.image};
return _.r("yt-featured-content-item-view-model",{class:_.VO("ytFeaturedContentItemViewModelHost")},_.r("div",{class:_.VO(function(){return G()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.r("div",{class:function(){return G()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"ytFeaturedContentItemViewModelImage"},_.r(_.z$,{data:function(){return m.data().image}},{themedImageViewModel:function(K){return _.r(DfD,{data:K.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.r(_.p,{cond:function(){var K;
return!G()&&((K=m.data())==null?void 0:K.iconName)},
then:function(){return _.r("div",{class:"ytFeaturedContentItemViewModelIcon"},_.r(_.fN,{icon:function(){return m.data().iconName}}))}}),_.r("div",{class:"ytFeaturedContentItemViewModelContent"},_.r(_.p,{cond:function(){var K;
return(K=m.data())==null?void 0:K.title},
then:function(){return _.r("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.r(_.Nm,{text:function(){return m.data().title}}))}}),_.r(_.p,{cond:function(){var K;
return(K=m.data())==null?void 0:K.body},
then:function(){return _.r("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.r(_.Nm,{text:function(){return m.data().body}}))}})))))},"li");var V2q=_.P(function(m){var G=function(){var L;return ezO((L=m.data())==null?void 0:L.titleFontSize)},K=function(){var L;
return fgu((L=m.data())==null?void 0:L.descriptionFontSize)},W=function(){var L;
return((L=m.data())==null?void 0:L.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.r("yt-landing-page-view-model",{class:_.VO("ytLandingPageViewModelHost",m.className)},_.r("div",{class:"ytLandingPageViewModelHeader"},_.r(_.p,{cond:function(){var L;return(L=m.data())==null?void 0:L.bannerImage},
then:function(L){return _.r("div",{class:"ytLandingPageViewModelHeaderImage"},_.r(_.z$,{data:function(){return L()}},{imageBannerViewModel:function(A){return _.r(_.QD,{data:A.data,
isPositionRelative:!0})}}))}}),_.r(_.p,{cond:function(){var L;
return(L=m.data())==null?void 0:L.bannerAnimation},
then:function(L){return _.r(_.yr,{data:function(){var A=L();if(A==null?0:A.url){var O;A={path:(O=A==null?void 0:A.url)!=null?O:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(A==null?0:A.payload){var c;A={animationData:JSON.parse((c=A==null?void 0:A.payload)!=null?c:""),autoplay:!0,loop:!0,renderer:"svg"}}else A=void 0;return{animationConfig:A}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.r("div",{class:"ytLandingPageViewModelHeaderTitle"},_.r(_.p,{cond:function(){var L;
return(L=m.data())==null?void 0:L.title},
then:function(L){return _.r("div",{class:_.VO("ytLandingPageViewModelHeaderTitleContent",G)},_.r(_.Nm,{text:function(){return L()}}))}}),_.r(_.p,{cond:function(){var L;
return(L=m.data())==null?void 0:L.description},
then:function(L){var A={};return _.r(_.Nm,{className:_.VO("ytLandingPageViewModelHeaderTitleDescription",K,(A.ytLandingPageViewModelHeaderTitleDescriptionMargin=W,A)),text:function(){return L()}})}}))),_.r(_.p,{cond:function(){var L,A;
return(L=m.data())==null?void 0:(A=L.featuredContentList)==null?void 0:A.length},
then:function(){return _.r("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.r(_.z$,{data:function(){return m.data().featuredContentList}},{featuredContentItemViewModel:function(L){return _.r(C26,{data:L.data})}}))}}),_.r(_.p,{cond:function(){var L,A;
return(L=m.data())==null?void 0:(A=L.expandableContentList)==null?void 0:A.length},
then:function(){return _.r("div",{class:"ytLandingPageViewModelFaqSection"},_.r(_.z$,{data:function(){return m.data().expandableContentList}},{faqEntryViewModel:function(L){return _.r("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.r(_.hEC,{data:L.data}))}}))}}),_.r("div",{class:"ytLandingPageViewModelFooter"},_.r(_.p,{cond:function(){var L;
return(L=m.data())==null?void 0:L.legalCopy},
then:function(L){return _.r("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.r(_.Nm,{text:function(){return L()}}))}}),_.r(_.p,{cond:function(){var L;
return(L=m.data())==null?void 0:L.actions},
then:function(L){return _.r("div",null,_.r(_.z$,{data:function(){return L()}},{flexibleActionsViewModel:function(A){return _.r(_.Y8,{data:A.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"mi");_.sh(_.P(function(m){return _.r("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.r("div",{class:"ytLpSectionGroupViewModelContainer"},_.r(_.z$,{data:function(){return m.data().sections}},{landingPageViewModel:function(G){return _.r(V2q,{data:G.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ni"),"yt-lp-section-group-view-model",{props:{data:_.Dd}});var Ziq=_.P(function(m){var G=m.data;var K=m.selectedKey;var W=m.onSelected;var L=m.groupName;var A=function(){return G().text},O=function(){return G().attributedText},c=function(){return G().subtext},u=function(){return G().attributedSubtext},h=function(){return G().selectionText},J=function(){return G().trailingIconName},N=_.r("div",{class:"ytRadioButtonItemViewModelLabel"},_.r("div",null,_.r(_.p,{cond:A,
then:function(){return _.r("div",null,A)}}),_.r(_.p,{cond:O,
then:function(){return _.r(_.Nm,{text:O})}}),_.r(_.p,{cond:c,
then:function(){return _.r("div",{class:"ytRadioButtonItemViewModelSubText"},c)}}),_.r(_.p,{cond:u,
then:function(){return _.r(_.Nm,{text:u,className:"ytRadioButtonItemViewModelSubText"})}})),_.r(_.p,{cond:function(){return h()||J()},
then:function(){return _.r("div",{class:"ytRadioButtonItemViewModelTrailingContainer"},_.r(_.p,{cond:h,then:function(){return _.r(_.Nm,{text:h,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}),_.r(_.p,{cond:J,
then:function(){return _.r(_.fN,{icon:J,className:"ytRadioButtonItemViewModelTrailingAccessory"})}}))}}));
m={};return _.r("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.r(_.J0,{name:L,checked:function(){return!(K==null||!K()||G().key!==(K==null?void 0:K()))},
onChange:function(D){W==null||W(D.target,G(),L==null?void 0:L())},
labelRenderable:function(){return N},
ariaLabel:function(){var D,t;var a=(t=(D=u())==null?void 0:D.content)!=null?t:c();var v,I;D=(I=(v=O())==null?void 0:v.content)!=null?I:A();return a?D+", "+a:D},
className:_.VO((m.ytRadioButtonItemViewModelSubTitle=function(){return!!c()},m))}))},"oi");var df5=_.P(function(m){var G=m.data,K=m.onSelected,W=m.selectedKey,L=m.groupName;m=m.className;var A=_.g(_.g_(!1,void 0,"mDtSad")),O=A.next().value,c=A.next().value,u=function(){if(W!==void 0){var h=W();return!(!h||G().key!==h)}return O()};
A=_.dn(function(h){K?K(h.currentTarget,G(),L==null?void 0:L()):c(!O())});
return _.r("yt-selectable-item-view-model",{class:_.VO("ytSelectableItemViewModelHost",m,"ytSelectableItemViewModelContainer"),"on:click":A,"prop:checked":u},_.r(_.z$,{data:function(){return G().content}},{cardViewModel:function(h){return _.r(DJO,{data:h.data,
isSelected:u})}}))},"pi");var P2P=_.P(function(m){var G=m.data;var K=m.onSelected;var W=m.selectedKey;var L=m.groupName;var A=function(){return(L==null?void 0:L())||G().key};
return _.r("yt-radio-button-group-view-model",{class:_.VO("ytRadioButtonGroupViewModelHost",m.className)},_.r("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.r(_.z$,{data:function(){return G().radioButtons}},{radioButtonItemViewModel:function(O){return _.r(Ziq,{data:O.data,
onSelected:K,selectedKey:W,groupName:A})},
selectableItemViewModel:function(O){return _.r(df5,{data:O.data,onSelected:K,selectedKey:W,groupName:A})}})))},"qi");var ykz=_.P(function(m){_.bX(function(){if(m.controlledMode()&&m.data().defaultSelected)_.am(Error("Fl"));else{var A;!m.controlledMode()&&((A=m.selected)==null?0:A.call(m))&&_.am(Error("Gl"))}});
var G=_.g(_.EQ(function(){if(!m.controlledMode())return m.data().defaultSelected})),K=G.next().value,W=G.next().value,L=function(){if(!m.controlledMode())return K();
var A;return(A=m.selected)==null?void 0:A.call(m)};
return _.r("yt-checkbox-item-view-model",{class:_.VO("ytCheckboxItemViewModelHost",m.className)},_.r(_.Nb,{data:function(){var A=m.data(),O=L();return{title:A.text,subtitle:A.subtext,superlabel:A.superlabel,isSelected:!!O,isDisabled:A.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!m.controlledMode()&&W(!K());var A,O;(O=m.onTap)==null||O.call(m,!!L(),m.data(),(A=m.groupName)==null?void 0:A.call(m))},
isCompact:m.isCompact,disableHorizontalPadding:m.disableHorizontalPadding}))},"ri");var e2q=_.P(function(m){var G=m.data;var K=m.controlledMode;var W=m.selectedKeys;var L=m.onItemTap;var A=m.groupName;var O=m.disableHorizontalPadding;var c=function(){return(A==null?void 0:A())||G().key};
_.bX(function(){K()&&G().defaultSelectedKeys?_.am(Error("Hl")):!K()&&(W==null?0:W())&&_.am(Error("Il"))});
m=_.g(_.EQ(function(){if(!K())return G().defaultSelectedKeys}));
var u=m.next().value,h=m.next().value,J=function(N,D,t){N=[];!K()&&D.key&&(N=xW6(D.key,u()||[]),h(N));L==null||L(D,N,t)};
return _.r("yt-checkbox-group-view-model",{class:_.VO("ytCheckboxGroupViewModelHost")},_.r("fieldset",{class:_.VO("ytCheckboxGroupViewModelFieldset")},_.r("div",{role:"list"},_.r(_.z$,{data:function(){return G().checkboxes}},{checkboxItemViewModel:function(N){var D=N.data;
return _.r(ykz,{data:D,controlledMode:!0,selected:function(){var t=K()?(W==null?void 0:W())||[]:u()||[],a=D().key;return a?t.includes(a):!1},
onTap:J,groupName:c,disableHorizontalPadding:O})}}))))},"si");var $0=_.P(function(m){var G=_.S5(XpE,_.sQ(function(){var c;return(c=m.data())==null?void 0:c.noteFeedEntityKey},"")),K=_.S5(Dc6,_.sQ(function(){var c;
return(c=m.data())==null?void 0:c.userRatingEntityKey},"")),W=_.F("enable_user_rating_web"),L=function(){var c,u,h;
return((c=G())==null?0:c.contributorNote)?(u=G())==null?void 0:u.contributorNote:(h=m.data())==null?void 0:h.existingNote},A=function(){var c,u;
return!!K()&&!!STz((c=K())==null?void 0:c.helpfulnessValue,(u=m.data())==null?void 0:u.noteData)};
if(W){var O={};return _.r("yt-note-view-model",{class:_.VO("ytNoteViewModelHostUserRating",(O.ytNoteViewModelHostUserRatingPublishedNote=function(){var c,u,h,J;return((c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.isPublished)&&!((h=m.data())==null?0:(J=h.noteData)==null?0:J.isUserRatingForm)},O))},_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.r(_.p,{cond:function(){var c,u;
return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.isPinned},
then:function(){return _.r(_.fN,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.r(_.p,{cond:function(){var c,u;return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.isPublished},
then:function(){return _.r(_.fN,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.r(_.z$,{data:function(){var c;
return(c=m.data())==null?void 0:c.metadata}},{contentMetadataViewModel:_.dI}),_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var c,u;
return(u=_.Q((c=m.data())==null?void 0:c.metadata,_.CnG))==null?void 0:u.delimiter}),_.r(_.Nm,{text:function(){var c;
return(c=L())==null?void 0:c.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.r(_.p,{cond:function(){var c,u;return!((c=m.data())==null?0:(u=c.noteData)==null?0:u.isUserRatingForm)},
then:function(){return _.r(_.z$,{data:function(){var c,u,h,J,N,D,t,a=!!((c=m.data())==null?0:(u=c.noteData)==null?0:u.isPinned);c=A();u=(h=m.data())==null?void 0:h.noteData;h=(J=G())==null?void 0:(N=J.contributorNote)==null?void 0:N.deleteAction;J=(D=m.data())==null?void 0:D.overflowButtonNoteWithRatingOnTapOverride;D=(t=m.data())==null?void 0:t.overflowButton;var v;t=(v=_.Q(D,_.J6))==null?void 0:v.accessibilityText;return a?RzO(u,h,t):c?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",
state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:J,accessibilityText:t}}:D}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.r("div",{class:"ytNoteViewModelNoteContent"},_.r(_.Nm,{text:function(){var c;
return(c=L())==null?void 0:c.text}})),_.r(_.p,{cond:function(){var c,u,h,J;
return!((c=m.data())==null?0:(u=c.noteData)==null?0:u.isPinned)&&!((h=m.data())==null?0:(J=h.noteData)==null?0:J.isUserRatingForm)},
then:function(){return _.r(_.p,{cond:A,then:function(){return _.r("div",{class:"ytNoteViewModelUserRatingContainer"},_.r(_.Nm,{text:function(){var c,u;return STz((c=K())==null?void 0:c.helpfulnessValue,(u=m.data())==null?void 0:u.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.r(_.z$,{data:function(){var c;return(c=m.data())==null?void 0:c.userRatingButton}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.r(_.p,{cond:function(){var c,u,h,J;
return!((c=m.data())==null?0:(u=c.noteData)==null?0:u.ignoreDivider)&&!((h=m.data())==null?0:(J=h.noteData)==null?0:J.isUserRatingForm)},
then:function(){return _.r("div",{class:"ytNoteViewModelDivider"},_.r(_.z$,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(c){return _.r(_.HXk,{data:c.data})}}))}}))}return _.r("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.r(_.p,{cond:function(){var c,u;return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.isPinned},
then:function(){return _.r(_.fN,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.r(_.p,{cond:function(){var c,u;return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.isPublished},
then:function(){return _.r(_.fN,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.r(_.p,{cond:function(){return W},
then:function(){return _.r(_.z$,{data:function(){var c;return(c=m.data())==null?void 0:c.metadata}},{contentMetadataViewModel:function(c){return _.r(_.dI,{data:c.data})}})}}),_.r(_.Nm,{text:function(){var c,u;
return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.headerText}}),_.r("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.r(_.Nm,{text:function(){var c,u;
return(c=m.data())==null?void 0:(u=c.noteData)==null?void 0:u.delimiter}})),_.r(_.Nm,{text:function(){var c,u;
return(c=G())==null?void 0:(u=c.contributorNote)==null?void 0:u.publishedTimeText}})),_.r(_.z$,{data:function(){var c,u,h;
return RzO((c=m.data())==null?void 0:c.noteData,(u=G())==null?void 0:(h=u.contributorNote)==null?void 0:h.deleteAction)}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.r("div",{class:"ytNoteViewModelNoteContent"},_.r(_.Nm,{text:function(){var c,u;
return(c=G())==null?void 0:(u=c.contributorNote)==null?void 0:u.text}})))},"ti");
$0.idomCompat=!0;_.sh(_.P(function(m){var G=_.sQ(function(){var k;return(k=m.data())==null?void 0:k.flowStateEntityKey},""),K=_.S5(_.sU,G),W=_.S5(XpE,_.sQ(function(){var k;
return(k=m.data())==null?void 0:k.noteFeedEntityKey},"")),L=_.g(_.EQ(function(){var k;
return(k=_.Q(m.data().helpfulnessValue,qcW))==null?void 0:k.defaultSelectedKey})),A=L.next().value,O=L.next().value;
L=_.g(_.EQ(function(){var k,z,X;return(X=_.Q((k=_.Q(m.data().helpfulnessValue,qcW))==null?void 0:(z=k.radioButtons)==null?void 0:z.find(function(f){var U;return((U=_.Q(f,E$6))==null?void 0:U.key)===A()}),E$6))==null?void 0:X.value}));
var c=L.next().value,u=L.next().value;L=_.g(_.EQ(function(){var k;return(k=_.Q(m.data().helpfulReasons,s4P))==null?void 0:k.defaultSelectedKeys}));
var h=L.next().value,J=L.next().value;L=_.g(_.EQ(function(){var k;return(k=_.Q(m.data().notHelpfulReasons,s4P))==null?void 0:k.defaultSelectedKeys}));
var N=L.next().value,D=L.next().value,t=function(k,z){O(z.key);u(z.value);J([]);D([])},a=function(){var k,z;
return((k=c())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((z=c())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},v=function(){var k,z;
return((k=c())==null?void 0:k.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((z=c())==null?void 0:z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},I=function(k){UWE(k.key,h,J)},Z=function(k){UWE(k.key,N,D)};
_.bX(function(){var k,z,X;pkE((k=m.data())==null?void 0:(z=k.userRatingFormSchema)==null?void 0:z.id,{isValid:function(){return!!A()},
formData:function(){var f=c(),U=lgG(h(),_.Q(m.data().helpfulReasons,s4P)),l=lgG(N(),_.Q(m.data().notHelpfulReasons,s4P));f={helpfulnessValue:f==null?void 0:f.noteHelpfulnessValue};if(U){f.helpfulReasons=[];U=_.g(U);for(var Ls=U.next();!Ls.done;Ls=U.next()){Ls=Ls.value;var gd=void 0;if((gd=Ls)==null?0:gd.noteHelpfulReason)gd=void 0,f.helpfulReasons.push((gd=Ls)==null?void 0:gd.noteHelpfulReason)}}if(l)for(f.notHelpfulReasons=[],l=_.g(l),U=l.next();!U.done;U=l.next())if(U=U.value,Ls=void 0,(Ls=U)==
null?0:Ls.noteNotHelpfulReason)Ls=void 0,f.notHelpfulReasons.push((Ls=U)==null?void 0:Ls.noteNotHelpfulReason);return{userRatingFormData:f}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(X=_.Q(K(),KMO))==null?void 0:X.submitFormParams},onSubmitResult:function(){var f,U=(f=_.Q(K(),KMO))==null?void 0:f.userRatingEntityKey,l;f={key:U,helpfulnessValue:(l=c())==null?void 0:l.noteHelpfulnessValue};U&&_.$e(_.Bp("contextNoteUserRatingEntityPayload",U,f));var Ls;U=(Ls=m.data())==null?void 0:Ls.viewNoteFlowStepId;var gd;if((gd=W())==null||!gd.contributorNote){var Qf;U=(Qf=m.data())==null?void 0:Qf.zeroStateFlowStepId}(Ls=
Object.assign({},K()))&&U&&(Ls.currentStepId=U,Ls.stepIdStack=[U],_.$e(_.Bp("flowStateEntity",G(),Ls)));var JV;(Ls=(JV=m.data())==null?void 0:JV.ratingSubmittedSnackbarCommand)&&_.h$(Ls)},
disableDuringSubmission:!0})});
return _.r("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.r(_.z$,{data:function(){var k=_.Q(K(),KMO);if(k){var z;var X={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:k==null?void 0:(z=k.note)==null?void 0:z.headerText}]}],delimiter:"\u2022"}},existingNote:k.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else X=void 0;return X}},{noteViewModel:function(k){return _.r("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.r($0,{data:k.data}))}}),_.r(_.z$,{data:function(){var k;
return(k=m.data())==null?void 0:k.helpfulnessValue}},{radioButtonGroupViewModel:function(k){return _.r("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.r(P2P,{data:k.data,
onSelected:t,selectedKey:A}))}}),_.r(_.p,{cond:a,
then:function(){return _.r("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.r("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.r(_.Nm,{text:function(){var k;return(k=m.data())==null?void 0:k.helpfulReasonQuestion}})),_.r(_.z$,{data:function(){var k;
return(k=m.data())==null?void 0:k.helpfulReasons}},{checkboxGroupViewModel:function(k){return _.r(e2q,{data:k.data,
onItemTap:I,selectedKeys:h,controlledMode:!0})}}))}}),_.r(_.p,{cond:v,
then:function(){return _.r("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.r("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.r(_.Nm,{text:function(){var k;return(k=m.data())==null?void 0:k.notHelpfulReasonQuestion}})),_.r(_.z$,{data:function(){var k;
return(k=m.data())==null?void 0:k.notHelpfulReasons}},{checkboxGroupViewModel:function(k){return _.r(e2q,{data:k.data,
onItemTap:Z,selectedKeys:N,controlledMode:!0})}}))}}),_.r(_.p,{cond:function(){return!a()&&!v()},
then:function(){return _.r(_.z$,{data:function(){var k;return(k=m.data())==null?void 0:k.helpfulNoteFeatures}},{alertBannerViewModel:function(k){return _.r("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.r(_.ZXR,{data:k.data}))}})}}))},"ui"),"yt-note-user-rating-view-model",{props:{data:_.Dd}});_.sh($0,"yt-note-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=_.S5(XpE,_.sQ(function(){var K;return(K=m.data())==null?void 0:K.noteFeedEntityKey},""));
return _.r("yt-notes-wrapper-view-model",{class:_.VO("ytNotesWrapperViewModelHost")},_.r(_.p,{cond:function(){var K,W,L;return!((K=m.data())==null||!K.existingNotes)||!((W=m.data())==null||!W.currentNote)&&!((L=G())==null||!L.contributorNote)},
then:function(){return _.r(_.zL,null,_.r(_.z$,{data:function(){var K,W,L,A;return((W=_.Q((K=m.data())==null?void 0:K.currentNote,WMu))==null?0:(L=W.noteData)==null?0:L.isPublished)?(A=m.data())==null?void 0:A.currentNote:void 0}},{noteViewModel:function(K){return _.r($0,{data:K.data})}}),_.r(_.z$,{data:function(){var K;
return(K=m.data())==null?void 0:K.existingNotes}},{noteViewModel:function(K){var W=K.data;
return _.r(_.p,{cond:function(){var L,A;return(L=W())==null?void 0:(A=L.noteData)==null?void 0:A.isPublished},
then:function(){return _.r($0,{data:W})}})}}),_.r(_.z$,{data:function(){var K,W,L,A,O;
return((W=_.Q((K=m.data())==null?void 0:K.currentNote,WMu))==null?0:(L=W.noteData)==null?0:L.isPublished)||(A=G())==null||!A.contributorNote?void 0:(O=m.data())==null?void 0:O.currentNote}},{noteViewModel:function(K){return _.r($0,{data:K.data})}}),_.r(_.z$,{data:function(){var K;
return(K=m.data())==null?void 0:K.existingNotes}},{noteViewModel:function(K){var W=K.data;
return _.r(_.p,{cond:function(){var L,A;return!((L=W())==null?0:(A=L.noteData)==null?0:A.isPublished)},
then:function(){return _.r($0,{data:W})}})}}))},
else:function(){return _.r(_.z$,{data:function(){var K;return(K=m.data())==null?void 0:K.zeroStateData}},{contributorZeroStateViewModel:kuq})}}))},"vi"),"yt-notes-wrapper-view-model",{props:{data:_.Dd}});var M56=new Map;var mBG;var iQ5=new Map;var xfD=_.P(function(m){var G=_.ql(m,{label:"",hideLabel:!1,text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,ariaLabel:void 0,timePickerData:void 0,error:void 0,hasError:!1,validation:void 0,characterLimit:void 0}),K=G.label,W=G.hideLabel,L=G.text,A=G.placeholder,O=G.hint;m=G.rows;var c=G.overflowStyle,u=G.outline,h=G.disabled,J=G.disableNewLines,N=G.onInput,D=G.ariaLabel,t=G.timePickerData,a=G.error,v=G.hasError,I=G.validation,Z=G.characterLimit,
k=_.Q3("textarea");G=_.g(_.EQ(function(){return L()}));
var z=G.next().value,X=G.next().value;G=_.g(_.g_(!1,void 0,"PheJId"));var f=G.next().value,U=G.next().value,l=function(){U(!0)},Ls=function(){U(!1)};
_.bX(function(){var NG=k.value,EO=c(),gz=z();EO==="expand-vertically"&&gz&&KnP(NG);k.value.addEventListener("focusin",l);k.value.addEventListener("focusout",Ls)});
_.sZ(function(){k.value.removeEventListener("focusin",l);k.value.removeEventListener("focusout",Ls)});
var gd=function(){var NG;return(NG=I())==null?void 0:NG.validate(z())},Qf=function(){var NG,EO,gz;
return(gz=(NG=a())==null?void 0:NG.maxChars)!=null?gz:(EO=Z())==null?void 0:EO.maxChars},JV=function(){return Qf()===void 0?!1:!gd()&&z().length>Qf()},DF=function(){var NG,EO;
return((NG=a())==null?void 0:NG.errorMessage)||gd()||JV()&&((EO=Z())==null?void 0:EO.errorMessage)},kG=function(){return!!DF()||v()};
G=_.dn(function(NG){if(!NG.currentTarget)return!1;NG=NG.currentTarget;X(NG.value);c()==="expand-vertically"&&KnP(NG);N==null||N(NG.value);return!0});
var eo=_.dn(function(NG){J()&&NG.key==="Enter"&&NG.preventDefault();return!1}),xG=_.dn(function(){k.value.focus()}),Ji=function(){return A()||K()},rK={},So={},ti={},bS={};
return _.r("textarea-shape",{class:_.VO("ytStandardsTextareaShapeHost",(rK.ytStandardsTextareaShapeTimePicker=function(){var NG;return(NG=t())==null?void 0:NG.useTimePickerStyles},rK))},_.r("div",{class:_.VO("ytStandardsTextareaShapeTextareaContainer",(So.ytStandardsTextareaShapeTextareaContainerOutline=u,So.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=h,So.ytStandardsTextareaShapeTextareaContainerOutlineError=kG,So.ytStandardsTextareaShapeTextareaContainerLabelHidden=W,So)),
"on:click":xG},_.r("label",{class:_.VO("ytStandardsTextareaShapeLabel",(ti.ytStandardsTextareaShapeLabelFocused=f,ti.ytStandardsTextareaShapeLabelDisabled=h,ti.ytStandardsTextareaShapeLabelError=function(){return kG()&&!h()},ti.ytStandardsTextareaShapeLabelHidden=function(){return W()||!f()&&!z()&&!!Ji()},ti))},K),_.r("div",{class:_.VO("ytStandardsTextareaShapePlaceholder",(bS.ytStandardsTextareaShapePlaceholderVisible=function(){return!f()&&!z()},bS)),
"aria-hidden":"true"},Ji),_.r("textarea",{el:k,"aria-label":D,class:"ytStandardsTextareaShapeTextarea",rows:m,disabled:h,placeholder:Ji,"prop:value":z,"on:input":G,"on:keydown":eo})),_.r(_.p,{cond:function(){return O()&&!kG()},
then:function(){var NG={};return _.r("div",{class:_.VO("ytStandardsTextareaShapeHint",(NG.ytStandardsTextareaShapeHintDisabled=h,NG))},_.r("div",{class:"ytStandardsTextareaShapeHintHintMessage"},O))}}),_.r(_.p,{cond:DF,
then:function(){return _.r(frs,{disabled:h},_.r("div",{class:"ytStandardsTextareaShapeErrorMessage"},DF),_.r(_.p,{cond:JV,then:function(){return _.r("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return z().length+"/"+Qf()})}}))}}))},"wi");
xfD.idomCompat={callbacks:{onInput:!0}};var frs=_.P(function(m){var G={};return _.r("div",{class:_.VO("ytStandardsTextareaShapeError",(G.ytStandardsTextareaShapeErrorDisabled=m.disabled,G)),role:"alert"},_.r(_.fN,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),m.children)},"xi");var X5E=_.P(function(m){var G=m.data;var K=m.controlledMode;var W=m.disableFormsApiMode;var L=m.text;var A=m.onInput;var O=m.characterLimit;var c=m.validation;m=m.disabled;var u=function(){return G().formFieldMetadata},h=function(){return(K==null?0:K())?2:!u()||W!=null&&W()?1:3};
_.bX(function(){h()===2?(L==null?void 0:L())===void 0&&_.am(Error("Kl")):h()===3&&((L==null?void 0:L())!==void 0&&_.am(Error("Ll")),(c==null?void 0:c())!==void 0&&_.am(Error("Ml")),(O==null?void 0:O())!==void 0&&_.am(Error("Nl")),A!==void 0&&_.am(Error("Ol")))});
var J=G_z(u);return _.r("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.r(xfD,{text:function(){if(h()===2)return L==null?void 0:L();if(h()===3){var N;return(N=J())==null?void 0:N.value}return""},
label:function(){var N;return(N=G().contentProperties)==null?void 0:N.labelText},
hideLabel:function(){var N;return(N=G().displayProperties)==null?void 0:N.hideLabel},
placeholder:function(){var N;return(N=G().contentProperties)==null?void 0:N.placeholderText},
hint:function(){var N;return(N=G().contentProperties)==null?void 0:N.hintText},
outline:function(){var N;return!((N=G().displayProperties)==null?0:N.hideBorder)},
overflowStyle:function(){var N;return((N=G().displayProperties)==null?0:N.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:m,disableNewLines:function(){var N;return(N=G().displayProperties)==null?void 0:N.disableNewLines},
onInput:function(N){if(h()===3){var D;(D=J())==null||D.updateValue(N)}else A==null||A(N)},
error:function(){if(h()===3){var N;if(((N=J())==null?0:N.errors)&&J().errors.length>0){N=J().errors[0].message;var D,t=(D=G().contentProperties)==null?void 0:D.maxCharacterCount;return{errorMessage:N,maxChars:t}}}},
validation:c,characterLimit:O,rows:function(){var N;return(N=G().displayProperties)==null?void 0:N.rows}}))},"yi");var SEO=_.P(function(m){var G=m.data;return _.r("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.r(xfD,{text:m.text,label:function(){var K;return(K=G().contentProperties)==null?void 0:K.labelText},
placeholder:function(){var K;return(K=G().contentProperties)==null?void 0:K.placeholderText},
hint:function(){var K;return(K=G().contentProperties)==null?void 0:K.hintText},
outline:function(){var K;return!((K=G().displayProperties)==null?0:K.hideBorder)},
overflowStyle:function(){var K;return((K=G().displayProperties)==null?0:K.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var K;return(K=G().displayProperties)==null?void 0:K.disableNewLines},
onInput:m.onInput,characterLimit:m.characterLimit,validation:m.validation,rows:function(){var K;return(K=G().displayProperties)==null?void 0:K.rows}}))},"zi");var R2O=_.P(function(m){var G=_.g(_.EQ(function(){var gd,Qf;return((gd=m.data().structuredContextNoteFormSchema)==null?0:(Qf=gd.initialValues)==null?0:Qf.noteBody)?m.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),K=G.next().value,W=G.next().value;
G=_.g(_.EQ(function(){m.data();return!1}));
var L=G.next().value,A=G.next().value;G=_.g(_.EQ(function(){m.data();return!1}));
var O=G.next().value,c=G.next().value;G=_.g(_.EQ(function(){var gd,Qf;return((gd=m.data().structuredContextNoteFormSchema)==null?0:(Qf=gd.initialValues)==null?0:Qf.timestamp)?m.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var u=G.next().value,h=G.next().value;G=_.g(_.EQ(function(){m.data();return!1}));
var J=G.next().value,N=G.next().value;G=_.g(_.EQ(function(){var gd,Qf;return((gd=m.data().structuredContextNoteFormSchema)==null?0:(Qf=gd.initialValues)==null?0:Qf.sources)?[m.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var D=G.next().value,t=G.next().value;G=_.g(_.EQ(function(){m.data();return!1}));
var a=G.next().value,v=G.next().value;G=_.g(_.EQ(function(){return!1}));
var I=G.next().value,Z=G.next().value;_.bX(function(){var gd;JW6((gd=m.data().structuredContextNoteFormSchema)==null?void 0:gd.id,{isSubmitting:I,onSubmit:function(){Z(!0);var Qf=r3u(K(),u(),D(),m.data()),JV=_.xS().resolve(_.S1);Qf&&JV&&JV.resolveCommand(Qf,{commandController:{onSuccess:function(){Z(!1)}}})},
isValid:function(){return L()&&!O()&&!J()&&!a()}})});
var k=function(gd){if(gd!==void 0&&(W(gd),!L()&&gd.length>0&&A(!0),L())){var Qf=A3i(m.data());if(Qf){var JV=Qf.minLength;Qf=Qf.maxLength;JV&&gd.length<JV?c(!0):Qf&&gd.length>Qf?c(!0):c(!1)}}},z=function(gd){if(gd!==void 0){h(gd);
if(gd.length>0){var Qf,JV,DF,kG,eo=gA6((Qf=m.data())==null?void 0:(JV=Qf.structuredContextNoteFormSchema)==null?void 0:(DF=JV.fieldSchemas)==null?void 0:(kG=DF.timestamp)==null?void 0:kG.validationSchema);if(eo&&(Qf=eo.regex)&&!(new RegExp(Qf)).test(gd)){N(!0);return}}N(!1)}},X=function(gd){if(gd!==void 0){var Qf=gd.split(/[ \n]/).map(function(JV){return JV.trim()});
t(Qf);if(gd.length>0)for(gd=_.g(Qf),Qf=gd.next();!Qf.done;Qf=gd.next())if(!Yn6(Qf.value)){v(!0);return}v(!1)}},f=function(){return{validate:function(gd){if(L()){var Qf=A3i(m.data());
if(Qf){var JV=Qf.minLength;Qf=Qf.translations;if(JV&&gd.length<JV)return Qf==null?void 0:Qf.minLengthErrorMessage}}}}},U=function(){var gd=A3i(m.data()),Qf=gd==null?void 0:gd.maxLength,JV;
gd=gd==null?void 0:(JV=gd.translations)==null?void 0:JV.maxLengthErrorMessage;if(Qf&&gd)return{maxChars:Qf,errorMessage:gd}},l=function(){return{validate:function(gd){if(gd){var Qf,JV,DF,kG,eo=gA6((Qf=m.data())==null?void 0:(JV=Qf.structuredContextNoteFormSchema)==null?void 0:(DF=JV.fieldSchemas)==null?void 0:(kG=DF.timestamp)==null?void 0:kG.validationSchema);
if(eo&&(Qf=eo.regex,eo=eo.translations,Qf&&!(new RegExp(Qf)).test(gd)))return eo==null?void 0:eo.regexErrorMessage}}}},Ls=function(){return{validate:function(gd){if(gd){var Qf,JV,DF,kG,eo=c3E((Qf=m.data())==null?void 0:(JV=Qf.structuredContextNoteFormSchema)==null?void 0:(DF=JV.fieldSchemas)==null?void 0:(kG=DF.sources)==null?void 0:kG.validationSchema);
if(eo&&(Qf=eo.translations,Qf==null?0:Qf.selectedErrorMessage))for(gd=gd.split(/[ \n]/).map(function(xG){return xG.trim()}),gd=_.g(gd),JV=gd.next();!JV.done;JV=gd.next())if(!Yn6(JV.value))return gd=void 0,(gd=Qf)==null?void 0:gd.selectedErrorMessage}}}};
return _.r("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.r("div",{class:"ytStructuredContextNoteViewModelTextField"},_.r(_.z$,{data:function(){var gd;return(gd=m.data())==null?void 0:gd.noteContents}},{textFormFieldViewModel:function(gd){return _.r(SEO,{data:gd.data,
onInput:k,validation:f,characterLimit:U})},
textFieldViewModel:function(gd){return _.r(X5E,{data:gd.data,disableFormsApiMode:!0,onInput:k,validation:f,characterLimit:U})}})),_.r("div",{class:"ytStructuredContextNoteViewModelTextField"},_.r(_.z$,{data:function(){var gd;
return(gd=m.data())==null?void 0:gd.noteTimestamp}},{textFormFieldViewModel:function(gd){return _.r(SEO,{data:gd.data,
onInput:z,validation:l})},
textFieldViewModel:function(gd){return _.r(X5E,{data:gd.data,disableFormsApiMode:!0,onInput:z,validation:l})}})),_.r("div",{class:"ytStructuredContextNoteViewModelTextField"},_.r(_.z$,{data:function(){var gd;
return(gd=m.data())==null?void 0:gd.noteSources}},{textFormFieldViewModel:function(gd){return _.r(SEO,{data:gd.data,
onInput:X,validation:Ls})},
textFieldViewModel:function(gd){return _.r(X5E,{data:gd.data,disableFormsApiMode:!0,onInput:X,validation:Ls})}})))},"Ai");
R2O.idomCompat=!0;_.sh(R2O,"yt-structured-context-note-view-model",{props:{data:_.Dd}});var Ufu=_.P(function(m){var G=_.g(_.EQ(function(){var A;if((A=m.controlled)==null?0:A.call(m))return[];var O;return(((O=m.data())==null?void 0:O.chips)||[]).map(function(c){c=_.Q(c,_.NV);if(c==null?0:c.selected)return u9W(c.chipValue)}).filter(function(c){return c!==void 0})})),K=G.next().value,W=G.next().value,L=function(A){var O=u9W(A.chipValue);
if(O!==void 0){var c;if((c=m.controlled)==null?0:c.call(m))return void m.controlled().onTap(O);A=K().includes(O)?[].concat(_.Bz(K().filter(function(h){return h!==O}))):[].concat(_.Bz(K()),[O]);
W(A);var u;if((u=m.uncontrolled)==null?0:u.call(m))m.uncontrolled().onUpdate(A)}};
return _.r("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost",role:"tablist"},_.r(_.D0,{each:function(){return m.data().chips||[]}},function(A){return _.r("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.r(_.mLk,{data:function(){return _.Q(A,_.NV)},
selected:function(){var O;if(O=_.Q(A,_.NV)){var c=u9W(O.chipValue);if(c!==void 0){var u;O=((u=m.controlled)==null?0:u.call(m))?m.controlled().selectedValues.includes(c):K().includes(c)}else O=void 0}else O=!1;return O},
callback:L}))}))},"Bi");var z26=_.P(function(m){var G=m.data;var K=function(){var c;return((c=G())==null?void 0:c.flowStateKey)||""},W=_.S5(_.sU,K),L=function(){var c;
return(c=_.Q(W(),aNu))==null?void 0:c.chips},A=function(c){if(c!==void 0){var u=L()||[];
u=u.find(function(h){return h===c})?u.filter(function(h){return h!==c}):[].concat(_.Bz(u),[c]);
u=Object.assign({},W(),{feedbackFormFlowState:Object.assign({},_.Q(W(),aNu),{chips:u})});_.$e(_.Bp("flowStateEntity",K(),u))}},O=function(){var c;
return _.Q((c=G())==null?void 0:c.inputBox,oFu)};
m=_.AY(function(c){var u=O();u=!(u==null?0:u.maxChars)||c.length<=u.maxChars;c=Object.assign({},W(),{feedbackFormFlowState:Object.assign({},_.Q(W(),aNu),{detail:c}),abuseReportFlowState:Object.assign({},_.Q(W(),F8),{navigationEnabled:u})});_.$e(_.Bp("flowStateEntity",K(),c))},150);
return _.r("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.r("div",{class:"ytFeedbackFormViewModelChips"},_.r(_.z$,{data:function(){var c;return(c=G())==null?void 0:c.chipSelection}},{chipSelectionFormFieldViewModel:function(c){return _.r(Ufu,{data:c.data,
controlled:function(){return{selectedValues:L()||[],onTap:A}}})}})),_.r("div",{class:"ytFeedbackFormViewModelInputBox"},_.r(xfD,{text:function(){var c;
return(c=_.Q(W(),aNu))==null?void 0:c.detail},
placeholder:function(){var c;return((c=O())==null?void 0:c.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var c=O();if(c&&c.maxChars)return{maxChars:c.maxChars,errorMessage:c.maxCharsExceededErrorMessage||""}},
onInput:m})),_.r("div",{class:"ytFeedbackFormViewModelFooterText"},_.r(_.Nm,{text:function(){return G().footerText}})))},"Ci");
z26.idomCompat=!0;_.sh(z26,"yt-feedback-form-view-model",{props:{data:_.Dd}});var lr5=_.P(function(m){var G=m.data;var K=_.S5(cWi,function(){return G().flowStateKey||""}),W=function(){var L;
_.h$((L=_.Q(K(),F8))==null?void 0:L.navigationCommand)};
return _.r("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.r("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.r(_.z$,{data:function(){return G().cancelButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:W})}}),_.r(_.z$,{data:function(){var L;
if(G().navButton){var A=Object;var O=A.assign,c=_.Q(G().navButton,_.J6),u=((L=_.Q(K(),F8))==null?0:L.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",h,J;L=_.Q((h=_.Q(K(),F8))==null?void 0:h.navigationCommand,_.Oh);h=(J=_.Q(L,_.H$))==null?void 0:J.url;A={buttonViewModel:O.call(A,{},c,{state:u,iconName:h?"OPEN_IN_NEW":""})}}else A=void 0;return A}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:W})}})))},"Di");
lr5.idomCompat=!0;_.sh(lr5,"yt-report-form-bottom-bar-view-model",{props:{data:_.Dd}});var Bf5=_.P(function(m){var G=m.nextStep;return _.r("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.r("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.r(_.fN,{icon:function(){return G().iconName||""}})),_.r("div",null,_.r(_.Nm,{text:function(){return G().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ei"),M2D=_.P(function(m){var G=m.data;
var K,W=(K=_.xS().resolve(_.fn(_.l_)))==null?void 0:K(),L=_.S5(_.sU,function(){return G().flowStateKey||""});
return _.r("yt-report-form-confirmation-page-view-model",{class:function(){var A;return((A=_.Q(L(),F8))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.r("div",{class:function(){var A;
return((A=_.Q(L(),F8))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.r(_.oC,{data:function(){return W&&G().imageDark?G().imageDark:G().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.r("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.r("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return G().confirmationHeader}),_.r("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.r(_.Nm,{text:function(){return G().confirmationText}})),_.r("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.r(_.Nm,{text:function(){return G().lawEnforcementText}})),
_.r("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return G().whatToExpectHeader}),_.r(_.p,{cond:function(){return G().nextSteps},
then:function(A){return _.r("div",null,_.r(_.D0,{each:A},function(O){return _.r(Bf5,{nextStep:O})}))}}),_.r(_.p,{cond:function(){return G().legalReportText},
then:function(A){return _.r("div",null,_.r(_.Nm,{text:A,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Fi");
M2D.idomCompat=!0;_.sh(M2D,"yt-report-form-confirmation-page-view-model",{props:{data:_.Dd}});var Tfs=_.P(function(m){var G=m.data;var K=function(){var A;return((A=_.Q(G().inputBox,oFu))==null?void 0:A.maxChars)||500},W=function(){return G().flowStateKey||""},L=_.S5(_.sU,W);
m=_.AY(function(A){A=Object.assign({},L(),{flowFormState:{isValid:A.length<=K()},abuseReportFlowState:{userComments:A,navigationEnabled:!(A.length>K()),isReportFormDirty:!0}});_.nD().dispatch(_.wS("flowStateEntity",W(),A))},150);
_.bX(function(){var A=Object.assign({},L(),{flowFormState:{isValid:!0}});_.nD().dispatch(_.wS("flowStateEntity",W(),A))});
return _.r("yt-report-form-details-page-view-model",{class:function(){var A;return((A=_.Q(L(),F8))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.r("h1",{class:function(){var A;
return((A=_.Q(L(),F8))==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return G().detailsPageHeader}),_.r("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.r(_.Nm,{text:function(){return G().bodyText}})),_.r("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.r(xfD,{label:function(){var A;
return((A=_.Q(G().inputBox,oFu))==null?void 0:A.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var A;return{errorMessage:((A=_.Q(G().inputBox,oFu))==null?void 0:A.maxCharsExceededErrorMessage)||"",maxChars:K()}},
onInput:m})))},"Gi");
Tfs.idomCompat=!0;_.sh(Tfs,"yt-report-form-details-page-view-model",{props:{data:_.Dd}});var mXG=_.P(function(m){var G=m.data;var K=function(){return G().flowStateKey||""},W=_.S5(_.sU,K),L=function(){return _.Q(W(),F8)};
return _.r("yt-report-form-reason-select-page-view-model",{class:function(){var A;return((A=L())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.r("h1",{class:function(){var A;
return((A=L())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return G().pageHeader}),_.r("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.r(_.Nm,{text:function(){return G().bodyText}})),_.r("div",{class:function(){var A;
return((A=L())==null?void 0:A.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.r(P2P,{data:function(){return _.Q(G().radioButtonGroup,qcW)},
onSelected:function(A,O){A=Object.assign({},W(),{abuseReportFlowState:Object.assign({},L(),{reasonKey:O.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:O.command})});_.$e(_.Bp("flowStateEntity",K(),A))},
selectedKey:function(){var A;return(A=L())==null?void 0:A.reasonKey},
groupName:"report-form-reason-select-page"})))},"Hi");
mXG.idomCompat=!0;_.sh(mXG,"yt-report-form-reason-select-page-view-model",{props:{data:_.Dd}});var ixz=_.P(function(m){var G=m.data;var K,W=(K=_.xS().resolve(_.fn(_.l_)))==null?void 0:K();return _.r("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.r("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.r(_.oC,{data:function(){return W&&G().imageDark?G().imageDark:G().image},
alt:""})),_.r("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.r("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return G().header}),_.r(_.Nm,{text:function(){return G().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Ii");
ixz.idomCompat=!0;_.sh(ixz,"yt-report-form-sign-in-page-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=_.RC(_.LGP.talkToRecsStateSelector),W=function(){return G().titleSuperscript},L=function(){return G().answersShelf},A=function(){return G().videoShelf},O=function(){var l;
return(l=G().textInputPlaceholder)==null?void 0:l.content},c=function(){return G().showOpenTextInput},u=function(){var l;
return(l=G().textInputValue)==null?void 0:l.content},h=function(){return G().isMultiTurnFlow?G().resetButtonViewModel:void 0},J="",N=function(){return G().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
m=_.g(_.g_("",void 0,"bvffkf"));var D=m.next().value,t=m.next().value;m=_.g(_.g_(!1,void 0,"wzIoge"));var a=m.next().value,v=m.next().value,I=function(){return{state:a()||D()?"active":"disabled",disabled:!(a()||D())}};
_.nn(function(){if(c()){u()&&t(u());var l;if(!h()&&((l=K())==null?0:l.stepStates)){var Ls;l=Object.keys((Ls=K())==null?void 0:Ls.stepStates);Ls=l[l.length-1];if(Ls!=="fmf_step_id"){var gd,Qf;Ls=(gd=K().stepStates[Ls])==null?void 0:(Qf=gd.userQuery)==null?void 0:Qf.userQuery;_.$e(eAu());Ls&&Z(Ls)}}}});
var Z=function(l){var Ls=G().onUpdateText;Ls&&_.h$(Ls,{form:{userQuery:l}});t(l)},k=_.AY(function(l){Z(l.target.value.trim())},150),z=_.dn(function(l){var Ls;
J=(Ls=l.target.value)==null?void 0:Ls.trim();k(l);return!1}),X=_.dn(function(l){l.key==="Enter"&&(a()||D())&&(Z(l.target.value.trim()),U());
return!1}),f=function(l,Ls){v(Ls);
if(Ls){if(G().isMultiTurnFlow&&!J){var gd;Z((gd=l==null?void 0:l.text)!=null?gd:"")}G().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&U()}else t(J)},U=function(){var l=_.Q(G().nextButtonViewModel,_.J6);
if(l==null?0:l.trackingParams){l=_.m5(l.trackingParams);var Ls=_.gU();Ls&&l&&_.bd(Ls,l,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK")}(l=G().onNextStepCommand)&&_.h$(l)};
m={};return _.r("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost"},_.r("div",{class:"ytwTalkToRecsTopCornerButton"},_.r(_.z$,{data:function(){return G().topCornerButton}},{buttonViewModel:_.kP})),_.r("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.r("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.r(_.Nm,{text:function(){return G().title}}),_.r(_.p,{cond:W,
then:function(){return _.r("sup",{class:"ytwTalkToRecsSuperScript"},_.r(_.Nm,{text:W}))}})),_.r("div",{class:"ytwTalkToRecsSubtitle"},_.r(_.Nm,{text:function(){return G().subtitle}})),_.r("div",{class:"ytwTalkToRecsResultsShelf"},_.r(_.p,{cond:L,
then:function(){return _.r(_.z$,{data:L},{chipsShelfViewModel:function(l){return _.r("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.r(_.U3,{data:l.data,callback:f,selectionBehavior:N}))}})}}),_.r(_.p,{cond:A,
then:function(){return _.r(_.z$,{data:A},{horizontalShelfViewModel:function(l){return _.r("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.r(_.FW,{data:l.data,thumbnailAspectRatio:0}))}})}})),_.r("div",{class:_.VO("ytwTalkToRecsRefinementContainer",(m.ytwTalkToRecsBottomMargin=function(){return G().isMultiTurnFlow},m))},_.r(_.p,{cond:c,
then:function(){return _.r("div",{class:"ytwTalkToRecsUserInputBox"},_.r("input",{type:"text",class:"ytwTalkToRecsTextInput",title:O,placeholder:O,value:D,"on:input":z,"on:keyup":X,maxlength:200}))}}),_.r(_.z$,{data:function(){return G().isMultiTurnFlow?G().nextButtonViewModel:void 0}},{buttonViewModel:function(l){return _.r("div",{class:"ytwTalkToRecsFlowControlButtons"},_.r(_.kP,{data:l.data,
buttonOverrides:I}))}}),_.r(_.z$,{data:h},{buttonViewModel:function(l){return _.r("div",{class:"ytwTalkToRecsFlowControlButtons"},_.r(_.kP,{data:l.data,
onClick:function(){var Ls=_.Q(G().resetButtonViewModel,_.J6);Z(D());(Ls=Ls==null?void 0:Ls.onTap)&&_.h$(Ls)}}))}}))))},"Ki"),"yt-talk-to-recs-view-model",{props:{data:_.Dd}});var hxO={sources:[{clientResource:{imageName:"CHECK"}}]};var GZq=_.P(function(m){var G=_.Q3("div");m=_.ql(m,{error:void 0});var K=m.data,W=m.error,L=m.onSelected;m=m.className;var A=_.g(_.EQ(function(){return NHs(K())})),O=A.next().value,c=A.next().value;
QTE(K,function(t){c(t);var a,v,I=J3D((a=K().options)==null?void 0:(v=a[t])==null?void 0:v.value,K().type);L==null||L(I);G.value.focus()});
A=_.dn(function(){if(!K().disabled){var t=K(),a=O(),v=G.value;t.options&&(t=pRP(t.options,a,t.label),_.xS().resolve(_.Lk).openSheet({viewModel:t},v))}});
var u=_.liJ(),h=function(){return!!W()},J=function(){return!!K().disabled},N={},D={};
return _.r("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.r("div",{class:_.VO("ytDropdownViewModelDropdownContainer",m,(N.ytDropdownViewModelDropdownContainerErrorBorder=h,N.ytDropdownViewModelDropdownContainerDisabled=J,N)),"on:click":A,el:G,role:"combobox",tabindex:0,"on:keydown":u,"aria-invalid":h,"aria-disabled":J,"aria-describedby":function(){return h()?"dropdown-view-model-error":void 0}},_.r("div",{class:"ytDropdownViewModelText"},DB6(K,h,O),tFq(K,O)),_.r("div",{class:_.VO("ytDropdownViewModelChevronDown",
(D.ytDropdownViewModelChevronDownDisabled=J,D))},_.r(_.fN,{icon:"CHEVRON_DOWN"}))),Fnu(K,W))},"Li");_.sh(_.P(function(m){var G=m.data;var K=function(L){var A=oAP(G());A.videoMetadata||(A.videoMetadata={});A.videoMetadata.sponsorshipsMetadata||(A.videoMetadata.sponsorshipsMetadata={});A.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(L)},W=function(L){var A=oAP(G());
A.scheduledRedirectMetadata||(A.scheduledRedirectMetadata={});A.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(L)};
return _.r("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.r("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.r("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.r(_.Nm,{text:function(){return G().title}}),_.r(_.fN,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.r(_.Nm,{text:function(){return G().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.r(_.z$,{data:function(){return G().tierChoices}},{dropdownViewModel:function(L){return _.r("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.r(GZq,{data:L.data,
onSelected:K}))}}),_.r(_.z$,{data:function(){return G().startTimeChoices}},{dropdownViewModel:function(L){return _.r("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.r(GZq,{data:L.data,
onSelected:W}))}}),_.r(_.Nm,{text:function(){return G().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.r("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.r(_.z$,{data:function(){return G().scheduleButton}},{panelFooterViewModel:vQ})))},"Mi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;m=m.className===void 0?"":m.className;var K=_.S5(cWi,function(){return G().flowStateEntityKey||""}),W={};
W=_.VO("ytFlowBottomBarViewModelFlowBottomBarButtons",(W.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},W));
var L={},A=_.VO("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",W,(L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},L));
L={};var O=_.VO("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",W,(L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},L));
W={};W=_.VO("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(W.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},W.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},W.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return G().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
W));
m=_.VO("ytFlowBottomBarViewModelHost",m);return _.r("yt-flow-bottom-bar-view-model",{class:m},_.r(_.p,{cond:function(){var c;return(c=G())==null?void 0:c.textSection},
then:function(c){return _.r("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.r(_.Nm,{text:c}))}}),_.r("div",{class:W},_.r(_.z$,{data:function(){return G().secondaryButton}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
className:O})}}),_.r(_.z$,{data:function(){return G().primaryButton}},{buttonViewModel:function(c){return _.r(_.kP,{data:c.data,
className:A,buttonOverrides:function(){var u;return{disabled:!((u=K())==null||!u.primaryButtonDisabled)}}})}})))},"Ni"),"yt-flow-bottom-bar-view-model",{props:{data:_.Dd,
className:_.nN}});var KcE="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),sS=function(){var m=_.d.apply(this,arguments)||this;m.enableScrollingFix=!0;m.bottomBar=!1;m.fitContent=!1;return m};
_.n(sS,_.d);_.w=sS.prototype;_.w.ready=function(){_.F("enable_pdp_icon_prefetch")&&mhO(_.xS().resolve(_.L3q),0,KcE)};
_.w.focus=function(m){this.topBar?_.ZD(this.topBar,m):this.paperDialog.focus(m)};
_.w.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$20947_scroller&&(this.JSC$20947_scroller.dialogElement=this.paperDialog,this.JSC$20947_scroller.attached&&typeof this.JSC$20947_scroller.attached==="function"&&this.JSC$20947_scroller.attached())};
_.w.onDataChanged=function(){var m;this.fitContent=!((m=this.data)==null||!m.fitContent);var G;this.bottomBar=!((G=this.data)==null||!G.bottomBar)};
_.w.onProgressChanged=function(){var m,G,K=((G=(m=this.data)==null?void 0:m.progress)!=null?G:0)*100;this.progressElement.style.width=K+"%"};
_.w.isProgressHidden=function(){var m;return!((m=this.data)==null?0:m.progress)};
_.w.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(m){return m&&!m.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
sS.prototype.onProgressChanged=sS.prototype.onProgressChanged;sS.prototype.onDataChanged=sS.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],sS.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],sS.prototype,"enableScrollingFix",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],sS.prototype,"bottomBar",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],sS.prototype,"fitContent",void 0);_.x([_.UM("#progress"),_.S("design:type",HTMLElement)],sS.prototype,"progressElement",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],sS.prototype,"JSC$20947_scroller",void 0);_.x([_.UM("ytd-flow-top-bar-renderer"),_.S("design:type",HTMLElement)],sS.prototype,"topBar",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sS.prototype,"onDataChanged",null);_.x([_.Sb("data.progress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sS.prototype,"onProgressChanged",null);_.x([_.Ye({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],sS);
_.y(sS,"ytd-flow-step-renderer",function(){if(vhG!==void 0)return vhG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vhG=m},{mode:1});var q5=function(m){this.resolveCommand=m;this.steps={}},Wcz=function(m,G){G=_.g(G||[]);
for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=Object.values(K)[0],L=void 0;if((L=W)==null?0:L.stepId)m.steps[W.stepId]=K}},A16=function(m,G){var K,W,L,A,O;
return _.Y(function(c){if((K=m.state)==null||!K.currentStepId)return c.return(void 0);W=m.getCurrentStep();if(!W)return c.return(LcP(m));if(L=_.Q(W,_.mI))m.logVEScreen(L),((A=L)==null?0:A.onStepStartCommand)&&m.resolveCommand((O=L)==null?void 0:O.onStepStartCommand,{});L&&G&&(m.logFlowEvent(L,G),G.steps&&!G.steps.includes(W)&&G.steps.push(W));return c.return(W)})};
q5.prototype.back=function(){var m;(m=this.state)!=null&&m.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
q5.prototype.handleUpdateFlowCommand=function(m){m.steps&&Wcz(this,m.steps);m.entityUpdateCommand&&this.resolveCommand(m.entityUpdateCommand,{});m.flowContinuationCommand&&(m=m.flowContinuationCommand)&&(this.getFlowContinuationCommand=m);this.awaitFlowContinuation&&(m=this.getCurrentStep(),this.awaitFlowContinuation(m),this.awaitFlowContinuation=void 0)};
q5.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var LcP=function(m){return _.Y(function(G){return m.getFlowContinuationCommand?G.return(new Promise(function(K){m.awaitFlowContinuation=K;m.getFlowContinuationCommand&&m.resolveCommand(m.getFlowContinuationCommand,{flow_state:m.state})})):G.return(Promise.resolve(void 0))})};
q5.prototype.getCurrentStep=function(){var m;if((m=this.state)!=null&&m.currentStepId)return this.steps[this.state.currentStepId]};
q5.prototype.logVEScreen=function(m){var G;((G=m.screenLoggingData)==null?0:G.screenVeType)&&_.PB(_.l1(),m.screenLoggingData.screenVeType)};
q5.prototype.logFlowEvent=function(m,G){var K,W,L,A;((K=G.flowLoggingData)==null?0:K.eventNamespace)&&((W=m.flowEventData)==null?0:W.eventType)&&((L=m.flowEventData)==null?0:L.eventMetadata)&&((A=G.flowLoggingData)==null?0:A.flowType)&&(m=_.e8(G.flowLoggingData.eventNamespace,m.flowEventData.eventType,m.flowEventData.eventMetadata),_.fG().logFlowEvent(m,G.flowLoggingData.flowType))};
_.e_.Object.defineProperties(q5.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.state)==null?void 0:m.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.state)!=null&&m.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(G,K){K.key&&K.value&&(G[K.key]=K.value);return G},{})}}});var ES=function(){var m=_.d.apply(this,arguments)||this;m.flowState=_.F("web_use_flow_state_manager")?void 0:new q5(function(G,K){K=K===void 0?{}:K;_.xe.instance.resolveCommand(G,{form:{form:K,element:m.hostElement}})});
m.JSC$20958_flowStateManager=_.F("web_use_flow_state_manager")?_.xS().resolve(_.RH):void 0;m.currentTargetId="";m.initialState=!0;m.isLoading=!1;m.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"};m.containsTalkToRecs=!1;return m};
_.n(ES,_.d);_.w=ES.prototype;_.w.onPopupClosed=function(m){if(!m||this.hostElement===m.detail.popupRenderer){if(this.JSC$20958_flowStateManager){var G;((G=this.data)==null?0:G.flowStateEntityKey)&&this.JSC$20958_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.w.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.w.focus=function(m){var G=this;_.Dh(function(){var K=_.VL(G.hostElement).querySelector("ytd-flow-step-renderer");(K==null?0:K.topBar)?K.focus(m):G.topBar&&_.ZD(G.topBar,m)},1)};
_.w.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.w.computeTopBarHidden=function(m){var G;return!((G=_.Q(m,_.mI))==null||!G.topBarOverride)};
_.w.onCurrentFlowChange=function(){if(this.JSC$20958_flowStateManager&&this.data&&this.flow){var m=AsW(this.JSC$20958_flowStateManager,this.data),G;if(m&&((G=this.flow)==null?0:G.currentStepId)){m=O_z(m,this.flow.currentStepId);this.initialState=!1;this.isLoading=!this.currentFlowStep;var K;!m&&((K=this.data)==null?0:K.flowContinuationCommand)&&this.ytComponentBehavior.resolveCommand(this.data.flowContinuationCommand)}}};
_.w.observeData=function(){var m=this;if(this.JSC$20958_flowStateManager){var G=this.currentTargetId,K,W,L=(W=(K=this.data)==null?void 0:K.targetId)!=null?W:"";G!==L&&G&&wZs(this.JSC$20958_flowStateManager,G);this.currentTargetId=L;this.data&&gWP(AsW(this.JSC$20958_flowStateManager,this.data),function(A){A&&(m.initialState=!1,m.currentFlowStep={flowStepRenderer:A},m.isLoading=!m.currentFlowStep,m.autofocusAndRefit(),m.updateContainsTalkToRecs(),m.logVEScreen(),m.logFlowEvent())})}};
_.w.dataChanged=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1){if(!m.flowState)return W.return();((G=m.data)==null?0:G.steps)&&Wcz(m.flowState,m.data.steps);if((K=m.data)==null?0:K.flowContinuationCommand){var L=m.flowState,A=m.data.flowContinuationCommand;A&&(L.getFlowContinuationCommand=A)}return W.yield(A16(m.flowState,m.data),2)}m.currentFlowStep=W.yieldResult;_.ey(W)})};
_.w.flowChanged=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1){if(!m.flowState||!m.flow)return K.return();m.flowState.state=m.flow;m.isLoading=!0;return K.yield(A16(m.flowState,m.data),2)}G=K.yieldResult;if(!G||m.flow.isLoading)return K.return();m.currentFlowStep=G;m.initialState=!1;m.isLoading=!1;m.autofocusAndRefit();m.updateContainsTalkToRecs();_.ey(K)})};
_.w.logVEScreen=function(){var m,G,K=(m=_.Q(this.currentFlowStep,_.mI))==null?void 0:(G=m.screenLoggingData)==null?void 0:G.screenVeType;K&&_.PB(_.xS().resolve(_.m_),K)};
_.w.logFlowEvent=function(){var m=_.Q(this.currentFlowStep,_.mI),G,K,W,L,A,O;(this==null?0:(G=this.data)==null?0:(K=G.flowLoggingData)==null?0:K.eventNamespace)&&(this==null?0:(W=this.data)==null?0:(L=W.flowLoggingData)==null?0:L.flowType)&&(m==null?0:(A=m.flowEventData)==null?0:A.eventType)&&(m==null?0:(O=m.flowEventData)==null?0:O.eventMetadata)&&(m=_.e8(this.data.flowLoggingData.eventNamespace,m.flowEventData.eventType,m.flowEventData.eventMetadata),_.fG().logFlowEvent(m,this.data.flowLoggingData.flowType))};
_.w.updateContainsTalkToRecs=function(){var m,G=(m=_.Q(this.currentFlowStep,_.mI))==null?void 0:m.content;this.containsTalkToRecs=!!G&&!!_.Q(G,XhD)};
_.w.autofocusAndRefit=function(){var m=this,G=_.xS().resolve(_.fn(_.sH)),K=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),W=document.querySelector("yt-report-form-confirmation-page-view-model"),L=document.querySelector("yt-report-form-details-page-view-model"),A=document.querySelector("yt-report-form-reason-select-page-view-model"),O=document.querySelector("yt-contributor-zero-state-view-model"),
c=document.querySelector("yt-structured-context-note-view-model"),u=document.querySelector("yt-note-view-model");(!K&&G&&G.isKeyBoardInUse()||W||!K&&L||!K&&A||!K&&(O||c||u))&&_.dW(this.hostElement);_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit")})};
_.w.handleUpdateFlowCommand=function(m){this.flowState?this.data&&(m=_.Q(m,_.Qk4),m.targetId===this.data.targetId&&(m.flowContinuationCommand&&(this.data.flowContinuationCommand=m.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(m),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(m)};
_.w.handleFlowNextStepCommand=function(m){this.JSC$20958_flowStateManager?this.ytComponentBehavior.resolveCommand(m):this.data&&this.flow&&this.flow.key&&(m=_.Q(m,_.Nb4),m.targetId===this.data.targetId&&(m=m.stepId||"",this.ytdReduxBehavior.dispatch(_.wS("flowStateEntity",this.flow.key,{currentStepId:m,stepIdStack:(this.flow.stepIdStack||[]).concat(m)}))))};
_.w.handleFlowPrevStepCommand=function(m){if(this.JSC$20958_flowStateManager)this.ytComponentBehavior.resolveCommand(m);else if(this.data&&this.flow&&this.flow.key&&(m=_.Q(m,_.DAP),m.targetId===this.data.targetId)){var G=[].concat(_.Bz(this.flow.stepIdStack||[]));G.length>1?(G.pop(),this.ytdReduxBehavior.dispatch(_.wS("flowStateEntity",this.flow.key,{currentStepId:G[G.length-1],stepIdStack:G}))):m.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(m.onFirstStepCommand)}};
_.w.handleYpcCancelRecurrenceCommand=function(m){if(this.data&&this.flow&&this.flow.key&&(m=_.Q(m,zYD),m.targetId===this.data.targetId&&m.endpointCommand)){var G=_.Q(this.flow,ly5);G&&_.Q(m.endpointCommand,_.VSR)&&(_.Q(m.endpointCommand,_.VSR).feedbackData=G.surveyFeedback);this.ytComponentBehavior.resolveCommand(m.endpointCommand)}};
_.w.handlePartialUpdateFlowStateEntity=function(m){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.wS("flowStateEntity",this.flow.key,m,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
ES.prototype.flowChanged=ES.prototype.flowChanged;ES.prototype.dataChanged=ES.prototype.dataChanged;ES.prototype.observeData=ES.prototype.observeData;ES.prototype.onCurrentFlowChange=ES.prototype.onCurrentFlowChange;ES.prototype.onPopupClosed=ES.prototype.onPopupClosed;_.x([_.q(_.OW),_.S("design:type",Object)],ES.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ES.prototype,"initialState",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ES.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Object)],ES.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ES.prototype,"currentFlowStep",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ES.prototype,"onPopupClosed",null);
_.x([_.V({selectorArgs:["data.flowStateEntityKey"],selector:cWi}),_.S("design:type",Object)],ES.prototype,"flow",void 0);_.x([_.UM("ytd-flow-top-bar-renderer"),_.S("design:type",HTMLElement)],ES.prototype,"topBar",void 0);_.x([_.Sb("data","flow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ES.prototype,"onCurrentFlowChange",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ES.prototype,"observeData",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],ES.prototype,"dataChanged",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ES.prototype,"containsTalkToRecs",void 0);_.x([_.Mg("flow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],ES.prototype,"flowChanged",null);_.x([_.Ye({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ES);
var w_6=_.Vz()(ES,"ytd-flow-root-renderer",function(){if(tXW!==void 0)return tXW;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return tXW=m},{mode:_.Zh("kevlar_poly_si_batch_j025")?1:2});var qnD=_.LGP.talkToRecsStateSelector;_.sh(_.P(function(m){var G=function(){return _.Q(m.data().flowRoot,nFD)};
_.bX(function(){var K=G(),W=function(){},L=function(){};
if(K){var A,O,c,u=((c=_.Q((A=G())==null?void 0:(O=A.steps)==null?void 0:O[0],_.mI))==null?void 0:c.stepId)||"";vAi(K,u);W=sTG(K);L=EAs(K)}_.sZ(function(){var h=G();h&&_.$R().dispatch(_.Bp("flowStateEntity",h.flowStateEntityKey));W();W=function(){};
L();L=function(){};
_.$e(eAu())})});
return _.r("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.r(_.Pr,{contentId:function(){return m.data().contentId}},function(){return _.r("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.r(_.p,{cond:G,
then:function(K){return _.r(w_6,{data:K})}}))}))},"Oi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Dd}});var gQO=_.P(function(m){var G=_.ql(m,{numberOfChips:5}).numberOfChips;return _.r("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.r(_.D0,{each:function(){return Array(G==null?void 0:G())}},function(){return _.r("div",{class:"ytGhostChipShelfChip"})}))},"Pi");_.sh(_.P(function(){return _.r("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.r("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.r("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.r(gQO,null)),_.r(_.Q1o,{data:{rows:1},isExploreHub:!0}))},"Qi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.sh(_.P(function(m){var G=m.data;var K=m.standardUnitMinWidth;m=_.g((0,_.Qs)(G));var W=m.next().value,L=m.next().value,A=function(){var c,u=(c=W())==null?void 0:c.contents;return u==null||u.length===0},O=function(){L(Object.assign({},W(),{contents:[]}))};
return _.r("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.aC(_.eN({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var c=_.Q(G().chipsShelf,eZP);if(c!=null&&c!=null&&c.autoselectChipOnVisible){var u,h,J=_.Q(c==null?void 0:(u=c.contents)==null?void 0:u[(h=c.autoselectedChipIndex)!=null?h:0],_.NV);J&&J.tapCommand&&_.h$(J.tapCommand)}}}))},_.r(_.Pr,{contentId:function(){return G().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.r("div",null,_.r("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.r(_.z$,{data:function(){return G().header}},{sectionHeaderViewModel:function(c){return _.r(_.R4,{data:c.data,
disableHorizontalPadding:!0})}})),_.r("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.r(_.z$,{data:function(){return G().chipsShelf}},{chipsShelfViewModel:function(c){return _.r(_.U3,{data:c.data,
callback:O,selectionBehavior:1})}})),_.r("div",null,_.r(_.p,{cond:A,
then:function(){return _.r("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.r(_.Q1o,{data:{rows:1},isExploreHub:!0}))}}),_.r(_.z$,{data:function(){var c;
return(c=W())==null?void 0:c.contents}},{richShelfRenderer:function(c){return _.r(_.VHS,{data:c.data,
isInnerShelf:!0,standardUnitMinWidth:K})}})))}))},"Ri"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Dd,
standardUnitMinWidth:_.Dd}});var HQ=function(){return _.d.apply(this,arguments)||this};
_.n(HQ,_.d);
HQ.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
HQ.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.x([_.q(_.OW),_.S("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],HQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],HQ.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],HQ.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Number)],HQ.prototype,"standardUnitMinWidth",void 0);_.x([_.Ye({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],HQ);
_.y(HQ,"ytd-rich-section-renderer",function(){if(zQD!==void 0)return zQD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return zQD=m},{mode:2});var OxG;var ZQP=null;_.sh(_.P(function(m){return _.r("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.r("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.r(_.Nm,{text:function(){return m.data().text}}),_.r("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Si"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Dd}});var c1s=_.P(function(m){var G=m.playerControlsProps;var K=m.isShortsPage;return _.r("yt-bigboard",null,_.r(_.p,{cond:function(){return G().isDragging},
then:function(){return _.r("div",{class:"ytBigboardStoryboardHost"},_.r(_.E3P,{progressBarProps:G,isShortsPage:K}))}}))},"Ti");
c1s.idomCompat=!0;var I8={ACCOUNT_LABEL:c_("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:c_("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:c_("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:c_("AD_BADGE_HINT"),AD_BADGE_TEXT:c_("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:c_("ALL_CHANNELS_LABEL"),AMBIENT_MODE:c_("AMBIENT_MODE"),AMBIENT_MODE_OFF:c_("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:c_("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:c_("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:c_("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:c_("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:c_("APP_UPSELL_TITLE"),AUDIO_TRACK:c_("AUDIO_TRACK","Audio Track"),AUTONAV_TOGGLE:c_("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:c_("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:c_("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:c_("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:c_("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:c_("AUTO_ZOOM","Auto zoom"),BACK:c_("BACK"),CANCEL:c_("CANCEL"),CHANNEL_SWITCHER_LABEL:c_("CHANNEL_SWITCHER_LABEL"),CLOSE:c_("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:c_("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:c_("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:c_("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:c_("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:c_("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:c_("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:c_("COMMENT_MODAL_CONTENT"),CONFIRM_OK:c_("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:c_("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:c_("COPIED_TO_CLIPBOARD"),COPY:c_("COPY"),COPY_DEBUG_INFO:c_("COPY_DEBUG_INFO"),COPY_EMBED_CODE:c_("COPY_EMBED_CODE"),
COPY_LINK_LABEL:c_("COPY_LINK_LABEL"),COPY_VIDEO_URL:c_("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:c_("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:c_("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:c_("DELETE_FROM_DOWNLOADS"),DIALOG:c_("DIALOG"),DONE:c_("DONE"),DOWNLOAD:c_("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:c_("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:c_("FLAG_CONFIRM"),FLAG_CONTENT:c_("FLAG_CONTENT"),FLAG_LABEL:c_("FLAG_LABEL"),FLAG_TITLE:c_("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:c_("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:c_("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:c_("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:c_("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:c_("HIDE_SEARCH_FILTERS_LABEL"),HOME:c_("HOME","Home"),INVALID_RESPONSE_RECEIVED:c_("INVALID_RESPONSE_RECEIVED"),LIBRARY:c_("LIBRARY","Library"),LISTENING:c_("LISTENING"),LOADING:c_("LOADING"),LONG_PRESS_MIC_TO_SPEAK:c_("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:c_("LOOP"),MENU_DESKTOP:c_("MENU_DESKTOP"),
MENU_EXIT:c_("MENU_EXIT"),MENU_FEEDBACK:c_("MENU_FEEDBACK"),MENU_HELP:c_("MENU_HELP"),MENU_IMPRESSUM:c_("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:c_("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:c_("MENU_SETTINGS"),MENU_SIGN_IN:c_("MENU_SIGN_IN"),MENU_TITLE:c_("MENU_TITLE"),MENU_YOUR_DATA:c_("MENU_YOUR_DATA"),MORE_INFO:c_("MORE_INFO"),MORE_OPTIONS:c_("MORE_OPTIONS"),MUTE_VOLUME:c_("MUTE_VOLUME"),NEW_PLAYLIST:c_("NEW_PLAYLIST"),NEXT_VIDEO:c_("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:c_("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:c_("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:c_("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:c_("NOT_FOUND_TITLE"),NO_DOWNLOADS:c_("NO_DOWNLOADS"),NO_MIC_INPUT:c_("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:c_("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:c_("OOPS_MESSAGE"),OPEN_APP:c_("OPEN_APP"),OPEN_YOUTUBE:c_("OPEN_YOUTUBE"),PAUSE:c_("PAUSE"),PLAY:c_("PLAY"),PLAYER_CAPTION:c_("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:c_("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:c_("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:c_("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:c_("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:c_("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:c_("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:c_("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:c_("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:c_("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:c_("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:c_("PLAYER_MINIMIZE"),PLAYER_NEXT:c_("PLAYER_NEXT"),PLAYER_PAUSE:c_("PLAYER_PAUSE"),PLAYER_PLAY:c_("PLAYER_PLAY"),
PLAYER_PREVIOUS:c_("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:c_("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:c_("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:c_("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:c_("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:c_("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:c_("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:c_("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:c_("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:c_("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:c_("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:c_("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:c_("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:c_("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:c_("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:c_("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:c_("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:c_("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:c_("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:c_("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:c_("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:c_("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:c_("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:c_("PLAY_ALL"),PLEASE_FIX_ERRORS:c_("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:c_("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:c_("PREVIOUS_VIDEO"),PRIVACY_POLICY:c_("PRIVACY_POLICY"),RELOAD:c_("RELOAD"),REQUIRED_LABEL:c_("REQUIRED_LABEL"),SAVE_PLAYLIST:c_("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:c_("SCRUB_SLIDE_USER_EDU"),SEARCH:c_("SEARCH","Search"),
SEARCH_APPEND_LABEL:c_("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:c_("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:c_("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:c_("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:c_("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:c_("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:c_("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:c_("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:c_("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:c_("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:c_("SEEK_SLIDER"),SETTINGS_LABEL:c_("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:c_("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:c_("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:c_("SHOW_LESS"),SHOW_MORE:c_("SHOW_MORE"),SHOW_PLAYER_CONTROLS:c_("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:c_("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:c_("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:c_("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:c_("SIGN_IN_ON_WEB"),STABLE_VOLUME:c_("STABLE_VOLUME"),STABLE_VOLUME_OFF:c_("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:c_("STABLE_VOLUME_ON"),STATS_FOR_NERDS:c_("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:c_("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:c_("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:c_("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:c_("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:c_("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:c_("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:c_("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:c_("TIMESTAMP_SECONDS"),TOGGLE_OFF:c_("TOGGLE_OFF"),TOGGLE_ON:c_("TOGGLE_ON"),TRENDING:c_("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:c_("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:c_("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:c_("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:c_("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:c_("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:c_("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:c_("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:c_("VIDEO_LINK_LABEL")};var Y_z=_.P(function(m){var G=m.playerApi;m=_.Q3("button",function(W){wf(W,36843)});
var K=c_("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.r("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.r("button",{el:m,class:"ytPlayerControlsJumpForwardButtonButton",title:K,"aria-label":K,"on:click":_.dn(function(){gf(36843);G&&G().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.r("span",null,_.r(_.fN,{icon:"FAST_FORWARD"}))))},"Ui");var r1z=_.P(function(m){var G=m.appApi;m=_.Q3("button",function(W){wf(W,62946)});
var K=c_("OPEN_IN_MINIPLAYER");return _.r("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.r("button",{el:m,class:"ytMiniplayerButtonButton",title:K,"aria-label":K,"on:click":_.dn(function(){gf(62946);var W,L;(L=(W=G()).openInMiniplayer)==null||L.call(W);return!1})},_.r(_.fN,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Vi");var uzq=_.P(function(m){var G=m.playerApi;m=_.Q3("button",function(A){wf(A,142812)});
var K=_.g(_.g_(!1,void 0,"eOMRAb")),W=K.next().value,L=K.next().value;K=function(){return c_("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(W()?1:2)})};
return _.r("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.r("button",{el:m,class:"ytPlaybackSpeedButtonButton",title:K,"aria-label":K,"on:click":_.dn(function(){gf(142812);if(G){var A=G(),O=W();A.setPlaybackRate(O?1:2);L(!W())}return!1})},_.r("span",null,_.r(_.fN,{icon:function(){return W()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Wi");var hfs=_.P(function(m){var G=m.title;var K=m.ariaLabel;var W=m.icon;var L=m.command;var A=m.visualElementId;m=_.Q3("button",function(O){A&&wf(O,A())});
return _.r("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.r("button",{el:m,class:"ytdThumbnailOverlayButtonButton",title:G,"aria-label":K,"on:click":_.dn(function(){A&&gf(A());L&&_.xS().resolve(_.S1).resolveCommand(L())})},_.r(_.fN,{icon:W})))},"Xi");var p_z=["en-CA","en","es-MX","fr-CA"];var J1u=_.P(function(m){var G=_.ql(m,{isOverlay:!1}),K=G.captionIconType,W=G.onClick;m=G.ariaLabel;var L=G.ariaPressed,A=G.isOverlay;G=_.Q3("button",function(u){wf(u,127299)});
var O=_.dn(function(u){gf(127299);W==null||W(u);return!1}),c={};
return _.r("ytm-closed-captioning-button",{class:_.VO("ytmClosedCaptioningButtonHost",(c.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return K()===-1&&A()},c.ytmClosedCaptioningButtonIconDisabled=function(){return K()===-1&&!A()},c))},_.r("button",{el:G,
class:"ytmClosedCaptioningButtonButton",title:m,"aria-label":m,"aria-pressed":L,"on:click":O},_.r(_.fN,{icon:function(){var u="";var h=_.M$().get("hl");h=!h||p_z.includes(h)?"CLOSED_CAPTION":"SUBTITLES";var J=K();switch(J){case -1:case 0:u=h;break;case 1:u=h+"_FILLED";break;default:_.GG(J)}return u}})))},"Yi");
J1u.idomCompat={callbacks:{onClick:!0}};var Ak="";var N7D=_.P(function(m){var G=m.playerControlsProps,K=m.onClickFn;m=_.pT(function(){var A=G(),O=-1;A.captionsAvailable&&(O=A.captionsEnabled?1:0);return O},void 0,"MZ0Wqe");
var W=_.pT(function(){var A=G();return A.captionsAvailable?_.zq(A.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.zq("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),L=_.pT(function(){var A=G();
A=A.captionsAvailable?A.captionsEnabled:void 0;return A},void 0,"fhuQRe");
return _.r("yt-closed-captions-toggle-button",null,_.r(J1u,{captionIconType:m,ariaLabel:W,ariaPressed:L,onClick:function(A){var O=G();if(O.captionsAvailable){var c=O.playerApi;if(c){var u=O.playerApi;if(u){var h=Ak;if(h){u=u.getOption("captions","track");var J;Ak=(J=u?u.displayName:null)!=null?J:h}else IQ6(u)?(h=_.IKG(u),Ak=h.length?(J=kzD(h))?J.displayName:h[0].displayName:""):Ak=""}Cdi(c);_.F("mweb_disable_set_state_captions_killswitch")&&O.setState({captionsEnabled:!O.captionsEnabled})}}var N,
D;(D=(N=O.appApi).showCaptionsToggleToast)==null||D.call(N,O);K==null||K(A)},
isOverlay:!0}))},"Zi");var DX5=_.P(function(m){var G=m.data;return _.r("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.r(_.pk,{data:function(){return{type:17,text:_.eyf(G().label)}}}))},"$i");var tcD=_.P(function(m){var G=_.VO("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return m.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return m.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return m.size()==="small"?m.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
m.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.r("animated-seek-arrows",{class:_.VO("ytPlayerControlsAnimatedSeekArrowsHost")},_.r("span",{class:G}),_.r("span",{class:G}),_.r("span",{class:G}))},"aj");
tcD.idomCompat=!0;var FcG=_.P(function(){var m=_.zq("PLAYER_SECONDS",{seconds_placeholder:"30"}),G=_.g(_.g_(!1,void 0,"iRJu8c")),K=G.next().value,W=G.next().value,L=_.g(_.g_(!1,void 0,"MPnizf"));G=L.next().value;var A=L.next().value;L={};var O=_.VO("jumpForwardOverlayOverlay",(L.jumpForwardOverlayOverlayHidden=G,L));_.bX(function(){var c=null,u=null,h=function(){c!==null&&_.AA().cancelJob(c);u!==null&&_.AA().cancelJob(u);A(!0);W(!0);_.jA(_.AA(),function(){A(!1)});
c=_.jA(_.AA(),function(){A(!0);u=_.jA(_.AA(),function(){W(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",h);_.sZ(function(){window.removeEventListener("jump-forward-clicked",h)})});
return _.r("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.r(_.p,{cond:K,then:function(){return _.r("div",{class:O},_.r(tcD,{direction:1,size:"large"}),_.r("div",null,m))}}))},"bj");var QpW=I8.MUTE_VOLUME,aYq=I8.UNMUTE_VOLUME,oQ5=_.P(function(m){var G=m.muteIconType;var K=m.onClick;var W=m.useOutlineIcon;var L=m.useDelhiIcons;m=_.Q3("button",function(c){wf(c,28662)});
var A=function(){var c=G(),u=W==null?void 0:W(),h=L==null?void 0:L(),J="",N="";switch(c){case -1:case 0:J=u?"VOLUME_OFF":h?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";N=aYq;break;case 1:J=u?"VOLUME_UP_OUTLINE":h?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";N=QpW;break;case 2:J=u?"VOLUME_DOWN_OUTLINE":h?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";N=QpW;break;default:_.GG(c)}return{iconName:J,ariaLabel:N}},O=function(){return A().ariaLabel};
return _.r("ytm-mute-button",{class:"ytmMuteButtonHost"},_.r("button",{el:m,class:"ytmMuteButtonButton",title:O,"aria-label":O,"on:click":_.dn(function(c){gf(28662);K==null||K(c);return!1})},_.r("span",null,_.r(_.fN,{icon:function(){return A().iconName}}))))},"cj");var nQO=_.P(function(m){var G=m.volumeProps;var K=m.onClickFn;var W=m.useOutlineIcon;var L=m.useDelhiIcons;return _.r("yt-mute-toggle-button",null,_.r(oQ5,{muteIconType:function(){var A=G();return A.volumeMuted||A.volume===0?0:A.volume>50?1:2},
onClick:function(A){var O=G().playerApi;O&&(O.isMuted()?O.unMute():O.mute(!1));K==null||K(A)},
useOutlineIcon:function(){return!(W==null||!W())},
useDelhiIcons:function(){return!(L==null||!L())}}))},"dj");
nQO.idomCompat=!0;var bxD=_.P(function(m){var G=m.data;var K=_.Q3("ytm-paid-content-overlay-renderer");return _.r("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:K,"on:animationend":_.dn(function(){K.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.r(_.qm,{command:function(){return G().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.r(_.p,{cond:function(){var W;return(W=G().icon)==null?void 0:W.iconType},
then:function(){return _.r("span",null,_.r(_.fN,{icon:function(){var W;return(W=G().icon)==null?void 0:W.iconType}}))}}),_.r("div",{class:"ytmPaidContentOverlayText"},_.r(_.Nm,{text:function(){return G().text}})),_.r(_.p,{cond:function(){return G().navigationEndpoint},
then:function(){return _.r(_.fN,{icon:"CHEVRON_RIGHT"})}})))},"ej");
bxD.idomCompat=!0;var O$6=[].concat(_.Bz([{register:function(m){var G=KFz(m),K;(K=m().playerApi)==null||K.addEventListener("onVolumeChange",G);return function(){}}},
{register:function(m){var G=WFD(m);m=m().playerApi;m==null||m.addEventListener("captionschanged",G);m==null||m.addEventListener("captionssettingschanged",G);m==null||m.addEventListener("onCaptionsTrackListChanged",G);return function(){}}}]),[{register:function(m){var G=TH6(m),K;
(K=m().playerApi)==null||K.addEventListener("onStateChange",G);return function(){}}},
{register:function(m){var G=maW(m),K;(K=m().playerApi)==null||K.addEventListener("onPlaybackRateChange",G);return function(){}}},
{register:function(m){var G=imz(m),K;(K=m().playerApi)==null||K.addEventListener("onVideoDataChange",G);return function(){}}},
{register:function(m){var G=GnO(m),K,W;(K=m())==null||(W=K.playerApi)==null||W.addEventListener("onVideoProgress",G);return function(){}}}]);var vQs=_.P(function(m){var G=m.data;var K=function(){return _.zq("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+G().playbackRate})};
return _.r(_.p,{cond:function(){return G().playbackRate&&G().playbackRate!==1},
then:function(){return _.r("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.r("div",{class:"ytPlaybackRateOverlayOverlay"},_.r(tcD,{direction:1,size:"small"}),_.r("div",{class:"ytPlaybackRateOverlayLabel"},K)))}})},"gj");var $X6=_.P(function(m){var G=m.data;return _.r("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.r(_.p,{cond:function(){var K,W=(K=G())==null?void 0:K.playerResponse,L;return W==null?void 0:(L=W.paidContentOverlay)==null?void 0:L.paidContentOverlayRenderer},
then:function(K){return _.r(bxD,{data:K})}}))},"ij"),spW=_.P(function(m){var G=m.props;
var K=m.data;var W=m.options;var L=function(){var h,J,N,D;return(h=K())==null?void 0:(J=h.playerResponse)==null?void 0:(N=J.playerConfig)==null?void 0:(D=N.inlinePlaybackConfig)==null?void 0:D.showAudioControls},A=function(){var h,J;
if(L()&&((h=W())==null?void 0:(J=h.additionalButton)==null?void 0:J.button)!==void 0){var N,D,t;h=(N=K())==null?void 0:(D=N.playerApi)==null?void 0:(t=D.getSize())==null?void 0:t.height;if(!(h===void 0||h<180)){var a,v;return(a=W())==null?void 0:(v=a.additionalButton)==null?void 0:v.button}}},O=function(){var h,J;
return(h=W())==null?void 0:(J=h.additionalButton)==null?void 0:J.thumbnailOverlayButtonRenderers},c=function(){var h,J;
return(h=W())==null?void 0:(J=h.additionalButton)==null?void 0:J.thumbnailOverlayButtonViewModels},u=function(){var h=[_.r(nQO,{volumeProps:G})],J;
((J=W())==null?0:J.hideCaptionsToggleButton)||h.push(_.r(N7D,{playerControlsProps:G}));A()===1&&h.push(_.r(Y_z,{playerApi:function(){return G().playerApi}}));
A()===2&&h.push(_.r(r1z,{appApi:function(){return G().appApi}}));
A()===3&&h.push(_.r(uzq,{playerApi:function(){return G().playerApi}}));
J=O();if(A()===4&&J){J=_.g(J);for(var N=J.next(),D={};!N.done;D={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$54:void 0,command$jscomp$631:void 0},N=J.next()){N=N.value;D.tooltip$jscomp$3=N.tooltip;var t=void 0,a=void 0;D.ariaLabel$jscomp$20=((t=N.accessibility)==null?void 0:(a=t.accessibilityData)==null?void 0:a.label)||D.tooltip$jscomp$3;t=void 0;D.icon$jscomp$54=(t=N.icon)==null?void 0:t.iconType;D.command$jscomp$631=N.command;D.tooltip$jscomp$3&&D.ariaLabel$jscomp$20&&D.icon$jscomp$54&&
h.push(_.r(hfs,{title:function(v){return function(){return v.tooltip$jscomp$3}}(D),
ariaLabel:function(v){return function(){return v.ariaLabel$jscomp$20}}(D),
icon:function(v){return function(){return v.icon$jscomp$54}}(D),
command:function(v){return function(){return v.command$jscomp$631}}(D)}))}}J=c();
if(A()===4&&J)for(J=_.g(J),N=J.next(),D={};!N.done;D={tooltip$jscomp$4:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$632:void 0,trackingParamsVeType:void 0},N=J.next())N=N.value,D.tooltip$jscomp$4=N.title,D.ariaLabel$jscomp$21=N.accessibilityText||D.tooltip$jscomp$4,D.icon$jscomp$55=N.iconName,D.command$jscomp$632=_.c8(N.onTap),a=t=void 0,D.trackingParamsVeType=((t=N.loggingDirectives)==null?0:t.trackingParams)?(a=CPO(_.T9(N.loggingDirectives.trackingParams)))==null?void 0:
_.Z5(a,2):void 0,D.tooltip$jscomp$4&&D.ariaLabel$jscomp$21&&D.icon$jscomp$55&&h.push(_.r(hfs,{title:function(v){return function(){return v.tooltip$jscomp$4}}(D),
ariaLabel:function(v){return function(){return v.ariaLabel$jscomp$21}}(D),
icon:function(v){return function(){return v.icon$jscomp$55}}(D),
command:function(v){return function(){return v.command$jscomp$632}}(D),
visualElementId:function(v){return function(){return v.trackingParamsVeType}}(D)}));
return h};
return _.r(_.p,{cond:L,then:function(){return _.r("div",{class:"ytInlinePlayerControlsTopRightControls"},_.r(_.D0,{each:u},function(h){return _.r("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.r("div",{class:"ytInlinePlayerControlsButtonIcon"},h))}))}})},"jj"),Hxz=_.P(function(m){var G=m.props;
var K=m.data;var W=m.options;m={};m=_.VO("ytInlinePlayerControlsBottomRightControls",(m.ytInlinePlayerControlsBottomRightControlsHidden=function(){var L;return AXq(K(),W())&&((L=W())==null?void 0:L.insetProgressBar)&&(G().isHovering||G().isDragging)},m));
return _.r("div",{class:m},_.r(q_5,{data:K}),_.r(_.p,{cond:function(){var L;return!((L=W())==null?0:L.hideTimeDisplay)},
then:function(){return _.r(EQ6,{props:G,data:K})}}))},"kj"),q_5=_.P(function(m){var G=m.data;
return _.r(_.z$,{data:function(){var K;return Sni((K=G())==null?void 0:K.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:DX5})},"lj"),EQ6=_.P(function(m){var G=m.props;
var K=m.data;return _.r(_.p,{cond:function(){return G().isLive},
then:function(){return _.r(IYD,{props:G,data:K})},
else:function(){return _.r(jpD,{props:G,data:K})}})},"mj"),jpD=_.P(function(m){var G=m.props;
var K=m.data;var W=_.pT(function(){var L;return Rxi((L=K())==null?void 0:L.thumbnailOverlays)},void 0,"Pf9uIe");
return _.r("div",{class:_.VO("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return I8.PLAYER_TIME_ELAPSED+" "+_.G9o(G().playedTime)}},_.r(_.pk,{data:function(){var L=_.G9o(G().videoDuration-G().playedTime);
return Object.assign({},{type:17,text:L},W())}}))},"nj"),kZi=_.P(function(m){m=m.badgeShapeData;
return _.r("div",{class:_.VO("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.r(_.pk,{data:m}))},"oj"),IYD=_.P(function(m){var G=m.data;
m=_.pT(function(){if(_.F("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var W,L=_.g(((W=G())==null?void 0:W.thumbnailOverlays)||[]);for(W=L.next();!W.done;W=L.next()){W=W.value;if(W.thumbnailOverlayTimeStatusRenderer||W.thumbnailOverlayBadgeViewModel)return W;var A=void 0;if((A=W.thumbnailBottomOverlayViewModel)==null?0:A.badges)if(W=W.thumbnailBottomOverlayViewModel.badges.find(function(O){return _.Q(O,xBE)}))return W}}},void 0,"GPGpgc");
var K=_.pT(function(){var W,L,A,O,c,u;return _.zQv((W=G())==null?void 0:(L=W.playerApi)==null?void 0:(A=L.getSize())==null?void 0:A.width,(O=G())==null?void 0:(c=O.playerApi)==null?void 0:(u=c.getSize())==null?void 0:u.height)},void 0,"OeIVKe");
return _.r(_.p,{cond:m,then:function(W){return _.r(_.z$,{data:W},{thumbnailOverlayTimeStatusRenderer:function(L){var A=L.data;L=_.pT(function(){return _.ZFs(A(),0)},void 0,"skoDC");
return _.r(kZi,{badgeShapeData:L})},
thumbnailBadgeViewModel:function(L){return _.r(_.fuk,{data:L.data,class:_.VO("ytInlinePlayerControlsLiveBadge","ytInlinePlayerControlsLiveBadgeDisplay")})},
thumbnailOverlayBadgeViewModel:function(L){return _.r(_.z1l,{data:L.data,thumbnailSize:K})}})},
else:function(){var W={type:18,text:I8.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.r(kZi,{badgeShapeData:function(){return W}})}})},"pj"),CTO=_.P(function(m){var G=m.props;
var K=m.data;var W=m.options;return _.r(_.VrD,{progressBarProps:G,config:function(){var L,A=_.Q((L=K())==null?void 0:L.multiMarkersPlayerBar,_.Ar4),O;L=((O=W())==null?0:O.insetProgressBar)?2:1;var c;O=(c=W())==null?void 0:c.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:L,chapterData:A,isInlinePlayback:!0,doSeekOnClick:O,playheadDotBehavior:O?1:0}}})},"qj");_.sh(_.P(function(m){var G=m.data;var K=m.appApi;var W=m.options;var L=MFq(G,LF6(K));m={};K={};return _.r("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.r("div",{class:_.VO("ytInlinePlayerControlsDarkenedOverlay",(m.ytInlinePlayerControlsDarkenedOverlayShow=function(){return L().isHovering},m))}),_.r(FcG,null),_.r(vQs,{data:L}),_.r($X6,{data:G}),_.r(c1s,{playerControlsProps:L,
isShortsPage:!1}),_.r("div",{class:_.VO((K.ytInlinePlayerControlsControlsHidden=function(){return L().isDragging},K))},_.r(spW,{props:L,
data:G,options:W}),_.r(Hxz,{props:L,data:G,options:W})),_.r(_.p,{cond:function(){return AXq(G(),W())},
then:function(){return _.r(CTO,{props:L,data:G,options:W})}}))},"hj"),"yt-inline-player-controls",{props:{data:_.Dd,
appApi:_.nN,options:_.Dd}});var jV=function(){var m=_.d.apply(this,arguments)||this;m.opts=null;m.playerControlsData=null;m.playerControlsAppApi={openInMiniplayer:function(){m.openInMiniplayer()}};
m.playerControlsOptions={};m.noAnimation=!1;m.playbackIntentTriggered=!1;m.positionData=null;m.hidden=!0;m.active=!1;m.playing=!1;m.persistentPanelVisible=!1;m.videoPreviewDataIndex=0;m.JSC$21016_playerPromise=null;m.player=null;m.enableAudioControls=!1;m.hasBeenUnmuted=!1;m.captionsHaveBeenTurnedOff=!1;m.JSC$21016_playerEvents=new Map;m.videoPreviewFetchRequest=null;m.scheduledPreviewEndJobId=null;m.JSC$21016_preventProgressSaveTimer=null;m.watchEndpointStartTimeUpdaterInterval=null;m.actionMap=
{"yt-open-video-preview-action":"handleOpenVideoPreviewAction","yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};m.windowOnBlurFn=function(){m.deactivate()};
return m};
_.n(jV,_.d);_.w=jV.prototype;
_.w.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.w.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$21016_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$21016_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$21016_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$21016_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.xC(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.xC(this,this.onScroll))};
_.w.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.xC(this,this.onScroll))};
_.w.onPageTypeChange=function(){this.deactivate()};
_.w.onWindowResized=function(){this.deactivate()};
_.w.onPersistentPanelVisibleChange=function(){this.deactivate()};
_.w.onCaptionsChanged=function(m){m=!!m.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!m);this.setCaptionSize()};
_.w.setCaptionSize=function(){var m;if(this.active&&!this.captionsHaveBeenTurnedOff&&((m=this.player)==null?0:m.getCaptionWindowContainerId())){var G;(G=this.player)==null||G.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.w.currentPageAllowed=function(){return!this.isWatchPage};
_.w.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.F("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var m=this.positionData,G=m.initialTopPosition,K=m.initialHorizontalPosition;_.eb(this.hostElement,{"--ytd-video-preview-translate-left":m.finalHorizontalPosition-K+"px","--ytd-video-preview-translate-top":m.finalTopPosition-G+"px","--ytd-video-preview-original-top-position":G+
"px","--ytd-video-preview-original-horizontal-position":K+"px","--ytd-video-preview-initial-scale":"scale("+m.initialScale+")","--ytd-video-preview-width":m.videoPreviewWidth+"px","--ytd-video-preview-height":m.videoPreviewHeight+"px"});return!0};
_.w.isOutOfBounds=function(m){var G=m.initialHorizontalPosition+12;m=G+m.videoPreviewWidth>window.innerWidth;return G<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&G<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&G<72||m};
_.w.handleOpenVideoPreviewAction=function(m){var G=this,K;return _.Y(function(W){if(!G.currentPageAllowed())return W.return(0);G.opts=m;return(K=G.alignVideoPreviewForAnimation(m.thumbnail))?W.return(G.activate()):W.return(0)})};
_.w.onMouseLeave=function(m){var G,K;(G=this.opts)==null||(K=G.mouseleaveCallback)==null||K.call(G);this.shouldDeactivateOnMouseLeave(m)&&this.deactivate()};
_.w.onScroll=function(){var m,G;((m=this.opts)==null?0:m.isAutoplay)&&((G=this.opts)==null?0:G.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.w.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Fu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.w.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.w.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",jV.JSC$21015_DEFAULT_CLICK_LOCATION_BEHAVIOR,jV.JSC$21015_CLICK_LOCATION_ID_MAP)};
_.w.shouldDeactivateOnMouseLeave=function(m){m=m.relatedTarget;if(!m)return!0;var G;return(G=this.opts)!=null&&G.mediaRenderer?!_.Z7(this.opts.mediaRenderer).contains(m):!0};
_.w.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.w.onPlaybackStart=function(){var m=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$21016_preventProgressSaveTimer=
_.jA(_.Fu,function(){m.resetPreventProgressSaveTimer()},1E4);
var G;if((G=this.opts)==null?0:G.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.jA(_.Fu,function(){m.hasMultipleVideoPreviews()?m.startPlaybackForNextVideo():m.deactivate()},this.opts.videoPreviewDurationMs);
var K;this.player.setGlobalCrop(((K=this.opts)==null?0:K.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.w.getRoundedCornersSize=function(){var m;if((m=this.opts)==null?0:m.roundedCornersSize){var G;return(G=this.opts)==null?void 0:G.roundedCornersSize}var K;if((K=this.opts)==null?0:K.enableRounding){var W;if(((W=this.opts)==null?void 0:W.thumbnailSize)==="small")return 1;var L;if(((L=this.opts)==null?void 0:L.thumbnailSize)==="medium")return 2;var A;if(((A=this.opts)==null?void 0:A.thumbnailSize)==="large")return 3}return _.F("web_imp_inset_progress_bar")?3:0};
_.w.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.w.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.w.onMediaContainerClick=function(m){this.isShortcutClick(m)||(this.navigateToWatch(m),m.preventDefault(),m.stopPropagation())};
_.w.activate=function(){var m=this,G,K,W,L,A,O,c,u,h;return _.Y(function(J){switch(J.nextAddress){case 1:if(!m.currentPageAllowed())return J.return(0);K=(G=m.videoPreviewData)==null?void 0:G.inlinePlaybackEndpoint;W=_.NW.instance;if(!K||!W)return J.return(0);m.playbackIntentTriggered=!0;((L=m.opts)==null?0:L.mediaRenderer)&&((A=m.opts)==null||!A.isAutoplay)&&exq(m.opts.mediaRenderer,function(){m.deactivate()});
_.Pv(m,function(){m.revealPreviewUi()});
O={};_.F("enable_unknown_lact_fix_on_html5")&&(_.xS().resolve(_.zk),O.lact=_.Xu());m.videoPreviewFetchRequest=k_D(W,m.getInlinePlaybackRequestData(m.videoPreviewData),O);_.IO(J,2);return J.yield(m.videoPreviewFetchRequest,4);case 4:c=J.yieldResult;if(((u=c)==null?void 0:(h=u.playabilityStatus)==null?void 0:h.status)==="OK")return J.return(m.handlePlayerResponse(c));throw Error("Ql");case 2:_.ye(J),m.deactivate();case 3:return J.return(1)}})};
_.w.getInlinePlaybackRequestData=function(m){var G,K=_.F("web_imp_player_mute_params")?((G=this.opts)==null?void 0:G.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:m.inlinePlaybackEndpoint,startPlaybackInMutedState:K}};
_.w.handlePlayerResponse=function(m){var G=this,K,W,L,A,O,c,u,h,J,N,D,t,a,v;return _.Y(function(I){if(I.nextAddress==1){K=G.getInlinePlaybackVideoId();if(!(((W=m)==null?0:(L=W.videoDetails)==null?0:L.videoId)&&G.currentPageAllowed()&&G.playbackIntentTriggered&&G.opts&&K))return G.deactivate(),I.return(0);if(m.videoDetails.videoId!==K)return I.return(0);G.enableAudioControls=!!((A=m.playerConfig)==null?0:(O=A.inlinePlaybackConfig)==null?0:O.showAudioControls);m.trackingParams=G.getInlinePlaybackTrackingParams();
if(!G.inlinePlayer)return I.return(0);c={};if(h=_.Q((u=G.videoPreviewData)==null?void 0:u.inlinePlaybackEndpoint,_.QQ))c.watch_endpoint=h;if(G.videoPreviewData){var Z,k=(Z=_.Q(G.videoPreviewData.inlinePlaybackEndpoint,_.QQ))==null?void 0:Z.startTimeSeconds;k!==void 0&&(m.playerConfig||(m.playerConfig={}),m.playerConfig.playbackStartConfig||(m.playerConfig.playbackStartConfig={}),m.playerConfig.playbackStartConfig.startPosition||(m.playerConfig.playbackStartConfig.startPosition={}),m.playerConfig.playbackStartConfig.startSeconds=
k,m.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(k*1E3))}G.inlinePlayer.loadVideoWithPlayerResponse(m,c);if(G.JSC$21016_playerPromise)return I.jumpTo(2);G.JSC$21016_playerPromise=G.inlinePlayer.getPlayerPromise();return I.yield(G.JSC$21016_playerPromise,3)}I.nextAddress!=2&&(J=I.yieldResult,J.setInlinePreview(!0),N=!_.F("web_imp_theater_bugfix"),J.setSizeStyle(!1,N),G.ytPlayerListenerBehavior.listenToPlayerEvents(J,G.JSC$21016_playerEvents),G.player=J,_.Zw(G.hostElement,
"player-api-ready"));((D=G.opts)==null?0:D.showPlayerControls)&&G.videoPreviewData&&G.player&&(G.playerControlsData={playerResponse:m,isInlinePlayback:!0,thumbnailOverlays:G.videoPreviewData.thumbnailOverlays,playerApi:G.player},G.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!G.unroundCornersForPlayback,additionalButton:G.getAdditionalButtonType(G.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(t=G.opts)==null?void 0:t.hideTimeDisplay,hideScrubbingControls:(a=G.opts)==
null?void 0:a.hideScrubber,hideCaptionsToggleButton:(v=G.opts)==null?void 0:v.hideCaptionsToggleButton});return I.return(2)})};
_.w.revealPreviewUi=function(){var m=this;this.playbackIntentTriggered&&_.CA9(this,function(){m.hasThumbnailPositionChangedSinceTriggered()||(m.updateActiveState(!0),m.noAnimation=!1)})};
_.w.hasThumbnailPositionChangedSinceTriggered=function(){var m=this.positionData,G=this.getThumbnailPositionData();return(m==null?void 0:m.initialTopPosition)!==(G==null?void 0:G.initialTopPosition)||(m==null?void 0:m.initialHorizontalPosition)!==(G==null?void 0:G.initialHorizontalPosition)};
_.w.getThumbnailPositionData=function(){var m,G;if((G=this.opts)==null||!G.thumbnail)return null;G=this.opts.thumbnail;var K=((m=this.opts)==null?0:m.cropPlayerToFillThumbnailHorizontally)?!1:!0;var W=G.getBoundingClientRect();m=W.width;G=W.height;var L=W.top+window.scrollY;W=W.left+window.scrollX;var A=K?Math.ceil(m):m;K=K?Math.ceil(G):G;var O=m/A;m={initialScale:O,initialTopPosition:L-12*O,finalTopPosition:L-12-(K-G)/2,initialHorizontalPosition:W-(12+(A-m)/2),finalHorizontalPosition:W-12-(A-m)/
2,videoPreviewWidth:A,videoPreviewHeight:K};return m};
_.w.updateActiveState=function(m){this.active=m;this.ytdReduxBehavior.dispatch(_.kt({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:m}))};
_.w.stopPlayer=function(m){m=m.resetWatchEndpointStartTime===void 0?!1:m.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(m)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Fu.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.w.deactivate=function(m){m=m===void 0?{}:m;m=m.resetWatchEndpointStartTime===void 0?!1:m.resetWatchEndpointStartTime;ZQP&&(ZQP.disconnect(),ZQP=null);this.stopPlayer({resetWatchEndpointStartTime:m});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.w.isValidThumbnailOverlayButton=function(m,G){m=m.thumbnailOverlayButtonRenderer;var K;return!!m&&!!m.tooltip&&!((K=m.icon)==null||!K.iconType)&&G.includes(m.icon.iconType)};
_.w.isValidThumbnailOverlayButtonViewModel=function(m,G){var K;m=_.Q((K=m.thumbnailOverlayButtonViewModel)==null?void 0:K.overlayButton,_.J6);return!!m&&!!m.title&&!!m.iconName&&G.includes(m.iconName)};
_.w.getAdditionalButtonType=function(m){var G=this;if(_.F("web_imp_fastforward_button"))return{button:1};if(_.F("web_imp_miniplayer_button"))return{button:2};if(_.F("web_imp_playback_speed_button"))return{button:3};var K=["BOX_STACK_3"],W=(m||[]).filter(function(A){return G.isValidThumbnailOverlayButton(A,K)}).map(function(A){return A.thumbnailOverlayButtonRenderer});
if(W.length)return{button:4,thumbnailOverlayButtonRenderers:W};var L=["BOX_STACK_3"];m=(m||[]).filter(function(A){return G.isValidThumbnailOverlayButtonViewModel(A,L)}).map(function(A){return _.Q(A.thumbnailOverlayButtonViewModel.overlayButton,_.J6)});
if(m.length)return{button:4,thumbnailOverlayButtonViewModels:m}};
_.w.allowCaptions=function(){var m;return!((m=this.opts)==null?0:m.forceCaptionsOff)};
_.w.allowUnmuting=function(){var m;return this.enableAudioControls&&!((m=this.opts)==null?0:m.forceMutedVolume)};
_.w.beginStartTimeUpdater=function(){var m=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Tf(function(){m.updateWatchEndpointStartTime()},1E3)};
_.w.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.w.resetPreventProgressSaveTimer=function(){this.JSC$21016_preventProgressSaveTimer!==null&&(_.Fu.cancelJob(this.JSC$21016_preventProgressSaveTimer),this.JSC$21016_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.w.updateWatchEndpointStartTime=function(m){var G=this.videoPreviewData;if(this.player&&G!=null&&G.inlinePlaybackEndpoint&&!this.JSC$21016_preventProgressSaveTimer){m=m?0:Math.floor(this.player.getCurrentTime());var K=_.Q(G.navigationEndpoint,_.QQ);K&&(K.startTimeSeconds=m);if(G=_.Q(G.inlinePlaybackEndpoint,_.QQ))G.startTimeSeconds=m}};
_.w.isShortcutClick=function(m){return!!m&&(m.ctrlKey||m.shiftKey||m.metaKey)};
_.w.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.w.openInMiniplayer=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1){K=(G=m.videoPreviewData)==null?void 0:G.navigationEndpoint;if(!K)return W.return();_.U7().lockupActivation=!0;return W.yield(_.F6R(_.xS().resolve(_.pY),K),2)}_.U7().userActivation=!0;_.ey(W)})};
_.w.navigateToWatch=function(m){var G,K=(G=this.videoPreviewData)==null?void 0:G.navigationEndpoint;if(K){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(K,m,!0);else{var W;_.F("web_thumbnail_to_watch_transition")&&((W=this.opts)==null?0:W.thumbnail)&&_.Nml(_.xS().resolve(_.TE),this.opts.thumbnail);_.Zw(this.hostElement,"yt-navigate",{endpoint:K})}this.deactivate()}};
_.w.getInlinePlaybackVideoId=function(){var m,G;return(G=_.Q((m=this.videoPreviewData)==null?void 0:m.inlinePlaybackEndpoint,_.QQ))==null?void 0:G.videoId};
_.w.getInlinePlaybackTrackingParams=function(){var m,G;return(m=this.videoPreviewData)==null?void 0:(G=m.inlinePlaybackEndpoint)==null?void 0:G.clickTrackingParams};
_.w.hasMultipleVideoPreviews=function(){var m;return!!(((m=this.opts)==null?0:m.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.w.startPlaybackForNextVideo=function(){var m;(m=this.opts)!=null&&m.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())};
_.e_.Object.defineProperties(jV.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.opts)==null?0:m.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.opts)==null||!m.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 m;if(Array.isArray((m=this.opts)==null?void 0:m.videoPreviewData)){var G;return(G=this.opts)==null?void 0:G.videoPreviewData[this.videoPreviewDataIndex]}var K;return(K=this.opts)==null?void 0:K.videoPreviewData}}});
jV.prototype.onIsAdsVideoChange=jV.prototype.onIsAdsVideoChange;jV.prototype.onInlinePreviewIsEnabledChange=jV.prototype.onInlinePreviewIsEnabledChange;jV.prototype.optsChanged=jV.prototype.optsChanged;jV.prototype.onMouseLeave=jV.prototype.onMouseLeave;jV.prototype.onPersistentPanelVisibleChange=jV.prototype.onPersistentPanelVisibleChange;jV.JSC$21015_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);
jV.JSC$21015_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"}];_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],jV.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],jV.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],jV.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],jV.prototype,"componentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],jV.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.qS.YtSparklesClickLocationBehavior),_.S("design:type",Object)],jV.prototype,"ytSparklesClickLocationBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jV.prototype,"opts",void 0);_.x([_.V(),_.S("design:type",Object)],jV.prototype,"playerControlsData",void 0);_.x([_.V(),_.S("design:type",Object)],jV.prototype,"playerControlsAppApi",void 0);
_.x([_.V(),_.S("design:type",Object)],jV.prototype,"playerControlsOptions",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jV.prototype,"noAnimation",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jV.prototype,"hidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jV.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],jV.prototype,"playing",void 0);
_.x([_.V({selector:_.Quf}),_.S("design:type",Boolean)],jV.prototype,"inlinePreviewIsEnabled",void 0);_.x([_.V(),_.S("design:type",String)],jV.prototype,"pagePath",void 0);_.x([_.V({selector:_.DSd}),_.S("design:type",Boolean)],jV.prototype,"isWatchPage",void 0);_.x([_.V({selector:_.DE.persistentPanelVisibleSelector}),_.S("design:type",Object)],jV.prototype,"persistentPanelVisible",void 0);
_.x([_.E("videoPreviewData"),_.S("design:type",Object),_.S("design:paramtypes",[])],jV.prototype,"thumbnailData",null);_.x([_.E("opts","active"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"hidePlayerControls",null);_.x([_.E("opts"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"isAdsVideo",null);
_.x([_.E("opts"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"roundedCornersSmall",null);_.x([_.E("opts"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"roundedCornersMedium",null);_.x([_.E("opts"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"roundedCornersLarge",null);
_.x([_.E("opts"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jV.prototype,"unroundCornersForPlayback",null);_.x([_.E("opts","videoPreviewDataIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],jV.prototype,"videoPreviewData",null);_.x([_.V(),_.S("design:type",Object)],jV.prototype,"videoPreviewDataIndex",void 0);_.x([_.UM("#inline-player"),_.S("design:type",Object)],jV.prototype,"inlinePlayer",void 0);
_.x([_.Sb("persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jV.prototype,"onPersistentPanelVisibleChange",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],jV.prototype,"onMouseLeave",null);_.x([_.Mg("opts"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jV.prototype,"optsChanged",null);
_.x([_.Mg("inlinePreviewIsEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jV.prototype,"onInlinePreviewIsEnabledChange",null);_.x([_.Sb("isAdsVideo"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jV.prototype,"onIsAdsVideoChange",null);_.x([_.Ye({is:"ytd-video-preview",disableElementRegistration:!0})],jV);
_.y(jV,"ytd-video-preview",function(){if(OxG!==void 0)return OxG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return OxG=m},{mode:2});var Vc6;var k0=function(){var m=_.d.apply(this,arguments)||this;m.dismissButtonOverrides={iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"};m.forceDarkTheme=!1;m.forceLightTheme=!1;m.dynamicTextHeight=94;m.hasOverflowButton=!1;m.isInfeedModernization=!1;return m};
_.n(k0,_.d);_.w=k0.prototype;_.w.computeUrlImg=function(m){if(m)return _.Eh(m.thumbnails)};
_.w.getLogoHeight=function(m){return this.logoWithPadding(m)?"31":"24"};
_.w.getLogoClassName=function(m){return this.logoWithPadding(m)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.w.logoWithPadding=function(m){var G,K;return(m=(G=m.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&m%31===0?!0:!1};
_.w.sendImpressionEndpoints=function(m){m.impressionEndpoints&&_.yQ(this.hostElement,m.impressionEndpoints)};
_.w.observeBasicPalette=function(){var m,G,K=(m=this.data)==null?void 0:(G=m.colorData)==null?void 0:G.basicColorPaletteData;K?_.mr(this.hostElement,K):_.mr(this.hostElement,{})};
_.w.observeDataChanged=function(){var m;this.dynamicTextHeight=((m=this.data)==null?0:m.supplementalText)?74:94;var G;this.hasSupplementalText=!((G=this.data)==null||!G.supplementalText);var K,W,L,A;m=(K=this.data)==null?void 0:(W=K.actionButton)==null?void 0:(L=W.buttonRenderer)==null?void 0:(A=L.colorData)==null?void 0:A.basicColorPaletteData;var O,c,u;if(!((O=this.data)==null?0:(c=O.actionButton)==null?0:(u=c.buttonRenderer)==null?0:u.style)&&m){this.computeIsInfeedModernization(this.data)||(m.borderColor=
m.foregroundTitleColor);var h,J;this.set("data.actionButton.buttonRenderer",_.Y2.unsafeClone((h=this.data)==null?void 0:(J=h.actionButton)==null?void 0:J.buttonRenderer))}};
_.w.observeDataForCounterfactual=function(){if(_.F("kevlar_banner_cf_extra_logging")){var m;((m=this.data)==null?0:m.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.w.computeSupplementalStyle=function(){var m;if((m=this.data)!=null&&m.supplementalText){var G,K,W;if((G=this.data)==null?0:(K=G.colorData)==null?0:(W=K.basicColorPaletteData)==null?0:W.foregroundActivatedColor)return m=_.OM(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+m+"; --yt-endpoint-hover-color:"+m+"; --yt-endpoint-visited-color:"+m+"; --yt-formatted-string-bold-font-weight:700;"}};
_.w.computeForcedDarkTheme=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.actionButton)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.style,L,A,O;m=YB6(((L=this.data)==null?void 0:(A=L.colorData)==null?void 0:(O=A.basicColorPaletteData)==null?void 0:O.backgroundColor)||0);return W&&m};
_.w.computeForcedLightTheme=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.actionButton)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.style,L,A,O;m=!YB6(((L=this.data)==null?void 0:(A=L.colorData)==null?void 0:(O=A.basicColorPaletteData)==null?void 0:O.backgroundColor)||0);return W&&m};
_.w.computeHasOverflowButton=function(m){return!!m.overflowButton};
_.w.computeHasTitle=function(m){return!!m.title};
_.w.computeTitleMaxFontSize=function(m){return this.computeHasOverflowButton(m)?28:64};
_.w.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.w.computeIsInfeedModernization=function(){var m,G,K,W,L=(m=this.data)==null?void 0:(G=m.actionButton)==null?void 0:(K=G.buttonRenderer)==null?void 0:(W=K.colorData)==null?void 0:W.basicColorPaletteData;return(L==null?void 0:L.backgroundColor)===452984831||(L==null?void 0:L.backgroundColor)===218103808};
k0.prototype.observeDataForCounterfactual=k0.prototype.observeDataForCounterfactual;k0.prototype.observeDataChanged=k0.prototype.observeDataChanged;k0.prototype.observeBasicPalette=k0.prototype.observeBasicPalette;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],k0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],k0.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],k0.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],k0.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],k0.prototype,"hasSupplementalText",void 0);_.x([_.V(),_.S("design:type",Object)],k0.prototype,"dismissButtonOverrides",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.S("design:type",Boolean)],k0.prototype,"hasTitle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.S("design:type",Object)],k0.prototype,"forceDarkTheme",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.S("design:type",Object)],k0.prototype,"forceLightTheme",void 0);_.x([_.V(),_.S("design:type",Object)],k0.prototype,"dynamicTextHeight",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.S("design:type",Object)],k0.prototype,"hasOverflowButton",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.S("design:type",Object)],k0.prototype,"isInfeedModernization",void 0);_.x([_.Sb("data.colorData.basicColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k0.prototype,"observeBasicPalette",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k0.prototype,"observeDataChanged",null);_.x([_.Sb("data.isVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],k0.prototype,"observeDataForCounterfactual",null);_.x([_.Ye({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],k0);
_.y(k0,"ytd-banner-promo-renderer",function(){if(Vc6!==void 0)return Vc6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Vc6=m},{mode:1});var y1E=_.P(function(m){var G=m.data;var K=m.hideDivider;var W=m.isChannelInfoCard;m={};return _.r("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.r("div",{class:_.VO("yt-profile-identity-info-view-model__frame",(m["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!G().channelBanner},m))},_.r(Zxi,{profileIdentityInfoData:G}),_.r("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.r("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9})),_.r(dX6,{profileIdentityInfoData:G})),_.r(_.p,{cond:function(){return G().channelDescription},
then:function(L){var A={};return _.r("div",{class:_.VO((A["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(W==null||!W())},A["yt-profile-identity-info-view-model__channel-description"]=function(){return!(W==null?0:W())},A))},L)}}),_.r(PTq,{profileIdentityInfoData:G}),_.r(_.p,{cond:function(){return!(K==null?0:K())},
then:function(){return _.r("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"rj");
y1E.idomCompat=!0;var PTq=_.P(function(m){var G=m.profileIdentityInfoData;return _.r("div",{class:"yt-profile-identity-info-view-model__buttons"},_.r(_.D0,{each:function(){return G().subscribeButton?[G().subscribeButton,G().channelAccess]:[G().channelAccess]}},function(K){return _.r("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.r("div",{class:"yt-profile-identity-info-view-model--button"},_.r(_.z$,{data:function(){return K}},{buttonViewModel:_.kP,
subscribeButtonViewModel:_.Ox})))}))},"sj"),dX6=_.P(function(m){var G=m.profileIdentityInfoData;
return _.r("div",{class:"yt-profile-identity-info-view-model__trio"},_.r("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.r(efD,{profileIdentityInfoData:G}),_.r(_.z$,{data:function(){return G().threeDotMenu}},{buttonViewModel:_.kP})),_.r(fYE,{profileIdentityInfoData:G}))},"tj"),efD=_.P(function(m){var G=m.profileIdentityInfoData;
return _.r("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.r("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return G().channelDisplayName}),_.r(_.p,{cond:function(){return G().verifiedOrOacBadge},
then:function(K){return _.r("div",{class:"yt-profile-identity-info-view-model__badge"},_.r(_.oC,{data:function(){return{thumbnails:[{url:K().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"uj"),Zxi=_.P(function(m){var G=m.profileIdentityInfoData;
return _.r("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.r(_.z$,{data:function(){var K=G().channelBanner;if(K)return{imageBannerViewModel:{image:K.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(K){return _.r("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.r(_.QD,{data:K.data,
isPositionRelative:!0}))}}))},"vj"),fYE=_.P(function(m){var G=m.profileIdentityInfoData;
return _.r("div",{class:"yt-profile-identity-info-view-model__metadata"},_.r("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.r("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return G().channelHandle}),_.r(_.p,{cond:function(){return G().channelPronouns&&G().channelHandle},
then:function(){return _.r("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.r("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return G().channelPronouns})),_.r("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.r("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return G().leftOfBulletInfo}),_.r(_.p,{cond:function(){return G().leftOfBulletInfo&&G().rightOfBulletInfo},
then:function(){return _.r("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.r("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return G().rightOfBulletInfo})))},"wj");_.sh(y1E,"yt-profile-identity-info-view-model",{props:{data:_.Dd,hideDivider:_.Dd,isChannelInfoCard:_.Dd}});_.sh(_.C6W,"yt-page-header-view-model",{props:{data:_.Dd,noPadding:_.Dd,enableBanner:_.Dd,cinematicContainerTopbarOffset:_.Dd,allowCinematicContainerOverflow:_.Dd,displayAsSidebar:_.Dd,displayAsPanel:_.Dd,alwaysUseMediumTextDescription:_.Dd}});var xXs=_.P(function(){return _.r("div",{class:_.VO("ytdGhostGridViewModelGhostCard")},_.r("div",{class:_.VO("ytdGhostGridViewModelThumbnail","ytdGhostGridViewModelGhostColor")}),_.r("div",{class:_.VO("ytdGhostGridViewModelDetails")},_.r("div",{class:_.VO("ytdGhostGridViewModelChannelAvatar","ytdGhostGridViewModelGhostColor")}),_.r("div",{class:_.VO("ytdGhostGridViewModelDetailsTextShell")},_.r("div",{class:_.VO("ytdGhostGridViewModelVideoTitle","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}),
_.r("div",{class:_.VO("ytdGhostGridViewModelVideoMeta","ytdGhostGridViewModelTextShell","ytdGhostGridViewModelGhostColor")}))))},"yj");_.sh(_.P(function(m){var G=m.data;var K=_.RC(_.Ov);return _.r("ytd-ghost-grid-view-model",{class:_.VO("ytdGhostGridViewModelHost")},_.r(_.D0,{each:function(){var W=Array,L;var A=((L=G().numRows)!=null?L:0)*K();return W(A)},
keyBy:"INDEX"},function(){return _.r(xXs,null)}))},"xj"),"ytd-ghost-grid-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=function(){var L;return(L=G().numColumns)!=null?L:2},W=function(){return K()>1?3:2};
m={};return _.r("ytd-rich-grid-group",{class:_.VO("ytdRichGridGroupHost",(m.ytdRichGridGroupHostFirstColumn=function(){return G().colIndex===0},m)),
style:_.eA({"--ytd-rich-grid-group-num-columns":K,"--ytd-rich-grid-items-per-group":W})},_.r("div",{class:"ytdRichGridGroupContents"},_.r(_.z$,{data:function(){var L;return(L=G().contents)==null?void 0:L.slice(0,W())}},{richItemRenderer:function(L){return _.r(_.k0X,{data:L.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"zj"),"ytd-rich-grid-group",{props:{data:_.Dd}});var Cj=function(){var m=_.d.apply(this,arguments)||this;m.resizeOnObserverInit=!1;m.isInlinePreviewDisabled=_.F("web_disable_inline_preview");m.disableStickyFilterBar=!1;m.transparentBackgroundChipsBar=!1;m.hideChipsBar=!1;m.isScrolled=!1;m.isWatchDefaultLayout=!0;m.continuationShowButton=!1;m.rowReducedHorizontalMargin=!1;m.useCompactList=!1;m.manualDownloadsPresent=!1;m.smartDownloadsPresent=!1;m.isOnline=!1;m.shouldRenderDownloadsBanner=!1;m.shouldRenderDownloadsBannerUpsell=!1;m.hasOptedIntoSmartDownloads=
!1;m.elementsPerRow=4;m.typographyBump=!1;m.slimItemsPerRow=1;m.pageLoadingFromNavigation=!1;m.resizeObserver=null;m.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"};m.rendererToTagNameMap=new Map(Object.entries(m.contentMapping()).map(function(G){var K=
_.g(G);G=K.next().value;K=K.next().value;return[G,K.component]}));
m.insertedContent=new Map;return m};
_.n(Cj,_.d);_.w=Cj.prototype;_.w.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var m=_.g(_.VL(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=m.next();!G.done;G=m.next())G.value.useCompactList=this.useCompactList};
_.w.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var m=_.g(_.VL(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),G=m.next();!G.done;G=m.next())G=G.value,G.sizing=this.sizing,G.typographyBump=this.typographyBump};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.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]]"}}}};
_.w.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},loadingContentRenderer:{id:"reload-content",
mapping:{ghostGridViewModel:{component:"ytd-ghost-grid-view-model"}}}}};
_.w.attached=function(){document.addEventListener("yt-page-type-changed",_.xC(this,this.onPageChange));document.addEventListener("yt-feed-customization-scroll-up",_.xC(this,this.onFeedCustomizationScrollUp));this.updateItemMinAndMaxWidth();this.JSC$21045_throttledOnResize=new _.yO(this.resizeObserved,_.U8("rich_grid_resize_delay_ms",50),this);this.showChipsOnScroll&&window.addEventListener("scroll",_.xC(this,this.onScroll))};
_.w.detached=function(){var m;(m=this.resizeObserver)==null||m.disconnect();document.removeEventListener("yt-page-type-changed",_.xC(this,this.onPageChange));document.removeEventListener("yt-feed-customization-scroll-up",_.xC(this,this.onFeedCustomizationScrollUp));this.showChipsOnScroll&&window.removeEventListener("scroll",_.xC(this,this.onScroll))};
_.w.insertRichSection=function(m){var G=m.richItemTargetId;m=m.richSectionRendererToInsert;G&&m&&(this.insertedContent.set(G,{content:m,timestamp:Date.now()}),this.reflowContent())};
_.w.computeIsInlinePreviewEnabled=function(m,G,K){return _.F("web_disable_inline_preview")?!1:!K&&wYu({miniplayerIsActive:m,miniplayerPlaybackState:G})};
_.w.computeSizing=function(){var m=_.X6G(this.data);if(m||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return m?this.useCompactList?"COMPACT":m:this.miniMode?"COMPACT":"STANDARD"};
_.w.updateItemMinAndMaxWidth=function(){var m=_.U8("rich_grid_max_item_width",500);m>0&&_.eb(this.hostElement,{"--ytd-rich-grid-item-max-width":m+"px"});var G;m=this.getRichItemMinWidth((G=this.hostElement)==null?void 0:G.clientWidth);m>0&&_.eb(this.hostElement,{"--ytd-rich-grid-item-min-width":m+"px"})};
_.w.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.w.resizeObserved=function(){_.PH(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.w.onPageChange=function(){var m=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.PH(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Fu.addJob(function(){m.pageLoadingFromNavigation=!1;m.setMasthead();m.maybeSetBigYoodle();m.forceRefreshAndLog();m.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.w.dataChanged=function(){var m=this;_.PH(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Pv(this,function(){m.updateRichItemGridPositions();m.contentsElement&&_.eb(m.hostElement,{"--ytd-rich-grid-content-offset-top":m.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.w.initResizeObserver=function(){var m=this;if(window.ResizeObserver){var G;(G=this.resizeObserver)==null||G.disconnect();var K=!1;this.resizeObserver=new ResizeObserver(function(){if(K){var W;(W=m.resizeObserver)==null||W.disconnect();var L;(L=m.JSC$21045_throttledOnResize)==null||L.fire();requestAnimationFrame(function(){var O;(O=m.JSC$21045_throttledOnResize)==null||O.fire();m.initResizeObserver()})}else if(K=!0,m.resizeOnObserverInit){var A;
(A=m.JSC$21045_throttledOnResize)==null||A.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.w.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.PH(this.hostElement,"ytd-rich-item-index-update-action")};
_.w.updateElementsPerRow=function(){_.PH(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.kt({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.kt({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.w.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.w.onRichShelfRendererCollapse=function(m){if(this.shownItems){var G=m.detail;m=this.shownItems.findIndex(function(W){var L,A;return((A=_.Q(W==null?void 0:(L=W.richSectionRenderer)==null?void 0:L.content,_.dtP))==null?void 0:A.trackingParams)===G});
var K=m+1;m<0||K>=this.contentsElement.children.length||!this.shownItems[K].richItemRenderer||this.contentsElement.children[K].scrollIntoView({behavior:"smooth",block:"start"})}};
_.w.onSoftReloadPage=function(){this.scrollUpToTop()};
_.w.handleRerenderDownloadsData=function(){_.F("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.w.handlePlaylistRemoveVideosAction=function(m){var G;if(((G=_.Q(m,_.i$C))==null?0:G.setVideoIds)&&this.data&&this.data.contents){m=_.Q(m,_.i$C).setVideoIds;for(G=this.data.contents.length-1;G>=0;){var K=_.Q(this.data.contents[G],_.Tc);(K=K&&_.Q(K.content,_.rp))&&K.setVideoId&&m.includes(K.setVideoId)&&this.splice("data.contents",G,1);G--}this.updateIndices()}};
_.w.updateIndices=function(){if(this.data&&this.data.contents)for(var m=0;m<this.data.contents.length;m++)this.set("data.contents."+m+".richItemRenderer.index",_.nG(String(m+1)))};
_.w.hasTopRowInlinePlayableVideoWithEndorsement=function(m){var G;return!((G=m.slice(0,this.getItemsPerRow()))==null||!G.some(function(K){var W;K=_.Q(K==null?void 0:(W=K.richItemRenderer)==null?void 0:W.content,_.CmG);var L;return(K==null?void 0:K.inlinePlaybackEndpoint)&&(K==null?void 0:(L=K.thumbnailOverlays)==null?void 0:L.some(function(A){return A.thumbnailOverlayEndorsementRenderer}))}))};
_.w.refreshGridLayoutNew=function(m,G,K,W){var L=W.postsPerRow;var A=W.slimItemsPerRow;var O=W.gameCardsPerRow;W=W.miniGameCardsPerRow;var c;if((c=this.data)==null||!c.contents||!this.containerWidth)return!1;var u;if((u=this.data.responsiveContainerConfiguration)==null?0:u.responsiveSize){var h=_.amd(this.data.responsiveContainerConfiguration,this.containerWidth,2),J;c=_.pQ(Object.assign({},h,{standardUnitMinWidth:(J=this.data)==null?void 0:J.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&h.isCompactList)}else c=_.pQ({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(h=this.data)==null?void 0:h.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=c.typographyBump;J=!1;if(m||this.elementsPerRow!==c.numItems||this.postsPerRow!==L||this.slimItemsPerRow!==A||this.gameCardsPerRow!==
O||this.miniGameCardsPerRow!==W||this.gutter!==c.gutter)J=this.elementsPerRow!==c.numItems,this.elementsPerRow=c.numItems,this.postsPerRow=L,this.slimItemsPerRow=A,this.gameCardsPerRow=O,this.miniGameCardsPerRow=W,this.gutter=c.gutter,this.itemWidth=c.itemWidth,this.reflowContent(G),_.eb(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":c.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(K);this.ytdReduxBehavior.dispatch(_.kt({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:c.maxContainerWidth}));return J};
_.w.refreshGridLayout=function(m,G){var K,W=(K=this.hostElement)==null?void 0:K.clientWidth;this.containerWidth=this.adjustRichGridWidth(W,!0);var L;if((L=this.data)==null||!L.contents||!this.containerWidth)return m&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(m=!0,this.pendingForceReflow=!1);K=this.getRichItemMinWidth(W);var A=this.isShortsPanel?146:194,O=this.getMiniGameCardMinWidth(),c=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.U8("rich_grid_default_max_items_per_row",
6);W=K=this.calcElementsPerRow(K,c);(L=K<=3&&this.miniModeAllowed())&&(K=this.calcElementsPerRow(240,4));var u=this.calcMaxSlimElementsPerRow(K,c,this.isDefaultGrid);c=this.calcElementsPerRow(A,u);var h=this.calcElementsPerRow(this.isCompactGrid?A:154,u);A=this.calcElementsPerRow(this.isCompactGrid?A:O,u);O=!1;if(this.sizing)return this.refreshGridLayoutNew(m,G,L,{postsPerRow:W,slimItemsPerRow:c,gameCardsPerRow:h,miniGameCardsPerRow:A});if(m||this.elementsPerRow!==K||this.postsPerRow!==W||this.slimItemsPerRow!==
c||this.gameCardsPerRow!==h||this.miniGameCardsPerRow!==A)O=this.elementsPerRow!==K,this.elementsPerRow=K,this.postsPerRow=W,this.slimItemsPerRow=c,this.gameCardsPerRow=h,this.miniGameCardsPerRow=A,this.reflowContent(G),this.updateElementsPerRow(),_.eb(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)&&_.eb(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(L);_.PH(this.hostElement,"yt-rich-grid-layout-refreshed");return O};
_.w.getRichItemMinWidth=function(m){var G=_.U8("rich_grid_min_item_width",310);if(!_.F("kevlar_disable_min_width_override")){var K,W;G=(W=(K=this.data)==null?void 0:K.minItemWidth)!=null?W:G}return G+_.dD9(m)};
_.w.calcMaxSlimElementsPerRow=function(m,G,K){return(K===void 0?0:K)?m===1?2:m%2===0?m/2*3:m+2:G*2};
_.w.adjustRichGridWidth=function(m,G){var K=_.F("disable_rich_grid_guide_compensation");if(!this.isWatch&&!K&&this.hostElement.offsetWidth===document.body.clientWidth&&(K=_.xS().resolve(_.fn(_.hS)))&&!K.getData())if(K.canFitPersistentGuide(m)&&K.getGuideExpandsAutomatically()){var W,L,A=Number((W=window.getComputedStyle(this.hostElement))==null?void 0:(L=W.getPropertyValue("--app-drawer-width"))==null?void 0:L.replace("px",""));m-=A||0}else if(K.canFitMiniGuide(m)){var O;W=Number((A=window.getComputedStyle(this.hostElement))==
null?void 0:(O=A.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:O.replace("px",""));m-=W||0}m>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(m-=G?32:48));return m};
_.w.calcElementsPerRow=function(m,G){var K=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),W=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((K+W)/(m+W))||1,G)};
_.w.reflowContent=function(m){var G=this;if(!this.isReflowing){this.isReflowing=!0;var K,W,L=!!((K=this.data)==null?0:(W=K.contents)==null?0:W.some(function(c){return _.Q(c,_.EU)}));
K=this.getItemsPerRow();var A;W=(A=this.data)==null?void 0:A.reflowOptions;m&&(_.Yt("rgr_s"),_.Pv(this,function(){_.Yt("rgr_nrf")}));
m={};(A=_.VL(this.hostElement).querySelector("#contents"))&&(m={contentElement:A,rendererToTagNameMap:this.rendererToTagNameMap});A=(A=this.data.contents)?A.slice():[];L=nt5(A,K,L,W,this.getRichGridStyle(),m,this.insertedContent);var O=L.orderedContent;if(L=L.pinnedContentNotShownTargetIds)for(L=_.g(L),K=L.next();!K.done;K=L.next())this.insertedContent.delete(K.value);L=function(){G.shownItems=O;G.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(O),_.Pv(this,L)):L()}};
_.w.getFirstRowItems=function(m){for(var G=[],K=0;K<m.length;K++){var W=void 0,L=void 0,A=void 0,O=void 0,c=void 0,u=void 0;if(((W=m[K])==null?void 0:(L=W.richItemRenderer)==null?void 0:L.rowIndex)===0||((A=m[K])==null?void 0:(O=A.richGroupRenderer)==null?void 0:O.rowIndex)===0||((c=m[K])==null?void 0:(u=c.richSectionRenderer)==null?void 0:u.rowIndex)===0)G.push(m[K]);else break}return G};
_.w.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.w.resetInsertedContentIfNeeded=function(){(_.F("web_explore_hub_on_hover")||_.F("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.w.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.w.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.w.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.w.terminateVideoPreview=function(){_.PH(this.hostElement,"yt-terminate-video-preview-action")};
_.w.updateRichItemGridPositions=function(){var m={gridData:{gridColumnCount:this.elementsPerRow}},G;((G=this.data)==null?0:G.trackingParams)&&(G=_.gU())&&_.vk(G,_.m5(this.data.trackingParams),m);_.PH(this.hostElement,"ytd-rich-item-index-update-action")};
_.w.miniModeAllowed=function(){return this.isChannelPage};
_.w.getMiniGameCardMinWidth=function(){return 154};
_.w.updateMiniMode=function(m){this.miniMode=this.miniModeAllowed()&&m;this.ytdReduxBehavior.dispatch(_.kt({type:"SET_RICH_GRID_MINI_MODE",payload:m}))};
_.w.isCurrentPage=function(){return location.pathname===this.pagePath};
_.w.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var m=_.xS().resolve(_.$g).getCurrentPage();m&&m.setScrollTop(0)}};
_.w.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.w.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.w.maybeSetBigYoodle=function(){var m,G=(m=this.data)==null?void 0:m.bigYoodle;this.bigYoodleData!==G&&(this.bigYoodleData=G)};
_.w.setMasthead=function(){var m;((m=this.data)==null?0:m.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.w.getRichGridStyle=function(){var m,G;return(G=(m=this.data)==null?void 0:m.style)!=null?G:"RICH_GRID_STYLE_UNKNOWN"};
_.w.onIsShortsGridChange=function(){var m=this.ytdReduxBehavior,G=m.dispatch,K=this.getRichGridStyle();G.call(m,_.kt({type:"SET_RICH_GRID_STYLE",payload:K}))};
_.w.onFeedCustomizationScrollUp=function(){this.scrollUpToTop()};
_.w.onScroll=function(){this.isScrolled=window.scrollY>0};
_.e_.Object.defineProperties(Cj.prototype,{showChipsOnScroll:{configurable:!0,enumerable:!0,get:function(){return _.F("kevlar_show_chips_on_scroll")&&this.isHomePage&&!this.isChannelPage&&!this.isFilteredFeed}},
loadingContentRenderer:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.ytContinuationHandlerBehavior)==null?void 0:m.reloadUiContent}},
hasLoadingContent:{configurable:!0,enumerable:!0,get:function(){return!!this.loadingContentRenderer}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var m=_.xS().resolve(_.$g).getCurrentPage(),G,K,W;return(((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_audio_pivot"||_.F("web_enable_channel_pivot_panel")&&((K=this.data)==null?void 0:K.targetId)==="browse-feedFEsfv_channel_pivot"||_.F("web_enable_effect_pivot_panel")&&((W=this.data)==null?void 0:W.targetId)==="browse-feedFEsfv_effect_pivot")&&(m==null?void 0:m.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.F("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 m;return!((m=this.data)==null?0:m.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var m;return((m=_.xS().resolve(_.$g).getCurrentPage())==null?void 0:m.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var m;return((m=_.xS().resolve(_.$g).getCurrentPage())==null?void 0:m.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?0:m.enableContentSpecificAspectRatio)||((G=this.data)==null?0:(K=G.responsiveContainerConfiguration)==null?0:K.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.U8("web_continuation_handler_margin",0):0}}});
Cj.prototype.onIsShortsGridChange=Cj.prototype.onIsShortsGridChange;Cj.prototype.onReloadContinuationFinish=Cj.prototype.onReloadContinuationFinish;Cj.prototype.reflowContent=Cj.prototype.reflowContent;Cj.prototype.handleRerenderDownloadsData=Cj.prototype.handleRerenderDownloadsData;Cj.prototype.onRichShelfRendererCollapse=Cj.prototype.onRichShelfRendererCollapse;Cj.prototype.onRequestElementsPerRow=Cj.prototype.onRequestElementsPerRow;Cj.prototype.contentLengthChanged=Cj.prototype.contentLengthChanged;
Cj.prototype.dataChanged=Cj.prototype.dataChanged;Cj.prototype.onSizingChange=Cj.prototype.onSizingChange;Cj.prototype.onUseCompactListChange=Cj.prototype.onUseCompactListChange;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],Cj.prototype,"ironResizableBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Cj.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],Cj.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Cj.prototype,"componentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Cj.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],Cj.prototype,"miniMode",void 0);_.x([_.V({value:[]}),_.S("design:type",Array)],Cj.prototype,"shownItems",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Cj.prototype,"isReflowing",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Cj.prototype,"isFilteredFeed",void 0);_.x([_.V({selector:_.JSd}),_.S("design:type",Boolean)],Cj.prototype,"guideIsExpanded",void 0);
_.x([_.V({selectorArgs:["entitySelectorType"],selector:function(m,G){if(_.F("kevlar_modern_downloads_page")&&G&&G!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(G){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":G=m.entities;var K=_.LG(G),W=_.AM(G),L=_.g8o(m),A=_.wxJ(m),O=_.Oko(m),c=_.AS6(G),u=_.Tz(K),h=_.w6(G);return _.JRF(K,W,c,_.cSG(G),L,A,u,h,O,_.Yxd(m),_.r6(m));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return m=_.LG(m.entities),_.Di6(m);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return m=
_.Ks9(m.entities),_.tzs(m);default:_.nc(new _.cw("Error: entitySelectorType defined but not matched in selector.",m,G))}}}),
_.S("design:type",Object)],Cj.prototype,"entityDrivenRichGridData",void 0);_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"resizeOnObserverInit",void 0);_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"bigYoodleData",void 0);_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"mastheadData",void 0);_.x([_.V(),_.S("design:type",Boolean)],Cj.prototype,"isInlinePreviewDisabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"disableStickyFilterBar",void 0);
_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"transparentBackgroundChipsBar",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"hideChipsBar",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("isHomePage","isFilteredFeed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"showChipsOnScroll",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"isScrolled",void 0);
_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"isWatchDefaultLayout",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"continuationShowButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"rowReducedHorizontalMargin",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"useCompactList",void 0);_.x([_.V({selector:function(m){return _.AM(m.entities).length>0}}),
_.S("design:type",Object)],Cj.prototype,"manualDownloadsPresent",void 0);_.x([_.V({selector:function(m){return _.LG(m.entities).length>0}}),
_.S("design:type",Object)],Cj.prototype,"smartDownloadsPresent",void 0);_.x([_.V({selector:_.r6}),_.S("design:type",Object)],Cj.prototype,"isOnline",void 0);_.x([_.V({selector:_.wxJ}),_.S("design:type",Object)],Cj.prototype,"shouldRenderDownloadsBanner",void 0);_.x([_.V({selector:_.Yxd}),_.S("design:type",Object)],Cj.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.x([_.V({selector:_.g8o}),_.S("design:type",Object)],Cj.prototype,"hasOptedIntoSmartDownloads",void 0);
_.x([_.Sb("useCompactList"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"onUseCompactListChange",null);_.x([_.Sb("sizing","typographyBump"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"onSizingChange",null);_.x([_.V({selector:_.and}),_.S("design:type",Number)],Cj.prototype,"miniplayerPlaybackState",void 0);_.x([_.V({selector:_.cU}),_.S("design:type",Boolean)],Cj.prototype,"miniplayerIsActive",void 0);
_.x([_.V({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.S("design:type",Boolean)],Cj.prototype,"isInlinePreviewEnabled",void 0);_.x([_.V({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.S("design:type",String)],Cj.prototype,"sizing",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Cj.prototype,"elementsPerRow",void 0);
_.x([_.V(),_.S("design:type",Object)],Cj.prototype,"typographyBump",void 0);_.x([_.V(),_.S("design:type",Number)],Cj.prototype,"itemWidth",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],Cj.prototype,"headerElement",void 0);_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],Cj.prototype,"contentsElement",void 0);_.x([_.E("reloadUiContent"),_.S("design:type",Object),_.S("design:paramtypes",[])],Cj.prototype,"loadingContentRenderer",null);
_.x([_.E("reloadUiContent"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"hasLoadingContent",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"dataChanged",null);_.x([_.Mg("data.contents.length"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"contentLengthChanged",null);
_.x([_.XC("yt-request-elements-per-row"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"onRequestElementsPerRow",null);_.x([_.XC("yt-rich-shelf-renderer-collapse"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Cj.prototype,"onRichShelfRendererCollapse",null);
_.x([_.Mg("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"handleRerenderDownloadsData",null);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Cj.prototype,"entitySelectorType",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isSub",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isWatch",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isShortsPanel",null);
_.x([_.V({reflectToAttribute:!0}),_.E("isWatch"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"reducedTopMargin",null);_.x([_.V({reflectToAttribute:!0}),_.E("data","isWatch","isWatchDefaultLayout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"noTopMargin",null);_.x([_.V({reflectToAttribute:!0}),_.E("isInlinePreviewEnabled","shownItems"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"topRowEndorsement",null);
_.x([_.E("data.header"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"hideHeader",null);_.x([_.XC("yt-rich-grid-reflow"),_.S("design:type",Function),_.S("design:paramtypes",[Boolean]),_.S("design:returntype")],Cj.prototype,"reflowContent",null);_.x([_.XC("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"onReloadContinuationFinish",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isSlimGrid",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isShortsGrid",null);_.x([_.E("data","isSlimGrid","isShortsGrid"),_.V(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"noRichItemGutterMargins",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isShortsGridSlim",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isCompactGrid",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"isDefaultGrid",null);
_.x([_.E("data.targetId"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"hideChipsBarOnWatch",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cj.prototype,"onIsShortsGridChange",null);_.x([_.E("data.enableContentSpecificAspectRatio"),_.V(),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Cj.prototype,"force16By9ThumbnailAspectRatio",null);
_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],Cj.prototype,"continuationTriggerOffset",null);_.x([_.Ye({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],Cj);
_.y(Cj,"ytd-rich-grid-renderer",function(){if(PtD!==void 0)return PtD;var m=document.createElement("template");_.b(m,'\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="contents" hidden="[[hasLoadingContent]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="reload-content" class="style-scope ytd-rich-grid-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PtD=m},{mode:2});var X_D;var V2=function(){return _.d.apply(this,arguments)||this};
_.n(V2,_.d);_.w=V2.prototype;
_.w.onKeyDown=function(m){if(this.snippetElements.length!==0&&(m=m.keyCode,m===38||m===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);m===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.YJ(this.highlightedIndex,-1,this.snippetElements.length);m=this.snippetElements.length;var G=this.highlightedIndex%m;this.highlightedIndex=G*m<0?G+m:G;m=this.snippetElements[this.highlightedIndex];this.highlightSnippet(m);this.ensureVisible(m)}};
_.w.onKeyUp=function(m){var G=this;H2z(m)&&(m.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Fu.cancelJob(this.inputTimerId),this.inputTimerId=_.Fu.addLowPriorityJob(function(){G.typedValue&&(G.fetchSnippets(G.typedValue),G.logInputGesture(G.data))},1E3))};
_.w.onClick=function(m){(m=_.Pri(m.target,null,"snippet-item"))&&this.selectSnippet(m)};
_.w.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.w.ready=function(){var m=this;this.inputElement.addEventListener("focus",function(){m.snippetsWrapper.style.removeProperty("display")})};
_.w.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.w.getSourceTimelines=function(){if(!this.data)return[];var m=[];if(this.data.searchInVideoSources)for(var G=_.g(this.data.searchInVideoSources),K=G.next();!K.done;K=G.next())K=K.value,K==="SEARCH_IN_VIDEO_SOURCE_ASR"?m.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):K==="SEARCH_IN_VIDEO_SOURCE_OCR"&&m.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return m};
_.w.fetchSnippets=function(m){var G=_.dU(this.hostElement,"yt-get-current-video-id-action")[0],K=this.getSourceTimelines();m={getSearchInVideoCommand:{externalVideoId:G,query:m!=null?m:"",sourceTimelines:K},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})};
_.w.filterSnippets=function(m,G){var K=this;if(G){this.filteredSnippets=(0,_.Y2.unsafeClone)(m);var W=RegExp(_.NNd(G),"i");this.filteredSnippets=this.filteredSnippets.filter(function(O){return W.test(K.ytRendererBehavior.getSimpleString(O.snippet))});
m=_.g(this.filteredSnippets);for(var L=m.next();!L.done;L=m.next()){L=L.value;var A=this.ytRendererBehavior.getSimpleString(L.snippet);L.snippet={runs:[{text:A.substring(0,A.toLowerCase().indexOf(G))},{text:A.substring(A.toLowerCase().indexOf(G),A.toLowerCase().indexOf(G)+G.length),bold:!0},{text:A.substring(A.toLowerCase().indexOf(G)+G.length,A.length)}]}}}else this.filteredSnippets=m};
_.w.onUpdateSearchInVideoResults=function(m){if(!(this.snippets.length>0)){var G,K,W;if((W=(G=_.Q(m,tS5))==null?void 0:(K=G.results)==null?void 0:K.length)!=null&&W){var L;this.filteredSnippets=this.snippets=((L=_.Q(m,tS5))==null?void 0:L.results).map(function(A){var O,c,u;return{startMs:A==null?void 0:(O=A.searchInVideoResultRenderer)==null?void 0:O.startMs,startTimeText:A==null?void 0:(c=A.searchInVideoResultRenderer)==null?void 0:c.startTimeText,snippet:A==null?void 0:(u=A.searchInVideoResultRenderer)==
null?void 0:u.snippet}})}}};
_.w.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};
_.w.highlightSnippet=function(m){m.classList.add("highlighted")};
_.w.removeSnippetHighlight=function(m){m.classList.remove("highlighted")};
_.w.selectSnippet=function(m){this.typedValue=String(m.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(m);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.w.ensureVisible=function(m){var G=this.snippetsWrapper.scrollTop,K=G+this.snippetsWrapper.clientHeight,W=m.offsetTop-this.snippetsWrapper.offsetTop;m=W+m.clientHeight;W<G?this.snippetsWrapper.scrollTop-=G-W:m>K&&(this.snippetsWrapper.scrollTop+=m-K)};
_.w.seekPlayer=function(m){var G,K;return _.Y(function(W){if(W.nextAddress==1){if(!m)return W.jumpTo(0);G=Number(m.dataset.startOffset);return W.yield(_.ET().getPlayerPromise(),3)}K=W.yieldResult;K.seekTo(G/1E3,!0);K.wakeUpControls();_.ey(W)})};
_.w.logInputGesture=function(m){var G=_.gU();G&&(m==null?0:m.trackingParams)&&_.bd(G,_.m5(m.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.w.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("typed-value-changed",this.typedValue))};
_.w.updateTypedValueFromBinding=function(m){this.typedValue=m.currentTarget.value};
V2.prototype.typedValueChangedForBinding=V2.prototype.typedValueChangedForBinding;V2.prototype.dataChanged=V2.prototype.dataChanged;V2.prototype.panelContentVisibleChanged=V2.prototype.panelContentVisibleChanged;V2.prototype.onClick=V2.prototype.onClick;V2.prototype.onKeyUp=V2.prototype.onKeyUp;V2.prototype.onKeyDown=V2.prototype.onKeyDown;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],V2.prototype,"data",void 0);_.x([_.V({value:[]}),_.S("design:type",Array)],V2.prototype,"snippets",void 0);_.x([_.V({value:[]}),_.S("design:type",Array)],V2.prototype,"filteredSnippets",void 0);_.x([_.V({value:[]}),_.S("design:type",Array)],V2.prototype,"snippetElements",void 0);
_.x([_.UM("#siv-input"),_.S("design:type",HTMLElement)],V2.prototype,"inputElement",void 0);_.x([_.UM("#siv-snippets-wrapper"),_.S("design:type",HTMLElement)],V2.prototype,"snippetsWrapper",void 0);_.x([_.V(),_.S("design:type",String)],V2.prototype,"typedValue",void 0);_.x([_.V({value:-1}),_.S("design:type",Number)],V2.prototype,"highlightedIndex",void 0);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[_.G5]),_.S("design:returntype")],V2.prototype,"onKeyDown",null);
_.x([_.XC("keyup"),_.S("design:type",Function),_.S("design:paramtypes",[_.G5]),_.S("design:returntype")],V2.prototype,"onKeyUp",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],V2.prototype,"onClick",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],V2.prototype,"panelContentVisible",void 0);
_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V2.prototype,"panelContentVisibleChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V2.prototype,"dataChanged",null);_.x([_.Sb("typedValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V2.prototype,"typedValueChangedForBinding",null);
_.x([_.Ye({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],V2);
_.y(V2,"ytd-search-in-video-renderer",function(){if(X_D!==void 0)return X_D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return X_D=m},{mode:1});var S_u;var Zo=function(){return _.d.apply(this,arguments)||this};
_.n(Zo,_.d);Zo.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Zo.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]]"}}}}}};
Zo.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var m,G,K,W,L=(G=_.Q((m=this.data)==null?void 0:m.onClickCommand,_.dzi))==null?void 0:(K=G.item)==null?void 0:(W=K.notificationTextRenderer)==null?void 0:W.successResponseText;L&&_.Q86(this.hostElement,L)}};
_.e_.Object.defineProperties(Zo.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return this.isProductPlaceholder&&((m=this.data)==null?void 0:(G=m.hiddenProductOptions)==null?void 0:G.showDropCountdown)&&!!((K=this.data)==null?0:(W=K.hiddenProductOptions)==null?0:W.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var m;return!this.isProductPlaceholder&&!((m=this.data)==null?0:m.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null?0:m.priceReplacementText)&&!((G=this.data)==null||!G.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Zo.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Zo.prototype,"componentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Zo.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Zo.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"useCenterLayoutContainer",null);_.x([_.V({computed:"computeButtonOverride(data)"}),_.S("design:type",Object)],Zo.prototype,"buttonOverride",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"isProductPlaceholder",null);
_.x([_.E("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"showDropCountdown",null);_.x([_.E("isProductPlaceholder","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"showBrandName",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"showPriceReplacementText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"showPrice",null);
_.x([_.E("isProductPlaceholder"),_.S("design:type",Object),_.S("design:paramtypes",[])],Zo.prototype,"showMetadata",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Zo);
_.y(Zo,"ytd-product-list-item-renderer",function(){if(S_u!==void 0)return S_u;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return S_u=m},{mode:1});var Rfs;var dc=function(){return _.d.apply(this,arguments)||this};
_.n(dc,_.d);dc.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
dc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
dc.prototype.panelContentVisibleChanged=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return m.playerApi?K.jumpTo(2):K.yield(_.ET().getPlayerPromise(),3);K.nextAddress!=2&&(m.playerApi=K.yieldResult);(G=m.playerApi)==null||G.productsInVideoVisibilityUpdated(!!m.panelContentVisible);_.ey(K)})};
dc.prototype.panelContentVisibleChanged=dc.prototype.panelContentVisibleChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],dc.prototype,"panelContentVisible",void 0);_.x([_.V(),_.S("design:type",Object)],dc.prototype,"data",void 0);
_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],dc.prototype,"panelContentVisibleChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],dc);
_.y(dc,"ytd-product-list-renderer",function(){if(Rfs!==void 0)return Rfs;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Rfs=m},{mode:1});var UXu;var PQ=function(){var m=_.d.apply(this,arguments)||this;m.isToggleChecked=!1;return m};
_.n(PQ,_.d);PQ.prototype.onDataChanged=function(){var m;this.isToggleChecked=((m=this.data)==null?void 0:m.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
PQ.prototype.close=function(){var m;((m=this.data)==null?0:m.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
PQ.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var m,G=_.Q((m=this.data)==null?void 0:m.switchButton,DO6);G&&(this.isToggleChecked&&G.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOnInnertubeCommand),!this.isToggleChecked&&G.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(G.switchOffInnertubeCommand))};
PQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PQ.prototype.onDataChanged=PQ.prototype.onDataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],PQ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],PQ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],PQ.prototype,"isToggleChecked",void 0);_.x([_.V({value:_.zq("CLOSE")}),_.S("design:type",String)],PQ.prototype,"closeButtonAriaLabel",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PQ.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],PQ);
_.y(PQ,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(UXu!==void 0)return UXu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return UXu=m},{mode:1});var zfD;var y2=function(){var m=_.d.apply(this,arguments)||this;m.hideTimestamps=!!_.Gh("hide-transcript-timestamps");m.currentCueIndex=-1;m.flatCues=[];m.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};m.TEST_ONLY={getFlatCues:function(){return m.flatCues}};
return m};
_.n(y2,_.d);_.w=y2.prototype;_.w.hideTimestampsChanged=function(){_.i0("hide-transcript-timestamps",this.hideTimestamps)};
_.w.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.w.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.w.dataChanged=function(){var m;if((m=this.data)!=null&&m.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;m=_.g(this.data.cueGroups);for(var G=m.next();!G.done;G=m.next()){G=_.g(_.Q(G.value,j_W).cues);for(var K=G.next();!K.done;K=G.next())this.flatCues.push(Number(_.Q(K.value,kwO).startOffsetMs))}}};
_.w.onYtPlayerTimeChanged=function(m){if(!(m<0)){for(var G=this.currentCueIndex,K=G;;){var W=K>=0?this.flatCues[K]/1E3:-1;if(m+.5<W)--K;else if(W=K+1<this.flatCues.length?this.flatCues[K+1]/1E3:Infinity,m+.5>W)K+=1;else break}K!==G&&(G>=0&&((m=this.getCueElement(G))&&m.classList.remove("active"),(G=this.getCueGroupElement(G))&&G.classList.remove("active")),(G=this.getCueElement(K))&&G.classList.add("active"),(G=this.getCueGroupElement(K))&&G.classList.add("active"),this.currentCueIndex=K,this.isHovered||
this.scrollElementToTop(K))}};
_.w.scrollElementToTop=function(m){m=this.getCueElement(m>=3?m-3:0);this.hostElement.scrollTop=Math.min(m.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.w.getCueElement=function(m){return _.VL(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[m]+'"]')};
_.w.getCueGroupElement=function(m){return(m=this.getCueElement(m))&&m.parentElement?m.parentElement.parentElement:null};
_.w.onTap=function(m){var G=_.$C(m);m.target.classList.contains("cue")&&this.seekCueElement(G)};
_.w.onKeyPress=function(m){m.keyCode==13&&(m=_.Pri(m.target,null,"cue"))&&this.seekCueElement(m)};
_.w.seekCueElement=function(m){m=Number(m.getAttribute("start-offset"));_.dU(this.hostElement,"yt-transcript-player-seek",[m/1E3])};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
y2.prototype.onMouseLeave=y2.prototype.onMouseLeave;y2.prototype.onMouseEnter=y2.prototype.onMouseEnter;y2.prototype.onKeyPress=y2.prototype.onKeyPress;y2.prototype.onTap=y2.prototype.onTap;y2.prototype.dataChanged=y2.prototype.dataChanged;y2.prototype.hideTimestampsChanged=y2.prototype.hideTimestampsChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],y2.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],y2.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],y2.prototype,"hideTimestamps",void 0);_.x([_.V(),_.S("design:type",Boolean)],y2.prototype,"isHovered",void 0);_.x([_.Sb("hideTimestamps"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y2.prototype,"hideTimestampsChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y2.prototype,"dataChanged",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],y2.prototype,"onTap",null);_.x([_.XC("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],y2.prototype,"onKeyPress",null);
_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y2.prototype,"onMouseEnter",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],y2.prototype,"onMouseLeave",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],y2);
_.y(y2,"ytd-transcript-body-renderer",function(){if(zfD!==void 0)return zfD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zfD=m},{mode:1});var lYE;var eV=function(){var m=_.d.apply(this,arguments)||this;m.darkerPanels=_.F("web_watch_darker_panels");return m};
_.n(eV,_.d);eV.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],eV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],eV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],eV.prototype,"darkerPanels",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],eV);
_.y(eV,"ytd-transcript-footer-renderer",function(){if(lYE!==void 0)return lYE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return lYE=m},{mode:1});var B7G;var Mcs;var fj=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.showClearButton=!1;return m};
_.n(fj,_.d);_.w=fj.prototype;_.w.handleInput=function(m){var G=this;m.target.value.length?_.t9(this,"ytdTranscriptSearchBoxSearch",function(){G.emitSearchEvent(m)},500):(_.iOF(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=m.target.value.length>0};
_.w.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.w.handleClick=function(){var m,G=(m=this.data)==null?void 0:m.trackingParams;G&&_.xq(_.l1(),G)};
_.w.handleClear=function(){_.iOF(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var m,G,K=(G=_.Q((m=this.data)==null?void 0:m.clearButton,_.uu))==null?void 0:G.trackingParams;K&&_.xq(_.l1(),K);this.clear()};
_.w.emitSearchEvent=function(m){_.Zw(this.hostElement,"yt-transcript-search-box-search",{query:m.target.value});var G,K;(m=(K=_.Q((G=this.data)==null?void 0:G.searchButton,_.uu))==null?void 0:K.trackingParams)&&_.xq(_.l1(),m)};
_.w.emitClearEvent=function(){_.Zw(this.hostElement,"yt-transcript-search-box-clear")};
_.e_.Object.defineProperties(fj.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.VL(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],fj.prototype,"systemIcons",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],fj);
_.y(fj,"ytd-transcript-search-box-renderer",function(){if(Mcs!==void 0)return Mcs;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Mcs=m},{mode:1});var T7G;var mZG;var x0=function(){return _.d.apply(this,arguments)||this};
_.n(x0,_.d);x0.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var m,G;this.sectionHeaderAriaLabel=(m=this.data)==null?void 0:(G=m.accessibility)==null?void 0:G.accessibilityData.label}};
x0.prototype.fireSelectedEvent=function(m){_.Zw(this.hostElement,"ytd-transcript-section-header",{startMs:m})};
x0.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
x0.prototype.handleKeyPress=function(m){this.data&&m.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.e_.Object.defineProperties(x0.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.data)==null?void 0:m.enableTappableTranscriptHeader)!=null?G:!1}}});
x0.prototype.dataChanged=x0.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],x0.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],x0.prototype,"sectionHeaderAriaLabel",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],x0.prototype,"enableTappableTranscriptHeader",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],x0.prototype,"dataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],x0);
_.y(x0,"ytd-transcript-section-header-renderer",function(){if(mZG!==void 0)return mZG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return mZG=m},{mode:1});var iIP;var GOG;var XL=function(){var m=_.d.apply(this,arguments)||this;m.isEditMode=!1;m.touchCaptionsEnabled=!1;m.deleteCaptionCorrectionPopupCommand=null;m.voteCaptionCorrectionPopupCommand=null;m.roundedContainer=!0;m.mouseOver=!1;m.textChanged=!1;m.messages={suggest_correction:_.zq("suggest_correction",void 0,"Edit caption"),suggested_caption:_.zq("suggested_caption",void 0,"Suggested caption"),submit_correction:_.zq("submit_correction",void 0,"Submit for review"),cancel_correction:_.zq("cancel_correction",
void 0,"Cancel"),replay_segment:_.zq("replay_segment",void 0,"Re-play segment"),delete_correction:_.zq("delete_correction",void 0,"Delete correction")};m.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return m};
_.n(XL,_.d);_.w=XL.prototype;_.w.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)};
_.w.handleDelete=function(m){if(this.deleteCaptionCorrectionPopupCommand){var G=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);G&&this.ytdOpenPopupBehavior.openPopup(G);m.stopPropagation()}};
_.w.handleSubmit=function(m){if(this.data&&this.data.submitCaptionCorrectionCommand&&(m.stopPropagation(),this.textChanged)){var G;m=(G=_.Q(this.data.submitCaptionCorrectionCommand,_.lnl))==null?void 0:G.params;G=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:m,correctionText:String(this.ironTextAreaElement.value),originalText:_.bw(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(G);this.isEditMode=!1}};
_.w.handleUpdateSegmentText=function(m){(m=_.Q(m,j4u))&&m.targetId&&this.data&&m.targetId===this.data.targetId&&(m.userCorrection&&(this.editedText=m.userCorrection),m.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.bw(this.data.snippet)),m.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=m.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=m.voteCaptionCorrectionPopupCommand?
m.voteCaptionCorrectionPopupCommand:null,m.accessibility&&(this.segmentAriaLabel=m.accessibility.accessibilityData.label))};
_.w.handleCancel=function(m){this.isEditMode=!1;m.stopPropagation();this.logClientVe(159409)};
_.w.handleEditSegmentCommand=function(m){(m=_.Q(m,IyO))&&m.targetId&&this.data&&m.targetId===this.data.targetId&&this.handleEdit()};
_.w.handleEditButtonClick=function(m){this.data&&(this.handleEdit(),m.stopPropagation())};
_.w.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var m;(m=this.ironTextAreaElement.textarea)==null||m.focus();this.logClientVe(159407)}};
_.w.handleMouseEnter=function(){this.mouseOver=!0};
_.w.handleMouseLeave=function(){this.mouseOver=!1};
_.w.handleReplay=function(m){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),m.stopPropagation(),this.logClientVe(159408))};
_.w.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()))};
_.w.handleKeypress=function(m){this.data&&(this.isEditMode?m.stopPropagation():this.isEnterPress(m)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(m)&&this.logClientVe(138758))};
_.w.handleTextboxClick=function(m){m.stopPropagation()};
_.w.handleTextboxKeydown=function(m){this.isControlEnterPress(m)?this.handleSubmit(m):m.key==="Escape"&&this.handleCancel(m)};
_.w.handleTextboxKeyup=function(){this.textChanged=_.bw(this.latestText)!==String(this.ironTextAreaElement.value)};
_.w.fireSelectedEvent=function(m){_.Zw(this.hostElement,"yt-transcript-segment-selected",{startMs:m})};
_.w.fireReplayEvent=function(m,G){_.Zw(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(m-100,0),endMs:G})};
_.w.fireEditEvent=function(m,G){_.Zw(this.hostElement,"yt-transcript-segment-edit",{startMs:m,endMs:G})};
_.w.isEnterPress=function(m){return m.key==="Enter"||m.code==="Enter"||m.code==="NumpadEnter"||m.keyCode===13?!0:!1};
_.w.isControlEnterPress=function(m){var G=m.key==="Enter"||m.code==="Enter"||m.code==="NumpadEnter"||m.keyCode===13;return(m.ctrlKey||m.metaKey)&&G};
_.w.isCopyPress=function(m){var G=m.ctrlKey;return m.key==="c"&&G};
_.w.logClick=function(){var m,G=(m=this.data)==null?void 0:m.trackingParams;G&&_.xq(_.l1(),G)};
_.w.logClientVe=function(m){_.fK(_.l1(),_.dq(m))};
_.e_.Object.defineProperties(XL.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}}});
XL.prototype.handleMouseLeave=XL.prototype.handleMouseLeave;XL.prototype.handleMouseEnter=XL.prototype.handleMouseEnter;XL.prototype.dataChanged=XL.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],XL.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],XL.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XL.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],XL.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],XL.prototype,"isEditMode",void 0);_.x([_.V(),_.S("design:type",Object)],XL.prototype,"touchCaptionsEnabled",void 0);_.x([_.V(),_.S("design:type",Object)],XL.prototype,"editedText",void 0);_.x([_.V(),_.S("design:type",Object)],XL.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.x([_.V(),_.S("design:type",Object)],XL.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.x([_.V(),_.S("design:type",String)],XL.prototype,"segmentAriaLabel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],XL.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],XL.prototype,"mouseOver",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],XL.prototype,"textChanged",void 0);_.x([_.V(),_.S("design:type",Object)],XL.prototype,"messages",void 0);
_.x([_.UM("#suggestion"),_.S("design:type",Object)],XL.prototype,"ironTextAreaElement",void 0);_.x([_.E("data","editedText"),_.S("design:type",Object),_.S("design:paramtypes",[])],XL.prototype,"latestText",null);_.x([_.E("touchCaptionsEnabled","isEditMode"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],XL.prototype,"enableEditButton",null);
_.x([_.E("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],XL.prototype,"enableUndoButton",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"dataChanged",null);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"handleMouseEnter",null);
_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XL.prototype,"handleMouseLeave",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],XL);
_.y(XL,"ytd-transcript-segment-renderer",function(){if(GOG!==void 0)return GOG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return GOG=m},{mode:1});var SV=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};m.isError=!1;m.darkerPanels=_.F("web_watch_darker_panels");m.useParentMaxHeight=_.F("web_watch_transscript_use_parent_max_height");m.segmentOffsets=[];m.segmentIndex=-1;return m};
_.n(SV,_.d);_.w=SV.prototype;_.w.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"}}}}};
_.w.segmentsChanged=function(){this.updateOffsets()};
_.w.onYtPlayerTimeChanged=function(m){for(var G=this.segmentIndex,K=G;;){if(K>=0){var W=this.segmentOffsets[K].start;var L=this.segmentOffsets[K].isAutoScrollable}else W=-1,L=!0;var A=m+.5;if(!L){W=K+1<this.segmentOffsets.length?this.segmentOffsets[K+1].start:Infinity;if(A>=W){K+=1;continue}K=-1;break}if(A<W)W=K-1>=0&&this.segmentOffsets[K-1].isAutoScrollable,L=K===0||W?1:2,K-=L;else if(L=K+1<this.segmentOffsets.length&&this.segmentOffsets[K+1].isAutoScrollable?1:2,W=K+L<this.segmentOffsets.length?
this.segmentOffsets[K+L].start:Infinity,A>W)K+=L;else{if(K<0)break;K<this.segmentOffsets.length&&A>this.segmentOffsets[K].end&&(K=-1);break}}if(G!==K){if(G>=0){var O;(O=this.getSegmentElement(G))==null||O.classList.remove("active")}this.segmentIndex=K;if(!(K<0)){var c;(c=this.getSegmentElement(K))==null||c.classList.add("active");this.isHovered||this.scrollElementToTop(K)}}};
_.w.handleSegmentEdit=function(m){m.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=m.target,_.dU(this.hostElement,"yt-transcript-player-edit",[m.detail.startMs/1E3,m.detail.endMs/1E3]))};
_.w.handleSegmentSelected=function(m){_.dU(this.hostElement,"yt-transcript-player-seek",[m.detail.startMs/1E3])};
_.w.handleSegmentReplay=function(m){_.dU(this.hostElement,"yt-transcript-player-replay",[m.detail.startMs/1E3,m.detail.endMs/1E3])};
_.w.handleSectionHeaderSelected=function(m){_.dU(this.hostElement,"yt-transcript-player-seek",[m.detail.startMs/1E3])};
_.w.onMouseEnter=function(){this.isHovered=!0};
_.w.onMouseLeave=function(){this.isHovered=!1};
_.w.onRetryButtonClick=function(){_.Zw(this.hostElement,"transcript-retry-button-click")};
_.w.getSegmentElement=function(m){return _.VL(this.hostElement).querySelector(":nth-child("+(m+1)+")")};
_.w.scrollElementToTop=function(m){m=this.getSegmentElement(m>=2?m-2:0);this.hostElement.scrollTop=Math.min(m.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.w.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(m){var G,K=(G=m.transcriptSegmentRenderer)!=null?G:m.transcriptSectionHeaderRenderer;return{start:Number(K.startMs)/1E3,end:Number(K.endMs)/1E3,isAutoScrollable:m.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.w.clearHighlightedSegments=function(){var m=_.VL(this.hostElement);m=_.g(m.querySelectorAll("ytd-transcript-segment-renderer"));for(var G=m.next();!G.done;G=m.next())G.value.classList.remove("active")};
_.e_.Object.defineProperties(SV.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.searchResultSegments)||((G=this.data)==null?void 0:G.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
SV.prototype.onMouseLeave=SV.prototype.onMouseLeave;SV.prototype.onMouseEnter=SV.prototype.onMouseEnter;SV.prototype.handleSectionHeaderSelected=SV.prototype.handleSectionHeaderSelected;SV.prototype.handleSegmentReplay=SV.prototype.handleSegmentReplay;SV.prototype.handleSegmentSelected=SV.prototype.handleSegmentSelected;SV.prototype.handleSegmentEdit=SV.prototype.handleSegmentEdit;SV.prototype.segmentsChanged=SV.prototype.segmentsChanged;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],SV.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],SV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],SV.prototype,"isError",void 0);
_.x([_.V(),_.S("design:type",Object)],SV.prototype,"noResultLabel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SV.prototype,"darkerPanels",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SV.prototype,"useParentMaxHeight",void 0);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],SV.prototype,"segments",null);
_.x([_.E("segments","noResultLabel"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SV.prototype,"displayNoResults",null);_.x([_.Sb("segments"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SV.prototype,"segmentsChanged",null);_.x([_.XC("yt-transcript-segment-edit"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],SV.prototype,"handleSegmentEdit",null);
_.x([_.XC("yt-transcript-segment-selected"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],SV.prototype,"handleSegmentSelected",null);_.x([_.XC("yt-transcript-segment-replay"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],SV.prototype,"handleSegmentReplay",null);
_.x([_.XC("ytd-transcript-section-header"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],SV.prototype,"handleSectionHeaderSelected",null);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SV.prototype,"onMouseEnter",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SV.prototype,"onMouseLeave",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],SV);
_.y(SV,"ytd-transcript-segment-list-renderer",function(){if(iIP!==void 0)return iIP;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return iIP=m},{mode:1});var R8=function(){var m=_.d.apply(this,arguments)||this;m.hideTimestamps=!!_.Gh("hide-transcript-timestamps");m.isLoadingTranscripts=!1;m.darkerPanels=_.F("web_watch_darker_panels");m.isError=!1;m.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return m};
_.n(R8,_.d);_.w=R8.prototype;_.w.headerChanged=function(){var m,G;this.baseGetTranscriptsCommand=(G=_.Q((m=this.data)==null?void 0:m.header,kmi))==null?void 0:G.onTextChangeCommand};
_.w.bodyChanged=function(){var m=this.getBodyRenderer();m&&(m.initialSegments&&(this.initialTranscriptsRenderer=m),m.noResultLabel&&(this.noResultLabel=m.noResultLabel),m.retryLabel&&(this.retryLabel=m.retryLabel))};
_.w.detached=function(){this.clearSearchBoxText()};
_.w.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.w.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"}}}};
_.w.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.w.fireSearch=function(m){var G=this;if(m){var K=m.detail.query;if(this.baseGetTranscriptsCommand){var W;m=(W=_.Q(this.baseGetTranscriptsCommand,_.SYo))==null?void 0:W.params;var L;W=_.Q((L=this.data)==null?void 0:L.footer,Cvq);var A;if((L=(A=_.Q(W==null?void 0:W.languageMenu,FTP))==null?void 0:A.subMenuItems)&&L.length>0&&(A=L.find(function(u){return u.selected}))){var O,c;
m=(O=A.continuation)==null?void 0:(c=O.reloadContinuationData)==null?void 0:c.continuation}O=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:m,searchQuery:K}});this.ytComponentBehavior.resolveCommand(O,{commandController:{onServerError:function(){G.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});KPO(this.ytContinuationHandlerBehavior,function(){return K===G.getCurrentSearchBoxText()})}}};
_.w.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.w.onRetryButtonClick=function(){this.isError=!1;var m={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:m}))};
_.w.hideTimestampsChanged=function(){_.i0("hide-transcript-timestamps",this.hideTimestamps)};
_.w.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.w.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.w.handleSignalActionCopyTranscript=function(){var m=this,G=this.getBodyRenderer();G&&(G=((G==null?void 0:G.searchResultSegments)||(G==null?void 0:G.initialSegments)||[]).map(function(K){return _.Q(K,VuG)}).filter(function(K){return!!K}).map(function(K){return{snippet:K.snippet||{runs:[{text:""}]},
startTimeText:K.startTimeText||{simpleText:""}}}).map(function(K){var W=(K.snippet.runs||[]).reduce(function(L,A){return L+A.text},"");
return m.hideTimestamps?W:K.startTimeText.simpleText+" "+W}).join("\n"),this.copyToClipboard(G))};
_.w.copyToClipboard=function(m){navigator.clipboard&&navigator.clipboard.writeText(m)};
_.w.getCurrentSearchBoxText=function(){var m;return(m=this.searchBox)==null?void 0:m.value};
_.w.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.w.getBodyRenderer=function(){var m;return _.Q((m=this.data)==null?void 0:m.body,C3z)};
_.w.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.e_.Object.defineProperties(R8.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.VL(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
R8.prototype.hideTimestampsChanged=R8.prototype.hideTimestampsChanged;R8.prototype.searchCleared=R8.prototype.searchCleared;R8.prototype.fireSearch=R8.prototype.fireSearch;R8.prototype.onReloadContinuationFinish=R8.prototype.onReloadContinuationFinish;R8.prototype.bodyChanged=R8.prototype.bodyChanged;R8.prototype.headerChanged=R8.prototype.headerChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],R8.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],R8.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],R8.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],R8.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],R8.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],R8.prototype,"hideTimestamps",void 0);
_.x([_.V(),_.S("design:type",Object)],R8.prototype,"isLoadingTranscripts",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],R8.prototype,"darkerPanels",void 0);_.x([_.V(),_.S("design:type",Object)],R8.prototype,"isError",void 0);_.x([_.Sb("data.header"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R8.prototype,"headerChanged",null);
_.x([_.Mg("data.body"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R8.prototype,"bodyChanged",null);_.x([_.XC("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R8.prototype,"onReloadContinuationFinish",null);_.x([_.XC("yt-transcript-search-box-search"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],R8.prototype,"fireSearch",null);
_.x([_.XC("yt-transcript-search-box-clear"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R8.prototype,"searchCleared",null);_.x([_.Sb("hideTimestamps"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R8.prototype,"hideTimestampsChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],R8);
_.y(R8,"ytd-transcript-search-panel-renderer",function(){if(T7G!==void 0)return T7G;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return T7G=m},{mode:1});var US=function(){var m=_.d.apply(this,arguments)||this;m.player=null;m.playerPollJobId=0;return m};
_.n(US,_.d);_.w=US.prototype;_.w.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.w.onLoadReloadContinuation=function(m){_.F("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:m.target.data.continuation}}):(m={clickTrackingParams:m.target.data.clickTrackingParams,getTranscriptEndpoint:{params:m.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}}))};
_.w.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"}}}};
_.w.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.w.attached=function(){this.updatePlayerListening()};
_.w.detached=function(){this.updatePlayerListening()};
_.w.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.w.startPlayerListening=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return(G=_.qW())?K.yield(G.getPlayerPromise(),2):K.return();m.player=K.yieldResult;m.playerPollJobId=_.Fu.addLowPriorityJob(function(){m.getPlayerVideoProgress()},1E3);
m.player.addEventListener("onCueRangeEnter",function(W){m.onCueRangeEnter(W)});
m.player.addEventListener("onCueRangeExit",function(W){m.onCueRangeExit(W)});
m.player.addEventListener("onStateChange",function(W){m.onPlayerStateChange(W)});
m.player.addEventListener("SEEK_TO",function(W){m.onPlayerSeek(W)});
_.ey(K)})};
_.w.getPlayerVideoProgress=function(){var m=this;_.Fu.cancelJob(this.playerPollJobId);if(this.player){var G=this.player.getCurrentTime();_.dU(this.hostElement,"yt-player-time-changed",[G])}this.playerPollJobId=_.Fu.addLowPriorityJob(function(){m.getPlayerVideoProgress()},1E3)};
_.w.stopPlayerListening=function(){this.player=null;_.Fu.cancelJob(this.playerPollJobId)};
_.w.onPlayerStateChange=function(m){m===2&&this.removePendingCue()};
_.w.onPlayerSeek=function(m){var G;if(G=this.pendingReplayCueId)G=this.pendingReplayCueId,G=m===(_.F("web_transcript_cue_id_killswitch")?Number(G):Number(G.split("_")[1]));G||this.removePendingCue()};
_.w.onCueRangeEnter=function(m){Om5(m)&&(this.pendingReplayCueId=m)};
_.w.onCueRangeExit=function(m){Om5(m)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.w.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.w.onYtTranscriptPlayerSeek=function(m){this.player&&this.player.seekTo(m,!0)};
_.w.onYtTranscriptPlayerReplay=function(m,G){this.player&&(this.player.addCueRange(g16(m),m,G),this.player.seekTo(m,!0),this.player.playVideo())};
_.w.onYtTranscriptPlayerEdit=function(m,G){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(g16(m),m,G),this.player.seekTo(m,!0))};
US.prototype.onLoadReloadContinuation=US.prototype.onLoadReloadContinuation;US.prototype.panelContentVisibleChanged=US.prototype.panelContentVisibleChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],US.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],US.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],US.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],US.prototype,"panelContentVisible",void 0);_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],US.prototype,"panelContentVisibleChanged",null);
_.x([_.XC("yt-load-reload-continuation"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],US.prototype,"onLoadReloadContinuation",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],US);
_.y(US,"ytd-transcript-renderer",function(){if(B7G!==void 0)return B7G;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return B7G=m},{mode:1});var K0z;var W06;var zA=function(){return _.d.apply(this,arguments)||this};
_.n(zA,_.d);zA.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.eD(this.hostElement,[this.data.clickCommand],this.hostElement))};
zA.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+(Tu()+mc)+"px)"};
zA.prototype.updateShouldHideFromBinding=function(m){this.shouldHide=m.detail.value};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zA.prototype,"rendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],zA.prototype,"shouldHide",void 0);_.x([_.Ye({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],zA);
_.y(zA,"ytd-ad-engagement-panel-banner-renderer",function(){if(W06!==void 0)return W06;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return W06=m},{mode:2});var L0D;var lz=function(){var m=_.d.apply(this,arguments)||this;m.buttonUpdate=_.F("web_modern_buttons");m.adsSemanticText=_.F("enable_ads_web_ep_buenos_aires_and_padding_fix");return m};
_.n(lz,_.d);lz.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.x([_.V(),_.S("design:type",Object)],lz.prototype,"data",void 0);_.x([_.V({computed:"computeHideDefaultAdBadge(data)"}),_.S("design:type",Boolean)],lz.prototype,"hideDefaultAdBadge",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lz.prototype,"buttonUpdate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],lz.prototype,"adsSemanticText",void 0);_.x([_.Ye({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],lz);
_.y(lz,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(L0D!==void 0)return L0D;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return L0D=m},{mode:1});var AFu;var BQ=function(){var m=_.d.apply(this,arguments)||this;m.darkerPanels=_.F("web_watch_darker_panels");m.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");m.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");m.headerClickListener=function(G){m.onHeaderClick(G)};
m.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return m};
_.n(BQ,_.d);_.w=BQ.prototype;_.w.computeAdsInfoButton=function(){if(_.F("web_modern_buttons")){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.subtitleComplex,VSE))==null?void 0:G.adInfoRenderer}};
_.w.updateHeaderClickListener=function(){var m,G,K;((m=this.data)==null?0:m.navigationEndpoint)||((G=this.data)==null?0:G.onClickCommand)||_.Q((K=this.data)==null?void 0:K.visibilityButton,_.h6)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.w.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}}}}}};
_.w.collapsedChanged=function(){var m;(m=this.data)!=null&&m.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.F("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.w.focus=function(m){var G=this;this.titleElement&&_.Fu.addJob(function(){_.ZD(G.titleElement,m)},0,500)};
_.w.computeTitleAriaLabel=function(m){var G=[];if(m.title){var K,W;G.push(this.ytRendererBehavior.getSimpleString(m.title)||((K=m.title.accessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label))}m.contextualInfo&&G.push(this.ytRendererBehavior.getSimpleString(m.contextualInfo));return G.join(" ")};
_.w.onHeaderClick=function(m){this.shouldTriggerHeaderClick(m)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.eD(this.hostElement,[this.data.onClickCommand],this.hostElement)):(m=this.getVisibilityToggleButton())&&m.click())};
_.w.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var m=_.Q(this.data.visibilityButton,_.uu)||_.Q(this.data.visibilityButton,_.h6);m&&this.ytRendererBehavior.logExplicitClick(m)}};
_.w.getVisibilityToggleButton=function(){var m=_.VL(this.hostElement).querySelector("#visibility-button").firstElementChild;return(m==null?void 0:m.is)==="ytd-toggle-button-renderer"?m:null};
_.w.shouldTriggerHeaderClick=function(m){return!_.b_(_.ve(m),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.w.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(m){m=_.Q(m,wrD);this.targetId&&(m==null?void 0:m.targetId)===this.targetId&&(m=m.navigationButton)&&this.set("data.navigationButton",m)};
_.e_.Object.defineProperties(BQ.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var m;return!!(((m=this.entity)==null?0:m.isActionButtonHidden)||this.hideActionButton)}}});
BQ.prototype.collapsedChanged=BQ.prototype.collapsedChanged;BQ.prototype.updateHeaderClickListener=BQ.prototype.updateHeaderClickListener;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],BQ.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],BQ.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],BQ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],BQ.prototype,"targetId",void 0);_.x([_.V(),_.S("design:type",Boolean)],BQ.prototype,"collapsed",void 0);_.x([_.V(),_.S("design:type",Boolean)],BQ.prototype,"hideActionButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],BQ.prototype,"shortsPanel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],BQ.prototype,"liveChatEngagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],BQ.prototype,"learningChatEngagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BQ.prototype,"darkerPanels",void 0);_.x([_.UM("#title"),_.S("design:type",HTMLElement)],BQ.prototype,"titleElement",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],BQ.prototype,"headerElement",void 0);
_.x([_.V({computed:"computeAdsInfoButton(data)"}),_.S("design:type",Object)],BQ.prototype,"adsInfoButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BQ.prototype,"enableSqueezebackPanels",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BQ.prototype,"enableAnchoredPanel",void 0);_.x([_.V({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(m,G){return _.yx(m.entities,"engagementPanelTitleHeaderEntity",G)}}),
_.S("design:type",Object)],BQ.prototype,"entity",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("targetId"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BQ.prototype,"adsSemanticText",null);_.x([_.Sb("data","data.navigationEndpoint","data.onClickCommand"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BQ.prototype,"updateHeaderClickListener",null);
_.x([_.Mg("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BQ.prototype,"collapsedChanged",null);_.x([_.E("entity","hideActionButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BQ.prototype,"isActionButtonHidden",null);_.x([_.Ye({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],BQ);
_.y(BQ,"ytd-engagement-panel-title-header-renderer",function(){if(AFu!==void 0)return AFu;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return AFu=m},{mode:1});var wKi;var M5=function(){return _.d.apply(this,arguments)||this};
_.n(M5,_.d);M5.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],M5.prototype,"data",void 0);_.x([_.Ye({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],M5);
_.y(M5,"ytd-macro-markers-info-item-renderer",function(){if(wKi!==void 0)return wKi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return wKi=m},{mode:1});var gcP;var TA=function(m,G,K,W,L,A){_.Lt.call(this);var O=this;this.JSC$21152_containerElement=m;this.hostElement=G;this.supportedSyncItems=K;this.syncEntityKey=W;this.options=L;this.renderLazyListItems=A;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;OIi(this);cFu(this);this.JSC$21152_scrollAnimation=new _.bi(function(c){m.scrollTop=c});
_.UR(this,this.JSC$21152_scrollAnimation);this.addOnDisposeCallback(function(){YI6(O,!1);O.activeItem&&O.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.n(TA,_.Lt);var OIi=function(m){var G=_.BB(_.xS().resolve(_.wR),function(K){return K.entities.markersEngagementPanelSyncEntity||{}},function(K,W){var L;
if(K[m.syncEntityKey]!==W[m.syncEntityKey]&&((L=K[m.syncEntityKey])==null?void 0:L.activeItemIndex)!==void 0)if(W=K[m.syncEntityKey].activeItemIndex,K=m.getItemByIndex(W)){if(rFP(m,K),m.contentVisible)if(m.browsingMode){var A;((A=m.options)==null?void 0:A.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(A=u8G(m),K.offsetTop<m.JSC$21152_containerElement.clientHeight+m.JSC$21152_containerElement.scrollTop&&A&&!m.activeItemBelowSyncPosition&&YI6(m,!1));hKz(m)}else m.scrollToItem(K)}else _.nc(new _.cw("Could not find "+
m.supportedSyncItems+" sync child to set active.",W,m.JSC$21152_containerElement.querySelectorAll(m.supportedSyncItems).length))});
m.unsubscribeFromTimedMarkersListSyncEntity=G;m.addOnDisposeCallback(G);pKz(m)},pKz=function(m){var G=_.xS().resolve(_.wR);
G=_.vpf(G.getState(),m.syncEntityKey);(G==null?void 0:G.activeItemIndex)!==void 0&&(G=m.getItemByIndex(G.activeItemIndex))&&rFP(m,G)},cFu=function(m){var G=new _.yO(m.onScroll,50,m);
_.UR(m,G);var K=function(){G.fire()};
m.JSC$21152_containerElement.addEventListener("scroll",K);m.addOnDisposeCallback(function(){m.JSC$21152_containerElement.removeEventListener("scroll",K)})};
TA.prototype.getItemByIndex=function(m){var G;(G=this.renderLazyListItems)==null||G.call(this,m);G=this.JSC$21152_containerElement.querySelectorAll(this.supportedSyncItems);if(G.length>m)return G[m]};
var rFP=function(m,G){m.activeItem&&m.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));G.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));m.activeItem=G};
TA.prototype.scrollToItem=function(m){m=this.getScrollPositionForItem(m);this.JSC$21152_containerElement.scrollTop!==m&&this.JSC$21152_scrollAnimation.start(this.JSC$21152_containerElement.scrollTop,m,300)};
TA.prototype.getScrollPositionForItem=function(m){if(this.JSC$21152_containerElement.querySelectorAll(this.supportedSyncItems)[0]===m)return 0;var G,K=((G=this.options)==null?0:G.percentOffset)?this.JSC$21152_containerElement.clientHeight*this.options.percentOffset:0;m=_.pB(m).y+this.JSC$21152_containerElement.scrollTop-(_.pB(this.JSC$21152_containerElement).y+K);return Math.max(0,Math.min(m,this.JSC$21152_containerElement.scrollHeight-this.JSC$21152_containerElement.offsetHeight))};
TA.prototype.onScroll=function(){this.activeItemBelowSyncPosition=u8G(this);if(this.activeItem&&!this.JSC$21152_scrollAnimation.isAnimating()&&Math.abs(this.JSC$21152_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var m;switch((m=this.options)==null?void 0:m.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":JFu(this,!NJD(this));hKz(this);break;default:JFu(this,!0)}}};
var JFu=function(m,G){var K,W;_.Y(function(L){if(L.nextAddress==1){if(m.browsingMode)return L.return();m.browsingMode=!0;G&&m.hostElement.classList.add("browsing-mode");m.playerExitBrowsingModeListener=function(){YI6(m,!1)};
return L.yield(_.Pp(),2)}K=L.yieldResult;(W=K)==null||W.addEventListener("SEEK_TO",m.playerExitBrowsingModeListener);_.ey(L)})},YI6=function(m,G){G=G===void 0?!0:G;
m.browsingMode&&(m.browsingMode=!1,m.hostElement.classList.remove("browsing-mode"),G&&m.scrollToItem(m.activeItem),DZs(m))},DZs=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return m.playerExitBrowsingModeListener?W.yield(_.Pp(),3):W.jumpTo(0);G=W.yieldResult;(K=G)==null||K.removeEventListener("SEEK_TO",m.playerExitBrowsingModeListener);m.playerExitBrowsingModeListener=void 0;_.ey(W)})},hKz=function(m){var G;
((G=m.options)==null?void 0:G.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(NJD(m)?m.hostElement.classList.remove("browsing-mode"):m.activeItem&&m.hostElement.classList.add("browsing-mode"))},u8G=function(m){if(!m.activeItem)return!1;
var G,K=((G=m.options)==null?0:G.percentOffset)?m.JSC$21152_containerElement.clientHeight*m.options.percentOffset:0;return m.activeItem.offsetTop>=m.JSC$21152_containerElement.scrollTop+K},NJD=function(m){if(!m.activeItem)return!1;
var G=m.activeItem.offsetTop+14<=m.JSC$21152_containerElement.scrollTop+m.JSC$21152_containerElement.clientHeight;return m.activeItem.offsetTop+m.activeItem.clientHeight-14>=m.JSC$21152_containerElement.scrollTop&&G};
TA.prototype.panelContentVisibleChanged=function(m){(this.contentVisible=m)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var t9E=function(m,G){m.syncEntityKey=G;var K;(K=m.unsubscribeFromTimedMarkersListSyncEntity)==null||K.call(m);OIi(m)},F06=function(m,G){m.options=G};var mY=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return m};
_.n(mY,_.d);_.w=mY.prototype;_.w.detached=function(){var m;(m=this.scrollController)==null||m.dispose();this.scrollController=void 0};
_.w.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"}}}};
_.w.dataChanged=function(){var m=this;_.Pv(this,function(){if(m.scrollController){var G;(G=m.scrollController)==null||YI6(G,!1);var K,W,L;(W=m.scrollController)==null||t9E(W,(L=(K=m.data)==null?void 0:K.syncModelEntityKey)!=null?L:"default-macro-markers-list-renderer-entity-key");var A,O,c;(c=m.scrollController)==null||F06(c,{percentOffset:(A=m.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(O=m.data)==null?void 0:O.floatingPillType})}else{var u,h,J,N;m.scrollController=
new TA(m.contents,m.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(N=(u=m.data)==null?void 0:u.syncModelEntityKey)!=null?N:"default-macro-markers-list-renderer-entity-key",{percentOffset:(h=m.data)==null?void 0:h.selectedItemAlignmentPercentOffset,floatingPillType:(J=m.data)==null?void 0:J.floatingPillType},function(D){m.renderLazyListItems(D)})}m.scrollController.panelContentVisibleChanged(!!m.panelContentVisible)})};
_.w.computeButtonShape=function(){var m=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){m.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.w.renderLazyListItems=function(m){for(var G=this.contents.children,K=0,W=0;W<G.length;W++){var L=void 0;(L=G[W].ytLazyListBehavior)==null||L.fillRemainingListItems();var A=void 0,O=void 0;L=_.Q((A=this.data)==null?void 0:(O=A.contents)==null?void 0:O[W],_.If0);O=A=void 0;if((A=L)==null?0:(O=A.contents)==null?0:O.length)K+=L.contents.length;if(K>=m)break}};
_.w.handleSetActivePanelItemAction=function(m){if((m=_.Q(m,JGq))&&this.panelTargetId===m.panelTargetId){m=m.itemIndex;var G,K,W=(K=(G=this.data)==null?void 0:G.syncModelEntityKey)!=null?K:"default-macro-markers-list-renderer-entity-key",L;((L=this.syncEntity)==null?void 0:L.activeItemIndex)!==m&&this.ytdReduxBehavior.dispatch(_.Bp("markersEngagementPanelSyncEntity",W,{key:W,activeItemIndex:m}))}};
_.w.onSyncClick=function(){var m;(m=this.scrollController)==null||YI6(m)};
_.w.panelContentVisibleChanged=function(){var m;(m=this.scrollController)==null||m.panelContentVisibleChanged(!!this.panelContentVisible)};
mY.prototype.panelContentVisibleChanged=mY.prototype.panelContentVisibleChanged;mY.prototype.dataChanged=mY.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],mY.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],mY.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mY.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],mY.prototype,"useCustomColors",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],mY.prototype,"panelTargetId",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],mY.prototype,"panelContentVisible",void 0);
_.x([_.UM("#contents"),_.S("design:type",HTMLElement)],mY.prototype,"contents",void 0);_.x([_.V({selectorArgs:["data.syncModelEntityKey"],selector:_.vpf}),_.S("design:type",Object)],mY.prototype,"syncEntity",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mY.prototype,"dataChanged",null);
_.x([_.Sb("panelContentVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mY.prototype,"panelContentVisibleChanged",null);_.x([_.Ye({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],mY);
_.y(mY,"ytd-macro-markers-list-renderer",function(){if(gcP!==void 0)return gcP;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return gcP=m},{mode:1});var Q6D;var aZq;var ia=function(){return _.d.apply(this,arguments)||this};
_.n(ia,_.d);ia.prototype.computeAriaLabel=function(m){var G,K;return(m==null?void 0:(G=m.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)||_.zq("LOADING",void 0,"Loading")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ia.prototype,"data",void 0);_.x([_.V({computed:"computeAriaLabel(data)"}),_.S("design:type",String)],ia.prototype,"ariaLabel",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],ia);
_.y(ia,"yt-content-loading-renderer",function(){if(aZq===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Q6D===void 0&&(Q6D=document.createElement("template"));var W=Q6D;K.call(G,W.content.cloneNode(!0),m.content.firstChild);aZq=m}m=aZq;return m},{mode:1});_.sh(_.P(function(m){var G=_.g(_.g_(!1,void 0,"OZMtVb")),K=G.next().value,W=G.next().value;G=_.g(_.g_(!1,void 0,"qWERsf"));var L=G.next().value,A=G.next().value;_.bX(function(){var u=_.Q(m.data().collaboratePlaylistCollaborationSetting,HuG);u&&W(u.switchedOnByDefault);var h=_.Q(m.data().allowNewCollaboratorsPlaylistCollaborationSetting,HuG);h&&A(h.switchedOnByDefault);if(!u&&!h||!u&&m.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")W(!0),A(!0)});
var O=function(u){W(u);A(u);var h=m.data().playlistCollaborationEntityKey||"";var J=_.nD().getState();(J=_.yx(J.entities,"playlistCollaborationEntity",h))&&(J==null?void 0:J.isCollaborative)===u||_.nD().dispatch(_.Bp("playlistCollaborationEntity",h,Object.assign({},J,{isCollaborative:u})))},c=function(u){A(u)};
return _.r("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.r("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.r(_.z$,{data:function(){return m.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.r(_.zE4,{data:u.data,
onSwitch:O})}})),_.r(_.p,{cond:K,
then:function(){return _.r(_.zL,null,_.r("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.r(_.z$,{data:function(){return m.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(u){return _.r(_.zE4,{data:u.data,
onSwitch:c,overrideDisabled:!1})}})),_.r(_.p,{cond:L,
then:function(){return _.r("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.r(_.z$,{data:function(){return m.data().copyLinkButton}},{buttonViewModel:_.kP}))}}),_.r("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.r(_.z$,{data:function(){return m.data().playlistCollaborators}},{contentListItemViewModel:uls})))}}))},"Aj"),"playlist-collaboration-view-model",{props:{data:_.Dd}});var ocW=_.P(function(m){var G=m.data;var K=m.customCommandResolver;return _.r(_.zL,null,_.r("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.r(_.z$,{data:function(){return G().adAvatar}},{adAvatarViewModel:function(W){return _.r(_.DsX,{data:W.data,
customCommandResolver:K})}})),_.r("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.r(_.p,{cond:function(){return G().headline},
then:function(W){return _.r(_.Nm,{text:W,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.r("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.r(_.z$,{data:function(){return G().adBadge}},{adBadgeViewModel:function(W){return _.r(_.yA,{data:W.data,
hasDot:function(){return G().primaryDetailsLine!==void 0},
customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.r(_.z$,{data:function(){return G().primaryDetailsLine}},{adDetailsLineViewModel:function(W){return _.r(_.eS,{data:W.data,
customCommandResolver:K,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Bj"),nci=_.P(function(m){var G=m.data;
var K=m.customCommandResolver;return _.r("ad-avatar-lockup-view-model",{class:function(){var W;return((W=G().interaction)==null?0:W.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.aC(_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_}),_.h3(function(){return G().interaction},K)),
"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r(_.tw,null,_.r(_.Jw,{when:function(){return G().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.r(ocW,{data:G,
customCommandResolver:K})}),_.r(_.NC,null,function(){return null})))},"Cj");_.sh(_.P(function(m){var G=m.data;var K=m.panelContentVisibility;m=_.eN({visibilityCallback:function(A){var O,c=(O=G().interaction)==null?void 0:O.onFirstVisible;A&&c&&_.h$(c)},
showOption:_.I_});var W=_.h3(function(){return G().interaction},cXs);
_.v4(function(){var A,O;if(O=_.Cn("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;O=(c=O())==null?void 0:c.onLayoutVisibleCallback}else O=null;(A=O)==null||A()},"Dj");
var L=function(){return K()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.r("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.aC(m,W)},_.r("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.r("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.r(_.p,{cond:_.vBG("(min-width: "+(Tu()+mc)+"px) or (max-width: 600px)"),then:function(){return _.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(A){return _.r(_.kU,{data:A.data,
targetHeight:80,customCommandResolver:cXs})}})}})),_.r("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.r("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.r(_.z$,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(A){return _.r(nci,{data:A.data,
customCommandResolver:cXs})}})),_.r(_.p,{cond:L,
then:function(){return _.r(_.z$,{data:function(){return G().adButton}},{adButtonViewModel:function(A){return _.r(_.Cf,{data:A.data,
customCommandResolver:cXs})}})},
else:function(){return _.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:_.kP})}}),_.r("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.r(_.z$,{data:function(){var A=_.Q(G().toggleButton,_.Dj);
return{toggleButtonViewModel:Object.assign({},A,{isTogglingDisabled:!0,isToggled:L()})}}},{toggleButtonViewModel:_.Gx})))))},"Ej"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Dd,
panelContentVisibility:_.Dd}});var bIW=_.P(function(m){return _.r("yt-feedback-prompt-view-model",{class:_.VO("ytFeedbackPromptViewModelHost",m.className)},_.r(_.p,{cond:function(){return m.data().text},
then:function(G){return _.r(_.Nm,{text:G,className:"ytFeedbackPromptViewModelPrompt"})}}),_.r(_.z$,{data:function(){return m.data().likeButton}},{likeButtonViewModel:function(G){return _.r(_.uC,{data:G.data,
className:"ytFeedbackPromptViewModelLikeButton"})}}),_.r(_.z$,{data:function(){return m.data().dislikeButton}},{dislikeButtonViewModel:_.r0}))},"Fj");var vcD=_.P(function(m){var G=void 0,K=function(){return m.data()},W=function(){return!!_.Gn(_.mF(K())).optionColor},L=_.g(_.g_(-1,void 0,"m6Iyqc")),A=L.next().value,O=L.next().value,c=function(D){return A()===D},u=function(D){return K().correctAnswerIndex===D},h=function(){return A()!==-1};
L=_.g(_.g_("",void 0,"jvMkLd"));var J=L.next().value,N=L.next().value;return _.r("yoututor-quiz-view-model",{class:_.VO("learningQuizComponentHost","learningYoututorQuizHost",m.className),style:_.eA({background:function(){return _.Gn(_.mF(K())).backgroundColor}})},_.r("div",{"aria-live":"polite",
class:"learningYoututorQuizVisuallyHidden"},J),_.r("div",{class:"learningQuizComponentQuizContainer"},_.r("div",{class:"learningQuizComponentQuiz"},_.r("div",{class:"learningQuizComponentQuizContent"},_.r(_.p,{cond:function(){return!!K().aiGeneratedQuizLabel},
then:function(){return _.r("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.r(_.Nm,{text:function(){return K().aiGeneratedQuizLabel}}))}}),_.r("div",{class:"learningQuizComponentQuizHeader"},_.r("div",{class:"learningQuizComponentQuizHeaderTextContainer"},_.r("div",{class:"learningYoututorQuizText",
style:_.eA({color:function(){return _.Gn(_.mF(K())).primaryTextColor}})},_.r(_.Nm,{text:function(){return K().questionHeaderText}}))))),_.r("div",{role:"group",
class:_.VO("learningQuizComponentQuizOptionsList","learningYoututorQuizOptionsListGap")},_.r(_.D0,{each:function(){return K().optionsData||[]}},function(D,t){var a={};
return _.r("button",{class:_.VO("learningQuizComponentQuizOptions","learningYoututorQuizOptionsGap","learningYoututorQuizOptionsBorderSquare",(a.learningQuizComponentQuizHover=function(){return!h()},a.learningQuizComponentQuizOptionWithCustomColor=W,a.learningYoututorQuizOptionSelectedCorrectOutline=function(){return h()&&u(t())},a.learningYoututorQuizOptionSelectedIncorrectOutline=function(){return A()!==K().correctAnswerIndex&&c(t())},a.learningQuizComponentQuizIncorrectShake=function(){return A()!==
K().correctAnswerIndex&&c(t())},a)),
"on:click":_.dn(function(){_.Jo(_.l1(),{data:D});if(h())return!1;O(t());N(u(t())?K().correctAnswerAriaLabel||"":K().incorrectAnswerAriaLabel||"");return!1}),
style:_.eA({background:"transparent"}),"aria-description":function(){return h()?u(t())?K().correctAnswerAriaLabel:K().incorrectAnswerAriaLabel:""},
"aria-disabled":h,el:_.aC(function(v){_.Km(271905,v,G,function(I){G=I})}),
"client-ve-type":271905},_.r("div",{class:"learningQuizComponentQuizOptionContainer"},_.r(_.Nm,{text:D.optionText}),_.r(_.p,{cond:function(){var v=t();return h()&&(c(v)||u(v))},
then:function(){var v={};return _.r(_.fN,{className:_.VO("learningYoututorQuizOptionIcon",(v.learningQuizComponentQuizPulse=function(){return A()===K().correctAnswerIndex&&u(t())},v)),
size:24,icon:function(){return u(t())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.r(_.p,{cond:h,
then:function(){return _.r("div",{class:"learningYoututorQuizExplanationContainer"},_.r("div",{class:"learningYoututorQuizExplanationText"},_.r(_.Nm,{text:function(){return K().explanationHeaderText}})),_.r(_.Nm,{text:function(){return K().optionsData[A()].explanationText},
className:"learningYoututorQuizExplanationDescriptionText"}))}})))))},"Gj");
vcD.idomCompat=!0;var $Z6=_.P(function(m){var G=m.thumbsUp,K=m.thumbsDown,W=m.rightAlignThumbs;m=_.g(_.g_(!1,void 0,"OxPsH"));var L=m.next().value,A=m.next().value;m=_.g(_.g_(!1,void 0,"V5vWne"));var O=m.next().value,c=m.next().value;m={};return _.r("div",{class:_.VO("ytwThumbsUpDownThumbs",(m.ytwThumbsUpDownRightAlign=function(){return W==null?void 0:W()},m))},_.r(_.Gx,{data:G,
onToggle:function(u){A(u);O()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:L()}}}),_.r(_.Gx,{data:K,
onToggle:function(u){c(u);L()&&A(!1)},
buttonShapeOverrides:function(){return{toggled:O()}}}))},"Hj");
$Z6.idomCompat=!0;var qIO=_.P(function(m){var G=function(){return m.data().pendingStateEntityKey||""},K=_.S5(rXs,G),W=function(){var c;
if(!(c=m.disabled())){var u;c=!((u=K())==null||!u.isPendingResponse)}return c},L=_.g(_.g_(uCD(""),void 0,"Q6q6y")),A=L.next().value,O=L.next().value;
_.nn(function(){requestAnimationFrame(function(){var c=m.data().onShowAnimationMs||0;c=c>0?uCD("--chip-animation-duration: "+c+"ms;"):uCD("");O(c)})});
return _.r("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:A},_.r(_.D0,{each:function(){return m.data().chipData||[]},
keyBy:"REFERENCE"},function(c){return _.r(s65,{data:c,disabled:W,pendingStateKey:G,onError:m.onError})}))},"Jj"),s65=_.P(function(m){var G=_.aP("button"),K=_.g(_.g_(!0,void 0,"baSFEf")),W=K.next().value,L=K.next().value,A=function(){return m.data().text.content},O=function(){return m.data().transparentWhenLoading},c=_.RC(_.DE.currentPageSubTypeSelector),u=function(){var J;
return(J=_.xS().resolve(_.fn(_.AJ)))==null?void 0:_.sbz(J,c())},h=_.dn(function(J){var N,D,t,a,v,I,Z,k;
return _.Y(function(z){switch(z.nextAddress){case 1:J.stopPropagation();if(m.disabled())return z.return();D=String(Math.floor(((N=_.yo())==null?void 0:N.getCurrentTime())||0)*1E3);t="youchat-"+Date.now();a=function(){_.YE(m.data().onClick||{});var X=B9G(m.data().continuation),f=RZ({clientMessageId:t,playerOffsetMs:D,pageContext:u()});return new Promise(function(U,l){_.YE(X,{form:{formData:f},commandController:{onSuccess:function(Ls,gd){U(gd)},
onServerError:function(Ls,gd){l(gd.error)}}})})};
v=uw6(m.pendingStateKey());v(!0);QvD("#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");L(!1);_.IO(z,2);return z.yield(a(),4);case 4:_.IG(z,3);break;case 2:I=_.ye(z),(k=(Z=m).onError)==null||k.call(Z,I);case 3:v(!1),_.ey(z)}})});
return _.r(_.p,{cond:W,then:function(){return _.r("div",{class:"ytwYouChatChipsDataChipWrapper"},_.r("button",{el:G,class:"ytwYouChatChipsDataChip","data-disabled":m.disabled,"data-transparent-loading":O,"on:click":h,tabindex:0},A))}})},"Kj");var Ec6=_.P(function(m){var G=m.data;var K=m.initiallyExpanded;var W=function(){var h;return(h=G().conversationResourceData)==null?void 0:h.learningGuideData};
m=_.g(_.EQ(function(){var h;return(h=K==null?void 0:K())!=null?h:!1}));
var L=m.next().value,A=m.next().value,O=function(){var h,J=_.Q((h=W())==null?void 0:h.expandButton,_.J6);J&&_.Jo(_.l1(),{data:J});A(!0)},c=_.pT(function(){var h,J;
return(J=(h=W())==null?void 0:h.sections)!=null?J:[]},void 0,"V7sYqc"),u=_.pT(function(){return c().length>4},void 0,"GFFPnd");
m=_.pT(function(){var h;return!L()&&u()&&(h=W())!=null&&h.expandButton?c().slice(0,4):c()},void 0,"Rbi7Ke");
return _.r("yt-conversation-resource-view-model",{class:_.VO("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.r(_.z$,{data:m},{expandableMetadataViewModel:_.eRu}),_.r(_.p,{cond:function(){return u()&&!L()},
then:function(){return _.r("div",{id:"showMoreButton"},_.r(_.z$,{data:function(){var h;return(h=W())==null?void 0:h.expandButton}},{buttonViewModel:function(h){return _.r(_.kP,{data:h.data,
onClick:O})}}))}}))},"Lj");var HID=_.P(function(m){var G=_.F("web_enable_youchat_ux_changes"),K=function(){var f,U;return((f=m.data().text)==null?void 0:f.content)||((U=m.data().textContent)==null?void 0:U.content)||""},W=function(){var f,U;
return(f=m.data().webData)==null?void 0:(U=f.textResult)==null?void 0:U.content},L=_.xS().resolve(_.t3),A=_.e5(),O=function(){return m.data().chatResponseStyle},c=function(){return!m.data().transparentBackground},u=function(){return m.data().rightAlignThumbs},h=function(){return m.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||m.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"||!!m.data().icon},
J=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:h()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:m.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},N=function(){var f,U;
return m.data().webData||((f=m.data().text)==null?void 0:f.content)||m.data().videoResultsData||m.data().conversationResourceViewModel||m.data().quiz||m.data().yoututorQuiz||m.data().richContent||m.data().content||((U=m.data().textContent)==null?void 0:U.content)},D=function(){return!!m.data().sectionHeader||N()},t=function(){return m.data().hideIcon||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?!1:D()},a=function(){var f;
return(f=m.data().videoResultsData)==null?void 0:f.videoShelf},v=function(){var f;
return(f=m.data().webData)==null?void 0:f.sourcesShelf},I=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:m.data().thumbsDownViewModel&&m.data().thumbsUpViewModel},Z=function(){return _.Q(m.data().thumbsUpViewModel,_.Dj)},k=function(){return _.Q(m.data().thumbsDownViewModel,_.Dj)},z=function(){return h()};
_.nn(function(){requestAnimationFrame(function(){var f;(f=m.shouldAnimateIcon)!=null&&f.call(m)&&JXD(A.lottieEl)})});
var X={};return _.r("you-chat-item-view-model",{class:_.VO("ytwYouChatItemViewModelYouChatItemViewModel",(X.ytwYouChatItemViewModelColumnLayout=z,X.ytwYouChatItemViewModelYouChatItemViewModelNoZIndex=G,X)),style:_.eA({"min-height":function(){var f,U;return YUi((f=m.containerHeight)==null?void 0:f.call(m),(U=m.isLastItem)==null?void 0:U.call(m))}}),
"data-target-id":function(){return m.data().id||""}},_.r(_.p,{cond:function(){return m.data().removeIcon||h()&&!t()?!1:D()},
then:function(){return _.r("div",{"aria-hidden":"true"},_.r(_.p,{cond:function(){return m.data().icon},
then:function(f){var U={};return _.r(_.oC,{data:f,className:_.VO("ytwYouChatItemViewModelIcon",(U.ytwYouChatItemViewModelIconVertical=z,U)),alt:""})},
else:function(){var f={};return _.r(_.yr,{className:_.VO("ytwYouChatItemViewModelIcon",(f.ytwYouChatItemViewModelRtl=L==="rtl",f.ytwYouChatItemViewModelHidden=function(){return!t()},f)),
animationName:"YOUCHAT_ICON",data:J,animationRef:A})}}))}}),_.r(_.p,{cond:D,
then:function(){var f={};return _.r("div",{class:_.VO("ytwYouChatItemViewModelHost",(f.ytwYouChatItemViewModelHostNoPadding=function(){return!!m.data().sectionHeader&&!N()},f.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},f.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return O()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
f.ytwYouChatItemViewModelGradientBackground=c,f.ytwYouChatItemViewModelHostAlignStart=function(){return!h()},f.ytwYouChatItemViewModelHostDefaultFlex=function(){return!h()},f)),
role:"alert"},_.r(_.p,{cond:K,then:function(U){return _.r(_.ah,{text:U,wrapCodeBlocks:!0})}}),_.r(_.z$,{data:function(){return m.data().sectionHeader}},{sectionHeaderViewModel:function(U){var l={};
return _.r(_.R4,{data:U.data,className:_.VO("ytwYouChatItemViewModelSectionHeader",(l.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!m.data().sectionHeader&&!N()},l)),
forceSmallLayout:!0})}}),_.r(_.p,{cond:W,
then:function(U){return _.r(_.ah,{text:U,wrapCodeBlocks:!0})}}),_.r(_.p,{cond:a,
then:function(){return _.r("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.r(_.z$,{data:function(){var U;return(U=m.data().videoResultsData)==null?void 0:U.videoShelf}},{horizontalShelfViewModel:function(U){return _.r(_.FW,{data:U.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.r(_.p,{cond:v,
then:function(){return _.r("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.r(_.z$,{data:function(){var U;return(U=m.data().webData)==null?void 0:U.sourcesShelf}},{horizontalShelfViewModel:function(U){return _.r(_.FW,{data:U.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.r(_.z$,{data:function(){return m.data().conversationResourceViewModel}},{conversationResourceViewModel:Ec6}),_.r(_.z$,{data:function(){return m.data().quiz}},{learningJourneyQuizViewModel:_.rVO}),_.r(_.z$,{data:function(){return m.data().yoututorQuiz}},{yoututorQuizViewModel:vcD}),_.r(_.z$,{data:function(){return m.data().richContent}},{cardViewModel:DJO,
linearLayoutViewModel:_.D$}),_.r(_.z$,{data:function(){return m.data().content}},{cardViewModel:DJO,
yoututorQuizViewModel:vcD,linearLayoutViewModel:_.D$,learningJourneyQuizViewModel:_.rVO,conversationResourceViewModel:Ec6}),_.r(_.p,{cond:I,then:function(){return _.r($Z6,{thumbsUp:Z,thumbsDown:k,rightAlignThumbs:u})}}))}}),_.r(_.p,{cond:function(){return m.data().chipsData},
then:function(f){return _.r(qIO,{data:f,disabled:m.pending,onError:m.onError})}}))},"Nj");
HID.idomCompat={callbacks:{onError:!0,onSend:!0}};_.IZG=_.P(function(m){var G=function(){var A;return((A=_.xS().resolve(_.fn(_.l_)))==null?0:A())&&m.data().darkThemeAnimation?Daz(m.data().darkThemeAnimation):m.data().animation?Daz(m.data().animation):m.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},K=_.e5(),W=_.xS().resolve(_.t3);
_.nn(function(){requestAnimationFrame(function(){var A;(A=K.lottieEl)==null||A.addEventListener("DOMLoaded",function(){var O;(O=m.onLottieLoaded)==null||O.call(m)})})});
var L={};return _.r("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){return m.data().targetId||""},
"aria-label":function(){return m.data().loadingAnimationA11yLabel||""},
role:function(){return m.data().loadingAnimationA11yLabel?"progressbar":void 0},
style:_.eA({"min-height":function(){var A,O;return YUi((A=m.containerHeight)==null?void 0:A.call(m),(O=m.isLastItem)==null?void 0:O.call(m))}})},_.r(_.yr,{"aria-hidden":"true",
className:_.VO((L.ytChatLoadingViewModelRtl=W==="rtl",L)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:G()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||G()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:G()}}},
animationRef:K}))},"Pj");_.j6q=_.P(function(m){var G=function(){return m.data().choiceSelectedText};
return _.r("yt-chat-user-turn-view-model",{class:"ytChatUserTurnViewModelHost",style:_.eA({"min-height":function(){var K,W;return YUi((K=m.containerHeight)==null?void 0:K.call(m),(W=m.isLastItem)==null?void 0:W.call(m))}}),
"data-target-id":function(){var K;return(K=m.data().itemTargetId)!=null?K:""}},_.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"ytChatUserTurnViewModelChoiceSelected"},_.r(_.Nm,{text:G}))}}),_.r("div",{class:_.VO("ytChatUserTurnViewModelUserMessage",function(){return tqP(m.data())})},function(){return m.data().text}))},"Qj");var kO6=_.P(function(m){var G=_.g((0,_.$iS)(m.data)).next().value,K=function(){var W,L;return(L=(W=G().contents)==null?void 0:W.length)!=null?L:0};
return _.r("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return m.data().targetId||""},
"aria-busy":function(){var W,L;return(L=(W=G().contents)==null?void 0:W.some(function(A){return!!A.chatLoadingViewModel}))!=null?L:!1}},_.r(_.z$,{data:function(){return m.data().header}},{chipBarViewModel:_.E_0,
sectionHeaderViewModel:_.R4}),_.r(_.z$,{data:function(){return G().contents}},{accordionViewModel:_.JVO,
alertBannerViewModel:_.ZXR,chatLoadingViewModel:function(W,L){return _.r(_.IZG,{data:W.data,containerHeight:m.containerHeight,isLastItem:function(){return L()===K()-1}})},
chatUserTurnViewModel:function(W,L){return _.r(_.j6q,{data:W.data,containerHeight:m.containerHeight,isLastItem:function(){return L()===K()-1}})},
feedbackPromptViewModel:bIW,gridShelfViewModel:function(W){return _.r(_.h0,{data:W.data,shouldUseOwnContainerSize:!0,marginSettings:m.marginSettings,useUpdatedMargin:!0})},
learningJourneyLoaderViewModel:_.gGz,linearLayoutViewModel:_.D$,lockupViewModel:function(W){return _.r(_.xU,{data:W.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:m.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.R4,videoOverviewViewModel:_.vGW,youChatItemViewModel:function(W,L){return _.r(HID,{data:W.data,pending:!1,containerHeight:m.containerHeight,isLastItem:function(){return L()===K()-1}})}}))},"Rj");_.sh(_.P(function(m){var G=_.g((0,_.$iS)(m.data)).next().value,K=_.g(_.BR()),W=K.next().value;K=K.next().value;var L=_.aC(K);K=_.g(_.g_(void 0,void 0,"fqbUqd"));var A=K.next().value,O=K.next().value,c=function(){var u;return _.Q((u=m.data().sectionListLayoutConfiguration)==null?void 0:u.layoutConfiguration,tu6)};
_.bX(function(){var u,h=(u=L.value)==null?void 0:u.clientWidth;u=c()?_.WVd(h,c()):void 0;O(u)});
K={};return _.r("yt-section-list-renderer",{class:_.VO("ytSectionListRendererHost",m.className,(K.ytSectionListRendererHostOverscrollContain=function(){var u;return(u=m.overscrollContain)==null?void 0:u.call(m)},K)),
el:L,"data-target-id":function(){return m.data().targetId||""}},_.r(_.z$,{data:function(){return G().contents}},{itemSectionRenderer:function(u){return _.r(kO6,{data:u.data,
containerLayoutConfig:A,marginSettings:m.marginSettings,containerHeight:function(){return W.height()}})}}))},"Sj"),"yt-section-list-renderer",{props:{data:_.Dd,
className:_.nN,marginSettings:_.Dd,overscrollContain:_.Dd}});_.sh(_.P(function(m){var G=function(){return _.Q(m.data().inputComposerViewModel,akz)},K=_.RC(_.DE.currentPageSubTypeSelector),W=_.RC(_.DE.persistentPanelVisibleSelector),L=_.g(_.g_(!1,void 0,"RXGzYc")),A=L.next().value,O=L.next().value;
L=_.g(_.g_(!1,void 0,"oyonKd"));var c=L.next().value,u=L.next().value,h=function(){v(!0);var DF;_.h$(((DF=G())==null?void 0:DF.onSubmitCommand)||{})},J=function(){if(W()&&!c()){var DF;
(DF=_.yo())==null||DF.removeCueRange("aic-proactive");O(!1);u(!0);h();_.YE(B9G(G().endOfVideoContinuation),{form:{formData:RZ({clientMessageId:"youchat-"+Date.now(),pageContext:Qf()})},commandController:{onSuccess:function(){v(!1)},
onServerError:function(){_.YE(zHD(z()));v(!1)}}})}},N=function(){var DF=_.yo();
if(DF&&!A()&&!c()){var kG=DF.getDuration();kG>60&&(DF.addCueRange("aic-proactive",kG-60,kG-20),O(!0))}},D=function(){var DF;
return((DF=G())==null?void 0:DF.youchatPendingResponseEntityKey)||""},t=_.S5(rXs,D),a=function(){var DF;
return!((DF=t())==null||!DF.isPendingResponse)},v=function(DF){uw6(D())(DF)};
L=_.g(_.g_(!0,void 0,"umCoCf"));var I=L.next().value,Z=L.next().value,k=function(){var DF,kG;var eo=_.Q((kG=G())==null?void 0:kG.inputFormField,GwW);return eo==null?void 0:(DF=eo.contentProperties)==null?void 0:DF.placeholderText},z=function(){return G().sectionTargetId||"youchat_messages_section"};
L=_.aP("yt-chat-input-view-model");var X=_.Q3("textarea"),f=_.S5(h3i,"chat_input_view_model_state"),U=pYu(),l=function(){var DF;return!((DF=f())==null||!DF.value)},Ls=function(){return m.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},gd=function(){var DF;
(DF=_.yo())==null||DF.removeCueRange("aic-proactive");O(!1);u(!1);var kG;_.F("enable_navigational_proactive_messages_on_ai_companion")&&((kG=G())==null?0:kG.navigationContinuation)&&W()&&(h(),_.YE(B9G(G().navigationContinuation),{form:{formData:RZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Qx6(),pageContext:Qf()})},commandController:{onSuccess:function(){v(!1)},
onServerError:function(){_.YE(zHD(z()));v(!1)}}}))},Qf=function(){var DF;
return(DF=_.xS().resolve(_.fn(_.AJ)))==null?void 0:_.sbz(DF,K())};
_.bX(function(){if(_.Zk("enable_ai_chat_controller")){var DF;(DF=_.xS().resolve(_.fn(_.AJ)))==null||DF.init(m.data().environment)}else if(DF=o1i(m.data()),!l()&&DF){var kG;((kG=G())==null?0:kG.setPendingResponseOnWelcome)&&v(!0);_.YE(DF,{form:{formData:RZ({clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Qx6(),pageContext:Qf()})}});U(!0)}var eo=z(),xG=_.xS().resolve(_.fn(_.eG)),Ji=function(){_.UT.remove(eo);if(_.Zk("enable_ai_chat_controller")){var So;(So=_.xS().resolve(_.fn(_.AJ)))!=null&&So.environment===
"CHAT_ENVIRONMENT_ENUM_YOUCHAT"&&(So.lastWelcomeContinuationSent=void 0)}else U(!1)},rK=function(){_.w_(function(){if(Ls()&&(gd(eo),K()==="watch")){var So=_.yo();
So&&(So.addEventListener("onStateChange",N),So.addEventListener("onCueRangeEnter",J))}})};
kG=_.F("enable_ai_companion")?!Ls():!0;xG==null||xG.addEventListener("yt-navigate-start",Ji,{once:kG});xG==null||xG.addEventListener("yt-navigate-finish",rK,{once:kG});_.sZ(function(){xG==null||xG.removeEventListener("yt-navigate-start",Ji);xG==null||xG.removeEventListener("yt-navigate-finish",rK);var So=_.yo();So&&(So.removeEventListener("onCueRangeEnter",J),So.removeEventListener("onStateChange",N),So.removeCueRange("aic-proactive"))})});
_.$O(function(){if(_.Zk("enable_ai_chat_controller")){var DF=o1i(m.data());if(DF){var kG,eo=((kG=G())==null?0:kG.setPendingResponseOnWelcome)?v:void 0,xG;(xG=_.xS().resolve(_.fn(_.AJ)))==null||hA6(xG,{command:DF,setPending:eo})}}},"SXTMBe");
var JV=function(){var DF=X.value.value;X.value.value="";FF6(X.value);var kG,eo=((kG=G())==null?void 0:kG.enableGradientColorBg)||!1,xG;kG=lQE(z(),DF,eo,(xG=G())==null?void 0:xG.chatUserTurnBackgroundStyle);_.YE(kG);h();var Ji,rK,So;xG=(So=_.c8((Ji=m.data())==null?void 0:Ji.sendUserQueryCommand))!=null?So:B9G((rK=G())==null?void 0:rK.continuation);_.YE(xG,{form:{formData:RZ({clientMessageId:"youchat-"+Date.now(),userInputText:DF,playerOffsetMs:Qx6(),pageContext:Qf()})},commandController:{onSuccess:function(){v(!1)},
onServerError:function(){_.YE(zHD(z()));v(!1)}}})};
return _.r("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:L},_.r("div",{class:"chatInputViewModelChatInputWrapper"},_.r("form",{class:"chatInputViewModelChatInputForm"},_.r("textarea",{class:"chatInputViewModelChatInput",el:X,"on:keydown":_.dn(function(DF){var kG=a()||!1;FF6(X.value);kG||DF.key!=="Enter"||DF.shiftKey||(DF.preventDefault(),JV());return!1}),
"on:keyup":_.dn(function(){Z(X.value.value.length===0);return!1}),
"aria-label":function(){if(a()){var DF,kG;return((DF=G())==null?void 0:(kG=DF.loadingConfig)==null?void 0:kG.loadingAnimationA11yLabel)||""}return k()},
placeholder:k,rows:1}),_.r(_.kP,{data:function(){return _.Q(m.data().sendButton,_.J6)},
onClick:function(DF){DF.preventDefault();JV();Z(X.value.value.length===0)},
buttonOverrides:function(){return{disabled:I()||a()}}})),_.r(_.Nm,{className:"chatInputViewModelChatDisclaimer",
text:function(){var DF;return m.data().disclaimerText||((DF=_.Q(m.data().disclaimer,_.jq2))==null?void 0:DF.text)}})))},"Uj"),"yt-chat-input-view-model",{props:{data:_.Dd}});var CRD=["engagement-panel-clip-create","engagement-panel-clip-view"],V9D=0,GD=function(){var m=_.d.apply(this,arguments)||this;var G;m.headerData=(G=m.data)==null?void 0:G.header;m.darkerPanels=_.F("web_watch_darker_panels");m.matchContentTheme=_.F("web_watch_panel_content_match_theme");m.disableAutoFill=!1;m.isFullscreen=!1;m.isTheaterMode=!1;m.liveChatReplyPanel=!1;m.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");m.disableBackdropFilter=_.F("web_disable_backdrop_filter");m.isPersistentPanel=
!1;m.trackEngagementPanelVisibility=_.F("web_watch_track_engagement_panel_visibility");m.overscrollContain=!1;m.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 m};
_.n(GD,_.d);_.w=GD.prototype;
_.w.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(m){var G;return(m==null?void 0:(G=m.webComponentHint)==null?void 0:G.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]",overscrollContain:"[[overscrollContain]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.w.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var m;if((m=this.hostElement.parentElement)==null?0:m.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.w.detached=function(){this.updateTheaterDisablement()};
_.w.showPanel=function(){var m=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Fu.addJob(function(){m.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.w.maybeScrollToItemSection=function(m){var G=this,K,W=m==null?void 0:(K=m.sectionListEngagementPanelExtras)==null?void 0:K.scrollToItemSectionIdentifier;W&&_.Fu.addJob(function(){var L;(L=G.sectionListRendererElement)==null||L.scrollToItemSection(W)},8)};
_.w.hidePanel=function(){var m=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Fu.addJob(function(){m.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.w.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.w.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.w.updatePanel=function(m,G,K,W){var L=this;if((m=m==null?void 0:m.engagementPanelSectionListRenderer)||W){if(m){W=m.header;var A=m.content,O=m.footer,c=m.targetId,u=m.onShowCommands;m=m.onHideCommands;c&&this.set("data.targetId",c);W&&this.set("data.header",W);A&&this.set("data.content",A);O&&this.set("data.footer",O);_.F("enable_on_visibility_change_commands_for_panels")&&(u&&this.set("data.onShowCommands",u),m&&this.set("data.onHideCommands",m))}else W&&(m=W.content,A=W.secondaryHeaderContent,
O=W.targetId,W=W.loggingDirectives,O&&this.set("data.targetId",O),m&&this.set("data.content",m),W&&_.F("web_update_panel_visibility_logging_fix")&&this.set("data.loggingDirectives",W),A&&(this.secondaryHeaderData=A));this.updateChildVisibilityProperties();if(G){var h;_.F("kevlar_update_panel_focus_scroll_killswitch")||(h={preventScroll:!0});this.focus(h)}_.Pv(this,function(){_.Zw(L.hostElement,"yt-refit");L.maybeScrollToItemSection(K)})}};
_.w.computeHeaderData=function(){var m,G=(0,_.Y2.unsafeClone)((m=this.data)==null?void 0:m.header);if(G){m=new _.$W(Object.keys(G)[0]);var K=_.Q(G,m),W=_.Q(this.secondaryHeaderData,m);W&&_.LN(G,m,Object.assign({},W,K))}return G};
_.w.getReloadContinuation=function(){var m,G,K,W=_.g(((m=this.data)==null?void 0:(G=m.content)==null?void 0:(K=G.sectionListRenderer)==null?void 0:K.continuations)||[]);for(m=W.next();!m.done;m=W.next())if(m=m.value,m.reloadContinuationData)return m.reloadContinuationData.continuation};
_.w.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var m;((m=this.data)==null?0:m.targetId)&&(m=this.contentElement.firstElementChild)&&m.setAttribute("panel-target-id",this.data.targetId)};
_.w.forwardPopupClosedToFlowRootRenderer=function(){var m=_.VL(this.hostElement).querySelector("ytd-flow-root-renderer");if(m&&this.hostElement.closest("ytd-popup-container"))m.onPopupClosed()};
_.w.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var m;if(!CRD.includes((m=this.theaterDisablementPanelIdentifier)!=null?m:""))if(m=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode,m=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||m,_.F("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||m){var G;this.visibility=(G=this.data)==null?void 0:G.visibility;var K;this.trackEngagementPanelVisibility&&((K=this.data)==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var W,L,A,O;this.contentEmpty=!!(((W=this.data)==null?0:(L=W.content)==null?0:L.structuredDescriptionContentRenderer)&&Object.keys((A=this.data)==null?void 0:(O=A.content)==null?void 0:
O.structuredDescriptionContentRenderer).length===0);(G=_.xS().resolve(_.Wx))&&G.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.w.isTheaterModeChanged=function(){_.F("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.w.isFullscreenChanged=function(){_.F("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.isAiCompanionPanel||this.hidePanel())};
_.w.focus=function(m){if(this.header)this.header.focus(m);else{var G;(G=_.VL(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||G.focus(m)}};
_.w.visibilityChanged=function(){if(!_.F("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var m=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",W=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=W||!this.lastVisibility,A,O,c,u=((A=this.data)==null?void 0:(O=A.identifier)==null?void 0:
O.tag)||((c=this.data)==null?void 0:c.panelIdentifier);if(m&&L){var h;if((h=this.data)==null?0:h.onShowCommands)if(_.F("enable_on_visibility_change_commands_for_panels"))for(G=_.g(this.data.onShowCommands),K=G.next();!K.done;K=G.next())this.ytComponentBehavior.resolveCommand(K.value);else _.eD(this.hostElement,this.data.onShowCommands,this.hostElement);u&&_.$R().dispatch(_.kt({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:u}}))}else if(G&&K){var J;if((J=this.data)==null?0:J.onHideCommands)if(_.F("enable_on_visibility_change_commands_for_panels"))for(G=
_.g(this.data.onHideCommands),K=G.next();!K.done;K=G.next())this.ytComponentBehavior.resolveCommand(K.value);else _.eD(this.hostElement,this.data.onHideCommands,this.hostElement);u&&_.$R().dispatch(_.kt({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:u}}))}m&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*V9D++));_.F("kevlar_watch_focus_on_engagement_panels")&&m&&W&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.w.notifyVisibilityChanged=function(m){var G;_.PH(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,m,(G=this.data)==null?void 0:G.targetId]);if(_.F("autonav_pause_for_comments_ep")){var K;_.Zw(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:m==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(K=this.data)==null?void 0:K.targetId})}};
_.w.updateTheaterDisablement=function(){if(!_.F("kevlar_watch_theater_disablement_killswitch")){var m=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&CRD.includes(m)&&!_.F("watch_next_grid_ignore_disallowed_panels")){var G=_.wq(_.$R().getState()),K=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";m!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():K?(this.originalTheaterState===void 0&&(this.originalTheaterState=G,this.theaterDisablementPanelIdentifier=
m),G&&_.dU(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.w.clearTheaterDisablement=function(){_.dU(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.w.updateChildVisibilityProperties=function(){this.hostElement||_.F("kevlar_panel_property_init_killswitch")||this._enableProperties();var m=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=m);var G,K=(G=this.headerElement)==null?void 0:G.firstElementChild;if(K&&!this.adHeaderImageLockupViewModel){G=m==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";K.collapsed=G;K=_.VL(K).querySelector("#visibility-button");if(!K)return;(K=K.firstElementChild)&&
K.polymerController.is==="ytd-toggle-button-renderer"&&K.polymerController.data.isToggled!==G&&K.polymerController.set("data.isToggled",G)}var W;if(G=(W=this.contentElement)==null?void 0:W.firstElementChild)if(m&&m!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")G.removeAttribute("panel-content-visible");else{G.setAttribute("panel-content-visible","");var L;(L=G.markDirty)==null||L.call(G)}};
_.w.onYtChangeEngagementPanelVisibilityAction=function(m){var G=this,K,W=(K=this.data)==null?void 0:K.targetId,L,A,O;K=((L=this.data)==null?void 0:(A=L.identifier)==null?void 0:A.tag)||((O=this.data)==null?void 0:O.panelIdentifier);var c=_.Q(m,_.Bvl),u;m=W&&(c==null?void 0:c.targetId)===W||K&&(c==null?void 0:(u=c.panelIdentifier)==null?void 0:u.tag)===K;this.dialog&&m&&(c==null?void 0:c.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W==="engagement-panel-comments-section"?_.dU(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.dU(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",K]));!_.F("kevlar_use_engagement_panel_management_component")&&m&&(W=c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!W?_.Fu.addJob(function(){G.visibility=c.visibility},2,this.hideDelayMs):this.visibility=c.visibility,c.visibility&&this.notifyVisibilityChanged(c.visibility))};
_.w.onYtScrollToEngagementPanelCommand=function(m){var G,K=(G=this.data)==null?void 0:G.targetId,W,L,A;G=((W=this.data)==null?void 0:(L=W.identifier)==null?void 0:L.tag)||((A=this.data)==null?void 0:A.panelIdentifier);m=_.Q(m,_.cdS);var O;(K&&(m==null?void 0:m.targetId)===K||G&&(m==null?void 0:(O=m.panelIdentifier)==null?void 0:O.tag)===G)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.dU(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.w.attachVEs=function(m){var G,K;(m==null?0:(G=m.content)==null?0:(K=G.productListRenderer)==null?0:K.trackingParams)&&_.l1().graftServerVe(m.content.productListRenderer.trackingParams);var W,L;(m==null?0:(W=m.content)==null?0:(L=W.transcriptRenderer)==null?0:L.trackingParams)&&_.l1().graftServerVe(m.content.transcriptRenderer.trackingParams)};
_.w.onYtUpdateEngagementPanelAction=function(m){var G,K=(G=this.data)==null?void 0:G.targetId;m=_.Q(m,Do5);K&&(m==null?void 0:m.targetId)===K&&(this.updatePanel({engagementPanelSectionListRenderer:{header:m==null?void 0:m.header,content:m==null?void 0:m.content}},!1),this.attachVEs(m))};
_.w.onYtShowEngagementPanelScrimAction=function(m){var G,K=(G=this.data)==null?void 0:G.targetId;m=_.Q(m,NIi);K&&(m==null?void 0:m.engagementPanelTargetId)===K&&(this.scrimmed=!0)};
_.w.onYtHideEngagementPanelScrimAction=function(m){var G,K=(G=this.data)==null?void 0:G.targetId;m=_.Q(m,Y9D);K&&(m==null?void 0:m.engagementPanelTargetId)===K&&(this.scrimmed=!1)};
_.w.getIdentifier=function(){var m,G,K;return((m=this.data)==null?void 0:m.panelIdentifier)||((G=this.data)==null?void 0:(K=G.identifier)==null?void 0:K.tag)};
_.w.getSurface=function(){var m,G;return(m=this.data)==null?void 0:(G=m.identifier)==null?void 0:G.surface};
_.e_.Object.defineProperties(GD.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var m=this.getIdentifier();return m==="engagement-panel-youchat"||m==="PAyouchat"}},
isAiCompanionPanel:{configurable:!0,enumerable:!0,get:function(){return this.getIdentifier()==="PAai_companion"}}});
GD.prototype.visibilityChanged=GD.prototype.visibilityChanged;GD.prototype.isFullscreenChanged=GD.prototype.isFullscreenChanged;GD.prototype.isTheaterModeChanged=GD.prototype.isTheaterModeChanged;GD.prototype.dataChanged=GD.prototype.dataChanged;GD.prototype.forwardPopupClosedToFlowRootRenderer=GD.prototype.forwardPopupClosedToFlowRootRenderer;GD.prototype.onYtRendererstamperFinished=GD.prototype.onYtRendererstamperFinished;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],GD.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],GD.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],GD.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],GD.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],GD.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"data",void 0);_.x([_.V({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.S("design:type",Object)],GD.prototype,"headerData",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"secondaryHeaderData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"visibility",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"contentEmpty",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"scrimmed",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"dialog",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"dropdown",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"darkerPanels",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"matchContentTheme",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"disableAutoFill",void 0);_.x([_.V({reflectToAttribute:!0,value:_.F("optimal_reading_width_comments_ep")}),_.S("design:type",Boolean)],GD.prototype,"optimalReadingWidthComments",void 0);_.x([_.V(),_.S("design:type",Number)],GD.prototype,"hideDelayMs",void 0);
_.x([_.V({selector:_.gq,reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"isFullscreen",void 0);_.x([_.V({selector:_.wq,reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"isTheaterMode",void 0);_.x([_.V(),_.S("design:type",Number)],GD.prototype,"showDelayMs",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.targetId"),_.S("design:type",Object),_.S("design:paramtypes",[])],GD.prototype,"targetId",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],GD.prototype,"webSize",null);_.x([_.V(),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],GD.prototype,"hideFooterBorder",null);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"isWatch",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"originalTheaterState",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"theaterDisablementPanelIdentifier",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"isWatchWhilePanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"shortsPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"liveChatEngagementPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],GD.prototype,"learningChatEngagementPanel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"liveChatReplyPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"enableAnchoredPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"disableBackdropFilter",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],GD.prototype,"isPersistentPanel",void 0);_.x([_.V(),_.S("design:type",Object)],GD.prototype,"trackEngagementPanelVisibility",void 0);
_.x([_.V(),_.S("design:type",Object)],GD.prototype,"overscrollContain",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],GD.prototype,"isAiCompanionPanel",null);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],GD.prototype,"headerElement",void 0);_.x([_.UM("#header > *"),_.S("design:type",HTMLElement)],GD.prototype,"header",void 0);_.x([_.UM("ytd-section-list-renderer"),_.S("design:type",Object)],GD.prototype,"sectionListRendererElement",void 0);
_.x([_.UM("panel-ad-header-image-lockup-view-model"),_.S("design:type",HTMLElement)],GD.prototype,"adHeaderImageLockupViewModel",void 0);_.x([_.UM("#content"),_.S("design:type",HTMLElement)],GD.prototype,"contentElement",void 0);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"onYtRendererstamperFinished",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.x([_.Mg("data","isFullscreen","isTheaterMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"dataChanged",null);_.x([_.Sb("isTheaterMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"isTheaterModeChanged",null);
_.x([_.Sb("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"isFullscreenChanged",null);_.x([_.Sb("visibility"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GD.prototype,"visibilityChanged",null);_.x([_.Ye({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],GD);
_.y(GD,"ytd-engagement-panel-section-list-renderer",function(){if(K0z!==void 0)return K0z;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return K0z=m},{mode:2});var ZIu;var Ko=function(){var m=_.d.apply(this,arguments)||this;m.rounded=!0;m.pageAttachedTo=void 0;m.currentRequestResolver=void 0;m.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return m};
_.n(Ko,_.d);Ko.prototype.attached=function(){this.pageAttachedTo=_.xS().resolve(_.$g).getCurrentPage();_.Zw(this.hostElement,"yt-player-attached",this.player)};
Ko.prototype.detached=function(){var m;if((m=this.pageAttachedTo)==null?0:m.hostElement)_.Zw(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Ko.prototype.dataChanged=function(){var m=this,G;if(((G=this.data)==null?0:G.inlinePlaybackEndpoint)&&!_.F("web_channel_imp_ks")){this.currentRequestResolver&&this.currentRequestResolver.reject();G=this.data.inlinePlaybackEndpoint;var K=_.xS().resolve(_.Tv),W={};_.xS().resolve(_.zk);W.lact=_.Xu();var L=new _.yY;this.currentRequestResolver=L;L.promise.then(function(A){var O={autoplay:!0};!_.F("miniplayer_stop_channel_video_autoplay_killswitch")&&_.xS().resolve(_.pY).isMiniplayerActive()&&(O.pause_at_start=
!0,O.autoplay=!1);A&&m.player.loadVideoWithPlayerResponse(A,O)});
k_D(K,{endpoint:G,startPlaybackInMutedState:!1},W).then(function(A){L.resolve(A)}).catch(function(){})}else if((K=this.data)==null?0:K.videoId)G={video_id:this.data.videoId,
autoplay:!0},!_.F("miniplayer_stop_channel_video_autoplay_killswitch")&&_.xS().resolve(_.pY).isMiniplayerActive()&&(G.pause_at_start=!0,G.autoplay=!1),this.player.loadVideoWithPlayerVars(G)};
Ko.prototype.handleSignalActionPausePlayer=function(){_.ET().pause()};
Ko.prototype.dataChanged=Ko.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],Ko.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ko.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ko.prototype,"rounded",void 0);_.x([_.UM("#player"),_.S("design:type",Object)],Ko.prototype,"player",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ko.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Ko);
_.y(Ko,"ytd-channel-video-player-renderer",function(){if(ZIu!==void 0)return ZIu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZIu=m},{mode:1});var dZ6;var WV=function(){return _.d.apply(this,arguments)||this};
_.n(WV,_.d);WV.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Np(_.VL(this.hostElement).querySelector("#text"),_.KiX(_.AIB,this.data.companionLegalText))};
WV.prototype.computeAutoScrollEnabled=function(m,G){return m&&!G};
WV.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
WV.prototype.onToggleTap=function(){this.expanded=!this.expanded};
WV.prototype.expandedChanged=WV.prototype.expandedChanged;WV.prototype.dataChanged=WV.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.x([_.q(gHP),_.S("design:type",Object)],WV.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],WV.prototype,"expanded",void 0);
_.x([_.V({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.S("design:type",Boolean)],WV.prototype,"autoScrollEnabled",void 0);_.x([_.V(),_.S("design:type",String)],WV.prototype,"expanderIcon",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WV.prototype,"dataChanged",null);
_.x([_.Sb("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WV.prototype,"expandedChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],WV);
_.y(WV,"ytd-companion-legal-text-renderer",function(){if(dZ6!==void 0)return dZ6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dZ6=m},{mode:1});var PRG;var Lo=function(){var m=_.d.apply(this,arguments)||this;m.buttonUpdate=_.F("web_modern_buttons");m.kevlarWatchGrid=_.F("kevlar_watch_grid");m.centerAlignDescription=_.F("action_companion_center_align_description");m.truncateDomain=_.F("action_companion_truncate_domain");m.enableMonoStyle=_.F("enable_default_mono_cta_migration_web_client");return m};
_.n(Lo,_.d);_.w=Lo.prototype;_.w.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.w.getOnLayoutVisibleCallback=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.layoutId:null};
_.w.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Lo.JSC$21241_DEFAULT_AD_BADGE_RENDERER);var m=this.getOnLayoutVisibleCallback();m&&m()}};
_.w.getButtonRenderer=function(m){return m.actionButton&&_.Q(m.actionButton,_.uu)?(delete _.Q(m.actionButton,_.uu).navigationEndpoint,_.Q(m.actionButton,_.uu)):{}};
_.w.onClick=function(m){var G=this;if((!_.F("web_modern_buttons")||!_.b_(_.ve(m),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){m=_.qW();var K=this.getLayoutId();m&&K&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?m.getPlayerPromise().then(function(W){(new _.Ae(W)).executeCommand(G.data.navigationEndpoint,K)}):_.F("kevlar_companion_resolve_command_killswitch")?_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.dU(this.hostElement,"yt-companion-ad-clicked",["action-companion",K])}};
_.e_.Object.defineProperties(Lo.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?0:(G=m.detailsLine)==null?0:(K=G.adRating)==null?0:K.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 m,G,K,W;return((m=this.data)==null?0:(G=m.detailsLine)==null?0:(K=G.adRating)==null?0:(W=K.ratingIcon)==null?0:W.iconType)?_.ew(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return((m=this.data)==null?0:(G=m.detailsLine)==null?0:(K=G.texts)==null?0:(W=K[0])==null?0:W.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 m,G;return((m=this.data)==null?0:(G=m.description)==null?0:G.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var m=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return m?m.indexOf("/default_banner")!==-1:!0}}});
Lo.prototype.onClick=Lo.prototype.onClick;Lo.prototype.dataChanged=Lo.prototype.dataChanged;Lo.JSC$21241_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lo.prototype,"rendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lo.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lo.prototype,"buttonUpdate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lo.prototype,"kevlarWatchGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lo.prototype,"centerAlignDescription",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lo.prototype,"truncateDomain",void 0);
_.x([_.V({computed:"computeButtonOverride(buttonUpdate)"}),_.S("design:type",Object)],Lo.prototype,"buttonOverride",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Lo.prototype,"enableMonoStyle",void 0);_.x([_.E("data.detailsLine.adRating.ratingText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lo.prototype,"getRating",null);_.x([_.E("getRating"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Lo.prototype,"computeRatingHidden",null);
_.x([_.E("data.detailsLine.adRating.ratingIcon.iconType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lo.prototype,"iconType",null);_.x([_.E("data.detailsLine.texts.0.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lo.prototype,"getDetailsLine",null);_.x([_.E("getDetailsLine"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Lo.prototype,"computeDetailsLineHidden",null);
_.x([_.E("data.description.text"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lo.prototype,"getDescriptionText",null);_.x([_.E("getDescriptionText"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Lo.prototype,"computeDescriptionTextHidden",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lo.prototype,"interactionLoggingClientData",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Lo.prototype,"hideBanner",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Lo.prototype,"dataChanged",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Lo.prototype,"onClick",null);_.x([_.Ye({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Lo);
_.y(Lo,"ytd-action-companion-ad-renderer",function(){if(PRG!==void 0)return PRG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return PRG=m},{mode:2});var yFu;var eK6;var AT=function(){var m=_.d.apply(this,arguments)||this;m.buttonUpdate=_.F("web_modern_buttons");m.hideLegacyBanner=_.F("enable_dsa_one_click_ata_translators_infeed_elements");m.adInfoButtonStyle="mono";m.adInfoButtonType="text";m.noDotAdBadge=!0;return m};
_.n(AT,_.d);_.w=AT.prototype;_.w.getOnLayoutVisibleCallback=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.layoutId:null};
_.w.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 m=this.data.image.thumbnail.thumbnails[0];this.imageSrc=m.url?_.MI(m.url):void 0;this.imageWidth=m.width||0;this.imageHeight=m.height||0}this.data.clickthroughEndpoint&&_.Q(this.data.clickthroughEndpoint,_.H$)&&(m=_.Q(this.data.clickthroughEndpoint,_.H$).url,_.F("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
m||"":m?(m=_.MI(m),this.clickThroughUrl=_.Ue(m)):this.clickThroughUrl=void 0);(m=this.getOnLayoutVisibleCallback())&&m()}};
_.w.onClick=function(m){_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(m)};
_.w.handleClick=function(){var m=this;this.data&&this.data.clickthroughEndpoint&&(_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(G){m.macroReplacementBehavior.sendServiceRequestAction([G])}),_.dU(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.w.onLoad=function(){_.PH(this.hostElement,"yt-refit-popups-action")};
_.e_.Object.defineProperties(AT.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.interactionLoggingClientData:null}}});
AT.prototype.onLoad=AT.prototype.onLoad;AT.prototype.onClick=AT.prototype.onClick;AT.prototype.dataChanged=AT.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],AT.prototype,"rendererBehavior",void 0);_.x([_.q(JNq.YtMacroReplacementBehavior),_.S("design:type",Object)],AT.prototype,"macroReplacementBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],AT.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AT.prototype,"buttonUpdate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AT.prototype,"hideLegacyBanner",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AT.prototype,"adInfoButtonStyle",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AT.prototype,"adInfoButtonType",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],AT.prototype,"macros",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],AT.prototype,"interactionLoggingClientData",null);_.x([_.V(),_.S("design:type",String)],AT.prototype,"clickThroughUrl",void 0);_.x([_.V(),_.S("design:type",_.fp)],AT.prototype,"imageSrc",void 0);_.x([_.V(),_.S("design:type",Number)],AT.prototype,"imageWidth",void 0);_.x([_.V(),_.S("design:type",Number)],AT.prototype,"imageHeight",void 0);_.x([_.V(),_.S("design:type",Object)],AT.prototype,"noDotAdBadge",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AT.prototype,"dataChanged",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],AT.prototype,"onClick",null);_.x([_.XC("load"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AT.prototype,"onLoad",null);_.x([_.Ye({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],AT);
_.y(AT,"ytd-image-companion-renderer",function(){if(eK6!==void 0)return eK6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return eK6=m},{mode:2});var fZG;var wa=function(){return _.d.apply(this,arguments)||this};
_.n(wa,_.d);_.w=wa.prototype;_.w.dataChanged=function(){this.set("data.adBadge",wa.JSC$21250_DEFAULT_AD_BADGE_RENDERER);if(this.data){var m=this.getOnLayoutVisibleCallback();m&&m()}};
_.w.getOnLayoutVisibleCallback=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.onLayoutVisibleCallback:null};
_.w.getLayoutId=function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.layoutId:null};
_.w.onCompanionClicked=function(m){this.data&&(m.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.dU(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.w.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var m=_.qW(),G=this.getLayoutId(),K=this.data.clickToAdvSiteEndpoint;m&&G&&_.F("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?m.getPlayerPromise().then(function(W){(new _.Ae(W)).executeCommand(K,G)}):_.Zw(this.hostElement,"yt-navigate",{endpoint:K})}};
_.w.sendTrackingPings=function(m){if(m&&m.length!==0&&m[0].loggingUrls&&(m=m[0].loggingUrls.map(this.getBaseUrl)))for(var G=0;G<m.length;G++)_.HG(m[G])};
_.w.getBaseUrl=function(m){return m.baseUrl||""};
_.e_.Object.defineProperties(wa.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var m=_.Cn("yt.www.ads.eventcache.getLastCompanionData");return m?(m=m())&&m.interactionLoggingClientData:null}}});
wa.prototype.onCompanionClicked=wa.prototype.onCompanionClicked;wa.prototype.dataChanged=wa.prototype.dataChanged;wa.JSC$21250_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.zq("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wa.prototype,"data",void 0);_.x([_.UM("#title"),_.S("design:type",HTMLElement)],wa.prototype,"shopTitle",void 0);
_.x([_.Mg("data.impressionEndpoints"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wa.prototype,"dataChanged",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],wa.prototype,"interactionLoggingClientData",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],wa.prototype,"onCompanionClicked",null);
_.x([_.Ye({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wa);
_.y(wa,"ytd-shopping-companion-renderer",function(){if(fZG!==void 0)return fZG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return fZG=m},{mode:1});_.sh(_.P(function(m){var G=m.data;m=_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_});var K=_.h3(function(){return G().interaction},n1u);
_.v4(function(){var W,L;L=(L=_.Cn("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(W=L)==null||W()},"Vj");
return _.r("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.dn(function(W){_.PH(W.currentTarget,"yt-refit-popups-action")}),
el:_.aC(m,K),"aria-label":function(){var W,L;return(W=G().interaction)==null?void 0:(L=W.accessibility)==null?void 0:L.label}},_.r("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(W){return _.r(_.kU,{data:W.data,
targetHeight:80,customCommandResolver:n1u})}})),_.r("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.r("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.r(_.z$,{data:function(){return G().adBadge}},{adBadgeViewModel:function(W){return _.r(_.yA,{data:W.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.r("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:_.kP}))))},"Wj"),"banner-image-layout-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;m=_.eN({visibilityCallback:function(W){var L,A=(L=G().interaction)==null?void 0:L.onFirstVisible;W&&A&&_.h$(A)},
showOption:_.I_});var K=_.h3(function(){return G().interaction},bmE);
_.v4(function(){var W,L;L=(L=_.Cn("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(W=L)==null||W()},"Xj");
return _.r("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.aC(m,K)},_.r("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.r(_.z$,{data:function(){return G().adImage}},{adImageViewModel:function(W){return _.r(_.kU,{data:W.data,
targetHeight:80,customCommandResolver:bmE})}})),_.r("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.r("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.r(_.z$,{data:function(){return G().adAvatarLockup}},{adAvatarLockupViewModel:function(W){return _.r(nci,{data:W.data,
customCommandResolver:bmE})}})),_.r(_.z$,{data:function(){return G().adButton}},{adButtonViewModel:function(W){return _.r(_.Cf,{data:W.data,
customCommandResolver:bmE})}}),_.r("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.r(_.z$,{data:function(){return G().menu}},{buttonViewModel:_.kP}))))},"Yj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Dd}});var xZi={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"},O2=function(){var m=_.d.apply(this,arguments)||this;m.updateCompanionDataJobId=0;m.contentVideoId=null;m.player=null;m.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return m};
_.n(O2,_.d);_.w=O2.prototype;_.w.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:xZi}}};
_.w.attached=function(){var m=this,G=_.qW();G&&G.getPlayerPromise().then(function(K){m.getCachedDataAndListen(K)})};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.w.updateRendererStamper=function(){var m={};if(this.data)for(var G in xZi)if(this.data[G]){m[G]=this.data[G];break}if(this.oneofRenderer!=void 0||Object.keys(m).length)this.oneofRenderer=m};
_.w.getCachedDataAndListen=function(m){var G=this.retrieveCachedCompanionData();G&&Object.keys(G).length&&this.receiveCompanionData(G);this.ytPlayerListenerBehavior.listenToPlayerEvent(m,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=m};
_.w.retrieveCachedCompanionData=function(){return _.Ks.yt&&_.Ks.yt.www&&_.Ks.yt.www.ads&&_.Ks.yt.www.ads.eventcache&&_.Ks.yt.www.ads.eventcache.getLastCompanionData?_.Ks.yt.www.ads.eventcache.getLastCompanionData():null};
_.w.receiveCompanionData=function(m){m&&Object.keys(m).length?(this.contentVideoId=m.contentVideoId,this.setCompanionData(m)):this.setCompanionData(m)};
_.w.setCompanionData=function(m){this.cancelPendingCompanionAdJobs();if(m){this.updateCompanionDataJobId=0;for(var G in xZi)xZi.hasOwnProperty(G)&&(this.data[G]=void 0);m.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",m.shoppingCompanionCarouselRenderer):m.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",m.imageCompanionAdRenderer):m.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",m.actionCompanionAdRenderer),_.PH(this.hostElement,
"yt-hide-unlimited-offer-module"),_.PH(this.hostElement,"yt-hide-tvfilm-offer-module")):m.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",m.bannerImageLayoutViewModel):m.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",m.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.w.dataChanged=function(){var m=this,G=_.qW();G?G.getPlayerPromise().then(function(K){m.contentVideoId&&K.getVideoUrl().includes("v="+m.contentVideoId)||(m.cancelPendingCompanionAdJobs(),m.updateRendererStamper())}):_.V3(Error("Rl"))};
_.w.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Fu.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.w.handleCompanionAdClicked=function(m,G){this.player.onAdUxClicked(m,G);this.player.pauseVideo()};
O2.prototype.dataChanged=O2.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],O2.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],O2.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],O2.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],O2.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],O2.prototype,"oneofRenderer",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],O2.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],O2);
_.y(O2,"ytd-companion-slot-renderer",function(){if(yFu!==void 0)return yFu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return yFu=m},{mode:2});var XK5;var cV=function(){return _.d.apply(this,arguments)||this};
_.n(cV,_.d);cV.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
cV.prototype.dataChanged=cV.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],cV.prototype,"companionSlotData",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cV.prototype,"dataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],cV);
_.y(cV,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(XK5!==void 0)return XK5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XK5=m},{mode:1});var SIu;var Yw=function(){var m=_.d.apply(this,arguments)||this;m.skinnyMode=!1;m.COMPACT_EVENT_COUNT=4;m.onShelfToggleButtonTap=function(){m.logTap(m.data);m.showingMore=!m.showingMore};
m.onShelfToggleButtonFocus=function(){m.showingMore||(m.logTap(m.data),m.showingMore=!0,_.Pv(m,function(){var G=m.COMPACT_EVENT_COUNT-1,K;(K=_.VL(m.hostElement).querySelector("#event-"+G))==null||K.focus()}))};
return m};
_.n(Yw,_.d);_.w=Yw.prototype;_.w.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.w.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.w.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.xC(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.xC(this.infoTooltip,this.infoTooltip.hide))};
_.w.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.xC(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.xC(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.xC(this.infoTooltip,this.infoTooltip.hide))};
_.w.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)};
_.w.onShowingMoreChanged=function(){var m;this.showingMoreChanged((m=this.showingMore)!=null?m:!1)};
_.w.showingMoreChanged=function(m){var G=this.get("data.events")||[];this.set("restEvents",G.slice(1,m?G.length:this.COMPACT_EVENT_COUNT).map(function(K){return K.ticketEventRenderer}));
G.slice(0,m?G.length:this.COMPACT_EVENT_COUNT).forEach(function(K){var W=_.gU();K=K.ticketEventRenderer.trackingParams;_.wU()&&W&&K&&(K=_.m5(K),W&&_.Qx(W,K))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.w.computeAriaLabel=function(m){return m.subtitle1+", "+m.subtitle2};
_.w.logTap=function(m){_.wU()&&this.ytRendererBehavior.logExplicitClick(m)};
_.w.isKeyboardAction=function(m){return this.get("detail.x",m)===0&&this.get("detail.y",m)===0};
_.w.onFirstEventTap=function(m){m.target&&this.handleTap(m.target,this.firstEvent,this.isKeyboardAction(m))};
_.w.onTicketLinkTap=function(m){m.target&&this.handleTap(m.target,m.model.item,this.isKeyboardAction(m))};
_.w.handleTap=function(m,G,K){if(G.buttonCommand)if(G.hasMultipleOffers)Object.assign(_.Q(G.buttonCommand,_.BM),{properties:{source:K?"keyboard":"tap"}}),this.logTap(G),this.popupPositionTarget=m,_.eD(this.hostElement,[G.buttonCommand],this.hostElement);else{var W;if((W=_.Q(G.buttonCommand,_.H$))==null?0:W.url)this.logTap(G),_.Oy(window,_.Q(G.buttonCommand,_.H$).url)}};
Yw.prototype.onShowingMoreChanged=Yw.prototype.onShowingMoreChanged;Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Yw.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Yw.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Yw.prototype,"firstEvent",void 0);_.x([_.V(),_.S("design:type",Object)],Yw.prototype,"restEvents",void 0);_.x([_.V(),_.S("design:type",String)],Yw.prototype,"imageUrl",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Yw.prototype,"showingMore",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Yw.prototype,"canShowMore",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yw.prototype,"skinnyMode",void 0);_.x([_.V(),_.S("design:type",HTMLElement)],Yw.prototype,"popupPositionTarget",void 0);_.x([_.UM("#banner-info-tooltip"),_.S("design:type",Object)],Yw.prototype,"infoTooltip",void 0);
_.x([_.UM("#info-container"),_.S("design:type",HTMLElement)],Yw.prototype,"infoContainer",void 0);_.x([_.UM("#shelf-toggler"),_.S("design:type",HTMLElement)],Yw.prototype,"shelfToggleButton",void 0);_.x([_.UM("#separator"),_.S("design:type",HTMLDivElement)],Yw.prototype,"separator",void 0);_.x([_.V(),_.S("design:type",String)],Yw.prototype,"shelfTogglerLabelText",void 0);_.x([_.V(),_.S("design:type",String)],Yw.prototype,"shelfTogglerIcon",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yw.prototype,"dataChanged",null);_.x([_.Mg("showingMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yw.prototype,"onShowingMoreChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Yw);
_.y(Yw,"ytd-ticket-shelf-renderer",function(){if(SIu!==void 0)return SIu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return SIu=m},{mode:1});var RKO={};RKO.YtVisibilityRootBehavior=[_.dHX.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.I$(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.E8("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var m=_.E8("INNERTUBE_CLIENT_NAME")!=="WEB";_.F("kevlar_use_vimio_behavior")&&m&&_.wh0()}}];var ra={};ra.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(m){m.detail.contextProvider=this;m.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
RKO.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Qo();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(m){var G=this;this.pageCount+=1;_.F("kevlar_use_vimio_behavior")&&(_.E8("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fu.addJob(function(){G.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(m)},
loadPage_:function(m){this.data=m},
ytPageBehaviorActiveObserver_:function(m){var G=this;_.F("kevlar_use_vimio_behavior")&&(m?_.E8("INNERTUBE_CLIENT_NAME")==="WEB"?_.Fu.addJob(function(){G.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(m){if(!this.setScrollTopJobId_){var G=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){G.setScrollTopJobId_=0;var K=_.xS().resolve(_.fn(_.zk));K&&_.sW(K);this.getPageScrollingElement().scrollTop=m}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Yv(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];var UZs;var zKG;var lZD;var BJP;var ua=function(){var m=_.d.apply(this,arguments)||this;m.originalQuery=null;m.originalEndpoint=null;return m};
_.n(ua,_.d);ua.prototype.computeShowOriginalQueryWithoutEndpoint_=function(m,G){return!(!m||G)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ua.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ua.prototype,"correctedText",void 0);_.x([_.V(),_.S("design:type",Object)],ua.prototype,"correctedQuery",void 0);_.x([_.V(),_.S("design:type",Object)],ua.prototype,"correctedEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],ua.prototype,"originalText",void 0);_.x([_.V(),_.S("design:type",Object)],ua.prototype,"originalQuery",void 0);
_.x([_.V(),_.S("design:type",Object)],ua.prototype,"originalEndpoint",void 0);_.x([_.V({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.S("design:type",Boolean)],ua.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.x([_.cL({is:"yt-search-query-correction",disableElementRegistration:!0})],ua);
_.y(ua,"yt-search-query-correction",function(){if(BJP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;lZD===void 0&&(lZD=document.createElement("template"));var W=lZD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);BJP=m}m=BJP;return m},{mode:2});_.Kz("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var M9G=function(){return _.d.apply(this,arguments)||this};
_.n(M9G,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],M9G.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],M9G.prototype,"data",void 0);_.x([_.cL({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],M9G);
_.y(M9G,"yt-did-you-mean-renderer",function(){if(zKG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;UZs===void 0&&(UZs=document.createElement("template"));var W=UZs;K.call(G,W.content.cloneNode(!0),m.content.firstChild);zKG=m}m=zKG;return m},{mode:2});var TJG;var m06;_.Kz("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var iFW=function(){return _.d.apply(this,arguments)||this};
_.n(iFW,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],iFW.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iFW.prototype,"data",void 0);_.x([_.cL({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],iFW);
_.y(iFW,"yt-including-results-for-renderer",function(){if(m06===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;TJG===void 0&&(TJG=document.createElement("template"));var W=TJG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);m06=m}m=m06;return m},{mode:2});var GKP;var K2W;_.Kz("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var hT=function(){return _.d.apply(this,arguments)||this};
_.n(hT,_.d);hT.prototype.computeExtraClasses_=function(m,G){var K="";m&&(K+=" "+m.toLowerCase().replace(/_/g,"-"));G&&(K+=" "+G.toLowerCase().replace(/_/g,"-"));return K};
hT.prototype.computeUrlImg_=function(){var m=this.data;m.image&&(_.VL(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.qy(m.image.thumbnails,Number.MAX_VALUE)+")")};
hT.prototype.computeUrlImg_=hT.prototype.computeUrlImg_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hT.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hT.prototype,"computeUrlImg_",null);_.x([_.cL({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],hT);
_.y(hT,"yt-music-pass-feature-info-renderer",function(){if(K2W===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;GKP===void 0&&(GKP=document.createElement("template"));var W=GKP;K.call(G,W.content.cloneNode(!0),m.content.firstChild);K2W=m}m=K2W;return m},{mode:2});var W2O;var L26;_.Kz("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var ABG=function(){return _.d.apply(this,arguments)||this};
_.n(ABG,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ABG.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ABG.prototype,"data",void 0);_.x([_.cL({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],ABG);
_.y(ABG,"yt-no-results-found-showing-results-for-renderer",function(){if(L26===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;W2O===void 0&&(W2O=document.createElement("template"));var W=W2O;K.call(G,W.content.cloneNode(!0),m.content.firstChild);L26=m}m=L26;return m},{mode:2});var wn5;var gdP;_.Kz("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var OFs=function(){return _.d.apply(this,arguments)||this};
_.n(OFs,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],OFs.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],OFs.prototype,"data",void 0);_.x([_.cL({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],OFs);
_.y(OFs,"yt-results-without-quotes-renderer",function(){if(gdP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;wn5===void 0&&(wn5=document.createElement("template"));var W=wn5;K.call(G,W.content.cloneNode(!0),m.content.firstChild);gdP=m}m=gdP;return m},{mode:2});var cB6;var Yz6;_.Kz("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var rBz=function(){return _.d.apply(this,arguments)||this};
_.n(rBz,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rBz.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rBz.prototype,"data",void 0);_.x([_.cL({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],rBz);
_.y(rBz,"yt-search-no-results-renderer",function(){if(Yz6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;cB6===void 0&&(cB6=document.createElement("template"));var W=cB6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Yz6=m}m=Yz6;return m},{mode:2});var uri;var hcG;_.Kz("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var pnq=function(){return _.d.apply(this,arguments)||this};
_.n(pnq,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pnq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pnq.prototype,"data",void 0);_.x([_.cL({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],pnq);
_.y(pnq,"yt-showing-results-for-renderer",function(){if(hcG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;uri===void 0&&(uri=document.createElement("template"));var W=uri;K.call(G,W.content.cloneNode(!0),m.content.firstChild);hcG=m}m=hcG;return m},{mode:2});var JBP;var Ne5;_.Kz("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var po=function(){return _.d.apply(this,arguments)||this};
_.n(po,_.d);
po.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],po.prototype,"data",void 0);_.x([_.cL({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],po);
_.y(po,"yt-offer-item-expanded-renderer",function(){if(Ne5===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;JBP===void 0&&(JBP=document.createElement("template"));var W=JBP;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Ne5=m}m=Ne5;return m},{mode:2});var D0z;var t3s;_.Kz("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var JT=function(){return _.d.apply(this,arguments)||this};
_.n(JT,_.d);
JT.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"}}}}};
JT.prototype.computeFullWidthMode=function(m){return!(!m||!m.fullWidthMode)};
JT.prototype.computeBorderlessMode=function(m){return!(!m||!m.borderlessMode)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],JT.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],JT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],JT.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.S("design:type",Boolean)],JT.prototype,"fullWidthMode",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.S("design:type",Boolean)],JT.prototype,"borderlessMode",void 0);_.x([_.cL({is:"yt-offer-item-renderer",disableElementRegistration:!0})],JT);
_.y(JT,"yt-offer-item-renderer",function(){if(t3s===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;D0z===void 0&&(D0z=document.createElement("template"));var W=D0z;K.call(G,W.content.cloneNode(!0),m.content.firstChild);t3s=m}m=t3s;return m},{mode:2});var F2u;var QAW;_.Kz("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Ns=function(){return _.d.apply(this,arguments)||this};
_.n(Ns,_.d);Ns.prototype.computeAriaLevel_=function(m){return this.getLevelID_(m)};
Ns.prototype.getLevelID_=function(m){return(m=m.match(/[0-9]+$/))&&m.length==1?m[0]:"1"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ns.prototype,"data",void 0);_.x([_.V({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.S("design:type",String)],Ns.prototype,"ariaLevel",void 0);_.x([_.V({value:"heading",reflectToAttribute:!0}),_.S("design:type",String)],Ns.prototype,"role",void 0);
_.x([_.V({value:-1,reflectToAttribute:!0}),_.S("design:type",Number)],Ns.prototype,"tabindex",void 0);_.x([_.cL({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Ns);
_.y(Ns,"yt-subscription-product-header-renderer",function(){if(QAW===void 0){var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;F2u===void 0&&(F2u=document.createElement("template"));var W=F2u;K.call(G,W.content.cloneNode(!0),m.content.firstChild);QAW=m}m=QAW;return m},{mode:2});var ai6;var odu;_.Kz("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Ds=function(){return _.d.apply(this,arguments)||this};
_.n(Ds,_.d);Ds.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:_.Wp("menuRenderer"),events:!0}}};
Ds.prototype.onStampFinished_=function(){_.VL(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Ds.prototype.onStampFinished_=Ds.prototype.onStampFinished_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ds.prototype,"data",void 0);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ds.prototype,"onStampFinished_",null);
_.x([_.cL({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Ds);
_.y(Ds,"yt-subscription-product-renderer",function(){if(odu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ai6===void 0&&(ai6=document.createElement("template"));var W=ai6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);odu=m}m=odu;return m},{mode:2});var nd6;var bFi;_.Kz("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var tT=function(){return _.d.apply(this,arguments)||this};
_.n(tT,_.d);tT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tT.prototype.imageScrimColorValuesChanged_=function(){var m,G=(m=this.data)==null?void 0:m.imageScrimColorValues;_.VL(this.hostElement).querySelector("#scrim").style.backgroundColor=G?_.ce(G[0]):"transparent"};
tT.prototype.imageScrimColorValuesChanged_=tT.prototype.imageScrimColorValuesChanged_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tT.prototype,"data",void 0);
_.x([_.Sb("data.imageScrimColorValues"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tT.prototype,"imageScrimColorValuesChanged_",null);_.x([_.cL({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],tT);
_.y(tT,"yt-subscription-product-upsell-offer-renderer",function(){if(bFi===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;nd6===void 0&&(nd6=document.createElement("template"));var W=nd6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);bFi=m}m=bFi;return m},{mode:2});var vdG;var $0G;var sA6;var qzE;var EdD;var HFu;var Fh=function(){return _.d.apply(this,arguments)||this};
_.n(Fh,_.d);Fh.prototype.onYtServiceRequestError_=function(m){_.QH(this.hostElement,m.detail.error.message)};
Fh.prototype.onYtServiceRequestError_=Fh.prototype.onYtServiceRequestError_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Fh.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],Fh.prototype,"collapsible",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Fh.prototype,"isManageRed",void 0);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Fh.prototype,"onYtServiceRequestError_",null);_.x([_.cL({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Fh);
_.y(Fh,"yt-single-ypc-offer-renderer",function(){if(HFu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;EdD===void 0&&(EdD=document.createElement("template"));var W=EdD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);HFu=m}m=HFu;return m},{mode:2});var QB=function(){return _.d.apply(this,arguments)||this};
_.n(QB,_.d);QB.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],QB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],QB.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],QB.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],QB.prototype,"isManageRed",void 0);_.x([_.cL({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],QB);
_.y(QB,"yt-single-ypc-offer-list-renderer",function(){if(qzE===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;sA6===void 0&&(sA6=document.createElement("template"));var W=sA6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);qzE=m}m=qzE;return m},{mode:2});var IiG;var jAD;_.Kz("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var a5=function(){return _.d.apply(this,arguments)||this};
_.n(a5,_.d);a5.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a5.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],a5.prototype,"isManageRed",void 0);_.x([_.cL({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],a5);
_.y(a5,"yt-ypc-offers-list-renderer",function(){if(jAD===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;IiG===void 0&&(IiG=document.createElement("template"));var W=IiG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);jAD=m}m=jAD;return m},{mode:2});_.Kz("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var o5=function(){return _.d.apply(this,arguments)||this};
_.n(o5,_.d);
o5.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],o5.prototype,"data",void 0);_.x([_.cL({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],o5);
_.y(o5,"yt-unlimited-manage-subscription-page-renderer",function(){if($0G===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;vdG===void 0&&(vdG=document.createElement("template"));var W=vdG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);$0G=m}m=$0G;return m},{mode:2});var kKq;var CVu;var no=function(){return _.d.apply(this,arguments)||this};
_.n(no,_.d);_.w=no.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.w.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.onKeypress_=function(m){m.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.w.handleHeaderTap_=function(m){m.preventDefault();m.stopPropagation();this.expandOffers_()};
_.w.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.w.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
no.prototype.dataChanged_=no.prototype.dataChanged_;_.x([_.q(_.x4),_.S("design:type",Object)],no.prototype,"ironA11yKeysBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],no.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],no.prototype,"offersVisible_",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],no.prototype,"dataChanged_",null);_.x([_.cL({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],no);
_.y(no,"yt-collapsible-ypc-offer-renderer",function(){if(CVu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;kKq===void 0&&(kKq=document.createElement("template"));var W=kKq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);CVu=m}m=CVu;return m},{mode:2});var V3i;var ZFP;_.Kz("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var ba=function(){return _.d.apply(this,arguments)||this};
_.n(ba,_.d);_.w=ba.prototype;_.w.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.w.dataChanged_=function(){if(this.data.backgroundImage){var m=_.qy(this.data.backgroundImage.thumbnails,screen.width),G=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=G?"linear-gradient(180deg, "+G+"), url("+m+")":"url("+m+")";this.data.gtmId&&_.MQ(this.data.gtmId,_.E8("GL",""))}};
_.w.onYtServiceRequestError_=function(m){_.QH(this.hostElement,m.detail.error.message)};
_.w.getScrimLayerColorStops_=function(){var m,G,K=(m=this.data.unlimitedHeaderV2Data)==null?void 0:(G=m.unlimitedHeaderV2Data)==null?void 0:G.scrimLayerColors;if(!K)return null;var W=100/K.length;return K.map(function(L,A){A*=W;return _.ce(L)+" "+A+"%"}).join(",")};
_.w.computeLogoWithPadding=function(m){var G,K,W;return(m=(G=m.unlimitedLogoImage)==null?void 0:(K=G.thumbnails)==null?void 0:(W=K[0])==null?void 0:W.height)&&m%31===0?!0:!1};
ba.prototype.onYtServiceRequestError_=ba.prototype.onYtServiceRequestError_;ba.prototype.dataChanged_=ba.prototype.dataChanged_;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.x([_.V({computed:"computeLogoWithPadding(data)"}),_.S("design:type",Boolean)],ba.prototype,"logoWithPadding",void 0);
_.x([_.V(),_.S("design:type",Object)],ba.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ba.prototype,"dataChanged_",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],ba.prototype,"onYtServiceRequestError_",null);_.x([_.cL({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],ba);
_.y(ba,"yt-unlimited-page-header-renderer",function(){if(ZFP===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;V3i===void 0&&(V3i=document.createElement("template"));var W=V3i;K.call(G,W.content.cloneNode(!0),m.content.firstChild);ZFP=m}m=ZFP;return m},{mode:2});var d0G;var PVO;_.Kz("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var vV=function(){return _.d.apply(this,arguments)||this};
_.n(vV,_.d);vV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vV.prototype,"data",void 0);_.x([_.cL({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],vV);
_.y(vV,"yt-unlimited-user-notification-renderer",function(){if(PVO===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;d0G===void 0&&(d0G=document.createElement("template"));var W=d0G;K.call(G,W.content.cloneNode(!0),m.content.firstChild);PVO=m}m=PVO;return m},{mode:2});var yBi;var eci;var fiq=function(){return _.d.apply(this,arguments)||this};
_.n(fiq,_.d);_.x([_.V(),_.S("design:type",Object)],fiq.prototype,"data",void 0);_.x([_.cL({is:"yt-alert-renderer",disableElementRegistration:!0})],fiq);
_.y(fiq,"yt-alert-renderer",function(){if(eci===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;yBi===void 0&&(yBi=document.createElement("template"));var W=yBi;K.call(G,W.content.cloneNode(!0),m.content.firstChild);eci=m}m=eci;return m},{mode:2});var BeD=function(m){_.Lt.call(this);this.JSC$21338_watchApi=m;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;x0s(this);Xns(this);Sz6(this);RcD(this);U0u(this);zc6(this);liu(this)};
_.n(BeD,_.Lt);var Sz6=function(m){var G=function(){_.F("kevlar_is_pupi_enabled")||$w(m)};
m.JSC$21338_watchApi.getRoot().addEventListener("yt-player-updated",G);m.addOnDisposeCallback(function(){m.JSC$21338_watchApi.getRoot().removeEventListener("yt-player-updated",G)})},U0u=function(m){if(_.F("kevlar_endscreen_auto_theater_mode")){var G=m.JSC$21338_watchApi.subscribeToActiveChanged(function(){M3q(m)},!1);
m.addOnDisposeCallback(G)}},x0s=function(m){var G,K,W,L,A;
_.Y(function(O){if(O.nextAddress==1)return O.yield(m.JSC$21338_watchApi.playerApi,2);G=O.yieldResult;K=function(c){c=!!c;TeG(m)&&(c=c?2:1,_.qV.getInstance().setState(c,!0,!1))};
W=function(c){c&&gti(_.$R().getState())&&(_.dU(m.JSC$21338_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),m.temporaryTheaterMode=!0)};
L=function(c){_.F("kevlar_player_update_autonav_on_new_data")&&c.type==="newdata"&&(_.F("kevlar_is_pupi_enabled")||$w(m))};
A=function(c){m.onPlayerStateChange(c)};
_.F("kevlar_endscreen_auto_theater_mode")&&G.addEventListener("onAutonavCancelled",W);G.addEventListener("onAutonavChangeRequest",K);G.addEventListener("onVideoDataChange",L);G.addEventListener("onStateChange",A);m.addOnDisposeCallback(function(){G.removeEventListener("onAutonavChangeRequest",K);G.removeEventListener("onVideoDataChange",L);G.removeEventListener("onStateChange",A);_.F("kevlar_endscreen_auto_theater_mode")&&G.removeEventListener("onAutonavCancelled",W)});
_.ey(O)})},Xns=function(m){m.JSC$21338_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){m.autonavCancelledBySignal=!0;
_.F("kevlar_is_pupi_enabled")||$w(m)});
m.JSC$21338_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(G,K,W){K&&$w(m,W)});
m.JSC$21338_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){TeG(m)&&_.qV.getInstance().setState(2,!0,!0)});
m.JSC$21338_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){TeG(m)&&_.qV.getInstance().setState(1,!0,!0)});
m.addOnDisposeCallback(function(){m.JSC$21338_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");m.JSC$21338_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");m.JSC$21338_watchApi.unregisterActionHandler("yt-enable-autoplay-command");m.JSC$21338_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},RcD=function(m){var G=m.JSC$21338_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){liu(m)}),K=m.JSC$21338_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){zc6(m)});
m.addOnDisposeCallback(function(){m.JSC$21338_watchApi.unsubscribeByKey(G);m.JSC$21338_watchApi.unsubscribeByKey(K)})},liu=function(m){m.autonavCancelledBySignal=!1;
_.F("kevlar_is_pupi_enabled")||$w(m)},zc6=function(m){var G=m.JSC$21338_watchApi.getWatchNextResponse(),K,W;
var L=(G=(W=_.Q(G==null?void 0:(L=G.playerOverlays)==null?void 0:(K=L.playerOverlayRenderer)==null?void 0:K.autonavToggle,_.LB0))==null?void 0:W.enabled)?2:1;_.F("kevlar_is_pupi_enabled")?_.qV.getInstance().setState(L,!1,!1):$w(m);_.F("web_persist_server_autonav_state_on_client")&&typeof G==="boolean"&&_.O8G(L===2)},TeG=function(m){if(m.autonavCancelledBySignal)return!1;
var G,K,W,L;return!!((G=m.JSC$21338_watchApi.getWatchNextResponse())==null?0:(K=G.contents)==null?0:(W=K.twoColumnWatchNextResults)==null?0:(L=W.autoplay)==null?0:L.autoplay)};
BeD.prototype.onPlayerStateChange=function(m){if(m===0){m=!_.qV.getInstance().isAutoplaySetExplicitly();var G=this.JSC$21338_watchApi.getWatchNextResponse(),K,W,L,A;G=_.Q(G==null?void 0:(K=G.contents)==null?void 0:(W=K.twoColumnWatchNextResults)==null?void 0:(L=W.autoplay)==null?void 0:(A=L.autoplay)==null?void 0:A.autoplayExplicitChoiceDialogRenderer,_.o6o);TeG(this)&&m&&G&&_.xe.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:G},popupType:"DIALOG"}})}else M3q(this)};
var M3q=function(m){m.temporaryTheaterMode&&(m.temporaryTheaterMode=!1,_.dU(m.JSC$21338_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},$w=function(m,G){G=G===void 0?!1:G;
var K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21338_watchApi.playerApi,2);K=W.yieldResult;TeG(m)?K.setAutonavState(_.qV.getInstance().getState(),G):K.setAutonavState(1,G);_.ey(W)})};var mDE={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};var GV6=function(m){_.Lt.call(this);var G=this;this.JSC$21343_watchApi=m;var K=this.JSC$21343_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){iHD(G)});
this.addOnDisposeCallback(function(){G.JSC$21343_watchApi.unsubscribeByKey(K)});
iHD(this)};
_.n(GV6,_.Lt);var iHD=function(m){var G=m.JSC$21343_watchApi.getPlayerResponse(),K=m.JSC$21343_watchApi.getWatchNextResponse();if(!_.lAs(G==null?void 0:G.playabilityStatus,K==null?void 0:K.playerOverlays)){var W;var L=G==null?void 0:(W=G.playabilityStatus)==null?void 0:W.errorScreen}m.JSC$21343_watchApi.provideRenderingData("ERROR_SCREEN",L)};var KwO=_.P(function(m){return _.r("yt-player-grid-renderer",{class:_.VO("ytPlayerGridRendererHost",m.className)},_.r(_.z$,{data:m.data},{lockupViewModel:function(G){return _.r(_.xU,{data:G.data,useOverlayStyling:!0})}}))},"Zj");var Ww6=_.P(function(m){var G=m.data;m=_.F("web_watch_video_details_hide_subtitle");var K=_.F("web_watch_video_details_single_line_title"),W=_.dn(function(){var c=G().onTap;c&&_.xS().resolve(_.S1).resolveCommand(c)}),L={},A={},O={};
return _.r("yt-player-overlay-video-details-renderer",{class:_.VO("ytPlayerOverlayVideoDetailsRendererHost",(L.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.F("web_watch_video_details_transparent_background"),L)),"on:click":W,role:"button"},_.r("h2",{class:_.VO("ytPlayerOverlayVideoDetailsRendererTitle",(A.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return K},A))},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:_.VO("ytPlayerOverlayVideoDetailsRendererSubtitle",
(O.ytPlayerOverlayVideoDetailsRendererHideSubtitle=m,O))},_.r(_.Nm,{text:function(){return G().subtitle}})))},"$j");var s2={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Lwu=_.P(function(m){var G=m.data;var K=_.RC(_.gq),W=_.F("web_watch_action_bar_resize_buttons"),L=_.F("web_watch_video_action_dsdvb"),A=_.F("delhi_modern_web_player_icons")&&!_.F("enable_web_delhi_icons");m=_.F("delhi_modern_web_player_disable_frosted_glass");var O=_.F("delhi_modern_web_player_compact_video_actions_controls"),
c=_.F("web_player_quick_action_buttons_icon_only"),u=function(){var J=W&&!K(),N={};O?N.size="S":J&&(N.size="M");c&&(N.iconPosition="icon-only");if(Object.keys(N).length!==0)return N},h={};
return _.r("yt-player-quick-action-buttons",{class:_.VO("ytPlayerQuickActionButtonsHost",(h.ytPlayerQuickActionButtonsHostCompactControls=function(){return!K()||O},h.ytPlayerQuickActionButtonsHostDisableBackdropFilter=m,h))},_.r(_.D0,{each:function(){var J=G();
if(A){J=JSON.parse(JSON.stringify(J));for(var N=_.g(J),D=N.next();!D.done;D=N.next()){var t=D.value,a=void 0;D=_.Q((a=_.Q(t,_.JA))==null?void 0:a.toggleButtonViewModel,_.Dj);var v=void 0;a=_.Q((v=_.Q(t,_.NP))==null?void 0:v.toggleButtonViewModel,_.Dj);v=_.Q(t,_.J6);t=_.Q(t,_.Dj);if(D)a=_.Q(D.defaultButtonViewModel,_.J6),D=_.Q(D.toggledButtonViewModel,_.J6),a&&a.iconName&&(a.iconName=s2[a.iconName]),D&&D.iconName&&(D.iconName=s2[D.iconName]);else if(a)D=_.Q(a.defaultButtonViewModel,_.J6),a=_.Q(a.toggledButtonViewModel,
_.J6),D&&D.iconName&&(D.iconName=s2[D.iconName]),a&&a.iconName&&(a.iconName=s2[a.iconName]);else if(v)v.iconName&&(v.iconName=s2[v.iconName]);else if(t){D=_.Q(t.defaultButtonViewModel,_.J6);a=_.Q(t.toggledButtonViewModel,_.J6);t=void 0;if((t=D)==null?0:t.iconName)D.iconName=s2[D.iconName];D=void 0;if((D=a)==null?0:D.iconName)a.iconName=s2[a.iconName]}}}L&&(J=v1D(J));return J}},function(J){return _.r(_.z$,{data:function(){return J}},{buttonViewModel:function(N){return _.r(_.kP,{data:N.data,
buttonOverrides:u})},
likeButtonViewModel:function(N){return _.r(_.uC,{data:N.data,buttonShapeOverrideables:u})},
dislikeButtonViewModel:function(N){return _.r(_.r0,{data:N.data,buttonShapeOverrideables:u})},
toggleButtonViewModel:function(N){return _.r(_.Gx,{data:N.data,buttonShapeOverrides:u})}})}))},"ak");var w6P=function(m){_.Lt.call(this);var G=this;this.JSC$21351_watchApi=m;m=_.g(_.g_({},void 0,"NNzZMe"));this.quickActionsViewModel=m.next().value;this.setQuickActionsViewModel=m.next().value;m=_.g(_.g_({},void 0,"iORsec"));this.playerOverlayVideoDetailsRenderer=m.next().value;this.setPlayerOverlayVideoDetailsRenderer=m.next().value;m=_.g(_.g_([],void 0,"dektd"));this.lockupViewModels=m.next().value;this.setLockupViewModels=m.next().value;m=_.g(_.g_({},void 0,"Sp5Hqf"));this.commentsButton=m.next().value;
this.setCommentsButton=m.next().value;m=_.g(_.g_({},void 0,"yDAoue"));this.descriptionButton=m.next().value;this.setDescriptionButton=m.next().value;var K=this.JSC$21351_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Ani(G)});
this.addOnDisposeCallback(function(){G.JSC$21351_watchApi.unsubscribeByKey(K)});
Ani(this)};
_.n(w6P,_.Lt);
var Ani=function(m){var G,K,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X,f,U,l,Ls,gd;_.Y(function(Qf){if(Qf.nextAddress==1)return Qf.yield(m.JSC$21351_watchApi.playerApi,2);G=Qf.yieldResult;K=m.JSC$21351_watchApi.getWatchNextResponse();A=(W=K)==null?void 0:(L=W.playerOverlays)==null?void 0:L.playerOverlayRenderer;c=_.Q((O=A)==null?void 0:O.fullscreenQuickActionsBar,_.K_k);(h=(u=m).setQuickActionsViewModel)==null||h.call(u,c||{});c&&gsD(m,G);D=(J=A)==null?void 0:(N=J.videoDetails)==null?void 0:N.playerOverlayVideoDetailsRenderer;
(a=(t=m).setPlayerOverlayVideoDetailsRenderer)==null||a.call(t,D||{});D&&OHO(m,G);if(_.F("web_player_use_external_grid_component")){var JV=[],DF,kG,eo,xG,Ji=K==null?void 0:(DF=K.contents)==null?void 0:(kG=DF.twoColumnWatchNextResults)==null?void 0:(eo=kG.secondaryResults)==null?void 0:(xG=eo.secondaryResults)==null?void 0:xG.results;if(Ji)for(DF=_.g(Ji),kG=DF.next();!kG.done;kG=DF.next())if(kG=kG.value,kG.lockupViewModel)JV.push(kG);else if(eo=void 0,(eo=kG.itemSectionRenderer)==null?0:eo.contents)for(kG=
_.g(kG.itemSectionRenderer.contents),eo=kG.next();!eo.done;eo=kG.next())eo=eo.value,eo.lockupViewModel&&JV.push(eo);v=JV;(Z=(I=m).setLockupViewModels)==null||Z.call(I,v||[]);cn5(m,G)}z=_.Q((k=A)==null?void 0:k.commentsButton,_.Dj);(f=(X=m).setCommentsButton)==null||f.call(X,z||{});z&&YuE(m,G);l=_.Q((U=A)==null?void 0:U.descriptionButton,_.J6);(gd=(Ls=m).setDescriptionButton)==null||gd.call(Ls,l||{});l&&rnO(m,G);_.ey(Qf)})},gsD=function(m,G){if(!m.quickActionButtonsContainer)if(G.setFullscreenQuickActions){m.quickActionButtonsContainer=
document.createElement("div");
G.setFullscreenQuickActions(m.quickActionButtonsContainer);var K=function(){return m.quickActionsViewModel().quickActionButtons||[]},W=_.oP(m.quickActionButtonsContainer,function(){return _.r(Lwu,{data:K})},"bk");
m.addOnDisposeCallback(function(){G.setFullscreenQuickActions(void 0);W()})}else _.nc(new _.cw("setFullscreenQuickActions not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},OHO=function(m,G){if(!m.playerOverlayVideoDetailsRendererContainer)if(G.setPlayerOverlayVideoDetailsRenderer){m.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
G.setPlayerOverlayVideoDetailsRenderer(m.playerOverlayVideoDetailsRendererContainer);var K=_.oP(m.playerOverlayVideoDetailsRendererContainer,function(){return _.r(Ww6,{data:m.playerOverlayVideoDetailsRenderer})},"ck");
m.addOnDisposeCallback(function(){G.setPlayerOverlayVideoDetailsRenderer(void 0);K()})}else _.nc(new _.cw("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},cn5=function(m,G){if(!m.gridRendererContainer)if(G.setFullscreenGrid){m.gridRendererContainer=document.createElement("div");
G.setFullscreenGrid(m.gridRendererContainer);var K=_.oP(m.gridRendererContainer,function(){return _.r(KwO,{data:m.lockupViewModels})},"dk");
m.addOnDisposeCallback(function(){G.setFullscreenGrid(void 0);K()})}else _.nc(new _.cw("setFullscreenGrid not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},YuE=function(m,G){if(!m.commentsButtonContainer)if(G.setCommentsButton){m.commentsButtonContainer=document.createElement("div");
G.setCommentsButton(m.commentsButtonContainer);var K=_.oP(m.commentsButtonContainer,function(){return _.r(_.Gx,{data:m.commentsButton})},"ek");
m.addOnDisposeCallback(function(){G.setCommentsButton(void 0);K()})}else _.nc(new _.cw("setCommentsButton not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))},rnO=function(m,G){if(!m.descriptionButtonContainer)if(G.setDescriptionButton){m.descriptionButtonContainer=document.createElement("div");
G.setDescriptionButton(m.descriptionButtonContainer);var K=_.oP(m.descriptionButtonContainer,function(){return _.r(_.kP,{data:m.descriptionButton})},"fk");
m.addOnDisposeCallback(function(){G.setDescriptionButton(void 0);K()})}else _.nc(new _.cw("setDescriptionButton not defined",{playerApi:Object.keys(G),
isReady:G.isReady(),appState:G.getAppState()}))};var qs=function(m){_.Lt.call(this);var G=this;this.JSC$21357_watchApi=m;this.JSC$21357_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;m=_.BB(_.$R(),_.gq,function(K){G.onFullscreenChanged(K)});
this.addOnDisposeCallback(m);m=_.BB(_.$R(),Li,function(K){G.onWatchScroll(K)});
this.addOnDisposeCallback(m);_.F("kevlar_watch_while_v2")&&(m=_.BB(_.$R(),_.cU,function(K){uIE(G,K)}),this.addOnDisposeCallback(m));
h1q(this);p66(this);JnD();this.onWatchScroll(Li(_.$R().getState()));_.IP("START_IN_FULL_WINDOW_MODE")&&this.JSC$21357_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.n(qs,_.Lt);var h1q=function(m){m.JSC$21357_watchApi.registerActionHandler("yt-fullscreen-change-action",function(G){var K=m.JSC$21357_watchApi.isActive();G&&!K||_.$R().dispatch(_.kt({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!G}}))});
m.addOnDisposeCallback(function(){m.JSC$21357_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},p66=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21357_watchApi.playerApi,2);G=W.yieldResult;K=function(){m.onFullerscreenEduClicked()};
G.addEventListener("onFullerscreenEduClicked",K);m.addOnDisposeCallback(function(){G.removeEventListener("onFullerscreenEduClicked",K)});
_.ey(W)})};
qs.prototype.onFullscreenChanged=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return G.isFullscreen=!!_.$u(),W.yield(G.JSC$21357_watchApi.playerApi,2);K=W.yieldResult;G.JSC$21357_miniplayerActive||K.setFauxFullscreen(G.isFullscreen);if(m&&(G.JSC$21357_watchApi.focusOnPlayer(),!G.fullerscreenEduButtonShownThisPlayback)){G.fullerscreenEduButtonShownThisPlayback=!0;var L=_.Gh("yt-fullerscreen-edu-button-shown-count")||0;_.i0("yt-fullerscreen-edu-button-shown-count",L+1,31536E3);
G.updateFullerscreenEduButtonSubtleModeState()}_.ey(W)})};
var uIE=function(m,G){var K;_.Y(function(W){if(W.nextAddress==1)return m.JSC$21357_miniplayerActive=G,W.yield(m.JSC$21357_watchApi.playerApi,2);K=W.yieldResult;K.setFauxFullscreen(!m.JSC$21357_miniplayerActive&&m.isFullscreen);_.ey(W)})};
qs.prototype.onWatchScroll=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return _.F("external_fullscreen_with_edu")?L.yield(G.JSC$21357_watchApi.playerApi,2):L.return();K=L.yieldResult;W=m<=0;G.shouldShowFullerscreenEdu!==W&&(G.shouldShowFullerscreenEdu=W,K.updateFullerscreenEduButtonVisibility(!G.shouldShowFullerscreenEdu));_.ey(L)})};
qs.prototype.onFullerscreenEduClicked=function(){this.JSC$21357_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var m=_.Gh("yt-fullerscreen-edu-button-click-count")||0;_.i0("yt-fullerscreen-edu-button-click-count",m+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
qs.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var m=this,G,K,W,L,A,O;return _.Y(function(c){if(c.nextAddress==1)return G=_.Gh("yt-fullerscreen-edu-button-click-count")||0,K=_.Gh("yt-fullerscreen-edu-button-shown-count")||0,W=_.U8("external_fullscreen_button_click_threshold"),L=_.U8("external_fullscreen_button_shown_threshold"),A=G>=W||K>=L,c.yield(m.JSC$21357_watchApi.playerApi,2);O=c.yieldResult;O.updateFullerscreenEduButtonSubtleModeState(A);_.ey(c)})};
qs.prototype.disposeInternal=function(){_.Lt.prototype.disposeInternal.call(this);var m=_.$u();_.F("kevlar_exit_fullscreen_leaving_watch")&&m&&_.sB(m)};
var JnD=function(){if(_.F("web_watch_add_viewport_meta_tag")){var m=document.querySelector("meta[name=viewport]"),G=document.head;G&&!m&&(m=document.createElement("meta"),m.name="viewport",m.content="width=device-width, initial-scale=1.0, viewport-fit=cover",G.appendChild(m))}};var DDu=function(m){_.Lt.call(this);var G=this;this.JSC$21360_watchApi=m;this.jobId=0;this.pendingRequestId=void 0;var K=this.JSC$21360_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){NgO(G)});
this.addOnDisposeCallback(function(){G.JSC$21360_watchApi.unsubscribeByKey(K)});
NgO(this)};
_.n(DDu,_.Lt);var ttO=function(m){_.Fu.cancelJob(m.jobId);m.pendingRequestId=void 0},NgO=function(m){ttO(m);
var G=$az(m.JSC$21360_watchApi.getWatchNextResponse());if(G){var K=250,W,L=(W=_.Q(G,_.WsC))==null?void 0:W.initialDelayMs;_.F("web_watch_updated_metadata_server_initial_delay")&&L&&(K=L);m.jobId=_.Fu.addLowPriorityJob(function(){return m.fetchUpdatedMetadata(G)},K)}};
DDu.prototype.fetchUpdatedMetadata=function(m,G){var K=this,W,L,A,O,c,u,h,J,N,D,t,a,v,I,Z;return _.Y(function(k){switch(k.nextAddress){case 1:G&&(W={continuation:G});if(!_.F("web_get_updated_metadata_fantasy_panel_continuation_params")){k.jumpTo(2);break}L=_.xS().resolve(_.Wx);A="PAsports_fantasy";return k.yield(L.isVisible(A,!0),3);case 3:k.yieldResult&&(h=(c=(O=L).getUpdatePanelContinuationData)==null?void 0:(u=c.call(O,A))==null?void 0:u.updatePanelContinuationRequest)&&(W||(W={}),W.clientParams=
{panelContinuationParams:{panelContinuation:h}});case 2:J=_.xS().resolve(_.Tv);if(!J)return _.am(Error("Sl")),k.return();N={};K.pendingRequestId=N;return k.yield(_.to(J,m,W),4);case 4:D=k.yieldResult;if(N!==K.pendingRequestId)return k.return();v=(t=D)==null?void 0:(a=t.continuation)==null?void 0:a.timedContinuationData;((I=v)==null?0:I.continuation)&&((Z=v)==null?0:Z.timeoutMs)&&(K.jobId=_.Fu.addLowPriorityJob(function(){return K.fetchUpdatedMetadata(m,v.continuation)},v.timeoutMs));
_.ey(k)}})};
DDu.prototype.disposeInternal=function(){_.Lt.prototype.disposeInternal.call(this);ttO(this)};var FwW=_.P(function(m){var G=_.dn(function(){var W=m.data().videoId;if(m.active())W=_.EG(W),_.xS().resolve(_.S1).resolveCommand(W);else{var L=m.playerApi(),A=L.getAvailableAudioTracks(),O,c,u=(O=m.sourceVideoConfig().audioTracks)==null?void 0:(c=O.find(function(h){return h.isDefaultForSource}))==null?void 0:c.id;
if(A=A.find(function(h){return h.getLanguageInfo().getId()===u}))L.setAudioTrack(A,!0),L.setCompositeParam({activeVideoId:W}),m.setActiveSourceId(W)}}),K={};
return _.r("ytw-composite-source-video-overlay",{class:_.VO("ytwCompositeSourceVideoOverlayHost",(K.ytwCompositeSourceVideoOverlayActive=m.active,K.ytwCompositeSourceVideoOverlayInteracting=m.interacting,K)),style:_.eA({left:function(){var W;return((W=m.data().topLeftCornerX)!=null?W:0)*100+"%"},
top:function(){var W;return((W=m.data().topLeftCornerY)!=null?W:0)*100+"%"},
width:function(){var W;return((W=m.data().width)!=null?W:0)*100+"%"},
height:function(){var W;return((W=m.data().height)!=null?W:0)*100+"%"}}),
"on:click":G},_.r("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"gk");var Qju=_.P(function(m){var G=_.g(_.EQ(function(){var O,c=(O=m.data().sources)==null?void 0:O.find(function(u){return u.isActive});
if(c)return c.videoId})),K=G.next().value,W=G.next().value;
G=_.g(_.g_(!1,void 0,"rmRJ8d"));var L=G.next().value,A=G.next().value;return _.r("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.dn(function(){A(!0)}),
"on:mouseout":_.dn(function(){A(!1)})},_.r(_.p,{cond:function(){return m.data().sources},
then:function(O){return _.r(_.D0,{each:O},function(c){return _.r(FwW,{data:c,active:function(){return c.videoId===K()},
setActiveSourceId:W,interacting:L,playerApi:m.playerApi,sourceVideoConfig:function(){return sxz(m.compositeVideoConfig(),c.videoId)}})})}}))},"hk");var nsG=function(m){_.Lt.call(this);this.JSC$21375_watchApi=m;m=_.g(_.g_({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=m.next().value;this.setCompositeVideoOverlayRenderer=m.next().value;m=_.g(_.g_({},void 0,"OlaJpc"));this.compositeVideoConfig=m.next().value;this.setCompositeVideoConfig=m.next().value;auW(this);osD(this)};
_.n(nsG,_.Lt);var auW=function(m){var G=m.JSC$21375_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){osD(m)});
m.addOnDisposeCallback(function(){m.JSC$21375_watchApi.unsubscribeByKey(G)})},bHD=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21375_watchApi.playerApi,2);G=K.yieldResult;G.setCompositeVideoOverlayRendererComponent(m.container);_.ey(K)})},vsi=function(m){var G;
return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21375_watchApi.playerApi,2);G=K.yieldResult;G.setCompositeVideoOverlayRendererComponent(void 0);_.ey(K)})},$D6=function(m){var G,K;
return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21375_watchApi.playerApi,2);G=W.yieldResult;m.container=document.createElement("div");K=_.oP(m.container,function(){return _.r(Qju,{data:m.compositeVideoOverlayRenderer,compositeVideoConfig:m.compositeVideoConfig,playerApi:G})},"ik");
m.addOnDisposeCallback(K);_.ey(W)})},osD=function(m){var G,K,W,L,A,O,c,u;
_.Y(function(h){return h.nextAddress==1?(G=m.JSC$21375_watchApi.getPlayerResponse(),A=_.Q((K=G)==null?void 0:(W=K.overlay)==null?void 0:(L=W.playerControlsOverlayRenderer)==null?void 0:L.compositeVideoOverlay,uZG),u=(O=G)==null?void 0:(c=O.playerConfig)==null?void 0:c.compositeVideoConfig,A&&m.setCompositeVideoOverlayRenderer(A),u&&m.setCompositeVideoConfig(u),A&&u?m.container?h.jumpTo(6):h.yield($D6(m),6):sjD(m)?h.yield(vsi(m),0):h.jumpTo(0)):sjD(m)?h.jumpTo(0):h.yield(bHD(m),0)})},sjD=function(m){var G;
return!((G=m.container)==null||!G.parentElement)};
nsG.prototype.disposeInternal=function(){sjD(this)&&vsi(this);_.Lt.prototype.disposeInternal.call(this)};var jjq=function(m){_.Lt.call(this);var G=this;this.JSC$21381_watchApi=m;var K=this.JSC$21381_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var W=G.JSC$21381_watchApi.getPlayerResponse();if(W){var L,A;if(W=_.Q((L=W.endscreen)==null?void 0:(A=L.endscreenRenderer)==null?void 0:A.hideButton,_.Dj)){var O;(O=G.setEndscreenHideButton)==null||O.call(G,W);qui(G)}}});
this.addOnDisposeCallback(function(){G.JSC$21381_watchApi.unsubscribeByKey(K)});
m=_.g(_.g_({},void 0,"ER3tqb"));this.endscreenHideButton=m.next().value;this.setEndscreenHideButton=m.next().value;Esu(this);HHG(this);Ius(this)};
_.n(jjq,_.Lt);var qui=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return m.creatorEndscreenHideButtonContainer?W.return():W.yield(m.JSC$21381_watchApi.playerApi,2);G=W.yieldResult;m.creatorEndscreenHideButtonContainer=document.createElement("div");_.VN(m.creatorEndscreenHideButtonContainer,!1);G.setCreatorEndscreenHideButton(m.creatorEndscreenHideButtonContainer);K=_.oP(m.creatorEndscreenHideButtonContainer,function(){return _.r(_.Gx,{data:m.endscreenHideButton,useOutlinedIcon:!0})},"jk");
m.addOnDisposeCallback(function(){K();var L;(L=G)==null||L.setCreatorEndscreenHideButton(void 0)});
_.ey(W)})},Esu=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21381_watchApi.playerApi,2);G=W.yieldResult;K=function(){m.creatorEndscreenHideButtonContainer&&_.VN(m.creatorEndscreenHideButtonContainer,!0)};
G.addEventListener("endscreenelementshown",K);m.addOnDisposeCallback(function(){var L;(L=G)==null||L.removeEventListener("endscreenelementshown",K)});
_.ey(W)})},HHG=function(m){var G=function(){m.creatorEndscreenHideButtonContainer&&_.VN(m.creatorEndscreenHideButtonContainer,!1)},K=m.JSC$21381_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",G),W=m.JSC$21381_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",G);
m.addOnDisposeCallback(function(){m.JSC$21381_watchApi.unsubscribeByKey(K);m.JSC$21381_watchApi.unsubscribeByKey(W)})},Ius=function(m){m.JSC$21381_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(G){var K=_.Q(G,Z3D);
m.JSC$21381_watchApi.playerApi.then(function(W){W==null||W.setCreatorEndscreenVisibility(!!K.hide)})});
m.addOnDisposeCallback(function(){m.JSC$21381_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};var Cj5=function(m){_.Lt.call(this);this.JSC$21387_watchApi=m;kVE(this)};
_.n(Cj5,_.Lt);var kVE=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21387_watchApi.playerApi,2);G=W.yieldResult;K=function(L){_.$R().dispatch(_.kt({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:L}}))};
G.addEventListener("onRetroModeChanged",K);m.addOnDisposeCallback(function(){G.removeEventListener("onRetroModeChanged",K)});
_.ey(W)})};var Vq6=0,YQ=0,daP=0;var Vt6=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),E2=function(m){_.Lt.call(this);this.JSC$21404_watchApi=m;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;ZHG(this)};
_.n(E2,_.Lt);
var ZHG=function(m){var G,K,W;_.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$21404_watchApi.playerApi,2);G=L.yieldResult;if(m.isDisposed())return L.return();m.sessionStorage=_.f06("yt-sleep-timer");m.sessionStorage||_.nc(new _.cw("SessionStorage for Sleep Timer is undefined."));((K=m.sessionStorage)==null?void 0:K.get("yt-sleep-timer"))==="true"&&(e3z(),(W=m.sessionStorage)==null||W.remove("yt-sleep-timer"),G.syncVolume());dDG(m,G);PjW(m,G);ynz(m,G);_.ey(L)})},dDG=function(m,G){var K=function(h){m.onSleepTimerSettingsChanged(h,
G)},W=function(h){m.onPlayerStateChange(h,G)},L=function(){m.onLoopChange(G)},A=function(){m.onCloseMiniplayer(G)},O=function(){CGG(G,(0,_.xD)(),fkO(G),m.selectedOption==="End of video",G.getPlayerState()!==1)},c=function(){m.onSeekComplete(G)},u=function(){_.Fu.cancelJob(YQ);
var h=G.getCurrentTime()>=G.getDuration(),J=m.selectedOption==="End of video"||m.selectedOption==="End of playlist"&&!Ik5(m.playlistId);h&&J&&e1s(m,G)};
G.addEventListener("onSleepTimerSettingsChanged",K);G.addEventListener("onLoopChange",L);G.addEventListener("onLoopRangeChange",L);G.addEventListener("onStateChange",W);G.addEventListener("onCloseMiniplayer",A);G.addEventListener("onSleepTimerFeatureAvailable",O);G.addEventListener("SEEK_COMPLETE",c);G.addEventListener("onAdStart",u);m.addOnDisposeCallback(function(){G.removeEventListener("onSleepTimerSettingsChanged",K);G.removeEventListener("onLoopChange",L);G.removeEventListener("onLoopRangeChange",
L);G.removeEventListener("onStateChange",W);G.removeEventListener("onCloseMiniplayer",A);G.removeEventListener("onSleepTimerFeatureAvailable",O);G.removeEventListener("SEEK_COMPLETE",c);G.removeEventListener("onAdStart",u)})},PjW=function(m,G){var K=m.JSC$21404_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var W=G.getVideoData().video_id,L,A=(L=E1i(m.JSC$21404_watchApi))==null?void 0:L.playlistId;
m.pauseAutonavPlayback&&(G.pauseVideo(),G.syncVolume(),m.pauseAutonavPlayback=!1);if(m.selectedOption==="End of video"&&W!==m.videoId)HV(m,G);else{if(m.selectedOption==="End of playlist"){L=Ik5(m.playlistId);if(A!==m.playlistId){HV(m,G);break a}L?L&&fu5(m,G):xDu(m,G)}m.videoId=W;m.playlistId=A}}});
m.addOnDisposeCallback(function(){m.JSC$21404_watchApi.unsubscribeByKey(K)})},ynz=function(m,G){var K=_.xS().resolve(_.wR),W=_.BB(K,_.tBd,function(A){A&&m.selectedOption!=="Off"&&HV(m,G)}),L=m.JSC$21404_watchApi.subscribeToActiveChanged(function(A){var O,c;
return _.Y(function(u){if(u.nextAddress==1)return u.yield(_.U7().navigationFinishPromise,2);O=!_.nFC();c=_.xS().resolve(_.pY).isMiniplayerActive();A||!qUq(m.selectedOption)||c||O||HV(m,G);_.ey(u)})},!1);
K=_.BB(K,function(A){return A.entities.playlistLoopStateEntity||{}},function(A){A=A===void 0?{}:A;
var O=HmD(m.JSC$21404_watchApi);if(O){var c;((c=A[O])==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ALL"&&qUq(m.selectedOption)&&HV(m,G)}});
m.addOnDisposeCallback(W);m.addOnDisposeCallback(K);m.addOnDisposeCallback(L)};
E2.prototype.onSleepTimerSettingsChanged=function(m,G){switch(m){case "Off":this.selectedOption!=="Off"&&HV(this,G);break;case "End of video":case "End of playlist":X66(this,m,G);break;default:X66(this,m,G,Vt6.get(m))}};
E2.prototype.onLoopChange=function(m){(m.getLoopVideo()||m.getLoopRange())&&qUq(this.selectedOption)&&HV(this,m)};
E2.prototype.onCloseMiniplayer=function(m){qUq(this.selectedOption)&&HV(this,m)};
var X66=function(m,G,K,W){Suq(m,K);m.selectedOption=G;m.videoId=K.getVideoData().video_id;m.playlistId="";var L;(L=m.sessionStorage)==null||L.set("yt-sleep-timer","true");m.adjustmentsCount++;CGG(K,(0,_.xD)(),fkO(K),m.selectedOption==="End of video");if(m.selectedOption==="End of video")xDu(m,K),R1u(m,K);else if(m.selectedOption==="End of playlist"){R1u(m,K);var A,O;m.playlistId=(O=(A=E1i(m.JSC$21404_watchApi))==null?void 0:A.playlistId)!=null?O:"";Ik5(m.playlistId)||xDu(m,K)}else W&&(m.presetFadeSchedulerId=
_.mn(_.Fu,function(){PGq(K,15E3)},W-15E3),m.presetPauseSchedulerId=_.mn(_.Fu,function(){e1s(m,K)},W),ZmE(K,(0,_.xD)(),W))},e1s=function(m,G){if(m.JSC$21404_watchApi.isActive()){var K={dismissDialogEndpoint:{}};
var W={commandExecutorCommand:{commands:[K,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};K={buttonViewModel:{title:_.zq("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:K}}};W={buttonViewModel:{title:_.zq("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:W}}};var L={dialogHeaderViewModel:{headline:{content:_.zq("SLEEP_TIMER_ENDED_TITLE")}}},
A={basicContentViewModel:{paragraphs:[{text:{content:_.zq("SLEEP_TIMER_ENDED_TEXT")}}]}};K={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:L,content:A,footer:{panelFooterViewModel:{primaryButton:K,secondaryButton:W,shouldHideDivider:!0}}}}}}};_.xS().resolve(_.S1).resolveCommand(K,{form:{element:m}})}else e3z();UD5(m,!1);z1P(m,G);G.pauseVideo();_.qV.getInstance().getState()===2&&G.getPlayerState()===5&&(m.pauseAutonavPlayback=!0)},HV=function(m,G){UD5(m,!0);
z1P(m,G);e3z()},z1P=function(m,G){Suq(m,G);
m.selectedOption="Off";m.videoId="";m.playlistId="";m.adjustmentsCount=0;var K;(K=m.sessionStorage)==null||K.remove("yt-sleep-timer");_.Fu.cancelJob(Vq6);G.resetSleepTimerMenuSettings()},UD5=function(m,G){G={timer_length_adjustment_times_during_session:m.adjustmentsCount-1,
is_session_cancelled:G};switch(m.selectedOption){case "Off":G.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":G.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:G.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",G.option_duration_in_minutes=Vt6.get(m.selectedOption)/6E4}_.Fx("sleepTimerSessionFinishEvent",G)};
E2.prototype.onPlayerStateChange=function(m,G){m===1?CGG(G,(0,_.xD)(),fkO(G),this.selectedOption==="End of video"):m===0?(_.Fu.cancelJob(YQ),G.setVideoTimeLeft(knz(0,0))):m===2&&_.Fu.cancelJob(YQ);this.selectedOption==="End of video"?m===0?e1s(this,G):m===2&&yX6(G):this.selectedOption!=="End of playlist"||Ik5(this.playlistId)||(m===0?e1s(this,G):m===2&&yX6(G))};
E2.prototype.onSeekComplete=function(m){m.getPlayerState()===2&&CGG(m,(0,_.xD)(),fkO(m),this.selectedOption==="End of video",!0)};
E2.prototype.onCueRangeEnter=function(m,G){m==="sleep-timer-fade-audio"&&PGq(G,(G.getDuration()-G.getProgressState().current)*1E3)};
E2.prototype.onCueRangeExit=function(m,G){m==="sleep-timer-fade-audio"&&G.getPlayerState()!==0&&yX6(G,!0)};
var xDu=function(m,G){G.addCueRange("sleep-timer-fade-audio",G.getDuration()-15,G.getDuration());G.addEventListener("onCueRangeEnter",function(K){m.onCueRangeEnter(K,G)});
G.addEventListener("onCueRangeExit",function(K){m.onCueRangeExit(K,G)})},fu5=function(m,G){G.removeCueRange("sleep-timer-fade-audio");
G.removeEventListener("onCueRangeEnter",function(K){m.onCueRangeEnter(K,G)});
G.removeEventListener("onCueRangeExit",function(K){m.onCueRangeExit(K,G)})},Suq=function(m,G){qUq(m.selectedOption)?fu5(m,G):(_.Fu.cancelJob(m.presetPauseSchedulerId),_.Fu.cancelJob(m.presetFadeSchedulerId),m.presetPauseSchedulerId=0,m.presetFadeSchedulerId=0);
yX6(G,!0)},R1u=function(m,G){G.setLoop(!1);
G.setLoopVideo(!1);G.setLoopRange(null);(m=HmD(m.JSC$21404_watchApi))&&_.xS().resolve(_.wR).dispatch(_.Bp("playlistLoopStateEntity",m,{key:m,state:"PLAYLIST_LOOP_STATE_NONE"}))};var m5i=function(m){_.Lt.call(this);var G=this;this.JSC$21407_watchApi=m;_.F("web_watch_force_start_in_theater_mode")&&lu6(this,!0,!1);Bgz(this);Mt6(this);TgD(this);var K=this.JSC$21407_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.U8("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.LL.get("wide",void 0)==="1"&&_.AH("wide","1",_.U8("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){G.JSC$21407_watchApi.unsubscribeByKey(K)});
m=m.getRoot();if(m.is==="ytd-watch-flexy"||m.is==="ytd-watch-grid")m.onTheaterReduxValueUpdate(this.getState());this.getState()&&tOu();_.F("web_watch_log_theater_mode_cookie_state")&&_.LL.get("wide","0")==="1"&&_.V3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.n(m5i,_.Lt);var Bgz=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21407_watchApi.playerApi,2);G=W.yieldResult;K=function(L){lu6(m,!!L)};
G.addEventListener("SIZE_CLICKED",K);m.addOnDisposeCallback(function(){G.removeEventListener("SIZE_CLICKED",K)});
_.ey(W)})},Mt6=function(m){m.JSC$21407_watchApi.registerActionHandler("yt-toggle-theater-mode",function(G,K){lu6(m,G,K===void 0?!0:K)});
m.addOnDisposeCallback(function(){m.JSC$21407_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
m5i.prototype.getState=function(){return _.wq(_.$R().getState())};
var lu6=function(m,G,K){K=K===void 0?!0:K;var W,L,A,O=_.F("enable_player_resize_transition")&&!!m.JSC$21407_watchApi.getWatchNextResponse()&&!((W=m.JSC$21407_watchApi.getWatchNextResponse())==null?0:(L=W.contents)==null?0:(A=L.twoColumnWatchNextResults)==null?0:A.conversationBar);wvE(function(){_.$R().dispatch(_.kt({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:G}}));_.F("theater_mode_scroll_to_top_killswitch")||m.JSC$21407_watchApi.scrollWatchTo(0,!1);_.$u()&&_.F("external_fullscreen")&&_.sB(document.documentElement);
TgD(m);K&&_.AH("wide",G?"1":"0",_.U8("theater_mode_cookie_max_age_seconds",-1));_.dU(m.JSC$21407_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);m.JSC$21407_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:G});G&&tOu()},{shouldWrap:O})},TgD=function(m){var G;
_.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21407_watchApi.playerApi,2);G=K.yieldResult;G.setSizeStyle(!0,m.getState());_.ey(K)})};var KkD=function(m){_.Lt.call(this);var G=this;this.playerApi=m;this.timeToPanelSyncKeyMap={};var K;if(m==null?0:(K=m.isReady)==null?0:K.call(m)){K=_.BB(_.xS().resolve(_.wR),function(L){return L.entities.timedMarkersListSyncEntity||{}},function(L,A){L=L===void 0?{}:L;
A=A===void 0?{}:A;for(var O=_.g(Object.keys(A)),c=O.next();!c.done;c=O.next())c=c.value,L[c]!==A[c]&&ijs(G,A[c]);A=_.g(Object.keys(L));for(O=A.next();!O.done;O=A.next())O=O.value,c=L[O],G.timeToPanelSyncKeyMap[O]&&GAD(G,c)});
this.addOnDisposeCallback(K);var W=function(L){G.onCueRangeEnter(L)};
m.addEventListener("onCueRangeEnter",W);this.addOnDisposeCallback(function(){var L;(L=m.removeEventListener)==null||L.call(m,"onCueRangeEnter",W)})}};
_.n(KkD,_.Lt);
var GAD=function(m,G){var K,W;if((K=m.playerApi)==null?0:(W=K.isReady)==null?0:W.call(K)){var L;if((K=G==null?void 0:(L=G.timedListData)==null?void 0:L.sections)&&G!=null&&G.key)for(L=_.g(K),K=L.next();!K.done;K=L.next())if(K=K.value,K.timedSyncDataList&&K.sectionId)for(W=0;W<K.timedSyncDataList.length;W++){var A=K.timedSyncDataList[W];A.syncItemId&&m.playerApi.addCueRange(K.sectionId+"_"+G.key+"_"+A.syncItemId,Number(A.videoTimeMs)/1E3,W===K.timedSyncDataList.length-1?0x8000000000000:Number(K.timedSyncDataList[W+
1].videoTimeMs)/1E3)}}},ijs=function(m,G){var K,W;
if((K=m.playerApi)==null?0:(W=K.isReady)==null?0:W.call(K)){var L;if((K=G==null?void 0:(L=G.timedListData)==null?void 0:L.sections)&&G!=null&&G.key)for(L=_.g(K),K=L.next();!K.done;K=L.next())if(K=K.value,K.timedSyncDataList&&K.sectionId){W=_.g(K.timedSyncDataList);for(var A=W.next();!A.done;A=W.next())A=A.value,A.syncItemId&&m.playerApi.removeCueRange(K.sectionId+"_"+G.key+"_"+A.syncItemId)}}};
KkD.prototype.onCueRangeEnter=function(m){for(var G=_.g(Object.keys(this.timeToPanelSyncKeyMap)),K=G.next();!K.done;K=G.next()){K=K.value;var W=_.g(m.split("_"+K+"_")),L=W.next().value;W=W.next().value;if(L&&W){m=_.xS().resolve(_.wR);G=this.timeToPanelSyncKeyMap[K];var A=_.vpf(m.getState(),G);K=WkP(K,L,W);if(K===-1)break;K={activeSyncId:W,activeItemIndex:K,activeSectionInfo:{sectionIdentifier:L}};A?m.dispatch(_.wS("markersEngagementPanelSyncEntity",G,K)):m.dispatch(_.Bp("markersEngagementPanelSyncEntity",
G,Object.assign({},{key:G},K)));break}}};
var WkP=function(m,G,K){var W=_.xS().resolve(_.wR),L,A;m=(L=iWD(W.getState(),m))==null?void 0:(A=L.timedListData)==null?void 0:A.sections;if(!m)return-1;L=0;A=_.g(m);for(m=A.next();!m.done;m=A.next()){m=m.value;W=m.timedSyncDataList||[];if(m.sectionId===G)return G=W.findIndex(function(O){return O.syncItemId===K}),G===-1?G:L+G;
L+=W.length}return-1};var wQz=function(m){_.Lt.call(this);var G=this;this.JSC$21421_watchApi=m;this.unresolvedCommands=[];this.JSC$21421_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(K){Lks(G,K)});
this.addOnDisposeCallback(function(){G.JSC$21421_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
A2z(this)};
_.n(wQz,_.Lt);var A2z=function(m){var G;_.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21421_watchApi.playerApi,2);G=K.yieldResult;if(m.isDisposed())return K.return();m.timedSyncObserver=new KkD(G);m.unresolvedCommands.length&&(m.unresolvedCommands.forEach(function(W){return Lks(m,W)}),m.unresolvedCommands=[]);
_.UR(m,m.timedSyncObserver);_.ey(K)})},Lks=function(m,G){if(m.timedSyncObserver){var K=_.Q(G,fN5);
if(K&&K.timedSyncEntityKey&&K.panelSyncEntityKey){m=m.timedSyncObserver;G=K.timedSyncEntityKey;var W=K.panelSyncEntityKey;K=!!K.isEnabled;K=K===void 0?!0:K;var L=_.xS().resolve(_.wR);L=iWD(L.getState(),G);K?m.timeToPanelSyncKeyMap[G]||(m.timeToPanelSyncKeyMap[G]=W,GAD(m,L)):(delete m.timeToPanelSyncKeyMap[G],ijs(m,L))}}else m.unresolvedCommands.push(G)};var g0E=_.P(function(m){var G=m.data,K=m.maybeLogSmartSkipClientData,W=null,L=null,A=_.F("web_enable_auto_focus_for_timely_action_button"),O=function(){W=document.activeElement},c=function(){G().smartSkipMetadata&&(W=document.activeElement,QvD(function(){return L}))},u=function(J){if(G().smartSkipMetadata&&(!J||J.key!=="Enter")){W&&W.isConnected&&(QvD(function(){return W}),W=null);
var N;(N=L)==null||N.blur()}};
m=_.dn(function(){K==null||K(!0,G());return!1});
var h=_.aC(_.On(function(){return G().rendererContext},{onTap:function(J,N){N({disableClickTracking:!0})}}),_.eN({visibilityCallback:function(J){if(A)J?L&&G().smartSkipMetadata&&(c(),document.addEventListener("focusin",O)):(document.removeEventListener("focusin",O),u());
else if(J){J=_.wH(G().rendererContext);var N=Number(G().maxVisibleDurationMilliseconds),D,t=(D=_.Q(G().rendererContext,_.MB))==null?void 0:D.label;J&&N&&t&&(D={label:t,command:J,durationMs:N},_.xS().resolve(_.$h).enqueue(D))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.nn(function(){if(A){var J;if((L=(J=h.value)==null?void 0:J.querySelector("button"))&&G().smartSkipMetadata){var N;(N=h.value)==null||N.addEventListener("keydown",u)}}});
_.sZ(function(){A&&(L&&G().smartSkipMetadata&&L.removeEventListener("keydown",u),document.removeEventListener("focusin",O),u())});
return _.r("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:h,"on:click":m},_.r(_.z$,{data:function(){return G().content}},{buttonViewModel:_.kP}))},"lk");var OjD=_.P(function(m){var G=m.data,K=m.playerApi,W=_.xS().resolve(_.Kii);m=_.g(_.EQ(function(){G()}));
var L=m.next().value,A=m.next().value,O=function(){return SUs(G(),L())},c=function(h,J){var N,D,t=(N=_.Q(J==null?void 0:J.rendererContext,_.BL))==null?void 0:(D=N.loggingDirectives)==null?void 0:D.trackingParams;
if((J=J==null?void 0:J.smartSkipMetadata)&&J.loggingData&&(D=J.loggingData,J=D.algorithmId,N=D.startMilliseconds,D=D.endMilliseconds,J&&N!==void 0&&D!==void 0)){var a,v;h={smartSkipData:Object.assign({},{versionName:J,startMediaTimeMs:N,endMediaTimeMs:D},h&&{userInteractionMediaTimeMs:(Math.floor(((a=_.qW())==null?void 0:(v=a.getPlayer())==null?void 0:v.getCurrentTime())||0)*1E3).toString()})};a=_.gU();var I;t&&(I=_.m5(t));a&&I&&_.vk(a,I,h)}},u=function(h,J){var N=SUs(G(),h);
if(N){var D=_.Q(N,XYE),t;if(t=J)t=K(),N=_.Q(N,XYE),t=N!=null&&N.smartSkipMetadata?!(t==null?0:t.isSameMarkerTypeVisible((N==null?void 0:N.smartSkipMetadata.markerKey)||"")):!0;if(t){var a,v;(D==null?0:(a=D.smartSkipMetadata)==null?0:(v=a.loggingData)==null?0:v.isCounterfactual)||(c(!1,D),A(h))}else J||L()!==h||A(void 0)}};
_.$O(function(){var h=G().timelyActions;if(h){h=_.g(h);for(var J=h.next();!J.done;J=h.next()){J=_.Q(J.value,XYE);var N=void 0;(N=J)!=null&&N.cueRangeId&&W.timelyActionsMap.set(J.cueRangeId,u)}_.sZ(function(){W.timelyActionsMap.clear()})}},"l2RtC");
return _.r("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.r(_.z$,{data:O},{timelyActionViewModel:function(h){return _.r(g0E,{data:h.data,maybeLogSmartSkipClientData:function(){c(!0,_.Q(O(),XYE))}})}}))},"nk");var YSG=function(m){_.Lt.call(this);this.JSC$21434_watchApi=m;m=_.g(_.g_({},void 0,"UN7k5e"));this.timelyActionsOverlay=m.next().value;this.setTimelyActionsOverlay=m.next().value;c2W(this)};
_.n(YSG,_.Lt);var c2W=function(m){var G,K,W,L;_.Y(function(A){if(A.nextAddress==1)return r2q(m),uL5(m),m.timelyActionsContainer=document.createElement("div"),A.yield(m.JSC$21434_watchApi.playerApi,2);G=A.yieldResult;(W=(K=G).insertTimelyActionUi)==null||W.call(K,m.timelyActionsContainer);L=_.oP(m.timelyActionsContainer,function(){return _.r(OjD,{data:m.timelyActionsOverlay,playerApi:G})},"ok");
m.addOnDisposeCallback(L);_.ey(A)})},uL5=function(m){var G=m.JSC$21434_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r2q(m)});
m.addOnDisposeCallback(function(){m.JSC$21434_watchApi.unsubscribeByKey(G)})},r2q=function(m){var G=m.JSC$21434_watchApi.getWatchNextResponse();
if(G){var K,W;if(G=_.Q((K=G.playerOverlays)==null?void 0:(W=K.playerOverlayRenderer)==null?void 0:W.timelyActionsOverlayViewModel,S36)){var L;(L=m.setTimelyActionsOverlay)==null||L.call(m,G)}}};var pQi=function(m){_.Lt.call(this);this.JSC$21438_watchApi=m;hk5(this)};
_.n(pQi,_.Lt);var hk5=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21438_watchApi.playerApi,2);G=W.yieldResult;K=function(L){_.xe.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Q(L,Gmi)},popupType:"TOAST"}})};
G.addEventListener("onYtShowToast",K);m.addOnDisposeCallback(function(){G.removeEventListener("onYtShowToast",K)});
_.ey(W)})};var J2O=function(m){var G=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.yY;this.element.addEventListener("load",function(){G.loaded=!0;G.resolver.resolve(G.element)});
this.element.addEventListener("error",function(){G.failed=!0});
this.element.src=m};var Nc6=function(m,G){this.image=m;this.frame=G};
Nc6.prototype.drawToCanvas=function(m,G){var K=this.frame.width/this.frame.columns,W=this.frame.height/this.frame.rows,L=G.offsetX,A=G.offsetY;R3G(G)?(m.fillStyle=G.fullscreen?"#000":"#0f0f0f",m.fillRect(L,A,(G==null?void 0:G.width)||K,(G==null?void 0:G.height)||W)):m.drawImage(this.image,this.frame.column*K,this.frame.row*W,K,W,L,A,(G==null?void 0:G.width)||K,(G==null?void 0:G.height)||W)};
var D5W=function(m){this.color=m};
D5W.prototype.drawToCanvas=function(m,G){var K=G.offsetX,W=G.offsetY,L=G.width,A=G.height;m.fillStyle=R3G(G)?G.fullscreen?"#000":"#0f0f0f":this.color;m.fillRect(K,W,L,A)};var I5=function(m,G){V_.call(this);this.playerApi=G;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.qj(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();tV6(this,m);Fki(this);this.update()};
_.n(I5,V_);I5.prototype.addEventListeners=function(){var m=this,G=function(){m.update()},K=function(L){m.paused||(L.type==="newdata"&&(m.mosaics.clear(),Q8q(m),js(m)),Fki(m),m.update())},W=function(){m.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",G);this.playerApi.addEventListener("onVideoDataChange",K);this.playerApi.addEventListener("onStateChange",W);this.addOnDisposeCallback(function(){m.playerApi.removeEventListener("onVideoProgress",G);m.playerApi.removeEventListener("onVideoDataChange",K);m.playerApi.removeEventListener("onStateChange",W)})};
var tV6=function(m,G){m.cinematicContainerRenderer!==G&&(m.cinematicContainerRenderer=G,Q8q(m),js(m),m.colorStoreUpdateJobId=_.Fu.addLowPriorityJob(function(){var K;if((K=m.cinematicContainerRenderer.colorStore)!=null&&K.sampledColors){K=Infinity;for(var W=_.g(m.cinematicContainerRenderer.colorStore.sampledColors),L=W.next();!L.done;L=W.next()){L=L.value;var A=Number(L.key);A!==0&&A<K&&(K=A);A=_.ce(L.value);m.colorStore.set(L.key,A)}m.colorStoreTimeInterval=K}}))},Q8q=function(m){m.colorStoreUpdateJobId&&
(_.Fu.cancelJob(m.colorStoreUpdateJobId),m.colorStoreUpdateJobId=void 0);
m.colorStore.clear();m.currentStoryboardColor=void 0},aoW=function(m,G){var K;
return(K=m.getStoryboardFrame(G))==null?void 0:K.url};
I5.prototype.onPlayerStateChange=function(){this.update()};
I5.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var Fki=function(m){var G=m.getStoryboardFrame(0);G&&(G=new _.qj(G.width/G.columns,G.height/G.rows),oK6(m.currentStoryboardSize,G)||(m.currentStoryboardSize=G,m.publish("STORYBOARD_SIZE_CHANGED",m.currentStoryboardSize)))},o0D=function(m,G){m.currentStoryboardIndex=G;
m.pendingStoryboardIndex=NaN;G=m.getStoryboardFrame(m.currentStoryboardIndex);m.currentStoryboard=new Nc6(m.mosaics.get(G.url).element,G);m.publish("STORYBOARD_CHANGED",m.currentStoryboard);m.lastUpdateTime=(0,_.xD)()};
I5.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var js=function(m){m.currentStoryboardIndex=NaN;m.pendingStoryboardIndex=NaN;m.currentStoryboard&&(m.currentStoryboard=void 0,m.publish("STORYBOARD_CHANGED",void 0));m.lastUpdateTime=NaN};
I5.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)js(this);else{var m=this.playerApi.getPlayerState(1);if(m===-1||m===5||m===0)js(this);else if(isNaN(this.lastUpdateTime)||!((0,_.xD)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(m=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){m=""+Math.round(m*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var G=this.colorStore.get(m);G?G!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=G,this.currentStoryboard=new D5W(G),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.xD)()):(_.nc(new _.cw("Could not find color for timestamp: "+m,this.cinematicContainerRenderer)),js(this))}else js(this);else n0q(this,m)}};
var n0q=function(m,G){var K=m.getStoryboardFrameIndex(G);if(K!==m.currentStoryboardIndex&&K!==m.pendingStoryboardIndex){G=aoW(m,K);var W=m.mosaics.get(G);W?W.loaded&&o0D(m,K):(m.pendingStoryboardIndex=K,K=new J2O(G),m.mosaics.set(G,K),K.resolver.promise.then(function(){if(!m.isDisposed()&&!m.paused&&!isNaN(m.pendingStoryboardIndex)){var L=aoW(m,m.pendingStoryboardIndex);if(L){var A;(A=m.mosaics.get(L))!=null&&A.loaded&&o0D(m,m.pendingStoryboardIndex)}else js(m)}}))}};
I5.prototype.getStoryboardFrameIndex=function(m){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(m,G)};
I5.prototype.getStoryboardFrame=function(m){var G=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,K,W;return((W=(K=this.playerApi).getStoryboardFrame)==null?void 0:W.call(K,m,G))||null};
I5.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Co=function(m,G,K,W){W=W===void 0?!1:W;_.Lt.call(this);this.cinematicContainerRenderer=G;this.playerApi=K;this.theater=this.fullscreen=!1;var L;this.ambientLightThemeEnabled=!W&&!!(G==null?0:(L=G.config)==null?0:L.enableInLightTheme);this.ambientTheaterModeEnabled=(this.ambientFullscreenEnabled=W)&&!0;this.container=document.createElement("div");m.appendChild(this.container);this.innerContainer=document.createElement("div");this.container.appendChild(this.innerContainer);bjz(this);this.backCanvas=
UaE();this.frontCanvas=UaE();this.innerContainer.appendChild(this.backCanvas.element);this.innerContainer.appendChild(this.frontCanvas.element);this.storyboardManager=new I5(G,this.playerApi);_.UR(this,this.storyboardManager);this.addEventListeners();v06(this)?$5z(this,100+kw(this)*3*2,100+kw(this)*3*2):s8z(this);qSO(this,this.storyboardManager.currentStoryboard)};
_.n(Co,_.Lt);
var bjz=function(m){var G=m.playerApi.getVideoAspectRatio();_.Fo(m.container,{"aspect-ratio":""+G,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});var K;var W;if((m.fullscreen||m.theater)&&((K=m.cinematicContainerRenderer.config)==null?0:(W=K.watchFullscreenConfig)==null?0:W.colorSourceWidthMultiplier))K=m.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;else{var L;K=(L=
m.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?L:m.cinematicContainerRenderer.config.colorSourceSizeMultiplier}var A,O;if((m.fullscreen||m.theater)&&((A=m.cinematicContainerRenderer.config)==null?0:(O=A.watchFullscreenConfig)==null?0:O.colorSourceHeightMultiplier))L=m.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;else{var c;L=(c=m.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?c:m.cinematicContainerRenderer.config.colorSourceSizeMultiplier}_.Fo(m.innerContainer,
{"aspect-ratio":""+G,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+K+", "+L+")"});z3P()&&_.Fo(m.innerContainer,"filter","blur("+_.U8("cinematic_watch_css_filter_blur_strength",40)+"px)")};
Co.prototype.setFullscreen=function(m,G){this.fullscreen=m;this.theater=!!G;bjz(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),m=this.storyboardManager.currentStoryboard,E0E(this),m&&HjD(this,m)};
Co.prototype.addEventListeners=function(){var m=this,G=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(L){qSO(m,L)}),K=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){s8z(m)});
this.addOnDisposeCallback(function(){m.storyboardManager.unsubscribeByKey(G);m.storyboardManager.unsubscribeByKey(K)});
var W=function(){bjz(m)};
this.playerApi.addEventListener("onVideoDataChange",W);this.addOnDisposeCallback(function(){m.playerApi.removeEventListener("onVideoDataChange",W)})};
var s8z=function(m){if(!v06(m)){var G=m.storyboardManager.currentStoryboardSize;isNaN(G.width)||isNaN(G.height)||$5z(m,Number(G.width)+kw(m)*3*2,Number(G.height)+kw(m)*3*2)}},$5z=function(m,G,K){m.backCanvas.element.width=G;
m.backCanvas.element.height=K;m.frontCanvas.element.width=G;m.frontCanvas.element.height=K},v06=function(m){return m.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},qSO=function(m,G,K){K=K===void 0?!1:K;
var W=m.frontCanvas.element.getAnimations()[0];W?(W.pause(),m.backCanvas.context.globalAlpha=Number(getComputedStyle(m.frontCanvas.element).opacity),m.frontCanvas.element.style.opacity="0",W.finish()):m.backCanvas.context.globalAlpha=1;m.backCanvas.context.drawImage(m.frontCanvas.element,0,0,m.backCanvas.element.width,m.backCanvas.element.height);E0E(m);G&&HjD(m,G);G=G?m.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.U8("cinematic_watch_fade_out_duration",500);W=_.U8("cinematic_watch_transition_frame_rate")/
1E3;var L={};W&&(L={easing:"steps("+Math.round(G*W)+")"});(K===void 0?0:K)||m.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:G,iterations:1},L));m.frontCanvas.element.style.opacity="1"},E0E=function(m){var G=m.ambientLightThemeEnabled||m.ambientTheaterModeEnabled,K=m.ambientLightThemeEnabled||m.ambientFullscreenEnabled;
m.frontCanvas.context.fillStyle=m.theater&&G||m.fullscreen&&K?"#000":"#0f0f0f";z3P()||(m.frontCanvas.context.filter="blur(0)");m.frontCanvas.context.fillRect(0,0,m.frontCanvas.element.width,m.frontCanvas.element.height)},HjD=function(m,G){z3P()||(m.frontCanvas.context.filter="blur("+kw(m)+"px)");
m.frontCanvas.context.globalAlpha=m.fullscreen&&m.ambientFullscreenEnabled||m.theater&&m.ambientTheaterModeEnabled?_.U8("cinematic_watch_effect_letterbox_opacity",.4):_.U8("cinematic_watch_effect_opacity",.4);var K={offsetX:kw(m)*3,offsetY:kw(m)*3,theater:m.theater,fullscreen:m.fullscreen};v06(m)&&(K.width=100,K.height=100);G.drawToCanvas(m.frontCanvas.context,K);m.frontCanvas.context.globalAlpha=1},kw=function(m){var G;
return(G=m.cinematicContainerRenderer.config.blurStrength)!=null?G:5};
Co.prototype.disposeInternal=function(){_.Lt.prototype.disposeInternal.call(this);this.container.remove()};
Co.prototype.clear=function(){qSO(this,void 0,!0)};
Co.prototype.pause=function(){this.storyboardManager.pause()};var IoG=_.LV(function(){var m,G,K=!((G=(m=document.createElement("canvas")).getContext)==null||!G.call(m,"2d")),W;m=!((W=CSS)==null||!W.supports("filter: blur(0)"));W=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var L;return K&&m&&W&&!((L=CSS)==null||!L.supports("aspect-ratio: 1 / 1"))}),VB=function(m,G){V_.call(this);
this.container=m;this.playerApi=G;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=j85(this);this.update()};
_.n(VB,V_);var kAz=function(m){var G=document.documentElement.hasAttribute("dark");m.isDarkModeEnabled=G;m.update()},Czu=function(m,G){m.settingEnabled=G;
m.update()};
VB.prototype.setFullscreen=function(m,G){this.fullscreen=m;this.theater=!!G;this.update()};
var VVE=function(m,G){m.cinematicContainerRenderer=G;m.cinematicContainerRenderer&&(m.cinematicsVe=_.dq(m.isShorts()?227858:159022),_.yw(_.l1(),m.cinematicsVe),m.loggingClientData={watchCinematicContainerData:{presentationStyle:m.cinematicContainerRenderer.presentationStyle}});m.update()};
VB.prototype.isShorts=function(){var m,G;return((m=this.cinematicContainerRenderer)==null?void 0:(G=m.config)==null?void 0:G.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
VB.prototype.isAllowed=function(){var m;if(m=IoG()){var G,K,W;m=((K=this.cinematicContainerRenderer)==null?void 0:K.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((W=this.cinematicContainerRenderer)==null||!W.colorStore)||((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(m)if(_.F("web_cinematics_pausing")){var L,A;m=this.isDarkModeEnabled||!!((L=this.cinematicContainerRenderer)==
null?0:(A=L.config)==null?0:A.enableInLightTheme)}else{var O,c;L=!!((O=this.cinematicContainerRenderer)==null?0:(c=O.config)==null?0:c.enableInLightTheme)&&(_.E8("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);m=this.isDarkModeEnabled||L}if(O=m){var u,h;O=!((h=(u=this.prefersReducedMotionQuery)==null?void 0:u.matches)!=null&&h)}return O};
var ZjE=function(m){var G;(G=m.currentCinematicEffect)==null||G.clear()},d5O=function(m){var G;
(G=m.currentCinematicEffect)==null||G.pause()},PzD=function(m){(m=m.currentCinematicEffect)!=null&&(m=m.storyboardManager,m.paused=!1,Fki(m),m.update())};
VB.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var j85=function(m){if(!_.F("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var G=window.matchMedia("(prefers-reduced-motion: reduce)"),K=function(){m.update()};
G.addListener(K);m.addOnDisposeCallback(function(){G.removeListener(K)});
return G}};
VB.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var m=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Co(this.container,m,this.playerApi,this.isDarkModeEnabled),_.UR(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var G=this.currentCinematicEffect;G.cinematicContainerRenderer!==
m&&(G.cinematicContainerRenderer=m,tV6(G.storyboardManager,m),bjz(G));m=_.M$();_.Tq(0,194,!0);m.save();m=_.gU();this.cinematicsVe&&m&&_.a7(m,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(m=_.gU(),this.cinematicsVe&&m&&_.o7(m,[this.cinematicsVe],!1,this.loggingClientData),_.I$(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.e_.Object.defineProperties(VB.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var y2G=!1,XQq=function(m){_.Lt.call(this);this.JSC$21471_watchApi=m;this.fullscreen=this.theater=!1;ekP(this);foD(this);x5z(this)};
_.n(XQq,_.Lt);var x5z=function(m){var G,K,W;_.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$21471_watchApi.playerApi,2);G=L.yieldResult;if(m.isDisposed())return L.return();K=m.JSC$21471_watchApi.getElement("CINEMATICS");if(!K)return L.return();m.JSC$21471_cinematicController=new VB(K,G);_.UR(m,m.JSC$21471_cinematicController);kAz(m.JSC$21471_cinematicController);SSE(m,_.gnJ());W=m.JSC$21471_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(A){Rku(m,A)});
m.addOnDisposeCallback(function(){m.JSC$21471_watchApi.unsubscribeByKey(W)});
U5u(m);Rku(m,m.JSC$21471_cinematicController.isAllowed());zkW(m);loi(m);_.ey(L)})},zkW=function(m){m.fullscreen=_.gq(_.$R().getState());
m.theater=_.wq(_.$R().getState());Bc6(m,m.fullscreen,m.theater);var G=_.BB(_.$R(),_.gq,function(W){m.fullscreen=W;Bc6(m,m.fullscreen,m.theater)}),K=_.BB(_.$R(),_.wq,function(W){m.theater=W;
Bc6(m,m.fullscreen,m.theater)});
m.addOnDisposeCallback(G);m.addOnDisposeCallback(K)},ekP=function(m){var G=m.JSC$21471_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){U5u(m)});
m.addOnDisposeCallback(function(){m.JSC$21471_watchApi.unsubscribeByKey(G)})},foD=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21471_watchApi.playerApi,2);G=W.yieldResult;K=function(L){SSE(m,L)};
G.addEventListener("cinematicSettingsToggleChange",K);m.addOnDisposeCallback(function(){G.removeEventListener("cinematicSettingsToggleChange",K)});
_.ey(W)})},U5u=function(m){var G=m.JSC$21471_watchApi.getWatchNextResponse(),K;
G=_.Q(G==null?void 0:(K=G.pageVisualEffects)==null?void 0:K[0],Qa);var W;(W=m.JSC$21471_cinematicController)==null||VVE(W,G)},SSE=function(m,G){var K;
(K=m.JSC$21471_cinematicController)==null||Czu(K,G);MVE(m)},Rku=function(m,G){var K;
_.Y(function(W){if(W.nextAddress==1)return _.F("kevlar_watch_cinematics_invisible")&&(G=!1),W.yield(m.JSC$21471_watchApi.playerApi,2);K=W.yieldResult;K.updateCinematicSettings(G);MVE(m);_.ey(W)})},loi=function(m){var G=_.M$();
if(_.F("kevlar_measure_ambient_mode_idle")&&!G.getFlag(192)&&!y2G){y2G=!0;var K=_.rC(_.Fu,function(){_.xS().resolve(_.ywD).start(1E4)},5E3);
m.addOnDisposeCallback(function(){_.Fu.cancelJob(K);_.xS().resolve(_.ywD).stop()})}},Bc6=function(m,G,K){m.fullscreen=G;
m.theater=K;var W;(W=m.JSC$21471_cinematicController)==null||W.setFullscreen(m.fullscreen,m.theater);if(_.F("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(m.theater||m.fullscreen){var L;(L=m.JSC$21471_cinematicController)==null||PzD(L)}else{var A;(A=m.JSC$21471_cinematicController)==null||d5O(A)}},MVE=function(m){var G;
m.JSC$21471_watchApi.getRoot().toggleCinematicsActive(!((G=m.JSC$21471_cinematicController)==null||!G.isEnabled()))};var GDG=function(m){_.Lt.call(this);var G=this;this.JSC$21474_watchApi=m;this.commentsReady=!1;this.setCommentsJobId=0;m=_.BB(_.$R(),Li,function(){TcD(G)});
this.addOnDisposeCallback(m);var K=this.JSC$21474_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){msu(G)}),W=this.JSC$21474_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){msu(G)});
this.addOnDisposeCallback(function(){G.JSC$21474_watchApi.unsubscribeByKey(K);G.JSC$21474_watchApi.unsubscribeByKey(W)});
var L=function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&io6(G,"false")};
this.JSC$21474_watchApi.getRoot().addEventListener("yt-page-data-will-update",L);this.addOnDisposeCallback(function(){G.JSC$21474_watchApi.getRoot().removeEventListener("yt-page-data-will-update",L)});
msu(this)};
_.n(GDG,_.Lt);var msu=function(m){m.commentsReady=!1;_.Fu.cancelJob(m.setCommentsJobId);m.setCommentsJobId=_.rC(_.Fu,function(){TcD(m)},1E3)},TcD=function(m){if(!m.commentsReady){_.Yt("cmi");
_.Fu.cancelJob(m.setCommentsJobId);var G,K,W,L,A=(G=m.JSC$21474_watchApi.getWatchNextResponse())==null?void 0:(K=G.contents)==null?void 0:(W=K.twoColumnWatchNextResults)==null?void 0:(L=W.results)==null?void 0:L.results.contents;G=void 0;if(A&&A.length)for(A=_.g(A),K=A.next();!K.done;K=A.next())if(K=K.value,L=W=void 0,((W=K)==null?void 0:(L=W.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"){_.F("web_watch_provide_undefined_comments")?G=K.itemSectionRenderer:m.JSC$21474_watchApi.provideRenderingData("COMMENTS",
K.itemSectionRenderer);io6(m,"true");break}_.F("web_watch_provide_undefined_comments")&&m.JSC$21474_watchApi.provideRenderingData("COMMENTS",G);m.commentsReady=!0;m.JSC$21474_watchApi.dispatchEvent("yt-watch-comments-ready")}},io6=function(m,G){var K;
(K=m.JSC$21474_watchApi.getElement("COMMENTS"))==null||K.setAttribute("canScheduleJobs",G)};var KYq=["engagement-panel-ads"],gwW=function(m){_.Lt.call(this);var G=this;this.JSC$21477_watchApi=m;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.F("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.F("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.F("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.U8("swatcheroo_provide_all_data_delay_ms",
250);if(this.swatcherooProvideAllDataOnScheduledJob)WYE(this);else{var K=this.JSC$21477_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){LY5(G);Zs(G)}),W=this.JSC$21477_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){da(G);
Zs(G)});
this.JSC$21477_watchApi.getRoot().is==="ytd-watch-grid"&&_.F("swatcheroo_pbs_load_grid")&&(ATu(this),wVu(this));this.addOnDisposeCallback(function(){G.JSC$21477_watchApi.unsubscribeByKey(K);G.JSC$21477_watchApi.unsubscribeByKey(W);_.Fu.cancelJob(G.provideRichGridJobId)});
LY5(this);da(this)}};
_.n(gwW,_.Lt);var WYE=function(m){var G=m.JSC$21477_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){m.providePlayerJobId=_.UU(_.Fu,function(){LY5(m);Zs(m)},m.provideAllDataDelayMs)}),K=m.JSC$21477_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){m.provideWatchNextJobId=_.UU(_.Fu,function(){da(m);
Zs(m)},m.provideAllDataDelayMs)}),W=m.JSC$21477_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){m.provideWatchNextJobId=_.UU(_.Fu,function(){da(m);
Zs(m)},m.provideAllDataDelayMs)});
m.JSC$21477_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.rC(_.Fu,function(){LY5(m);da(m);Zs(m)},100)});
m.JSC$21477_watchApi.addPageDisposeJob(function(){_.Fu.cancelJob(m.provideWatchNextJobId);_.Fu.cancelJob(m.providePlayerJobId)});
m.addOnDisposeCallback(function(){m.JSC$21477_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");m.JSC$21477_watchApi.unsubscribeByKey(G);m.JSC$21477_watchApi.unsubscribeByKey(K);m.JSC$21477_watchApi.unsubscribeByKey(W);_.Fu.cancelJob(m.providePlayerJobId);_.Fu.cancelJob(m.provideWatchNextJobId)});
LY5(m);da(m)},LY5=function(m){var G=m.JSC$21477_watchApi.getPlayerResponse(),K,W,L=(W=G==null?void 0:(K=G.playabilityStatus)==null?void 0:K.messageRenderers)!=null?W:[],A,O;
G=(O=G==null?void 0:(A=G.playabilityStatus)==null?void 0:A.messages)!=null?O:[];A=_.g(G);for(O=A.next();!O.done;O=A.next())L.push({alertRenderer:{text:_.nG(O.value),type:"WARNING"}});m.JSC$21477_watchApi.provideRenderingData("ALERTS",L)},da=function(m){var G=[],K,W,L,A=m.JSC$21477_watchApi.getWatchNextResponse(),O,c,u,h,J=A==null?void 0:(O=A.contents)==null?void 0:(c=O.twoColumnWatchNextResults)==null?void 0:(u=c.results)==null?void 0:(h=u.results)==null?void 0:h.contents;
if(J)for(O=_.g(J),c=O.next();!c.done;c=O.next())if(c=c.value,c.videoPrimaryInfoRenderer)var N=c;else if(c.videoSecondaryInfoRenderer){var D=c;h=u=void 0;c=Object.assign({},(u=c.videoSecondaryInfoRenderer)==null?void 0:(h=u.metadataRowContainer)==null?void 0:h.metadataRowContainerRenderer);if(c.rows&&c.collapsedItemCount!==void 0){c.rows=c.rows.slice(0,c.collapsedItemCount).filter(function(iq){return!!iq.richMetadataRowRenderer});
c.collapsedItemCount=c.rows.length;var t={metadataRowContainerRenderer:c}}}else if(c.merchandiseShelfRenderer)var a=c;else if(c.ticketShelfRenderer)var v=c;else if(c.expandableMetadataRenderer)var I=c;else if(c.itemSectionRenderer)if(u=c.itemSectionRenderer.contents,h=void 0,m.directlyProvideComments&&((h=c.itemSectionRenderer)==null?void 0:h.sectionIdentifier)==="comment-item-section")_.Yt("cmi"),m.JSC$21477_watchApi.provideRenderingData("COMMENTS",c.itemSectionRenderer);else if(u)for(c=_.g(u),u=
c.next();!u.done;u=c.next())if(u=u.value,u.commentsEntryPointHeaderRenderer)var Z=u;else if(u.clarificationRenderer||u.infoPanelContainerRenderer||u.infoPanelContentRenderer||u.emergencyOneboxRenderer){G.push(u);var k=k||!!D}else u.limitedStateMessageRenderer?W=u:u.videoMetadataCarouselViewModel&&(L=u);if(_.F("web_watch_merch_in_sd_when_ticket_shelf_present")&&a&&v){var z=a;a=void 0}if(m.provideWatchNextSecondaryResults){var X,f,U;m.JSC$21477_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
A==null?void 0:(X=A.contents)==null?void 0:(f=X.twoColumnWatchNextResults)==null?void 0:(U=f.secondaryResults)==null?void 0:U.secondaryResults)}if(m.JSC$21477_watchApi.getRoot().is==="ytd-watch-grid"){var l,Ls;m.JSC$21477_watchApi.provideRenderingData("LIVE_CHAT",A==null?void 0:(l=A.contents)==null?void 0:(Ls=l.twoColumnWatchNextResults)==null?void 0:Ls.conversationBar)}var gd,Qf,JV,DF;(X=A==null?void 0:(gd=A.contents)==null?void 0:(Qf=gd.twoColumnWatchNextResults)==null?void 0:(JV=Qf.secondaryResults)==
null?void 0:(DF=JV.secondaryResults)==null?void 0:DF.offerModule)&&(X.donationShelfRenderer||X.donationUnavailableRenderer)&&m.JSC$21477_watchApi.getRoot().is!=="ytd-watch-grid"&&(K=X);gd=m.JSC$21477_watchApi.getPlayerResponse();if(!gd||!_.lAs(gd.playabilityStatus,A==null?void 0:A.playerOverlays)){var kG;if(A==null?0:(kG=A.contents)==null?0:kG.singleColumnWatchNextResults){var eo,xG;var Ji=A==null?void 0:(eo=A.contents.singleColumnWatchNextResults.results)==null?void 0:(xG=eo.results)==null?void 0:
xG.contents}else{var rK,So,ti,bS;kG=!!(J==null?0:(rK=J[0])==null?0:(So=rK.itemSectionRenderer)==null?0:(ti=So.contents)==null?0:(bS=ti[0])==null?0:bS.backgroundPromoRenderer);var NG,EO;rK=!!(A==null?0:(NG=A.contents)==null?0:(EO=NG.twoColumnWatchNextResults)==null?0:EO.secondaryResults);kG&&!rK&&(Ji=J)}}J=G[0];NG=G[1];k&&G.length===1&&(NG=J,J=void 0);m.JSC$21477_watchApi.provideRenderingData("PRIMARY_INFO",N);m.JSC$21477_watchApi.provideRenderingData("SECONDARY_INFO",D);m.JSC$21477_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
Z);m.JSC$21477_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",L);m.JSC$21477_watchApi.provideRenderingData("CLARIFICATION",J);m.JSC$21477_watchApi.provideRenderingData("RICH_METADATA",t);m.JSC$21477_watchApi.provideRenderingData("MERCH_SHELF",a);_.F("web_watch_merch_in_sd_when_ticket_shelf_present")&&m.JSC$21477_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",z);m.JSC$21477_watchApi.provideRenderingData("TICKET_SHELF",v);m.JSC$21477_watchApi.provideRenderingData("LIMITED_STATE",W);m.JSC$21477_watchApi.getRoot().is!==
"ytd-watch-grid"&&m.JSC$21477_watchApi.provideRenderingData("DONATION_SHELF",K);m.JSC$21477_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Ji);m.JSC$21477_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",NG);m.JSC$21477_watchApi.provideRenderingData("EXPANDABLE_METADATA",I);if(m.swatcherooProvideAllDataOnScheduledJob){var gz,ps,ZF,DP,lS,Eo;N=A==null?void 0:(gz=A.contents)==null?void 0:(ps=gz.twoColumnWatchNextResults)==null?void 0:(ZF=ps.secondaryResults)==null?void 0:(DP=ZF.secondaryResults)==
null?void 0:(lS=DP.results)==null?void 0:(Eo=lS[0])==null?void 0:Eo.richGridRenderer;m.JSC$21477_watchApi.provideRenderingData("RICH_GRID_RENDERER",N)}};
gwW.prototype.hasCompanionAds=function(m){var G,K;return(K=m==null?void 0:(G=m.adPlacements)==null?void 0:G.some(function(W){var L,A,O,c;return(W==null?void 0:(L=W.adPlacementRenderer)==null?void 0:(A=L.renderer)==null?void 0:A.actionCompanionAdRenderer)||(W==null?void 0:(O=W.adPlacementRenderer)==null?void 0:(c=O.renderer)==null?void 0:c.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?K:!1};
var Zs=function(m){if(!_.F("swaterdoo_ps_wn_handle_ks")){m.swatcherooProvideAllDataOnScheduledJob||wVu(m,3E3);var G=m.JSC$21477_watchApi.getPlayerResponse(),K,W,L,A,O,c=(K=m.JSC$21477_watchApi.getWatchNextResponse())==null?void 0:(W=K.contents)==null?void 0:(L=W.twoColumnWatchNextResults)==null?void 0:(A=L.secondaryResults)==null?void 0:(O=A.secondaryResults)==null?void 0:O.offerModule;G=m.hasCompanionAds(G);var u,h;K=(c==null?void 0:(u=c.tvfilmOfferModuleRenderer)==null?void 0:u.clientShouldSuppressIfCompanionAdDisplayed)||
(c==null?void 0:(h=c.unlimitedOfferModuleRenderer)==null?void 0:h.suppressIfCompanionAds);u=G&&K;m.JSC$21477_watchApi.getRoot().is==="ytd-watch-grid"&&m.JSC$21477_watchApi.provideRenderingData("OFFER_MODULE",u?void 0:c)}},wVu=function(m,G){_.F("swatcheroo_pbs_load_grid")&&(m.provideRichGridJobId&&_.Fu.cancelJob(m.provideRichGridJobId),m.provideRichGridJobId=_.UU(_.Fu,function(){m.provideRichGridJobId=0;
var K,W,L,A,O,c,u,h=(K=m.JSC$21477_watchApi.getWatchNextResponse())==null?void 0:(W=K.contents)==null?void 0:(L=W.twoColumnWatchNextResults)==null?void 0:(A=L.secondaryResults)==null?void 0:(O=A.secondaryResults)==null?void 0:(c=O.results)==null?void 0:(u=c[0])==null?void 0:u.richGridRenderer;h&&m.JSC$21477_watchApi.provideRenderingData("RICH_GRID_RENDERER",h)},G))},ATu=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21477_watchApi.playerApi,2);G=W.yieldResult;K=function(){m.onPlaybackStart()};
G.addEventListener("onPlaybackStartExternal",K);m.addOnDisposeCallback(function(){G.removeEventListener("onPlaybackStartExternal",K)});
_.ey(W)})};
gwW.prototype.onPlaybackStart=function(){wVu(this)};var Oos=_.dq(115994),cT5=_.dq(115993),PV=function(m,G,K){var W=this;var L=K.dragDownAction;this.layer=0;this.JSC$21492_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return W.dragDownAction()}}}};
this.JSC$21492_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return W.dragDownAction()}}}};
this.fullscreen=!1;var A=_.l1();_.eM(A,Oos,this.layer);_.eM(A,cT5,this.layer);this.dragDownAction=function(){L();_.Jo(A,{visualElement:W.fullscreen?Oos:cT5})};
this.gesture=new R6(m,G,this.getConfig(!1),"pandown");this.attach()};
PV.prototype.attach=function(){this.gesture.attach()};
PV.prototype.detach=function(){this.gesture.detach()};
PV.prototype.update=function(m){this.fullscreen=m;var G=this.gesture;m=this.getConfig(m);G.config=m};
PV.prototype.getConfig=function(m){return m?this.JSC$21492_watchFullScreenConfig:this.JSC$21492_watchConfig};var rTi=function(m){_.Lt.call(this);var G=this;this.JSC$21495_watchApi=m;m.playerApi.then(function(K){G.player=K});
this.gestures=new PV(this.JSC$21495_watchApi.getRoot(),m.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(LQ5(_.$R().getState())&&Li(_.$R().getState())<=0)if(_.gq(_.$R().getState())){var K;(K=G.player)==null||K.toggleFullscreen()}else _.dU(G.JSC$21495_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Y2D(this)};
_.n(rTi,_.Lt);var Y2D=function(m){var G=_.BB(_.$R(),_.gq,function(K){m.onFullscreenChanged(K)});
m.addOnDisposeCallback(G);G=_.BB(_.$R(),Li,function(K){m.gestures&&(K>0?m.gestures.detach():m.gestures.attach())});
m.addOnDisposeCallback(G)};
rTi.prototype.onFullscreenChanged=function(m){this.gestures&&this.gestures.update(m)};var uhE=["PLAYLIST"],pV6=function(m){_.Lt.call(this);var G=this;this.JSC$21498_watchApi=m;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(m.subscribeToActiveChanged(function(K){G.onActiveChanged(K)}));
hyD(this)};
_.n(pV6,_.Lt);var JTq=function(m){m.pageDisposalDataTypes=Object.values(mDE).filter(function(G){return!uhE.includes(G)})},hyD=function(m){if(_.F("swatcheroo_enable_ghost_cards")||_.F("web_watch_clear_data_on_page_dispose"))JTq(m),m.JSC$21498_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Fu.cancelJob(m.clearDataJobId);
m.clearDataJobId=0}),m.runPageDisposeJob=function(){var G=_.xS().resolve(_.$g).getDestinationPageType()==="watch";
m.clearDataJobId=_.UU(_.Fu,m.runClearDataJob,G?0:_.U8("web_watch_delay_page_dispose_ms",1E4))},m.runClearDataJob=function(){NaG(m)},m.runOnYtNavigateAwayFinish=function(){m.clearDataJobId&&(_.Fu.cancelJob(m.clearDataJobId),m.clearDataJobId=0,NaG(m))},document.addEventListener("yt-navigate-finish",m.runOnYtNavigateAwayFinish),m.JSC$21498_watchApi.addPageDisposeJob(m.runPageDisposeJob),m.addOnDisposeCallback(function(){m.JSC$21498_watchApi.removePageDisposeJob(m.runPageDisposeJob);
m.JSC$21498_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",m.runOnYtNavigateAwayFinish)})},NaG=function(m){m.pageDisposalDataTypes.forEach(function(G){m.JSC$21498_watchApi.provideRenderingData(G,void 0)});
m.clearDataJobId=0};
pV6.prototype.onActiveChanged=function(m){m&&((m=document.querySelector("#watch-page-skeleton"))&&_.mX(m),Dsi(this),document.body.removeAttribute("no-y-overflow"),_.IP("IS_SHELL_LOAD")&&s7z())};
var Dsi=function(m){_.Y(function(G){if(G.nextAddress==1)return G.yield(m.JSC$21498_watchApi.playerApi,2);_.Fw();_.ey(G)})};var ts6=_.F("kevlar_watch_while_counterfactual")?0:.25,owi=function(m){_.Lt.call(this);this.JSC$21501_watchApi=m;this.JSC$21501_watchWhileEnabled=_.F("kevlar_watch_while_v2");this.JSC$21501_watchPipEnabled=_.F("web_watch_pip");FYs(this);Q5z(this);asu(this)};
_.n(owi,_.Lt);var FYs=function(m){m.JSC$21501_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){nwz(m)});
m.addOnDisposeCallback(function(){m.JSC$21501_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Q5z=function(m){var G,K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21501_watchApi.playerApi,2);G=W.yieldResult;K=function(L){L&&m.JSC$21501_watchPipEnabled?boE(m):nwz(m)};
G.addEventListener("onCollapseMiniplayer",K);m.addOnDisposeCallback(function(){G.removeEventListener("onCollapseMiniplayer",K)});
_.ey(W)})},asu=function(m){var G=m.JSC$21501_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&G&&m.JSC$21501_watchWhileEnabled&&(m.playerIntersectionObserver=new IntersectionObserver(function(K){m.handleIntersect(K)},{threshold:[ts6]}),m.playerIntersectionObserver.observe(G),m.addOnDisposeCallback(function(){var K;
(K=m.playerIntersectionObserver)==null||K.disconnect()}))},nwz=function(m){var G,K,W;
_.Y(function(L){if(L.nextAddress==1)return G=_.xS().resolve(_.$g),K=G.data,W=_.$1M(K.response,K.playerResponse),_.U7().miniplayerButtonActivation=!0,_.xS().resolve(_.pY).collapse(),L.yield(_.U7().navigationFinishPromise,2);if(L.nextAddress!=3)return _.U7().currentEndpoint=W.watchEndpoint||null,L.yield(_.xS().resolve(_.pY).activate(m.JSC$21501_watchApi.getElement("PLAYER"),W,K),3);_.U7().userActivation=!0;_.ey(L)})},boE=function(m){var G,K,W;
_.Y(function(L){if(L.nextAddress==1)return _.xS().resolve(_.pY).pictureInPictureSupported()?L.jumpTo(2):L.yield(m.JSC$21501_watchApi.playerApi,3);if(L.nextAddress!=2)return G=L.yieldResult,(K=G)==null||K.togglePictureInPicture(),L.return();W=_.xS().resolve(_.$g);_.U7().watchPipActivation=!0;_.UqD(_.xS().resolve(_.pY),W.data);_.ey(L)})};
owi.prototype.handleIntersect=function(m){vw6(this,m[m.length-1])};
var vw6=function(m,G){m.watchWhileJobId&&_.Fu.cancelJob(m.watchWhileJobId);m.watchWhileJobId=_.Fu.addLowPriorityJob(function(){var K,W;return _.Y(function(L){if(L.nextAddress==1)return m.watchWhileJobId=void 0,K=_.xS().resolve(_.pY),G.intersectionRatio>ts6?K.isMiniplayerActive()?L.yield(K.deactivate(),0):L.jumpTo(0):(W=!K.isMiniplayerActive())?L.yield($ss(m),5):L.jumpTo(4);L.nextAddress!=4&&(W=L.yieldResult);if(!W)return L.jumpTo(0);_.U7().watchWhileActivation=!0;return L.yield(s5W(m),0)})},100)},
$ss=function(m){return _.Y(function(G){return G.nextAddress==1?_.F("kevlar_watch_while_paused")?G.return(!0):G.yield(m.isPlayerPlaying(),2):G.return(G.yieldResult)})};
owi.prototype.isPlayerPlaying=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21501_watchApi.playerApi,2);G=K.yieldResult;return K.return(G.getPlayerStateObject().isPlaying)})};
var s5W=function(m){var G,K;return _.Y(function(W){G=_.xS().resolve(_.$g).data;K=_.$1M(G.response,G.playerResponse);_.U7().currentEndpoint=K.watchEndpoint||null;return W.yield(_.xS().resolve(_.pY).activate(m.JSC$21501_watchApi.getElement("PLAYER"),K,G),0)})};var HoD=function(m){_.Lt.call(this);this.JSC$21505_watchApi=m;q2s(this);EwG(this)};
_.n(HoD,_.Lt);var EwG=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21505_watchApi.playerApi,2);G=W.yieldResult;K=function(L){var A;L.sessionData&&L.sessionData.itct&&(A=L.sessionData.itct);var O=L.watchEndpoint;if(O&&L.sessionData&&L.sessionData.autonav)O=_.BfG(O,A);else{var c;O=_.EG(L.videoId,(c=L.listId)!=null?c:void 0,A)}A={endpoint:O};L.sessionData&&(A.tempData=L.sessionData);m.JSC$21505_watchApi.dispatchEvent("yt-navigate",A)};
G.addEventListener("onPlayVideo",K);m.addOnDisposeCallback(function(){G.removeEventListener("onPlayVideo",K)});
_.ey(W)})},q2s=function(m){var G=function(K){m.onYtNavigate(K)};
m.JSC$21505_watchApi.getRoot().addEventListener("yt-navigate",G);m.addOnDisposeCallback(function(){m.JSC$21505_watchApi.getRoot().removeEventListener("yt-navigate",G)})};
HoD.prototype.onYtNavigate=function(m){var G=this,K,W,L,A,O,c,u,h,J;return _.Y(function(N){if(N.nextAddress==1){if(!((K=m.detail)==null?0:(W=K.endpoint)==null?0:W.watchEndpoint))return N.return();L=m.detail.endpoint.watchEndpoint;A=G.JSC$21505_watchApi.getWatchNextResponse();c=_.Q((O=A)==null?void 0:O.currentVideoEndpoint,_.QQ);if(!c)return N.return();if(L.videoId!==c.videoId||L.playlistId&&L.playlistId!==c.playlistId||typeof L.startTimeSeconds!=="number")return N.jumpTo(0);m.stopPropagation();(u=
_.F("kevlar_watch_while_v2")&&!_.F("kevlar_watch_while_counterfactual"))&&_.xS().resolve(_.pY).isMiniplayerActive()||G.JSC$21505_watchApi.scrollWatchTo(0,!0);return N.yield(G.JSC$21505_watchApi.playerApi,3)}h=N.yieldResult;J=L.startTimeSeconds;h.seekTo(J,void 0,void 0,void 0,84);h.wakeUpControls();J<h.getDuration()&&h.playVideo();_.ey(N)})};var j56=function(m){_.Lt.call(this);var G=this;this.JSC$21508_watchApi=m;var K=this.JSC$21508_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Isz(G)});
this.addOnDisposeCallback(function(){G.JSC$21508_watchApi.unsubscribeByKey(K)});
Isz(this);_.F("enable_ai_companion")&&(m=this.JSC$21508_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&Z_s(m,"WATCH")};
_.n(j56,_.Lt);var Isz=function(m){var G=m.JSC$21508_watchApi.getWatchNextResponse();if(G){var K,W=[].concat(_.Bz((K=G==null?void 0:G.engagementPanels)!=null?K:[]));_.F("web_watch_comments_visible_by_default")&&(K=W.find(function(L){var A;return((A=L.engagementPanelSectionListRenderer)==null?void 0:A.targetId)==="engagement-panel-comments-section"}),K==null?0:K.engagementPanelSectionListRenderer)&&(K.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");
W.unshift.apply(W,_.Bz(kD6(G)));m.JSC$21508_watchApi.provideRenderingData("ENGAGEMENT_PANELS",W)}},Vss=function(m){var G,K,W,L=(G=m.engagementPanels)==null?void 0:(K=G.find(function(t){var a;
return((a=t.engagementPanelSectionListRenderer)==null?void 0:a.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(W=K.engagementPanelSectionListRenderer.content)==null?void 0:W.structuredDescriptionContentRenderer,A;
if(_.Q(L==null?void 0:(A=L.items)==null?void 0:A.find(function(t){return!!_.Q(t,ScP)}),ScP))return!0;
var O,c,u,h;if(m=(((O=m.contents)==null?void 0:(c=O.twoColumnWatchNextResults)==null?void 0:(u=c.results)==null?void 0:(h=u.results)==null?void 0:h.contents)||[]).find(function(t){return t.videoPrimaryInfoRenderer})){var J,N,D;
return(((J=m.videoPrimaryInfoRenderer)==null?void 0:(N=J.videoActions)==null?void 0:(D=N.menuRenderer)==null?void 0:D.flexibleItems)||[]).some(function(t){t=_.Q(t,_.b5l);if(!t)return!1;var a,v;t=(a=t.topLevelButton)==null?void 0:(v=a.buttonViewModel)==null?void 0:v.onTap;if(!t)return!1;a=_.c8(t);if(!a)return!1;if(CaW(a))return!0;if(_.F("enable_creator_chatbot")){a=_.Q(a,_.xu);if(!a)return!1;var I;return(I=a.commands)==null?void 0:I.some(function(Z){return CaW(Z)})}return!1})}return!1},CaW=function(m){var G;
return((G=_.Q(m,_.Oa))==null?void 0:G.panelIdentifier)==="PAyouchat"},kD6=function(m){var G=[];
if(!_.F("web_watch_inject_placeholder_fantasy_panel_killswitch")){var K,W,L,A=(K=m.engagementPanels)==null?void 0:(W=K.find(function(c){var u;return((u=c.engagementPanelSectionListRenderer)==null?void 0:u.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(L=W.engagementPanelSectionListRenderer.content)==null?void 0:L.structuredDescriptionContentRenderer,O;
_.Q(A==null?void 0:(O=A.items)==null?void 0:O.find(function(c){return!!_.Q(c,ZfO)}),ZfO)&&(K=_.qNJ("PAsports_fantasy"),K.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(K))}Vss(m)&&(m=_.qNJ("PAyouchat"),m.engagementPanelSectionListRenderer.targetId="PAyouchat",m.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G.push(m));
return G};var dsi=function(m){_.Lt.call(this);this.JSC$21511_watchApi=m;ZoE(this)};
_.n(dsi,_.Lt);var ZoE=function(m){m.JSC$21511_watchApi.registerActionHandler("yt-loop-command",function(G){Paq(m,G)});
m.JSC$21511_watchApi.registerActionHandler("yt-repeat-chapter-command",function(G){yT5(m,G)});
m.addOnDisposeCallback(function(){m.JSC$21511_watchApi.unregisterActionHandler("yt-loop-command");m.JSC$21511_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Paq=function(m,G){var K;
_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21511_watchApi.playerApi,2);K=W.yieldResult;_.Q(G,q3u).loop?(K.setLoopRange({startTimeMs:Number(_.Q(G,q3u).startTimeMs),endTimeMs:Number(_.Q(G,q3u).endTimeMs),postId:_.Q(G,q3u).postId,type:"clips"}),K.playVideo()):K.setLoopRange(null);_.ey(W)})},yT5=function(m,G){var K,W;
_.Y(function(L){if(L.nextAddress==1)return L.yield(m.JSC$21511_watchApi.playerApi,2);K=L.yieldResult;W=_.Q(G,Yc6).repeat;W==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(K.setLoopRange({startTimeMs:Number(_.Q(G,Yc6).startTimeMs),endTimeMs:Number(_.Q(G,Yc6).endTimeMs),type:"repeatChapter"}),K.playVideo()):W==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&K.setLoopRange(null);_.ey(L)})};var fsO=function(m){_.Lt.call(this);this.JSC$21516_watchApi=m;eyi(this)};
_.n(fsO,_.Lt);var eyi=function(m){m.JSC$21516_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(G){xsE(m,G)});
m.addOnDisposeCallback(function(){m.JSC$21516_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},xsE=function(m,G){var K,W,L,A,O,c,u,h,J,N,D;
_.Y(function(t){if(t.nextAddress==1)return t.yield(m.JSC$21516_watchApi.playerApi,2);K=t.yieldResult;if(A=(L=(W=_.Q(G,rh6))==null?void 0:W.highlightedMenuItemKey)!=null?L:"")(c=(O=K).highlightSettingsMenuItem)==null||c.call(O,A);if(J=(h=(u=_.Q(G,rh6))==null?void 0:u.openMenuItemKey)!=null?h:"")(D=(N=K).openSettingsMenuItem)==null||D.call(N,J);_.ey(t)})};var XV6=_.Pk("/youtube/app/watch/player_state","playerStateEntity");var yB=function(m){_.Lt.call(this);this.JSC$21519_watchApi=m;S2G(this)};
_.n(yB,_.Lt);var RyD=function(m){switch(m){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"}},S2G=function(m){var G,K,W,L,A;
_.Y(function(O){if(O.nextAddress==1)return O.yield(m.JSC$21519_watchApi.playerApi,2);G=O.yieldResult;if(m.isDisposed())return O.return();K=function(c){m.onPlayerStateChange(c)};
W=function(c){m.onAdStateChange(c)};
L=function(){m.onAdSkip()};
A=function(c){m.onVideoDataChange(c)};
G.addEventListener("onStateChange",K);G.addEventListener("onAdStateChange",W);G.addEventListener("onAdSkip",L);G.addEventListener("onVideoDataChange",A);m.addOnDisposeCallback(function(){G.removeEventListener("onStateChange",K);G.removeEventListener("onAdStateChange",W);G.removeEventListener("onAdSkip",L);G.removeEventListener("onVideoDataChange",A)});
_.ey(O)})},UsD=function(m){var G=_.nD(),K=G.dispatch;
a:switch(m.adsState){case -1:case 0:var W="ADS_STATE_NONE";break a;case 1:case 2:case 3:W="ADS_STATE_PLAYING";break a;default:W="ADS_STATE_UNKNOWN"}K.call(G,_.Bp("playerStateEntity",XV6,{key:XV6,playerState:RyD(m.playerState),adsState:W,videoId:m.videoId}))};
yB.prototype.onPlayerStateChange=function(m){var G=this,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(G.JSC$21519_watchApi.playerApi,2);K=W.yieldResult;if(G.isDisposed())return W.return();G.playerState=m;G.videoId=K.getVideoData().video_id;UsD(G);_.ey(W)})};
yB.prototype.onAdStateChange=function(m){this.adsState=m;UsD(this)};
yB.prototype.onAdSkip=function(){this.adsState=0;UsD(this)};
yB.prototype.onVideoDataChange=function(m){m.type==="newdata"&&(this.adsState=-1,UsD(this))};var lsP=function(m){_.Lt.call(this);var G=this;this.JSC$21523_watchApi=m;this.enableExternalPlaylistPanelInPlayer=_.F("delhi_web_player_use_external_playlist_panel");_.xS().resolve(_.NQ).setPlayer(this.JSC$21523_watchApi.getElement("PLAYER"));m=this.JSC$21523_watchApi.subscribeToActiveChanged(function(K){G.onActiveChanged(K)});
this.addOnDisposeCallback(m);zy6(this)};
_.n(lsP,_.Lt);var zy6=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return m.enableExternalPlaylistPanelInPlayer?W.yield(m.JSC$21523_watchApi.playerApi,2):W.return();G=W.yieldResult;K=function(){if(m.playlistPanelElement)m.playlistPanelElement.onToggleExpanded()};
G.addEventListener("onToggleExternalPlaylistPanel",K);m.addOnDisposeCallback(function(){G.removeEventListener("onToggleExternalPlaylistPanel",K)});
_.ey(W)})};
lsP.prototype.onActiveChanged=function(m){var G=this,K=_.xS().resolve(_.NQ),W=function(){Ba6(G)};
m?(this.playlistPanelElement=this.JSC$21523_watchApi.getElement("PLAYLIST_PANEL"))?(K.setPlaylistComponent(this.playlistPanelElement),K.addEventListener("yt-playlist-data-updated",W),this.addOnDisposeCallback(function(){K.removeEventListener("yt-playlist-data-updated",W)}),Ba6(this)):_.V3(Error("Ul")):(K.removeEventListener("yt-playlist-data-updated",W),K.cancelVideoSkip())};
var Ba6=function(m){var G=_.xS().resolve(_.NQ);m.JSC$21523_watchApi.provideRenderingData("PLAYLIST",G.getPlaylistData())};var es=function(m){_.Lt.call(this);var G=this;this.JSC$21526_watchApi=m;this.onPageScroll=function(){G.scrollThrottle.fire();G.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.yO(this.onThrottledScroll,200,this);_.UR(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.yO(this.onMastheadThrottledScroll,50,this);_.UR(this,this.mastheadScrollThrottle);this.animation=new _.bi(function(K){G.JSC$21526_watchApi.getRoot().setScrollTop(K)});
m=_.BB(_.$R(),_.gq,function(){G.onFullscreenChanged()});
this.addOnDisposeCallback(m);Mss(this);Taq(this);this.onThrottledScroll()};
_.n(es,_.Lt);
es.prototype.onFullscreenChanged=function(){var m=this,G=this.JSC$21526_watchApi.getRoot();!this.pageScrollElement&&G.pageScrollElement?(this.pageScrollElement=G.pageScrollElement,G.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){m.pageScrollElement&&m.pageScrollElement.removeEventListener("scroll",m.onPageScroll)})):this.pageScrollElement&&!G.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Mss=function(m){window.addEventListener("scroll",m.onPageScroll);m.addOnDisposeCallback(function(){window.removeEventListener("scroll",m.onPageScroll)})},Taq=function(m){m.JSC$21526_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(G){a:{var K;
if(K=m.JSC$21526_watchApi.getRoot().contains(G)&&!m.animation.isAnimating()){K=G.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var W,L,A=(G==null?void 0:(W=G.parentElement)==null?void 0:(L=W.parentElement)==null?void 0:L.id)==="fixed-secondary";K=!(K&&A)}if(K){if(_.F("kevlar_watch_scroll_manager_absolute_offset_killswitch"))W=G.offsetTop;else for(W=0,L=G;L!==null;)W+=L.offsetTop,W-=L.scrollTop,L=L.offsetParent;L=W;W=L-24;G=L+G.offsetHeight+24;L=m.JSC$21526_watchApi.getRoot().getPageScrollingElement();
K=m.JSC$21526_watchApi.getRoot().getScrollTop();A=K+L.clientHeight-56;if(W<K+56)G=W-56;else if(G>A)G-=L.clientHeight;else break a;m.scrollWatchTo(Math.max(0,G),!0)}}});
m.addOnDisposeCallback(function(){m.JSC$21526_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
es.prototype.onThrottledScroll=function(){var m=_.$R(),G=m.dispatch,K=this.JSC$21526_watchApi.getRoot().getScrollTop();G.call(m,_.kt({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:K}}))};
es.prototype.onMastheadThrottledScroll=function(){this.JSC$21526_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$21526_watchApi.getRoot().getScrollTop())};
es.prototype.scrollWatchTo=function(m,G){(G===void 0?0:G)?this.animation.start(this.JSC$21526_watchApi.getRoot().getScrollTop(),Math.max(0,m),500):this.JSC$21526_watchApi.getRoot().setScrollTop(m)};var GY6=function(m){_.Lt.call(this);var G=this;this.JSC$21529_watchApi=m;var K=this.JSC$21529_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mi6(G)}),W=this.JSC$21529_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){idP(G)});
this.addOnDisposeCallback(function(){G.JSC$21529_watchApi.unsubscribeByKey(K);G.JSC$21529_watchApi.unsubscribeByKey(W)});
mi6(this);idP(this)};
_.n(GY6,_.Lt);
var mi6=function(m){var G,K,W,L=(W=(G=m.JSC$21529_watchApi.getPlayerResponse())==null?void 0:(K=G.videoDetails)==null?void 0:K.title)!=null?W:"";m.JSC$21529_watchApi.dispatchEvent("yt-update-title",L)},idP=function(m){var G,K,W,L,A,O,c,u=(c=((O=(G=m.JSC$21529_watchApi.getWatchNextResponse())==null?void 0:(K=G.contents)==null?void 0:(W=K.twoColumnWatchNextResults)==null?void 0:(L=W.results)==null?void 0:(A=L.results)==null?void 0:A.contents)!=null?O:[]).find(function(h){return!!h.videoPrimaryInfoRenderer}))==null?
void 0:c.videoPrimaryInfoRenderer;
(G=_.bw(u==null?void 0:u.title))&&m.JSC$21529_watchApi.dispatchEvent("yt-update-title",G)};var WxE=function(m){_.Lt.call(this);this.JSC$21532_watchApi=m;KxW(this)};
_.n(WxE,_.Lt);var KxW=function(m){var G,K;_.Y(function(W){if(W.nextAddress==1)return W.yield(m.JSC$21532_watchApi.playerApi,2);G=W.yieldResult;K=function(){m.onYpcContentRequest()};
G.addEventListener("onYpcContentRequest",K);m.addOnDisposeCallback(function(){G.removeEventListener("onYpcContentRequest",K)});
_.ey(W)})};
WxE.prototype.onYpcContentRequest=function(){var m,G,K,W,L,A=(m=this.JSC$21532_watchApi.getWatchNextResponse())==null?void 0:(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.secondaryResults)==null?void 0:(L=W.secondaryResults)==null?void 0:L.offerModule,O,c,u,h;m=(h=(u=(c=(O=A==null?void 0:A.episodeOfferModuleRenderer)!=null?O:A==null?void 0:A.movieOfferModuleRenderer)!=null?c:A==null?void 0:A.unlimitedOfferModuleRenderer)!=null?u:A==null?void 0:A.liveOfferModuleRenderer)!=
null?h:A==null?void 0:A.tvfilmOfferModuleRenderer;var J,N,D;A=(D=A==null?void 0:(J=A.tvfilmOfferModuleRenderer)==null?void 0:(N=J.actionButtons)==null?void 0:N.length)!=null?D:0;N=Math.max(A-1,0);var t,a,v;J=(v=m==null?void 0:(t=m.offerButton)==null?void 0:t.buttonRenderer)!=null?v:m==null?void 0:(a=m.actionButtons)==null?void 0:a[N].buttonRenderer;var I,Z;(t=(Z=(I=J==null?void 0:J.navigationEndpoint)!=null?I:J==null?void 0:J.serviceEndpoint)!=null?Z:J==null?void 0:J.command)&&_.xe.instance.resolveCommand(t)};var Lx6=function(m){V_.call(this);var G=this;this.rootElement=m;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(K){G.initOrDisposeActiveModules(K)}));
this.onAttached()};
_.n(Lx6,V_);_.w=Lx6.prototype;_.w.getRoot=function(){return this.rootElement};
_.w.getElement=function(m){return this.rootElement.getElement(m)};
_.w.setPlayerResponse=function(m){this.playerResponse=m;this.publish("PLAYER_RESPONSE_UPDATED",m)};
_.w.getPlayerResponse=function(){return this.playerResponse};
_.w.setWatchNextResponse=function(m){this.watchNextResponse===m?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=m,this.publish("WATCH_NEXT_RESPONSE_UPDATED",m))};
_.w.getWatchNextResponse=function(){return this.watchNextResponse};
_.w.registerActionHandler=function(m,G){var K=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.jN(_.Im.getInstance(),(W[m]=G,W),this.getRoot())}else this.actionHandlers.has(m)||(this.actionHandlers.set(m,[]),W={},_.jN(_.Im.getInstance(),(W[m]=function(){var L=_.mb.apply(0,arguments);return(K.actionHandlers.get(m)||[]).map(function(A){return A.apply(null,_.Bz(L))})},W),this.getRoot())),this.actionHandlers.get(m).push(G)};
_.w.unregisterActionHandler=function(m){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.kz(_.Im.getInstance(),(G[m]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(m))?(G.pop(),G.length===0&&(G={},_.kz(_.Im.getInstance(),(G[m]=!0,G),this.getRoot()),this.actionHandlers.delete(m))):_.nc(new _.cw("Attempted to unregister an action handler which is not registered.",m))};
_.w.addPageDisposeJob=function(m){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.qdM(this.rootElement.pageDisposeJobs,m)};
_.w.removePageDisposeJob=function(m){this.rootElement.pageDisposeJobs&&_.PJ(this.rootElement.pageDisposeJobs,m)};
_.w.dispatchEvent=function(m,G){_.Zw(this.rootElement,m,G)};
_.w.provideRenderingData=function(m,G){this.rootElement.provideRenderingData(m,G)};
_.w.scrollWatchTo=function(m,G){var K;(K=this.watchScrollManager)==null||K.scrollWatchTo(m,G)};
_.w.focusOnPlayer=function(){var m=this.getElement("PLAYER");_.Pv(m,function(){if(m&&m.firstElementChild){var G=m.querySelector(".html5-video-player");G&&(_.sW(_.xS().resolve(_.zk)),G.focus())}else _.nc(Error("Vl"))})};
var AR6=function(m){var G=!!m.rootElement.theater,K=!!m.rootElement.fullscreen,W;(W=m.watchCinematicManager)==null||Bc6(W,K,G)};
_.w=Lx6.prototype;_.w.subscribeToActiveChanged=function(m,G){G=G===void 0?!0:G;var K=_.BB(_.$R(),AWE,function(W){m(W)});
G&&m(AWE(_.$R().getState()));return K};
_.w.isActive=function(){return AWE(_.$R().getState())};
_.w.onAttached=function(){var m=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(m=_.xS().resolve(_.QPD).retriever.getFlag(_.Jgo));(m||_.IP("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.w.initPersistentModules=function(){if(_.F("kevlar_watch_flexy_theater_manager")){var m=new m5i(this);_.UR(this,m)}m=new pV6(this);_.UR(this,m);m=new qs(this);_.UR(this,m);m=new gwW(this);_.UR(this,m);m=new yB(this);_.UR(this,m);m=new E2(this);_.UR(this,m);_.F("kevlar_watch_flexy_playlist_manager")&&(m=new lsP(this),_.UR(this,m))};
_.w.initOrDisposeActiveModules=function(m){m?(this.watchScrollManager=new es(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new HoD(this)),this.activeModules.push(new BeD(this)),this.activeModules.push(new GY6(this)),this.activeModules.push(new owi(this)),_.F("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new GV6(this)),this.activeModules.push(new dsi(this)),_.F("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new WxE(this)),_.F("kevlar_watch_flexy_ads_manager")&&
this.activeModules.push(new pQi(this)),_.Zk("kevlar_watch_cinematics")&&(this.watchCinematicManager=new XQq(this),this.activeModules.push(this.watchCinematicManager),AR6(this)),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new fsO(this)),_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new rTi(this)),m=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!m&&this.activeModules.push(new GDG(this)),
_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new DDu(this)),this.activeModules.push(new wQz(this)),this.activeModules.push(new j56(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new YSG(this)),_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new jjq(this)),_.F("web_watch_enable_multiview_manager")&&this.activeModules.push(new nsG(this)),_.F("web_fullscreen_components")&&this.activeModules.push(new w6P(this)),_.F("web_player_rtr_ctrls")&&
this.activeModules.push(new Cj5(this))):(_.ja(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.w.disposeInternal=function(){V_.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.e_.Object.defineProperties(Lx6.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.sh(_.P(function(m){var G=_.Q3("script");_.$O(function(){var K;if(K=JSON)K=Mq6(m.data()),K=_.r5(JSON.stringify(K).replace(/</g,"\\u003C"));var W=m.data(),L=_.bw(W.title).trim().length===0,A=!W.publishDate||W.publishDate.trim().length===0,O,c,u,h,J=!((O=W.thumbnail)==null?0:(c=O.thumbnails)==null?0:c.length)||!((u=W.thumbnail)==null?0:u.thumbnails[0].url)||((h=W.thumbnail)==null?void 0:h.thumbnails[0].url.trim().length)===0;G.value&&K&&!(L||A||J)&&_.pZ(G.value,K)},"Vy9K7b");
return _.r("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.r("script",{el:G,type:"application/ld+json"}))},"qk"),"player-microformat-renderer",{props:{data:_.nN}});var wA6={},gMq=["learning-journey-engagement-panel","PAlearning_chat"];
wA6.YtdLearningJourneyWatchBehavior=[_.B.YtRendererBehavior,_.Fa.YtPlayerListenerBehavior,_.$P.YtRendererstamperBehavior,_.Pq.YtActionHandlerBehavior,ra.YtPageBehavior,_.dR.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 _.IP("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.F("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 _.IP("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 _.F("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.F("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 _.U8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.U8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.Zk("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("web_watch_rounded_player_large")||_.F("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 _.F("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.F("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:QV(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:QV(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},
learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var m=this;this.watchController=void 0;this.pageDisposeJobs=[function(){m.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||m.clearComments_()},
function(){m.clearPlayerAds_()},
function(){m.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.F("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.F("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new o9i(function(){return _.sT(m)},
this.hostElement);
this.pageDisposeJobs.push(function(){m.youThereManager_.reset()});
_.F("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){m.resetFullerscreenEduButtonForNewPlayback_()}));
_.F("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.wB;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;_.F("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.F("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));_.F("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xC(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(m){m&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:m}),m.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(m){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=m,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.F("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(m){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||m||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(m){this.active!==void 0&&(this.fullscreen=m,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(m){this.active!==void 0&&(_.Zw(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(m>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(m){this.initCsi_();this.updatePageData_(m)},
updatePageData_:function(m){var G=this;if(m)if(this.data===m){this.onPageLoadWithSameData_();var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)}else this.data=m;this.playlist&&_.g9({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Yt("nw");this.loading=!1;_.rC(_.Fu,function(){G.initDclkstatus_();var W,L=((W=G.player)==null?void 0:W.getVideoData().cpn)||"";CL6(function(A,O){ZAE(A,O,L)})})},
onPageLoadWithSameData_:function(){_.F("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 m=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!m);this.set("loadingData.playlistLoading",m&&m!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),m=this.watchNextSkeletonEl_.firstElementChild;m;)m.classList.remove("hidden"),m=m.nextElementSibling;var G,K,W;m=(G=this.loadingData)==null?void 0:(K=G.endpoint)==null?void 0:(W=K.watchEndpoint)==null?void 0:W.videoId;var L;m&&(L="https://i.ytimg.com/vi/"+m+"/frame0.jpg");_.VL(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var m=_.VL(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&m&&(m.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,K;(K=(G=this.watchMetadata).updateSentimentBarWidth)==
null||K.call(G);var W,L;(L=(W=this.watchMetadata).resize)==null||L.call(W)}_.VL(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(m){var G=_.VL(this.hostElement).querySelector(m);G?_.q$(G,!1):_.nc(new _.cw("Overscroll monitor not found for component: ",m))},
removeSplitScrollMouseTrap:function(m){var G=_.VL(this.hostElement).querySelector(m);G?_.EB(G):_.nc(new _.cw("Disposal component for  overscroll monitoring not found: ",m))},
onLoadingChanged_:function(m){m?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(m){var G=this;m?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fu.addLowPriorityJob(function(){G.onWindowResized_(_.zv(!0))})},
updateTheaterModeState_:function(m){if(!_.F("kevlar_watch_flexy_theater_manager")){m=m||this.fullWindowMode_;if(this.theater!==void 0||m)this.theater=m;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();m&&tOu()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var m=this.theater;_.F("external_fullscreen")&&this.fullscreen&&(m=!0);m=m?_.VL(this.hostElement).querySelector("#player-full-bleed-container"):_.VL(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),K=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");G.parentElement!==m&&(K&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.sT(this).appendTo(m,G),m.appendChild(_.VL(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var m=this;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.xS().resolve(_.pY).deactivate(),2);m.updatePlayerLocation();_.ey(G)})},
updateCinematicsLocation:function(){var m=this.getElement("CINEMATICS");if(m){var G=this.getCinematicsLocationContainer();m.parentElement!==G&&G.appendChild(m);var K;(K=this.watchController)==null||AR6(K)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.VL(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.VL(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(m,G){var K=document.documentElement.hasAttribute("dark"),W=!K&&this.cinematicLightTheme;return m&&K||G&&K||(G||m)&&W},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var m;(m=this.watchController)==null||m.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.xS().resolve(_.NQ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.F("web_watch_start_chat_in_theater_mode")){var G,
K,W;if((G=this.data)==null?0:(K=G.contents)==null?0:(W=K.twoColumnWatchNextResults)==null?0:W.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var L,A;((L=this.data)==null?0:(A=L.contents)==null?0:A.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(m){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);m&&m.playabilityStatus&&(G=this.isVideoPlayable_(m.playabilityStatus,this.getPlayerOverlays_(this.data)),m=this.isLiveStreamOffline_(m.playabilityStatus),G&&!m||_.Pv(this,function(){_.Yt("pbu")}));
this.setPlayerAds_();_.PH(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(m){_.$R().dispatch(_.kt({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));m?this.activate_():this.deactivate_()},
attached:function(){var m=this;this.watchController=new Lx6(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.F("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.sT(this);_.F("kevlar_disable_prepare_player")||G.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.xS().resolve(_.NQ).setPlayer(G);this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":Tu()+
"px"};!_.U8("kv_pl_mx_sz_ks")&&_.U8("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=PK5+"px");_.U8("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=eaW+"px");this.safeUpdateStyles(G);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new hsO(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return m.onPlayerTouchPanDown_()}}));
_.F("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.VL(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var m=Tu(),G=mc+m,K=G;this.fixedPanels&&(G+=ZNW);var W=657+m;m=1327+m;_.VL(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.VL(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(W+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(m+"px)");_.VL(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(m+"px)");_.VL(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+K+"px)"},
calculateCurrentPlayerSize_:function(){return this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.qj(NaN,NaN):fJW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return fJW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.I$(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var m=this;this.onWindowResized_(_.zv());_.F("browse_skeleton_removal_on_watch_killswitch")||_.IP("IS_SHELL_LOAD")&&s7z();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.sT(this);G.addEventListener("yt-player-updated",_.xC(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(K){m.playerApiReady_(K)});
_.F("kevlar_watch_flexy_playlist_manager")||(G=_.xS().resolve(_.NQ),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.xC(this,this.onYtNavigate_)),G.setPlaylistComponent(_.VL(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.xC(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fu.addLowPriorityJob(function(){_.Zw(m.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.sT(this).removeEventListener("yt-player-updated",_.xC(this,this.onPlayerUpdated_));if(!_.F("kevlar_watch_flexy_playlist_manager")){var m=_.xS().resolve(_.NQ);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&m.removeEventListener("yt-navigate",_.xC(this,this.onYtNavigate_));m.cancelVideoSkip();m.removeEventListener("yt-playlist-data-updated",_.xC(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();
_.Zw(this.hostElement,"yt-autonav-pause-player",!1);m=_.$u();_.F("kevlar_exit_fullscreen_leaving_watch")&&m&&_.sB(m)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(m){this.player&&this.player.updateVideoData({rvs:m.rvs})},
getPageContents:function(m){return m&&m.contents&&m.contents.twoColumnWatchNextResults&&m.contents.twoColumnWatchNextResults.results&&m.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(m){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",m)},
onRetrieveLocation_:function(m,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);m.stopPropagation()},
onSubscriptionChanged_:function(m,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){D85("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.VL(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.VL(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(m){this.player=m;this.setPlayerState(m.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.F("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.F("kevlar_unified_player")||_.F("kevlar_player_new_bootstrap_adoption"))&&_.Fw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(m,G){G=G===void 0?!0:G;_.$u()&&_.F("external_fullscreen")&&_.sB(document.documentElement);this.theaterRequested_=m;G&&_.AH("wide",m?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.dU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zw(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(m){_.bO(m,typeof this.player),this.player&&_.bO(m,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var m;((m=this.player)==null?0:m.isFullscreen())?this.player.toggleFullscreen():_.dU(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(m,G){return this.loading?G:!!Object.keys(m).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(m){if(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next())G=G.value,G.youThereRenderer&&v95(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(m){return m||{}},
userEngagementConfigDataChanged_:function(m){if(m)if(m.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.Xu()<m.lowEngagementThresholdMs||E9G(G,!0)}else m.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dU(this.hostElement,"yt-autonav-pause-user-engagement",[m])},
isPlayerUnavailable_:function(m,G,K){return!!m&&!this.isVideoPlayable_(m,K)&&!G},
getPlayerOverlays_:function(m){return(m==null?void 0:m.playerOverlays)||null},
isVideoPlayable_:function(m,G){if(!m)return!1;var K=m.status==="OK"||m.status==="LIVE_STREAM_OFFLINE",W=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",m)||this.get("errorScreen.ypcTrailerRenderer",m);m=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",m);var L;G=G==null?void 0:(L=G.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!K||!!W||!!m||!!G},
hasWatchNextResponseErrorRenderer:function(m){var G=this.getPageContents(m),K,W,L,A,O;return!(m==null?0:(K=m.contents)==null?0:(W=K.twoColumnWatchNextResults)==null?0:W.secondaryResults)&&!!((L=G[0])==null?0:(A=L.itemSectionRenderer)==null?0:(O=A.contents[0])==null?0:O.backgroundPromoRenderer)},
isLiveStreamOffline_:function(m){return m?m.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(m,G,K){var W=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.F("web_no_skip_video_on_verification_checks")?(m==null?void 0:m.status)&&L.includes(m.status):m&&m.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",m);A==void 0&&(A=!0);!K||this.isVideoPlayable_(m,this.getPlayerOverlays_(G))||
W||L||!A||_.xS().resolve(_.NQ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();KrG()},
onPlayerFeedbackStartRequest_:function(m){_.dU(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:m}])},
onPlayerFeedbackArticleRequest_:function(m){_.dU(this.hostElement,"yt-help-dialog-requested",[m])},
onPlayerYpcContentRequest_:function(){var m,G,K,W,L,A,O,c,u=((m=this.data)==null?NaN:(G=m.contents)==null?NaN:(K=G.twoColumnWatchNextResults)==null?NaN:(W=K.secondaryResults)==null?NaN:(L=W.secondaryResults)==null?NaN:(A=L.offerModule)==null?NaN:(O=A.tvfilmOfferModuleRenderer)==null?NaN:(c=O.actionButtons)==null?NaN:c.length)-1;m=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];G=_.g(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(K=G.next();!K.done;K=G.next())for(K=K.value,W=_.g(m),L=W.next();!L.done;L=W.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+K+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.Xj(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(m){_.Zw(this.hostElement,"yt-autonav-pause-player",m)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(m){m()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(m){switch(m){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(m){switch(m){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zw(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(m)},
setPlayerState:function(m){_.$R().dispatch(_.buX(m))},
onPlayerSubscribe_:function(m){_.dU(this.hostElement,"yt-player-subscribe",[m])},
onPlayerUnsubscribe_:function(m){_.dU(this.hostElement,"yt-player-unsubscribe",[m])},
onPlayerAdYtShowToast_:function(m){_.dU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:m.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(m){if(m)return m},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(m){return!_.Zk("web_watch_move_summary_to_sd")&&!!m},
computeWatchMetadataRefresh:function(){return _.F("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var m,G,K,W;this.watchNextSecondaryResults=(m=this.data)==null?void 0:(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.secondaryResults)==null?void 0:W.secondaryResults}},
setRichGridRendererData:function(m){this.richGridRendererData=m},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var m,G=(m=this.data)==null?void 0:m.engagementPanels;if(G==null?0:G.length){m=null;G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;if(((W=K.engagementPanelSectionListRenderer)==null?void 0:W.targetId)==="engagement-panel-structured-description"){m=K;break}}var L,A,O;m=(L=m)==null?void 0:(A=L.engagementPanelSectionListRenderer)==null?void 0:(O=A.content)==null?void 0:O.structuredDescriptionContentRenderer;if(m==null?0:m.items){L=
[];A=_.g(m.items);for(O=A.next();!O.done;O=A.next()){O=O.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var c=W=K=G=m=void 0,u=void 0,h=(m=O.horizontalCardListRenderer)==null?void 0:(G=m.header)==null?void 0:(K=G.richListHeaderRenderer)==null?void 0:(W=K.navigationButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:(u=c.command)==null?void 0:u.commandExecutorCommand;h&&h.commands&&(h.commands=h.commands.filter(function(J){return!_.Q(J,wrD)}))}O.expandableVideoDescriptionBodyRenderer||
O.videoDescriptionHeaderRenderer||L.push(O)}return{items:L}}}},
constructWarning_:function(m){return{text:_.nG(m),type:"WARNING"}},
isPlaShelfEnabled_:function(m){if((this.get("adPlacements",m)||[]).length)return!0;m=this.get("playerAds",m)||[];return!(!m.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",m[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var m=this;_.Zw(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var G=this.getScrollTop()>0;this.gestures_&&(G?this.gestures_.detach():this.gestures_.attach());G!==this.showFullerscreenEdu_&&_.F("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=G,_.sT(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonVisibility(m.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zw(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var m=this;this.commentsReady=!1;_.Fu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rC(_.Fu,function(){m.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Yt("cmi");_.Fu.cancelJob(this.setCommentsJobId_);var m=this.getPageContents(this.data);if(m&&m.length){m=_.g(m);for(var G=m.next();!G.done;G=m.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zw(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Yt("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(m,G){var K=_.Q(G.endpoint,_.QQ);K&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||K.videoId!==G.videoId||K.playlistId&&K.playlistId!==G.playlistId||K.index!==void 0&&K.index!==G.index||typeof K.startTimeSeconds!=="number"||(m.stopPropagation(),this.setScrollTop(0),_.sT(this).getPlayerPromise().then(function(W){var L=K.startTimeSeconds;W.seekTo(L);W.wakeUpControls();L<W.getDuration()&&W.playVideo()})))},
updatePlayerStartTime_:function(){var m=sv5();"t"in m&&(m=Tn6(m.t),this.player.seekTo(m,!0))},
updateTitleFromWatchNext:function(m){m=this.getPageContents(m);var G,K;(m=_.bw(m==null?void 0:(G=m[0])==null?void 0:(K=G.videoPrimaryInfoRenderer)==null?void 0:K.title))&&_.Zw(this.hostElement,"yt-update-title",m)},
updateTitle_:function(m){m=this.get("videoDetails.title",m)||"";_.Zw(this.hostElement,"yt-update-title",m)},
syncWithRemoteVideo_:function(m,G,K){if(this.active&&this.player){var W=this.player.getVideoData();if(W.video_id===K&&(K=W.list,_.F("polymer_enable_mdx_queue")&&K&&K.startsWith("RQ")&&(K=void 0),W.video_id!==m||K!=G)){var L;_.F("kevlar_player_watch_endpoint_navigation")?L=_.BfG(rWD(m,G)):L=this.buildWatchEndpoint_(m,G);_.Zw(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(m,G,K){return _.EG(m,G,K)},
initDclkstatus_:function(){HWP()},
attachWatchPageSkeleton_:function(){var m=document.querySelector("#watch-page-skeleton");if(m){var G=m.querySelector("#primary-info"),K=m.querySelector("#secondary-info"),W=m.querySelector("#related");G&&_.VL(this.hostElement).querySelector("#info-skeleton").appendChild(G);K&&_.VL(this.hostElement).querySelector("#meta-skeleton").appendChild(K);W&&(_.VL(this.hostElement).querySelector("#related-skeleton").appendChild(W),this.watchNextSkeletonEl_=W);_.mX(m)}},
handlePlayerUpdated_:function(){_.sT(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(m,G){if(this.watchNextSkeletonEl_&&typeof G!=="undefined"){var K=this.watchNextSkeletonEl_.children,W=m&&m.indexSplices.length?m.indexSplices[0].index:0;m=Math.min(this.watchNextShownItems.length,K.length);G||(W=0,m=K.length);for(G=W;G<m;G++)K[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(m){_.F("external_fullscreen")||_.dU(this.hostElement,"yt-player-fullscreen",[m.fullscreen])},
onFullscreenChange_:function(m){this.fullscreen=m;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.sT(this);G.getPlayerPromise().then(function(K){K.setFauxFullscreen(!!_.$u())});
this.updateFullBleedElementLocations();m&&(G.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(m,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(m){return m},
computeShouldShowMerchShelf:function(m,G){return G&&!!m},
computeResponseHasComments:function(m){var G,K,W,L,A;return!!(m==null?0:(G=m.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:(W=K.results)==null?0:(L=W.results)==null?0:(A=L.contents)==null?0:A.some(function(O){var c;return(O==null?void 0:(c=O.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(m,G){this.responseHasComments=this.computeResponseHasComments(this.data);return!!m&&!!Object.keys(m).length&&!G},
identity:_.IM,onWindowResized_:function(m){this.windowSize_=m;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onPlayerPresentingVideoDataChange_:function(m){var G=this;m&&m.type!=="dataloaded"&&m.type!=="dataupdated"||_.sT(this).getPlayerPromise().then(function(K){var W=K.getPlayerState();W!==5&&W!==0&&(K=1/K.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==K&&(G.videoHeightToWidthRatio_=K))})},
schedulePlayerSizeUpdate_:function(m){var G=this,K=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),W=function(){if(G.watchMetadata){var L,A;(A=(L=G.watchMetadata).resize)==null||A.call(L)}_.sT(G).getPlayerPromise().then(function(O){if(_.Zk("kevlar_set_internal_player_size")){if(!K||!G.isMiniplayerActive()){var c=G.calculateCurrentPlayerSize_();O.setInternalSize(c.width,c.height)}}else O.setSize(NaN,NaN);_.F("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
m?W():_.UU(_.Fu,W)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(m){this.set("data.survey",m.detail)},
onYtShowSurveyCommand_:function(m){this.set("data.survey",_.Q(m,FLW).survey)},
onDownloadedVideoDeleted:function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1){if(!G.active||(K=G.playerData)==null||!K.offlineState||G.videoId!==m)return L.return();(W=G.player)==null||W.stopVideo();_.U7().navigatingAwayFromWatchDeletedVideo=!0;_.Xj(_.ids,G.hostElement);return L.yield(_.U7().navigationFinishPromise,2)}_.U7().navigatingAwayFromWatchDeletedVideo=!1;_.ey(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var m;this.theater?m=_.YJ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):m=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==m&&(this.watchWhileScrollThreshold_=m)}},
isTwoColumnsChanged_:function(m,G){if(m!==!0||G!==void 0){m=!_.F("live_chat_over_engagement_panels");G=_.VL(this.hostElement).querySelector("#chat-container");var K=_.VL(this.hostElement).querySelector("#plj-sidebar"),W=_.VL(this.hostElement).querySelector("#panels"),L=_.VL(this.hostElement).querySelector("#plj-panels"),A=_.VL(this.hostElement).querySelector("#plj-playlist"),O=_.VL(this.hostElement).querySelector("#alerts"),c=_.VL(this.hostElement).querySelector("#playlist"),u=_.VL(this.hostElement).querySelector("#related"),
h=_.VL(this.hostElement).querySelector("#donation-shelf"),J=_.VL(this.hostElement).querySelector("#comments");this.isTwoColumns_?(O=_.VL(this.hostElement).querySelector("#secondary-inner"),O.appendChild(K),K.appendChild(A),A.appendChild(c),K.appendChild(L),m&&O.appendChild(W),_.F("web_watch_theater_chat")||O.appendChild(G),m||O.appendChild(W),O.appendChild(h),O.appendChild(u)):(m&&_.JY(W,O),_.JY(c,O),_.F("web_watch_theater_chat")||_.JY(G,O),m||_.JY(W,O),_.JY(h,O),J&&(L&&_.JY(L,J),_.JY(u,J)));_.F("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.F("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.F("web_watch_theater_chat")){var m=_.VL(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?_.F("web_watch_theater_chat_beside_player")?(G=_.VL(this.hostElement).querySelector("#panels-full-bleed-container"),(m==null?void 0:m.parentElement)!==G&&G.append(m),this.panelsBesidePlayer=!0):_.F("web_watch_theater_fixed_chat")&&
(G=_.VL(this.hostElement).querySelector("#columns"),(m==null?void 0:m.parentElement)!==G&&G.append(m),this.fixedPanels=!0):(_.F("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.F("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),G=_.VL(this.hostElement).querySelector("#playlist"),m&&G?_.NN(m,G):_.nc(new _.cw("Missing element when updating chat location",{"chatContainer defined":!!m,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(m,G){return _.F("sw_metadata_vis_toggle_ks")?!0:!!m||!!G},
computeForceDarkPanelTheme:function(m){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&m:!1},
safeUpdateStyles:function(m){try{_.eb(this.hostElement,m)}catch(G){_.nc(G)}},
videoHeightToWidthRatioChanged_:function(m,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.F("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(m){this.videoHeightToWidthRatio_=1/m},
computeIsVerticalVideo_:function(m){return m>=1},
computeIsFourThreeToSixteenNineVideo_:function(m){return m<=.7501&&m>=.5624},
computeIsExtraWideVideo_:function(m){return m<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.sT(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.sT(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){HwG(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(m){var G=_.Gh(m)||0;_.i0(m,G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var m=_.Gh("yt-fullerscreen-edu-button-click-count")||0,G=_.Gh("yt-fullerscreen-edu-button-shown-count")||0,K=_.U8("external_fullscreen_button_shown_threshold"),W=m>=_.U8("external_fullscreen_button_click_threshold")||G>=K;_.sT(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(W)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(m,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.xS().resolve(_.NQ).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var m=this;this.panelMaxHeightUpdateJob_&&_.Fu.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Fu.addLowPriorityJob(function(){m.panelMaxHeightUpdateJob_=0;var G;!m.isTwoColumns_||m.theater||m.fullscreen?G=460:G=m.calculateNormalPlayerSize_().height;var K=G+"px";_.F("live_chat_taller_height")&&!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.F("live_chat_medium_height")&&
!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 238px)");m.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":K,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})})},
onYtShowEngagementPanelScrimAction_:function(m){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",m)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eD(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(m){var G=_.VL(this.hostElement).querySelector("#engagement-panel-scrim");m?G.addEventListener("tap",_.xC(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.xC(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(m){if(this.hostElement.contains(m)&&!this.scrollToAnimation_.isAnimating()){var G=m.offsetTop-24;m=m.offsetTop+m.offsetHeight+24;var K=this.getPageScrollingElement(),W=this.getScrollTop(),L=W+K.clientHeight-56;if(G<W+56)G-=56;else if(m>L)G=m-K.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtSignalActionScrollToComments:function(){var m=this.hostElement.querySelector("#comments");if(m&&!this.scrollToAnimation_.isAnimating()){m=m.offsetTop-56-24;if(_.F("kevlar_comment_teaser_scroll_to_midpoint")&&(m-=_.GI().height/3,m<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,m),500)}},
onYtEngagementPanelVisibleChanged:function(m,G,K){this.active&&this.trackEngagementPanelVisibility&&!KYq.includes(K)&&(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(K),G!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(K),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(m){return m?"":"watch-active-metadata"},
computeNewMetadataClass:function(m){return m?"watch-active-metadata":""},
computeFullBleedPlayer:function(m,G){return m||G},
computeDefaultLayout:function(m){return!m},
computeDefaultTwoColumnLayout:function(m,G){return!m&&G},
computeWatchWhilePanelsActive:function(m,G){return m||G},
computeNoBorderOnChat:function(m){return _.F("web_watch_theater_chat_no_border")&&m},
computeLiveChatPresentAndExpanded:function(m,G){return m&&!G},
computePanelExpanded:function(m,G,K){return m||G||K},
onChangeMarkersVisibility:function(m){_.sT(this).getPlayerPromise().then(function(G){var K;(K=G.changeMarkerVisibility)==null||K.call(G,_.Q(m,a6).isVisible||!1,_.Q(m,a6).entityKeys||[],_.Q(m,a6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(m){this.liveChatCollapsed=m.detail;_.$R().dispatch(zA5(m.detail))},
provideRenderingData:function(m,G){switch(m){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=G;break;case "OFFER_MODULE":this.offerModule=G;break;case "LIMITED_STATE":this.limitedStateValue=G;break;case "DONATION_SHELF":this.donation=G;break;
case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=G}},
toggleCinematicsActive:function(m){this.cinematicsActive=m},
isMiniplayerActive:function(){return _.xS().resolve(_.pY).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(m){return gMq.map(function(G){return m.find(function(K){var W;return(K==null?void 0:(W=K.engagementPanelSectionListRenderer)==null?void 0:W.targetId)===G})}).filter(function(G){return G!==void 0})},
getNonLearningJourneyEngagementPanels:function(m){return m.filter(function(G){var K;return!gMq.includes((G==null?void 0:(K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId)||"")})}}];var fo=function(){return _.l0.apply(this,arguments)||this};
_.n(fo,_.l0);_.w=fo.prototype;_.w.activeChanged=function(){if(this.active){var m=_.VL(this.hostElement).querySelector("#header");m&&_.Zw(m,"iron-resize");window.addEventListener("scroll",_.xC(this,this.onScroll))}else window.removeEventListener("scroll",_.xC(this,this.onScroll)),_.Zw(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.w.guideVisibleChanged=function(){var m=_.VL(this.hostElement).querySelector("#header");m&&_.Zw(m,"iron-resize")};
_.w.onScroll=function(){var m=this;_.t9(this,"onScroll",function(){var G=_.VL(m.hostElement).querySelector("#header");G&&G.polymerController&&(G=G.polymerController.getScrollState().progress===1?"standard":"seamed",_.Zw(m.hostElement,"yt-request-panel-mode-change",{mode:G}))},10)};
_.w.tabsChanged=function(){if(this.tabs){for(var m=null,G=0,K=this.tabs.length;G<K;++G){var W=this.tabs[G].tabRenderer;if(W&&W.selected){m=G;break}}this.selected=m}};
_.w.onTabsActivate=function(m){_.Zw(this.hostElement,"yt-navigate",{endpoint:this.tabs[m.detail.selected].tabRenderer.endpoint})};
fo.prototype.tabsChanged=fo.prototype.tabsChanged;fo.prototype.guideVisibleChanged=fo.prototype.guideVisibleChanged;fo.prototype.activeChanged=fo.prototype.activeChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],fo.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.V(),_.S("design:type",Array)],fo.prototype,"tabs",void 0);
_.x([_.V(),_.S("design:type",Object)],fo.prototype,"selected",void 0);_.x([_.V(),_.S("design:type",Boolean)],fo.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],fo.prototype,"disableHeaderFluidWidth",void 0);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fo.prototype,"activeChanged",null);
_.x([_.Sb("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fo.prototype,"guideVisibleChanged",null);_.x([_.Sb("tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fo.prototype,"tabsChanged",null);_.x([_.Be()],fo);var Od6=[_.B.YtRendererBehavior,_.p9.YtdGuideStateAwareBehavior,fo.prototype];var Yqi=function(m){_.Lt.call(this);var G=this;this.JSC$21564_watchApi=m;this.observer=null;var K=this.JSC$21564_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cRG(G)});
this.addOnDisposeCallback(function(){G.JSC$21564_watchApi.unsubscribeByKey(K);G.observer&&(G.observer.disconnect(),G.observer=null)});
cRG(this)};
_.n(Yqi,_.Lt);var cRG=function(m){var G,K,W,L,A;_.Y(function(O){if(O.nextAddress==1){m.observer&&(m.observer.disconnect(),m.observer=null);G=m.JSC$21564_watchApi.getWatchNextResponse();if(!G)return O.return();K=_.Q(G,Q_6);return((W=K)==null?0:W.enableCreatorChatbot)&&K.creatorChannelId?_.F("enable_creator_chatbot_link_out")?O.yield((0,_.Rm)("NSzT5"),6):O.yield((0,_.Rm)("NSzT5"),5):O.jumpTo(0)}if(O.nextAddress!=6)return L=_.rRD,L(K.creatorChannelId),O.jumpTo(0);A=_.ucs;A(K.creatorChannelId);_.ey(O)})};var xw=function(m){_.Lt.call(this);this.JSC$21568_watchApi=m;this.isShelfVisible=this.isTheaterMode=this.isAdPlaying=this.isSeeking=!1;h75(this)};
_.n(xw,_.Lt);var h75=function(m){_.Y(function(G){if(G.nextAddress==1)return G.yield(pAP(m),2);JR6(m);_.ey(G)})},pAP=function(m){var G,K,W,L,A,O,c,u,h;
return _.Y(function(J){if(J.nextAddress==1)return J.yield(m.JSC$21568_watchApi.playerApi,2);G=J.yieldResult;m.JSC$21568_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){NP5(m)});
m.JSC$21568_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){m.isShelfVisible?Diq(m):Xh(m)});
K=_.$R().subscribe(function(){m.isTheaterMode=_.wq(_.$R().getState());m.isTheaterMode?Xh(m):tzP(m)});
W=m.JSC$21568_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JR6(m)});
L=function(N){m.onCueRangeEnter(N)};
G.addEventListener("onCueRangeEnter",L);A=function(N){m.onCueRangeExit(N)};
G.addEventListener("onCueRangeExit",A);O=function(){m.isSeeking=!0};
G.addEventListener("SEEK_TO",O);c=function(){m.onSeekComplete()};
G.addEventListener("SEEK_COMPLETE",c);u=function(){m.onAdStart()};
G.addEventListener("onAdStart",u);h=function(){m.onAdComplete()};
G.addEventListener("onAdComplete",h);m.addOnDisposeCallback(function(){K();m.JSC$21568_watchApi.unsubscribeByKey(W);G.removeEventListener("onCueRangeEnter",L);G.removeEventListener("onCueRangeExit",A);G.removeEventListener("SEEK_TO",O);G.removeEventListener("SEEK_COMPLETE",c);G.removeEventListener("onAdStart",u);G.removeEventListener("onAdComplete",h)});
_.ey(J)})},Fx6=function(m){var G,K,W,L,A,O,c,u,h;
return(A=(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.results)==null?void 0:(L=W.results)==null?void 0:L.contents)==null?void 0:(O=A.find(function(J){var N,D,t;return(N=J.itemSectionRenderer)==null?void 0:(D=N.contents)==null?void 0:(t=D[0])==null?void 0:t.shoppingTimelyShelfViewModel}))==null?void 0:(c=O.itemSectionRenderer)==null?void 0:(u=c.contents)==null?void 0:(h=u[0])==null?void 0:h.shoppingTimelyShelfViewModel},JR6=function(m){var G;
_.Y(function(K){if(K.nextAddress==1)return(G=m.JSC$21568_watchApi.getWatchNextResponse())?K.yield(NP5(m),2):K.return();m.shoppingTimelyShelfViewModel=Fx6(G);Q1O(m);amz(m);_.ey(K)})},Q1O=function(m){var G,K=(G=m.shoppingTimelyShelfViewModel)==null?void 0:G.offerIdToVariants;
K&&(G=K.filter(function(W){return W.key&&W.value}).map(function(W){return[W.key,
W.value]}),m.variantsMap=new Map(G))},amz=function(m){var G,K,W,L,A,O;
_.Y(function(c){if(c.nextAddress==1)return(K=(G=m.shoppingTimelyShelfViewModel)==null?void 0:G.cueRanges)?c.yield(m.JSC$21568_watchApi.playerApi,2):c.return();W=c.yieldResult;m.cueRanges=K;L=_.g(K);for(A=L.next();!A.done;A=L.next())O=A.value,O.startTime!==void 0&&O.endTime!==void 0&&O.id!==void 0&&W.addCueRange("shopping_timely_shelf"+O.id,oME(O.startTime),oME(O.endTime));_.ey(c)})},oME=function(m){return Number(m.seconds||0)+(m.nanos||0)/1E9};
xw.prototype.onCueRangeEnter=function(m){if(m.startsWith("shopping_timely_shelf")&&(this.activeCueId=m,!(this.isSeeking||this.isAdPlaying||this.isTheaterMode))){m=m.substring(21);var G,K,W=(G=this.variantsMap)==null?void 0:(K=G.get(m))==null?void 0:K.shelf;W&&(this.JSC$21568_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",W),Diq(this))}};
xw.prototype.onCueRangeExit=function(m){m.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||Xh(this))};
xw.prototype.onSeekComplete=function(){this.isSeeking=!1;tzP(this)};
var Diq=function(m){m.shoppingTimelyShelfViewModel&&(m.isShelfVisible=!0,_.Im.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},Xh=function(m){m.shoppingTimelyShelfViewModel&&m.isShelfVisible&&(m.isShelfVisible=!1,_.Im.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},NP5=function(m){var G,K,W,L,A;
return _.Y(function(O){if(O.nextAddress==1)return O.yield(m.JSC$21568_watchApi.playerApi,2);G=O.yieldResult;if(m.cueRanges)for(K=_.g(m.cueRanges),W=K.next();!W.done;W=K.next())L=W.value,L.id&&(A="shopping_timely_shelf"+L.id,G.removeCueRange(A));m.JSC$21568_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});Xh(m);m.shoppingTimelyShelfViewModel=void 0;m.cueRanges=void 0;m.variantsMap=void 0;m.isSeeking=!1;m.activeCueId=void 0;_.ey(O)})};
xw.prototype.onAdStart=function(){this.isAdPlaying=!0;Xh(this)};
xw.prototype.onAdComplete=function(){this.isAdPlaying=!1;tzP(this)};
var tzP=function(m){if(m.activeCueId)m.onCueRangeEnter(m.activeCueId);else Xh(m)};var s1z=function(m){_.Lt.call(this);var G=this;this.JSC$21575_watchApi=m;m=_.BB(_.$R(),_.rkf,function(){nMO(G)});
this.addOnDisposeCallback(m);m=_.BB(_.$R(),wkP,function(){nMO(G)});
this.addOnDisposeCallback(m);bdi(this);vMD(this);$iq()};
_.n(s1z,_.Lt);var bdi=function(m){var G=function(W){_.$R().dispatch(Uhi(W.matches))},K=window.matchMedia("(max-width: "+(999+Tu())+"px)");
K.addListener(G);m.addOnDisposeCallback(function(){K.removeListener(G)});
G(K)},vMD=function(m){m.JSC$21575_watchApi.registerActionHandler("yt-window-resized",function(){$iq()});
m.addOnDisposeCallback(function(){m.JSC$21575_watchApi.unregisterActionHandler("yt-window-resized")})},$iq=function(){var m=_.zv();
_.$R().dispatch(_.kt({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:m.width,height:m.height}}}))},nMO=function(m){var G;
_.Y(function(K){if(K.nextAddress==1)return K.yield(m.JSC$21575_watchApi.playerApi,2);G=K.yieldResult;G.setSize(NaN,NaN);_.ey(K)})};var qqu=function(m){_.Lt.call(this);var G=_.xS().resolve(_.TE);L7D(G,m.getElement("PLAYER_CONTAINER"),m.getElement("BELOW_THE_PLAYER"),m.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var K=m.getElement("PLAYER_CONTAINER"),W=m.getElement("BELOW_THE_PLAYER"),L=m.getElement("SECONDARY");G.isLockupToWatchTransitionEnabled&&(K&&_.uk(G.viewTransitionCoordinator,K),W&&_.uk(G.viewTransitionCoordinator,W),L&&_.uk(G.viewTransitionCoordinator,L))})};
_.n(qqu,_.Lt);var Ss=function(m){V_.call(this);var G=this;this.rootElement=m;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return G.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(K){G.initOrDisposeActiveModules(K)}));
this.onAttached()};
_.n(Ss,V_);_.w=Ss.prototype;_.w.getRoot=function(){return this.rootElement};
_.w.getElement=function(m){return this.rootElement.getElement(m)};
_.w.setPlayerResponse=function(m){this.playerResponse=m;this.publish("PLAYER_RESPONSE_UPDATED",m)};
_.w.getPlayerResponse=function(){return this.playerResponse};
_.w.setWatchNextResponse=function(m){this.watchNextResponse===m?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=m,this.publish("WATCH_NEXT_RESPONSE_UPDATED",m))};
_.w.getWatchNextResponse=function(){return this.watchNextResponse};
_.w.registerActionHandler=function(m,G){var K=this;if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var W={};_.jN(_.Im.getInstance(),(W[m]=G,W),this.getRoot())}else this.actionHandlers.has(m)||(this.actionHandlers.set(m,[]),W={},_.jN(_.Im.getInstance(),(W[m]=function(){var L=_.mb.apply(0,arguments);return(K.actionHandlers.get(m)||[]).map(function(A){return A.apply(null,_.Bz(L))})},W),this.getRoot())),this.actionHandlers.get(m).push(G)};
_.w.unregisterActionHandler=function(m){if(_.F("web_watch_controller_reg_multiple_handlers_killswitch")){var G={};_.kz(_.Im.getInstance(),(G[m]=!0,G),this.getRoot())}else(G=this.actionHandlers.get(m))?(G.pop(),G.length===0&&(G={},_.kz(_.Im.getInstance(),(G[m]=!0,G),this.getRoot()),this.actionHandlers.delete(m))):_.nc(new _.cw("Attempted to unregister an action handler which is not registered.",m))};
_.w.addPageDisposeJob=function(m){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.qdM(this.rootElement.pageDisposeJobs,m)};
_.w.removePageDisposeJob=function(m){this.rootElement.pageDisposeJobs&&_.PJ(this.rootElement.pageDisposeJobs,m)};
_.w.dispatchEvent=function(m,G){_.Zw(this.rootElement,m,G)};
_.w.provideRenderingData=function(m,G){this.rootElement.provideRenderingData(m,G)};
_.w.scrollWatchTo=function(m,G){var K;(K=this.watchScrollManager)==null||K.scrollWatchTo(m,G)};
_.w.focusOnPlayer=function(){var m=this.getElement("PLAYER");_.Pv(m,function(){if(m&&m.firstElementChild){var G=m.querySelector(".html5-video-player");G&&(_.sW(_.xS().resolve(_.zk)),G.focus())}else _.nc(Error("Vl"))})};
_.w.subscribeToActiveChanged=function(m,G){G=G===void 0?!0:G;var K=_.BB(_.$R(),LQ5,function(W){m(W)});
G&&m(LQ5(_.$R().getState()));return K};
_.w.isActive=function(){return LQ5(_.$R().getState())};
_.w.onAttached=function(){var m=_.F("external_fullscreen");_.F("use_unified_flag_accessor")&&(m=_.xS().resolve(_.QPD).retriever.getFlag(_.Jgo));(m||_.IP("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var EM6=function(m){return m.getRoot().is==="ytd-watch-flexy"||m.getRoot().is==="ytd-watch-grid"},R5=function(m){return m.getRoot().is==="ytd-watch-fixie"};
Ss.prototype.initPersistentModules=function(){if(R5(this)||EM6(this)&&_.F("kevlar_watch_flexy_theater_manager")){var m=new m5i(this);_.UR(this,m)}m=new pV6(this);_.UR(this,m);m=new qs(this);_.UR(this,m);m=new gwW(this);_.UR(this,m);m=new yB(this);_.UR(this,m);m=new E2(this);_.UR(this,m);if(R5(this)||EM6(this)&&_.F("kevlar_watch_flexy_playlist_manager"))m=new lsP(this),_.UR(this,m);_.F("web_thumbnail_to_watch_transition")&&(m=new qqu(this),_.UR(this,m))};
Ss.prototype.initOrDisposeActiveModules=function(m){m?(this.watchScrollManager=new es(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new HoD(this)),_.F("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new xw(this)),this.activeModules.push(new BeD(this)),R5(this)&&this.activeModules.push(new s1z(this)),this.activeModules.push(new GY6(this)),this.activeModules.push(new owi(this)),(R5(this)||_.F("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new GV6(this)),
this.activeModules.push(new dsi(this)),(R5(this)||_.F("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new WxE(this)),(R5(this)||_.F("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new pQi(this)),_.Zk("kevlar_watch_cinematics")&&(this.watchCinematicManager=new XQq(this),this.activeModules.push(this.watchCinematicManager)),_.F("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new fsO(this)),_.F("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new rTi(this)),
m=_.F("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.F("kevlar_watch_flexy_comments_manager")&&!m&&this.activeModules.push(new GDG(this)),_.F("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new DDu(this)),this.activeModules.push(new wQz(this)),this.activeModules.push(new j56(this)),_.F("web_enable_timely_actions")&&this.activeModules.push(new YSG(this)),_.F("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new jjq(this)),_.F("web_watch_enable_multiview_manager")&&
this.activeModules.push(new nsG(this)),_.F("web_fullscreen_components")&&this.activeModules.push(new w6P(this)),_.F("web_player_rtr_ctrls")&&this.activeModules.push(new Cj5(this)),(_.F("enable_creator_chatbot")||_.F("enable_creator_chatbot_link_out"))&&this.activeModules.push(new Yqi(this))):(_.ja(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
Ss.prototype.disposeInternal=function(){V_.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.e_.Object.defineProperties(Ss.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});_.sh(_.P(function(m){var G=m.data;m=_.g(_.g_(!1,void 0,"VotqNe"));var K=m.next().value,W=m.next().value;_.bX(function(){_.Im.getInstance().triggerAction("yt-request-timely-shelf-state")});
var L=_.pT(function(){var h,J,N=(h=_.Q(G().rendererContext,_.BL))==null?void 0:(J=h.loggingDirectives)==null?void 0:J.trackingParams;if(N)return _.m5(N)},void 0,"AvMXxb");
_.jN(_.Im.getInstance(),{"yt-hide-shopping-timely-shelf":function(){W(!1);var h=_.gU(),J=L();h&&J&&_.o7(h,[J])},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){W(!0);var h=_.gU(),J=L();h&&J&&_.a7(h,[J])})}});
var A=function(){var h;return(h=G().image)==null?void 0:h.image},O=function(){var h,J;
return!!((h=A())==null?0:(J=h.sources)==null?0:J.some(function(N){var D;return!!(N==null?0:(D=N.clientResource)==null?0:D.imageName)}))},c=function(){var h;
return((h=G().image)==null?void 0:h.height)||40},u=function(){var h;
return(h=G().image)==null?void 0:h.backgroundColor};
m={};return _.r("yt-shopping-timely-shelf-content-view-model",{el:_.aC(_.On(function(){return G().rendererContext})),
class:_.VO("ytShoppingTimelyShelfContentViewModelHost",(m.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(G().image||G().avatar||G().line1)&&K()},m)),
style:_.eA({"--shopping-timely-shelf-content-padding-top":function(){var h;return TSO((h=G().padding)==null?void 0:h.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var h;return TSO((h=G().padding)==null?void 0:h.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var h;return TSO((h=G().padding)==null?void 0:h.start)},
"--shopping-timely-shelf-content-padding-end":function(){var h;return TSO((h=G().padding)==null?void 0:h.end)},
"--yt-shopping-timely-shelf-background-color":function(){return G().backgroundColor!==void 0?_.ce(G().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var h,J;return((J=(h=G().image)==null?void 0:h.cornerRadius)!=null?J:0)+"px"},
"--yt-shopping-timely-shelf-image-background-color":function(){return u()!==void 0?_.ce(u()):"initial"},
"--yt-shopping-timely-shelf-image-width":function(){var h;return(((h=G().image)==null?void 0:h.width)||40)+"px"}})},_.r(_.p,{cond:A,
then:function(h){var J={};return _.r(_.oC,{preserveHeight:!0,preserveWidth:!0,height:c,data:h,alt:"",className:_.VO("ytShoppingTimelyShelfContentViewModelImage",(J.ytShoppingTimelyShelfContentViewModelIcon=O,J))})}}),_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9}),_.r("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.r(_.z$,{data:function(){return G().line1}},{shoppingContentLineViewModel:function(h){return _.r(_.nM,{data:h.data,
className:"ytShoppingTimelyShelfContentViewModelLine1"})}}),_.r(_.z$,{data:function(){return G().line2}},{shoppingContentLineViewModel:function(h){return _.r(_.nM,{data:h.data,
className:"ytShoppingTimelyShelfContentViewModelLine2"})}})),_.r("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.r(_.z$,{data:function(){var h;
return(h=G().button)!=null?h:[]}},{buttonViewModel:function(h){var J=h.data;
return _.r(_.kP,{data:J,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(N){J().onTap&&N.stopPropagation()}})}})))},"rk"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Dd}});var Hdq={};
Hdq.YtdWatchBehavior=[_.B.YtRendererBehavior,_.Fa.YtPlayerListenerBehavior,_.$P.YtRendererstamperBehavior,_.Pq.YtActionHandlerBehavior,ra.YtPageBehavior,_.dR.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.IP("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.F("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 _.IP("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.F("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 _.U8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.U8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.F("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_split_scroll")}},
persistPanelOnDataChange:{type:Boolean,value:function(){return _.F("web_watch_persist_panel_on_data_change")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.F("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.F("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_binary_layout")}},
ghostCardsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("swatcheroo_enable_ghost_cards")||_.F("web_watch_enable_ghost_cards")}},
showGhostMetadata:{type:Boolean,computed:"computeShowGhostMetadata_(ghostCardsEnabled, loading, videoPrimaryInfoRenderer)"},showGhostRelated:{type:Boolean,computed:"computeShowGhostRelated_(ghostCardsEnabled, loading, watchNextSecondaryResults)"},metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.F("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 _.F("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.F("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded, theater, fullscreen);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
computeShowGhostMetadata_:function(m,G,K){return m&&(G||!K)},
computeShowGhostRelated_:function(m,G,K){return m&&(G||!K)},
monitorScroll:!0,configureRendererStamper:function(){var m={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:QV(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:QV(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-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"||_.F("swa_prov_panels_ks")?m.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(m.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},m.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return m},
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 m=this;this.watchController=void 0;this.pageDisposeJobs=[function(){m.showMetadataPlaceholder_()},
function(){_.F("web_watch_dont_clear_comments")||m.clearComments_()},
function(){m.clearPlayerAds_()},
function(){m.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.F("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.F("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new o9i(function(){return _.sT(m)},this.hostElement);
this.pageDisposeJobs.push(function(){m.youThereManager_.reset()});
_.F("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){m.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.wB;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;_.F("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));_.F("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xC(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(m){m&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:m}),m.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(m){_.F("kevlar_watch_flexy_theater_manager")&&(this.theater=m,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(m){!_.F("kevlar_watch_while_v2")&&!_.F("web_watch_pip")||m||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(m){this.active!==void 0&&(this.fullscreen=m,_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(m){this.active!==void 0&&(_.Zw(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.F("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(m>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(m){this.initCsi_();this.updatePageData_(m)},
updatePageData_:function(m){var G=this;if(m)if(this.data===m){this.onPageLoadWithSameData_();var K;(K=this.watchController)==null||K.setWatchNextResponse(this.data)}else this.data=m;this.playlist&&_.g9({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Yt("nw");this.loading=!1;_.rC(_.Fu,function(){G.initDclkstatus_();var W,L=((W=G.player)==null?void 0:W.getVideoData().cpn)||"";CL6(function(A,O){ZAE(A,O,L)})})},
onPageLoadWithSameData_:function(){_.F("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 m=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!m);this.set("loadingData.playlistLoading",m&&m!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),m=this.watchNextSkeletonEl_.firstElementChild;m;)m.classList.remove("hidden"),m=m.nextElementSibling;if(_.F("kevlar_watch_frame0_loading_state")){var G,K,W;m=(G=this.loadingData)==null?void 0:(K=G.endpoint)==null?void 0:(W=K.watchEndpoint)==null?void 0:W.videoId;var L;m&&(L="https://i.ytimg.com/vi/"+m+"/frame0.jpg");_.VL(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var m=_.VL(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&m&&(m.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var G,K;(K=(G=this.watchMetadata).updateSentimentBarWidth)==
null||K.call(G);var W,L;(L=(W=this.watchMetadata).resize)==null||L.call(W)}_.F("kevlar_watch_frame0_loading_state")&&(_.VL(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(m){var G=_.VL(this.hostElement).querySelector(m);G?_.q$(G,!1):_.nc(new _.cw("Overscroll monitor not found for component: ",m))},
removeSplitScrollMouseTrap:function(m){var G=_.VL(this.hostElement).querySelector(m);G?_.EB(G):_.nc(new _.cw("Disposal component for  overscroll monitoring not found: ",m))},
onLoadingChanged_:function(m){m?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.F("web_thumbnail_to_watch_transition")&&!_.xK6||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.F("web_thumbnail_to_watch_transition")&&!_.xK6||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(m){var G=this;m?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Fu.addLowPriorityJob(function(){G.onWindowResized_(_.zv(!0))})},
updateTheaterModeState_:function(m){if(!_.F("kevlar_watch_flexy_theater_manager")){m=m||this.fullWindowMode_;if(this.theater!==void 0||m)this.theater=m;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();m&&tOu()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var m=this.fullBleedPlayer?_.VL(this.hostElement).querySelector("#player-full-bleed-container"):_.VL(this.hostElement).querySelector("#player-container-inner");var G=this.getPlayerContainer(),K=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip");G.parentElement!==m&&(K&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.sT(this).appendTo(m,G))},
updateErrorScreenLocation:function(){var m=_.VL(this.hostElement).querySelector("#error-screen"),G=this.fullBleedPlayer?_.VL(this.hostElement).querySelector("#player-full-bleed-container"):_.VL(this.hostElement).querySelector("#player");m.parentElement!==G&&G.appendChild(m)},
deactivateMiniplayerAndResetPlayer:function(){var m=this;return _.Y(function(G){if(G.nextAddress==1)return G.yield(_.xS().resolve(_.pY).deactivate(),2);m.updatePlayerLocation();_.ey(G)})},
updateCinematicsLocation:function(){var m=this.getElement("CINEMATICS");if(m){var G=this.getCinematicsLocationContainer();m.parentElement!==G&&G.appendChild(m)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.VL(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.VL(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(m,G,K){var W=document.documentElement.hasAttribute("dark"),L=!W&&this.cinematicLightTheme;return K||m&&W||G&&W||(G||m)&&L},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var m=this,G;(G=this.watchController)==null||G.setWatchNextResponse(this.data);_.F("kevlar_watch_flexy_comments_manager")||this.initComments_();_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.xS().resolve(_.NQ).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&!this.persistPanelOnDataChange&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=
!0,this.visiblePanelIdentifiers_.clear(),this.engagementPanelExpanded=!1,_.F("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Fu.addLowPriorityJob(function(){_.PH(m.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.F("web_watch_start_chat_in_theater_mode")){var K,W,L;if((K=this.data)==null?0:(W=K.contents)==null?0:(L=W.twoColumnWatchNextResults)==null?0:L.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var A,O;((A=this.data)==null?0:(O=A.contents)==null?0:O.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(m){var G;(G=this.watchController)==null||G.setPlayerResponse(this.playerData);m&&m.playabilityStatus&&(G=this.isVideoPlayable_(m.playabilityStatus,this.getPlayerOverlays_(this.data)),m=this.isLiveStreamOffline_(m.playabilityStatus),G&&!m||_.Pv(this,function(){_.Yt("pbu")}));
this.setPlayerAds_();_.PH(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(m,G){if((_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"))&&this.playerData&&G)return this.playerData.videoDetails},
watchPageActiveChanged_:function(m){_.$R().dispatch(RAD(this.active));m?this.activate_():this.deactivate_()},
attached:function(){var m=this;this.watchController=new Ss(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);_.F("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var G=_.sT(this);_.F("kevlar_disable_prepare_player")||
G.preparePlayer();_.F("kevlar_watch_flexy_playlist_manager")||_.xS().resolve(_.NQ).setPlayer(G);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();G={"--ytd-watch-flexy-scrollbar-width":Tu()+"px"};this.is==="ytd-watch-grid"&&(_.$R().dispatch(_.kt({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),G["--ytd-watch-flexy-sidebar-width"]=ZNW+"px",G["--ytd-watch-grid-horizontal-page-margins"]=iT+"px",G["--ytd-watch-grid-columns-top-margins"]=y$i+"px",
G["--ytd-watch-grid-min-player-height-medium"]="360px");!_.U8("kv_pl_mx_sz_ks")&&_.U8("kevlar_watch_max_player_width")&&(G["--ytd-watch-flexy-max-player-width-wide-screen"]=PK5+"px");_.U8("kevlar_watch_flexy_metadata_height")&&(G["--ytd-watch-flexy-space-below-player"]=eaW+"px");this.safeUpdateStyles(G);_.F("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new PV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return m.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.VL(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var m=Tu(),G=mc+m,K=G;this.fixedPanels&&(G+=ZNW);var W=657+m;m=1327+m;_.VL(this.hostElement).querySelector("#two-column-query").query="(min-width: "+G+"px)";_.VL(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(W+"px), (min-height: 630px) and (min-width: ")+(G+"px) and (max-width: ")+(m+"px)");_.VL(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(m+"px)");_.VL(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+K+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var m=this.squeezeback&&!_.F("web_watch_squeezeback_player_size_killswitch");return this.theater||_.F("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||m||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.qj(NaN,NaN):fJW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return fJW(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.I$(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var m=this;this.onWindowResized_(_.zv());_.F("browse_skeleton_removal_on_watch_killswitch")||_.IP("IS_SHELL_LOAD")&&s7z();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var G=_.sT(this);G.addEventListener("yt-player-updated",_.xC(this,this.onPlayerUpdated_));G.getPlayerPromise().then(function(K){m.playerApiReady_(K)});
_.F("kevlar_watch_flexy_playlist_manager")||(G=_.xS().resolve(_.NQ),_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&G.addEventListener("yt-navigate",_.xC(this,this.onYtNavigate_)),G.setPlaylistComponent(_.VL(this.hostElement).querySelector("#playlist")),G.addEventListener("yt-playlist-data-updated",_.xC(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Fu.addLowPriorityJob(function(){_.Zw(m.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.sT(this).removeEventListener("yt-player-updated",_.xC(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.F("kevlar_watch_flexy_playlist_manager")){var m=_.xS().resolve(_.NQ);_.F("kevlar_watch_observe_playlist_navigations_killswitch")&&m.removeEventListener("yt-navigate",_.xC(this,this.onYtNavigate_));
m.cancelVideoSkip();m.removeEventListener("yt-playlist-data-updated",_.xC(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);this.schedulePlayerSizeUpdate_();_.Zw(this.hostElement,"yt-autonav-pause-player",!1);m=_.$u();_.F("kevlar_exit_fullscreen_leaving_watch")&&m&&_.sB(m)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(m){this.player&&this.player.updateVideoData({rvs:m.rvs})},
getPageContents:function(m){return m&&m.contents&&m.contents.twoColumnWatchNextResults&&m.contents.twoColumnWatchNextResults.results&&m.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(m){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",m)},
onRetrieveLocation_:function(m,G){G.hasComments?G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):G.locationRetrieved("/related_ajax",void 0);m.stopPropagation()},
onSubscriptionChanged_:function(m,G){this.player&&(G?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){D85("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.VL(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.VL(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(m){this.player=m;this.setPlayerState(m.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.F("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.F("kevlar_unified_player")||_.F("kevlar_player_new_bootstrap_adoption"))&&_.Fw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(m,G){G=G===void 0?!0:G;_.$u()&&_.F("external_fullscreen")&&_.sB(document.documentElement);this.theaterRequested_=m;G&&_.AH("wide",m?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.dU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Zw(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(m){_.bO(m,typeof this.player),this.player&&_.bO(m,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var m;((m=this.player)==null?0:m.isFullscreen())?this.player.toggleFullscreen():_.dU(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(m,G){return this.loading?G:!!Object.keys(m).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(m){if(m){m=_.g(m);for(var G=m.next();!G.done;G=m.next())G=G.value,G.youThereRenderer&&v95(this.youThereManager_,G.youThereRenderer)}},
setPlaylistData_:function(m){return m||{}},
userEngagementConfigDataChanged_:function(m){if(m)if(m.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var G=this.youThereManager_;_.Xu()<m.lowEngagementThresholdMs||E9G(G,!0)}else m.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.dU(this.hostElement,"yt-autonav-pause-user-engagement",[m])},
isPlayerUnavailable_:function(m,G,K){return!!m&&!this.isVideoPlayable_(m,K)&&!G},
getPlayerOverlays_:function(m){return(m==null?void 0:m.playerOverlays)||null},
isVideoPlayable_:function(m,G){if(!m)return!1;var K=m.status==="OK"||m.status==="LIVE_STREAM_OFFLINE",W=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",m)||this.get("errorScreen.ypcTrailerRenderer",m);m=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",m);var L;G=G==null?void 0:(L=G.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!K||!!W||!!m||!!G},
hasWatchNextResponseErrorRenderer:function(m){var G=this.getPageContents(m),K,W,L,A,O;return!(m==null?0:(K=m.contents)==null?0:(W=K.twoColumnWatchNextResults)==null?0:W.secondaryResults)&&!!((L=G[0])==null?0:(A=L.itemSectionRenderer)==null?0:(O=A.contents[0])==null?0:O.backgroundPromoRenderer)},
isLiveStreamOffline_:function(m){return m?m.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(m,G,K){var W=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",G),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.F("web_no_skip_video_on_verification_checks")?(m==null?void 0:m.status)&&L.includes(m.status):m&&m.status==="AGE_CHECK_REQUIRED";var A=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",m);A==void 0&&(A=!0);!K||this.isVideoPlayable_(m,this.getPlayerOverlays_(G))||
W||L||!A||_.xS().resolve(_.NQ).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();KrG()},
onPlayerFeedbackStartRequest_:function(m){_.dU(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:m}])},
onPlayerFeedbackArticleRequest_:function(m){_.dU(this.hostElement,"yt-help-dialog-requested",[m])},
onPlayerYpcContentRequest_:function(){var m,G,K,W,L,A,O,c,u=((m=this.data)==null?NaN:(G=m.contents)==null?NaN:(K=G.twoColumnWatchNextResults)==null?NaN:(W=K.secondaryResults)==null?NaN:(L=W.secondaryResults)==null?NaN:(A=L.offerModule)==null?NaN:(O=A.tvfilmOfferModuleRenderer)==null?NaN:(c=O.actionButtons)==null?NaN:c.length)-1;m=[".offerButton.buttonRenderer.",".actionButtons."+(u>=0?u:0)+".buttonRenderer."];G=_.g(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(K=G.next();!K.done;K=G.next())for(K=K.value,W=_.g(m),L=W.next();!L.done;L=W.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+K+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.Xj(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(m){_.Zw(this.hostElement,"yt-autonav-pause-player",m)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(m){m()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(m){switch(m){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(m){switch(m){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Zw(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(m)},
setPlayerState:function(m){_.$R().dispatch(_.buX(m))},
onPlayerSubscribe_:function(m){_.dU(this.hostElement,"yt-player-subscribe",[m])},
onPlayerUnsubscribe_:function(m){_.dU(this.hostElement,"yt-player-unsubscribe",[m])},
onPlayerAdYtShowToast_:function(m){_.dU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:m.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(m){if(m)return m},
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(m){return!_.Zk("web_watch_move_summary_to_sd")&&!!m},
computeWatchMetadataRefresh:function(){return this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.F("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var m,G,K,W;this.watchNextSecondaryResults=(m=this.data)==null?void 0:(G=m.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(W=K.secondaryResults)==null?void 0:W.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var m,G=(m=this.data)==null?void 0:m.engagementPanels;if(G==null?0:G.length){m=null;G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0;if(((W=K.engagementPanelSectionListRenderer)==null?void 0:W.targetId)==="engagement-panel-structured-description"){m=K;break}}var L,A,O;m=(L=m)==null?void 0:(A=L.engagementPanelSectionListRenderer)==null?void 0:(O=A.content)==null?void 0:O.structuredDescriptionContentRenderer;if(m==null?0:m.items){L=
[];A=_.g(m.items);for(O=A.next();!O.done;O=A.next()){O=O.value;if(!_.F("sd_horizontal_list_show_nav_killswitch")){var c=W=K=G=m=void 0,u=void 0,h=(m=O.horizontalCardListRenderer)==null?void 0:(G=m.header)==null?void 0:(K=G.richListHeaderRenderer)==null?void 0:(W=K.navigationButton)==null?void 0:(c=W.buttonRenderer)==null?void 0:(u=c.command)==null?void 0:u.commandExecutorCommand;h&&h.commands&&(h.commands=h.commands.filter(function(J){return!_.Q(J,wrD)}))}(!O.expandableVideoDescriptionBodyRenderer&&
!O.videoDescriptionHeaderRenderer||_.F("web_delhi_colorful_sd"))&&L.push(O)}return{items:L}}}},
constructWarning_:function(m){return{text:_.nG(m),type:"WARNING"}},
isPlaShelfEnabled_:function(m){if((this.get("adPlacements",m)||[]).length)return!0;m=this.get("playerAds",m)||[];return!(!m.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",m[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var m=this;_.Zw(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();var G=this.getScrollTop()>0;this.gestures_&&(G?this.gestures_.detach():this.gestures_.attach());G!==this.showFullerscreenEdu_&&_.F("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=G,_.sT(this).getPlayerPromise().then(function(K){K.updateFullerscreenEduButtonVisibility(m.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Zw(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var m=this;this.commentsReady=!1;_.Fu.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.rC(_.Fu,function(){m.setComments_()},1E3)},
setComments_:function(){if(!_.F("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Yt("cmi");_.Fu.cancelJob(this.setCommentsJobId_);var m=this.getPageContents(this.data);if(m&&m.length){m=_.g(m);for(var G=m.next();!G.done;G=m.next())if(G=G.value,this.get("itemSectionRenderer.sectionIdentifier",G)==="comment-item-section"){this.comments=G.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Zw(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.F("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.F("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Yt("cmc")},
doRemoveComments_:function(){this.comments={};_.F("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Fu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Fu.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(m,G){var K=_.Q(G.endpoint,_.QQ);K&&(!(G=this.get("data.currentVideoEndpoint.watchEndpoint"))||K.videoId!==G.videoId||K.playlistId&&K.playlistId!==G.playlistId||K.index!==void 0&&K.index!==G.index||typeof K.startTimeSeconds!=="number"||(m.stopPropagation(),this.setScrollTop(0),_.sT(this).getPlayerPromise().then(function(W){var L=K.startTimeSeconds;W.seekTo(L);W.wakeUpControls();L<W.getDuration()&&W.playVideo()})))},
updatePlayerStartTime_:function(){var m=sv5();"t"in m&&(m=Tn6(m.t),this.player.seekTo(m,!0))},
updateTitleFromWatchNext:function(m){m=this.getPageContents(m);var G,K;(m=_.bw(m==null?void 0:(G=m[0])==null?void 0:(K=G.videoPrimaryInfoRenderer)==null?void 0:K.title))&&_.Zw(this.hostElement,"yt-update-title",m)},
updateTitle_:function(m){m=this.get("videoDetails.title",m)||"";_.Zw(this.hostElement,"yt-update-title",m)},
syncWithRemoteVideo_:function(m,G,K){if(this.active&&this.player){var W=this.player.getVideoData();if(W.video_id===K&&(K=W.list,_.F("polymer_enable_mdx_queue")&&K&&K.startsWith("RQ")&&(K=void 0),W.video_id!==m||K!=G)){var L;_.F("kevlar_player_watch_endpoint_navigation")?L=_.BfG(rWD(m,G)):L=this.buildWatchEndpoint_(m,G);_.Zw(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(m,G,K){return _.EG(m,G,K)},
initDclkstatus_:function(){HWP()},
attachWatchPageSkeleton_:function(){var m=document.querySelector("#watch-page-skeleton");if(m){var G=m.querySelector("#primary-info"),K=m.querySelector("#secondary-info"),W=m.querySelector("#related");G&&_.VL(this.hostElement).querySelector("#info-skeleton").appendChild(G);K&&_.VL(this.hostElement).querySelector("#meta-skeleton").appendChild(K);W&&(_.VL(this.hostElement).querySelector("#related-skeleton").appendChild(W),this.watchNextSkeletonEl_=W);_.mX(m)}},
handlePlayerUpdated_:function(){_.sT(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(m,G){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof G!=="undefined"){var K=this.watchNextSkeletonEl_.children,W=m&&m.indexSplices.length?m.indexSplices[0].index:0;m=Math.min(this.watchNextShownItems.length,K.length);G||(W=0,m=K.length);if(!this.ghostCardsEnabled)for(G=W;G<m;G++)K[G].classList.add("hidden")}},
onPlayerFullscreenChange_:function(m){_.F("external_fullscreen")||_.dU(this.hostElement,"yt-player-fullscreen",[m.fullscreen])},
onFullscreenChange_:function(m){this.fullscreen=m;this.gestures_&&this.gestures_.update(this.fullscreen);var G=_.sT(this);G.getPlayerPromise().then(function(K){K.setFauxFullscreen(!!_.$u())});
this.updateFullBleedElementLocations();m&&(G.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(m,G){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!G},
computeIsDonationShelfCollapsed_:function(m){return m},
computeShouldShowMerchShelf:function(m,G){return G&&!!m},
computeResponseHasComments:function(m){var G,K,W,L,A;return!!(m==null?0:(G=m.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:(W=K.results)==null?0:(L=W.results)==null?0:(A=L.contents)==null?0:A.some(function(O){var c;return(O==null?void 0:(c=O.itemSectionRenderer)==null?void 0:c.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(m,G,K,W){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&W?!1:!!m&&!!Object.keys(m).length&&!G},
identity:_.IM,onWindowResized_:function(m){this.windowSize_=m;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())},
onPlayerPresentingVideoDataChange_:function(m){var G=this;m&&m.type!=="dataloaded"&&m.type!=="dataupdated"||_.sT(this).getPlayerPromise().then(function(K){var W=K.getPlayerState();W!==5&&W!==0&&(K=1/K.getVideoAspectRatio(),G.videoHeightToWidthRatio_!==K&&(G.videoHeightToWidthRatio_=K))})},
schedulePlayerSizeUpdate_:function(m){var G=this,K=_.F("kevlar_watch_while_v2")||_.F("web_watch_pip"),W=function(){if(G.watchMetadata){var L,A;(A=(L=G.watchMetadata).resize)==null||A.call(L)}_.sT(G).getPlayerPromise().then(function(O){if(_.Zk("kevlar_set_internal_player_size")){if(!K||!G.isMiniplayerActive()){var c=G.calculateCurrentPlayerSize_();O.setInternalSize(c.width,c.height)}}else O.setSize(NaN,NaN);_.F("kevlar_watch_while")&&G.updateWatchWhileScrollThreshold_()})};
m?W():_.UU(_.Fu,W)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(m){this.set("data.survey",m.detail)},
onYtShowSurveyCommand_:function(m){this.set("data.survey",_.Q(m,FLW).survey)},
onDownloadedVideoDeleted:function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1){if(!G.active||(K=G.playerData)==null||!K.offlineState||G.videoId!==m)return L.return();(W=G.player)==null||W.stopVideo();_.U7().navigatingAwayFromWatchDeletedVideo=!0;_.Xj(_.ids,G.hostElement);return L.yield(_.U7().navigationFinishPromise,2)}_.U7().navigatingAwayFromWatchDeletedVideo=!1;_.ey(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var m;this.theater?m=_.YJ(.5625*this.windowSize_.width,480,this.windowSize_.height-185):m=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==m&&(this.watchWhileScrollThreshold_=m)}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var m=_.VL(this.hostElement).querySelector("#secondary-inner");if(m){var G=_.VL(this.hostElement).querySelector("#below"),K=_.VL(this.hostElement).querySelector("#secondary"),W=_.VL(this.hostElement).querySelector("#comments");W&&K&&G&&(this.defaultTwoColumnLayout?(m.appendChild(W),K.appendChild(m)):(G.appendChild(W),qX(G,m)))}}},
isTwoColumnsChanged_:function(m,G){if(m!==!0||G!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(m=_.VL(this.hostElement).querySelector("#secondary-inner"))){G=_.VL(this.hostElement).querySelector("#below");var K=_.VL(this.hostElement).querySelector("#secondary"),W=_.VL(this.hostElement).querySelector("#comments");W&&K&&G&&(this.isTwoColumns_?(m.appendChild(W),K.appendChild(m)):(G.appendChild(W),qX(G,m)))}}else{m=!_.F("web_watch_enable_fs_squeezeback_panels");
G=_.VL(this.hostElement).querySelector("#panels");var L=_.VL(this.hostElement).querySelector("#alerts"),A=_.VL(this.hostElement).querySelector("#shopping-timely-shelf");K=_.VL(this.hostElement).querySelector("#playlist");W=_.VL(this.hostElement).querySelector("#related");var O=_.VL(this.hostElement).querySelector("#donation-shelf"),c=_.VL(this.hostElement).querySelector("#comments"),u=_.VL(this.hostElement).querySelector("#persistent-panel-container");this.isTwoColumns_?(L=_.VL(this.hostElement).querySelector("#secondary-inner"),
m&&(L.appendChild(G),L.appendChild(K),this.aiCompanionEnabled&&u&&L.appendChild(u)),L.appendChild(O),L.appendChild(W)):(m&&(_.JY(G,L),_.JY(K,L),this.aiCompanionEnabled&&u&&_.JY(u,L),_.JY(A,K)),_.JY(O,L),c&&_.JY(W,c));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.F("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.F("web_watch_enable_fs_squeezeback_panels")&&_.F("web_watch_theater_chat")){var m=_.VL(this.hostElement).querySelector("#chat-container"),G=this.theater&&!this.fullscreen||_.F("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&G?(G=_.VL(this.hostElement).querySelector("#columns"),(m==null?void 0:m.parentElement)!==G&&G.append(m),this.fixedPanels=!0):(this.fixedPanels=
!1,G=_.VL(this.hostElement).querySelector("#playlist"),m&&G?_.NN(m,G):_.nc(new _.cw("Missing element when updating chat location",{"chatContainer defined":!!m,"playlist defined":!!G})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(m,G){return _.F("sw_metadata_vis_toggle_ks")?!0:!!m||!!G},
computeForceDarkPanelTheme:function(m){return _.F("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&m:!1},
safeUpdateStyles:function(m){try{_.eb(this.hostElement,m)}catch(G){_.nc(G)}},
videoHeightToWidthRatioChanged_:function(m,G){G&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(m){this.videoHeightToWidthRatio_=1/m},
computeIsVerticalVideo_:function(m){return m>=1},
computeIsFourThreeToSixteenNineVideo_:function(m){return m<=.7501&&m>=.5624},
computeIsExtraWideVideo_:function(m){return m<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.sT(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.sT(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){HwG(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(m){var G=_.Gh(m)||0;_.i0(m,G+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var m=_.Gh("yt-fullerscreen-edu-button-click-count")||0,G=_.Gh("yt-fullerscreen-edu-button-shown-count")||0,K=_.U8("external_fullscreen_button_shown_threshold"),W=m>=_.U8("external_fullscreen_button_click_threshold")||G>=K;_.sT(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(W)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(m,G){return G},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.xS().resolve(_.NQ).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var m=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Fu.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Fu.addLowPriorityJob(function(){m.fullHeightPanelPositionUpdateJobId=0;var G=_.VL(m.hostElement).querySelector("#secondary"),K=_.VL(m.hostElement).querySelector("#fixed-secondary");G=G.getBoundingClientRect();var W=G.width;m.swatcherooSqueezeback&&
(W+=iT);if(m.swatcherooSqueezeback){var L=_.VL(m.hostElement).querySelector("#squeezeback-constraining-container");L.style.width=W+"px";L.style.flex="0 0 "+W+"px"}K.style.width=W+"px";K.style.left=G.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var m=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Fu.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Fu.addLowPriorityJob(function(){m.panelMaxHeightUpdateJob_=0;var G;!m.isTwoColumns_||m.theater||m.fullscreen?G=460:G=m.calculateNormalPlayerSize_().height;var K=G+"px";_.F("live_chat_taller_height")&&!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.F("live_chat_medium_height")&&!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.F("live_chat_scaled_height")&&!m.theater&&(K="calc(100vh - var(--ytd-toolbar-height) - 238px)");m.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":G+"px","--ytd-watch-flexy-chat-max-height":K,"--ytd-watch-flexy-structured-description-max-height":G+"px","--ytd-watch-flexy-comments-panel-max-height":G+"px","--ytd-comments-engagement-panel-content-height":G+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(m){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",m)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.eD(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(m){var G=_.VL(this.hostElement).querySelector("#engagement-panel-scrim");m?G.addEventListener("tap",_.xC(this,this.onEngagementPanelScrimClick_)):G.removeEventListener("tap",_.xC(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(m){if(this.hostElement.contains(m)&&!this.scrollToAnimation_.isAnimating()){var G=m.offsetTop-24;m=m.offsetTop+m.offsetHeight+24;var K=this.getPageScrollingElement(),W=this.getScrollTop(),L=W+K.clientHeight-56;if(G<W+56)G-=56;else if(m>L)G=m-K.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,G),500)}},
onYtSignalActionScrollToComments:function(){var m=this.hostElement.querySelector("#comments");if(m&&!this.scrollToAnimation_.isAnimating()){m=m.offsetTop-56-24;if(_.F("kevlar_comment_teaser_scroll_to_midpoint")&&(m-=_.GI().height/3,m<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,m),500)}},
onYtEngagementPanelVisibleChanged:function(m,G,K){if(this.active&&this.trackEngagementPanelVisibility&&!KYq.includes(K)){if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.PH(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var W=_.xS().resolve(_.Wx);this.visiblePanelIdentifiers_.forEach(function(L){L!==K&&W.hidePanel({identifier:L})})}this.visiblePanelIdentifiers_.add(K)}G!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&G!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(K);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(m){return m?"":"watch-active-metadata"},
computeNewMetadataClass:function(m){return m?"watch-active-metadata":""},
computeIsSingleColumn:function(m,G){return G&&!m},
computeFullBleedPlayer:function(m,G,K){return _.F("external_fullscreen")&&m||G||K},
computeDefaultLayout:function(m){return!m},
computeDefaultTwoColumnLayout:function(m,G){return!m&&G},
updatePanelsLocation:function(){if(_.F("web_watch_enable_fs_squeezeback_panels")){var m=_.VL(this.hostElement).querySelector("#below"),G=_.VL(this.hostElement).querySelector("#panels"),K=_.VL(this.hostElement).querySelector("#playlist"),W=_.VL(this.hostElement).querySelector("#chat-container"),L=_.VL(this.hostElement).querySelector("#panels-full-bleed-container"),A=_.VL(this.hostElement).querySelector("#secondary-inner"),O=_.VL(this.hostElement).querySelector("#shopping-timely-shelf"),c=_.VL(this.hostElement).querySelector("#persistent-panel-container");
if(m&&G&&K&&W&&L&&A&&O&&(this.aiCompanionEnabled?c:1)){var u=this.fullscreen||this.theater&&this.iMaxTheaterMode,h=this.theater&&!this.fullscreen&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;h?(h=_.VL(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==h&&h.append(W),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):u?L.appendChild(W):this.isTwoColumns_?qX(A,W):qX(m,W);u?(L.appendChild(G),L.appendChild(K),
this.aiCompanionEnabled&&c&&L.appendChild(c)):(this.isTwoColumns_?(qX(A,G),qX(A,K),this.aiCompanionEnabled&&c&&qX(A,c)):(qX(m,G),qX(m,K),this.aiCompanionEnabled&&c&&qX(m,c)),qX(m,O))}}},
swatcherooUpdatePanelsLocation:function(m,G,K,W,L,A){if(this.is==="ytd-watch-grid"){G=m&&!G;this.swatcherooSplitScroll&&(G?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));K=_.VL(this.hostElement).querySelector("#panels");var O=_.VL(this.hostElement).querySelector("#playlist"),c=_.VL(this.hostElement).querySelector("#persistent-panel-container"),
u=_.VL(this.hostElement).querySelector("#fixed-secondary"),h=_.VL(this.hostElement).querySelector("#fixed-below"),J=_.VL(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),N=_.VL(this.hostElement).querySelector("#chat-container");A&&(m?(u.appendChild(K),this.aiCompanionEnabled&&c&&u.appendChild(c)):(h.appendChild(K),this.aiCompanionEnabled&&c&&h.appendChild(c)));L?m?u.appendChild(N):h.appendChild(N):_.NN(N,J);W?m?u.appendChild(O):h.appendChild(O):_.NN(O,
J);this.swatcherooSplitScroll&&(m=_.VL(this.hostElement).querySelector("#secondary"),W=_.VL(this.hostElement).querySelector("#columns"),L=_.VL(this.hostElement).querySelector("#fixed-columns-secondary"),G?L.appendChild(m):W.appendChild(m))}},
computeMetadataSkinnyMode:function(m,G,K){return this.is!=="ytd-watch-grid"?!1:m?K:G},
computeWatchWhilePanelsActive:function(m,G){return m||G},
computeNoBorderOnChat:function(m){return _.F("web_watch_theater_chat_no_border")&&m},
computeLiveChatPresentAndExpanded:function(m,G){return m&&!G},
computePanelExpanded:function(m,G,K){return m||G||K},
computeSqueezeback:function(m,G,K,W){if(_.F("web_watch_enable_fs_squeezeback_panels")){var L=this.iMaxTheaterMode&&this.theater,A=this.theater&&!this.iMaxTheaterMode;return(m||G||K)&&(L||W)||G&&A}},
computeSwatcherooSqueezeback:function(m,G,K){return this.is!=="ytd-watch-grid"||_.F("ww_squeezeback_killswitch")?!1:m&&G&&K},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(m){_.sT(this).getPlayerPromise().then(function(G){var K;(K=G.changeMarkerVisibility)==null||K.call(G,_.Q(m,a6).isVisible||!1,_.Q(m,a6).entityKeys||[],_.Q(m,a6).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(m){this.liveChatCollapsed=m.detail;_.$R().dispatch(zA5(m.detail));if(!this.liveChatCollapsed&&this.squeezeback){var G=_.xS().resolve(_.Wx);this.visiblePanelIdentifiers_.forEach(function(K){G.hidePanel({identifier:K})})}},
onSetPlaylistCollapsed:function(m){_.F("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!m)},
provideRenderingData:function(m,G){switch(m){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=G;break;case "PRIMARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=G);this.videoPrimaryInfoRendererValue=G==null?void 0:G.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.F("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=G);this.videoSecondaryInfoRendererValue=G==null?void 0:G.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
G;break;case "CLARIFICATION":this.clarifyBoxValue=G;break;case "LIVE_CHAT":this.conversationBar=G;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=G;break;case "PLAYLIST":this.externalPlaylistData_=G!=null?G:{};break;case "MERCH_SHELF":this.merchShelfValue=G==null?void 0:G.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=G;break;case "TICKET_SHELF":this.ticket=G;break;case "OFFER_MODULE":this.offerModule=G;break;case "LIMITED_STATE":this.limitedStateValue=
G;break;case "DONATION_SHELF":this.donation=G;break;case "ALERTS":this.alertsValue=G;break;case "COMMENTS":this.comments=G;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=G;break;case "ENGAGEMENT_PANELS":this.engagementPanels=G;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=G;break;case "RICH_GRID_RENDERER":this.richGridRendererData=G;break;case "EXPANDABLE_METADATA":this.expandableMetadata=G;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
G;break;case "IS_TWO_COLUMNS":this.isTwoColumns_=G;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=G}},
toggleCinematicsActive:function(m){this.cinematicsActive=m},
isMiniplayerActive:function(){return _.xS().resolve(_.pY).isMiniplayerActive()}}];var Im6=function(m,G){var K;return((K=m.prefixMapping)==null?0:K[G])?m.prefixMapping[G]:m.SHARED_RENDERERS_.hasOwnProperty(G)?"yt":m.prefix},U2={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}}};U2.DROPDOWN={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,addSpacing:_.F("kevlar_add_spacing_to_sheets")},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
U2.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"};
U2.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"};U2.LOCKED_OVERLAY_DIALOG={component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,scrollAction:"lock",withBackdrop:!0},preventAutonav:!0};
U2.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.F("kevlar_mealbar_above_player"),modern:_.E8("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX",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"}};
U2.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};U2.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};U2.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
U2.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)"}};
U2.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};
U2.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};
U2.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};
U2.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0,addSpacing:_.F("kevlar_add_spacing_to_sheets")},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0,styles:{"max-width":"400px"}};
U2.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"}};U2.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};U2.TOAST={component:null,properties:{}};var j1D=new function(m,G,K){this.supportedPopups=m;this.navigationEndpointPopupMap=G;this.popupTypeMap=K;this.supportedPopups=m;this.navigationEndpointPopupMap=G;this.popupTypeMap=K}({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:_.F("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"}),kYi=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unifiedSharePanelRenderer:!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$21593_popupConfig=U2;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 CeW=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.gt.getInstance()},zD=function(m,G){var K=m.pageNameToElement.get(G);
if(!K){switch(G){case "watch":var W=_.F("web_watch_force_learning_journey_for_testing")?_.na("ytd-watch-learning-journey"):_.F("kevlar_watch_fixie")?_.na("ytd-watch-fixie"):_.F("kevlar_watch_grid")?_.na("ytd-watch-grid"):_.na("ytd-watch-flexy");break;case "learning_journey_watch":W=_.na("ytd-watch-learning-journey");break;case "shorts":W=_.na("ytd-shorts");break;case "search":W=_.na("ytd-search");break;case "channel":W=_.na("ytd-browse");W.pageSubtype="channels";break;case "trending":W=_.na("ytd-browse");
W.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":case "your-courses":case "report-history":W=
_.na("ytd-browse");W.pageSubtype=G;break;case "browse":W=_.na("ytd-browse");break;default:_.nc(new _.cw("Error getting page element for type",G))}K=W;m.pageNameToElement.set(G,K)}return K};
CeW.prototype.preparePage=function(m,G,K){K&&(m=_.XQ(K)||m);if(m!=="watch"&&m!=="learning_journey_watch"){var W=this.elementPoolPopulator,L=m;L!=W.targetPage_&&W.pendingPages_.indexOf(L)>-1&&(W.targetPage_&&(W.pendingPages_.unshift(W.targetPage_),W.abort()),i_G(W,L),_.J12(W,L))}if((W=zD(this,m))||!_.Q(K,_.H$)){W.isAttached||W===G||(W.hidden=!0);if(!W.data&&(m!=="watch"&&m!=="learning_journey_watch"||!_.F("swatcheroo_page_pool_dont_provide_filler_data"))){var A;if(m=(A=_.E8("FILLER_DATA",{})[m])==
null?void 0:A.response)W.data=m}return W}};var VzD=function(m){this.JSC$33489_clientRoot=m;this.playlistHandlerActionMap={"yt-add-to-playlist-command":KNP,"yt-end-playlist-command":WNW,"yt-recover-playlist-command":AAD,"yt-refresh-playlist-command":OYi,"yt-playlist-remove-videos-action":wX6};_.jN(_.Im.getInstance(),this.playlistHandlerActionMap,this.JSC$33489_clientRoot);Dz6()},Zdz;var la=function(m,G,K){this.apiKey=m;this.endpoint=G;this.confidenceThreshold=K===void 0?.5:K;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=G==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
G==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||G==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new eg6};
_.w=la.prototype;
_.w.start=function(m){if(this.state===0)if(this.isOnline()){m.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=m.supportsHttpHeadersOverwriteParam);m.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=m.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.ck("voice_assistant");_.r9("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=m.languageCode||"en-US";this.supportsCrossDomainXhr=m.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=m.youtubeAssistantRequest||null;this.listeningHandler=m.listeningHandler||this.listeningHandler;this.audioDetectedHandler=m.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=m.stopHandler||this.stopHandler;this.completeHandler=m.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=m.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=m.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
m.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=m.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=m.accessToken;this.additionalHeaders=m.additionalHeaders||{};var G;this.prefetchResponseTimeoutMs=(G=m.prefetchResponseTimeoutMs)!=null?G:this.prefetchResponseTimeoutMs;diW(this);this.startAudio();Pe6(this)}else this.errorHandler("OFFLINE")};
_.w.stop=function(m){var G=m===void 0?{}:m;m=G.logCancel===void 0?!0:G.logCancel;var K=G.logMicClosed===void 0?!0:G.logMicClosed;var W=G.handleError===void 0?!0:G.handleError;G=G.handleStop===void 0?!0:G.handleStop;this.state!==0&&(m&&BV("voz_cx"),Ms(this,{logMicClosed:K,handleStop:G}),W&&this.errorHandler("ABORTED"))};
_.w.getState=function(){return this.state};
_.w.isSupported=function(){return!0};
_.w.stopAudio=function(m){(m===void 0||m)&&BV("voz_mf")};
_.w.startAudio=function(){BV("voz_vp");return _.fJ(null)};
var yR6=function(m,G){m.channelOpen&&(m.state!==2&&(m.state=2,BV("voz_ss"),m.listeningHandler()),G=new Uint8Array(G),G='{ "audioIn": "'+_.Md(G)+'" }',m.channel.send(G))},Ms=function(m,G){var K=G===void 0?{}:G;
G=K.logMicClosed===void 0?!0:K.logMicClosed;K=K.handleStop===void 0?!0:K.handleStop;m.vozEndOfDataTimeout>-1&&(clearTimeout(m.vozEndOfDataTimeout),m.vozEndOfDataTimeout=-1);e7G(m);m.stopAudio(G);m.channel&&(m.channelOpen=!1,m.manuallyClosedChannel=!0,m.channel.close(),m.channel=void 0);m.transcribedSpeechResults=[];m.state=0;K&&m.stopHandler()},diW=function(m){var G={httpHeadersOverwriteParam:m.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},m.additionalHeaders,m.accessToken&&m.isUsingVoz?{Authorization:"Bearer "+m.accessToken}:{"x-goog-api-key":m.apiKey}),supportsCrossDomainXhr:m.supportsCrossDomainXhr};m.channel=new pI(m.endpoint,G);m.channel.open();_.oi(m.channel,"w",function(){var K=m.channel,W=K.send,L=m.isUsingVoz?"PLACEHOLDER":"example";L={config:{dialogStateIn:{languageCode:m.languageCode},deviceConfig:{deviceId:L,deviceModelId:L},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!m.isUsingVoz)L.config.requestType=4;else if(m.isUsingVoz&&m.youtubeAssistantRequest){var A=JSON.stringify(m.youtubeAssistantRequest);L.config.internalIn={youtubeAssistantS3InputJson:A}}W.call(K,L);m.channelOpen=!0;m.manuallyClosedChannel=!1});
_.oi(m.channel,"x",function(){m.manuallyClosedChannel||(m.channelOpen=!1,m.channel=void 0,Ms(m))});
_.oi(m.channel,"z",function(K){if(K.data){e7G(m);for(var W=0;W<K.data.length;W++){var L=m,A=K.data[W],O=A.speechResults;if(O)a:{var c=[];A=[];var u=!1;O=_.g(O);for(var h=O.next();!h.done;h=O.next()){h=h.value;if(h.noSpeech){Ms(L);L.errorHandler("NO_SPEECH");break a}h.transcript!==void 0&&h.stability!==void 0&&(h.stability<L.confidenceThreshold&&(u=!0),u?A.push(h.transcript):c.push(h.transcript))}if(c.length!==0||A.length!==0)c=c.join(" "),A=A.join(" "),L.receivedEndOfUtterance&&!L.isUsingVoz?L.isUsingVoz||
L.completeHandler([c,A]):(u=L,O=c,h=A,BV("voz_sf"),u.transcriptionUpdateHandler(O,h),u.transcribedSpeechResults=[O,h]),L.receivedEndOfUtterance&&(BV("voz_eou"),L.transcriptionCompleteHandler([c,A]),L.isUsingVoz&&(L.prefetchResponseTimeoutMs===0?Ms(L,{logMicClosed:!1,handleStop:!0}):L.prefetchResponseTimeoutMs>0&&fmq(L)))}else L.isUsingVoz&&(A==null?0:A.internalOut)?(A=JSON.parse(A.internalOut.youtubeAssistantS3OutputJson),A.userHasOptedInToVaa||A.vaaConsent?L.vaaConsentUpdateHandler(!!A.userHasOptedInToVaa,
!!A.vaaConsent):(xi6(L),A&&(c=L.transcribedSpeechResults,BV("voz_rqf"),L.completeHandler(c,A)))):A.eventType==="END_OF_UTTERANCE"?L.receivedEndOfUtterance=!0:(BV("voz_err"),L.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.nc(Error("Wl")))}}});
_.oi(m.channel,"y",function(K){Ms(m);switch(K.status){case 1:K="WEBCHANNEL_NETWORK_ERROR";break;case 2:K="WEBCHANNEL_SERVER_ERROR";break;default:K="WEBCHANNEL_UNKNOWN_ERROR"}m.errorHandler(K);m.logError(Error(K))})};
la.prototype.logError=function(m){_.am(m)};
la.prototype.isOnline=function(){return!0};
var fmq=function(m){xi6(m);m.prefetchResponseSetTimeoutId=setTimeout(function(){Ms(m,{logMicClosed:!1,handleStop:!0})},m.prefetchResponseTimeoutMs)},xi6=function(m){m.prefetchResponseSetTimeoutId>-1&&(clearTimeout(m.prefetchResponseSetTimeoutId),m.prefetchResponseSetTimeoutId=-1)},Pe6=function(m){e7G(m);
m.noResponseReceivedTimeout=window.setTimeout(function(){Ms(m);m.errorHandler("NO_SPEECH")},11E3)},e7G=function(m){m.noResponseReceivedTimeout>-1&&(window.clearTimeout(m.noResponseReceivedTimeout),m.noResponseReceivedTimeout=-1)},BV=function(m){_.Yt(m,void 0,"voice_assistant")};var TD=function(){la.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.n(TD,la);TD.prototype.isSupported=function(){return cAW()};
TD.prototype.startAudio=function(){var m=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.KN(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(W){XA6(m,W)};
this.processor.connect(this.audioContext.destination);var G=function(W){m.stream=W;if(!m.audioContext)return _.fJ(null);W=m.audioContext.createMediaStreamSource(W);m.processor&&W.connect(m.processor);return _.fJ(null)},K={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?G(this.stream):(K=navigator.mediaDevices.getUserMedia(K))?K.then(G).catch(function(W){Ms(m);W.name&&W.name==="NotAllowedError"?m.errorHandler("NO_MICROPHONE_PERMISSION"):(m.errorHandler("AUDIO_ERROR"),m.logError(W));return _.KN(null)}):(Ms(this),this.errorHandler("AUDIO_ERROR"),_.nc(Error("Xl")));
return la.prototype.startAudio.call(this)};
TD.prototype.stopAudio=function(m){m=m===void 0?!0:m;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(G){G.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;la.prototype.stopAudio.call(this,m)};
TD.prototype.isOnline=function(){return navigator.onLine};
var XA6=function(m,G){if(m.audioContext)if(window.OfflineAudioContext){var K=m.audioContext.sampleRate,W=G.inputBuffer.getChannelData(0);G=new window.OfflineAudioContext(1,W.length,16E3);for(var L=G.createBuffer(1,W.length,K),A=L.getChannelData(0),O=0,c=0;c<W.length;c++)A[c]=W[c],O+=A[c]*A[c];!m.audioDetected&&Math.sqrt(O/W.length)>.01&&(m.audioDetected=!0,m.audioDetectedHandler());W=G.createBufferSource();W.buffer=L;W.connect(G.destination);W.start(0);G.oncomplete=function(u){u=u.renderedBuffer.getChannelData(0);
for(var h=Math.floor(16384E3/K),J=new Int16Array(h),N=0;N<h;++N)J[N]=Math.max(-1,Math.min(1,u[N]))*32767;yR6(m,J.buffer)};
G.startRendering()}else Sq6(m,G)},Sq6=function(m,G){var K=m.audioContext.sampleRate,W=G.inputBuffer.getChannelData(0),L=Math.floor((K+8E3)/16E3);
K=W.length/L;G=new Float32Array(K);for(var A=0;A<K;++A)G[A]=W[A*L];W=new Int16Array(K);for(L=0;L<K;++L)W[L]=Math.max(-1,Math.min(1,G[L]))*32767;yR6(m,W.buffer)};var R7W={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var UiO=function(){this.JSC$21658_audioEnabled=!0;this.audioFeedbackHolder={}};
UiO.prototype.isPlaying=function(m){return m.currentTime>0&&!m.paused&&!m.ended&&m.readyState>2};
var z7W=function(m){for(var G=_.g(Object.values(R7W)),K=G.next();!K.done;K=G.next())K=K.value,m.audioFeedbackHolder[K]=new Audio,m.audioFeedbackHolder[K].src="/s/search/audio/"+K+".mp3",m.audioFeedbackHolder[K].load()},mx=function(m,G){if(m.JSC$21658_audioEnabled!==!1&&G in m.audioFeedbackHolder){for(var K=_.g(Object.values(m.audioFeedbackHolder)),W=K.next();!W.done;W=K.next())W=W.value,m.isPlaying(W)&&W.pause();
m.audioFeedbackHolder[G].currentTime=0;m.audioFeedbackHolder[G].play().catch(function(){})}};var lmW=function(m,G){var K=this;this.store=m;this.service=G;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){K.setState("offline");K.stop()};
this.audioPlayer=new UiO;var W;(W=this.audioPlayer)==null||z7W(W)};
_.w=lmW.prototype;_.w.getService=function(){return this.service};
_.w.isEnabled=function(){return!!this.service};
_.w.isSupported=function(){var m;return(m=this.service)==null?void 0:m.isSupported()};
_.w.start=function(){var m=this,G,K,W,L,A,O,c,u,h,J,N,D,t;return _.Y(function(a){switch(a.nextAddress){case 1:m.store.dispatch(lzG("",""));if(!navigator.onLine)return m.setState("offline"),a.return();window.addEventListener("offline",m.handleOfflineEvent);m.stream=null;if(!m.permissionsSupported){a.jumpTo(2);break}_.IO(a,3);return a.yield(BPD(m),5);case 5:G=a.yieldResult;if(!G)return(K=m.audioPlayer)==null||mx(K,"failure"),a.return();m.service.stream=m.stream;m.setState("listening");_.IG(a,2);break;
case 3:_.ye(a),m.permissionsSupported=!1;case 2:W={context:_.Or6(_.Sn())},W.youtubeAssistantParams={searchParams:{inlineSearchResponse:m.enableInlineSearchResponse}},L=function(v,I){m.store.dispatch(BvP("transcribing"));m.store.dispatch(lzG(v,I))},A=function(){var v;
(v=m.audioPlayer)==null||mx(v,"open");m.setState("listening")},O=function(){m.setState("transcribing")},c=function(v){m.setErrorState(v)},u=function(v,I){var Z;
(Z=m.audioPlayer)==null||mx(Z,"success");I&&(_.F("kevlar_voice_search_inline_search")&&(m.responseProcessor=_.xS().resolve(_.oGo),m.responseProcessor&&(Z=I.navigationAction,v=I.prefetchedSearchResponse,Z&&v&&(Z=(new _.T$G).JSC$14490_getStoreKey(Z),_.tA(m.responseProcessor,v,Z)))),m.JSC$21676_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",I))},h=function(){window.removeEventListener("offline",m.handleOfflineEvent)},J=_.DgM(!1),N=J.Authorization!=null,D=m.enableFirstPartyAuth||
m.enableFPAForSignedInUsers&&N?J:{"X-Goog-Visitor-Id":J["X-Goog-Visitor-Id"]},t={completeHandler:u,
errorHandler:c,listeningHandler:A,audioDetectedHandler:O,stopHandler:h,transcriptionUpdateHandler:L,youtubeAssistantRequest:W,languageCode:MzD(),additionalHeaders:D,supportsCrossDomainXhr:m.enableFirstPartyAuth||m.enableFPAForSignedInUsers&&N,supportsHttpHeadersOverwriteParam:!m.disableHttpHeadersOverwrite},m.service.start(t),_.ey(a)}})};
_.w.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.w.reset=function(){this.store.dispatch(_.kt({type:"RESET_VOICE_SEARCH_STATE"}))};
_.w.setState=function(m){this.store.dispatch(BvP(m))};
_.w.setErrorState=function(m){switch(m){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var G;(G=this.audioPlayer)==null||mx(G,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)BPD(this);else{var K;(K=this.audioPlayer)==null||mx(K,"failure");this.setState("permission-denied")}break;case "ABORTED":var W;(W=this.audioPlayer)==null||mx(W,"no_input");break;default:var L;(L=this.audioPlayer)==
null||mx(L,"no_input");this.setState("timeout")}};
var BPD=function(m){var G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return W.yield(navigator.permissions.query({name:"microphone"}),2);case 2:G=W.yieldResult;if(G.state==="granted")return W.return(!0);if(G.state==="denied")return m.setState("permission-denied"),W.return(!1);m.setState("permission");K={audio:{sampleSize:16,channelCount:1},video:!1};_.IO(W,3);return W.yield(navigator.mediaDevices.getUserMedia(K),5);case 5:return m.stream=W.yieldResult,W.return(!0);case 3:return _.ye(W),
m.setState("permission-denied"),W.return(!1)}})},MzD=function(){var m=_.E8("INNERTUBE_CONTEXT_HL"),G=_.E8("INNERTUBE_CONTEXT_GL");
return m.indexOf("-")>-1?m:m+"-"+G};var TPW=function(m,G,K){lmW.call(this,G,K);this.JSC$21676_actionRouter=m;this.enableInlineSearchResponse=_.F("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.F("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.F("kevlar_voice_search_enable_fpa_signedin_users")},mYO;
_.n(TPW,lmW);
var ihs=function(){if(!mYO){var m="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.F("kevlar_voice_search_auth_enabled")||_.F("kevlar_voice_search_use_yt_endpoint")?m="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.F("kevlar_voice_search_use_fp_endpoint")&&(m="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");mYO=
new TPW(_.Im.getInstance(),_.$R(),new TD(_.E8("VOZ_API_KEY"),m,.5))}return mYO};var G26=function(m){this.JSC$21680_clientRoot=m;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$21680_clientRoot,new Map([["iron-overlay-opened",this.onIronOverlayOpened.bind(this)],["iron-overlay-closed",this.onIronOverlayClosed.bind(this)],["yt-autonav-pause-focus",this.onYtAutonavPauseFocus.bind(this)],["yt-autonav-pause-blur",this.onYtAutonavPauseBlur.bind(this)],["yt-autonav-pause-guide-opened",
this.onYtAutonavPauseGuideOpened.bind(this)],["yt-autonav-pause-guide-closed",this.onYtAutonavPauseGuideClosed.bind(this)],["yt-autonav-pause-scroll",this.onYtAutonavPauseScroll.bind(this)],["yt-autonav-pause-player",this.onYtAutonavPausePlayer.bind(this)],["yt-autonav-pause-player-ended",this.onYtAutonavPausePlayerEnded.bind(this)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));m=_.g(this.eventListeners);for(var G=m.next();!G.done;G=m.next()){var K=
_.g(G.value);G=K.next().value;K=K.next().value;K=_.g(K);for(var W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;G.addEventListener(W,L)}}_.jN(_.Im.getInstance(),this.autonavPauseActionMap,this.JSC$21680_clientRoot)},KVi,WVz=function(m){return _.F("kevlar_autonav_popup_filtering")?(m=_.$C(m))?m.hasAttribute("prevent-autonav"):!0:!0};
_.w=G26.prototype;_.w.onIronOverlayOpened=function(m){WVz(m)&&(this.autonavPauseReasons.overlayOpen=!0,ie(this))};
_.w.onIronOverlayClosed=function(m){WVz(m)&&(this.autonavPauseReasons.overlayOpen=!1,ie(this))};
_.w.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;ie(this)};
_.w.onYtAutonavPauseBlur=function(){var m=this;_.Fu.addJob(function(){LVE()||(m.autonavPauseReasons.inputBoxFocus=!1,ie(m))},8,0)};
_.w.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;ie(this)};
_.w.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;ie(this)};
_.w.onYtAutonavPauseScroll=function(){var m=_.xS().resolve(_.$g);m.isOnWatch()&&(m=m.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=m.getBoundingClientRect().top<-200,ie(this))};
_.w.onYtAutonavPauseUserEngagement=function(m){var G=this;if(_.F("user_engagement_enable_autoplay_pause_feature")){var K=Number(m.lowEngagementThresholdMs);isNaN(K)||K<=0||m.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.xS().resolve(_.zk),_.Xu()<K?_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):lJ5()?(this.userEngagementCsn=_.gU(),_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
G.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,ie(this)):GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.tF6(Error("Yl`"+JSON.stringify(m)))};
_.w.onYtAutonavPausePlayer=function(m){this.autonavPauseReasons.requestedByPlayer=!!m.detail;ie(this)};
_.w.onYtAutonavVisibilityChanged=function(){var m=this,G,K,W;return _.Y(function(L){if(L.nextAddress==1)return(G=_.qW())?L.yield(G.getPlayerPromise(),2):L.return();K=L.yieldResult;W=K.isMuted()||K.getVolume()===0;m.autonavPauseReasons.backgroundAndMute=LVE()&&W;ie(m);_.ey(L)})};
_.w.onYtAutonavPausePlayerEnded=function(){_.xS().resolve(_.zk);var m=144E5;_.F("user_engagement_enable_autoplay_pause_feature")||_.F("is_part_of_any_user_engagement_experiment")||(m=45E5);this.autonavPauseReasons.longIdle=_.Xu()>m;Aq6(this);ie(this)};
_.w.onYtUserActivity=function(){var m=this;this.autonavPauseReasons.userEngagement&&(_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",m.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,ie(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",m.userEngagementCsn);_.Qb()}),this.autonavPauseReasons.youthereLactExperiment=!1,ie(this));
this.autonavPauseReasons.longIdle&&!_.F("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,ie(this))};
var LVE=function(){var m=window.document.visibilityState;return!(!m||m==="visible")},ie=function(m){for(var G=!1,K=_.g(Object.values(m.autonavPauseReasons)),W=K.next();!W.done;W=K.next())W=W.value,G=G||W;
G?_.qV.getInstance().pause(m.autonavPauseReasons):(m=_.qV.getInstance(),m.autonavState_==3?(m.setState(2,!1,!1),m.autonavPauseReason_=void 0):m.autonavState_==1&&(m.disabledAutonavPauseReason_=void 0))},Aq6=function(m){var G=!1;
if(_.F("enable_autoplay_pause_by_lact")){_.xS().resolve(_.zk);G=_.U8("autoplay_pause_by_lact_sec")*1E3;var K=_.U8("autoplay_pause_by_lact_sampling_fraction");(G=_.Xu()>=G&&Math.random()<K)&&!lJ5()&&(_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),G=!1)}G!==m.autonavPauseReasons.youthereLactExperiment&&(m.autonavPauseReasons.youthereLactExperiment=G)&&(m.userEngagementCsn=_.gU(),_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",m.userEngagementCsn)}));
m.autonavPauseReasons.userEngagement&&_.rC(_.Fu,function(){GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",m.userEngagementCsn)})};
G26.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(GZ("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Qb(),this.autonavPauseReasons.youthereLactExperiment=!1,ie(this));this.autonavPauseReasons.userEngagement&&(GZ("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,ie(this))};
G26.prototype.onYtEngagementPanelVisibleChanged=function(m){m.detail&&m.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=m.detail.visible,ie(this))};
G26.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var wP6=_.DE.persistentPanelVisibleSelector,GY=function(){var m=_.d.apply(this,arguments)||this;m.miniGuideVisible=!1;m.guideOpened=_.F("disable_initial_guide_state_fix")?!1:m.canFitPersistentGuide(m.initialBodyClientWidth);m.guideUserStateOpened=m.getInitialGuideUserStateOpened();m.isFullscreenShorts=!1;m.miniGuideWidthThreshold=_.U8("kevlar_mini_guide_width_threshold",791);m.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
m.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");m.persistentGuideBlockedPagePathRegex=new RegExp(m.persistentGuideBlockedPagesPatterns.join("|"));m.animationTransitionDuration=0;m.lateDataResolver=_.Qo();m.initialGuideDataFetchFailed=!1;m.initialLoad=!0;m.guideRenderers=new Set;m.isMouseOverGuide=!1;m.sessionUserManuallyExpandedGuideState=
!1;m.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return m};
_.n(GY,_.d);_.w=GY.prototype;_.w.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.w.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.w.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.w.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.w.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.w.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.w.ready=function(){_.xS().addProvider({provide:_.hS,useValue:this.hostElement})};
_.w.attached=function(){var m=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.xC(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.xC(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.xC(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.xC(this,this.onYtGuideShow));_.Pv(this,function(){m.animationTransitionDuration=200})};
_.w.detached=function(){document.removeEventListener("yt-navigate-finish",_.xC(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.xC(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.xC(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.xC(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.xC(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.xC(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.xC(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.w.getData=function(){return this.data};
_.w.load=function(){var m=this,G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=m.lateDataResolver.resolve.bind(m),A.return(m.lateDataResolver.promise);if(window.ytInitialGuideData)return G=_.Qo(),G.resolve(window.ytInitialGuideData),A.return(G.promise);W=!1;_.IO(A,2);return A.yield(m.fetchGuideData(),4);case 4:K=A.yieldResult;_.IG(A,3);break;case 2:L=_.ye(A),L.message==="Returned error"&&(W=
!0);case 3:if(K)return A.return(K);m.onYtGuideClose();W||(m.initialGuideDataFetchFailed=!0);return A.return(m.lateDataResolver.promise)}})};
_.w.fetchGuideData=function(){var m=this,G,K,W,L,A,O,c;return _.Y(function(u){if(u.nextAddress==1)return G=_.xS(),m.guidePromise||(K=G.resolve(_.Tv),m.guidePromise=_.to(K,nZE)),u.yield(m.guidePromise,2);if(u.nextAddress!=3)return W=u.yieldResult,L=G.resolve(_.wy),u.yield(L(),3);(A=u.yieldResult)&&((O=W)==null?void 0:(c=O.responseContext)==null?void 0:c.maxAgeSeconds)!==0&&A.put("service:guide:fallback",new _.eB({innertubeResponse:W}));return u.return(W)})};
_.w.initializeGuideDataIfEmpty=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1){if(!m.initialGuideDataFetchFailed||m.data)return W.return();_.IO(W,2);return W.yield(m.fetchGuideData(),4)}if(W.nextAddress!=2)return(G=W.yieldResult)&&m.lateDataResolver.resolve(G),_.IG(W,0);K=_.ye(W);_.nc(K);_.ey(W)})};
_.w.initializeGuideData=function(){var m=this,G,K;return _.Y(function(W){switch(W.nextAddress){case 1:return _.Xw(Spi(),{mainAppWeb:_.at()}),_.IO(W,2),W.yield(m.load(),4);case 4:m.data=W.yieldResult;_.IG(W,3);break;case 2:G=_.ye(W),_.Sq(Spi(),"FAILURE"),_.nc(new _.cw("Guide data not present",{errorMessage:G.message}));case 3:K=m.data&&m.data.items&&m.data.items.length>0?"SUCCESS":"FAILURE",K==="FAILURE"&&_.nc(new _.cw("Guide data.items empty")),_.Sq(Spi(),K),_.ey(W)}})};
_.w.setGuideData=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1)return G.disabled?L.return():G.data?(m.data=G.data,G.guideRenderers.add(m),L.return()):L.yield(G.initializeGuideData(),2);G.graftGuideToPage();K=_.IP("IS_HOMEPAGE_COLD")?"eop":void 0;_.F("disable_element_pool_populator")?G.setGuideDataAfterInit(m):(W=new _.bp(1,K),_.vq(W,G.setGuideDataAfterInit.bind(G,m)));_.ey(L)})};
_.w.setGuideDataAfterInit=function(m){m.data=this.data;m.markDirty();this.guideRenderers.add(m);_.Dh(function(){_.Yt("gle")});
_.Pv(this,function(){_.Yt("gpe")})};
_.w.graftGuideToPage=function(){if(this.data){var m=this.data&&this.data.trackingParams;m&&(m=_.m5(m),_.eM(_.l1(),m))}};
_.w.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.xC(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.w.onDrawerOpenedChanged=function(m,G){!G.value&&this.guideOpened&&(this.guideOpened=!1)};
_.w.onYtGuideToggle=function(m){var G=this.guideOpened;this.guideOpened=!G;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var K=_.M$();_.Tq(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;K.save()}this.updateGuideDrawerElementState();if(this.guideElement){var W;this.guideOpened&&((W=m.detail)==null?0:W.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.xC(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.xC(this,this.onAppDrawerTransitioned))}G||this.initializeGuideDataIfEmpty()};
_.w.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xC(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.dW(this.guideElement)};
_.w.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xC(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(fzs(this.guideOpened))};
_.w.guidePersistentAndVisibleChanged=function(){_.PH(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.w.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.kt({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.w.miniGuideVisibleChanged=function(){_.PH(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.w.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(fzs(this.guideOpened)),this.initialLoad=!1);_.PH(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.w.activeEndpointChanged=function(){_.PH(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.w.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.w.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()};
_.w.cachedClientWidthChanged=function(){this.updateGuideState()};
_.w.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.w.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var m=this.canFitPersistentGuide(this.cachedClientWidth);m?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=m}this.updateGuideDrawerElementState()};
_.w.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.w.getGuideOpened=function(){return this.guideOpened};
_.w.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.w.getActiveEndpoint=function(){return this.activeEndpoint};
_.w.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.w.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&&_.Zw(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.w.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.w.handleGuideMouseLeave=function(){var m=this;!this.sessionUserManuallyExpandedGuideState&&_.F("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.t9(this,"handleGuideMouseLeave",function(){m.isMouseOverGuide||!m.guideOpened||m.miniGuideVisible||(m.guideOpened=!1,m.updateGuideDrawerElementState())},100))};
_.w.computeGuidePersistentAndVisible=function(){var m=this;_.t9(this,"computeGuidePersistentAndVisible",function(){m.guidePersistentAndVisible=m.guideOpened&&m.guidePersistent;m.guideIsVisibleButNotPersistent=!(!m.guideOpened||m.guidePersistent)})};
_.w.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.w.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.w.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.w.startLoadingWatch=function(){this.closeGuide()};
_.w.startLoadingShorts=function(){_.F("web_hide_guide_on_shorts")&&this.closeGuide()};
_.w.onYtNavigateFinish=function(m,G){if(!_.PX||G){this.activeEndpoint=G.endpoint;this.pageType=G.pageType;this.pageUrl=G.response.url;var K,W;m=(W=_.Q((K=G.endpoint)==null?void 0:K.commandMetadata,_.RQ))==null?void 0:W.url;!this.pageUrl&&m&&(this.pageUrl=m);_.F("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.w.getVisibleGuideRenderer=function(){for(var m=_.g(this.guideRenderers),G=m.next();!G.done;G=m.next())if(G=G.value,this.miniGuideVisible&&G.is==="ytd-mini-guide-renderer"||this.guideOpened&&G.is==="ytd-guide-renderer")return G;return null};
_.w.markGuideRendererDirty=function(m){if(m){typeof m.markDirty==="function"&&m.markDirty();m=_.g([].concat(_.Bz(_.VL(m).children)));for(var G=m.next();!G.done;G=m.next())this.markGuideRendererDirty(G.value)}};
_.w.persistentGuideEnabled=function(m,G){if(!G||m==="watch"||m==="settings"||m==="shorts"&&this.isFullscreenShorts||_.F("reels_web_disable_persistent_guide_shorts")&&m==="shorts")return!1;var K=_.f6(G)||"";return _.F("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(W){return K===W}):!this.persistentGuideBlockedPagePathRegex.test(K)};
_.w.canFitPersistentGuide=function(m){var G=_.U8("kevlar_persistent_guide_width_threshold",1312);return G===-1||_.F("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:m>this.calculateGuideThreshold(G)};
_.w.calculateGuideThreshold=function(m){return _.F("enable_ai_companion")?m+(this.persistentPanelVisible?400:0):m};
_.w.canFitMiniGuide=function(m){return this.miniGuideWidthThreshold===-1?!1:m>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.w.onResize=function(){var m=this;_.t9(this,"calculateGuideState",function(){m.onResizeDebounced()})};
_.w.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.w.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.w.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.w.getInitialGuideUserStateOpened=function(){return _.F("web_force_mini_guide_default")?!1:!_.M$().getFlag(109)};
_.e_.Object.defineProperties(GY.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.E8("initialBodyClientWidth")||window.innerWidth}}});
GY.prototype.onResize=GY.prototype.onResize;GY.prototype.observeForMiniGuideVisible=GY.prototype.observeForMiniGuideVisible;GY.prototype.computeGuidePersistentAndVisible=GY.prototype.computeGuidePersistentAndVisible;GY.prototype.persistentPanelVisibleChanged=GY.prototype.persistentPanelVisibleChanged;GY.prototype.cachedClientWidthChanged=GY.prototype.cachedClientWidthChanged;GY.prototype.resetGuide=GY.prototype.resetGuide;GY.prototype.activeEndpointChanged=GY.prototype.activeEndpointChanged;
GY.prototype.guideOpenedChanged=GY.prototype.guideOpenedChanged;GY.prototype.miniGuideVisibleChanged=GY.prototype.miniGuideVisibleChanged;GY.prototype.guideIsVisibleButNotPersistentChanged=GY.prototype.guideIsVisibleButNotPersistentChanged;GY.prototype.guidePersistentAndVisibleChanged=GY.prototype.guidePersistentAndVisibleChanged;GY.prototype.onGuideElementChanged=GY.prototype.onGuideElementChanged;GY.prototype.onGuidePersistentChanged=GY.prototype.onGuidePersistentChanged;
GY.prototype.onRenderGuideChanged=GY.prototype.onRenderGuideChanged;GY.prototype.onActiveEndpointChanged=GY.prototype.onActiveEndpointChanged;GY.prototype.onMiniGuideVisibleChanged=GY.prototype.onMiniGuideVisibleChanged;GY.prototype.onGuideIsVisibleButNotPersistentChanged=GY.prototype.onGuideIsVisibleButNotPersistentChanged;GY.prototype.onGuidePersistendAndVisibleChanged=GY.prototype.onGuidePersistendAndVisibleChanged;
_.x([_.q(_.mH),_.S("design:type",Object)],GY.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],GY.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],GY.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],GY.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],GY.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"disabled",void 0);_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"guidePersistentAndVisible",void 0);_.x([_.Sb("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onGuidePersistendAndVisibleChanged",null);_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.Sb("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.x([_.V(),_.S("design:type",Object)],GY.prototype,"miniGuideVisible",void 0);_.x([_.Sb("miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onMiniGuideVisibleChanged",null);_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"forceMiniGuideClose",void 0);
_.x([_.V(),_.S("design:type",Object)],GY.prototype,"activeEndpoint",void 0);_.x([_.Sb("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onActiveEndpointChanged",null);_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"renderGuide",void 0);_.x([_.Sb("renderGuide"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onRenderGuideChanged",null);
_.x([_.V({selector:wP6}),_.S("design:type",Boolean)],GY.prototype,"persistentPanelVisible",void 0);_.x([_.V(),_.S("design:type",Object)],GY.prototype,"guideOpened",void 0);_.x([_.V(),_.S("design:type",Boolean)],GY.prototype,"guidePersistent",void 0);_.x([_.Sb("guidePersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onGuidePersistentChanged",null);_.x([_.V(),_.S("design:type",Object)],GY.prototype,"guideUserStateOpened",void 0);
_.x([_.V(),_.S("design:type",String)],GY.prototype,"pageUrl",void 0);_.x([_.V(),_.S("design:type",String)],GY.prototype,"pageType",void 0);_.x([_.V(),_.S("design:type",Number)],GY.prototype,"cachedClientWidth",void 0);_.x([_.V(),_.S("design:type",Object)],GY.prototype,"guideElement",void 0);_.x([_.V({selector:_.kA}),_.S("design:type",Object)],GY.prototype,"isFullscreenShorts",void 0);
_.x([_.Sb("guideElement"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onGuideElementChanged",null);_.x([_.Sb("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"guidePersistentAndVisibleChanged",null);
_.x([_.Mg("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"guideIsVisibleButNotPersistentChanged",null);_.x([_.Sb("miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"miniGuideVisibleChanged",null);_.x([_.Mg("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"guideOpenedChanged",null);
_.x([_.Sb("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"activeEndpointChanged",null);_.x([_.Mg("pageUrl"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"resetGuide",null);_.x([_.Mg("cachedClientWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"cachedClientWidthChanged",null);
_.x([_.Mg("persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"persistentPanelVisibleChanged",null);_.x([_.Sb("guideOpened","guidePersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"computeGuidePersistentAndVisible",null);
_.x([_.Mg("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"observeForMiniGuideVisible",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],GY.prototype,"onResize",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-guide-manager"})],GY);var gBz=_.y(GY,"yt-guide-manager",void 0,{mode:2});var u0P=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"],uT=new Map;uT.set(32,59972);uT.set(27,50765);uT.set(70,60102);uT.set(76,60221);uT.set(77,60222);uT.set(74,60223);uT.set(84,60224);uT.set(38,61941);uT.set(40,61942);uT.set(73,62521);uT.set(67,62522);uT.set(80,63390);uT.set(78,63397);uT.set(75,59972);uT.set(188,63385);uT.set(190,63384);uT.set(36,63387);uT.set(35,63386);uT.set(37,63388);
uT.set(39,63389);uT.set(79,63423);uT.set(87,63424);uT.set(107,63426);uT.set(109,63425);uT.set(65,63428);uT.set(83,63430);uT.set(68,63429);uT.set(221,63431);uT.set(219,63432);uT.set(97,63439);uT.set(98,63440);uT.set(99,63441);uT.set(100,63442);uT.set(101,63443);uT.set(102,63444);uT.set(103,63445);uT.set(104,63446);uT.set(105,63447);var r7=new Map;r7.set(80,63390);r7.set(78,63397);r7.set(188,63400);r7.set(190,63401);r7.set(191,60765);r7.set(13,247917);var rAG=new Map,YaW=new Map;var Kd=function(){var m=_.d.apply(this,arguments)||this;m.JSC$21689_keyboardInUse=!1;m.boundHandleCapturedKeydownEvent=function(G){m.handleCapturedKeydownEvent(G)};
return m};
_.n(Kd,_.d);_.w=Kd.prototype;_.w.attached=function(){this.listenToDocument(document)};
_.w.listenToDocument=function(m){m.addEventListener("keydown",_.xC(this,this.onKeyDownEvent));m.addEventListener("keyup",_.xC(this,this.onKeyUpEvent));m.addEventListener("mousedown",_.xC(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||m.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);m.addEventListener("yt-page-data-updated",_.xC(this,this.onPageUpdate))};
_.w.detached=function(){this.unlistenFromDocument(document)};
_.w.unlistenFromDocument=function(m){m.removeEventListener("keydown",_.xC(this,this.onKeyDownEvent));m.removeEventListener("keyup",_.xC(this,this.onKeyUpEvent));m.removeEventListener("mousedown",_.xC(this,this.onMouseDownEvent));_.F("desktop_keyboard_capture_keydown_killswitch")||m.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);m.removeEventListener("yt-page-data-updated",_.xC(this,this.onPageUpdate))};
_.w.ready=function(){_.xS().addProvider({provide:_.sH,useValue:this})};
_.w.isKeyBoardInUse=function(){return this.JSC$21689_keyboardInUse};
_.w.handleCapturedKeydownEvent=function(m){if(m.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(m)};
_.w.onMouseDownEvent=function(){this.JSC$21689_keyboardInUse=!1};
_.w.onPageUpdate=function(){if(_.F("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.F("web_shorts_keyboard_shortcut_usage_log")){rAG.clear();for(var m=_.g(uT),G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;K=_.dq(K);rAG.set(G,K);_.tW(_.gU(),_.wU(),K)}YaW.clear();m=_.g(r7);for(G=m.next();!G.done;G=m.next())K=_.g(G.value),G=K.next().value,K=K.next().value,K=_.dq(K),YaW.set(G,K),_.tW(_.gU(),_.wU(),K);_.Fv(_.gU(),_.wU(),[].concat(_.Bz(YaW.values()),_.Bz(rAG.values())));
_.a7(_.gU(),[].concat(_.Bz(YaW.values()),_.Bz(rAG.values())))}};
_.w.onMiniplayerActiveChange=function(){var m;(m=_.xS().resolve(_.pY).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(m.document):this.unlistenFromDocument(m.document))};
_.w.ignoreKeyEvent=function(m){if(m.ctrlKey||m.altKey)if(_.F("kevlar_macro_markers_keyboard_shortcut")){if(m.keyCode!==37&&m.keyCode!==39)return!0}else return!0;var G=_.ve(m)||[];return hFi(G)?(_.F("web_button_or_anchor_list_item")&&pXz(G,m)&&(this.JSC$21689_keyboardInUse=!0),!0):m.defaultPrevented?(h1(m.keyCode,m.shiftKey,this.isShortsPage),!0):m.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(m):!1};
_.w.isSpacebarClick=function(m){var G=m||window.event;var K;G.composedPath&&typeof G.composedPath==="function"?K=G.composedPath():K=G.path;K&&K.length?G=K[0]:(G=G||window.event,G=G.target||G.srcElement,G.nodeType==3&&(G=G.parentNode));return G&&m.keyCode===32&&(m=G.tagName==="BUTTON"||G.tagName==="A"||G.tagName==="INPUT",G=(G=G.getAttribute("role"))&&(G==="option"||G==="button"||G.indexOf("menuitem")===0),m||G)?!0:!1};
_.w.onKeyDownEvent=function(m){if(!this.ignoreKeyEvent(m)&&(m.keyCode===191&&(m.shiftKey||m.metaKey?m.repeat!=null&&m.repeat||(this.openHotkeyDialog(),h1(m.keyCode,m.shiftKey,this.isShortsPage)):(this.focusSearchBox(),m.preventDefault())),!m.metaKey)){var G=_.xS().resolve(_.pY);switch(m.keyCode){case 9:this.JSC$21689_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(m);break;case 84:G.pipController.getWindow()&&window.focus();this.toggleTheaterMode(m.keyCode,m.shiftKey);break;case 73:G.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(m.keyCode,m.shiftKey);break;case 70:if(this.isShortsPage){fR5();break}this.isMiniplayerActive()?G.pipController.getWindow()&&(G.close(!0),window.focus()):this.passEventToPlayer(m);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(m.keyCode,m.shiftKey):this.closeMiniplayer(m.keyCode,m.shiftKey)||this.passEventToPlayer(m);break;case 13:m.shiftKey&&_.xS().resolve(_.$h).activate(m);break;default:this.passEventToPlayer(m)}}};
_.w.onKeyUpEvent=function(m){if(!this.ignoreKeyEvent(m))if(_.F("web_speedmaster_spacebar_control")&&m.keyCode===32)this.handlePlayerSpaceKey(m,!0);else{var G=this.getPlayerManager();G&&(G=G.getPlayer())&&G.handleGlobalKeyUp(m.keyCode,m.shiftKey,m.ctrlKey,m.altKey,m.metaKey,m.key,m.code)}};
_.w.getPlayerManager=function(){var m=_.qW(),G=_.xS().resolve(_.fn(_.$g));return m&&G&&G.isOnWatch()?m:null};
_.w.passEventToPlayer=function(m,G){var K=this,W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){if(!_.F("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&K.isMiniplayerActive())W=_.xS().resolve(_.pY).getPlayerElement();else if(K.inlinePreviewIsActive){if(L=_.PH(K.hostElement,"yt-get-inline-preview-player-action"),(A=L)==null?0:A[0])W=L[0]}else W=_.qW();return W?c.yield(W.getPlayerPromise(),3):c.jumpTo(0)}O=c.yieldResult;G?O.handleGlobalKeyUp(m.keyCode,m.shiftKey,m.ctrlKey,m.altKey,m.metaKey,
m.key,m.code):O.handleGlobalKeyDown(m.keyCode,m.shiftKey,m.ctrlKey,m.altKey,m.metaKey,m.key,m.code,m.repeat);m.keyCode!==38&&m.keyCode!==40&&h1(m.keyCode,m.shiftKey,K.isShortsPage);_.ey(c)})};
_.w.focusSearchBox=function(){_.Zw(this.hostElement,"yt-focus-searchbox")};
_.w.openHotkeyDialog=function(){_.Zw(this.hostElement,"yt-open-hotkey-dialog")};
_.w.isMiniplayerActive=function(){return _.xS().resolve(_.pY).isMiniplayerActive()};
_.w.closeMiniplayer=function(m,G){return this.isMiniplayerActive()?(_.xS().resolve(_.pY).close(),h1(m,G,this.isShortsPage),!0):!1};
_.w.toggleTheaterMode=function(m,G){var K=_.wq(_.$R().getState()),W=this.getPlayerManager(),L=_.F("disable_theater_mode_keyboard")||_.IP("START_IN_FULL_WINDOW_MODE");W&&!L&&(K=!K,_.$u()&&_.F("external_fullscreen")&&(K=!0),_.dU(this.hostElement,"yt-toggle-theater-mode",[K]),h1(m,G,this.isShortsPage))};
_.w.toggleMiniplayer=function(m,G){var K=this.getPlayerManager();if(this.isMiniplayerActive()){var W;((W=_.xS().resolve(_.fn(_.$g)))==null?0:W.isOnWatch())?_.xS().resolve(_.pY).close(!0):_.Vq(_.xS().resolve(_.pY));h1(m,G,this.isShortsPage)}else K&&(_.dU(this.hostElement,"yt-activate-miniplayer-from-watch-action"),h1(m,G,this.isShortsPage))};
_.w.handlePlayerSpaceKey=function(m,G){var K=!!_.qW()||this.isMiniplayerActive();K=_.F("disable_space_scroll_fix")||K;_.F("global_spacebar_pause")&&!this.isKeyBoardInUse()&&K&&(m.preventDefault(),this.passEventToPlayer(m,G))};
_.w.isPresentingTheaterMode=function(){return _.F("web_watch_enable_tm_esc_key")?_.wq(_.$R().getState())&&!_.$u():!1};
Kd.prototype.onMiniplayerActiveChange=Kd.prototype.onMiniplayerActiveChange;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Kd.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Kd.prototype,"ytdReduxBehavior",void 0);_.x([_.V({selector:_.FsP}),_.S("design:type",Boolean)],Kd.prototype,"inlinePreviewIsActive",void 0);_.x([_.V({selector:_.BcF}),_.S("design:type",Boolean)],Kd.prototype,"isShortsPage",void 0);
_.x([_.V({selector:_.cU}),_.S("design:type",Boolean)],Kd.prototype,"miniplayerIsActive",void 0);_.x([_.Sb("miniplayerIsActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kd.prototype,"onMiniplayerActiveChange",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Kd);_.y(Kd,"yt-hotkey-manager",void 0,{mode:2});var WA=function(){var m=_.d.apply(this,arguments)||this;m.loopStateEntityKey_=null;m.playlistLoopStateEntity_=null;m.isShuffleNextPlaylist=!1;m.PLAYER_EVENTS_=new Map;m.playerListenersSetup_=!1;m.videoSkipJob_=0;m.canAutoAdvance_=!1;m.playerManager_=null;m.TEST_ONLY={};return m};
_.n(WA,_.d);_.w=WA.prototype;_.w.ready=function(){_.xS().addProvider({provide:_.NQ,useValue:this.hostElement})};
_.w.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_)};
_.w.attached=function(){document.addEventListener("yt-navigate-start",_.xC(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.xC(this,this.onYtNavigateFinish_))};
_.w.detached=function(){document.removeEventListener("yt-navigate-start",_.xC(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.xC(this,this.onYtNavigateFinish_))};
_.w.updatePlaylistEventListeners=function(m,G){G&&!this.playerListenersSetup_?(this.playerManager_=m,this.registerPlaylistEventListeners_(m)):!G&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(m))};
_.w.setPlayer=function(m){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=m};
_.w.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.w.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.w.registerPlaylistEventListeners_=function(m){var G=this;m.getPlayerPromise().then(function(K){G.playerListenersSetup_||(G.ytPlayerListenerBehavior.listenToPlayerEvents(K,G.PLAYER_EVENTS_),G.playerListenersSetup_=!0)})};
_.w.removePlaylistEventListeners_=function(m){var G=this;m.getPlayerPromise().then(function(K){G.playerListenersSetup_&&(G.ytPlayerListenerBehavior.unlistenFromPlayerEvents(K,G.PLAYER_EVENTS_),G.playerListenersSetup_=!1)})};
_.w.setPlaylistComponent=function(m){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.xC(this,this.onPlaylistYtNavigate_)),m&&(m.data&&this.playlistComponent.data&&m.data.playlistId==this.playlistComponent.data.playlistId?(m.loopOn=this.playlistComponent.loopOn,m.shuffleOn=this.playlistComponent.shuffleOn):(m.loopOn=!1,m.shuffleOn=!1),this.isShuffleNextPlaylist&&(m.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=m;this.playlistComponent.addEventListener("yt-navigate",
_.xC(this,this.onPlaylistYtNavigate_))};
_.w.setAutoplayRenderer=function(m){this.autoplayData=m};
_.w.setPlaylistData=function(m){this.currentPlaylistData_=m;_.Zw(this.hostElement,"yt-playlist-data-updated");_.Y2.isEmpty(m)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(m)};
_.w.setPlayerPlaybackControlData=function(m){this.playerManager_&&this.playerManager_.updatePlayerComponents(m.playlistPanelRenderer)};
_.w.getPlaylistData=function(){return this.currentPlaylistData_};
_.w.getTempData_=function(m,G){if(this.playlistComponent==null)return null;m={};this.playlistComponent.shuffleOn&&(m.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(m.loop_on=this.playlistComponent.loopOn);G&&(m.autonav="1",_.xS().resolve(_.zk),G=_.Xu(),G>0&&(m.lact=G),this.playerManager_&&(G=this.playerManager_.getPlayer())&&G.shouldSendVisibilityState()&&(G=G.getVisibilityState(),G!=0&&(m.vis=G)));_.F("enable_unknown_lact_fix_on_html5")&&(_.xS().resolve(_.zk),m.lact=
_.Xu());return m};
_.w.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.w.setLoopStateEntityKey_=function(m){var G;this.loopStateEntityKey_=((G=this.getPlaylistLoopData_(m))==null?void 0:G.playlistLoopStateEntityKey)||null};
_.w.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.w.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.w.skipVideo=function(){var m=this,G=_.F("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||G)G=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.mn(_.Fu,function(){m.onPlaylistNext();m.videoSkipJob_=0},G)};
_.w.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Fu.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.w.isInBackground_=function(){var m=window.document.visibilityState;return!(!m||m=="visible")};
_.w.onPlaylistIndex_=function(m){this.playlistComponent&&(m=this.playlistComponent.data.contents[m].playlistPanelVideoRenderer.navigationEndpoint,_.Zw(this.hostElement,"yt-navigate",{endpoint:m,tempData:this.getTempData_(m)}))};
_.w.onPlayerStateChange_=function(m){if(m=m==0&&this.playlistComponent&&this.canAutoAdvance_)m=_.qV.getInstance(),m=!(m.autonavState_===3?m.autonavPauseReason_&&m.autonavPauseReason_.inputBoxFocus===!0:m.autonavState_===1&&m.disabledAutonavPauseReason_&&m.disabledAutonavPauseReason_.inputBoxFocus===!0);m&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.w.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.w.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.w.navigateToAutoplayWatchEndpoint_=function(m,G,K){var W=this.playlistComponent.data.currentIndex,L=this.getNumPlayableVideos_();m=="NORMAL"&&G=="autoplayVideo"&&W+1>=L&&K||!(m=this.getVideoEndpoint_(m,G))||(K=this.getTempData_(m,K),_.Zw(this.hostElement,"yt-navigate",{endpoint:m,tempData:K}))};
_.w.getNumPlayableVideos_=function(){for(var m=0,G=_.g(this.playlistComponent.data.contents||[]),K=G.next();!K.done;K=G.next())K.value.playlistPanelVideoRenderer&&(m+=1);return m};
_.w.getVideoEndpoint_=function(m,G){if(this.autoplayData&&this.autoplayData.sets)for(var K=0,W=this.autoplayData.sets.length;K<W;K++){var L=this.autoplayData.sets[K];if(L.mode==m){if(L[G])return L[G];break}}else m=new _.cw("AutoplayData is undefined in playlist manager","Mode: "+m+" endpoint: "+G),_.nc(m)};
_.w.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.w.onPlaylistYtNavigate_=function(m){if(m.detail.endpoint){m.stopPropagation();var G=m.detail;G.tempData=this.getTempData_(m.detail.endpoint);_.Zw(this.hostElement,"yt-navigate",G)}};
_.w.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.w.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.w.playlistLoopStateEntityChanged_=function(m){var G=this,K,W,L;return _.Y(function(A){if(A.nextAddress==1){if(!m)return A.return();K=m.state==="PLAYLIST_LOOP_STATE_ONE";return G.playerManager_?A.yield(G.playerManager_.getPlayerPromise(),3):A.jumpTo(2)}A.nextAddress!=2&&(W=A.yieldResult,W.setLoopVideo(K));L=m.state==="PLAYLIST_LOOP_STATE_ALL";G.playlistComponent&&(G.playlistComponent.loopOn=L);_.ey(A)})};
_.w.getPlaylistLoopData_=function(m){var G,K;if(m=m==null?void 0:(G=m.playlistButtons)==null?void 0:(K=G.menuRenderer)==null?void 0:K.topLevelButtons)for(G=_.g(m),K=G.next();!K.done;K=G.next())if(K=K.value,K.playlistLoopButtonRenderer)return K.playlistLoopButtonRenderer};
_.w.getLoopStateCommand_=function(m){var G=this.getPlaylistData(),K;G=((K=this.getPlaylistLoopData_(G))==null?void 0:K.states)||[];var W;m=(W=_.Q(G[m?1:2],_.erP))==null?void 0:W.button;var L;return(L=_.Q(m,_.uu))==null?void 0:L.command};
_.w.onPlayerLoopChange_=function(m){this.playlistLoopStateEntity_&&(m?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(m=this.getLoopStateCommand_(m))&&this.ytComponentBehavior.resolveCommand(m)};
_.w.onSleepTimerSettingsChanged_=function(m){this.canAutoAdvance_=m!=="End of video"};
WA.prototype.onPlaylistLoopStateEntityChanged=WA.prototype.onPlaylistLoopStateEntityChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],WA.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],WA.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],WA.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WA.prototype,"loopStateEntityKey_",void 0);
_.x([_.V({selectorArgs:["loopStateEntityKey_"],selector:_.im.playlistLoopStateEntitySelector}),_.S("design:type",Object)],WA.prototype,"playlistLoopStateEntity_",void 0);_.x([_.Sb("playlistLoopStateEntity_"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WA.prototype,"onPlaylistLoopStateEntityChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"yt-playlist-manager"})],WA);_.y(WA,"yt-playlist-manager",void 0,{mode:2});var Ohz,cqq=function(){if(Ohz!==void 0)return Ohz;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ohz=m};var Ld=function(){var m=_.d.apply(this,arguments)||this;m.lastCallback=null;m.getAccountLinkPromises={};m.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);m.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return m};
_.n(Ld,_.d);_.w=Ld.prototype;_.w.getLocation=function(){return window.location.href};
_.w.getCompletionUrl=function(){return _.Sh(this.getLocation())};
_.w.containsRedirectState=function(m){return(m=_.yu(_.RLs(m)))?(new URLSearchParams(m)).get("redirect_state")!==null:!1};
_.w.createGalConfig=function(m,G){var K=new skO;m=K=G?this.getPopupOrRedirectSetting(K,_.E8("LINK_API_KEY"),_.E8("LINK_API_KEY_REDIRECT"),m):q4z(K,_.E8("LINK_API_KEY"));m.authUser=_.E8("SESSION_INDEX")||0;m.supportedFlows=new Set([4]);return m.build()};
_.w.getPopupOrRedirectSetting=function(m,G,K,W){this.isGalInteractionPopupMode(W)?(m.interactionMode=0,m=q4z(m,G)):(m.interactionMode=1,G=this.getCompletionUrl(),m.completionUrl=G,m=q4z(m,K));return m};
_.w.isGalInteractionPopupMode=function(m){if(this.redirectModeProviderAllowlist.has(m))switch(m){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.w.getStatusEntityKeyForProviderId=function(m){return _.Pk(m+":all","accountLinkStatusEntity")};
_.w.findNestedPropValue=function(m,G){var K=!1,W=null;JSON.stringify(m,function(L,A){K||L!==G||(K=!0,W=A);return K?null:A});
return W};
_.w.findAccountLinkButtonViewModel=function(m,G){var K=null,W=!1;JSON.stringify(m,function(L,A){W||A.accountLinkStatusEntityKey!==G||A.accountLinkStatusSecondaryEntityKey||(W=!0,K=A);return W?null:A});
return K};
_.w.executeLinkingSuccessOrFailureCommands=function(m,G,K){var W=null,L;(G==null?0:(L=G.url)==null?0:L.includes("account_sharing"))?W=G==null?void 0:G.response:W=G==null?void 0:G.response;(G=this.findAccountLinkButtonViewModel(W,m))?(m=K?this.findNestedPropValue(G,"onSuccessCommand"):this.findNestedPropValue(G,"onFailureCommand"))?_.XA([m],this.hostElement):_.V3(Error("Zl")):_.V3(Error("$l`"+m))};
_.w.handleInitializeRequest=function(m,G){var K=this,W=R9P(this.createGalConfig(m,!0));this.containsRedirectState(this.getLocation())?e9P(m,W.config,W.galService).then(function(L){var A=K.getStatusEntityKeyForProviderId(m);if(L.statusCode===1)G&&K.executeLinkingSuccessOrFailureCommands(A,G,!0),L=K.getLocation().indexOf("#"),L!==-1&&window.history.pushState(null,"",K.getLocation().substring(0,L));else return G&&K.executeLinkingSuccessOrFailureCommands(A,G,!1),Promise.reject(Error(L.statusMessage))}).catch(function(L){_.nc(L);
_.Fx("gamingAccountLinkStatusChanged",{serviceId:m,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(L)}):this.getAccountLinkPromises[m]=W.startLinkingSession({serviceId:m})};
_.w.handleAccountLinkCommand=function(m){_.Q(m,b36)&&this.handleLinkRequest(_.Q(m,b36))};
_.w.handleLinkRequest=function(m){var G=this,K=m.thirdPartyId;if(K)if(this.isGalInteractionPopupMode(K)){var W=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",m.onFailureCommand)},L=function(){G.closeAndFire("ytd-gaming-account-link-setting-renderer",m.onSuccessCommand)};
this.lastCallback=L;this.getAccountLinkPromises[K].then(function(A){c6u(A).then(function(O){O.statusCode===1?L():W()})}).catch(function(){W()})}else this.getAccountLinkPromises[K].then(function(A){c6u(A).then(function(O){if(O.statusCode!==1)return Promise.reject(Error(O.statusMessage))})}).catch(function(A){_.nc(A);
_.Fx("gamingAccountLinkStatusChanged",{serviceId:K,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(A)})};
_.w.closeAndFire=function(m,G){_.dU(this.hostElement,"yt-close-popup-action",[m]);G&&_.XA([G],this.hostElement)};
_.w.handleAccountUnlinkCommand=function(m){_.Q(m,vF6)&&this.handleUnlinkRequest(_.Q(m,vF6))};
_.w.handleUnlinkRequest=function(m){var G=this,K=m.thirdPartyId;if(K){var W=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",m.onFailureCommand)},L=function(){G.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",m.onSuccessCommand)};
this.lastCallback=L;var A=R9P(this.createGalConfig(K,!1));this.unlinkUserGal(A,K).then(function(O){O.statusCode===1?L():W()}).catch(function(){W()})}};
_.w.unlinkUserGal=function(m,G){return m.deleteLink(G)};
_.w.handleLogAccountLinkingEventCommand=function(m){_.F("enable_gel_log_commands")&&_.Q(m,sdD)&&(m=_.Q(m,sdD).event)&&_.Fx("gamingAccountLinkStatusChanged",m)};
_.e_.Object.defineProperties(Ld,{template:{configurable:!0,enumerable:!0,get:function(){return cqq()}}});
_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],Ld.prototype,"ytOpenPopupBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ld.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Ld);_.y(Ld,"ytd-third-party-manager",function(){return cqq()},{mode:2});var YCO=2/3,rqu=_.dq(130749),ut5=function(m,G){var K=this;this.element=m;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){K.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:YCO,moveAction:function(W){K.moveAction(W)},
triggerAction:function(){K.element.isReloading=!0;_.Jo(_.l1(),{visualElement:rqu});_.xe.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:K.element}})}}}};
_.eM(_.l1(),rqu,this.layer);this.gesture=new R6(m,G,this.refreshConfig,"pan-down");this.attach()};
_.w=ut5.prototype;_.w.attach=function(){this.gesture.attach()};
_.w.detach=function(){this.gesture.detach()};
_.w.reset=function(){this.element.close()};
_.w.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.w.moveAction=function(m){this.element.rotation=m*360};var hWG=_.dq(130750),Jqu=function(m,G,K,W,L){var A=this;this.element=m;this.parent=K;this.channelHeader=W;this.ytdReduxDispatch=L;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){A.tabsStartAtInPx=A.channelHeader.clientHeight-48;var O;(O=A.selectedTab)!=null&&O.title&&(O=_.xS().resolve(_.fn(_.$g)))&&(O=O.getCurrentPage(),A.lastVisitedTabScrollPosition=O.getScrollTop(),A.previousTab&&
((A.lastVisitedTabScrollPosition===void 0?0:A.lastVisitedTabScrollPosition<A.channelHeader.clientHeight-48)?A.scrollPositionForTabs.has(A.selectedTab.title)&&A.scrollPositionForTabs.delete(A.selectedTab.title):A.scrollPositionForTabs.set(A.selectedTab.title,O.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:pPi(),triggerAction:function(){A.navigate(A.previousTab)},
moveAction:function(O,c){A.moveAction(O,c)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-pPi(),triggerAction:function(){A.navigate(A.nextTab)},
moveAction:function(O,c){A.moveAction(O,c)}}}};
_.eM(_.l1(),hWG,this.layer);this.gesture=new R6(m,G,this.tabConfig);this.attach()};
_.w=Jqu.prototype;_.w.attach=function(){this.gesture.attach()};
_.w.detach=function(){this.gesture.detach()};
_.w.tabsChanged=function(m){if(m){var G=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;m=_.g(m);for(var K=m.next();!K.done;K=m.next()){K=K.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=K);var W=void 0;if((W=K)==null?0:W.selected)this.previousTab=G,this.selectedTab=K;G=K}G=this.gesture;m=this.getConfig();G.config=m;this.scrollPositionNeedsUpdate=!0}};
_.w.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.w.moveAction=function(m,G){if(!this.tabsElement){var K;this.tabsElement=(K=this.parent.header)==null?void 0:K.tabsElement;G==="right"&&this.previousTab?(K=this.previousTab.endpoint,_.PrD(_.xS().resolve(_.WX),K,{},"")):G==="left"&&this.nextTab&&(K=this.nextTab.endpoint,_.PrD(_.xS().resolve(_.WX),K,{},""));if(!this.tabsElement)return}K=this.tabsElement._pos;G==="right"&&(m*=-1);this.tabsElement._positionBar(K.width,K.left*1+K.width*m)};
var pPi=function(){var m,G;return(G=(m=_.xS().resolve(_.$g).getCurrentPage())==null?void 0:m.clientWidth)!=null?G:0};
Jqu.prototype.navigate=function(m){this.element.data=void 0;if(m=m==null?void 0:m.endpoint)this.ytdReduxDispatch(X0P(!0)),_.Jo(_.l1(),{visualElement:hWG}),_.xe.instance.resolveCommand({navigateAction:{endpoint:m}},{form:{element:this.element}})};var N4E;var DYz;var AR=function(){var m=_.d.apply(this,arguments)||this;m.rotation=0;m.isReloading=!1;return m};
_.n(AR,_.d);AR.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
AR.prototype.reset=function(){this.hostElement.style.opacity=""};
AR.prototype.close=function(){var m=this;return _.Y(function(G){if(G.nextAddress==1)return G.yield(m.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);m.hostElement.style.opacity="0";_.ey(G)})};
AR.prototype.rotationChanged=AR.prototype.rotationChanged;_.x([_.V(),_.S("design:type",Object)],AR.prototype,"rotation",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AR.prototype,"isReloading",void 0);_.x([_.UM("#icon"),_.S("design:type",HTMLElement)],AR.prototype,"icon",void 0);_.x([_.Sb("rotation"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AR.prototype,"rotationChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-refresh"})],AR);
_.y(AR,"ytd-refresh",function(){if(DYz!==void 0)return DYz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return DYz=m},{mode:1});var tQD;var wP=function(){var m=_.d.apply(this,arguments)||this;m.useRaf=!_.F("web_use_raf_app_header_layout_killswitch");return m};
_.n(wP,_.d);wP.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"}}}};
wP.prototype.dataChanged=function(){if(this.data){var m=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var G=_.qy(this.data.banner.thumbnails,this.hostElement.clientWidth);G&&(G.indexOf("//")===0&&(G="https:"+G),this.hasBannerArt=!0,_.eb(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+G+")"}))}this.hasBannerArt!==m&&_.VL(this.hostElement).querySelector("#header").fire("iron-resize")}};
wP.prototype.updateSelectedFromBinding=function(m){this.selected=m.detail.value};
wP.prototype.dataChanged=wP.prototype.dataChanged;_.x([_.q(Od6),_.S("design:type",Object)],wP.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.un),_.S("design:type",Object)],wP.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],wP.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wP.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wP.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],wP.prototype,"selected",void 0);_.x([_.V(),_.S("design:type",Boolean)],wP.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],wP.prototype,"hasBannerArt",void 0);_.x([_.V(),_.S("design:type",Object)],wP.prototype,"useRaf",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wP.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],wP);
_.y(wP,"ytd-interactive-tabbed-header-renderer",function(){if(tQD!==void 0)return tQD;var m=document.createElement("template");_.b(m,'\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 use-raf="[[useRaf]]" 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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return tQD=m},{mode:1});var FVW;var gP=function(){return _.d.apply(this,arguments)||this};
_.n(gP,_.d);gP.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
gP.prototype.computeActionsAlignment=function(m){return(m==null?void 0:m.actionsAlignment)||""};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gP.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.S("design:type",String)],gP.prototype,"actionsAlignment",void 0);
_.x([_.Ye({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],gP);
_.y(gP,"ytd-page-footer-renderer",function(){if(FVW!==void 0)return FVW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return FVW=m},{mode:1});var QrE;var aHW;var Oq=function(){var m=_.d.apply(this,arguments)||this;m.isEditing=!1;m.useSlot=!1;m.isMultiline=!1;return m};
_.n(Oq,_.d);_.w=Oq.prototype;_.w.onKeydown=function(m){if(m.keyCode===13&&!this.isMultiline)this.onSave();else if(m.keyCode===27)this.onCancel()};
_.w.computeComponentStyle=function(m){return(m==null?0:m.style)?m.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.w.computeisMultiline=function(m){if(this.multilineOverride!==void 0)return this.multilineOverride;var G,K;return!!(m==null?0:(G=m.formField)==null?0:(K=G.textInputFormFieldRenderer)==null?0:K.isMultiline)};
_.w.computeTextDisplayed=function(m,G){if(m)return m;if(G)return G};
_.w.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.w.onSave=function(){if(this.textForm.validate()){this.textForm.save();var m=this.textForm.value;if(m)this.set("data.textDisplayed",_.nG(m));else{var G;((G=this.data)==null?0:G.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Fq("inline-form-changed",this.data));this.isEditing=!1}};
_.w.onCancel=function(){var m=_.bw(this.data.textDisplayed);m===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(m);this.isEditing=!1};
Oq.prototype.onKeydown=Oq.prototype.onKeydown;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],Oq.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Oq.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Oq.prototype,"isEditing",void 0);_.x([_.V(),_.S("design:type",Object)],Oq.prototype,"useSlot",void 0);_.x([_.V(),_.S("design:type",Boolean)],Oq.prototype,"multilineOverride",void 0);_.x([_.V(),_.S("design:type",Boolean)],Oq.prototype,"enableOverlayTheme",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.S("design:type",String)],Oq.prototype,"componentStyle",void 0);
_.x([_.V({computed:"computeisMultiline(data)"}),_.S("design:type",Object)],Oq.prototype,"isMultiline",void 0);_.x([_.UM("#text-form"),_.S("design:type",Object)],Oq.prototype,"textForm",void 0);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Oq.prototype,"onKeydown",null);_.x([_.Ye({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Oq);
_.y(Oq,"ytd-inline-form-renderer",function(){if(aHW!==void 0)return aHW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return aHW=m},{mode:1});var oBz;var cA=function(){var m=_.d.apply(this,arguments)||this;m.previousSelectValue=void 0;m.selectedItemMessage=void 0;return m};
_.n(cA,_.d);cA.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
cA.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var m,G,K,W,L=(m=this.data)==null?void 0:(G=m.dropdown)==null?void 0:(K=G.dropdownRenderer)==null?void 0:(W=K.entries)==null?void 0:W.map(function(c){return c.privacyDropdownItemRenderer});
m=_.g(L!=null?L:[]);for(G=m.next();!G.done;G=m.next())if((G=G.value)&&G.int32Value===this.selectedValue){this.selectedItemMessage=G.itemMessage;break}}else this.selectedItemMessage=void 0;var A;(A=this.onValueChanged)==null||A.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var O;(O=this.data)!=null&&O.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
cA.prototype.onValueChangedForSelectedValue=function(m){this.selectedValue=m.detail.value};
cA.prototype.selectedValueChanged=cA.prototype.selectedValueChanged;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],cA.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],cA.prototype,"theme",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Number)],cA.prototype,"selectedValue",void 0);_.x([_.V(),_.S("design:type",Function)],cA.prototype,"onValueChanged",void 0);
_.x([_.Mg("selectedValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cA.prototype,"selectedValueChanged",null);_.x([_.Ye({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],cA);
_.y(cA,"ytd-dropdown-form-field-renderer",function(){if(oBz!==void 0)return oBz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oBz=m},{mode:2});var nBs;var YM=function(){return _.d.apply(this,arguments)||this};
_.n(YM,_.d);_.e_.Object.defineProperties(YM.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var m=[],G=_.g(this.data||[]),K=G.next();!K.done;K=G.next())(K=_.Q(K.value,hYu))&&m.push(K);return m}}});
_.x([_.V(),_.S("design:type",Array)],YM.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],YM.prototype,"byline",null);_.x([_.Ye({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],YM);
_.y(YM,"ytd-playlist-byline-renderer",function(){if(nBs!==void 0)return nBs;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return nBs=m},{mode:1});var bh6;var rP=function(){var m=_.d.apply(this,arguments)||this;m.rtlBullet=_.F("web_playlist_stats_rtl_bullet_icon_killswitch");m.modern=_.F("web_modern_buttons");m.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return m};
_.n(rP,_.d);_.w=rP.prototype;_.w.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"}}}}};
_.w.attached=function(){};
_.w.computeIsCustomThumbnail=function(m){return m?!!m.playlistCustomThumbnailRenderer:!1};
_.w.onYtNavigate=function(m,G){if(G&&G.actions&&G.actions.indexOf("shuffle")>-1){m=_.xS().resolve(_.NQ);var K=G.tempData||{};K.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);G.tempData=K;m.isShuffleNextPlaylist=!0}};
_.w.onUpdatePlaylistAction=function(m){var G;m=(G=_.Q(m,_.GUP))==null?void 0:G.updatedRenderer;if(G=_.Q(m,Ia5))this.data=G};
_.w.computeStyleType=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeThumbnailWidth=function(m){return m==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.w.computeHideThumbnailAria=function(m){if(m==null?0:m.thumbnailOverlays)for(var G=0;G<m.thumbnailOverlays.length;G++){var K=void 0;if((K=m.thumbnailOverlays[G])==null?0:K.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
rP.prototype.onYtNavigate=rP.prototype.onYtNavigate;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],rP.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rP.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],rP.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rP.prototype,"rtlBullet",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.S("design:type",String)],rP.prototype,"styleType",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.S("design:type",Number)],rP.prototype,"thumbnailWidth",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rP.prototype,"modern",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.S("design:type",Boolean)],rP.prototype,"isCustomThumbnail",void 0);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],rP.prototype,"onYtNavigate",null);_.x([_.Ye({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],rP);
_.y(rP,"ytd-playlist-sidebar-primary-info-renderer",function(){if(bh6!==void 0)return bh6;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return bh6=m},{mode:1});var vB5;var ue=function(){return _.d.apply(this,arguments)||this};
_.n(ue,_.d);ue.prototype.computeOwnerVisibility=function(m){return!(!m.videoOwner&&!m.button)};
ue.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ue.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ue.prototype,"data",void 0);_.x([_.Ye({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],ue);
_.y(ue,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(vB5!==void 0)return vB5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return vB5=m},{mode:1});var $Yi;var hR=function(){var m=_.d.apply(this,arguments)||this;m.expanded=!1;m.isCompact=!1;return m};
_.n(hR,_.d);_.w=hR.prototype;_.w.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.w.dataChanged=function(){this.data&&_.Np(_.VL(this.text),_.KiX(_.AIB,_.bw(this.data.text||null)))};
_.w.computeAutoScrollEnabled=function(m,G){return m&&!G};
_.w.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.w.toggleOnTap=function(){this.expanded=!this.expanded};
hR.prototype.expandedChanged=hR.prototype.expandedChanged;hR.prototype.dataChanged=hR.prototype.dataChanged;_.x([_.q(gHP),_.S("design:type",Object)],hR.prototype,"ytdAutoScrollBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hR.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hR.prototype,"expanded",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],hR.prototype,"isCompact",void 0);_.x([_.V({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.S("design:type",Boolean)],hR.prototype,"autoScrollEnabled",void 0);_.x([_.UM("#text"),_.S("design:type",Object)],hR.prototype,"text",void 0);_.x([_.UM("#expander-icon"),_.S("design:type",Object)],hR.prototype,"expanderIcon",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hR.prototype,"dataChanged",null);_.x([_.Sb("expanded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hR.prototype,"expandedChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],hR);
_.y(hR,"ytd-channel-legal-info-renderer",function(){if($Yi!==void 0)return $Yi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $Yi=m},{mode:1});var sr5;var qCz=_.zq("DOWNLOAD",{},"Download"),EBs=_.zq("DOWNLOADING",{},"Downloading"),HhO=_.zq("DOWNLOADED",{},"Downloaded"),pd=function(){var m=_.d.apply(this,arguments)||this;m.downloadProgress=0;m.isDownloadComplete=!1;m.transferState="TRANSFER_STATE_UNKNOWN";return m};
_.n(pd,_.d);_.w=pd.prototype;_.w.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.w.dataChanged=function(){var m;(m=this.data)!=null&&m.tooltip||(m=_.hM(_.$R().getState(),this.playlistId),this.updateButtonState(m))};
_.w.computePlaylistId=function(m){return m};
_.w.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.w.updateButtonState=function(m){if(this.data&&(this.data.tooltip!==EBs||!_.Mc(m))){this.isDownloadComplete=!1;switch(m){case "TRANSFER_STATE_UNKNOWN":m=qCz;var G="OFFLINE_DOWNLOAD";var K="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":m=HhO;G="OFFLINE_PIN";K="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":m=EBs;G="OFFLINE_DOWNLOADING_ZERO";K="ACTION_REMOVE_WITH_PROMPT";
break;default:m=qCz,G="OFFLINE_DOWNLOAD",K="ACTION_ADD"}var W=Object.assign({},this.data);W.tooltip=m;W.accessibilityData={accessibilityData:{label:m}};W.icon={iconType:G};W.size="SIZE_DEFAULT";_.Q(W.command,_.Xk)&&(_.Q(W.command,_.Xk).action=K);this.set("data",W)}};
_.w.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var m="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?m="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?m="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?m="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?m="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?m="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(m="OFFLINE_PIN",this.isDownloadComplete=!0);var G;m!==((G=this.data.icon)==null?void 0:G.iconType)&&(G=Object.assign({},this.data),G.tooltip=EBs,G.accessibilityData={accessibilityData:{label:EBs}},G.icon={iconType:m},_.Q(G.command,_.Xk)&&(_.Q(G.command,_.Xk).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",G))}};
pd.prototype.updateProgress=pd.prototype.updateProgress;pd.prototype.onTransferStateChanged=pd.prototype.onTransferStateChanged;pd.prototype.dataChanged=pd.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],pd.prototype,"ytdReduxBehavior",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"forceIconButton",void 0);
_.x([_.V({value:!0}),_.S("design:type",Boolean)],pd.prototype,"forceIconOnly",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"overrides",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"buttonTooltipPosition",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"styleActionButton",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"disableTextTransform",void 0);
_.x([_.V({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.S("design:type",String)],pd.prototype,"playlistId",void 0);_.x([_.V(),_.S("design:type",Object)],pd.prototype,"data",void 0);_.x([_.V({selector:_.qWo,selectorArgs:["playlistId"]}),_.S("design:type",Object)],pd.prototype,"downloadProgress",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],pd.prototype,"isDownloadComplete",void 0);
_.x([_.V({selector:_.hM,selectorArgs:["playlistId"]}),_.S("design:type",String)],pd.prototype,"transferState",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],pd.prototype,"showTooltips",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],pd.prototype,"sendCommandWhenDisabled",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],pd.prototype,"disabled",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pd.prototype,"dataChanged",null);_.x([_.Mg("transferState"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pd.prototype,"onTransferStateChanged",null);_.x([_.Mg("downloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pd.prototype,"updateProgress",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],pd);
_.y(pd,"ytd-download-playlist-button-renderer",function(){if(sr5!==void 0)return sr5;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sr5=m},{mode:1});var IHD;_.sh(_.x5K,"thumbnail-overlay-button-view-model",{props:{data:_.Dd,lockupExperiments:_.Dd}});var JR=function(){var m=_.d.apply(this,arguments)||this;m.isSquare=!1;m.isVertical=!1;return m};
_.n(JR,_.d);JR.prototype.computeIsSquare=function(m){return m!=null&&m.thumbnail?lwu(m.thumbnail)==="SQUARE":!1};
JR.prototype.computeIsVertical=function(m){return m!=null&&m.thumbnail?lwu(m.thumbnail)==="VERTICAL":!1};
JR.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.S("design:type",Object)],JR.prototype,"isSquare",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.S("design:type",Object)],JR.prototype,"isVertical",void 0);
_.x([_.V(),_.S("design:type",Object)],JR.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],JR);
_.y(JR,"ytd-hero-playlist-thumbnail-renderer",function(){if(IHD!==void 0)return IHD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IHD=m},{mode:1});var Ni=function(){var m=_.d.apply(this,arguments)||this;m.isDarkTheme=!1;m.isUltraWide=!1;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return m};
_.n(Ni,_.d);_.w=Ni.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.xS();var m;(m=_.xS().resolve(_.fn(_.iI)))!=null&&(m.headerElement=this.hostElement)};
_.w.detached=function(){var m;(m=_.xS().resolve(_.fn(_.iI)))!=null&&(m.headerElement=void 0)};
_.w.onUpdateHeader=function(m){(m=m.detail)&&this.set("data",m)};
_.w.computeTextDisplayed=function(m){if(m)return m.textDisplayed?m.textDisplayed:m.placeholder};
_.w.gradientColorToLinearGradientStop=function(m){var G=this.isDarkTheme?m.darkThemeColor:m.lightThemeColor;return G?_.ce(G)+" "+((m==null?void 0:m.startLocation)||0)*100+"%":"transparent"};
_.w.onWindowResize=function(){var m;((m=this.data)==null?0:m.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.w.onIronResize=function(m){this.isUltraWide=!m.detail.value};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.onUpdatePlaylistName=function(m){var G=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},m.detail.value));_.Pv(this,function(){var K;(K=G.editableTitle)==null||K.resize()})};
_.w.onUpdatePlaylistDescription=function(m){var G=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},m.detail.value));_.Pv(this,function(){var K;(K=G.editableDescriptionInlineExpander)==null||K.resize()})};
_.w.getCinematicData=function(m){return _.Q(m==null?void 0:m.cinematicContainer,Qa)};
_.e_.Object.defineProperties(Ni.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 m,G=(m=this.getCinematicData(this.data))==null?void 0:m.config;return(m=this.isDarkTheme?G==null?void 0:G.darkThemeBackgroundColor:G==null?void 0:G.lightThemeBackgroundColor)?"background-color:"+_.OM(m)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var m;return _.Q((m=this.data)==null?void 0:m.descriptionForm,q96)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K,W;return"background:linear-gradient(to bottom, "+(((W=(G=this.getCinematicData(this.data))==null?void 0:(K=G.gradientColorConfig)==null?void 0:K.map(function(L){return m.gradientColorToLinearGradientStop(L)}))==null?void 0:W.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var m;return _.bw((m=this.data)==null?void 0:m.descriptionTapText)}}});
Ni.prototype.onUpdateHeader=Ni.prototype.onUpdateHeader;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Ni.prototype,"actionHandlerBehavior",void 0);_.x([_.UM("#description-inline-expander"),_.S("design:type",Object)],Ni.prototype,"descriptionInlineExpander",void 0);
_.x([_.UM("#editable-description-inline-expander"),_.S("design:type",Object)],Ni.prototype,"editableDescriptionInlineExpander",void 0);_.x([_.V(),_.S("design:type",Object)],Ni.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ni.prototype,"isUltraWide",void 0);_.x([_.UM("#editable-title-display"),_.S("design:type",Object)],Ni.prototype,"editableTitle",void 0);_.x([_.E("isUltraWide"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"maxDescriptionLines",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"noCinematicData",null);_.x([_.XC("yt-new-playlist-header"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ni.prototype,"onUpdateHeader",null);_.x([_.E("data","isDarkTheme"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"backgroundStyle",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"descriptionFormData",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"getDropdownTheme",null);_.x([_.E("data","isDarkTheme"),_.S("design:type",String),_.S("design:paramtypes",[])],Ni.prototype,"gradientStyle",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ni.prototype,"descriptionTapText",null);
_.x([_.Ye({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Ni);
_.y(Ni,"ytd-playlist-header-renderer",function(){if(QrE!==void 0)return QrE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QrE=m},{mode:2});var jr5;var k2O;var Dm=function(){return _.d.apply(this,arguments)||this};
_.n(Dm,_.d);Dm.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Dm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Dm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Dm.prototype,"data",void 0);_.x([_.Ye({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],Dm);
_.y(Dm,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(k2O!==void 0)return k2O;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return k2O=m},{mode:1});var tR=function(){return _.d.apply(this,arguments)||this};
_.n(tR,_.d);
tR.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}}}}};
tR.prototype.computeUsePremiumShowStyle=function(m){if(!m||!m.items)return!1;for(var G=0;G<m.items.length;G++)if(_.Q(m.items[G],Ia5)){var K=void 0;return((K=_.Q(m.items[G],Ia5))==null?void 0:K.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tR.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.S("design:type",Boolean)],tR.prototype,"usePremiumShowStyle",void 0);
_.x([_.Ye({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],tR);
_.y(tR,"ytd-playlist-sidebar-renderer",function(){if(jr5!==void 0)return jr5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return jr5=m},{mode:1});var Cl6;var VQu;var ZhP=function(m,G,K,W,L,A,O,c){this.minWidth=m;this.minHeight=G;this.recommendedWidth=K;this.recommendedHeight=W;this.JSC$21764_maxFileSize=L;this.title=A;this.bannerGalleryTitle=O;this.channelId=c;this.picker_=null;m=_.Uef("yt-banner");G=m.addView;K=(new EPs("youtubebanner")).addUploadMetadata("silo_id","19");K.opts.ytMaxFileSize=this.JSC$21764_maxFileSize;W=this.recommendedHeight;K.opts.ytRecWidth=this.recommendedWidth;K.opts.ytRecHeight=W;G.call(m,K);m.addView(new _.K_);G=m.addView;K=new _.K_;
K.opts.type="ytbanner";G.call(m,K.JSC$10381_setLabel(this.bannerGalleryTitle));G=m.setTitle(this.title).setSize(1E3);G.urlParamMap_.set("thumbs","orig");K=this.minWidth;W=this.minHeight;if(isNaN(K)||isNaN(W))throw Error("ib`"+K+"`"+W);G.urlParamMap_.set("minSize",K+"x"+W);G.urlParamMap_.set("cropMode","ytcb");this.builder_=m};
ZhP.prototype.open=function(){var m=this;return new _.iO(function(G,K){_.aGP(m.builder_,function(W){W.action=="picked"?G(W):W.action=="cancel"&&K(Error("am"))});
m.picker_&&m.picker_.dispose();m.picker_=m.builder_.build();m.picker_.setVisible(!0)})};
ZhP.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var dY6=function(m){this.channelId=m};
dY6.prototype.upload=function(m){var G="";m.viewToken&&(G=m.viewToken[2].type);var K=m.docs[0];m=K.crop;G={channel_id:this.channelId,fife_url:K.thumbnails[0].url,photo_id:K.id,is_gallery_image:G=="ytbanner"};m&&(G.crop_top=m.top,G.crop_right=m.right,G.crop_bottom=m.bottom,G.crop_left=m.left);return _.acM("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:G})};var Fc=function(){var m=_.d.apply(this,arguments)||this;m.ariaLabel=null;return m};
_.n(Fc,_.d);_.w=Fc.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.w.detached=function(){this.picker&&this.picker.dispose()};
_.w.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.w.computeAriaLabel=function(m){return m};
_.w.onTap=function(){var m=this,G;if((G=this.data)==null||!G.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new ZhP(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 K;(K=this.picker)==null||K.open().then(function(W){m.handleBannerPicked(W)},function(){})}};
_.w.handleBannerPicked=function(m){var G=this;this.uploader||(this.uploader=new dY6(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(m).then(function(K){G.handleBannerUploadSucceeded(K)},function(K){G.handleBannerUploadFailed(K)})};
_.w.handleBannerUploadSucceeded=function(m){m&&m.errors?this.handleBannerUploadFailed(m):(_.Zw(this.hostElement,"yt-banner-updated",m),this.message=null)};
_.w.handleBannerUploadFailed=function(m){this.message=m&&m.errors&&m.errors.length?m.errors[0]:null};
Fc.prototype.dataChanged=Fc.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Fc.prototype,"componentBehavior",void 0);_.x([_.q(_.Gc),_.S("design:type",Object)],Fc.prototype,"ironButtonState",void 0);_.x([_.V(),_.S("design:type",Object)],Fc.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.S("design:type",Object)],Fc.prototype,"ariaLabel",void 0);
_.x([_.V(),_.S("design:type",Object)],Fc.prototype,"message",void 0);_.x([_.V(),_.S("design:type",Object)],Fc.prototype,"picker",void 0);_.x([_.V(),_.S("design:type",Object)],Fc.prototype,"uploader",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Fc.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Fc);
_.y(Fc,"ytd-channel-banner-editor-renderer",function(){if(VQu!==void 0)return VQu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return VQu=m},{mode:1});var PlG;var yq6=_.nY(["#"]),Q4=function(){return _.d.apply(this,arguments)||this};
_.n(Q4,_.d);Q4.prototype.computeHrefWithDefault=function(m){return this.ytComponentBehavior.computeHref_(m,!0)||_.ord(yq6)};
Q4.prototype.dataChanged=function(){var m=this.data;m&&m.targetId&&_.xV(_.Xi(),m.targetId,this.moreIcon)};
Q4.prototype.dataChanged=Q4.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Q4.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Q4.prototype,"data",void 0);_.x([_.UM("#more-icon"),_.S("design:type",Object)],Q4.prototype,"moreIcon",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Q4.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],Q4);
_.y(Q4,"ytd-channel-tagline-renderer",function(){if(PlG!==void 0)return PlG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PlG=m},{mode:1});var eWO;var a1=function(){return _.d.apply(this,arguments)||this};
_.n(a1,_.d);_.w=a1.prototype;_.w.ready=function(){var m=this;_.VL(this.hostElement).querySelector("#form").addEventListener("submit",function(G){m.onSubmit(G)})};
_.w.onDataChanged=function(){var m;((m=this.data)==null?0:m.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.w.onIconButtonKeydown=function(m){m.keyCode===13&&this.iconButton.click()};
_.w.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.w.openOnClickHandler=function(){this.input.focus()};
_.w.onSubmit=function(m){m.preventDefault();return!1};
_.w.submitOnEnterKeyUp=function(m){var G;if(m.keyCode===13&&((G=this.data)==null?0:G.expandedText)){m=this.data.endpoint;G=_.Y2.unsafeClone(m);var K;((K=_.Q(G==null?void 0:G.commandMetadata,_.RQ))==null?0:K.url)?(_.Q(G.commandMetadata,_.RQ).url=_.ir(_.Q(G.commandMetadata,_.RQ).url,"query",this.data.expandedText),_.Q(G,_.S8)&&(_.Q(G,_.S8).query=this.data.expandedText),_.Zw(this.hostElement,"yt-navigate",{endpoint:G,tempData:{disableCache:!0}})):(K=new _.cw("Error: Trying to navigate to an endpoint without url",
m),_.am(K))}};
_.w.updateDataExpandedTextFromBinding=function(m){this.set("data.expandedText",m.detail.value)};
_.e_.Object.defineProperties(a1.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
a1.prototype.onDataChanged=a1.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.x([_.q(cyu),_.S("design:type",Object)],a1.prototype,"ytdExpandableInputBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a1.prototype,"data",void 0);_.x([_.UM("#input"),_.S("design:type",Object)],a1.prototype,"input",void 0);_.x([_.UM("#icon-button"),_.S("design:type",HTMLElement)],a1.prototype,"iconButton",void 0);
_.x([_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],a1.prototype,"searchIcon",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],a1.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],a1);
var JAO=_.Vz()(a1,"ytd-expandable-tab-renderer",function(){if(eWO===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);eWO=m}m=eWO;return m},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var fHG;var o1=function(){var m=_.d.apply(this,arguments)||this;m.avatarSize=80;m.ariaLabel=_.zq("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return m};
_.n(o1,_.d);o1.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
o1.prototype.computeHref=function(m){var G;return((G=_.Q(m,_.H$))==null?0:G.url)?this.componentBehavior.computeHref_(m):null};
o1.prototype.onTap=function(){var m,G;(m=this.data)==null||!m.editAvatarServiceEndpoint||((G=_.Q(this.data.editAvatarServiceEndpoint,_.H$))==null?0:G.url)||_.xS().resolve(_.S1).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.x([_.q(_.Gc),_.S("design:type",Object)],o1.prototype,"ironButtonState",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],o1.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],o1.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],o1.prototype,"avatarSize",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],o1.prototype,"ariaLabel",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],o1);
_.y(o1,"ytd-channel-avatar-editor",function(){if(fHG!==void 0)return fHG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fHG=m},{mode:1});var xYG=_.P(function(m){var G=m.data;var K=m.noPadding;var W=m.enableBanner;var L=m.cinematicContainerTopbarOffset;var A=m.allowCinematicContainerOverflow;var O=m.displayAsSidebar;m=m.className;_.$O(function(){G().tagManagerId&&(_.MQ(G().tagManagerId,_.E8("GL")),wFu(G().tagManagerId))},"vUc8md");
var c=_.S5(DP6,function(){return G().pageHeaderEntityKey});
return _.r("yt-page-header-renderer",{class:_.VO("pageHeaderRendererHost",m)},_.r(_.z$,{data:function(){var u;return((u=c())==null?0:u.header)?c().header:(O==null?0:O())&&G().sidebarContent?G().sidebarContent:G().content}},{pageHeaderViewModel:function(u){return _.r(_.C6W,{data:u.data,
noPadding:K,enableBanner:W,cinematicContainerTopbarOffset:L,allowCinematicContainerOverflow:A,displayAsSidebar:function(){return(O==null?void 0:O())&&G().enableSidebarView}})}}))},"tk");
xYG.idomCompat=!0;_.sh(xYG,"yt-page-header-renderer",{props:{data:_.Dd,noPadding:_.Dd,enableBanner:_.Dd,cinematicContainerTopbarOffset:_.Dd,allowCinematicContainerOverflow:_.Dd,displayAsSidebar:_.Dd,className:_.Dd}});_.sh(_.QD,"yt-image-banner-view-model",{props:{data:_.Dd,isPositionRelative:_.Dd}});_.sh(_.ilD,"yt-tab-group-shape",{props:{shape:_.Dd}});var XPD=_.DE.persistentPanelVisibleSelector,nd=function(){var m=_.d.apply(this,arguments)||this;m.expandableCustomTabRenderable=function(G){return N1G(G,function(){return void m.onSearchNavigate()})};
m.isRichGrid=!1;m.isConstrainedList=!1;m.richGridMiniMode=!1;m.richGridStyle="RICH_GRID_STYLE_UNKNOWN";m.isRichGridShorts=!1;m.responsiveSizing="COMPACT";m.disableGridStateAware=!1;m.useRaf=!_.F("web_use_raf_app_header_layout_killswitch");m.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return m};
_.n(nd,_.d);_.w=nd.prototype;_.w.computeHeaderDisabled=function(m,G){return G||!m||this.tabsHidden};
_.w.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.w.computeIsRichGridShorts=function(m){return m==="RICH_GRID_STYLE_SHORTS_GRID"||m==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.w.computeImageBannerViewModel=function(){var m,G;return _.Q((G=_.Q((m=this.data)==null?void 0:m.content,_.Z9C))==null?void 0:G.banner,_.Ej2)};
_.w.computeHasCinematicContainer=function(){var m,G;return!((G=_.Q((m=this.data)==null?void 0:m.content,_.Z9C))==null||!G.background)};
_.w.handleHeaderResize=function(){var m=_.VL(this.hostElement).querySelector("#header");m&&_.Zw(m,"iron-resize")};
_.w.handleInsertTabCommand=function(m){var G=_.Q(m,ayu);G&&(G.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(K){return K.tabRenderer&&K.tabRenderer.tabIdentifier===G.tabIdentifier})||this.splice("tabs",G.tabIndex||-1,0,G.tab))};
_.w.handleRefreshChannelTabAction=function(m){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===m&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.w.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.w.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.eb(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.w.observerRichGridSlimItemsPerRow=function(){_.eb(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.w.updateCssVars=function(){this.richGridItemsPerRow&&_.eb(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.U8("rich_grid_max_item_width",500))+16)-16+"px"})};
_.w.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.eb(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.w.onDataChanged=function(){this.handleHeaderResize()};
_.w.onWindowResize=function(){this.handleHeaderResize()};
_.w.onFocusedChanged=function(m){(m=_.$C(m))&&m.is==="tp-yt-paper-tab"&&m.hasRipple()&&(m.getRipple().holdDown=!m.pointerDown&&m.focused)};
_.w.updateSelectedFromBinding=function(m){this.ytdTabbedHeaderBehavior.selected=m.detail.value};
_.w.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.e_.Object.defineProperties(nd.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FNq(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.imageBannerViewModel)==null?void 0:m.style)==="IMAGE_BANNER_STYLE_INSET"}}});
nd.prototype.onDataChanged=nd.prototype.onDataChanged;nd.prototype.updateCssVarsForResponsiveGrid=nd.prototype.updateCssVarsForResponsiveGrid;nd.prototype.updateCssVars=nd.prototype.updateCssVars;nd.prototype.observerRichGridSlimItemsPerRow=nd.prototype.observerRichGridSlimItemsPerRow;nd.prototype.observerRichGridItemsPerRow=nd.prototype.observerRichGridItemsPerRow;nd.prototype.persistentPanelVisibleChanged=nd.prototype.persistentPanelVisibleChanged;
_.x([_.q(_.un),_.S("design:type",Object)],nd.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(Od6),_.S("design:type",Object)],nd.prototype,"ytdTabbedHeaderBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],nd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],nd.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],nd.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],nd.prototype,"ytdReduxBehavior",void 0);_.x([_.UM("#tabs"),_.S("design:type",Object)],nd.prototype,"tabsElement",void 0);_.x([_.V(),_.S("design:type",Array)],nd.prototype,"tabs",void 0);_.x([_.V(),_.S("design:type",Object)],nd.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.E("tabs.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],nd.prototype,"tabGroupShape",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],nd.prototype,"isRichGrid",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],nd.prototype,"isConstrainedList",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Object)],nd.prototype,"richGridMiniMode",void 0);_.x([_.V({selector:function(m){return m.ui.richGridStyle}}),
_.S("design:type",Object)],nd.prototype,"richGridStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.S("design:type",Object)],nd.prototype,"isRichGridShorts",void 0);_.x([_.V({selector:_.Ov}),_.S("design:type",Number)],nd.prototype,"richGridItemsPerRow",void 0);_.x([_.V({selector:function(m){return m.ui.richGridContainerWidth}}),
_.S("design:type",Number)],nd.prototype,"richGridContainerWidth",void 0);_.x([_.V({selector:_.pTP}),_.S("design:type",Number)],nd.prototype,"richGridSlimItemsPerRow",void 0);_.x([_.V(),_.S("design:type",Object)],nd.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],nd.prototype,"responsiveSizing",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],nd.prototype,"disableGridStateAware",void 0);
_.x([_.V({computed:"computeImageBannerViewModel(data)"}),_.S("design:type",Object)],nd.prototype,"imageBannerViewModel",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.S("design:type",Boolean)],nd.prototype,"hasCinematicContainer",void 0);_.x([_.V({selector:QlO,reflectToAttribute:!0}),_.S("design:type",Boolean)],nd.prototype,"guideIsVisibleButNotPersistent",void 0);
_.x([_.V({selector:XPD}),_.S("design:type",Boolean)],nd.prototype,"persistentPanelVisible",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("imageBannerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],nd.prototype,"hasBanner",null);_.x([_.V({reflectToAttribute:!0}),_.E("imageBannerViewModel"),_.S("design:type",Object),_.S("design:paramtypes",[])],nd.prototype,"hasInsetBanner",null);_.x([_.V(),_.S("design:type",Object)],nd.prototype,"useRaf",void 0);
_.x([_.V({computed:"computeTabsHidden(tabs)",value:!0}),_.S("design:type",Boolean)],nd.prototype,"tabsHidden",void 0);_.x([_.Sb("persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"persistentPanelVisibleChanged",null);_.x([_.Sb("richGridItemsPerRow","isRichGrid"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"observerRichGridItemsPerRow",null);
_.x([_.Sb("richGridSlimItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"observerRichGridSlimItemsPerRow",null);_.x([_.Sb("richGridItemsPerRow","richGridMiniMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"updateCssVars",null);
_.x([_.Sb("richGridContainerWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"updateCssVarsForResponsiveGrid",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nd.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],nd);
_.y(nd,"ytd-tabbed-page-header",function(){if(Cl6!==void 0)return Cl6;var m=document.createElement("template");_.b(m,'\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 use-raf="[[useRaf]]" 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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Cl6=m},{mode:1});var SCW;var be=function(){return _.d.apply(this,arguments)||this};
_.n(be,_.d);be.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],be.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],be.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],be.prototype,"data",void 0);_.x([_.Ye({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],be);
_.y(be,"ytd-labs-edit-renderer",function(){if(SCW!==void 0)return SCW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return SCW=m},{mode:1});var RWz;var vA=function(){var m=_.d.apply(this,arguments)||this;m.dark=!1;m.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";m.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(vA,_.d);vA.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
vA.prototype.ready=function(){var m=document.documentElement.hasAttribute("dark");this.setBackgroundImage(m);this.dark=m};
vA.prototype.onDarkModeToggledAction=function(m){this.setBackgroundImage(m);this.dark=m};
vA.prototype.setBackgroundImage=function(m){_.eb(this.hostElement,{"--yt-labs-header-background":"url("+(m?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],vA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vA.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],vA.prototype,"dark",void 0);
_.x([_.Ye({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],vA);
_.y(vA,"ytd-labs-header-renderer",function(){if(RWz!==void 0)return RWz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return RWz=m},{mode:1});var UYE;var $M=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return m};
_.n($M,_.d);$M.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"}}}}}};
$M.prototype.onYtToggleButton=function(m){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",m.detail.toggled)};
$M.prototype.onManageLabsState=function(m){if(m=_.Q(m,aaq))m.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?m.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&m.labsItemId===this.data.labsItemId&&(m.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.dU(this.hostElement,"yt-check-labs-opted-in-state").some(function(G){return G})&&this.data.confirmationDialogCommand?_.eD(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.xS().resolve(_.S1).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&m.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.xS().resolve(_.S1).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
$M.prototype.onCheckLabsOptedInState=function(){var m=this.get("data.primaryButton.toggleButtonRenderer");return m?m.isToggled:!1};
_.e_.Object.defineProperties($M.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
$M.prototype.onYtToggleButton=$M.prototype.onYtToggleButton;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$M.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],$M.prototype,"itemStyle",null);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],$M.prototype,"onYtToggleButton",null);_.x([_.Ye({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],$M);
_.y($M,"ytd-labs-item-renderer",function(){if(UYE!==void 0)return UYE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return UYE=m},{mode:1});var zW6;var lHE;var B4W=function(){return _.d.apply(this,arguments)||this};
_.n(B4W,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],B4W.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],B4W.prototype,"data",void 0);_.x([_.Ye({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],B4W);
_.y(B4W,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(lHE!==void 0)return lHE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lHE=m},{mode:1});var MQO;var sq=function(){return _.d.apply(this,arguments)||this};
_.n(sq,_.d);sq.prototype.observeSuperchatChip=function(){if(this.data){var m={"--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)};_.eb(this.hostElement,m)}};
sq.prototype.colorFromDecimal=function(m){return _.ce(Number(m||0))};
sq.prototype.observeSuperchatChip=sq.prototype.observeSuperchatChip;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],sq.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sq.prototype,"observeSuperchatChip",null);_.x([_.Ye({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],sq);
_.y(sq,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(MQO!==void 0)return MQO;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return MQO=m},{mode:1});var qi=function(){return _.d.apply(this,arguments)||this};
_.n(qi,_.d);qi.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"}}}};
_.e_.Object.defineProperties(qi.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],qi.prototype,"ytdDismissibleItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qi.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],qi.prototype,"hideMessageBlock",null);
_.x([_.Ye({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],qi);
_.y(qi,"ytd-live-chat-history-entry-renderer",function(){if(zW6!==void 0)return zW6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zW6=m},{mode:1});var T45;var Eq=function(){return _.d.apply(this,arguments)||this};
_.n(Eq,_.d);Eq.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.eb(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.e_.Object.defineProperties(Eq.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var m,G;return this.componentBehavior.computeIcon_(((G=_.Q((m=this.data)==null?void 0:m.badge,_.PhX))==null?void 0:G.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.badge,_.PhX))==null?void 0:G.label}}});
Eq.prototype.observerRichGridItemsPerRow=Eq.prototype.observerRichGridItemsPerRow;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Eq.prototype,"componentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Eq.prototype,"ytdReduxBehavior",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.g6}),_.S("design:type",Boolean)],Eq.prototype,"richGridMiniMode",void 0);
_.x([_.V({selector:_.Ov}),_.S("design:type",Number)],Eq.prototype,"richGridItemsPerRow",void 0);_.x([_.V(),_.S("design:type",Object)],Eq.prototype,"data",void 0);_.x([_.Sb("richGridItemsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Eq.prototype,"observerRichGridItemsPerRow",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Eq.prototype,"badgeIconName",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Eq.prototype,"badgeLabel",null);_.x([_.Ye({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Eq);
_.y(Eq,"ytd-member-hub-profile-renderer",function(){if(T45!==void 0)return T45;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return T45=m},{mode:1});var mvi;var HA=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return m};
_.n(HA,_.d);
HA.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"}}}};
HA.prototype.handleUpdateTextCommand=function(m){(m=_.Q(m,_.v4S))&&this.data&&this.data.id===m.id&&this.set("data",m)};
HA.prototype.handleUpdateConnectedAppRendererCommand=function(m){if(_.Q(m,_.qYC)&&this.data){var G,K;if(m=(G=_.Q(m,_.qYC))==null?void 0:(K=G.newConnectedAppRenderer)==null?void 0:K.connectedAppRenderer)this.data=m}};
HA.prototype.computeConnectedAppStyle=function(m){return m.style?m.style.toLowerCase().replace(/_/g,"-"):""};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],HA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],HA.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.S("design:type",String)],HA.prototype,"connectedAppStyle",void 0);_.x([_.Ye({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],HA);
_.y(HA,"ytd-connected-app-renderer",function(){if(mvi!==void 0)return mvi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return mvi=m},{mode:1});var i0G;var G3s=function(){return _.d.apply(this,arguments)||this};
_.n(G3s,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],G3s.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],G3s.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],G3s);
_.y(G3s,"ytd-channel-options-renderer",function(){if(i0G!==void 0)return i0G;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return i0G=m},{mode:1});var K8O;var I1=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return m};
_.n(I1,_.d);I1.prototype.onCheckboxChange=function(m){this.data&&(m=(this.checked=_.$C(m).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})};
I1.prototype.handleUpdateCheckboxCommand=function(m){(m=_.Q(m,_.b$F))&&this.data&&this.data.id===m.id&&(this.set("data.disabled",m.disabled),this.set("data.title",m.title))};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],I1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],I1.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],I1.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],I1.prototype,"checked",void 0);_.x([_.Ye({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],I1);
_.y(I1,"ytd-settings-checkbox-renderer",function(){if(K8O!==void 0)return K8O;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return K8O=m},{mode:1});var W8z;var jz=function(){return _.d.apply(this,arguments)||this};
_.n(jz,_.d);jz.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jz.prototype,"data",void 0);_.x([_.Ye({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],jz);
_.y(jz,"ytd-settings-email-item-renderer",function(){if(W8z!==void 0)return W8z;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return W8z=m},{mode:1});var L85;var kM=function(){return _.d.apply(this,arguments)||this};
_.n(kM,_.d);kM.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"}}}};
kM.prototype.getExpansionIcon=function(m){return m?"COLLAPSE":"EXPAND"};
kM.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.e_.Object.defineProperties(kM.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kM.prototype,"data",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],kM.prototype,"expanded",void 0);_.x([_.E("expanded"),_.S("design:type",String),_.S("design:paramtypes",[])],kM.prototype,"emailListExpanded",null);
_.x([_.UM("#options"),_.S("design:type",Object)],kM.prototype,"options",void 0);_.x([_.Ye({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],kM);
_.y(kM,"ytd-settings-email-list-renderer",function(){if(L85!==void 0)return L85;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return L85=m},{mode:1});var AE6;var wI6;var gxP;var O0D;var cEz;var Cd=function(){return _.d.apply(this,arguments)||this};
_.n(Cd,_.d);_.w=Cd.prototype;_.w.computePreselectedOption=function(m,G){return G===this.itemSelected_?m:void 0};
_.w.dataChanged_=function(){var m=this;this.preselectedSubreason=this.itemSelected_=-1;var G;(G=this.data)!=null&&G.key&&_.Pv(this,function(){var K,W=Number((K=m.data)==null?void 0:K.key);!Number.isNaN(W)&&(m.itemSelected_=W,K=(K=(m.data.items||[])[W])&&K.optionSelectableItemRenderer&&K.optionSelectableItemRenderer.preselectedIndex)&&(m.preselectedSubreason=K)})};
_.w.isSubReasonHidden_=function(m,G){return m!=G};
_.w.onTopItemSelected_=function(m,G){for(var K=_.VL(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),W=0,L=K.length;W<L;W++)K[W].select(0);_.dU(this.hostElement,"yt-report-form-update",[G.item.value]);m.stopPropagation()};
_.w.onItemSelected_=function(m,G){_.dU(this.hostElement,"yt-report-form-update",[G.item.value]);m.stopPropagation()};
_.w.getItem_=function(m){return m.serviceItem?m.serviceItem:m.navigationItem?m.navigationItem:m.optionSelectableItemRenderer?m.optionSelectableItemRenderer:null};
_.w.computeText_=function(m){return(m=this.getItem_(m))?this.ytRendererBehavior.getSimpleString(m.text):null};
_.w.validate=function(){return this.itemSelected_!==-1};
_.w.computeAriaLabel_=function(m){var G=_.bw(m.text);(m=m.accessibility&&m.accessibility.accessibilityData&&m.accessibility.accessibilityData.label)&&(G+=". "+m);return G};
_.w.computeItemSelected_=function(m){return m};
_.w.preventSelection_=function(m){m.stopPropagation();this.tooltipTapped=!0};
_.w.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.w.updateItemSelectedFromBinding=function(m){this.itemSelected_=m.detail.value};
_.w.save=function(){var m;this.validate()&&(m=this.data)!=null&&m.items&&(m=this.data.items[this.itemSelected_],m!=null&&m.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(m.optionSelectableItemRenderer.submitEndpoint)||_.yQ(this.hostElement,[m.optionSelectableItemRenderer.submitEndpoint])))};
Cd.prototype.onPaperRippleTransitionEnd_=Cd.prototype.onPaperRippleTransitionEnd_;Cd.prototype.dataChanged_=Cd.prototype.dataChanged_;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Cd.prototype,"data",void 0);_.x([_.V({value:-1}),_.S("design:type",Number)],Cd.prototype,"itemSelected_",void 0);
_.x([_.V({computed:"computeItemSelected_(itemSelected_)"}),_.S("design:type",Number)],Cd.prototype,"value",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Cd.prototype,"restoreFocusOnClose",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Cd.prototype,"tooltipTapped",void 0);_.x([_.V({value:-1}),_.S("design:type",Number)],Cd.prototype,"preselectedSubreason",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cd.prototype,"dataChanged_",null);_.x([_.XC("transitionend"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cd.prototype,"onPaperRippleTransitionEnd_",null);_.x([_.cL({is:"yt-options-renderer",disableElementRegistration:!0})],Cd);
_.y(Cd,"yt-options-renderer",function(){if(cEz===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;O0D===void 0&&(O0D=document.createElement("template"));var W=O0D;K.call(G,W.content.cloneNode(!0),m.content.firstChild);cEz=m}m=cEz;return m},{mode:2});var YkD;var rED;var u_P;var h86;var V4=function(){return _.d.apply(this,arguments)||this};
_.n(V4,_.d);V4.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
V4.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
V4.prototype.onTap=function(m){if(this.hostElement.classList.contains("selected")||_.dU(this.hostElement,"yt-share-panel-can-select-contact-action")[0])m&&m.detail&&(m.detail.x||m.detail.y)&&_.VL(this.hostElement).querySelector("#target").blur(),(m=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),m={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:m?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.dU(this.hostElement,"yt-share-panel-select-contact-action",[m])};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.x([_.V({observer:"onDataChanged"}),_.S("design:type",Object)],V4.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.S("design:type",String)],V4.prototype,"componentTitle",void 0);_.x([_.UM("#thumbnail"),_.S("design:type",Object)],V4.prototype,"thumbnail",void 0);_.x([_.cL({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],V4);
_.y(V4,"yt-enrolled-contact-renderer",function(){if(h86===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;u_P===void 0&&(u_P=document.createElement("template"));var W=u_P;K.call(G,W.content.cloneNode(!0),m.content.firstChild);h86=m}m=h86;return m},{mode:2});var pI5;var JEG;var Zm=function(){return _.d.apply(this,arguments)||this};
_.n(Zm,_.d);Zm.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Zm.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Zm.prototype.onTap=function(m){if(this.hostElement.classList.contains("selected")||_.dU(this.hostElement,"yt-share-panel-can-select-contact-action")[0])m&&m.detail&&(m.detail.x||m.detail.y)&&_.VL(this.hostElement).querySelector("#target").blur(),(m=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),m={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:m?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.dU(this.hostElement,"yt-share-panel-select-contact-action",[m])};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.x([_.V({observer:"onDataChanged"}),_.S("design:type",Object)],Zm.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.S("design:type",String)],Zm.prototype,"componentTitle",void 0);_.x([_.UM("#thumbnail"),_.S("design:type",Object)],Zm.prototype,"thumbnail",void 0);_.x([_.cL({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Zm);
_.y(Zm,"yt-suggested-contact-renderer",function(){if(JEG===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;pI5===void 0&&(pI5=document.createElement("template"));var W=pI5;K.call(G,W.content.cloneNode(!0),m.content.firstChild);JEG=m}m=JEG;return m},{mode:2});var dP=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-share-panel-reset-action":"onReset"};return m};
_.n(dP,_.d);dP.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"}}}}}};
dP.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.dU(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
dP.prototype.onReset=function(){for(var m=_.VL(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),G=m.length-1;G>=0;G--)m[G].classList.toggle("selected")};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dP.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V({observer:"onDataChanged"}),_.S("design:type",Object)],dP.prototype,"data",void 0);
_.x([_.cL({is:"yt-contact-section-renderer",disableElementRegistration:!0})],dP);
_.y(dP,"yt-contact-section-renderer",function(){if(rED===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;YkD===void 0&&(YkD=document.createElement("template"));var W=YkD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rED=m}m=rED;return m},{mode:2});var PA=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return m};
_.n(PA,_.d);_.w=PA.prototype;_.w.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"}}}};
_.w.onYtRefreshFormCommand=function(m){var G;(m=_.Q((G=_.Q(m,_.wF2))==null?void 0:G.formRenderer,s_5))&&this.set("data",m)};
_.w.reset=function(){var m=_.VL(this.hostElement).querySelector("#fields").children;m=_.g(m);for(var G=m.next();!G.done;G=m.next())G=G.value,G.reset&&G.reset()};
_.w.getForm=function(){var m={},G=_.VL(this.hostElement).querySelector("#fields").children;G=_.g(G);for(var K=G.next();!K.done;K=G.next()){K=K.value;if(!K.validate())return null;m[K.data.key]=K.value}return m};
_.w.submitFormFields=function(){if(this.fields)for(var m=_.g(this.fields),G=m.next();!G.done;G=m.next())G=G.value,G.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?G.save():G.nodeName==="YT-OPTIONS-RENDERER"&&G.save()};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],PA.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],PA.prototype,"data",void 0);_.x([_.zh("#fields > *"),_.S("design:type",Array)],PA.prototype,"fields",void 0);
_.x([_.cL({is:"yt-form-renderer",disableElementRegistration:!0})],PA);
_.y(PA,"yt-form-renderer",function(){if(gxP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;wI6===void 0&&(wI6=document.createElement("template"));var W=wI6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);gxP=m}m=gxP;return m},{mode:2});var y4=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return m};
_.n(y4,_.d);y4.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"}}}};
y4.prototype.handleSignalActionSubmitForm=function(){var m,G=(m=this.formRenderer)==null?void 0:m.getForm();G&&this.data.serviceEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},G,{element:this.hostElement})})};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],y4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],y4.prototype,"data",void 0);_.x([_.UM("yt-form-renderer"),_.S("design:type",Object)],y4.prototype,"formRenderer",void 0);
_.x([_.Ye({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],y4);
_.y(y4,"ytd-settings-gaia-link-renderer",function(){if(AE6!==void 0)return AE6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return AE6=m},{mode:1});var NZD;var DvD;var ez=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return m};
_.n(ez,_.d);ez.prototype.dataChanged=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return m.radio.removeAttribute("checked"),!m.data||!m.data.id||m.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||ShW()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(G=m.data&&m.data.id)?K.yield(UyG(m.data.id),4):K.jumpTo(3):(m.set("data.hidden",!0),K.jumpTo(0));K.nextAddress!=3&&(G=K.yieldResult);G&&_.dU(m.hostElement,"yt-select-settings-radio-option",[m.data.id]);_.ey(K)})};
ez.prototype.onButtonChanged=function(m){_.$C(m).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.dU(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
ez.prototype.onSelectOption=function(m){this.data&&this.data.id&&(this.data.id===m?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
ez.prototype.dataChanged=ez.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ez.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ez.prototype,"ytActionHandlerBehavior",void 0);_.x([_.UM("#radio"),_.S("design:type",Object)],ez.prototype,"radio",void 0);_.x([_.V(),_.S("design:type",Object)],ez.prototype,"data",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],ez.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],ez);
_.y(ez,"ytd-settings-radio-option-renderer",function(){if(DvD!==void 0)return DvD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return DvD=m},{mode:1});_.sh(_.pM,"basic-content-view-model",{props:{data:_.nN,className:_.nN}});var fd=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return m};
_.n(fd,_.d);fd.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&ShW()&&this.set("data.hidden",!1)};
fd.prototype.onSwitchReady=function(){var m=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.F("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){awD().then(function(G){G&&(Notification.permission==="default"?m.set("data.hidden",!1):Notification.permission==="granted"&&mZ("NotificationsDisabled").then(function(K){K||_.dU(m.hostElement,"yt-toggle-settings-switch",[m.data.id,!K]);m.set("data.hidden",!1)}).catch(function(){}))})})};
fd.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},basicContentViewModel:{component:"basic-content-view-model",noInjection:!0}}}}};
fd.prototype.handleUpdateOptionsCommand=function(m){(m=_.Q(m,_.$tB))&&this.data&&this.data.id===m.id&&(this.set("data.hidden",m.hidden),m.text!==void 0&&this.set("data.text",m.text),m.clearOptions&&this.set("data.options",[]))};
fd.prototype.onSwitchReady=fd.prototype.onSwitchReady;fd.prototype.dataChanged=fd.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],fd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fd.prototype,"data",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fd.prototype,"dataChanged",null);_.x([_.XC("yt-settings-switch-ready"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fd.prototype,"onSwitchReady",null);_.x([_.Ye({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],fd);
_.y(fd,"ytd-settings-options-renderer",function(){if(NZD!==void 0)return NZD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return NZD=m},{mode:1});var t7D;var xM=function(){return _.d.apply(this,arguments)||this};
_.n(xM,_.d);xM.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xM.prototype,"data",void 0);_.x([_.Ye({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],xM);
_.y(xM,"ytd-settings-sidebar-renderer",function(){if(t7D!==void 0)return t7D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return t7D=m},{mode:1});var F8W;var Xc=function(){return _.d.apply(this,arguments)||this};
_.n(Xc,_.d);Xc.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Xc.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
Xc.prototype.onYtExpanderMoreTapped=Xc.prototype.onYtExpanderMoreTapped;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Xc.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Xc.prototype,"data",void 0);
_.x([_.XC("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xc.prototype,"onYtExpanderMoreTapped",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Xc);
_.y(Xc,"ytd-product-details-description-renderer",function(){if(F8W!==void 0)return F8W;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return F8W=m},{mode:1});var QJO;var Sz=function(){var m=_.d.apply(this,arguments)||this;m.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";m.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";m.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";m.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return m};
_.n(Sz,_.d);Sz.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e_.Object.defineProperties(Sz.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:(G=m.offerData)==null?void 0:G.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?void 0:m.purchaseButtonRenderers)!==void 0&&((G=this.data)==null?void 0:G.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.formattedFromMerchantText)&&(!((G=this.data)==null||!G.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Sz.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Sz.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Sz.prototype,"data",void 0);
_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],Sz.prototype,"shippingIcon",void 0);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],Sz.prototype,"shippingAddressIcon",void 0);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],Sz.prototype,"googleGuaranteeIcon",void 0);
_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0}),_.S("design:type",Object)],Sz.prototype,"returnPolicyIcon",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Sz.prototype,"showAdditionalFees",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Sz.prototype,"showMultiPurchaseButtons",null);
_.x([_.E("data","showMultiPurchaseButtons"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Sz.prototype,"showPurchaseData",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Sz);
_.y(Sz,"ytd-product-details-hero-offer-renderer",function(){if(QJO!==void 0)return QJO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QJO=m},{mode:1});var acs;var oxE;var R1=function(){return _.d.apply(this,arguments)||this};
_.n(R1,_.d);_.w=R1.prototype;_.w.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.w.onKeyDown=function(m){m=m.keyCode;m!==13&&m!==32||this.handleSelection()};
_.w.onMouseEnterImage=function(){var m;((m=this.data)==null?void 0:m.thumbnailDetails)!==void 0&&_.PH(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.w.onMouseLeaveImage=function(){_.PH(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.w.handleSelection=function(){this.data&&_.Zw(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.e_.Object.defineProperties(R1.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.isSelected)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],R1.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],R1.prototype,"isSelected",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],R1);
_.y(R1,"ytd-product-details-thumbnail-renderer",function(){if(oxE!==void 0)return oxE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oxE=m},{mode:1});var Uq=function(){var m=_.d.apply(this,arguments)||this;var G={};m.actionMap=(G["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",G["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",G);m.selectedThumbnailIndex=0;m.selectItem=function(K){K.target.onKeyDown(K)};
return m};
_.n(Uq,_.d);_.w=Uq.prototype;_.w.handlePreviewImageSelect=function(m){this.hoverThumbnail=m};
_.w.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.w.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.w.onThumbnailSelected=function(m,G){this.selectedThumbnailIndex=G};
_.w.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.w.updateOffset=function(){var m=_.VL(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-m));this.ytdHorizontalListBehavior.reposition_()};
_.e_.Object.defineProperties(Uq.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null?0:m.imageRenderer){var G,K;return((G=this.data)==null?void 0:(K=G.imageRenderer)==null?void 0:K.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var m;if((m=this.data)==null?0:m.imageRenderer){var G;return(G=_.Q(this.data.imageRenderer[this.selectedThumbnailIndex],lNq))==null?void 0:G.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K,W,L=(W=(G=this.data)==null?void 0:(K=G.imageRenderer)==null?void 0:K.map(function(A,O){return{productDetailsThumbnailRenderer:Object.assign({},_.Q(A,lNq),{index:O,isSelected:O===m.selectedThumbnailIndex})}}))!=null?W:[];
return Object.assign({},this.data,{imageRenderer:L})}}});
Uq.prototype.updateOffset=Uq.prototype.updateOffset;Uq.prototype.dataChanged=Uq.prototype.dataChanged;Uq.prototype.onThumbnailSelected=Uq.prototype.onThumbnailSelected;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.HT.YtdHorizontalListBehavior),_.S("design:type",Object)],Uq.prototype,"ytdHorizontalListBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Uq.prototype,"componentBehavior",void 0);_.x([_.q([_.Pq.YtActionHandlerBehavior]),_.S("design:type",Object)],Uq.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Uq.prototype,"data",void 0);_.x([_.V({value:"$.items.children"}),_.S("design:type",String)],Uq.prototype,"itemsPath",void 0);_.x([_.V({value:3}),_.S("design:type",Number)],Uq.prototype,"initialCount",void 0);
_.x([_.UM("#items"),_.S("design:type",Object)],Uq.prototype,"items",void 0);_.x([_.V(),_.S("design:type",Object)],Uq.prototype,"selectedThumbnailIndex",void 0);_.x([_.V(),_.S("design:type",Object)],Uq.prototype,"hoverThumbnail",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Uq.prototype,"showThumbnails",null);
_.x([_.XC("ytd-product-details-thumbnail-renderer-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Number]),_.S("design:returntype")],Uq.prototype,"onThumbnailSelected",null);_.x([_.E("data","selectedThumbnailIndex","hoverThumbnail"),_.S("design:type",Object),_.S("design:paramtypes",[])],Uq.prototype,"thumbnailDetails",null);_.x([_.E("data","selectedThumbnailIndex"),_.S("design:type",Object),_.S("design:paramtypes",[])],Uq.prototype,"populatedData",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uq.prototype,"dataChanged",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Uq.prototype,"updateOffset",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Uq);
_.y(Uq,"ytd-product-details-image-carousel-renderer",function(){if(acs!==void 0)return acs;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return acs=m},{mode:2});var nx6;var zY=function(){return _.d.apply(this,arguments)||this};
_.n(zY,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],zY.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],zY.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],zY);
_.y(zY,"ytd-product-details-offer-renderer",function(){if(nx6!==void 0)return nx6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return nx6=m},{mode:1});var b0q;var le=function(){var m=_.d.apply(this,arguments)||this;m.isOffersHidden=!0;return m};
_.n(le,_.d);le.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var m,G=_.Q((m=this.data)==null?void 0:m.viewOffersButton,_.uu);G&&this.ytRendererBehavior.logExplicitClick(G)};
le.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.e_.Object.defineProperties(le.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return(K=_.Q((m=this.data)==null?void 0:(G=m.offers)==null?void 0:G[0],mOP))==null?void 0:(W=K.offerData)==null?void 0:W.vendorLogoUrl}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],le.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],le.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],le.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],le.prototype,"isOffersHidden",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],le.prototype,"firstOfferVendorLogoUrl",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],le);
_.y(le,"ytd-product-details-offers-container-renderer",function(){if(b0q!==void 0)return b0q;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return b0q=m},{mode:1});var vxq;var $v6;var BA=function(){return _.d.apply(this,arguments)||this};
_.n(BA,_.d);BA.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
BA.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.PH(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
BA.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.PH(this,"ytd-product-details-variant-image-unselect")};
_.e_.Object.defineProperties(BA.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 m;return((m=this.data)==null?void 0:m.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?void 0:m.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((K=this.data)==null?void 0:K.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var m;if(((m=this.data)==null?void 0:m.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var m,G;return this.isUnavailable?(m=this.data)==null?void 0:m.variantOptionUnavailableAccessibilityLabel:(G=this.data)==null?void 0:G.variantOptionAccessibilityLabel}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],BA.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],BA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],BA.prototype,"displayType",void 0);
_.x([_.E("displayType","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BA.prototype,"isImageButton",null);_.x([_.E("displayType","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BA.prototype,"isPillButton",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BA.prototype,"isActive",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BA.prototype,"isUnavailable",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],BA.prototype,"thumbnailDetails",null);_.x([_.E("isUnavailable","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],BA.prototype,"accessibilityLabel",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],BA);
_.y(BA,"ytd-product-details-variant-option-renderer",function(){if($v6!==void 0)return $v6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return $v6=m},{mode:1});var sJE;var Mi=function(){var m=_.d.apply(this,arguments)||this;m.variantsExpanded=!1;m.hideShowMoreLessVariantButton=!0;m.initialized=!1;m.computeVariantsDebouncer=null;m.computeVariants=function(G){G=G===void 0?!1:G;m.variantsExpanded||m.showOptions()||!G||(m.variantsExpanded=!0);if(m.variantsExpanded){G=_.g(m.items.children);for(var K=G.next();!K.done;K=G.next())K.value.hidden=!1}m.initialized=!0};
return m};
_.n(Mi,_.d);_.w=Mi.prototype;_.w.ready=function(){var m=this;setTimeout(function(){m.computeVariants(!0)})};
_.w.showOptions=function(){for(var m=_.g(this.items.children),G=m.next();!G.done;G=m.next())G.value.hidden=!0;var K=this.container.getBoundingClientRect().width,W=0,L=m=0;G=!1;for(var A=_.g(this.items.children),O=A.next();!O.done;O=A.next()){O=O.value;O.hidden=!1;var c=O.getBoundingClientRect().width;if(W+c<K)W+=c;else if(++L<2)W=c;else break;m+=1;O.hasAttribute("is-active")&&(G=!0)}for(K=m;K<this.items.children.length;K++)this.items.children[K].hidden=!0;this.hideShowMoreLessVariantButton=m===this.items.children.length;
return G};
_.w.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.C2(this.computeVariantsDebouncer,_.o9.after(100),this.computeVariants)};
_.w.onShowMoreLessVariantsButtonClick=function(){var m;(m=this.data)!=null&&m.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.w.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.e_.Object.defineProperties(Mi.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.variantOptionRenderers)==null?void 0:G.find(function(A){return _.Q(A,MEO).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),W,L;
return(L=(W=_.Q(K,MEO))==null?void 0:W.name)!=null?L:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.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"}}}});
Mi.prototype.debouncedComputeVariants=Mi.prototype.debouncedComputeVariants;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Mi.prototype,"componentBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],Mi.prototype,"ironResizableBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Mi.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Mi.prototype,"variantsExpanded",void 0);_.x([_.V(),_.S("design:type",Object)],Mi.prototype,"hideShowMoreLessVariantButton",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Mi.prototype,"initialized",void 0);_.x([_.UM("#items"),_.S("design:type",HTMLDivElement)],Mi.prototype,"items",void 0);_.x([_.UM("#container"),_.S("design:type",HTMLDivElement)],Mi.prototype,"container",void 0);
_.x([_.UM("#more-variants-button"),_.S("design:type",HTMLElement)],Mi.prototype,"moreVariantsButton",void 0);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Mi.prototype,"selectedOptionName",null);_.x([_.Sb("data","variantsExpanded"),_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Mi.prototype,"debouncedComputeVariants",null);
_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],Mi.prototype,"displayType",null);_.x([_.E("displayType"),_.S("design:type",Object),_.S("design:paramtypes",[])],Mi.prototype,"variantItemsClassname",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Mi);
_.y(Mi,"ytd-product-details-variant-renderer",function(){if(sJE!==void 0)return sJE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sJE=m},{mode:1});var TY=function(){return _.d.apply(this,arguments)||this};
_.n(TY,_.d);
TY.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"}}}};
_.e_.Object.defineProperties(TY.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(G=_.Q((m=this.data)==null?void 0:m.offersContainerRenderer,Tw6))==null?void 0:G.offers;return K!==void 0&&(K==null?void 0:K.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 m,G,K;return((K=(m=this.data)==null?void 0:(G=m.variants)==null?void 0:G.map(function(W){var L,A;W=(A=(L=_.Q(W,Bws))==null?void 0:L.variantOptionRenderers)==null?void 0:A.find(function(c){var u;return((u=_.Q(c,MEO))==null?void 0:u.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var O;return(O=_.Q(W,MEO))==null?void 0:O.name}).filter(function(W){return typeof W==="string"}))!=null?K:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W=(G=_.Q((m=this.data)==null?void 0:m.shoppingFlaggingRenderer,iuG))==null?void 0:(K=G.reportButton)==null?void 0:K.buttonRenderer;if(W)return{text:W.text,command:W.command,icon:{iconType:"FLAG"},accessibilityData:W.accessibilityData,trackingParams:W.trackingParams,loggingDirectives:W.loggingDirectives}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],TY.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],TY.prototype,"data",void 0);_.x([_.UM("#image-carousel-renderer"),_.S("design:type",Object)],TY.prototype,"imageCarouselRenderer",void 0);
_.x([_.UM("#hero-offer-renderer"),_.S("design:type",Object)],TY.prototype,"productDetailsHeroOfferRenderer",void 0);_.x([_.UM("#variants"),_.S("design:type",Object)],TY.prototype,"productDetailsVariantRenderer",void 0);_.x([_.UM("#offers"),_.S("design:type",Object)],TY.prototype,"productDetailsOffersContainerRenderer",void 0);_.x([_.UM("#description-renderer"),_.S("design:type",Object)],TY.prototype,"productDetailsDescriptionRenderer",void 0);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showPurchaseData",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showHeroOfferRenderer",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showBrandText",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showOffers",null);
_.x([_.E("showOffers","showPurchaseData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showBuySeparator",null);_.x([_.E("showOffers","showPurchaseData"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],TY.prototype,"showBuyCard",null);_.x([_.E("data"),_.S("design:type",String),_.S("design:paramtypes",[])],TY.prototype,"selectedVariantsText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],TY.prototype,"shoppingReportingButtonData",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],TY);
_.y(TY,"ytd-product-details-renderer",function(){if(vxq!==void 0)return vxq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vxq=m},{mode:1});var qkz;var ExD;var H0D;var mV=function(){return _.d.apply(this,arguments)||this};
_.n(mV,_.d);mV.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.e_.Object.defineProperties(mV.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],mV.prototype,"formattedAmount",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],mV.prototype,"ariaLabel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data.style"),_.S("design:type",String),_.S("design:paramtypes",[])],mV.prototype,"vcBalanceWidgetStyle",null);_.x([_.cL({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],mV);
_.y(mV,"yt-vc-balance-renderer",function(){if(H0D===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ExD===void 0&&(ExD=document.createElement("template"));var W=ExD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);H0D=m}m=H0D;return m},{mode:2});_.Kz("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var il=function(){return _.d.apply(this,arguments)||this};
_.n(il,_.d);_.e_.Object.defineProperties(il.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:""}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],il.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],il.prototype,"data",void 0);_.x([_.V({selectorArgs:["data.vcBalanceEntityKey"],selector:function(m,G){return _.yx(m.entities,"vcBalanceEntity",G)}}),
_.S("design:type",Object)],il.prototype,"vcBalanceEntity",void 0);_.x([_.E("vcBalanceEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],il.prototype,"formattedAmount",null);_.x([_.E("vcBalanceEntity"),_.S("design:type",String),_.S("design:paramtypes",[])],il.prototype,"vcBalanceAriaLabel",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],il);
_.y(il,"ytd-vc-balance-renderer",function(){if(qkz!==void 0)return qkz;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return qkz=m},{mode:1});var IcD;var G2=function(){var m=_.d.apply(this,arguments)||this;m.expandableCustomTabRenderable=function(G){return N1G(G,function(){return void m.onSearchNavigate()})};
return m};
_.n(G2,_.d);G2.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
G2.prototype.onSearchNavigate=function(){this.selected=void 0};
G2.prototype.onTabsChange=function(){var m,G=(m=this.tabs)==null?void 0:m.findIndex(function(K){var W;return K==null?void 0:(W=K.tabRenderer)==null?void 0:W.selected});
G!==void 0&&(this.selected=G)};
G2.prototype.onTabsActive=function(m){if(this.tabs!==void 0){var G,K;(m=(G=this.tabs[m.detail.selected])==null?void 0:(K=G.tabRenderer)==null?void 0:K.endpoint)&&_.Zw(this.hostElement,"yt-navigate",{endpoint:m})}};
_.e_.Object.defineProperties(G2.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:FNq(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
G2.prototype.onTabsChange=G2.prototype.onTabsChange;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.un),_.S("design:type",Object)],G2.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],G2.prototype,"ytdGuideStateAwareBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],G2.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],G2.prototype,"tabs",void 0);_.x([_.V(),_.S("design:type",Number)],G2.prototype,"selected",void 0);_.x([_.E("tabs.*"),_.S("design:type",Object),_.S("design:paramtypes",[])],G2.prototype,"tabGroupShape",null);_.x([_.V(),_.S("design:type",Object)],G2.prototype,"expandableCustomTabRenderable",void 0);
_.x([_.E("tabs"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],G2.prototype,"tabsEnabled",null);_.x([_.Mg("tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G2.prototype,"onTabsChange",null);_.x([_.Ye({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],G2);
_.y(G2,"ytd-topic-channel-details-renderer",function(){if(IcD!==void 0)return IcD;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IcD=m},{mode:1});var jJu;var Kh=function(){var m=_.d.apply(this,arguments)||this;m.disableGridStateAware=!1;return m};
_.n(Kh,_.d);Kh.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]]"}}}}}};
Kh.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Kh.prototype.updateCssVars=function(){_.eb(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.U8("rich_grid_max_item_width",500))+16)-16+"px"})};
Kh.prototype.updateCssVars=Kh.prototype.updateCssVars;Kh.prototype.activeChanged=Kh.prototype.activeChanged;_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Kh.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Kh.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Kh.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],Kh.prototype,"tabs",void 0);_.x([_.V(),_.S("design:type",Boolean)],Kh.prototype,"active",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Kh.prototype,"disableGridStateAware",void 0);
_.x([_.V({selector:_.Ov}),_.S("design:type",Number)],Kh.prototype,"richGridItemsPerRow",void 0);_.x([_.V({selector:_.g6}),_.S("design:type",Boolean)],Kh.prototype,"richGridMiniMode",void 0);_.x([_.UM("ytd-carousel-item-renderer"),_.S("design:type",Object)],Kh.prototype,"carousel",void 0);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kh.prototype,"activeChanged",null);
_.x([_.Sb("richGridItemsPerRow","richGridMiniMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Kh.prototype,"updateCssVars",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Kh);
_.y(Kh,"ytd-carousel-header-renderer",function(){if(jJu!==void 0)return jJu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return jJu=m},{mode:1});var k3z;var C4O=_.nY(["https://www.google-analytics.com/analytics.js"]),WP=function(){var m=_.d.apply(this,arguments)||this;m.scriptAnalyticsAdded=!1;return m};
_.n(WP,_.d);WP.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var m,G=(m=this.data)==null?void 0:m.tagManagerId;G&&(_.MQ(G,_.E8("GL")),wFu(G))};
WP.prototype.sendGoogleAnalyticsPageview=function(m){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var K=_.mb.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(K)};
var G=window.ga;G("set","page",window.location.pathname);G.l=+new Date;G("set","forceSSL",!0);G("create",m,"'auto'");G("send","pageview")};
WP.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var m=_.M7("SCRIPT");m.name="ga-analytics";var G=_.vE(C4O);_.Jt(m,G);m.async=!0;_.VL(this.hostElement).appendChild(m)};
WP.prototype.dataChanged=WP.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],WP.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WP.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],WP);
_.y(WP,"ytd-channel-metadata-renderer",function(){if(k3z!==void 0)return k3z;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return k3z=m},{mode:1});var V7D;var Z0O;var dv6=function(){return _.d.apply(this,arguments)||this};
_.n(dv6,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dv6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dv6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],dv6);
_.y(dv6,"ytd-sub-feed-option-renderer",function(){if(Z0O!==void 0)return Z0O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Z0O=m},{mode:1});var P46;var Lh=function(){return _.d.apply(this,arguments)||this};
_.n(Lh,_.d);Lh.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Lh.prototype,"ytRendererStamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lh.prototype,"data",void 0);_.x([_.Ye({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Lh);
_.y(Lh,"ytd-sub-feed-selector-renderer",function(){if(P46!==void 0)return P46;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return P46=m},{mode:1});var Aq=function(){return _.d.apply(this,arguments)||this};
_.n(Aq,_.d);
Aq.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}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Aq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Aq.prototype,"data",void 0);_.x([_.Ye({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Aq);
_.y(Aq,"ytd-browse-feed-actions-renderer",function(){if(V7D!==void 0)return V7D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return V7D=m},{mode:1});var yE5;var e8O;var w4=function(){return _.d.apply(this,arguments)||this};
_.n(w4,_.d);w4.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],w4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],w4.prototype,"data",void 0);_.x([_.Ye({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],w4);
_.y(w4,"ytd-mini-channel-renderer",function(){if(e8O!==void 0)return e8O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e8O=m},{mode:1});var fcP;var g4=function(){return _.d.apply(this,arguments)||this};
_.n(g4,_.d);g4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],g4.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],g4);
_.y(g4,"ytd-vertical-channel-section-renderer",function(){if(fcP!==void 0)return fcP;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fcP=m},{mode:1});var OC=function(){return _.d.apply(this,arguments)||this};
_.n(OC,_.d);OC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],OC.prototype,"data",void 0);_.x([_.Ye({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],OC);
_.y(OC,"ytd-browse-secondary-contents-renderer",function(){if(yE5!==void 0)return yE5;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return yE5=m},{mode:1});var xvW;var cP=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};m.notActive=!1;m.isConstrainedList=!1;m.marginSettings=0;return m};
_.n(cP,_.d);_.w=cP.prototype;
_.w.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]",marginSettings:"[[marginSettings]]"},matcher:function(m){var G;return(m==null?void 0:(G=m.webComponentHint)==null?void 0:G.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}}}}};
_.w.getPath=function(m,G){var K="data.tabs.#"+G+".";m.tabs[G].tabRenderer?K+="tabRenderer.":m.tabs[G].expandableTabRenderer&&(K+="expandableTabRenderer.");return K+"content.sectionListRenderer"};
_.w.computeDisplayedContent=function(m){this.unlinkPaths("content");if(m&&m.tabs)for(var G=m.tabs.length,K=0;K<G;K++){var W=m.tabs[K].tabRenderer||m.tabs[K].expandableTabRenderer;if(W.selected&&W.content)return this.linkPaths("content",this.getPath(m,K)),W.content}return null};
_.w.computeHasSecondaryColumnData=function(m){return!!m&&!!m.secondaryContents};
_.w.onRetrieveLocation=function(m,G){G.locationRetrieved(G.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);m.stopPropagation()};
_.w.onYtServiceRequestSent=function(m,G){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.w.onYtServiceRequestCompleted=function(m,G){_.F("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(G)};
_.w.onReplaceFeedContentAction=function(m){if(!_.F("replace_feed_content_action_killswitch")&&!this.notActive){var G;(m=(G=_.Q(m,yrE))==null?void 0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(m)}};
_.w.handleServiceRequestActions=function(m){if(m=m.actions){m=_.g(m);for(var G=m.next();!G.done;G=m.next()){G=G.value;var K=void 0;((K=_.Q(G,yrE))==null?0:K.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Q(G,yrE).items)}}};
cP.prototype.onYtServiceRequestCompleted=cP.prototype.onYtServiceRequestCompleted;cP.prototype.onYtServiceRequestSent=cP.prototype.onYtServiceRequestSent;cP.prototype.onRetrieveLocation=cP.prototype.onRetrieveLocation;_.x([_.q(_.un),_.S("design:type",Object)],cP.prototype,"ytdGridStateAwareBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],cP.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cP.prototype,"data",void 0);_.x([_.V({computed:"computeDisplayedContent(data)"}),_.S("design:type",Object)],cP.prototype,"content",void 0);
_.x([_.V({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],cP.prototype,"hasSecondaryColumnData",void 0);_.x([_.V({value:function(){return window.outerHeight>1024?3:2}}),
_.S("design:type",Number)],cP.prototype,"initialCount",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],cP.prototype,"pageSubtype",void 0);_.x([_.UM("ytd-section-list-renderer"),_.S("design:type",Object)],cP.prototype,"listRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],cP.prototype,"notActive",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],cP.prototype,"isConstrainedList",void 0);
_.x([_.V(),_.S("design:type",String)],cP.prototype,"responsiveSizing",void 0);_.x([_.V(),_.S("design:type",Number)],cP.prototype,"marginSettings",void 0);_.x([_.XC("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],cP.prototype,"onRetrieveLocation",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],cP.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],cP.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],cP);
_.y(cP,"ytd-two-column-browse-results-renderer",function(){if(xvW!==void 0)return xvW;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return xvW=m},{mode:2});var XIu;var SkP;var YB=function(){var m=_.d.apply(this,arguments)||this;m.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"]);m.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"]);m.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return m};
_.n(YB,_.d);_.w=YB.prototype;_.w.attached=function(){this.requestElementsPerRow()};
_.w.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_]]"}}}}}};
_.w.onUpdateElementsPerRowAction=function(m){m&&this.elementsPerRow!==m&&(this.elementsPerRow=m)};
_.w.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.w.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.w.computeAlertStyle_=function(m){return m};
_.w.observerElementsPerRow=function(){this.elementsPerRow&&_.eb(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.w.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.w.requestElementsPerRow=function(){_.Zw(this.hostElement,"yt-request-elements-per-row")};
YB.prototype.onIsVisibleChanged_=YB.prototype.onIsVisibleChanged_;YB.prototype.observerElementsPerRow=YB.prototype.observerElementsPerRow;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],YB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],YB.prototype,"actionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],YB.prototype,"data",void 0);_.x([_.V({value:6,reflectToAttribute:!0}),_.S("design:type",Number)],YB.prototype,"elementsPerRow",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],YB.prototype,"wrapButtons",void 0);_.x([_.V({value:_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.S("design:type",Boolean)],YB.prototype,"isMusic",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.S("design:type",String)],YB.prototype,"alertStyle",void 0);_.x([_.V({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.S("design:type",Function)],YB.prototype,"dismissBoundButtonTap_",void 0);_.x([_.V({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.S("design:type",Function)],YB.prototype,"acceptBoundButtonTap_",void 0);_.x([_.Sb("elementsPerRow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YB.prototype,"observerElementsPerRow",null);_.x([_.Sb("data.isVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YB.prototype,"onIsVisibleChanged_",null);_.x([_.cL({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],YB);
_.y(YB,"yt-alert-with-actions-renderer",function(){if(SkP===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;XIu===void 0&&(XIu=document.createElement("template"));var W=XIu;K.call(G,W.content.cloneNode(!0),m.content.firstChild);SkP=m}m=SkP;return m},{mode:2});var R8s=_.P(function(m){var G={};return _.r(_.Nm,{text:m.text,className:_.VO("ytPersonalGreetingViewModelHeadline",(G.ytPersonalGreetingViewModelHeadlineSmall=m.isSmallHeadline,G))})},"vk");_.sh(_.P(function(m){var G=_.On(function(){var D;return(D=m.data())==null?void 0:D.rendererContext},void 0,void 0,void 0,!0),K=function(){return m.data().canvasPromoData},W=function(){var D;
return(D=m.data().bannerHeight)!=null?D:56},L=_.g(_.BR({throttleMs:100})),A=L.next().value;
L=L.next().value;var O=_.g(_.BR({throttleMs:100})),c=O.next().value;O=O.next().value;var u=_.g(_.BR({throttleMs:100})),h=u.next().value;u=u.next().value;var J=function(){return c.width()-A.width()>1},N=function(){return W()===48};
return _.r("yt-personal-greeting-view-model",{el:_.aC(G,L),"aria-hidden":J,class:_.VO(m.className,"ytPersonalGreetingViewModelHost"),style:_.eA({height:(0,_.uo)(function(){return J()?0:W()})})},_.r(_.p,{cond:function(){return m.data().avatar&&!(h.width()+(m.data().avatar?48:0)-A.width()>1)},
then:function(){return _.r(_.z$,{data:function(){return m.data().avatar}},{decoratedAvatarViewModel:function(D){return _.r(_.cr,{data:D.data,
className:_.VO("ytPersonalGreetingViewModelAvatar")})}})}}),_.r("h1",null,_.r(R8s,{text:function(){var D;
return(K==null?void 0:(D=K())==null?void 0:D.headline)||(h.width()+(m.data().avatar?48:0)-A.width()>1?m.data().shorterGreeting:m.data().greeting)},
isSmallHeadline:N})),_.r("span",{el:_.aC(u),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.r(R8s,{text:function(){return m.data().greeting},
isSmallHeadline:N})),_.r("span",{el:_.aC(O),class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},_.r(R8s,{text:function(){return m.data().shorterGreeting},
isSmallHeadline:N})))},"uk"),"yt-personal-greeting-view-model",{props:{data:_.Dd,
className:_.Dd}});var r4=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;m.isConstrainedList=!1;m.responsiveSizing="COMPACT";m.attachedPlayers=_.F("kevlar_channel_trailer_multi_attach")?[]:void 0;m.player=null;m.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return m};
_.n(r4,_.d);_.w=r4.prototype;
_.w.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}}}}};
_.w.created=function(){var m=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){m.disposeMastheadAd()}]};
_.w.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new ut5(this.refresh,this.contents))};
_.w.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.w.activeChanged=function(){var m=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=m)};
_.w.tabsChanged=function(){var m=this,G,K;if(this.pageSubtype==="channels"||_.F("kevlar_tab_gestures_for_tabbed_header_data")&&((G=this.data)==null?0:(K=G.header)==null?0:K.carouselHeaderRenderer))this.tabGestures=new Jqu(this.contents,this.contents,this.hostElement,this.header,function(O){m.ytdReduxBehavior.dispatch(O)});
var W,L,A;G=(W=this.data)==null?void 0:(L=W.contents)==null?void 0:(A=L.twoColumnBrowseResultsRenderer)==null?void 0:A.tabs;this.tabGestures&&this.tabGestures.tabsChanged(G)};
_.w.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.w.engagementPanelsChanged=function(){var m=_.xS().resolve(_.Wx);if(m){if(this.engagementPanels)for(var G=_.g(this.engagementPanels),K=G.next();!K.done;K=G.next()){var W=void 0;(K=(W=K.value.identifier)==null?void 0:W.tag)&&m.panelMap.delete(K)}this.engagementPanels=[];var L;G=_.g(((L=this.data)==null?void 0:L.panels)||[]);for(L=G.next();!L.done;L=G.next()){L=_.Q(L.value,xOD);var A=K=void 0,O=void 0,c=void 0;if(W=((K=L)==null?void 0:K.targetId)||((A=L)==null?void 0:A.panelIdentifier)||((O=L)==null?
void 0:(c=O.identifier)==null?void 0:c.tag))A=K=void 0,(A=(K=m).registerPanelContent)==null||A.call(K,W,{engagementPanelSectionListRenderer:L}),this.engagementPanels.push(L)}}};
_.w.onStampFinished=function(){var m=this;_.Pv(this,function(){if(m.tabGestures){var G=m.tabGestures;if(G.scrollPositionNeedsUpdate){var K=_.xS().resolve(_.fn(_.$g)),W;if((W=G.selectedTab)!=null&&W.title&&K&&(W=K.getCurrentPage())){if(G.scrollPositionForTabs.has(G.selectedTab.title)){var L,A;K=(A=(L=K.getCurrentPage())==null?void 0:L.clientHeight)!=null?A:0;L=G.scrollPositionForTabs.get(G.selectedTab.title);W.setScrollTop(L);K>L+100&&(G.scrollPositionNeedsUpdate=!1)}else W.setScrollTop(Math.min(G.lastVisitedTabScrollPosition!==
void 0?G.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,G.tabsStartAtInPx)),G.scrollPositionNeedsUpdate=!1;G.ytdReduxDispatch(X0P(!1))}}}})};
_.w.loadPage_=function(m){this.initCsi();m&&(this.data=m);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.w.getTitle=function(m){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",m))return this.get("microformat.microformatDataRenderer.title",m);if(this.get("header.feedTabbedHeaderRenderer.title",m))return _.bw(this.get("header.feedTabbedHeaderRenderer.title",m));if(this.get("header.interactiveTabbedHeaderRenderer.title",m))return this.get("header.interactiveTabbedHeaderRenderer.title",m);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
m))return _.bw(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",m));var G,K;return(m==null?0:(G=m.header)==null?0:(K=G.pageHeaderRenderer)==null?0:K.pageTitle)?m.header.pageHeaderRenderer.pageTitle:""};
_.w.updateTitle=function(m){_.Zw(this.hostElement,"yt-update-title",this.getTitle(m))};
_.w.initCsi=function(){D85(this.pageSubtype||"browse",["ol","cpt"])};
_.w.getPlayer=function(){if(_.F("kevlar_channel_trailer_multi_attach")){for(var m=_.g(this.attachedPlayers),G=m.next();!G.done;G=m.next())if(G=G.value,G.isConnected||_.Hg(this.hostElement,G))return G;return null}return this.player};
_.w.getPlayerContainer=function(){return null};
_.w.onPlayerAttached=function(m,G){_.F("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(G):this.player=G};
_.w.onPlayerDetached=function(m,G){_.F("kevlar_channel_trailer_multi_attach")?(m=this.attachedPlayers.indexOf(G),m<0||this.attachedPlayers.splice(m,1)):this.player=null};
_.w.getServiceTrackingParams=function(){var m,G;return((m=this.data)==null?void 0:(G=m.responseContext)==null?void 0:G.serviceTrackingParams)||[]};
_.w.setMastheadAd=function(m){m&&m.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=m&&m.mastheadAd};
_.w.dataChanged=function(){var m=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||s7z();_.Pv(this,function(){_.PH(m.hostElement,"ytd-update-grid-state-action")})};
_.w.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.w.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var m=this.data.alerts;return m&&m.find(function(G){return!!G.alertWithActionsRenderer})}};
_.w.computeGreetingData=function(){if(this.data&&this.data.alerts){var m=this.data.alerts;return m&&m.find(function(G){return!!G.personalGreetingViewModel})}};
_.w.computeHasMemberHubProfileRenderer=function(m){var G;return!!(m==null?0:(G=m.header)==null?0:G.memberHubProfileRenderer)};
_.w.handleAlertCommand=function(m){this.get("alertCommand.alert.alertWithActionsRenderer",m)&&(m=_.Q(m,LMO),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",m.alert))};
_.w.handleYtPlaylistDeletionRedirect=function(m){m=this.get("playlistDeletionRedirectCommand.redirectEndpoint",m);_.Zw(this.hostElement,"yt-navigate",{endpoint:m})};
_.w.computeFluidWidth=function(m,G,K){if(G==="mini_app"||K)return!0;var W,L,A;m=m==null?void 0:(W=m.contents)==null?void 0:(L=W.twoColumnBrowseResultsRenderer)==null?void 0:(A=L.tabs)==null?void 0:A.find(function(u){var h;return u==null?void 0:(h=u.tabRenderer)==null?void 0:h.selected});
if(!m)return!1;var O,c;return!!((O=m.tabRenderer)==null?0:(c=O.content)==null?0:c.richGridRenderer)&&!["channel","channels","playables"].includes(G)};
_.w.computeHeaderFluidWidth=function(m){return m==="hashtag-landing-page"};
_.w.computeHasSidebar=function(m){var G;return!!(m.sidebar||((G=m.header)==null?0:G.playlistHeaderRenderer))};
_.w.computeHasPageHeaderSidebar=function(m){var G,K;return!!((G=m.header)==null?0:(K=G.pageHeaderRenderer)==null?0:K.enableSidebarView)};
_.w.computeUseUnifiedShowPageLayout=function(m){if(!m||this.pageSubtype!=="show"||!m.sidebar||!m.sidebar.playlistSidebarRenderer)return!1;m=m.sidebar.playlistSidebarRenderer;if(!m.items)return!1;for(var G=0;G<m.items.length;G++)if(_.Q(m.items[G],Ia5)){var K=void 0;return((K=_.Q(m.items[G],Ia5))==null?void 0:K.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.w.computeIsConstrainedList=function(m){return m==="subscriptions-channels"};
_.w.computeResponsiveSizing=function(m){return m==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.e_.Object.defineProperties(r4.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G;return((m=this.data)==null?0:(G=m.header)==null?0:G.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var m,G;if(!((m=this.data)==null?0:(G=m.sidebar)==null?0:G.playlistSidebarRenderer))return!1;var K;return(K=this.data)!=null&&K.header?!1:!0}}});
_.e_.Object.defineProperties(r4,{template:{configurable:!0,enumerable:!0,get:function(){if(N4E===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);N4E=m}m=N4E;return m}}});
r4.prototype.dataChanged=r4.prototype.dataChanged;r4.prototype.onPlayerDetached=r4.prototype.onPlayerDetached;r4.prototype.onPlayerAttached=r4.prototype.onPlayerAttached;r4.prototype.onStampFinished=r4.prototype.onStampFinished;r4.prototype.engagementPanelsChanged=r4.prototype.engagementPanelsChanged;r4.prototype.scrollAtTopChanged=r4.prototype.scrollAtTopChanged;r4.prototype.tabsChanged=r4.prototype.tabsChanged;r4.prototype.activeChanged=r4.prototype.activeChanged;
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],r4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],r4.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],r4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],r4.prototype,"ytdReduxBehavior",void 0);_.x([_.q(ra.YtPageBehavior),_.S("design:type",Object)],r4.prototype,"ytPageBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],r4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],r4.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],r4.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],r4.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],r4.prototype,"hidden",void 0);
_.x([_.V(),_.S("design:type",Object)],r4.prototype,"mastheadAdData",void 0);_.x([_.V({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.S("design:type",Object)],r4.prototype,"alertBannerData",void 0);_.x([_.V({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.S("design:type",Object)],r4.prototype,"greetingData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],r4.prototype,"pageSubtype",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.S("design:type",Boolean)],r4.prototype,"hasMemberHubProfileRenderer",void 0);_.x([_.V({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],r4.prototype,"hasSidebar",void 0);_.x([_.V({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],r4.prototype,"hasPageHeaderSidebar",void 0);
_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],r4.prototype,"roundedContainer",void 0);_.x([_.V({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],r4.prototype,"useUnifiedShowPageLayout",void 0);_.x([_.V({computed:"computeIsConstrainedList(pageSubtype)"}),_.S("design:type",Object)],r4.prototype,"isConstrainedList",void 0);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],r4.prototype,"usePlaylistHeaderRenderer",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],r4.prototype,"useOldPlaylistSidebarRenderer",null);_.x([_.V({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.S("design:type",Boolean)],r4.prototype,"fluidWidth",void 0);_.x([_.V({selector:aeE}),_.S("design:type",Boolean)],r4.prototype,"scrollAtTop",void 0);
_.x([_.V({selector:oTi}),_.S("design:type",Boolean)],r4.prototype,"tabGesturesIsActive",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.S("design:type",Boolean)],r4.prototype,"disableHeaderFluidWidth",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.S("design:type",String)],r4.prototype,"responsiveSizing",void 0);
_.x([_.UM("ytd-two-column-browse-results-renderer"),_.S("design:type",HTMLElement)],r4.prototype,"contents",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],r4.prototype,"header",void 0);_.x([_.UM("ytd-refresh"),_.S("design:type",Object)],r4.prototype,"refresh",void 0);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"activeChanged",null);
_.x([_.Sb("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"tabsChanged",null);_.x([_.Sb("scrollAtTop"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"scrollAtTopChanged",null);_.x([_.V(),_.S("design:type",Object)],r4.prototype,"engagementPanels",void 0);
_.x([_.Sb("data.panels"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"engagementPanelsChanged",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"onStampFinished",null);_.x([_.XC("yt-player-attached"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Element]),_.S("design:returntype")],r4.prototype,"onPlayerAttached",null);
_.x([_.XC("yt-player-detached"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Element]),_.S("design:returntype")],r4.prototype,"onPlayerDetached",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],r4.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-browse"})],r4);var Uv5,z85=function(){if(Uv5!==void 0)return Uv5;var m=document.createElement("template");_.b(m,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Uv5=m};var ul=function(){var m=_.d.apply(this,arguments)||this;m.currentPage=void 0;m.renderLoadingStateJobId=0;m.updatePageDataJobId=0;m.pageDisposeJobsets=new WeakMap;m.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"};m.shouldApplyLockupToWatchTransition=_.F("web_thumbnail_to_watch_transition");m.shouldApplySlideTransition=_.zf("web_page_transition_type")==="slide"||_.F("enable_plj_landing_page");m.shouldApplyLearningJourneyTransition=_.F("enable_plj_landing_page");m.TEST_ONLY=void 0;return m};
_.n(ul,_.d);_.w=ul.prototype;_.w.ready=function(){var m=_.xS();m.addProvider({provide:_.$g,useValue:this});m.addProvider({provide:_.Eo6,useValue:this})};
_.w.created=function(){this.pagePool=new CeW;this.contextSwitcher=new mH6};
_.w.attached=function(){_.Zw(this.hostElement,"attached");var m=_.xS().resolve(_.fn(_.M_));m&&(this.contextSwitcher.JSC$20131_networkService_=m);this.viewTransitionManager=_.xS().resolve(_.TE)};
_.w.getPageOffset=function(m){return m.getScrollTop()};
_.w.setPageOffset=function(m,G){try{m.setScrollTop(G)}catch(K){}};
_.w.setPageOffsetForNavigation=function(m,G){_.Zw(this.hostElement,"yt-navigate-set-page-offset",{page:m,offset:G===void 0?0:G})};
_.w.pauseActiveContext=function(){var m=this.contextSwitcher;m.activeContext_&&m.activeContext_.pause()};
_.w.attachPage=function(m){var G,K=!_.F("pc_is_attached_ks")&&(m==null?void 0:(G=m.polymerController)==null?void 0:G.isAttached);if(!m.isAttached&&!K)try{_.VL(this.hostElement).appendChild(m)}catch(L){var W;_.nc(new _.cw("Error attaching page element for component",{origin:(W=this.currentPage)==null?void 0:W.is,component:m.is}))}};
_.w.setActivePage=function(m,G){var K=this,W=!1,L=function(){var A=K.isOnWatch(),O=K.currentPage;if(m)if(m!==K.currentPage){O&&(O.hidden=!0,O.active=!1,O.removeAttribute("role"));K.currentPage=m;var c,u=G!=null?G:_.XQ((c=K.data)==null?void 0:c.endpoint);O&&_.Zw(K.hostElement,"yt-page-type-changed",{oldPageType:O.is,newPageType:m.is,newPageSubtype:u});_.nD().dispatch(_.kt({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:m.is}));_.nD().dispatch(_.kt({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:u||""}));
m.hidden=!1;K.attachPage(m);m.active=!0;m.setAttribute("role","main");O&&K.setPageOffsetForNavigation(m,0);_.F("kevlar_remove_page_dom_on_switch")&&!A&&O&&_.VL(K.hostElement).removeChild(O)}else W=!0;else K.handleMissingDestinationPage(O)};
this.shouldRunBrowseTransition(this.currentPage,m)?AZu(this.viewTransitionManager,L):this.shouldRunLearningJourneyTransition(this.currentPage,m)?O2P(this.viewTransitionManager,L):L();return W};
_.w.handleMissingDestinationPage=function(m){if(this.isColdLoadForUnknownPage(m))_.nc(new _.cw("Cold load for unknown page"));else{var G;m=new _.cw("Unable to set active page",m?m.is:"unknown origin",(G=this.data)==null?void 0:G.endpoint);_.am(m)}};
_.w.isColdLoadForUnknownPage=function(m){return!m&&SX(this.data)==="unknown"};
_.w.shouldRunBrowseTransition=function(m,G){return this.shouldApplySlideTransition&&(m==null?void 0:m.is)==="ytd-browse"&&(G==null?void 0:G.is)==="ytd-browse"&&m!==G};
_.w.shouldRunLearningJourneyTransition=function(m,G){return this.shouldApplyLearningJourneyTransition&&(m==null?void 0:m.is)==="ytd-browse"&&((G==null?void 0:G.is)==="ytd-watch-learning-journey"||(G==null?void 0:G.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.w.shouldRunWatchNextLoadedTransition=function(m,G){return this.viewTransitionManager&&m.is==="ytd-watch-flexy"&&G};
_.w.updatePageData=function(m){var G=this,K=this.data;this.updatePageDataJobId&&_.Fu.cancelJob(this.updatePageDataJobId);this.data=m;return new _.iO(function(W){var L=function(){m.filler?G.performDataUpdate(m,K):Mms(function(){G.performDataUpdate(m,K)});
var A=_.tf();_.Fi(A,"cr")||A.processSignal("cr");W()};
m&&m.page==="watch"?G.updatePageDataJobId=_.mn(_.Fu,L):L()})};
_.w.isDownloadsPage=function(m){var G,K;return(m==null?void 0:(G=m.endpoint)==null?void 0:(K=G.browseEndpoint)==null?void 0:K.browseId)==="FEdownloads"};
_.w.setPlayerSyncInterval=function(m){var G;return _.Y(function(K){if(K.nextAddress==1)return K.yield(_.xS().resolve(_.kg),2);G=K.yieldResult;G.setUpPositionSyncInterval(m);_.ey(K)})};
_.w.performDataUpdate=function(m,G){_.F("kevlar_early_popup_close")||_.dU(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var K=!m.filler;K&&(_.Yt("lps"),_.F("config_age_report_killswitch")||OJ5());var W=SX(m),L,A=!1;if(_.F("kevlar_remove_page_dom_on_switch")){var O=G&&SX(G);W===O&&(L=this.getCurrentPage())}L||(L=zD(this.pagePool,W));K&&GNE(this.pagePool.elementPoolPopulator,W);K&&!this.renderLoadingStateJobId&&(A=this.setActivePage(L));if(L){O=W==="watch";var c=
W==="shorts",u=W==="learning_journey_watch";_.F("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(L);if(O||c||u)L.playerData=m.playerResponse;if(c){m.reelWatchSequenceResponse?L.reelWatchSequenceResponse=m.reelWatchSequenceResponse:L.cachedReelWatchSequenceResponse&&!L.reelWatchSequenceResponse&&(L.reelWatchSequenceResponse=L.cachedReelWatchSequenceResponse);m.reelWatchSequenceResponse&&(G==null?void 0:G.page)!=="shorts"&&(L.cachedReelWatchSequenceResponse=m.reelWatchSequenceResponse);
L.currentEndpoint=m.endpoint;var h;L.isPreviousPageShorts=!!(G==null?0:(h=G.endpoint)==null?0:h.reelWatchEndpoint)}h=this.isDownloadsPage(m);var J=this.isDownloadsPage(G);h&&!J?this.setPlayerSyncInterval(6E5):!h&&J&&this.setPlayerSyncInterval();_.F("block_all_player_prefetch_requests")||this.preparePrefetchRequest(m,L,K,O,c,u);cZD(_.xS().resolve(_.pY),G,m);if(_.F("enable_ai_companion")){var N;(N=_.xS().resolve(_.fn(_.w0)))==null||_.r_i(N,this.getPersistentPanelSurface(W))}_.sW(_.xS().resolve(_.zk));
_.F("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(L);K?(K=typeof L.loadPage,K==="function"?(L.pageContext=iwD(this.contextSwitcher,L,L.data!==m.response),K=function(){L.loadPage(m.response)},this.shouldApplySlideTransition&&L.is==="ytd-browse"&&A&&(W==="learning"||this.isDifferentBrowseId(m==null?void 0:m.endpoint,G==null?void 0:G.endpoint))?AZu(this.viewTransitionManager,K):this.shouldRunWatchNextLoadedTransition(L,A)?gKP(this.viewTransitionManager,K):K()):_.om(new _.cw("b/38014653 ",
[W,
L.is,L.nodeName,K,L.isAttached,G&&SX(G),this.hostElement.children.length])),_.Yt("pdl")):(L.hidden=!0,m.response.filler=!0,L.data=m.response,this.attachPage(L));_.Zw(this.hostElement,"yt-page-data-updated",{pageType:W})}_.rC(_.Fu,function(){_.F("logging_avoid_blocking_during_navigation")&&_.Rzd().transition("none");var D=JJ6(),t=L;if(m){var a=xys(m),v=X85(m),I;a:{if(m.playerResponse){var Z=m.playerResponse,k;if((I=Z.auxiliaryUi)==null?0:(k=I.messageRenderers)==null?0:k.upsellDialogRenderer){I=Z.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(m.response&&(I=m.response,(Z=I.overlay)==null?0:Z.upsellDialogRenderer)){I=I.overlay.upsellDialogRenderer;break a}I=void 0}var z;var X;k=(z=m.playerResponse)==null?void 0:(X=z.auxiliaryUi)==null?void 0:X.messageRenderers;z=(k==null?void 0:k.enforcementMessageViewModel)||(k==null?void 0:k.bkaEnforcementMessageViewModel);z=(z==null?void 0:z.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?z:void 0;var f;a:{if(m.response&&(X=m.response,(f=X.overlay)==null?0:f.commandWrapperPromoRenderer)){f=
X.overlay.commandWrapperPromoRenderer;break a}f=void 0}pCG(D,a,v,I,z,f,t)}})};
_.w.preparePrefetchRequest=function(m,G,K,W,L,A){var O,c,u,h,J,N,D,t,a,v,I,Z,k,z,X;return _.Y(function(f){if(f.nextAddress==1)return!K||!(W||L||A)||_.F("kevlar_disable_background_prefetch")&&_.kS(BC6)()===0?f.return():(O=_.sT(G))?f.yield(O.getPlayerPromise(),2):f.return();c=f.yieldResult;u=_.xS().resolve(_.fn(_.M_));if(!u)return f.return();if(L)return h=_.Ix(_.yU),Jsi(h,(J=m.endpoint)==null?void 0:J.reelWatchEndpoint,G.reelWatchSequenceResponse,c,u),f.return();t=(N=m.response)==null?void 0:(D=N.responseContext)==
null?void 0:D.webResponseContextExtensionData;if(!t)return f.return();k=(a=m.response)==null?void 0:(v=a.contents)==null?void 0:(I=v.twoColumnWatchNextResults)==null?void 0:(Z=I.autoplay)==null?void 0:Z.autoplay;z=_.xS().resolve(_.NQ);X=_.Ix(_.yU);NiD(X,t,c,u,z,k);_.ey(f)})};
_.w.movePlayerToWatch=function(m){var G=this,K,W;return _.Y(function(L){K=zD(G.pagePool,"watch");W=K.getPlayerContainer();m.appendTo(W);_.ey(L)})};
_.w.movePlayerToShorts=function(m){var G=this,K,W,L;return _.Y(function(A){K=zD(G.pagePool,"shorts");W=K.getPlayerContainer();(L=m)==null||L.appendTo(W,void 0,!0);_.ey(A)})};
_.w.getPlayerFromWatch=function(){var m=zD(this.pagePool,"watch");return _.sT(m)};
_.w.getPlayerFromShorts=function(){var m=zD(this.pagePool,"shorts");return _.sT(m)};
_.w.startLoadingWatch=function(){var m=this,G=zD(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Fu.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.F("web_watch_transition_enable_start_loading_watch_callsite")?w0G(this.viewTransitionManager,function(){m.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(G,"watch");
if(_.F("enable_ai_companion")){var K;(K=_.xS().resolve(_.fn(_.w0)))==null||_.r_i(K,this.getPersistentPanelSurface("watch"))}};
_.w.startLoadingShorts=function(){var m=zD(this.pagePool,"shorts");this.setActivePage(m,"shorts")};
_.w.startLoadingLearningJourney=function(){var m=zD(this.pagePool,"learning_journey_watch");this.setActivePage(m,"learning_journey_watch")};
_.w.getCurrentPage=function(){return this.currentPage};
_.w.getDestinationPageType=function(){return this.destinationPageType};
_.w.getCurrentData=function(){return this.data};
_.w.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.w.isOnShorts=function(){var m;return((m=this.currentPage)==null?void 0:m.is)==="ytd-shorts"};
_.w.isWatchPage=function(m){return!!m&&(m.is==="ytd-watch-flexy"||m.is==="ytd-watch-fixie"||m.is==="ytd-watch-grid")};
_.w.preparePage=function(m,G){var K=this,W=function(){var A=K.pagePool.preparePage(m,K.currentPage,G);A&&K.attachPage(A)},L=function(A){_.bO(A,G);
_.nc(A)};
try{W()}catch(A){L(A)}};
_.w.lazyPrepareCriticalPages=function(m,G){m=_.XQ(G)||m;this.maybePrepareWatchPage(m)};
_.w.maybePrepareWatchPage=function(m){m==="watch"||m==="learning_journey_watch"&&_.F("web_watch_learning_journey_disable_lazy_pages")||_.rC(_.Fu,this.preparePage.bind(this,"watch"))};
_.w.renderPageLoadingState=function(m,G){this.preparePage(m,G);var K=zD(this.pagePool,m);K.loadingData&&(K.loadingData.endpoint=G);K.loading=!0;this.setActivePage(K,m);m!=="watch"&&m!=="learning_journey_watch"||_.Zw(this.hostElement,"yt-guide-close")};
_.w.prepareForNavigation=function(m,G){var K=this;if(this.currentPage&&this.data){var W=_.XQ(G)||m;this.destinationPageType=W;SX(this.data)==W&&_.Zw(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((m==="watch"||m==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Fu.cancelJob(this.renderLoadingStateJobId);_.xS().resolve(_.pY).deactivate(G);_.UU(_.Fu,function(){var A=K.viewTransitionManager,O=K.currentPage;
if(A.isLockupToWatchTransitionEnabled&&A.isLockupThumbnailRegistrationEnabled&&O)if(A.registeredLockupThumbnail)A.lockupThumbnailRegisteredFromWatchEndpoint&&_.nc(new _.cw("Lockup thumbnail already registered from watch endpoint."));else{a:{var c=_.Q(G,_.QQ);if(c==null?0:c.videoId){var u="yt-lockup-view-model ."+_.Wks(c.videoId)+" yt-thumbnail-view-model";O=O.querySelectorAll(u);if(O.length===1){c=O[0];break a}O.length>1?_.nc(new _.cw("Multiple LockupViewModel thumbnails found for videoId: "+c.videoId+
". Selector: "+u)):_.F("web_thumbnail_to_watch_transition_debug")&&_.nc(new _.cw("No LockupViewModel thumbnail found for videoId: "+c.videoId+". Selector: "+u))}c=void 0}c&&(A.registeredLockupThumbnail=c,A.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.l_u(A,c))}});
var L=this.data;this.renderLoadingStateJobId=_.UU(_.Fu,function(){w0G(K.viewTransitionManager,function(){if(K.data!=L){var A=zD(K.pagePool,m);K.setActivePage(A)}else K.renderPageLoadingState(m,G);K.renderLoadingStateJobId=0})},150)}};
_.w.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var m=new _.bp(1);this.currentPage.pageDisposeJobs.forEach(function(G){_.vq(m,G)});
this.pageDisposeJobsets.set(this.currentPage,m)}};
_.w.flushPageDisposeJobset=function(m){var G=this.pageDisposeJobsets.get(m);G&&(G.flushJobs(),this.pageDisposeJobsets.delete(m))};
_.w.onYtStopOldPlayer=function(m,G){G=G===void 0?!1:G;var K,W=_.lX("kevlar_new_stop_old_player_logic_pages");if(_.F("kevlar_check_current_page_on_stop_old_player")&&(W.length===0||this.currentPage&&W.includes(this.currentPage.is)))if(this.data&&(K=SX(this.data)),SX(m)===K&&this.currentPage&&SX(this.currentPage.data)!==K)var L=_.sT(this.currentPage);else K=SX(this.data),L=zD(this.pagePool,K),L=_.sT(L);else this.data&&(K=SX(this.data),L=zD(this.pagePool,K),L=_.sT(L));if(L){W=SX(m);var A=zD(this.pagePool,
W);A=_.sT(A);if(L==A)G&&!_.F("kevlar_disable_preemptive_player_reset")&&L.resetForNewPlayback();else if(G=K==="watch"&&W!=="watch",!G||W==="shorts"||_.nFC()&&!gNz(this.data,m))m=_.xS().resolve(_.pY),G&&m.isMiniplayerActive()&&m.pipController.getWindow()||L.stop()}};
_.w.isDifferentBrowseId=function(m,G){m=_.Q(m,_.S8);G=_.Q(G,_.S8);return(m==null?void 0:m.browseId)!==(G==null?void 0:G.browseId)};
_.w.getPersistentPanelSurface=function(m){switch(m){case "watch":return"WATCH";default:return"APP"}};
_.e_.Object.defineProperties(ul,{template:{configurable:!0,enumerable:!0,get:function(){return z85()}}});
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-page-manager"})],ul);_.y(ul,"ytd-page-manager",function(){return z85()},{mode:_.Zh("kevlar_poly_si_batch_j081")?1:2});var lcz;var BZE;var hq=function(){var m=_.d.apply(this,arguments)||this;m.hasChipBar=!1;return m};
_.n(hq,_.d);hq.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}}};
hq.prototype.computeHasChipBar=function(m){return!(m==null||!m.chipBar)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hq.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.S("design:type",Object)],hq.prototype,"hasChipBar",void 0);_.x([_.Ye({is:"ytd-search-header-renderer",disableElementRegistration:!0})],hq);
_.y(hq,"ytd-search-header-renderer",function(){if(BZE!==void 0)return BZE;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return BZE=m},{mode:1});var M7P;var ph=function(){return _.d.apply(this,arguments)||this};
_.n(ph,_.d);ph.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ph.prototype.computeBlueBottomLink=function(m){return m};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ph.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ph.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.bottomIcon)"}),_.S("design:type",String)],ph.prototype,"bottomIcon",void 0);
_.x([_.V({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.S("design:type",Boolean)],ph.prototype,"enableBlueBottomLink",void 0);_.x([_.Ye({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],ph);
_.y(ph,"ytd-web-answer-renderer",function(){if(M7P!==void 0)return M7P;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return M7P=m},{mode:2});var TZi;var Jq=function(){return _.d.apply(this,arguments)||this};
_.n(Jq,_.d);Jq.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Jq.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Jq.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-page-continuation"})],Jq);
_.y(Jq,"ytd-page-continuation",function(){if(TZi!==void 0)return TZi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return TZi=m},{mode:1});var mwz;var i7s;var GaW;var KRs=function(){return _.d.apply(this,arguments)||this};
_.n(KRs,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],KRs.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],KRs.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],KRs);
_.y(KRs,"ytd-watch-card-one-vs-one-event",function(){if(GaW!==void 0)return GaW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return GaW=m},{mode:1});var WRq=function(){return _.d.apply(this,arguments)||this};
_.n(WRq,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],WRq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WRq.prototype,"data",void 0);_.x([_.Ye({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],WRq);
_.y(WRq,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(i7s!==void 0)return i7s;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return i7s=m},{mode:1});var LR5;var Acu=function(){return _.d.apply(this,arguments)||this};
_.n(Acu,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Acu.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Acu.prototype,"data",void 0);_.x([_.Ye({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Acu);
_.y(Acu,"ytd-banner-and-box-hero-image-renderer",function(){if(LR5!==void 0)return LR5;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return LR5=m},{mode:1});var waD;var NY=function(){var m=_.d.apply(this,arguments)||this;m.modern=_.F("web_modern_buttons");return m};
_.n(NY,_.d);NY.prototype.computeIcon=function(){var m,G,K=(m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType;if(K)return _.ew(K)};
NY.prototype.computeButtonShape=function(){var m;return{buttonText:_.bw((m=this.data)==null?void 0:m.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.e_.Object.defineProperties(NY.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"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],NY.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],NY.prototype,"modern",void 0);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.E("data.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],NY.prototype,"buttonColor",null);
_.x([_.Ye({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],NY);
_.y(NY,"ytd-call-to-action-button-renderer",function(){if(waD!==void 0)return waD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return waD=m},{mode:1});var ga5;var DH=function(){return _.d.apply(this,arguments)||this};
_.n(DH,_.d);DH.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.VL(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.qy(this.data.leftThumbnail.thumbnails,216)+")")};
DH.prototype.onLeftThumbnailChanged=DH.prototype.onLeftThumbnailChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],DH.prototype,"data",void 0);_.x([_.Sb("data.leftThumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DH.prototype,"onLeftThumbnailChanged",null);_.x([_.Ye({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],DH);
_.y(DH,"ytd-collage-hero-image-renderer",function(){if(ga5!==void 0)return ga5;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ga5=m},{mode:1});var O76;var tq=function(){return _.d.apply(this,arguments)||this};
_.n(tq,_.d);tq.prototype.computeStyle=function(m){return m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tq.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.S("design:type",String)],tq.prototype,"componentStyle",void 0);_.x([_.Ye({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],tq);
_.y(tq,"ytd-single-hero-image-renderer",function(){if(O76!==void 0)return O76;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return O76=m},{mode:1});var ccu;var Ft=function(){return _.d.apply(this,arguments)||this};
_.n(Ft,_.d);_.w=Ft.prototype;
_.w.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:_.F("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.w.computeSubtitle=function(m){if(this.data){var G;if(this.data.upcomingEventData){m=_.bw(m.subtitle);var K=Number(this.data.upcomingEventData.startTime);isNaN(K)||(G=_.nG(_.ik(m,K)))}else G=m.subtitle;return G}};
_.w.onHeroTap=function(m){m.preventDefault();var G=this.data&&this.data.navigationEndpoint;!G||!_.b_(_.ve(m),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.b_(_.ve(m),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.F("kevlar_watchcard_hero_video_renderer_killswitch")?_.Zw(this.hostElement,"yt-navigate",{navigationEndpoint:G}):this.ytComponentBehavior.resolveCommand(G))};
_.w.computeHeroTabIndex=function(m){return m&&m.simpleText?-1:0};
_.w.computeHeroRole=function(m){return m&&m.simpleText?"":"link"};
_.w.computeIsReminderButtonPresent=function(m){return!(!m||!m.reminderButton)};
_.w.computeHideBottomItems=function(m){return!(this.computeIsReminderButtonPresent(m)||m.subtitle)};
_.w.dataChanged=function(){var m=this.get("data.buttons.buttonRenderer.serviceEndpoint"),G;((G=_.Q(m==null?void 0:m.commandMetadata,_.MA))==null?0:G.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(m)};
Ft.prototype.dataChanged=Ft.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ft.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ft.prototype,"data",void 0);
_.x([_.V({computed:"computeSubtitle(data)"}),_.S("design:type",String)],Ft.prototype,"subtitle",void 0);_.x([_.V({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Ft.prototype,"isReminderButtonPresent",void 0);_.x([_.V({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Ft.prototype,"hideBottomItems",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ft.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ft);
_.y(Ft,"ytd-watch-card-hero-video-renderer",function(){if(ccu!==void 0)return ccu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ccu=m},{mode:1});var YNu;var Qy=function(){return _.d.apply(this,arguments)||this};
_.n(Qy,_.d);_.w=Qy.prototype;_.w.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"}}}};
_.w.computeTitleBadges=function(m){return m?[m]:[]};
_.w.computeHeaderStyle=function(m){return m?m.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.w.computeAvatarAriaLabel=function(m){if(m){var G,K,W,L;return(L=(G=m.avatar)==null?void 0:(K=G.accessibility)==null?void 0:(W=K.accessibilityData)==null?void 0:W.label)!=null?L:_.bw(m==null?void 0:m.title)}};
_.w.computeAvatarHeight=function(m){return m==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.w.computeBadgeRowClass=function(m){return(m==null?0:m[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qy.prototype,"data",void 0);_.x([_.V({computed:"computeTitleBadges(data.titleBadge)"}),_.S("design:type",Array)],Qy.prototype,"titleBadges",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.S("design:type",String)],Qy.prototype,"headerStyle",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.S("design:type",String)],Qy.prototype,"badgeRowClass",void 0);_.x([_.Ye({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],Qy);
_.y(Qy,"ytd-watch-card-rich-header-renderer",function(){if(YNu!==void 0)return YNu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return YNu=m},{mode:1});var rc5;var uU6;var ar=function(){return _.d.apply(this,arguments)||this};
_.n(ar,_.d);ar.prototype.onMetadataTap=function(m){var G=this.data&&this.data.navigationEndpoint;G&&!_.b_(_.ve(m),this.hostElement,["A".toString()])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:G})};
_.e_.Object.defineProperties(ar.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 m;if(this.data.upcomingEventData){var G=_.bw(this.data.subtitle),K=Number(this.data.upcomingEventData.startTime);isNaN(K)||(m=_.nG(_.ik(G,K)))}else m=this.data.subtitle;return m}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ar.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.style"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ar.prototype,"isCondensed",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ar.prototype,"subtitle",null);
_.x([_.Ye({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ar);
_.y(ar,"ytd-watch-card-compact-video-renderer",function(){if(uU6!==void 0)return uU6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return uU6=m},{mode:1});var h4i;var pa6=function(){return _.d.apply(this,arguments)||this};
_.n(pa6,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pa6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pa6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],pa6);
_.y(pa6,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(h4i!==void 0)return h4i;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return h4i=m},{mode:1});var or=function(){return _.d.apply(this,arguments)||this};
_.n(or,_.d);or.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}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],or.prototype,"ytRendererStamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],or.prototype,"data",void 0);_.x([_.Ye({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],or);
_.y(or,"ytd-vertical-watch-card-list-renderer",function(){if(rc5!==void 0)return rc5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return rc5=m},{mode:1});var JcG;var nh=function(){var m=_.d.apply(this,arguments)||this;m.ariaExpanded="false";return m};
_.n(nh,_.d);_.w=nh.prototype;_.w.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.w.dataChanged=function(){var m;this.currentSeasonIndex=((m=this.data)==null?void 0:m.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.w.computeEpisodesInfo=function(m,G,K){if(m!==void 0&&G.length===m.length)return m[K]};
_.w.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.w.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.w.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.w.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.w.getUppercaseSimpleString=function(m){return this.ytRendererBehavior.getSimpleString(m).toUpperCase()};
_.w.updateCurrentSeasonIndexFromBinding=function(m){this.currentSeasonIndex=m.detail.value};
nh.prototype.onIronOverlayClosed=nh.prototype.onIronOverlayClosed;nh.prototype.currentSeasonIndexChanged=nh.prototype.currentSeasonIndexChanged;nh.prototype.dataChanged=nh.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nh.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",String)],nh.prototype,"label",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],nh.prototype,"currentSeasonIndex",void 0);_.x([_.V({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.S("design:type",Object)],nh.prototype,"episodesInfo",void 0);_.x([_.V({value:"false"}),_.S("design:type",Object)],nh.prototype,"ariaExpanded",void 0);_.x([_.UM("#lists"),_.S("design:type",Object)],nh.prototype,"lists",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nh.prototype,"dataChanged",null);_.x([_.Mg("currentSeasonIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],nh.prototype,"currentSeasonIndexChanged",null);_.x([_.XC("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],nh.prototype,"onIronOverlayClosed",null);
_.x([_.Ye({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],nh);
_.y(nh,"ytd-watch-card-section-dropdown-renderer",function(){if(JcG!==void 0)return JcG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return JcG=m},{mode:1});var Nus;var bl=function(){var m=_.d.apply(this,arguments)||this;m.isSearch=!1;return m};
_.n(bl,_.d);bl.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}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],bl.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bl.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],bl.prototype,"isSearch",void 0);_.x([_.Ye({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],bl);
_.y(bl,"ytd-watch-card-section-sequence-renderer",function(){if(Nus!==void 0)return Nus;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return Nus=m},{mode:1});var DwW=_.P(function(m){return _.r("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.r(_.z$,{data:function(){return m.data().ctaButton}},{buttonViewModel:_.kP}),_.r(_.Nm,{text:function(){return m.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"wk");
DwW.idomCompat=!0;_.sh(DwW,"ytd-button-banner-view-model",{props:{data:_.Dd}});var vP=function(){var m=_.d.apply(this,arguments)||this;m.isSearch=!1;return m};
_.n(vP,_.d);
vP.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"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vP.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!0}),_.S("design:type",Boolean)],vP.prototype,"rounded",void 0);_.x([_.V(),_.S("design:type",Object)],vP.prototype,"isSearch",void 0);
_.x([_.Ye({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],vP);
_.y(vP,"ytd-universal-watch-card-renderer",function(){if(mwz!==void 0)return mwz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return mwz=m},{mode:1});var t6s;_.sh(_.P(function(m){var G=m.data;var K;m=!((K=_.xS().resolve(_.fn(_.l_)))==null||!K());K={};return _.r("overview-message-view-model",{class:_.VO("ytwOverviewMessageViewModelHost",(K.ytwOverviewMessageViewModelDarkBackground=m,K.ytwOverviewMessageViewModelLightBackground=!m,K))},_.r(_.p,{cond:function(){return G().primaryImage},
then:function(W){return _.r(_.oC,{data:W,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.r(_.p,{cond:function(){return G().primaryText},
then:function(){return _.r("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.r(_.Nm,{text:function(){return G().primaryText}}))}}),_.r(_.p,{cond:function(){return G().secondaryText},
then:function(){return _.r("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.r(_.Nm,{text:function(){return G().secondaryText}}))}}))},"xk"),"overview-message-view-model",{props:{data:_.Dd}});_.sh(_.eGq,"ytd-overview-answer-view-model",{props:{data:_.Dd}});var $B=function(){return _.d.apply(this,arguments)||this};
_.n($B,_.d);$B.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"}}}};
$B.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$B.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],$B.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$B.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],$B.prototype,"isSearch",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],$B);
_.y($B,"ytd-secondary-search-container-renderer",function(){if(t6s!==void 0)return t6s;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return t6s=m},{mode:1});var FR6;var sC=function(){var m=_.d.apply(this,arguments)||this;m.renderSecondarySearchContainer=!1;m.isSearch=!1;return m};
_.n(sC,_.d);_.w=sC.prototype;_.w.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.w.created=function(){var m=this;this.boundStampSecondarySearchContainerIfFits=function(){m.stampSecondarySearchContainerIfFits()};
_.qC("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.w.computeIsSearchFrictionPage=function(m){var G,K,W,L,A;m=m==null?void 0:(G=m.primaryContents)==null?void 0:(K=G.sectionListRenderer)==null?void 0:(W=K.contents)==null?void 0:(L=W[0])==null?void 0:(A=L.itemSectionRenderer)==null?void 0:A.contents;if(!m)return!1;G=_.g(m);for(K=G.next();!K.done;K=G.next())if(W=void 0,(W=K.value)==null?0:W.searchFrictionViewModel)return!0;return!1};
_.w.computeShowSecondaryColumn=function(m,G){return!!(G&&G.secondaryContents&&m)};
_.w.activeChanged=function(){var m=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.xC(this,this.debounceStampSecondarySearchContainerIfFits)),_.Dh(function(){m.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.xC(this,this.debounceStampSecondarySearchContainerIfFits))};
_.w.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.w.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.w.debounceStampSecondarySearchContainerIfFits=function(){_.t9(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.w.onRetrieveLocation=function(m,G){G.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);m.stopPropagation()};
_.w.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
sC.prototype.dataChanged=sC.prototype.dataChanged;sC.prototype.onRetrieveLocation=sC.prototype.onRetrieveLocation;sC.prototype.persistentGuideChanged=sC.prototype.persistentGuideChanged;sC.prototype.activeChanged=sC.prototype.activeChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],sC.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],sC.prototype,"ironResizableBehavior",void 0);_.x([_.V(),_.S("design:type",Boolean)],sC.prototype,"active",void 0);_.x([_.V(),_.S("design:type",Object)],sC.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.F("enable_desktop_search_bigger_thumbs")}}),
_.S("design:type",Boolean)],sC.prototype,"useBiggerThumbs",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.zf("desktop_search_bigger_thumbs_style")}}),
_.S("design:type",String)],sC.prototype,"biggerThumbsStyle",void 0);_.x([_.V(),_.S("design:type",Object)],sC.prototype,"renderSecondarySearchContainer",void 0);_.x([_.V({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.S("design:type",Boolean)],sC.prototype,"showSecondaryColumn",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.S("design:type",Boolean)],sC.prototype,"isSearchFrictionPage",void 0);
_.x([_.V(),_.S("design:type",Object)],sC.prototype,"isSearch",void 0);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sC.prototype,"activeChanged",null);_.x([_.Sb("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sC.prototype,"persistentGuideChanged",null);
_.x([_.XC("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],sC.prototype,"onRetrieveLocation",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sC.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],sC);
_.y(sC,"ytd-two-column-search-results-renderer",function(){if(FR6!==void 0)return FR6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return FR6=m},{mode:1});var qY=function(){var m=_.d.apply(this,arguments)||this;m.hasSearchHeader=!1;m.hasSecondaryContent=!1;m.hasBiggerThumbs=_.F("enable_desktop_search_bigger_thumbs");m.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return m};
_.n(qY,_.d);_.w=qY.prototype;_.w.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:QV(["aa","eocs"])}}};
_.w.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.w.loadPage_=function(m){this.initCsi();m&&(this.data=m,_.qC("REFINEMENTS_TUPLE",["FromSearchResponse",m.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.dW(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.w.initCsi=function(){D85("results",["ol","cpt"])};
_.w.updateTitle=function(){var m=_.TF(window.location.href,"q");m||(m=_.TF(window.location.href,"search_query"));_.Zw(this.hostElement,"yt-update-title",m||"")};
_.w.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.w.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.F("web_srp_data_changed_terminate_imp_killswitch")||_.dU(this.hostElement,"yt-terminate-video-preview-action")};
_.w.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.w.computeHasSearchHeader=function(m){var G;m=m==null?void 0:(G=m.header)==null?void 0:G.searchHeaderRenderer;return!!m&&(!!m.searchFilterButton||!!m.chipBar)};
_.w.computeHasSecondaryContent=function(m){var G,K;return!!(m==null?0:(G=m.contents)==null?0:(K=G.twoColumnSearchResultsRenderer)==null?0:K.secondaryContents)};
_.e_.Object.defineProperties(qY,{template:{configurable:!0,enumerable:!0,get:function(){if(lcz===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);lcz=m}m=lcz;return m}}});
qY.prototype.onReloadContinuationFinish=qY.prototype.onReloadContinuationFinish;qY.prototype.dataChanged=qY.prototype.dataChanged;_.x([_.q(ra.YtPageBehavior),_.S("design:type",Object)],qY.prototype,"ytPageBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],qY.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],qY.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qY.prototype,"data",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],qY.prototype,"monitorScroll",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],qY.prototype,"hasSearchHeader",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],qY.prototype,"hasSecondaryContent",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],qY.prototype,"hasBiggerThumbs",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qY.prototype,"dataChanged",null);
_.x([_.XC("yt-reload-continuation-finish"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qY.prototype,"onReloadContinuationFinish",null);_.x([_.Ye({is:"ytd-search"})],qY);var QVE;var aKW;var oaP;var EC=function(){var m=_.d.apply(this,arguments)||this;m.ctaVisualElement=null;m.currentCsn=null;return m};
_.n(EC,_.d);_.w=EC.prototype;_.w.onDataChanged=function(){this.maybeLogShows()};
_.w.computeButtonShape=function(){var m=this;if(this.data)return{buttonText:_.bw(this.data.text),state:"active",onTap:function(){m.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.w.maybeCreateCtaVe=function(){var m;if((m=this.data)!=null&&m.badgeInteractionLogging){var G;if(m=(G=this.data.badgeInteractionLogging)==null?void 0:G.trackingParams)this.ctaVisualElement=_.m5(m)}};
_.w.maybeLogClicks=function(){this.currentCsn=_.gU(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.nW(this.currentCsn,this.ctaVisualElement)};
_.w.maybeLogShows=function(){this.currentCsn=_.gU(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.a7(this.currentCsn,[this.ctaVisualElement])};
_.w.onTap=function(){var m;if((m=this.data)!=null&&m.onClickCommand){var G;this.ytComponentBehavior.resolveCommand((G=this.data)==null?void 0:G.onClickCommand);this.maybeLogClicks()}};
EC.prototype.onDataChanged=EC.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],EC.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.x([_.V({}),_.S("design:type",Object)],EC.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],EC.prototype,"onDataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],EC);
_.y(EC,"ytd-shopping-overlay-badge-renderer",function(){if(oaP!==void 0)return oaP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oaP=m},{mode:1});var nai;var HP=function(){return _.d.apply(this,arguments)||this};
_.n(HP,_.d);HP.prototype.computeShouldButtonBeVertical=function(m,G){return m||G};
HP.prototype.onYtServiceRequestSent=function(m,G){(m=_.Q(G.endpoint,_.KK))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Bp("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:m.status})):this.handleLikeEndpoint(m))};
HP.prototype.computelikeStatusEntityKey=function(m){return m==null?void 0:m.likeStatusEntityKey};
HP.prototype.handleLikeEndpoint=function(m){m.status==="LIKE"?this.JSC$22047_ytdDislikeToggleButtonRenderer.toggle(!1):m.status==="DISLIKE"?this.JSC$22047_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$22047_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$22047_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.e_.Object.defineProperties(HP.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var m;return oJW(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(m=this.likeStatusEntity)==null?void 0:m.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var m;if(this.data&&((m=this.data)==null||!m.hideDislikeButton)){var G;return oJW(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(G=this.likeStatusEntity)==null?void 0:G.likeStatus)}}}});
HP.prototype.onYtServiceRequestSent=HP.prototype.onYtServiceRequestSent;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],HP.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],HP.prototype,"vertical",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],HP.prototype,"textTransform",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],HP.prototype,"useShortsIcon",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],HP.prototype,"underIconLabel",void 0);_.x([_.V({value:"left"}),_.S("design:type",String)],HP.prototype,"buttonTooltipPosition",void 0);_.x([_.V(),_.S("design:type",Object)],HP.prototype,"overrides",void 0);
_.x([_.UM("#like-button"),_.S("design:type",Object)],HP.prototype,"JSC$22047_ytdLikeToggleButtonRenderer",void 0);_.x([_.UM("#dislike-button"),_.S("design:type",Object)],HP.prototype,"JSC$22047_ytdDislikeToggleButtonRenderer",void 0);_.x([_.E("data","likeStatusEntity.likeStatus","useShortsIcon"),_.S("design:type",Object),_.S("design:paramtypes",[])],HP.prototype,"likeButton",null);
_.x([_.E("data","likeStatusEntity.likeStatus","useShortsIcon"),_.S("design:type",Object),_.S("design:paramtypes",[])],HP.prototype,"dislikeButton",null);_.x([_.V({computed:"computelikeStatusEntityKey(data)"}),_.S("design:type",String)],HP.prototype,"likeStatusEntityKey",void 0);_.x([_.V({selectorArgs:["likeStatusEntityKey"],selector:_.cp}),_.S("design:type",Object)],HP.prototype,"likeStatusEntity",void 0);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],HP.prototype,"onYtServiceRequestSent",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],HP);
_.Vz()(HP,"ytd-like-button-renderer",function(){if(nai===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);nai=m}m=nai;return m},{mode:1});_.sh(_.x2O,"reel-sound-metadata-view-model",{props:{data:_.nN,overlayDensity:_.nN}});_.sh(_.qe6,"player-disclosure-view-model",{props:{data:_.Dd,extractOverlay:_.Dd}});_.sh(_.FV0,"pivot-button-view-model",{props:{data:_.nN,className:_.nN}});_.sh(_.QrR,"reel-action-bar-view-model",{props:{data:_.Dd,buttonShapeOverrideables:_.Dd}});_.sh(_.XGW,"yt-reel-metapanel-view-model",{props:{data:_.Dd,overlayDensity:_.Dd,extractOverlay:_.Dd}});var b76=_.P(function(m){var G=m.children;var K=m.region;m=_.g(_.g_(void 0,void 0,"flxBBc"));var W=m.next().value,L=m.next().value;m=_.g(_.g_("0px",void 0,"IAR7k"));var A=m.next().value,O=m.next().value;m=_.g(_.g_("0px",void 0,"QV4iWb"));var c=m.next().value,u=m.next().value;m=_.g(_.g_(0,void 0,"Q2oK6b"));var h=m.next().value,J=m.next().value;m=_.g(_.g_(0,void 0,"hYKowe"));var N=m.next().value,D=m.next().value,t=function(){var z=W();if(z){var X;if(((X=_.yo())==null?void 0:X.getPlayerState())!==-1){z.style.display=
"inherit";var f;(f=_.yo())==null||f.removeEventListener("onStateChange",t)}else z.style.display="none";v()}},a=function(){var z;
return(z=_.qW())==null?void 0:z.querySelector("video")},v=function(){var z=a();
if(z){J(z.getBoundingClientRect().width);D(z.getBoundingClientRect().height);var X;O((z==null?void 0:(X=z.style)==null?void 0:X.left)||"0px");var f;u((z==null?void 0:(f=z.style)==null?void 0:f.top)||"0px")}};
_.$O(function(){var z=W();if(z){var X,f,U;if(((X=_.yo())==null?void 0:X.getPlayerState())===-1&&Math.round(((U=(f=_.yo())==null?void 0:f.getVideoAspectRatio())!=null?U:0)*100)!==Math.round(h()/N()*100)){z.style.display="none";var l,Ls;D(h()/((Ls=(l=_.yo())==null?void 0:l.getVideoAspectRatio())!=null?Ls:1))}}},"N29KDe");
var I=function(){v()},Z;
_.nn(function(){v();var z;if(!(K==null?0:(z=K())==null?0:z.transformationMatrix))throw Error("em");var X;(X=_.yo())==null||X.addEventListener("onStateChange",t);if(window.ResizeObserver){if(z=a())Z=new ResizeObserver(I),Z.observe(z)}else window.addEventListener("resize",v);_.sZ(function(){var f;(f=_.yo())==null||f.removeEventListener("onStateChange",t);Z?Z.disconnect():window.removeEventListener("resize",v)})});
var k=function(){var z,X,f=(X=K==null?void 0:(z=K())==null?void 0:z.transformationMatrix)!=null?X:[];z=h();X=N();for(var U=[],l=0,Ls=-1;l<f.length;l++)l%3===0&&(Ls++,U[Ls]=[]),U[Ls].push(f[l]);f=new Q_(U);U=new Q_([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);U=f.multiply(U);f=new Q_([[0,0],[0,0],[0,0],[0,0]]);for(l=0;l<U.getSize().width;l++){Ls=JF(U,0,l);var gd=JF(U,1,l);if(Ls===null||gd===null)throw Error("dm`"+(l+1).toString());WsD(f,l,0,Ls*z);WsD(f,l,1,gd*X)}z=JF(f,0,0);l=JF(f,1,0);X=JF(f,0,1);Ls=JF(f,1,1);
if(z===null||l===null||X===null||Ls===null)throw Error("bm");U=nJD(z,l,X,Ls);gd=JF(f,3,0);f=JF(f,3,1);if(gd===null||f===null)throw Error("cm");f=nJD(z,gd,X,f);Ls=(Number((Ls*-1).toFixed(2))-Number((X*-1).toFixed(2)))/(Number(l.toFixed(2))-Number(z.toFixed(2)));gd=Math.atan(Ls)*180/Math.PI;l=Ls===Number.POSITIVE_INFINITY?-90:Ls===Number.NEGATIVE_INFINITY?90:Object.is(Ls,-0)?180:Ls===0?0:Ls>0?gd*-1:z<l?gd*-1:Math.abs(gd)+180;return"left:calc("+z+"px + "+A()+"); top:calc("+(X+"px + "+c()+"); width:")+
(U+"px; height:")+(f+"px; transform:rotate(")+(l+"deg);\n        --sticker-width:"+U+";")};
return _.r(_.BUd,{root:"#sticker-layer"},function(){return _.r("yt-overlay-sticker",{el:_.aC(L),style:k,class:"ytOverlayStickerHost"},G)})},"Ak");var va5=_.P(function(m){function G(){var t,a,v,I,Z=(a=_.Q((t=u())==null?void 0:t.command,_.dzi))==null?void 0:(v=a.item)==null?void 0:(I=v.notificationTextRenderer)==null?void 0:I.successResponseText;if(Z)t=_.q_(Z),_.dU(W.value,"yt-open-popup-action",[t,W.value]);else if(h())vJs(h(),W.value);else{var k;vJs((k=u())==null?void 0:k.command,W.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var K=m.data;var W=_.Q3("svg"),L=_.g(_.g_(!1,void 0,"e9onLe"));m=L.next().value;var A=L.next().value,O=_.g(_.g_(!1,void 0,"ptnIQd"));L=O.next().value;var c=O.next().value,u=function(){var t;return _.Q((t=K())==null?void 0:t.popUp,ZuP)},h=function(){var t;
return(t=K())==null?void 0:t.command},J=function(){return _.Q(h(),_.MW)!==void 0};
O=_.dn(function(){G();return!1});
var N={},D={};return _.r("svg",{"on:mouseover":_.dn(function(){J()&&A(!0);c(!0);return!1}),
"on:mouseout":_.dn(function(){A(!1);c(!1);return!1}),
"on:keydown":_.dn(function(t){t.key==="Enter"&&G();return!1}),
"on:focus":_.dn(function(){J()&&A(!0);return!1}),
"on:blur":_.dn(function(){J()&&A(!1);return!1}),
el:W,tabindex:0,"aria-label":function(){var t;return(t=K())==null?void 0:t.a11yString},
id:"player-overlay-video-interaction-svg",class:_.VO("ytPlayerOverlayInteractionInteractionsSvg",(N.ytPlayerOverlayInteractionInteractionsSvgHover=m,N),(D.ytPlayerOverlayInteractionInteractionsSvgHideOutline=L,D)),role:"button","on:click":O})},"Dk");_.sh(_.P(function(m){var G=m.data;_.nn(function(){var K;if((K=G())==null?0:K.trackingParams){var W;_.l1().graftServerVe((W=G().trackingParams)!=null?W:"")}});
return _.r("yt-player-overlay-interaction",null,_.r(b76,{region:function(){var K,W;return(K=G())==null?void 0:(W=K.regions)==null?void 0:W[0]}},_.r(va5,Object.assign({},m))))},"Ck"),"yt-player-overlay-interaction",{props:{data:_.Dd}});var $wi=_.P(function(m){var G=m.data;var K=m.index;var W=m.selectedChoice;var L=function(){var A;return _.Q((A=G())==null?void 0:A.renderer,iMq)};
m={};return _.r("yt-overlay-poll-sticker-choice",{class:_.VO("ytOverlayPollStickerChoiceHost"),style:_.eA({"--displayed-percentage":function(){var A,O,c,u;return""+Math.ceil(Number((W==null?void 0:W())===K()?(A=L())==null?void 0:(O=A.selected)==null?void 0:O.progressBarWidth:(c=L())==null?void 0:(u=c.unselected)==null?void 0:u.progressBarWidth)*100)}})},_.r("div",{class:_.VO("ytOverlayPollStickerChoicePollChoice",(m.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(W==null?void 0:W())!==
void 0},m.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(W==null?void 0:W())===K()},m))},_.r("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var A;
return((A=L())==null?void 0:A.text)||""}),_.r("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(W==null?void 0:W())==="undefined")var A="";
else{var O,c,u,h;A=(W==null?void 0:W())===K()?(O=L())==null?void 0:(c=O.selected)==null?void 0:c.votePercentage:(u=L())==null?void 0:(h=u.unselected)==null?void 0:h.votePercentage}return A})))},"Ek");var sVu=_.P(function(m){var G=m.data;var K=m.enableDebuggingFeatures;var W=_.RC(function(A){var O,c=((O=G())==null?void 0:O.postPollStateEntityKey)||"";A=_.yx(A.entities,"postPollStateEntity",c);var u;return((u=G())==null?0:u.viewerIsOwner)?Object.assign({},A,{selectedOptionId:-1,voted:!0}):A}),L=_.xS().resolve(_.S1);
m={};return _.r("yt-overlay-poll-sticker",null,_.r(b76,{region:function(){var A,O;return(A=G())==null?void 0:(O=A.region)==null?void 0:O.interactionRegion}},_.r("div",{class:_.VO("ytOverlayPollStickerHost",(m.ytOverlayPollStickerDebugStyle=function(){return K==null?void 0:K()},m)),
style:_.eA({"--original-height":function(){var A;return""+(((A=G())==null?void 0:A.mainBodyHeight)||1)},
"--original-width":function(){var A;return""+(((A=G())==null?void 0:A.mainBodyWidth)||1)},
"--scaled-width":function(){var A;return""+(((A=G())==null?void 0:A.mainBodyWidth)||1)},
"--primary-surface":function(){var A,O;return bYz(((A=G())==null?void 0:(O=A.theme)==null?void 0:O.primarySurface)||0)},
"--raised-surface":function(){var A,O;return bYz(((A=G())==null?void 0:(O=A.theme)==null?void 0:O.raisedSurface)||0)},
"--secondary-surface":function(){var A,O;return bYz(((A=G())==null?void 0:(O=A.theme)==null?void 0:O.secondarySurface)||0)},
"--primary-text":function(){var A,O;return bYz(((A=G())==null?void 0:(O=A.theme)==null?void 0:O.primaryText)||0)},
"--secondary-text":function(){var A,O;return bYz(((A=G())==null?void 0:(O=A.theme)==null?void 0:O.secondaryText)||0)}})},_.r("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return G().questionText}," "),_.r(_.D0,{each:function(){return G().pollChoiceConfigs||[]}},function(A,O){return _.r("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.dn(function(){var c=O(),u;if((u=G())==null||!u.viewerIsOwner){var h,J;u=(h=G())==null?void 0:(J=h.pollChoiceConfigs)==null?void 0:J[c];if(J=(u==null?0:u.renderer)?_.Q(u.renderer,iMq):void 0){var N;h=((N=W())==null?void 0:N.selectedOptionId)!==c;var D;if(N=(D=h?J.selectedPollCommand:J.deselectedPollCommand)==null?void 0:D.innertubeCommand){L.resolveCommand(N);var t,a;_.nD().dispatch(_.Bp("postPollStateEntity",((t=W())==null?void 0:t.key)||"",{key:((a=W())==null?void 0:a.key)||"",selectedOptionId:h?
c:-1,voted:h}))}}}})},_.r($wi,{data:A,
index:O,selectedChoice:function(){var c,u;return((c=W())==null?0:c.voted)?(u=W())==null?void 0:u.selectedOptionId:void 0}}))}),_.r("div",{class:"ytOverlayPollStickerVoteCount"},function(){var A,O;
return((A=W())==null?0:A.voted)&&((O=W())==null?void 0:O.selectedOptionId)!==-1?G().postVoteCountText:G().preVoteCountText}))))},"Fk");_.sh(_.P(function(m){var G=m.data;m=_.pT(function(){var K;return _.F("enable_shorts_poll_stickers_web")?(((K=G())==null?void 0:K.stickers)||[]).filter(function(W){return W.pollSticker}):[]},void 0,"Cflxwb");
return _.r("yt-stickers-layer",null,_.r(_.D0,{each:m},function(K){return _.r(sVu,{data:K.pollSticker,enableDebuggingFeatures:function(){var W;return(W=G())==null?void 0:W.enableDebuggingFeatures}})}))},"Gk"),"yt-stickers-layer",{props:{data:_.Dd}});var Ir=function(){var m=_.d.apply(this,arguments)||this;m.showScrubber=!1;m.isWatchWhileMode=!1;m.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");m.enablePollStickers=_.F("enable_shorts_poll_stickers_web");m.anchoredPanelActive=!1;m.enableLivingroomLayout=_.F("reels_enable_livingroom_layout");m.enablePlayerMetadataContainer=_.F("reels_web_enable_metadata_container");m.enableSqueezebackPanels=_.F("web_shorts_enable_squeezeback_panels");m.useAspectRatio=_.F("web_use_aspect_ratio");m.isSqueezebackActive=
!1;m.smallScreenSqueezeback=!1;m.isPlayerStarted=!1;m.overlayDensity=0;m.extractOverlay=!1;m.extractActionBar=!1;m.isOverlay=!1;m.isImmersive=!1;m.isImmersiveHorizontal=!1;m.isFullscreen=!1;m.onWindowResized=function(){var G;m.set("isImmersive",((G=window.getComputedStyle(m.hostElement))==null?void 0:G.getPropertyValue("--immersive-mode-on"))==="1");m.set("isImmersiveHorizontal",m.isImmersive&&m.enableLivingroomLayout&&!m.isWatchWhileMode)};
return m};
_.n(Ir,_.d);_.w=Ir.prototype;_.w.updateIsOverlay=function(m){this.isOverlay=m.detail.value};
_.w.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.w.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.w.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.w.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.w.onOverlayDensityChange=function(){var m=_.VL(this.hostElement).querySelector("ytd-info-panel-container-renderer");m&&(m.set("extractOverlay",this.extractOverlay),m.set("roundedContainer",this.extractOverlay))};
_.w.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.w.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.w.ready=function(){(_.F("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.F("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.zf("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.zf("reels_action_justified_content")||"flex-start")};
_.w.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.w.setFakeLoadingButtons=function(){_.F("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.zq("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.zq("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.zq("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.zq("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.zq("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()};
_.w.setEmptyOverlayMetadata=function(){_.F("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}))};
_.e_.Object.defineProperties(Ir.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.infoPanel)}}});
Ir.prototype.onOverlayDensityChange=Ir.prototype.onOverlayDensityChange;Ir.prototype.onIsActiveChanged=Ir.prototype.onIsActiveChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ir.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Ir.prototype,"ytdReduxBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Ir.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ir.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],Ir.prototype,"isActive",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],Ir.prototype,"hidden",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],Ir.prototype,"useShortsIcon",void 0);
_.x([_.V({value:"left"}),_.S("design:type",String)],Ir.prototype,"buttonTooltipPosition",void 0);_.x([_.V({value:_.F("reels_enable_livingroom_layout")?"top":"left"}),_.S("design:type",String)],Ir.prototype,"likeButtonTooltipPosition",void 0);_.x([_.V({value:"none"}),_.S("design:type",String)],Ir.prototype,"textTransform",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"showScrubber",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"isWatchWhileMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.infoPanel"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ir.prototype,"hasInfoPanel",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"enableAnchoredPanel",void 0);_.x([_.V(),_.S("design:type",Object)],Ir.prototype,"enablePollStickers",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"anchoredPanelActive",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"enableLivingroomLayout",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Ir.prototype,"enablePlayerMetadataContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"enableSqueezebackPanels",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"useAspectRatio",void 0);_.x([_.V({selector:_.MVP,reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"isSqueezebackActive",void 0);_.x([_.V({selector:bWu,reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"smallScreenSqueezeback",void 0);_.x([_.V({selector:vts}),_.S("design:type",Object)],Ir.prototype,"isPlayerStarted",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"overlayDensity",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"extractOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"extractActionBar",void 0);_.x([_.V(),_.S("design:type",Object)],Ir.prototype,"isOverlay",void 0);_.x([_.V(),_.S("design:type",Object)],Ir.prototype,"isImmersive",void 0);
_.x([_.V(),_.S("design:type",Object)],Ir.prototype,"isImmersiveHorizontal",void 0);_.x([_.V({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.S("design:type",Boolean)],Ir.prototype,"isShortsImmersive",void 0);_.x([_.V({computed:"computeButtonOverride(extractActionBar)"}),_.S("design:type",Object)],Ir.prototype,"buttonOverride",void 0);
_.x([_.V({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.S("design:type",Object)],Ir.prototype,"actionBarButtonOverride",void 0);_.x([_.V({selector:_.kA,reflectToAttribute:!0}),_.S("design:type",Object)],Ir.prototype,"isFullscreen",void 0);_.x([_.Sb("isActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ir.prototype,"onIsActiveChanged",null);
_.x([_.Sb("extractOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ir.prototype,"onOverlayDensityChange",null);_.x([_.Ye({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Ir);
_.y(Ir,"ytd-reel-player-overlay-renderer",function(){if(aKW!==void 0)return aKW;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\n  </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return aKW=m},{mode:1});var qNu;var jQ=function(){var m=_.d.apply(this,arguments)||this;m.videoDuration=0;m.playedTime=0;m.isActive=!1;m.JSC$22072_playerEvents=new Map;return m};
_.n(jQ,_.d);_.w=jQ.prototype;_.w.created=function(){this.JSC$22072_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22072_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.w.attached=function(){this.getPlayerAndInitializeListeners()};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22072_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.xC(this,this.onPageChanged))};
_.w.getPlayerAndInitializeListeners=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return G=_.qW(),G?K.yield(G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xC(m,m.onPageChanged)),K.jumpTo(0));m.player=K.yieldResult;m.initializePlayerListeners();_.ey(K)})};
_.w.onPageChanged=function(m){var G=this;return _.Y(function(K){if(K.nextAddress==1)return m.detail.newPageType!=="ytd-shorts"?K.return():K.yield(_.ET().getPlayerPromise(),2);G.player=K.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xC(G,G.onPageChanged));_.ey(K)})};
_.w.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22072_playerEvents)};
_.w.onVideoDataChange=function(m){var G=this;return _.Y(function(K){if(!G.player||m.type!=="newdata")return K.return();G.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(m.playertype).seekableEnd:G.player.getDuration(m.playertype);G.playedTime=0;_.ey(K)})};
_.w.onVideoProgress=function(m){var G=this,K,W;return _.Y(function(L){if(!G.player)return L.return();K=G.player.getPresentingPlayerType();W=G.player.getPlayerState();G.videoDuration=_.F("web_shorts_use_progress_state_for_gapless")?G.player.getProgressState(K).seekableEnd:G.player.getDuration(K);G.playedTime=W===0?G.videoDuration:m;_.ey(L)})};
_.w.getPercentPlayed=function(m,G){return m?_.YJ(G/m,0,1):0};
_.e_.Object.defineProperties(jQ.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 m="";return m=this.videoDuration&&this.playedTime?m+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):m+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],jQ.prototype,"componentBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],jQ.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jQ.prototype,"player",void 0);_.x([_.V(),_.S("design:type",Object)],jQ.prototype,"videoDuration",void 0);_.x([_.V(),_.S("design:type",Object)],jQ.prototype,"playedTime",void 0);_.x([_.V(),_.S("design:type",Object)],jQ.prototype,"isActive",void 0);
_.x([_.E("videoDuration","playedTime"),_.S("design:type",Number),_.S("design:paramtypes",[])],jQ.prototype,"percentPlayed",null);_.x([_.E("videoDuration","playedTime"),_.S("design:type",Object),_.S("design:paramtypes",[])],jQ.prototype,"percentPlayedStyle",null);_.x([_.E("videoDuration","isActive"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],jQ.prototype,"hideProgressBar",null);
_.y(jQ,"ytd-progress-bar-line",function(){if(qNu===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);qNu=m}m=qNu;return m},{mode:2});var EaP;_.sh(J1u,"ytm-closed-captioning-button",{props:{captionIconType:_.Dd,onClick:_.nN,ariaLabel:_.Dd,ariaPressed:_.Dd,isOverlay:_.nN}});_.sh(_.Ps6,"volume-controls",{props:{orientation:_.Dd}});var kB=function(){var m=_.d.apply(this,arguments)||this;m.playerState=null;m.isMuted=!1;m.volumeControlsOrientationState="horizontal_right";m.isOverlay=!0;m.isAdsOverlay=!1;m.captionIconType=-1;m.ariaLabel="";m.overlayDensity=0;m.JSC$22075_playerEvents=new Map;m.onClosedCaptionsButtonClick=function(){m.player&&IQ6(m.player)&&(m.player.toggleSubtitles(),m.updateCaptionIconType())};
return m};
_.n(kB,_.d);_.w=kB.prototype;_.w.created=function(){this.JSC$22075_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22075_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.JSC$22075_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.w.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.dq(28662);this.playPauseButtonClientVE=_.dq(36842);this.fullscreenButtonToggleOffClientVE=_.dq(222256);this.fullscreenButtonToggleOnClientVE=_.dq(222257);var m=_.gU(),G=_.wU();m&&G&&(_.F("combine_ve_grafts")?(_.yw(_.l1(),this.muteButtonClientVE,G),_.yw(_.l1(),this.playPauseButtonClientVE,G)):_.Fv(m,G,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.w.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22075_playerEvents),this.player=null)};
_.w.updateCaptionIconType=function(){var m=-1,G=void 0,K=_.zq("CLOSED_CAPTIONS_DISABLED");this.player&&IQ6(this.player)&&(j7i(this.player)?(G=!0,K=_.zq("CLOSED_CAPTIONS_ON"),m=1):(G=!1,K=_.zq("CLOSED_CAPTIONS_OFF"),m=0));this.captionIconType=m;this.ariaPressedState=G;this.ariaLabel=K};
_.w.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-overlay-icon-active-other)"}}};
_.w.getPlayerAndInitializeListeners=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return G=_.qW(),G?K.yield(G.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xC(m,m.onPageChanged)),K.jumpTo(0));m.player=K.yieldResult;m.initializePlayerListeners();_.ey(K)})};
_.w.onPageChanged=function(m){var G=this;return _.Y(function(K){if(K.nextAddress==1)return m.detail.newPageType!=="ytd-shorts"?K.return():K.yield(_.ET().getPlayerPromise(),2);G.player=K.yieldResult;G.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xC(G,G.onPageChanged));_.ey(K)})};
_.w.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22075_playerEvents);this.updateCaptionIconType()};
_.w.onPlayerStateChange=function(m){this.playerState=m};
_.w.onPlayerVolumeChange=function(m){this.isMuted=m.muted};
_.w.onPlayPauseButtonClick=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.ET().getPlayerPromise(),2);G=W.yieldResult;(K=_.gU())&&m.playPauseButtonClientVE&&_.nW(K,m.playPauseButtonClientVE);G.getPlayerState()!==1?G.playVideo():G.pauseVideo();_.ey(W)})};
_.w.computePlayPauseIcon=function(m){return m===2||m===-1||m===5?"PLAY_ARROW_FILLED":"PAUSE_FILLED"};
_.w.computeFullscreenLabel=function(m){return m?_.zq("FULLSCREEN_EXIT_LABEL"):_.zq("FULLSCREEN_ENTER_LABEL")};
_.w.computePlayPauseLabel=function(m){return m===1||m===3?_.zq("PLAYER_LABEL_PAUSE"):_.zq("PLAYER_LABEL_PLAY")};
_.w.onMuteButtonClick=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(_.ET().getPlayerPromise(),2);G=W.yieldResult;(K=_.gU())&&m.muteButtonClientVE&&_.nW(K,m.muteButtonClientVE);G.isMuted()?G.unMute(!0):G.mute(!0);_.ey(W)})};
_.w.computeMuteIcon=function(m){return m?"miniplayer:volume-off":"miniplayer:volume-up"};
_.w.computeMuteLabel=function(m){return m?_.zq("PLAYER_LABEL_UNMUTE"):_.zq("PLAYER_LABEL_MUTE")};
_.w.onFullscreenButtonClick=function(){var m=_.gU();m&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.nW(m,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.nW(m,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();fR5()};
_.e_.Object.defineProperties(kB.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var m=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(){m.onPlayPauseButtonClick()},
disableBackdropFilter:!0,customColors:{backgroundColor:"var(--yt-spec-overlay-background-medium-light)"}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:!0,customColors:{backgroundColor:"transparent"}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"player_full_exit_alt":"player_full_enter_alt"}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],kB.prototype,"componentBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],kB.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],kB.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"player",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"playerState",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"isMuted",void 0);
_.x([_.V({computed:"computePlayPauseIcon(playerState)"}),_.S("design:type",String)],kB.prototype,"playPauseIcon",void 0);_.x([_.V({computed:"computeMuteIcon(isMuted)"}),_.S("design:type",String)],kB.prototype,"muteIcon",void 0);_.x([_.V({selector:_.kA}),_.S("design:type",Boolean)],kB.prototype,"isFullscreen",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"volumeControlsOrientationState",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"isOverlay",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],kB.prototype,"isAdsOverlay",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"captionIconType",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"ariaLabel",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"ariaPressedState",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],kB.prototype,"overlayDensity",void 0);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"data",void 0);
_.x([_.V({computed:"computeActionBarButtonOverride()"}),_.S("design:type",Object)],kB.prototype,"actionBarButtonOverride",void 0);_.x([_.E("playerState"),_.S("design:type",Object),_.S("design:paramtypes",[])],kB.prototype,"playPauseButtonData",null);_.x([_.E("isFullscreen"),_.S("design:type",Object),_.S("design:paramtypes",[])],kB.prototype,"fullscreenButtonData",null);_.x([_.V(),_.S("design:type",Object)],kB.prototype,"onClosedCaptionsButtonClick",void 0);
_.x([_.E("isFullscreen"),_.S("design:type",String),_.S("design:paramtypes",[])],kB.prototype,"fullscreenIcon",null);
_.y(kB,"ytd-shorts-player-controls",function(){if(EaP===void 0){var m=document.createElement("template");_.b(m,'\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<div id="left-controls" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n  <volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></volume-controls>\n</div>\n<div id="right-controls" class="style-scope ytd-shorts-player-controls">\n  <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n    <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n    </ytm-closed-captioning-button>\n  </div>\n  <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n    <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" three-dot-button-override="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\n  </div>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);EaP=m}m=EaP;return m},{mode:1});var H7i;_.sh(_.FbG,"yt-interstitial-view-model",{props:{data:_.Dd}});var IK5=_.P(function(m){var G=m.data;return _.r("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.r("h1",{class:"reelWatchBreakViewModelHostTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r("h2",{class:"reelWatchBreakViewModelHostBody"},_.r(_.Nm,{text:function(){return G().body},
isOverlay:!0})),_.r(_.z$,{data:function(){return G().buttons}},{buttonViewModel:function(K,W){return _.r("div",{class:function(){return W()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.r(_.kP,{data:K.data}))}}))},"Hk");
IK5.idomCompat=!0;_.sh(IK5,"reel-watch-break-view-model",{props:{data:_.Dd}});var Ch=function(){return _.d.apply(this,arguments)||this};
_.n(Ch,_.d);Ch.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}}};
_.e_.Object.defineProperties(Ch.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var m;return!!_.Q((m=this.data)==null?void 0:m.renderer,doG)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var m;return!!_.Q((m=this.data)==null?void 0:m.renderer,VE5)}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ch.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ch.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Ch.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ch.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data.renderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ch.prototype,"isSurvey",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.renderer"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ch.prototype,"isInterstitialViewModel",null);_.x([_.Ye({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Ch);
_.y(Ch,"ytd-reel-non-video-content-renderer",function(){if(H7i!==void 0)return H7i;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return H7i=m},{mode:2});var jV6;_.sh(_.dqP,"desktop-shorts-player-controls",{});var Vy=function(){var m=_.d.apply(this,arguments)||this;m.isPlayerPaused=!1;m.isPlayerStarted=!1;m.showPlayerControls=!1;m.showScrubber=!1;m.autoHideJobId=0;m.overlayType=_.zf("web_shorts_expanded_overlay_type");m.panelData=void 0;m.isWatchWhileMode=!1;m.hasError=!1;m.panelShowDelayMs=1;m.scrubberComponent={};m.isFullscreen=!1;m.shouldHideOverlay=!1;m.enableAnchoredPanel=_.F("desktop_shorts_v2_anchored_panel");m.enablePersistentAnchoredPanel=_.F("desktop_shorts_v2_persistent_anchored_panel");m.hideWatchWhilePanel=
_.F("web_shorts_hide_watch_while_panel");m.useAspectRatio=_.F("web_use_aspect_ratio");m.isPersistentPanelActive=!1;m.anchoredPanelActive=!1;m.isShortsPipActive=!1;m.smallScreenSqueezeback=!1;m.overlayDensity=0;m.extractOverlay=!1;m.extractActionBar=!1;m.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};m.onWindowResized=function(){_.t9(m,"calculateOverlayDensity",function(){m.calculateOverlayDensity()},
100)};
return m};
_.n(Vy,_.d);_.w=Vy.prototype;_.w.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.w.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.w.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var m=_.xS().resolve(_.Wx);this.isWatchWhileMode&&_.Fu.addJob(function(){m.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.w.handleShowReelsCommentsOverlayCommand=function(m){m=_.Q(m,N2D);this.isActive&&(m==null?0:m.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))};
_.w.updateEngagementPanelVisibility=function(m,G){m&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:G?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:m}})};
_.w.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;window.removeEventListener("resize",this.onWindowResized)};
_.w.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.xS().resolve(_.X2).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.w.handleWatchWhilePanelScrimClick=function(){var m=_.xS().resolve(_.Wx);this.activeWatchWhilePanel&&(m.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.w.attached=function(){this.isFirstReel()&&this.handlePlayerClick();window.addEventListener("resize",this.onWindowResized);this.calculateOverlayDensity()};
_.w.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},renderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:_.F("web_enable_shorts_no_idle_job")?8:0}}};
_.w.handlePlayerClick=function(m){var G=this,K,W;if((W=(K=window).matchMedia)!=null&&W.call(K,"(any-pointer: coarse)").matches||!m)this.showPlayerControls=!0,_.Fu.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Fu.addJob(function(){G.showPlayerControls=!1},0,4E3)};
_.w.isFirstReel=function(){return this.index===0};
_.w.handleMouseenter=function(){_.Fu.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.w.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.w.handleScrubberEnter=function(){this.showScrubber=!0};
_.w.handleScrubberLeave=function(){this.showScrubber=!1};
_.w.maybeLogNonDefaultAspectRatio=function(){var m;(m=this.data)!=null&&m.thumbnail&&this.isActive&&.5625!==BUz(this.data.thumbnail)&&_.V3f("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.w.calculateOverlayDensity=function(){var m=document.querySelector("#shorts-container");if(m){var G=!1,K,W=this.playerContainer.offsetWidth,L=this.playerContainer.offsetHeight;m=m.offsetWidth/2-W/2;m>=368?(m=1,G=K=!0):m>=72?(m=0,K=!0):(m=2,K=!1);W>=600&&L>=840?m=1:window.innerWidth<=599&&(m=2,K=G=!1);this.isPersistentPanelActive&&(m=0,G=!1);this.extractActionBar=K;this.overlayDensity=m;this.extractOverlay=G;var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity,
this.extractOverlay,this.extractActionBar)}};
_.w.onOverlayDensityChange=function(){var m;(m=this.onOverlayDensityChanged)==null||m.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(m=_.VL(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))m.set("overlayDensity",this.overlayDensity),m.set("extractOverlay",this.extractOverlay),m.set("extractActionBar",this.extractActionBar);if(m=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))m.overlayDensity=this.overlayDensity,m.extractOverlay=
this.extractOverlay,m.extractActionBar=this.extractActionBar};
_.w.isVideoContent=function(m){_.xS().resolve(_.X2);return!!_.Q(m,_.lw)};
_.w.isNonVideoContent=function(m){_.xS().resolve(_.X2);return!!_.Q(m,_.Yq)};
_.w.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.e_.Object.defineProperties(Vy.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.adsOverlay)}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&this.isPlayerStarted}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var m;return!this.isActive||!this.isPlayerStarted||(m=this.data)!=null&&m.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var m;if(((m=this.data)==null?0:m.command)&&this.isVideoContent(this.data.command)){var G,K;if(((G=this.data)==null?0:G.adsOverlay)&&Object.keys((K=this.data)==null?void 0:K.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var W,L;if(((W=this.data)==null?0:W.reelPlayerOverlayRenderer)&&Object.keys((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
Vy.prototype.onOverlayDensityChange=Vy.prototype.onOverlayDensityChange;Vy.prototype.calculateOverlayDensity=Vy.prototype.calculateOverlayDensity;Vy.prototype.maybeLogNonDefaultAspectRatio=Vy.prototype.maybeLogNonDefaultAspectRatio;Vy.prototype.onEngagementPanelsChanged=Vy.prototype.onEngagementPanelsChanged;Vy.prototype.onScrubberDataChange=Vy.prototype.onScrubberDataChange;Vy.prototype.updateShouldHideOverlay=Vy.prototype.updateShouldHideOverlay;
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Vy.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],Vy.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],Vy.prototype,"index",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Vy.prototype,"isActive",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Vy.prototype,"isHiddenInDom",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"isPlayerPaused",void 0);_.x([_.V({selector:vts}),_.S("design:type",Object)],Vy.prototype,"isPlayerStarted",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"showPlayerControls",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"showScrubber",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"autoHideJobId",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"overlayType",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Vy.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Vy.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"watchWhileEngagementPanels",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"panelData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"isWatchWhileMode",void 0);_.x([_.V(),_.S("design:type",String)],Vy.prototype,"activeWatchWhilePanel",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"hasError",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"panelShowDelayMs",void 0);
_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"scrubberComponent",void 0);_.x([_.V({selector:_.kA,reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"isFullscreen",void 0);_.x([_.V(),_.S("design:type",Object)],Vy.prototype,"shouldHideOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"enableAnchoredPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"enablePersistentAnchoredPanel",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"hideWatchWhilePanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"useAspectRatio",void 0);_.x([_.V({selector:_.MVP,reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"isPersistentPanelActive",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"anchoredPanelActive",void 0);
_.x([_.V({selector:_.CQ,reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"isShortsPipActive",void 0);_.x([_.V({selector:bWu,reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"smallScreenSqueezeback",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data.adsOverlay"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vy.prototype,"isAdsOverlay",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"overlayDensity",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"extractOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Vy.prototype,"extractActionBar",void 0);_.x([_.V(),_.S("design:type",Function)],Vy.prototype,"onOverlayDensityChanged",void 0);_.x([_.V(),_.E("isActive","hasError","isPlayerStarted"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vy.prototype,"shouldRenderPlayerElements",null);
_.x([_.V(),_.E("isActive","isWatchWhileMode"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vy.prototype,"watchWhileOrPersistentActive",null);_.x([_.Sb("isActive","hasError","showingExpandedOverlay"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"updateShouldHideOverlay",null);
_.x([_.V({reflectToAttribute:!0}),_.E("isActive","isPlayerStarted","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vy.prototype,"shouldRenderScrubber",null);_.x([_.Sb("shouldRenderScrubber"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"onScrubberDataChange",null);_.x([_.E("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],Vy.prototype,"overlayComponent",null);
_.x([_.Sb("watchWhileEngagementPanels"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"onEngagementPanelsChanged",null);_.x([_.UM("#player-container"),_.S("design:type",HTMLElement)],Vy.prototype,"playerContainer",void 0);_.x([_.UM("#cinematic-container"),_.S("design:type",HTMLElement)],Vy.prototype,"cinematicContainer",void 0);
_.x([_.Sb("isPersistentPanelActive","data.thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"maybeLogNonDefaultAspectRatio",null);_.x([_.Sb("isPersistentPanelActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"calculateOverlayDensity",null);
_.x([_.Sb("overlayDensity","extractOverlay","extractActionBar"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vy.prototype,"onOverlayDensityChange",null);_.x([_.Ye({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],Vy);
_.y(Vy,"ytd-reel-video-renderer",function(){if(jV6!==void 0)return jV6;var m=document.createElement("template");_.b(m,'\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 id="video-filtering-overlay-container" class="style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" is-ads-overlay="[[isAdsOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jV6=m},{mode:2});var ZH=function(){var m=_.d.apply(this,arguments)||this;m.isPreviousPageShorts=!1;m.index=0;m.delayedActiveIndex=0;m.playablePreviousIndex=null;m.isPlayerPaused=!1;m.isPlayerStarted=!1;m.intersectionObserverThreshold=.6;m.fitToVisibleBounds=!1;m.pageSubtype="shorts";m.enablePreviousContinuation=_.F("shorts_in_playlists_web");m.shortsPipEnabled=_.F("web_shorts_pip");m.isDark=document.documentElement.hasAttribute("dark");m.shortsViewTransitions=_.F("web_shorts_view_transitions");m.isFullscreen=!1;m.isShortsPipActive=
!1;m.buttonOverride={iconPosition:"icon-only",size:"XL"};m.anchoredPanelActive=!1;m.isActive=!1;m.smallScreenPersistentPanel=!1;m.isPersistentPanelActive=!1;m.smallScreenSqueezeBack=!1;m.enableScrollIntoViewCenter=_.F("web_scroll_into_view_center");m.extractOverlay=!1;m.useAspectRatio=_.F("web_use_aspect_ratio");m.enableShortsSequenceRefactorUnify=_.F("web_enable_shorts_sequence_refactor_unify");m.continuationRequestPending=!1;m.carouselContainers=[];m.isShortsInitialized=!1;m.shortsContentList=[];
m.hasDataUpdated=!1;m.playerInPosition=!1;m.hidePreviousButtonImmediately=!1;m.showPreviousButtonImmediately=!1;m.endOfNextContinuation=!1;m.currentPlayerIndex=0;m.nextReelVe=_.dq(56921);m.prevReelVe=_.dq(56922);m.loopToggleOffVe=_.dq(198013);m.loopToggleOnVe=_.dq(198014);m.ambientModeToggleVe=_.dq(227860);m.reelPlayerPausedStateRendererVe=_.dq(141313);m.storedPlaybackSpeed=null;m.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"};m.onOverlayDensityChanged=function(G,K,W,L){G=m.getActiveReelVideo(G);m.extractOverlay=!!W;G==null||G.setAttribute("overlay-density",String(K));W===void 0||G!=null&&G.toggleAttribute("extract-overlay",W);L===void 0||G!=null&&G.toggleAttribute("extract-action-bar",L)};
return m};
_.n(ZH,_.d);_.w=ZH.prototype;_.w.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.w.setShortsContentList=function(){var m=this;if(this.enableShortsSequenceRefactorUnify){var G=this.shortsContentList&&this.reelWatchSequenceResponse?[].concat(_.Bz(this.shortsContentList)):[],K=this.firstShortsData;if(K){var W=this.reelWatchSequenceResponse;(K=this.shortsController==null?void 0:eli(G,K,W!=null?W:null))&&K.newContentList&&(K=K.newContentList,K.length!==G.length&&(this.shortsContentList=K,_.Pv(this,function(){m.observeShorts()})))}}};
_.w.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.w.onResize=function(){var m=_.$R(),G=m.dispatch,K=this.calculateIsSmallWidth();G.call(m,_.kt({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:K}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.w.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.w.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var m=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,G=m,K=0;m<250&&(G=m+this.shortsInnerContainer.clientWidth,K=24);_.eb(this.hostElement,{"--ytd-shorts-header-width":G+"px","--ytd-shorts-top-spacing":K+"px"})}};
_.w.isFirstShorts=function(m){return m&&!this.enableShortsSequenceRefactorUnify?this.index===-m.length:this.index===0};
_.w.isActiveReel=function(m,G,K){K&&(G=this.calculatePrevIndex(G,K));return m===G};
_.w.onFullscreenChange=function(){_.F("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.xS().resolve(_.pY).close(!0))};
_.w.engagementPanelsChanged=function(){var m;this.watchWhileEngagementPanels=(m=this.data)==null?void 0:m.engagementPanels};
_.w.unregisterPanels=function(){var m=_.xS().resolve(_.Wx);if(this.watchWhileEngagementPanels)for(var G=_.g(this.watchWhileEngagementPanels),K=G.next();!K.done;K=G.next()){var W=K.value,L=void 0,A=void 0;K=(L=W.engagementPanelSectionListRenderer)==null?void 0:(A=L.identifier)==null?void 0:A.tag;W=this.getPanelIdentifier(W.engagementPanelSectionListRenderer);m&&(K&&m.panelMap.delete(K),W&&_.F("web_shorts_panel_caching_bugfix")&&(L=K=void 0,(L=(K=m).unregisterPanelContent)==null||L.call(K,W)))}};
_.w.isVideoContent=function(m){return this.isVideoContentCommand(m==null?void 0:m.command)};
_.w.getActiveReelVideo=function(m){return _.VL(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+m+'"]')};
_.w.calculatePrevIndex=function(m,G){return G?m-((G==null?void 0:G.length)||0):-1};
_.w.onKeydown=function(m){var G=_.ve(m)||[];if(!hFi(G))if(m.code==="ArrowUp")m.preventDefault(),this.handlePrevButtonClick();else if(m.code==="ArrowDown")m.preventDefault(),this.handleNextButtonClick();else if(m.code==="KeyM")this.toggleMuteUnmuteVideo();else if(m.code==="KeyK"||m.code==="Space")this.togglePlayPauseVideo();else if((m.code==="KeyA"||m.code==="ArrowLeft")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")){var K;(K=this.player)==null||K.seekBy(-5)}else if((m.code==="KeyD"||m.code===
"ArrowRight")&&_.F("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var W;(W=this.player)==null||W.seekBy(5)}};
_.w.onServiceRequestCompleted=function(m,G){m=G.data;if(this.enableShortsSequenceRefactorUnify){if(this.continuationRequestPending=!1,m.continuationEndpoint||m.prevContinuationEndpoint)this.reelWatchSequenceResponse=m}else m.continuationEndpoint&&m.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:m.entries,continuationEndpoint:m.continuationEndpoint}}),this.cachedReelWatchSequenceResponse=m):m.prevContinuationEndpoint&&
m.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:m.prevEntries,prevContinuationEndpoint:m.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.w.handleEngagementPanelVisibilityChanged=function(m,G){var K=_.xS().resolve(_.Wx);if(m&&K){var W=this.getPanelIdentifier(m);if(G==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==W){K.hidePanel({identifier:this.activePanel});var L;this.activePanel=((L=m.identifier)==null?void 0:L.tag)||m.panelIdentifier}else this.isPersistentPanelActive=!0,_.$R().dispatch(dhu(!0)),this.anchoredPanelActive=!0,this.activePanel=W;else G==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===W&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.$R().dispatch(dhu(!1)))}};
_.w.handlePanelScrimClick=function(){var m=_.xS().resolve(_.Wx);this.activePanel&&(m.hidePanel({identifier:this.activePanel}),_.$R().dispatch(dhu(!1)))};
_.w.getShortsLoopSetting=function(){var m,G,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return _.F("kevlar_shorts_auto_advance")?A.yield(_.W3.getInstance(),2):A.return(!0);case 2:return(m=A.yieldResult)?A.yield(m.get("sfvles"),3):A.return(!0);case 3:return K=(G=A.yieldResult)!=null?G:!1,A.yield(m.get("sfvle"),4);case 4:return L=(W=A.yieldResult)!=null?W:!0,K?A.return(L):A.return(!0)}})};
_.w.handleSignalActionToggleLoopShortsOff=function(){var m=this,G,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!m.player)return L.return();m.player.setLoopVideo(!1);G=_.l1();_.fK(G,m.loopToggleOffVe);return L.yield(_.W3.getInstance(),2);case 2:return(K=L.yieldResult)?L.yield(K.set("sfvle",!1),3):L.return();case 3:return L.yield(K.set("sfvles",!0),4);case 4:W=_.M$(),_.Tq(0,203,!1),_.Tq(0,204,!0),W.save(),_.ey(L)}})};
_.w.handleSignalActionToggleLoopShortsOn=function(){var m=this,G,K,W;return _.Y(function(L){switch(L.nextAddress){case 1:if(!m.player)return L.return();m.player.setLoopVideo(!0);G=_.l1();_.fK(G,m.loopToggleOnVe);return L.yield(_.W3.getInstance(),2);case 2:return(K=L.yieldResult)?L.yield(K.set("sfvle",!0),3):L.return();case 3:return L.yield(K.set("sfvles",!0),4);case 4:W=_.M$(),_.Tq(0,203,!0),_.Tq(0,204,!0),W.save(),_.ey(L)}})};
_.w.handleSignalActionToggleCinematicShortsOn=function(){dcP(!0);var m;(m=this.JSC$22100_cinematicController)==null||Czu(m,!0);_.fK(_.l1(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.w.handleSignalActionToggleCinematicShortsOff=function(){dcP(!1);var m;(m=this.JSC$22100_cinematicController)==null||Czu(m,!1);_.fK(_.l1(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.w.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.w.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.w.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var m=this.overlayContainer.querySelector("#experiment-overlay");m&&_.Fu.addLowPriorityJob(function(){m.style.display="unset"},100)}else if(this.overlayContainer){var G;
((G=this.playerElement.getPlayer())==null?void 0:G.getPlayerState())===-1&&this.movePlayerToVideo(this.index)}};
_.w.getCurrentShort=function(){if(this.currentEndpoint){var m=this.currentEndpoint;if(this.isNonVideoContentCommand(m)){var G=_.Q(m,_.Yq);return{reelNonVideoContentRenderer:_.Q(G==null?void 0:G.renderer,_.NEK),command:m}}if(this.data){var K;G=(K=_.Q(this.currentEndpoint,_.lw))==null?void 0:K.thumbnail;var W;K=(W=this.data.overlay)==null?void 0:W.reelPlayerOverlayRenderer;_.xS().resolve(_.X2);m=this.data;var L,A;W=(L=m.overlay)==null?void 0:(A=L.shortsAdsRenderer)==null?void 0:A.adSlots;if(W!==void 0)W.length===
0?(_.F9("Shorts ads returned no ad slots."),m=void 0):(W.length>1&&_.F9("Shorts ads has more than one ad slots."),m=_.Q(W[0],_.UzS));else{var O,c;m=_.Q((O=m.overlay)==null?void 0:(c=O.shortsAdsRenderer)==null?void 0:c.overlay,_.UzS)}O=m;m=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Q(this.currentEndpoint,_.lw),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var u;return{reelPlayerOverlayRenderer:K,thumbnail:G,command:m,adsOverlay:O,
videoId:(u=_.Q(this.currentEndpoint,_.lw))==null?void 0:u.videoId}}}};
_.w.created=function(){var m=this;this.scrollToVideoThrottle=new _.yO(function(G,K){K=K===void 0?"smooth":K;var W;(W=m.getActiveReelVideo(G))==null||W.scrollIntoView({behavior:K,block:"nearest",inline:m.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.xS().resolve(_.X2);this.maybeCreateIntersectionObserver()};
_.w.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.w.attached=function(){var m=this;_.xS().resolve(_.X2).registerRootElement(this);this.pageScrollElement=_.VL(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.xC(this,this.processResetAction));_.F("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){m.maybeCreateIntersectionObserver();m.scrollToVideoThrottle.fire(m.activeIndex,"instant");m.shortsContainer.style.overflowY=
"scroll"}))};
_.w.calculateSqueezebackPanelSize=function(){var m=this,G=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Fu.addLowPriorityJob(function(){G<360?(m.hostElement.style.setProperty("--anchored-panel-width","480px"),_.$R().dispatch(PD6(!0))):(m.hostElement.style.setProperty("--anchored-panel-width",Math.min(G,480)+"px"),_.$R().dispatch(PD6(!1)))})};
_.w.detached=function(){var m=_.xS().resolve(_.X2);m.rootElement=void 0;var G;(G=m.unsubscribeFromStore)==null||G.call(m);m.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.xC(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.w.onResizeFinished=function(m,G){var K=this,W=new ResizeObserver(function(){K.shortsContainer.style.overflowY="hidden";_.Fu.addLowPriorityJob(function(){G()},100)});
W.observe(m);return W};
_.w.resetDocumentScrollTop=function(){var m,G;if((m=document)==null?0:(G=m.scrollingElement)==null?0:G.scrollTop)document.scrollingElement.scrollTop=0};
_.w.loadPage_=function(m){var G=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),m){var K;if((K=_.Q(this.currentEndpoint,_.lw))==null?0:K.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=m;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){G.isPlayerStarted&&
(G.handleOnPlaybackCommand(),G.afterPlayerStarted=function(){})};
this.registerPanel(m)}};
_.w.afterPlayerStarted=function(){};
_.w.handleOnPlaybackCommand=function(){if(_.F("web_shorts_comment_stickers")&&this.isPlayerStarted){var m,G=(m=_.Q(this.currentEndpoint,_.lw))==null?void 0:m.onPlaybackCommand;G&&this.ytComponentBehavior.resolveCommand(G)}};
_.w.maybeCreateIntersectionObserver=function(){var m=this,G=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==G){this.intersectionObserverThreshold=G;var K={rootMargin:"0px",threshold:G},W;(W=this.intersectionObserver)==null||W.disconnect();this.intersectionObserver=new IntersectionObserver(function(L){L=_.g(L);for(var A=L.next();!A.done;A=L.next())if(A=A.value,A.intersectionRatio>G){A=Number(A.target.id);if(isNaN(A))break;if(A===m.index)break;
_.ebd();m.loadVideo(A);_.ud("r_vtc")}},K);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.w.observeShorts=function(){var m,G,K,W=this.enableShortsSequenceRefactorUnify?((m=this.shortsContentList)==null?void 0:m.length)||0:(((G=this.shortsProcessedPrevSequence)==null?void 0:G.length)||0)+(((K=this.shortsProcessedSequence)==null?void 0:K.length)||0);if(this.carouselContainers.length<W&&(this.carouselContainers=[].concat(_.Bz(_.VL(this.hostElement).querySelectorAll(".reel-video-in-sequence-new"))),this.enableShortsSequenceRefactorUnify))for(m=_.g(this.carouselContainers),G=m.next();!G.done;G=
m.next())G=G.value,K=void 0,(K=this.intersectionObserver)==null||K.observe(G);if(!this.enableShortsSequenceRefactorUnify)for(m=_.g(this.carouselContainers),G=m.next();!G.done;G=m.next())G=G.value,K=void 0,(K=this.intersectionObserver)==null||K.observe(G)};
_.w.initCsi=function(){D85("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var m={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"}},G,K;if((G=this.playerData)==null?0:(K=G.cacheMetadata)==null?0:K.isCacheHit)m.isCacheHit=!0;var W;if(G=(W=_.Q(this.currentEndpoint,_.lw))==null?void 0:
W.prefetchTaskId)m.prefetchInfo={taskId:G};_.g9(m)};
_.w.isAd=function(){var m,G;return!!((m=_.Q(this.currentEndpoint,_.lw))==null?0:(G=m.adClientParams)==null?0:G.isAd)};
_.w.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.w.getPlayerContainer=function(){var m;return(m=_.VL(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:m.playerContainer};
_.w.onPlayerStateChange=function(m){var G=this;this.isPlayerPaused=m===2;m!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?m===1&&this.index===0&&(this.isPlayerStarted||_.$R().dispatch(yZE(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.$R().dispatch(yZE(!0)));this.player&&!this.player.getLoopVideo()&&_.Fu.addLowPriorityJob(function(){G.getShortsLoopSetting().then(function(K){var W;(W=G.player)==null||W.setLoopVideo(K)})});
this.isPlayerPaused&&_.F("web_shorts_paused_state_logging")&&_.a7(_.gU(),[this.reelPlayerPausedStateRendererVe])};
_.w.isShortPlayable=function(){if(_.F("kevlar_playable_short_killswitch"))return!0;var m;return(m=this.playerData)!=null&&m.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.w.setNormalPlaybackSpeed=function(){var m=this,G,K;return _.Y(function(W){if(W.nextAddress==1)return W.yield(m.getPlayer().getPlayerPromise(),2);G=W.yieldResult;K=G.getPlaybackRate();K!==1&&(m.storedPlaybackSpeed=K,G.setPlaybackRate(1));_.ey(W)})};
_.w.restorePlaybackSpeed=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1)return m.storedPlaybackSpeed===null?K.jumpTo(0):K.yield(m.getPlayer().getPlayerPromise(),3);G=K.yieldResult;G.setPlaybackRate(m.storedPlaybackSpeed);m.storedPlaybackSpeed=null;_.ey(K)})};
_.w.playerDataChanged=function(){var m=this,G,K,W,L,A,O,c,u,h;return _.Y(function(J){if(J.nextAddress==1){G=m.getPlayer();m.enableShortsSequenceRefactorUnify||(K=m.intersectionObserver)==null||K.disconnect();if(m.playerData){if(((W=m.playerData.videoDetails)==null?void 0:W.videoId)!==((L=G.getPlayer())==null?void 0:L.getVideoData().video_id)){A={};if(O=_.Q(m.currentEndpoint,_.lw))A.watch_endpoint=O,O.endTimeSeconds&&(A.end=O.endTimeSeconds);G.loadVideoWithPlayerResponse(m.playerData,A)}}else return J.return();
return m.player?J.jumpTo(2):J.yield(G.getPlayerPromise(),3)}J.nextAddress!=2&&(m.player=J.yieldResult,m.JSC$22100_playerStateChangeListener=m.onPlayerStateChange.bind(m),m.player.addEventListener("onStateChange",m.JSC$22100_playerStateChangeListener),_.F("kevlar_client_enable_shorts_player_bootstrap")&&_.Fw(),m.scrollToVideoThrottle.fire(m.index),m.movePlayerToVideo(m.index),_.Fu.addLowPriorityJob(function(){m.getShortsLoopSetting().then(function(N){var D;(D=m.player)==null||D.setLoopVideo(N)})}),
_.hY2.resolve(m.player),m.player.syncVolume(),m.getPlayer().focusOnPlayer());
_.Fu.addLowPriorityJob(function(){m.observeShorts()},100);
c=m.player.getPlayerState(m.player.getPresentingPlayerType());c!==1||m.isPlayerStarted||_.$R().dispatch(yZE(!0));m.updateBackNavContainerWidth();u=_.Q(m.currentEndpoint,_.lw);((h=u)==null?0:h.startTimeSeconds)&&m.player.seekTo(u.startTimeSeconds);if(m.JSC$22100_cinematicController||m.cinematicsInitializeJobId)return J.return();m.cinematicsInitializeJobId=_.Fu.addLowPriorityJob(function(){m.initCinematicController();m.cinematicsInitializeJobId=void 0});
_.ey(J)})};
_.w.onShortUndoDismiss=function(){var m=this,G=PBD().pop();G!==void 0&&(_.Pv(this,function(){m.showCardWithIndex(G)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.w.onShortsDismiss=function(m){if(m=m.detail.reelDismissalActionRenderer)(m=_.Q(m.onDismissalCompletionRenderer,Gmi))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:m}}}),this.scrollAndDismissCard()};
_.w.processReelNonVideoContentDismissalCommand=function(m){var G=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);m=_.Q(m,Jhz);this.activeDimissalTimeout=setTimeout(function(){G.scrollAndDismissCard()},Number(m==null?void 0:m.delayMs))};
_.w.scrollAndDismissCard=function(){var m=this,G=this.index;PBD().push(G);_.Pv(this,function(){var K=m.getPlayableNextIndex();K!==null&&(m.hideCardWithIndex(G),m.scrollToVideoThrottle.fire(K))})};
_.w.hideCardWithIndex=function(m){if(m=this.getActiveReelVideo(m))m.hidden=!0};
_.w.showCardWithIndex=function(m){if(m=this.getActiveReelVideo(m))m.hidden=!1};
_.w.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.w.activeChanged=function(m){_.$R().dispatch(_.kt({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:m}}));if(m)document.addEventListener("keydown",_.xC(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var G;(G=this.player)==null||G.sendAbandonmentPing()}var K;(K=this.player)==null||K.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.xC(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.w.graftClientVisualElements=function(){if(this.data){var m=_.l1();_.Y3F(m,_.fJ({response:this.reelWatchSequenceResponse}));_.yw(m,this.nextReelVe);_.yw(m,this.prevReelVe);_.F("kevlar_shorts_auto_advance")&&(_.yw(m,this.loopToggleOffVe),_.yw(m,this.loopToggleOnVe));_.yw(m,this.ambientModeToggleVe);_.a7(_.gU(),[this.nextReelVe,this.prevReelVe]);_.F("web_shorts_paused_state_logging")&&_.yw(m,this.reelPlayerPausedStateRendererVe)}};
_.w.graftNvcRenderer=function(){var m,G,K,W,L,A,O=this.enableShortsSequenceRefactorUnify?(m=this.shortsContentList)==null?void 0:(G=m[this.index])==null?void 0:G.command:this.index<0?(K=this.shortsProcessedPrevSequence)==null?void 0:(W=K[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:W.command:(L=this.shortsProcessedSequence)==null?void 0:(A=L[this.index])==null?void 0:A.command;if(O&&this.isNonVideoContentCommand(O)){m=_.Q(O,_.Yq);var c,u;(m=(c=_.Q(m==null?void 0:m.renderer,_.NEK))==
null?void 0:(u=c.loggingDirectives)==null?void 0:u.trackingParams)&&_.l1().graftServerVe(m)}};
_.w.setActiveIndex=function(){_.xS().resolve(_.X2).setActiveIndex(this.index)};
_.w.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.w.lazyUpdateMiniplayerData=function(){var m=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Fu.addLowPriorityJob(function(){m.updateMiniplayerData();m.updateMiniplayerDataJobId=void 0}))};
_.w.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Fu.cancelJob(this.updateMiniplayerDataJobId)};
_.w.updateMiniplayerData=function(){var m,G,K,W=_.xS().resolve(_.pY),L={shortsData:this.getCurrentShort(),previousButtonDisabled:!((m=this.prevButtonData)==null||!m.isDisabled),nextButtonDisabled:!((G=this.nextButtonData)==null||!G.isDisabled),playabilityStatus:(K=this.playerData)==null?void 0:K.playabilityStatus};_.Pd(W,L)};
_.w.resetPlayerLocation=function(){var m=this.getPlayer();this.initialPlayerContainer&&m.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.w.movePlayerToVideo=function(m,G){var K=this;G=G===void 0?!0:G;var W=this.getActiveReelVideo(m),L=this.getPlayer();if(W){this.overlayContainer?W.appendChild(this.overlayContainer):(this.overlayContainer=_.VL(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,W.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||L.appendTo(this.overlayContainer.playerContainer,void 0,!0));var A;(A=this.player)==null||A.setSize(NaN,NaN);this.isActive||_.Fu.addJob(function(){K.isActive=
!0},0);
L.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.F("reels_web_disable_rtr_tick")||_.F("reels_web_use_pbs_first_shorts")&&m===0||_.Yt("r_tr");this.currentPlayerIndex=m;W.appendChild(this.errorScreenContainer);var O;(O=this.JSC$22100_cinematicController)==null||PzD(O)}else G?_.Fu.addLowPriorityJob(function(){K.movePlayerToVideo(K.index,!1)}):Math.random()<=_.U8("web_shorts_error_logging_threshold")&&_.om(new _.cw("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:G,
index:m}))};
_.w.getAspectRatio=function(m){return(m==null?0:m.thumbnail)&&BUz(m.thumbnail)?"--ytd-shorts-player-ratio: "+BUz(m.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.w.getBackgroundImage=function(m){if(m!=null&&m.thumbnail)return(m=_.Eh(m.thumbnail.thumbnails))?'background-image:url("'+m+'");':"background-color:black;"};
_.w.getBackgroundImageUrl=function(m){if(m!=null&&m.thumbnail)return _.Eh(m.thumbnail.thumbnails)};
_.w.onPersistentPanelActiveChanged=function(){var m,G=(m=_.Q(this.currentEndpoint,_.lw))==null?void 0:m.thumbnail;if(G&&BUz(G)!==.5625){var K;(K=this.player)==null||K.setSize(NaN,NaN)}};
_.w.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.w.moveCinematicsToVideo=function(){var m=_.VL(this.hostElement).querySelector("ytd-reel-video-renderer");(m==null?0:m.cinematicContainer)&&m.cinematicContainer!==this.shortsCinematicContainer.parentElement&&m.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.w.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.w.updatePrevButtonData=function(){var m=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);m?this.prevButtonData=m=Object.assign({},m,{accessibility:{label:_.zq("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},tooltip:this.isUpArrowHidden?"":_.zq("PREVIOUS_VIDEO_LABEL")}):this.prevButtonData&&(this.prevButtonData=m=Object.assign({},this.prevButtonData,{isDisabled:!1}))};
_.w.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.w.updateNextButtonData=function(){var m=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);m&&(this.nextButtonData=m=Object.assign({},m,{accessibility:{label:_.zq("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},tooltip:_.zq("NEXT_VIDEO_LABEL")||""}))};
_.w.getPlayablePreviousIndex=function(){for(var m,G=this.index-1;G>=-(((m=this.prevShortsSequence)==null?void 0:m.length)||0);G--)if(!PBD().includes(G))return G;return null};
_.w.getIndexInSequence=function(m,G){return m.findIndex(function(K){var W;return((W=_.Q(K.command,_.lw))==null?void 0:W.videoId)===G})};
_.w.handlePrevButtonClick=function(m){var G=this,K,W;return _.Y(function(L){K=G.getPlayablePreviousIndex();if(K===null)return L.return();G.gestureType=((W=m)==null?void 0:W.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";K===0&&(G.hidePreviousButtonImmediately=!0);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.scrollToVideoThrottle.fire(K,"auto")}),L.return();
G.scrollToVideoThrottle.fire(K);_.ey(L)})};
_.w.getPlayableNextIndex=function(){for(var m,G,K=this.index+1;K<(this.enableShortsSequenceRefactorUnify?(m=this.shortsContentList)==null?void 0:m.length:((G=this.shortsProcessedSequence)==null?void 0:G.length)||0);K++)if(!PBD().includes(K))return K;return null};
_.w.handleNextButtonClick=function(m,G){var K=this,W,L;return _.Y(function(A){W=K.getPlayableNextIndex();if(W===null)return A.return();W===1&&(K.showPreviousButtonImmediately=!0);K.gestureType=((L=m)==null?void 0:L.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G&&(K.gestureType=G);if(K.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){K.scrollToVideoThrottle.fire(W,"auto")}),A.return();
K.scrollToVideoThrottle.fire(W);_.ey(A)})};
_.w.handleReelNavigateCommand=function(m,G,K){(m=_.Q(m,pfs))&&G&&m.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(K)};
_.w.loadVideo=function(m,G){var K=this;G=G===void 0?!1:G;if(m!==this.currentPlayerIndex){_.$R().dispatch(yZE(!1));if(this.isAd()&&!G){var W;(W=this.player)==null||W.notifyShortsAdSwipeEvent()}var L;(L=this.JSC$22100_cinematicController)==null||d5O(L);var A;(A=this.JSC$22100_cinematicController)==null||ZjE(A);W=m>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(W));this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=
!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var O,c,u,h,J,N;G=this.enableShortsSequenceRefactorUnify?(O=this.shortsContentList)==null?void 0:(c=O[m])==null?void 0:c.command:m<0?(u=this.shortsProcessedPrevSequence)==null?void 0:(h=u[this.shortsProcessedPrevSequence.length+m])==null?void 0:h.command:(J=this.shortsProcessedSequence)==null?void 0:(N=J[m])==null?void 0:N.command;this.index=m;this.gestureType||(this.gestureType=W?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");G&&this.isVideoContentCommand(G)&&(this.ytComponentBehavior.resolveCommand(G,{form:{createScreenConfig:{clickedVisualElement:W?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(G&&this.isNonVideoContentCommand(G)){this.currentEndpoint=G;this.data=void 0;O=_.l1();c=_.Q(G,_.Yq);var D,t;(c=(D=_.Q(c==null?void 0:c.renderer,_.NEK))==null?void 0:(t=D.screenLoggingData)==null?void 0:t.screenVeType)&&_.PB(O,
c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(D=this.getActiveReelVideo(m))&&D.appendChild(this.overlayContainer)}var a,v;D=this.enableShortsSequenceRefactorUnify?((a=this.shortsContentList)==null?NaN:a.length)-3<=m:((v=this.reelWatchSequenceResponse)==null?void 0:v.entries)&&m===this.reelWatchSequenceResponse.entries.length-1;var I;if(((I=this.reelWatchSequenceResponse)==null?0:I.continuationEndpoint)&&D){var Z,k,z={contentPlaybackContext:_.dS({},(k=
_.Q((Z=this.currentEndpoint)==null?void 0:Z.commandMetadata,_.RQ))==null?void 0:k.url,window.location.href)};this.enableShortsSequenceRefactorUnify?this.continuationRequestPending||(_.Fu.addJob(function(){K.ytComponentBehavior.resolveCommand(K.reelWatchSequenceResponse.continuationEndpoint,{form:z})},8),this.continuationRequestPending=!0):this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:z})}var X,f;
m=this.enableShortsSequenceRefactorUnify?!1:m===-(((X=this.reelWatchSequenceResponse)==null?void 0:(f=X.prevEntries)==null?void 0:f.length)||0);var U,l;((U=this.reelWatchSequenceResponse)==null?0:U.prevContinuationEndpoint)&&((l=this.reelWatchSequenceResponse)==null?0:l.prevEntries)&&m&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.w.setMiniplayerPreview=function(m){m=(m===void 0?0:m)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var G,K,W,L,A=_.xS().resolve(_.pY),O={shortsData:void 0,shortsPreviewThumbnail:m?this.enableShortsSequenceRefactorUnify?(G=this.shortsContentList)==null?void 0:(K=G[m])==null?void 0:K.thumbnail:(W=this.shortsProcessedSequence)==null?void 0:(L=W[m])==null?void 0:L.thumbnail:void 0};_.Pd(A,O)};
_.w.updateTitle=function(m){var G,K;m=(m==null?0:m.adSlots)?"":(K=m==null?void 0:(G=m.videoDetails)==null?void 0:G.title)!=null?K:"";_.Zw(this.hostElement,"yt-update-title",m)};
_.w.registerPanel=function(m){var G=_.xS().resolve(_.Wx);if(G){m=_.g(m.engagementPanels||[]);for(var K=m.next();!K.done;K=m.next()){K=K.value;var W=this.getPanelIdentifier(K.engagementPanelSectionListRenderer),L=void 0,A=void 0;(A=(L=G).registerPanelContent)==null||A.call(L,W,K)}}};
_.w.getPanelIdentifier=function(m){var G;return(m==null?void 0:(G=m.identifier)==null?void 0:G.tag)||(m==null?void 0:m.panelIdentifier)||(m==null?void 0:m.targetId)};
_.w.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.firstShortsData=this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.continuationRequestPending=this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.$R().dispatch(yZE(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.carouselContainers=
[];_.$R().dispatch(dhu(!1));var m;(m=this.shortsController)!=null&&(m.dismissedIndices=[]);var G;(G=this.shortsController)!=null&&G.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.xS().resolve(_.pY).close(!0)};
_.w.processAppendReelWatchSequenceContinuationEntriesAction=function(m){var G=this,K;(K=this.intersectionObserver)==null||K.disconnect();m=m.appendReelWatchSequenceContinuationEntriesAction;if(m==null?0:m.entries){var W;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Bz(((W=this.reelWatchSequenceResponse)==null?void 0:W.entries)||[]),_.Bz(m.entries)),continuationEndpoint:m.continuationEndpoint})}else if(m==null?0:m.prevEntries){var L;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Bz(((L=this.reelWatchSequenceResponse)==null?void 0:L.prevEntries)||[]),_.Bz(m.prevEntries)),prevContinuationEndpoint:m.prevContinuationEndpoint});_.Fu.addLowPriorityJob(function(){G.movePlayerToVideo(G.index);G.scrollToVideoThrottle.fire(G.index,"instant")})}else return;
_.Fu.addLowPriorityJob(function(){G.observeShorts()},100)};
_.w.processWatchSequence=function(m){var G=this;return m.map(function(K){K=K.command;return G.isVideoContentCommand(K)?{thumbnail:_.Q(K,_.lw).thumbnail,command:K}:{command:K}})};
_.w.calculateIntersectionObserverThreshold=function(){var m=_.VL(this.hostElement).querySelector("ytd-reel-video-renderer"),G=1;(m==null?0:m.offsetHeight)&&(m==null?0:m.offsetWidth)&&(G=Math.min(m.offsetHeight,this.shortsContainer.offsetHeight)/m.offsetHeight*(Math.min(m.offsetWidth,this.shortsContainer.offsetWidth)/m.offsetWidth));return Math.round(G*.6*10)/10};
_.w.isVideoContentCommand=function(m){_.xS().resolve(_.X2);return!!_.Q(m,_.lw)};
_.w.isNonVideoContentCommand=function(m){_.xS().resolve(_.X2);return!!_.Q(m,_.Yq)};
_.w.initCinematicController=function(){var m=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22100_cinematicController=new VB(this.shortsCinematicContainer,this.player);var G,K=_.Q((G=this.data)==null?void 0:G.background,Qa);VVE(this.JSC$22100_cinematicController,K);Czu(this.JSC$22100_cinematicController,ZWD(K));kAz(this.JSC$22100_cinematicController);_.Fu.addLowPriorityJob(function(){m.moveCinematicsToVideo()})}};
_.w.handleMiniplayerNavigateShorts=function(m){m==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():m==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.w.handleSignalActionToggleShortsPictureInPicture=function(){if(_.xS().resolve(_.pY).pictureInPictureSupported()){var m=_.xS().resolve(_.X2);if(_.F("web_shorts_pip")){var G=_.xS().resolve(_.pY);m.isShortsPipActive()?G.deactivate():G.isMiniplayerActive()||(_.U7().shortsPipActivation=!0,_.zdW(G))}}else(m=this.player)==null||m.togglePictureInPicture()};
_.e_.Object.defineProperties(ZH.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.reelWatchSequenceResponse)!=null&&m.prevEntries)return this.processWatchSequence([].concat(_.Bz(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence)return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.Bz(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.reelWatchSequenceResponse)!=null&&m.entries&&!this.enableShortsSequenceRefactorUnify)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var m=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var G;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((G=this.shortsProcessedSequence)==null?void 0:G.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var K;G=_.Q((K=this.firstShortsData)==null?void 0:K.command,_.lw);if(G==null||!G.videoId)return this.shortsProcessedSequence;K=this.getIndexInSequence(this.shortsSequence,
G.videoId);if(K!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=K,_.Fu.addLowPriorityJob(function(){m.scrollToVideoThrottle.fire(m.index,"auto");m.movePlayerToVideo(m.index)}));
return[].concat(_.Bz(this.shortsSequence))}this.shortsProcessedPrevSequence||_.UU(_.Fu,function(){m.observeShorts()},100);
return[this.firstShortsData].concat(_.Bz(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var m=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;m&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(m)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){if(this.enableShortsSequenceRefactorUnify){var m;return this.index===((m=this.shortsContentList)==null?NaN:m.length)-1}if(this.endOfNextContinuation){var G,K;return this.index===((G=this.reelWatchSequenceResponse)==null?void 0:(K=G.entries)==null?void 0:K.length)}var W;return!((W=this.reelWatchSequenceResponse)==null?0:W.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var m;(m=this.delayedActiveIndexUpdateDebouncer)==null||m.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return this.isShortPlayable()||((G=_.Q((m=this.data)==null?void 0:m.watchStatus,_.$Ri))==null?void 0:(K=G.style)==null?void 0:K.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var m=this,G=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),K;if((this.data||G)&&(((K=this.data)==null?0:K.engagementPanels)||this.isAd()||G)){G=!1;this.activePanel="shorts-comments-panel";var W;K=_.g(((W=this.data)==null?void 0:W.engagementPanels)||[]);for(W=K.next();!W.done;W=K.next())if(this.getPanelIdentifier(W.value.engagementPanelSectionListRenderer)===this.activePanel){G=!0;break}if(this.isPersistentPanelActive){var L=
_.xS().resolve(_.Wx);_.Fu.addJob(function(){L.showPanel({identifier:m.activePanel,target:null})},0,100)}var A;
W=[].concat(_.Bz(Object.values(((A=this.data)==null?void 0:A.engagementPanels)||{})));A=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);K=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return A===void 0&&K===void 0||(A==null?0:A.isDisabled)||(K==null?void 0:K.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!G?(G=W==null?void 0:W.findIndex(function(O){var c,u;return((c=O.engagementPanelSectionListRenderer)==null?void 0:(u=c.identifier)==null?void 0:u.tag)==="shorts-comments-panel"}),G===-1||G===void 0||W!=null&&W.splice(G,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.zq("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.zq("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:_.zq("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.zq("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(_.Bz(Object.values(W||
{})))):W}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K,W;if((G=this.playerData)==null?0:(K=G.playabilityStatus)==null?0:(W=K.errorScreen)==null?0:W.playerInterstitialRenderer)return _.Fu.addLowPriorityJob(function(){m.movePlayerToVideo(m.index)}),this.playerData.playabilityStatus.errorScreen;
var L,A;return((L=this.data)==null?void 0:L.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((A=this.data)==null?0:A.watchStatus)&&_.Q(this.data.watchStatus,_.xAi)?(_.Fu.addLowPriorityJob(function(){m.movePlayerToVideo(m.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.e_.Object.defineProperties(ZH,{template:{configurable:!0,enumerable:!0,get:function(){if(QVE===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n           <img class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" loading="lazy" src$="[[getBackgroundImageUrl(item)]]" alt="">\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);QVE=m}m=QVE;return m}}});
ZH.prototype.onNextButtonDataChange=ZH.prototype.onNextButtonDataChange;ZH.prototype.onPrevButtonDataChange=ZH.prototype.onPrevButtonDataChange;ZH.prototype.onPersistentPanelActiveChanged=ZH.prototype.onPersistentPanelActiveChanged;ZH.prototype.lazyUpdateMiniplayerData=ZH.prototype.lazyUpdateMiniplayerData;ZH.prototype.onShortsPipActiveChanged=ZH.prototype.onShortsPipActiveChanged;ZH.prototype.setActiveIndex=ZH.prototype.setActiveIndex;ZH.prototype.graftNvcRenderer=ZH.prototype.graftNvcRenderer;
ZH.prototype.graftClientVisualElements=ZH.prototype.graftClientVisualElements;ZH.prototype.onActiveChanged=ZH.prototype.onActiveChanged;ZH.prototype.onShortsDismiss=ZH.prototype.onShortsDismiss;ZH.prototype.onShortUndoDismiss=ZH.prototype.onShortUndoDismiss;ZH.prototype.playerDataChanged=ZH.prototype.playerDataChanged;ZH.prototype.afterPlayerStarted=ZH.prototype.afterPlayerStarted;ZH.prototype.unhideCurrentOverlay=ZH.prototype.unhideCurrentOverlay;ZH.prototype.onServiceRequestCompleted=ZH.prototype.onServiceRequestCompleted;
ZH.prototype.engagementPanelsChanged=ZH.prototype.engagementPanelsChanged;ZH.prototype.onFullscreenChange=ZH.prototype.onFullscreenChange;ZH.prototype.onResize=ZH.prototype.onResize;ZH.prototype.setShortsContentList=ZH.prototype.setShortsContentList;ZH.prototype.setFirstShortsData=ZH.prototype.setFirstShortsData;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ZH.prototype,"ytComponentBehavior",void 0);
_.x([_.q(ra.YtPageBehavior),_.S("design:type",Object)],ZH.prototype,"ytPageBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],ZH.prototype,"ironResizableBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Yj),_.S("design:type",Object)],ZH.prototype,"ytdDismissibleItemBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],ZH.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],ZH.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"playerData",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"reelWatchSequenceResponse",void 0);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"cachedReelWatchSequenceResponse",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"currentEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"nextButtonData",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"prevButtonData",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"isPreviousPageShorts",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"index",void 0);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"delayedActiveIndex",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"playablePreviousIndex",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"player",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"isPlayerPaused",void 0);_.x([_.V({selector:vts}),_.S("design:type",Object)],ZH.prototype,"isPlayerStarted",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"intersectionObserver",void 0);
_.x([_.V(),_.S("design:type",Number)],ZH.prototype,"cinematicsInitializeJobId",void 0);_.x([_.V(),_.S("design:type",Number)],ZH.prototype,"updateMiniplayerDataJobId",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"fitToVisibleBounds",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"pageSubtype",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ZH.prototype,"enablePreviousContinuation",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"shortsPipEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"isDark",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"shortsViewTransitions",void 0);_.x([_.V({selector:_.kA,reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"isFullscreen",void 0);
_.x([_.V({selector:_.CQ,reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"isShortsPipActive",void 0);_.x([_.UM("#shorts-inner-container"),_.S("design:type",HTMLElement)],ZH.prototype,"shortsInnerContainer",void 0);_.x([_.UM("#back-nav-button ytd-button-renderer"),_.S("design:type",_.sD)],ZH.prototype,"backNavButton",void 0);_.x([_.UM("#shorts-container"),_.S("design:type",HTMLElement)],ZH.prototype,"shortsContainer",void 0);
_.x([W5("error-screen"),_.S("design:type",HTMLElement)],ZH.prototype,"errorScreenContainer",void 0);_.x([W5("player"),_.S("design:type",Object)],ZH.prototype,"playerElement",void 0);_.x([W5("shorts-cinematic-container"),_.S("design:type",HTMLElement)],ZH.prototype,"shortsCinematicContainer",void 0);_.x([W5("initial-player-container"),_.S("design:type",HTMLElement)],ZH.prototype,"initialPlayerContainer",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"buttonOverride",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"anchoredPanelActive",void 0);_.x([_.V(),_.S("design:type",String)],ZH.prototype,"activePanel",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"isActive",void 0);_.x([_.V({selector:bWu,reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"smallScreenPersistentPanel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"isPersistentPanelActive",void 0);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"smallScreenSqueezeBack",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"enableScrollIntoViewCenter",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"extractOverlay",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"useAspectRatio",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ZH.prototype,"enableShortsSequenceRefactorUnify",void 0);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"continuationRequestPending",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"shortsController",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"panelContainer",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"overlayContainer",void 0);_.x([_.V(),_.S("design:type",Array)],ZH.prototype,"carouselContainers",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"isShortsInitialized",void 0);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"firstShortsData",void 0);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"firstShortsDataModel",void 0);_.x([_.V(),_.S("design:type",Array)],ZH.prototype,"shortsContentList",void 0);_.x([_.E("reelWatchSequenceResponse"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"prevShortsSequence",null);
_.x([_.E("data","prevShortsSequence"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"shortsProcessedPrevSequence",null);_.x([_.E("reelWatchSequenceResponse"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"shortsSequence",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"setFirstShortsData",null);
_.x([_.Sb("reelWatchSequenceResponse","firstShortsData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"setShortsContentList",null);_.x([_.E("data","shortsSequence","firstShortsData"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"shortsProcessedSequence",null);
_.x([_.V({reflectToAttribute:!0}),_.E("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZH.prototype,"isUpArrowHidden",null);_.x([_.V({reflectToAttribute:!0}),_.E("reelWatchSequenceResponse","index","endOfNextContinuation","shortsContentList"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZH.prototype,"isDownArrowHidden",null);
_.x([_.V(),_.E("index"),_.S("design:type",Number),_.S("design:paramtypes",[])],ZH.prototype,"activeIndex",null);_.x([_.E("isShortPlayable","data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZH.prototype,"shouldRenderOfflineContent",null);_.x([_.XC("iron-resize"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onResize",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"anchoredEngagementPanels",null);
_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"watchWhileEngagementPanels",void 0);_.x([_.Sb("isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onFullscreenChange",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"engagementPanelsChanged",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],ZH.prototype,"onServiceRequestCompleted",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"unhideCurrentOverlay",null);_.x([_.Sb("isPlayerStarted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"afterPlayerStarted",null);
_.x([_.E("playerData","reelWatchSequenceResponse","data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZH.prototype,"errorScreen",null);_.x([_.E("errorScreen"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ZH.prototype,"hasError",null);_.x([_.Sb("playerData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],ZH.prototype,"playerDataChanged",null);
_.x([_.XC("yt-dismissible-item-undo-feedback"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onShortUndoDismiss",null);_.x([_.XC("yt-disable-lockup-interaction"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],ZH.prototype,"onShortsDismiss",null);_.x([_.Mg("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onActiveChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"graftClientVisualElements",null);_.x([_.Sb("currentPlayerIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"graftNvcRenderer",null);_.x([_.Sb("index"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"setActiveIndex",null);
_.x([_.Sb("isShortsPipActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onShortsPipActiveChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"lazyUpdateMiniplayerData",null);_.x([_.V(),_.S("design:type",Object)],ZH.prototype,"onOverlayDensityChanged",void 0);
_.x([_.Sb("isPersistentPanelActive"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onPersistentPanelActiveChanged",null);_.x([_.Sb("index","data","isUpArrowHidden"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onPrevButtonDataChange",null);_.x([_.Sb("index","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ZH.prototype,"onNextButtonDataChange",null);
_.x([_.Ye({is:"ytd-shorts"})],ZH);var kaD;var Cyu;var V6z;var d4=function(){return _.d.apply(this,arguments)||this};
_.n(d4,_.d);d4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],d4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],d4.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],d4);
_.y(d4,"ytd-compact-tvfilm-entry-point-renderer",function(){if(V6z!==void 0)return V6z;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return V6z=m},{mode:1});var Z7W;var dwP;var Pys;var PP=function(){return _.d.apply(this,arguments)||this};
_.n(PP,_.d);PP.prototype.ready=function(){this.initializeDefs()};
PP.prototype.initializeDefs=function(){var m=this.meta.byKey("yt-icons"),G=_.VL(m).querySelector("#star"),K=_.VL(m).querySelector("#star_half");m=_.VL(m).querySelector("#star_border");G&&this.defs.appendChild(G.cloneNode(!0));K&&this.defs.appendChild(K.cloneNode(!0));m&&this.defs.appendChild(m.cloneNode(!0))};
PP.prototype.percentChanged=function(){for(var m=this.rating;m.firstChild;)m.removeChild(m.firstChild);var G=Math.round(this.percent/10);m=Math.floor(G/2);G%=2;var K=5-m-G;this.appendStars("star",m,0);this.appendStars("star_half",G,m);this.appendStars("star_border",K,m+G)};
PP.prototype.appendStars=function(m,G,K){for(var W=0;W<G;W++){var L=(18+this.spacing)*(W+K),A=document.createElementNS("http://www.w3.org/2000/svg","use");NlE(A,"#"+m);A.setAttribute("x",""+L);A.setAttribute("y","0");this.rating.appendChild(A)}};
PP.prototype.percentChanged=PP.prototype.percentChanged;_.x([_.UM("#defs"),_.S("design:type",HTMLElement)],PP.prototype,"defs",void 0);_.x([_.UM("#rating"),_.S("design:type",HTMLElement)],PP.prototype,"rating",void 0);_.x([_.V(),_.S("design:type",Number)],PP.prototype,"percent",void 0);_.x([_.V({value:6}),_.S("design:type",Number)],PP.prototype,"spacing",void 0);_.x([_.V({value:_.B0.create("iron-meta",{type:"iconset"})}),_.S("design:type",_.lh)],PP.prototype,"meta",void 0);
_.x([_.Sb("percent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],PP.prototype,"percentChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ratings"})],PP);
_.y(PP,"ytd-ratings",function(){if(Pys!==void 0)return Pys;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Pys=m},{mode:1});var yc5=function(){return _.d.apply(this,arguments)||this};
_.n(yc5,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yc5.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yc5.prototype,"data",void 0);_.x([_.Ye({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],yc5);
_.y(yc5,"ytd-offer-review-renderer",function(){if(dwP!==void 0)return dwP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dwP=m},{mode:1});var yy=function(){var m=_.d.apply(this,arguments)||this;m.badges=[{textBadge:{label:_.nG("CC")}}];return m};
_.n(yy,_.d);_.w=yy.prototype;_.w.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.w.dataChanged=function(){var m=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(m&&m.commandMetadata&&_.Q(m.commandMetadata,_.MA)&&_.Q(m.commandMetadata,_.MA).fireAutomatically)_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}});else{var G;m&&((G=_.Q(m,_.MA))==null?0:G.fireAutomatically)&&_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})}};
_.w.isEmptyContent=function(m){return this.isStorefrontEntryPointEmpty(m)&&this.shouldHideOfferModule(m)};
_.w.isStorefrontEntryPointEmpty=function(m){return!m||!m.storefrontEntryPoint};
_.w.shouldHideOfferModule=function(m){return!!m.hideVideoDetails};
_.w.isOfferModuleNavigationInactive=function(m){return!m.navigationEndpoint&&!m.serviceEndpoint};
_.w.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
yy.prototype.dataChanged=yy.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yy.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.S("design:type",Boolean)],yy.prototype,"hidden",void 0);
_.x([_.V(),_.S("design:type",Object)],yy.prototype,"badges",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yy.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],yy);
_.y(yy,"ytd-movie-offer-module-renderer",function(){if(Z7W!==void 0)return Z7W;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Z7W=m},{mode:1});var e4O;var fK6=function(){return _.d.apply(this,arguments)||this};
_.n(fK6,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],fK6.prototype,"componentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fK6.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],fK6);
_.y(fK6,"ytd-media-masthead-renderer",function(){if(e4O!==void 0)return e4O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return e4O=m},{mode:1});var xw5;_.sh(_.HsE,"course-metadata-view-model",{props:{data:_.nN,isOverlay:_.nN}});var eQ=function(){var m=_.d.apply(this,arguments)||this;m.isMetadataVisible=!1;m.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return m};
_.n(eQ,_.d);_.w=eQ.prototype;
_.w.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"}}}}};
_.w.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.w.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.w.expanderChanged=function(){var m;if((m=this.data)==null?0:m.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.w.isExpandButtonToggled=function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.expandMetadataButton,_.Dj))==null?void 0:G.isToggled};
_.w.onVisibilityButtonClick=function(){var m;if((m=this.data)==null?0:m.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.w.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
eQ.prototype.expanderChanged=eQ.prototype.expanderChanged;eQ.prototype.dataChanged=eQ.prototype.dataChanged;eQ.prototype.descriptionChanged=eQ.prototype.descriptionChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q([_.Pq.YtActionHandlerBehavior]),_.S("design:type",Object)],eQ.prototype,"actionHandlerBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],eQ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],eQ.prototype,"isMetadataVisible",void 0);_.x([_.UM("#expander"),_.S("design:type",Object)],eQ.prototype,"expander",void 0);_.x([_.Sb("data.description"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eQ.prototype,"descriptionChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eQ.prototype,"dataChanged",null);_.x([_.Sb("isMetadataVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eQ.prototype,"expanderChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],eQ);
_.y(eQ,"ytd-tvfilm-offer-module-renderer",function(){if(xw5!==void 0)return xw5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xw5=m},{mode:2});var XaD;var fh=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return m};
_.n(fh,_.d);fh.prototype.dataChanged=function(){this.hostElement.hidden=!1};
fh.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
fh.prototype.onThumbnailTap=function(m){this.data&&this.data.serviceEndpoint&&(_.xS().resolve(_.S1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),m.stopPropagation())};
fh.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
fh.prototype.dataChanged=fh.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fh.prototype,"rendererBehaviors",void 0);_.x([_.q([_.Pq.YtActionHandlerBehavior]),_.S("design:type",Object)],fh.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fh.prototype,"data",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],fh.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],fh);
_.y(fh,"ytd-unlimited-offer-module-renderer",function(){if(XaD!==void 0)return XaD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XaD=m},{mode:1});var SNq;var R46;var xB=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return m};
_.n(xB,_.d);xB.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
xB.prototype.handleRelatedChipCommand=function(m){m=_.Q(m,eY6);var G=m.contents;G?_.PH(this.hostElement,"yt-item-section-replace-action",[G,m.targetSectionIdentifier]):_.PH(this.hostElement,"yt-item-section-continuation-action",[m.continuationData,m.targetSectionIdentifier])};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xB.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xB.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],xB.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xB.prototype,"data",void 0);_.x([_.cL({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],xB);
_.y(xB,"yt-related-chip-cloud-renderer",function(){if(R46===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;SNq===void 0&&(SNq=document.createElement("template"));var W=SNq;K.call(G,W.content.cloneNode(!0),m.content.firstChild);R46=m}m=R46;return m},{mode:2});var Xt=function(){var m=_.d.apply(this,arguments)||this;m.isTwoColumns=!0;m.watchFeedBigThumbs=_.F("kevlar_watch_feed_big_thumbs");m.watchFeedBigThumbsOnLockup=_.F("web_watch_next_big_thumbs");m.watchNextGridHideChips=_.F("kevlar_watch_grid_hide_chips");m.eligibleToSwitchToGrid=!0;m.disableShortsShelfHeightOverride=_.F("web_shorts_wn_shelf_ratio_tuning");m.isWatchNextGrid=!1;m.reuseComponents=!_.F("kevlar_watch_grid");m.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return m};
_.n(Xt,_.d);_.w=Xt.prototype;
_.w.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.F("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}}};
_.w.getItemsPath=function(){return"data.results"};
_.w.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.w.created=function(){this.ytLazyListBehavior.initialCount=1};
_.w.ready=function(){_.eb(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-outline)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.w.resultsChanged=function(){if(this.data&&this.data.results){for(var m=this.data.results,G=null,K=null,W=0;W<m.length;W++)m[W].relatedChipCloudRenderer?G=m[W].relatedChipCloudRenderer:m[W].itemSectionRenderer&&(K=m[W].itemSectionRenderer);if(G&&K)for(this.set("data.continuations",[]),m=_.Q(G.content,_.sq0).chips,G=0;G<m.length;G++)if(W=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",m[G]),W.loadCached||!W.contents){W.contents=K.contents;break}}};
_.w.dataChanged=function(){var m=this,G;if((G=this.data)!=null&&G.results&&this.hasAllowedInstreamAd(this.playerData)){if(G=this.data.results.filter(function(c){return!!c.promotedSparklesWebRenderer})){for(var K=0;K<G.length;K++){var W=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",G[K]);
if(W)for(var L=0;L<W.length;L++)W[L]&&W[L].baseUrl&&_.HG(W[L].baseUrl)}this.set("data.results",this.data.results.filter(function(c){return!c.promotedSparklesWebRenderer}))}if(G=this.data.results.filter(function(c){return!!m.getSparklesAd(c)})){G=_.g(G);
for(L=G.next();!L.done;L=G.next())if(W=K=void 0,L=(K=this.getSparklesAd(L.value))==null?void 0:(W=K.errorCommand)==null?void 0:W.loggingUrls)for(K=_.g(L),W=K.next();!W.done;W=K.next())(W=W.value)&&W.baseUrl&&_.HG(W.baseUrl);var A,O;this.set("data.results",(A=this.data)==null?void 0:(O=A.results)==null?void 0:O.filter(function(c){return!c.adSlotRenderer}))}}};
_.w.getSparklesAd=function(m){var G,K;m=_.Q((G=m.adSlotRenderer)==null?void 0:(K=G.fulfillmentContent)==null?void 0:K.fulfilledLayout,_.SXo);return _.Q(m==null?void 0:m.renderingContent,XxP)};
_.w.hasAllowedInstreamAd=function(m){m=this.get("adPlacements",m)||[];for(var G=0;G<m.length;G++){var K=this.get("adPlacementRenderer.config.adPlacementConfig",m[G]);if(K&&K.suppressDisplayAd)return!0}return!1};
_.w.computeHideUnlimitedOfferModule=function(m,G){return m&&m.offerModule&&G&&m.offerModule.unlimitedOfferModuleRenderer&&m.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(G)?!0:!1};
_.w.hideUnlimitedOfferModuleChanged=function(){var m=_.VL(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");m&&(m.hidden=this.hideUnlimitedOfferModule)};
_.w.updateLockupContainerTypes=function(m){if(this.eligibleToSwitchToGrid){var G;(G=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||G.forEach(function(K){K.containerType=m})}};
_.w.computeHideTvfilmOfferModule=function(m,G){var K,W;return!!((m==null?0:(K=m.offerModule)==null?0:(W=K.tvfilmOfferModuleRenderer)==null?0:W.clientShouldSuppressIfCompanionAdDisplayed)&&G&&this.hasCompanionAds(G))};
_.w.hideTvfilmOfferModuleChanged=function(){var m=_.VL(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");m&&(m.hidden=this.hideTvfilmOfferModule)};
_.w.hasCompanionAds=function(m){m=this.get("adPlacements",m)||[];for(var G=0;G<m.length;G++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",m[G]))return!0;var K=void 0,W=void 0,L=void 0;if(!_.F("web_watch_top_banner_companion_check_killswitch")&&((K=m[G])==null?0:(W=K.adPlacementRenderer)==null?0:(L=W.renderer)==null?0:L.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.w.hasSuppressedResults=function(m){return m==null?!0:m.filter(function(G){return!G.continuationItemRenderer&&!G.compactPromotedVideoRenderer&&!G.promotedSparklesWebRenderer}).length===0};
_.w.computeShowButton=function(m,G){return this.isWatchNextGrid?m:m||this.hasSuppressedResults(G)};
_.w.showButtonChanged=function(){if(this.isWatchNextGrid){var m=_.VL(this.hostElement).querySelector("ytd-rich-grid-renderer");m&&this.showButton!==null&&(m.continuationShowButton=this.showButton)}else{m=_.VL(this.hostElement).querySelector("yt-next-continuation");var G=_.VL(this.hostElement).querySelector("ytd-continuation-item-renderer"),K=_.VL(this.hostElement).querySelector("ytd-item-section-renderer");m&&(m.showButton=this.showButton);G&&(G.showButton=this.showButton);K&&(K.continuationShowButton=
this.showButton)}};
_.w.continuationTap=function(m){var G;if(((G=this.data)==null?void 0:G.continuations)!=null&&m.target.tagName==="TP-YT-PAPER-BUTTON")for(m=this.data.continuations,G=0;G<m.length;G++)m[G].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(m[G].nextContinuationData||{})};
_.w.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("shown-items-changed",this.shownItems))};
_.e_.Object.defineProperties(Xt.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.shownItems)==null||!m.some(function(G){return!!G.lockupViewModel||G.compactVideoRenderer}))}}});
Xt.prototype.shownItemsChangedForBinding=Xt.prototype.shownItemsChangedForBinding;Xt.prototype.showButtonChanged=Xt.prototype.showButtonChanged;Xt.prototype.hideTvfilmOfferModuleChanged=Xt.prototype.hideTvfilmOfferModuleChanged;Xt.prototype.updateLockupContainerTypes=Xt.prototype.updateLockupContainerTypes;Xt.prototype.hideUnlimitedOfferModuleChanged=Xt.prototype.hideUnlimitedOfferModuleChanged;Xt.prototype.dataChanged=Xt.prototype.dataChanged;Xt.prototype.resultsChanged=Xt.prototype.resultsChanged;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Xt.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],Xt.prototype,"ytLazyListBehavior",void 0);_.x([_.q(_.bc.YtNextContinuationBehavior),_.S("design:type",Object)],Xt.prototype,"ytNextContinuationBehavior",void 0);
_.x([_.q(_.n4),_.S("design:type",Object)],Xt.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Xt.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Xt.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Xt.prototype,"playerData",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],Xt.prototype,"autoFill",void 0);_.x([_.V({value:60}),_.S("design:type",Number)],Xt.prototype,"targetFramerate",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"isTwoColumns",void 0);_.x([_.V(),_.S("design:type",Object)],Xt.prototype,"shownItems",void 0);_.x([_.V({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.S("design:type",Boolean)],Xt.prototype,"hideUnlimitedOfferModule",void 0);_.x([_.V({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.S("design:type",Boolean)],Xt.prototype,"hideTvfilmOfferModule",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"watchFeedBigThumbs",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"watchFeedBigThumbsOnLockup",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"watchNextGridHideChips",void 0);_.x([_.V(),_.S("design:type",Object)],Xt.prototype,"eligibleToSwitchToGrid",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"disableShortsShelfHeightOverride",void 0);_.x([_.V({selector:_.OT,reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"isGridViewEnabled",void 0);_.x([_.V({selector:_.YEf,reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"isSwatcherooActive",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Xt.prototype,"showMoreButton",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Xt.prototype,"isWatchNextGrid",void 0);_.x([_.V({computed:"computeShowButton(showMoreButton, data.results)"}),_.S("design:type",Boolean)],Xt.prototype,"showButton",void 0);_.x([_.Mg("data.results.*"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"resultsChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"dataChanged",null);_.x([_.Sb("hideUnlimitedOfferModule"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"hideUnlimitedOfferModuleChanged",null);_.x([_.E("isGridViewEnabled","containsLockups","data"),_.V({reflectToAttribute:!0}),_.S("design:type",Number),_.S("design:paramtypes",[])],Xt.prototype,"lockupContainerType",null);
_.x([_.Sb("lockupContainerType","data"),_.S("design:type",Function),_.S("design:paramtypes",[Number]),_.S("design:returntype")],Xt.prototype,"updateLockupContainerTypes",null);_.x([_.Sb("hideTvfilmOfferModule"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"hideTvfilmOfferModuleChanged",null);_.x([_.Sb("showButton"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"showButtonChanged",null);
_.x([_.Sb("shownItems"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Xt.prototype,"shownItemsChangedForBinding",null);_.x([_.E("shownItems"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Xt.prototype,"containsLockups",null);
_.y(Xt,"ytd-watch-next-secondary-results-renderer",function(){if(Cyu===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);Cyu=m}m=Cyu;return m},{mode:1});var UwG;var SQ=function(){var m=_.d.apply(this,arguments)||this;m.currentPageUrl="";m.baseUrl="";m.isHiddenByUser=null;m.hidden=!1;m.showAboveScrim=!1;m.watchNextGrid=_.F("kevlar_watch_grid");m.modernButtons=_.F("web_modern_buttons");m.roundedContainer=!0;m.noBorder=!1;m.roundBackground=!_.F("live_chat_round_background_killswitch");m.overflowHideChat=_.F("live_chat_overflow_hide_chat");m.forceDarkTheme=!1;m.theaterWatchWhile=!1;m.isListeningForPlayerProgress=!1;m.JSC$22153_playerEvents=new Map;m.isFrameReady=
!1;m.player=null;m.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 m};
_.n(SQ,_.d);_.w=SQ.prototype;_.w.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.PH(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.w.created=function(){var m=this;this.handleIframeEventListener=function(G){m.handleIframeEvent(G)};
this.handleKeyboardEventListener=function(G){m.handleKeyboardEvent(G)};
this.JSC$22153_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22153_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22153_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22153_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22153_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.w.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()};
_.w.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};
_.w.computeBaseUrl=function(m){var G="/live_chat";this.isChatReplay()&&(G="/live_chat_replay");return _.V7(_.Cb(_.kZ(_.jU(m),G),null),"").toString()};
_.w.dataChanged=function(){_.F("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.w.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var m=this.url;if(this.isChatReplay()&&this.player){var G=Math.floor(this.player.getProgressState().current*1E3);m=_.Ct(_.jU(m),"playerOffsetMs",G.toString()).toString()}G=this.chatframe;try{var K=m==="about:blank"?_.B5C:_.MI(m),W=G.contentDocument.location,L=_.i9(K);L!==void 0&&W.replace(L)}catch(A){G.src=m}}};
_.w.collapsedChanged=function(){_.Zw(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.w.handleIframeEvent=function(m){if(m&&this.baseUrl.startsWith(m.origin)&&m.source===this.chatframe.contentWindow&&_.Ud(m.data))if(m.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(m);else if(m.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(m.data["yt-show-feedback-dialog"]){var G=_.xS().resolve(_.fn(_.usD));if(G){var K=m.ports,W;K&&K.length&&(W=function(){K[0].postMessage({})});
m=m.data["yt-show-feedback-dialog"];G.showFeedbackDialog(m.customProductData,m.feedbackContent,W,m.bucket)}}else if(m.data["yt-show-survey"])_.Zw(this.hostElement,"yt-show-survey",m.data["yt-show-survey"]);else if(m.data["yt-purchase-membership"])_.xS().resolve(_.S1).resolveCommand(m.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(m.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(m.data["yt-tunnel-out-live-service-request"]);else if(m.data["yt-user-activity"])_.x3();
else if(m.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(m.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(m.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(m.data["yt-open-popup"]);else if(m.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(m.data["yt-log-flow-logging-event-command"]);else if(m.data["yt-hide-live-chat"])this.onShowHideChat();else m.data["yt-report-moderation-state-log"]&&
this.player&&(G={cpn:this.player.getVideoData().cpn},_.Fx("liveChatBeingModerated",G))};
_.w.attachLiveChatResponseVeTrackingParams=function(m){m=_.m5(m);var G=_.gU(),K=_.Cn("liveChatRenderer.trackingParams",this.data);G&&K&&_.tW(G,_.m5(K),m)};
_.w.handleBuyflowMessages=function(m){var G=m.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,K=m.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,W=m.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.Uw9(_.Ix(_.b0),G.replace(/-/g,"+").replace(/_/g,"/"),function(L){m.ports[0].postMessage({success:!0,buyFlowResponse:L})},void 0,function(L){m.ports[0].postMessage({success:!1,
error:L&&L.message||"Buyflow rejected without error."})},_.M$().get("hl"),void 0,function(){m.ports[0].postMessage({closed:!0})},K,W)};
_.w.setupPlayerProgressRelay=function(){var m=this;if(!this.isListeningForPlayerProgress){var G=_.ET();G!=null&&G.getPlayerPromise&&(G.getPlayerPromise().then(function(K){m.playerApiReady(K)}),this.isListeningForPlayerProgress=!0)}};
_.w.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.w.playerApiReady=function(m){this.setPlayer(m)};
_.w.playerProgressHandler=function(){if(this.player){var m=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":m.current})}};
_.w.playerAdStartHandler=function(m){this.postToContentWindow({"yt-player-ad-start":m})};
_.w.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.w.playerStateChangeHandler=function(m){this.postToContentWindow({"yt-player-state-change":m})};
_.w.setPlayer=function(m){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22153_playerEvents);m&&(this.player=m,this.ytPlayerListenerBehavior.listenToPlayerEvents(m,this.JSC$22153_playerEvents),_.Zw(this.hostElement,"player-api-ready"))};
_.w.liveChatPageUrl=function(m,G,K,W){return!K||G?"about:blank":K.liveChatRenderer?(G=_.jU(this.currentPageUrl).JSC$10339_queryData_,rzO(G),m=_.jU(m),G.add("continuation",K.liveChatRenderer.continuations[0].reloadContinuationData.continuation),K=_.Ng()==="USER_INTERFACE_THEME_DARK",(W||K)&&G.add("dark_theme","true"),_.Cb(m,G),W=_.jU(m.toString()),K=W.JSC$10339_queryData_,"SESSION_INDEX"in _.s8&&(K.add("authuser",_.E8("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.s8&&K.add("pageId",_.E8("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.s8&&K.add("sdc",_.E8("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),W.toString()):""};
_.w.isCollapsed=function(m,G){return G!==null?G:this.isChatReplay()||m&&m.conversationBarRenderer&&m.conversationBarRenderer.availabilityMessage?!0:m?m.liveChatRenderer?m.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.F("live_chat_hide_premiere_replay_message")||m.conversationBarRenderer&&m.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.w.isHidden=function(m,G,K){var W=G&&G.conversationBarRenderer&&G.conversationBarRenderer.availabilityMessage,L=G&&G.liveChatRenderer&&G.liveChatRenderer.showHideButton,A=G&&G.liveChatRenderer&&G.liveChatRenderer.showButton;return K&&m&&!W&&!A||!K&&m&&!W&&!L?!0:G&&G.liveChatRenderer&&G.liveChatRenderer.initialDisplayState?G.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.w.computeButtonOverride=function(m,G){if(m&&G)return{type:"outline"}};
_.w.setCollapsedState=function(m){_.Q(m,_.lpk)&&((this.isHiddenByUser=!!_.Q(m,_.lpk).collapsed)||_.dU(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.w.forwardReduxActionToIframe=function(m){this.postToContentWindow({"yt-live-chat-forward-redux-action":m})};
_.w.onLoopRangeChange=function(m){this.showAboveScrim=!(m==null||!m.postId)};
_.w.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.w.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.w.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.w.sendDarkThemePostMessage=function(m){this.postToContentWindow({"yt-live-chat-set-dark-theme":m})};
_.w.onLiveChatBuyFlowCallback=function(m){this.postToContentWindow({"yt-live-chat-buy-flow-callback":m})};
_.w.handleKeyboardEvent=function(m){(0,_.Y2.containsValue)(IIG,m.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:m.type,keyCode:m.keyCode}})};
_.w.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.w.postToContentWindow=function(m){if(this.isFrameReady)try{var G=window.location.protocol+"//"+window.location.host,K;(K=this.chatframe)!=null&&K.contentWindow?this.chatframe.contentWindow.postMessage(m,G):_.nc(new _.cw("Tried posting a message to an iframe with no content window",m))}catch(W){_.am(W)}};
_.w.shouldHideChatFrame=function(m){return m&&_.F("hide_live_chat_button_when_collapsed")};
_.e_.Object.defineProperties(SQ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.F("live_chat_overflow_hide_chat")||_.F("web_watch_chat_hide_button_killswitch"))return _.F("live_chat_overflow_hide_chat");var m,G,K,W;return!!((m=this.data)==null?0:(G=m.liveChatRenderer)==null?0:(K=G.header)==null?0:(W=K.liveChatHeaderRenderer)==null?0:W.collapseButton)}}});
SQ.prototype.collapsedChanged=SQ.prototype.collapsedChanged;SQ.prototype.urlChanged=SQ.prototype.urlChanged;SQ.prototype.dataChanged=SQ.prototype.dataChanged;SQ.prototype.onShowHideChat=SQ.prototype.onShowHideChat;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],SQ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Fa.YtPlayerListenerBehavior),_.S("design:type",_.Q$)],SQ.prototype,"ytPlayerListenerBehavior",void 0);_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],SQ.prototype,"ytOpenPopupBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],SQ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],SQ.prototype,"currentPageUrl",void 0);
_.x([_.V({computed:"computeBaseUrl(currentPageUrl,data)"}),_.S("design:type",Object)],SQ.prototype,"baseUrl",void 0);_.x([_.V({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.S("design:type",String)],SQ.prototype,"url",void 0);_.x([_.V(),_.S("design:type",Object)],SQ.prototype,"isHiddenByUser",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.S("design:type",Object)],SQ.prototype,"hidden",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.S("design:type",Boolean)],SQ.prototype,"collapsed",void 0);_.x([_.V({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.S("design:type",Boolean)],SQ.prototype,"hideChatFrame",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"showAboveScrim",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"watchNextGrid",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],SQ.prototype,"modernButtons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"roundedContainer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"noBorder",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],SQ.prototype,"roundBackground",void 0);
_.x([_.V({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.S("design:type",Object)],SQ.prototype,"toggleButtonOverride",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],SQ.prototype,"overflowHideChat",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"forceDarkTheme",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],SQ.prototype,"enableShowWithoutHideChatButton",null);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],SQ.prototype,"theaterWatchWhile",void 0);_.x([_.UM("#chatframe"),_.S("design:type",HTMLIFrameElement)],SQ.prototype,"chatframe",void 0);_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SQ.prototype,"onShowHideChat",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SQ.prototype,"dataChanged",null);
_.x([_.Sb("url"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SQ.prototype,"urlChanged",null);_.x([_.Sb("collapsed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],SQ.prototype,"collapsedChanged",null);_.x([_.Ye({is:"ytd-live-chat-frame",disableElementRegistration:!0})],SQ);
_.y(SQ,"ytd-live-chat-frame",function(){if(UwG!==void 0)return UwG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return UwG=m},{mode:1});var z4O;var Rr=function(){var m=_.d.apply(this,arguments)||this;m.lastRenderedPanelIds=new Set;m.visiblePanels=[];m.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return m};
_.n(Rr,_.d);_.w=Rr.prototype;_.w.dataChanged=function(){if(this.data){for(var m=[],G=_.g(this.data),K=G.next();!K.done;K=G.next()){K=K.value;var W=void 0,L=void 0,A=(W=K)==null?void 0:(L=W.engagementPanelSectionListRenderer)==null?void 0:L.visibility;L=W=void 0;((W=K)==null?0:(L=W.engagementPanelSectionListRenderer)==null?0:L.targetId)&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&m.push(K)}this.visiblePanels=m}else this.visiblePanels=[]};
_.w.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}}};
_.w.withoutVisiblePanelById=function(m){return this.visiblePanels.filter(function(G){var K;return((K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId)!==m})};
_.w.onYtChangeEngagementPanelVisibilityAction=function(m){var G=this,K=_.Q(m,_.Bvl);if(this.data&&(K==null?0:K.targetId)&&(K==null?0:K.visibility)){var W,L=(W=this.data.find(function(O){var c;return((c=O.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===K.targetId}))==null?void 0:W.engagementPanelSectionListRenderer;
if(L){var A=this.withoutVisiblePanelById(K.targetId);K.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(m=this.data.find(function(O){var c;return((c=O.engagementPanelSectionListRenderer)==null?void 0:c.targetId)===K.targetId}))&&(A=[m].concat(_.Bz(A)));
this.hideDelayMs&&K.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&A.length===0?_.Fu.addJob(function(){L.visibility=K.visibility;G.visiblePanels=A},10,this.hideDelayMs):(L.visibility=K.visibility,this.visiblePanels=A);
_.PH(this.hostElement,"yt-engagement-panels-visible-changed",[A])}}};
_.w.onRendererstamperFinished=function(){var m=new Set(this.visiblePanels.map(function(G){var K;return(K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId}));
this.handlePanelVisibilityChange(m,this.lastRenderedPanelIds);this.lastRenderedPanelIds=m};
_.w.handlePanelVisibilityChange=function(m,G){m=m===void 0?new Set:m;G=G===void 0?new Set:G;if(this.data)for(var K=_.g(this.data),W=K.next();!W.done;W=K.next()){W=W.value;var L=void 0,A=void 0,O=(L=W)==null?void 0:(A=L.engagementPanelSectionListRenderer)==null?void 0:A.targetId;if(O&&(L=G.has(O),A=m.has(O),O=void 0,!L&&A?(A=L=void 0,O=(L=W)==null?void 0:(A=L.engagementPanelSectionListRenderer)==null?void 0:A.onShowCommands):L&&!A&&(A=L=void 0,O=(L=W)==null?void 0:(A=L.engagementPanelSectionListRenderer)==
null?void 0:A.onHideCommands),O))for(W=_.g(O),O=W.next();!O.done;O=W.next())this.ytComponentBehavior.resolveCommand(O.value)}};
Rr.prototype.onRendererstamperFinished=Rr.prototype.onRendererstamperFinished;Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Rr.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Rr.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Rr.prototype,"lastRenderedPanelIds",void 0);_.x([_.V(),_.S("design:type",Number)],Rr.prototype,"hideDelayMs",void 0);_.x([_.V(),_.S("design:type",Array)],Rr.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],Rr.prototype,"visiblePanels",void 0);_.x([_.V(),_.S("design:type",Boolean)],Rr.prototype,"isWatchWhilePanel",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rr.prototype,"dataChanged",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Rr.prototype,"onRendererstamperFinished",null);_.x([_.Ye({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Rr);
_.y(Rr,"ytd-watch-engagement-panels",function(){if(z4O!==void 0)return z4O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return z4O=m},{mode:1});var lKz;var Bui;var M6W=function(){return _.d.apply(this,arguments)||this};
_.n(M6W,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],M6W.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],M6W.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],M6W);
_.y(M6W,"ytd-comments-entry-point-message-renderer",function(){if(Bui!==void 0)return Bui;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Bui=m},{mode:1});var Tu6;var UC=function(){return _.d.apply(this,arguments)||this};
_.n(UC,_.d);_.e_.Object.defineProperties(UC.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.teaserAvatar)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],UC.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],UC.prototype,"hasAvatar",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],UC);
_.y(UC,"ytd-comments-entry-point-teaser-renderer",function(){if(Tu6!==void 0)return Tu6;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Tu6=m},{mode:1});var mL5;var iv6=function(){return _.d.apply(this,arguments)||this};
_.n(iv6,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],iv6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iv6.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],iv6);
_.y(iv6,"ytd-comments-simplebox-renderer",function(){if(mL5!==void 0)return mL5;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return mL5=m},{mode:1});var z2=function(){var m=_.d.apply(this,arguments)||this;m.fullHeight=!_.F("comment_teaser_full_height_kill_switch")&&_.F("kevlar_watch_grid");return m};
_.n(z2,_.d);z2.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"}}}};
z2.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
z2.prototype.onTap=function(){var m=this.tapCommand;m&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(m))};
z2.prototype.onKeyUp=function(m){if(m.keyCode===13)this.onTap()};
_.e_.Object.defineProperties(z2.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null?0:m.onTap)return this.data.onTap;var G,K;if(((G=this.data)==null?0:G.teaserContent)||((K=this.data)==null?0:K.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)!=null&&m.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
z2.prototype.onKeyUp=z2.prototype.onKeyUp;z2.prototype.onTap=z2.prototype.onTap;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],z2.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],z2.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],z2.prototype,"fullHeight",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"tapCommand",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"simpleboxPlaceholder",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z2.prototype,"hasSimpleboxPlaceholder",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"simpleboxAvatar",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"teaserContent",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z2.prototype,"hasTeaserContent",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"teaserAvatar",null);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z2.prototype,"hasTeaserAvatar",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"messageText",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],z2.prototype,"contentRenderer",null);_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z2.prototype,"hasContents",null);
_.x([_.E("data"),_.V({reflectToAttribute:!0}),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z2.prototype,"hasContentRenderer",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],z2.prototype,"onTap",null);_.x([_.XC("keypress"),_.S("design:type",Function),_.S("design:paramtypes",[_.G5]),_.S("design:returntype")],z2.prototype,"onKeyUp",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],z2);
_.y(z2,"ytd-comments-entry-point-header-renderer",function(){if(lKz!==void 0)return lKz;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return lKz=m},{mode:1});var G0i;_.sh(_.gHl,"yt-animated-rolling-number",{props:{numberText:_.Dd,numberValue:_.Dd,heightPx:_.Dd,fontSizeMultiplier:_.Dd,shouldAnimate:_.Dd,forceRollUp:_.Dd}});var KGP=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),WGD={numberText:"",heightPx:2*KGP,shouldAnimate:!1},ll=function(){var m=_.d.apply(this,arguments)||this;m.usingAnimatedComponents=!0;m.wasDetailed=!1;m.JSC$22183_browserSupportsAnimation=_.F("web_supports_animations_api");m.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};m.detailed=!1;m.shouldAnimate=!1;m.viewCountProps=WGD;m.dateTextProps=
WGD;m.isEmpty=!1;m.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");return m};
_.n(ll,_.d);_.w=ll.prototype;_.w.computeIsEmpty=function(m,G,K,W,L,A,O,c){return!_.F("web_hide_watch_info_empty")||_.bw(m)?!1:G?!(_.bw(K)||W||_.bw(L)||_.bw(A)||O||_.bw(c)):!0};
_.w.attached=function(){var m=this;_.xS().resolve(_.VS).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(G){m.set("videoPrimaryInfoRenderer.subtitle",G)})};
_.w.detached=function(){_.xS().resolve(_.VS).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.w.resetAnimationState=function(){this.shouldAnimate=!1};
_.w.updateDynamicMetadata=function(){if(this.JSC$22183_browserSupportsAnimation){if(!this.detailed){var m,G,K,W;var L=(m=this.videoPrimaryInfoRenderer)==null?void 0:(G=m.viewCount)==null?void 0:(K=G.videoViewCountRenderer)==null?void 0:(W=K.extraShortViewCount)==null?void 0:W.simpleText;var A,O,c,u;var h=(A=this.videoPrimaryInfoRenderer)==null?void 0:(O=A.viewCount)==null?void 0:(c=O.videoViewCountRenderer)==null?void 0:(u=c.shortViewCount)==null?void 0:u.simpleText}if(!h){var J,N,D,t;L=(J=this.videoPrimaryInfoRenderer)==
null?void 0:(N=J.viewCount)==null?void 0:(D=N.videoViewCountRenderer)==null?void 0:(t=D.unlabeledViewCountValue)==null?void 0:t.simpleText;var a,v,I,Z;h=(a=this.videoPrimaryInfoRenderer)==null?void 0:(v=a.viewCount)==null?void 0:(I=v.videoViewCountRenderer)==null?void 0:(Z=I.viewCount)==null?void 0:Z.simpleText}var k,z,X;m=Number((k=this.videoPrimaryInfoRenderer)==null?void 0:(z=k.viewCount)==null?void 0:(X=z.videoViewCountRenderer)==null?void 0:X.originalViewCount);var f,U;k=(f=this.videoPrimaryInfoRenderer)==
null?void 0:(U=f.relativeDateText)==null?void 0:U.simpleText;var l;f=!((l=this.videoPrimaryInfoRenderer)==null||!l.relativeDateText);if(L&&h&&m&&(k||!f)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;l=h.split(new RegExp("("+L+")"));L=_.nG(l[0]);var Ls;h={numberText:(Ls=l[1])!=null?Ls:"",numberValue:m,heightPx:2*KGP,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var gd;Ls=((gd=l[2])!=null?gd:"")+"  ";this.setViewCount(h,L,_.nG(Ls));if(!this.detailed&&
f){L=k.split(/(\d+)/);gd=_.nG(L[0]);var Qf;Ls={numberText:(Qf=L[1])!=null?Qf:"",heightPx:2*KGP,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var JV;Qf=((JV=L[2])!=null?JV:"")+"  ";this.setDateText(Ls,gd,_.nG(Qf))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.w.setViewCount=function(m,G,K){_.bw(G)!==_.bw(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=G);this.viewCountProps.numberText!==(m==null?void 0:m.numberText)&&(this.viewCountProps=m||WGD);_.bw(K)!==_.bw(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=K)};
_.w.setDateText=function(m,G,K){_.bw(G)!==_.bw(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=G);this.dateTextProps.numberText!==(m==null?void 0:m.numberText)&&(this.dateTextProps=m||WGD);_.bw(K)!==_.bw(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=K)};
_.w.onYtUpdateViewershipAction=function(m){this.videoPrimaryInfoRenderer&&(_.Q(m,yhD).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Q(m,yhD).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Q(m,yhD).viewCount)))};
_.w.onYtUpdateDateTextAction=function(m){if(this.videoPrimaryInfoRenderer){m=_.Q(m,dOi).dateText;this.shouldAnimate=!0;var G;((G=this.videoPrimaryInfoRenderer)==null?0:G.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",m):this.set("videoPrimaryInfoRenderer.dateText",m)}};
_.e_.Object.defineProperties(ll.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return HYq(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.bw(HYq(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.bw(this.viewCountPreNumberText),this.viewCountProps.numberText,_.bw(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.bw(this.dateTextPreNumberText),this.dateTextProps.numberText,_.bw(this.dateTextPostNumberText)].join("")}}});
ll.prototype.updateDynamicMetadata=ll.prototype.updateDynamicMetadata;ll.prototype.resetAnimationState=ll.prototype.resetAnimationState;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ll.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ll.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ll.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"detailed",void 0);_.x([_.V(),_.S("design:type",Object)],ll.prototype,"shouldAnimate",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"viewCountPreNumberText",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"viewCountProps",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"viewCountPostNumberText",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"dateTextPreNumberText",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"dateTextProps",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"dateTextPostNumberText",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeIsEmpty(infoText, usingAnimatedComponents, viewCountPreNumberText, viewCountProps.numberText, viewCountPostNumberText, dateTextPreNumberText, dateTextProps.numberText, dateTextPostNumberText)"}),_.S("design:type",Object)],ll.prototype,"isEmpty",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ll.prototype,"metadataBadgesInDescription",void 0);_.x([_.E("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.S("design:type",Object),_.S("design:paramtypes",[])],ll.prototype,"infoText",null);
_.x([_.E("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.S("design:type",String),_.S("design:paramtypes",[])],ll.prototype,"descriptionInfoTooltipText",null);_.x([_.E("detailed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ll.prototype,"showDescriptionInfoTooltip",null);
_.x([_.E("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.S("design:type",String),_.S("design:paramtypes",[])],ll.prototype,"animatedViewCountAccessibilityLabel",null);_.x([_.E("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.S("design:type",String),_.S("design:paramtypes",[])],ll.prototype,"animatedDateTextAccessibilityLabel",null);
_.x([_.Sb("videoPrimaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ll.prototype,"resetAnimationState",null);_.x([_.Sb("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ll.prototype,"updateDynamicMetadata",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-watch-info-text"})],ll);
_.y(ll,"ytd-watch-info-text",function(){if(G0i!==void 0)return G0i;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return G0i=m},{mode:1});var LG6;var AmP="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var wsD=_.P(function(m){var G=m.data;var K=m.setTapCommand;_.$O(function(){var W=_.c8(G().onTap);K(W)},"CLm0Xe");
return _.r("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9}),_.r("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.r("span",null,function(){return G().simpleboxText})))},"Jk");var gnu=_.P(function(m){return _.r("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.r(_.p,{cond:function(){return _.Q(m.data().avatar,_.YA)},
then:function(G){return _.r(_.O9,{data:G,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.r("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.r(_.Nm,{text:function(){return m.data().teaserText}})))},"Kk");var Ovi=_.P(function(m){var G=m.data;var K=m.setTapCommand;_.$O(function(){var W=_.c8(G().onTap);K(W)},"qxjCCd");
return _.r("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.r(_.z$,{data:function(){return G().teasers}},{commentsEntryPointTeaserViewModel:gnu}))},"Mk");var cmG=_.P(function(m){var G=m.data;var K=m.setTapCommand;_.$O(function(){var W=_.c8(G().onTap);K(W)},"CRZByf");
return _.r("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.r(_.Nm,{text:function(){return G().messageText}}))},"Ok");var Ys6=_.P(function(m){var G=m.data;var K=m.setTapCommand;var W=m.isDisabled;_.$O(function(){var L=(W==null?0:W())?void 0:_.c8(G().onTap);K(L)},"GZxRqd");
return _.r("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.r(_.fN,{icon:function(){return G().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.r(_.p,{cond:function(){return G().image},
then:function(L){return _.r(_.oC,{data:L,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.r(_.Nm,{text:function(){return G().text},
className:function(){return G().image||G().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.r(_.z$,{data:function(){return G().button}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:W==null?void 0:W()}}})}}))},"Qk");var rm6=_.P(function(m){var G=m.data;var K=m.itemIndex;var W=m.selectedIndex;var L=m.indexUpdatedCallback;var A=m.observer;m=m.title;var O=_.Q3("yt-carousel-item-view-model",function(N){A&&A().observe(N)}),c=function(N){K()===W()&&L(N)},u=_.RC(OWP),h=_.RC(_.h2v),J=function(){var N,D,t,a,v;
return((N=G())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!u()||((D=G())==null?void 0:D.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((t=h())==null?void 0:t.includes("PAposts_by_host"))||((a=G())==null?void 0:a.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((v=h())==null?void 0:v.includes("PAyouchat"))};
return _.r("yt-carousel-item-view-model",{el:O,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":m},_.r(_.z$,{data:function(){var N,D;return(D=(N=_.Q(G().carouselItem,mos))==null?void 0:N.textCarousel)!=null?D:G().carouselItem}},{textCarouselItemViewModel:function(N){return _.r(Ys6,{data:N.data,
setTapCommand:c,isDisabled:J})},
commentTeaserCarouselItemViewModel:function(N){return _.r(Ovi,{data:N.data,setTapCommand:c})},
commentInputBoxCarouselItemViewModel:function(N){return _.r(wsD,{data:N.data,setTapCommand:c})},
commentsEntryPointMessageViewModel:function(N){return _.r(cmG,{data:N.data,setTapCommand:c})}}))},"Rk");var uGG=_.P(function(m){var G=m.numDots;var K=m.activeIndex;return _.r("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.r(_.D0,{each:function(){return Array.from({length:G()})},
keyBy:"INDEX"},function(W,L){return _.r("div",{class:function(){var A={};return _.KQ("ytCarouselDotsShapeDot",(A.ytCarouselDotsShapeDotActive=L===K(),A))}})}))},"Sk");var hqE=_.P(function(m){var G=m.data;var K=m.handleCarouselNavigation;var W=m.numItems;var L=m.selectedIndex;var A=function(){return{disabled:L()===0}},O=function(){return{disabled:L()===W()-1}};
return _.r("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.r("div",null,_.r("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return G().title}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(c){return _.r("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return G().subtitleAccessibilityText}},c)}})),_.r(_.p,{cond:function(){return W()>1},
then:function(){return _.r("div",{class:"ytCarouselTitleViewModelNavigation"},_.r(uGG,{numDots:W,activeIndex:L}),_.r(_.p,{cond:function(){return G().previousButton},
then:function(c){return _.r(_.z$,{data:c},{buttonViewModel:function(u){return _.r(_.kP,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return K(-1)},
buttonOverrides:A})}})}}),_.r(_.p,{cond:function(){return G().nextButton},
then:function(c){return _.r(_.z$,{data:c},{buttonViewModel:function(u){return _.r(_.kP,{data:u.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return K(1)},
buttonOverrides:O})}})}}))}}))},"Tk");_.sh(_.P(function(m){var G=m.data;var K,W=_.Q3("yt-video-metadata-carousel-view-model"),L=_.Q3("div",function(f){var U=function(){var l=f.offsetWidth*v(),Ls=24*(v()-1);D(l+Ls)};
U();window.ResizeObserver&&(K=new ResizeObserver(U),K.observe(f))}),A=_.E8("HTML_DIR")==="rtl",O=!1,c=0,u=0;
m=_.g(_.g_(0,void 0,"M49TDf"));var h=m.next().value,J=m.next().value;m=_.g(_.g_(0,void 0,"zLIok"));var N=m.next().value,D=m.next().value;m=_.g(_.g_(!1,void 0,"bhelhc"));var t=m.next().value,a=m.next().value,v=function(){var f,U,l;return(l=(f=G())==null?void 0:(U=f.carouselTitles)==null?void 0:U.length)!=null?l:0},I=function(){L.value&&L.value.scrollLeft!==c&&J((A?L.value.scrollLeft<c:L.value.scrollLeft>c)?Math.min(h()+1,v()-1):Math.max(h()-1,0))},Z;
window.IntersectionObserver&&(Z=new IntersectionObserver(function(f){f=_.g(f);for(var U=f.next();!U.done;U=f.next())if(U.value.isIntersecting){if(O){O=!1;break}I()}else J(u)},{threshold:.2}));
_.$O(function(){if(L.value){var f=(A?-1:1)*(N()/v()+12)*(t()&&Z?u:h());typeof L.value.scrollTo==="function"?L.value.scrollTo({left:f,behavior:"smooth"}):L.value.scrollLeft=f;c=f;u=t()&&Z?u:h()}},"s9rbgc");
var k,z=function(f){k=f};
_.sZ(function(){var f;(f=K)==null||f.disconnect();var U;(U=Z)==null||U.disconnect()});
var X=function(f){f=h()+f;f>=0&&f<v()&&(O=!0,J(f))};
return _.r("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:W,"on:click":_.dn(function(f){if(_.A3(_.LQ(f),W.value,["BUTTON".toString()])||!k)return!1;_.xS().resolve(_.S1).resolveCommand(k,{forceClickLogging:!0});return!1}),
"on:touchstart":_.dn(function(){a(!0);return!1}),
"on:touchend":_.dn(function(){Z||I();a(!1);return!1}),
hidden:function(){var f,U;return!((f=G())==null?0:(U=f.carouselItems)==null?0:U.length)}},_.r("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.r(_.p,{cond:function(){return G().carouselTitles},
then:function(f){return _.r(_.z$,{data:function(){return f()[t()&&Z?u:h()]}},{carouselTitleViewModel:function(U){return _.r(hqE,{data:U.data,
handleCarouselNavigation:X,numItems:v,selectedIndex:h})}})}})),_.r("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:L},_.r("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+N()+"px;"}},_.r(_.p,{cond:function(){return G().carouselItems},
then:function(f){return _.r(_.D0,{each:f},function(U,l){return _.r(_.z$,{data:function(){return U}},{carouselItemViewModel:function(Ls){return _.r(rm6,{data:Ls.data,
itemIndex:l,selectedIndex:h,indexUpdatedCallback:z,observer:Z,title:function(){a:{var gd=l();var Qf,JV=(Qf=G())==null?void 0:Qf.carouselTitles;if(JV&&(gd=JV[gd])){var DF;gd=(DF=_.Q(gd,T0W))==null?void 0:DF.title;break a}gd=void 0}return gd}})}})})}}))))},"Vk"),"yt-video-metadata-carousel-view-model",{props:{data:_.Dd}});var BP=function(){var m=_.d.apply(this,arguments)||this;m.isHovering=!1;m.enableColorSampling=_.F("web_delhi_colorful_sd");m.metadataBadgesInDescription=_.F("web_metadata_badges_in_description");m.descriptionCollapsed=!0;m.useFadedScrimDescription=_.F("kevlar_enable_faded_scrim_on_description");m.skinnyMode=!1;m.playlist=!1;m.isDark=document.documentElement.hasAttribute("dark");m.disableVideoOwnerOnTap=_.F("swatchie_video_owner_on_tap_ks");m.swatcherooDelayLoad=_.F("swatcheroo_enable_ghost_cards");
m.primaryMenuWidth=0;m.videoId="";m.titleHeadlineXs=_.F("web_watch_typography_title_headline_xs");m.titleHeadlineS=_.F("web_watch_typography_title_headline_s");m.titleHeadlineM=_.F("web_watch_typography_title_headline_m");m.titleHashtagBlackLinkified=_.F("web_title_hashtag_black_linkified");m.titleHashtagGreyLinkified=_.F("web_title_hashtag_grey_linkified");m.actionButtonsUpdateOwnerWidth=!0;m.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction",
"yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};m.isFullscreen=!1;m.isTheaterMode=!1;return m};
_.n(BP,_.d);_.w=BP.prototype;_.w.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.w.updateOwnerAndDescriptionPosition=function(){_.F("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),qX(this.bottomRowElement,this.ownerElement)):(qX(this.bottomRowElement,this.descriptionElement),qX(this.topRowElement,this.ownerElement)))};
_.w.titleOnTap=function(m){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||this.handleExpandDescriptionCommands()}};
_.w.videoOwnerOnTap=function(m){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.w.detached=function(){var m=this,G;return _.Y(function(K){(G=m.resizeObserver)==null||G.disconnect();_.ey(K)})};
_.w.maybeAttachResizeObserver=function(){var m=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.yO(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){m.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.w.maybeUpdateActionsOnSeparateLine=function(){this.skinnyMode?this.actionsOnSeparateLine=!0:this.primaryMenuWidth&&(this.actionsOnSeparateLine=this.primaryMenuWidth>this.hostElement.clientWidth-(this.ownerElement.clientWidth+32)?!0:!1)};
_.w.stripAttributedDescription=function(m){return{content:m.content.replace(/[\r\n]{2,}/g,"\n")}};
_.w.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.F("web_modern_buttons"),forceIconButton:!_.F("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:!0,forceIconOnly:!0}},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"}}}};
_.w.videoPrimaryInfoRendererChanged=function(){var m;if((m=this.videoPrimaryInfoRenderer)==null?0:m.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.w.videoSecondaryInfoRendererChanged=function(){var m,G;(m=this.descriptionInlineExpander)==null||(G=m.collapse)==null||G.call(m);this.descriptionExpandClientVe=_.dq(110509);this.descriptionCollapseClientVe=_.dq(110510);m=_.gU();G=_.wU();m&&G&&(_.F("combine_ve_grafts")?(_.yw(_.l1(),this.descriptionExpandClientVe,G),_.yw(_.l1(),this.descriptionCollapseClientVe,G)):_.Fv(m,G,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.w.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.w.updateTopLevelIconsOnly=function(){var m=this;_.F("top_level_update_killswitch")||this.menu&&_.Fu.addLowPriorityJob(function(){m.menu.topLevelIconsOnly=m.skinnyMode},_.U8("swathceroo_delay_flexible_menu_update",100))};
_.w.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.w.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.w.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.w.onYtTextInlineExpanderExpandedChanged=function(){if(!_.F("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var m,G;(G=(m=this.structuredDescriptionContentRendererElement).resize)==null||G.call(m)}};
_.w.onRenderStamperFinished=function(m){(m==null?void 0:m.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.w.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.w.onYtExpanderLessTapped=function(){var m,G=(m=this.videoSecondaryInfoRenderer)==null?void 0:m.showLessCommand;G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.w.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.w.onDescriptionClick=function(m){if(!_.b_(_.ve(m)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var G;((G=window.getSelection())==null?0:G.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.F("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.w.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.w.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.w.logCollapseClick=function(){var m=_.gU();m&&this.descriptionCollapseClientVe&&_.nW(m,this.descriptionCollapseClientVe)};
_.w.logExpandClick=function(){var m=_.gU();m&&this.descriptionExpandClientVe&&_.nW(m,this.descriptionExpandClientVe)};
_.w.collapseDescription=function(){this.descriptionCollapsed=!0};
_.w.scrollToTopOfContainer=function(){_.dU(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.w.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.w.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.w.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.w.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var m,G;(G=(m=this.descriptionInlineExpander).resize)==null||G.call(m)}else _.nc(new _.cw("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var K;(K=this.menu)==null||K.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.w.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var m,G,K=(G=(m=_.VL(this.menu).querySelector("#button-shape"))==null?void 0:m.clientWidth)!=null?G:0,W,L;m=((L=(W=_.VL(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:W.clientWidth)!=null?L:0)+8+K;var A,O;K=(O=(A=_.VL(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:A.children.length)!=null?O:2;m<=8*K||(this.primaryMenuWidth=m)}};
_.w.onYtUpdateTitleAction=function(m){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Q(m,P36).title)};
_.w.onYtUpdateDescriptionAction=function(m){if(m=_.Q(m,_.ik2)){var G,K=!((G=this.videoSecondaryInfoRenderer)==null||!G.attributedDescription);m.isEmpty||!m.description&&!m.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):m.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",m.attributedDescription):m.description&&(K?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.A$(m.description)):this.set("videoSecondaryInfoRenderer.description",m.description))}};
_.w.onYtDarkModeToggledAction=function(m){this.isDark=m};
_.w.registerPanel=function(){if(!_.F("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var m=_.F("web_watch_imax_theater_mode")&&this.isTheaterMode;m=_.F("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||m;var G=_.xS().resolve(_.Wx);G&&!m&&G.registerPanel("engagement-panel-structured-description",this)}};
_.w.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.w.parseColorSamplingData=function(){var m;if(_.F("web_delhi_colorful_sd")&&((m=this.structuredDescriptionContentRenderer)==null?0:m.items)&&(m=this.structuredDescriptionContentRenderer.items.find(function(L){return!!_.Q(L,o6)}))){var G,K;
this.hoverColor={lightTheme:(G=_.Q(m,o6))==null?void 0:G.lightThemeColorPalette,darkTheme:(K=_.Q(m,o6))==null?void 0:K.darkThemeColorPalette};var W;this.hoverText=(W=_.Q(m,o6))==null?void 0:W.colorSampledDescriptionBodyText}};
_.w.updateHoverColor=function(){if(_.F("web_delhi_colorful_sd")){var m=this.hoverColor,G={},K;m=(K=this.isDark?m==null?void 0:m.darkTheme:m==null?void 0:m.lightTheme)!=null?K:{};K=_.g(AmP);for(var W=K.next();!W.done;W=K.next()){W=W.value;var L=m[W];G["--yt-saturated-"+_.XS(W)]=L?_.ce(L):"initial"}_.eb(this.hostElement,G)}};
_.w.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.w.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.w.showPanel=function(m){this.expandDescription();var G=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;G.resize();var K,W=m==null?void 0:(K=m.sectionListEngagementPanelExtras)==null?void 0:K.scrollToItemSectionIdentifier;W?_.Fu.addJob(function(){G==null||G.scrollToSection(W)},8):this.scrollToTopOfContainer()};
_.w.isVisible=function(){return!this.descriptionCollapsed};
_.w.getReloadContinuation=function(){};
_.w.hidePanel=function(){};
_.w.updatePanel=function(){};
_.e_.Object.defineProperties(BP.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var m;return _.F("web_delhi_colorful_sd")&&(m=this.structuredDescriptionContentRenderer)!=null&&m.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(G){return!_.Q(G,o6)&&!_.Q(G,XfD)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.structuredDescriptionContentRendererComputed)!=null&&m.items){var G;m=_.g((G=this.structuredDescriptionContentRendererComputed)==null?void 0:G.items);for(G=m.next();!G.done;G=m.next())if(G=_.Q(G.value,_.X3C))return G}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.videoPrimaryInfoRenderer)==null?0:m.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!!((m=this.videoSecondaryInfoRenderer)==null?0:(G=m.owner)==null?0:(K=G.videoOwnerRenderer)==null?0:K.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var m,G;if((m=this.videoSecondaryInfoRenderer)==null?0:(G=m.attributedDescription)==null?0:G.content){var K,W;return(W=this.stripAttributedDescription((K=this.videoSecondaryInfoRenderer)==null?void 0:K.attributedDescription))!=null?W:{runs:[]}}}if(_.F("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var L,A,O,c;return(c=(O=(L=this.videoSecondaryInfoRenderer)==
null?void 0:L.description)!=null?O:(A=this.videoSecondaryInfoRenderer)==null?void 0:A.attributedDescription)!=null?c:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.videoSecondaryInfoRenderer)==null?void 0:m.headerRuns)!=null?G:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.commentsEntryPointHeaderRenderer)==null||!m.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.videoMetadataCarousel)==null||!m.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.U8("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var m,G,K=Object.assign({},(m=this.videoSecondaryInfoRenderer)==null?void 0:(G=m.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(K&&K.rows&&K.collapsedItemCount!==void 0&&!(K.rows.length<=K.collapsedItemCount))return K.rows=K.rows.slice(K.collapsedItemCount),K.collapsedItemCount=0,K}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var m,G,K=Object.assign({},(m=this.videoSecondaryInfoRenderer)==null?void 0:(G=m.metadataRowContainer)==null?void 0:G.metadataRowContainerRenderer);if(K&&K.rows&&K.collapsedItemCount!==void 0)return K.rows=K.rows.slice(0,K.collapsedItemCount),K.collapsedItemCount=K.rows.length,K}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.structuredDescriptionContentRendererComputed)==null?0:(G=m.items)==null?0:G.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var m;return(m=this.videoSecondaryInfoRenderer)==null?void 0:m.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.videoSecondaryInfoRenderer)==null?0:(G=m.owner)==null?0:(K=G.videoOwnerRenderer)==null?0:K.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var m,G,K,W;return!!((m=this.videoPrimaryInfoRenderer)==null?0:(G=m.videoActions)==null?0:(K=G.menuRenderer)==null?0:(W=K.flexibleItems)==null?0:W.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.t$(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.t$(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var m=this;if(_.F("web_title_hashtag_grey_delinkified")){var G,K=_.Y2.unsafeClone((G=this.videoPrimaryInfoRenderer)==null?void 0:G.title);(G=K==null?void 0:K.runs)&&G.forEach(function(W){if(W==null?0:W.navigationEndpoint)W.textColor=4284506208,m.isDark&&(W.textColor=4289374890)});
return K}return(K=this.videoPrimaryInfoRenderer)==null?void 0:K.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.F("web_title_hashtag_black_delinkified")||_.F("web_title_hashtag_grey_delinkified")}}});
BP.prototype.updateHoverColor=BP.prototype.updateHoverColor;BP.prototype.parseColorSamplingData=BP.prototype.parseColorSamplingData;BP.prototype.resetDescriptionState=BP.prototype.resetDescriptionState;BP.prototype.registerPanel=BP.prototype.registerPanel;BP.prototype.onYtExpanderLessTapped=BP.prototype.onYtExpanderLessTapped;BP.prototype.onYtExpanderMoreTapped=BP.prototype.onYtExpanderMoreTapped;BP.prototype.onRenderStamperFinished=BP.prototype.onRenderStamperFinished;
BP.prototype.onYtTextInlineExpanderExpandedChanged=BP.prototype.onYtTextInlineExpanderExpandedChanged;BP.prototype.onYtTextInlineExpanderCollapseClicked=BP.prototype.onYtTextInlineExpanderCollapseClicked;BP.prototype.onYtTextInlineExpanderExpandClicked=BP.prototype.onYtTextInlineExpanderExpandClicked;BP.prototype.moveActionsElement=BP.prototype.moveActionsElement;BP.prototype.updateTopLevelIconsOnly=BP.prototype.updateTopLevelIconsOnly;BP.prototype.structuredDescriptionContentRendererChanged=BP.prototype.structuredDescriptionContentRendererChanged;
BP.prototype.videoSecondaryInfoRendererChanged=BP.prototype.videoSecondaryInfoRendererChanged;BP.prototype.videoPrimaryInfoRendererChanged=BP.prototype.videoPrimaryInfoRendererChanged;BP.prototype.maybeUpdateActionsOnSeparateLine=BP.prototype.maybeUpdateActionsOnSeparateLine;BP.prototype.updateOwnerAndDescriptionPosition=BP.prototype.updateOwnerAndDescriptionPosition;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],BP.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],BP.prototype,"ytdReduxBehavior",void 0);
_.x([_.UM("#above-the-fold"),_.S("design:type",HTMLElement)],BP.prototype,"aboveTheFoldContainer",void 0);_.x([_.UM("#menu ytd-menu-renderer"),_.S("design:type",Object)],BP.prototype,"menu",void 0);_.x([_.UM("#description-inline-expander"),_.S("design:type",Object)],BP.prototype,"descriptionInlineExpander",void 0);_.x([_.UM("#faded-structured-description"),_.S("design:type",Object)],BP.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);
_.x([_.UM("#structured-description"),_.S("design:type",Object)],BP.prototype,"structuredDescriptionContentRendererElement",void 0);_.x([_.UM("#title"),_.S("design:type",HTMLElement)],BP.prototype,"titleElement",void 0);_.x([_.UM("#description"),_.S("design:type",HTMLElement)],BP.prototype,"descriptionElement",void 0);_.x([_.UM("#description-interaction"),_.S("design:type",Object)],BP.prototype,"descriptionInteraction",void 0);
_.x([_.UM("#owner"),_.S("design:type",HTMLElement)],BP.prototype,"ownerElement",void 0);_.x([_.UM("#top-row"),_.S("design:type",HTMLElement)],BP.prototype,"topRowElement",void 0);_.x([_.UM("#bottom-row"),_.S("design:type",HTMLElement)],BP.prototype,"bottomRowElement",void 0);_.x([_.UM("#actions"),_.S("design:type",HTMLElement)],BP.prototype,"actionsElement",void 0);_.x([_.UM("#bottom-actions"),_.S("design:type",HTMLElement)],BP.prototype,"bottomActionsElement",void 0);
_.x([_.UM("#ytd-watch-info-text"),_.S("design:type",Object)],BP.prototype,"watchInfoTextElement",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"commentsEntryPointHeaderRenderer",void 0);
_.x([_.V(),_.S("design:type",Object)],BP.prototype,"videoMetadataCarousel",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"structuredDescriptionContentRenderer",void 0);_.x([_.E("structuredDescriptionContentRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"structuredDescriptionContentRendererComputed",null);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"videoSummary",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"merchShelf",void 0);
_.x([_.V(),_.S("design:type",Object)],BP.prototype,"infoPanelBelowMetadata",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"hoverColor",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"hoverText",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"isHovering",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"enableColorSampling",void 0);
_.x([_.E("structuredDescriptionContentRendererComputed"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"productShelf",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"metadataBadgesInDescription",void 0);_.x([_.E("videoPrimaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"shouldHideBadges",null);
_.x([_.E("productShelf","descriptionCollapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"shouldShowProductShelf",null);_.x([_.V(),_.S("design:type",Boolean)],BP.prototype,"isWatchFlexy",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"descriptionCollapsed",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],BP.prototype,"useFadedScrimDescription",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"skinnyMode",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("videoSecondaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"largerItemWrap",null);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"playlist",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"clarifyBox",void 0);_.x([_.V(),_.S("design:type",Object)],BP.prototype,"playerAds",void 0);
_.x([_.V(),_.S("design:type",Boolean)],BP.prototype,"isDark",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],BP.prototype,"actionsOnSeparateLine",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"disableVideoOwnerOnTap",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"swatcherooDelayLoad",void 0);_.x([_.V(),_.S("design:type",Boolean)],BP.prototype,"suppressTopLevelMetadataRows",void 0);
_.x([_.V(),_.S("design:type",Object)],BP.prototype,"primaryMenuWidth",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"videoId",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"titleHeadlineXs",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"titleHeadlineS",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"titleHeadlineM",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"titleHashtagBlackLinkified",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"titleHashtagGreyLinkified",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.x([_.Mg("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"updateOwnerAndDescriptionPosition",null);
_.x([_.Mg("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"maybeUpdateActionsOnSeparateLine",null);_.x([_.E("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"descriptionText",null);
_.x([_.E("videoSecondaryInfoRenderer.headerRuns"),_.S("design:type",Array),_.S("design:paramtypes",[])],BP.prototype,"headerRuns",null);_.x([_.V({value:!1}),_.E("commentsEntryPointHeaderRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"hasTeaser",null);_.x([_.V({value:!1,reflectToAttribute:!0}),_.E("videoMetadataCarousel"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"hasTeaserCarousel",null);
_.x([_.V({value:3}),_.E("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"descriptionMaxLines",null);_.x([_.E("videoSecondaryInfoRenderer.metadataRowContainer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"collapsibleMetadataRows",null);
_.x([_.E("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"alwaysVisibleMetadataRows",null);_.x([_.E("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"hasInlineStructuredDescription",null);
_.x([_.E("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"showInlineStructuredDescription",null);_.x([_.E("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"descriptionExpandCommand",null);
_.x([_.E("videoSecondaryInfoRenderer.owner"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"videoOwnerCommand",null);_.x([_.V({reflectToAttribute:!0}),_.E("videoPrimaryInfoRenderer.videoActions"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"flexMenuEnabled",null);_.x([_.V({selector:_.gq,reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"isFullscreen",void 0);
_.x([_.V({selector:_.wq,reflectToAttribute:!0}),_.S("design:type",Object)],BP.prototype,"isTheaterMode",void 0);_.x([_.E("descriptionText","useFadedScrimDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"showAttributedStringDescription",null);_.x([_.E("descriptionText","useFadedScrimDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"showFormattedStringDescription",null);
_.x([_.E("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],BP.prototype,"showFadedStructuredDescription",null);_.x([_.Mg("videoPrimaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"videoPrimaryInfoRendererChanged",null);_.x([_.E("videoPrimaryInfoRenderer.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"videoTitle",null);
_.x([_.E("videoPrimaryInfoRenderer"),_.S("design:type",Object),_.S("design:paramtypes",[])],BP.prototype,"noEndpoints",null);_.x([_.Mg("videoSecondaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"videoSecondaryInfoRendererChanged",null);
_.x([_.Sb("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"structuredDescriptionContentRendererChanged",null);_.x([_.Sb("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"updateTopLevelIconsOnly",null);
_.x([_.Sb("skinnyMode"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"moveActionsElement",null);_.x([_.XC("yt-text-inline-expander-expand-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.x([_.XC("yt-text-inline-expander-collapse-clicked"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.x([_.XC("yt-text-inline-expander-expanded-changed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],BP.prototype,"onRenderStamperFinished",null);_.x([_.XC("yt-expander-more-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"onYtExpanderMoreTapped",null);_.x([_.XC("yt-expander-less-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"onYtExpanderLessTapped",null);
_.x([_.Sb("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"registerPanel",null);_.x([_.Sb("videoSecondaryInfoRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"resetDescriptionState",null);
_.x([_.Sb("structuredDescriptionContentRenderer"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"parseColorSamplingData",null);_.x([_.Sb("hoverColor","isDark"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BP.prototype,"updateHoverColor",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-watch-metadata"})],BP);
_.y(BP,"ytd-watch-metadata",function(){if(LG6!==void 0)return LG6;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <template is="dom-if" if="[[videoSecondaryInfoRenderer]]" id="description-wrapper" class="style-scope ytd-watch-metadata">\n      <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n        <div id="description-inner" class="style-scope ytd-watch-metadata">\n          <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n          \n          <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n            <ytd-merch-shelf-renderer data="[[productShelf]]" detailed-description-override="[[!descriptionCollapsed]]" class="style-scope ytd-watch-metadata">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n            <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n            </yt-attributed-string>\n            \n            <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            </yt-formatted-string>\n            <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n            <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n          </div>\n          <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n            <div slot="extra-content" class="style-scope ytd-watch-metadata">\n              <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n              </ytd-structured-description-content-renderer>\n              <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n              </ytd-metadata-row-container-renderer>\n            </div>\n          </ytd-text-inline-expander>\n        </div>\n        <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n      </div>\n    </template>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return LG6=m},{mode:2});var MY=function(){var m=_.d.apply(this,arguments)||this;m.hidden=!1;m.errorScreen=null;m.playlistData={};return m};
_.n(MY,_.d);_.w=MY.prototype;_.w.getPlayer=function(){return this.ytdPlayer};
_.w.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:QV(["aa","eocs"])}}};
_.w.onActiveChanged=function(){_.$R().dispatch(RAD(this.ytPageBehavior.active))};
_.w.playerDataChanged=function(){var m;(m=this.watchController)==null||m.setPlayerResponse(this.playerData)};
_.w.dataChanged=function(){var m;(m=this.watchController)==null||m.setWatchNextResponse(this.data)};
_.w.sizeChanged=function(){var m,G;(G=(m=this.metadata).resize)==null||G.call(m)};
_.w.attached=function(){this.watchController=new Ss(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.w.detached=function(){_.I$(this.watchController);this.watchController=void 0};
_.w.getPlayerContainer=function(){return this.playerContainer};
_.w.getElement=function(m){switch(m){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.w.provideRenderingData=function(m,G){switch(m){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=G;break;case "ERROR_SCREEN":this.errorScreen=G!=null?G:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=G;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=G;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=G;break;case "RICH_METADATA":this.richMetadataRowContainer=G;break;case "CLARIFICATION":this.clarificationData=G;break;case "PLAYLIST":this.playlistData=
G!=null?G:{};break;case "MERCH_SHELF":this.merchShelf=G;break;case "TICKET_SHELF":this.ticketShelf=G;break;case "LIMITED_STATE":this.limitedState=G;break;case "DONATION_SHELF":this.donationShelf=G;break;case "ALERTS":this.alerts=G}};
_.e_.Object.defineProperties(MY.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return!this.hidden&&!!((m=this.data)==null?0:(G=m.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:K.conversationBar)}}});
MY.prototype.sizeChanged=MY.prototype.sizeChanged;MY.prototype.dataChanged=MY.prototype.dataChanged;MY.prototype.playerDataChanged=MY.prototype.playerDataChanged;MY.prototype.onActiveChanged=MY.prototype.onActiveChanged;_.x([_.q(ra.YtPageBehavior),_.S("design:type",Object)],MY.prototype,"ytPageBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],MY.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],MY.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"playerData",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],MY.prototype,"hidden",void 0);_.x([_.UM("#ytd-player"),_.S("design:type",HTMLElement)],MY.prototype,"ytdPlayer",void 0);_.x([_.UM("#player-container"),_.S("design:type",HTMLElement)],MY.prototype,"playerContainer",void 0);_.x([_.UM("#metadata"),_.S("design:type",Object)],MY.prototype,"metadata",void 0);_.x([_.UM("#playlist"),_.S("design:type",HTMLElement)],MY.prototype,"playlistPanel",void 0);
_.x([_.V({selector:gti,reflectToAttribute:!0}),_.S("design:type",Object)],MY.prototype,"fixie",void 0);_.x([_.V({selector:_.u1d,reflectToAttribute:!0}),_.S("design:type",Object)],MY.prototype,"singleColumn",void 0);_.x([_.V({selector:function(m){return _.wq(m)&&!_.gq(m)},
reflectToAttribute:!0}),_.S("design:type",Object)],MY.prototype,"theater",void 0);_.x([_.V({selector:_.gq,reflectToAttribute:!0}),_.S("design:type",Object)],MY.prototype,"fullscreen",void 0);_.x([_.V({selector:wkP}),_.S("design:type",Object)],MY.prototype,"windowSize",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"singleColumnContents",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"errorScreen",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"playlistData",void 0);
_.x([_.V(),_.S("design:type",Object)],MY.prototype,"videoPrimaryInfoRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"videoSecondaryInfoRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"richMetadataRowContainer",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"clarificationData",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"commentsEntryPointHeaderRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"ticketShelf",void 0);
_.x([_.V(),_.S("design:type",Object)],MY.prototype,"merchShelf",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"donationShelf",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"limitedState",void 0);_.x([_.V(),_.S("design:type",Object)],MY.prototype,"alerts",void 0);_.x([_.E("playlistData"),_.S("design:type",Object),_.S("design:paramtypes",[])],MY.prototype,"hasPlaylistData",null);
_.x([_.E("data","hidden"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],MY.prototype,"hasChat",null);_.x([_.Sb("active"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MY.prototype,"onActiveChanged",null);_.x([_.Sb("playerData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MY.prototype,"playerDataChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MY.prototype,"dataChanged",null);_.x([_.Sb("windowSize","singleColumn"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],MY.prototype,"sizeChanged",null);
_.y(MY,"ytd-watch-fixie",function(){if(kaD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);kaD=m}m=kaD;return m},{mode:1});var psz;var T2=function(){var m=_.d.apply(this,arguments)||this;m.viewTransitionEnabled=_.F("enable_player_resize_transition");m.smallerChatMinHeight=_.F("live_chat_smaller_min_height");m.isDarkTheme=document.documentElement.hasAttribute("dark");m.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");m.respectAspectRatio=_.F("web_enable_aspect_ratio_fix");m.retroModeReduxValue=!1;m.persistentPanelVisibleValue=!1;return m};
_.n(T2,_.d);_.w=T2.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateRetroModeReduxValue=function(){_.F("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.w.updatePersistentPanelVisibleValue=function(){_.F("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.w.ready=function(){var m=this,G=function(){m.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(m){_.F("web_watch_update_narrow_width_killswitch")||_.$R().dispatch(Uhi(!m.detail.value));this.ytdWatchBehavior.isTwoColumns_=m.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(m){this.ytdWatchBehavior.flexySmallWindow_=m.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(m){this.ytdWatchBehavior.flexyLargeWindow_=m.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(m){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=m.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(m){this.ytdWatchBehavior.watchNextCanShowMore=m.detail.value};
_.w.updateShownItemsFromBinding=function(m){m.detail.path?this.set(m.detail.path,m.detail.value):this.ytdWatchBehavior.watchNextShownItems=m.detail.value};
_.w.getElement=function(m){switch(m){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22206_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22206_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.e_.Object.defineProperties(T2.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(m=_.Q(this.data.pageVisualEffects[G],Qa))return G=void 0,(G=m.config)==null?void 0:G.enableInLightTheme;return!1}}});
_.e_.Object.defineProperties(T2,{template:{configurable:!0,enumerable:!0,get:function(){if(psz===void 0){var m=document.createElement("template");_.b(m,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy" hidden$="[[!showGhostMetadata]]">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy" hidden$="[[!showGhostRelated]]"></div>\n      </div>\n      <div id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);psz=m}m=psz;return m}}});
T2.prototype.updatePersistentPanelVisibleValue=T2.prototype.updatePersistentPanelVisibleValue;T2.prototype.updateRetroModeReduxValue=T2.prototype.updateRetroModeReduxValue;T2.prototype.updateScrollTopValue=T2.prototype.updateScrollTopValue;T2.prototype.updateFullscreenValue=T2.prototype.updateFullscreenValue;T2.prototype.updateTheaterValue=T2.prototype.updateTheaterValue;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],T2.prototype,"ytComponentBehavior",void 0);_.x([_.q(Hdq.YtdWatchBehavior),_.S("design:type",Object)],T2.prototype,"ytdWatchBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],T2.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],T2.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],T2.prototype,"playerData",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],T2.prototype,"viewTransitionEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],T2.prototype,"smallerChatMinHeight",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],T2.prototype,"isDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],T2.prototype,"defaultCollapsePlaylist",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],T2.prototype,"respectAspectRatio",void 0);
_.x([_.V({selector:_.wq}),_.S("design:type",Object)],T2.prototype,"theaterValue",void 0);_.x([_.V({selector:_.gq}),_.S("design:type",Object)],T2.prototype,"fullscreenValue",void 0);_.x([_.V({selector:Li}),_.S("design:type",Object)],T2.prototype,"scrollTopValue",void 0);_.x([_.V({selector:_.cU}),_.S("design:type",Object)],T2.prototype,"miniplayerIsActive",void 0);_.x([_.V({selector:function(m){return m.watch.isWatchRetroMode}}),
_.S("design:type",Object)],T2.prototype,"retroModeReduxValue",void 0);_.x([_.V({selector:_.DE.persistentPanelVisibleSelector}),_.S("design:type",Object)],T2.prototype,"persistentPanelVisibleValue",void 0);_.x([W5("ytd-player"),_.S("design:type",HTMLElement)],T2.prototype,"ytdPlayer",void 0);_.x([_.UM("#playlist"),_.S("design:type",HTMLElement)],T2.prototype,"JSC$22206_ytdPlaylistPanelRenderer",void 0);_.x([W5("ytd-comments"),_.S("design:type",HTMLElement)],T2.prototype,"ytdComments",void 0);
_.x([_.UM("#primary"),_.S("design:type",HTMLElement)],T2.prototype,"primary",void 0);_.x([_.UM("#secondary"),_.S("design:type",HTMLElement)],T2.prototype,"secondary",void 0);_.x([_.UM("#player-container"),_.S("design:type",HTMLElement)],T2.prototype,"playerContainer",void 0);_.x([_.UM("#below"),_.S("design:type",HTMLElement)],T2.prototype,"below",void 0);_.x([_.UM("#cinematics"),_.S("design:type",HTMLElement)],T2.prototype,"JSC$22206_cinematics",void 0);
_.x([_.UM("#persistent-panel-container"),_.S("design:type",HTMLElement)],T2.prototype,"persistentPanelContainer",void 0);_.x([_.Sb("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T2.prototype,"updateTheaterValue",null);_.x([_.Sb("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T2.prototype,"updateFullscreenValue",null);
_.x([_.Sb("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T2.prototype,"updateScrollTopValue",null);_.x([_.Sb("retroModeReduxValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T2.prototype,"updateRetroModeReduxValue",null);_.x([_.Sb("persistentPanelVisibleValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T2.prototype,"updatePersistentPanelVisibleValue",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],T2.prototype,"cinematicLightTheme",null);_.x([_.Ye({is:"ytd-watch-flexy"})],T2);var Jmq;var NmP;var DLG=function(){return _.d.apply(this,arguments)||this};
_.n(DLG,_.d);_.x([_.Ye({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],DLG);
_.y(DLG,"ytd-ghost-comments-renderer",function(){if(NmP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);NmP=m}m=NmP;return m},{mode:1});var tHE;var FGq=function(){return _.d.apply(this,arguments)||this};
_.n(FGq,_.d);_.x([_.Ye({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],FGq);
_.y(FGq,"ytd-ghost-watch-metadata-renderer",function(){if(tHE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);tHE=m}m=tHE;return m},{mode:1});var m8=function(){var m=_.d.apply(this,arguments)||this;m.ghostGridRenderer={rows:6};m.smallerChatMinHeight=_.F("live_chat_smaller_min_height");m.darkerPanels=_.F("web_watch_darker_panels");m.isDarkTheme=document.documentElement.hasAttribute("dark");return m};
_.n(m8,_.d);_.w=m8.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.w.ready=function(){var m=this,G=function(){m.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(m){this.ytdWatchBehavior.isTwoColumns_=m.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(m){this.ytdWatchBehavior.flexySmallWindow_=m.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(m){this.ytdWatchBehavior.flexyLargeWindow_=m.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(m){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=m.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(m){this.ytdWatchBehavior.watchNextCanShowMore=m.detail.value};
_.w.updateShownItemsFromBinding=function(m){_.F("swatcheroo_direct_use_rich_grid")||(m.detail.path?this.set(m.detail.path,m.detail.value):this.ytdWatchBehavior.watchNextShownItems=m.detail.value)};
_.w.getElement=function(m){switch(m){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22211_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22211_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.e_.Object.defineProperties(m8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(m=_.Q(this.data.pageVisualEffects[G],Qa))return G=void 0,(G=m.config)==null?void 0:G.enableInLightTheme;return!1}}});
m8.prototype.updateMiniplayerIsActiveValue=m8.prototype.updateMiniplayerIsActiveValue;m8.prototype.updateScrollTopValue=m8.prototype.updateScrollTopValue;m8.prototype.updateFullscreenValue=m8.prototype.updateFullscreenValue;m8.prototype.updateTheaterValue=m8.prototype.updateTheaterValue;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],m8.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],m8.prototype,"ytComponentBehavior",void 0);
_.x([_.q(Hdq.YtdWatchBehavior),_.S("design:type",Object)],m8.prototype,"ytdWatchBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],m8.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],m8.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],m8.prototype,"ghostGridRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],m8.prototype,"playerData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],m8.prototype,"smallerChatMinHeight",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],m8.prototype,"darkerPanels",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],m8.prototype,"isDarkTheme",void 0);_.x([_.V({selector:_.wq}),_.S("design:type",Object)],m8.prototype,"theaterValue",void 0);_.x([_.V({selector:_.gq}),_.S("design:type",Object)],m8.prototype,"fullscreenValue",void 0);_.x([_.V({selector:Li}),_.S("design:type",Object)],m8.prototype,"scrollTopValue",void 0);
_.x([_.V({selector:_.cU}),_.S("design:type",Object)],m8.prototype,"miniplayerIsActiveValue",void 0);_.x([_.UM("#ytd-player"),_.S("design:type",HTMLElement)],m8.prototype,"ytdPlayer",void 0);_.x([_.UM("#playlist"),_.S("design:type",HTMLElement)],m8.prototype,"JSC$22211_ytdPlaylistPanelRenderer",void 0);_.x([_.UM("#ytd-comments"),_.S("design:type",HTMLElement)],m8.prototype,"ytdComments",void 0);_.x([_.UM("#primary"),_.S("design:type",HTMLElement)],m8.prototype,"primary",void 0);
_.x([_.UM("#secondary"),_.S("design:type",HTMLElement)],m8.prototype,"secondary",void 0);_.x([_.UM("#player-container"),_.S("design:type",HTMLElement)],m8.prototype,"playerContainer",void 0);_.x([_.UM("#cinematics"),_.S("design:type",HTMLElement)],m8.prototype,"JSC$22211_cinematics",void 0);_.x([_.Sb("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m8.prototype,"updateTheaterValue",null);
_.x([_.Sb("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m8.prototype,"updateFullscreenValue",null);_.x([_.Sb("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m8.prototype,"updateScrollTopValue",null);_.x([_.Sb("miniplayerIsActiveValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],m8.prototype,"updateMiniplayerIsActiveValue",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],m8.prototype,"cinematicLightTheme",null);
_.y(m8,"ytd-watch-grid",function(){if(Jmq===void 0){var m=document.createElement("template");_.b(m,'\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="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" hide-offer-modules="[[hideOfferModules]]" is-two-columns="[[isTwoColumns_]]" is-watch-next-grid="" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-grid">\n          </ytd-watch-next-secondary-results-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);Jmq=m}m=Jmq;return m},{mode:2});var Q0D;var i4=function(){var m=_.d.apply(this,arguments)||this;m.flexy=!0;m.learningJourney=!0;m.viewTransitionEnabled=_.F("enable_player_resize_transition");m.smallerChatMinHeight=_.F("live_chat_smaller_min_height");m.isDarkTheme=document.documentElement.hasAttribute("dark");m.theaterLargerPlayer=_.F("web_watch_theater_larger_player");m.defaultCollapsePlaylist=_.F("web_watch_default_collapse_playlist");m.enableCanvasLayout=_.F("web_enable_canvas_on_learning_journey");return m};
_.n(i4,_.d);_.w=i4.prototype;_.w.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.w.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.w.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.w.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.w.ready=function(){var m=this,G=function(){m.onColumnScroll()};
this.primary.addEventListener("scroll",G);this.secondary.addEventListener("scroll",G)};
_.w.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.w.updateIsTwoColumnsFromBinding=function(m){_.F("web_watch_update_narrow_width_killswitch")||_.$R().dispatch(Uhi(!m.detail.value));this.ytdWatchBehavior.isTwoColumns_=m.detail.value};
_.w.updateFlexySmallWindowFromBinding=function(m){this.ytdWatchBehavior.flexySmallWindow_=m.detail.value};
_.w.updateFlexyLargeWindowFromBinding=function(m){this.ytdWatchBehavior.flexyLargeWindow_=m.detail.value};
_.w.updateWatchWhileWindowSizeSufficientFromBinding=function(m){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=m.detail.value};
_.w.updateWatchNextCanShowMoreFromBinding=function(m){this.ytdWatchBehavior.watchNextCanShowMore=m.detail.value};
_.w.updateShownItemsFromBinding=function(m){m.detail.path?this.set(m.detail.path,m.detail.value):this.ytdWatchBehavior.watchNextShownItems=m.detail.value};
_.w.getElement=function(m){switch(m){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$22214_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$22214_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.e_.Object.defineProperties(i4.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.pageVisualEffects)return!1;for(var G=0;G<this.data.pageVisualEffects.length;G++)if(m=_.Q(this.data.pageVisualEffects[G],Qa))return G=void 0,(G=m.config)==null?void 0:G.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.learningJourneyEngagementPanels)==null?void 0:m.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.learningJourneyEngagementPanels)==null?void 0:m.find(function(D){var t;return(D==null?void 0:(t=D.engagementPanelSectionListRenderer)==null?void 0:t.panelIdentifier)==="learning-journey-engagement-panel"});
if(G){var K,W,L,A,O,c,u,h,J;if(m=(h=((u=(O=((A=G==null?void 0:(K=G.engagementPanelSectionListRenderer)==null?void 0:(W=K.content)==null?void 0:(L=W.sectionListRenderer)==null?void 0:L.contents)!=null?A:[])[0])==null?void 0:(c=O.itemSectionRenderer)==null?void 0:c.contents)!=null?u:[])[0])==null?void 0:(J=h.accordionViewModel)==null?void 0:J.onTitleTap){var N=_.c8(m);if(N)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.xe.instance.resolveCommand(N)}}}}}}});
_.e_.Object.defineProperties(i4,{template:{configurable:!0,enumerable:!0,get:function(){if(Q0D===void 0){var m=document.createElement("template");_.b(m,'\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="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);Q0D=m}m=Q0D;return m}}});
i4.prototype.updateMiniplayerIsActiveValue=i4.prototype.updateMiniplayerIsActiveValue;i4.prototype.updateScrollTopValue=i4.prototype.updateScrollTopValue;i4.prototype.updateFullscreenValue=i4.prototype.updateFullscreenValue;i4.prototype.updateTheaterValue=i4.prototype.updateTheaterValue;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],i4.prototype,"ytComponentBehavior",void 0);
_.x([_.q(wA6.YtdLearningJourneyWatchBehavior),_.S("design:type",Object)],i4.prototype,"ytdWatchBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],i4.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],i4.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],i4.prototype,"playerData",void 0);_.x([_.V(),_.S("design:type",Object)],i4.prototype,"browseData",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"flexy",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"learningJourney",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"viewTransitionEnabled",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"smallerChatMinHeight",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"isDarkTheme",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],i4.prototype,"theaterLargerPlayer",void 0);_.x([_.V(),_.S("design:type",Object)],i4.prototype,"defaultCollapsePlaylist",void 0);_.x([_.V(),_.S("design:type",Object)],i4.prototype,"enableCanvasLayout",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("playerData","browseData","enableCanvasLayout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i4.prototype,"showBrowseResponse",null);
_.x([_.V({reflectToAttribute:!0}),_.E("playerData","enableCanvasLayout"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],i4.prototype,"showWatchResponse",null);_.x([_.V({selector:_.wq}),_.S("design:type",Object)],i4.prototype,"theaterValue",void 0);_.x([_.V({selector:_.gq}),_.S("design:type",Object)],i4.prototype,"fullscreenValue",void 0);_.x([_.V({selector:Li}),_.S("design:type",Object)],i4.prototype,"scrollTopValue",void 0);
_.x([_.V({selector:_.cU}),_.S("design:type",Object)],i4.prototype,"miniplayerIsActiveValue",void 0);_.x([_.UM("#ytd-plj-player"),_.S("design:type",HTMLElement)],i4.prototype,"ytdPlayer",void 0);_.x([_.UM("#playlist"),_.S("design:type",HTMLElement)],i4.prototype,"JSC$22214_ytdPlaylistPanelRenderer",void 0);_.x([W5("ytd-comments"),_.S("design:type",HTMLElement)],i4.prototype,"ytdComments",void 0);_.x([_.UM("#primary"),_.S("design:type",HTMLElement)],i4.prototype,"primary",void 0);
_.x([_.UM("#secondary"),_.S("design:type",HTMLElement)],i4.prototype,"secondary",void 0);_.x([_.UM("#player-container"),_.S("design:type",HTMLElement)],i4.prototype,"playerContainer",void 0);_.x([_.UM("#cinematics"),_.S("design:type",HTMLElement)],i4.prototype,"JSC$22214_cinematics",void 0);_.x([_.Sb("theaterValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i4.prototype,"updateTheaterValue",null);
_.x([_.Sb("fullscreenValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i4.prototype,"updateFullscreenValue",null);_.x([_.Sb("scrollTopValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i4.prototype,"updateScrollTopValue",null);_.x([_.Sb("miniplayerIsActiveValue"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],i4.prototype,"updateMiniplayerIsActiveValue",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],i4.prototype,"cinematicLightTheme",null);_.x([_.V({reflectToAttribute:!0}),_.E("learningJourneyEngagementPanels"),_.S("design:type",Object),_.S("design:paramtypes",[])],i4.prototype,"hasLearningJourneyPanels",null);_.x([_.E("learningJourneyEngagementPanels"),_.S("design:type",Object),_.S("design:paramtypes",[])],i4.prototype,"backButtonData",null);_.x([_.Ye({is:"ytd-watch-learning-journey"})],i4);var aAO;var G3=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");return m};
_.n(G3,_.d);_.w=G3.prototype;_.w.ready=function(){this.hostElement.addEventListener("tap",_.xC(this,this.onEndpointTapExtra))};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){var m;(m=_.VL(this.hostElement).querySelector("tp-yt-paper-item"))==null||m.focus()};
_.w.onEndpointTapExtra=function(m){_.Zw(this.hostElement,"iron-activate");var G=this.data.navigationEndpoint;G&&_.Q(G,_.kRv)&&(m.stopPropagation(),_.eD(this.hostElement,[G],this.hostElement))};
_.w.computeIcon=function(m){return m&&m.iconType?_.ew(m.iconType):""};
_.w.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.eb(this.hostElement)};
G3.prototype.forceUpdateStylesOnLegacyBrowsers=G3.prototype.forceUpdateStylesOnLegacyBrowsers;G3.prototype.onFocus=G3.prototype.onFocus;_.x([_.q(_.vi),_.S("design:type",Object)],G3.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.GpG.YtConditionalRendererBehavior),_.S("design:type",Object)],G3.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],G3.prototype,"ytEndpointBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],G3.prototype,"data",void 0);_.x([_.V({computed:"computeIcon(data.icon)",value:""}),_.S("design:type",String)],G3.prototype,"icon",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],G3.prototype,"useIcons",void 0);_.x([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Boolean)],G3.prototype,"hasSeparator",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],G3.prototype,"systemIcons",void 0);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G3.prototype,"onFocus",null);_.x([_.Sb("useIcons","hasSeparator"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G3.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.y(G3,"ytd-menu-navigation-item-renderer",function(){if(aAO===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);aAO=m}m=aAO;return m},{mode:1});var onz;var nn6=_.nG(_.zq("DOWNLOAD",{},"Download")),bvi=_.nG(_.zq("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),vn6=_.nG(_.zq("RETRY",{},"Retry")),$Ls=_.nG(_.zq("PAUSE_DOWNLOADING",{},"Pause downloading")),s0z=_.nG(_.zq("RESUME_DOWNLOAD",{},"Resume download")),K0=function(){var m=_.d.apply(this,arguments)||this;m.primaryText=nn6;m.primaryIconType="OFFLINE_DOWNLOAD";m.hasSecondaryContent=!1;m.hasSeparator=!1;m.transferState="TRANSFER_STATE_UNKNOWN";m.isVideoDeletedByUser=!1;m.isHidden=!1;m.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return m};
_.n(K0,_.d);_.w=K0.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){this.primaryEntry.focus()};
_.w.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.w.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.w.getRemoveAction=function(){return"ACTION_REMOVE"};
_.w.sendOfflineAction=function(m){var G=this.data.serviceEndpoint;if(G){var K=_.Q(G,_.xg);K&&m&&(K.action=m);this.ytComponentBehavior.resolveCommand(G)}};
_.w.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=nn6,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=nn6;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=vn6;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=bvi;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=s0z;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=bvi;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
$Ls;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=bvi;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=bvi;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=nn6,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.w.showHideButton=function(){var m;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((m=this.playerStateEntity)==null?void 0:m.adsState)==="ADS_STATE_PLAYING"};
_.w.isSecondaryEntryHidden=function(m,G){return m?!0:!G};
_.w.computeHasSeparator=function(){var m;return!((m=this.data)==null||!m.hasSeparator)};
_.w.computePlayerStateEntityKey=function(m){return m};
K0.prototype.showHideButton=K0.prototype.showHideButton;K0.prototype.onTransferStateChange=K0.prototype.onTransferStateChange;K0.prototype.onFocus=K0.prototype.onFocus;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],K0.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],K0.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],K0.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],K0.prototype,"primaryText",void 0);_.x([_.V(),_.S("design:type",String)],K0.prototype,"primaryIconType",void 0);_.x([_.V(),_.S("design:type",String)],K0.prototype,"primaryAction",void 0);_.x([_.V(),_.S("design:type",Object)],K0.prototype,"secondaryText",void 0);_.x([_.V(),_.S("design:type",String)],K0.prototype,"secondaryIconType",void 0);
_.x([_.V(),_.S("design:type",String)],K0.prototype,"secondaryAction",void 0);_.x([_.V(),_.S("design:type",Object)],K0.prototype,"hasSecondaryContent",void 0);_.x([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Object)],K0.prototype,"hasSeparator",void 0);_.x([_.V({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.S("design:type",String)],K0.prototype,"playerStateEntityKey",void 0);
_.x([_.V({selector:_.ZJ,selectorArgs:["playerStateEntityKey"]}),_.S("design:type",Object)],K0.prototype,"playerStateEntity",void 0);_.x([_.V({selector:_.uw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",String)],K0.prototype,"transferState",void 0);_.x([_.V({selector:_.rrJ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",Object)],K0.prototype,"isVideoDeletedByUser",void 0);
_.x([_.V(),_.S("design:type",Object)],K0.prototype,"isHidden",void 0);_.x([_.V({selector:_.LBo,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.S("design:type",Object)],K0.prototype,"offlineabilityState",void 0);_.x([_.UM("#primary-entry"),_.S("design:type",Object)],K0.prototype,"primaryEntry",void 0);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K0.prototype,"onFocus",null);
_.x([_.Mg("transferState","isVideoDeletedByUser"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K0.prototype,"onTransferStateChange",null);_.x([_.Mg("offlineabilityState","playerStateEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],K0.prototype,"showHideButton",null);
_.y(K0,"ytd-menu-service-item-download-renderer",function(){if(onz===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);onz=m}m=onz;return m},{mode:1});var qsW;var WI=function(){var m=_.d.apply(this,arguments)||this;m.useIcons=!1;m.systemIcons=_.F("kevlar_system_icons");return m};
_.n(WI,_.d);_.w=WI.prototype;_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.w.onFocus=function(){var m;(m=_.VL(this.hostElement).querySelector("tp-yt-paper-item"))==null||m.focus()};
_.w.onTap=function(){_.PH(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var m=this.data.serviceEndpoint,G=this.data.command;if(m){var K,W=(K=this.data)==null?void 0:K.trackingParams;K=!!_.Q(m,_.sE2);W&&K&&_.$R().dispatch(_.kt({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:W}}));this.ytComponentBehavior.resolveCommand(m)||_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}})}G&&(this.ytComponentBehavior.resolveCommand(G)||_.eD(this.hostElement,
[G],this.hostElement))};
_.w.computeIcon=function(m){return m&&m.iconType?_.ew(m.iconType):""};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.computeHasSeparator=function(){var m;return!((m=this.data)==null||!m.hasSeparator)};
_.w.forceUpdateStylesOnLegacyBrowsers=function(){_.F("kevlar_legacy_browsers")&&_.eb(this.hostElement)};
_.w.computeIsSelected=function(){var m;return!((m=this.data)==null||!m.isSelected)};
WI.prototype.forceUpdateStylesOnLegacyBrowsers=WI.prototype.forceUpdateStylesOnLegacyBrowsers;WI.prototype.onTap=WI.prototype.onTap;WI.prototype.onFocus=WI.prototype.onFocus;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],WI.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],WI.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.GpG.YtConditionalRendererBehavior),_.S("design:type",Object)],WI.prototype,"ytConditionalRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],WI.prototype,"data",void 0);_.x([_.V({computed:"computeIcon(data.icon)",value:""}),_.S("design:type",String)],WI.prototype,"icon",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],WI.prototype,"useIcons",void 0);
_.x([_.V({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.S("design:type",Boolean)],WI.prototype,"hasSeparator",void 0);_.x([_.V({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.S("design:type",Boolean)],WI.prototype,"isSelected",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],WI.prototype,"systemIcons",void 0);
_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WI.prototype,"onFocus",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],WI.prototype,"onTap",null);_.x([_.Sb("useIcons","hasSeparator"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],WI.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.y(WI,"ytd-menu-service-item-renderer",function(){if(qsW===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);qsW=m}m=qsW;return m},{mode:2});var En5;var L0=function(){return _.d.apply(this,arguments)||this};
_.n(L0,_.d);_.w=L0.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onDataChanged=function(){var m=this;_.Pv(this,function(){m.postbox.openDialog();m.focus();_.Zw(m.hostElement,"yt-refit")})};
_.w.focus=function(){this.postbox.focus()};
_.w.closePopup=function(){_.dU(this.hostElement,"yt-close-popup-action")};
_.w.onYtCommentboxDismiss=function(){this.closePopup()};
L0.prototype.onYtCommentboxDismiss=L0.prototype.onYtCommentboxDismiss;L0.prototype.onDataChanged=L0.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L0.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L0.prototype,"data",void 0);_.x([_.V({value:function(){return _.zq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],L0.prototype,"closeButtonAriaLabel",void 0);_.x([_.UM("#postbox"),_.S("design:type",Object)],L0.prototype,"postbox",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L0.prototype,"onDataChanged",null);_.x([_.XC("yt-commentbox-dismiss"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],L0.prototype,"onYtCommentboxDismiss",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],L0);
_.y(L0,"ytd-backstage-post-dialog-popup-renderer",function(){if(En5!==void 0)return En5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return En5=m},{mode:1});var Hv6;var AE=function(){var m=_.d.apply(this,arguments)||this;m.modernModal=!0;return m};
_.n(AE,_.d);AE.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
AE.prototype.computeShouldHideOldButtons=function(){var m;return!((m=this.data)==null?0:m.button)};
_.e_.Object.defineProperties(AE.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var m,G;return(m=this.data)==null?void 0:(G=m.button)==null?void 0:G.buttonRenderer}}});
_.x([_.V(),_.S("design:type",Object)],AE.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],AE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],AE.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],AE.prototype,"modernModal",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],AE.prototype,"buttonRendererData",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],AE);
_.y(AE,"ytd-modal-with-title-and-button-renderer",function(){if(Hv6!==void 0)return Hv6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Hv6=m},{mode:1});var IAE;var wZ=function(){return _.d.apply(this,arguments)||this};
_.n(wZ,_.d);wZ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("page-changed",this.page))};
wZ.prototype.pageChangedForBinding=wZ.prototype.pageChangedForBinding;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wZ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],wZ.prototype,"page",void 0);_.x([_.Sb("page"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wZ.prototype,"pageChangedForBinding",null);
_.x([_.Ye({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],wZ);
_.y(wZ,"ytd-account-item-section-header-renderer",function(){if(IAE!==void 0)return IAE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IAE=m},{mode:1});var j0q;var gZ=function(){return _.d.apply(this,arguments)||this};
_.n(gZ,_.d);gZ.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"}}}};
gZ.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],gZ.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gZ.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Function)],gZ.prototype,"onAccountItemTap",void 0);
_.x([_.Ye({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],gZ);
_.y(gZ,"ytd-account-item-section-renderer",function(){if(j0q!==void 0)return j0q;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return j0q=m},{mode:1});var k0i;var CU5;var VHq=function(){return _.d.apply(this,arguments)||this};
_.n(VHq,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],VHq.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VHq.prototype,"data",void 0);_.x([_.Ye({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],VHq);
_.y(VHq,"ytd-accounts-dialog-header-renderer",function(){if(CU5!==void 0)return CU5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return CU5=m},{mode:1});var ZvE;var Ok=function(){return _.d.apply(this,arguments)||this};
_.n(Ok,_.d);Ok.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ok.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ok.prototype,"data",void 0);_.x([_.Ye({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ok);
_.y(Ok,"ytd-google-account-header-renderer",function(){if(ZvE!==void 0)return ZvE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZvE=m},{mode:1});var cI=function(){return _.d.apply(this,arguments)||this};
_.n(cI,_.d);cI.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"}}}};
cI.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("page-changed",this.page))};
cI.prototype.pageChangedForBinding=cI.prototype.pageChangedForBinding;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cI.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],cI.prototype,"page",void 0);
_.x([_.Sb("page"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],cI.prototype,"pageChangedForBinding",null);_.x([_.Ye({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],cI);
_.Vz()(cI,"ytd-account-section-list-renderer",function(){if(k0i===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);k0i=m}m=k0i;return m},{allowedProps:["data"],
mode:1});var dLD;var Yx=function(){var m=_.d.apply(this,arguments)||this;m.enableHandlesAccountMenuSwitcher=_.F("enable_handles_account_menu_switcher");return m};
_.n(Yx,_.d);Yx.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
Yx.prototype.dataChanged=Yx.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Yx.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Yx.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yx.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.x([_.UM("#avatar"),_.S("design:type",Object)],Yx.prototype,"avatar",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yx.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],Yx);
_.Vz()(Yx,"ytd-active-account-header-renderer",function(){if(dLD===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);dLD=m}m=dLD;return m},{allowedProps:["data"],
mode:1});var PUD;var ym6;var rZ=function(){return _.d.apply(this,arguments)||this};
_.n(rZ,_.d);rZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rZ.prototype.onBackTap=function(){_.Zw(this.hostElement,"yt-menu-back-tapped")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rZ.prototype,"data",void 0);_.x([_.Ye({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],rZ);
_.Vz()(rZ,"ytd-simple-menu-header-renderer",function(){if(ym6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);ym6=m}m=ym6;return m},{allowedProps:["data"],
mode:2});var eq6;var fAP=function(){return _.d.apply(this,arguments)||this};
_.n(fAP,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],fAP.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fAP.prototype,"data",void 0);_.x([_.Ye({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],fAP);
_.y(fAP,"ytd-comment-video-thumbnail-header-renderer",function(){if(eq6!==void 0)return eq6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return eq6=m},{mode:1});var xLP;var Xs6=function(){return _.d.apply(this,arguments)||this};
_.n(Xs6,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Xs6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Xs6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Xs6);
_.y(Xs6,"ytd-abuse-type-selector-renderer",function(){if(xLP!==void 0)return xLP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return xLP=m},{mode:1});var Ssu;var Rq5=(0,_.WGi)(_.KGl.reportChannelAbuse,{isVideoIdSelectedSelector:function(m,G){return G in m.selectedVideoIds},
additionalContextSelector:function(m){return m.additionalContext},
impersonatedChannelUrlSelector:function(m){return m.impersonatedChannelUrl},
reportChannelAbuseSelector:function(m){return m}});var u4=function(){return _.d.apply(this,arguments)||this};
_.n(u4,_.d);u4.prototype.attached=function(){var m=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){m.additionalContextInput.focusTextInput()})};
u4.prototype.handleAdditionalContextChanged=function(){var m=this;_.t9(this,"ytd-report-channel-additional-context-update",function(){m.ytdReduxBehavior.dispatch(_.kt({type:"ADDITIONAL_CONTEXT_UPDATED",payload:m.additionalContext}))},300)};
u4.prototype.updateAdditionalContextFromBinding=function(m){this.additionalContext=m.detail.value};
u4.prototype.handleAdditionalContextChanged=u4.prototype.handleAdditionalContextChanged;_.x([_.q(_.OW),_.S("design:type",Object)],u4.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",String)],u4.prototype,"additionalContext",void 0);_.x([_.V({selector:Rq5.additionalContextSelector}),_.S("design:type",String)],u4.prototype,"additionalContextRedux",void 0);_.x([_.V(),_.S("design:type",Object)],u4.prototype,"data",void 0);
_.x([_.UM("yt-text-input-form-field-renderer"),_.S("design:type",Object)],u4.prototype,"additionalContextInput",void 0);_.x([_.Sb("additionalContext"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],u4.prototype,"handleAdditionalContextChanged",null);_.x([_.Ye({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],u4);
_.y(u4,"ytd-report-channel-modal-additional-context-renderer",function(){if(Ssu!==void 0)return Ssu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ssu=m},{mode:1});var UL5;var hE=function(){var m=_.d.apply(this,arguments)||this;m.nextButtonDisabled=null;m.submitEndpoint=null;m.navigationEndpoint=null;m.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return m};
_.n(hE,_.d);_.w=hE.prototype;_.w.computeNextButtonData=function(m,G,K){var W={};G&&(W.navigationEndpoint=G);K&&(W.serviceEndpoint=K);m&&m.buttonRenderer&&_.Y2.extend(W,m.buttonRenderer);return W};
_.w.handleReportChannelModalDisableNextButtonAction=function(m){this.setNextButtonIsDisabled(m)};
_.w.handleReportFormEndpointUpdateAction=function(m){this.setNextButtonIsDisabled(!!m.disableSubmitButton);this.resetEndpointData();m.submitEndpoint?this.submitEndpoint=m.submitEndpoint:m.submitNavigationEndpoint&&(this.navigationEndpoint=m.submitNavigationEndpoint)};
_.w.handleSignalActionSubmitForm=function(){var m,G=Object.keys(((m=this.reportChannelAbuseForm)==null?void 0:m.selectedVideoIds)||{}),K;m=((K=this.reportChannelAbuseForm)==null?void 0:K.additionalContext)||"";var W;K=((W=this.reportChannelAbuseForm)==null?void 0:W.impersonatedChannelUrl)||"";var L;if((L=this.data)==null?0:L.submitEndpoint){G={impersonated_channel_url:K,text:m,video_ids:G};var A;_.xS().resolve(_.S1).resolveCommand((A=this.data)==null?void 0:A.submitEndpoint,{form:Object.assign({},
G,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.w.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.w.onYtServiceRequestError=function(m){this.setNextButtonIsDisabled(!1);_.QH(this.hostElement,m.detail.error.message)};
_.w.setNextButtonIsDisabled=function(m){this.set("data.nextButton.buttonRenderer.isDisabled",m)};
_.w.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
hE.prototype.onYtServiceRequestError=hE.prototype.onYtServiceRequestError;hE.prototype.onYtServiceRequestCompleted=hE.prototype.onYtServiceRequestCompleted;_.x([_.V(),_.S("design:type",Object)],hE.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],hE.prototype,"nextButtonDisabled",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],hE.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],hE.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hE.prototype,"submitEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],hE.prototype,"navigationEndpoint",void 0);_.x([_.V({selector:Rq5.reportChannelAbuseSelector}),_.S("design:type",Object)],hE.prototype,"reportChannelAbuseForm",void 0);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hE.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],hE.prototype,"onYtServiceRequestError",null);_.x([_.Ye({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],hE);
_.y(hE,"ytd-report-channel-modal-footer-renderer",function(){if(UL5!==void 0)return UL5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return UL5=m},{mode:1});var zqO;var p0=function(){var m=_.d.apply(this,arguments)||this;m.boundOnTapDismissButton=function(){m.closePopup()};
return m};
_.n(p0,_.d);p0.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
p0.prototype.handleDataChanged=function(){_.ZD(this.hostElement)};
p0.prototype.closePopup=function(){_.dU(this.hostElement,"yt-close-popup-action")};
p0.prototype.handleDataChanged=p0.prototype.handleDataChanged;_.x([_.V(),_.S("design:type",Object)],p0.prototype,"boundOnTapDismissButton",void 0);_.x([_.V(),_.S("design:type",Object)],p0.prototype,"data",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],p0.prototype,"handleDataChanged",null);_.x([_.Ye({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],p0);
_.y(p0,"ytd-report-channel-modal-header-renderer",function(){if(zqO!==void 0)return zqO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zqO=m},{mode:1});var lAP;var JE=function(){var m=_.d.apply(this,arguments)||this;m.autoValidate=!1;m.invalid=!1;m.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return m};
_.n(JE,_.d);_.w=JE.prototype;_.w.attached=function(){var m=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){m.channelUrlInput.focusTextInput()})};
_.w.disableNextButton=function(m){_.dU(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[m])};
_.w.handleImpersonatedChannelUrlChanged=function(){var m=this;this.disableNextButton(!0);this.invalid=!1;_.t9(this,"ytd-report-channel-impersonated-channel-update",function(){var G=m.impersonatedChannelUrl.trim();m.ytdReduxBehavior.dispatch(_.kt({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:G}));var K;((K=m.data)==null?0:K.submitEndpoint)&&G&&_.xS().resolve(_.S1).resolveCommand(m.data.submitEndpoint,{form:{impersonated_channel_url:G,element:m.hostElement}})},500)};
_.w.handleModifyReportFormCommand=function(m){this.invalid=this.get("modifyReportFormCommand.action",m)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.w.updateInvalidFromBinding=function(m){this.invalid=m.detail.value};
_.w.updateImpersonatedChannelUrlFromBinding=function(m){this.impersonatedChannelUrl=m.detail.value};
JE.prototype.handleImpersonatedChannelUrlChanged=JE.prototype.handleImpersonatedChannelUrlChanged;_.x([_.q(_.OW),_.S("design:type",Object)],JE.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],JE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],JE.prototype,"autoValidate",void 0);_.x([_.V(),_.S("design:type",Object)],JE.prototype,"invalid",void 0);
_.x([_.V(),_.S("design:type",String)],JE.prototype,"impersonatedChannelUrl",void 0);_.x([_.V({selector:Rq5.impersonatedChannelUrlSelector}),_.S("design:type",String)],JE.prototype,"impersonatedChannelUrlRedux",void 0);_.x([_.V(),_.S("design:type",Object)],JE.prototype,"data",void 0);_.x([_.UM("#text-input"),_.S("design:type",Object)],JE.prototype,"channelUrlInput",void 0);
_.x([_.Sb("impersonatedChannelUrl"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],JE.prototype,"handleImpersonatedChannelUrlChanged",null);_.x([_.Ye({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],JE);
_.y(JE,"ytd-report-channel-modal-impersonation-renderer",function(){if(lAP!==void 0)return lAP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lAP=m},{mode:1});var Bmi;var MHu;var Nv=function(){return _.d.apply(this,arguments)||this};
_.n(Nv,_.d);Nv.prototype.onCheckboxToggled=function(m){var G,K,W=(K=_.Q((G=this.data)==null?void 0:G.video,_.CmG))==null?void 0:K.videoId;W&&this.ytdReduxBehavior.dispatch(m.target.checked?_.kt({type:"VIDEO_SELECTED",payload:W}):_.kt({type:"VIDEO_UNSELECTED",payload:W}))};
Nv.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.e_.Object.defineProperties(Nv.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var m,G=(m=this.data)==null?void 0:m.video;if(!G)return{};var K;m=(K=_.Q(G,_.CmG))==null?void 0:K.navigationEndpoint;if(!m)return G;_.Q(m==null?void 0:m.commandMetadata,_.RQ)&&(_.Q(m.commandMetadata,_.RQ).ignoreNavigation=!0);return G}}});
_.x([_.V({reflectToAttribute:!0,selector:Rq5.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.S("design:type",Boolean)],Nv.prototype,"checked",void 0);_.x([_.V(),_.S("design:type",Object)],Nv.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Nv.prototype,"video",null);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Nv.prototype,"ytdReduxBehavior",void 0);_.x([_.Ye({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Nv);
_.y(Nv,"ytd-selectable-video-renderer",function(){if(MHu!==void 0)return MHu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return MHu=m},{mode:1});var Dc=function(){var m=_.d.apply(this,arguments)||this;m.monitorScroll=!0;return m};
_.n(Dc,_.d);Dc.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Dc.prototype,"data",void 0);_.x([_.Ye({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Dc);
_.y(Dc,"ytd-selectable-video-list-renderer",function(){if(Bmi!==void 0)return Bmi;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Bmi=m},{mode:1});var Tmz;_.Kz("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var tE=function(){return _.d.apply(this,arguments)||this};
_.n(tE,_.d);tE.prototype.onChange=function(m){if(m=_.$C(m).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.F("kevlar_command_handler_migration_killswitch"))_.eD(this.hostElement,m,this.hostElement);else{m=_.g(m);for(var G=m.next();!G.done;G=m.next())this.ytComponentBehavior.resolveCommand(G.value)}};
tE.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
tE.prototype.updateDataToggledFromBinding=function(m){this.set("data.toggled",m.detail.value)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],tE.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tE.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tE.prototype,"data",void 0);_.x([_.V({computed:"isEnabled(data)"}),_.S("design:type",Boolean)],tE.prototype,"enabled",void 0);_.x([_.Ye({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],tE);
_.y(tE,"ytd-toggle-item-renderer",function(){if(Tmz!==void 0)return Tmz;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Tmz=m},{mode:1});var m9q;var iy6;var Gr6;var F_=function(){var m=_.d.apply(this,arguments)||this;m.setVisible=!1;m.boundOnSubmitButtonClick=function(){m.onSubmitButtonClick()};
m.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return m};
_.n(F_,_.d);F_.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}}}}}};
F_.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
F_.prototype.onSubmitButtonClick=function(){var m;((m=this.data)==null?0:m.submitEndpoint)&&!_.F("enable_ytc_refunds_submit_form_signal_action")&&_.yQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
F_.prototype.handleSignalActionSubmitForm=function(){var m;((m=this.data)==null?0:m.submitEndpoint)&&_.yQ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.e_.Object.defineProperties(F_.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.hiddenByDefault)&&!this.setVisible}}});
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],F_.prototype,"setVisible",void 0);_.x([_.V(),_.S("design:type",Object)],F_.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],F_.prototype,"surveyFeedbackData",void 0);_.x([_.V(),_.S("design:type",Object)],F_.prototype,"boundOnSubmitButtonClick",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data","setVisible"),_.S("design:type",Object),_.S("design:paramtypes",[])],F_.prototype,"visibilityHidden",null);_.x([_.cL({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],F_);
_.y(F_,"yt-flow-footer-renderer",function(){if(Gr6===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;iy6===void 0&&(iy6=document.createElement("template"));var W=iy6;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Gr6=m}m=Gr6;return m},{mode:2});var K6E=(0,_.WGi)(_.KGl.ypc,{surveyFeedbackDataSelector:function(m){return m.surveyFeedbackData}});var Q0=function(){return _.d.apply(this,arguments)||this};
_.n(Q0,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Q0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Q0.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Q0.prototype,"data",void 0);_.x([_.V({selector:K6E.surveyFeedbackDataSelector}),_.S("design:type",Object)],Q0.prototype,"surveyFeedbackData",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Q0);
_.y(Q0,"ytd-flow-footer-renderer",function(){if(m9q!==void 0)return m9q;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return m9q=m},{mode:2});var W6P;var L66;var aJ=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return m};
_.n(aJ,_.d);_.w=aJ.prototype;_.w.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Wp("multiPageMenuSectionItems")}}};
_.w.handleHideEnclosingAction_=function(m){if(this.data&&this.data.items)for(var G=0;G<this.data.items.length;G++){var K=this.data.items[G].notificationRenderer;if(K&&K.notificationId==m.hideEnclosingAction.notificationId){this.splice("data.items",G,1);_.dU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.w.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Pe(this.hostElement,"hidden",!0)};
_.w.updateMenu_=function(m){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&m&&!m.doNotRefreshInbox){m=this.data.continuations;for(var G=0;G<m.length;G++)if(m[G].invalidationContinuationData){var K=void 0;var W=(K=m[G].invalidationContinuationData)==null?void 0:K.continuation;break}m=_.Y2.clone(this.data.continuationUpdateEndpoint||null);m.continuation=W;m.click_tracking_params=this.data.trackingParams;_.yQ(this.hostElement,[m])}};
_.w.onServiceRequestCompleted_=function(m,G){if(this.data&&(m=G.actions)){G=0;for(var K=m.length;G<K;G++){var W=_.Q(m[G],_.lz4);if(!W)break;if((W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||W.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&W.continuationItems&&this.data.items){var L=this.data.items.length-1;this.data.items[L].continuationItemRenderer&&(W=["data.items",L,1].concat(W.continuationItems),this.splice.apply(this,W))}}}};
aJ.prototype.onServiceRequestCompleted_=aJ.prototype.onServiceRequestCompleted_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],aJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],aJ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aJ.prototype,"data",void 0);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],aJ.prototype,"onServiceRequestCompleted_",null);_.x([_.cL({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],aJ);
_.Vz()(aJ,"yt-multi-page-menu-section-renderer",function(){if(L66===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;W6P===void 0&&(W6P=document.createElement("template"));var W=W6P;K.call(G,W.content.cloneNode(!0),m.content.firstChild);L66=m}m=L66;return m},{allowedProps:["data"],
mode:2});var AQD;var w1D;var oJ=function(){return _.d.apply(this,arguments)||this};
_.n(oJ,_.d);oJ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.e_.Object.defineProperties(oJ.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.progress)==null?0:this.data.progress*100}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],oJ.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oJ.prototype,"data",void 0);_.x([_.E("data.progress"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],oJ.prototype,"showProgressBar",null);
_.x([_.E("data.progress"),_.S("design:type",Number),_.S("design:paramtypes",[])],oJ.prototype,"progress",null);_.x([_.cL({is:"yt-flow-header-renderer",disableElementRegistration:!0})],oJ);
_.y(oJ,"yt-flow-header-renderer",function(){if(w1D===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;AQD===void 0&&(AQD=document.createElement("template"));var W=AQD;K.call(G,W.content.cloneNode(!0),m.content.firstChild);w1D=m}m=w1D;return m},{mode:2});var gXW;var Oyu;var y0=function(){return _.d.apply(this,arguments)||this};
_.n(y0,_.d);y0.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],y0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],y0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],y0.prototype,"data",void 0);_.x([_.cL({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],y0);
_.y(y0,"yt-post-confirmation-flow-step-renderer",function(){if(Oyu===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;gXW===void 0&&(gXW=document.createElement("template"));var W=gXW;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Oyu=m}m=Oyu;return m},{mode:2});var cQE;var Y65;var e7=function(){return _.d.apply(this,arguments)||this};
_.n(e7,_.d);
e7.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],e7.prototype,"data",void 0);_.x([_.cL({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],e7);
_.y(e7,"yt-refund-confirmation-flow-step-renderer",function(){if(Y65===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;cQE===void 0&&(cQE=document.createElement("template"));var W=cQE;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Y65=m}m=Y65;return m},{mode:2});var rQW=_.P(function(m){var G=m.data;return _.r("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.r("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.r(_.oC,{data:function(){return{thumbnails:[{url:G().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.r("div",{class:"profileBadgeViewModelContent"},_.r("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return G().badgeDesc}),_.r(_.p,{cond:function(){return G().badgeSubtitle},
then:function(){return _.r("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return G().badgeSubtitle})}})))},"Wk");
rQW.idomCompat=!0;var u4G=_.P(function(m){var G=m.data;return _.r("yt-comment-interaction-view-model",{el:_.aC(_.On(function(){return G().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.r("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return G().onTapA11yLabel},
"on:keydown":_.WR(),tabindex:0},_.r("div",{class:"ytCommentInteractionViewModelHeader"},_.r("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return G().headerPrefix},' "',function(){return G().videoTitle}),_.r("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.r("div",{class:"ytCommentInteractionViewModelContent"},_.r("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return G().commentContent}),_.r("div",{class:"ytCommentInteractionViewModelChevron"},
_.r(_.oC,{data:function(){return{thumbnails:[{url:G().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Xk");
u4G.idomCompat=!0;var hXO=_.P(function(m){var G=m.data;return _.r("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9}),_.r("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return G().channelName}))},"Yk");
hXO.idomCompat=!0;var tTO=_.P(function(m){var G=m.data;m={};return _.r("yt-profile-info-view-model",{class:_.VO("ytProfileInfoViewModelHost",(m.ytProfileInfoViewModelWithVideoShelf=function(){return G().videosHorizontalShelf},m))},_.r(p16,{profileInfo:G}),_.r(_.z$,{data:function(){return G().videosHorizontalShelf}},{horizontalShelfViewModel:function(K){return _.r("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.r(_.FW,{data:K.data}))}}),_.r(_.p,{cond:function(){return G().comments},
then:function(){return _.r(JQ6,{profileInfo:G})}}),_.r(_.p,{cond:function(){return G().sharedSubscriptionsTitle},
then:function(){return _.r(_.p,{cond:function(){return G().subscriptionsAccessButtonCommand},
then:function(){return _.r(NjP,{profileInfo:G})},
else:function(){return _.r(D9O,{profileInfo:G})}})}}))},"Zk");
tTO.idomCompat=!0;var JQ6=_.P(function(m){var G=m.profileInfo;return _.r("div",{class:"ytProfileInfoViewModelActivity"},_.r("div",{class:"ytProfileInfoViewModelHeader"},_.r("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().commentsInteractionTitle})),_.r(_.z$,{data:function(){return G().comments}},{commentInteractionViewModel:function(K){return _.r("div",{class:"ytProfileInfoViewModelActivity"},_.r(u4G,{data:K.data}))}}))},"$k"),NjP=_.P(function(m){var G=m.profileInfo;
return _.r("div",{class:"ytProfileInfoViewModelSubSection"},_.r("div",{class:"ytProfileInfoViewModelSubHeader"},_.r(_.qm,{command:function(){return G().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.r("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return G().sharedSubscriptionsTitle}),_.r("div",null,_.r(_.z$,{data:function(){return G().subscriptionsAccessButton}},{buttonViewModel:_.kP})))),_.r(F6E,{sharedSubscriptions:function(){var K;
return((K=G().sharedSubscriptions)==null?void 0:K.slice(0,5))||[]}}))},"al"),D9O=_.P(function(m){var G=m.profileInfo;
return _.r("div",{class:"ytProfileInfoViewModelSubSection"},_.r("div",{class:"ytProfileInfoViewModelSubHeader"},_.r("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().sharedSubscriptionsTitle})),_.r(F6E,{sharedSubscriptions:function(){var K;
return((K=G().sharedSubscriptions)==null?void 0:K.slice(0,5))||[]}}))},"bl"),F6E=_.P(function(m){return _.r("div",{class:"ytProfileInfoViewModelSubs"},_.r(_.z$,{data:m.sharedSubscriptions},{sharedSubscriptionViewModel:function(G){return _.r("div",{class:"ytProfileInfoViewModelSub"},_.r(hXO,{data:G.data}))}}))},"cl"),p16=_.P(function(m){var G=m.profileInfo;
return _.r("div",{class:"ytProfileInfoViewModelActivity"},_.r(_.D0,{each:function(){return[G().profileBadgeInfoYtWide,G().profileBadgeInfoChannelWide].filter(function(K){return!!K})},
keyBy:"INDEX"},function(K){return _.r(_.zL,null,_.r("div",{class:"ytProfileInfoViewModelHeader"},_.r("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return K().profileSectionTitle}),_.r("div",{class:"ytProfileInfoViewModelSectionDesc"},_.r("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var W;
return(W=K().commentBadge)==null?void 0:W.commentDesc}),_.r(_.p,{cond:function(){var W;
return(W=K().commentBadge)==null?void 0:W.blackHeartDesc},
then:function(){return _.r("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.r("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.r(_.oC,{data:function(){var W;
return{thumbnails:[{url:(W=K().commentBadge)==null?void 0:W.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.r("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var W;return(W=K().commentBadge)==null?void 0:W.blackHeartDesc}))),_.r("div",{class:"ytProfileInfoViewModelBadge"},_.r(_.D0,{each:function(){return K().badges||[]}},function(W){return _.r(rQW,{data:W})})))}))},"dl");var QNs=_.P(function(m){var G=m.data;var K=function(){return G().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.r("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.r(_.z$,{data:function(){return G().profileIdentityInfo}},{profileIdentityInfoViewModel:function(W){return _.r(y1E,{data:W.data,
hideDivider:K,isChannelInfoCard:K})},
profileInfoViewModel:tTO}),_.r(_.z$,{data:function(){return G().profileInfo}},{profileIdentityInfoViewModel:y1E,
profileInfoViewModel:tTO}))},"el");
QNs.idomCompat=!0;_.sh(QNs,"yt-profile-card-view-model",{props:{data:_.Dd}});var f0=function(){var m=_.d.apply(this,arguments)||this;m.enableFocusFix=_.F("music_web_enable_focus_on_setting_menu_fix")&&_.IP("IS_MOBILE_WEB",!1);m.covered=!1;m.hideMenu=!1;m.isCommentNotificationOnProfileCard=!1;m.scrolledByTouch=!1;m.disableBackdropFilter=_.F("web_disable_backdrop_filter");m.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return m};
_.n(f0,_.d);_.w=f0.prototype;
_.w.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"}}}};
_.w.ready=function(){var m=this;this.JSC$22321_containerElement.addEventListener("scroll",function(){m.ytRendererBehavior.markDirty()})};
_.w.attributeChanged=function(m,G){m==="menu-style"&&_.dU(this.hostElement,"yt-multi-page-menu-closed-action",[G])};
_.w.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xC(this,this.focusOnStampFinished))};
_.w.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.xC(this,this.focusOnStampFinished))};
_.w.reset=function(){this.closeJobId&&(_.Fu.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.w.focusOnStampFinished=function(m){m.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xC(this,this.focusOnStampFinished)),this.doFocus())};
_.w.doFocus=function(){var m=_.z0G(this.sectionsElement);m.length&&m[0].focus()};
_.w.computeMenuStyle=function(m){return m?m.toLowerCase().replace(/_/g,"-"):""};
_.w.computeIsCommentNotificationOnProfileCard=function(m){return _.F("enable_profile_cards_on_comments")&&m.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.w.computeHideMenu=function(m,G){return m||!(!G||!G.showLoadingSpinner)};
_.w.onPopupClosed=function(){this.isPopUpOpen=!1;_.dU(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.w.onPopupOpened=function(m,G){this.isPopUpOpen=!0;G.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Zw(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.kt({type:"CHANNEL_REPORT_RESET"})))};
_.w.onYtNavigate=function(m,G){this.shouldCloseOnNavigateEvent(G.endpoint)&&_.dU(this.hostElement,"yt-close-all-popups-action")};
_.w.handleEndpoint=function(m){m=_.Q(m,_.O7);!this.isCommentNotificationOnProfileCard&&m&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$22321_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.w.handleActions=function(m){for(var G=0,K=m.length;G<K;G++){var W=_.Q(m[G],gUz);W&&this.handleGetMultiPageMenuAction(W);(W=_.Q(m[G],_.lz4))&&this.handleAppendContinuationItemsAction(W)}};
_.w.onServiceRequestSentOrCompleted=function(m,G){m.detail&&m.detail.endpoint&&this.handleEndpoint(m.detail.endpoint);G.actions&&this.handleActions(G.actions)};
_.w.handleGetMultiPageMenuAction=function(m){var G=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.VL(this.submenuElement).appendChild(G);(m=m.menu.multiPageMenuRenderer)&&this.logSubmenu(m);G.data=m;G.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.w.handleAppendContinuationItemsAction=function(m){if(this.data&&m.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&m.continuationItems&&this.data.sections){var G=this.data.sections.length-1;this.data.sections[G].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),G--);if(this.data.sections[G].multiPageMenuNotificationSectionRenderer&&m.continuationItems){m=_.g(m==null?void 0:m.continuationItems);for(var K=m.next();!K.done;K=m.next())if(K=K.value,_.Q(K,KT6)){var W=
void 0,L=void 0,A=void 0,O=void 0,c=void 0;((W=this)==null?0:(L=W.data)==null?0:(A=L.sections)==null?0:(O=A[G])==null?0:(c=O.multiPageMenuNotificationSectionRenderer)==null?0:c.items)&&this.push("data.sections."+G+".multiPageMenuNotificationSectionRenderer.items",K)}else if(_.Q(K,_.yd4)||_.Q(K,_.EU))this.push("data.sections",K),G++}}};
_.w.logSubmenu=function(m){if(!_.F("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var G=this.ytRendererBehavior.getScreenLayer(),K=_.gU(G),W=_.wU(G);if((m=m.trackingParams)&&K&&W){var L=_.m5(m);_.F("combine_ve_grafts")?_.l1().graftServerVe(m,W,G):_.tW(K,W,L)}}};
_.w.emptySubmenuContainer=function(){for(var m=_.VL(this.submenuElement);m.firstChild;)m.removeChild(m.firstChild)};
_.w.onMenuBackTap=function(m){_.Zw(this.hostElement,"yt-submenu-closed");m.stopPropagation()};
_.w.onSubmenuClosed=function(m){_.$C(m)!==this.hostElement&&(this.covered=!1,_.Zw(this.hostElement,"yt-refit"),m.stopPropagation())};
_.w.onRetrieveLocation=function(m,G){G.hasComments&&(G.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),m.stopPropagation())};
_.w.shouldCloseOnNavigateEvent=function(m){if(!m)return!0;if(_.Q(m,_.QEo)||_.Q(m,_.adP)||_.Q(m,_.FhG)||_.Q(m,_.H$))return!1;var G;return((G=_.Q(m==null?void 0:m.commandMetadata,_.RQ))==null?0:G.ignoreNavigation)?!1:!0};
_.w.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.w.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.w.refitAfterRender=function(){var m=this;_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit")})};
f0.prototype.refitAfterRender=f0.prototype.refitAfterRender;f0.prototype.onRetrieveLocation=f0.prototype.onRetrieveLocation;f0.prototype.onSubmenuClosed=f0.prototype.onSubmenuClosed;f0.prototype.onMenuBackTap=f0.prototype.onMenuBackTap;f0.prototype.onServiceRequestSentOrCompleted=f0.prototype.onServiceRequestSentOrCompleted;f0.prototype.onYtNavigate=f0.prototype.onYtNavigate;f0.prototype.onPopupOpened=f0.prototype.onPopupOpened;f0.prototype.onPopupClosed=f0.prototype.onPopupClosed;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],f0.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],f0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],f0.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],f0.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],f0.prototype,"enableFocusFix",void 0);_.x([_.V(),_.S("design:type",Object)],f0.prototype,"covered",void 0);_.x([_.V({computed:"computeHideMenu(covered, data)"}),_.S("design:type",Object)],f0.prototype,"hideMenu",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.S("design:type",String)],f0.prototype,"menuStyle",void 0);
_.x([_.V({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.S("design:type",Object)],f0.prototype,"isCommentNotificationOnProfileCard",void 0);_.x([_.V(),_.S("design:type",Boolean)],f0.prototype,"isPopUpOpen",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],f0.prototype,"scrolledByTouch",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],f0.prototype,"disableBackdropFilter",void 0);
_.x([_.UM("#sections"),_.S("design:type",HTMLElement)],f0.prototype,"sectionsElement",void 0);_.x([_.UM("#spinner"),_.S("design:type",HTMLElement)],f0.prototype,"spinnerElement",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],f0.prototype,"headerElement",void 0);_.x([_.UM("#container"),_.S("design:type",HTMLElement)],f0.prototype,"JSC$22321_containerElement",void 0);_.x([_.UM("#submenu"),_.S("design:type",HTMLElement)],f0.prototype,"submenuElement",void 0);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f0.prototype,"onPopupClosed",null);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],f0.prototype,"onPopupOpened",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],f0.prototype,"onYtNavigate",null);
_.x([_.XC("yt-service-request-completed"),_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],f0.prototype,"onServiceRequestSentOrCompleted",null);_.x([_.XC("yt-menu-back-tapped"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],f0.prototype,"onMenuBackTap",null);
_.x([_.XC("yt-submenu-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],f0.prototype,"onSubmenuClosed",null);_.x([_.XC("yt-retrieve-location"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],f0.prototype,"onRetrieveLocation",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],f0.prototype,"refitAfterRender",null);
_.x([_.Ye({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],f0);
_.y(f0,"ytd-multi-page-menu-renderer",function(){if(PUD!==void 0)return PUD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PUD=m},{mode:1});var aV6;var xx=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return m};
_.n(xx,_.d);_.w=xx.prototype;_.w.created=function(){this.showTooltips=!0};
_.w.computeAccessibility_=function(m){return this.get("accessibility.accessibilityData",m)||null};
_.w.onTap=function(){var m=_.PH(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(m&&m.length===1&&m[0])_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var G;if((G=this.data)==null?0:G.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var K;((K=this.data)==null?0:K.menuRequest)&&_.yQ(this.hostElement,[this.data.menuRequest])}}};
_.w.handleTopbarMenuClosedAction=function(m){var G,K;(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(m)===((G=this.data)==null?void 0:(K=G.icon)==null?void 0:K.iconType)&&this.toggleIconState(!1)};
_.w.toggleIconState=function(m){_.F("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=m)};
_.w.handleUpdateTopbarAvatarAction=function(m){var G;m=(G=_.Q(m,UUG))==null?void 0:G.avatarUrl;var K,W;G=(K=this.data)==null?void 0:(W=K.avatar)==null?void 0:W.thumbnails;m&&G&&(K={thumbnails:[Object.assign({},G[0],{url:m})]},this.set("data.avatar",K))};
_.e_.Object.defineProperties(xx.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.VL(this.hostElement).querySelector("#button")}}});
xx.prototype.onTap=xx.prototype.onTap;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],xx.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xx.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],xx.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.XDG.YtButtonBehavior),_.S("design:type",Object)],xx.prototype,"ytButtonBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xx.prototype,"data",void 0);
_.x([_.UM("yt-icon-button#button"),_.S("design:type",Object)],xx.prototype,"iconButton",void 0);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xx.prototype,"onTap",null);_.x([_.Ye({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],xx);
_.Vz()(xx,"ytd-topbar-menu-button-renderer",function(){if(aV6===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);aV6=m}m=aV6;return m},{allowedProps:["data"],
mode:1});var oXE;var X_=function(){return _.d.apply(this,arguments)||this};
_.n(X_,_.d);X_.prototype.getSelected=function(){return this.reasons.selected};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],X_.prototype,"data",void 0);_.x([_.UM("#reasons"),_.S("design:type",Object)],X_.prototype,"reasons",void 0);_.x([_.Ye({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],X_);
_.y(X_,"ytd-ad-feedback-content",function(){if(oXE!==void 0)return oXE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return oXE=m},{mode:1});var nXs;var S7=function(){return _.d.apply(this,arguments)||this};
_.n(S7,_.d);_.w=S7.prototype;_.w.onPopupOpened=function(){_.dU(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.w.computeConfirmButton=function(m){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:m.confirmLabel}};
_.w.computeCancelButton=function(m){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:m.cancelLabel}};
_.w.onConfirmTap=function(){var m=this.content.getSelected();m!==void 0&&(m=this.data.reasons[m].endpoint)&&(_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}}),_.dU(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.w.sendFeedbackSubmitToastAction=function(){var m;(m=this.data)!=null&&m.completionMessage&&(m=_.q_(this.data.completionMessage),_.dU(this.hostElement,"yt-open-popup-action",[m,this]))};
_.w.onCancelTap=function(){_.dU(this.hostElement,"yt-close-popup-action")};
S7.prototype.onPopupOpened=S7.prototype.onPopupOpened;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],S7.prototype,"data",void 0);_.x([_.UM("#content"),_.S("design:type",Object)],S7.prototype,"content",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],S7.prototype,"onPopupOpened",null);
_.x([_.Ye({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],S7);
_.y(S7,"ytd-ad-feedback-renderer",function(){if(nXs!==void 0)return nXs;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return nXs=m},{mode:1});var byu;var vXi=function(){return _.d.apply(this,arguments)||this};
_.n(vXi,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vXi.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vXi.prototype,"data",void 0);_.x([_.Ye({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],vXi);
_.y(vXi,"ytd-ad-info-dialog-content",function(){if(byu!==void 0)return byu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return byu=m},{mode:1});var $9i;var RJ=function(){return _.d.apply(this,arguments)||this};
_.n(RJ,_.d);RJ.prototype.computeConfirmButton=function(m){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:m.confirmLabel}};
RJ.prototype.onConfirmTap=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
RJ.prototype.computeShouldShowTitle=function(){var m;return!((m=this.data)==null||!m.title)};
RJ.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
RJ.prototype.onPopupClosed=RJ.prototype.onPopupClosed;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],RJ.prototype,"data",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],RJ.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],RJ);
_.y(RJ,"ytd-ad-info-dialog-renderer",function(){if($9i!==void 0)return $9i;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return $9i=m},{mode:1});var sNu;var Uk=function(){var m=_.d.apply(this,arguments)||this;m.actionButtonClass="action-button";m.dismissButtonId="dismiss-button";m.dialogDismiss=!0;return m};
_.n(Uk,_.d);_.w=Uk.prototype;_.w.computeInPlayer=function(m){return(m==null?void 0:m.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.w.computedLogo=function(){var m,G;return this.isDarkTheme()?(m=this.data)==null?void 0:m.logoDark:(G=this.data)==null?void 0:G.logo};
_.w.computedHeaderImage=function(){var m,G;return this.isDarkTheme()?(m=this.data)==null?void 0:m.headerImageDark:(G=this.data)==null?void 0:G.headerImage};
_.w.computeLogoIconId=function(){var m,G,K,W=(m=this.computedLogo())==null?void 0:(G=m.sources)==null?void 0:(K=G[0])==null?void 0:K.height;return W&&W%31===0?"logo-icon-with-padding":"logo-icon"};
_.w.computeLogoIconHeight=function(){var m,G,K,W=(m=this.computedLogo())==null?void 0:(G=m.sources)==null?void 0:(K=G[0])==null?void 0:K.height;return W&&W%31===0?"31":"24"};
_.w.onPopupClosed=function(){_.xS().resolve(_.WC).dispose()};
_.w.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.w.onShow=function(){this.inPlayer&&_.xR(6);this.titleElement.focus()};
_.w.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var m=0;m<this.data.impressionEndpoints.length;m++){var G=_.Q(this.data.impressionEndpoints[m],_.Oh);G&&this.ytComponentBehavior.resolveCommand(G)}};
_.w.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.dU(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.e_.Object.defineProperties(Uk.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var m,G;return!((m=this.data)==null||!m.headerImageDark)&&!((G=this.data)==null||!G.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.secondaryButton)}}});
Uk.prototype.onPopupClosed=Uk.prototype.onPopupClosed;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Uk.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Uk.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.up.YtVisibilityBehavior),_.S("design:type",Object)],Uk.prototype,"ytVisibilityBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Uk.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],Uk.prototype,"actionButtonClass",void 0);_.x([_.V(),_.S("design:type",Object)],Uk.prototype,"dismissButtonId",void 0);_.x([_.V(),_.S("design:type",Object)],Uk.prototype,"dialogDismiss",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Uk.prototype,"hasHeaderImage",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Uk.prototype,"hasPremiumButton",null);
_.x([_.V({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.S("design:type",Boolean)],Uk.prototype,"inPlayer",void 0);_.x([_.UM("#dismiss-button"),_.S("design:type",HTMLElement)],Uk.prototype,"dismissButton",void 0);_.x([_.UM("#title"),_.S("design:type",HTMLElement)],Uk.prototype,"titleElement",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Uk.prototype,"onPopupClosed",null);
_.x([_.Ye({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Uk);
_.y(Uk,"ytd-enforcement-message-view-model",function(){if(sNu!==void 0)return sNu;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sNu=m},{mode:1});var q6q;var EXE;var z3=function(){var m=_.d.apply(this,arguments)||this;m.TEST_ONLY={immediateValidation:function(){m.immediateValidation()},
onValidationResponse:function(G){m.onValidationResponse(G)},
onGenerateHandleFromNameResponse:function(G){m.onGenerateHandleFromNameResponse(G)}};
return m};
_.n(z3,_.d);_.w=z3.prototype;_.w.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.w.validate=function(){this.immediateValidation()};
_.w.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.w.setHandleInputValue=function(m){this.handleDir=this.getHandleDir(m);this.handleInput.value=m;this.validationState={status:"PENDING"};this.immediateValidation()};
_.w.getHandleDir=function(m){var G=m===""&&!1;return(G=_.HJ2.test.call(_.HJ2,m))?"rtl":"ltr"};
_.w.onDataChanged=function(){var m,G;this.handleDir=this.getHandleDir((G=(m=this.data)==null?void 0:m.handle)!=null?G:"");var K;this.validationState=((K=this.data)==null?0:K.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var W;((W=this.data)==null?0:W.validateOnInit)&&this.immediateValidation()};
_.w.stopPropagation=function(m){m.stopPropagation()};
_.w.onInput=function(){var m;this.handleDir=this.getHandleDir((m=this.handleInput.value)!=null?m:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.w.onFocusout=function(m){this.handleInput.contains(m.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.w.delayedValidation=function(){var m,G;this.debouncedValidation((G=(m=this.data)==null?void 0:m.validationDelayMs)!=null?G:1E3)};
_.w.immediateValidation=function(){this.debouncedValidation(0)};
_.w.debouncedValidation=function(m){var G=this;_.t9(this,"debouncedValidation",function(){var K,W=G.staticValidation((K=G.handleInput.value)!=null?K:"");if(W!==void 0)G.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:W};else{var L;if((L=G.data)!=null&&L.validateChannelHandleCommand){G.validationState={status:"LOADING"};var A;G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{handle:(A=G.handleInput.value)!=null?A:""},commandController:{onSuccess:function(O,
c){G.onValidationResponse(c)},
onServerError:function(O,c){G.onValidationServerError(c)}}})}else G.handleUnexpectedValidationError(new _.cw("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",G.data))}},m)};
_.w.staticValidation=function(m){var G;if(((G=this.data)==null?void 0:G.channelHandleStaticValidationParams)!==void 0){G=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(m)&&G.validValueRegexpErrorMessage!==void 0)return G.validValueRegexpErrorMessage;if(G.minLength!==void 0&&m.length<G.minLength&&G.minLengthErrorMessage!==void 0)return G.minLengthErrorMessage;if(G.maxLength!==void 0&&m.length>G.maxLength&&G.maxLengthErrorMessage!==void 0)return G.maxLengthErrorMessage}};
_.w.onValidationResponse=function(m){var G=_.Q(m.result,zpD);G===void 0?this.handleUnexpectedValidationError(new _.cw("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",m)):this.handleValidationResultRenderer(G)};
_.w.onValidationServerError=function(m){this.handleUnexpectedValidationError(new _.cw("ValidateChannelHandle request failed.",m))};
_.w.handleValidationResultRenderer=function(m){if(m.handle===void 0)this.handleUnexpectedValidationError(new _.cw("ChannelHandleValidationResultRenderer does not contain handle.",m));else if(m.handle===this.handleInput.value)switch(m.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:m.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:m.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.cw("Unrecognized ChannelHandleValidationResult",m));break;default:_.GG(m.result)}};
_.w.handleUnexpectedValidationError=function(m){var G;this.validationState={status:"UNKNOWN",handle:(G=this.handleInput.value)!=null?G:""};_.nc(m)};
_.w.stopEventPropagation=function(m){m.stopPropagation()};
_.w.updateHandleOnChannelNameInputChange=function(m){if(!this.wasEdited){var G,K;this.debouncedGenerateHandleFromName(m,(K=(G=this.data)==null?void 0:G.validationDelayMs)!=null?K:1E3)}};
_.w.debouncedGenerateHandleFromName=function(m,G){var K=this;_.t9(this,"debouncedGenerateHandleFromName",function(){var W;(W=K.data)!=null&&W.validateChannelHandleCommand?K.ytComponentBehavior.resolveCommand(K.data.validateChannelHandleCommand,{form:{name:m},commandController:{onSuccess:function(L,A){K.onGenerateHandleFromNameResponse(A)},
onServerError:function(L,A){_.nc(new _.cw("Error calling GenerateHandleFromName",A))}}}):_.nc(new _.cw("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",K.data))},G)};
_.w.onGenerateHandleFromNameResponse=function(m){this.wasEdited||((m=_.Q(m.result,lTi))?this.setHandleInputValue(m.handle):_.nc(new _.cw("Invalid results when generate handle from name")))};
_.e_.Object.defineProperties(z3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var m;if(m=this.validationState)m=this.validationState,m=m.status==="OK"||m.status==="UNKNOWN";if(m)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var m;if(((m=this.validationState)==null?void 0:m.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 m,G=(m=this.channelHandleEntity)==null?void 0:m.handleEdit;this.handleDir=this.getHandleDir(G!=null?G:"");return G}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var m,G;if(((m=this.data)==null?void 0:(G=m.channelHandleStaticValidationParams)==null?void 0:G.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
z3.prototype.stopEventPropagation=z3.prototype.stopEventPropagation;z3.prototype.onDataChanged=z3.prototype.onDataChanged;z3.prototype.applyHandleEdit=z3.prototype.applyHandleEdit;z3.prototype.onValueChanged=z3.prototype.onValueChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],z3.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],z3.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],z3.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],z3.prototype,"wasEdited",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],z3.prototype,"handleDir",void 0);_.x([_.UM("#handle-input"),_.S("design:type",Object)],z3.prototype,"handleInput",void 0);_.x([_.V(),_.E("validationState"),_.S("design:type",Object),_.S("design:paramtypes",[])],z3.prototype,"value",null);
_.x([_.Sb("value"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],z3.prototype,"onValueChanged",null);_.x([_.E("validationState"),_.S("design:type",Object),_.S("design:paramtypes",[])],z3.prototype,"errorIndicator",null);_.x([_.V({reflectToAttribute:!0}),_.E("errorIndicator"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],z3.prototype,"borderErrorIndicator",null);
_.x([_.V({selectorArgs:["data.channelHandleEntityKey"],selector:function(m,G){return _.yx(m.entities,"channelHandle",G)}}),
_.S("design:type",Object)],z3.prototype,"channelHandleEntity",void 0);_.x([_.E("channelHandleEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],z3.prototype,"handleEdit",null);_.x([_.Sb("handleEdit"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],z3.prototype,"applyHandleEdit",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],z3.prototype,"onDataChanged",null);
_.x([_.E("data.channelHandleStaticValidationParams.validValueRegexp"),_.S("design:type",Object),_.S("design:paramtypes",[])],z3.prototype,"validValueRegexp",null);_.x([_.XC("yt-service-request-sent"),_.XC("yt-service-request-completed"),_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],z3.prototype,"stopEventPropagation",null);_.x([_.Ye({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],z3);
_.y(z3,"ytd-channel-handle-input-renderer",function(){if(EXE!==void 0)return EXE;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return EXE=m},{mode:2});var l4=function(){var m=_.d.apply(this,arguments)||this;m.data=null;m.errorMessage=null;m.isLoading=!0;m.enableNewChannelCreationOnIdForAll=_.F("enable_new_channel_creation_for_id4all");m.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction"};m.testOnly={setErrorMessage:function(G){m.resetErrorState();m.setErrorState(G)}};
return m};
_.n(l4,_.d);_.w=l4.prototype;_.w.created=function(){this.logScreenVe()};
_.w.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")};
_.w.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var m;((m=this.zeroStepErrorMessageEntity)==null?0:m.value)&&this.set("errorMessage",_.nG(this.zeroStepErrorMessageEntity.value))};
_.w.onCreateTap=function(){var m=this;if(this.data&&this.data.channelCreationEndpoint){var G,K;if(!((G=this.data.createChannelButton)==null?0:(K=G.buttonRenderer)==null?0:K.isDisabled)){var W;if((W=this.nameInput)!=null&&W.value){this.setLoadingState();var L,A;G=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(L=this.handleInput)==null?void 0:L.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((A=this.handleInput)==null?void 0:A.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:G,commandController:{onSuccess:function(O,c){m.onChannelCreationEndpointSuccess(c);m.obakeImageSource&&_.Fx("channelCreatedWithObakeImage",{imageSourceType:m.obakeImageSource})},
onServerError:function(){m.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.w.endpointRequiresServiceRequestAction=function(m){return!!_.Q(m,_.Oa)||!!_.Q(m,UUG)};
_.w.isNavigateAction=function(m){var G;return!!_.Q(m,PC5)||!!_.Q((G=_.Q(m,ifs))==null?void 0:G.command,PC5)};
_.w.isPlaylistAction=function(m){return!!_.Q(m,_.cB)||!!_.Q(m,_.pK)};
_.w.onChannelCreationEndpointSuccess=function(m){if(m.createChannelError){var G;this.setErrorState((G=m.createChannelError)==null?void 0:G.errorMessage);this.handleInput&&this.handleInput.validate()}else{m.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(m.navigationEndpoint);if(m.actions){G=_.g(m.actions);for(var K=G.next();!K.done;K=G.next())if(K=K.value,this.endpointRequiresServiceRequestAction(K)&&this.ytComponentBehavior.resolveCommand(K),this.isNavigateAction(K)){var W=void 0;K=_.Q((W=
_.Q(K,ifs))==null?void 0:W.command,PC5);W=void 0;this.isPlaylistAction((W=K)==null?void 0:W.endpoint)&&(_.dU(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),W=void 0,this.ytComponentBehavior.resolveCommand((W=K)==null?void 0:W.endpoint))}}m.actions&&m.actions.some(function(L){var A;return _.Q(L,PC5)||_.Q((A=_.Q(L,ifs))==null?void 0:A.command,PC5)})||_.dU(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.w.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.w.onCancelTap=function(){var m,G,K;if(!((m=this.data)==null?0:(G=m.cancelButton)==null?0:(K=G.buttonRenderer)==null?0:K.isDisabled)){var W,L,A;m=(W=this.data)==null?void 0:(L=W.cancelButton)==null?void 0:(A=L.buttonRenderer)==null?void 0:A.command;if(!m||!_.Q(m,_.jzJ)){var O;this.nameInput&&((O=this.data)==null?0:O.name)&&(this.nameInput.value=this.data.name);var c;this.handleInput&&((c=this.data)==null?0:c.channelHandleInput)&&(this.handleInput.data=_.Q(this.data.channelHandleInput,B0i));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.w.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.w.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.w.onClearProfilePhotoTap=function(){var m,G,K;((m=this.data)==null?0:(G=m.clearProfilePhotoButton)==null?0:(K=G.buttonRenderer)==null?0:K.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.w.onEditAvatarTap=function(){var m,G,K;((m=this.data)==null?0:(G=m.editAvatarButton)==null?0:(K=G.buttonRenderer)==null?0:K.isDisabled)||this.openProfilePicturePicker()};
_.w.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)};
_.w.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var m;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((m=this.data)==null?0:m.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.w.setErrorState=function(m){this.resetErrorState();if(m)this.set("errorMessage",m);else{var G;if((G=this.zeroStepErrorMessageEntity)==null?0:G.value)this.set("errorMessage",_.nG(this.zeroStepErrorMessageEntity.value));else{var K;((K=this.data)==null?0:K.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.w.fetchImageBlobWithAlr=function(m,G){G=G===void 0?5:G;var K=this,W,L,A,O,c;return _.Y(function(u){switch(u.nextAddress){case 1:return u.yield(fetch(m,{method:"GET",mode:"cors"}),2);case 2:W=u.yieldResult;if(W.ok){u.jumpTo(3);break}if(G===0)throw Error();L=K.addJitter(Math.pow(2,5-G));return u.yield(new Promise(function(h){setTimeout(h,L*1E3)}),4);
case 4:return u.return(K.fetchImageBlobWithAlr(m,G-1));case 3:if(!W.headers.get("content-type").split(";").some(function(h){return h.trim()==="text/plain"})){u.jumpTo(5);
break}A=K;O=A.fetchImageBlobWithAlr;return u.yield(W.text(),6);case 6:return u.return(O.call(A,u.yieldResult,G-1));case 5:return u.yield(W.blob(),7);case 7:return c=u.yieldResult,u.return(c)}})};
_.w.addJitter=function(m){var G=m*.3*Math.random();Math.random()>.5&&(G*=-1);return m+G};
_.w.openProfilePicturePicker=function(){var m=this,G,K,W,L,A,O;return _.Y(function(c){if(c.nextAddress==1){G=m.data.scottyUploadUrl;if(!G)return c.return();K=document.documentElement.hasAttribute("dark");W=document.body.style.colorScheme;K&&(document.body.style.colorScheme="dark");L=A4q(wqq(LhP(MGD(K?"dark":"light")),function(u){var h,J,N,D,t;return _.Y(function(a){if(a.nextAddress==1)return h=_.Mj(nPW(new cK6(u.photoUrl,!1)).build(),"alr","yes"),m.obakeImageSource=m.pictureChangeSourceToObakeImageSourceType(u.photoSource),
_.IO(a,2),m.setLoadingState(),a.yield(m.fetchImageBlobWithAlr(h),4);if(a.nextAddress!=2)return J=a.yieldResult,N=new FileReader,N.addEventListener("load",function(){var v,I,Z,k,z,X;return _.Y(function(f){if(f.nextAddress==1){if(J.size>15728640)return m.setErrorState((v=m.data)==null?void 0:v.imageSizeErrorMessage),_.nc(Error("im")),f.return();if(!N.result)return m.setErrorState((I=m.data)==null?void 0:I.genericImageLoadErrorMessage),_.nc(Error("jm")),f.return();Z=N.result;_.IO(f,2);return f.yield(IbP(J,
G),4)}if(f.nextAddress!=2)return k=f.yieldResult,m.handleImageUpdatedAction(Z,k),m.resetErrorState(),_.IG(f,0);z=_.ye(f);m.setErrorState((X=m.data)==null?void 0:X.uploadErrorMessage);if(z instanceof Error)_.am(z);else{var U=new _.cw(JSON.stringify(z));_.am(U)}_.ey(f)})}),N.readAsDataURL(J),_.IG(a,0);
D=_.ye(a);m.setErrorState((t=m.data)==null?void 0:t.genericImageLoadErrorMessage);D instanceof Error?_.am(D):_.om(new _.cw(JSON.stringify(D)));_.ey(a)})}),function(){document.body.style.colorScheme=W});
_.IO(c,2);return((A=m.data)==null?0:A.shouldViewChannelCreationFormForSupex)?c.yield(L.openPicker("profile-picture/art-selection"),5):c.yield(L.openPicker(),5)}if(c.nextAddress!=2)return _.IG(c,0);_.ye(c);m.setErrorState((O=m.data)==null?void 0:O.selectImageErrorMessage);_.ey(c)})};
_.w.pictureChangeSourceToObakeImageSourceType=function(m){switch(m){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.w.logScreenVe=function(){_.PB(_.l1(),124448)};
_.w.graftServerVe=function(){var m=_.wU(),G,K,W=(G=this.data)==null?void 0:(K=G.loggingDirectives)==null?void 0:K.trackingParams;W&&m&&(this.channelCreationFormVe=_.l1().graftServerVe(W,m),m={visualElement:this.channelCreationFormVe},_.UQ().reportShown(m))};
_.w.isNameChanged=function(m){var G;return((G=this.data)==null?void 0:G.name)!==m};
_.w.isHandleChanged=function(m){var G,K=_.Q((G=this.data)==null?void 0:G.channelHandleInput,B0i);return K&&m?K.handle!==m:!1};
_.w.handleImageUpdatedAction=function(m,G){this.previewDataUrl=m;this.encryptedBlobId=G};
_.w.handleImageSelectionErrorAction=function(m){this.setErrorState(m)};
_.w.handleImageSelectionResetErrorAction=function(){this.resetErrorState()};
_.w.maybeWipeZeroStepErrorMessage=function(){var m,G=(m=this.data)==null?void 0:m.zeroStepErrorMessageEntityKey,K;G&&((K=this.zeroStepErrorMessageEntity)==null?0:K.value)&&this.ytdReduxBehavior.dispatch(_.Bp("stringEntity",G,{key:G,value:""}))};
_.e_.Object.defineProperties(l4.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 m;return((m=this.photoThumbnail)==null?0:m.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 m;return!((m=this.data)==null||!m.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.descriptionInfo}}});
l4.prototype.dataChanged=l4.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],l4.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],l4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],l4.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],l4.prototype,"errorMessage",void 0);
_.x([_.V(),_.S("design:type",Object)],l4.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",String)],l4.prototype,"previewDataUrl",void 0);_.x([_.V(),_.S("design:type",Number)],l4.prototype,"obakeImageSource",void 0);_.x([_.UM("#title-input"),_.S("design:type",Object)],l4.prototype,"nameInput",void 0);_.x([_.UM("#handle-input"),_.S("design:type",Object)],l4.prototype,"handleInput",void 0);_.x([_.V(),_.S("design:type",Boolean)],l4.prototype,"enableNewChannelCreationOnIdForAll",void 0);
_.x([_.V({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.JkM}),_.S("design:type",Object)],l4.prototype,"zeroStepErrorMessageEntity",void 0);_.x([_.E("data","data.isDefaultProfilePhoto","previewDataUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],l4.prototype,"photoThumbnail",null);_.x([_.E("data","data.isDefaultProfilePhoto","photoThumbnail"),_.S("design:type",Object),_.S("design:paramtypes",[])],l4.prototype,"userSetPhotoThumbnailUrl",null);
_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],l4.prototype,"hideProfilePhotoButtonLayer",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],l4.prototype,"enableIdentityForAllChannelCreationDialog",null);_.x([_.Mg("data","zeroStepErrorMessageEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],l4.prototype,"dataChanged",null);
_.x([_.V({reflectToAttribute:!0}),_.E("data.descriptionInfo","zeroStepErrorMessageEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],l4.prototype,"description",null);_.x([_.Ye({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],l4);
_.y(l4,"ytd-channel-creation-dialog-renderer",function(){if(q6q!==void 0)return q6q;var m=document.createElement("template");_.b(m,'\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">\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return q6q=m},{mode:1});var HyW;var BI=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;m.isDisabled=!1;return m};
_.n(BI,_.d);BI.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
BI.prototype.updateDisabled=function(){var m;this.isDisabled=this.isLoading||((m=this.handleInput)==null?void 0:m.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
BI.prototype.onSaveClick=function(){var m=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var G;((G=this.data)==null?void 0:G.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 K;if((K=m.data)==null?0:K.nextEndpoint){var W;m.ytComponentBehavior.resolveCommand((W=m.data)==null?void 0:W.nextEndpoint)}else m.isLoading=
!1,m.closeDialog()},
onServerError:function(){m.isLoading=!1;m.handleInput.validate();var K;m.errorMessage=(K=m.data)==null?void 0:K.errorMessage}}}))}};
BI.prototype.closeDialog=function(){_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
BI.prototype.updateDisabled=BI.prototype.updateDisabled;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],BI.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],BI.prototype,"data",void 0);_.x([_.UM("#handle-input"),_.S("design:type",Object)],BI.prototype,"handleInput",void 0);_.x([_.Sb("isLoading"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],BI.prototype,"updateDisabled",null);
_.x([_.Ye({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],BI);
_.y(BI,"ytd-channel-handle-edit-dialog-renderer",function(){if(HyW!==void 0)return HyW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HyW=m},{mode:1});var IVO;var Mv=function(){return _.d.apply(this,arguments)||this};
_.n(Mv,_.d);Mv.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mv.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Mv);
_.y(Mv,"ytd-channel-switcher-footer-renderer",function(){if(IVO!==void 0)return IVO;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IVO=m},{mode:1});var jNi;var kru;var T3=function(){return _.d.apply(this,arguments)||this};
_.n(T3,_.d);T3.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
T3.prototype.onIronChange=T3.prototype.onIronChange;_.x([_.V(),_.S("design:type",Object)],T3.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Function)],T3.prototype,"onDontAskAgainChanged",void 0);_.x([_.UM("#checkbox"),_.S("design:type",Object)],T3.prototype,"checkbox",void 0);_.x([_.XC("iron-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],T3.prototype,"onIronChange",null);
_.x([_.Ye({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],T3);
_.y(T3,"ytd-identity-prompt-footer-renderer",function(){if(kru!==void 0)return kru;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return kru=m},{mode:1});var mR=function(){var m=_.d.apply(this,arguments)||this;m.dontAskAgain=!1;m.showPopup=!1;m.boundDontAskAgainChanged=function(G){m.dontAskAgainChanged(G)};
m.boundOnAccountItemTap=function(G){m.onAccountItemTap(G)};
return m};
_.n(mR,_.d);_.w=mR.prototype;
_.w.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]]"}}}}}};
_.w.ready=function(){var m=this;_.VL(this.hostElement).querySelector("#container").addEventListener("scroll",function(){m.ytRendererBehavior.markDirty()})};
_.w.dontAskAgainChanged=function(m){this.dontAskAgain=m};
_.w.onAccountItemTap=function(m){if(m){var G={};this.dontAskAgain&&(G={dont_ask_again:this.dontAskAgain});_.pr(m,G)}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.w.redirectOnlyAccount=function(m){m.sections&&m.sections.length>0&&(m=_.Q(m.sections[0],_.jwX),(m==null?0:m.contents)&&(m==null?void 0:m.contents.length)<=1?(m=_.PO(window.location.href),(m==null?0:m.next)&&_.pkP(m.next)?_.pr(m.next):_.pr("/")):this.showPopup=!0)};
mR.prototype.dataChanged=mR.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mR.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Object)],mR.prototype,"dontAskAgain",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],mR.prototype,"showPopup",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Object)],mR.prototype,"boundDontAskAgainChanged",void 0);_.x([_.V({reflectToAttribute:!1}),_.S("design:type",Object)],mR.prototype,"boundOnAccountItemTap",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],mR.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],mR);
_.y(mR,"ytd-channel-switcher-renderer",function(){if(jNi!==void 0)return jNi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jNi=m},{mode:1});var Cf6;var iy=function(){return _.d.apply(this,arguments)||this};
_.n(iy,_.d);_.e_.Object.defineProperties(iy.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.x([_.V(),_.S("design:type",Object)],iy.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],iy.prototype,"steps",null);_.x([_.Ye({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],iy);
_.y(iy,"ytd-channel-transfer-stepper-renderer",function(){if(Cf6!==void 0)return Cf6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Cf6=m},{mode:1});var VTs;var Ga=function(){var m=_.d.apply(this,arguments)||this;m.data=null;m.isError=!1;m.isLoading=!1;return m};
_.n(Ga,_.d);_.w=Ga.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.w.computeProfileName=function(m){return m?m.givenNameValue+" "+m.familyNameValue:""};
_.w.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)};
_.w.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)};
Ga.prototype.onYtServiceRequestError=Ga.prototype.onYtServiceRequestError;Ga.prototype.onYtServiceRequestSent=Ga.prototype.onYtServiceRequestSent;Ga.prototype.dataChanged=Ga.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ga.prototype,"data",void 0);
_.x([_.V({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.S("design:type",String)],Ga.prototype,"profileName",void 0);_.x([_.V(),_.S("design:type",Object)],Ga.prototype,"isError",void 0);_.x([_.V(),_.S("design:type",Object)],Ga.prototype,"isLoading",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ga.prototype,"dataChanged",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],Ga.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],Ga.prototype,"onYtServiceRequestError",null);_.x([_.Ye({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Ga);
_.y(Ga,"ytd-channel-warm-welcome-cont-renderer",function(){if(VTs!==void 0)return VTs;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return VTs=m},{mode:1});var ZyD;var K7=function(){var m=_.d.apply(this,arguments)||this;m.data=null;return m};
_.n(K7,_.d);K7.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
K7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],K7.prototype,"data",void 0);_.x([_.Ye({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],K7);
_.y(K7,"ytd-channel-warm-welcome-renderer",function(){if(ZyD!==void 0)return ZyD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ZyD=m},{mode:1});var d9P;var Wa=function(){return _.d.apply(this,arguments)||this};
_.n(Wa,_.d);_.e_.Object.defineProperties(Wa.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.authorThumbnail)||{}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Wa.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],Wa.prototype,"thumbnailDetails",null);_.x([_.Ye({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Wa);
_.y(Wa,"ytd-comment-preview-renderer",function(){if(d9P!==void 0)return d9P;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return d9P=m},{mode:1});var Pf5;var L7=function(){return _.d.apply(this,arguments)||this};
_.n(L7,_.d);L7.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.e_.Object.defineProperties(L7.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.submitButton}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],L7.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],L7.prototype,"submitButton",null);_.x([_.Ye({is:"ytd-notice-renderer",disableElementRegistration:!0})],L7);
_.y(L7,"ytd-notice-renderer",function(){if(Pf5!==void 0)return Pf5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Pf5=m},{mode:1});var yQ6;var Ac=function(){return _.d.apply(this,arguments)||this};
_.n(Ac,_.d);Ac.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ac.prototype,"data",void 0);_.x([_.Ye({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Ac);
_.y(Ac,"ytd-preview-comment-dialog-content",function(){if(yQ6!==void 0)return yQ6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return yQ6=m},{mode:1});var eXu;var wu=function(){return _.d.apply(this,arguments)||this};
_.n(wu,_.d);wu.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
wu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wu.prototype,"data",void 0);_.x([_.Ye({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],wu);
_.y(wu,"ytd-preview-comment-dialog-renderer",function(){if(eXu!==void 0)return eXu;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return eXu=m},{mode:1});var fV6;var x9i=_.F("web_button_rework")&&_.IP("BUTTON_REWORK")||_.F("web_button_rework_with_live"),gu=function(){var m=_.d.apply(this,arguments)||this;m.closeLabel=_.zq("CLOSE");m.selectedAmountIndex=1;m.privacyCheckboxValue=!1;m.useAmsterdamStyle=x9i;m.amountPlaceholderIndex=-1;return m};
_.n(gu,_.d);_.w=gu.prototype;_.w.onAmountClick=function(m){this.selectedAmountIndex=_.VL(this.hostElement).querySelector("#amounts").indexForElement(m.currentTarget)};
_.w.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.dU(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.w.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.dU(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.dU(this.hostElement,"yt-close-popup-action",[this.is]);var m;(m=_.qW())==null||m.getPlayerPromise().then(function(G){G.pauseVideo()})}};
_.w.donationCallback=function(m){m.success?(this.hostElement.hasAttribute("live-chat")&&m.response&&m.response.data&&m.response.data.actions&&_.dU(this.hostElement,"yt-live-chat-open-popup",[m.response.data.actions[0]]),_.dU(this.hostElement,"yt-close-popup-action",[this.is]),_.dU(this.hostElement,"yt-live-chat-close-buy-flow")):m.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(m.errorMessageRenderer)};
_.w.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.VL(this.hostElement).querySelector("#custom-amount-input").focus()};
_.w.updateConfirmationDialogTextWithAmount=function(m){var G=this.getConfirmDialogRuns();G&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(G),"text"],this.getFormattedAmount(m))};
_.w.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.w.getAmountPlaceholderIndex=function(m){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=m.findIndex(function(G){return G.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.w.getFormattedAmount=function(m){var G;return(new _.tM(4,((G=this.data)==null?void 0:G.currencyCode)||"")).format(m)};
_.w.isAmountValid=function(m){if(m==="")return!1;m=Number(m)*1E6;var G=this.get("minAmountMicros",this.data),K=this.get("maxAmountMicros",this.data);return G&&m<G||K&&m>K?!1:!0};
_.w.setInputError=function(){this.shouldShowValidationError?_.VL(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.VL(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.w.setInitialCheckboxValue=function(){var m;this.privacyCheckboxValue=!((m=this.data)==null||!m.privacyCheckboxInitialState)};
_.w.updateCustomAmountInputFromBinding=function(m){this.customAmountInput=m.detail.value};
_.w.updatePrivacyCheckboxValueFromBinding=function(m){this.privacyCheckboxValue=m.detail.value};
_.e_.Object.defineProperties(gu.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var m=this,G,K;return((G=this.data)==null?void 0:(K=G.suggestedAmounts)==null?void 0:K.map(function(W,L){return{buttonRenderer:{style:m.selectedAmountIndex===L?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:W.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 m;return!((m=this.data)==null||!m.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 m=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(m&&this.amountMicros!==null)return Object.assign({},m,{ypcGetCartEndpoint:Object.assign({},m.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 m=this.get("confirmLargeAmount",this.data);if(m&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),m}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var m=this.get("donateButton.buttonRenderer",this.data);if(m)return Object.assign({},m,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
gu.prototype.setInitialCheckboxValue=gu.prototype.setInitialCheckboxValue;gu.prototype.setInputError=gu.prototype.setInputError;gu.prototype.setFocusOnCustomAmountInput=gu.prototype.setFocusOnCustomAmountInput;_.x([_.q(jK6),_.S("design:type",Object)],gu.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gu.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],gu.prototype,"closeLabel",void 0);_.x([_.V(),_.S("design:type",Object)],gu.prototype,"selectedAmountIndex",void 0);_.x([_.V(),_.S("design:type",String)],gu.prototype,"customAmountInput",void 0);_.x([_.V(),_.S("design:type",Object)],gu.prototype,"privacyCheckboxValue",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],gu.prototype,"useAmsterdamStyle",void 0);_.x([_.Sb("customAmount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gu.prototype,"setFocusOnCustomAmountInput",null);_.x([_.E("data","selectedAmountIndex"),_.S("design:type",Array),_.S("design:paramtypes",[])],gu.prototype,"suggestedAmountButtons",null);
_.x([_.E("data","selectedAmountIndex"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gu.prototype,"isCustomAmountSelected",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gu.prototype,"showPrivacyCheckbox",null);_.x([_.E("data","selectedAmountIndex","customAmount"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"amountMicros",null);
_.x([_.E("isCustomAmountSelected","customAmountInput"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"customAmount",null);_.x([_.E("customAmount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gu.prototype,"shouldShowValidationError",null);_.x([_.E("customAmount"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],gu.prototype,"isDonateButtonEnabled",null);
_.x([_.E("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"donateCommand",null);_.x([_.E("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"donateCommandWithConfirmation",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"largeDonationThreshold",null);
_.x([_.E("customAmount","donateCommand","amountMicros"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"confirmLargeAmountCommand",null);_.x([_.E("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.S("design:type",Object),_.S("design:paramtypes",[])],gu.prototype,"donateButtonRenderer",null);_.x([_.Sb("shouldShowValidationError"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gu.prototype,"setInputError",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gu.prototype,"setInitialCheckboxValue",null);_.x([_.Ye({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],gu);
_.y(gu,"ytd-donation-amount-picker-renderer",function(){if(fV6!==void 0)return fV6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return fV6=m},{mode:1});var X16;var S6W=function(){return _.d.apply(this,arguments)||this};
_.n(S6W,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],S6W.prototype,"ytComponentBehavior",void 0);_.x([_.V({}),_.S("design:type",Object)],S6W.prototype,"data",void 0);_.x([_.Ye({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],S6W);
_.y(S6W,"ytd-donation-post-transaction-content",function(){if(X16!==void 0)return X16;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return X16=m},{mode:1});var RXz;var ON=function(){return _.d.apply(this,arguments)||this};
_.n(ON,_.d);ON.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ON.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.x([_.V({}),_.S("design:type",Object)],ON.prototype,"data",void 0);_.x([_.Ye({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],ON);
_.y(ON,"ytd-donation-post-transaction-renderer",function(){if(RXz!==void 0)return RXz;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return RXz=m},{mode:1});var U9D;var zXE;var ca=function(){return _.d.apply(this,arguments)||this};
_.n(ca,_.d);ca.prototype.computeIsStreamingProvider=function(m){return!!m.isStreamingShelf};
ca.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ca.prototype,"data",void 0);_.x([_.V({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],ca.prototype,"isStreamingProvider",void 0);
_.x([_.Ye({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],ca);
_.y(ca,"ytd-media-provider-renderer",function(){if(zXE!==void 0)return zXE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zXE=m},{mode:1});var lVO;var Ya=function(){return _.d.apply(this,arguments)||this};
_.n(Ya,_.d);Ya.prototype.observeLightsourcePalette=function(){var m,G=(m=this.data)==null?void 0:m.vibrantsourceColorPaletteData;G&&_.mr(this.hostElement,G)};
Ya.prototype.observeLightsourcePalette=Ya.prototype.observeLightsourcePalette;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ya.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ya.prototype,"data",void 0);
_.x([_.Sb("data.vibrantsourceColorPaletteData"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ya.prototype,"observeLightsourcePalette",null);_.x([_.Ye({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Ya);
_.y(Ya,"ytd-streaming-pop-up-dialog",function(){if(lVO!==void 0)return lVO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return lVO=m},{mode:1});var ru=function(){return _.d.apply(this,arguments)||this};
_.n(ru,_.d);ru.prototype.onPopupOpened_=function(){var m;((m=this.data)==null?0:m.serviceEndpoint)&&_.xS().resolve(_.S1).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
ru.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
ru.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"}}}}};
ru.prototype.onPopupOpened_=ru.prototype.onPopupOpened_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.n4),_.S("design:type",Object)],ru.prototype,"ytContinuationHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ru.prototype,"data",void 0);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ru.prototype,"onPopupOpened_",null);_.x([_.Ye({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],ru);
_.y(ru,"ytd-brandconnect-popup-renderer",function(){if(U9D!==void 0)return U9D;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return U9D=m},{mode:1});var BjW;var uy=function(){return _.d.apply(this,arguments)||this};
_.n(uy,_.d);_.w=uy.prototype;_.w.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){for(var m=0;m<this.getOptionRenderers().length;m++)this.notifyPath("data.options."+m+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+m+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.w.updateSubmitButton=function(m){this.set("data.submitButton.buttonRenderer.isDisabled",!m)};
_.w.computeAlt=function(m){return _.bw(m)};
_.w.onDismissTap=function(){_.dU(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.getOptionRenderers=function(m){return(m=m||this.data)&&m.options?m.options.reduce(function(G,K){K.checkboxSurveyOptionRenderer&&G.push(K.checkboxSurveyOptionRenderer);return G},[]):[]};
_.w.onOptionChange=function(m){var G=this,K=!1;if(m.detail.checked)for(var W=this.getOptionRenderers().find(function(c){return c.value===m.detail.value}),L=this.getOptionRenderers(),A=0;A<L.length;A++){var O=L[A];
this.notifyPath("data.options."+A+".checkboxSurveyOptionRenderer.checked");O.checked&&((W==null?0:W.isExclusiveOption)?!O.isExclusiveOption:O.isExclusiveOption)?this.set("data.options."+A+".checkboxSurveyOptionRenderer.checked",!1):O.checked&&(K=!0)}else K=this.getOptionRenderers().some(function(c,u){G.notifyPath("data.options."+u+".checkboxSurveyOptionRenderer.checked");return c.checked});
this.updateSubmitButton(K)};
_.w.onSubmitTap=function(){var m=this.getOptionRenderers().filter(function(A){return A.checked});
if(m.length!==0){var G=m.map(function(A){return A.responseEndpoint});
m=[];for(var K=1;K<G.length;K++){var W=void 0,L=(W=_.Q(G[K],_.cX))==null?void 0:W.feedbackToken;L&&m.push(L)}G=[G[0]];m.length&&G.push({extra_feedback_tokens:m});_.yQ(this.hostElement,G);_.dU(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);m=this.data&&this.data.submitActions||[];if(_.F("kevlar_command_handler_migration_killswitch"))_.eD(this.hostElement,m,this.hostElement);else for(m=_.g(m),G=m.next();!G.done;G=m.next())this.ytComponentBehavior.resolveCommand(G.value)}};
uy.prototype.onOptionChange=uy.prototype.onOptionChange;uy.prototype.dataChanged=uy.prototype.dataChanged;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],uy.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],uy.prototype,"ytComponentBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.x([_.q(Yju),_.S("design:type",Object)],uy.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uy.prototype,"data",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uy.prototype,"dataChanged",null);
_.x([_.XC("ytd-checkbox-survey-option-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],uy.prototype,"onOptionChange",null);_.x([_.Ye({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],uy);
_.y(uy,"ytd-checkbox-survey-renderer",function(){if(BjW!==void 0)return BjW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return BjW=m},{mode:1});var MTq;var Tjs;var hc=function(){return _.d.apply(this,arguments)||this};
_.n(hc,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.x([_.q(Oe6),_.S("design:type",Object)],hc.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hc.prototype,"data",void 0);_.x([_.Ye({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],hc);
_.y(hc,"ytd-dismissal-reason-text-renderer",function(){if(Tjs!==void 0)return Tjs;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Tjs=m},{mode:1});var m1W;var p7=function(){return _.d.apply(this,arguments)||this};
_.n(p7,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.x([_.q(Oe6),_.S("design:type",Object)],p7.prototype,"ytdDismissalReasonBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],p7.prototype,"data",void 0);_.x([_.Ye({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],p7);
_.y(p7,"ytd-dismissal-reason-video-renderer",function(){if(m1W!==void 0)return m1W;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return m1W=m},{mode:1});var Jc=function(){return _.d.apply(this,arguments)||this};
_.n(Jc,_.d);_.w=Jc.prototype;_.w.created=function(){this.selectedFeedbackTokens=new v5};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.w.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.w.onDismissalReasonSelected=function(m,G){_.Zw(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(G);this.hasReasonsSelected=!0};
_.w.onDismissalReasonDeselected=function(m,G){_.Zw(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(G);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.w.onCancelTap=function(){_.dU(this.hostElement,"yt-close-popup-action")};
_.w.onSubmitTap=function(){var m=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(m={feedback_tokens:m},_.xS().resolve(_.S1).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},m,{element:this.hostElement})}));_.dU(this.hostElement,"yt-close-popup-action")};
Jc.prototype.onDismissalReasonDeselected=Jc.prototype.onDismissalReasonDeselected;Jc.prototype.onDismissalReasonSelected=Jc.prototype.onDismissalReasonSelected;Jc.prototype.dataChanged=Jc.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Jc.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Jc.prototype,"hasReasonsSelected",void 0);_.x([_.V(),_.S("design:type",v5)],Jc.prototype,"selectedFeedbackTokens",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Jc.prototype,"dataChanged",null);_.x([_.XC("yt-dismissal-reason-selected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],Jc.prototype,"onDismissalReasonSelected",null);
_.x([_.XC("yt-dismissal-reason-deselected"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,String]),_.S("design:returntype")],Jc.prototype,"onDismissalReasonDeselected",null);_.x([_.Ye({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Jc);
_.y(Jc,"ytd-dismissal-follow-up-renderer",function(){if(MTq!==void 0)return MTq;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return MTq=m},{mode:1});var iXD;var Nw=function(){return _.d.apply(this,arguments)||this};
_.n(Nw,_.d);_.w=Nw.prototype;_.w.onCheckedChange=function(){this.multiselect||_.Zw(this.hostElement,"yt-feedback-single-select-changed");_.VL(this.hostElement).querySelector("#freeform").focus();_.Zw(this.hostElement,"yt-refit")};
_.w.showTextBox=function(m,G){return m&&G};
_.w.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))};
_.w.updateDataCheckedFromBinding=function(m){this.set("data.checked",m.detail.value)};
_.w.updateDataResultTextFromBinding=function(m){this.set("data.resultText",m.detail.value)};
Nw.prototype.dataChanged=Nw.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Nw.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Nw.prototype,"multiselect",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Nw.prototype,"dataChanged",null);
_.x([_.Ye({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Nw);
_.y(Nw,"ytd-feedback-option-renderer",function(){if(iXD!==void 0)return iXD;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return iXD=m},{mode:1});var GC5;var DK=function(){return _.d.apply(this,arguments)||this};
_.n(DK,_.d);DK.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
DK.prototype.onSingleSelectCheckedChanged=function(m){m=_.$C(m);for(var G=0;G<this.data.options.length;G++)if(m.data!==_.Q(this.data.options[G],n$6)){var K="data.options."+G+".feedbackOptionRenderer.checked";this.notifyPath(K);this.set(K,!1)}};
DK.prototype.onSingleSelectCheckedChanged=DK.prototype.onSingleSelectCheckedChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],DK.prototype,"data",void 0);
_.x([_.XC("yt-feedback-single-select-changed"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],DK.prototype,"onSingleSelectCheckedChanged",null);_.x([_.Ye({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],DK);
_.y(DK,"ytd-feedback-question-renderer",function(){if(GC5!==void 0)return GC5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return GC5=m},{mode:1});var KOu;var tc=function(){return _.d.apply(this,arguments)||this};
_.n(tc,_.d);tc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
tc.prototype.getSelectedFeedbackResults=function(){for(var m={},G=0;G<this.data.questions.length;G++)for(var K=_.Q(this.data.questions[G],o$W),W=0;W<K.options.length;W++){var L=_.Q(K.options[W],n$6);L&&L.checked&&(m[L.optionKey]=L.resultText)}return m};
tc.prototype.onKeyUp=function(){var m=this;_.jA(_.Fu,function(){_.Zw(m.hostElement,"yt-refit")});
_.Fu.start()};
tc.prototype.submitSurvey=function(){var m=this.getSelectedFeedbackResults();Object.keys(m).length>0&&this.data.submitFeedbackEndpoint&&(m={survey_results:m,is_feedback_token_unencrypted:!0},_.xS().resolve(_.S1).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},m,{element:this.hostElement})}))};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tc.prototype,"data",void 0);_.x([_.Ye({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],tc);
_.y(tc,"ytd-feedback-survey-renderer",function(){if(KOu!==void 0)return KOu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return KOu=m},{mode:1});var WO6;var LOW;var FU=function(){return _.d.apply(this,arguments)||this};
_.n(FU,_.d);FU.prototype.computeAlt=function(m){return _.bw(m)};
FU.prototype.submitResponse=function(){var m,G;(m=this.data)!=null&&m.feedbackToken&&((G=this.data)==null?void 0:G.nextStageIndex)!==void 0&&(_.PH(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.PH(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
FU.prototype.onClick=function(){this.submitResponse()};
FU.prototype.onClick=FU.prototype.onClick;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FU.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],FU.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],FU.prototype,"vertical",void 0);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FU.prototype,"onClick",null);
_.x([_.Ye({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],FU);
_.y(FU,"ytd-single-select-answer-option-renderer",function(){if(LOW!==void 0)return LOW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return LOW=m},{mode:1});var AP5;var QE=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return m};
_.n(QE,_.d);QE.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
QE.prototype.dataChanged=function(){var m,G;this.vertical=((G=(m=this.data)==null?void 0:m.answerOrientation)!=null?G:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
QE.prototype.submitFeedback=function(m){var G;((G=this.data)==null?0:G.responseEndpoint)&&m&&_.yQ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[m]}])};
QE.prototype.dataChanged=QE.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],QE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],QE.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],QE.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],QE.prototype,"vertical",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],QE.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],QE);
_.y(QE,"ytd-single-select-question-renderer",function(){if(AP5!==void 0)return AP5;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return AP5=m},{mode:1});var aV=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return m};
_.n(aV,_.d);_.w=aV.prototype;_.w.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"}}}};
_.w.dataChanged=function(){this.jumpToStage(0)};
_.w.jumpToStage=function(m){var G,K;if((G=this.data)==null?0:(K=G.stages)==null?0:K[m])this.currentStage=this.data.stages[m],this.refitAfterRender()};
_.w.computeAlt=function(m){return _.bw(m)};
_.w.computeSimpleMessage=function(m){var G;return(G=_.Q(m,$Ou))==null?void 0:G.messageText};
_.w.computeHideDismiss=function(m){var G;return(G=_.Q(m,$oP))==null?void 0:G.hideParentDismissButton};
_.w.onDismissTap=function(){_.dU(this.hostElement,"yt-close-popup-action");_.Q(this.currentStage,$Ou)||this.data.dismissalEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.w.refitAfterRender=function(){var m=this;_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit")})};
aV.prototype.dataChanged=aV.prototype.dataChanged;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],aV.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],aV.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q(Yju),_.S("design:type",Object)],aV.prototype,"ytdHatsSurveyBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],aV.prototype,"currentStage",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aV.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],aV);
_.y(aV,"ytd-multi-stage-survey-renderer",function(){if(WO6!==void 0)return WO6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return WO6=m},{mode:1});var wmz;var oV=function(){return _.d.apply(this,arguments)||this};
_.n(oV,_.d);oV.prototype.computeAlt=function(m){return _.bw(m)};
oV.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.xS().resolve(_.S1).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.dU(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(xhG(!1)))};
oV.prototype.onTap=function(){this.vertical&&this.submitResponse()};
oV.prototype.onTap=oV.prototype.onTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],oV.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oV.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],oV.prototype,"vertical",void 0);
_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oV.prototype,"onTap",null);_.x([_.Ye({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],oV);
_.y(oV,"ytd-single-option-survey-option-renderer",function(){if(wmz!==void 0)return wmz;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return wmz=m},{mode:1});var g_E;var n7=function(){return _.d.apply(this,arguments)||this};
_.n(n7,_.d);_.w=n7.prototype;_.w.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){var m,G;this.vertical=(((m=this.data)==null?void 0:(G=m.surveyOrientation)==null?void 0:G.type)||"HORIZONTAL")==="VERTICAL"};
_.w.computeAlt=function(m){return _.bw(m)};
_.w.onDismissTap=function(){_.dU(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.xS().resolve(_.S1).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(xhG(!1))};
n7.prototype.dataChanged=n7.prototype.dataChanged;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],n7.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(Yju),_.S("design:type",Object)],n7.prototype,"ytdHatsSurveyBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],n7.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],n7.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],n7.prototype,"vertical",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],n7.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],n7);
_.y(n7,"ytd-single-option-survey-renderer",function(){if(g_E!==void 0)return g_E;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return g_E=m},{mode:1});var OX5;var by=function(){return _.d.apply(this,arguments)||this};
_.n(by,_.d);by.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
by.prototype.onDismissTap=function(){_.dU(this.hostElement,"yt-close-popup-action")};
by.prototype.onNavigate=function(){_.dU(this.hostElement,"yt-close-popup-action")};
by.prototype.onNavigate=by.prototype.onNavigate;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],by.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],by.prototype,"data",void 0);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],by.prototype,"onNavigate",null);
_.x([_.Ye({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],by);
_.y(by,"ytd-survey-follow-up-renderer",function(){if(OX5!==void 0)return OX5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return OX5=m},{mode:1});var cPG;var Y0W;var rPE;var va=function(){var m=_.d.apply(this,arguments)||this;m.polymer2="Element"in Polymer;return m};
_.n(va,_.d);_.w=va.prototype;_.w.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.w.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.w.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.w.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("minutes-changed",this.minutes))};
_.w.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("seconds-changed",this.seconds))};
_.w.updateMinutesFromBinding=function(m){this.minutes=m.detail.value};
_.w.updateSecondsFromBinding=function(m){this.seconds=m.detail.value};
va.prototype.secondsChangedForBinding=va.prototype.secondsChangedForBinding;va.prototype.minutesChangedForBinding=va.prototype.minutesChangedForBinding;va.prototype.secondsChanged=va.prototype.secondsChanged;_.x([_.V(),_.S("design:type",String)],va.prototype,"minutes",void 0);_.x([_.V(),_.S("design:type",String)],va.prototype,"seconds",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],va.prototype,"polymer2",void 0);
_.x([_.UM("#seconds"),_.S("design:type",Object)],va.prototype,"secondsEl",void 0);_.x([_.Sb("seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],va.prototype,"secondsChanged",null);_.x([_.Sb("minutes"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],va.prototype,"minutesChangedForBinding",null);
_.x([_.Sb("seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],va.prototype,"secondsChangedForBinding",null);_.x([_.cL({is:"yt-timestamp-input",disableElementRegistration:!0})],va);
_.y(va,"yt-timestamp-input",function(){if(rPE===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Y0W===void 0&&(Y0W=document.createElement("template"));var W=Y0W;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rPE=m}m=rPE;return m},{mode:2});var $a=function(){return _.d.apply(this,arguments)||this};
_.n($a,_.d);_.w=$a.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$22493_scroller.dialogElement=this.hostElement.parentNode};
_.w.dataChanged=function(){var m=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.ET().getPlayerPromise().then(function(G){G=G.getCurrentTime();m.minutes=Math.floor(G/60).toString();m.seconds=(Math.floor(G)%60).toString()})};
_.w.onTapSubmit=function(m){m.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(m={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(m.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(m.minutes=this.minutes,m.seconds=this.seconds),_.xS().resolve(_.S1).resolveCommand(this.serviceEndpoint,{form:Object.assign({},m,{element:this.hostElement})}))};
_.w.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.w.onYtServiceRequestCompleted=function(m,G){G=G.actions;if(Array.isArray(G))for(var K=0,W=G.length;K<W;K++)_.Q(G[K],_.BM)&&(m.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(G[K]))};
_.w.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.w.toggleSubmitButton=function(m){this.set("submitButton.isDisabled",!m)};
_.w.handleInput=function(){var m=this.issueType,G=this.affiliation,K=this.minutes,W=this.seconds;K=!this.showTimestamp||!!K&&!!W;this.toggleSubmitButton(!!this.descriptionText&&!!m&&!!G&&K)};
_.w.computeServiceEndpoint=function(m){return this.get("submitButton.buttonRenderer.serviceEndpoint",m)};
_.w.computeSubmitButton=function(m){(m=this.get("submitButton.buttonRenderer",m))&&(m=Object.assign({},m,{serviceEndpoint:void 0}));return m};
_.w.computeShowTimestamp=function(m){return!!m};
_.w.onValueChangedForIssueType=function(m){this.issueType=m.detail.value};
_.w.onValueChangedForAffiliation=function(m){this.affiliation=m.detail.value};
_.w.updateDescriptionTextFromBinding=function(m){this.descriptionText=m.detail.value};
_.w.updateFullNameTextFromBinding=function(m){this.fullNameText=m.detail.value};
_.w.updateMinutesFromBinding=function(m){this.minutes=m.detail.value};
_.w.updateSecondsFromBinding=function(m){this.seconds=m.detail.value};
$a.prototype.handleInput=$a.prototype.handleInput;$a.prototype.onYtServiceRequestError=$a.prototype.onYtServiceRequestError;$a.prototype.onYtServiceRequestCompleted=$a.prototype.onYtServiceRequestCompleted;$a.prototype.onYtServiceRequestSent=$a.prototype.onYtServiceRequestSent;$a.prototype.dataChanged=$a.prototype.dataChanged;_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],$a.prototype,"ytOpenPopupBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],$a.prototype,"JSC$22493_scroller",void 0);_.x([_.UM("#description"),_.S("design:type",HTMLInputElement)],$a.prototype,"description",void 0);_.x([_.UM("#full-name"),_.S("design:type",Object)],$a.prototype,"fullName",void 0);_.x([_.V(),_.S("design:type",Object)],$a.prototype,"data",void 0);
_.x([_.V({computed:"computeShowTimestamp(data.timestampLabel)"}),_.S("design:type",Boolean)],$a.prototype,"showTimestamp",void 0);_.x([_.V({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.S("design:type",Object)],$a.prototype,"serviceEndpoint",void 0);_.x([_.V({computed:"computeSubmitButton(data)"}),_.S("design:type",Object)],$a.prototype,"submitButton",void 0);_.x([_.V(),_.S("design:type",String)],$a.prototype,"descriptionText",void 0);
_.x([_.V(),_.S("design:type",Number)],$a.prototype,"issueType",void 0);_.x([_.V(),_.S("design:type",Number)],$a.prototype,"affiliation",void 0);_.x([_.V(),_.S("design:type",String)],$a.prototype,"fullNameText",void 0);_.x([_.V(),_.S("design:type",String)],$a.prototype,"minutes",void 0);_.x([_.V(),_.S("design:type",String)],$a.prototype,"seconds",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$a.prototype,"dataChanged",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],$a.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],$a.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],$a.prototype,"onYtServiceRequestError",null);_.x([_.Sb("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$a.prototype,"handleInput",null);_.x([_.Ye({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],$a);
_.y($a,"ytd-legal-report-details-form-renderer",function(){if(cPG!==void 0)return cPG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return cPG=m},{mode:1});var uDq;var sN=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return m};
_.n(sN,_.d);sN.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
sN.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var m=this.formRenderer.getForm();m&&this.data.submitEndpoint&&(_.xS().resolve(_.S1).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},m,{element:this.hostElement})}),_.dU(this.hostElement,"yt-close-popup-action"))}};
sN.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.dU(this.hostElement,"yt-close-popup-action"))};
sN.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
sN.prototype.onPopupClosed=sN.prototype.onPopupClosed;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],sN.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],sN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);
_.x([_.UM("yt-form-renderer"),_.S("design:type",Object)],sN.prototype,"formRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],sN.prototype,"data",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],sN.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-form-popup-content",disableElementRegistration:!0})],sN);
_.y(sN,"ytd-form-popup-content",function(){if(uDq!==void 0)return uDq;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return uDq=m},{mode:1});var hED;var qw=function(){return _.d.apply(this,arguments)||this};
_.n(qw,_.d);qw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qw.prototype.onPopupOpened=function(){_.Zw(this.hostElement,"yt-invalidate-popup-tabbables")};
qw.prototype.onYtServiceRequestCompleted=function(m,G){G.data&&G.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Zw(this.hostElement,"yt-invalidate-popup-tabbables"))};
qw.prototype.onYtServiceRequestCompleted=qw.prototype.onYtServiceRequestCompleted;qw.prototype.onPopupOpened=qw.prototype.onPopupOpened;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],qw.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],qw.prototype,"data",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],qw.prototype,"onPopupOpened",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],qw.prototype,"onYtServiceRequestCompleted",null);_.x([_.Ye({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],qw);
_.y(qw,"ytd-form-popup-renderer",function(){if(hED!==void 0)return hED;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return hED=m},{mode:1});var pmE;var EN=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;return m};
_.n(EN,_.d);_.w=EN.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");cbu(this.hostElement)};
_.w.onYtServiceRequestSent=function(){this.isLoading=!0};
_.w.onYtServiceRequestCompleted=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.w.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.eD(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.w.closePopupHandler=function(){this.fireOnCloseActions()};
_.w.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var m=this.get("data.headerImage.thumbnails");m&&(m=_.qy(m,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+m+")")}};
_.w.onYtNavigate=function(m){(m=_.$C(m))&&m.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
EN.prototype.onYtNavigate=EN.prototype.onYtNavigate;EN.prototype.onHeaderImageChanged=EN.prototype.onHeaderImageChanged;EN.prototype.closePopupHandler=EN.prototype.closePopupHandler;EN.prototype.onYtServiceRequestCompleted=EN.prototype.onYtServiceRequestCompleted;EN.prototype.onYtServiceRequestSent=EN.prototype.onYtServiceRequestSent;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],EN.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],EN.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],EN.prototype,"isLoading",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLDivElement)],EN.prototype,"header",void 0);_.x([_.UM("#confirm-button"),_.S("design:type",_.Bq)],EN.prototype,"confirmButton",void 0);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],EN.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],EN.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],EN.prototype,"closePopupHandler",null);_.x([_.Sb("data.headerImage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],EN.prototype,"onHeaderImageChanged",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],EN.prototype,"onYtNavigate",null);
_.x([_.Ye({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],EN);
_.y(EN,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(pmE!==void 0)return pmE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return pmE=m},{mode:1});var JP6;var Ha=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;return m};
_.n(Ha,_.d);_.w=Ha.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);cbu(this.hostElement)};
_.w.onYtServiceRequestCompleted=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.w.onYtServiceRequestError=function(m){_.QH(this.hostElement,m.detail.error.message)};
_.w.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.w.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.dU(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.w.onDataChanged=function(){this.isLoading=!1;var m=this.get("data.headerImage.thumbnails");m&&(m=_.qy(m,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+m+")");m=_.gU();var G=_.wU(),K=this.get("data.trackingParams");K&&G&&m&&_.tW(m,G,_.m5(K))};
_.e_.Object.defineProperties(Ha.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Ha.prototype.onDataChanged=Ha.prototype.onDataChanged;Ha.prototype.onDomChange=Ha.prototype.onDomChange;Ha.prototype.onYtServiceRequestError=Ha.prototype.onYtServiceRequestError;Ha.prototype.onYtServiceRequestCompleted=Ha.prototype.onYtServiceRequestCompleted;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Ha.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ha.prototype,"isLoading",void 0);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ha.prototype,"hasDescription",null);_.x([_.UM("tp-yt-paper-dialog-scrollable"),_.S("design:type",Object)],Ha.prototype,"scrollable",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLElement)],Ha.prototype,"header",void 0);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ha.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ha.prototype,"onYtServiceRequestError",null);
_.x([_.XC("dom-change"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ha.prototype,"onDomChange",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ha.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Ha);
_.y(Ha,"ytd-gaming-account-link-setting-renderer",function(){if(JP6!==void 0)return JP6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return JP6=m},{mode:1});var Nh6;var D1P;var IV=function(){var m=_.d.apply(this,arguments)||this;m.isHeader=!1;m.getEndpointForm=function(){return dPq(m.data)};
return m};
_.n(IV,_.d);_.w=IV.prototype;_.w.triggerHintActions=function(){var m=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var G=_.PH(m.hostElement,"yt-get-opened-popups-action");!(G&&G.length===1?G[0]:[]).some(function(K){K=K.openPopupAction.popupType;return K==="SURVEY"||K==="MEALBAR"||K==="HINT"})&&m.data.hintActions&&m.guideOpened&&(_.eD(m.hostElement,m.data.hintActions,m.hostElement),m.data.hintActions=void 0)})};
_.w.getBadgeIconType=function(m){return m&&m.liveBroadcasting?"live":null};
_.w.onDown=function(){this.interaction.triggerDown()};
_.w.onUp=function(){this.interaction.triggerUp()};
_.w.onTap=function(m){if(this.data.serviceEndpoint){var G;_.F("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.Q(this.data.serviceEndpoint,_.lw))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ZYs(this.data.serviceEndpoint,this);m.preventDefault()}else this.data.navigationEndpoint&&!_.b_(_.ve(m),this.hostElement,["A".toString()])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.w.computeActive=function(m,G){if(!m)return!1;var K=m.navigationEndpoint;m=m.serviceEndpoint;if(!K&&!m||!G)return!1;if(K){m=(m=_.XQ(G))&&["subscriptions","filteredsubscriptions"].includes(m);if(_.Q(K,_.S8)&&_.Q(G,_.S8)&&!m){var W=_.Q(K,_.S8).browseId;G=_.Q(G,_.S8).browseId;return W!==void 0&&G!==void 0&&(W===G||W==="VLWL"&&G==="FEwatch_later"||W==="FEwatch_later"&&G==="VLWL")}var L;K=(L=_.Q(K.commandMetadata,_.RQ))==null?void 0:L.url;G=(W=_.Q(G.commandMetadata,_.RQ))==null?void 0:W.url;return!(!K||
!G||K!==G&&K!==_.f6(G))}return this.isActiveShortsTab(m,G)};
_.w.isActiveShortsTab=function(m,G){G=!!_.Q(G,_.lw)||!!_.Q(G,_.Yq);return(!!_.Q(m,_.lw)||!!_.Q(m,_.Yq))&&G};
_.w.computeIsPrimary=function(m){return!!m};
_.e_.Object.defineProperties(IV.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 m=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&m)return m}}});
IV.prototype.onTap=IV.prototype.onTap;IV.prototype.onUp=IV.prototype.onUp;IV.prototype.onDown=IV.prototype.onDown;IV.prototype.triggerHintActions=IV.prototype.triggerHintActions;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],IV.prototype,"componentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],IV.prototype,"rendererBehavior",void 0);_.x([_.q(_.oE.YtTaskEmitterBehavior),_.S("design:type",Object)],IV.prototype,"taskEmitterBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],IV.prototype,"activeEndpoint",void 0);_.x([_.V(),_.S("design:type",Object)],IV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],IV.prototype,"guideOpened",void 0);_.x([_.V(),_.S("design:type",String)],IV.prototype,"type",void 0);_.x([_.UM("yt-interaction"),_.S("design:type",Object)],IV.prototype,"interaction",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],IV.prototype,"isHeader",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data","activeEndpoint"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],IV.prototype,"active",null);_.x([_.V({reflectToAttribute:!0}),_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],IV.prototype,"isPrimary",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.count","data.presentationStyle","data.badges.*"),_.S("design:type",String),_.S("design:paramtypes",[])],IV.prototype,"lineEndStyle",null);
_.x([_.E("lineEndStyle"),_.S("design:type",Object),_.S("design:paramtypes",[])],IV.prototype,"ariaLabel",null);_.x([_.Sb("data.hintActions","guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IV.prototype,"triggerHintActions",null);_.x([_.XC("down"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IV.prototype,"onDown",null);
_.x([_.XC("up"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],IV.prototype,"onUp",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],IV.prototype,"onTap",null);_.x([_.Ye({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],IV);
_.y(IV,"ytd-guide-entry-renderer",function(){if(D1P!==void 0)return D1P;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return D1P=m},{mode:1});var j6=function(){var m=_.d.apply(this,arguments)||this;m.userToggled=!1;return m};
_.n(j6,_.d);_.w=j6.prototype;_.w.getItemsPath=function(){return"data.expandableItems"};
_.w.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.w.onExpanderItemTapped=function(m){var G=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.F("kevlar_guide_expandable_items_killswitch")&&_.Pv(this,function(){_.dW(G.expandableItems)});
m.preventDefault()};
_.w.onCollapserItemTapped=function(m){var G=this;this._setExpanded(!1);this.userToggled=!0;m.preventDefault();this.expandableItems&&!_.F("kevlar_guide_collapsible_items_killswitch")&&_.Pv(this,function(){_.ZD(G.hostElement)})};
_.w.observeActiveEndpoint=function(){for(var m=this.activeEndpoint,G=this.data,K=this.expandableItems.children,W=0,L=K.length;W<L;W++)K[W].activeEndpoint=m;G&&G.autoExpandCommand&&m&&!this.userToggled&&(K=this.data.autoExpandCommand,G=!(!_.Q(K,_.S8)||!_.Q(m,_.S8)||_.Q(K,_.S8).browseId!==_.Q(m,_.S8).browseId),m=this.get("commandMetadata.webCommandMetadata.url",m),K=this.get("commandMetadata.webCommandMetadata.url",K),G=G||!!(m&&K&&m.includes(K)),this._setExpanded(G),G&&this.ytLazyListBehavior.fillRemainingListItems())};
j6.prototype.observeActiveEndpoint=j6.prototype.observeActiveEndpoint;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],j6.prototype,"ytLazyListBehavior",void 0);_.x([_.UM("#expandable-items"),_.S("design:type",HTMLElement)],j6.prototype,"expandableItems",void 0);
_.x([_.V(),_.S("design:type",Object)],j6.prototype,"data",void 0);_.x([_.V({readOnly:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],j6.prototype,"expanded",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],j6.prototype,"initialCount",void 0);_.x([_.V(),_.S("design:type",Object)],j6.prototype,"activeEndpoint",void 0);_.x([_.Sb("data","activeEndpoint","canShowMore"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],j6.prototype,"observeActiveEndpoint",null);
_.x([_.Ye({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],j6);
_.y(j6,"ytd-guide-collapsible-entry-renderer",function(){if(Nh6!==void 0)return Nh6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Nh6=m},{mode:2});var t$G;var FOP;var ka=function(){var m=_.d.apply(this,arguments)||this;m.allVideosCount=0;m.renderGuideEntry=!1;return m};
_.n(ka,_.d);ka.prototype.observeRenderEntry=function(){var m;this.renderGuideEntry=!((m=this.data)==null||!m.alwaysShow)||!!this.allVideosCount};
ka.prototype.observeRenderEntry=ka.prototype.observeRenderEntry;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ka.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ka.prototype,"activeEndpoint",void 0);_.x([_.V({selector:_.vjd}),_.S("design:type",Object)],ka.prototype,"allVideosCount",void 0);
_.x([_.V(),_.S("design:type",Object)],ka.prototype,"renderGuideEntry",void 0);_.x([_.Mg("allVideosCount","data.alwaysShow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ka.prototype,"observeRenderEntry",null);_.x([_.Ye({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],ka);
_.y(ka,"ytd-guide-downloads-entry-renderer",function(){if(FOP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);FOP=m}m=FOP;return m},{mode:1});var C7=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return m};
_.n(C7,_.d);_.w=C7.prototype;_.w.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]]"}}}}}};
_.w.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var m=this.sectionItems.children,G=0,K=m.length;G<K;G++)m[G].activeEndpoint=this.activeEndpoint}};
_.w.handleAddToGuideSectionAction=function(m){var G=_.Q(m,OfP);if(G&&this.data&&(m=G.items,G=G.handlerData,m&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1)){G=0;for(var K=m.length;G<K;G++)m[G].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,m[G])}};
_.w.handleRemoveFromGuideSectionAction=function(m){var G=_.Q(m,cG6);G&&this.data&&(m=G.guideEntryId,G=G.handlerData,m&&G&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(G)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(m,this.data.sectionItems),this.removeFromCollapsedSection(m,this.data.sectionItems)))};
_.w.removeFromExpandedSection=function(m,G){m=this.getEntryIndexMatchingId(m,G);m!==-1&&this.splice("data.sectionItems",m,1)};
_.w.removeFromCollapsedSection=function(m,G){var K=G.findIndex(function(W){return!!_.Q(W,yA6)});
K&&K!==-1&&G[K]&&_.Q(G[K],yA6)&&(G=_.Q(G[K],yA6).expandableItems)&&(m=this.getEntryIndexMatchingId(m,G),m!==-1&&this.splice("data.sectionItems."+K+".guideCollapsibleEntryRenderer.expandableItems",m,1))};
_.w.getEntryIndexMatchingId=function(m,G){var K=this;return G.findIndex(function(W){return K.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",W)===m})};
C7.prototype.activeEndpointChanged=C7.prototype.activeEndpointChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],C7.prototype,"actionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#section-items"),_.S("design:type",HTMLDivElement)],C7.prototype,"sectionItems",void 0);
_.x([_.UM("#header-entry"),_.S("design:type",Object)],C7.prototype,"headerEntry",void 0);_.x([_.V(),_.S("design:type",Object)],C7.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],C7.prototype,"activeEndpoint",void 0);_.x([_.Sb("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],C7.prototype,"activeEndpointChanged",null);_.x([_.Ye({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],C7);
_.y(C7,"ytd-guide-collapsible-section-entry-renderer",function(){if(t$G===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);t$G=m}m=t$G;return m},{mode:1});var QID;var aU6;var VE=function(){var m=_.d.apply(this,arguments)||this;m.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 m};
_.n(VE,_.d);_.w=VE.prototype;
_.w.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}}}}};
_.w.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var m=_.PH(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);m&&m.length===1&&m[0]&&_.PH(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.w.handleResetChannelUnreadCountCommand=function(m){var G;(m=(G=_.Q(m,unW))==null?void 0:G.channelId)&&this.data&&this.data.items&&(G=this.getPathToEntryMatchingId(m))&&(this.set(G+".guideEntryRenderer.count",0),this.set(G+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.w.handleResetSubscriptionsUnreadDotCommand=function(m){var G,K=(G=_.Q(m,huO))==null?void 0:G.targetId,W;K&&(W=this.data)!=null&&W.items&&(m=this.data.items.findIndex(function(L){var A;return((A=L.guideEntryRenderer)==null?void 0:A.targetId)===K}),m<0||this.set("data.items."+m+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.w.getPathToEntryMatchingId=function(m){if(this.data&&this.data.items){var G=this.getEntryIndexMatchingId(m,this.data.items);if(G>-1)return"data.items."+G;for(var K=0;K<this.data.items.length;K++)if(G=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[K]))if(G=this.getEntryIndexMatchingId(m,G),G>-1)return"data.items."+K+".guideCollapsibleEntryRenderer.expandableItems."+G}};
_.w.handleAddToGuideSectionAction=function(m){var G=this;if(_.Q(m,OfP)){var K=_.Q(m,OfP).items;m=_.Q(m,OfP).handlerData;var W,L;if(K&&m&&((W=this.data)==null?void 0:(L=W.handlerDatas)==null?void 0:L.indexOf(m))>-1){K=K.filter(function(O){return(O=G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",O))&&!G.isGuideItemPresent(O)});
var A;if(m==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((A=this.data)==null?0:A.items)&&(W=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),W>-1)){this.splice.apply(this,["data.items",W+1,0].concat(_.Bz(K)));return}this.unshift.apply(this,["data.items"].concat(_.Bz(K)))}}};
_.w.isGuideItemPresent=function(m){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(m,this.data.items)!==-1)return!0;var G=this.data.items.find(function(K){return!!K.guideCollapsibleEntryRenderer});
if((G==null?0:G.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(m,G.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.w.getEntryIndexMatchingId=function(m,G){var K=this;return G.findIndex(function(W){return K.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",W)===m})};
_.w.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(m,G){var K=this;return G.findIndex(function(W){return K.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",W)===m})};
_.w.handleRemoveFromGuideSectionAction=function(m){if(_.Q(m,cG6)){var G=_.Q(m,cG6).guideEntryId;m=_.Q(m,cG6).handlerData;var K,W;G&&m&&((K=this.data)==null?void 0:(W=K.handlerDatas)==null?void 0:W.indexOf(m))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(G,this.data.items),this.removeFromCollapsedSection(G,this.data.items))}};
_.w.removeFromExpandedSection=function(m,G){m=this.getEntryIndexMatchingId(m,G);m!==-1&&this.splice("data.items",m,1)};
_.w.removeFromCollapsedSection=function(m,G){var K=G.findIndex(function(W){return!!W.guideCollapsibleEntryRenderer});
K!==-1&&(G=G[K].guideCollapsibleEntryRenderer.expandableItems)&&(m=this.getEntryIndexMatchingId(m,G),m!==-1&&this.splice("data.items."+K+".guideCollapsibleEntryRenderer.expandableItems",m,1))};
_.w.activeEndpointChanged=function(){for(var m=_.VL(this.hostElement).querySelector("#items").children,G=0,K=m.length;G<K;G++)m[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.w.guideOpenedChanged=function(){for(var m=_.VL(this.hostElement).querySelector("#items").children,G=0,K=m.length;G<K;G++)m[G].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
VE.prototype.guideOpenedChanged=VE.prototype.guideOpenedChanged;VE.prototype.activeEndpointChanged=VE.prototype.activeEndpointChanged;VE.prototype.persistentGuideChanged=VE.prototype.persistentGuideChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],VE.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],VE.prototype,"ytLazyListBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],VE.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],VE.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",String)],VE.prototype,"type",void 0);_.x([_.V({value:20}),_.S("design:type",Number)],VE.prototype,"initialCount",void 0);_.x([_.V({value:10}),_.S("design:type",Number)],VE.prototype,"targetFramerate",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],VE.prototype,"autoFill",void 0);_.x([_.V({value:50}),_.S("design:type",Number)],VE.prototype,"renderDelay",void 0);
_.x([_.Sb("guidePersistentAndVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VE.prototype,"persistentGuideChanged",null);_.x([_.Mg("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VE.prototype,"activeEndpointChanged",null);_.x([_.Mg("guideOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],VE.prototype,"guideOpenedChanged",null);
_.x([_.Ye({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],VE);
_.y(VE,"ytd-guide-section-renderer",function(){if(aU6!==void 0)return aU6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return aU6=m},{mode:2});var o_E;var ZK=function(){return _.d.apply(this,arguments)||this};
_.n(ZK,_.d);_.e_.Object.defineProperties(ZK.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ZK.prototype,"rendererBehaviors",void 0);_.x([_.V(),_.S("design:type",Object)],ZK.prototype,"data",void 0);_.x([_.V(),_.E("data.signInButton.buttonRenderer.style"),_.S("design:type",Object),_.S("design:paramtypes",[])],ZK.prototype,"alignByText",null);_.x([_.Ye({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],ZK);
_.y(ZK,"ytd-guide-signin-promo-renderer",function(){if(o_E===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);o_E=m}m=o_E;return m},{mode:1});var du=function(){var m=_.d.apply(this,arguments)||this;m.showFooter=!1;return m};
_.n(du,_.d);du.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}}}}};
du.prototype.attached=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1){G=_.xS().resolve(_.fn(_.hS));if(!G)return K.jumpTo(0);G.setGuideData(m.hostElement);return K.yield(0,3)}m.ytLazyListBehavior.initialCount=2;return K.return()})};
du.prototype.onMouseExit=function(){_.F("web_guide_hover_expansion")&&_.PH(this.hostElement,"yt-guide-mouseleaved",[])};
du.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
du.prototype.dataChanged=du.prototype.dataChanged;du.prototype.onMouseExit=du.prototype.onMouseExit;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],du.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.EW.YtLazyListBehavior),_.S("design:type",Object)],du.prototype,"ytLazyListBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],du.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],du.prototype,"showFooter",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],du.prototype,"autoFill",void 0);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],du.prototype,"onMouseExit",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],du.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-guide-renderer",disableElementRegistration:!0})],du);
_.y(du,"ytd-guide-renderer",function(){if(QID!==void 0)return QID;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return QID=m},{mode:2});var n_i;var Pa=function(){var m=_.d.apply(this,arguments)||this;m.systemIcons=_.F("kevlar_system_icons");m.frostedGlass=_.F("web_frosted_glass");m.onAllyMenuButtonClick=function(){var G=m.getShowSheetCommand();G&&m.ytComponentBehavior.resolveCommand(G)};
m.getEndpointForm=function(){return dPq(m.data)};
return m};
_.n(Pa,_.d);_.w=Pa.prototype;_.w.attached=function(){this.JSC$22546_sheetController=_.xS().resolve(_.Lk)};
_.w.onDown=function(){this.interaction.triggerDown()};
_.w.onMouseEnter=function(){if(this.data.mouseEnterEndpoint){this.ytComponentBehavior.resolveCommand(this.data.mouseEnterEndpoint);var m;(m=this.JSC$22546_sheetController)==null||dzD(m,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this))}};
_.w.onMouseLeave=function(){this.data.mouseLeaveEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.mouseLeaveEndpoint)};
_.w.isSeedlessReelCommand=function(m){var G;return!!m&&((G=_.Q(m,_.lw))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"};
_.w.isShowSheetCommand=function(m){return!!m&&!!_.Q(m,_.MW)};
_.w.getShowSheetCommand=function(){if(this.isShowSheetCommand(this.data.serviceEndpoint))return this.data.serviceEndpoint;if(this.isShowSheetCommand(this.data.mouseEnterEndpoint))return this.data.mouseEnterEndpoint};
_.w.mouseEnterCallback=function(){this.hostElement.classList.add("hovered")};
_.w.mouseLeaveCallback=function(){this.hostElement.classList.remove("hovered")};
_.w.onUp=function(){this.interaction.triggerUp()};
_.w.onTap=function(m){if(this.data.serviceEndpoint){if(_.F("shorts_controller_retrieve_seedless_sequence_v2")&&this.isSeedlessReelCommand(this.data.serviceEndpoint))this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);else{if(this.isShowSheetCommand(this.data.serviceEndpoint)){this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint);var G;(G=this.JSC$22546_sheetController)==null||dzD(G,this.mouseEnterCallback.bind(this),this.mouseLeaveCallback.bind(this));m.preventDefault();
return}ZYs(this.data.serviceEndpoint,this)}m.preventDefault()}else{var K;((K=this.data)==null?0:K.navigationEndpoint)&&!_.b_(_.ve(m),this.hostElement,["A".toString()])&&_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.w.computeActive=function(m,G){if(!m)return!1;var K=m.navigationEndpoint;m=m.serviceEndpoint;if(!K&&!m||!G)return!1;if(K){m=_.Q(K,_.S8);var W=_.Q(G,_.S8);if(m&&W)return m.browseId===W.browseId&&m.params===W.params;var L;K=(L=_.Q(K.commandMetadata,_.RQ))==null?void 0:L.url;var A;G=(A=_.Q(G.commandMetadata,_.RQ))==null?void 0:A.url;return!(!K||!G||K!==G&&K!==_.f6(G))}return this.isActiveShortsTab(m,G)};
_.w.isActiveShortsTab=function(m,G){G=!!_.Q(G,_.lw)||!!_.Q(G,_.Yq);return(!!_.Q(m,_.lw)||!!_.Q(m,_.Yq))&&G};
_.w.computeTitle=function(m,G){return G?"":_.bw(m)};
_.w.computeEndpoint=function(m){return this.isSeedlessReelCommand(m.serviceEndpoint)?m.serviceEndpoint:m.navigationEndpoint};
_.w.computeHref=function(m){m=this.isSeedlessReelCommand(m.serviceEndpoint)?m.serviceEndpoint:m.navigationEndpoint;return(m=this.ytComponentBehavior.computeHref_(m))?m:"#"};
_.w.computeAriaLabelTitle=function(m){return _.bw(m)};
_.w.computeAllyShowMenuOnTap=function(m){return this.isShowSheetCommand(m.mouseEnterEndpoint)||this.isShowSheetCommand(m.serviceEndpoint)};
_.e_.Object.defineProperties(Pa.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Pa.prototype.onMouseLeave=Pa.prototype.onMouseLeave;Pa.prototype.onMouseEnter=Pa.prototype.onMouseEnter;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Pa.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.Gc),_.S("design:type",Object)],Pa.prototype,"ironButtonState",void 0);_.x([_.V(),_.S("design:type",Object)],Pa.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],Pa.prototype,"activeEndpoint",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],Pa.prototype,"noLabels",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.S("design:type",Boolean)],Pa.prototype,"isActive",void 0);_.x([_.V({computed:"computeEndpoint(data)"}),_.S("design:type",Object)],Pa.prototype,"computedEndpoint",void 0);
_.x([_.V({computed:"computeHref(data)"}),_.S("design:type",String)],Pa.prototype,"computedHref",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Pa.prototype,"systemIcons",void 0);_.x([_.UM("yt-interaction"),_.S("design:type",Object)],Pa.prototype,"interaction",void 0);_.x([_.E("isActive"),_.S("design:type",Object),_.S("design:paramtypes",[])],Pa.prototype,"ariaSelected",null);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Pa.prototype,"frostedGlass",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeAllyShowMenuOnTap(data)"}),_.S("design:type",Boolean)],Pa.prototype,"allyShowMenuOnTap",void 0);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],Pa.prototype,"onMouseEnter",null);_.x([_.XC("mouseleave"),_.S("design:type",Function),_.S("design:paramtypes",[MouseEvent]),_.S("design:returntype")],Pa.prototype,"onMouseLeave",null);
_.x([_.Ye({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Pa);
_.y(Pa,"ytd-mini-guide-entry-renderer",function(){if(n_i!==void 0)return n_i;var m=document.createElement("template");_.b(m,'\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" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computedHref]]" data="[[computedEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-selected="[[isActive]]" on-click="onTap" on-down="onDown" on-up="onUp">\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="0" 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<span hidden="[[!allyShowMenuOnTap]]" class="style-scope ytd-mini-guide-entry-renderer">\n  <button type="button" id="ally-menu-button" class="ally-menu-button style-scope ytd-mini-guide-entry-renderer" aria-label="[[computeAriaLabelTitle(data.formattedTitle)]]" aria-haspopup="true" aria-expanded="false" on-click="onAllyMenuButtonClick"></button>\n</span>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return n_i=m},{mode:_.Zh("kevlar_poly_si_batch_j063")?1:2});var bXP;var yE=function(){var m=_.d.apply(this,arguments)||this;m.allVideosCount=0;m.noLabels=_.F("kevlar_mini_guide_no_labels");m.frostedGlass=_.F("web_frosted_glass");return m};
_.n(yE,_.d);_.w=yE.prototype;_.w.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.w.onMouseEnter=function(){_.F("web_guide_hover_expansion")&&_.PH(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.w.visibleChanged=function(){if(this.visible&&!this.data){var m=_.xS().resolve(_.fn(_.hS));m&&m.setGuideData(this.hostElement);_.yw(_.l1(),this.miniGuideVe);(m=_.gU())&&this.miniGuideVe&&_.Qx(m,this.miniGuideVe)}};
_.w.dataChanged=function(){var m=_.F("kevlar_guide_menu_on_hover")&&_.F("kevlar_modern_mini_guide"),G=_.F("kevlar_guide_menu_on_click")&&_.F("kevlar_modern_mini_guide"),K;var W=(K=this.data)==null?void 0:K.items;K=this.allVideosCount;var L=[];m=m?0:G?1:void 0;G=m!==void 0;if(W){for(var A=[],O=_.g(W),c=O.next();!c.done;c=O.next())if(c=c.value,c.guideSubscriptionsSectionRenderer){var u=void 0;A=((u=c.guideSubscriptionsSectionRenderer)==null?void 0:u.items)||[]}W=_.g(W);for(O=W.next();!O.done;O=W.next())if(O=
O.value,c=void 0,(c=O.guideSectionRenderer)==null?0:c.items)for(c=void 0,O=_.g((c=O.guideSectionRenderer)==null?void 0:c.items),c=O.next();!c.done;c=O.next()){c=c.value;var h=void 0,J=void 0;u=c.guideEntryRenderer||_.Q((h=c)==null?void 0:(J=h.guideCollapsibleSectionEntryRenderer)==null?void 0:J.headerEntry,P5q);h=[];J=[];var N=void 0;if(((N=u)==null?void 0:N.targetId)==="subscriptions-guide-item")h=A;else{var D=N=void 0;if((N=c)==null?0:(D=N.guideCollapsibleSectionEntryRenderer)==null?0:D.sectionItems)J=
h=c.guideCollapsibleSectionEntryRenderer.sectionItems}fbO(L,u,G?h:[],m);if(J.length>0)for(c=_.g(J),u=c.next();!u.done;u=c.next())u=u.value,J=_.Q(u,EFG),h=void 0,J=J&&(J.alwaysShow||K)?_.Q((h=J)==null?void 0:h.entryRenderer,P5q):_.Q(u,P5q),fbO(L,J,[])}}this.miniGuideItems=L};
_.w.activeEndpointChanged=function(){for(var m=this.items.children,G=0;G<m.length;G++)m[G].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.w.registerWithViewTransitionManager=function(){var m=this;_.rC(_.Fu,function(){var G=_.xS().resolve(_.fn(_.TE));if(G&&G.isAnyTransitionEnabled){var K={};G.viewTransitionCoordinator.registerElement(m.hostElement,(K.slide="mini-guide-page-transition",K))}})};
yE.prototype.activeEndpointChanged=yE.prototype.activeEndpointChanged;yE.prototype.dataChanged=yE.prototype.dataChanged;yE.prototype.visibleChanged=yE.prototype.visibleChanged;yE.prototype.onMouseEnter=yE.prototype.onMouseEnter;_.x([_.q(_.OW),_.S("design:type",Object)],yE.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yE.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],yE.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.x([_.UM("#items"),_.S("design:type",Object)],yE.prototype,"items",void 0);_.x([_.V(),_.S("design:type",Object)],yE.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Boolean)],yE.prototype,"visible",void 0);_.x([_.V(),_.S("design:type",Object)],yE.prototype,"miniGuideItems",void 0);_.x([_.V({selector:_.vjd}),_.S("design:type",Object)],yE.prototype,"allVideosCount",void 0);_.x([_.V({value:_.dq(283834)}),_.S("design:type",_.Aj)],yE.prototype,"miniGuideVe",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yE.prototype,"noLabels",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],yE.prototype,"frostedGlass",void 0);_.x([_.XC("mouseenter"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yE.prototype,"onMouseEnter",null);_.x([_.Mg("visible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yE.prototype,"visibleChanged",null);
_.x([_.Mg("data","allVideosCount"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yE.prototype,"dataChanged",null);_.x([_.Mg("activeEndpoint"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yE.prototype,"activeEndpointChanged",null);_.x([_.Ye({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],yE);
_.y(yE,"ytd-mini-guide-renderer",function(){if(bXP===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);bXP=m}m=bXP;return m},{mode:1});var v_6;var $1s=/^[\x00-\x7F]+$/,e6=function(){return _.d.apply(this,arguments)||this};
_.n(e6,_.d);_.e_.Object.defineProperties(e6.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var m,G=_.bw((m=this.data)==null?void 0:m.handle);if(G)return _.nG("@"+G)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var m=_.bw(this.displayHandle),G,K=_.bw((G=this.data)==null?void 0:G.handleUrl);if(m&&K)return _.nG(K+m)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var m=_.bw(this.displayHandle);if(m&&!$1s.test(m)){var G;return(G=this.data)==null?void 0:G.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var m=_.bw(this.displayHandleUrl),G,K=_.bw((G=this.data)==null?void 0:G.urlInfoText);if(m&&K)return _.nG(K+" "+m)}}});
_.x([_.V(),_.S("design:type",Object)],e6.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],e6.prototype,"displayHandle",null);_.x([_.E("displayHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],e6.prototype,"displayHandleUrl",null);_.x([_.E("displayHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],e6.prototype,"warningText",null);
_.x([_.E("displayHandleUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],e6.prototype,"urlInfoTextWithUrl",null);_.x([_.Ye({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],e6);
_.y(e6,"ytd-handles-claiming-confirm-dialog-content",function(){if(v_6!==void 0)return v_6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return v_6=m},{mode:1});var sI6;var f7=function(){var m=_.d.apply(this,arguments)||this;m.okButtonOverride={style:"mono",type:"outline",size:"M"};return m};
_.n(f7,_.d);f7.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
f7.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],f7.prototype,"okButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],f7.prototype,"data",void 0);_.x([_.Ye({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],f7);
_.y(f7,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(sI6!==void 0)return sI6;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return sI6=m},{mode:1});var q0G;var E_W=/^[\x00-\x7F]+$/,xa=function(){var m=_.d.apply(this,arguments)||this;m.isLoading=!1;return m};
_.n(xa,_.d);xa.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var m;this.selectedHandle=(m=this.handleInput)==null?void 0:m.value;this.onSelectedHandleChanged(this.selectedHandle);_.PH(this.hostElement,"yt-refit-popups-action")}};
_.e_.Object.defineProperties(xa.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var m;return(m=this.data)==null?void 0:m.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nG("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nG(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!E_W.test(this.selectedHandle)){var m;return(m=this.data)==null?void 0:m.warningText}}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],xa.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xa.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],xa.prototype,"selectedHandle",void 0);_.x([_.V(),_.S("design:type",Object)],xa.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Function)],xa.prototype,"onSelectedHandleChanged",void 0);_.x([_.UM("#channel-handle-input"),_.S("design:type",Object)],xa.prototype,"handleInput",void 0);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],xa.prototype,"handleUrlPrefix",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],xa.prototype,"displayHandle",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],xa.prototype,"displayHandleUrl",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],xa.prototype,"warningText",null);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.x([_.Ye({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],xa);
_.y(xa,"ytd-handles-claiming-edit-dialog-content",function(){if(q0G!==void 0)return q0G;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return q0G=m},{mode:1});var HX5;var XU=function(){var m=_.d.apply(this,arguments)||this;m.actionButtonOverride={style:"mono",type:"filled",size:"M"};m.cancelButtonOverride={style:"mono",type:"text",size:"M"};m.selectButtonDisabled=!1;m.isLoading=!1;m.hasSelectedHandleEventListener=!1;m.selectedHandleChanged=function(G){m.selectedHandle=G};
return m};
_.n(XU,_.d);_.w=XU.prototype;_.w.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.w.onDataChanged=function(){var m,G;this.selectedHandle=(G=_.Q((m=this.data)==null?void 0:m.inputField,B0i))==null?void 0:G.handle};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onCancel=function(){this.selectedHandle="";_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onSelectHandle=function(){var m=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(K,W){if(W.newHandleUpdateStatus!==void 0&&W.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&W.newHandleUpdateStatus.errorMessage)_.QH(m.hostElement,_.bw(W.newHandleUpdateStatus.errorMessage)),
m.isLoading=!1;else{var L;if((L=m.data)==null?0:L.onChannelUpdateSuccess){K=m.data.onChannelUpdateSuccess;var A,O;if(W=(A=_.Q(K,_.BM))==null?void 0:(O=A.popup)==null?void 0:O.handlesClaimingConfirmDialogRenderer)W.handle=_.nG(m.selectedHandle);m.ytComponentBehavior.resolveCommand(K);_.dU(m.hostElement,"yt-close-popup-action",[m.is])}else m.isLoading=!1}},
onServerError:function(){var K;m.content&&((K=m.content)==null?0:K.handleInput)&&m.content.handleInput.validate();m.isLoading=!1;_.QH(m.hostElement,_.zq("TRY_AGAIN_LATER"))}}}))}};
_.w.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
XU.prototype.onDataChanged=XU.prototype.onDataChanged;XU.prototype.onSelectedHandleChanged=XU.prototype.onSelectedHandleChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],XU.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"actionButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"cancelButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",String)],XU.prototype,"selectedHandle",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"selectButtonDisabled",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"hasSelectedHandleEventListener",void 0);_.x([_.V(),_.S("design:type",Object)],XU.prototype,"handleInput",void 0);
_.x([_.Sb("selectedHandle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XU.prototype,"onSelectedHandleChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XU.prototype,"onDataChanged",null);_.x([_.UM("ytd-handles-claiming-edit-dialog-content"),_.S("design:type",Object)],XU.prototype,"content",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.Ye({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],XU);
_.y(XU,"ytd-handles-claiming-edit-dialog-renderer",function(){if(HX5!==void 0)return HX5;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return HX5=m},{mode:1});var IUO;var S6=function(){return _.d.apply(this,arguments)||this};
_.n(S6,_.d);_.e_.Object.defineProperties(S6.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null?0:m.handle){var G;return _.nG("@"+_.bw((G=this.data)==null?void 0:G.handle))}}}});
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],S6.prototype,"formattedHandle",null);_.x([_.V(),_.S("design:type",Object)],S6.prototype,"data",void 0);_.x([_.Ye({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],S6);
_.y(S6,"ytd-handles-claiming-radio-option-renderer",function(){if(IUO!==void 0)return IUO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IUO=m},{mode:1});var jIi;var kCq=/^[\x00-\x7F]+$/,RV=function(){var m=_.d.apply(this,arguments)||this;m.initialRadioIndex="-1";m.isLoading=!1;m.maybeSubmitFeedback=function(){m.feedbackSurveyRenderer.submitSurvey()};
return m};
_.n(RV,_.d);RV.prototype.updateSelectedHandleIndexFromBinding=function(m){this.selectedRadioIndex=+m.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(m)};
RV.prototype.selectedHandleChanged=function(m){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var G;this.selectedHandle=(G=this.handleInput)==null?void 0:G.value;this.onSelectedHandleChanged(m)}};
_.e_.Object.defineProperties(RV.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var m;return this.ytRendererBehavior.getSimpleString((m=this.data)==null?void 0:m.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.nG("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.nG(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!kCq.test(this.selectedHandle)){var m;return(m=this.data)==null?void 0:m.warningText}}}});
_.x([_.V(),_.S("design:type",Object)],RV.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],RV.prototype,"initialRadioIndex",void 0);_.x([_.V(),_.S("design:type",Number)],RV.prototype,"selectedRadioIndex",void 0);_.x([_.V(),_.S("design:type",String)],RV.prototype,"selectedHandle",void 0);_.x([_.V(),_.S("design:type",Object)],RV.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Function)],RV.prototype,"onSelectedHandleChanged",void 0);
_.x([_.V(),_.S("design:type",Function)],RV.prototype,"onSelectedRadioIndexChanged",void 0);_.x([_.UM("#channel-handle-input"),_.S("design:type",Object)],RV.prototype,"handleInput",void 0);_.x([_.UM("ytd-feedback-survey-renderer"),_.S("design:type",Object)],RV.prototype,"feedbackSurveyRenderer",void 0);_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],RV.prototype,"radioButtonLength",null);
_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],RV.prototype,"handleUrlPrefix",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],RV.prototype,"displayHandle",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],RV.prototype,"displayHandleUrl",null);_.x([_.E("selectedHandle"),_.S("design:type",Object),_.S("design:paramtypes",[])],RV.prototype,"warningText",null);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.x([_.Ye({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],RV);
_.y(RV,"ytd-handles-claiming-select-dialog-content",function(){if(jIi!==void 0)return jIi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jIi=m},{mode:1});var CbP;var UN=function(){var m=_.d.apply(this,arguments)||this;m.actionButtonOverride={style:"mono",type:"filled",size:"M"};m.cancelButtonOverride={style:"mono",type:"text",size:"M"};m.initialRadioIndex="-1";m.selectButtonDisabled=!1;m.isLoading=!1;m.selectedRadioIndexChanged=function(G){m.selectedRadioIndex=Number(G.detail.value)};
m.selectedHandleChanged=function(G){m.selectedHandle=G.detail.value};
return m};
_.n(UN,_.d);_.w=UN.prototype;_.w.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.w.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.w.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.PH(this.hostElement,"yt-refit-popups-action")};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onSelectHandle=function(){var m=this;if(this.selectedHandle!==void 0){var G;((G=this.data)==null?void 0:G.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(K,W){if(W.newHandleUpdateStatus!==void 0&&W.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&W.newHandleUpdateStatus.errorMessage)_.QH(m.hostElement,_.bw(W.newHandleUpdateStatus.errorMessage)),
m.isLoading=!1;else{var L;if((L=m.data)==null?0:L.onChannelUpdateSuccess){K=m.data.onChannelUpdateSuccess;W=_.Q(K,_.BM);var A;if(W==null?0:(A=W.popup)==null?0:A.handlesClaimingConfirmDialogRenderer)W.popup.handlesClaimingConfirmDialogRenderer.handle=_.nG(m.selectedHandle);m.ytComponentBehavior.resolveCommand(K);_.dU(m.hostElement,"yt-close-popup-action",[m.is])}else m.isLoading=!1}},
onServerError:function(){if(m.selectedRadioIndex===m.radioButtonLength){var K;m.content&&((K=m.content)==null?0:K.handleInput)&&m.content.handleInput.validate()}m.isLoading=!1;_.QH(m.hostElement,_.zq("TRY_AGAIN_LATER"))}}}))}};
_.w.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var m,G;this.selectedHandle=(m=this.content)==null?void 0:(G=m.handleInput)==null?void 0:G.value}else this.selectedRadioIndex>=0&&((m=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(m==null?void 0:m.handle):this.selectedHandle=void 0)};
_.w.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.w.getRadioItem=function(m){if(this.radioButtonLength>m&&m>=0)return _.Q(this.data.radioButton[m],EUD)};
_.e_.Object.defineProperties(UN.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var m;return(((m=this.data)==null?void 0:m.radioButton)||[]).length}}});
UN.prototype.onSelectedHandleChanged=UN.prototype.onSelectedHandleChanged;UN.prototype.onSelectedHandleIndexChanged=UN.prototype.onSelectedHandleIndexChanged;UN.prototype.onDataChanged=UN.prototype.onDataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],UN.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],UN.prototype,"actionButtonOverride",void 0);_.x([_.V(),_.S("design:type",Object)],UN.prototype,"cancelButtonOverride",void 0);
_.x([_.V(),_.S("design:type",Object)],UN.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],UN.prototype,"initialRadioIndex",void 0);_.x([_.V(),_.S("design:type",Number)],UN.prototype,"selectedRadioIndex",void 0);_.x([_.V(),_.S("design:type",String)],UN.prototype,"selectedHandle",void 0);_.x([_.V(),_.S("design:type",Object)],UN.prototype,"selectButtonDisabled",void 0);_.x([_.V(),_.S("design:type",Object)],UN.prototype,"isLoading",void 0);
_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],UN.prototype,"radioButtonLength",null);_.x([_.UM("ytd-handles-claiming-select-dialog-content"),_.S("design:type",Object)],UN.prototype,"content",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UN.prototype,"onDataChanged",null);
_.x([_.Sb("selectedRadioIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UN.prototype,"onSelectedHandleIndexChanged",null);_.x([_.Sb("selectedHandle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],UN.prototype,"onSelectedHandleChanged",null);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.Ye({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],UN);
_.y(UN,"ytd-handles-claiming-select-dialog-renderer",function(){if(CbP!==void 0)return CbP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return CbP=m},{mode:1});var V$i;var ZXE;var za=function(){return _.d.apply(this,arguments)||this};
_.n(za,_.d);za.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],za.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],za.prototype,"data",void 0);_.x([_.Ye({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],za);
_.y(za,"ytd-hotkey-dialog-section-option-renderer",function(){if(ZXE!==void 0)return ZXE;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ZXE=m},{mode:1});var d15;var ly=function(){return _.d.apply(this,arguments)||this};
_.n(ly,_.d);ly.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ly.prototype,"data",void 0);_.x([_.Ye({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],ly);
_.y(ly,"ytd-hotkey-dialog-section-renderer",function(){if(d15!==void 0)return d15;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return d15=m},{mode:1});var Ba=function(){return _.d.apply(this,arguments)||this};
_.n(Ba,_.d);Ba.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ba.prototype,"data",void 0);_.x([_.Ye({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Ba);
_.y(Ba,"ytd-hotkey-dialog-content",function(){if(V$i!==void 0)return V$i;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return V$i=m},{mode:1});var PbW;var Mw=function(){return _.d.apply(this,arguments)||this};
_.n(Mw,_.d);Mw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var m=document.querySelector("ytd-hotkey-dialog-content #scrollable");m&&(m.dialogElement=this.hostElement.parentElement)};
Mw.prototype.onCloseTap=function(){_.dU(this.hostElement,"yt-close-popup-action")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Mw.prototype,"data",void 0);_.x([_.Ye({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Mw);
_.y(Mw,"ytd-hotkey-dialog-renderer",function(){if(PbW!==void 0)return PbW;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return PbW=m},{mode:1});var yPi;var Ta=function(){return _.d.apply(this,arguments)||this};
_.n(Ta,_.d);Ta.prototype.onYtServiceRequestError=function(){if(this.blocked){var m;var G=(m=this.data)==null?void 0:m.defaultServiceEndpoint}else{var K;G=(K=this.data)==null?void 0:K.toggledServiceEndpoint}var W;(G=(W=_.Q(G,_.S4F))==null?void 0:W.onFailureAction)&&this.ytComponentBehavior.resolveCommand(G);this.updateBlockState(!this.blocked)};
Ta.prototype.onYtToggleButton=function(m){this.updateBlockState(m.detail.toggled)};
Ta.prototype.updateBlockState=function(m){if(m!==this.blocked){var G=this.blockedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.Bp("blockStateEntity",G,{key:G,blocked:m}));this.set("data.isToggled",m)}};
_.e_.Object.defineProperties(Ta.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)}}});
Ta.prototype.onYtToggleButton=Ta.prototype.onYtToggleButton;Ta.prototype.onYtServiceRequestError=Ta.prototype.onYtServiceRequestError;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Ta.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ta.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Ta.prototype,"blockedEntityKey",void 0);
_.x([_.V({selectorArgs:["blockedEntityKey"],selector:function(m,G){return _.yx(m.entities,"blockStateEntity",G)}}),
_.S("design:type",Object)],Ta.prototype,"blockStateEntity",void 0);_.x([_.E("data","blockStateEntity"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Ta.prototype,"blocked",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ta.prototype,"onYtServiceRequestError",null);
_.x([_.XC("yt-toggle-button"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Ta.prototype,"onYtToggleButton",null);_.x([_.Ye({is:"ytd-block-button",disableElementRegistration:!0})],Ta);
_.y(Ta,"ytd-block-button",function(){if(yPi!==void 0)return yPi;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return yPi=m},
{mode:1});var eE6;var fUG;var mG=function(){return _.d.apply(this,arguments)||this};
_.n(mG,_.d);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],mG.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],mG.prototype,"data",void 0);_.x([_.Ye({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],mG);
_.y(mG,"ytd-kids-blocklist-picker-item-renderer",function(){if(fUG!==void 0)return fUG;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return fUG=m},{mode:1});var iU=function(){return _.d.apply(this,arguments)||this};
_.n(iU,_.d);iU.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],iU.prototype,"data",void 0);_.x([_.Ye({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],iU);
_.y(iU,"ytd-kids-blocklist-picker-content",function(){if(eE6!==void 0)return eE6;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return eE6=
m},{mode:2});var x1W;var G0=function(){var m=_.d.apply(this,arguments)||this;m.hasAnyRequestSucceeded=!1;m.hasAnyRequestFailed=!1;m.numPendingRequests=0;return m};
_.n(G0,_.d);_.w=G0.prototype;_.w.attached=function(){this.hostElement.setAttribute("dialog","")};
_.w.onDoneButtonTap=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.w.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.w.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.w.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.w.onPopupClosed=function(m){var G,K;if(((G=m.detail)==null?void 0:(K=G.popup)==null?void 0:K.is)==="tp-yt-paper-dialog"){var W;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((W=this.data)==null?0:W.successfulToastActionMessage)&&(m=_.q_(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(m));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
G0.prototype.onPopupClosed=G0.prototype.onPopupClosed;G0.prototype.onYtServiceRequestError=G0.prototype.onYtServiceRequestError;G0.prototype.onYtServiceRequestCompleted=G0.prototype.onYtServiceRequestCompleted;G0.prototype.onYtServiceRequestSent=G0.prototype.onYtServiceRequestSent;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],G0.prototype,"data",void 0);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G0.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G0.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],G0.prototype,"onYtServiceRequestError",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],G0.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],G0);
_.y(G0,"ytd-kids-blocklist-picker-renderer",function(){if(x1W!==void 0)return x1W;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return x1W=m},{mode:1});var XmP;var S0O;var Kv=function(){return _.d.apply(this,arguments)||this};
_.n(Kv,_.d);Kv.prototype.setTip=function(m){var G=this;this.data&&(this.tip=TVE(BVW.getInstance(),m,this.data),_.Pv(this,function(){_.Zw(G.hostElement,"yt-refit")}))};
Kv.prototype.clearTip=function(){this.tip=void 0};
Kv.prototype.computeHidden=function(m){return!m};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Kv.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Kv.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.S("design:type",Boolean)],Kv.prototype,"hidden",void 0);_.x([_.V(),_.S("design:type",Object)],Kv.prototype,"tip",void 0);_.x([_.Ye({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Kv);
_.y(Kv,"ytd-menu-popup-tip-renderer",function(){if(S0O!==void 0)return S0O;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);
return S0O=m},{mode:1});var RED;var Ws=function(){var m=_.d.apply(this,arguments)||this;m.useIcons=!1;m.role="menuitem";m.systemIcons=_.F("kevlar_system_icons");return m};
_.n(Ws,_.d);_.w=Ws.prototype;_.w.onFocus=function(){var m;(m=_.VL(this.hostElement).querySelector("tp-yt-paper-item"))==null||m.focus()};
_.w.onTap=function(){var m=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(m&&_.Q(m,_.xu))this.componentBehavior.resolveCommand(m),this.updateToggledStateInEntity();else if(m){this.componentBehavior.resolveCommand(m)||_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}});var G;((G=_.Q(m,_.SD))==null?void 0:G.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.w.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.w.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.w.updateToggledStateInEntity=function(){var m=this.data.toggleMenuServiceItemEntityKey,G=!this.data.isToggled;m&&this.ytdReduxBehavior.dispatch(_.Bp("toggleMenuServiceItemEntity",m,{key:m,isToggled:G}))};
_.w.computeIcon=function(m,G,K){return(m=m?K:G)&&m.iconType?_.ew(m.iconType):""};
_.w.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.w.isIconActive=function(m){return!_.F("toggle_menu_active_icon_killswitch")&&m};
_.e_.Object.defineProperties(Ws.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?0:m.isToggled)?(G=this.data)==null?void 0:G.toggledText:(K=this.data)==null?void 0:K.defaultText}}});
Ws.prototype.toggledStateEntityChanged=Ws.prototype.toggledStateEntityChanged;Ws.prototype.onYtServiceRequestCompleted=Ws.prototype.onYtServiceRequestCompleted;Ws.prototype.onTap=Ws.prototype.onTap;Ws.prototype.onFocus=Ws.prototype.onFocus;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Ws.prototype,"componentBehavior",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],Ws.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ws.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ws.prototype,"useIcons",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ws.prototype,"role",void 0);_.x([_.V({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.S("design:type",String)],Ws.prototype,"icon",void 0);
_.x([_.V({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.im.toggleMenuServiceItemEntitySelector}),_.S("design:type",Object)],Ws.prototype,"toggleMenuServiceItemEntity",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Ws.prototype,"systemIcons",void 0);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ws.prototype,"onFocus",null);
_.x([_.E("data.isToggled"),_.S("design:type",Object),_.S("design:paramtypes",[])],Ws.prototype,"toggleButtonText",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ws.prototype,"onTap",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ws.prototype,"onYtServiceRequestCompleted",null);
_.x([_.Sb("toggleMenuServiceItemEntity.isToggled","data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ws.prototype,"toggledStateEntityChanged",null);_.x([_.Ye({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Ws);
_.y(Ws,"ytd-toggle-menu-service-item-renderer",function(){if(RED!==void 0)return RED;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return RED=m},{mode:1});var U16;var Lv=function(){return _.d.apply(this,arguments)||this};
_.n(Lv,_.d);Lv.prototype.onFocus=function(){var m;(m=_.VL(this.hostElement).querySelector("tp-yt-paper-item"))==null||m.focus()};
_.e_.Object.defineProperties(Lv.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.MI(this.data.iconUrl)}}});
Lv.prototype.onFocus=Lv.prototype.onFocus;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Lv.prototype,"rendererBehavior",void 0);_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],Lv.prototype,"ytEndpointBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Lv.prototype,"data",void 0);_.x([_.XC("focus"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Lv.prototype,"onFocus",null);
_.x([_.E("data.iconUrl"),_.S("design:type",Object),_.S("design:paramtypes",[])],Lv.prototype,"imageSource",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Lv);
_.y(Lv,"ytd-menu-custom-icon-item-renderer",function(){if(U16!==void 0)return U16;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return U16=m},{mode:2});_.sh(_.Nb,"yt-list-item-view-model",{props:{data:_.Dd,isMenuItem:_.Dd,isCompact:_.Dd,onTap:_.nN,trailingAccessory:_.nN,hideSelectionTextChevron:_.Dd,disabled:_.Dd,inPopup:_.Dd,disableHorizontalPadding:_.Dd,isOverlay:_.Dd,isToggled:_.Dd,ariaLabel:_.Dd,ariaPressed:_.Dd,shouldNotFillIcon:_.Dd}});var Am=function(){var m=_.d.apply(this,arguments)||this;m.disableBackdropFilter=_.F("web_disable_backdrop_filter");return m};
_.n(Am,_.d);_.w=Am.prototype;
_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.w.computeAriaLabel=function(m){return m};
_.w.onPopupOpened=function(){this.items.selected=0;for(var m=_.g(_.VL(this.items).children),G=m.next();!G.done;G=m.next())G.value.popupPositionTarget=this.positionTarget;if(m=this.popupTip||void 0)m.setTip(this.source||""),this.source=void 0;this.veData&&(m=_.gU())&&_.a7(m,[this.veData])};
_.w.onPopupClosed=function(){var m=this.popupTip||void 0;m&&m.clearTip()};
_.w.onIronActivate=function(m){this.shouldPersist(m)||_.dU(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(m=_.gU())&&_.nW(m,this.veData)};
_.w.shouldPersist=function(m){var G,K;if(((G=m.detail)==null?void 0:G.selected)===void 0||(K=this.data)==null||!K.items)return!1;var W,L;return!((L=(W=this.data.items[m.detail.selected])==null?void 0:W.toggleMenuServiceItemRenderer)==null||!L.persistentOnMenuPopup)};
_.w.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(m){return m.menuNavigationItemRenderer?!!m.menuNavigationItemRenderer.icon:m.menuServiceItemRenderer?!!m.menuServiceItemRenderer.icon:m.menuConditionalServiceItemRenderer?!!m.menuConditionalServiceItemRenderer.icon:m.menuConditionalNavigationItemRenderer?!!m.menuConditionalNavigationItemRenderer.icon:m.toggleMenuServiceItemRenderer?!!m.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Am.prototype.onPopupClosed=Am.prototype.onPopupClosed;Am.prototype.onPopupOpened=Am.prototype.onPopupOpened;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],Am.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Am.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Am.prototype,"veData",void 0);_.x([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.S("design:type",String)],Am.prototype,"ariaLabel",void 0);_.x([_.V({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],Am.prototype,"useIcons",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Am.prototype,"disableBackdropFilter",void 0);_.x([_.UM("#items"),_.S("design:type",Object)],Am.prototype,"items",void 0);_.x([_.UM("ytd-menu-popup-tip-renderer"),_.S("design:type",Object)],Am.prototype,"popupTip",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Am.prototype,"onPopupOpened",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Am.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Am);
_.y(Am,"ytd-menu-popup-renderer",function(){if(XmP!==void 0)return XmP;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return XmP=m},{mode:1});var zEG;var lUz=_.P(function(m){m=_.ql(m,{icon:void 0});var G=m.data;m=m.icon;var K=function(){return G().iconBadgeText},W={},L=_.VO("yt-spec-icon-badge-shape",function(){a:switch(G().iconBadgeType){case "notification":var A="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":A="yt-spec-icon-badge-shape--type-cart";break a;default:A=""}return A},function(){a:switch(G().iconBadgeStyle){case "overlay":var A="yt-spec-icon-badge-shape--style-overlay";
break a;default:A=""}return A},(W["yt-spec-icon-badge-shape--text-size-small"]=function(){var A=K();
return!!((A==null?0:A.length)&&A.length>2)},W));
return _.r("yt-icon-badge-shape",null,_.r(_.p,{cond:m,then:function(A){return _.r("div",{class:L},_.r("div",{class:"yt-spec-icon-badge-shape__icon"},_.r(_.fN,{icon:A})),_.r(_.p,{cond:K,then:function(O){return _.r("div",{class:"yt-spec-icon-badge-shape__badge"},O)}}))}}))},"fl");
lUz.idomCompat=!0;_.sh(lUz,"yt-icon-badge-shape",{props:{data:_.Dd,icon:_.Dd}});var wm=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};m.unseenCount=0;m.isOverlay=!1;return m};
_.n(wm,_.d);_.w=wm.prototype;_.w.attached=function(){var m=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(G){m.onServiceWorkerMessage(G)})};
_.w.onDataChanged=function(){this.isAttached&&!this.JSC$22632_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$22632_lastData=this.data};
_.w.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.w.computeIcon=function(){var m,G;return(m=this.data)==null?void 0:(G=m.icon)==null?void 0:G.iconType};
_.w.onServiceWorkerMessage=function(m){m.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.w.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Q(this.data.updateUnseenCountEndpoint,_.SD)&&_.Q(this.data.updateUnseenCountEndpoint,_.SD).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.w.handleUpdateNotificationsUnseenCountAction=function(m){var G=this;m=_.Q(m,rG5);m!=null&&m.unseenCount&&m.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(m.unseenCount),_.Fu.addLowPriorityJob(function(){G.data.updateUnseenCountEndpoint&&G.ytComponentBehavior.resolveCommand(G.data.updateUnseenCountEndpoint)},m.timeoutMs))};
_.w.onClick=function(){_.Zw(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var m=_.PH(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),G=this.data.menuRequest;m&&m.length===1&&m[0]?_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):G&&this.ytComponentBehavior.resolveCommand(G)};
_.w.handleTopbarMenuClosedAction=function(m){m==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.w.toggleIconState=function(m){this.iconButton&&(this.iconButton.pressed=m)};
_.w.sendUnseenCountRequest=function(m){var G=this;_.rC(_.Fu,function(){G.ytComponentBehavior.resolveCommand(m)})};
_.w.updateCountUI=function(m){this.set("unseenCount",m<9?m:"9+")};
_.e_.Object.defineProperties(wm.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
wm.prototype.handleUpdateNotificationsUnseenCountAction=wm.prototype.handleUpdateNotificationsUnseenCountAction;wm.prototype.onDataChanged=wm.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wm.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.vi),_.S("design:type",Object)],wm.prototype,"ytdOpenPopupBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],wm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wm.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],wm.prototype,"unseenCount",void 0);_.x([_.V(),_.S("design:type",Object)],wm.prototype,"isOverlay",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],wm.prototype,"showTooltips",void 0);_.x([_.UM("yt-icon-button"),_.S("design:type",Object)],wm.prototype,"iconButton",void 0);
_.x([_.E("unseenCount"),_.S("design:type",Object),_.S("design:paramtypes",[])],wm.prototype,"showNotificationCount",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],wm.prototype,"onDataChanged",null);_.x([_.XC("yt-update-notifications-unseen-count-action"),_.S("design:type",Function),_.S("design:paramtypes",[Object]),_.S("design:returntype")],wm.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.x([_.Ye({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],wm);
_.y(wm,"ytd-notification-topbar-button-renderer",function(){if(zEG!==void 0)return zEG;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return zEG=m},{mode:2});var BhE;var gm=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return m};
_.n(gm,_.d);gm.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}}}}}};
gm.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
gm.prototype.onDarkModeToggled=function(m){this.dark=m};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],gm.prototype,"data",void 0);_.x([_.V({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],gm.prototype,"dark",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],gm);
_.y(gm,"yt-pdg-buy-flow-header-renderer",function(){if(BhE!==void 0)return BhE;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return BhE=m},{mode:1});var M$u;var ThD;var Os=function(){var m=_.d.apply(this,arguments)||this;m.immediateValue=0;m.isDarkTheme=!1;m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(Os,_.d);_.w=Os.prototype;_.w.created=function(){_.YY.requestAvailability()};
_.w.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.w.dataChanged=function(){var m=_.VL(this.hostElement).querySelector("#color-slider");m.immediateValue&&this.updateSliderKnobAndGradientStyles(m.immediateValue);this.data.notches[0].knobColorArgb&&_.eb(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.ce(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.E8("HTML_DIR")==="rtl"&&_.VL(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.w.onSliderImmediateChange=function(){var m=_.VL(this.hostElement).querySelector("#color-slider");m.dragging&&(m.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(m.immediateValue),this.updateSliderKnobAndGradientStyles(m.immediateValue)),this.updateSliderAria())};
_.w.onSliderChange=function(){var m=_.VL(this.hostElement).querySelector("#color-slider");m.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(m.immediateValue),this.updateSliderKnobAndGradientStyles(m.immediateValue));this.updateSliderAria()};
_.w.updateSliderAria=function(){var m=_.VL(this.hostElement).querySelector("#color-slider"),G=_.VL(this.hostElement).querySelector("#color-slider");G=_.bw(this.data.notches[G.immediateValue].tierValue);_.Ddv()&&_.Zw(this.hostElement,"iron-announce",{text:G});m.setAttribute("aria-valuetext",G)};
_.w.updateSuperThanksSelectedTierEntity=function(m){if(m!==this.immediateValue){var G,K,W=this==null?void 0:(G=this.data)==null?void 0:(K=G.superThanksSelectedTierEntity)==null?void 0:K.key;W&&W.length>0&&this.ytdReduxBehavior.dispatch(_.Bp("superThanksSelectedTierEntity",W,{key:W,index:m}))}};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.updateSliderKnobAndGradientStyles=function(m){this.immediateValue=m;m=this.data.notches[m];if(m==null?0:m.knobColorArgb)var G={"--ytd-pdg-color-slider-knob-color":_.ce(m.knobColorArgb)};(m==null?0:m.linearGradientCssStyle)&&G!==null&&(G=Object.assign({},G,{"--ytd-pdg-color-slider-active-color":m==null?void 0:m.linearGradientCssStyle}));G!==null&&_.eb(this.hostElement,G)};
Os.prototype.onSliderChange=Os.prototype.onSliderChange;Os.prototype.onSliderImmediateChange=Os.prototype.onSliderImmediateChange;Os.prototype.dataChanged=Os.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],Os.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Os.prototype,"immediateValue",void 0);_.x([_.V(),_.S("design:type",Number)],Os.prototype,"maxMarkers",void 0);
_.x([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:N9s}),_.S("design:type",Object)],Os.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Os.prototype,"isDarkTheme",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Os.prototype,"ytdReduxBehavior",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Os.prototype,"dataChanged",null);
_.x([_.XC("immediate-value-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Os.prototype,"onSliderImmediateChange",null);_.x([_.XC("change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Os.prototype,"onSliderChange",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Os);
_.y(Os,"ytd-pdg-color-slider-renderer",function(){if(ThD!==void 0)return ThD;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return ThD=m},{mode:1});var mde;var isN;var cs=null;
_.LD({is:"ytd-comment-input",_template:function(){if(isN!==void 0)return isN;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return isN=m},
behaviors:[_.j4J.YtHostElementBehavior,_.x4,_.cq.YtComponentBehavior,_.$P.YtRendererstamperBehavior,_.vQF.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 _.Jx}},
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",_.xC(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;_.yv();this.focus()},
detached:function(){document.removeEventListener("tap",_.xC(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(m){m=m.detail;m=m.isCustomEmoji?m.shortcuts[0]:m.emojiId;var G=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(G,m);this.maybeUpdateTextDirection_();_.Zw(this.hostElement,"input")},
getInputRange_:function(){var m=_.Bv();if(m){m=m.getBrowserRangeObject();for(var G=m.commonAncestorContainer;G;){if(G===this.getEditableTextArea_())return m;G=G.parentNode}}m=this.getEditableTextArea_();m=_.mU(m,m.childNodes.length);m.select();return m.getBrowserRangeObject()},
insertTextWithEmojis_:function(m,G,K){(G=this.emojiManager.createDocumentFragment(G,!0,!1,K===void 0?!0:K))&&G.childNodes.length!==0&&(m.collapsed||m.deleteContents(),K=G.lastChild,m.insertNode(G),_.kko(K).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var m=_.Bv();if(m){var G=m.JSC$11657_getStartNode(),K=m.JSC$11657_getEndNode();if(xP5(G)&&xP5(K)){var W=m.JSC$11657_getStartOffset(),L;if(_.eI&&G.nodeType===Node.ELEMENT_NODE&&(L=_.N$o(G)))_.mU(L,0).select();else{L=px(G)?G:_.N7(G,px);var A=px(K)?K:_.N7(K,px);if(L||A)if(m.isCollapsed()){if(G.nodeType===Node.TEXT_NODE){m=!0;W===G.length&&(m=!1);if(cs==="end"||cs==="right")m=!1;G=G.parentNode;m=[].concat(_.Bz(G.parentNode.childNodes)).indexOf(G)+(m?0:1);_.mU(G.parentNode,
m).select()}}else L?L.previousSibling&&L.previousSibling.length>0?_.iL(K,m.JSC$11657_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(G=document.createTextNode("\u200b"),L.parentNode.insertBefore(G,L),_.iL(K,m.JSC$11657_getEndOffset(),G,0).select()):A&&(A.nextSibling&&A.nextSibling.length>0?_.iL(G,m.JSC$11657_getStartOffset(),A.nextSibling,1).select():(K=document.createTextNode("\u200b"),A.parentNode.insertBefore(K,A.nextSibling),_.iL(G,m.JSC$11657_getStartOffset(),K,K.length).select()));
cs=null}}else cs=null}else cs=null},
leftKeyPressed_:function(){cs="left"},
rightKeyPressed_:function(){cs="right"},
endKeyPressed_:function(){cs="end"},
maybeDeleteChip_:function(){var m=B15(!0);if(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();_.Tb(K,G,m,m.childNodes.length).select()}},
maybeBackspaceChip_:function(){var m=B15(!1);if(m){var G=_.Bv(),K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();_.Tb(K,G,m,0).select()}},
maybeBackspaceChipWordMode_:function(m){var G=_.Bv();if(G.isCollapsed()){var K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();var W=MIq(K,G,!0);W&&(_.Tb(K,G,W,0).select(),document.execCommand("delete"),m.preventDefault(),m.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(m){var G=_.Bv();if(G.isCollapsed()){var K=G.JSC$11657_getStartNode();G=G.JSC$11657_getStartOffset();var W=MIq(K,G,!1);W&&(_.Tb(K,G,W,W.childNodes.length).select(),document.execCommand("delete"),m.preventDefault(),m.stopImmediatePropagation())}},
onContentClick:function(m){m.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(m){m.defaultPrevented||m.currentTarget.tagName==="YTD-COMMENT-INPUT"&&px(m.target)&&m.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.VL(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.VL(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(m,G){m=Sa6(m,this.emojiManager,G).cloneNode(!0);for(G=m.firstChild;G;)if(G.nodeType!==1)G=G.nextSibling;else switch(G.tagName){case "BR":var K=_.u7();_.bBS(K,G);G=K.nextSibling;break;case "DIV":(K=G.lastChild)&&G.nextSibling&&_.NN(_.u7(),K);G.previousSibling&&(G.previousSibling.nodeType===1||G.previousSibling.nodeType===3&&!G.previousSibling.textContent.endsWith("\n"))&&_.JY(_.u7(),G);K&&K.nodeName==="BR"&&_.mX(K);K=G;G.hasChildNodes()?(G=G.firstChild,
_.v2F(K)):(G=G.nextSibling,_.mX(K));break;default:G=G.nextSibling}return T1u(m)},
setTextAreaValue:function(m){m||(m="");var G=this.getEditableFormattedString_();G.text="";this.getEditableTextArea_().innerText="";typeof m==="string"&&(m={runs:[{text:m}]});G.text=m},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();cs=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var m=this.getEditableTextArea_();m&&(_.mU(m,m.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.E8("HTML_DIR")==="rtl"){var m=this.getEditableTextArea_(),G=this.getTextAreaValue()!==""?"auto":"rtl";m.setAttribute("dir",G)}},
handleInputEvent_:function(){var m=null;if(this.isEmojiButtonDisplayed){var G=this.getInputRange_();G&&(m=this.emojiInput.retrieveTextBeforeRange(G))}this.insertText_(m,!0);this.updateCharCount_();m=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=m.scrollHeight>m.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var m=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:m})},
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(m){this.isEmojiButtonDisplayed&&(m.preventDefault(),m.stopImmediatePropagation(),m=m.clipboardData.getData("text/plain"),this.insertText_(m,!1,!1),_.Zw(this.hostElement,"input"))},
insertText_:function(m,G,K){G=G===void 0?!1:G;K=K===void 0?!0:K;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&m){var W=this.getInputRange_().cloneRange();this.emojiManager&&W&&(G&&this.emojiInput.offsetStartOfRangeBy(W,m.length),this.insertTextWithEmojis_(W,m,K),XXE(this.getEditableTextArea_().lastChild)||(W=this.getInputRange_().cloneRange()),W&&(this.emojiInput.updateSuggestions(W,m),this.updateSuggestionOffset_(W)))}},
getSimpleString:_.bw,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(m){return m?"focused":"not-focused"},
computePlaceholderText_:function(m){return this.getSimpleString(m)},
computeEditableText_:function(m){return this.getSimpleString(m)},
onPrefilledContentDismissed_:function(m){m.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(m,G){m?this.fire("yt-autonav-pause-focus"):G!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(m){var G=this.getEditableTextArea_();[].concat(_.Bz(m.dataTransfer.items)).forEach(function(K){K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(W){G.appendChild(document.createTextNode(W))})});
m.preventDefault()},
preventDefault_:function(m){m.preventDefault()},
onSuggestionInsert_:function(m){this.insertTextWithEmojis_(m.detail.range,m.detail.text)},
onEmojiSuggestionClick_:function(m){this.emojiInput.insertSuggestion(m.detail)},
updateSuggestionOffset_:function(m){if(this.emojiInput&&_.VL(this.emojiInput).querySelector("#dropdown")){var G=this.getEditableTextArea_().getBoundingClientRect().bottom,K=m.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(G-K)+5;G=this.getEditableTextArea_().getBoundingClientRect().left;m=m.getBoundingClientRect().left-G;_.VL(this.emojiInput).querySelector("#dropdown").style.marginLeft=m+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.bs("yt-post"));return this.localStorage}});var Yn=function(){var m=_.d.apply(this,arguments)||this;m.currentCommentOptionIndex=0;m.isEmojiPickerDisplayed=!1;m.emojiManager=_.Jx;m.isUgcEmpty=!1;m.userGeneratedCommentChangedHandler=function(){_.Zw(m.hostElement,"ytd-pdg-user-generated-comment-changed");m.isEmojiYtdCommentInputEnabled&&(m.isUgcEmpty=!m.ytdCommentInputEl.getTextAreaValue())};
m.pasteHandler=function(G){G.preventDefault();G.stopImmediatePropagation();var K;if(G=(K=G.clipboardData)==null?void 0:K.getData("text/plain"))K=document.getSelection().getRangeAt(0),K.collapsed||K.deleteContents(),G=document.createTextNode(G),K.insertNode(G),K.selectNodeContents(G),K.collapse(!1),G=window.getSelection(),G.removeAllRanges(),G.addRange(K)};
m.onDocumentClick=function(G){if(m.isEmojiPickerDisplayed){var K,W,L;!(G.target instanceof Node)||(K=G.composedPath())!=null&&K.includes(m.editableTextEl)||(W=G.composedPath())!=null&&W.includes(m.emojiButtonEl)||(L=G.composedPath())!=null&&L.includes(m.emojiPickerEl)||(m.isEmojiPickerDisplayed=!1)}};
return m};
_.n(Yn,_.d);_.w=Yn.prototype;_.w.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.w.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.w.detached=function(){var m;(m=this.contentEl)==null||m.removeEventListener("input",this.userGeneratedCommentChangedHandler);var G;(G=this.contentEl)==null||G.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.w.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.w.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var m;this.contentEl.textContent=this.rendererBehavior.getSimpleString((m=this.data)==null?void 0:m.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.w.reloadEmojis=function(){this.emojiPickerEl&&_.Q(this.emojiPicker,_.vql)&&this.emojiPickerEl.updateEmojiCategories()};
_.w.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.eb(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.w.handleBackgroundColorStyling=function(){var m;if((m=this.currentCommentOption)==null?0:m.commentBackgroundColorArgb){var G;_.eb(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.ce((G=this.currentCommentOption)==null?void 0:G.commentBackgroundColorArgb)})}else _.eb(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.w.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var m;(m=this.contentEl)==null||m.focus()}};
_.w.onEditButtonClick=function(m){var G=document.getSelection();G&&this.contentEl&&(m.stopPropagation(),m.preventDefault(),G.selectAllChildren(this.contentEl),G.collapseToEnd())};
_.w.onContentDrop=function(m){var G=this;if(m.dataTransfer){m=_.g(m.dataTransfer.items);for(var K=m.next();!K.done;K=m.next())K=K.value,K.kind==="string"&&K.type.match("^text/plain")&&K.getAsString(function(W){var L;(L=G.contentEl)==null||L.appendChild(document.createTextNode(W))})}};
_.w.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.w.getUserGeneratedCommentText=function(){var m,G=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(m=this.contentEl)==null?void 0:m.textContent;return G?G.trim():""};
_.w.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.w.onEmojiSelect=function(m){this.ytdCommentInputEl.onEmojiSelect(m)};
_.e_.Object.defineProperties(Yn.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.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 m;return!((m=this.currentCommentOption)==null||!m.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var m;if(_.Q((m=this.currentCommentOption)==null?void 0:m.chipRenderer,_.BRG)){var G;return _.Q((G=this.currentCommentOption)==null?void 0:G.chipRenderer,_.BRG)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var m,G;return((m=this.data)==null?0:m.commentOptionRenderers)?_.Q((G=this.data)==null?void 0:G.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Ahi):void 0}var K,W;return((K=this.data)==null?0:K.commentOptionRenderers)?_.Q((W=this.data)==null?void 0:W.commentOptionRenderers[this.currentCommentOptionIndex],Ahi):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var m;return this.rendererBehavior.getSimpleString((m=this.data)==null?void 0:m.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var m;return this.rendererBehavior.getSimpleString((m=this.data)==null?void 0:m.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.commentDialog,_.fzF))==null?void 0:G.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.commentDialog,_.fzF))==null?void 0:G.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=_.Q((m=this.data)==null?void 0:m.commentDialog,_.fzF))==null?void 0:G.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(G=_.Q((m=this.data)==null?void 0:m.commentDialog,_.fzF))==null?void 0:G.emojiPicker;if(!_.Q(K,_.vql)||!_.Q(K,_.vql).categories)return!1;m=function(A){return A.emojiPickerCategoryRenderer?A.emojiPickerCategoryRenderer.emojiIds&&A.emojiPickerCategoryRenderer.emojiIds.length>0:A.emojiPickerUpsellCategoryRenderer?A.emojiPickerUpsellCategoryRenderer.emojis&&A.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var W,L;return((W=_.Q(K,_.vql))==null?0:(L=W.categories)==null?0:L.find(m))?!0:!1}}});
Yn.prototype.onEmojiSelect=Yn.prototype.onEmojiSelect;Yn.prototype.dataChanged=Yn.prototype.dataChanged;Yn.prototype.currentCommentOptionChanged=Yn.prototype.currentCommentOptionChanged;_.x([_.q(_.OW),_.S("design:type",Object)],Yn.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Yn.prototype,"rendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Yn.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.UM("#content-dom-if"),_.S("design:type",_.wT)],Yn.prototype,"contentDomIfEl",void 0);_.x([_.UM("#content-no-emojis"),_.S("design:type",HTMLElement)],Yn.prototype,"contentEl",void 0);_.x([_.UM("#container"),_.S("design:type",HTMLElement)],Yn.prototype,"containerEl",void 0);_.x([_.UM("#comment-chip-container"),_.S("design:type",HTMLElement)],Yn.prototype,"paidCommentChipContainerEl",void 0);_.x([_.UM("#text-input"),_.S("design:type",HTMLElement)],Yn.prototype,"editableTextEl",void 0);
_.x([_.UM("#emoji-button"),_.S("design:type",HTMLElement)],Yn.prototype,"emojiButtonEl",void 0);_.x([_.UM("#emoji-picker > yt-emoji-picker-renderer"),_.S("design:type",Object)],Yn.prototype,"emojiPickerEl",void 0);_.x([_.UM("#text-input > ytd-comment-input"),_.S("design:type",Object)],Yn.prototype,"ytdCommentInputEl",void 0);_.x([_.V(),_.S("design:type",Object)],Yn.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Yn.prototype,"currentCommentOptionIndex",void 0);
_.x([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:N9s}),_.S("design:type",Object)],Yn.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.V(),_.S("design:type",Object)],Yn.prototype,"isEmojiPickerDisplayed",void 0);_.x([_.V(),_.S("design:type",Object)],Yn.prototype,"emojiManager",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],Yn.prototype,"isUgcEmpty",void 0);
_.x([_.Sb("currentCommentOption"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yn.prototype,"currentCommentOptionChanged",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Yn.prototype,"dataChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Yn.prototype,"isEmojiYtdCommentInputEnabled",null);
_.x([_.E("data.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"title",null);_.x([_.E("data.authorText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"channelName",null);_.x([_.E("data.commentOptionRenderers","currentCommentOption"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Yn.prototype,"shouldShowPaidCommentChipRenderer",null);
_.x([_.E("data.commentOptionRenderers","currentCommentOption"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"paidCommentChipRenderer",null);_.x([_.E("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"currentCommentOption",null);
_.x([_.E("data.defaultCommentText","superThanksSelectedTierEntity"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"commentText",null);_.x([_.E("data.placeholderText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"placeholderText",null);_.x([_.E("data.commentDialog.commentDialogRenderer.editableText"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"editableText",null);
_.x([_.E("data.commentDialog.commentDialogRenderer.emojiButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"emojiButton",null);_.x([_.E("data.commentDialog.commentDialogRenderer.emojiPicker"),_.S("design:type",Object),_.S("design:paramtypes",[])],Yn.prototype,"emojiPicker",null);
_.x([_.E("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],Yn.prototype,"isEmojiButtonDisplayed",null);_.x([_.XC("yt-emoji-select"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],Yn.prototype,"onEmojiSelect",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],Yn);
_.y(Yn,"ytd-pdg-comment-preview-renderer",function(){if(mde!==void 0)return mde;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return mde=m},{mode:2});var G9e;var rm=function(){var m=_.d.apply(this,arguments)||this;m.selected=!1;return m};
_.n(rm,_.d);_.w=rm.prototype;_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.w.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.w.dataChanged=function(){this.data&&(_.Z7(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.eb(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.ce(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.ce(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.w.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.w.onClick=function(){this.logClick()};
_.w.onKeyboardSelect=function(){_.Zw(this.hostElement,"tap");this.onClick()};
_.w.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
rm.prototype.onClick=rm.prototype.onClick;rm.prototype.selectedChanged=rm.prototype.selectedChanged;rm.prototype.dataChanged=rm.prototype.dataChanged;_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],rm.prototype,"componentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.x4),_.S("design:type",Object)],rm.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.q(_.Qz),_.S("design:type",Object)],rm.prototype,"ironSelectableBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],rm.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],rm.prototype,"shownThumbnail",void 0);_.x([_.V(),_.S("design:type",Object)],rm.prototype,"basePriceText",void 0);_.x([_.V(),_.S("design:type",Object)],rm.prototype,"purchaseCommand",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],rm.prototype,"selected",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rm.prototype,"dataChanged",null);_.x([_.Sb("selected"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rm.prototype,"selectedChanged",null);_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rm.prototype,"onClick",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],rm);
_.y(rm,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(G9e!==void 0)return G9e;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return G9e=m},{mode:1});var uU=function(){var m=_.d.apply(this,arguments)||this;m.selectedItemIndex=0;m.buyButtonDisabled=!1;return m};
_.n(uU,_.d);_.w=uU.prototype;
_.w.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]]"}}}}}};
_.w.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var m;var G=(m=_.Q(this.data.colorSlider,LTG))==null?void 0:m.notches[this.selectedItemIndex].purchaseCommand}else{var K;G=(K=_.Q(this.data.selectableItemButtons[this.selectedItemIndex],g$D))==null?void 0:K.purchaseCommand}if(G){m=_.Q(G,_.do4);m.productData||(m.productData={});var W;m.productData={pdgData:{commentMessageText:(W=this.commentPreviewRenderer)==null?void 0:W.getUserGeneratedCommentText()}};
_.Zw(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(G)}}};
_.w.dataChanged=function(){if(this.data){_.Jx.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.Kli(_.Jx,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.Jx.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var m;this.buyButtonDisabled=!((m=_.Q(this.data.commentPreview,wf5))==null||!m.placeholderText);this.updatePriceSelectorStatus();var G;if((G=this.data)==null?0:G.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;m=[];this.data.preloadImages&&(m=this.data.preloadImages);
m=m.map(function(K){return _.qy(K.thumbnails,1920)});
m=_.g(m);for(G=m.next();!G.done;G=m.next())(G=G.value)&&_.X5P(G).thenCatch(function(){_.nc(Error("km"))})}};
_.w.superThanksSelectedTierEntityChanged=function(){var m;(this==null?void 0:(m=this.superThanksSelectedTierEntity)==null?void 0:m.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.w.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.w.updatePriceSelectorStatus=function(){this.isColorSlider?(_.VL(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.VL(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.VL(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.VL(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.w.closeBuyFlow=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.w.onUserGeneratedContentChanged=function(){var m;this.buyButtonDisabled=!((m=this.commentPreviewRenderer)==null?0:m.getUserGeneratedCommentText())};
_.w.updateSelectedItemIndexFromBinding=function(m){this.selectedItemIndex=m.detail.value};
_.e_.Object.defineProperties(uU.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var m;return!((m=this.data)==null||!m.disclaimerText)}}});
uU.prototype.onUserGeneratedContentChanged=uU.prototype.onUserGeneratedContentChanged;uU.prototype.closeBuyFlow=uU.prototype.closeBuyFlow;uU.prototype.selectedItemIndexChanged=uU.prototype.selectedItemIndexChanged;uU.prototype.superThanksSelectedTierEntityChanged=uU.prototype.superThanksSelectedTierEntityChanged;uU.prototype.dataChanged=uU.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],uU.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uU.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],uU.prototype,"selectedItemIndex",void 0);_.x([_.V(),_.S("design:type",Boolean)],uU.prototype,"isColorSlider",void 0);
_.x([_.V(),_.S("design:type",Object)],uU.prototype,"buyButtonDisabled",void 0);_.x([_.V({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:N9s}),_.S("design:type",Object)],uU.prototype,"superThanksSelectedTierEntity",void 0);_.x([_.UM("ytd-pdg-comment-preview-renderer"),_.S("design:type",Object)],uU.prototype,"commentPreviewRenderer",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],uU.prototype,"ytdReduxBehavior",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uU.prototype,"dataChanged",null);_.x([_.Sb("superThanksSelectedTierEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uU.prototype,"superThanksSelectedTierEntityChanged",null);_.x([_.Sb("selectedItemIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uU.prototype,"selectedItemIndexChanged",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uU.prototype,"closeBuyFlow",null);_.x([_.XC("ytd-pdg-user-generated-comment-changed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uU.prototype,"onUserGeneratedContentChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],uU.prototype,"isDisclaimerTextShown",null);
_.x([_.Ye({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],uU);
_.y(uU,"yt-super-vod-buy-flow-content-renderer",function(){if(M$u!==void 0)return M$u;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return M$u=m},{mode:1});var Kvg;var hm=function(){var m=_.d.apply(this,arguments)||this;m.lottieAnimationRef={};return m};
_.n(hm,_.d);_.w=hm.prototype;_.w.created=function(){_.YY.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.xC(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.w.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Zw(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.w.detached=function(){this.autoCloseJobId&&_.Fu.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.xC(this,this.onPopupIronOverlayOpened))};
_.w.dataChanged=function(){var m=this;this.data&&this.data.autoCloseDelay&&(_.dU(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.jA(_.Fu,function(){m.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.eb(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.w.onDOMLoadedLottie=function(){var m=this,G,K,W=Number((G=this.data)==null?void 0:(K=G.autoCloseDelay)==null?void 0:K.seconds)||0;this.fadeOutJobId=_.jA(_.Fu,function(){m.lottiePlayerEl.classList.add("fadeout")},(W-.25)*1E3);
this.autoCloseJobId=_.jA(_.Fu,function(){m.closePopup()},W*1E3)};
_.w.openPopup=function(){this.ironOverlayBehavior.open()};
_.w.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.dU(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.eD(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.xS().resolve(_.S1).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Fu.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Fu.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.w.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var m,G;(m=this.lottieAnimationRef)==null||(G=m.lottieEl)==null||G.destroy();m=this.data.lottie;var K,W;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:m.url+"_"+Math.random(),path:m.url,autoplay:!0,loop:(W=(K=m.settings)==null?void 0:K.loop)!=null?W:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.e_.Object.defineProperties(hm.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var m,G;return!!((m=this.data)==null?0:(G=m.lottie)==null?0:G.url)}}});
hm.prototype.maybeInitializeLottie=hm.prototype.maybeInitializeLottie;hm.prototype.dataChanged=hm.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hm.prototype,"rendererBehavior",void 0);_.x([_.q(_.Jp),_.S("design:type",Object)],hm.prototype,"ironOverlayBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hm.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],hm.prototype,"lottiePlayerProps",void 0);
_.x([_.V(),_.S("design:type",Object)],hm.prototype,"lottieAnimationRef",void 0);_.x([_.UM("ytd-lottie-player"),_.S("design:type",HTMLElement)],hm.prototype,"lottiePlayerEl",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hm.prototype,"dataChanged",null);_.x([_.E("data"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],hm.prototype,"hasLottieAnimation",null);
_.x([_.Sb("data.lottie.url"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],hm.prototype,"maybeInitializeLottie",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],hm);
_.y(hm,"ytd-desktop-image-overlay-renderer",function(){if(Kvg!==void 0)return Kvg;var m=document.createElement("template");_.b(m,'\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="lottie-player style-scope ytd-desktop-image-overlay-renderer" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]">\n</ytd-lottie-player></div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Kvg=m},{mode:1});var Wvx;var pv=function(){return _.d.apply(this,arguments)||this};
_.n(pv,_.d);_.w=pv.prototype;_.w.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"}}}}};
_.w.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",_.xC(this,this.closePopup))};
_.w.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xC(this,this.closePopup))};
_.w.dataChanged=function(){_.PH(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Q(this.data.header,WTE)&&(this.hasBackgroundBanner=!!_.Q(this.data.header,WTE).backgroundBanner)};
_.w.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xC(this,this.closePopup))};
_.w.closePopup=function(){this.data&&this.data.onCloseCommand&&_.yQ(this.hostElement,[this.data.onCloseCommand])};
pv.prototype.handleBuyflowSelectionSubmitted=pv.prototype.handleBuyflowSelectionSubmitted;pv.prototype.dataChanged=pv.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],pv.prototype,"data",void 0);
_.x([_.V({value:!0,reflectToAttribute:!0}),_.S("design:type",Boolean)],pv.prototype,"hasBackgroundBanner",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pv.prototype,"dataChanged",null);_.x([_.XC("yt-pdg-buy-flow-selection-submitted"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],pv.prototype,"handleBuyflowSelectionSubmitted",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],pv);
_.y(pv,"ytd-pdg-buy-flow-renderer",function(){if(Wvx!==void 0)return Wvx;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Wvx=m},{mode:1});var LvC;var Jm=function(){var m=_.d.apply(this,arguments)||this;m.isOpen=!1;m.isPlaylistCreated=!1;return m};
_.n(Jm,_.d);_.w=Jm.prototype;_.w.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.w.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Zw(this.hostElement,"yt-refit")};
_.w.onCreateTap=function(){var m=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.yQ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(G,K){if(!_.F("killswitch_ep_in_create_playlist_response")&&(K==null?0:K.actions))for(G=_.g(K.actions),K=G.next();!K.done;K=G.next())K=K.value,_.Q(K,_.Oa)&&m.ytComponentBehavior.resolveCommand(K)}}]),this.isPlaylistCreated=!0)};
_.w.onKeydown=function(m){if(m.keyCode===13)this.onCreateTap()};
_.w.onServiceRequestCompleted=function(m){m.stopPropagation();_.dU(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.w.computePrivacyBadge=function(m){return m?[{metadataBadgeRenderer:m}]:[]};
Jm.prototype.onServiceRequestCompleted=Jm.prototype.onServiceRequestCompleted;Jm.prototype.onKeydown=Jm.prototype.onKeydown;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Jm.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Jm.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Jm.prototype,"isOpen",void 0);
_.x([_.V(),_.S("design:type",Object)],Jm.prototype,"isPlaylistCreated",void 0);_.x([_.V({value:{REQUIRED_LABEL:_.zq("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zq("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.S("design:type",Object)],Jm.prototype,"addToStrings",void 0);_.x([_.V({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.S("design:type",Array)],Jm.prototype,"privacyBadge",void 0);
_.x([_.UM("#privacy-input"),_.S("design:type",Object)],Jm.prototype,"privacyInput",void 0);_.x([_.UM("#name-input"),_.S("design:type",Object)],Jm.prototype,"nameInput",void 0);_.x([_.XC("keydown"),_.S("design:type",Function),_.S("design:paramtypes",[KeyboardEvent]),_.S("design:returntype")],Jm.prototype,"onKeydown",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Jm.prototype,"onServiceRequestCompleted",null);
_.x([_.Ye({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Jm);
_.y(Jm,"ytd-add-to-playlist-create-renderer",function(){if(LvC!==void 0)return LvC;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return LvC=m},{mode:1});var AV7;var wJg;var NL=function(){var m=_.d.apply(this,arguments)||this;m.transferState="TRANSFER_STATE_UNKNOWN";return m};
_.n(NL,_.d);NL.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
NL.prototype.onCheckboxChange=function(m){var G=this;this.data&&_.t9(this,"yt-playlist-checkbox-changed",function(){var K=_.$C(m).checked?G.data.addToPlaylistServiceEndpoint:G.data.removeFromPlaylistServiceEndpoint;K&&_.xS().resolve(_.S1).resolveCommand(K,{form:{element:G.hostElement}});_.F("dl_playlist_killswitch")||G.transferState!=="TRANSFER_STATE_UNKNOWN"&&G.transferState!=="TRANSFER_STATE_FAILED"&&G.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:G.data.playlistId,action:"ACTION_SYNC"}})},
100)};
NL.prototype.computeIconType=function(m){return m?"yt-icons:"+m.toLowerCase():null};
NL.prototype.dataChanged=NL.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],NL.prototype,"data",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],NL.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],NL.prototype,"ytComponentBehavior",void 0);_.x([_.UM("#checkbox"),_.S("design:type",HTMLInputElement)],NL.prototype,"checkbox",void 0);
_.x([_.V({selector:_.hM,selectorArgs:["data.playlistId"]}),_.S("design:type",String)],NL.prototype,"transferState",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],NL.prototype,"dataChanged",null);_.x([_.Ye({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],NL);
_.y(NL,"ytd-playlist-add-to-option-renderer",function(){if(wJg!==void 0)return wJg;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return wJg=m},{mode:1});var gGx=_.P(function(m){var G=m.data;return _.r("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.r("div",null,_.r(_.Nm,{text:function(){return G().title}})),_.r(_.p,{cond:function(){return G().subtitle},
then:function(K){return _.r("div",{class:"ytdMenuTitleRendererSubtitle"},_.r(_.Nm,{text:K}))}}))},"gl");
gGx.idomCompat=!0;_.sh(gGx,"ytd-menu-title-renderer",{props:{data:_.Dd}});var DA=function(){var m=_.d.apply(this,arguments)||this;m.addToStrings={ADD_TO_DROPDOWN_LABEL:_.zq("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};m.closeButtonAriaLabel=_.zq("SBOX_INAPPROPRIATE_CANCEL");m.dialog=_.F("desktop_add_to_playlist_renderer_dialog_popup");return m};
_.n(DA,_.d);_.w=DA.prototype;_.w.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"}}}};
_.w.onPopupOpened=function(){_.dF(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.w.onPopupClosed=function(){_.dF(this.playlists,"scrollable",!1)};
_.w.computeAriaLabel=function(){var m;if(this==null?0:(m=this.data)==null?0:m.actions){m=_.g(this.data.actions);for(var G=m.next();!G.done;G=m.next())if(G=G.value,G.menuTitleRenderer)return _.bw(G.menuTitleRenderer.title)}};
_.w.onTapClose=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.e_.Object.defineProperties(DA.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var m;if(this==null?0:(m=this.data)==null?0:m.actions){m=_.g(this.data.actions);for(var G=m.next();!G.done;G=m.next())if(G=G.value,G.menuTitleRenderer)return G.menuTitleRenderer}return!1}}});
DA.prototype.onPopupClosed=DA.prototype.onPopupClosed;DA.prototype.onPopupOpened=DA.prototype.onPopupOpened;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],DA.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],DA.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],DA.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],DA.prototype,"addToStrings",void 0);_.x([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.S("design:type",String)],DA.prototype,"ariaLabel",void 0);_.x([_.V(),_.S("design:type",String)],DA.prototype,"closeButtonAriaLabel",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],DA.prototype,"dialog",void 0);
_.x([_.UM("#playlists"),_.S("design:type",HTMLElement)],DA.prototype,"playlists",void 0);_.x([_.UM("ytd-add-to-playlist-create-renderer"),_.S("design:type",Object)],DA.prototype,"createRenderer",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],DA.prototype,"menuTitleRenderer",null);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DA.prototype,"onPopupOpened",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],DA.prototype,"onPopupClosed",null);_.x([_.Ye({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],DA);
_.y(DA,"ytd-add-to-playlist-renderer",function(){if(AV7!==void 0)return AV7;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return AV7=m},{mode:1});var OsC;var tm=function(){var m=_.d.apply(this,arguments)||this;m.isPlaylistEditComplete=!1;m.isCollabEngagementDisabled=!1;m.closeButtonAriaLabel=_.zq("SBOX_INAPPROPRIATE_CANCEL");m.saveButton={title:_.zq("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"};m.onValueChanged=function(){m.updateSaveButtonState();m.computeCollabEngagementDisabled()};
return m};
_.n(tm,_.d);_.w=tm.prototype;_.w.attached=function(){this.JSC$22686_scroller&&(this.JSC$22686_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22686_scroller.attached&&typeof this.JSC$22686_scroller.attached==="function"&&this.JSC$22686_scroller.attached())};
_.w.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.w.onPopupClosed=function(){this.reset()};
_.w.close=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.w.onClickSave=function(){var m=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var G=[];this.nameInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&G.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var K=Number(this.privacyInput.value);isNaN(K)||G.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:K})}this.votingInput.value!==null&&(K=this.votingInput.value)&&G.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:K});if(G.length>0){var W;_.Q((W=this.data)==null?void 0:W.updateSettingsEndpoint,_.cB).actions=G;var L;if((L=this.data)==null?0:L.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){m.close()}}}),this.isPlaylistEditComplete=!0}}};
_.w.computePrivacyBadge=function(m){return m?[{metadataBadgeRenderer:m}]:[]};
_.w.computeEditorData=function(m){var G,K;return m==null?void 0:(G=m.sections)==null?void 0:(K=G[0])==null?void 0:K.playlistSettingsEditorCasualSectionRenderer};
_.w.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.w.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}}}}}};
_.w.computeAriaLabel=function(){var m,G,K,W=(m=this.data)==null?void 0:(G=m.sections)==null?void 0:(K=G[0])==null?void 0:K.playlistSettingsEditorCasualSectionRenderer;return _.bw(W==null?void 0:W.title)};
_.w.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"}))};
_.w.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.w.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.w.isNameChanged=function(){var m,G,K;return(((m=this.editorData)==null?void 0:(G=m.name)==null?void 0:(K=G.textInputFormFieldRenderer)==null?void 0:K.value)||"")!==(this.nameInput.value||"")};
_.w.isDescriptionChanged=function(){var m,G,K;return(((m=this.editorData)==null?void 0:(G=m.description)==null?void 0:(K=G.textInputFormFieldRenderer)==null?void 0:K.value)||"")!==(this.descriptionInput.value||"")};
_.w.isPrivacyChanged=function(){var m,G,K,W,L,A,O,c;return((O=(m=this.editorData)==null?void 0:(G=m.privacy)==null?void 0:(K=G.dropdownFormFieldRenderer)==null?void 0:(W=K.dropdown)==null?void 0:(L=W.dropdownRenderer)==null?void 0:(A=L.entries)==null?void 0:A.find(function(u){var h;return u==null?void 0:(h=u.privacyDropdownItemRenderer)==null?void 0:h.isSelected}))==null?void 0:(c=O.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.privacyInput.value};
_.w.isVotingChanged=function(){var m,G,K,W,L,A,O,c;return((O=(m=this.editorData)==null?void 0:(G=m.voting)==null?void 0:(K=G.dropdownFormFieldRenderer)==null?void 0:(W=K.dropdown)==null?void 0:(L=W.dropdownRenderer)==null?void 0:(A=L.entries)==null?void 0:A.find(function(u){var h;return u==null?void 0:(h=u.privacyDropdownItemRenderer)==null?void 0:h.isSelected}))==null?void 0:(c=O.privacyDropdownItemRenderer)==null?void 0:c.int32Value)!==this.votingInput.value};
tm.prototype.onPopupClosed=tm.prototype.onPopupClosed;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],tm.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],tm.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],tm.prototype,"ytRendererStamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],tm.prototype,"data",void 0);_.x([_.V({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.S("design:type",Array)],tm.prototype,"privacyBadge",void 0);_.x([_.V({computed:"computeEditorData(data)"}),_.S("design:type",Object)],tm.prototype,"editorData",void 0);_.x([_.V(),_.S("design:type",Object)],tm.prototype,"isPlaylistEditComplete",void 0);_.x([_.V(),_.S("design:type",Object)],tm.prototype,"isCollabEngagementDisabled",void 0);
_.x([_.V({value:{REQUIRED_LABEL:_.zq("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.zq("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.S("design:type",Object)],tm.prototype,"addToStrings",void 0);_.x([_.V({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.S("design:type",String)],tm.prototype,"ariaLabel",void 0);_.x([_.V(),_.S("design:type",String)],tm.prototype,"closeButtonAriaLabel",void 0);
_.x([_.V(),_.S("design:type",Object)],tm.prototype,"saveButton",void 0);_.x([_.UM("#name-input"),_.S("design:type",Object)],tm.prototype,"nameInput",void 0);_.x([_.UM("#description-input"),_.S("design:type",Object)],tm.prototype,"descriptionInput",void 0);_.x([_.UM("#privacy-input"),_.S("design:type",Object)],tm.prototype,"privacyInput",void 0);_.x([_.UM("#voting-input"),_.S("design:type",Object)],tm.prototype,"votingInput",void 0);
_.x([_.UM("#scroller"),_.S("design:type",Object)],tm.prototype,"JSC$22686_scroller",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],tm.prototype,"onPopupClosed",null);_.x([_.V(),_.S("design:type",Object)],tm.prototype,"onValueChanged",void 0);_.x([_.Ye({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],tm);
_.y(tm,"ytd-playlist-settings-editor-renderer",function(){if(OsC===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);OsC=m}m=OsC;return m},{mode:1});var cVx;_.Kz("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var FG=function(){return _.d.apply(this,arguments)||this};
_.n(FG,_.d);_.w=FG.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.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 m=this.get("data.nextButton.buttonRenderer.navigationEndpoint");m&&(this.nextNavigationEndpoint=m,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.w.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 m={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",m)}}};
_.w.onPopupOpened=function(m){m.detail!==this&&m.detail!==this.hostElement||!_.F("enable_premium_voluntary_pause")||_.dU(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.w.onNextButtonTap=function(){var m=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);m&&this.ytdOpenPopupBehavior.openPopup(m)};
_.w.updateSelectedResponseIndexFromBinding=function(m){this.selectedResponseIndex=m.detail.value};
FG.prototype.onPopupOpened=FG.prototype.onPopupOpened;FG.prototype.onSelectedResponseIndexChange=FG.prototype.onSelectedResponseIndexChange;FG.prototype.dataChanged=FG.prototype.dataChanged;_.x([_.q(_.vi),_.S("design:type",Object)],FG.prototype,"ytdOpenPopupBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],FG.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],FG.prototype,"selectedResponseIndex",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FG.prototype,"dataChanged",null);_.x([_.Sb("selectedResponseIndex"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],FG.prototype,"onSelectedResponseIndexChange",null);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],FG.prototype,"onPopupOpened",null);_.x([_.Ye({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],FG);
_.y(FG,"ytd-red-cancel-survey-renderer",function(){if(cVx!==void 0)return cVx;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return cVx=m},{mode:1});var Yde;var Qd=function(){var m=_.d.apply(this,arguments)||this;m.closeButtonAriaLabel=_.zq("SBOX_INAPPROPRIATE_CANCEL");return m};
_.n(Qd,_.d);Qd.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Qd.prototype.onClickClose=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Qd.prototype,"rendererStamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Qd.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],Qd.prototype,"closeButtonAriaLabel",void 0);_.x([_.Ye({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Qd);
_.y(Qd,"ytd-search-filter-options-dialog-renderer",function(){if(Yde!==void 0)return Yde;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Yde=m},{mode:1});var rVe;var GBG=function(){return function(m){m=m.availabilityType;return m===void 0||m==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||m==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var a0=function(){var m=_.d.apply(this,arguments)||this;m.qualityOptions=[];m.upsellOptions=[];m.showUpsellSection=!1;m.rememberSettingsChecked=!1;return m};
_.n(a0,_.d);_.w=a0.prototype;_.w.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}}}}};
_.w.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.w.updateQualityOptions=function(){if(this.formats===void 0)_.dU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var m=[],G=[];this.showUpsellSection=!1;for(var K=_.g(this.formats),W=K.next();!W.done;W=K.next())(W=W.value)&&(W.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?G.push(W):m.push(W));m.length&&(this.qualityOptions=igP(m));G.length&&(this.showUpsellSection=!0,this.upsellOptions=igP(G))}};
_.w.updateRememberString=function(){if(this.downloadQualityPickerEntity)var m=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var G;m=(G=this.data)==null?void 0:G.premiumRememberSettingString}else{var K;m=(K=this.data)==null?void 0:K.rememberSettingString}m=m===void 0?_.zq("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):m;this.rememberSettingsCheckboxRenderer={title:_.Hk(m),disabled:!1}};
_.w.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.e_.Object.defineProperties(a0.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var m;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(m=this.data)==null?void 0:m.qualityFormats}}});
a0.prototype.updateRememberString=a0.prototype.updateRememberString;a0.prototype.updateQualityOptions=a0.prototype.updateQualityOptions;a0.prototype.dataChanged=a0.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],a0.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],a0.prototype,"data",void 0);
_.x([_.q(_.OW),_.S("design:type",Object)],a0.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Boolean)],a0.prototype,"selectedUpsellQuality",void 0);_.x([_.V({computed:"computeIcon_(data.premiumIcon)",value:""}),_.S("design:type",String)],a0.prototype,"premiumIcon",void 0);_.x([_.V({selector:bAs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.S("design:type",Object)],a0.prototype,"downloadQualityPickerEntity",void 0);
_.x([_.V(),_.S("design:type",Array)],a0.prototype,"qualityOptions",void 0);_.x([_.V(),_.S("design:type",Array)],a0.prototype,"upsellOptions",void 0);_.x([_.V(),_.S("design:type",Object)],a0.prototype,"showUpsellSection",void 0);_.x([_.V(),_.S("design:type",Object)],a0.prototype,"rememberSettingsCheckboxRenderer",void 0);_.x([_.UM("#remember-settings"),_.S("design:type",HTMLInputElement)],a0.prototype,"rememberSettingsCheckbox",void 0);
_.x([_.V(),_.S("design:type",Object)],a0.prototype,"rememberSettingsChecked",void 0);_.x([_.V(),_.S("design:type",Function)],a0.prototype,"onRememberSettingsCheckedChanged",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],a0.prototype,"dataChanged",null);_.x([_.Sb("downloadQualityPickerEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],a0.prototype,"updateQualityOptions",null);
_.x([_.Sb("selectedUpsellQuality"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],a0.prototype,"updateRememberString",null);_.x([_.Ye({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],a0);
_.y(a0,"ytd-download-quality-selector-content",function(){if(rVe!==void 0)return rVe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return rVe=m},{mode:1});var uPx;var o0=function(){var m=_.d.apply(this,arguments)||this;m.selectedUpsellQuality=!1;m.qualityOptions=[];m.useUpsellDismissAlternate=_.F("use_not_now_dl_upsell_dismiss_cta");m.shouldShowAlternateUpsellDimiss=!1;m.rememberSettings=!1;m.rememberSettingsChecked=!1;m.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};m.rememberSettingsCheckedChanged=function(G){m.rememberSettingsChecked=G};
return m};
_.n(o0,_.d);_.w=o0.prototype;
_.w.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Hk(_.zq("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.w.updateQualityOptions=function(){this.formats===void 0?_.dU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=igP(this.formats)};
_.w.onQualityOptionsSelect=function(m){if(this.qualityOptions&&m){m!==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 G=_.g(this.qualityOptions.entries()),K=G.next();!K.done;K=
G.next()){K=_.g(K.value);var W=K.next().value;K=K.next().value;var L=void 0,A=void 0;if(((L=K)==null?void 0:(A=L.settingsRadioOptionRenderer)==null?void 0:A.id)===m){this.selectedQualityIndex=W;m=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((m=this.formats[W])==null?void 0:m.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.w.onClickSubmit=function(){var m;if((m=this.downloadButtonRenderer)==null||!m.isDisabled){var G,K;m=(K=(G=this.data)==null?void 0:G.onSubmitEndpoint)!=null?K:{};var W,L;if(this.formats&&(((W=_.Q(m,_.xg))==null?0:W.videoId)||((L=_.Q(m,_.Xk))==null?0:L.playlistId))){var A,O,c,u,h,J;G={formatType:(u=(A=this.formats)==null?void 0:(O=A[(c=this.selectedQualityIndex)!=null?c:0])==null?void 0:O.format)!=null?u:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(h=this.getOfflineEndpoint(m))==null?void 0:(J=h.actionParams)==null?void 0:J.settingsAction)};this.getOfflineEndpoint(m).actionParams=G;this.ytComponentBehavior.resolveCommand(m)}_.dU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.w.onClickUpsell=function(){var m;if((m=this.upsellButtonRenderer)==null||!m.isDisabled){var G,K;m=(K=(G=this.data)==null?void 0:G.upsellEndpoint)!=null?K:{};this.ytComponentBehavior.resolveCommand(m);_.dU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);G="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var W,L,A,O;G=(O=(W=this.formats)==null?void 0:(L=W[(A=this.selectedQualityIndex)!=null?A:0])==null?void 0:L.format)!=null?O:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:G}})}};
_.w.onClickClose=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.w.getOfflineSettingsAction=function(m,G){return m?G===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":G:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.w.getOfflineEndpoint=function(m){return _.Q(m,_.xg)?_.Q(m,_.xg):_.Q(m,_.Xk)};
_.e_.Object.defineProperties(o0.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Hk(_.zq("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var m;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(m=this.data)==null?void 0:m.qualityFormats}}});
o0.prototype.updateQualityOptions=o0.prototype.updateQualityOptions;o0.prototype.dataChanged=o0.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],o0.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],o0.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Number)],o0.prototype,"selectedQualityIndex",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"selectedUpsellQuality",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],o0.prototype,"ytdReduxBehavior",void 0);
_.x([_.V({selector:bAs,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.S("design:type",Object)],o0.prototype,"downloadQualityPickerEntity",void 0);_.x([_.V(),_.S("design:type",Array)],o0.prototype,"qualityOptions",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],o0.prototype,"useUpsellDismissAlternate",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.x([_.V(),_.S("design:type",Object)],o0.prototype,"downloadButtonRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"upsellButtonRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"cancelButtonRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"upsellCancelButtonRenderer",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"rememberSettings",void 0);_.x([_.V(),_.S("design:type",Object)],o0.prototype,"rememberSettingsChecked",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o0.prototype,"dataChanged",null);_.x([_.Sb("downloadQualityPickerEntity"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],o0.prototype,"updateQualityOptions",null);_.x([_.Ye({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],o0);
_.y(o0,"ytd-download-quality-selector-renderer",function(){if(uPx!==void 0)return uPx;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return uPx=m},{mode:1});var hGe;var nv=function(){return _.d.apply(this,arguments)||this};
_.n(nv,_.d);nv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
nv.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],nv.prototype,"data",void 0);_.x([_.V({computed:"computeIcon_(data.infoIcon)"}),_.S("design:type",Object)],nv.prototype,"infoIcon",void 0);
_.x([_.V({computed:"computeIcon_(data.warningIcon)"}),_.S("design:type",Object)],nv.prototype,"warningIcon",void 0);_.x([_.Ye({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],nv);
_.y(nv,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(hGe!==void 0)return hGe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return hGe=m},{mode:1});var pJ7;var bU=function(){return _.d.apply(this,arguments)||this};
_.n(bU,_.d);bU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
bU.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"}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bU.prototype,"data",void 0);_.x([_.Ye({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],bU);
_.y(bU,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(pJ7!==void 0)return pJ7;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return pJ7=m},{mode:1});var JVe;var vs=function(){return _.d.apply(this,arguments)||this};
_.n(vs,_.d);vs.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
vs.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"}}}}};
vs.prototype.onServiceRequestSentOrCompleted=function(m,G){G&&G.actions&&G.actions.length>0&&_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
vs.prototype.onServiceRequestSentOrCompleted=vs.prototype.onServiceRequestSentOrCompleted;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],vs.prototype,"data",void 0);
_.x([_.XC("yt-service-request-completed"),_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],vs.prototype,"onServiceRequestSentOrCompleted",null);_.x([_.Ye({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],vs);
_.y(vs,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(JVe!==void 0)return JVe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return JVe=m},{mode:1});var Ndu;var $n=function(){var m=_.d.apply(this,arguments)||this;m.submitButtonDisabled=!0;return m};
_.n($n,_.d);_.w=$n.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.w.onDataChanged=function(){var m,G,K;if(((m=this.data)==null?void 0:(G=m.confirmButton)==null?void 0:(K=G.buttonRenderer)==null?void 0:K.isDisabled)!==void 0){var W,L,A;this.submitButtonDisabled=(W=this.data)==null?void 0:(L=W.confirmButton)==null?void 0:(A=L.buttonRenderer)==null?void 0:A.isDisabled}};
_.w.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.w.updateSubmitButtonDisabledFromBinding=function(m){this.submitButtonDisabled=m.detail.value};
_.w.updateSubmitButtonDisabledFromConfirmCheckbox=function(m){this.submitButtonDisabled=!m.detail.value};
$n.prototype.onDataChanged=$n.prototype.onDataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$n.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],$n.prototype,"submitButtonDisabled",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],$n.prototype,"onDataChanged",null);_.x([_.Ye({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],$n);
_.y($n,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Ndu!==void 0)return Ndu;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Ndu=m},{mode:1});var Ddu;var ss=function(){return _.d.apply(this,arguments)||this};
_.n(ss,_.d);_.e_.Object.defineProperties(ss.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var m,G,K;return((m=this.data)==null?void 0:m.title)+" "+((G=this.data)==null?void 0:G.metadataPrimary)+" "+((K=this.data)==null?void 0:K.metadataSecondary)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ss.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ss.prototype,"data",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ss.prototype,"ariaLabel",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],ss);
_.y(ss,"ytd-compact-product-list-item-renderer",function(){if(Ddu!==void 0)return Ddu;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Ddu=m},{mode:1});var toN;var qL=function(){return _.d.apply(this,arguments)||this};
_.n(qL,_.d);qL.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]]"}}}}}};
_.e_.Object.defineProperties(qL.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],qL.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],qL.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],qL);
_.y(qL,"ytd-compact-product-list-renderer",function(){if(toN!==void 0)return toN;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return toN=m},{mode:1});var Fvg;var Es=function(){return _.d.apply(this,arguments)||this};
_.n(Es,_.d);_.w=Es.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.w.getBackgroundUrl=function(){var m=this.get("data.headerImage.thumbnails");return m?"url("+_.qy(m,this.hostElement.clientWidth)+")":""};
_.w.onDataChanged=function(){var m=this.getBackgroundUrl();m&&(this.header.style.backgroundImage=m);m=_.gU();var G=_.wU(),K=this.get("data.trackingParams");K&&G&&m&&_.tW(m,G,_.m5(K));m=_.g(this.hostElement.querySelectorAll("yt-img-shadow"));for(G=m.next();!G.done;G=m.next())G.value.onShow()};
_.w.onPopupClosed=function(m){_.$C(m).localName==="ytd-membership-post-cancel-renderer"&&_.dU(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Es.prototype.onPopupClosed=Es.prototype.onPopupClosed;Es.prototype.onDataChanged=Es.prototype.onDataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Es.prototype,"data",void 0);_.x([_.UM("#header"),_.S("design:type",HTMLDivElement)],Es.prototype,"header",void 0);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Es.prototype,"onDataChanged",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Es.prototype,"onPopupClosed",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Es);
_.y(Es,"ytd-membership-post-cancel-renderer",function(){if(Fvg!==void 0)return Fvg;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return Fvg=m},{mode:1});var QM4;var Hs=function(){return _.d.apply(this,arguments)||this};
_.n(Hs,_.d);Hs.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Hs.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Hs.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Hs.prototype,"data",void 0);_.x([_.UM("ytd-feedback-survey-renderer"),_.S("design:type",Object)],Hs.prototype,"feedbackSurveyRenderer",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Hs);
_.y(Hs,"ytd-sponsorship-confirm-cancel-content",function(){if(QM4!==void 0)return QM4;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return QM4=m},{mode:1});var aF7;var I0=function(){var m=_.d.apply(this,arguments)||this;m.maybeSubmitFeedback=function(){m.content&&m.content.maybeSubmitFeedback()};
return m};
_.n(I0,_.d);_.w=I0.prototype;_.w.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.w.onYtPopupOpened=function(m,G){G===this&&this.data&&this.data.onOpenCommands&&_.eD(this.hostElement,this.data.onOpenCommands,this.hostElement);_.dU(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.w.onYtPopupClosed=function(m,G){(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.eD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestCompleted=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.w.onYtServiceRequestError=function(m){_.QH(this.hostElement,m.detail.error.message)};
_.w.onDataChanged=function(){if(this.isAttached){var m=this.backgroundUrl;m&&(_.VL(this.hostElement).querySelector("#header").style.backgroundImage=m)}};
_.e_.Object.defineProperties(I0.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var m=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return m?"url("+_.qy(m,this.hostElement.clientWidth)+")":""}}});
I0.prototype.onDataChanged=I0.prototype.onDataChanged;I0.prototype.onYtServiceRequestError=I0.prototype.onYtServiceRequestError;I0.prototype.onYtServiceRequestCompleted=I0.prototype.onYtServiceRequestCompleted;I0.prototype.onYtPopupClosed=I0.prototype.onYtPopupClosed;I0.prototype.onYtPopupOpened=I0.prototype.onYtPopupOpened;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],I0.prototype,"data",void 0);_.x([_.V({value:function(){return _.zq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],I0.prototype,"closeButtonAriaLabel",void 0);_.x([_.UM("#scrollable"),_.S("design:type",Object)],I0.prototype,"scrollable",void 0);_.x([_.UM("ytd-sponsorship-confirm-cancel-content"),_.S("design:type",Object)],I0.prototype,"content",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],I0.prototype,"onYtPopupOpened",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],I0.prototype,"onYtPopupClosed",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],I0.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],I0.prototype,"onYtServiceRequestError",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],I0.prototype,"onDataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],I0);
_.y(I0,"ytd-sponsorship-confirm-cancel-renderer",function(){if(aF7!==void 0)return aF7;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return aF7=m},{mode:2});var oGe;var jH=function(){return _.d.apply(this,arguments)||this};
_.n(jH,_.d);jH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jH.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],jH);
_.y(jH,"ytd-sponsorships-celebration-content",function(){if(oGe!==void 0)return oGe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return oGe=
m},{mode:1});var nGu;var bsp=_.nY(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),kn=function(){var m=_.d.apply(this,arguments)||this;m.scriptsAppended=!1;m.useFullWidthPrimaryButton=!1;m.buttonOverrides={type:"tonal",style:"overlay-dark"};return m};
_.n(kn,_.d);_.w=kn.prototype;_.w.dataChanged=function(){var m;this.useFullWidthPrimaryButton=!((m=this.data)==null||!m.useFullWidthPrimaryButton)};
_.w.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:_.F("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.onDataChanged=function(){var m;(m=this.header)==null||m.style.setProperty("background-color",this.backgroundColor);if(m=this.headerImageUrl){var G;(G=this.header)==null||G.style.setProperty("background-image",m)}G=_.gU(4);m=_.wU(4);var K=this.get("data.trackingParams");if(K&&m&&G){var W=_.m5(K);_.tW(G,m,W);_.F("combine_ve_grafts")?_.l1().graftServerVe(K,m,4):_.tW(G,m,W)}G=_.g(this.hostElement.querySelectorAll("yt-img-shadow"));for(m=G.next();!m.done;m=G.next())m.value.onShow();if(G=this.get("data.gtmId"))_.MQ(G,
_.E8("GL","")),this.setupConversionTracking()};
_.w.setupConversionTracking=function(){if(!this.scriptsAppended){var m=document.createElement("script");_.pZ(m,_.r5(bsp.join("")));document.head.appendChild(m);m=document.createElement("noscript");m.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(m);this.scriptsAppended=!0}};
_.w.onPopupClosed=function(m){if(_.$C(m).localName==="ytd-sponsorships-celebration-renderer"){_.dU(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var G;this.data&&((G=this.data)==null?0:G.dismissCommand)&&_.xe.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.e_.Object.defineProperties(kn.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var m=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.ce(m)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var m=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return m?"url("+_.qy(m,this.hostElement.getBoundingClientRect().width)+")":""}}});
kn.prototype.onPopupClosed=kn.prototype.onPopupClosed;kn.prototype.onDataChanged=kn.prototype.onDataChanged;kn.prototype.dataChanged=kn.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kn.prototype,"data",void 0);
_.x([_.UM("#header"),_.S("design:type",HTMLElement)],kn.prototype,"header",void 0);_.x([_.V(),_.S("design:type",Object)],kn.prototype,"scriptsAppended",void 0);_.x([_.V({type:Boolean,reflectToAttribute:!0}),_.S("design:type",Object)],kn.prototype,"useFullWidthPrimaryButton",void 0);_.x([_.V(),_.S("design:type",Object)],kn.prototype,"buttonOverrides",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kn.prototype,"dataChanged",null);
_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],kn.prototype,"onDataChanged",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],kn.prototype,"onPopupClosed",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],kn);
_.y(kn,"ytd-sponsorships-celebration-renderer",function(){if(nGu!==void 0)return nGu;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return nGu=m},{mode:1});var vG4;var Cv=function(){return _.d.apply(this,arguments)||this};
_.n(Cv,_.d);_.w=Cv.prototype;_.w.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"}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.detached=function(){this.playerElement.stop()};
_.w.onYtServiceRequestCompleted=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.w.onYtServiceRequestError=function(m){_.QH(this.hostElement,m.detail.error.message)};
_.w.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.w.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.w.getTier=function(m,G){return!m||!m.tiers||G<0?null:_.Q(m.tiers[G],bui)};
_.w.moreThanOne=function(m){return!!(m&&m.length>1)};
_.w.tierOverviewTap=function(m){var G=this;this.selectedTier=m.model.index;_.Pv(this,function(){_.Zw(G.hostElement,"yt-refit")})};
_.w.computeSelectedClass=function(m,G){return this.isSelected(m,G)?"selected":""};
_.w.computeButtonAriaPressed=function(m,G){return this.isSelected(m,G)?"true":"false"};
_.w.isSelected=function(m,G){return m===G};
_.w.onDataChanged=function(){_.VL(this.hostElement).querySelector("#header-overlay").style.visibility="";_.VL(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 m=_.g(this.hostElement.querySelectorAll("yt-img-shadow")),
G=m.next();!G.done;G=m.next())G.value.onShow();var K;this.set("selectedTier",(K=this.get("data.targetTierIndex"))!=null?K:0);var W;(m=(W=this.data)==null?void 0:W.onVisible)&&this.ytComponentBehavior.resolveCommand(m)};
_.w.initializeVe=function(m){var G=_.gU(),K=_.wU(),W=this.get("data.trackingParams");K&&G&&(this.screenLayer=4,G=_.kS(_.mmo)(void 0,69877,{clientScreenNonce:G,visualElement:K},void 0,void 0,void 0),_.cH(G,69877,4),K=_.wU(4),W&&K&&(W=_.m5(W),_.tW(G,K,W),m&&(this.offerVideoVe=_.dq(74659),_.tW(G,W,this.offerVideoVe))))};
_.w.setHeaderBackground=function(){var m=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.VL(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.ce(m);if(m=this.getHeaderImage())m=_.qy(m,screen.width),_.VL(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+m+")"};
_.w.getHeaderImage=function(){var m=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&m?m:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.w.setupVideoPlayer=function(m){var G=this,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1)return K=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),W=G.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.F("kevlar_player_update_killswitch")?G.playerElement.update({args:{autoplay:K,video_id:m,player_params:W}}):G.playerElement.loadVideoWithPlayerVars({autoplay:K,video_id:m,player_params:W}),
O.yield(G.playerElement.getPlayerPromise(),2);L=O.yieldResult;L.addEventListener("onStateChange",function(c){G.onPlayerStateChange(c)});
L.setScreenLayer(G.screenLayer);(A=_.gU(4))&&G.offerVideoVe&&_.Qx(A,G.offerVideoVe);K&&(G.pauseOtherPlayers(),G.playerElement.focusOnPlayer(),G.playerElement.getPlayer().hideControls(),_.rC(_.Fu,function(){G.fadeOutHeaderOverlay()},4E3));
_.ey(O)})};
_.w.onPlayerStateChange=function(m){m===1?this.backgroundPlayerElement&&(m=this.backgroundPlayerElement.player_.getPlayerState(),m!==1&&m!==3||this.backgroundPlayerElement.pause()):m===0&&(_.VL(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.VL(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.w.fadeOutHeaderOverlay=function(){_.VL(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.w.onHeaderTap=function(){if(this.offerVideo){_.VL(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var m;((m=this.playerElement.player_)==null?void 0:m.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(m=_.gU(4))&&this.offerVideoVe&&_.nW(m,this.offerVideoVe)}};
_.w.getBackgroundImageLayerClass=function(m){return m?"background-image-layer-with-video":""};
_.w.getHeaderClass=function(m){return m?"header-with-video":""};
_.w.getHeaderOverlayClass=function(m){return m?"header-overlay-with-video":""};
_.w.getTitleContainerClass=function(m,G){return m?"title-container-with-video":G?"title-container-without-video-flexible":"title-container-without-video"};
_.w.tierTitleDisplayStatus=function(m){return this.moreThanOne(m)?"hide":"show"};
_.w.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.xS().resolve(_.pY).getPlayerElement():this.backgroundPlayerElement=_.qW();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var m=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=m===1||m===3;this.backgroundPlayerElement.pause()}};
_.w.isMiniplayerActive=function(){return _.xS().resolve(_.pY).isMiniplayerActive()};
_.w.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("selected-tier-changed",this.selectedTier))};
Cv.prototype.selectedTierChangedForBinding=Cv.prototype.selectedTierChangedForBinding;Cv.prototype.onDataChanged=Cv.prototype.onDataChanged;Cv.prototype.onYtPopupClosed=Cv.prototype.onYtPopupClosed;Cv.prototype.onYtPopupOpened=Cv.prototype.onYtPopupOpened;Cv.prototype.onYtServiceRequestError=Cv.prototype.onYtServiceRequestError;Cv.prototype.onYtServiceRequestCompleted=Cv.prototype.onYtServiceRequestCompleted;
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Cv.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Cv.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Cv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Cv.prototype,"data",void 0);_.x([_.V({value:0}),_.S("design:type",Number)],Cv.prototype,"selectedTier",void 0);
_.x([_.V({value:""}),_.S("design:type",String)],Cv.prototype,"offerVideo",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Cv.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.x([_.V({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.z9(this)}}),
_.S("design:type",String)],Cv.prototype,"playerId",void 0);_.x([_.UM("tp-yt-paper-dialog-scrollable"),_.S("design:type",Object)],Cv.prototype,"scrollable",void 0);_.x([_.UM("ytd-sponsorships-tier-renderer"),_.S("design:type",Object)],Cv.prototype,"tierRenderer",void 0);_.x([_.UM("#player"),_.S("design:type",Object)],Cv.prototype,"playerElement",void 0);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Cv.prototype,"onYtServiceRequestCompleted",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],Cv.prototype,"onYtServiceRequestError",null);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cv.prototype,"onYtPopupOpened",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cv.prototype,"onYtPopupClosed",null);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cv.prototype,"onDataChanged",null);
_.x([_.Sb("selectedTier"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cv.prototype,"selectedTierChangedForBinding",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],Cv);
_.y(Cv,"ytd-sponsorships-offer-renderer",function(){if(vG4!==void 0)return vG4;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return vG4=m},{mode:2});var $do;var Vd=function(){var m=_.d.apply(this,arguments)||this;m.buttonOverrides={type:"filled",style:"mono"};return m};
_.n(Vd,_.d);Vd.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}}}}}};
Vd.prototype.backgroundColorChanged=function(){var m,G,K,W=(G=_.Q((m=this.data)==null?void 0:m.content,v$E))==null?void 0:(K=G.backgroundColor)==null?void 0:K.backgroundColor;W&&(m=_.OM(W),_.VL(this.hostElement).querySelector("#banner").style.backgroundColor=m,_.VL(this.hostElement).querySelector("#abstract-art").style.backgroundColor=m)};
Vd.prototype.attached=function(){this.JSC$22764_scroller&&(this.JSC$22764_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22764_scroller.attached&&typeof this.JSC$22764_scroller.attached==="function"&&this.JSC$22764_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Vd.prototype.backgroundColorChanged=Vd.prototype.backgroundColorChanged;_.x([_.V(),_.S("design:type",Object)],Vd.prototype,"data",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Vd.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],Vd.prototype,"JSC$22764_scroller",void 0);_.x([_.V(),_.S("design:type",Object)],Vd.prototype,"buttonOverrides",void 0);
_.x([_.Sb("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Vd.prototype,"backgroundColorChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Vd);
_.y(Vd,"ytd-sponsorships-promotion-celebration-renderer",function(){if($do!==void 0)return $do;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return $do=m},{mode:2});var sMo;var qde;var ZA=function(){return _.d.apply(this,arguments)||this};
_.n(ZA,_.d);ZA.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
ZA.prototype.computeIsInitiallyChecked=function(m){return m===1};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ZA.prototype,"data",void 0);_.x([_.UM("#checkbox"),_.S("design:type",Object)],ZA.prototype,"checkbox",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],ZA);
_.y(ZA,"ytd-subscription-toggle-option-renderer",function(){if(qde!==void 0)return qde;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return qde=m},{mode:1});var dm=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return m};
_.n(dm,_.d);dm.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"}}}};
dm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dm.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var m=_.VL(this.hostElement).querySelector("#options").selected;m=this.data.options[m].subscriptionRadioOptionRenderer.serviceEndpoint;var G=_.VL(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");G&&m&&m.modifyChannelNotificationPreferenceEndpoint&&(G=G.getValue())&&(m.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[G]);_.xS().resolve(_.S1).resolveCommand(m,{form:{element:this.hostElement}});
_.dU(this.hostElement,"yt-close-popup-action")};
_.e_.Object.defineProperties(dm.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var m=this.data.options,G=0;G<m.length;G++){var K=m[G].subscriptionRadioOptionRenderer;if(K&&K.selected)return G}return null}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],dm.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dm.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],dm.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],dm.prototype,"data",void 0);_.x([_.E("data.options"),_.S("design:type",Object),_.S("design:paramtypes",[])],dm.prototype,"initialIndex",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],dm);
_.y(dm,"ytd-subscription-notification-options-renderer",function(){if(sMo!==void 0)return sMo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return sMo=m},{mode:1});var EGe;var HsO=function(){return _.d.apply(this,arguments)||this};
_.n(HsO,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],HsO.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],HsO.prototype,"data",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],HsO);
_.y(HsO,"ytd-tvfilm-offer-groups-renderer",function(){if(EGe!==void 0)return EGe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return EGe=m},{mode:1});var IFe;var Ps=function(){return _.d.apply(this,arguments)||this};
_.n(Ps,_.d);_.w=Ps.prototype;_.w.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"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.w.computeThumbnailClass=function(m){return m.thumbnailOverlays?m.isShow?"thumbnail-show":"thumbnail-movie":m.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.w.computeCommerceSectionClass=function(m){return m.offers&&m.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.w.computeTitleClass=function(m){return m.offers&&m.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.w.onDataChanged=function(){[].concat(_.Bz(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(m){m.onShow()})};
Ps.prototype.onDataChanged=Ps.prototype.onDataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Ps.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Ps.prototype,"onDataChanged",null);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Ps);
_.y(Ps,"ytd-ypc-offers-overlay-renderer",function(){if(IFe!==void 0)return IFe;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return IFe=m},{mode:2});var jMO;var k9C=function(){this.usedMethods=new Set};
k9C.prototype.add=function(m){this.usedMethods.add(m)};
k9C.prototype.reset=function(){this.usedMethods.clear()};var C64,Vou;
_.Zsx=function(m,G){this.query=m;this.previousSearchQuery=G;this.id=C64++;if(!Vou){G=_.E8("SBOX_SETTINGS");m="https://"+((G==null?void 0:G.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var K=G==null?void 0:G.REQUEST_LANGUAGE;K&&(m+="&hl="+K);(K=G==null?void 0:G.REQUEST_DOMAIN)&&(m+="&gl="+K);m+="&client=youtube&gs_ri=youtube";(K=G==null?void 0:G.SUGG_EXP_ID)&&(m+="&sugexp="+encodeURIComponent(K));(K=G==null?void 0:G.PSUGGEST_TOKEN)&&(m+="&tok="+K);(G=G==
null?void 0:G.SESSION_INDEX)&&(m+="&authuser="+G);_.F("desktop_enable_visual_suggest")&&(m+="&h=180&w=320&ytvs=1");Vou=m}};
_.ddu=function(m){var G="q="+encodeURIComponent(m.query);m.previousSearchQuery&&(G+="&pq="+encodeURIComponent(m.previousSearchQuery));return G};
_.P6u=function(){var m=_.E8("SBOX_SETTINGS"),G={};if(m==null?0:m.SEND_VISITOR_DATA)G["X-Goog-Visitor-Id"]=m==null?void 0:m.VISITOR_DATA;return G};
_.yVp=function(m){var G=Vou;G+="&gs_id="+m.id.toString(36);G+="&q="+encodeURIComponent(m.query);G+="&cp="+m.query.length;m.previousSearchQuery&&(G+="&pq="+encodeURIComponent(m.previousSearchQuery));(m=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(G+="&video_id="+m);return G};
C64=0;Vou="";var eGg=I8.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,fFI=I8.SEARCH_ENTITY_SUGGESTION_MOVIE,xdO=I8.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,XJC=I8.SEARCH_ENTITY_SUGGESTION_TV_SHOW,Sdx=function(m,G){this.text=m;this.bold=G},RG4=function(m,G,K){this.input=G;
this.index=K;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=m[0];this.type=m[1];this.subtypes=m[2];var W;this.displayText=W9u((W=m[3])==null?void 0:W.b);var L;this.ignoredPrefix=W9u((L=m[3])==null?void 0:L.a);var A,O;this.hasNewVideo=((A=m[3])==null?void 0:(O=A.zam)==null?void 0:O.toString())==="true"?!0:!1;var c;this.visualSuggestUrl=(c=m[3])==null?void 0:c.zai;var u;this.entityType=W9u((u=m[3])==null?void 0:u.zap);var h;this.entityName=W9u((h=m[3])==null?void 0:h.zao);var J;G=
W9u((J=m[3])==null?void 0:J.zaf);var N;this.entityMid=(N=m[3])==null?void 0:N.zae;J=L9q(this.subtypes,this.entityMid);if(G&&J){if(G){N="";switch(J){case "YOUTUBE_ENTITY_TYPE_SONG":N=xdO;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":N=eGg;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":N=XJC;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":N=fFI}J=J==="YOUTUBE_ENTITY_TYPE_SONG"||J==="YOUTUBE_ENTITY_TYPE_ALBUM"?N+" \u2022  \u2022 "+G:G}else J="";this.entitySubtitle=J}var D;this.externalChannelId=(D=m[3])==null?void 0:D.zav;
var t;this.entityThumbnailAttributionUrl=(t=m[3])==null?void 0:t.zaq},zGN=function(m,G){var K=[],W,L=(W=m.displayText)!=null?W:m.text;
(G==null?0:G.useEntityName)&&Ude(m)&&m.entityName&&(L=m.entityName);if(m.type===33)return K.push(new Sdx(L,!1)),K;if(L.length>=m.input.length&&L.substring(0,m.input.length)===m.input)K.push(new Sdx(m.input,!1)),K.push(new Sdx(L.substring(m.input.length),!0));else{var A=new Set(m.input.split(/\s/)),O=L.split(/\s/);K=O.map(function(c,u){return new Sdx(c.trim()+(u===O.length-1?"":" "),!A.has(c))})}return K},Ude=function(m){var G=!!L9q(m.subtypes);
m=!!m.entityMid;return G||m};_.lFG=function(m){this.rawResponse=["",[],{}];this.suggestions=[];try{var G=JSON.parse(Alu(m));if(typeof G==="object"&&G!==null)this.rawResponse=G;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(W){console.log("Suggest: Failed to parse SuggestResponse!");return}var K=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(W,L){return new RG4(W,K,L)})};var Bdp=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new k9C;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$22801_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},MoC,TdG=function(){MoC||(MoC=new Bdp);
return MoC};
Bdp.prototype.updateSuggestions=function(m){var G=this;this.availableSuggestions.forEach(function(K){G.previousSuggestions[K]=!0});
this.availableSuggestions=m.map(function(K){var W=K.type.toString();K.subtypes.length>0&&(W+="i"+K.subtypes.join("i"),W+="k"+K.suggestionSources.COMPLETE_SERVER.toString());return W})};
var mGN=function(m,G){var K=Date.now();m.firstEditTime<0&&(m.firstEditTime=K);G&&(m.lastQueryBuildTime=K);m.lastEditTime=K};
Bdp.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$22801_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var ilC=function(m){var G="";m.availableSuggestions.forEach(function(L){delete m.previousSuggestions[L]});
for(var K=_.g(Object.keys(m.previousSuggestions)),W=K.next();!W.done;W=K.next())W=W.value,m.previousSuggestions[W]&&(G+=(G?"j":"")+W);return G},G4u=function(m,G){var K=[];
G&&(K[1]=G.toString());K[0]="youtube";K[7]=Date.now()-m.startTime;K[6]=m.sessionNumber;m.zeroPrefixSuggestionCount>=0&&(K[33]=m.zeroPrefixSuggestionCount);K[13]=m.outOfSyncResponseCount;if(m.availableSuggestions.length>0){for(var W=G="",L=0,A=_.g(m.availableSuggestions),O=A.next();!O.done;O=A.next())O=O.value,O!==W&&(L>1&&(G+="l"+L),G+=(W?"j":"")+O,L=0,W=O),L+=1;L>1&&(G+="l"+L);K[3]=G}K[35]=ilC(m);m.selectedSuggestionIndex>=0&&(K[2]=m.selectedSuggestionIndex);var c;if(G=(c=_.E8("SBOX_SETTINGS"))==
null?void 0:c.SUGG_EXP_ID)K[19]=m.normalize(G),c=0,m.experimentTriggeredBeforeFinal&&(c|=1),m.experimentTriggeredFinal&&(c|=2),K[20]=c;K[26]=Array.from(m.inputMethodsTracker.usedMethods).join("j");if(m.JSC$22801_totalRoundTripTime>0){K[15]=m.JSC$22801_totalRoundTripTime;K[14]=m.maxRoundTripTime;c=[];for(L=G=0;L<10;L++)W=m.roundTripTimeHistogram[L],W===0?G++:(G>1?c.push(L+"-"+W):G===1?c.push("0j"+W):c.push(W.toString()),G=0);c=c.join("j");K[16]=c}m.zeroPrefixRoundTripTime>0&&(K[36]=m.zeroPrefixRoundTripTime);
m.lastQueryBuildTime>0&&(K[18]=m.lastQueryBuildTime-m.startTime);m.firstEditTime>0&&(K[4]=m.firstEditTime-m.startTime);m.lastEditTime>0&&(K[5]=m.lastEditTime-m.startTime);return K.join(".")};
Bdp.prototype.normalize=function(m){return m.replaceAll(".","-")};
var KC3=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var yd=function(){var m=_.d.apply(this,arguments)||this;m.microphoneSpinnerActive=!1;m.noAnimations=!1;m.boundExitClick=function(){m.onExitButtonClick()};
m.speechOverlayClassName="";m.isLevelAnimating=!1;m.playCloseDialogAudioFeedback=!0;m.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return m};
_.n(yd,_.d);_.w=yd.prototype;_.w.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.w.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=ihs()};
_.w.dataChanged=function(){this.logDialog()};
_.w.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var m;(m=this.manager.audioPlayer)!=null&&(m.JSC$21658_audioEnabled=!1)}this.manager.stop();(m=this.manager.audioPlayer)!=null&&(m.JSC$21658_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.w.handleSpeechQueryCompleteAction=function(m){var G=m.navigationAction;G&&(m.trackingParams&&_.l1().graftServerVe(m.trackingParams,this.dialogVe,5),_.Zw(this.hostElement,"yt-navigate",{endpoint:G,tempData:this.getNavigationParams(G),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.w.onExitButtonClick=function(){this.closeDialog()};
_.w.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var m;if((m=this.manager)!=null){var G;(G=m.audioPlayer)==null||mx(G,"failure");m.setState("microphone-off");m.stop()}}else(m=this.manager)==null||m.start()};
_.w.transcriptionChanged=function(){var m,G;(((m=this.transcription)==null?0:m.low)||((G=this.transcription)==null?0:G.high))&&this.setState("transcribing",this.transcription)};
_.w.stateChanged=function(){this.setState(this.state,this.transcription)};
_.w.logDialog=function(){var m;(m=this.data)!=null&&m.trackingParams&&(m=_.l1(),_.PB(m,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=m.graftServerVe(this.data.trackingParams,void 0,5))};
_.w.getNavigationParams=function(m){var G={};if(_.F("web_yt_searchbox")){var K=TdG();K.inputMethodsTracker.add(6);K=G4u(K,15);G.gs_l=K;var W;G.oq=((W=_.Q(m,_.RW))==null?void 0:W.query)||""}else if(m=window.ytvoicesearchloggingparams){if(m=m())G.oq=m.oq,G.gs_l=m.gs_l}else _.V3(Error("lm"));return G};
_.w.closeDialog=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.w.setState=function(m,G){if(this.data){var K=this.data,W={};switch(m){case "listening":W={headerText:K.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:K.microphoneButtonAriaLabel};break;case "timeout":W={headerText:K.promptHeader,microphoneState:"try-again",microphoneLabel:K.promptMicrophoneLabel,microphoneAriaLabel:K.promptMicrophoneLabel};break;case "microphone-off":W={headerText:K.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:K.promptMicrophoneLabel,
microphoneAriaLabel:K.promptMicrophoneLabel};break;case "transcribing":(G==null?0:G.low)||(G==null?0:G.high)?W={transcriptionLow:G==null?void 0:G.low,transcriptionHigh:G==null?void 0:G.high,microphoneState:"speaking",microphoneAriaLabel:K.microphoneButtonAriaLabel}:W={headerText:K.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:K.microphoneButtonAriaLabel};break;case "processing":W={headerText:K.loadingHeader,microphoneState:"processing",microphoneAriaLabel:K.microphoneButtonAriaLabel};
break;case "offline":W={headerText:K.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:K.connectionErrorMicrophoneLabel,microphoneAriaLabel:K.connectionErrorMicrophoneLabel};break;case "permission":W={headerText:K.permissionsHeader,bodyLine1:K.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:K.permissionsSubtext};break;case "permission-denied":W={headerText:K.disabledHeader,bodyLine1:K.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:K.disabledSubtext}}W.className=
m;this.speechOverlayState=W;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.w.setMicrophoneState=function(m){var G=this.isLevelAnimating;this.isLevelAnimating=m==="speaking";!G&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=m==="processing"&&!this.noAnimations};
_.w.setClass=function(m){this.speechOverlayClassName&&_.dF(this.hostElement,this.speechOverlayClassName,!1);m&&(this.speechOverlayClassName=m,_.dF(this.hostElement,m,!0))};
_.w.runLevelAnimation=function(){var m=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var G=1+Math.random()*.75,K=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+K/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+G+")");_.Fu.addJob(function(){m.runLevelAnimation()},3,K)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
yd.prototype.stateChanged=yd.prototype.stateChanged;yd.prototype.transcriptionChanged=yd.prototype.transcriptionChanged;yd.prototype.onPopupClosed=yd.prototype.onPopupClosed;yd.prototype.dataChanged=yd.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],yd.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],yd.prototype,"rendererStamperBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],yd.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],yd.prototype,"eventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],yd.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],yd.prototype,"speechOverlayState",void 0);
_.x([_.V(),_.S("design:type",Object)],yd.prototype,"microphoneSpinnerActive",void 0);_.x([_.V({type:_.F("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.S("design:type",Object)],yd.prototype,"noAnimations",void 0);_.x([_.V({selector:function(m){var G;return(G=m.voiceSearch)==null?void 0:G.transcription}}),
_.S("design:type",Object)],yd.prototype,"transcription",void 0);_.x([_.V({selector:function(m){var G;return(G=m.voiceSearch)==null?void 0:G.overlay}}),
_.S("design:type",String)],yd.prototype,"state",void 0);_.x([_.V(),_.S("design:type",Object)],yd.prototype,"boundExitClick",void 0);_.x([_.UM("#microphone-levels"),_.S("design:type",HTMLElement)],yd.prototype,"level",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yd.prototype,"dataChanged",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yd.prototype,"onPopupClosed",null);
_.x([_.Mg("transcription"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yd.prototype,"transcriptionChanged",null);_.x([_.Mg("state"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],yd.prototype,"stateChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],yd);
_.y(yd,"ytd-voice-search-dialog-renderer",function(){if(jMO!==void 0)return jMO;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return jMO=m},{mode:1});var WC3;var eH=function(){var m=_.d.apply(this,arguments)||this;m.isOverlay=!1;m.hidden=!1;return m};
_.n(eH,_.d);_.w=eH.prototype;_.w.onPopupClosed=function(){this.toggleIconState(!1)};
_.w.computeIcon=function(){var m,G,K;return(G=_.Q((m=this.data)==null?void 0:m.icon,T2z))==null?void 0:(K=G.icon)==null?void 0:K.iconType};
_.w.computeIconBadgeShape=function(){var m;return{iconBadgeType:"cart",iconBadgeText:(m=this.iconBadgeEntity)==null?void 0:m.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.w.onClick=function(){var m;(m=this.data)!=null&&m.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.w.computeHidden=function(m){return!m};
_.w.toggleIconState=function(m){this.iconButton&&(this.iconButton.pressed=m)};
eH.prototype.onPopupClosed=eH.prototype.onPopupClosed;_.x([_.q(_.OW),_.S("design:type",Object)],eH.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],eH.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],eH.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],eH.prototype,"isOverlay",void 0);
_.x([_.V({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.S("design:type",Object)],eH.prototype,"hidden",void 0);_.x([_.V({selectorArgs:["data.iconBadgeEntityKey"],selector:function(m,G){return _.yx(m.entities,"iconBadgeEntity",G)}}),
_.S("design:type",Object)],eH.prototype,"iconBadgeEntity",void 0);_.x([_.UM("yt-icon-button"),_.S("design:type",HTMLButtonElement)],eH.prototype,"iconButton",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eH.prototype,"onPopupClosed",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],eH);
_.y(eH,"ytd-icon-badge-topbar-button-renderer",function(){if(WC3!==void 0)return WC3;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return WC3=m},{mode:1});var LCe;var fv=function(){var m=_.d.apply(this,arguments)||this;m.premiumOptions=[];return m};
_.n(fv,_.d);fv.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.e_.Object.defineProperties(fv.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],fv.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Array)],fv.prototype,"premiumOptions",void 0);_.x([_.E("premiumOptions"),_.S("design:type",Object),_.S("design:paramtypes",[])],fv.prototype,"hasPremiumOptions",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],fv);
_.y(fv,"ytd-offline-promo-content",function(){if(LCe!==void 0)return LCe;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return LCe=m},{mode:1});var Aix;var xn=function(){var m=_.d.apply(this,arguments)||this;m.premiumOptions=[];return m};
_.n(xn,_.d);xn.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var m;this.premiumOptions=K9z((m=this.data)==null?void 0:m.formats)};
xn.prototype.onClickSubmit=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var m;(m=_.qW())==null||m.pause()};
xn.prototype.attached=function(){this.JSC$22821_scroller&&(this.JSC$22821_scroller.dialogElement=this.hostElement.parentNode)};
_.e_.Object.defineProperties(xn.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
xn.prototype.dataChanged=xn.prototype.dataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],xn.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],xn.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],xn.prototype,"data",void 0);
_.x([_.V({computed:"computeIcon_(data.headersIcon)",value:""}),_.S("design:type",String)],xn.prototype,"headersIcon",void 0);_.x([_.V(),_.S("design:type",Array)],xn.prototype,"premiumOptions",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],xn.prototype,"JSC$22821_scroller",void 0);_.x([_.E("headersIcon"),_.S("design:type",Object),_.S("design:paramtypes",[])],xn.prototype,"showIcon",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],xn.prototype,"dataChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],xn);
_.y(xn,"ytd-offline-promo-renderer",function(){if(Aix!==void 0)return Aix;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return Aix=m},{mode:1});var w2o;var XG=function(){var m=_.d.apply(this,arguments)||this;m.playbackPauseInterval=NaN;m.isLoading=!1;m.hasError=!1;m.dialogClass="";m.youtubeLabel=_.zq("LOGO_ALT_LABEL",{},"YouTube Home");m.logoName="yt-logos-ext:yt-logo-updated";m.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return m};
_.n(XG,_.d);_.w=XG.prototype;_.w.onDataChange=function(){var m;if(this.showEOMV1Text=!((m=this.data)==null||!m.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.w.attached=function(){this.pausePlayer()};
_.w.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.w.handleLangSelect=function(m){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[m.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.w.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.w.handleSaveConsent=function(m){var G=this;this.showLoadingSpinner();this.showLoadingSpinner();M_O(_.Q(m,dUz)).catch(function(K){_.nc(new _.cw("Something went wrong when save consent "+(K.message?K.message:K)+"."));G.hideLoadingSpinner();G.showErrorMessage()})};
_.w.handleDisablePersonalization=function(m){var G=this;this.showLoadingSpinner();TlD(_.Q(m,ZkG)).then(function(){G.dialog.close();G.resumePlayer()}).catch(function(K){_.nc(new _.cw("Something went wrong when disable personalization "+(K.message?K.message:K)+"."));
G.hideLoadingSpinner();G.showErrorMessage()})};
_.w.showLoadingSpinner=function(){var m=this;this.showSpinnerJobId=_.Fu.addLowPriorityJob(function(){m.isLoading=!0},500)};
_.w.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Fu.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.w.showErrorMessage=function(){var m=this;this.hasError=!0;_.Fu.addLowPriorityJob(function(){m.hasError=!1},2E3)};
_.w.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Tf(function(){try{var m=_.qW();m&&m.pause()}catch(G){}},100))};
_.w.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var m=_.qW();m&&m.play()}catch(G){}};
_.e_.Object.defineProperties(XG.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.eomV1Text)return[];m=[];for(var G=["SHIELD","WARNING","BAR_CHART"],K=this.data.eomV1Text.essentialCookieMsg.items,W=0;W<G.length&&W<K.length;W++)m.push({icon:G[W],text:K[W]});return m}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var m;if((m=this.data)==null||!m.eomV1Text)return[];m=[];for(var G=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],K=this.data.eomV1Text.nonEssentialCookieMsg.items,W=0;W<G.length&&W<K.length;W++)m.push({icon:G[W],text:K[W]});return m}}});
XG.prototype.onDataChange=XG.prototype.onDataChange;_.x([_.V(),_.S("design:type",Object)],XG.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],XG.prototype,"showEOMV1Text",void 0);_.x([_.V(),_.S("design:type",Object)],XG.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Object)],XG.prototype,"hasError",void 0);_.x([_.V(),_.S("design:type",Number)],XG.prototype,"showSpinnerJobId",void 0);_.x([_.V(),_.S("design:type",Object)],XG.prototype,"dialogClass",void 0);
_.x([_.UM("#dialog"),_.S("design:type",Object)],XG.prototype,"dialog",void 0);_.x([_.UM("#cb-header"),_.S("design:type",HTMLElement)],XG.prototype,"header",void 0);_.x([_.UM("#lang-select"),_.S("design:type",HTMLElement)],XG.prototype,"langSelect",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],XG.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],XG.prototype,"ytComponentBehavior",void 0);
_.x([_.V(),_.S("design:type",String)],XG.prototype,"youtubeLabel",void 0);_.x([_.V(),_.S("design:type",Object)],XG.prototype,"logoName",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],XG.prototype,"onDataChange",null);_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],XG.prototype,"eomEssentialCookieMsgItems",null);
_.x([_.E("data"),_.S("design:type",Array),_.S("design:paramtypes",[])],XG.prototype,"eomNonEssentialCookieMsgItems",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],XG);
_.y(XG,"ytd-consent-bump-v2-lightbox",function(){if(w2o!==void 0)return w2o;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return w2o=m},{mode:1});var gkC;var SH=function(){return _.d.apply(this,arguments)||this};
_.n(SH,_.d);SH.prototype.ready=function(){if(!_.w8()||Vg6)var m=!0;else Vg6=!0,m=!1;m||(m=document.querySelector("ytd-app"),m||(m=document.body),this.internalLightBox=_.VL(m).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.x([_.V(),_.S("design:type",Object)],SH.prototype,"data",void 0);_.x([_.UM("#lightbox"),_.S("design:type",Object)],SH.prototype,"lightBox",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],SH);
_.y(SH,"ytd-consent-bump-v2-renderer",function(){if(gkC!==void 0)return gkC;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return gkC=m},{mode:1});var OlC;var ci4;var Yoe;var R0=function(){return _.d.apply(this,arguments)||this};
_.n(R0,_.d);_.w=R0.prototype;_.w.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&xzz(this.toastManager,this.toastType)};
_.w.open=function(m){this.toast&&(this.ephemeralAction&&_.xS().resolve(_.$h).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=m!=null?m:0,this.toastManager.enqueue(this.toast,m)):this.toast.open())};
_.w.close=function(m){var G;(G=this.toast)==null||G.close();this.toastManager&&m===1&&xzz(this.toastManager,m)};
_.w.refit=function(){var m;(m=this.toast)==null||m.refit()};
_.w.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var m;(m=this.toast)==null||m.close()}};
_.w.setVerticalOffset=function(m){this.toast&&(this.toast.verticalOffset=m,this.toast.fit())};
_.w.computeButtonClass_=function(m){return m?"toast-button":""};
_.w.computeText_=function(m){return _.bw(m)};
_.w.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Fq("toast-opened-changed",this.toastOpened))};
_.w.updateToastOpenedFromBinding=function(m){this.toastOpened=m.detail.value};
_.e_.Object.defineProperties(R0.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var m,G,K=(m=this.data)==null?void 0:(G=m.actionButton)==null?void 0:G.buttonRenderer;return(K==null?void 0:K.command)||(K==null?void 0:K.serviceEndpoint)||(K==null?void 0:K.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var m=[],G;((G=this.data)==null?0:G.responseText)&&m.push(_.bw(this.data.responseText));var K;((K=this.data)==null?0:K.subText)&&m.push(_.bw(this.data.subText));var W,L;if((W=this.data)==null?0:(L=W.actionButton)==null?0:L.buttonRenderer){var A,O;m.push(((A=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(O=A.accessibilityData)==null?void 0:O.label)||_.bw(this.data.actionButton.buttonRenderer.text))}return m.filter(function(c){return c}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var m,G;return(G=(m=this.toast)==null?void 0:m.opened)!=null?G:!1}}});
R0.prototype.toastOpenedChangedForBinding=R0.prototype.toastOpenedChangedForBinding;R0.prototype.toastOpenedChanged=R0.prototype.toastOpenedChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],R0.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],R0.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],R0.prototype,"duration",void 0);
_.x([_.V(),_.S("design:type",Number)],R0.prototype,"toastType",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],R0.prototype,"useCloseButton",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],R0.prototype,"closeToastOnActionButtonClick",void 0);_.x([_.V({value:function(){return _.zq("SBOX_INAPPROPRIATE_CANCEL")}}),
_.S("design:type",String)],R0.prototype,"closeButtonAriaLabel",void 0);_.x([_.V(),_.S("design:type",Boolean)],R0.prototype,"toastOpened",void 0);_.x([_.V(),_.S("design:type",Boolean)],R0.prototype,"hasOpened",void 0);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],R0.prototype,"command",null);_.x([_.E("labelText","command","duration"),_.S("design:type",Object),_.S("design:paramtypes",[])],R0.prototype,"ephemeralAction",null);
_.x([_.E("ephemeralAction"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],R0.prototype,"hasEphemeralAction",null);_.x([_.UM("#toast"),_.S("design:type",Object)],R0.prototype,"toast",void 0);_.x([_.V({value:function(){return{style:"call-to-action-inverse"}}}),
_.S("design:type",Object)],R0.prototype,"buttonOverrides",void 0);_.x([_.V({value:{style:"mono-inverse"}}),_.S("design:type",Object)],R0.prototype,"closeButtonOverrides",void 0);_.x([_.V({value:function(){return _.xS().resolve(_.fn(_.nR))}}),
_.S("design:type",Object)],R0.prototype,"toastManager",void 0);_.x([_.E("data.responseText","data.subText","data.actionButton"),_.S("design:type",Object),_.S("design:paramtypes",[])],R0.prototype,"labelText",null);_.x([_.Sb("toastOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R0.prototype,"toastOpenedChanged",null);
_.x([_.Sb("toastOpened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],R0.prototype,"toastOpenedChangedForBinding",null);_.x([_.cL({is:"yt-notification-action-renderer",disableElementRegistration:!0})],R0);
_.y(R0,"yt-notification-action-renderer",function(){if(Yoe===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ci4===void 0&&(ci4=document.createElement("template"));var W=ci4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Yoe=m}m=Yoe;return m},{mode:2});var Us=function(){var m=_.d.apply(this,arguments)||this;m.duration=4E3;m.downloadingCount=0;m.downloadedCount=0;m.downloadingOnlySmartDownloads=!1;m.sessionTotalDownloads=0;m.sessionDownloaded=0;m.previousSessionsDownloaded=0;m.totalDownloadPercentage=0;m.currentDownloadProgress=0;m.currentDownloadPercentage=0;m.isLeaderTab=!0;m.isFullScreen=!1;m.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};m.boundBeforeUnload=function(G){m.isLeaderTab&&m.downloadingCount>0&&(G.preventDefault(),
G.returnValue=!0)};
return m};
_.n(Us,_.d);_.w=Us.prototype;
_.w.open=function(){this.updateDownloadState();if(this.data){var m=this.sessionDownloaded+1,G=this.sessionTotalDownloads>1?_.zq("VIDEOS_DOWNLOADING_RATIO",{downloaded:m.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+m+"/"+this.sessionTotalDownloads):_.zq("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(G=this.sessionTotalDownloads>1?_.zq("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:m.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
m+"/"+this.sessionTotalDownloads):_.zq("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));m=this.isLeaderTab?_.zq("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.bw(this.data.responseText)!==G||_.bw(this.data.subText)!==m)this.set("data.responseText",_.nG(G)),this.set("data.subText",_.nG(m)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.w.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.w.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.w.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.w.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var m=this.downloadedCount-this.previousSessionsDownloaded;m<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-m);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.w.handleFullscreenChange=function(m){(this.isFullScreen=m)||this.updatePopup()};
Us.prototype.updateCurrentDownloadProgress=Us.prototype.updateCurrentDownloadProgress;Us.prototype.updatePopup=Us.prototype.updatePopup;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Us.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],Us.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Us.prototype,"actionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"duration",void 0);_.x([_.V({selector:function(m){return _.b5s(m.entities).length}}),
_.S("design:type",Object)],Us.prototype,"downloadingCount",void 0);_.x([_.V({selector:nTO}),_.S("design:type",Object)],Us.prototype,"downloadedCount",void 0);_.x([_.V({selector:function(m){var G=_.b5s(m.entities);return FUi(m.entities,G)}}),
_.S("design:type",Object)],Us.prototype,"downloadingOnlySmartDownloads",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"sessionTotalDownloads",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"sessionDownloaded",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"previousSessionsDownloaded",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"totalDownloadPercentage",void 0);
_.x([_.V({selector:function(m){var G;m=(G=_.b5s(m.entities))!=null?G:[];return m.length>0?_.hh9(m.slice(-1)):0}}),
_.S("design:type",Object)],Us.prototype,"currentDownloadProgress",void 0);_.x([_.V(),_.S("design:type",Object)],Us.prototype,"currentDownloadPercentage",void 0);_.x([_.V({selector:_.EjJ}),_.S("design:type",Object)],Us.prototype,"isLeaderTab",void 0);_.x([_.UM("yt-notification-action-renderer"),_.S("design:type",Object)],Us.prototype,"notificationActionRenderer",void 0);
_.x([_.Mg("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Us.prototype,"updatePopup",null);_.x([_.Mg("currentDownloadProgress"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Us.prototype,"updateCurrentDownloadProgress",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Us);
_.y(Us,"ytd-video-download-toast-renderer",function(){if(OlC!==void 0)return OlC;var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return OlC=m},{mode:1});var ri7;var uRx;var z0=function(){return _.d.apply(this,arguments)||this};
_.n(z0,_.d);z0.prototype.computeIsRedLogo=function(m,G){!m&&G&&(m=G);return m==="YOUTUBE_RED_LOGO"||m==="YOUTUBE_PREMIUM_LOGO"};
z0.prototype.computeLogoName=function(m){m=this.componentBehavior.computeIcon_(m);return m===""?"yt-logos-ext:yt-logo-updated":m};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],z0.prototype,"componentBehavior",void 0);_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.S("design:type",Boolean)],z0.prototype,"isRedLogo",void 0);_.x([_.V({computed:"computeLogoName(data)"}),_.S("design:type",String)],z0.prototype,"logoName",void 0);_.x([_.V({value:{}}),_.S("design:type",Object)],z0.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],z0.prototype,"logoType",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-logo"})],z0);
_.y(z0,"ytd-logo",function(){if(uRx!==void 0)return uRx;var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return uRx=m},{mode:2});var lU=function(){var m=_.d.apply(this,arguments)||this;m.animationRef={};return m};
_.n(lU,_.d);_.w=lU.prototype;_.w.attached=function(){document.addEventListener("yt-navigate-finish",_.xC(this,this.logYoodle))};
_.w.detached=function(){document.removeEventListener("yt-navigate-finish",_.xC(this,this.logYoodle))};
_.w.logYoodle=function(){var m,G;if((m=this.data)==null?0:(G=m.loggingDirectives)==null?0:G.trackingParams)this.ytRendererBehavior.markDirty(),_.l1().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.w.computeHideImg=function(m,G){return!!m||!!G};
_.w.computeHideYtdLogo=function(m,G){return!m||!!G};
_.w.computeHideLottie=function(m){return!m};
_.w.computeIsRedLogo=function(m){return m==="YOUTUBE_RED_LOGO"||m==="YOUTUBE_PREMIUM_LOGO"};
_.w.renderLogoEntity=function(){var m=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),K=this.getLogoTitleText(this.data),W=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==m&&(this.url=m);this.animatedUrl!==G&&(this.animatedUrl=G);this.logoTitleText!==K&&(this.logoTitleText=K);this.lottieUrl!==W&&(this.lottieUrl=W,this.lottiePlayerProps=this.computeLottiePlayerProps(W))};
_.w.getSanitizedThumbnail=function(m){return m&&m.thumbnails?_.mnP(m.thumbnails,122)||"":""};
_.w.getThumbnailUrl=function(m,G){if(!G)return"";var K,W;m=m?(K=G.darkThemeLogo)==null?void 0:K.thumbnail:(W=G.lightThemeLogo)==null?void 0:W.thumbnail;return this.getSanitizedThumbnail(m)};
_.w.getAnimatedThumbnailUrl=function(m,G){return G?this.getSanitizedThumbnail(m?G.darkThemeAnimatedLogo:G.lightThemeAnimatedLogo):""};
_.w.getLogoTitleText=function(m){if(m)return _.bw(m.tooltipText)};
_.w.computeLogoIcon=function(m,G){if(G){var K,W;return m?(K=G.darkThemeLogo)==null?void 0:K.icon:(W=G.lightThemeLogo)==null?void 0:W.icon}};
_.w.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.w.getLottieUrl=function(m,G){var K,W,L,A;return m?G==null?void 0:(K=G.darkThemeLogo)==null?void 0:(W=K.lottieAnimation)==null?void 0:W.url:G==null?void 0:(L=G.lightThemeLogo)==null?void 0:(A=L.lottieAnimation)==null?void 0:A.url};
_.w.computeLottiePlayerProps=function(m){if(m){var G;if((G=this.animationRef)==null?0:G.lottieEl){var K;(K=this.animationRef)==null||K.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:m,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.w.onLottieError=function(){this.data&&this.lottieUrl&&_.Zw(this.hostElement,"yoodle-error")};
_.w.onImgError=function(){this.data&&!this.lottieUrl&&_.Zw(this.hostElement,"yoodle-error")};
lU.prototype.playAnimation=lU.prototype.playAnimation;lU.prototype.renderLogoEntity=lU.prototype.renderLogoEntity;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],lU.prototype,"data",void 0);_.x([_.V({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.S("design:type",Boolean)],lU.prototype,"hideImg",void 0);
_.x([_.V({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.S("design:type",Boolean)],lU.prototype,"hideYtdLogo",void 0);_.x([_.V({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.S("design:type",Boolean)],lU.prototype,"hideLottie",void 0);_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.S("design:type",Boolean)],lU.prototype,"isRedLogo",void 0);
_.x([_.V(),_.S("design:type",Boolean)],lU.prototype,"useDarkThemeYoodle",void 0);_.x([_.V(),_.S("design:type",String)],lU.prototype,"url",void 0);_.x([_.V(),_.S("design:type",String)],lU.prototype,"animatedUrl",void 0);_.x([_.V(),_.S("design:type",String)],lU.prototype,"logoTitleText",void 0);_.x([_.V({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.S("design:type",Object)],lU.prototype,"logoIcon",void 0);_.x([_.V(),_.S("design:type",Object)],lU.prototype,"logoType",void 0);
_.x([_.V(),_.S("design:type",String)],lU.prototype,"lottieUrl",void 0);_.x([_.V(),_.S("design:type",Object)],lU.prototype,"lottiePlayerProps",void 0);_.x([_.V(),_.S("design:type",Object)],lU.prototype,"animationRef",void 0);_.x([_.Sb("data"),_.Sb("useDarkThemeYoodle"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],lU.prototype,"renderLogoEntity",null);
_.x([_.XC("click"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],lU.prototype,"playAnimation",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],lU);
_.y(lU,"ytd-yoodle-renderer",function(){if(ri7!==void 0)return ri7;var m=document.createElement("template");_.b(m,'\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 class="lottie-player style-scope ytd-yoodle-renderer" aria-label="[[logoTitleText]]" data="[[lottiePlayerProps]]">\n</ytd-lottie-player>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return ri7=m},{mode:2});var hBu;var p2G;var JiN=_.DE.currentPageTypeSelector,NKg=_.DE.currentPageSubTypeSelector,Bs=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return m};
_.n(Bs,_.d);_.w=Bs.prototype;_.w.onYoodleError=function(){_.F("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.w.computeLogoName=function(m){m=this.componentBehavior.computeIcon_(m);return m===""?"yt-logos-ext:yt-logo-updated":m};
_.w.computeTitle=function(m,G,K){return K&&(G==null?0:G.tooltipText)?_.bw(G.tooltipText):_.bw(m)};
_.w.computeAriaLabel=function(m,G,K){return K&&(G==null?0:G.tooltipText)?_.bw(m):""};
_.w.computeShowYoodle=function(m,G,K){return!m||!G&&!!K&&!_.Y2.isEmpty(K)};
_.w.onNavigateHomeAction=function(){if(_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var m;(m=_.VL(this.hostElement).querySelector(".yt-simple-endpoint"))==null||m.click()}};
_.w.computeLogoHref=function(m,G,K){var W;(K==null?0:K.onTapCommand)?W=this.componentBehavior.computeHref_(K.onTapCommand):m&&(W=this.componentBehavior.computeHref_(m));return W?W:G};
_.w.computeCommand=function(m,G){return(G==null?void 0:G.onTapCommand)||m};
_.w.getEndpointForm=function(){if(_.F("kevlar_topbar_disable_cache_only_home")){var m=_.xS().resolve(_.wR),G=JiN(m.getState())||"";m=NKg(m.getState())||"";return{disableCache:G==="ytd-browse"&&m==="home"}}return{disableCache:!0}};
Bs.prototype.onYoodleError=Bs.prototype.onYoodleError;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],Bs.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],Bs.prototype,"componentBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],Bs.prototype,"ytdReduxBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],Bs.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],Bs.prototype,"countryCode",void 0);_.x([_.V({selectorArgs:["data.overrideEntityKey"],selector:function(m,G){return _.yx(m.entities,"logoEntity",G)}}),
_.S("design:type",Object)],Bs.prototype,"logoEntity",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.S("design:type",Boolean)],Bs.prototype,"showYoodle",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],Bs.prototype,"yoodleError",void 0);_.x([_.V({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.S("design:type",String)],Bs.prototype,"titleText",void 0);
_.x([_.V({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.S("design:type",String)],Bs.prototype,"ariaLabelText",void 0);_.x([_.V({value:"/"}),_.S("design:type",String)],Bs.prototype,"defaultEndpointUrl",void 0);_.x([_.V({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.S("design:type",String)],Bs.prototype,"endpointUrl",void 0);
_.x([_.V({computed:"computeCommand(data.endpoint, logoEntity)"}),_.S("design:type",String)],Bs.prototype,"command",void 0);_.x([_.V(),_.S("design:type",Object)],Bs.prototype,"logoType",void 0);_.x([_.V({}),_.S("design:type",Boolean)],Bs.prototype,"useDarkThemeYoodle",void 0);_.x([_.XC("yoodle-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Bs.prototype,"onYoodleError",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Bs);
_.y(Bs,"ytd-topbar-logo-renderer",function(){if(p2G!==void 0)return p2G;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return p2G=m},{mode:2});var DGu=0;var t0u=I8.SEARCH_APPEND_LABEL,FCI=I8.SUGGESTION_NEW_VIDEOS_TEXT,QFe=I8.SUGGESTION_THUMBNAIL_LABEL,aPC=I8.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,oko=_.P(function(m){function G(Uo){var dK,cu;return _.Y(function(xo){if(xo.nextAddress==1)return dK=new Request(Uo),_.IO(xo,2),xo.yield(fetch(dK,{credentials:"include"}),4);if(xo.nextAddress!=2)return ps(!0),_.IG(xo,0);cu=_.ye(xo);_.nc(cu);_.ey(xo)})}
var K=m.isHighlighted;var W=m.suggestion;var L=m.onClickCallback;var A=m.onHoverUpdateCallback;var O=m.labels;var c=m.queryBuilderFunction;var u=m.onRemoveCallback;var h=m.suggestionIndex;var J=m.generateUniqueId;var N=m.highlightedId;var D=m.useScrollMargin;var t=m.isKeyboardMode;var a=null,v=null,I=null,Z=_.Q3("div"),k=_.Q3("span");m=_.g(_.g_(!1,void 0,"LafNkf"));var z=m.next().value,X=m.next().value,f=_.aP("a",function(Uo){Uo&&_.Km(237477,Uo,v,function(dK){v=dK})}),U=_.aP("button",function(Uo){Uo&&
_.Km(237477,Uo,v,function(dK){v=dK})}),l=_.aP("div",function(Uo){Uo&&_.Km(281939,Uo,I,function(dK){I=dK})}),Ls=_.dn(function(Uo){if((Uo==null?void 0:Uo.button)===2)return Uo.preventDefault(),!1;
var dK=_.gU();dK&&a&&_.bd(dK,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var cu;L(Uo,W().text,W().index,W().entityMid,Uo==null?void 0:(cu=Uo.detail)==null?void 0:cu.wasSelectedByKeyboard);return!1}),gd=function(){return W().type===35},Qf=function(){return _.F("desktop_enable_single_suggestion_highlight")},JV=function(){return _.U8("desktop_suggestions_panel_row_height")||0},DF=function(){var Uo;
return _.F("desktop_enable_new_video_metadata")&&((Uo=W())==null?void 0:Uo.hasNewVideo)===!0},kG=function(){return _.F("desktop_enable_visual_suggest")},eo=function(){return _.F("desktop_enable_entity_suggest")&&Ude(W())},xG=function(){return W().entitySubtitle},Ji=function(){return Qf()?(K==null?void 0:K())||lS()&&!(t==null?0:t()):(K==null?void 0:K())||lS()},rK=function(){var Uo=_.E8("SBOX_SETTINGS");
return gd()&&!(Uo==null?0:Uo.HIDE_REMOVE_LINK)},So=function(){return zGN(W(),{useEntityName:eo()})},ti,bS=!((ti=_.xS().resolve(_.fn(_.l_)))==null||!ti()),NG=function(){return gd()?_.F("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},EO=function(){return O==null?void 0:O().SUGGESTION_DISMISS_LABEL},gz=function(){return O==null?void 0:O().SUGGESTION_DISMISSED_LABEL};
m=_.g(_.g_(!1,void 0,"JyfUlf"));ti=m.next().value;var ps=m.next().value;m=_.g(_.g_(!1,void 0,"QKfAGe"));var ZF=m.next().value,DP=m.next().value,lS=ZF,Eo=_.dn(function(){c(k.value.innerText);return!1}),iq=_.dn(function(Uo){Uo.preventDefault();
return!1}),jy=_.dn(function(Uo){var dK=W().text,cu=_.E8("SBOX_SETTINGS"),xo="https://"+(cu.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
xo+="&delq="+encodeURIComponent(dK);(dK=cu==null?void 0:cu.PSUGGEST_TOKEN)&&(xo+="&tok="+dK);(cu=cu==null?void 0:cu.SESSION_INDEX)&&(xo+="&authuser="+cu);G(xo);Uo.preventDefault();(Uo=_.gU())&&v&&_.bd(Uo,v,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");u(h==null?void 0:h());return!1}),T4=_.dn(function(){if(Qf()&&(t==null?0:t()))return!1;
DP(!0);A(!0);return!1}),JD=_.dn(function(){DP(!1);
A(!1);return!1}),S0=_.dn(function(){X(!0);
return!1}),zG=_.dn(function(){X(!1);
return!1}),c2=_.dn(function(Uo){Uo.preventDefault();
if(W().entityThumbnailAttributionUrl){I&&_.fK(_.l1(),I);var dK=W().entityThumbnailAttributionUrl;Uo=W().entityName;var cu={dismissDialogEndpoint:{}};dK={commandExecutorCommand:{commands:[cu,{urlEndpoint:{url:dK,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:dK}}}]}};cu={buttonViewModel:{title:_.zq("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:cu}}};dK={buttonViewModel:{title:_.zq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:dK}}};Uo={dialogHeaderViewModel:{headline:{content:Uo!=null?Uo:_.zq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var xo={basicContentViewModel:{paragraphs:[{text:{content:_.zq("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Uo={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:Uo,footer:{panelFooterViewModel:{primaryButton:dK,
secondaryButton:cu,shouldHideDivider:!0}},content:xo}}}}};_.xS().resolve(_.S1).resolveCommand(Uo)}return!1});
m=_.g(_.g_("",void 0,"MvIBn"));var N6=m.next().value,pl=m.next().value;_.nn(function(){rK()&&pl(J==null?void 0:J(h==null?void 0:h()));Z.value&&_.Km(12453,Z.value,a,function(Uo){a=Uo})});
return _.r(_.p,{cond:ti,then:function(){var Uo={};return _.r("div",{class:_.VO("ytSuggestionComponentRemovedText",(Uo.ytSuggestionComponentLargerRemovedText=function(){return kG()},Uo)),
style:function(){return JV()>0?"height: "+JV()+"px;":""},
role:"button"},gz)},
else:function(){var Uo={},dK={};return _.r("div",{class:_.VO("ytSuggestionComponentSuggestion",(Uo.ytSuggestionComponentSuggestionHover=function(){return!Qf()},Uo.ytSuggestionComponentHighlighted=Ji,Uo.ytSuggestionComponentPersonalizedSuggestion=gd,Uo.ytSuggestionComponentMweb=!1,Uo.ytSuggestionComponentLargerSuggestion=function(){return DF()||kG()},Uo.ytSuggestionComponentThumbnailSuggestion=function(){return kG()},Uo.ytSuggestionComponentRoundedSuggestion=function(){return _.F("desktop_enable_scrollable_suggestions_panel")&&
_.F("desktop_enable_suggestions_panel_padding")},Uo.ytSuggestionComponentThumbnailPadding=function(){return kG()&&!gd()},Uo)),
style:function(){return JV()>0?"height: "+JV()+"px;":""},
role:"presentation","on:mousedown":Ls,"on:mouseover":T4,"on:mouseout":JD,el:Z},_.r("div",{class:_.VO("ytSuggestionComponentText",(dK.ytSuggestionComponentScrollMargin=D,dK)),"aria-label":function(){return DF()?W().text+" "+FCI:W().text},
id:function(){return J==null?void 0:J(h==null?void 0:h())},
"on:mousedown":Ls,role:"option"},_.r(_.p,{cond:function(){return W().type!==33},
then:function(){return _.r(_.fN,{icon:NG,className:"ytSuggestionComponentIcon"})}}),_.r("div",{class:"ytSuggestionComponentLeftContainer"},_.r("span",{el:k,
role:"button",tabindex:0},_.r(_.D0,{each:So},function(cu){return cu.bold?_.r("span",{class:"ytSuggestionComponentBold"},cu.text):_.r("span",null,cu.text)})),_.r(_.p,{cond:function(){return eo()&&!!W().entitySubtitle||DF()},
then:function(){return _.r("div",{class:"ytSuggestionComponentMetadataContainer"},_.r(_.p,{cond:function(){return eo()&&!!W().entitySubtitle},
then:function(){return _.r("div",{class:"ytSuggestionComponentEntitySubtitle"},xG)}}),_.r(_.p,{cond:function(){return DF()},
then:function(){return _.r("div",{class:"ytSuggestionComponentNewVideoContainer"},_.r("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.r("div",{class:"ytSuggestionComponentNewVideoText"},FCI))}}))}}))),_.r("div",{class:"ytSuggestionComponentRightContainer"},_.r(_.p,{cond:function(){return kG()&&W().visualSuggestUrl!==void 0},
then:function(){var cu={};return _.r("div",{class:"ytSuggestionComponentThumbnailContainer"},_.r("img",{"aria-label":QFe,class:_.VO("ytSuggestionComponentVisualSuggestThumbnail",(cu.ytSuggestionComponentCircularFrame=function(){return eo()&&W().subtypes.includes(790)},cu.ytSuggestionComponentEntitySuggestThumbnail=function(){return eo()},cu)),
src:function(){return W().visualSuggestUrl}}),_.r(_.p,{cond:function(){return eo()&&!!W().entityThumbnailAttributionUrl},
then:function(){var xo={};return _.r("span",{title:aPC,role:"tooltip"},_.r("div",{el:l,"on:mouseover":S0,"on:mouseout":zG,"on:mousedown":c2,class:_.VO("ytSuggestionComponentThumbnailOverlay",(xo.ytSuggestionComponentThumbnailOverlayHidden=function(){return!z()},xo))},_.r(_.fN,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.r(_.tw,null,_.r(_.Jw,{when:function(){return kG()&&rK()}},function(){var cu={};
return _.r("button",{class:_.VO("ytSuggestionComponentRemoveLinkClearButton",(cu.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return N6()&&N6()===(N==null?void 0:N())},cu.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Ji()},cu)),
el:U,"on:mousedown":jy,"aria-label":EO,id:function(){return N6()}},_.r(_.fN,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.r(_.Jw,{when:function(){return!(kG()&&W().visualSuggestUrl!==void 0)&&rK()}},function(){var cu={};
return _.r("a",{class:_.VO("ytSuggestionComponentRemoveLink",(cu.ytSuggestionComponentRemoveLinkDark=bS,cu.ytSuggestionComponentRemoveLinkSelected=function(){return N6()&&N6()===(N==null?void 0:N())},cu)),
el:f,"on:mousedown":jy,"aria-label":EO,tabindex:0,role:"button",id:function(){return N6()}},EO)}),_.r(_.Jw,{when:function(){return!1}},function(){return _.r("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Eo,"on:mousedown":iq,role:"button","aria-label":t0u},_.r(_.fN,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"il");var nkx=_.nY(["//www.google.com/textinputassistant/","/","_tia.js"]),blN=_.P(function(){return _.r("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.r("button",{class:"ytdTextInputAssistantButton","on:click":_.dn(function(){TdG().inputMethodsTracker.add(3);var m,G=(m=_.E8("SBOX_SETTINGS"))==null?void 0:m.REQUEST_LANGUAGE;if(G)return _.pJ(_.vE(nkx,14,G)),!1})},_.r("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"jl");var $G3;_.vke=function(){this.cache=new Map};
$G3=function(m){for(var G=_.g(m.cache.entries()),K=G.next();!K.done;K=G.next()){var W=_.g(K.value);K=W.next().value;W=W.next().value;W.suggestions.some(function(L){return L.type===35})&&m.cache.delete(K)}};var sFC=I8.SEARCH,qoo=I8.SEARCH_CLEAR_LABEL,Ekp=new _.sX("FAKE_SUGGEST_RESPONSE"),Hle=_.P(function(m){function G(){T4||(T4=setTimeout(function(){S0()},1E3))}
function K($k,v2,XE){if($k.trim()){jy=$k;_.qC("REFINEMENTS_TUPLE",void 0);Eo=!0;var Oe;v2=G4u(gz,v2);var FR=(Oe=m.searchEndpoint)==null?void 0:Oe.call(m);_.giP($k,v2,FR,ti.value.value,XE);S0();ti.value.value=$k;ti.value.blur();gz.reset()}}
function W($k){return _.Y(function(v2){return v2.return(new Promise(function(XE){var Oe=new XMLHttpRequest;Oe.open("GET",_.yVp($k),!0);Oe.withCredentials=!0;var FR=_.E8("SBOX_SETTINGS");(FR==null?0:FR.SEND_VISITOR_DATA)&&Oe.setRequestHeader("X-Goog-Visitor-Id",FR==null?void 0:FR.VISITOR_DATA);Oe.onload=function(){XE(Oe.responseText)};
Oe.onerror=function(){_.nc(Error("nm"));XE(null)};
setTimeout(function(){Oe.abort()},1E4);
Oe.send(null)}))})}
function L($k){var v2,XE,Oe,FR;return _.Y(function(C6){switch(C6.nextAddress){case 1:return v2={credentials:"include",headers:_.P6u()},window.AbortController&&(XE=new AbortController,setTimeout(function(){XE.abort("ytsbox-suggest-timeout")},1E4),v2.signal=XE.signal),_.IO(C6,2),C6.yield(fetch(_.yVp($k),v2),4);
case 4:Oe=C6.yieldResult.text();_.IG(C6,3);break;case 2:return FR=_.ye(C6),FR!=="ytsbox-abort-last"&&FR!=="ytsbox-suggest-timeout"&&_.nc(FR),C6.return(null);case 3:return C6.return(Oe)}})}
function A($k){var v2,XE,Oe;return _.Y(function(FR){switch(FR.nextAddress){case 1:if(v2=_.xS().resolve(_.fn(Ekp)))return FR.return(v2);XE=Date.now();G();return _.F("yt_searchbox_xhr")?FR.yield(W($k),5):FR.yield(L($k),4);case 4:Oe=FR.yieldResult;FR.jumpTo(3);break;case 5:Oe=FR.yieldResult;case 3:if(Oe){T4&&(clearTimeout(T4),T4=null);var C6=gz,yp=XE,XO=$k.query.length===0;yp=Date.now()-yp;XO?C6.zeroPrefixRoundTripTime=yp:(C6.JSC$22801_totalRoundTripTime+=yp,C6.maxRoundTripTime=Math.max(C6.maxRoundTripTime,
yp),XO=Math.floor(yp/100),XO>=KC3.length?++C6.roundTripTimeHistogram[9]:++C6.roundTripTimeHistogram[KC3[XO]])}return FR.return(Oe)}})}
function O($k){var v2,XE,Oe;return _.Y(function(FR){if(FR.nextAddress==1)return(v2=EO.cache.get(_.ddu($k)))?FR.return(v2):FR.yield(A($k),2);XE=FR.yieldResult;if(XE===null)return FR.return(null);Oe=new _.lFG(XE);$k.query.length===0&&Oe.suggestions.length===0||EO.cache.set(_.ddu($k),Oe);return FR.return(Oe)})}
function c($k){var v2,XE;return _.Y(function(Oe){if(Oe.nextAddress==1){iq=!1;var FR=jy;FR=_.bk()==="search"?(_.TF(location.href,"search_query")||_.TF(location.href,"q"))===FR:!1;v2=new _.Zsx($k,FR?jy:null);return Oe.yield(O(v2),2)}XE=Oe.yieldResult;if(XE===null)return Oe.return();v2.query.length===0&&(gz.zeroPrefixSuggestionCount=XE.suggestions.length);if(v2.id<=JD)return gz.outOfSyncResponseCount++,Oe.return();if(document.activeElement!==ti.value)return Oe.return();JD=v2.id;var C6=gz,yp=XE.rawResponse[2]||
{};C6.experimentTriggeredBeforeFinal||(C6.experimentTriggeredBeforeFinal=C6.experimentTriggeredFinal);C6.experimentTriggeredFinal=!!yp.e;gz.updateSuggestions(XE.suggestions);I(-1);xG([]);XE.suggestions!==t()&&X6(XE.suggestions.length);a(XE.suggestions);Ls(XE.suggestions.length>0&&XE.suggestions[0].type===33);NG&&(NG.hidden=XE.suggestions.length===0,l()?(NG.style.minWidth="",C6=NG.style,yp=(FR=t()[0])==null?void 0:FR.ignoredPrefix,C6.marginLeft=(yp?Math.min(yp.length*6,bS.value.offsetWidth):0).toString()+
"px"):(NG.style.minWidth=bS.value.offsetWidth+"px",NG.style.marginLeft="0"),ht());_.ey(Oe)})}
function u(){if(!Eo)return!1;var $k=_.E8("REFINEMENTS_TUPLE"),v2;return $k&&((v2=$k[1])==null?0:v2.length)?($k=$k[1].map(function(XE,Oe){return new RG4([XE,0,[71]],ti.value.value,Oe)}),t()!==$k&&X6($k.length),xG([]),a($k),gz.updateSuggestions($k),Eo=!1,NG.hidden=$k.length===0,iq=$k.length>0,!0):!1}
function h(){var $k=ti.value.value;(typeof $k==="string"||$k instanceof String)&&$k!==""?X(!0):X(!1)}
function J(){if(_.bk()==="search"){var $k=window.location.href;try{var v2=_.TF($k,"search_query")||_.TF($k,"q")||""}catch(XE){v2=""}v2&&(ti.value.value=v2,X(!0))}}
var N=_.g(_.g_([],void 0,"OC8EPc")),D=N.next().value;N=N.next().value;var t=D,a=N;D=_.g(_.g_(-1,void 0,"t2tVQb"));var v=D.next().value,I=D.next().value;D=_.g(_.g_(-1,void 0,"v0RZCe"));var Z=D.next().value,k=D.next().value;D=_.g(_.g_(!1,void 0,"rjAnI"));var z=D.next().value,X=D.next().value;D=_.g(_.g_(!1,void 0,"SyGLvb"));var f=D.next().value,U=D.next().value;N=_.g(_.g_(!1,void 0,"tL09Cb"));D=N.next().value;N=N.next().value;var l=D,Ls=N;N=_.g(_.g_(!1,void 0,"FlH7mc"));D=N.next().value;var gd=N.next().value;
N=_.g(_.g_(!1,void 0,"ea3fwe"));var Qf=N.next().value,JV=N.next().value;N=_.g(_.g_(1,void 0,"vSK1xe"));var DF=N.next().value,kG=N.next().value;N=_.g(_.g_([],void 0,"ijlw4b"));var eo=N.next().value,xG=N.next().value;N=_.g(_.g_(!1,void 0,"HcRey"));var Ji=N.next().value,rK=N.next().value;N=_.F("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var So=_.Q3("yt-searchbox"),ti=_.Q3("input"),bS=_.Q3("div"),NG,EO=
new _.vke,gz=TdG(),ps=_.xS().resolve(_.fn(_.l_)),ZF=function(){var $k;return(($k=m.forceDarkMode)==null?void 0:$k.call(m))||!(ps==null||!ps())},DP=function(){return _.F("desktop_enable_scrollable_suggestions_panel")},lS="i"+DGu++,Eo=!1,iq=!1,jy="",T4=null,JD=-1,S0=function(){xG([]);
a([]);Ls(!1);NG&&(NG.hidden=!0);T4&&(clearTimeout(T4),T4=null);I(-1)},zG=function($k,v2){$k.preventDefault();
rK(!0);NG&&(NG.hidden=!1);var XE=v();$k=t();var Oe=eo();v2=Og5(v2);XE+=v2;for(XE>=$k.length?XE=-1:XE<-1&&(XE=$k.length-1);XE!==-1&&(Oe.includes(XE)||XE>=$k.length||XE<0);)XE+=v2,XE>=$k.length&&(XE=-1);I(XE);v()>=0&&(ti.value.value=t()[v()].text,k(0),h(),$k=v(),Oe=Z(),(Oe=document.getElementById(xr[$k][Oe]))&&DP()&&($k===t().length-1?NG.scrollTop=NG.scrollHeight:Oe.scrollIntoView({block:"nearest",inline:"start"})))},c2=_.dn(function($k){if(!($k.relatedTarget instanceof Element&&$k.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){U(!0);
var v2;(v2=m.focusCallback)==null||v2.call(m,!0);u()||(iq?NG.hidden=!1:(_.Zw(So.value,"yt-autonav-pause-focus",{}),c($k.target.value)))}}),N6=_.dn(function($k){if(!($k.relatedTarget instanceof Element&&$k.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){U(!1);
var v2;(v2=m.focusCallback)==null||v2.call(m,!1);NG.scrollTop=0;NG.hidden=!0;_.Zw(So.value,"yt-autonav-pause-blur",{})}}),pl=function($k){$k=Og5($k);
var v2;((v2=xr[v()])==null?0:v2[Z()+$k])&&k(Z()+$k)},Uo=_.dn(function($k){var v2=$k.keyCode,XE=$k.target;
rK(!0);switch(v2){case 13:$k.preventDefault();var Oe;if((Oe=xr[v()])==null?0:Oe[Z()]){var FR;(FR=document.getElementById(xr[v()][Z()]))==null||FR.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}$k=$k.shiftKey?4:3;v2=gz;Oe=v();v2.selectedSuggestionIndex=Oe;K(XE.value,$k);break;case 27:NG&&(NG.hidden=!0);break;case 40:zG($k,40);break;case 38:zG($k,38);break;case 39:pl(39);break;case 37:pl(37);break;case 229:gz.inputMethodsTracker.add(4);break;default:gz.inputMethodsTracker.add(1),
mGN(gz)}return!1}),dK=_.dn(function($k){c($k.target.value);
h();DP()&&NG&&(NG.scrollTop=0);return!1}),cu=_.dn(function(){gz.inputMethodsTracker.add(2);
mGN(gz);return!1});
_.nn(function(){if(NG){gz.reset();if(window.ResizeObserver){var $k=new ResizeObserver(function(){l()||(NG.style.minWidth=bS.value.offsetWidth+"px")});
$k.observe(bS.value);(new ResizeObserver(function(){ht()})).observe(NG);
_.sZ(function(){$k.disconnect()})}J();
window.addEventListener("yt-navigate-finish",J);window.addEventListener("yt-focus-searchbox",function(){ti.value.focus()});
var v2;gd((v2=_.E8("SBOX_SETTINGS"))==null?void 0:v2.HAS_ON_SCREEN_KEYBOARD)}else _.am(new _.cw("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var xo=_.dn(function($k){$k.preventDefault();K(ti.value.value,12);return!1}),fl=_.dn(function($k){$k.preventDefault();
var v2,XE;(v2=ti)==null||(XE=v2.value)==null||XE.focus();var Oe,FR;((Oe=ti)==null?void 0:(FR=Oe.value)==null?void 0:FR.value)!==""&&(ti.value.value="",ti.value.dispatchEvent(new Event("input")));return!1}),Qi=_.dn(function(){var $k=VOz(ti.value.value,t().filter(function(v2){return v2.type!==35}).map(function(v2){return{label:v2.text}}));
_.dU(So.value,"yt-open-popup-action",[{openPopupAction:$k},document.body]);return!1}),ig=_.dn(function(){ti.value.focus();
return!1}),gx=function($k,v2,XE,Oe,FR){gz.selectedSuggestionIndex=XE;
K(v2,FR?3:1,Oe)},xl=function($k){ti.value.value=$k;
ti.value.dispatchEvent(new Event("input"));gz.inputMethodsTracker.add(5);mGN(gz,!0)},xr=[[]],Gf=function($k){var v2="searchbox-suggestion"+_.cZ(_.rA);
xr[$k].push(v2);return v2},X6=function($k){if(t()){xr=[[]];
for(var v2=0;v2<$k;v2++)xr.push([])}},ht=function(){if(DP()){var $k=NG,v2=$k.scrollTop;
$k=$k.scrollHeight-$k.clientHeight;JV(v2>=$k);v2=Math.abs($k-v2);v2<=40?kG(1-(40-v2)/40):kG(1)}},Td=function(){return"opacity: "+DF()*100+"%"},sd=_.dn(function(){ht();
return!1}),dd=_.dn(function(){rK(!1);
return!1}),l6,QX={},$5={},Ee={},Is={};
return _.r("yt-searchbox",{class:_.VO("ytSearchboxComponentHost",(QX.ytSearchboxComponentMweb=!1,QX.ytSearchboxComponentDesktop=!0,QX["yt-searchbox-filled-query"]=function(){return z()},QX["ytd-masthead"]=function(){return!f()},QX.ytSearchboxComponentHostDark=ZF,QX)),
role:"search",el:So,"client-ve-type":10349},_.r("div",{el:bS,"on:click":ig,class:_.VO("ytSearchboxComponentInputBox",($5.ytSearchboxComponentInputBoxDark=ZF,$5.ytSearchboxComponentInputBoxHasFocus=f,$5))},_.r("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":xo},_.r(_.p,{cond:f,then:function(){return _.r("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.r(_.fN,{icon:"SEARCH"}))}}),_.r("input",{el:ti,
class:_.VO("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":lS,"aria-expanded":!((l6=NG)==null?0:l6.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":N6,"on:focus":c2,"on:input":dK,"on:keydown":Uo,"on:paste":cu,placeholder:m.placeholderText,"aria-activedescendant":function(){var $k;return($k=xr[v()])==null?void 0:$k[Z()]},
"aria-autocomplete":"list",role:"combobox"})),_.r(_.p,{cond:D,then:function(){return _.r("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.r(blN,null))}}),_.r(_.p,{cond:z,
then:function(){return _.r("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.r("button",{class:"ytSearchboxComponentClearButton","on:click":fl,"aria-label":m.clearButtonAriaLabel||qoo},_.r(_.fN,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.r(_.EH,{model:{}})))}})),_.r("button",{class:_.VO("ytSearchboxComponentSearchButton",(Ee.ytSearchboxComponentSearchButtonDark=ZF,Ee)),
"on:click":xo,"aria-label":sFC,title:m.placeholderText},_.r(_.fN,{icon:"SEARCH"})),_.r(_.p,{cond:function(){if(cAW()&&_.F("mweb_voice_search")&&m.voiceSearchButton)return m.voiceSearchButton()},
then:function($k){var v2={};return _.r("div",{class:_.VO("ytSearchboxComponentVoiceSearchWrapper",(v2.ytSearchboxComponentHideVoiceSearchButton=function(){return z()},v2))},_.r(_.z$,{data:$k},{buttonRenderer:function(XE){return _.r(_.bv,{data:XE.data,
onButtonClickCallback:function(){}})}}))}}),_.r("div",{el:_.aC(function($k){return void(NG=$k)}),
id:lS,class:_.VO("ytSearchboxComponentSuggestionsContainer",(Is.ytSearchboxComponentSuggestionsContainerDark=ZF,Is["yt-searchbox-suggestions-container"]=!1,Is.ytSearchboxComponentSuggestionsContainerScrollable=DP(),Is.ytSearchboxComponentSuggestionsContainerAnimated=N,Is)),"on:scroll":sd,"on:mousemove":dd,role:"listbox",hidden:!0},_.r(_.D0,{each:t},function($k,v2){return _.r(oko,{suggestion:$k,isHighlighted:function(){return v2()===v()},
onClickCallback:gx,onHoverUpdateCallback:function(XE){if(_.F("desktop_enable_single_suggestion_highlight")){var Oe=v2();XE&&(k(0),I(Oe))}},
onRemoveCallback:function(XE){$G3(EO);XE===void 0||XE<0||eo().includes(XE)||xG([].concat(_.Bz(eo()),[XE]))},
labels:m.labels,queryBuilderFunction:xl,suggestionIndex:v2,generateUniqueId:Gf,highlightedId:function(){var XE;return(XE=xr[v()])==null?void 0:XE[Z()]},
useScrollMargin:DP(),isKeyboardMode:Ji})}),_.r(_.p,{cond:function(){return!l()&&t().find(function($k){return $k.type!==35})&&_.F("searchbox_reporting")},
then:function(){return _.r("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Qi},_.zq("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.r(_.p,{cond:function(){return!Qf()&&DP()},
then:function(){return _.r("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.r("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Td}))}})))},"ll");
Hle.idomCompat={callbacks:{focusCallback:!0}};_.sh(Hle,"yt-searchbox",{props:{searchEndpoint:_.Dd,placeholderText:_.Dd,labels:_.Dd,voiceSearchButton:_.Dd,focusCallback:_.nN,clearButtonAriaLabel:_.Dd,forceDarkMode:_.Dd}});var ML=function(){var m=_.d.apply(this,arguments)||this;m.menuButtonTargetId="topbar-guide-menu";m.narrow=!1;m.menuStrings={BACK_ALT_LABEL:_.zq("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.zq("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.zq("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.zq("SBOX_PLACEHOLDER",void 0,"Search")};m.pageDarkTheme=document.documentElement.hasAttribute("dark");m.watchPageScrollTop=0;m.theater=!1;m.fullscreen=!1;m.disableFrostedGlassDuringViewTransition=
!1;m.desktopUnifiedSearchPanelMode=_.F("desktop_enable_unified_search_panel");m.aiCompanionEnabled=_.F("enable_ai_companion");m.ytSearchboxFocused=!1;m.searchboxLabels=_.E8("SBOX_LABELS");m.topbarIsAboveChipbar=!1;m.isDarkThemeForced=!1;m.areGhostCardsHidden=!1;m.guideKeyboardToggle=!1;m.voiceSearchManager=ihs();m.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};m.setYtSearchboxFocused=function(G){m.ytSearchboxFocused=G};
m.toggleFrostedGlassDuringViewTransition=function(G){m.disableFrostedGlassDuringViewTransition=G};
return m};
_.n(ML,_.d);_.w=ML.prototype;_.w.computeSimpleText=function(m){return _.bw(m)};
_.w.onDarkChanged=function(){for(var m=_.g(this.buttons||[]),G=m.next();!G.done;G=m.next())G.value.isOverlay=!!this.dark;m=_.g(this.buttonRenderers||[]);for(G=m.next();!G.done;G=m.next())G.value.overrides=this.computeButtonOverride()};
_.w.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.w.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var m=_.Fi(_.tf(),"aa");_.dF(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||m||(this.isDarkThemeForced=this.dark=!0);this.logoType?(m=this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?m.setAttribute("slot","masthead-logo-old"):_.mX(m)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.xC(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.xC(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.w.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.xC(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.xC(this,this.onSetTheaterModeEnabled))};
_.w.dataChanged=function(){var m=this.data;m&&(this.voiceEnabled=m.voiceSearchButton?ihs().isSupported():!1,_.xV(_.Xi(),this.menuButtonTargetId,this.guideButton),m.onReceivedActions&&m.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.eD(this.hostElement,m.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&m&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.dF(this.hostElement,"dark",!1),_.dF(this.hostElement,"theater",!1),(m=
this.hostElement.querySelector("#masthead-logo"))&&(_.F("polymer_on_demand_shady_dom")?m.setAttribute("slot","masthead-logo-old"):_.mX(m))))};
_.w.computeCenterHidden=function(){var m;return this.data&&!((m=this.data.searchbox)==null?0:m.fusionSearchboxRenderer)};
_.w.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.dF(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.w.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.w.onWatchScroll=function(m){this.watchPageScrollTop=m.detail||0;this.updateMastheadBackgroundOpacity()};
_.w.onFullscreenChangeAction=function(m){m||(this.watchPageScrollTop=0);this.fullscreen=m;this.updateMastheadBackgroundOpacity()};
_.w.onSetTheaterModeEnabled=function(m){this.theater=m.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.w.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.fullscreen?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.w.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.w.setBackgroundOpacity=function(m){m=this.calculateBackgroundOpacity(m);this.background.style.opacity=""+m};
_.w.calculateBackgroundOpacity=function(m){var G=this.theater?.6:0,K=this.hostElement.clientHeight/2;return Math.min(Math.max(m,0),K)/K*(1-G)+G};
_.w.shouldShowCinematicMastHead=function(){var m=_.F("kevlar_watch_grid")&&!_.F("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(m||this.pageDarkTheme)};
_.w.focusGuide=function(){this.guideButton.focus()};
_.w.onGuideToggleTap=function(){_.Zw(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.w.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.w.onGuideToggleHover=function(){_.Zw(this.hostElement,"yt-guide-hover")};
_.w.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.w.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.w.closeOnOutsideClickCondition=function(m){for(m=_.ve(m);m[0];){var G=m.shift();if(G instanceof Element&&G.id==="kbd")return!1}return!0};
_.w.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.w.pausePlayer=function(){var m;(m=_.qW())==null||m.pause();this.pauseMiniplayer()};
_.w.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var m;(m=_.xS().resolve(_.pY).getPlayerElement())==null||m.pause()}};
_.w.isMiniplayerActive=function(){return _.xS().resolve(_.pY).isMiniplayerActive()};
_.w.updateNarrowFromBinding=function(m){this.narrow=m.detail.value};
_.w.onYtSendFeedbackAction=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.registerWithViewTransitionManager=function(){W7W(_.xS().resolve(_.TE),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.e_.Object.defineProperties(ML.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.F("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var m;return!!(this.aiCompanionEnabled&&((m=this.data)==null?0:m.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var m;return(m=this.data)==null?void 0:m.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
ML.prototype.narrowChanged=ML.prototype.narrowChanged;ML.prototype.onWatchPageChange=ML.prototype.onWatchPageChange;ML.prototype.onRendererStamperFinished=ML.prototype.onRendererStamperFinished;ML.prototype.dataChanged=ML.prototype.dataChanged;ML.prototype.onDarkChanged=ML.prototype.onDarkChanged;_.x([_.q(_.mH),_.S("design:type",Object)],ML.prototype,"ironResizableBehavior",void 0);_.x([_.q(cyu),_.S("design:type",Object)],ML.prototype,"ytdExpandableInputBehavior",void 0);
_.x([_.q(_.p9.YtdGuideStateAwareBehavior),_.S("design:type",Object)],ML.prototype,"ytdGuideStateAwareBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ML.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],ML.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.OW),_.S("design:type",Object)],ML.prototype,"ytdReduxBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"narrow",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"logoType",void 0);_.x([_.V(),_.S("design:type",Boolean)],ML.prototype,"voiceEnabled",void 0);
_.x([_.V(),_.S("design:type",Object)],ML.prototype,"menuStrings",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],ML.prototype,"dark",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ML.prototype,"pageDarkTheme",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"watchPageScrollTop",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.DSd}),_.S("design:type",Boolean)],ML.prototype,"isWatchPage",void 0);
_.x([_.V({reflectToAttribute:!0,selector:_.tBd}),_.S("design:type",Boolean)],ML.prototype,"isShortsPage",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ML.prototype,"theater",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ML.prototype,"fullscreen",void 0);_.x([_.V({reflectToAttribute:!0,selector:_.ojd}),_.S("design:type",String)],ML.prototype,"frostedGlassMode",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ML.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],ML.prototype,"aiCompanionEnabled",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"ytSearchboxFocused",void 0);_.x([_.zh("#buttons > *"),_.S("design:type",Array)],ML.prototype,"buttons",void 0);_.x([_.zh("ytd-button-renderer"),_.S("design:type",Array)],ML.prototype,"buttonRenderers",void 0);
_.x([_.UM("#background"),_.S("design:type",HTMLDivElement)],ML.prototype,"background",void 0);_.x([_.UM("#guide-button"),_.S("design:type",Object)],ML.prototype,"guideButton",void 0);_.x([_.UM("#logo"),_.S("design:type",Object)],ML.prototype,"logo",void 0);_.x([_.V({computed:"computeButtonOverride(dark)"}),_.S("design:type",Object)],ML.prototype,"buttonOverrides",void 0);
_.x([_.Mg("dark"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ML.prototype,"onDarkChanged",null);_.x([_.V({value:function(){return this.onVoiceTap.bind(this)}}),
_.S("design:type",Function)],ML.prototype,"boundOnTapVoiceButton",void 0);_.x([_.V(),_.S("design:type",Object)],ML.prototype,"topbarIsAboveChipbar",void 0);_.x([_.V(),_.S("design:type",String),_.S("design:paramtypes",[])],ML.prototype,"guideIcon",null);_.x([_.E("voiceEnabled"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ML.prototype,"shouldShowVoiceSearchButton",null);
_.x([_.E("data.aiCompanionButton","aiCompanionEnabled"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],ML.prototype,"shouldShowAiCompanionButton",null);_.x([_.E("data"),_.S("design:type",Object),_.S("design:paramtypes",[])],ML.prototype,"voiceSearchButton",null);_.x([_.E("aiCompanionEnabled"),_.S("design:type",String),_.S("design:paramtypes",[])],ML.prototype,"narrowQuery",null);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ML.prototype,"dataChanged",null);_.x([_.XC("yt-rendererstamper-finished"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ML.prototype,"onRendererStamperFinished",null);_.x([_.Mg("isWatchPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ML.prototype,"onWatchPageChange",null);
_.x([_.Mg("narrow"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],ML.prototype,"narrowChanged",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-masthead"})],ML);
_.y(ML,"ytd-masthead",function(){if(hBu!==void 0)return hBu;var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return hBu=m},{mode:2});var IPo;var jFC={},k4o={},CSG={},V04={},ZlC=(V04.OFFLINE=(jFC["publicytnetworkstatus-online"]="BACK_ONLINE",jFC),V04.ONLINE=(k4o["publicytnetworkstatus-offline"]="OFFLINE",k4o),V04.BACK_ONLINE=(CSG["publicytnetworkstatus-offline"]="OFFLINE",CSG.TIMER_TRIGGER="ONLINE",CSG),V04),T0=function(){var m=_.d.apply(this,arguments)||this;m.currentState="ONLINE";m.scheduledJobId=0;m.bannerString="";m.bannerVe=null;m.networkStatusManagerInstance=new _.k3;return m};
_.n(T0,_.d);_.w=T0.prototype;_.w.attached=function(){var m=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){m.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){m.stateChangeHandler("publicytnetworkstatus-offline")})};
_.w.detached=function(){var m=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){m.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){m.stateChangeHandler("publicytnetworkstatus-offline")})};
_.w.enterState=function(m){var G=this;this.scheduledJobId&&_.Fu.cancelJob(this.scheduledJobId);m==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):m==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.zq("NO_INTERNET_CONNECTION",void 0,"No internet connection")):m==="BACK_ONLINE"&&(this.bannerString=_.zq("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.rC(_.Fu,function(){G.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=m};
_.w.stateChangeHandler=function(m){(m=ZlC[this.currentState][m])&&this.enterState(m)};
_.w.logVisibility=function(m){var G=_.gU();this.createBannerVe(m);G&&this.bannerVe&&(m?_.a7(G,[this.bannerVe]):_.o7(G,[this.bannerVe]))};
_.w.createBannerVe=function(m){!this.bannerVe&&m&&(this.bannerVe=_.dq(37929),_.eM(_.l1(),this.bannerVe))};
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",String)],T0.prototype,"currentState",void 0);_.x([_.V(),_.S("design:type",Object)],T0.prototype,"scheduledJobId",void 0);_.x([_.V(),_.S("design:type",Object)],T0.prototype,"bannerString",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-network-status-banner"})],T0);
_.y(T0,"ytd-network-status-banner",function(){if(IPo!==void 0)return IPo;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return IPo=
m},{mode:1});var dGp;var m6=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};m.hidden=!0;m.frostedGlass=_.F("web_frosted_glass");return m};
_.n(m6,_.d);m6.prototype.computeHidden=function(m){return m&&m.status?!1:!0};
m6.prototype.handleUpdatePermissionRoleCommand=function(m){if(m=_.Q(m,_.TRl))if(m=_.Q(m.renderer,_.MdX))this.data=m};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],m6.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],m6.prototype,"componentBehavior",void 0);_.x([_.V({value:!0,computed:"computeHidden(data)"}),_.S("design:type",Object)],m6.prototype,"hidden",void 0);_.x([_.V(),_.S("design:type",Object)],m6.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],m6.prototype,"frostedGlass",void 0);
_.x([_.Ye({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],m6);
_.y(m6,"ytd-permission-role-bottom-bar-renderer",function(){if(dGp!==void 0)return dGp;var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);return dGp=m},{mode:1});var PSo;var yip;var cli={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Gr=function(){return _.d.apply(this,arguments)||this};
_.n(Gr,_.d);_.w=Gr.prototype;_.w.attached=function(){this.JSC$22905_scroller&&(this.JSC$22905_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22905_scroller.attached&&typeof this.JSC$22905_scroller.attached==="function"&&this.JSC$22905_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(K){K.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var m=_.VL(this.hostElement);m.querySelector("tp-yt-paper-radio-group").selected="";var G=m.querySelector("#reason-text");G&&(G.value="");m.querySelector("#description-text").value=""}};
_.w.canSubmit=function(m,G){_.Zw(this.hostElement,"yt-invalidate-popup-tabbables");return!(m&&G)};
_.w.onCancel=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.w.onSubmit=function(){var m=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(A){return A.active}).map(function(A){return A.innerText.trim()}),G=this.hostElement.querySelector("tp-yt-paper-radio-group"),K=G.selectedItem,W=K.name;
K=K.innerText.trim();var L=G.querySelector("#reason-text");G=void 0;L&&(G=L.value);(L=this.descriptionText.value)&&(L=L.trim());YA6(this.data.searchQuery,m,W,K,L,G);_.dU(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.w.sendFormSubmitToast=function(){var m=_.Ev(_.zq("SBOX_INAPPROPRIATE_TOAST"));_.dU(this.hostElement,"yt-open-popup-action",[m,this])};
_.w.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(m){return m.active})};
_.w.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Gr.prototype.onIronSelect=Gr.prototype.onIronSelect;Gr.prototype.onIronChange=Gr.prototype.onIronChange;Gr.prototype.dataChanged=Gr.prototype.dataChanged;_.x([_.V(),_.S("design:type",Object)],Gr.prototype,"data",void 0);_.x([_.V({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.S("design:type",Boolean)],Gr.prototype,"submitDisabled",void 0);_.x([_.V(),_.S("design:type",Boolean)],Gr.prototype,"suggestionSelected",void 0);
_.x([_.V(),_.S("design:type",Boolean)],Gr.prototype,"catagorySelected",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],Gr.prototype,"JSC$22905_scroller",void 0);_.x([_.UM("#description-text"),_.S("design:type",Object)],Gr.prototype,"descriptionText",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gr.prototype,"dataChanged",null);
_.x([_.XC("iron-change"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gr.prototype,"onIronChange",null);_.x([_.XC("iron-select"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Gr.prototype,"onIronSelect",null);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Gr);
_.y(Gr,"ytd-search-suggestion-report-dialog",function(){if(yip!==void 0)return yip;var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return yip=m},{mode:1});var Ky=function(m){var G=m.openPopupAction;var K=m.target;var W=m.container;var L=m.popupContainerConfig;var A=m.getElement;m=m.removeWhenClosed===void 0?!1:m.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=G;this.target=K;this.container=W;this.popupContainerConfig=L;this.getElement=A;this.JSC$22911_popupConfig=this.popupContainerConfig.JSC$21593_popupConfig[this.openPopupAction.popupType];this.rendererName=(G=this.getName())?_.bQd(G,Im6(this.popupContainerConfig,
G)):"";_.F("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=m);this.createPopup()};
Ky.prototype.updatePopup=function(m){this.openPopupAction=m;this.JSC$22911_popupConfig=this.popupContainerConfig.JSC$21593_popupConfig[this.openPopupAction.popupType];eBp(this);_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Ky.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var X2x=function(m,G,K){(G=G&&m.JSC$22911_popupConfig.narrowProperties?m.JSC$22911_popupConfig.narrowProperties:m.JSC$22911_popupConfig.properties)&&K!==void 0&&(G.isAriaModal=K);fPC(m,G);m.isRtl()&&fPC(m,m.JSC$22911_popupConfig.rtlProperties);xGG(m)};
Ky.prototype.createPopup=function(){var m=this.JSC$22911_popupConfig.component;if(this.popupContent=Sou(this,this.rendererName)){if(m){this.popup=Sou(this,m);var G=this.popupContent;_.F("web_enable_wrapper_for_cow_component_in_popup")&&(G=document.createElement("div"),G.appendChild(this.popupContent));_.F("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$22911_popupConfig.slotName&&G.setAttribute("slot",this.JSC$22911_popupConfig.slotName);m=this.popup;var K=this.container.tagName.toLowerCase(),
W=_.qg(G);_.CPd(_.He(m),_.jb(G,K,W));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.F("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.VL(this.container).appendChild(this.popup)}};
var eBp=function(m){var G,K,W=(G=m.openPopupAction.accessibilityData)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label;W&&(m.popup.ariaLabel=W);var L;((L=m.popupContent.polymerController)!=null?L:m.popupContent).data=(0,_.Y2.unsafeClone)(m.openPopupAction.popup[m.getName()]);m.popupContent.duration=RB7(m);m.popupContent.positionType=m.openPopupAction.position;var A=m.openPopupAction.properties;A&&Object.keys(A).forEach(function(O){m.popupContent[O]=A[O]})},fPC=function(m,G){if(G)for(var K=
_.g(Object.keys(G)),W=K.next();!W.done;W=K.next())W=W.value,m.popup[W]=G[W]},xGG=function(m){if(m.openPopupAction.position){var G=m.JSC$22911_popupConfig.positionalProperties&&m.JSC$22911_popupConfig.positionalProperties[m.openPopupAction.position],K=m.JSC$22911_popupConfig.rtlPositionalProperties&&m.JSC$22911_popupConfig.rtlPositionalProperties[m.openPopupAction.position];
G=m.isRtl()&&K?K:G;G.shiftedHorizontalOffset&&(K=m.popup.style.display,m.popup.style.display="block",m.popupContent&&m.popup.positionTarget&&m.popupContent.clientWidth>m.popup.positionTarget.clientWidth&&(G.horizontalOffset=m.popup.positionTarget.clientWidth/2-G.shiftedHorizontalOffset),m.popup.style.display=K);fPC(m,G)}},UGe=function(m,G,K){if(G){for(var W=_.g(Object.keys(G)),L=W.next();!L.done;L=W.next())L=L.value,m.popup.style[L]=G[L];
if(K)for(G=_.g(Object.keys(K)),W=G.next();!W.done;W=G.next())W=W.value,m.popup.style[W]=K[W]}};
Ky.prototype.getName=function(){return _.vO(this.openPopupAction.popup,"renderer")||_.vO(this.openPopupAction.popup,"dialog")||_.vO(this.openPopupAction.popup,"model")||void 0};
var RB7=function(m){m=m.openPopupAction.durationHintMs;return m===0?m:Math.max(4E3,m||4E3)};
Ky.prototype.isRtl=function(){return _.E8("HTML_DIR")==="rtl"};
var Sou=function(m,G){m=m.getElement(G,m.target);m==null&&_.nc(new _.cw("popup getElement returned null",G));return m};var zBp={};
zBp.YtPopupContainerBehavior=[_.cq.YtComponentBehavior,_.Pq.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.expandToFullWidth=this.isAriaModal=!1;this.doNotCacheList_=["yt-dialog-view-model"]},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.q$(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.EB(this.hostElement)},
closePopup:function(m){var G=this.createCacheKey(void 0,m);this.popups_[G]&&this.handleClosePopupAction_(void 0,m)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Fu.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Fu.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(m){m.opened&&m.keepBelowPlayer&&this.ensurePopupBelowPlayer(m)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var m in this.popups_){var G=this.popups_[m];if(G.popup.scrollAction==="refit"){var K=G.popup.positionTarget.getBoundingClientRect(),W=G.popup;K=K.top;var L=G;if(!L.naturalHeight){L.popup.hidden=!1;L.popup.style.position="fixed";L.popup.style.top="0px";L.popup.style.left="0px";var A=L.popup.getBoundingClientRect();L.naturalHeight=A.bottom-A.top;L.popup.refit()}W.hidden=!(K>=L.naturalHeight+60);G.popupContent.clientHeight===0&&G.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(m){this.popupContainerConfig=m},
handleOpenPopupAction:function(m,G,K){var W=m.openPopupAction,L=_.xS().resolve(_.fn(_.nR))&&W.popupType==="TOAST";L&&!W.uniqueId&&(W.uniqueId=lH());if(!_.F("popup_container_parent_target_killswitch")){var A;G=(A=this.getParentTarget(G))!=null?A:G}var O=this.ensurePopup_(W,G);return new _.iO(function(c){O.then(function(u){if(!u)return c();this.maybeCreateNarrowMediaQuery_();var h=this.createCacheKey(u.rendererName,u.openPopupAction.uniqueId);if(W.showOncePerUniqueId){if(this.shownPopupKeys_.has(h))return c();
this.shownPopupKeys_.add(h)}h=this.popups_[h];var J=!(!h||!h.openPopupAction.beReused);J=!!W.reusePopup||J;if(u.popup.opened&&!J){L&&!u.openPopupAction.replacePopup||this.handleClosePopupAction_(u.rendererName,u.openPopupAction.uniqueId);J=W.popupType==="DIALOG"&&!_.F("popup_container_dialog_reopen_killswitch");if(!L&&!J&&h&&h.target==G&&(_.F("popup_container_event_target_check_killswitch")||h.target==K)&&!u.openPopupAction.replacePopup)return c();_.Pv(u.popup,function(){this.completeOpenPopupAction_(W,
G,u);c()}.bind(this))}else u.popup.opened?u.updatePopup(W):this.completeOpenPopupAction_(W,G,u),c()}.bind(this))}.bind(this))},
getParentTarget:function(m){if(m&&m instanceof HTMLElement)for(var G=_.g(Object.entries(this.popups_)),K=G.next();!K.done;K=G.next())if(K=_.g(K.value),K.next(),K=K.next().value,this.popupClosesOnClick(K)&&K.popup.contains(m))return K.target},
popupClosesOnClick:function(m){return m.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER","YTCP-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER"].includes(m.rendererName.toUpperCase())},
completeOpenPopupAction_:function(m,G,K){K.updatePopup(m);var W=this.narrowMediaQuery_.queryMatches,L=this.isAriaModal;m=this.expandToFullWidth;K.target=G;var A;G=((A=K.target.polymerController)!=null?A:K.target).popupPositionTarget||K.target;K.JSC$22911_popupConfig.targetContainer&&(G=K.container);K.popup.positionTarget=G;K.popupContent.positionTarget=G;xGG(K);K.JSC$22911_popupConfig.forceFocus&&(K.popupContent.style.outline="none");K.popupContent.tabIndex=-1;K.JSC$22911_popupConfig.narrowProperties&&
(K.popup.style.position="static");K.JSC$22911_popupConfig.preventAutonav&&K.popup.setAttribute("prevent-autonav",!0);K.JSC$22911_popupConfig.forceCloseOnOutsideClick&&K.popup.setAttribute("force-close-on-outside-click",!0);X2x(K,W,L);A={};A.width=m?"100%":"";UGe(K,K.JSC$22911_popupConfig.styles,A);K.isRtl()&&UGe(K,K.JSC$22911_popupConfig.rtlStyles,A);if(!K.openPopupAction.shouldStopParentSignal){var O;m=(O=K.target.polymerController)!=null?O:K.target;(K.popupContent.startForwardingEvents||K.popupContainerConfig.forwardingEnabledPopups.has(K.rendererName))&&
m.parentComponent!==K.popupContent&&K.popupContent!==K.target&&K.target!==document.body&&(K.popupContent.startForwardingEvents?K.popupContent.startForwardingEvents(K.popupContainerConfig.forwardedEvents,K.target):(K.JSC$22911_eventForwarder||(K.JSC$22911_eventForwarder=new _.eq(K.popupContent)),K.JSC$22911_eventForwarder.start(K.popupContainerConfig.forwardedEvents,K.target)))}K=K.popup;K.addEventListener("iron-overlay-opened",_.xC(this,this.onPopupIronOverlayOpened_));K.addEventListener("iron-overlay-closed",
_.xC(this,this.onPopupIronOverlayClosed_));K.addEventListener("iron-overlay-canceled",_.xC(this,this.onPopupIronOverlayCanceled_));K.addEventListener("yt-refit",_.xC(this,this.refitPopup_));K.addEventListener("yt-invalidate-popup-tabbables",_.xC(this,this.handleInvalidatePopupTabbables_));K.open()},
getPopupDurationMs_:function(m){return m.durationHintMs===0?m.durationHintMs:Math.max(4E3,m.durationHintMs||4E3)},
handleClosePopupAction_:function(m,G){var K=_.F("web_popup_cache_key_killswitch")||!!G;if(m||K){var W=this.createCacheKey(m,G);m=(m=this.popups_[W])&&m.popup}else m=_.MZP(_.hp);if(m&&m.close){if(G=_.xS().resolve(_.fn(_.sH)))m.restoreFocusOnClose=G.isKeyBoardInUse();if(m&&m.positionTarget&&!_.F("ytpopup_close_sibling_popups_killswitch")){G=_.g(Object.entries(this.popups_));for(K=G.next();!K.done;K=G.next()){var L=_.g(K.value);K=L.next().value;L=L.next().value;var A=void 0,O=void 0,c=void 0,u=void 0,
h=void 0,J=void 0;m.positionTarget==((A=L)==null?void 0:(O=A.popupContent)==null?void 0:O.positionTarget)&&L.popup&&(!((c=L.popup)==null?0:(u=c.style)==null?0:u.display)||((h=L.popup)==null?void 0:(J=h.style)==null?void 0:J.display)!=="none")&&(A=void 0,(A=L.popup)==null?0:A.close)&&(L.popup.close(),this.removePopup_(L.popup,K))}m&&this.popups_[W]&&(m.close(),this.removePopup_(m,W))}else m.close(),this.removePopup_(m,W)}},
handleClosePopupCommand_:function(m){m.closePopupCommand&&m.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,m.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(m){var G={},K;for(K in this.popups_)if(G={key$jscomp$1247:G.key$jscomp$1247},G.key$jscomp$1247=K,!m||!m.some(function(A){return function(O){return O==A.key$jscomp$1247}}(G))){var W=this.popups_[G.key$jscomp$1247],L=W.popup;
_.xS().resolve(_.fn(_.nR))&&W.openPopupAction.popupType==="TOAST"||(L&&L.close&&L.close(),this.removePopup_(L,G.key$jscomp$1247))}},
handleClosePopupsAction_:function(m){m.forEach(function(G){var K=this.popups_[G];K&&((K=K.popup)&&K.close&&K.close(),this.removePopup_(K,G))}.bind(this))},
handleGetPopupOpenedAction_:function(m,G){return(G=this.createCacheKey(m,G))&&this.popups_[G]?this.popups_[m].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var m=[],G;for(G in this.popups_){var K=this.popups_[G];K.popup.opened&&m.push(K)}return m},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(m,G){_.F("ytpopup_disable_default_html_caching")&&m&&m.removeWhenClosed&&(_.VL(this.hostElement).removeChild(m),G&&this.popups_[G]&&delete this.popups_[G])},
shouldReusePopup_:function(m){return!(!m||!m.reusePopup)||!(!m||!m.beReused)},
ensurePopup_:function(m,G){this.maybeCreateNarrowMediaQuery_();var K=_.vO(m.popup,"renderer")||_.vO(m.popup,"dialog")||_.vO(m.popup,"model");if(!K)return _.fJ();K=_.bQd(K,Im6(this.popupContainerConfig,K));return _.fJ(this.getAndMaybeCreatePopup_(m,K,G))},
getAndMaybeCreatePopup_:function(m,G,K){var W=this.createCacheKey(G,m.uniqueId);if(this.popups_[W])return this.popups_[W];m=new Ky({openPopupAction:m,target:K,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(G)});return this.popups_[W]=m},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(m){return _.F("ytpopup_disable_default_html_caching")?_.F("ytpopup_disable_cache_allowlist")?m&&this.doNotCacheList_.includes(m):m&&m.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",_.xC(this,this.openPopupQueryMatchesChanged_)),_.VL(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(m){m=m.detail.value;for(var G in this.popups_)X2x(this.popups_[G],m)},
onPopupIronOverlayClosed_:function(m){var G=m.currentTarget,K=_.Gmf(G);K=K.length>0?K[0]:G;if(K.is!=="ytd-reel-watch-while-dialog-renderer"||m.target.is!=="tp-yt-iron-dropdown"){m.detail.popup=G;m.detail.popupRenderer=K;var W,L={context:{openingElement:((W=this.popups_[(K==null?void 0:K.is)||""])==null?void 0:W.target)||void 0}};Object.assign(L,m.detail);var A;_.Zw((A=K.hostElement)!=null?A:K,"yt-popup-closed",L);G.removeEventListener("yt-refit",_.xC(this,this.refitPopup_));G.removeEventListener("yt-invalidate-popup-tabbables",
_.xC(this,this.handleInvalidatePopupTabbables_));G.removeEventListener("iron-overlay-canceled",_.xC(this,this.onPopupIronOverlayCanceled_));G.removeEventListener("iron-overlay-closed",_.xC(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(G)}},
onPopupIronOverlayCanceled_:function(m,G){var K=m.currentTarget,W=_.Gmf(K);W=W.length>0?W[0]:K;if(W.is!=="ytd-reel-watch-while-dialog-renderer"||m.target.is!=="tp-yt-iron-dropdown"){var L;_.Zw((L=W.hostElement)!=null?L:W,"yt-popup-canceled",m.detail);L=G?_.ve(G):null;(!G||["click","tap"].includes(G.type))&&!K.hasAttribute("force-close-on-outside-click")&&K.positionTarget&&L&&L.includes(K.positionTarget)&&m.preventDefault();K.restoreFocusOnClose=_.x4.keyboardEventMatchesKeys(G,"esc")}},
onPopupIronOverlayOpened_:function(m){m=m.currentTarget;var G=_.Gmf(m);G=G.length>0?G[0]:m;var K,W;_.Zw((K=G.hostElement)!=null?K:G,"yt-popup-opened",(W=G.hostElement)!=null?W:G);m.keepBelowPlayer&&(this.ensurePopupBelowPlayer(m,!0),this.dynamicallyPositionedElements_.add(m));K=_.xS().resolve(_.fn(_.sH));W=!!G.querySelector("#toast");K&&K.isKeyBoardInUse()&&!W&&(typeof G.focusFirstItem==="function"?G.focusFirstItem():(G=_.z0G(m),G.length&&G[0].focus()));m.removeEventListener("iron-overlay-opened",
_.xC(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(m){m=m.currentTarget;m.refit&&m.refit()},
refitPopups_:function(){for(var m in this.popups_)this.popups_[m].refit()},
handleInvalidatePopupTabbables_:function(m){m=m.currentTarget;m.invalidateTabbables&&m.invalidateTabbables()},
createCacheKey:function(m,G){return _.F("web_popup_cache_key_killswitch")?G?m+"#"+G:m:G?"#"+G:m},
openSheet:function(m,G,K){var W=m==null?void 0:m.openPopupActionCommand;if(!W&&(m==null?0:m.viewModel)){if(m.sheetPosition)a:switch(m.sheetPosition){case "SHEET_POSITION_RIGHT":W="OPEN_POPUP_POSITION_RIGHT";break a;default:W="OPEN_POPUP_POSITION_UNKNOWN"}else W=void 0;W={openPopupAction:{popup:{sheetViewModel:m.viewModel},popupType:"CONTEXTUAL_SHEET",position:W}}}if(W){var L;this.expandToFullWidth=(L=m==null?void 0:m.expandToFullWidth)!=null?L:!1;this.handleOpenPopupAction(W,G,K===void 0?G:K)}},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var m=this;return _.Y(function(G){return G.return(m.handleGetOpenedPopupsAction_().filter(function(K){var W;return((W=K.openPopupAction)==null?void 0:W.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(m,G,K){if(_.F("web_dialog_utils_killswitch")){var W=m==null?void 0:m.openPopupActionCommand,L=(K==null?0:K.ariaLabel)?{accessibilityData:{accessibilityData:{label:K.ariaLabel}}}:void 0;!W&&(m==null?0:m.viewModel)&&(W={openPopupAction:Object.assign({},{popup:{dialogViewModel:m.viewModel},popupType:(K==null?0:K.isModal)?"MODAL":"DIALOG"},L&&L)});W&&this.handleOpenPopupAction(W,G)}else{if(L=m==null?void 0:m.viewModel){var A=K=K===void 0?{}:K;K=A.ariaLabel;L={popup:{dialogViewModel:L},
popupType:A.isModal?"MODAL":"DIALOG"};A={accessibilityData:{label:K}};K&&(L.accessibilityData=A);L={openPopupAction:L}}else L=void 0;if(L=(W=L)!=null?W:m==null?void 0:m.openPopupActionCommand)this.isAriaModal=_.F("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(L,G)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var m=this;return _.Y(function(G){return G.return(m.handleGetOpenedPopupsAction_().filter(function(K){var W;return((W=K.openPopupAction)==null?void 0:W.popupType)==="DIALOG"}).length>0)})}}];var lPe;var BKe;var M03=_.nY(["about:blank"]),W1=function(){var m=_.d.apply(this,arguments)||this;m.isMuted=!1;m.pageLoadTimeoutId=void 0;m.enableA11yFocusFix=_.F("enable_a11y_focus_fix_for_mac_panel_on_desktop");m.moveFocusToContent=function(){m.iframe.focus()};
return m};
_.n(W1,_.d);_.w=W1.prototype;_.w.dataChanged=function(){var m=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var G=this.data.url,K=_.Ql(G);_.F("enable_yt_ata_iframe_authuser")?(K=_.Ql(G),_.w5(this.iframe,rl5(K))):_.w5(this.iframe,K);this.pageLoadTimeoutId=_.rC(_.AA(),function(){return void m.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.Po({destination:window,iframe:this.iframe,origin:_.zLJ(K.toString()),channelName:"ataiframe",onMessage:_.tyk(epu,function(W){fTP(W.data)?(W=_.mu(W.data,1,_.Y5,_.Vp()),W.length!==1?_.nc(Error("om")):(W=W[0],W===3?(m.isMuted=!0,m.logStateChanged({adMuteRequested:!0})):W===1&&m.close())):_.nc(Error("pm"))}),
onEstablished:function(){m.cancelPageLoadTimeout();m.logStateChanged({pageLoadSucceeded:!0})}})}};
_.w.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.AA().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.w.logStateChanged=function(m){var G;if((G=this.data)==null?0:G.trackingParams)m={adsClientData:{aboutThisAdData:m}},_.l1().stateChanged(this.data.trackingParams,m)};
_.w.close=function(){_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.handlesPopupClosed=function(m,G){var K=this,W,L;return _.Y(function(A){if(A.nextAddress==1)return _.E8("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.dU(K.hostElement,"on-about-this-ad-popup-closed",[K.isMuted,G]),A.jumpTo(0)):m&&u5P(m)?A.yield(h0u(m),4):(K.isMuted&&_.dU(K.hostElement,"yt-mute-ad-action",[K.is,K]),A.jumpTo(0));if(W=A.yieldResult){var O=L=new _.Ae(W),c=K.isMuted;O.getOptions().includes("onAboutThisAdPopupClosed")?_.S24(O,"onAboutThisAdPopupClosed",{isMuted:c,layoutId:G}):_.F9("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.ey(A)})};
_.w.onPopupClosed=function(m){var G=this,K,W;return _.Y(function(L){K=_.vE(M03);_.w5(G.iframe,K);G.cancelPageLoadTimeout();if(!G.data)return L.jumpTo(0);G.ytRendererBehavior.markDirty();W=m.detail.context.openingElement;return L.yield(G.handlesPopupClosed(W,G.data.layoutId),0)})};
_.w.detached=function(){this.cancelPageLoadTimeout()};
_.w.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
W1.prototype.onPopupClosed=W1.prototype.onPopupClosed;W1.prototype.dataChanged=W1.prototype.dataChanged;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.x([_.UM("#iframe"),_.S("design:type",HTMLIFrameElement)],W1.prototype,"iframe",void 0);_.x([_.V(),_.S("design:type",Object)],W1.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],W1.prototype,"dataChanged",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype",Promise)],W1.prototype,"onPopupClosed",null);_.x([_.cL({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],W1);
_.y(W1,"yt-about-this-ad-renderer",function(){if(BKe===void 0){var m=document.createElement("template");_.b(m,'\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><template is="dom-if" if="[[enableA11yFocusFix]]" restamp="" class="style-scope yt-about-this-ad-renderer"><div id="focusTrapEnd" tabindex="0" on-focus="moveFocusToContent" class="style-scope yt-about-this-ad-renderer"></div></template>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;lPe===void 0&&(lPe=document.createElement("template"));var W=lPe;K.call(G,W.content.cloneNode(!0),m.content.firstChild);BKe=m}m=BKe;return m},{mode:2});var TKe;var m6e;var iPu=function(m){var G=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.maxFileSizeMB=m;Object.setPrototypeOf(this,iPu.prototype)};
_.n(iPu,Error);var GGg=function(m,G){var K=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=K.message;"stack"in K&&(this.stack=K.stack);this.minWidth=m;this.minHeight=G;Object.setPrototypeOf(this,GGg.prototype)};
_.n(GGg,Error);var KD3=function(m){this.requirements=m;this.JSC$22939_maxFileSize=m.maxFileSizeMB*1024*1024},WDe=function(m,G){if(G.size>m.JSC$22939_maxFileSize)throw new iPu(m.requirements.maxFileSizeMB);
};var LDN=function(m,G){this.canvas=m;this.imageEditorBuilder=G};
LDN.prototype.addEventListeners=function(m){var G=function(L){ADe(m,L)};
this.JSC$22945_mouseDownEvent=G;var K=function(L){wug(m,L)};
this.JSC$22945_mouseMoveEvent=K;var W=function(){g5O(m)};
this.JSC$22945_mouseUpEvent=W;this.canvas.addEventListener("mousedown",G);this.canvas.addEventListener("mousemove",K);document.addEventListener("mouseup",W)};
LDN.prototype.removeEventListeners=function(){this.JSC$22945_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$22945_mouseDownEvent);this.JSC$22945_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$22945_mouseMoveEvent);this.JSC$22945_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$22945_mouseUpEvent)};
var OPo=function(m,G){m.removeEventListeners();return new Promise(function(K){var W=new Image;W.crossOrigin="anonymous";W.onload=function(){var L=m.imageEditorBuilder(m.canvas,W);m.addEventListeners(L);K(L)};
W.src=G})},Ly=function(m,G,K,W,L,A,O,c){this.canvas=m;
this.image=G;this.requiredRatio=K;this.minImageCropDimension=W;this.minOutputImageResolution=L;this.component=A;this.styleFocusedCorner=c===void 0?!0:c;this.action=2;this.focusedCorner=this.resizeCorner=0;m=this.canvas.getContext("2d");if(!m)throw Error("qm");this.ctx=m;this.canvasMargin=O!=null?O:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;O=this.image;m=this.canvasInnerWidth/O.width;O.height*m>912&&(m=O.width/O.height*912/O.width);O=m;this.scaledImageWidth=this.canvas.width%2?
Jls(this.image.width*O):po6(this.image.width*O);this.scaledImageHeight=Math.round(this.image.height*O);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$22948_overlayMarginBottom=this.JSC$22948_overlayMarginTop=this.canvasMargin;this.JSC$22948_overlayMarginRight=this.JSC$22948_overlayMarginLeft=this.horizontalMargin;this.JSC$22948_overlayWidth=this.scaledImageWidth;this.JSC$22948_overlayHeight=this.scaledImageHeight;
m=this.image.width/this.image.height;m>this.requiredRatio?(this.JSC$22948_overlayWidth=this.canvas.width%2?Jls(this.scaledImageHeight*this.requiredRatio):po6(this.scaledImageHeight*this.requiredRatio),this.JSC$22948_overlayMarginRight=this.JSC$22948_overlayMarginLeft=(this.canvas.width-this.JSC$22948_overlayWidth)/2):m<this.requiredRatio&&(this.JSC$22948_overlayHeight=this.canvas.height%2?Jls(this.scaledImageWidth/this.requiredRatio):po6(this.scaledImageWidth/this.requiredRatio),this.JSC$22948_overlayMarginBottom=
this.JSC$22948_overlayMarginTop=(this.canvas.height-this.JSC$22948_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*O,this.scaledImageWidth);cDe(this)};
Ly.prototype.getContext=function(){return this.ctx};
var ADe=function(m,G){G={x:Math.round(G.pageX-m.canvas.getBoundingClientRect().left),y:Math.round(G.pageY-m.canvas.getBoundingClientRect().top)};m.dragStart=G;YOg(m,G)!==0?(m.action=1,rDN(m,G),m.resizeCorner=YOg(m,G)):G.x>m.JSC$22948_overlayMarginLeft&&G.x<m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth&&G.y>m.JSC$22948_overlayMarginTop&&G.y<m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight&&(m.action=0)},uEe=function(m,G){switch(G){case 1:return{x:m.JSC$22948_overlayMarginLeft,
y:m.JSC$22948_overlayMarginTop};case 2:return{x:m.JSC$22948_overlayMarginLeft,y:m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight};case 3:return{x:m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth,y:m.JSC$22948_overlayMarginTop};case 4:return{x:m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth,y:m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight};default:throw Error("rm");}},puG=function(m,G){if(m.focusedCorner!==0){m.dragStart=uEe(m,m.focusedCorner);
m.action=1;m.resizeCorner=m.focusedCorner;var K=m.dragStart.x,W=m.dragStart.y;switch(G){case 0:m.focusedCorner===1||m.focusedCorner===4?(K-=10,W-=10):(K-=10,W+=10);break;case 1:m.focusedCorner===1||m.focusedCorner===4?(K+=10,W+=10):(K+=10,W-=10);break;case 2:K=m.focusedCorner===1||m.focusedCorner===4?K-10:K+10;W-=10;break;case 3:K=m.focusedCorner===1||m.focusedCorner===4?K+10:K-10;W+=10;break;default:throw Error("sm");}h6g(m,{x:K,y:W});cDe(m);m.action=2;m.dragStart=void 0}},wug=function(m,G){G={x:Math.round(G.pageX-
m.canvas.getBoundingClientRect().left),
y:Math.round(G.pageY-m.canvas.getBoundingClientRect().top)};rDN(m,G);switch(m.action){case 1:h6g(m,G);break;case 0:m.dragStart&&(m.JSC$22948_overlayMarginLeft=Math.max(m.horizontalMargin,Math.min(m.JSC$22948_overlayMarginLeft-(m.dragStart.x-G.x),m.horizontalMargin+m.scaledImageWidth-m.JSC$22948_overlayWidth)),m.JSC$22948_overlayMarginRight=m.canvas.width-m.JSC$22948_overlayMarginLeft-m.JSC$22948_overlayWidth,m.JSC$22948_overlayMarginTop=Math.max(m.canvasMargin,Math.min(m.JSC$22948_overlayMarginTop-
(m.dragStart.y-G.y),m.scaledImageHeight-m.JSC$22948_overlayHeight+m.canvasMargin)),m.JSC$22948_overlayMarginBottom=m.canvas.height-(m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight));break;default:return}cDe(m);m.dragStart=G},g5O=function(m){m.action=2;
m.dragStart=void 0;document.body.style.cursor="auto"},rDN=function(m,G){switch(YOg(m,G)){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:m.action!==1&&(document.body.style.cursor="auto")}},YOg=function(m,G){var K=m.JSC$22948_overlayMarginLeft-5,W=m.JSC$22948_overlayMarginTop-5,L=m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth-5;
m=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-5;return JD4(G,{x:K,y:W})?1:JD4(G,{x:L,y:W})?3:JD4(G,{x:K,y:m})?2:JD4(G,{x:L,y:m})?4:0},JD4=function(m,G){return m.x>=G.x&&m.x<=G.x+10&&m.y>=G.y&&m.y<=G.y+10},h6g=function(m,G){if(m.dragStart)switch(m.resizeCorner){case 2:Math.abs((m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth-G.x)/(G.y-m.JSC$22948_overlayMarginTop))>=m.requiredRatio?Nzx(m,G.x):D6g(m,G.y);
break;case 1:Math.abs((m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth-G.x)/(m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-G.y))>=m.requiredRatio?tWe(m,G.x):D6g(m,G.y);break;case 4:Math.abs((G.x-m.JSC$22948_overlayMarginLeft)/(G.y-m.JSC$22948_overlayMarginTop))>=m.requiredRatio?Nzx(m,G.x):FD7(m,G.y);break;case 3:Math.abs((G.x-m.JSC$22948_overlayMarginLeft)/(m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-G.y))>=m.requiredRatio?tWe(m,G.x):FD7(m,G.y);break;default:throw Error("tm");
}},Nzx=function(m,G){var K=m.JSC$22948_overlayMarginTop;
m.JSC$22948_overlayMarginBottom=Qsu(m,G);m.JSC$22948_overlayHeight=m.canvas.height-m.JSC$22948_overlayMarginBottom-K;m.JSC$22948_overlayWidth=Math.round(m.JSC$22948_overlayHeight*m.requiredRatio);a6e(m)},tWe=function(m,G){var K=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight;
m.JSC$22948_overlayMarginTop=Qsu(m,G);m.JSC$22948_overlayHeight=K-m.JSC$22948_overlayMarginTop;m.JSC$22948_overlayWidth=Math.round(m.JSC$22948_overlayHeight*m.requiredRatio);a6e(m)},a6e=function(m){switch(m.resizeCorner){case 2:case 1:m.JSC$22948_overlayMarginLeft=m.canvas.width-m.JSC$22948_overlayMarginRight-m.JSC$22948_overlayWidth;
break;case 4:case 3:m.JSC$22948_overlayMarginRight=m.canvas.width-m.JSC$22948_overlayMarginLeft-m.JSC$22948_overlayWidth;break;default:throw Error("tm");}},D6g=function(m,G){var K=m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth;
m.JSC$22948_overlayMarginLeft=o5e(m,G);m.JSC$22948_overlayWidth=K-m.JSC$22948_overlayMarginLeft;m.JSC$22948_overlayHeight=Math.round(m.JSC$22948_overlayWidth/m.requiredRatio);n5G(m)},FD7=function(m,G){var K=m.JSC$22948_overlayMarginLeft;
m.JSC$22948_overlayMarginRight=o5e(m,G);m.JSC$22948_overlayWidth=m.canvas.width-m.JSC$22948_overlayMarginRight-K;m.JSC$22948_overlayHeight=Math.round(m.JSC$22948_overlayWidth/m.requiredRatio);n5G(m)},n5G=function(m){switch(m.resizeCorner){case 2:case 4:m.JSC$22948_overlayMarginBottom=m.canvas.height-m.JSC$22948_overlayMarginTop-m.JSC$22948_overlayHeight;
break;case 1:case 3:m.JSC$22948_overlayMarginTop=m.canvas.height-m.JSC$22948_overlayMarginBottom-m.JSC$22948_overlayHeight;break;default:throw Error("tm");}},Qsu=function(m,G){switch(m.resizeCorner){case 2:G=m.canvas.height-(m.JSC$22948_overlayMarginTop+bPu(m,G));
break;case 4:G=m.canvas.height-(m.JSC$22948_overlayMarginTop+v5I(m,G));break;case 1:G=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-bPu(m,G);break;case 3:G=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-v5I(m,G);break;default:throw Error("tm");}return Math.max(G,m.canvasMargin)},bPu=function(m,G){G=m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth-Math.max(G,m.horizontalMargin);
G=G<0?m.JSC$22948_overlayWidth:Math.max(G,m.minOverlayWidth);return Math.round(G/m.requiredRatio)},v5I=function(m,G){G=m.canvas.width-Math.max(m.canvas.width-G,m.horizontalMargin)-m.JSC$22948_overlayMarginLeft;
G=G<0?m.JSC$22948_overlayWidth:Math.max(G,m.minOverlayWidth);return Math.round(G/m.requiredRatio)},o5e=function(m,G){switch(m.resizeCorner){case 2:G=m.canvas.width-m.JSC$22948_overlayMarginRight-$6O(m,G);
break;case 4:G=m.canvas.width-m.JSC$22948_overlayMarginLeft-$6O(m,G);break;case 1:G=m.canvas.width-m.JSC$22948_overlayMarginRight-sse(m,G);break;case 3:G=m.canvas.width-m.JSC$22948_overlayMarginLeft-sse(m,G);break;default:throw Error("tm");}return Math.max(G,m.horizontalMargin)},$6O=function(m,G){G=m.canvas.height-Math.max(m.canvas.height-G,m.canvasMargin)-m.JSC$22948_overlayMarginTop;
return G<0?m.JSC$22948_overlayWidth:Math.max(Math.round(G*m.requiredRatio),m.minOverlayWidth)},sse=function(m,G){G=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-Math.max(G,m.canvasMargin);
return G<0?m.JSC$22948_overlayWidth:Math.max(Math.round(G*m.requiredRatio),m.minOverlayWidth)},cDe=function(m){m.ctx.clearRect(0,0,m.canvas.width,m.canvas.height);
m.ctx.drawImage(m.image,0,0,m.image.width,m.image.height,m.horizontalMargin,m.canvasMargin,m.canvas.width-2*m.horizontalMargin,m.scaledImageHeight);m.ctx.fillStyle="rgba(0, 0, 0, 0.7)";m.ctx.fillRect(m.horizontalMargin,m.JSC$22948_overlayMarginTop,m.JSC$22948_overlayMarginLeft-m.horizontalMargin,m.JSC$22948_overlayHeight);m.ctx.fillRect(m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth,m.JSC$22948_overlayMarginTop,m.JSC$22948_overlayMarginRight-m.horizontalMargin,m.JSC$22948_overlayHeight);m.ctx.fillRect(m.horizontalMargin,
m.canvasMargin,m.scaledImageWidth,m.JSC$22948_overlayMarginTop-m.canvasMargin);m.ctx.fillRect(m.horizontalMargin,m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight,m.scaledImageWidth,m.JSC$22948_overlayMarginBottom-m.canvasMargin);m.drawOverlay();m.component&&_.Zw(m.component,"image-updated")};
Ly.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$22948_overlayMarginLeft,this.JSC$22948_overlayMarginTop,this.JSC$22948_overlayWidth,this.JSC$22948_overlayHeight);qOI(this)};
var qOI=function(m){var G=m.JSC$22948_overlayMarginLeft-5,K=m.JSC$22948_overlayMarginTop-5,W=m.JSC$22948_overlayMarginLeft+m.JSC$22948_overlayWidth-5,L=m.JSC$22948_overlayMarginTop+m.JSC$22948_overlayHeight-5;m.ctx.fillStyle="#FFF";m.ctx.fillRect(G,K,10,10);m.ctx.strokeRect(G,K,10,10);m.ctx.fillRect(W,K,10,10);m.ctx.strokeRect(W,K,10,10);m.ctx.fillRect(G,L,10,10);m.ctx.strokeRect(G,L,10,10);m.ctx.fillRect(W,L,10,10);m.ctx.strokeRect(W,L,10,10);if(m.focusedCorner!==0&&m.styleFocusedCorner){m.ctx.lineWidth=
4;m.ctx.strokeStyle="#3EA6FF";switch(m.focusedCorner){case 1:--G;--K;break;case 2:--G;K=L-1;break;case 3:G=W-1;--K;break;case 4:G=W-1;K=L-1;break;default:return}m.ctx.strokeRect(G,K,12,12)}};
Ly.prototype.crop=function(m,G){G=G===void 0?!0:G;var K=this.image.width/this.scaledImageWidth,W=document.createElement("canvas"),L=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],A=this.JSC$22948_overlayWidth*K,O=this.JSC$22948_overlayHeight*K;W.width=Math.max(A,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);W.height=Math.max(O,L);m&&(W.width=Math.min(W.width,W.height),W.height=Math.min(W.width,W.height));
m=W.getContext("2d");if(!m)throw Error("hm");L=(this.JSC$22948_overlayMarginLeft-this.horizontalMargin)*K;K*=this.JSC$22948_overlayMarginTop-this.canvasMargin;G||(m.fillStyle="white",m.fillRect(0,0,W.width,W.height));m.drawImage(this.image,L,K,A,O,0,0,W.width,W.height);return W};var E54=function(m,G,K,W,L){Ly.call(this,m,G,K,W,void 0,L,8,!1)};
_.n(E54,Ly);E54.prototype.drawOverlay=function(){var m=this.getContext(),G=this.JSC$22948_overlayWidth,K=this.JSC$22948_overlayHeight,W=this.JSC$22948_overlayMarginTop,L=this.JSC$22948_overlayMarginLeft;m.lineWidth=2;m.strokeStyle="#3EA6FF";m.beginPath();m.arc(L+G/2,W+K/2,G/2,0,2*Math.PI);m.stroke();m.strokeRect(L,W,G,K);qOI(this)};
var HP7={maxFileSizeMB:15,minWidth:98,minHeight:98},I6N=["image/png","image/jpeg","image/gif"],AQ=function(){var m=_.d.apply(this,arguments)||this;m.fileSelectorFocusListener=null;m.errorMessage=null;m.isLoading=!0;m.hideContainer=!0;m.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return m};
_.n(AQ,_.d);_.w=AQ.prototype;_.w.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.w.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.w.computePlaylistThumbnail=function(m){return m==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.w.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.dU(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.w.setErrorState=function(m){this.resetErrorState();m&&(this.errorMessage=m)};
_.w.showPopup=function(){var m=this;this.hideContainer=!1;_.rC(_.Fu,function(){_.Zw(m.hostElement,"yt-refit")});
this.isLoading=!1};
_.w.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.w.closePopup=function(){this.resetFileSelector();_.dU(this.hostElement,"yt-close-popup-action",[this.is])};
_.w.onCancelTap=function(){this.isPlaylistThumbnail||_.dU(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.w.openFileSelector=function(){var m=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.rC(_.Fu,function(){setTimeout(function(){if(!m.fileSelector.files||m.fileSelector.files.length===0)m.onCancelTap();m.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(G){G instanceof Error?_.am(G):_.om(new _.cw(JSON.stringify(G)))}};
_.w.handleFileSelection=function(){var m=this,G,K,W,L,A,O;return _.Y(function(c){switch(c.nextAddress){case 1:_.IO(c,2);if(!m.fileSelector.files||!m.imageEditorCanvas)return m.onCancelTap(),c.return();G=m.fileSelector.files[0];WDe(m.imageChecker,G);_.IO(c,4);return c.yield(keq(G),6);case 6:m.mimeType=c.yieldResult;_.IG(c,5,2);break;case 4:_.ye(c,2),_.dU(m.hostElement,"yt-image-selection-error-action",[(K=m.data)==null?void 0:K.genericImageLoadErrorMessage]),m.onCancelTap();case 5:W=new FileReader;
W.addEventListener("load",function(){var u,h;return _.Y(function(J){if(J.nextAddress==1){if(!W.result)return _.nc(Error("jm")),J.return();u=W.result;h=new Image;h.src=u;h.onload=function(){try{var N=m.imageChecker;if(h.width<N.requirements.minWidth||h.height<N.requirements.minHeight)throw new GGg(N.requirements.minWidth,N.requirements.minHeight);}catch(t){if(t instanceof GGg){var D;_.dU(m.hostElement,"yt-image-selection-error-action",[(D=m.data)==null?void 0:D.imageDimensionErrorMessage]);m.logImageDimensionErrorVe()}else t instanceof
Error?_.am(t):(N=new _.cw(JSON.stringify(t)),_.am(N));m.onCancelTap()}m.showPopup()};
h.onerror=function(){var N;_.dU(m.hostElement,"yt-image-selection-error-action",[(N=m.data)==null?void 0:N.genericImageLoadErrorMessage]);m.onCancelTap()};
return J.yield(OPo(m.imageEditorCanvas,u),2)}m.imageEditor=J.yieldResult;m.updatePositionOfAllCorners();m.addEventListeners(m.imageEditor);_.ey(J)})},!1);
W.readAsDataURL(G);_.IG(c,0);break;case 2:L=_.ye(c),L instanceof iPu?_.dU(m.hostElement,"yt-image-selection-error-action",[(A=m.data)==null?void 0:A.imageSizeErrorMessage]):(L instanceof Error?_.am(L):_.om(new _.cw(JSON.stringify(L))),_.dU(m.hostElement,"yt-image-selection-error-action",[(O=m.data)==null?void 0:O.genericImageLoadErrorMessage])),m.onCancelTap(),_.ey(c)}})};
_.w.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var m=_.zg(_.l1(),{veType:232707,visualElement:_.dq(232707)});m&&(m={visualElement:m},_.UQ().reportShown(m))}};
_.w.handleImageSelectionErrorAction=function(m){this.isPlaylistThumbnail&&_.Q86(this.hostElement,m)};
_.w.convertToImageFormatBundle=function(m){var G=this,K,W,L;return _.Y(function(A){switch(A.nextAddress){case 1:return K=m.toDataURL(G.outputMimeType,1),A.yield(C5z(K),2);case 2:W=A.yieldResult;_.IO(A,3);WDe(G.imageChecker,W);_.IG(A,4);break;case 3:L=_.ye(A);if(!(L instanceof iPu))throw L;_.nc(new _.cw("Output size is bigger than input size for image",G.mimeType,G.outputMimeType,W.size));K=m.toDataURL("image/jpeg",.95);return A.yield(C5z(K),6);case 6:W=A.yieldResult;case 4:return A.return({dataUrl:K,
imageFile:W})}})};
_.w.handleUploadImageToScottyCommand=function(m){var G=this,K,W,L,A,O,c,u,h,J,N;return _.Y(function(D){switch(D.nextAddress){case 1:if(!G.imageEditor||!_.Q(m,FMO))return D.return();K=_.Q(m,FMO).scottyUploadUrl;if(!K){var t=new _.cw("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.am(t);return D.return()}_.IO(D,2);G.setLoadingState();W=G.imageEditor.crop(!1,!1);return D.yield(G.convertToImageFormatBundle(W),4);case 4:return L=D.yieldResult,D.yield(IbP(L.imageFile,K),5);
case 5:A=D.yieldResult;((O=G.data)==null?0:O.onUploadEndpoint)?(c=G.buildUploadServiceEndpoint(A),G.ytComponentBehavior.resolveCommand(c),u=_.Q(c,_.cB),((h=u)==null?0:h.params)?G.closePopup():G.resetFileSelector()):(_.dU(G.hostElement,"yt-image-updated-action",[L.dataUrl,A]),G.closePopup());_.IG(D,0);break;case 2:J=_.ye(D),G.setErrorState((N=G.data)==null?void 0:N.uploadErrorMessage),J instanceof Error?_.am(J):(t=new _.cw(JSON.stringify(J)),_.am(t)),_.ey(D)}})};
_.w.buildUploadServiceEndpoint=function(m){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",m),this.data.onUploadEndpoint):null};
_.w.dataChanged=function(){var m=this,G;return _.Y(function(K){if(K.nextAddress==1){if(!m.data||!m.canvasElement)return K.return();m.data.imageRatio&&m.data.minImageCropWidth||_.om(new _.cw("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));G=function(W,L){return m.data.imageType==="IMAGE_TYPE_AVATAR"?new E54(W,L,m.data.imageRatio,[m.data.minImageCropWidth,m.data.minImageCropWidth/m.data.imageRatio],m.hostElement):new Ly(W,L,m.data.imageRatio,[m.data.minImageCropWidth,
m.data.minImageCropWidth/m.data.imageRatio],void 0,m.hostElement,8,!1)};
m.imageEditorCanvas=new LDN(m.canvasElement,G);return m.data.url?K.yield(OPo(m.imageEditorCanvas,m.data.url),3):(m.hideContainer=!0,m.openFileSelector(),K.jumpTo(0))}m.imageEditor=K.yieldResult;m.showPopup();m.addEventListeners(m.imageEditor);_.ey(K)})};
_.w.addEventListeners=function(m){this.removeEventListeners();var G=function(L){ADe(m,L)};
this.JSC$22956_mouseDownEvent=G;var K=function(L){wug(m,L)};
this.JSC$22956_mouseMoveEvent=K;var W=function(){g5O(m)};
this.JSC$22956_mouseUpEvent=W;this.topLeftCorner.addEventListener("mousedown",G);this.topLeftCorner.addEventListener("mousemove",K);this.topLeftCorner.addEventListener("mouseup",W);this.topRightCorner.addEventListener("mousedown",G);this.topRightCorner.addEventListener("mousemove",K);this.topRightCorner.addEventListener("mouseup",W);this.bottomLeftCorner.addEventListener("mousedown",G);this.bottomLeftCorner.addEventListener("mousemove",K);this.bottomLeftCorner.addEventListener("mouseup",W);this.bottomRightCorner.addEventListener("mousedown",
G);this.bottomRightCorner.addEventListener("mousemove",K);this.bottomRightCorner.addEventListener("mouseup",W)};
_.w.removeEventListeners=function(){this.JSC$22956_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$22956_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$22956_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$22956_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$22956_mouseDownEvent));this.JSC$22956_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$22956_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$22956_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$22956_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$22956_mouseMoveEvent));this.JSC$22956_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$22956_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$22956_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$22956_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$22956_mouseUpEvent))};
_.w.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var m=document.activeElement;m&&m.shadowRoot&&m.shadowRoot.activeElement;)m=m.shadowRoot.activeElement;switch(m){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};
_.w.updatePositionOfCorner=function(m,G){var K=m.y-G.offsetHeight/2+4;G.style.left=m.x-G.offsetWidth/2+16+"px";G.style.top=K+"px"};
_.w.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var m=_.g([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),G=m.next();!G.done;G=m.next()){G=G.value;var K=uEe(this.imageEditor,G.corner);this.updatePositionOfCorner(K,G.div)}};
_.w.onLeft=function(m){this.imageEditor&&this.setFocusInImageEditor()&&(puG(this.imageEditor,0),this.updatePositionOfAllCorners(),m.preventDefault())};
_.w.onRight=function(m){this.imageEditor&&this.setFocusInImageEditor()&&(puG(this.imageEditor,1),this.updatePositionOfAllCorners(),m.preventDefault())};
_.w.onUp=function(m){this.imageEditor&&this.setFocusInImageEditor()&&(puG(this.imageEditor,2),this.updatePositionOfAllCorners(),m.preventDefault())};
_.w.onDown=function(m){this.imageEditor&&this.setFocusInImageEditor()&&(puG(this.imageEditor,3),this.updatePositionOfAllCorners(),m.preventDefault())};
_.w.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.e_.Object.defineProperties(AQ.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&I6N.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var m,G,K;((G=this.data)==null?0:G.imageRatio)&&((K=this.data)==null?0:K.minImageCropWidth)?m={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:m=HP7;return new KD3(m)}}});
AQ.prototype.updatePositionOfAllCorners=AQ.prototype.updatePositionOfAllCorners;AQ.prototype.dataChanged=AQ.prototype.dataChanged;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],AQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],AQ.prototype,"ytComponentBehavior",void 0);_.x([_.q(_.x4),_.S("design:type",Object)],AQ.prototype,"ironA11yKeysBehavior",void 0);
_.x([_.UM("#canvas"),_.S("design:type",HTMLCanvasElement)],AQ.prototype,"canvasElement",void 0);_.x([_.UM("#file-selector"),_.S("design:type",HTMLInputElement)],AQ.prototype,"fileSelector",void 0);_.x([_.UM("#top-left-corner"),_.S("design:type",HTMLDivElement)],AQ.prototype,"topLeftCorner",void 0);_.x([_.UM("#top-right-corner"),_.S("design:type",HTMLDivElement)],AQ.prototype,"topRightCorner",void 0);
_.x([_.UM("#bottom-left-corner"),_.S("design:type",HTMLDivElement)],AQ.prototype,"bottomLeftCorner",void 0);_.x([_.UM("#bottom-right-corner"),_.S("design:type",HTMLDivElement)],AQ.prototype,"bottomRightCorner",void 0);_.x([_.V(),_.S("design:type",Object)],AQ.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],AQ.prototype,"errorMessage",void 0);_.x([_.V(),_.S("design:type",Object)],AQ.prototype,"isLoading",void 0);_.x([_.V(),_.S("design:type",Object)],AQ.prototype,"hideContainer",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.S("design:type",Boolean)],AQ.prototype,"isPlaylistThumbnail",void 0);_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],AQ.prototype,"dataChanged",null);_.x([_.XC("image-updated"),_.XC("yt-refit"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],AQ.prototype,"updatePositionOfAllCorners",null);
_.x([_.cL({is:"yt-image-editor-renderer",disableElementRegistration:!0})],AQ);
_.y(AQ,"yt-image-editor-renderer",function(){if(m6e===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;TKe===void 0&&(TKe=document.createElement("template"));var W=TKe;K.call(G,W.content.cloneNode(!0),m.content.firstChild);m6e=m}m=m6e;return m},{mode:2});var jsN;var kGO;var wj=function(){return _.d.apply(this,arguments)||this};
_.n(wj,_.d);wj.prototype.updateMinutesFromBinding=function(m){this.handleMinutesChanged&&this.handleMinutesChanged(m)};
wj.prototype.updateSecondsFromBinding=function(m){this.handleSecondsChanged&&this.handleSecondsChanged(m)};
wj.prototype.updateDescriptionFromBinding=function(m){this.handleDescriptionChanged&&this.handleDescriptionChanged(m)};
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],wj.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],wj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",String)],wj.prototype,"minutes",void 0);_.x([_.V(),_.S("design:type",String)],wj.prototype,"seconds",void 0);_.x([_.V(),_.S("design:type",String)],wj.prototype,"description",void 0);_.x([_.V(),_.S("design:type",Function)],wj.prototype,"handleMinutesChanged",void 0);
_.x([_.V(),_.S("design:type",Function)],wj.prototype,"handleSecondsChanged",void 0);_.x([_.V(),_.S("design:type",Function)],wj.prototype,"handleDescriptionChanged",void 0);_.x([_.V(),_.S("design:type",Number)],wj.prototype,"characterLimit",void 0);_.x([_.V(),_.S("design:type",Number)],wj.prototype,"textNumRows",void 0);_.x([_.cL({is:"yt-report-details-form-content",disableElementRegistration:!0})],wj);
_.y(wj,"yt-report-details-form-content",function(){if(kGO===void 0){var m=document.createElement("template");_.b(m,'\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>');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;jsN===void 0&&(jsN=document.createElement("template"));var W=jsN;K.call(G,W.content.cloneNode(!0),m.content.firstChild);kGO=m}m=kGO;return m},{mode:2});var CqO;var VWg;var gj=function(){var m=_.d.apply(this,arguments)||this;m.updateMinutesFromBinding=function(G){m.minutes=G.detail.value};
m.updateSecondsFromBinding=function(G){m.seconds=G.detail.value};
m.updateDescriptionFromBinding=function(G){m.description=G.detail.value};
return m};
_.n(gj,_.d);_.w=gj.prototype;_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.w.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"}}}};
_.w.ready=function(){_.VL(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.w.onSubmitYtAction=function(m){var G=m.detail;G.actionName==="yt-service-request"&&(G=G.args[1],G.flagEndpoint&&(m.stopPropagation(),this.refireAction(G)))};
_.w.refireAction=function(m){var G={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(G.vss_id=this.vssId);_.yQ(this.hostElement,[m,G]);this.submitDisabled=!0};
_.w.dataChanged=function(){var m=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var G=_.qW();G&&G.getPlayerPromise().then(function(K){var W=K.getOption("cc","track")||K.getOption("captions","track");W&&(m.vssId=W.vss_id);K=K.getCurrentTime();m.minutes=Math.floor(K/60).toString();m.seconds=(Math.floor(K)%60).toString()})};
_.w.updateSubmitButtonState=function(){var m;((m=this.data)==null?0:m.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==="")};
_.w.onYtServiceRequestCompleted=function(){_.dU(this.hostElement,"yt-close-popup-action")};
_.w.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.e_.Object.defineProperties(gj.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var m;return((m=this.data)==null?void 0:m.textNumRows)||4}}});
gj.prototype.onYtServiceRequestError=gj.prototype.onYtServiceRequestError;gj.prototype.onYtServiceRequestCompleted=gj.prototype.onYtServiceRequestCompleted;gj.prototype.updateSubmitButtonState=gj.prototype.updateSubmitButtonState;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);
_.x([_.V({observer:"dataChanged"}),_.S("design:type",Object)],gj.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Boolean)],gj.prototype,"submitDisabled",void 0);_.x([_.V(),_.S("design:type",String)],gj.prototype,"minutes",void 0);_.x([_.V(),_.S("design:type",String)],gj.prototype,"seconds",void 0);_.x([_.V(),_.S("design:type",String)],gj.prototype,"description",void 0);_.x([_.V(),_.S("design:type",String)],gj.prototype,"vssId",void 0);
_.x([_.V({value:_.E8("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.S("design:type",Boolean)],gj.prototype,"isMusic",void 0);_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],gj.prototype,"characterLimit",null);_.x([_.E("data"),_.S("design:type",Number),_.S("design:paramtypes",[])],gj.prototype,"textNumRows",null);
_.x([_.Mg("minutes","seconds","description","submitDisabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gj.prototype,"updateSubmitButtonState",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gj.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],gj.prototype,"onYtServiceRequestError",null);_.x([_.cL({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],gj);
_.y(gj,"yt-report-details-form-renderer",function(){if(VWg===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;CqO===void 0&&(CqO=document.createElement("template"));var W=CqO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);VWg=m}m=VWg;return m});var ZPG;var d6x;var PqO;var yDp;var O6=function(){return _.d.apply(this,arguments)||this};
_.n(O6,_.d);
O6.prototype.onCheckedChanged_=function(){if(this.data){var m=_.VL(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.dU(this.hostElement,"yt-additional-detail-checkbox-update",[m]):this.data.identifier==="yt-hide-user-checkbox"?_.dU(this.hostElement,"yt-hide-user-checkbox-update",[m]):m&&this.data.enableCommand?_.dU(this.hostElement,"yt-modify-report-form-command",[_.Q(this.data.enableCommand,QdD)]):!m&&this.data.disableCommand&&_.dU(this.hostElement,
"yt-modify-report-form-command",[_.Q(this.data.enableCommand,QdD)])}};
O6.prototype.onLabelTap_=function(m){m.target.tagName!="A"&&(_.VL(this.hostElement).querySelector("#checkbox").checked=!_.VL(this.hostElement).querySelector("#checkbox").checked)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],O6.prototype,"data",void 0);_.x([_.cL({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],O6);
_.y(O6,"yt-boolean-form-field-v2-renderer",function(){if(yDp===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;PqO===void 0&&(PqO=document.createElement("template"));var W=PqO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);yDp=m}m=yDp;return m});var c1=function(){var m=_.d.apply(this,arguments)||this;m.canShowAdditionalDetailCheckbox=!1;m.canShowCheckbox=!1;m.keepDropdownFocusedAfterSelection=!0;return m};
_.n(c1,_.d);c1.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}}}}};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],c1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],c1.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],c1.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.V(),_.S("design:type",Object)],c1.prototype,"canShowCheckbox",void 0);_.x([_.V(),_.S("design:type",Object)],c1.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.x([_.cL({is:"yt-report-form-modal-content",disableElementRegistration:!0})],c1);
_.y(c1,"yt-report-form-modal-content",function(){if(d6x===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;ZPG===void 0&&(ZPG=document.createElement("template"));var W=ZPG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);d6x=m}m=d6x;return m},{mode:2});var e6I;var f6O;var YX=function(){var m=_.d.apply(this,arguments)||this;m.submitting=!1;m.submitButtonDisabled=!0;m.command=null;m.canShowCheckbox=!1;m.canShowAdditionalDetailCheckbox=!1;m.canShowNextButton=!1;m.additionalDetailCheckboxChecked=!1;m.refitJob=0;m.keepDropdownFocusedAfterSelection=!0;m.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 m};
_.n(YX,_.d);_.w=YX.prototype;_.w.created=function(){this.refitJob=0};
_.w.attached=function(){this.JSC$22979_scroller&&(this.JSC$22979_scroller.dialogElement=this.hostElement.parentNode,this.JSC$22979_scroller.attached&&typeof this.JSC$22979_scroller.attached==="function"&&this.JSC$22979_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.dataChanged=function(m){m&&(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,m.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),m.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.w.onYtPopupOpened=function(){var m=_.qW();m&&m.getPlayerPromise().then(function(G){G.pauseVideo()})};
_.w.onYtNavigate=function(m){_.Q(m.detail.endpoint,_.JZK)&&(m.stopPropagation(),this.hideReportForm=!0)};
_.w.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.w.onYtServiceRequestCompleted=function(m,G){var K=G.actions;if(K){if(K.length===1&&_.Q(K[0],_.xu)){var W;K=((W=_.Q(K[0],_.xu))==null?void 0:W.commands)||[]}W=0;for(var L=K.length;W<L;W++)_.Q(K[W],_.BM)&&(m.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(K[W]))}if(G.data&&(m=this.get("feedbackResponses",G.data)))for(G=0;G<m.length;G++)if(m[G].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.w.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.w._onDescendantIronResize=function(m){m.stopPropagation();return!1};
_.w.handleReportFormEndpointUpdateAction=function(m){if(m.submitEndpoint){var G=this.command=m.submitEndpoint;G=_.Q(G,_.pMS);if(G==null?0:G.additionalDetailCheckboxChecked)G.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else m.submitNavigationEndpoint?(this.command=m.submitNavigationEndpoint,this.toggleSubmitButton(!1)):m.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:m.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;m.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",m));this.refit()};
_.w.handleConfirmDialogCloseAction=function(m){m.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.w.submitButtonDisabledChanged=function(){var m=this.hostElement.parentElement;m&&m.invalidateTabbables&&m.invalidateTabbables()};
_.w.handleModifyReportFormCommand=function(m){m=this.get("action",m);m==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:m==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:m==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:m==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:m==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:m==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.w.updateDialogStyling=function(){var m,G,K,W,L,A=((L=(m=this.data)==null?void 0:(G=m.optionsSupportedRenderers)==null?void 0:(K=G.optionsRenderer)==null?void 0:(W=K.items)==null?void 0:W.length)!=null?L:0)<=2?0:240;_.eb(this.hostElement,{"--yt-report-form-modal-renderer-min-width":A+"px"})};
_.w.toggleSubmitButton=function(m){this.submitButtonDisabled=!m;this.submitButtonDisabled=m};
_.w.computeSubmitButtonData=function(m,G){var K={};_.Q(G,_.JZK)?K.navigationEndpoint=G:K.command=G||void 0;m&&m.buttonRenderer&&_.Y2.extend(K,m.buttonRenderer);return K};
_.w.computeNextButtonData=function(m,G){var K={};if(!m||!m.buttonRenderer)return K;_.Y2.extend(K,m.buttonRenderer);if(!G)return K;if(_.Q(G,_.JZK))K.navigationEndpoint=p0G(G);else if(K.command=p0G(G),m=_.Q(K.command,_.pMS))m.legalCheckboxChecked=!0;return K};
_.w.computeShowNextButton=function(m,G,K){return!!m&&G&&K};
_.w.refit=function(){var m=this;this.refitJob||(this.refitJob=_.Fu.addLowPriorityJob(function(){_.Zw(m.hostElement,"yt-refit");m.refitJob=0}))};
_.w.handleAdditionalDetailCheckboxUpdateAction=function(m){this.additionalDetailCheckboxChecked=m;_.Q(this.command,_.pMS).additionalDetailCheckboxChecked=m};
_.e_.Object.defineProperties(YX,{template:{configurable:!0,enumerable:!0,get:function(){if(f6O===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;e6I===void 0&&(e6I=document.createElement("template"));var W=e6I;K.call(G,W.content.cloneNode(!0),m.content.firstChild);f6O=m}m=f6O;return m}}});
YX.prototype.onYtServiceRequestError=YX.prototype.onYtServiceRequestError;YX.prototype.onYtServiceRequestCompleted=YX.prototype.onYtServiceRequestCompleted;YX.prototype.onYtServiceRequestSent=YX.prototype.onYtServiceRequestSent;YX.prototype.onYtNavigate=YX.prototype.onYtNavigate;YX.prototype.onYtPopupOpened=YX.prototype.onYtPopupOpened;_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],YX.prototype,"openPopupBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],YX.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],YX.prototype,"eventForwardingBehavior",void 0);_.x([_.q(_.mH),_.S("design:type",Object)],YX.prototype,"ironResizableBehavior",void 0);_.x([_.V({observer:"dataChanged"}),_.S("design:type",Object)],YX.prototype,"data",void 0);
_.x([_.V(),_.S("design:type",Object)],YX.prototype,"submitting",void 0);_.x([_.V({observer:"submitButtonDisabledChanged"}),_.S("design:type",Object)],YX.prototype,"submitButtonDisabled",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"command",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],YX.prototype,"hideReportForm",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"canShowCheckbox",void 0);
_.x([_.V(),_.S("design:type",Object)],YX.prototype,"canShowAdditionalDetailCheckbox",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"canShowNextButton",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"additionalDetailCheckboxChecked",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"refitJob",void 0);_.x([_.V(),_.S("design:type",Object)],YX.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.x([_.UM("#scroller"),_.S("design:type",Object)],YX.prototype,"JSC$22979_scroller",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],YX.prototype,"onYtPopupOpened",null);_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],YX.prototype,"onYtNavigate",null);
_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],YX.prototype,"onYtServiceRequestSent",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],YX.prototype,"onYtServiceRequestCompleted",null);
_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],YX.prototype,"onYtServiceRequestError",null);_.x([_.cL({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],YX);var x6e;var XuG;var rj=function(){return _.d.apply(this,arguments)||this};
_.n(rj,_.d);_.w=rj.prototype;_.w.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.w.onVisible=function(){var m,G;(G=_.xS().resolve(_.fn(_.$h)))==null||G.enqueue({label:_.bw((m=this.data)==null?void 0:m.messageTitle),elementToFocus:this.hostElement})};
_.w.onThumbnailLoaded=function(){_.Zw(this.hostElement,"yt-refit")};
_.w.onDismissTap=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.w.computeAlternateIcon=function(m){return m?m==="BACKSTAGE_ARTWORK"?"backstage:artwork":m:null};
_.w.computeFontFamily=function(m){return m==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.w.computeBackgroundStyle=function(m,G){if(m=this.computeBackgroundImage(m,G))if(m=_.Eh(m.thumbnails))return'background-image: url("'+m+'");'};
_.w.computeHasFullHeightImage=function(m){return!(!(m&&m.thumbnails&&m.thumbnails.length>0)||this.modern)};
_.w.isModernStyle=function(m){return m.style==="STYLE_MODERN"};
_.w.computeIcon=function(m,G){if(m&&m.icon)return G?m.iconDark:m.icon};
_.w.computeBackgroundImage=function(m,G){if(m&&m.backgroundImage)return G?m.backgroundImageDark:m.backgroundImage};
_.w.computeLogo=function(m,G){if(m&&m.logo)return G?m.logoDark:m.logo};
_.w.computeShouldShowModernIcon=function(m,G){return m&&!!G};
_.w.getLogoContainerClassName=function(m){return this.logoWithPadding(m)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.w.getLogoImageId=function(m){return this.logoWithPadding(m)?"mealbar-logo-with-padding":"mealbar-logo"};
_.w.logoWithPadding=function(m){var G,K,W;return(m=(G=this.computeLogo(m,this.isDarkTheme))==null?void 0:(K=G.thumbnails)==null?void 0:(W=K[0])==null?void 0:W.height)&&m%31===0?!0:!1};
rj.prototype.onThumbnailLoaded=rj.prototype.onThumbnailLoaded;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.x([_.V({}),_.S("design:type",Object)],rj.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.S("design:type",Boolean)],rj.prototype,"modern",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],rj.prototype,"isDarkTheme",void 0);
_.x([_.V({computed:"computeIcon(data, isDarkTheme)"}),_.S("design:type",Object)],rj.prototype,"icon",void 0);_.x([_.V({computed:"computeLogo(data, isDarkTheme)"}),_.S("design:type",Object)],rj.prototype,"logo",void 0);_.x([_.V({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.S("design:type",Object)],rj.prototype,"backgroundStyle",void 0);_.x([_.V({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.S("design:type",Object)],rj.prototype,"alternateIcon",void 0);
_.x([_.V({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.S("design:type",Boolean)],rj.prototype,"hasFullHeightImage",void 0);_.x([_.V({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.S("design:type",Boolean)],rj.prototype,"useYoutubeSans",void 0);_.x([_.V({computed:"computeShouldShowModernIcon(modern, icon)"}),_.S("design:type",Boolean)],rj.prototype,"shouldShowModernIcon",void 0);
_.x([_.XC("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],rj.prototype,"onThumbnailLoaded",null);_.x([_.cL({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],rj);
_.y(rj,"yt-mealbar-promo-renderer",function(){if(XuG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;x6e===void 0&&(x6e=document.createElement("template"));var W=x6e;K.call(G,W.content.cloneNode(!0),m.content.firstChild);XuG=m}m=XuG;return m},{mode:2});var SOo;var R6g;var uf=function(){return _.d.apply(this,arguments)||this};
_.n(uf,_.d);_.w=uf.prototype;_.w.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]]"}}}}}};
_.w.computeHasButtons_=function(m){return!(!m.dismissButton&&!m.acceptButton)};
_.w.computeStyle_=function(m){return m||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.w.observeImpressionEndpoints_=function(){var m=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(G){G.clickTrackingParams&&delete G.clickTrackingParams;_.yQ(m.hostElement,[G])})};
_.w.onTap_=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
uf.prototype.observeImpressionEndpoints_=uf.prototype.observeImpressionEndpoints_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],uf.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],uf.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],uf.prototype,"positionType",void 0);_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.S("design:type",Boolean)],uf.prototype,"hasButtons_",void 0);_.x([_.V({value:function(){return this.onTap_.bind(this)}}),
_.S("design:type",Function)],uf.prototype,"boundOnTap_",void 0);_.x([_.V({value:{style:"mono-inverse"}}),_.S("design:type",Object)],uf.prototype,"buttonOverride",void 0);_.x([_.Sb("data.promoConfig.impressionEndpoints"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],uf.prototype,"observeImpressionEndpoints_",null);_.x([_.cL({is:"yt-tooltip-renderer",disableElementRegistration:!0})],uf);
_.y(uf,"yt-tooltip-renderer",function(){if(R6g===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;SOo===void 0&&(SOo=document.createElement("template"));var W=SOo;K.call(G,W.content.cloneNode(!0),m.content.firstChild);R6g=m}m=R6g;return m},{mode:2});var U6e;var z6e;var l6e;var BzC;var hQ=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-open-popup-action":"onOpen"};return m};
_.n(hQ,_.d);_.w=hQ.prototype;_.w.attached=function(){this.onOpen()};
_.w.updateTimeSecs=function(m){this.currentTimeSecs=m};
_.w.computeTimeString=function(m){m=m.toString();var G=Math.floor(Number(m)/3600),K=Math.floor(Number(m)%3600%60);return(G>0?G+":":"")+_.fg(Math.floor(Number(m)%3600/60),G>0?2:1)+":"+_.fg(K,2)};
_.w.computeTimeStringA11y=function(m){return _.txf({seconds:m})};
_.w.getTimeParam=function(){return NLP(this.timeString)};
_.w.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var m={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},G;_.xq(_.l1(),(G=this.data)==null?void 0:G.trackingParams,m,7)};
_.w.onChangeStartAtTimestamp=function(){for(var m=this.startAtTimestamp.value.split(":"),G=0,K=1,W=m.length-1;W>=0;W--)G+=Number(m[W])*K,K*=60;this.updateTimeSecs(G);this.setTimestamp()};
_.w.onOpen=function(){var m=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var G=_.qW();G?G.getPlayerPromise().then(function(K){K=K.getCurrentTime();m.updateTimeSecs(K)}):YG5()&&this.updateTimeSecs(YG5())};
_.w.setTimestamp=function(){var m=Math.floor(this.currentTimeSecs);_.dU(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!m,timestamp:m||""}])};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],hQ.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],hQ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],hQ.prototype,"data",void 0);_.x([_.V({value:!1,notify:!0}),_.S("design:type",Boolean)],hQ.prototype,"isStartAtChecked",void 0);_.x([_.V(),_.S("design:type",Number)],hQ.prototype,"currentTimeSecs",void 0);
_.x([_.V({computed:"computeTimeString(currentTimeSecs)"}),_.S("design:type",String)],hQ.prototype,"timeString",void 0);_.x([_.V({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.S("design:type",String)],hQ.prototype,"timeStringA11y",void 0);_.x([_.UM("#start-at-timestamp"),_.S("design:type",Object)],hQ.prototype,"startAtTimestamp",void 0);_.x([_.cL({is:"yt-start-at-renderer",disableElementRegistration:!0})],hQ);
_.y(hQ,"yt-start-at-renderer",function(){if(BzC===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;l6e===void 0&&(l6e=document.createElement("template"));var W=l6e;K.call(G,W.content.cloneNode(!0),m.content.firstChild);BzC=m}m=BzC;return m},{mode:2});var MWe={},Tzx=(MWe.WEB_REMIX="music.youtube.com",MWe),py=function(){var m=_.d.apply(this,arguments)||this;m.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return m};
_.n(py,_.d);_.w=py.prototype;_.w.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.created=function(){this.embedHost_=Tzx[_.E8("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.w.ready=function(){_.VL(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.w.computeEmbedCode_=function(m,G,K,W,L){if(!m)return"";var A=m.videoId,O=m.fullListId,c=[];m.attributionId&&c.push("si="+m.attributionId);W||c.push("controls=0");K&&Number(G)>0&&c.push("start="+G);O&&(A="videoseries",c.push("list="+O));K="https://"+(L?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+A;m.clipId&&(c.push("clip="+m.clipId),c.push("clipt="+m.clipTiming));G=c.length>0?K+"?"+c.join("&amp;"):K;m.encryptedEmbedConfig&&c.push("embed_config="+JSON.stringify({enc:m.encryptedEmbedConfig}));
c=c.length>0?K+"?"+c.join("&amp;"):K;_.F("web_sharing_embed_preview_killswitch")?_.VL(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(c,m.previewWidth||854,m.previewHeight||480):(_.pV(this.videoPreviewContainer),_.VL(this.videoPreviewContainer).appendChild(this.buildIframeElement(c)));return this.getEmbedCode_(G,m.width||560,m.height||315)};
_.w.buildIframeElement=function(m){var G=document.createElement("iframe"),K,W;G.width=""+((W=(K=this.data)==null?void 0:K.previewWidth)!=null?W:854);var L,A;G.height=""+((A=(L=this.data)==null?void 0:L.previewHeight)!=null?A:480);_.g5(G,2,m);G.title="YouTube video player";G.frameBorder="0";G.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";G.referrerPolicy="strict-origin-when-cross-origin";G.allowFullscreen=!0;return G};
_.w.computeIsSquareAspectRatio_=function(m){return m.previewHeight&&m.previewWidth?m.previewHeight==m.previewWidth:!1};
_.w.computeShowEmbedOptions_=function(m){return!!m.enablePrivacyModeOptionLabel||!!m.showPlayerControlsOptionLabel};
_.w.getEmbedCode_=function(m,G,K){return'<iframe width="'+G+'" height="'+K+'" src="'+m+'" 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>'};
_.w.handleSignalActionCopyShareEmbedUrl_=function(){_.VL(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.w.handleSetTimestamp_=function(m){this.startAtTimeStamp_=(this.startAtChecked_=m.isSet)?m.timestamp:0};
_.w.closePanel_=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.w.onEmbedCode_=function(){_.VL(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.w.onYtPopupClosed_=function(){_.pV(_.VL(this.hostElement).querySelector("#video-preview"))};
_.w.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Q(this.data.actionButtons[0],_.uu)&&this.ytRendererBehavior.logExplicitClick(_.Q(this.data.actionButtons[0],_.uu))};
py.prototype.onYtPopupClosed_=py.prototype.onYtPopupClosed_;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],py.prototype,"data",void 0);
_.x([_.V({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.S("design:type",String)],py.prototype,"embedCode_",void 0);_.x([_.V({value:!0}),_.S("design:type",Boolean)],py.prototype,"isPlayerControlsOptionChecked_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],py.prototype,"isPrivacyModeOptionChecked_",void 0);_.x([_.V({value:!1,notify:!0}),_.S("design:type",Boolean)],py.prototype,"startAtChecked_",void 0);
_.x([_.V({value:0}),_.S("design:type",Number)],py.prototype,"startAtTimeStamp_",void 0);_.x([_.V({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],py.prototype,"isSquareAspectRatio_",void 0);_.x([_.UM("#video-preview"),_.S("design:type",HTMLElement)],py.prototype,"videoPreviewContainer",void 0);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],py.prototype,"onYtPopupClosed_",null);
_.x([_.cL({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],py);
_.y(py,"yt-sharing-embed-renderer",function(){if(z6e===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;U6e===void 0&&(U6e=document.createElement("template"));var W=U6e;K.call(G,W.content.cloneNode(!0),m.content.firstChild);z6e=m}m=z6e;return m},{mode:2});var mI7;var ipx=function(){return _.d.apply(this,arguments)||this};
_.n(ipx,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ipx.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ipx.prototype,"data",void 0);_.x([_.cL({disableElementRegistration:!0,is:"yt-sender-id-section-renderer"})],ipx);
_.y(ipx,"yt-sender-id-section-renderer",function(){if(mI7===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);mI7=m}m=
mI7;return m},{mode:1});var G74;var KuG;var JQ=function(){return _.d.apply(this,arguments)||this};
_.n(JQ,_.d);JQ.prototype.closePopup=function(){_.dU(this.hostElement,"yt-close-popup-action")};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],JQ.prototype,"data",void 0);_.x([_.cL({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],JQ);
_.y(JQ,"yt-community-post-section-renderer",function(){if(KuG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;G74===void 0&&(G74=document.createElement("template"));var W=G74;K.call(G,W.content.cloneNode(!0),m.content.firstChild);KuG=m}m=KuG;return m},{mode:2});var WuN;var Lu3;var AC4;var wNo;var goO;var OpI;var cCu=function(){return _.d.apply(this,arguments)||this};
_.n(cCu,_.d);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],cCu.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],cCu.prototype,"data",void 0);_.x([_.cL({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],cCu);
_.y(cCu,"yt-share-start-time-with-context-renderer",function(){if(OpI===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;goO===void 0&&(goO=document.createElement("template"));var W=goO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);OpI=m}m=OpI;return m},{mode:2});var N9=function(){return _.d.apply(this,arguments)||this};
_.n(N9,_.d);N9.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],N9.prototype,"data",void 0);_.x([_.cL({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],N9);
_.y(N9,"yt-share-panel-title-v15-renderer",function(){if(wNo===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;AC4===void 0&&(AC4=document.createElement("template"));var W=AC4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);wNo=m}m=wNo;return m},{mode:2});var DV=function(){return _.d.apply(this,arguments)||this};
_.n(DV,_.d);DV.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],DV.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],DV.prototype,"data",void 0);_.x([_.cL({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],DV);
_.y(DV,"yt-share-panel-header-renderer",function(){if(Lu3===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;WuN===void 0&&(WuN=document.createElement("template"));var W=WuN;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Lu3=m}m=Lu3;return m},{mode:2});var YeC;var rCu;var uOo={};uOo.YtBindingExpressionsBehavior={identity:_.IM,msg:function(m,G){G=G===void 0?{}:G;return _.zq(m,G,m)},
msgPlural:function(m,G){return _.lW(m,G)},
getMusicIconFromType:function(m){return _.ew(m)}};var hCg;var pNp;var JCO;var Nxg=document.head,DI3=Nxg.appendChild,t4C;
if(JCO===void 0){var FuC=document.createElement("template");_.b(FuC,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><clipPath id="android_messenger__a"><path fill="#fff" d="M0 0h192v192H0z"></path></clipPath><mask id="android_messenger__b" width="192" height="192" x="0" y="0" maskUnits="userSpaceOnUse" style="mask-type:luminance"><path fill="#fff" d="M0 0h192v192H0z"></path></mask></defs></svg><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>');JCO=
FuC}t4C=JCO;DI3.call(Nxg,t4C.content);var tQ=function(){var m=_.d.apply(this,arguments)||this;m.screenLayer=7;return m};
_.n(tQ,_.d);tQ.prototype.getScreenLayer=function(){return this.screenLayer};
tQ.prototype.onTap=function(m){m&&m.detail&&(m.detail.x||m.detail.y)&&_.VL(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.yQ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(m=this.getScreenLayer(),_.Zw(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:m}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.e_.Object.defineProperties(tQ.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()}}});
tQ.prototype.onTap=tQ.prototype.onTap;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],tQ.prototype,"ytComponentBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],tQ.prototype,"data",void 0);_.x([_.E("data.title"),_.S("design:type",Object),_.S("design:paramtypes",[])],tQ.prototype,"title",null);
_.x([_.E("data.serviceName"),_.S("design:type",String),_.S("design:paramtypes",[])],tQ.prototype,"icon",null);_.x([_.XC("tap"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],tQ.prototype,"onTap",null);_.x([_.cL({is:"yt-share-target-renderer",disableElementRegistration:!0})],tQ);
_.y(tQ,"yt-share-target-renderer",function(){if(pNp===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;hCg===void 0&&(hCg=document.createElement("template"));var W=hCg;K.call(G,W.content.cloneNode(!0),m.content.firstChild);pNp=m}m=pNp;return m},{mode:2});var QeI;var a3e;var F4=function(){var m=_.d.apply(this,arguments)||this;m.SHARE_TARGET_WIDTH=70;m.SHARE_TARGET_MARGIN_RIGHT=8;m.PAGE_SCROLL_SPEED=9;m.actionMap={"yt-share-panel-reset-action":"onReset_"};return m};
_.n(F4,_.d);_.w=F4.prototype;_.w.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.w.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.VL(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.VL(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.w.onReset_=function(){if(_.VL(this.hostElement).querySelector("#list")){var m=_.VL(this.hostElement).querySelector("#list");var G=_.VL(this.hostElement).querySelector("#list");var K=G.offsetLeft,W=G.offsetParent;W||_.f5S(G)!="fixed"||(W=_.hI(G).documentElement);if(W){if(_.lY&&!_.yP(58)){var L=_.B$S(W);K+=L.left}else Number(_.h6S)>=8&&!(Number(_.h6S)>=9)&&(L=_.B$S(W),K-=L.left);G=_.zL2(W)?W.clientWidth-(K+G.offsetWidth):K}else G=K;nN5(m,G);this.updateScrollButtons_()}};
_.w.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.w.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.w.onScrollWheel_=function(m){m.stopPropagation();m.preventDefault();var G=oN6(_.VL(this.hostElement).querySelector("#list"));m=Math.abs(m.deltaX)>Math.abs(m.deltaY)?m.deltaX:m.deltaY;nN5(_.VL(this.hostElement).querySelector("#list"),G+m);this.updateScrollButtons_()};
_.w.smoothScrollByOnePage_=function(m){var G=_.VL(this.hostElement).querySelector("#list"),K=(Math.floor(G.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,W=oN6(G),L=K*(m?1:-1),A=this.PAGE_SCROLL_SPEED,O=this.updateScrollButtons_.bind(this),c=0,u;(function J(){c+=A;u=c/K*2;nN5(G,W+L*(u<1?u*u:-u*u+4*u-2));c<K?window.requestAnimationFrame(J):O()})()};
_.w.updateScrollButtons_=function(){var m=oN6(_.VL(this.hostElement).querySelector("#list")),G=_.VL(this.hostElement).querySelector("#list").scrollWidth-_.VL(this.hostElement).querySelector("#list").clientWidth;_.VL(this.hostElement).querySelector("#scroll-button-back").hidden=m<=0;_.VL(this.hostElement).querySelector("#scroll-button-forward").hidden=m>=G};
F4.prototype.onScrollWheel_=F4.prototype.onScrollWheel_;F4.prototype.onDataChanged_=F4.prototype.onDataChanged_;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],F4.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],F4.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(uOo.YtBindingExpressionsBehavior),_.S("design:type",Object)],F4.prototype,"ytBindingExpressionsBehavior",void 0);
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],F4.prototype,"data",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],F4.prototype,"onDataChanged_",null);_.x([_.XC("wheel"),_.S("design:type",Function),_.S("design:paramtypes",[WheelEvent]),_.S("design:returntype")],F4.prototype,"onScrollWheel_",null);
_.x([_.cL({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],F4);
_.y(F4,"yt-third-party-share-target-section-renderer",function(){if(a3e===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;QeI===void 0&&(QeI=document.createElement("template"));var W=QeI;K.call(G,W.content.cloneNode(!0),m.content.firstChild);a3e=m}m=a3e;return m},{mode:2});var Q9=function(){return _.d.apply(this,arguments)||this};
_.n(Q9,_.d);Q9.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"}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Q9.prototype,"data",void 0);_.x([_.cL({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Q9);
_.y(Q9,"yt-third-party-network-section-renderer",function(){if(rCu===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;YeC===void 0&&(YeC=document.createElement("template"));var W=YeC;K.call(G,W.content.cloneNode(!0),m.content.firstChild);rCu=m}m=rCu;return m},{mode:2});var oog;_.sh(_.P(function(m){return _.r("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.r("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.r(_.z$,{data:function(){return m.data().firstPartyItems}},{listItemViewModel:_.Nb})))},"ml"),"first-party-network-section-view-model",{props:{data:_.Dd}});var nox=_.nY(["data:image/svg+xml;charset=UTF-8;base64,",""]),aN=function(){var m=_.d.apply(this,arguments)||this;m.screenLayer=7;m.qrCodeEnabled=_.F("web_enable_sharing_qr_code");m.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return m};
_.n(aN,_.d);_.w=aN.prototype;_.w.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"yt-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.w.attached=function(){this.JSC$23030_scroller&&(this.JSC$23030_scroller.dialogElement=this.hostElement.parentNode,this.JSC$23030_scroller.attached&&typeof this.JSC$23030_scroller.attached==="function"&&this.JSC$23030_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.w.onDataChanged=function(){var m=this,G;(G=this.data)!=null&&G.contents&&(this.hostElement.setAttribute("links-only","true"),_.Pe(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.maybeRenderQrCode(this.shortUrl()),_.Pv(this,function(){_.Zw(m.hostElement,"yt-refit");m.focusSharePanelHeader()}))};
_.w.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.w.handleSetTimestamp=function(m){var G=this.shortUrl();m.isSet&&(G=_.Mj(G,"t",m.timestamp));this.maybeRenderQrCode(G)};
_.w.shortUrl=function(){var m,G=(m=this.data)==null?void 0:m.contents;if(G)for(m=0;m<G.length;m++){var K=void 0,W=void 0;if((K=G[m])==null?0:(W=K.thirdPartyNetworkSection)==null?0:W.copyLinkContainer){var L=W=K=void 0;return(L=_.Q((K=G[m])==null?void 0:(W=K.thirdPartyNetworkSection)==null?void 0:W.copyLinkContainer,MxD))==null?void 0:L.shortUrl}}};
_.w.maybeRenderQrCode=function(m){var G=this,K,W,L,A,O,c,u,h,J;return _.Y(function(N){if(N.nextAddress==1){K=_.VL(G.hostElement).querySelector("#qr-code");if(!G.qrCodeEnabled||!m)return K&&(K.style.display="none"),N.return();W=_.z5G(_.xS().resolve(_.fD),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});L=document.createElement("div");return typeof W==="function"?(W(L),N.jumpTo(2)):N.yield(W,3)}N.nextAddress!=2&&(A=N.yieldResult,A(L));u=(O=L)==null?void 0:(c=O.firstChild)==null?void 0:c.firstChild;
h=document.createElement("img");J=_.ord(nox,btoa(u.outerHTML));h.onload=function(){var D={canvas:K,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:h},t=new peW;QtG(t,m);a7P(t,!1,oC5(t));var a=t.modules,v=Object.assign({},mRz,D);a=structuredClone(a);D=a.length;var I,Z=(I=v.canvas)!=null?I:document.createElement("canvas");I=v.cellSize;t=v.logo;var k,z=(k=v.logoSize)!=null?k:Math.floor(D/4);D%2!==z%2&&z++;var X=v.logoPadding,f=v.backgroundColor;k=D*I;var U=
v.width,l=0;U&&(l=v.padding,l=Math.ceil(l*k/(U-l*2)),Z.style.width=U+"px",Z.style.height=U+"px");Z.width!==k+l*2&&(Z.width=k+l*2);Z.height!==k+l*2&&(Z.height=k+l*2);k=Z.getContext("2d");v.autoClear&&k.clearRect(0,0,Z.width,Z.height);k.fillStyle=f;k.beginPath();k.roundRect(0,0,Z.width,Z.height,v.borderRadius);k.fill();k.save();k.translate(l,l);if(t)for(Z=Math.floor(D-z)/2-X,X=Math.floor(D+z)/2+X,f=Z;f<X;f++)for(U=Z;U<X;U++)a[f][U]=!1;for(Z=0;Z<D;Z++)for(X=0;X<D;X++)(Z<7&&X<7||Z<7&&X>=D-7||Z>=D-7&&
X<7)&&(a[Z][X]=!1);var Ls;Z=(Ls=v.markerColor)!=null?Ls:v.color;br6(k,0,0,I,Z);br6(k,I*(D-7),0,I,Z);br6(k,0,I*(D-7),I,Z);switch(v.cellStyle){case 0:Ls=a;a=Ls.length;Z=v.cellSize;k.beginPath();for(X=0;X<a;X++)for(f=0;f<a;f++)Ls[X][f]&&k.rect(X*Z,f*Z,Z,Z);k.fillStyle=v.color;k.fill();break;case 1:Ls=a;a=Ls.length;Z=v.cellSize;X=Z*v.relativeCircleSize;k.fillStyle=v.color;k.beginPath();for(v=0;v<a;v++)for(f=0;f<a;f++)Ls[v][f]&&(k.beginPath(),k.ellipse((v+.5)*Z,(f+.5)*Z,X/2,X/2,0,0,2*Math.PI),k.fill());
k.fill();break;case 2:Ls=a;a=Ls.length;Z=v.cellSize;k.fillStyle=v.color;v=[[1,1],[-1,1],[-1,-1],[1,-1]];k.beginPath();for(X=0;X<a;X++)for(f=0;f<a;f++)if(Ls[X][f])k.roundRect(X*Z,f*Z,Z,Z,Z/2),X+1<a&&Ls[X+1][f]&&k.rect(X*Z+Z/2,f*Z,Z,Z),f+1<a&&Ls[X][f+1]&&k.rect(X*Z,f*Z+Z/2,Z,Z);else{U=X*Z+Z/2;l=f*Z+Z/2;for(var gd=0;gd<4;gd++){var Qf=_.g(v[gd]),JV=Qf.next().value;Qf=Qf.next().value;X+JV>=0&&X+JV<a&&f+Qf>=0&&f+Qf<a&&Ls[X+JV][f]&&Ls[X][f+Qf]&&Ls[X+JV][f+Qf]&&(JV=gd*Math.PI/2,Qf=Z/2,k.moveTo(U+Qf*Math.cos(JV),
l+Qf*Math.sin(JV)),k.arc(U,l,Z/2,JV,JV+Math.PI/2,!1),k.lineTo(U+Qf*(Math.cos(JV)-Math.sin(JV)),l+Qf*(Math.cos(JV)+Math.sin(JV))),k.lineTo(U+Qf*Math.cos(JV),l+Qf*Math.sin(JV)))}}k.fill()}t&&k.drawImage(t,(D-z)*I/2,(D-z)*I/2,z*I,z*I);k.restore();K.style.removeProperty("display")};
h.src=_.Ue(J);_.ey(N)})};
_.w.hasCommunityPostRenderer=function(){var m,G,K,W;return!!((m=this.data)==null?0:(G=m.header)==null?0:(K=G.sharePanelHeaderRenderer)==null?0:(W=K.communityPost)==null?0:W.communityPostSectionRenderer)};
_.w.onTapClose=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-unified-share-panel-renderer"])};
_.w.getScreenLayer=function(){return this.screenLayer};
aN.prototype.onDataChanged=aN.prototype.onDataChanged;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],aN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],aN.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],aN.prototype,"data",void 0);
_.x([_.V({value:_.zq("SBOX_INAPPROPRIATE_CANCEL")}),_.S("design:type",String)],aN.prototype,"closeButtonAriaLabel",void 0);_.x([_.UM("yt-share-panel-header-renderer"),_.S("design:type",HTMLElement)],aN.prototype,"header",void 0);_.x([_.V(),_.S("design:type",Object)],aN.prototype,"qrCodeEnabled",void 0);_.x([_.UM("#scroller"),_.S("design:type",Object)],aN.prototype,"JSC$23030_scroller",void 0);
_.x([_.Mg("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],aN.prototype,"onDataChanged",null);_.x([_.cL({disableElementRegistration:!0,is:"yt-unified-share-panel-renderer"})],aN);
_.y(aN,"yt-unified-share-panel-renderer",function(){if(oog===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-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 yt-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope yt-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope yt-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 yt-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope yt-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 yt-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope yt-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope yt-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);oog=m}m=oog;return m},{mode:1});var bpC={};
bpC.YtUnlimitedFamilyInterstitialBehavior=[_.Zd.YtOpenPopupBehavior,_.Pq.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(m){m=_.Pri(_.$C(m),"yt-button-renderer");return m?m.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(m){this.dialogHistory_.push(m)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var m=this.popFromHistory();if(m){var G={openPopupAction:{popupType:"DIALOG",popup:{}}};G.openPopupAction.popup[m.renderer]=m.data;this.showingPreviousDialog_=!0;this.openPopup(G)}},
handleOpenPopupAction_:function(m){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var G=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(W){return!!m.openPopupAction.popup[W]}),K=this.getElementName_();
G&&this.data&&(this.pushToHistory({renderer:K,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(m){if(m=_.Q(m,B2i))this.loading=!0,_.dU(this.hostElement,"yt-open-create-family-dialog",[m,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var m=this.hostElement.nodeName.split("-").slice(1).map(function(G){return""+G[0].toUpperCase()+G.slice(1).toLowerCase()}).join("");
return m[0].toLowerCase()+m.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var voG;var $IC;var oN=function(){return _.d.apply(this,arguments)||this};
_.n(oN,_.d);_.w=oN.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.dU(this.hostElement,"yt-register-create-family-dialog");_.VL(this.hostElement).querySelector("#thumbnail").onShow()};
_.w.fireOnCloseCommand_=function(){var m;((m=this.data)==null?0:m.onCloseCommand)&&_.eD(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.w.onYtServiceRequestSent_=function(m,G){G&&G.endpoint&&_.Q(G.endpoint,_.SD)||(this.loading=!0)};
_.w.onYtServiceRequestCompleted_=function(){var m=this.hostElement.parentElement;m.close&&m.close();this.loading=!1};
_.w.openPopupHandler_=function(m){if(m.detail==this){var G;((G=this.data)==null?0:G.onOpenCommands)&&_.eD(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.w.closePopupHandler_=function(m,G){this.fireOnCloseCommand_();if(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1){var K;((K=this.data)==null?0:K.onDismissCommands)&&_.eD(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.w.dataChanged_=function(){this.loading=!1};
oN.prototype.dataChanged_=oN.prototype.dataChanged_;oN.prototype.closePopupHandler_=oN.prototype.closePopupHandler_;oN.prototype.openPopupHandler_=oN.prototype.openPopupHandler_;oN.prototype.onYtServiceRequestCompleted_=oN.prototype.onYtServiceRequestCompleted_;oN.prototype.onYtServiceRequestSent_=oN.prototype.onYtServiceRequestSent_;_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],oN.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],oN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(bpC.YtUnlimitedFamilyInterstitialBehavior),_.S("design:type",Object)],oN.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],oN.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],oN.prototype,"loading",void 0);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],oN.prototype,"onYtServiceRequestSent_",null);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],oN.prototype,"onYtServiceRequestCompleted_",null);
_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],oN.prototype,"openPopupHandler_",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],oN.prototype,"closePopupHandler_",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],oN.prototype,"dataChanged_",null);
_.x([_.cL({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],oN);
_.y(oN,"yt-unlimited-family-message-interstitial-renderer",function(){if($IC===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;voG===void 0&&(voG=document.createElement("template"));var W=voG;K.call(G,W.content.cloneNode(!0),m.content.firstChild);$IC=m}m=$IC;return m},{mode:2});var se3;var qeI;var ny=function(){return _.d.apply(this,arguments)||this};
_.n(ny,_.d);ny.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"}}}};
ny.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.VL(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(m){m.onShow()});
_.VL(this.hostElement).querySelector("#main-thumbnail").onShow()};
ny.prototype.onButtonTap_=function(m){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(m)};
ny.prototype.computeMainThumbnailWidth_=function(m){return m&&m.length!==0?72:96};
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],ny.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.x([_.q(bpC.YtUnlimitedFamilyInterstitialBehavior),_.S("design:type",Object)],ny.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],ny.prototype,"data",void 0);
_.x([_.V({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.S("design:type",Number)],ny.prototype,"mainThumbnailWidth_",void 0);_.x([_.V({value:function(){return this.onButtonTap_.bind(this)}}),
_.S("design:type",Function)],ny.prototype,"boundButtonTap_",void 0);_.x([_.cL({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],ny);
_.y(ny,"yt-unlimited-family-profile-interstitial-renderer",function(){if(qeI===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;se3===void 0&&(se3=document.createElement("template"));var W=se3;K.call(G,W.content.cloneNode(!0),m.content.firstChild);qeI=m}m=qeI;return m},{mode:2});var EoI;var HpC;var bf=function(){var m=_.d.apply(this,arguments)||this;m.sliderAriaValueText_=null;m.selectedIndex_=0;m.messages={PAUSE_SLIDER:_.zq("PAUSE_SLIDER",void 0,"Pause Duration")};return m};
_.n(bf,_.d);_.w=bf.prototype;_.w.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_]]"}}}}}};
_.w.onPopupOpened_=function(m){m.detail==this&&_.F("enable_premium_voluntary_pause")&&(_.dU(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.w.setDialogData=function(m){this.data=m;this.resetSlider_()};
_.w.dataChanged_=function(){this.data&&this.resetSlider_()};
_.w.onSubmitTap_=function(){if(this.data.confirmCommand){var m=this.data.confirmCommand;_.Q(m,_.oUX)&&_.yQ(this.hostElement,[m,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.w.onExitButtonTap_=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.w.closePopupHandler_=function(m,G){(G&&G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.handleOnDismissCommands_()};
_.w.onSliderChange_=function(){this.selectedIndex_=_.VL(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.w.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.w.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.w.resetSlider_=function(){if(this.data){var m=this.data.defaultEndOptionIndex||0,G=_.VL(this.hostElement).querySelector("#id-pause-slider");if(G.immediateValue<m)for(;G.immediateValue!=m;)G.increment();else if(m<G.immediateValue)for(;G.immediateValue!=m;)G.decrement();this.selectedIndex_=m;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.w.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.eD(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.w.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.eD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestSent=function(){this.loading=!0};
_.w.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
bf.prototype.onYtServiceRequestCompleted=bf.prototype.onYtServiceRequestCompleted;bf.prototype.onYtServiceRequestSent=bf.prototype.onYtServiceRequestSent;bf.prototype.closePopupHandler_=bf.prototype.closePopupHandler_;bf.prototype.dataChanged_=bf.prototype.dataChanged_;bf.prototype.onPopupOpened_=bf.prototype.onPopupOpened_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],bf.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],bf.prototype,"loading",void 0);_.x([_.V(),_.S("design:type",Number)],bf.prototype,"selectIndexMax_",void 0);_.x([_.V(),_.S("design:type",Object)],bf.prototype,"selectedData_",void 0);
_.x([_.V(),_.S("design:type",Object)],bf.prototype,"sliderAriaValueText_",void 0);_.x([_.V({value:function(){return this.onSubmitTap_.bind(this)}}),
_.S("design:type",Function)],bf.prototype,"onButtonTap_",void 0);_.x([_.V({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.S("design:type",Function)],bf.prototype,"onSecondaryTap_",void 0);_.x([_.V(),_.S("design:type",Object)],bf.prototype,"messages",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bf.prototype,"onPopupOpened_",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],bf.prototype,"dataChanged_",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],bf.prototype,"closePopupHandler_",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],bf.prototype,"onYtServiceRequestSent",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],bf.prototype,"onYtServiceRequestCompleted",null);_.x([_.cL({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],bf);
_.y(bf,"yt-unplugged-pause-membership-dialog-renderer",function(){if(HpC===void 0){var m=document.createElement("template");_.b(m,'\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>');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;EoI===void 0&&(EoI=document.createElement("template"));var W=EoI;K.call(G,W.content.cloneNode(!0),m.content.firstChild);HpC=m}m=HpC;return m},{mode:2});var I3x;var jeg;var v1=function(){return _.d.apply(this,arguments)||this};
_.n(v1,_.d);v1.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Wp("vcBalanceRenderer")}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],v1.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],v1.prototype,"data",void 0);_.x([_.cL({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],v1);
_.y(v1,"yt-vc-offer-layout-header-renderer",function(){if(jeg===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;I3x===void 0&&(I3x=document.createElement("template"));var W=I3x;K.call(G,W.content.cloneNode(!0),m.content.firstChild);jeg=m}m=jeg;return m},{mode:2});var k7x;var Cgp;var V4I;var Zpp;var $X=function(){return _.d.apply(this,arguments)||this};
_.n($X,_.d);$X.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.e_.Object.defineProperties($X.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)}}});
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],$X.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.iPD.YtTappableItemBehavior),_.S("design:type",Object)],$X.prototype,"ytTappableItemBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],$X.prototype,"data",void 0);
_.x([_.V({reflectToAttribute:!0}),_.E("data.accessibilityText"),_.S("design:type",String),_.S("design:paramtypes",[])],$X.prototype,"ariaLabel",null);_.x([_.V({reflectToAttribute:!0}),_.E("data.style"),_.S("design:type",String),_.S("design:paramtypes",[])],$X.prototype,"vcOfferStyle",null);_.x([_.E("data.style","data.titleText"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],$X.prototype,"showTitleText",null);_.x([_.cL({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],$X);
_.y($X,"yt-vc-offer-renderer",function(){if(Zpp===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;V4I===void 0&&(V4I=document.createElement("template"));var W=V4I;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Zpp=m}m=Zpp;return m},{mode:2});var s6=function(){return _.d.apply(this,arguments)||this};
_.n(s6,_.d);s6.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],s6.prototype,"data",void 0);_.x([_.cL({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],s6);
_.y(s6,"yt-vc-offer-layout-renderer",function(){if(Cgp===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;k7x===void 0&&(k7x=document.createElement("template"));var W=k7x;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Cgp=m}m=Cgp;return m},{mode:2});var dIg;var Pgg;var yCO;var eC4;var q9=function(){return _.d.apply(this,arguments)||this};
_.n(q9,_.d);q9.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}}}}}};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],q9.prototype,"data",void 0);_.x([_.cL({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],q9);
_.y(q9,"yt-ypc-offers-modal-top-bar-renderer",function(){if(eC4===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;yCO===void 0&&(yCO=document.createElement("template"));var W=yCO;K.call(G,W.content.cloneNode(!0),m.content.firstChild);eC4=m}m=eC4;return m},{mode:2});var E6=function(){return _.d.apply(this,arguments)||this};
_.n(E6,_.d);E6.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"}}}}};
E6.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
E6.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var m=this.scrollable;m.attached&&typeof m.attached==="function"&&m.attached()};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.x([_.UM("#scrollable"),_.S("design:type",Object)],E6.prototype,"scrollable",void 0);_.x([_.V(),_.S("design:type",Object)],E6.prototype,"data",void 0);_.x([_.cL({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],E6);
_.y(E6,"yt-ypc-offers-modal-renderer",function(){if(Pgg===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;dIg===void 0&&(dIg=document.createElement("template"));var W=dIg;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Pgg=m}m=Pgg;return m},{mode:2});var f3e;var xIN;var H1=function(){return _.d.apply(this,arguments)||this};
_.n(H1,_.d);_.w=H1.prototype;_.w.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}}}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.VL(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.w.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.dU(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.w.onYtPopupOpened_=function(m,G){(G==null?void 0:G.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.eD(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.w.onYtPopupClosed_=function(m,G){this.continueButtonTapped||G&&(G.canceled===!0||G.canceled===!1&&G.confirmed===!1)&&this.data.onDismissCommands&&_.eD(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.w.onYtServiceRequestError_=function(m){this.set("showSpinner",!1);_.QH(this.hostElement,m.detail.error.message)};
_.w.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.F("enable_ypc_spinners")?_.dU(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
H1.prototype.onYtServiceRequestError_=H1.prototype.onYtServiceRequestError_;H1.prototype.onYtPopupClosed_=H1.prototype.onYtPopupClosed_;H1.prototype.onYtPopupOpened_=H1.prototype.onYtPopupOpened_;H1.prototype.onYtServiceRequestCompleted_=H1.prototype.onYtServiceRequestCompleted_;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],H1.prototype,"ytRendererstamperBehavior",void 0);
_.x([_.V(),_.S("design:type",Object)],H1.prototype,"data",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],H1.prototype,"showSpinner",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],H1.prototype,"continueButtonTapped",void 0);_.x([_.V({value:function(){return this.onContinueTapped_.bind(this)}}),
_.S("design:type",Function)],H1.prototype,"bindOnContinueTapped_",void 0);_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],H1.prototype,"onYtServiceRequestCompleted_",null);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],H1.prototype,"onYtPopupOpened_",null);
_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],H1.prototype,"onYtPopupClosed_",null);_.x([_.XC("yt-service-request-error"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],H1.prototype,"onYtServiceRequestError_",null);_.x([_.cL({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],H1);
_.y(H1,"yt-ypc-upgrade-dialog-renderer",function(){if(xIN===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;f3e===void 0&&(f3e=document.createElement("template"));var W=f3e;K.call(G,W.content.cloneNode(!0),m.content.firstChild);xIN=m}m=xIN;return m},{mode:2});var XNC;var Se3;var IN=function(){return _.d.apply(this,arguments)||this};
_.n(IN,_.d);IN.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
IN.prototype.computeHasButtons_=function(m){return!(!m.dismissButton&&!m.confirmButton)};
IN.prototype.computeStyle_=function(m){return m||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],IN.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],IN.prototype,"ytEventForwardingBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],IN.prototype,"data",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],IN.prototype,"positionType",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.S("design:type",Boolean)],IN.prototype,"hasButtons_",void 0);_.x([_.V({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.S("design:type",Boolean)],IN.prototype,"style_",void 0);_.x([_.cL({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],IN);
_.y(IN,"yt-bubble-hint-renderer",function(){if(Se3===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;XNC===void 0&&(XNC=document.createElement("template"));var W=XNC;K.call(G,W.content.cloneNode(!0),m.content.firstChild);Se3=m}m=Se3;return m},{mode:2});var RC4;var UIN;var jT=function(){var m=_.fC.apply(this,arguments)||this;m.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return m};
_.n(jT,_.fC);_.w=jT.prototype;_.w.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.w.attached=function(){var m=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){m.$.thumbnail.onShow();m.$["header-image"].onShow()})};
_.w.handleCheckBoxUpdateAction_=function(m){this.canShowCheckboxEnabledConfirmButton=m};
_.w.computeUseOverlayForSpinner_=function(m,G){return!!m&&G};
_.w.computeShowSpinner_=function(m,G){return m||!!G};
_.w.fireOnCloseActions_=function(){var m,G=_.g(((m=this.data)==null?void 0:m.onClosedActions)||[]);for(m=G.next();!m.done;m=G.next())this.ytRendererBehavior.resolveCommand(m.value)};
_.w.fireOnOpenCommands_=function(m){var G,K=(G=this.data)==null?void 0:G.onOpenCommands;if(K)for(m.stopImmediatePropagation(),m=_.g(K),G=m.next();!G.done;G=m.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.w.fireOnDismissCommands_=function(m){var G,K=(G=this.data)==null?void 0:G.onDismissCommands;if(K)for(m.stopImmediatePropagation(),m=_.g(K),G=m.next();!G.done;G=m.next())this.ytRendererBehavior.resolveCommand(G.value)};
_.w.openPopupHandler_=function(m){m.detail==this&&this.fireOnOpenCommands_(m)};
_.w.closePopupHandler_=function(m,G){_.PH(this,"yt-confirm-dialog-close-action",[G]);this.fireOnCloseActions_();(G&&G.canceled===!0||G&&G.canceled===!1&&G.confirmed===!1)&&this.fireOnDismissCommands_(m)};
_.w.onHeaderImageChanged_=function(){var m;((m=this.data)==null?0:m.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.w.computeHasHeaderImageWidth_=function(m){return m!=void 0};
_.w.computeHasLoadingMessage=function(m){return!!m};
_.w.onHeaderImageWidthChanged_=function(){var m,G=(m=this.data)==null?void 0:m.headerImageWidth;if(G){if(m=1.25*G*2+G,this.$.main.style.width=m+"px",G=this.$.scroller.firstElementChild)G.style.minWidth=m+"px"}else this.$.main.style.width="100%"};
_.w.onThumbnailChanged_=function(){var m;((m=this.data)==null?0:m.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")};
_.w.onYtNavigate_=function(m){m=_.$C(m);m instanceof Node&&_.Z7(this.$["confirm-button"]).contains(m)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.w.computePrimaryIsCancel_=function(m){return m};
_.w.computeIsCancelButtonHidden_=function(m){return m.skipCancelButton||!m.cancelButton};
_.w.computeIsCheckboxHidden_=function(m){return!m.checkbox};
_.w.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.w.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.w.onYtServiceRequestCompleted_=function(){var m;((m=this.data)==null?0:m.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.e_.Object.defineProperties(jT,{template:{configurable:!0,enumerable:!0,get:function(){if(UIN===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;RC4===void 0&&(RC4=document.createElement("template"));var W=RC4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);UIN=m}m=UIN;return m}}});
jT.prototype.onYtServiceRequestCompleted_=jT.prototype.onYtServiceRequestCompleted_;jT.prototype.onYtServiceRequestSent_=jT.prototype.onYtServiceRequestSent_;jT.prototype.onThumbnailLoaded_=jT.prototype.onThumbnailLoaded_;jT.prototype.onYtNavigate_=jT.prototype.onYtNavigate_;jT.prototype.onThumbnailChanged_=jT.prototype.onThumbnailChanged_;jT.prototype.onHeaderImageWidthChanged_=jT.prototype.onHeaderImageWidthChanged_;jT.prototype.onHeaderImageChanged_=jT.prototype.onHeaderImageChanged_;
jT.prototype.closePopupHandler_=jT.prototype.closePopupHandler_;jT.prototype.openPopupHandler_=jT.prototype.openPopupHandler_;_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],jT.prototype,"ytActionHandlerBehavior",void 0);_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);
_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],jT.prototype,"ytEventForwardingBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],jT.prototype,"data",void 0);_.x([_.V({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.S("design:type",Boolean)],jT.prototype,"primaryIsCancel",void 0);_.x([_.V({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.S("design:type",Boolean)],jT.prototype,"isCancelButtonHidden",void 0);
_.x([_.V({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.S("design:type",Boolean)],jT.prototype,"isCheckboxHidden",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],jT.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.x([_.V({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.S("design:type",Boolean)],jT.prototype,"useOverlayForSpinner_",void 0);
_.x([_.V({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.S("design:type",Boolean)],jT.prototype,"showSpinner_",void 0);_.x([_.V({value:!1}),_.S("design:type",Boolean)],jT.prototype,"isActionInProgress_",void 0);_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.S("design:type",Boolean)],jT.prototype,"hasHeaderImageWidth_",void 0);
_.x([_.V({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.S("design:type",Boolean)],jT.prototype,"hasLoadingMessage",void 0);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],jT.prototype,"openPopupHandler_",null);_.x([_.XC("yt-popup-closed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],jT.prototype,"closePopupHandler_",null);
_.x([_.Sb("data.headerImage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jT.prototype,"onHeaderImageChanged_",null);_.x([_.Sb("data.headerImageWidth"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jT.prototype,"onHeaderImageWidthChanged_",null);_.x([_.Sb("data.thumbnail"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jT.prototype,"onThumbnailChanged_",null);
_.x([_.XC("yt-navigate"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],jT.prototype,"onYtNavigate_",null);_.x([_.XC("yt-img-shadow-loaded"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],jT.prototype,"onThumbnailLoaded_",null);_.x([_.XC("yt-service-request-sent"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.pz]),_.S("design:returntype")],jT.prototype,"onYtServiceRequestSent_",null);
_.x([_.XC("yt-service-request-completed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,_.oL]),_.S("design:returntype")],jT.prototype,"onYtServiceRequestCompleted_",null);_.x([_.cL({is:"yt-confirm-dialog-renderer",noInjection:!0})],jT);var zCe;var l3o;var kX=function(){return _.d.apply(this,arguments)||this};
_.n(kX,_.d);kX.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.VL(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
kX.prototype.computeConfirmButton_=function(m){var G={text:m.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};m.confirmNavigationEndpoint?G.navigationEndpoint=m.confirmNavigationEndpoint:m.confirmServiceEndpoint&&(G.serviceEndpoint=m.confirmServiceEndpoint);return G};
kX.prototype.computeShowTitle_=function(m){return!(m==null||!m.title)};
_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],kX.prototype,"data",void 0);_.x([_.V({computed:"computeShowTitle_(data)"}),_.S("design:type",Boolean)],kX.prototype,"showTitle",void 0);_.x([_.cL({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],kX);
_.y(kX,"yt-fancy-dismissible-dialog-renderer",function(){if(l3o===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;zCe===void 0&&(zCe=document.createElement("template"));var W=zCe;K.call(G,W.content.cloneNode(!0),m.content.firstChild);l3o=m}m=l3o;return m});var Bx4;var M4u;var Cy=function(){var m=_.d.apply(this,arguments)||this;m.spinnerActive=!1;return m};
_.n(Cy,_.d);Cy.prototype.created=function(){pW6(2201)};
Cy.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Cy.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Cy.prototype.onIronOverlayClosed=Cy.prototype.onIronOverlayClosed;Cy.prototype.onIronOverlayOpened=Cy.prototype.onIronOverlayOpened;_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.Jp),_.S("design:type",Object)],Cy.prototype,"tpYtIronOverlayBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],Cy.prototype,"data",void 0);_.x([_.V(),_.S("design:type",Object)],Cy.prototype,"spinnerActive",void 0);
_.x([_.XC("iron-overlay-opened"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cy.prototype,"onIronOverlayOpened",null);_.x([_.XC("iron-overlay-closed"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],Cy.prototype,"onIronOverlayClosed",null);_.x([_.cL({is:"yt-loading-renderer",disableElementRegistration:!0})],Cy);
_.y(Cy,"yt-loading-renderer",function(){if(M4u===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Bx4===void 0&&(Bx4=document.createElement("template"));var W=Bx4;K.call(G,W.content.cloneNode(!0),m.content.firstChild);M4u=m}m=M4u;return m},{mode:2});var Txp;var mpG;var V9=function(){var m=_.d.apply(this,arguments)||this;m.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);m.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);m.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";m.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return m};
_.n(V9,_.d);_.w=V9.prototype;_.w.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.w.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.w.onDarkModeToggledAction=function(m){this.isDarkTheme=m};
_.w.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.w.openPopupHandler_=function(m){m.detail===this.hostElement&&this.hostElement.hidden&&_.dU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.w.onDismissButtonTap_=function(){var m;this.closeOnDismissButton_.has(((m=this.data)==null?void 0:m.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.w.onAcceptButtonTap_=function(){var m;this.closeOnAcceptButton_.has(((m=this.data)==null?void 0:m.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.dU(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.w.computeHasHeader_=function(m){return!!m.headerBackgroundImage};
_.w.computeLayoutStyle_=function(m){return m};
_.w.computePopupSize_=function(m){return m};
_.w.computeIconType_=function(m){return m.dialogIcon&&m.dialogIcon.iconType?m.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":m.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":m.dialogIcon.iconType:""};
_.w.computeIsLogo_=function(m){return!!m.dialogIcon&&!!m.dialogIcon.iconType&&(m.dialogIcon.iconType==="YOUTUBE_LOGO"||m.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||m.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.w.computeHasCustomLogo=function(m){return!(m==null||!m.headerForegroundImage)};
_.w.computeCustomLogo=function(m,G){if(m!=null&&m.headerForegroundImage)return m.headerForegroundImageDark?G?m.headerForegroundImageDark:m.headerForegroundImage:m.headerForegroundImage};
_.w.computeHeaderBackgroundImage=function(m,G){if(m!=null&&m.headerBackgroundImage)return G&&(m==null?0:m.headerBackgroundImageDark)?m.headerBackgroundImageDark:m.headerBackgroundImage};
_.w.shouldShowIconContainer=function(m,G){return m&&!G};
_.w.shouldShowNonYouTubeIcon=function(m,G){return!m&&!G};
_.w.getLogoImageId=function(m){var G,K,W;return(m=(G=this.computeCustomLogo(m,this.isDarkTheme))==null?void 0:(K=G.thumbnails)==null?void 0:(W=K[0])==null?void 0:W.height)&&m%31===0?"custom-logo-with-padding":"custom-logo"};
V9.prototype.openPopupHandler_=V9.prototype.openPopupHandler_;V9.prototype.dataChanged_=V9.prototype.dataChanged_;_.x([_.q(_.$P.YtRendererstamperBehavior),_.S("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.x([_.V(),_.S("design:type",Boolean)],V9.prototype,"isDarkTheme",void 0);
_.x([_.V({computed:"computeCustomLogo(data, isDarkTheme)"}),_.S("design:type",Object)],V9.prototype,"customLogo",void 0);_.x([_.V({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.S("design:type",Object)],V9.prototype,"headerBackgroundImage",void 0);_.x([_.V(),_.S("design:type",Object)],V9.prototype,"data",void 0);_.x([_.V({computed:"computeHasHeader_(data)"}),_.S("design:type",Boolean)],V9.prototype,"hasHeader",void 0);
_.x([_.V({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.S("design:type",Object)],V9.prototype,"layoutStyle",void 0);_.x([_.V({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.S("design:type",Object)],V9.prototype,"popupSize",void 0);_.x([_.V({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],V9.prototype,"hasLogo",void 0);
_.x([_.V({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.S("design:type",Boolean)],V9.prototype,"hasCustomLogo",void 0);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],V9.prototype,"dataChanged_",null);_.x([_.XC("yt-popup-opened"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],V9.prototype,"openPopupHandler_",null);
_.x([_.cL({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],V9);
_.y(V9,"yt-upsell-dialog-renderer",function(){if(mpG===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;Txp===void 0&&(Txp=document.createElement("template"));var W=Txp;K.call(G,W.content.cloneNode(!0),m.content.firstChild);mpG=m}m=mpG;return m},{mode:2});var iZg=_.P(function(m){return _.r("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.r(_.p,{cond:m.title,then:function(G){return _.r("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},G)}}))},"nl"),Gp7=_.P(function(m){return _.r("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.r(_.z$,{data:m.closeButton},{buttonViewModel:function(G){return _.r("div",null,_.r(_.kP,{data:G.data}))}}))},"ol"),Kbe=_.P(function(m){var G=m.data;
return _.r(_.zL,null,_.r("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.r("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.r(_.p,{cond:function(){return!!G().image&&!!G().title},
then:function(){return _.r(_.oC,{data:function(){return G().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.r("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.r(_.p,{cond:function(){return G().title},
then:function(K){return _.r("h3",{class:"miniAppGameInfoDialogViewModelTitle"},K)}}),_.r(_.p,{cond:function(){return G().primaryGenre},
then:function(K){return _.r("span",{class:"miniAppGameInfoDialogViewModelGenre"},K)}}))),_.r(_.p,{cond:function(){var K=G().description;
return K&&K.length<=150},
then:function(){return _.r("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.r("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return G().description}))}}))},"pl"),WbC=_.P(function(m){var G=m.ageRating;
return _.r("span",{class:"miniAppGameInfoDialogViewModelAgeRatingWrapper"},_.r(_.oC,{data:function(){return{sources:[{url:G().imageUrl||"",width:18,height:18}]}},
className:"miniAppGameInfoDialogViewModelAgeRatingImage",alt:"",targetHeight:18,targetWidth:18,preserveWidth:!0,preserveHeight:!0}),_.r("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.r(_.Nm,{text:function(){return G().attributedLabel},
noPreWrap:!0})))},"ql"),Lbe=_.P(function(m){m=m.infoRows;
var G=_.xS().resolve(_.vy),K=_.F("enable_displaying_ppn");return _.r("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.r(_.D0,{each:m},function(W){return _.r("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.r(_.p,{cond:function(){return W.label},
then:function(L){return _.r("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},L)}}),_.r(_.p,{cond:function(){return W.attributedLabel},
then:function(L){return _.r("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.r(_.Nm,{text:L,noPreWrap:!0}))}}),_.r(_.p,{cond:function(){return W.value},
then:function(L){return _.r("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},L)}}),_.r(_.p,{cond:function(){return W.attributedValue},
then:function(L){return _.r("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.r(_.Nm,{text:L,noPreWrap:!0}))}}),_.r(_.p,{cond:function(){return W.ageRating},
then:function(L){return _.r(WbC,{ageRating:L})}}))}),_.r(_.p,{cond:function(){return K&&G.clientData.has("post_play_nonce")},
then:function(){return _.r("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.r("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.r("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},G.getData("post_play_nonce")))}}))},"rl"),AtC=_.P(function(m){var G=m.data;
return _.r("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.r(iZg,{title:function(){return G().dialogTitle}}),_.r(Kbe,{data:G}),_.r(_.p,{cond:function(){return G().infoRow},
then:function(K){return _.r(Lbe,{infoRows:K})}}),_.r(Gp7,{closeButton:function(){return G().closeButton}}))},"sl");
AtC.idomCompat=!0;_.sh(AtC,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;return _.r("yt-gulp-triggering-dialog-view-model",{class:_.VO("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.r(_.oC,{data:function(){return G().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.r("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.r("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.r("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.p,{cond:function(){return G().bodyText},
then:function(K){return _.r(_.D0,{each:K},function(W){return _.r("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.r(_.Nm,{text:W}))})}})),_.r("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.r(_.z$,{data:function(){return G().dismissButton}},{buttonViewModel:function(K){return _.r("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.r(_.kP,{data:K.data}))}}),_.r(_.z$,{data:function(){return G().actionButton}},{buttonViewModel:function(K){return _.r("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.r(_.kP,{data:K.data}))}}))))},"tl"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Dd}});var wzx=_.P(function(m){var G=m.data;m=_.sQ(function(){return G().agreements},[]);
return _.r("installment-agreements-view-model",{class:_.VO("ytInstallmentAgreementsViewModelHost")},_.r(_.D0,{each:m},function(K){return _.r("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.r("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.r(_.Nm,{text:K.label})),_.r("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.r(_.z$,{data:function(){return K.openButton}},{buttonViewModel:_.kP})))}))},"ul");
wzx.idomCompat=!0;var gre=_.P(function(m){var G=_.g(_.EQ(function(){var U,l;return((U=m.data().createPlaylistDialogFormSchema)==null?0:(l=U.initialValues)==null?0:l.title)?m.data().createPlaylistDialogFormSchema.initialValues.title:""})),K=G.next().value,W=G.next().value;
G=_.g(_.EQ(function(){m.data();return!1}));
var L=G.next().value,A=G.next().value;G=_.g(_.EQ(function(){m.data();return!1}));
var O=G.next().value,c=G.next().value;G=_.g(_.EQ(function(){var U,l;return(U=m.data().createPlaylistDialogFormSchema)==null?void 0:(l=U.initialValues)==null?void 0:l.visibility}));
var u=G.next().value,h=G.next().value;G=_.g(_.EQ(function(){m.data();return!1}));
var J=G.next().value,N=G.next().value;G=_.g(_.EQ(function(){var U,l;return(U=m.data().createPlaylistDialogFormSchema)==null?void 0:(l=U.initialValues)==null?void 0:l.isCollaborative}));
var D=G.next().value,t=G.next().value,a=_.Q3("div");_.$O(function(){var U=a.value.querySelector("textarea");U&&(U.value=K())},"axFRaf");
_.bX(function(){var U;JW6((U=m.data().createPlaylistDialogFormSchema)==null?void 0:U.id,{onSubmit:function(){var l=K();var Ls=u(),gd=D(),Qf=m.data();l={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:l,privacyStatus:Ls,videoIds:Qf.videoIds,sourcePlaylistId:Qf.sourcePlaylistId,params:gd?Qf.createPlaylistParamsCollaborationEnabled:Qf.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.xS().resolve(_.S1).resolveCommand(l)},
isValid:function(){return L()&&!O()&&!J()}})});
var v=function(U){if(U!==void 0&&(W(U),!L()&&U.length>0&&A(!0),L())){var l=DEq(m.data());if(l){var Ls=l.minLength;l=l.maxLength;Ls&&U.length<Ls?c(!0):l&&U.length>l?c(!0):c(!1)}}},I=function(){var U=!(!D()||u()!=="PRIVATE");
N(U)},Z=function(U){U!==void 0&&(h(U),I())},k=function(){if(J())return F9W(m.data())},z=function(){t(!D());
I()},X=function(){return{validate:function(U){if(L()){var l=DEq(m.data());
if(l){var Ls=l.minLength;l=l.translations;if(Ls&&U.length<Ls)return l==null?void 0:l.minLengthErrorMessage}}}}},f=function(){var U=DEq(m.data()),l=U==null?void 0:U.maxLength,Ls;
U=U==null?void 0:(Ls=U.translations)==null?void 0:Ls.maxLengthErrorMessage;if(l&&U)return{maxChars:l,errorMessage:U}};
return _.r("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.r("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:a},_.r(_.z$,{data:function(){return m.data().playlistTitle}},{textFormFieldViewModel:function(U){return _.r(SEO,{data:U.data,
text:K,onInput:v,validation:X,characterLimit:f})},
textFieldViewModel:function(U){return _.r(X5E,{data:U.data,text:K,controlledMode:!0,onInput:v,validation:X,characterLimit:f})}})),_.r("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.r(_.z$,{data:function(){return m.data().playlistVisibility}},{dropdownViewModel:function(U){return _.r(GZq,{data:U.data,
onSelected:Z,error:k})}})),_.r(_.p,{cond:function(){return!!m.data().playlistCollaborate},
then:function(){return _.r("div",null,_.r(_.z$,{data:function(){return m.data().playlistCollaborate}},{switchListItemViewModel:function(U){return _.r(_.zE4,{data:U.data,
onTap:z})}}))}}))},"wl");var OZG=_.P(function(m){var G=m.data;return _.r("upsell-offer-table-cell-content-view-model",null,_.r("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.r(_.tw,null,_.r(_.Jw,{when:function(){var K;return(K=G().icon)==null?void 0:K.iconType}},function(){return _.r("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.r(_.fN,{icon:function(){var K;
return(K=G().icon)==null?void 0:K.iconType.toString()}}))}),_.r(_.Jw,{when:function(){return G().title}},function(){return _.r(_.Nm,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return G().title}})}),_.r(_.Jw,{when:function(){return G().subtitle}},function(){return _.r(_.Nm,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return G().subtitle}})}),_.r(_.Jw,{when:function(){return G().infoText}},function(){return _.r(_.Nm,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return G().infoText}})}),_.r(_.Jw,{when:function(){return G().featureDescription}},function(){return _.r(_.Nm,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return G().featureDescription}})}),_.r(_.Jw,{when:function(){return G().note}},function(){return _.r(_.Nm,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return G().note}})})),_.r(_.p,{cond:function(){var K;
return(K=G().icon)==null?void 0:K.iconAccessibilityText},
then:function(){return _.r("span",{class:"ytUpsellOfferTableCellContentViewModelVisuallyHiddenAccessibility"},function(){var K;return(K=G().icon)==null?void 0:K.iconAccessibilityText})}})))},"xl");
OZG.idomCompat=!0;var ctN=_.P(function(m){var G=m.data;var K=m.cellIndex;var W=m.rowIndex;return _.r("upsell-offer-table-cell-view-model",null,_.r("div",{class:_.VO("ytUpsellOfferTableCellViewModelCellWrapper",function(){return G().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":G().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"}),
id:function(){var L,A;return"cell-"+((L=W==null?void 0:W())!=null?L:0)+"-"+((A=K==null?void 0:K())!=null?A:0)},
role:function(){return G().isFirstRow?"columnHeader":G().isFirstColumn?"rowheader":"gridcell"}},_.r(_.z$,{data:function(){return G().contents}},{upsellOfferTableCellContentViewModel:OZG})))},"yl");
ctN.idomCompat=!0;var YyI=_.P(function(m){var G=m.data;var K=m.upsellTableIsFirstRow;var W=m.rowIndex;var L=function(){return(K==null?0:K())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},A=function(){return(K==null?0:K())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.r("ytm-upsell-offer-table-row-view-model",null,_.r("div",{class:function(){return(K==null?0:K())?"ytUpsellOfferTableRowViewModelHostFirstRow":"ytUpsellOfferTableRowViewModelHost"},
role:"row","aria-owns":function(){return"cell-"+(W==null?void 0:W())+"-1 cell-"+(W==null?void 0:W())+"-2"}},_.r(_.z$,{data:function(){return G().rowHeaderCell}},{upsellOfferTableCellViewModel:function(O){return _.r("div",{class:L},_.r(ctN,{data:O.data,
cellIndex:0,rowIndex:W}))}}),_.r("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.r(_.z$,{data:function(){return G().contentCells}},{upsellOfferTableCellViewModel:function(O,c){return _.r("div",{class:A},_.r(ctN,{data:O.data,
cellIndex:function(){return c()+1},
rowIndex:W}))}}))))},"zl");
YyI.idomCompat=!0;var rt4=_.P(function(m){var G=m.data;return _.r("ytm-upsell-offer-table-view-model",null,_.r("div",{class:"ytUpsellOfferTableViewModelHost",role:"grid"},_.r("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.r(_.z$,{data:function(){return G().rows}},{upsellOfferTableRowViewModel:function(K,W){return _.r(YyI,{data:K.data,
upsellTableIsFirstRow:function(){return W()===0},
rowIndex:W})}}))))},"Al");
rt4.idomCompat=!0;var usu=_.P(function(m){var G=function(){return m.data()},K=_.sQ(m.noPadding,!1),W=function(){var A,O;
return(O=(A=G().logo.accessibilityData)==null?void 0:A.label)!=null?O:""},L={};
return _.r("upsell-view-model",{class:_.VO("ytUpsellViewModelHost",(L.ytUpsellViewModelHostNoPadding=function(){return K()},L.ytUpsellViewModelHostWide=function(){return G().offerTable!==void 0},L))},_.r("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.r(_.p,{cond:function(){return _.NB(G().logo)},
then:function(A){return _.r(_.oC,{data:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:W})}})),_.r("div",{class:"ytUpsellViewModelHostUpsellTitle",
role:"heading","aria-level":1,autofocus:!0,tabindex:-1},_.r(_.Nm,{text:function(){return G().title}})),_.r("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.r(_.D0,{each:function(){var A;
return(A=G().subtitles)!=null?A:[]},
keyBy:"INDEX"},function(A){var O={};return _.r("div",{class:_.VO("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(O.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return G().offerTable!==void 0},O))},_.r(_.Nm,{text:A}))})),_.r("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.r(_.D0,{each:function(){var A;
return(A=G().benefitInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){return _.r(_.p,{cond:function(){return A().info},
then:function(O){return _.r("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.r(_.fN,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.r(_.Nm,{text:O}))}})})),_.r(_.p,{cond:function(){return G().offerTable!==void 0},
then:function(){return _.r("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.r(_.z$,{data:function(){return G().offerTable}},{upsellOfferTableViewModel:function(A){return _.r(rt4,{data:A.data})}}))}}),_.r("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.r(_.D0,{each:function(){var A;
return(A=G().legalInfos)!=null?A:[]},
keyBy:"INDEX"},function(A){var O={};return _.r("div",{class:_.VO("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(O.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return G().offerTable!==void 0},O))},_.r(_.Nm,{text:A}))})))},"Bl");var hjp=_.P(function(m){var G=m.data;m={};m=(m.ytMiniAppScoreChallengeViewModelScoreRadial=!0,m.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Q36(),m);return _.r("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.r("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return G().title}),_.r("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return G().subtitle}),_.r("div",{class:_.KQ(m)},_.r("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return G().score})),_.r("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return G().prompt}))},"Cl");var pzO=function(){this.store=_.nD();this.formId=""};
pzO.prototype.onInit=function(m){m.formId&&(this.formId=m.formId,this.store.dispatch(_.kt({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};
pzO.prototype.cleanup=function(){this.store.dispatch(_.kt({type:"RESET_COMMAND_MAP"}))};var JtG=_.P(function(m){function G(c){if(c&&(c=_.Q(c,_.T$)))return Object.assign({},c,{isSelected:A()})}
var K=_.g(_.EQ(function(){var c,u;return(u=(c=_.Q(m.data().option,_.T$))==null?void 0:c.isSelected)!=null?u:!1})),W=K.next().value,L=K.next().value,A=W;
_.bX(function(){var c;JW6((c=m.data().formSchema)==null?void 0:c.id,{onSubmit:function(){var u=_.xS().resolve(_.S1),h=!!m.data().selectedCommand,J=!!m.data().unselectedCommand;if(A()){if(h)var N=m.data().selectedCommand}else J&&(N=m.data().unselectedCommand);N=_.c8(N);G(m.data().option)&&!N?(u="",!h&&J?u="selected ":h&&!J&&(u="unselected "),h=new _.cw("No "+u+"command found for SelectionListItemFormViewModel"),_.am(h)):N&&u.resolveCommand(N)},
isValid:function(){return!0}})});
var O=function(){L(!A())};
_.sZ(function(){var c,u,h=(c=m.data())==null?void 0:(u=c.formSchema)==null?void 0:u.id;h&&_.RL()().delete(h)});
return _.r("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.r("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.r(_.Nm,{text:function(){return m.data().paragraph}})),_.r(_.p,{cond:function(){return G(m.data().option)},
then:function(c){return _.r(_.Nb,{data:c,isCompact:!0,hideSelectionTextChevron:!0,onTap:O,disableHorizontalPadding:!0})}}))},"Dl");var N5e=_.P(function(m){var G=m.data;var K=m.disablePadding;var W=m.className;var L=_.Q3("yt-dialog-header-view-model"),A=function(){var u=G().imageBanner;a:switch(G().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var h="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:h="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:u,style:h,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},O=function(){return G().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"},
c=function(){return G().alignment==="DIALOG_HEADER_ALIGNMENT_CENTER"};
_.bX(function(){var u=function(){_.dU(L.value,"yt-refit-popups-action")},h;
(h=L.value)==null||h.addEventListener("image-loaded",u);_.sZ(function(){var J;(J=L.value)==null||J.removeEventListener("image-loaded",u)})});
m={};return _.r("yt-dialog-header-view-model",{el:L,class:_.VO(W,(m.ytDialogHeaderViewModelHost=!0,m.ytDialogHeaderViewModelHostDisablePadding=K,m.ytDialogHeaderViewModelHostCentered=c,m))},_.r(_.p,{cond:function(){return G().imageBanner},
then:function(){var u={};return _.r("div",{class:_.VO(W,(u.ytDialogHeaderViewModelBanner=!0,u.ytDialogHeaderViewModelBannerFullBleed=O,u)),style:_.eA({"max-height":function(){return G().assetContainerMaxHeight!==void 0?G().assetContainerMaxHeight+"px":void 0}})},_.r(_.VA,{data:A,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.r(_.p,{cond:function(){return G().headerBlock},
then:function(){var u={};return _.r("div",{class:_.VO("ytDialogHeaderViewModelHeaderBlock",(u.ytDialogHeaderViewModelHeaderBlockCentered=c,u))},_.r(_.z$,{data:function(){return G().headerBlock}},{contentPreviewImageViewModel:function(h){return _.r(_.VA,{data:h.data,
notifyOnLoaded:!0})}}))}}),_.r(_.p,{cond:function(){return G().customBanner},
then:function(u){var h={};return _.r("div",{class:_.VO("ytDialogHeaderViewModelCustomAssetContainer",(h.ytDialogHeaderViewModelCustomAssetContainerCentered=c,h))},_.r(_.z$,{data:u},{avatarStackViewModel:_.YU}))}}),_.r(_.p,{cond:function(){return G().headline},
then:function(u){return _.r("h2",null,_.r(_.Nm,{text:u,className:"ytDialogHeaderViewModelText"}))}}))},"El");
N5e.idomCompat=!0;var Dp7=_.P(function(m){var G=_.F0G(function(){return m.data().formId}),K=G.submitForm,W=G.isValid;
return _.r("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.r(_.z$,{data:function(){return m.data().panelFooter}},{panelFooterViewModel:function(L){return _.r(vQ,{data:L.data,
disablePadding:!0,disablePrimaryButton:function(){return!W()},
onClickPrimaryButton:function(){K()}})}}))},"Fl");var tyo=_.P(function(m){var G=function(){var K,W;return(W=(K=_.Q(m.data().rendererContext,_.MB))==null?void 0:K.label)!=null?W:""};
return _.r("yt-dialog-image-content-view-model",{class:_.VO("ytDialogImageContentViewModelHost",m.className)},_.r(_.p,{cond:function(){return _.NB(m.data().image)},
then:function(K){var W={};return _.r("div",{style:_.eA((W.width=(0,_.uo)(function(){var L;return(L=m.data().imageMaxWidth)!=null?L:""}),W)),
class:"ytDialogImageContentViewModelImage"},_.r(_.oC,{data:K,alt:G,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.r(_.Nm,{text:function(){return m.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Gl");var aO3=_.P(function(m){var G=_.ql(m,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),K=G.elRefCallback;m=G.Icon;var W=G.Asset,L=G.assetType,A=G.Title,O=G.LeadingActionHeader,c=G.TrailingActionHeader,u=G.headerPosition,h=G.Content,J=G.buttonLayout,N=G.buttonStyle,D=G.primaryButtonWiz,t=G.secondaryButtonWiz,a=G.contentAlignment,v=G.isFullscreen,I=G.width,Z=G.maxHeight,k=G.isHeaderWizDefined,z=G.Header,X=G.isFooterWizDefined,
f=G.Footer;G=_.Q3("dialog-layout",function(kG){K==null||K(kG)});
var U=D?function(){var kG={};return D({buttonOverrides:function(){return{style:(N==null?void 0:N())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.VO((kG["yt-spec-dialog-layout__dialog-layout-button"]=!0,kG["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(J==null?void 0:J())===0||(J==null?void 0:J())===2},kG))})}:void 0,l=t?function(){var kG={};
return t({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.VO((kG["yt-spec-dialog-layout__dialog-layout-button"]=!0,kG["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(J==null?void 0:J())===0||(J==null?void 0:J())===2},kG))})}:void 0,Ls=function(){return(!!A||!!O||!!c)&&u()===0},gd={},Qf={},JV={},DF={};
return _.r("dialog-layout",{el:G,class:_.VO((gd["yt-spec-dialog-layout"]=!0,gd["yt-spec-dialog-layout--dialog-layout-fullscreen"]=v,gd["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!v()},gd["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return Z()===1},gd["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(L==null?void 0:L())===1},gd)),
style:function(){return(I==null?void 0:I())!==void 0?"width: "+I()+"px;":""}},m?_.r("div",{class:_.VO((Qf["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Qf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!W&&u()===1},Qf["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return a()===1},Qf))},_.r(m,null)):null,_.r(_.p,{cond:k,
then:function(){return z?_.r("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.r(z,null)):null},
else:function(){return _.r(_.zL,null,_.r(_.p,{cond:Ls,then:function(){return _.r(Fb7,{contentAlignment:a,LeadingActionHeader:O,TrailingActionHeader:c,Title:A,isAboveAsset:!!W})}}),W?_.r("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.r(W,{className:"yt-spec-dialog-layout__dialog-layout-asset-item"})):null)}}),_.r("div",{class:_.VO((JV["yt-spec-dialog-layout__dialog-layout-container"]=!0,JV["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(a==null?void 0:a())===1},
JV["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=function(){return!A&&!(z&&k())||!!W&&(u==null?void 0:u())===0},JV))},_.r(_.p,{cond:function(){return A&&!z&&(u==null?void 0:u())===1},
then:function(){return _.r(Fb7,{contentAlignment:a,LeadingActionHeader:O,TrailingActionHeader:c,Title:A,isAboveAsset:!1})}}),h?_.r("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.r("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.r(h,null))):null,_.r(_.p,{cond:X,
then:function(){return f?_.r("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.r(f,null)):null}}),U||l?_.r(QOg,{footerClasses:_.VO((DF["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,DF["yt-spec-dialog-layout__dialog-layout-footer"]=!0,DF["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(J==null?void 0:J())===2},DF["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(J==null?void 0:J())===1},DF)),
PrimaryButton:U,SecondaryButton:l}):null))},"Hl"),Fb7=_.P(function(m){var G=_.ql(m,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),K=G.contentAlignment,W=G.LeadingActionHeader;m=G.Title;var L=G.TrailingActionHeader,A=G.isAboveAsset,O=G.enableLeadingActionHeader;G={};return _.r("div",{class:_.VO((G["yt-spec-dialog-layout__dialog-header-container"]=!0,G["yt-spec-dialog-layout__dialog-header"]=!0,G["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=A,G["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(K==null?void 0:K())===1&&O()},G))},_.r(_.p,{cond:function(){return O()},
then:function(){return W?_.r("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.r(W,null)):null}}),m?_.r("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.r(m,null)):null,L?_.r("div",null,_.r(L,null)):null)},"Il"),QOg=_.P(function(m){var G=m.footerClasses;
var K=m.PrimaryButton;m=m.SecondaryButton;return _.r("div",{class:G},m?_.r(m,null):null,K?_.r(K,null):null)},"Jl");var orx=new _.sX("TIME_PICKER_VIEW_MODEL_TOKEN");var nre=_.P(function(m){var G=m.data;return _.r("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.r("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.r(_.z$,{data:function(){return G().avatar}},{avatarViewModel:_.O9})),_.r("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.Nm,{text:function(){return G().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Kl");var bZe=_.P(function(m){return _.r("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.r(_.Nm,{text:function(){return m.data().inviteMessage}})),_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.r(_.Nm,{text:function(){return m.data().attributedAccountSectionHeaderText}})),_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.r(_.z$,{data:function(){return m.data().accountAvatar}},{avatarViewModel:_.O9}),_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.r(_.Nm,{text:function(){return m.data().accountName}}),_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.r(_.Nm,{text:function(){return m.data().handle}}))),_.r(_.z$,{data:function(){return m.data().trailingButton}},{buttonViewModel:_.kP})),_.r("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.r(_.Nm,{text:function(){return m.data().termsOfService}})))},"Ll");var vru=_.P(function(m){var G=m.data;return _.r("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.r("div",{class:"ytAccessConfirmationViewModelContent"},_.r(_.z$,{data:function(){var K;return(K=G().avatar)!=null?K:G().dualAvatar}},{dualAvatarViewModel:function(K){return _.r(_.eCW,{data:K.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(K){return _.r(_.cr,{data:K.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.r("h2",{class:"ytAccessConfirmationViewModelTitle"},_.r(_.Nm,{text:function(){return G().title}})),_.r(_.Nm,{text:function(){return G().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Ml");var $pg=_.P(function(m){var G=function(){var c,u;return(c=m.data().formSchema)==null?void 0:(u=c.initialValues)==null?void 0:u.selectedLanguages},K=_.g(_.EQ(function(){return G()})),W=K.next().value,L=K.next().value,A={};
_.$O(function(){var c=m.data().formSchema,u=c==null?void 0:c.submitConfig;m.data()!==A&&(A=m.data(),c&&u&&pkE(c.id,{isValid:function(){var h,J=(h=W())!=null?h:[],N;h=(N=G())!=null?N:[];if(J.length!==h.length)return!0;N=new Set(h);J=_.g(J);for(h=J.next();!h.done;h=J.next())if(!N.has(h.value))return!0;return!1},
formData:function(){return{preferredLanguageSettingsFormData:{selectedLanguages:W()||[]}}},
submitConfig:u}))},"iCaJcc");
var O=function(c){var u=c.key;if(u){var h;if(u&&((h=W())==null?0:h.includes(u))){var J;L((J=W())==null?void 0:J.filter(function(N){return N!==u}))}else L([].concat(_.Bz(W()||[]),[u]))}};
return _.r("yt-preferred-language-settings-panel-view-model",{class:"ytPreferredLanguageSettingsPanelViewModelHost"},_.r(_.z$,{data:function(){return m.data().checkboxGroup}},{checkboxGroupViewModel:function(c){return _.r(e2q,{data:c.data,
onItemTap:O,selectedKeys:W,controlledMode:!0,disableHorizontalPadding:m.disableHorizontalPadding})}}))},"Ol");var sOC=_.P(function(m){var G=m.data;var K=void 0;m=_.g(_.EQ(function(){var J;return((J=_.Q(G().content,qcW))==null?void 0:J.defaultSelectedKey)||""}));
var W=m.next().value,L=m.next().value,A,O=function(){L("");var J;(J=K)==null||J.cleanup()};
_.bX(function(){K=new pzO;window.addEventListener("yt-popup-closed",O)});
_.$O(function(){if(K&&A!==G().formId&&(K.onInit(G()),(A=G().formId)&&W())){var J=K,N={key:W()};N.command&&J.store.dispatch(Z2O(A,N.command))}},"bo7oA");
_.sZ(function(){window.removeEventListener("yt-popup-closed",O)});
var c=function(J,N,D){N.key&&D&&N.key!==W()&&(L(N.key),K&&N.command&&K.store.dispatch(Z2O(D,N.command)))},u=function(){if(_.Q(G().content,qcW))return!(W==null?0:W())},h=_.xS().resolve(_.fn(orx));
return _.r("yt-dialog-view-model",{class:_.VO("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.r(aO3,{Header:function(){return _.r(_.z$,{data:function(){return G().header}},{dialogHeaderViewModel:function(J){return _.r(N5e,{data:J.data,
disablePadding:!0})}})},
isHeaderWizDefined:function(){return!!G().header},
Content:function(){return _.r(_.z$,{data:function(){return G().customContent?G().customContent:G().content}},Object.assign({},{basicContentViewModel:_.pM,
createPlaylistDialogFormViewModel:gre,collaborativePlaylistInviteMessageViewModel:bZe,preferredLanguageSettingsPanelViewModel:function(J){return _.r($pg,{data:J.data,disableHorizontalPadding:!0})},
miniAppScoreChallengeViewModel:hjp,radioButtonGroupViewModel:function(J){var N=J.data;return _.r(P2P,{data:N,selectedKey:W,onSelected:c,groupName:function(){return N().formId}})},
selectionListItemFormViewModel:JtG,upsellViewModel:function(J){return _.r(usu,{data:J.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:nre,installmentAgreementsViewModel:wzx,accessConfirmationViewModel:vru,listViewModel:function(J){return _.r(_.Kvq,{data:J.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:tyo},h&&{timePickerViewModel:h}))},
Footer:function(){return _.r(_.z$,{data:function(){return G().footer}},{panelFooterViewModel:function(J){return _.r(vQ,{data:J.data,
disablePadding:!0,disablePrimaryButton:u})},
formPanelFooterViewModel:Dp7,formFooterViewModel:function(J){return _.r(jzu,{data:J.data,disablePadding:!0})}})},
isFooterWizDefined:function(){return!!G().footer}}))},"Ql");
sOC.idomCompat=!0;_.sh(sOC,"yt-dialog-view-model",{props:{data:_.Dd},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var qyG=_.P(function(m){var G=m.data;return _.r("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.r(_.p,{cond:function(){return G().title},
then:function(K){return _.r("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.r(_.Nm,{text:K,className:"ytPanelHeaderViewModelTitle"}))}}),_.r(_.p,{cond:function(){return G().subtitle},
then:function(K){return _.r(_.Nm,{text:K,className:"ytPanelHeaderViewModelSubtitle"})}}))},"Rl"),ErC=_.P(function(m){var G=m.data;
var K=_.Uid(function(){return G().rendererContext});
m={};return _.r("yt-panel-header-view-model",{class:_.VO("ytPanelHeaderViewModelHost",(m.ytPanelHeaderViewModelHostHideDivider=function(){return!!G().shouldHideDivider},m.ytPanelHeaderViewModelHostCompact=function(){return!!G().subtitle},m)),
"aria-label":function(){var W;return(W=K())==null?void 0:W.label}},_.r(_.p,{cond:function(){return _.gH(G().rendererContext)},
then:function(){return _.r(_.Pb0,{className:"ytPanelHeaderViewModelButtonOrAnchor",command:function(){return _.wH(G().rendererContext)},
focusedClassName:"ytPanelHeaderViewModelButtonOrAnchorFocused"},_.r(qyG,{data:G}))},
else:function(){return _.r(qyG,{data:G})}}),_.r("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.r(_.z$,{data:function(){return G().trailingButtons}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Sl");
ErC.idomCompat=!0;var HZO=_.P(function(m){var G=_.dn(function(A){var O;if((O=m.skipContentClick)==null?0:O.call(m))return!1;m.onContentWrapperClick(A);return!0}),K,W,L;
return _.r("div",{class:_.VO("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return m.isAnimating()?"transform: translateY("+m.currentY()+"px);transition: 0.2s":""}},(K=m.header)==null?void 0:K.call(m),_.r("div",{id:m.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.eA({"max-height":(0,_.uo)(m.maxHeightForContentWrapper)}),"on:scroll":_.dn(function(A){return m.onScroll(A),!1}),
"on:touchmove":_.dn(function(A){return A.stopPropagation(),!1})},_.r("div",{el:_.aC(m.contentWrapperEl),
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":G},(W=m.body)==null?void 0:W.call(m))),(L=m.footer)==null?void 0:L.call(m))},"Tl");
HZO.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var IOe=_.P(function(m){var G=_.sQ(m.leadingLabel),K=_.sQ(m.trailingLabel),W=_.sQ(m.footerButtonType),L=function(){return G()||K()||m.hasPrimaryButton()||m.hasSecondaryButton()},A={},O=_.VO("yt-spec-bottom-sheet-layout__primary-button",(A["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return W()===0&&m.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return W()===1&&m.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return W()===2&&m.hasPrimaryButton()},A["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return W()===3&&m.hasPrimaryButton()},A));
A={};var c=_.VO("yt-spec-bottom-sheet-layout__secondary-button",(A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return W()===1&&m.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return W()===2&&m.hasSecondaryButton()},A["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return W()===3&&m.hasPrimaryButton()},A));
return _.r(_.p,{cond:m.hasFooterOverride,then:function(){var u;return _.r(_.zL,null,(u=m.footerOverride)==null?void 0:u.call(m))},
else:function(){return _.r(_.p,{cond:L,then:function(){return _.r("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.r(_.p,{cond:function(){return G()||K()},
then:function(){var u={};return _.r("div",{class:_.VO("yt-spec-bottom-sheet-layout__footer-label-wrapper",(u["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!m.hasPrimaryButton()},u))},_.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},G)}}),_.r(_.p,{cond:K,
then:function(){return _.r("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},K)}}))}}),_.r(_.p,{cond:function(){return m.hasPrimaryButton()||m.hasSecondaryButton()},
then:function(){var u={};return _.r("div",{class:_.VO("yt-spec-bottom-sheet-layout__footer-button-wrapper",(u["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.sY0,u))},_.r(_.p,{cond:function(){return m.hasSecondaryButton()&&W()!==0},
then:function(){var h;return _.r("div",{class:c},(h=m.secondaryButton)==null?void 0:h.call(m))}}),_.r(_.p,{cond:m.hasPrimaryButton,
then:function(){var h;return _.r("div",{class:O},(h=m.primaryButton)==null?void 0:h.call(m))}}))}}))}})}})},"Ul");
IOe.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var jOC=_.P(function(m){var G=_.sQ(m.title),K=_.sQ(m.subtitle);return _.r("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:m.headerId,"on:touchstart":_.dn(function(W){var L;(L=m.touchstart)==null||L.call(m,W);return!1}),
"on:touchmove":_.dn(function(W){var L;(L=m.touchmove)==null||L.call(m,W);return!1}),
"on:touchend":_.dn(function(W){var L;(L=m.touchend)==null||L.call(m,W);return!1})},_.r("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.r(_.p,{cond:m.hasHeaderOverride,
then:function(){var W;return _.r(_.zL,null,(W=m.headerOverride)==null?void 0:W.call(m))},
else:function(){var W={};return _.r("div",{class:_.VO((W["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,W["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=G,W))},_.r("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.r(_.p,{cond:G,then:function(){return _.r(_.zL,null,_.r("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},G),_.r(_.p,{cond:K,then:function(){return _.r("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
K)}}))}})),_.r(_.p,{cond:function(){return G()&&m.hasActionHeader()},
then:function(){var L;return _.r("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(L=m.actionHeader)==null?void 0:L.call(m))}}))}}))},"Vl");
jOC.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.P(function(m){function G(Ls){if(!z&&typeof MutationObserver!=="undefined"){var gd={childList:!0};"MutationObserver"in window&&(z=new MutationObserver(K.bind(void 0,Ls)),z.observe(Ls,gd))}}
function K(Ls){typeof z!=="undefined"&&(X["content-wrapper"]===void 0&&(X["content-wrapper"]=Ls.children[0].clientHeight),v(X["content-wrapper"]),a()>I()||Z(a()))}
function W(){t(window.innerHeight);a()>I()||Z(a());f.isFullScreen[0]()&&a()>I()?U().dispatch("Snap To Full Screen",{maxHeight:k()}):U().dispatch("Snap To Neutral Position",{maxHeight:I()})}
function L(Ls){document.body.style.overscrollBehavior="none";Ls.preventDefault();U().dispatch("Touch Start",{event:Ls})}
function A(Ls){Ls.preventDefault();U().dispatch("Touch Move",{event:Ls,contentScrollable:a()>I(),fullContentWrapperHeight:k(),contentWrapperHeight:I(),heightMap:X,contentWrapperId:"content-wrapper",header:viz(m),footer:viz(m),headerDivHeight:X["bottom-sheet-header"],footerDivHeight:X["bottom-sheet-footer"]})}
function O(){document.body.style.overscrollBehavior="";f.isFullScreen[0]()?f.currentY[0]()>=60?U().dispatch("Snap To Neutral Position",{maxHeight:I()}):U().dispatch("Snap To Full Screen",{maxHeight:k()}):f.currentY[0]()>=60?c():f.currentY[0]()<=-60&&a()>I()?U().dispatch("Snap To Full Screen",{maxHeight:k()}):U().dispatch("Snap To Neutral Position",{maxHeight:I()})}
function c(){U().dispatch("Close Sheet",{clientHeight:D(),maxHeight:0});setTimeout(function(){bg6()},250)}
var u=_.Q3("div"),h=_.Q3("div"),J=_.g(_.g_(window.innerHeight,void 0,"CmOsU")),N=J.next().value;J=J.next().value;var D=N,t=J;J=_.g(_.g_(0,void 0,"p0Flhb"));N=J.next().value;J=J.next().value;var a=N,v=J;J=_.g(_.EQ(function(){var Ls=viz(m);return.6*D()-a85(Ls)-oiq(Ls)}));
N=J.next().value;J=J.next().value;var I=N,Z=J,k=function(){var Ls=viz(m),gd=D(),Qf=X["bottom-sheet-header"],JV=X["bottom-sheet-footer"];return gd-(Ls.hasHeaderFn&&Qf!==void 0?Qf:a85(Ls))-(Ls.hasFooterFn&&JV!==void 0?JV:oiq(Ls))-24-24},z=null,X={},f={initialY:_.g_(0,void 0,"sxdESd"),
currentY:_.g_(0,void 0,"GZzqeb"),isAnimating:_.g_(!1,void 0,"vJBupc"),isFullScreen:_.g_(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.EQ(I)},U=function(){var Ls=null;return function(){if(!Ls){var gd={initialY:f.initialY[0](),currentY:f.currentY[0](),isAnimating:f.isAnimating[0](),isFullScreen:f.isFullScreen[0](),maxHeightForContentWrapper:f.maxHeightForContentWrapper[0]()};Ls=niP(gd)}return Ls}}();
_.bX(function(){window.addEventListener("resize",W);U().subscribe(function(Ls){f.initialY[1](Ls.initialY);f.currentY[1](Ls.currentY);f.isAnimating[1](Ls.isAnimating);f.isFullScreen[1](Ls.isFullScreen);f.maxHeightForContentWrapper[1](Ls.maxHeightForContentWrapper)});
requestAnimationFrame(function(){u.value&&(X["bottom-sheet-header"]=u.value.clientHeight);h.value&&(X["bottom-sheet-footer"]=h.value.clientHeight)})});
_.sZ(function(){window.removeEventListener("resize",W);z&&(z.disconnect(),z=null)});
var l=_.VO({"bottom-sheet-content-without-icon":function(){var Ls;return!((Ls=m.shouldShowIcons)==null?0:Ls.call(m))}});
return _.r("bottom-sheet-layout",null,_.r(HZO,{contentWrapperId:"content-wrapper",isAnimating:function(){return f.isAnimating[0]()},
currentY:function(){return f.currentY[0]()},
maxHeightForContentWrapper:function(){return f.maxHeightForContentWrapper[0]()},
shouldShowIcons:m.shouldShowIcons,skipContentClick:m.skipContentClick,onScroll:function(){var Ls=document.getElementById("bottom-sheet-header"),gd=document.getElementById("content-wrapper");if(Ls&&gd){var Qf={};Qf=(Qf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Qf["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Qf);Ls.className=gd.scrollTop>1?_.KQ(Qf):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:bg6,contentWrapperEl:function(Ls){G(Ls);requestAnimationFrame(function(){K(Ls)})},
header:function(){return _.r("div",{el:u},_.r(jOC,{touchstart:L,touchmove:A,touchend:O,title:m.headerTitle,subtitle:m.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:m.headerFn,hasHeaderOverride:m.hasHeaderFn,actionHeader:m.headerActionHeader,hasActionHeader:m.hasHeaderActionHeader}))},
footer:function(){return _.r("div",{el:h},_.r(IOe,{footerButtonType:m.footerButtonType,leadingLabel:m.footerLeadingLabel,trailingLabel:m.footerTrailingLabel,primaryButton:m.footerPrimaryButton,hasPrimaryButton:m.hasFooterPrimaryButton,secondaryButton:m.footerSecondaryButton,hasSecondaryButton:m.hasFooterSecondaryButton,footerOverride:m.footerFn,hasFooterOverride:m.hasFooterFn}))},
body:function(){return _.r(_.p,{cond:m.hasContentFn,then:function(){var Ls;return _.r("div",{class:l},(Ls=m.contentFn)==null?void 0:Ls.call(m))}})}}))},"Wl").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var kpI=_.P(function(m){var G=_.xS().resolve(_.Lk);return _.r("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.dn(function(){return void G.closeSheet()})},_.r(_.p,{cond:function(){return!!m.header},
then:function(){return _.r("div",{class:"ytContextualSheetLayoutHeaderContainer"},m.header())}}),_.r(_.p,{cond:function(){return!!m.content},
then:function(){return _.r("div",{class:"ytContextualSheetLayoutContentContainer"},m.content())}}),_.r(_.p,{cond:function(){return!!m.footer},
then:function(){return _.r("div",{class:"ytContextualSheetLayoutFooterContainer"},m.footer())}}))},"Xl");
kpI.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var C9g=_.P(function(m){var G=m.data;var K=_.xS().resolve(_.S1),W=_.Q3("yt-sheet-view-model",function(L){if(_.F("web_focus_first_element_sheet")||!_.F("sheet_focus_first_killswitch"))return L.addEventListener("focus",function(){OC6(L)}),function(){L.removeEventListener("focus",function(){OC6(L)})}});
m={};return _.r("yt-sheet-view-model",{"on:mousedown":_.dn(function(L){_.F("sheet_focus_first_killswitch")||L.currentTarget!==L.target&&L.preventDefault()}),
"on:focus":_.dn(function(){_.F("sheet_focus_first_killswitch")||OC6(W.value)}),
"on:mouseleave":_.dn(function(){var L,A=G==null?void 0:(L=G())==null?void 0:L.rendererContext,O;(L=(O=_.Q(A,_.cR))==null?void 0:O.onHoverEnd)&&K.resolveCommand(L)}),
class:_.VO("ytSheetViewModelHost",(m.ytSheetViewModelContextual=!0,m.ytSheetViewModelDisableBackdropFilter=_.F("web_disable_backdrop_filter"),m)),el:W,tabindex:-1},_.r(_.p,{cond:G,then:function(L){return _.r(kpI,{header:function(){return _.r(_.z$,{data:function(){return L().header}},{panelHeaderViewModel:ErC})},
content:function(){return _.r(_.z$,{data:function(){return L().content}},{listViewModel:function(A){return _.r(_.Kvq,{data:A.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:usu,miniAppScoreChallengeViewModel:hjp})},
footer:function(){return _.r(_.z$,{data:function(){return L().footer}},{panelFooterViewModel:vQ})}})}}))},"Yl");
C9g.idomCompat=!0;_.sh(C9g,"yt-sheet-view-model",{props:{data:_.Dd}});var ZZx=_.P(function(m){var G=function(){var K;return(K=m.data().enableDebuggingFeatures)!=null?K:!1};
return _.r("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.r(_.D0,{each:function(){var K;return(K=m.data().stickers)!=null?K:[]}},function(K){return _.r(Vy4,{data:function(){return K},
debugMode:G})}))},"Zl"),Vy4=_.P(function(m){var G=_.ql(m,{debugMode:!1}).debugMode,K=_.sQ(function(){var u;
return(u=m.data().region)==null?void 0:u.w},0),W=_.sQ(function(){var u;
return(u=m.data().region)==null?void 0:u.h},0),L=_.sQ(function(){var u;
return(u=m.data().region)==null?void 0:u.x},0),A=_.sQ(function(){var u;
return(u=m.data().region)==null?void 0:u.y},0),O=_.dn(function(){var u=m.data().onTap;
u&&_.h$(u)}),c={};
return _.r("div",{class:_.VO("ytStoriesStickerLayerViewModelSticker",(c.ytStoriesStickerLayerViewModelDebugMode=G,c)),style:_.eA({width:function(){return 100*K()+"%"},
height:function(){return 100*W()+"%"},
left:function(){return 100*L()+"%"},
top:function(){return 100*A()+"%"},
"flex-direction":function(){return $EP(m.data().flexDirection)},
"justify-content":function(){return s3P(m.data().justifyContent)},
"align-items":function(){return qAP(m.data().alignItems)}}),
"on:click":O},_.r(_.z$,{data:function(){return m.data().button||m.data().toggleButton}},{buttonViewModel:function(u){return _.r(_.kP,{data:u.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(u){return _.r(_.Gx,{data:u.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"$l");var P94=_.P(function(m){var G=function(){return m.data()},K={},W=_.g(_.g_(!1,void 0,"SegA3d")),L=W.next().value,A=W.next().value,O=_.sQ(function(){return G().backgroundColor},0);
W=_.sQ(function(){return G().actionButtons},[]);
var c=_.sQ(function(){return G().stickerLayer},{}),u=function(){var J,N;
return{animationRef:K,animationConfig:{autoplay:!1,loop:!1,path:(N=(J=G().foregroundAnimation)==null?void 0:J.url)!=null?N:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){A(!0)},
complete:function(){m.navigateToNextItemOnLottieComplete()}}}},h=function(){var J,N,D,t,a,v,I,Z;
return{animationConfig:{autoplay:(v=(J=G().backgroundAnimation)==null?void 0:(N=J.settings)==null?void 0:N.autoplay)!=null?v:!1,loop:(I=(D=G().backgroundAnimation)==null?void 0:(t=D.settings)==null?void 0:t.loop)!=null?I:!1,path:(Z=(a=G().backgroundAnimation)==null?void 0:a.url)!=null?Z:"",name:"stories_item_background_animation"}}};
_.$O(function(){if(m.isVisible()&&L()){var J;(J=K.lottieEl)==null||J.play();m.animationRef()&&(m.animationRef().lottieEl=K.lottieEl)}else{var N;(N=K.lottieEl)==null||N.stop()}},"MxM2wb");
return _.r("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.eA({"background-color":function(){return _.ce(O())+";"}})},_.r("div",{class:"ytStoriesItemViewModelAssetContent"},_.r(_.p,{cond:function(){return!!G().backgroundAnimation},
then:function(){return _.r(_.yr,{data:h,animationName:function(){return h().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.r(_.p,{cond:function(){return!!G().backgroundImage},
then:function(){return _.r(_.oC,{data:function(){return G().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.r(_.p,{cond:function(){return!!G().foregroundAnimation},
then:function(){return _.r(_.yr,{data:u,animationName:function(){return u().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.r(_.p,{cond:function(){return!!G().foregroundImage},
then:function(){return _.r(_.oC,{data:function(){return G().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.r("div",{class:"ytStoriesItemViewModelTopShadow"}),_.r(_.z$,{data:function(){return c()}},{storiesStickerLayerViewModel:ZZx})),_.r("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.eA({"background-color":function(){return _.ce(O())}})},_.r("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.r(_.D0,{each:W},function(J){return _.r(dpG,{data:function(){return J},
pauseAutoNavigation:m.pauseAutoNavigation})}))))},"bm"),ytO={style:"overlay",
type:"outline"},dpG=_.P(function(m){var G={};return _.r("div",{class:_.VO("ytStoriesItemViewModelActionButton",(G.ytStoriesItemViewModelStretchedActionButton=function(){return m.data().size==="STORIES_BUTTON_SIZE_STRETCH"},G)),
"on:click":_.dn(m.pauseAutoNavigation)},_.r(_.z$,{data:function(){return m.data().button}},{buttonViewModel:function(K){return _.r(_.kP,{data:K.data,
buttonOverrides:ytO})}}))},"cm");var eje={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.sh(_.P(function(m){var G=function(){var JV;return(JV=m.data().startIndex)!=null?JV:0},K=_.g(_.EQ(G)),W=K.next().value,L=K.next().value;
K=_.g(_.g_(!1,void 0,"sjy7s"));var A=K.next().value,O=K.next().value,c=function(){var JV;return(JV=m.data().storyItems)!=null?JV:[]},u={},h=_.Q3("yt-stories-viewer-view-model"),J=function(){return m.data().dismissButton},N=function(){var JV;
return _.c8((JV=_.Q(J(),_.J6))==null?void 0:JV.onTap)},D=_.Q3("div"),t,a,v=!1,I=function(){var JV;
(JV=t)==null||JV.cancel();t=Z(W()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});t.onfinish=function(){var DF=_.Q(c()[W()],xrP),kG,eo;DF!=null&&DF.foregroundAnimation&&((DF==null?0:(kG=DF.foregroundAnimation)==null?0:kG.url)||(DF==null?0:(eo=DF.foregroundAnimation)==null?0:eo.payload))||(W()!==c().length-1?(L(W()+1),I()):N()&&_.YE(N()))}},Z=function(JV){return D.value.children[JV].children[0]},k=function(){for(var JV=0;JV<W();JV++)Z(JV).style.transform=
"scaleX(1)"},z=function(){v||(A()?O(!1):(W()===c().length-1&&N()&&_.YE(N()),Z(W()).style.transform="scaleX(1)",W()!==c().length-1&&(L(W()+1),I())))},X=function(){v||(A()?O(!1):(Z(W()).style.transform="scaleX(0)",W()!==0&&L(W()-1),I()))},f=function(){O(!0)},U=function(){Z(W()).style.transform="scaleX(1)";
W()!==c().length-1?(L(W()+1),I()):N()&&_.YE(N())};
K=function(){v=!1;a=setTimeout(function(){O(!0);v=!0},300)};
var l=function(){clearTimeout(a);v&&A()&&O(!1)};
_.$O(function(){if(A()){var JV;(JV=t)==null||JV.pause();var DF;(DF=u.lottieEl)==null||DF.pause()}else{var kG;(kG=t)==null||kG.play();var eo;(eo=u.lottieEl)==null||eo.play()}},"vAvZob");
_.$O(function(){k();W()===G()&&I()},"uSlfE");
var Ls=function(JV){JV.key==="ArrowLeft"?X():JV.key==="ArrowRight"&&z()},gd=function(JV){if(JV.target===h.value){(JV=N())&&_.YE(JV);
clearTimeout(a);var DF;(DF=t)==null||DF.cancel();var kG;(kG=u.lottieEl)==null||kG.stop();window.removeEventListener("keydown",Ls);window.removeEventListener("yt-popup-closed",gd)}},Qf=function(JV){if(JV.target===h.value){var DF;
(DF=u.lottieEl)==null||DF.play();window.addEventListener("keydown",Ls);window.addEventListener("yt-popup-closed",gd)}};
_.bX(function(){k();I();window.addEventListener("yt-popup-opened",Qf)});
return _.r("yt-stories-viewer-view-model",{el:h,class:_.VO("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.r("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.r("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.dn(X),"on:mousedown":_.dn(K),"on:mouseup":_.dn(l),"on:mouseleave":_.dn(l)}),_.r("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.dn(z),"on:mousedown":_.dn(K),"on:mouseup":_.dn(l),"on:mouseleave":_.dn(l)})),
_.r("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.r(_.z$,{data:c},{storiesItemViewModel:function(JV,DF){var kG=JV.data;return _.r(_.p,{cond:function(){return Math.abs(DF()-W())<=1},
then:function(){var eo={};return _.r("div",{class:_.VO("ytStoriesViewerViewModelStoryItem",(eo.ytStoriesViewerViewModelActiveStoryItem=function(){return DF()===W()},eo))},_.r(P94,{data:kG,
pauseAutoNavigation:f,navigateToNextItemOnLottieComplete:U,isVisible:function(){return DF()===W()},
animationRef:u}))}})}})),_.r("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:D},_.r(_.D0,{each:c},function(){return _.r("div",{class:"ytStoriesViewerViewModelProgressBar"},_.r("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.r("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.r(_.oC,{data:eje,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.r("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.r(_.z$,{data:function(){return m.data().menuButton}},{buttonViewModel:function(JV){return _.r(_.kP,{data:JV.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.r(_.z$,{data:function(){return m.data().muteButton}},{toggleButtonViewModel:function(JV){return _.r(_.Gx,{data:JV.data,
className:"ytStoriesViewerViewModelActionButton"})}}),_.r(_.z$,{data:J},{buttonViewModel:function(JV){return _.r(_.kP,{data:JV.data,
className:"ytStoriesViewerViewModelActionButton"})}}))))},"fm"),"yt-stories-viewer-view-model",{props:{data:_.Dd}});_.sh(_.P(function(m){var G=m.data;var K=_.Q3("yt-gen-ai-feedback-form-view-model"),W=[];return _.r("yt-gen-ai-feedback-form-view-model",{el:K,class:"ytGenAiFeedbackFormViewModelHost"},_.r(_.Nm,{text:function(){return G().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.r("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.r(_.z$,{data:function(){return G().feedbackChips}},{toggleButtonViewModel:function(L){var A=L.data;
return _.r(_.Gx,{data:A,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(O){var c=A();c=_.Q(c,_.Dj);c=_.Q(c==null?void 0:c.defaultButtonViewModel,_.J6).trackingParams;O?W.push(c):(O=W.indexOf(c),O>-1&&W.splice(O,1))}})}})),_.r(_.Nm,{text:function(){return G().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.r("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.r(_.z$,{data:function(){return G().submitButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Eiu(K.value,W,G().uniqueId)}})}}),_.r(_.z$,{data:function(){return G().moreFeedbackButton}},{buttonViewModel:function(L){return _.r(_.kP,{data:L.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gm"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Dd},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ZV=function(){return _.d.apply(this,arguments)||this};
_.n(ZV,_.d);ZV.prototype.created=function(){pW6(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(kYi);var m=_.xS().resolve(_.gOs);m&&(m.container=this.ytPopupContainerBehavior);if(m=_.xS().resolve(_.Lk))m.container=this.ytPopupContainerBehavior;if(m=_.xS().resolve(_.Ar)){var G=this.ytPopupContainerBehavior;m.containerWasInjected?_.nc(Error("uj")):m.container=G}};
ZV.prototype.ensurePopupBelowPlayer=function(m,G){var K=_.xS().resolve(_.fn(_.$g));if(!K||!K.isOnWatch()||!_.qW())return!1;K=K.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.zv().height>K+this.getPopupHeight(m,G)?(m.style.top="auto",m.style.bottom="0px"):(m.style.top=K+"px",m.style.bottom="auto");return!0};
ZV.prototype.getPopupHeight=function(m,G){G&&(m.cachedPopupHeight=0);if(!m.cachedPopupHeight){G=0;var K=m.clientHeight,W=window.getComputedStyle(m);G+=parseInt(W.marginTop,10);G+=parseInt(W.marginBottom,10);m.cachedPopupHeight=K+G}return m.cachedPopupHeight};
ZV.prototype.getElement=function(m){return document.createElement(m)};
_.x([_.q(zBp.YtPopupContainerBehavior),_.S("design:type",Object)],ZV.prototype,"ytPopupContainerBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],ZV.prototype,"ytComponentBehavior",void 0);_.x([_.Ye({disableElementRegistration:!0,is:"ytd-popup-container"})],ZV);
_.y(ZV,"ytd-popup-container",function(){if(PSo!==void 0)return PSo;var m=document.createElement("template");_.b(m,"\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");m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);return PSo=m},{mode:1});var fOo;var xpe={};xpe.YtLogYpcFlowCommandsBehavior=[_.Pq.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(m){_.Q(m,UOD)&&(m=_.Q(m,UOD))&&(m.serializedTransactionFlowLoggingParams?_.TYV(m.serializedTransactionFlowLoggingParams):m.serializedYpcCancelFlowLoggingParams?(m=m.serializedYpcCancelFlowLoggingParams)&&Ki("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",m):m.serializedYpcResumeFlowLoggingParams?(m=m.serializedYpcResumeFlowLoggingParams)&&Ki("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",m):m.serializedYpcPauseFlowLoggingParams?(m=m.serializedYpcPauseFlowLoggingParams)&&
Ki("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",m):m.serializedYpcRefundFlowLoggingParams?(m=m.serializedYpcRefundFlowLoggingParams)&&XHO("YPC_EVENT_TYPE_START",m):m.serializedYpcDeactivateFlowLoggingParams?(m=m.serializedYpcDeactivateFlowLoggingParams)&&Ki("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",m):m.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(m=m.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&Ki("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",m))},
handleLogYpcFlowDismiss_:function(m){_.Q(m,RYO)&&(m=_.Q(m,RYO),m.serializedTransactionFlowLoggingParams?_.mrf(m.serializedTransactionFlowLoggingParams):m.serializedYpcCancelFlowLoggingParams?(m=m.serializedYpcCancelFlowLoggingParams)&&Ki("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",m):m.serializedYpcResumeFlowLoggingParams?(m=m.serializedYpcResumeFlowLoggingParams)&&Ki("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",m):m.serializedYpcPauseFlowLoggingParams?(m=m.serializedYpcPauseFlowLoggingParams)&&
Ki("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",m):m.serializedYpcRefundFlowLoggingParams&&(m=m.serializedYpcRefundFlowLoggingParams)&&XHO("YPC_EVENT_TYPE_CANCEL",m))}}];var XzO={};XzO.YtCancelRecurrenceBehavior=[_.cq.YtComponentBehavior,_.nh0,{attached:function(){var m=this;mzG(this,function(G,K){return m.ypcCancelRecurrenceHandler(G,K)})},
ypcCancelRecurrenceHandler:function(m,G){var K=this;if(!G||!G.ypcCancelRecurrenceEndpoint)return!1;if(!G.ypcCancelRecurrenceEndpoint.params)return _.j1(Error("um")),!0;_.hX(this.hostElement);var W=_.NW.instance,L=_.xS().resolve(_.fn(_.M_));W&&_.Dg(W,G)?_.to(W,G).then(function(A){K.ypcCancelRecurrenceSuccess_(m,G,{data:A})},function(A){K.ypcCancelRecurrenceFailure_(m,G,A)}).thenCatch(function(){_.j1(Error("vm"))}):L?L.requestDataForServiceEndpoint(G).then(function(A){K.ypcCancelRecurrenceSuccess_(m,
G,A)},function(A){K.ypcCancelRecurrenceFailure_(m,G,A)}).thenCatch(function(){_.j1(Error("vm"))}):_.j1(Error("wm"));
return!0},
ypcCancelRecurrenceSuccess_:function(m,G,K){_.pm(this.hostElement);K.data||(K={data:K});K.data&&K.data.actions&&_.eD(this.hostElement,K.data.actions,this.hostElement);K.data.messageRenderer?zJG(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(G=G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&Ki("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",G);_.Zw(m,"yt-service-request-completed",K)},
ypcCancelRecurrenceFailure_:function(m,G,K){_.pm(this.hostElement);zJG(G.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Zw(m,"yt-service-request-error",{error:K,params:[m,G]})}}];var Syx=function(m,G){_.mv.call(this,G)};
_.n(Syx,g4i);var Rj4={};Rj4.YtCompleteTransactionBehavior=[_.cq.YtComponentBehavior,_.nh0,{attached:function(){var m=this;mzG(this,function(G,K){return m.ypcCompleteTransactionHandler(G,K)})},
completeTransaction:function(m,G){var K=this;G={payments_payload:window.btoa(G.integratorData),buybucket_params:m.data.buybucketParams,offer_params:m.data.offerParams};var W=_.xS().resolve(_.M_),L=m.data.completeTransactionEndpoint,A=this.get("ypcCompleteTransactionEndpoint.actions",L);A&&_.eD(this.hostElement,A,this.hostElement);return(A=_.NW.instance)&&_.Dg(A,L)?_.to(A,L,G).then(function(O){return!O||(O==null?0:O.error)?(O=K.get("data.serializedTransactionFlowLoggingParams",m),_.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
O))):{data:O}}).then(function(O){return K.handleCompleteTransactionSuccess_(O,m)},function(){return K.handleCompleteTransactionFailure_(m)}):W.requestDataForServiceEndpoint(L,G).then(function(O){return K.handleCompleteTransactionSuccess_(O,m)},function(){return K.handleCompleteTransactionFailure_(m)})},
handleCompleteTransactionSuccess_:function(m,G){m.data||(m={data:m});if(m.data.messageRenderer)return _.KN(new Syx(m.data.messageRenderer));if(m.data.trackingParams){var K=_.gU(),W=_.wU();K&&W&&_.tW(K,W,_.m5(m.data.trackingParams))}G=this.get("data.serializedTransactionFlowLoggingParams",G);SB5(G);return _.fJ(m)},
handleCompleteTransactionFailure_:function(m){m=this.get("data.serializedTransactionFlowLoggingParams",m);_.nr("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",m);return _.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",m))},
ypcCompleteTransactionHandler:function(m,G){var K=this;if(!G.ypcCompleteTransactionEndpoint)return!1;if(!G.ypcCompleteTransactionEndpoint.transactionParams)return _.j1(Error("xm")),!0;G.ypcCompleteTransactionEndpoint&&G.ypcCompleteTransactionEndpoint.gtmData&&_.TX(G.ypcCompleteTransactionEndpoint.gtmData);var W=_.xS().resolve(_.fn(_.M_));if(W){_.hX(this.hostElement);var L=_.NW.instance;L&&_.Dg(L,G)?_.to(L,G).then(function(A){return!A||(A==null?0:A.error)?(A=K.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
G),_.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",A))):{data:A}}).then(function(A){_.Zw(m,"yt-service-request-completed");
K.ypcCompleteTransactionSuccess_(G,A)},function(){return K.ypcCompleteTransactionFailure_(G)}):W.requestDataForServiceEndpoint(G).then(function(A){_.Zw(m,"yt-service-request-completed");
K.ypcCompleteTransactionSuccess_(G,A)},function(){return K.ypcCompleteTransactionFailure_(G)})}return!0},
ypcCompleteTransactionSuccess_:function(m,G){_.pm(this.hostElement);G.data||(G={data:G});_.dU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);G.data.messageRenderer||G.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(m):(_.TX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",m));G.data.actions&&(m=WrE(G.data.actions),G=Lr6(G.data.actions),m.length&&_.yQ(this.hostElement,
m),G.length&&_.eD(this.hostElement,G,this.hostElement))},
ypcCompleteTransactionFailure_:function(m){_.pm(this.hostElement);_.dU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",m,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(m,G,K){if(G=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",G))G={serializedTransactionFlowLoggingParams:G},K&&(G.errorType=K),_.Fx(m,G),_.Qb()}}];var UpN={};UpN.YtEndpointHandlerWithYpcBehavior=[_.nh0,_.Pq.YtActionHandlerBehavior,[{openWalletDialog:function(m,G,K,W,L,A,O){var c=this,u=_.Qo();G=G.replace(/-/g,"+").replace(/_/g,"/");var h=_.M$().get("hl");_.Uw9(_.Ix(_.b0),G,u.resolve,L,function(J){A&&A();u.reject(J)},h,function(J){return c.onServerBackendAnalyticEvent_(m,K,J)},this.onDialogClose_.bind(this),W,O);
return u.promise},
openFixFlowDialog:function(m,G,K,W){m=m.replace(/-/g,"+").replace(/_/g,"/");_.Ix(_.b0).openFixFlowDialog(m,G,K,W)},
onDialogClose_:function(){_.dU(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(m,G,K){_.Zw(m,"yt-commerce-action-init-done");G&&_.yQ(this.hostElement,[G,{backend_analytics:K}])}}],
_.Zd.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(m,G){m=this.get("data.nativeFlowEndpoint",G);G=this.get("data.fallbackEndpoint",G);m?_.yQ(this.hostElement,[m]):G&&_.Zw(this.hostElement,"yt-navigate",{endpoint:G})}}],
XzO.YtCancelRecurrenceBehavior,Rj4.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 m=this;mzG(this,function(G,K,W){return m.handleYPCEndpoint(G,K,W)});
this.ypcRegisterActionMapJobId_=_.rC(_.Fu,function(){m.registerActionMap(m.buyFlowActionMap_)})},
detached:function(){var m=this;_.Fu.cancelJob(this.ypcRegisterActionMapJobId_);_.rC(_.Fu,function(){m.unregisterActionMap(m.buyFlowActionMap_)})},
handleYPCEndpoint:function(m,G,K){var W=G.ypcGetCartEndpoint;if(W){_.ck("commerce_transaction");var L=W.gtmId;L&&_.MQ(L);(W=W.gtmData)&&_.TX(W)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",G)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(m,G),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",G)!=null?(this.handleYPCFixInstrumentEndpoint_(m,G),!0):G.ypcPauseSubscriptionCommand?(PA6(this.hostElement,m,G,K),
!0):G.ypcResumeSubscriptionCommand?(f8s(this.hostElement,m,G),!0):G.getPaymentInstrumentsParamsCommand?(VZD(this.hostElement,m,G),!0):G.ypcHandleTransactionEndpoint?(kBE(this.hostElement,m,G,K),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(m,G){var K=this;_.Yt("ttcr",void 0,"commerce_transaction");G=G.ypcGetCartEndpoint;var W=G.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,L=W.encryptedPurchaseParams,A=W.serializedTransactionFlowLoggingParams,O=W.serializedPaymentsClientParams,c=this.createGetCartResponseFromParams_(W,G.offerParams,A);this.changeButtonState(m,!0);_.O5(this.openWalletDialog(m,L,W.ypcLogWalletAnalyticDataEndpoint,A,function(){K.changeButtonState(m,!1)},function(){K.changeButtonState(m,
!1)},O).then(function(u){return K.handleBuyFlowCompleteCallback_(m,c,u)},function(){return K.handleOnLoadError(c)}).then(function(u){return void K.handlePostPurchaseSuccess_(m,c,u)},function(u){return void K.handlePostPurchaseError_(u)}),function(){K.changeButtonState(m,!1);
m instanceof Element&&_.Zw(m,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(m,G,K){var W=m.completeTransactionEndpoint,L=m.handleTransactionEndpoint;G={data:{offerParams:window.btoa(G),serializedTransactionFlowLoggingParams:K}};L?G.data.handleTransactionEndpoint=L:G.data.completeTransactionEndpoint=W;m.onCartDismissCommand&&(G.data.onCartDismissCommand=m.onCartDismissCommand);return G},
onGetCartServiceRequestCompleted_:function(m,G){var K=this,W=m.target;if(G&&G.data&&G.data.messageRenderer)_.pm(this.hostElement),this.handleMessageRenderer_(G.data.messageRenderer),this.changeButtonState(W,!1);else{var L=this.get("data.encryptedPurchaseParams",G),A=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",G),O=this.get("data.ypcLogWalletAnalyticDataEndpoint",G),c=this.get("data.serializedPaymentsClientParams",G),u=this.getLoggingParams_(G);if(u||L||A)m.stopPropagation(),_.Yt("ttcr",
void 0,"commerce_transaction"),L||_.pm(this.hostElement),this.changeButtonState(W,!1),A?_.dU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.E8("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:A}}},this]):L&&(this.changeButtonState(W,!0),m=null,m=this.openWalletDialog(W,L,O,u,function(){_.pm(K.hostElement);K.changeButtonState(W,!1)},function(){_.pm(K.hostElement);
K.changeButtonState(W,!1)},c),_.O5(m.then(function(h){return K.handleBuyFlowCompleteCallback_(W,G,h)},function(){return K.handleOnLoadError(G)}).then(function(h){return K.handlePostPurchaseSuccess_(W,G,h)},function(h){return K.handlePostPurchaseError_(h)}),function(){K.changeButtonState(W,!1);
_.Zw(W,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(m,G){G&&G.endpoint&&G.endpoint.ypcGetCartEndpoint&&!G.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)&&_.eD(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",G.endpoint.ypcGetCartEndpoint)],m.target),_.hX(this.hostElement),this.changeButtonState(m.target,!0))},
onServiceRequestError_:function(m,G){if(G&&G.params&&G.params.length){G=_.g(G.params);for(var K=G.next();!K.done;K=G.next())if((K=K.value)&&K.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",K.ypcGetCartEndpoint)&&_.eD(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",K.ypcGetCartEndpoint)],m.target);_.pm(this.hostElement);this.changeButtonState(m.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(m,G,K){var W=K.integratorData;return W==null||W===""||K.error!=null?(W=this.getLoggingParams_(G),String(K.error)==="-1"?(G.data.onCartDismissCommand&&_.eD(this.hostElement,[G.data.onCartDismissCommand],m),_.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",W,!0))):_.KN(new J1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",W))):G.data.handleTransactionEndpoint?CAG(this.hostElement,G.data.handleTransactionEndpoint,{payments_payload:W,funds_guarantee_callback_client_data:K.integratorClientCallbackData}):
this.completeTransaction(G,K)},
handlePostPurchaseSuccess_:function(m,G,K){G=K.data;var W=!1,L,A;if(G&&((L=G.command)==null?0:(A=L.commandExecutorCommand)==null?0:A.commands)){var O,c;L=(O=G.command)==null?void 0:(c=O.commandExecutorCommand)==null?void 0:c.commands;for(O=0;O<L.length;O++)if(_.Q(L[O],_.Q_P)){W=!0;break}}W||(G&&G.gtmDatas&&G.gtmDatas.length?_.TX(G.gtmDatas[0]):_.TX('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));K.data&&K.data.actions&&(G=WrE(K.data.actions),K=Lr6(K.data.actions),G.length&&
_.yQ(this.hostElement,G),K.length&&_.eD(this.hostElement,K,m))},
handlePostPurchaseError_:function(m){m&&m.payload&&m.payload.isUserDismiss||_.am(Error("zm"))},
handleOnLoadError:function(m){m=this.getLoggingParams_(m);return _.KN(new J1("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",m))},
getLoggingParams_:function(m){return this.get("data.serializedTransactionFlowLoggingParams",m)},
handleMessageRenderer_:function(m){var G=_.vO(m,"renderer"),K=_.E8("openPopupConfig");G==="confirmDialogRenderer"&&K&&_.dU(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:K.popupTypeMap[G],popup:m}},this])},
handleYPCFixInstrumentEndpoint_:function(m,G){var K=this,W=G.ypcFixInstrumentEndpoint;G=W.encryptedFixInstrumentParameters;this.logFixFopEvent_(W,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(m,!0);this.openFixFlowDialog(G,function(L,A){K.onFixFlowCompleteCallback_(W,L,A)},function(){return K.changeButtonState(m,!1)},function(){K.changeButtonState(m,!1);
K.logFixFopEvent_(W,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(m,G,K){var W=_.Cn("payments.business.integration.scenario.FixInstrument");if(G==W.IntegratorCallbackType.ON_COMPLETE){G="FIX_FOP_EVENT_TYPE_CANCEL";var L=null;K.error!=null?K.error!=W.OnCompleteCallbackError.USER_CANCELLED&&(_.eD(this.hostElement,[m.errorAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_FAILURE",L="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.eD(this.hostElement,[m.successAction],this.hostElement),G="FIX_FOP_EVENT_TYPE_SUCCESS");_.eD(this.hostElement,[m.onFinishAction],
this.hostElement);this.logFixFopEvent_(m,G,L)}},
logFixFopEvent_:function(m,G,K){(m=m.serializedFixFopLoggingParams)?(G={eventType:G,serializedFixFopLoggingParams:m},K!=null&&(G.errorType=K),_.Fx("fixFopFlow",G),_.Qb()):_.am(Error("Am"))},
changeButtonState:function(m,G){_.F("enable_ypc_spinners")&&m&&(m.is==="yt-button-renderer"||m.is==="ytd-button-renderer")&&(m.disabled=G)}}];var zj3=function(m){this.JSC$33929_clientRoot=m;this.feedbackCollectorActionMap={"yt-help-dialog-requested":XoG,"yt-feedback-dialog-requested":xEO,"yt-signal-action-help":SA6,"yt-signal-action-send-feedback":R06,"yt-send-feedback-action":z06,"yt-user-feedback-endpoint":l8P};_.jN(_.Im.getInstance(),this.feedbackCollectorActionMap,this.JSC$33929_clientRoot)},lOC;var B5u=function(m){this.JSC$33934_clientRoot=m;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":BLu.bind(null,this.JSC$33934_clientRoot),"yt-signal-action-delete-all-downloads":TLO,"yt-signal-action-delete-download":mNz,"yt-signal-action-delete-playlist-download":GsW,"yt-signal-action-install-pwa":gvO,"yt-signal-action-refresh-downloads":AYq,"yt-offline-video-endpoint":cY6,"yt-offline-playlist-endpoint":rYz,"yt-update-local-app-setting-command":hTD,"yt-offline-orchestration-action-command":JYG,
"yt-signal-action-undo-delete-download":WWz,"yt-local-watch-history-command":tk6,"yt-signal-action-mark-download-to-mobile-edu-shown":QSq};_.jN(_.Im.getInstance(),this.downloadManagerActionMap,this.JSC$33934_clientRoot);_.tK.instance=new _.tK},Myg;var dj=function(){var m=_.d.apply(this,arguments)||this;m.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_"};m.remoteApi_=null;return m};
_.n(dj,_.d);_.w=dj.prototype;
_.w.ready=function(){_.F("polymer_enable_mdx")&&(F5D({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.F("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.F("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.F("enable_cast_short_lived_lounge_token")}),_.z6("yt-remote-connection-change",this.handleConnectionChange_,this),_.z6("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=sCE())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.w.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.w.handleConnectionChange_=function(m){(this.mdxConnected=m)?(m=oED(),!m&&K5W()&&W56()&&(m={key:"cast-selector-receiver",name:W56()}),m=m.name):m=null;this.receiverName=m;_.I$(this.remoteApi_);(this.remoteApi_=sCE())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.w.handleReceiverAvailabilityChange_=function(){var m=aJO();K5W()&&_.Gh("yt-remote-cast-available")&&m.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=m.length>0};
_.w.handleRemoteQueueChange_=function(){var m=this.currentVideoId_,G=this.currentListId_,K=CI(this.remoteApi_);this.currentVideoId_=K.videoId;this.currentListId_=K.listId;this.currentVideoId_&&_.dU(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.F("polymer_enable_mdx_queue")?this.currentListId_:null,m,G])};
_.w.handleAddToQueueAction_=function(m){m=_.Q(m,RZE);this.remoteApi_&&(m.videoId?this.remoteApi_.addVideo(m.videoId):m.playlistId&&this.remoteApi_.addPlaylist(m.playlistId))};
_.w.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.w.handleInsertInQueueAction_=function(m){m=_.Q(m,UrO);this.remoteApi_&&m.videoId&&this.remoteApi_.JSC$20114_insertVideo(m.videoId)};
_.w.handleRemoveFromQueueAction_=function(m){m=_.Q(m,zZi);this.remoteApi_&&m.videoId&&this.remoteApi_.JSC$20114_removeVideo(m.videoId)};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],dj.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V(),_.S("design:type",Object)],dj.prototype,"appId",void 0);_.x([_.V(),_.S("design:type",Boolean)],dj.prototype,"mdxConnected",void 0);_.x([_.V(),_.S("design:type",Boolean)],dj.prototype,"receiverAvailable",void 0);_.x([_.V(),_.S("design:type",Object)],dj.prototype,"receiverName",void 0);_.x([_.V(),_.S("design:type",Object)],dj.prototype,"currentVideoId_",void 0);
_.x([_.V(),_.S("design:type",Object)],dj.prototype,"currentListId_",void 0);_.x([_.cL({is:"yt-mdx-manager",disableElementRegistration:!0})],dj);_.y(dj,"yt-mdx-manager",void 0,{mode:2});var T5G;var mjp;var P1=function(){var m=_.d.apply(this,arguments)||this;m.APP_IDS={ytr:3,ytm:5};m.JSC$23220_timeoutId_=0;m.actionMap={"yt-open-create-family-dialog":"open"};return m};
_.n(P1,_.d);_.w=P1.prototype;_.w.created=function(){pW6(2200)};
_.w.detached=function(){this.observer_&&this.observer_.disconnect()};
_.w.open=function(m,G){var K=this,W=m.serializedYpcFamilyCreateLoggingParams;this.JSC$23220_timeoutId_=setTimeout(this.abort_.bind(this,m.postFlowErrorEndpoint,W),3E4);G&&(this.onReadyCallback_=G);var L=_.VL(this.hostElement).querySelector("#unicorn-iframe");W&&W&&x$u("ypcFamilyCreateFlowStarted",W);_.Kjd("family_creation",function(){var A=_.Cn("gapi.family_creation.render");_.Cn("gapi.config.update")("iframes/family_creation/url",K.getFamilyCreationUrlWithUnicornParams_());var O=3;m.appId&&m.appId in
K.APP_IDS&&(O=K.APP_IDS[m.appId]);O={authUser:_.E8("SESSION_INDEX")||0,clientId:O,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.E8("HL"),initialflow:[4,5,6,7],m:K.isMobile?1:0,onFlowComplete:K.onUnicornFlowComplete_.bind(K,m.postFlowSuccessEndpoint,W),onError:K.onUnicornFlowError_.bind(K,m.postFlowErrorEndpoint,W),onReady:K.onUnicornFlowReady_.bind(K,m.referencePcidParams)};A(L,O)})};
_.w.close=function(){_.VL(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.w.onUnicornFlowComplete_=function(m,G){this.close();G&&G&&x$u("ypcFamilyCreateFlowSucceeded",G);_.Zw(this.hostElement,"yt-navigate",{endpoint:m})};
_.w.onUnicornFlowError_=function(m,G){this.close();G&&x$u("ypcFamilyCreateFlowCancelled",G);_.Zw(this.hostElement,"yt-navigate",{endpoint:m})};
_.w.onUnicornFlowReady_=function(m){var G=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();m&&_.Cn("gapi.family_creation.setConfig")(0,m);this.observer_=new MutationObserver(function(){_.VL(G.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.VL(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.VL(this.hostElement).querySelector("#dialog").open()};
_.w.getFamilyCreationUrlWithUnicornParams_=function(){return _.E8("YTR_FAMILY_CREATION_URL")};
_.w.getCurrentUrl_=function(){return document.location.href};
_.w.abort_=function(m,G){this.clearTimeout_();this.onUnicornFlowError_(m,G)};
_.w.clearTimeout_=function(){clearTimeout(this.JSC$23220_timeoutId_)};
_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],P1.prototype,"ytActionHandlerBehavior",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],P1.prototype,"isMobile",void 0);_.x([_.V(),_.S("design:type",Object)],P1.prototype,"onReadyCallback_",void 0);_.x([_.V(),_.S("design:type",Object)],P1.prototype,"observer_",void 0);_.x([_.cL({is:"yt-create-family-dialog",disableElementRegistration:!0})],P1);
_.y(P1,"yt-create-family-dialog",function(){if(mjp===void 0){var m=document.createElement("template");_.b(m,'\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');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);var G=m.content,K=G.insertBefore;T5G===void 0&&(T5G=document.createElement("template"));var W=T5G;K.call(G,W.content.cloneNode(!0),m.content.firstChild);mjp=m}m=mjp;return m},{mode:2});var i6O;var GFe;var y9=function(){var m=_.d.apply(this,arguments)||this;m.STEP=1;m.BLOCK_ON=80;m.MIN_PROGESS=0;m.MAX_PROGESS=100;return m};
_.n(y9,_.d);_.w=y9.prototype;_.w.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.w.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));_.xS().addProvider({provide:lxi,useValue:this})};
_.w.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.w.finish=function(){var m=this;this.progress=this.MAX_PROGESS;aS6(function(){m.progress==m.MAX_PROGESS&&(m.hostElement.hidden=!0)})};
_.w.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.e_.Object.defineProperties(y9.prototype,{progress:{configurable:!0,enumerable:!0,set:function(m){this.progress_=m;var G="scaleX("+m/this.MAX_PROGESS+")",K=_.VL(this.hostElement).querySelector("#progress").style;K.transform=G;K.webkitTransform=G;this.hostElement.setAttribute("aria-valuenow",String(m))},
get:function(){return this.progress_}}});
_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],y9.prototype,"ytComponentBehavior",void 0);_.x([_.cL({is:"yt-page-navigation-progress",disableElementRegistration:!0})],y9);
_.y(y9,"yt-page-navigation-progress",function(){if(GFe===void 0){var m=document.createElement("template");_.b(m,'\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');m.content.insertBefore(_.R().content.cloneNode(!0),
m.content.firstChild);var G=m.content,K=G.insertBefore;i6O===void 0&&(i6O=document.createElement("template"));var W=i6O;K.call(G,W.content.cloneNode(!0),m.content.firstChild);GFe=m}m=GFe;return m},{mode:2});var KKp={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"},WKe={"font-size":"12px","font-style":"italic"},LK4={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.vvD=function(){return _.Y(function(m){_.ey(m)})};var AUo=_.P(function(m){var G=function(){return m.data().subtext},K={};
return _.r("snackbar-view-model",{class:_.VO("snackbarViewModelHost",m.className)},_.r("div",{class:_.VO("snackbarViewModelEngagementBarWrapper",m.className)},_.r(_.p,{cond:function(){return m.data().image},
then:function(W){return _.r(_.oC,{data:W,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.r(_.p,{cond:function(){return m.data().imageContent},
then:function(){return _.r("div",{class:"snackbarViewModelAvatarContainer"},_.r(_.z$,{data:function(){return m.data().imageContent}},{decoratedAvatarViewModel:_.cr}))}}),_.r("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.r("div",{class:_.VO((K.snackbarViewModelTitle=!0,K.snackbarViewModelTitleWithSubtext=G,K))},_.r(_.Nm,{text:function(){return m.data().text}})),_.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"snackbarViewModelSubtext"},_.r(_.Nm,{text:function(){return G()}}))}})),_.r(_.p,{cond:function(){return m.data().buttons},
then:function(){return _.r("div",{class:"snackbarViewModelButtonClassWrapper"},_.r(_.z$,{data:function(){return m.data().buttons}},{buttonViewModel:function(W){return _.r(_.kP,{data:W.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:m.target})}}))}})))},"hm");_.sh(_.P(function(){function m(k,z,X){a(k);I(X);D("in");J(!0);G(k,z);O=setTimeout(function(){K()},z)}
function G(k,z){var X,f=(X=k.text)==null?void 0:X.content;k=_.wH(k.rendererContext);f&&(z={label:f,command:k,durationMs:z},_.xS().resolve(_.$h).enqueue(z))}
function K(k){D("out");k&&clearTimeout(O)}
function W(){K(!0)}
function L(k){if(k){var z=k.snackbarViewModel,X=k.durationMs,f=k.target;X||(X=3E3);z&&(k=_.xS().resolve(_.fn(_.nR)))&&k.enqueue({isOpened:h,open:function(){m(z,X,f)},
close:K},0)}}
var A=_.aP("snackbar-container"),O=void 0,c=_.g(_.g_(!1,void 0,"mDc5N")),u=c.next().value;c=c.next().value;var h=u,J=c;u=_.g(_.g_("out",void 0,"FpOs5e"));var N=u.next().value,D=u.next().value;u=_.g(_.g_(void 0,void 0,"jIDRob"));var t=u.next().value,a=u.next().value;u=_.g(_.g_(void 0,void 0,"kOA3Mb"));var v=u.next().value,I=u.next().value,Z=_.dn(function(){if(N()==="out"){J(!1);a(void 0);I(void 0);var k=_.xS().resolve(_.fn(_.nR));k&&xzz(k,0)}});
_.bX(function(){var k=_.xS().resolve(_.fn(_.iBD));k&&(k.showSnackbarFn=L,k.closeSnackbarFn=W)});
return _.r("snackbar-container",{class:"ytSnackbarContainerHost",el:A},_.r(_.p,{cond:function(){return h()&&!!t()},
then:function(){var k={};return _.r("div",{class:_.VO("ytSnackbarContainerSnackbarContainer",(k.ytSnackbarContainerMobile=!1,k.ytSnackbarContainerPivotBar=function(){var z;return!((z=_.xS().resolve(_.fn(_.GIs)))==null||!z())},k.ytSnackbarContainerOpened=function(){return h()&&N()==="in"},k.ytSnackbarContainerClosed=function(){return h()&&N()==="out"},k)),
"on:animationend":Z},_.r(AUo,{data:function(){return t()},
target:function(){return v()}}))}}))},"im"),"snackbar-container");_.sh(_.FAo,"yt-tooltip");var wEC=_.yOu.ephemeralActionSelector;_.sh(_.P(function(){var m=_.RC(wEC);return _.r("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var G;return(G=m())==null?void 0:G.announcement})},"jm"),"yt-ephemeral-actions");var RTE=new Map;var IGO=function(m,G){var K=this;this.handleError=m;this.logEventInternal=G;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){K.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
IGO.prototype.logError=function(m){this.handleError(m)};
IGO.prototype.logEvent=function(m,G){switch(m){case "IDB_DATA_CORRUPTED":_.F("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",G);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",G);break;case "IS_SUPPORTED_COMPLETED":_.F("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",G);break;case "QUOTA_EXCEEDED":gy3(this,G);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",G);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":m=Object.assign({},G,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",m)}};
var gy3=function(m,G){_.qJ.getInstance().estimate().then(function(K){K=Object.assign({},G,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:zTi(K==null?void 0:K.usage),deviceStorageQuotaMbytes:zTi(K==null?void 0:K.quota)});m.logEventInternal("idbQuotaExceeded",K)})};var O6g=_.P(function(m){var G=_.Q3("yt-draggable"),K=m.onDrag,W=m.onDragStart,L=m.onDragEnd,A=_.ql(m,{allowClicks:!1,dragThreshold:5}),O=A.dragThreshold,c=A.allowClicks;m=A.children;A=A.className;var u=void 0,h=void 0,J=new _.si(0,0),N=!1;_.bX(function(){u=new _.uB(G.value);h=new _.Xg(t);D(u,h);if(c()){_.NBR(u,O());var v;(v=G.value)==null||v.addEventListener("click",a,{capture:!0})}_.sZ(function(){var I;(I=u)==null||I.dispose();if(c()){var Z;(Z=G.value)==null||Z.removeEventListener("click",a,{capture:!0})}})});
var D=function(v,I){_.oi(v,"earlycancel",function(){c()&&(N=!1)});
_.oi(v,"start",function(Z){W==null||W(Z);Z.defaultPrevented||c()&&(N=!0)});
_.oi(v,"beforedrag",function(Z){u&&h&&(Z.preventDefault(),J=new _.si(Z.clientX-u.startX,Z.clientY-u.startY),h.start())});
_.oi(v,"end",function(){I.stop();L==null||L();J=new _.si(0,0)})},t=function(){J&&K(J)},a=function(v){N&&(N=!1,v.stopPropagation(),v.preventDefault())};
return _.r("yt-draggable",{el:G,class:_.VO("ytDraggableComponentHost",A)},m)},"km");var cU7=_.P(function(m){var G=_.g(_.g_(0,void 0,"Qf0tbc")),K=G.next().value,W=G.next().value;G=function(L){var A={},O={};return _.r(O6g,{className:_.VO("ytdMiniplayerComponentResizer",(A.ytdMiniplayerComponentResizerDisabled=function(){return L===m.horizontalAlignment()||L===m.verticalAlignment()},A.ytdMiniplayerComponentResizerNorth=L==="north",A.ytdMiniplayerComponentResizerEast=L==="east",A.ytdMiniplayerComponentResizerSouth=L==="south",A.ytdMiniplayerComponentResizerWest=L==="west",A)),
onDragStart:function(){W(m.currentMiniplayerSize());if(m.onResizeStart)m.onResizeStart()},
onDrag:function(c){L!=="north"&&L!=="west"||c.scale(-1);var u;c=(u=L==="north"||L==="south")?c.y:c.x;var h=m.currentAspectRatio();u&&h>=1?c*=h:!u&&h<1&&(c/=h);u=c;m.onResize(K()+u)}},_.r("div",{class:_.VO("ytdMiniplayerComponentResizerCorner",(O.ytdMiniplayerComponentResizerNorthCorner=L==="north",O.ytdMiniplayerComponentResizerEastCorner=L==="east",O.ytdMiniplayerComponentResizerSouthCorner=L==="south",O.ytdMiniplayerComponentResizerWestCorner=L==="west",O))}))};
return _.r("div",{class:"ytdMiniplayerComponentResizers"},G("north"),G("east"),G("south"),G("west"))},"lm");var YiG=16/9;_.sh(_.P(function(){var m=_.Q3("ytd-miniplayer"),G=_.g(_.g_(new _.qj(NaN,NaN),void 0,"i8Divd")),K=G.next().value,W=G.next().value;G=_.g(_.g_(!1,void 0,"M0mb9d"));var L=G.next().value,A=G.next().value;G=_.g(_.g_(!1,void 0,"U2besf"));var O=G.next().value,c=G.next().value;G=_.g(_.g_(!1,void 0,"oMkCO"));var u=G.next().value,h=G.next().value;G=_.g(_.g_(!1,void 0,"LLG3Bf"));var J=G.next().value,N=G.next().value;G=_.g(_.g_(!1,void 0,"m7HPQe"));var D=G.next().value,t=G.next().value;G=_.g(_.g_(!1,void 0,"jUGfuc"));
var a=G.next().value,v=G.next().value;G=_.g(_.g_(YiG,void 0,"LkUsDe"));var I=G.next().value,Z=G.next().value,k=_.g(_.g_(!1,void 0,"xKE3oe"));G=k.next().value;var z=k.next().value;k=_.g(_.g_(!1,void 0,"QQ32Je"));var X=k.next().value,f=k.next().value;k=_.g(_.g_(void 0,void 0,"LRAn3"));var U=k.next().value,l=k.next().value;k=_.g(_.g_(Fz()?"west":"east",void 0,"ZPTxkd"));var Ls=k.next().value,gd=k.next().value;k=_.g(_.g_("south",void 0,"XYTr4"));var Qf=k.next().value,JV=k.next().value;k=_.g(_.g_(400,
void 0,"hJycJe"));var DF=k.next().value,kG=k.next().value;k=_.xS().resolve(_.pY).miniplayerPropSignalMap[0];var eo=k.data,xG=k.externalPlaylistData,Ji=k.playabilityStatus,rK=k.isReadyToResume,So=k.isDisabled,ti=k.watchWhile,bS=k.playerVe,NG=k.expandVe,EO=k.closeVe,gz=k.readyToResumeVe,ps=k.readyToResumeCloseVe,ZF=k.repositionVe,DP=k.resizeVe;k=_.g(_.EQ(rK));var lS=k.next().value,Eo=k.next().value,iq=_.RC(_.DE.persistentPanelVisibleSelector),jy=!1,T4=!1,JD;_.bX(function(){W(_.zv());m.value.addEventListener("animationend",
function(fl){fl.target===m.value&&(t(!1),v(!1))});
ibW(m.value)});
_.Cc("yt-window-resized",function(fl){fl&&W(fl)});
var S0=function(){JD&&Z(JD.getVideoAspectRatio())},zG=function(){if(JD){var fl=JD.getPlayerState()===1;
lS()&&fl&&Eo(!1)}},c2=function(){var fl=NG();
if(fl){var Qi=_.gU(3);Qi&&_.nW(Qi,fl)}},N6=function(){var fl=EO(),Qi=ps();
fl&&_.nW(_.gU(3),fl);rK()&&Qi&&_.nW(_.gU(3),Qi)};
_.Cc("yt-activate-miniplayer",function(fl){var Qi;return _.Y(function(ig){if(ig.nextAddress==1)return L()?ig.return():ig.yield((Qi=_.xS().resolve(_.pY).getPlayerElement())==null?void 0:Qi.getPlayerPromise(),2);JD=ig.yieldResult;if(!JD)return ig.return();!X()&&_.F("kevlar_watch_while_v2")&&(JV(fl&&!_.F("kevlar_watch_while_bottom_align")?"north":"south"),gd(Fz()?"west":"east"));var gx=JD;gx.addEventListener("onVideoDataChange",S0);gx.addEventListener("onStateChange",zG);gx.addEventListener("onExpandMiniplayer",
c2);gx.addEventListener("onCloseMiniplayer",N6);Z(JD.getVideoAspectRatio());A(!0);m3O()||t(!0);_.ey(ig)})});
_.Cc("yt-deactivate-miniplayer",function(fl,Qi){return _.Y(function(ig){if(!L())return ig.return();A(!1);Eo(!1);v(fl);N(!1);c(!1);if(JD){var gx=JD;gx.removeEventListener("onVideoDataChange",S0);gx.removeEventListener("onStateChange",zG);gx.removeEventListener("onExpandMiniplayer",c2);gx.removeEventListener("onCloseMiniplayer",N6)}m3O()||Qi?Qi&&t(!1):t(!0);_.ey(ig)})});
var pl=function(){return!(ti()&&_.F("kevlar_watch_while_modern"))},Uo=function(){var fl;
return!((fl=xG())==null||!fl.contents)},dK=function(){var fl=DF();
var Qi=K();Qi=Math.min(Math.min(Qi.width,Qi.height)-32,720);var ig=I(),gx=pl(),xl=Uo()&&O(),xr=Math.min(fl,Qi);fl=new _.qj(192,gx?116:192);ig=new _.qj(xl?YiG:ig,1);xr=new _.qj(xr,gx?xr-76:xr);xr=ig.aspectRatio()>xr.aspectRatio()?xr.width/ig.width:xr.height/ig.height;ig=ig.scale(xr);fl.width<=ig.width&&fl.height<=ig.height||(fl=ig.aspectRatio()<=fl.aspectRatio()?fl.width/ig.width:fl.height/ig.height,ig.scale(fl),ig.width=Math.min(ig.width,Qi),ig.height=Math.min(ig.height,Qi));return new _.qj(ig.width,
_.YJ(192,ig.height+Lz6(gx,xl),720))},cu=function(){var fl=dK(),Qi=pl(),ig=Uo()&&O();
return new _.qj(fl.width,fl.height-Lz6(Qi,ig))},xo=function(){var fl=function(Qi){Qi.target===m.value&&J()&&(N(!1),m.value.removeEventListener("transitionend",fl))};
m3O()||(m.value.addEventListener("transitionend",fl),N(!0));c(!O())};
_.$O(function(){var fl=bS(),Qi=_.gU(3),ig=_.wU(3);if(Qi&&ig&&fl){_.tW(Qi,ig,fl);ig=ZF();var gx=DP(),xl=NG(),xr=EO(),Gf=ps();xl&&xr&&Gf&&(_.Fv(Qi,fl,[xl,xr,Gf]),_.a7(Qi,[xl,xr]));ig&&gx&&_.Fv(Qi,fl,[ig,gx])}},"UatZXe");
_.$O(function(){var fl=gz();if(fl){var Qi=_.gU(0),ig=_.wU(0);Qi&&ig&&(_.tW(Qi,ig,fl),_.a7(Qi,[fl]))}},"kTR4R");
k={};return _.r("ytd-miniplayer",{el:m,class:_.VO("ytdMiniplayerComponentHost",(k.ytdMiniplayerComponentVisible=function(){return(L()||D())&&!(ti()&&_.F("kevlar_watch_while_counterfactual"))},k.ytdMiniplayerComponentAnimatingSnap=u,k.ytdMiniplayerComponentAnimatingPlaylistExpand=J,k.ytdMiniplayerComponentAnimatingFade=D,k),function(){if(D()){var fl=Qf();
var Qi=L(),ig=a();fl=Qi?fl==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":ig?fl==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":fl==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else fl="";return fl}),
style:_.eA({top:function(){return Qf()==="north"?"16px":""},
right:function(){var fl=Ls(),Qi=iq();Qi=(Qi===void 0?0:Qi)&&!Fz()?400:0;return fl==="east"?16+Qi+"px":""},
bottom:function(){return Qf()==="south"?"16px":""},
left:function(){var fl=Ls(),Qi=iq();Qi=(Qi===void 0?0:Qi)&&Fz()?400:0;return fl==="west"?16+Qi+"px":""},
width:function(){return dK().width+"px"},
height:function(){return dK().height+"px"},
transform:function(){var fl=U();return fl?"translate("+fl.x+"px, "+fl.y+"px)":""}})},_.r("div",{class:"ytdMiniplayerComponentContent"},_.r(O6g,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(fl){var Qi=WzG(Ls(),Qf(),K(),dK(),U()),ig=cu();Math.abs(fl.clientY-(Qi.y+ig.height))>15?(z(!0),fl=_.gU(3),Qi=ZF(),jy||(jy=!0,fl&&Qi&&_.a7(fl,[Qi])),fl&&Qi&&_.nW(fl,Qi)):fl.preventDefault()},
onDrag:function(fl){l(fl)},
onDragEnd:function(){var fl=G5E(WzG(Ls(),Qf(),K(),dK(),U()),K(),dK()),Qi=Kzs(Ls(),Qf(),K(),dK(),iq()),ig=Kzs(fl.horizontalAlignment,fl.verticalAlignment,K(),dK(),iq());ig=new _.si(ig.x-Qi.x,ig.y-Qi.y);var gx;Qi=Qi.y+(((gx=U())==null?void 0:gx.y)||0)+dK().height/2;var xl=function(){Ls()===fl.horizontalAlignment&&Qf()===fl.verticalAlignment||f(!0);gd(fl.horizontalAlignment);JV(fl.verticalAlignment);l(void 0)},xr=function(Gf){Gf.target===m.value&&u()&&(h(!1),xl(),m.value.removeEventListener("transitionend",
xr))};
z(!1);Qf()==="south"&&Qi>K().height?(xl(),_.xS().resolve(_.pY).close()):(m.value.addEventListener("transitionend",xr),h(!0),l(ig))}},_.r(_.p,{cond:L,
then:function(){return _.r(_.mq5,{isDisabled:So,playabilityStatus:Ji,size:cu})}}),_.r(_.p,{cond:pl,
then:function(){return _.r(_.MnE,{isReadyToResume:lS,data:eo,expanded:O,onExpandClick:xo,playlistData:xG})}}),_.r(_.p,{cond:G,
then:function(){return _.r("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.r(_.p,{cond:function(){return Uo()&&O()||J()},
then:function(){return _.r(_.iZq,{className:"ytdMiniplayerComponentPlaylistPanel",data:xG,hideHeaderText:!0,withinMiniplayer:!0})}})),_.r(cU7,{onResize:function(fl){kG(_.YJ(192,fl,720))},
onResizeStart:function(){var fl=_.gU(3),Qi=DP();T4||(T4=!0,fl&&Qi&&_.a7(fl,[Qi]));fl&&Qi&&_.nW(fl,Qi)},
currentAspectRatio:I,currentMiniplayerSize:DF,horizontalAlignment:Ls,verticalAlignment:Qf}))},"om"),"ytd-miniplayer",{});var rUg=_.DE.persistentPanelVisibleSelector,eT=function(){var m=_.d.apply(this,arguments)||this;m.tabGesturesIsActive=!1;m.persistentPanelEnabled=_.F("enable_ai_companion");m.hasDelegation=!1;m.isFrostedGlassInitialized=!1;m.frostedGlassExp=_.F("web_frosted_glass");m.hasPendingWatchNavigation=!1;m.mastheadHiddenFocusWithinKillswitch=_.F("web_masthead_hidden_focus_within_killswitch");m.clientOnlyWizTooltipsEnabled=_.F("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
m.scrollAtTopInternal=!0;m.guideScrollTop=0;m.isTheaterModeSession=_.IP("START_IN_THEATER_MODE");m.iMaxTheaterMode=_.F("web_watch_imax_theater_mode");m.isFullWindowSession=_.IP("START_IN_FULL_WINDOW_MODE");m.hasCreateFamilyDialog=!1;m.mastheadHeight=56;m.networkStatusManager=new _.k3;m.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"};m.dynamicActionMap={"yt-run-attestation-command":function(G){var K=_.ytE.instance,W=_.Q(G,_.qXC);return W?_.F("use_rta_manager_for_async")&&
(_.F("attmusi")&&_.F("attmusi_ue")?window.attmp:Kyz())?uXG(K,W,G.clickTrackingParams):rsO(K,W,G.clickTrackingParams):_.KN(Error("ti"))}};
m.isFrostedGlassDisabled=!1;m.isChannelOrPlaylistPage=!1;return m};
_.n(eT,_.d);_.w=eT.prototype;_.w.created=function(){var m=_.xS();_.F("kevlar_clear_duplicate_pref_cookie")&&_.rC(_.Fu,function(){var G=_.LL.get("PREF");G&&!/f\d=/.test(G)&&(G=_.zf("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=G?"PREF=null;domain="+G+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.F("gzip_gel_with_worker")&&_.nev();_.F("jspb_serialize_with_worker")&&fGD();_.F("web_worker_availability_check")&&UNE();_.F("nwl_init_killswitch")||yai().then(function(){_.Fu.addLowPriorityJob(jCE)});
this.pageManagerAttachedPromise=_.Qo();this.ytdAppBehavior.loadDepsPromise=_.gO([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.yO(this.onThrottledScroll,200,this);_.F("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);jv6();AdW=!!_.Cn("ytappsettings.initialized");ou5=_.Cn("ytappsettings.previousValue");nu6=_.Cn("ytappsettings.previousSnapshotTime");AdW||(AdW=!0,bJi());izD();G$i();_.qC("DEFERRED_DETACH",
_.F("kevlar_tuner_should_defer_detach"));_.qC("REUSE_COMPONENTS",!0);_.qC("STAMPER_STABLE_LIST",!0);_.qC("SCHEDULED_LAZY_LIST",!0);_.qC("openPopupConfig",j1D);_.qC("useClickHandler",!0);_.F("kevlar_shell_cleanup")&&_.Fu.addLowPriorityJob(wHs.bind(this,_.Ks.caches));_.IP("IS_SHELL_LOAD")&&_.g9({shellStartupDurationMs:Math.round((0,_.xD)()-Bd())});Evs(this.networkStatusManager);_.F("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",ovP(KKp)),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!",
ovP(WKe)),console.log("%cVisit http://go/join-youtube-web to apply today.",ovP(LK4)));mhO(m.resolve(_.L3q),1E3)};
_.w.ready=function(){var m=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var G=OAi();G&&!_.F("external_fullscreen_killswitch")&&document.addEventListener(G,this.setFullscreen.bind(this));(G=window.matchMedia("(prefers-color-scheme: dark)"))&&G.addEventListener&&G.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(G=_.xS().resolve(_.fn(_.ZI2)))G.subscribe("navigation-start",
function(K){K.destinationPageSubtype==="watch"&&(m.hasPendingWatchNavigation=!0)}),G.subscribe("navigation-end",function(K){K.destinationPageSubtype==="watch"&&(m.hasPendingWatchNavigation=!1)})};
_.w.attached=function(){var m=this;_.tf().processSignal("ci");_.F("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.usC?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Sq(_.hPf(),"SUCCESS");this.updateIconSet();_.q$(this.guideInnerContent,!1);_.Xi().initVisibilityObserver();this.guideService.guideElement=this.guide;var G=document.createElement("ytd-miniplayer"),K=_.VL(this.hostElement).querySelector("#content");
_.VL(this.hostElement).insertBefore(G,K);_.tf().processSignal("ma");_.xS().resolve(_.pY).init(G);this.persistentPanelEnabled&&Z_s(this.persistentPanelContainer,"APP");_.IP("IS_SHELL_LOAD")&&(K=document.createElement("ytd-network-status-banner"),_.VL(this.hostElement).insertBefore(K,G));_.F("kevlar_right_click_on_lockups")&&_.hp._onCaptureClick&&document.addEventListener("contextmenu",_.hp._onCaptureClick.bind(_.hp),!0);var W=function(){var L=_.na("yt-page-navigation-progress");_.VL(m.hostElement).appendChild(L)};
setTimeout(function(){_.tf().parkOrScheduleJob(W,0,"eocs",16)},0);
_.F("service_worker_push_enabled")&&_.rC(_.Fu,fwi);_.jN(_.Im.getInstance(),this.dynamicActionMap,this.hostElement);_.Zw(this.hostElement,"ytd-app-attached");_.tf().processSignal("aa");U8u(this.hostElement);_.yj("gapi.load",_.Kjd);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.rC(_.Fu,
function(){var L=document.createElement("ytd-video-preview");_.VL(_.VL(m.hostElement).querySelector("#video-preview")).appendChild(L)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.rC(_.Fu,function(){$Ni();m.registerWithViewTransitionManager()});
if(_.D7()&&this.isAppDarkTheme()!==_.JK())this.onDarkModeToggledAction();else G=_.Ng()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==G&&(_.F("enable_dark_theme_only_on_shorts")?_.pr(_.F("enable_dark_theme_only_on_shorts_control")?window.location.href:_.y3(window.location.href,{theme:"dark"})):_.nc(new _.cw("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Zdz=new VzD(this.hostElement)),Myg=new B5u(this.hostElement),lOC=new zj3(this.hostElement),KVi=new G26(this.hostElement)};
_.w.getThemeSettingsToLog=function(){var m=_.Ng()==="USER_INTERFACE_THEME_DARK";m=_.D7()?_.JK()?"os-dark":"os-light":m?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:m,cookiesEnabled:_.w8()}};
_.w.detached=function(){_.EB(this.guideInnerContent);_.Fu.cancelJob(d8D);d8D=0;_.Fu.cancelJob(feG);feG=0;_.VAv(RMG);RMG.length=0;x8i=_.Xj6=null;_.Xi().dispose();_.F("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.kz(_.Im.getInstance(),Zdz.playlistHandlerActionMap,Zdz.JSC$33489_clientRoot);_.kz(_.Im.getInstance(),Myg.downloadManagerActionMap,Myg.JSC$33934_clientRoot);_.kz(_.Im.getInstance(),lOC.feedbackCollectorActionMap,lOC.JSC$33929_clientRoot);
for(var m=_.g(KVi.eventListeners),G=m.next();!G.done;G=m.next()){var K=_.g(G.value);G=K.next().value;K=K.next().value;K=_.g(K);for(var W=K.next();!W.done;W=K.next()){var L=_.g(W.value);W=L.next().value;L=L.next().value;G.removeEventListener(W,L)}}_.kz(_.Im.getInstance(),KVi.autonavPauseActionMap,KVi.JSC$21680_clientRoot)};
_.w.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.M$().getFlag(186)};
_.w.computeIsInlinePreviewEnabled=function(m,G,K){return!K&&wYu({miniplayerIsActive:m,miniplayerPlaybackState:G})};
_.w.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.kt({type:"SET_FROSTED_GLASS_MODE",payload:!_.F("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"}))};
_.w.computeIsFrostedGlassDisabled=function(m,G,K,W){return m||G||K||W&&_.F("web_frosted_glass_disable_watch")};
_.w.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.F("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.w.computeIsHomePage=function(m,G){if(!m||G==null||!G.endpoint)return!1;var K;return((K=_.Q(G.endpoint,_.S8))==null?void 0:K.browseId)==="FEwhat_to_watch"};
_.w.updateIsChannelOrPlaylistPage=function(){if(_.F("web_frosted_glass")){var m,G,K=(G=(m=_.xS().resolve(_.fn(_.$g)))==null?void 0:m.getCurrentPage())==null?void 0:G.pageSubtype;this.isChannelOrPlaylistPage=K?["channel","channels","playlist"].includes(K):!1}};
_.w.scheduleFrostedGlassInitialization=function(){var m=this;_.F("web_frosted_glass")&&_.tf().parkOrScheduleJob(function(){m.isFrostedGlassInitialized=!0},0,QV(["eocs",
"cr"]),300)};
_.w.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.o$0(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.kt({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.kt({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.w.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(SLi(!0))};
_.w.onYtSignalActionRequestPersistentStorage=function(){if(!_.F("request_persistent_storage_killswitch")){var m=_.xS().resolve(_.qZP);m.cachedPersistStatePromise||(m.cachedPersistStatePromise=K76())}};
_.w.handleYtChannelCreationFormEndpoints=function(m){m&&this.ytComponentBehavior.resolveCommand(m)};
_.w.handleShowEngagementPanelEndpoint=function(m){m&&this.ytComponentBehavior.resolveCommand(m)};
_.w.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(SLi(!1))};
_.w.initIconDefs=function(m,G){var K=document.createElement("iron-iconset-svg");K.name=m;m=document.createElementNS("http://www.w3.org/2000/svg","svg");K.appendChild(m);m.appendChild(G);document.body.appendChild(K);return K};
_.w.onWindowResized=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var m=_.C8.getInstance();m.documentWidth_=document.body.clientWidth;EZi(m)};
_.w.onWindowScrolled=function(){var m=_.xS().resolve(_.$g).getCurrentPage();if(m!=null&&m.getScrollTop){var G=this.ytdReduxBehavior,K=G.dispatch;m=m.getScrollTop()<=0;K.call(G,_.kt({type:"SET_SCROLL_AT_TOP",payload:m}))}};
_.w.guideIsVisibleButNotPersistentSelectorChanged=function(){var m=_.xS().resolve(_.$g).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=m.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"),
m.setScrollTop(this.guideScrollTop));_.PH(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.w.getCurrentPageScrollableElementType=function(){var m=_.xS().resolve(_.$g).getCurrentPage();if(m&&m.getPageScrollingElement())return m.getPageScrollingElement().nodeName};
_.w.observeGuideVisibility=function(){var m=_.C8.getInstance(),G=this.miniGuideVisible;m.guidePersistentAndVisible_=this.guidePersistentAndVisible;m.miniGuideVisible_=G;EZi(m)};
_.w.observePersistentPanelVisibility=function(){var m=_.C8.getInstance();m.persistentPanelVisible_=this.persistentPanelVisible;EZi(m)};
_.w.handleEduDismissAction=function(m){m&&m.eduDismissAction&&(_.dU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.$b2.getInstance(),_.jG.set(m.eduDismissAction.key+"-dismissed",!0))};
_.w.handleEduImpressionAction=function(m){if(m&&m.eduImpressionAction){var G=_.$b2.getInstance();m=m.eduImpressionAction.key;G.JSC$13497_eduDisplayedThisLoad_[_.vbi[m].setKey||m]=!0;_.jG.set(m+"-impression",parseInt(_.jG.get(m+"-impression")||0,10)+1)}};
_.w.onYtSignalActionConfirmMentionsEdu=function(){_.dU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Zq.getInstance();_.VU.set("edu-dismissed",!0)};
_.w.onYtSignalActionRecordMentionsEduImpression=function(){_.Zq.getInstance();var m=_.VU.set,G=parseInt(_.VU.get("edu-impressions"),10);m.call(_.VU,"edu-impressions",(isFinite(G)?G:0)+1)};
_.w.onYtPageManagerAttached=function(m){var G;((G=_.$C(m))==null?void 0:G.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.w.onInvokeInstrumentManagerAction=function(m,G){T3E(G,m)};
_.w.updateIconSet=function(){var m=this.hostElement.querySelector("#masthead");if(m){var G=_.Z7(m),K=G.querySelector("g#yt-logo-updated");K&&(m=document.createElementNS("http://www.w3.org/2000/svg","defs"),m.appendChild(K.cloneNode(!0)),(G=G.querySelector("g#yt-logo-red-updated"))&&m.appendChild(G.cloneNode(!0)),this.initIconDefs("yt-logos-ext",m))}};
_.w.updateMastheadData=function(){var m=this,G,K,W,L,A;return _.Y(function(O){if(O.nextAddress==1){G=m.data;K=m.hostElement.querySelector("#masthead");if(!K)return O.return();_.Pv(m,function(){K.data=m.topbarData});
if(!m.get("response.topbar",G)||m.get("response.topbar.responseContext.maxAgeSeconds",G)===0)return O.jumpTo(0);if(W=_.xS().resolve(_.wy))return O.yield(W(),6);L=_.xS().resolve(_.y$);return O.yield(L.put("service:topbar:fallback",new _.eB({innertubeResponse:m.get("response.topbar",G)})),0)}return(A=O.yieldResult)?O.yield(A.put("service:topbar:fallback",new _.eB({innertubeResponse:m.get("response.topbar",G)})),0):O.jumpTo(0)})};
_.w.computeTopbarData=function(m){if(!m)return null;var G;return this.isShortsPage&&this.topbarData&&!_.Q((G=m.response)==null?void 0:G.topbar,vU6)?this.topbarData:m.response&&"topbar"in m.response?_.Q(m.response.topbar,vU6)||null:null};
_.w.onSetTheaterModeEnabled=function(m,G){this.isTheaterModeSession=G.enabled;this.setTheaterModeStyles(G.enabled)};
_.w.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.w.onDarkModeToggledAction=function(){var m=_.f6(window.location.href);if(!_.xMo(m)){(m=!!_.PO(window.location.href).themeRefresh)&&_.nc(new _.cw("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!m){bJi();m={themeRefresh:1};var G=_.xS().resolve(_.$g);if(G.isOnWatch()){var K,W;G=((K=G.getPlayerFromWatch())==null?void 0:(W=K.getPlayer())==null?void 0:W.getCurrentTime())||0;G>=1&&(m.time_continue=Math.floor(G))}_.w8()||_.Ng()!=="USER_INTERFACE_THEME_DARK"||(m.theme="dark");_.pr(_.y3(window.location.href,
m))}_.F("web_appshell_refresh_trigger")&&_.Ks.caches&&this.refreshAppShellResponse();K=_.XJ(window.location.href);_.Xa(_.xS().resolve(_.SB),_.mi(K,"theme"))}};
_.w.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.w.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.w.onPlayerFullscreen=function(m){_.$u();this.playerFullscreen=m};
_.w.setRestrictedMode=function(m){var G=_.M$();_.Tq(0,58,m);G.save();_.xS().resolve(_.eG).reload()};
_.w.onPageChanged=function(m){m.detail.newPageType==="ytd-watch-flexy"||m.detail.newPageType==="ytd-watch-fixie"||m.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.w1("WEB_PAGE_TYPE_WATCH")):m.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.w1("WEB_PAGE_TYPE_SHORTS")):m.detail.newPageType==="ytd-browse"&&m.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.w1("WEB_PAGE_TYPE_MINI_APP")):_.F("web_frosted_glass")&&m.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.w1("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.w1("WEB_PAGE_TYPE_UNKNOWN"));m.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.w.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.w.onGuideToggleTap=function(){_.Zw(this.hostElement,"yt-guide-toggle")};
_.w.onGuideToggleHover=function(){_.Zw(this.hostElement,"yt-guide-hover")};
_.w.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.w.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.w.setMastheadTheme=function(){var m=_.Z7(this.hostElement).querySelector("#masthead");m&&(m.dark=m.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),m.isDarkThemeForced=!1)};
_.w.onRequestPanelModeChange=function(m,G){this.hideHeaderShadow=G.mode!=="seamed"};
_.w.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.w.onDrawerIronSelect=function(m){_.$C(m).id==="guide"&&this.processDrawerIronSelect()};
_.w.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var m="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(m="opened"));_.Zw(this.hostElement,"yt-autonav-pause-guide-"+m)};
_.w.onAddElementToApp=function(m){_.VL(this.hostElement).appendChild(m.detail)};
_.w.onThrottledScroll=function(){var m=_.xS().resolve(_.$g).getCurrentPage();m&&(this.scrollAtTopInternal=m.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.w.canHideMasthead=function(){return this.scrollAtTopInternal&&!!this.fullscreen};
_.w.setFullscreen=function(){if(_.F("external_fullscreen")||!this.isWatchPage){var m=_.F("kevlar_fullerscreen_root_only_killswitch")?!!_.$u():!!_.$u()&&_.$u()===document.documentElement;m=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(m||this.isFullWindowSession);this.fullscreen!==m&&((this.fullscreen=m)&&_.PH(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.$R().dispatch(_.YcP(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.dU(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.w.setFullscreenLoggingForShorts=function(m){var G,K,W;return _.Y(function(L){if(L.nextAddress==1)return L.yield((G=_.qW())==null?void 0:G.getPlayerPromise(),2);K=L.yieldResult;(W=K)==null||W.setAppFullscreen(m);_.ey(L)})};
_.w.updateMastheadCssHeight=function(){var m=this.mastheadHeight;this.fullscreen&&(m=0);_.eb(this.hostElement,{"--ytd-masthead-height":m+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.w.updateNetworkStatusBannerDisplayStatus=function(){var m="unset";this.fullscreen&&(m="none");_.eb(this.hostElement,{"--ytd-network-status-banner-display":m})};
_.w.updateNetworkStatusBannerCssHeight=function(){var m="unset";this.fullscreen&&(m="0px");_.eb(this.hostElement,{"--ytd-network-status-banner-max-height":m})};
_.w.updateScrollAndMasthead=function(m,G,K,W){this.iMaxTheaterMode||(W=!1);var L=_.xS().resolve(_.$g).getCurrentPage();m||G||W?(document.body.classList.add("no-scroll"),L.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.xC(this,this.onScroll)),L.setScrollTop(0),_.eb(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":Tu()+"px"})):K?_.Zw(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Zw(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
L.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.xC(this,this.onScroll)));this.mastheadHidden=m||G||K;this.updateMastheadCssHeight();_.F("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.w.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.w.onYtNavigateAction=function(m){m=this.get("navigateAction.endpoint",m);_.Zw(this.hostElement,"yt-navigate",{endpoint:m})};
_.w.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var m=document.createElement("yt-create-family-dialog");_.VL(this.hostElement).appendChild(m);this.hasCreateFamilyDialog=!0}};
_.w.onSetPushNotificationsEnabledCommand=function(m){var G=this,K=_.Q(m,nUO);K&&typeof K.enabled==="boolean"&&(Notification.permission!=="granted"?ZJ6().then(function(){Notification.permission==="granted"?(pHz(!K.enabled).then(tD6),K.successAction&&_.yQ(G.hostElement,[K.successAction])):K.failureAction&&_.yQ(G.hostElement,[K.failureAction])}):(pHz(!K.enabled).then(tD6),K.successAction&&_.yQ(this.hostElement,[K.successAction])))};
_.w.onYtSignalActionEnableChromeNotifications=function(){d$D(!0)};
_.w.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Q(this.topbarData.hotkeyDialog,Hfq)}}})};
_.w.onYtSignalActionShowKeyboardShortcutDialog=function(){_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.w.onYtEndpointChangeHandler=function(m,G){var K=_.Ix(_.yU);K.pendingPrefetchJob_&&(G=!(!G||G.autonav!="1"),K.pendingPrefetchJob_.resolve(m&&_.SPG(m)?_.ReP(m,G):""),K.pendingPrefetchJob_=null);_.dU(this.hostElement,"yt-pause-active-page-context");_.dU(this.hostElement,"ytd-log-youthere-nav");_.dU(this.hostElement,"yt-prepare-page-dispose")};
_.w.handleCommandWithCommandHandler=function(m,G){_.xe.instance.resolveCommand(m,{form:{element:G}})};
_.w.onYtTimedCommand=function(m){var G=this;m=_.Q(m,ifs);var K=m.command;K&&_.UU(_.Fu,function(){var W=_.Q(K,_.dRX);W?(_.xe.instance.resolveCommand(K),G.maybeLogGetAnswerRequestTick(W)):_.eD(G.hostElement,[K],G.hostElement)},m.timeoutMs||0)};
_.w.maybeLogGetAnswerRequestTick=function(m){m&&m.isFirstRequest&&(_.ck("search_overview_answer"),_.Yt("so_rq",void 0,"search_overview_answer"))};
_.w.onYtSignalActionSkipNavigation=function(){var m=_.xS().resolve(_.$g).getCurrentPage();_.dW(m)};
_.w.onYtSignalActionCopyDebugData=function(){hHD()};
_.w.handleEntityUpdateCommand=function(m){_.UG(_.Q(m,_.iUl).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.w.logFlowLoggingEventCommand=function(m){if(m=_.Q(m,_.tKG))if(m.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var G=m.flowEventNamespace,K=m.flowEventType,W=m.flowType;W&&G&&K&&_.Z46(_.e8(G,K,m.flowEventMetadata),W)}else{G=_.fG();K=m.flowEventNamespace;W=m.flowEventType;var L=m.flowType;L&&K&&W&&G.logFlowEvent(_.e8(K,W,m.flowEventMetadata),L,m.flowNonce)}};
_.w.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.w.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.w.onTouchStart=function(){var m=_.SG();_.gU()&&_.Jo(m.JSC$13619_screenManager,{visualElement:m.ve})};
_.w.handleSelectLanguageCommand=function(m){if(m=_.Q(m,prW).hl){var G=_.M$();G.set("hl",m);G.save();_.xS().resolve(_.eG).reload()}};
_.w.handleConfirmDialogEndpoint=function(m){(m=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(m))&&this.ytOpenPopupBehavior.openPopup(m)};
_.w.handleOpenPopupNavigationEndpoints=function(m,G){(m=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(m))&&this.ytOpenPopupBehavior.openPopup(m,G)};
_.w.handleSaveCommandToSessionStorage=function(m){if(m=_.Q(m,_.CBC)){var G=m.key;G&&m.command&&window.sessionStorage.setItem(G,JSON.stringify(m.command))}};
_.w.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(m){m&&m.active&&m.active.postMessage({type:"refresh_shell"})}).catch(function(m){m.name!=="SecurityError"&&_.am(m)})};
_.w.onDeviceThemeChanged=function(){var m=_.JK();_.Tq(_.M$(),185,m);_.M$().save()};
_.w.handleYtRegisterPromoCommand=function(m){if(_.Q(m,oUi)){var G=_.xS().resolve(_.$g).getCurrentPage()||this.hostElement;JJ6().registerPromoCommand(_.Q(m,oUi),G)}};
_.w.onYtNavigateHomeAction=function(){if(!_.F("kevlar_miniplayer_navigate_home_from_app_killswitch")){var m,G,K,W,L=(W=(m=this.topbarData)==null?void 0:(G=m.logo)==null?void 0:(K=G.topbarLogoRenderer)==null?void 0:K.endpoint)!=null?W:_.lu;this.ytComponentBehavior.resolveCommand(L)}};
_.w.onYtLocationCollectionCommand=function(m){bV6(_.Q(m,y8O))};
_.w.onYtGetLocationCommand=function(m){iYu(_.Q(m,PP6),this)};
_.w.updateRenderGuideFromBinding=function(m){this.renderGuide=m.detail.value};
_.w.updateGuidePersistentAndVisibleFromBinding=function(m){this.guidePersistentAndVisible=m.detail.value};
_.w.updateMiniGuideVisibleFromBinding=function(m){this.miniGuideVisible=m.detail.value};
_.w.onThemeSelected=function(m,G){var K=_.M$(),W=m||G?m:_.JK(),L=(W&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!W&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.xMo(_.f6(window.location.href));_.Tq(0,165,m);_.Tq(0,174,G);K.save();L&&_.dU(this.hostElement,"yt-dark-mode-toggled-action",[W]);_.dU(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.w.getCurrentTheme=function(){return _.D7()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Ng()};
_.w.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.w.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.w.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.w.handleShowConsentPrimitive=function(m){var G=this,K,W;return _.Y(function(L){if(L.nextAddress==1){try{K=(W=_.qW())==null?void 0:W.getPlayerPromise()}catch(A){}return L.yield(S16(m,K),2)}_.dU(G.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.ey(L)})};
_.w.handleSelectActiveIdentityEndpointInternal=function(m){_.u0();m=_.Q(m,_.i9S);if(m!=null&&m.supportedTokens){m=_.g(m.supportedTokens);for(var G=m.next();!G.done;G=m.next())G=G.value,G.accountSigninToken&&_.pr(G.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.w.handleUpdatePermissionRoleCommand=function(m){if(m=_.Q(m,_.TRl)){var G;this.hasDelegation=!((G=_.Q(m.renderer,_.MdX))==null||!G.status)}};
_.w.registerWithViewTransitionManager=function(){var m=_.xS().resolve(_.fn(_.TE));if(m){var G,K=(G=this.guide)==null?void 0:G.querySelector("#scrim"),W;G=(W=this.guide)==null?void 0:W.querySelector("#contentContainer");K&&G&&m.isAnyTransitionEnabled&&(W={},m.viewTransitionCoordinator.registerElement(K,(W.slide="app-drawer-scrim-page-transition",W["lockup-to-watch"]="app-drawer-scrim-page-transition",W["learning-journey"]="app-drawer-scrim-page-transition",W)),K={},m.viewTransitionCoordinator.registerElement(G,
(K.slide="app-drawer-container-page-transition",K["lockup-to-watch"]="app-drawer-container-page-transition",K["learning-journey"]="app-drawer-container-page-transition",K)))}};
_.e_.Object.defineProperties(eT.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.F("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky&&(!this.scrollAtTop||!_.F("kevlar_show_chips_on_scroll"))}}});
_.e_.Object.defineProperties(eT,{template:{configurable:!0,enumerable:!0,get:function(){if(fOo===void 0){var m=document.createElement("template");_.b(m,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
m.content.insertBefore(_.R().content.cloneNode(!0),m.content.firstChild);fOo=m}m=fOo;return m}}});
eT.prototype.onOpenHotkeyDialog=eT.prototype.onOpenHotkeyDialog;eT.prototype.setFullscreen=eT.prototype.setFullscreen;eT.prototype.onAddElementToApp=eT.prototype.onAddElementToApp;eT.prototype.onDrawerIronSelect=eT.prototype.onDrawerIronSelect;eT.prototype.onGuideOpenButtonHover=eT.prototype.onGuideOpenButtonHover;eT.prototype.onRequestPanelModeChange=eT.prototype.onRequestPanelModeChange;eT.prototype.onPageDataUpdated=eT.prototype.onPageDataUpdated;eT.prototype.onPageChanged=eT.prototype.onPageChanged;
eT.prototype.onSetTheaterModeEnabled=eT.prototype.onSetTheaterModeEnabled;eT.prototype.updateMastheadData=eT.prototype.updateMastheadData;eT.prototype.onYtPageManagerAttached=eT.prototype.onYtPageManagerAttached;eT.prototype.observePersistentPanelVisibility=eT.prototype.observePersistentPanelVisibility;eT.prototype.observeGuideVisibility=eT.prototype.observeGuideVisibility;eT.prototype.guideIsVisibleButNotPersistentSelectorChanged=eT.prototype.guideIsVisibleButNotPersistentSelectorChanged;
eT.prototype.isInlinePreviewEnabledChanged=eT.prototype.isInlinePreviewEnabledChanged;eT.prototype.isWatchPageChanged=eT.prototype.isWatchPageChanged;eT.prototype.dispatchFrostedGlassMode=eT.prototype.dispatchFrostedGlassMode;_.x([_.q(_.OW),_.S("design:type",Object)],eT.prototype,"ytdReduxBehavior",void 0);_.x([_.q(_.mM.YtEventForwardingBehavior),_.S("design:type",Object)],eT.prototype,"ytEventForwardingBehavior",void 0);
_.x([_.q(_.Zd.YtOpenPopupBehavior),_.S("design:type",Object)],eT.prototype,"ytOpenPopupBehavior",void 0);_.x([_.q(_.Pq.YtActionHandlerBehavior),_.S("design:type",Object)],eT.prototype,"ytActionHandlerBehavior",void 0);
_.x([_.q({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Im.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.F("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var m;((m=this.actionRouterNode.hostElement)!=null?m:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var m;((m=this.actionRouterNode.hostElement)!=null?m:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(m){this.actionRouter_.handleAction(m.detail)}}),
_.S("design:type",Object)],eT.prototype,"ytActionRouterBehavior",void 0);_.x([_.q(BQO.YtdAppBehavior),_.S("design:type",Object)],eT.prototype,"ytdAppBehavior",void 0);_.x([_.q(_.dR.YtEndpointBehavior),_.S("design:type",Object)],eT.prototype,"ytEndpointBehavior",void 0);_.x([_.q(UpN.YtEndpointHandlerWithYpcBehavior),_.S("design:type",Object)],eT.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.x([_.q(xpe.YtLogYpcFlowCommandsBehavior),_.S("design:type",Object)],eT.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.x([_.q(_.B.YtRendererBehavior),_.S("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.x([_.q(_.cq.YtComponentBehavior),_.S("design:type",Object)],eT.prototype,"ytComponentBehavior",void 0);_.x([_.V({selector:oTi}),_.S("design:type",Object)],eT.prototype,"tabGesturesIsActive",void 0);_.x([_.V(),_.S("design:type",Boolean)],eT.prototype,"renderGuide",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"guidePersistentAndVisible",void 0);_.x([_.V({selector:QlO}),_.S("design:type",Boolean)],eT.prototype,"guideIsVisibleButNotPersistent",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"standalone",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"miniGuideVisible",void 0);
_.x([_.V(),_.S("design:type",Object)],eT.prototype,"persistentPanelEnabled",void 0);_.x([_.V({selector:rUg,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"persistentPanelVisible",void 0);_.x([_.V({selector:_.and}),_.S("design:type",Number)],eT.prototype,"miniplayerPlaybackState",void 0);_.x([_.V({selector:_.cU,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"miniplayerIsActive",void 0);
_.x([_.V({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.S("design:type",Boolean)],eT.prototype,"isInlinePreviewEnabled",void 0);_.x([_.V(),_.S("design:type",Boolean)],eT.prototype,"isInlinePreviewDisabled",void 0);_.x([_.V({reflectToAttribute:!0,value:function(){return _.IP("START_IN_FULL_WINDOW_MODE")}}),
_.S("design:type",Boolean)],eT.prototype,"mastheadHidden",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"playerFullscreen",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"fullscreen",void 0);_.x([_.V({value:!1,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"hideHeaderShadow",void 0);
_.x([_.V({value:{GUIDE_ALT_LABEL:_.zq("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.S("design:type",Object)],eT.prototype,"menuStrings",void 0);_.x([_.V({computed:"computeTopbarData(data)"}),_.S("design:type",Object)],eT.prototype,"topbarData",void 0);_.x([_.V({selector:_.DSd,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"isWatchPage",void 0);_.x([_.V({selector:_.tBd,reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"isShortsPage",void 0);
_.x([_.V({selector:function(m){return _.YR(m)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.S("design:type",Boolean)],eT.prototype,"isMiniAppPage",void 0);_.x([_.V({selector:function(m){return _.YR(m)==="WEB_PAGE_TYPE_BROWSE"}}),
_.S("design:type",Boolean)],eT.prototype,"isBrowsePage",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Boolean)],eT.prototype,"scrolling",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],eT.prototype,"hasDelegation",void 0);_.x([_.V({reflectToAttribute:!0,value:!1}),_.S("design:type",Boolean)],eT.prototype,"guideScrolledByTouch",void 0);_.x([_.V(),_.S("design:type",Object)],eT.prototype,"isFrostedGlassInitialized",void 0);
_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],eT.prototype,"frostedGlassExp",void 0);_.x([_.V({selector:function(m){return m.ui.chipBarIsSticky}}),
_.S("design:type",Boolean)],eT.prototype,"chipBarIsSticky",void 0);_.x([_.V({selector:aeE}),_.S("design:type",Boolean)],eT.prototype,"scrollAtTop",void 0);_.x([_.V({computed:"computeIsHomePage(isBrowsePage, data)"}),_.S("design:type",Boolean)],eT.prototype,"isHomePage",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],eT.prototype,"hasPendingWatchNavigation",void 0);_.x([_.V({reflectToAttribute:!0}),_.S("design:type",Object)],eT.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.x([_.V(),_.S("design:type",Object)],eT.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.x([W5("guide"),_.S("design:type",Object)],eT.prototype,"guide",void 0);_.x([W5("guide-service"),_.S("design:type",gBz)],eT.prototype,"guideService",void 0);_.x([W5("guide-inner-content"),_.S("design:type",HTMLDivElement)],eT.prototype,"guideInnerContent",void 0);_.x([_.UM("#persistent-panel-container"),_.S("design:type",HTMLElement)],eT.prototype,"persistentPanelContainer",void 0);
_.x([_.V({selector:_.ojd}),_.S("design:type",String)],eT.prototype,"frostedGlassMode",void 0);_.x([_.Sb("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"dispatchFrostedGlassMode",null);_.x([_.V({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.S("design:type",Object)],eT.prototype,"isFrostedGlassDisabled",void 0);
_.x([_.Sb("isWatchPage"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"isWatchPageChanged",null);_.x([_.E("isHomePage","chipBarIsSticky","scrollAtTop"),_.S("design:type",Boolean),_.S("design:paramtypes",[])],eT.prototype,"applyFrostedGlassToChipBar",null);_.x([_.V(),_.S("design:type",Object)],eT.prototype,"isChannelOrPlaylistPage",void 0);
_.x([_.Mg("isInlinePreviewEnabled"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"isInlinePreviewEnabledChanged",null);_.x([_.Sb("guideIsVisibleButNotPersistent"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.x([_.Sb("guidePersistentAndVisible","miniGuideVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"observeGuideVisibility",null);_.x([_.Sb("persistentPanelVisible"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"observePersistentPanelVisibility",null);
_.x([_.XC("attached"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],eT.prototype,"onYtPageManagerAttached",null);_.x([_.Sb("data"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype",Promise)],eT.prototype,"updateMastheadData",null);_.x([_.XC("yt-set-theater-mode-enabled"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent,Object]),_.S("design:returntype")],eT.prototype,"onSetTheaterModeEnabled",null);
_.x([_.XC("yt-page-type-changed"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],eT.prototype,"onPageChanged",null);_.x([_.XC("yt-page-data-updated"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"onPageDataUpdated",null);_.x([_.XC("yt-request-panel-mode-change"),_.S("design:type",Function),_.S("design:paramtypes",[Event,Object]),_.S("design:returntype")],eT.prototype,"onRequestPanelModeChange",null);
_.x([_.XC("yt-guide-hover"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"onGuideOpenButtonHover",null);_.x([_.XC("app-drawer-transitioned"),_.S("design:type",Function),_.S("design:paramtypes",[Event]),_.S("design:returntype")],eT.prototype,"onDrawerIronSelect",null);_.x([_.XC("yt-add-element-to-app"),_.S("design:type",Function),_.S("design:paramtypes",[CustomEvent]),_.S("design:returntype")],eT.prototype,"onAddElementToApp",null);
_.x([_.XC("yt-set-fullerscreen-styles"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"setFullscreen",null);_.x([_.XC("yt-open-hotkey-dialog"),_.S("design:type",Function),_.S("design:paramtypes",[]),_.S("design:returntype")],eT.prototype,"onOpenHotkeyDialog",null);_.x([_.Ye({is:"ytd-app"})],eT);_.tf().processSignal("eor");
_.D4&&_.D4.JSC$11368_setLoaded();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
